@mui-toolpad-extended-tuni/calendar 3.0.2 → 3.2.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 +108 -3
- package/dist/CalendarMicroservice.d.ts +4 -1
- package/dist/hooks/useCalendarApiConfig.d.ts +15 -0
- package/dist/index.cjs +291 -73
- package/dist/index.d.ts +5 -0
- package/dist/index.es.js +30499 -11420
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var yI=Object.defineProperty;var vI=(e,t,n)=>t in e?yI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ja=(e,t,n)=>vI(e,typeof t!="symbol"?t+"":t,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const pe=require("react"),Re=require("@mui/material"),KE=require("@emotion/styled"),dr=require("@emotion/react"),zs=require("@mui-toolpad-extended-tuni/main"),xn=require("react-dom");require("react-router-dom");function JE(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 $=JE(pe),bI=JE(xn);function ex(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Bc={exports:{}},$a={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var
|
|
9
|
+
*/var Nb;function wI(){if(Nb)return $a;Nb=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,o,i){var s=null;if(i!==void 0&&(s=""+i),o.key!==void 0&&(s=""+o.key),"key"in o){i={};for(var l in o)l!=="key"&&(i[l]=o[l])}else i=o;return o=i.ref,{$$typeof:e,type:r,key:s,ref:o!==void 0?o:null,props:i}}return $a.Fragment=t,$a.jsx=n,$a.jsxs=n,$a}var za={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,31 +14,31 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var
|
|
17
|
+
*/var jb;function SI(){return jb||(jb=1,process.env.NODE_ENV!=="production"&&function(){function e(k){if(k==null)return null;if(typeof k=="function")return k.$$typeof===q?null:k.displayName||k.name||null;if(typeof k=="string")return k;switch(k){case y:return"Fragment";case E:return"Profiler";case S:return"StrictMode";case T:return"Suspense";case O:return"SuspenseList";case Q:return"Activity"}if(typeof k=="object")switch(typeof k.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),k.$$typeof){case p:return"Portal";case R:return k.displayName||"Context";case D:return(k._context.displayName||"Context")+".Consumer";case C:var ee=k.render;return k=k.displayName,k||(k=ee.displayName||ee.name||"",k=k!==""?"ForwardRef("+k+")":"ForwardRef"),k;case P:return ee=k.displayName||null,ee!==null?ee:e(k.type)||"Memo";case H:ee=k._payload,k=k._init;try{return e(k(ee))}catch{}}return null}function t(k){return""+k}function n(k){try{t(k);var ee=!1}catch{ee=!0}if(ee){ee=console;var ie=ee.error,oe=typeof Symbol=="function"&&Symbol.toStringTag&&k[Symbol.toStringTag]||k.constructor.name||"Object";return ie.call(ee,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",oe),t(k)}}function r(k){if(k===y)return"<>";if(typeof k=="object"&&k!==null&&k.$$typeof===H)return"<...>";try{var ee=e(k);return ee?"<"+ee+">":"<...>"}catch{return"<...>"}}function o(){var k=x.A;return k===null?null:k.getOwner()}function i(){return Error("react-stack-top-frame")}function s(k){if(L.call(k,"key")){var ee=Object.getOwnPropertyDescriptor(k,"key").get;if(ee&&ee.isReactWarning)return!1}return k.key!==void 0}function l(k,ee){function ie(){G||(G=!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)",ee))}ie.isReactWarning=!0,Object.defineProperty(k,"key",{get:ie,configurable:!0})}function u(){var k=e(this.type);return te[k]||(te[k]=!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.")),k=this.props.ref,k!==void 0?k:null}function d(k,ee,ie,oe,ye,le){var B=ie.ref;return k={$$typeof:v,type:k,key:ee,props:ie,_owner:oe},(B!==void 0?B:null)!==null?Object.defineProperty(k,"ref",{enumerable:!1,get:u}):Object.defineProperty(k,"ref",{enumerable:!1,value:null}),k._store={},Object.defineProperty(k._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(k,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(k,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:ye}),Object.defineProperty(k,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:le}),Object.freeze&&(Object.freeze(k.props),Object.freeze(k)),k}function f(k,ee,ie,oe,ye,le){var B=ee.children;if(B!==void 0)if(oe)if(I(B)){for(oe=0;oe<B.length;oe++)g(B[oe]);Object.freeze&&Object.freeze(B)}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 g(B);if(L.call(ee,"key")){B=e(k);var N=Object.keys(ee).filter(function(K){return K!=="key"});oe=0<N.length?"{key: someKey, "+N.join(": ..., ")+": ...}":"{key: someKey}",W[B+oe]||(N=0<N.length?"{"+N.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
18
18
|
let props = %s;
|
|
19
19
|
<%s {...props} />
|
|
20
20
|
React keys must be passed directly to JSX without using spread:
|
|
21
21
|
let props = %s;
|
|
22
|
-
<%s key={someKey} {...props} />`,
|
|
22
|
+
<%s key={someKey} {...props} />`,oe,B,N,B),W[B+oe]=!0)}if(B=null,ie!==void 0&&(n(ie),B=""+ie),s(ee)&&(n(ee.key),B=""+ee.key),"key"in ee){ie={};for(var V in ee)V!=="key"&&(ie[V]=ee[V])}else ie=ee;return B&&l(ie,typeof k=="function"?k.displayName||k.name||"Unknown":k),d(k,B,ie,o(),ye,le)}function g(k){b(k)?k._store&&(k._store.validated=1):typeof k=="object"&&k!==null&&k.$$typeof===H&&(k._payload.status==="fulfilled"?b(k._payload.value)&&k._payload.value._store&&(k._payload.value._store.validated=1):k._store&&(k._store.validated=1))}function b(k){return typeof k=="object"&&k!==null&&k.$$typeof===v}var m=pe,v=Symbol.for("react.transitional.element"),p=Symbol.for("react.portal"),y=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),D=Symbol.for("react.consumer"),R=Symbol.for("react.context"),C=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),O=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),H=Symbol.for("react.lazy"),Q=Symbol.for("react.activity"),q=Symbol.for("react.client.reference"),x=m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,L=Object.prototype.hasOwnProperty,I=Array.isArray,U=console.createTask?console.createTask:function(){return null};m={react_stack_bottom_frame:function(k){return k()}};var G,te={},se=m.react_stack_bottom_frame.bind(m,i)(),de=U(r(i)),W={};za.Fragment=y,za.jsx=function(k,ee,ie){var oe=1e4>x.recentlyCreatedOwnerStacks++;return f(k,ee,ie,!1,oe?Error("react-stack-top-frame"):se,oe?U(r(k)):de)},za.jsxs=function(k,ee,ie){var oe=1e4>x.recentlyCreatedOwnerStacks++;return f(k,ee,ie,!0,oe?Error("react-stack-top-frame"):se,oe?U(r(k)):de)}}()),za}var $b;function EI(){return $b||($b=1,process.env.NODE_ENV==="production"?Bc.exports=wI():Bc.exports=SI()),Bc.exports}var Y=EI();const zb=e=>e,xI=()=>{let e=zb;return{configure(t){e=t},generate(t){return e(t)},reset(){e=zb}}},CI=xI();function xl(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}function je(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":xl(7));return e.charAt(0).toUpperCase()+e.slice(1)}var Vc={exports:{}},Hc={exports:{}},st={};/** @license React v16.13.1
|
|
23
23
|
* react-is.production.min.js
|
|
24
24
|
*
|
|
25
25
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
26
26
|
*
|
|
27
27
|
* This source code is licensed under the MIT license found in the
|
|
28
28
|
* LICENSE file in the root directory of this source tree.
|
|
29
|
-
*/var
|
|
29
|
+
*/var Lb;function DI(){if(Lb)return st;Lb=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,b=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,S=e?Symbol.for("react.responder"):60118,E=e?Symbol.for("react.scope"):60119;function D(C){if(typeof C=="object"&&C!==null){var T=C.$$typeof;switch(T){case t:switch(C=C.type,C){case u:case d:case r:case i:case o:case g:return C;default:switch(C=C&&C.$$typeof,C){case l:case f:case v:case m:case s:return C;default:return T}}case n:return T}}}function R(C){return D(C)===d}return st.AsyncMode=u,st.ConcurrentMode=d,st.ContextConsumer=l,st.ContextProvider=s,st.Element=t,st.ForwardRef=f,st.Fragment=r,st.Lazy=v,st.Memo=m,st.Portal=n,st.Profiler=i,st.StrictMode=o,st.Suspense=g,st.isAsyncMode=function(C){return R(C)||D(C)===u},st.isConcurrentMode=R,st.isContextConsumer=function(C){return D(C)===l},st.isContextProvider=function(C){return D(C)===s},st.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===t},st.isForwardRef=function(C){return D(C)===f},st.isFragment=function(C){return D(C)===r},st.isLazy=function(C){return D(C)===v},st.isMemo=function(C){return D(C)===m},st.isPortal=function(C){return D(C)===n},st.isProfiler=function(C){return D(C)===i},st.isStrictMode=function(C){return D(C)===o},st.isSuspense=function(C){return D(C)===g},st.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===r||C===d||C===i||C===o||C===g||C===b||typeof C=="object"&&C!==null&&(C.$$typeof===v||C.$$typeof===m||C.$$typeof===s||C.$$typeof===l||C.$$typeof===f||C.$$typeof===y||C.$$typeof===S||C.$$typeof===E||C.$$typeof===p)},st.typeOf=D,st}var at={};/** @license React v16.13.1
|
|
30
30
|
* react-is.development.js
|
|
31
31
|
*
|
|
32
32
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
33
33
|
*
|
|
34
34
|
* This source code is licensed under the MIT license found in the
|
|
35
35
|
* LICENSE file in the root directory of this source tree.
|
|
36
|
-
*/var
|
|
36
|
+
*/var Bb;function _I(){return Bb||(Bb=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,b=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,S=e?Symbol.for("react.responder"):60118,E=e?Symbol.for("react.scope"):60119;function D(F){return typeof F=="string"||typeof F=="function"||F===r||F===d||F===i||F===o||F===g||F===b||typeof F=="object"&&F!==null&&(F.$$typeof===v||F.$$typeof===m||F.$$typeof===s||F.$$typeof===l||F.$$typeof===f||F.$$typeof===y||F.$$typeof===S||F.$$typeof===E||F.$$typeof===p)}function R(F){if(typeof F=="object"&&F!==null){var ve=F.$$typeof;switch(ve){case t:var Ee=F.type;switch(Ee){case u:case d:case r:case i:case o:case g:return Ee;default:var Te=Ee&&Ee.$$typeof;switch(Te){case l:case f:case v:case m:case s:return Te;default:return ve}}case n:return ve}}}var C=u,T=d,O=l,P=s,H=t,Q=f,q=r,x=v,L=m,I=n,U=i,G=o,te=g,se=!1;function de(F){return se||(se=!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.")),W(F)||R(F)===u}function W(F){return R(F)===d}function k(F){return R(F)===l}function ee(F){return R(F)===s}function ie(F){return typeof F=="object"&&F!==null&&F.$$typeof===t}function oe(F){return R(F)===f}function ye(F){return R(F)===r}function le(F){return R(F)===v}function B(F){return R(F)===m}function N(F){return R(F)===n}function V(F){return R(F)===i}function K(F){return R(F)===o}function ae(F){return R(F)===g}at.AsyncMode=C,at.ConcurrentMode=T,at.ContextConsumer=O,at.ContextProvider=P,at.Element=H,at.ForwardRef=Q,at.Fragment=q,at.Lazy=x,at.Memo=L,at.Portal=I,at.Profiler=U,at.StrictMode=G,at.Suspense=te,at.isAsyncMode=de,at.isConcurrentMode=W,at.isContextConsumer=k,at.isContextProvider=ee,at.isElement=ie,at.isForwardRef=oe,at.isFragment=ye,at.isLazy=le,at.isMemo=B,at.isPortal=N,at.isProfiler=V,at.isStrictMode=K,at.isSuspense=ae,at.isValidElementType=D,at.typeOf=R}()),at}var Vb;function tx(){return Vb||(Vb=1,process.env.NODE_ENV==="production"?Hc.exports=DI():Hc.exports=_I()),Hc.exports}/*
|
|
37
37
|
object-assign
|
|
38
38
|
(c) Sindre Sorhus
|
|
39
39
|
@license MIT
|
|
40
|
-
*/var
|
|
41
|
-
Valid keys: `+JSON.stringify(Object.keys(
|
|
40
|
+
*/var Lp,Hb;function RI(){if(Hb)return Lp;Hb=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function o(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var s={},l=0;l<10;l++)s["_"+String.fromCharCode(l)]=l;var u=Object.getOwnPropertyNames(s).map(function(f){return s[f]});if(u.join("")!=="0123456789")return!1;var d={};return"abcdefghijklmnopqrst".split("").forEach(function(f){d[f]=f}),Object.keys(Object.assign({},d)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Lp=o()?Object.assign:function(i,s){for(var l,u=r(i),d,f=1;f<arguments.length;f++){l=Object(arguments[f]);for(var g in l)t.call(l,g)&&(u[g]=l[g]);if(e){d=e(l);for(var b=0;b<d.length;b++)n.call(l,d[b])&&(u[d[b]]=l[d[b]])}}return u},Lp}var Bp,Fb;function Ag(){if(Fb)return Bp;Fb=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Bp=e,Bp}var Vp,Ub;function nx(){return Ub||(Ub=1,Vp=Function.call.bind(Object.prototype.hasOwnProperty)),Vp}var Hp,Wb;function TI(){if(Wb)return Hp;Wb=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Ag(),n={},r=nx();e=function(i){var s="Warning: "+i;typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}}}function o(i,s,l,u,d){if(process.env.NODE_ENV!=="production"){for(var f in i)if(r(i,f)){var g;try{if(typeof i[f]!="function"){var b=Error((u||"React class")+": "+l+" type `"+f+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[f]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw b.name="Invariant Violation",b}g=i[f](s,f,u,l,null,t)}catch(v){g=v}if(g&&!(g instanceof Error)&&e((u||"React class")+": type specification of "+l+" `"+f+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof g+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),g instanceof Error&&!(g.message in n)){n[g.message]=!0;var m=d?d():"";e("Failed "+l+" type: "+g.message+(m??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Hp=o,Hp}var Fp,Yb;function OI(){if(Yb)return Fp;Yb=1;var e=tx(),t=RI(),n=Ag(),r=nx(),o=TI(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(l){var u="Warning: "+l;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}});function s(){return null}return Fp=function(l,u){var d=typeof Symbol=="function"&&Symbol.iterator,f="@@iterator";function g(W){var k=W&&(d&&W[d]||W[f]);if(typeof k=="function")return k}var b="<<anonymous>>",m={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:E(),arrayOf:D,element:R(),elementType:C(),instanceOf:T,node:Q(),objectOf:P,oneOf:O,oneOfType:H,shape:x,exact:L};function v(W,k){return W===k?W!==0||1/W===1/k:W!==W&&k!==k}function p(W,k){this.message=W,this.data=k&&typeof k=="object"?k:{},this.stack=""}p.prototype=Error.prototype;function y(W){if(process.env.NODE_ENV!=="production")var k={},ee=0;function ie(ye,le,B,N,V,K,ae){if(N=N||b,K=K||B,ae!==n){if(u){var F=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 F.name="Invariant Violation",F}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ve=N+":"+B;!k[ve]&&ee<3&&(i("You are manually calling a React.PropTypes validation function for the `"+K+"` prop on `"+N+"`. 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."),k[ve]=!0,ee++)}}return le[B]==null?ye?le[B]===null?new p("The "+V+" `"+K+"` is marked as required "+("in `"+N+"`, but its value is `null`.")):new p("The "+V+" `"+K+"` is marked as required in "+("`"+N+"`, but its value is `undefined`.")):null:W(le,B,N,V,K)}var oe=ie.bind(null,!1);return oe.isRequired=ie.bind(null,!0),oe}function S(W){function k(ee,ie,oe,ye,le,B){var N=ee[ie],V=G(N);if(V!==W){var K=te(N);return new p("Invalid "+ye+" `"+le+"` of type "+("`"+K+"` supplied to `"+oe+"`, expected ")+("`"+W+"`."),{expectedType:W})}return null}return y(k)}function E(){return y(s)}function D(W){function k(ee,ie,oe,ye,le){if(typeof W!="function")return new p("Property `"+le+"` of component `"+oe+"` has invalid PropType notation inside arrayOf.");var B=ee[ie];if(!Array.isArray(B)){var N=G(B);return new p("Invalid "+ye+" `"+le+"` of type "+("`"+N+"` supplied to `"+oe+"`, expected an array."))}for(var V=0;V<B.length;V++){var K=W(B,V,oe,ye,le+"["+V+"]",n);if(K instanceof Error)return K}return null}return y(k)}function R(){function W(k,ee,ie,oe,ye){var le=k[ee];if(!l(le)){var B=G(le);return new p("Invalid "+oe+" `"+ye+"` of type "+("`"+B+"` supplied to `"+ie+"`, expected a single ReactElement."))}return null}return y(W)}function C(){function W(k,ee,ie,oe,ye){var le=k[ee];if(!e.isValidElementType(le)){var B=G(le);return new p("Invalid "+oe+" `"+ye+"` of type "+("`"+B+"` supplied to `"+ie+"`, expected a single ReactElement type."))}return null}return y(W)}function T(W){function k(ee,ie,oe,ye,le){if(!(ee[ie]instanceof W)){var B=W.name||b,N=de(ee[ie]);return new p("Invalid "+ye+" `"+le+"` of type "+("`"+N+"` supplied to `"+oe+"`, expected ")+("instance of `"+B+"`."))}return null}return y(k)}function O(W){if(!Array.isArray(W))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),s;function k(ee,ie,oe,ye,le){for(var B=ee[ie],N=0;N<W.length;N++)if(v(B,W[N]))return null;var V=JSON.stringify(W,function(ae,F){var ve=te(F);return ve==="symbol"?String(F):F});return new p("Invalid "+ye+" `"+le+"` of value `"+String(B)+"` "+("supplied to `"+oe+"`, expected one of "+V+"."))}return y(k)}function P(W){function k(ee,ie,oe,ye,le){if(typeof W!="function")return new p("Property `"+le+"` of component `"+oe+"` has invalid PropType notation inside objectOf.");var B=ee[ie],N=G(B);if(N!=="object")return new p("Invalid "+ye+" `"+le+"` of type "+("`"+N+"` supplied to `"+oe+"`, expected an object."));for(var V in B)if(r(B,V)){var K=W(B,V,oe,ye,le+"."+V,n);if(K instanceof Error)return K}return null}return y(k)}function H(W){if(!Array.isArray(W))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var k=0;k<W.length;k++){var ee=W[k];if(typeof ee!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+se(ee)+" at index "+k+"."),s}function ie(oe,ye,le,B,N){for(var V=[],K=0;K<W.length;K++){var ae=W[K],F=ae(oe,ye,le,B,N,n);if(F==null)return null;F.data&&r(F.data,"expectedType")&&V.push(F.data.expectedType)}var ve=V.length>0?", expected one of type ["+V.join(", ")+"]":"";return new p("Invalid "+B+" `"+N+"` supplied to "+("`"+le+"`"+ve+"."))}return y(ie)}function Q(){function W(k,ee,ie,oe,ye){return I(k[ee])?null:new p("Invalid "+oe+" `"+ye+"` supplied to "+("`"+ie+"`, expected a ReactNode."))}return y(W)}function q(W,k,ee,ie,oe){return new p((W||"React class")+": "+k+" type `"+ee+"."+ie+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+oe+"`.")}function x(W){function k(ee,ie,oe,ye,le){var B=ee[ie],N=G(B);if(N!=="object")return new p("Invalid "+ye+" `"+le+"` of type `"+N+"` "+("supplied to `"+oe+"`, expected `object`."));for(var V in W){var K=W[V];if(typeof K!="function")return q(oe,ye,le,V,te(K));var ae=K(B,V,oe,ye,le+"."+V,n);if(ae)return ae}return null}return y(k)}function L(W){function k(ee,ie,oe,ye,le){var B=ee[ie],N=G(B);if(N!=="object")return new p("Invalid "+ye+" `"+le+"` of type `"+N+"` "+("supplied to `"+oe+"`, expected `object`."));var V=t({},ee[ie],W);for(var K in V){var ae=W[K];if(r(W,K)&&typeof ae!="function")return q(oe,ye,le,K,te(ae));if(!ae)return new p("Invalid "+ye+" `"+le+"` key `"+K+"` supplied to `"+oe+"`.\nBad object: "+JSON.stringify(ee[ie],null," ")+`
|
|
41
|
+
Valid keys: `+JSON.stringify(Object.keys(W),null," "));var F=ae(B,K,oe,ye,le+"."+K,n);if(F)return F}return null}return y(k)}function I(W){switch(typeof W){case"number":case"string":case"undefined":return!0;case"boolean":return!W;case"object":if(Array.isArray(W))return W.every(I);if(W===null||l(W))return!0;var k=g(W);if(k){var ee=k.call(W),ie;if(k!==W.entries){for(;!(ie=ee.next()).done;)if(!I(ie.value))return!1}else for(;!(ie=ee.next()).done;){var oe=ie.value;if(oe&&!I(oe[1]))return!1}}else return!1;return!0;default:return!1}}function U(W,k){return W==="symbol"?!0:k?k["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&k instanceof Symbol:!1}function G(W){var k=typeof W;return Array.isArray(W)?"array":W instanceof RegExp?"object":U(k,W)?"symbol":k}function te(W){if(typeof W>"u"||W===null)return""+W;var k=G(W);if(k==="object"){if(W instanceof Date)return"date";if(W instanceof RegExp)return"regexp"}return k}function se(W){var k=te(W);switch(k){case"array":case"object":return"an "+k;case"boolean":case"date":case"regexp":return"a "+k;default:return k}}function de(W){return!W.constructor||!W.constructor.name?b:W.constructor.name}return m.checkPropTypes=o,m.resetWarningCache=o.resetWarningCache,m.PropTypes=m,m},Fp}var Up,Gb;function AI(){if(Gb)return Up;Gb=1;var e=Ag();function t(){}function n(){}return n.resetWarningCache=t,Up=function(){function r(s,l,u,d,f,g){if(g!==e){var b=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 b.name="Invariant Violation",b}}r.isRequired=r;function o(){return r}var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},Up}var qb;function kI(){if(qb)return Vc.exports;if(qb=1,process.env.NODE_ENV!=="production"){var e=tx(),t=!0;Vc.exports=OI()(e.isElement,t)}else Vc.exports=AI()();return Vc.exports}var MI=kI();const w=ex(MI);function rx(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=rx(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function He(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=rx(e))&&(r&&(r+=" "),r+=t);return r}function Rr(e,t,n=void 0){const r={};for(const o in e){const i=e[o];let s="",l=!0;for(let u=0;u<i.length;u+=1){const d=i[u];d&&(s+=(l===!0?"":" ")+t(d),l=!1,n&&n[d]&&(s+=" "+n[d]))}r[o]=s}return r}function zu(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 kg(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":zu(7));return e.charAt(0).toUpperCase()+e.slice(1)}var Fc={exports:{}},mt={};/**
|
|
42
42
|
* @license React
|
|
43
43
|
* react-is.production.js
|
|
44
44
|
*
|
|
@@ -46,7 +46,7 @@ Valid keys: `+JSON.stringify(Object.keys(V),null," "));var B=fe(Y,X,Q,ee,U+"."+
|
|
|
46
46
|
*
|
|
47
47
|
* This source code is licensed under the MIT license found in the
|
|
48
48
|
* LICENSE file in the root directory of this source tree.
|
|
49
|
-
*/var
|
|
49
|
+
*/var Xb;function PI(){if(Xb)return mt;Xb=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),b=Symbol.for("react.view_transition"),m=Symbol.for("react.client.reference");function v(p){if(typeof p=="object"&&p!==null){var y=p.$$typeof;switch(y){case e:switch(p=p.type,p){case n:case o:case r:case u:case d:case b:return p;default:switch(p=p&&p.$$typeof,p){case s:case l:case g:case f:return p;case i:return p;default:return y}}case t:return y}}}return mt.ContextConsumer=i,mt.ContextProvider=s,mt.Element=e,mt.ForwardRef=l,mt.Fragment=n,mt.Lazy=g,mt.Memo=f,mt.Portal=t,mt.Profiler=o,mt.StrictMode=r,mt.Suspense=u,mt.SuspenseList=d,mt.isContextConsumer=function(p){return v(p)===i},mt.isContextProvider=function(p){return v(p)===s},mt.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===e},mt.isForwardRef=function(p){return v(p)===l},mt.isFragment=function(p){return v(p)===n},mt.isLazy=function(p){return v(p)===g},mt.isMemo=function(p){return v(p)===f},mt.isPortal=function(p){return v(p)===t},mt.isProfiler=function(p){return v(p)===o},mt.isStrictMode=function(p){return v(p)===r},mt.isSuspense=function(p){return v(p)===u},mt.isSuspenseList=function(p){return v(p)===d},mt.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===n||p===o||p===r||p===u||p===d||typeof p=="object"&&p!==null&&(p.$$typeof===g||p.$$typeof===f||p.$$typeof===s||p.$$typeof===i||p.$$typeof===l||p.$$typeof===m||p.getModuleId!==void 0)},mt.typeOf=v,mt}var yt={};/**
|
|
50
50
|
* @license React
|
|
51
51
|
* react-is.development.js
|
|
52
52
|
*
|
|
@@ -54,25 +54,25 @@ Valid keys: `+JSON.stringify(Object.keys(V),null," "));var B=fe(Y,X,Q,ee,U+"."+
|
|
|
54
54
|
*
|
|
55
55
|
* This source code is licensed under the MIT license found in the
|
|
56
56
|
* LICENSE file in the root directory of this source tree.
|
|
57
|
-
*/var
|
|
58
|
-
For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:
|
|
59
|
-
`)):console.error([`MUI: The \`theme.${
|
|
60
|
-
`)));const
|
|
61
|
-
`)),()=>{})}function us(t){return gr(t,"spacing",8,"spacing")}function mr(t,e){return typeof e=="string"||e==null?e:t(e)}function Ap(t,e){return n=>t.reduce((r,o)=>(r[o]=mr(e,n),r),{})}function Rp(t,e,n,r){if(!e.includes(n))return null;const o=Dp(n),i=Ap(o,r),s=t[n];return Dt(t,s,i)}function jc(t,e){const n=us(t.theme);return Object.keys(t).map(r=>Rp(t,e,r,n)).reduce(or,{})}function Pe(t){return jc(t,Do)}Pe.propTypes=process.env.NODE_ENV!=="production"?Do.reduce((t,e)=>(t[e]=Ft,t),{}):{};Pe.filterProps=Do;function Ne(t){return jc(t,To)}Ne.propTypes=process.env.NODE_ENV!=="production"?To.reduce((t,e)=>(t[e]=Ft,t),{}):{};Ne.filterProps=To;process.env.NODE_ENV!=="production"&&Tp.reduce((t,e)=>(t[e]=Ft,t),{});function Ao(...t){const e=t.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>e[i]?or(o,e[i](r)):o,{});return n.propTypes=process.env.NODE_ENV!=="production"?t.reduce((r,o)=>Object.assign(r,o.propTypes),{}):{},n.filterProps=t.reduce((r,o)=>r.concat(o.filterProps),[]),n}function rt(t){return typeof t!="number"?t:`${t}px solid`}function ot(t,e){return je({prop:t,themeKey:"borders",transform:e})}const _p=ot("border",rt),kp=ot("borderTop",rt),Mp=ot("borderRight",rt),Op=ot("borderBottom",rt),Ip=ot("borderLeft",rt),Pp=ot("borderColor"),Np=ot("borderTopColor"),jp=ot("borderRightColor"),Vp=ot("borderBottomColor"),$p=ot("borderLeftColor"),Bp=ot("outline",rt),Lp=ot("outlineColor"),Ro=t=>{if(t.borderRadius!==void 0&&t.borderRadius!==null){const e=gr(t.theme,"shape.borderRadius",4,"borderRadius"),n=r=>({borderRadius:mr(e,r)});return Dt(t,t.borderRadius,n)}return null};Ro.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Ft}:{};Ro.filterProps=["borderRadius"];Ao(_p,kp,Mp,Op,Ip,Pp,Np,jp,Vp,$p,Ro,Bp,Lp);const _o=t=>{if(t.gap!==void 0&&t.gap!==null){const e=gr(t.theme,"spacing",8,"gap"),n=r=>({gap:mr(e,r)});return Dt(t,t.gap,n)}return null};_o.propTypes=process.env.NODE_ENV!=="production"?{gap:Ft}:{};_o.filterProps=["gap"];const ko=t=>{if(t.columnGap!==void 0&&t.columnGap!==null){const e=gr(t.theme,"spacing",8,"columnGap"),n=r=>({columnGap:mr(e,r)});return Dt(t,t.columnGap,n)}return null};ko.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Ft}:{};ko.filterProps=["columnGap"];const Mo=t=>{if(t.rowGap!==void 0&&t.rowGap!==null){const e=gr(t.theme,"spacing",8,"rowGap"),n=r=>({rowGap:mr(e,r)});return Dt(t,t.rowGap,n)}return null};Mo.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Ft}:{};Mo.filterProps=["rowGap"];const Hp=je({prop:"gridColumn"}),zp=je({prop:"gridRow"}),Fp=je({prop:"gridAutoFlow"}),Wp=je({prop:"gridAutoColumns"}),Up=je({prop:"gridAutoRows"}),Gp=je({prop:"gridTemplateColumns"}),Yp=je({prop:"gridTemplateRows"}),qp=je({prop:"gridTemplateAreas"}),Qp=je({prop:"gridArea"});Ao(_o,ko,Mo,Hp,zp,Fp,Wp,Up,Gp,Yp,qp,Qp);function An(t,e){return e==="grey"?e:t}const Zp=je({prop:"color",themeKey:"palette",transform:An}),Kp=je({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:An}),Xp=je({prop:"backgroundColor",themeKey:"palette",transform:An});Ao(Zp,Kp,Xp);function qe(t){return t<=1&&t!==0?`${t*100}%`:t}const Jp=je({prop:"width",transform:qe}),ds=t=>{if(t.maxWidth!==void 0&&t.maxWidth!==null){const e=n=>{var o,i,s,a,l;const r=((s=(i=(o=t.theme)==null?void 0:o.breakpoints)==null?void 0:i.values)==null?void 0:s[n])||wo[n];return r?((l=(a=t.theme)==null?void 0:a.breakpoints)==null?void 0:l.unit)!=="px"?{maxWidth:`${r}${t.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:qe(n)}};return Dt(t,t.maxWidth,e)}return null};ds.filterProps=["maxWidth"];const eh=je({prop:"minWidth",transform:qe}),th=je({prop:"height",transform:qe}),nh=je({prop:"maxHeight",transform:qe}),rh=je({prop:"minHeight",transform:qe});je({prop:"size",cssProperty:"width",transform:qe});je({prop:"size",cssProperty:"height",transform:qe});const oh=je({prop:"boxSizing"});Ao(Jp,ds,eh,th,nh,rh,oh);const vr={border:{themeKey:"borders",transform:rt},borderTop:{themeKey:"borders",transform:rt},borderRight:{themeKey:"borders",transform:rt},borderBottom:{themeKey:"borders",transform:rt},borderLeft:{themeKey:"borders",transform:rt},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:rt},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ro},color:{themeKey:"palette",transform:An},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:An},backgroundColor:{themeKey:"palette",transform:An},p:{style:Ne},pt:{style:Ne},pr:{style:Ne},pb:{style:Ne},pl:{style:Ne},px:{style:Ne},py:{style:Ne},padding:{style:Ne},paddingTop:{style:Ne},paddingRight:{style:Ne},paddingBottom:{style:Ne},paddingLeft:{style:Ne},paddingX:{style:Ne},paddingY:{style:Ne},paddingInline:{style:Ne},paddingInlineStart:{style:Ne},paddingInlineEnd:{style:Ne},paddingBlock:{style:Ne},paddingBlockStart:{style:Ne},paddingBlockEnd:{style:Ne},m:{style:Pe},mt:{style:Pe},mr:{style:Pe},mb:{style:Pe},ml:{style:Pe},mx:{style:Pe},my:{style:Pe},margin:{style:Pe},marginTop:{style:Pe},marginRight:{style:Pe},marginBottom:{style:Pe},marginLeft:{style:Pe},marginX:{style:Pe},marginY:{style:Pe},marginInline:{style:Pe},marginInlineStart:{style:Pe},marginInlineEnd:{style:Pe},marginBlock:{style:Pe},marginBlockStart:{style:Pe},marginBlockEnd:{style:Pe},displayPrint:{cssProperty:!1,transform:t=>({"@media print":{display:t}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:_o},rowGap:{style:Mo},columnGap:{style:ko},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:qe},maxWidth:{style:ds},minWidth:{transform:qe},height:{transform:qe},maxHeight:{transform:qe},minHeight:{transform:qe},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 ih(...t){const e=t.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(e);return t.every(r=>n.size===Object.keys(r).length)}function sh(t,e){return typeof t=="function"?t(e):t}function ah(){function t(n,r,o,i){const s={[n]:r,theme:o},a=i[n];if(!a)return{[n]:r};const{cssProperty:l=n,themeKey:c,transform:u,style:f}=a;if(r==null)return null;if(c==="typography"&&r==="inherit")return{[n]:r};const p=xo(o,c)||{};return f?f(s):Dt(s,r,m=>{let g=Zr(p,u,m);return m===g&&typeof m=="string"&&(g=Zr(p,u,`${n}${m==="default"?"":cs(m)}`,m)),l===!1?g:{[l]:g}})}function e(n){const{sx:r,theme:o={},nested:i}=n||{};if(!r)return null;const s=o.unstable_sxConfig??vr;function a(l){let c=l;if(typeof l=="function")c=l(o);else if(typeof l!="object")return l;if(!c)return null;const u=Sp(o.breakpoints),f=Object.keys(u);let p=u;return Object.keys(c).forEach(h=>{const m=sh(c[h],o);if(m!=null)if(typeof m=="object")if(s[h])p=or(p,t(h,m,o,s));else{const g=Dt({theme:o},m,v=>({[h]:v}));ih(g,m)?p[h]=e({sx:m,theme:o,nested:!0}):p=or(p,g)}else p=or(p,t(h,m,o,s))}),!i&&o.modularCssLayers?{"@layer sx":ka(o,Oa(f,p))}:ka(o,Oa(f,p))}return Array.isArray(r)?r.map(a):a(r)}return e}const Pn=ah();Pn.filterProps=["sx"];const lh=t=>{var r;const e={systemProps:{},otherProps:{}},n=((r=t==null?void 0:t.theme)==null?void 0:r.unstable_sxConfig)??vr;return Object.keys(t).forEach(o=>{n[o]?e.systemProps[o]=t[o]:e.otherProps[o]=t[o]}),e};function ch(t){const{sx:e,...n}=t,{systemProps:r,otherProps:o}=lh(n);let i;return Array.isArray(e)?i=[r,...e]:typeof e=="function"?i=(...s)=>{const a=e(...s);return kt(a)?{...r,...a}:r}:i={...r,...e},{...o,sx:i}}function uh(t){for(var e=0,n,r=0,o=t.length;o>=4;++r,o-=4)n=t.charCodeAt(r)&255|(t.charCodeAt(++r)&255)<<8|(t.charCodeAt(++r)&255)<<16|(t.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,e=(n&65535)*1540483477+((n>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(o){case 3:e^=(t.charCodeAt(r+2)&255)<<16;case 2:e^=(t.charCodeAt(r+1)&255)<<8;case 1:e^=t.charCodeAt(r)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var dh={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 fh(t){var e=Object.create(null);return function(n){return e[n]===void 0&&(e[n]=t(n)),e[n]}}var ph=/[A-Z]|^ms/g,hh=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Vc=function(e){return e.charCodeAt(1)===45},Pa=function(e){return e!=null&&typeof e!="boolean"},ai=fh(function(t){return Vc(t)?t:t.replace(ph,"-$&").toLowerCase()}),Na=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(hh,function(r,o,i){return Ot={name:o,styles:i,next:Ot},o})}return dh[e]!==1&&!Vc(e)&&typeof n=="number"&&n!==0?n+"px":n};function Kr(t,e,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 Ot={name:o.name,styles:o.styles,next:Ot},o.name;var i=n;if(i.styles!==void 0){var s=i.next;if(s!==void 0)for(;s!==void 0;)Ot={name:s.name,styles:s.styles,next:Ot},s=s.next;var a=i.styles+";";return a}return gh(t,e,n)}}var l=n;return l}function gh(t,e,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Kr(t,e,n[o])+";";else for(var i in n){var s=n[i];if(typeof s!="object"){var a=s;Pa(a)&&(r+=ai(i)+":"+Na(i,a)+";")}else if(Array.isArray(s)&&typeof s[0]=="string"&&e==null)for(var l=0;l<s.length;l++)Pa(s[l])&&(r+=ai(i)+":"+Na(i,s[l])+";");else{var c=Kr(t,e,s);switch(i){case"animation":case"animationName":{r+=ai(i)+":"+c+";";break}default:r+=i+"{"+c+"}"}}}return r}var ja=/label:\s*([^\s;{]+)\s*(;|$)/g,Ot;function mh(t,e,n){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var r=!0,o="";Ot=void 0;var i=t[0];if(i==null||i.raw===void 0)r=!1,o+=Kr(n,e,i);else{var s=i;o+=s[0]}for(var a=1;a<t.length;a++)if(o+=Kr(n,e,t[a]),r){var l=i;o+=l[a]}ja.lastIndex=0;for(var c="",u;(u=ja.exec(o))!==null;)c+="-"+u[1];var f=uh(o)+c;return{name:f,styles:o,next:Ot}}/**
|
|
57
|
+
*/var Qb;function II(){return Qb||(Qb=1,process.env.NODE_ENV!=="production"&&function(){function e(p){if(typeof p=="object"&&p!==null){var y=p.$$typeof;switch(y){case t:switch(p=p.type,p){case r:case i:case o:case d:case f:case m:return p;default:switch(p=p&&p.$$typeof,p){case l:case u:case b:case g:return p;case s:return p;default:return y}}case n:return y}}}var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),m=Symbol.for("react.view_transition"),v=Symbol.for("react.client.reference");yt.ContextConsumer=s,yt.ContextProvider=l,yt.Element=t,yt.ForwardRef=u,yt.Fragment=r,yt.Lazy=b,yt.Memo=g,yt.Portal=n,yt.Profiler=i,yt.StrictMode=o,yt.Suspense=d,yt.SuspenseList=f,yt.isContextConsumer=function(p){return e(p)===s},yt.isContextProvider=function(p){return e(p)===l},yt.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===t},yt.isForwardRef=function(p){return e(p)===u},yt.isFragment=function(p){return e(p)===r},yt.isLazy=function(p){return e(p)===b},yt.isMemo=function(p){return e(p)===g},yt.isPortal=function(p){return e(p)===n},yt.isProfiler=function(p){return e(p)===i},yt.isStrictMode=function(p){return e(p)===o},yt.isSuspense=function(p){return e(p)===d},yt.isSuspenseList=function(p){return e(p)===f},yt.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===r||p===i||p===o||p===d||p===f||typeof p=="object"&&p!==null&&(p.$$typeof===b||p.$$typeof===g||p.$$typeof===l||p.$$typeof===s||p.$$typeof===u||p.$$typeof===v||p.getModuleId!==void 0)},yt.typeOf=e}()),yt}var Zb;function NI(){return Zb||(Zb=1,process.env.NODE_ENV==="production"?Fc.exports=PI():Fc.exports=II()),Fc.exports}var Ks=NI();function Vo(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 ox(e){if($.isValidElement(e)||Ks.isValidElementType(e)||!Vo(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=ox(e[n])}),t}function Li(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return Vo(e)&&Vo(t)&&Object.keys(t).forEach(o=>{$.isValidElement(t[o])||Ks.isValidElementType(t[o])?r[o]=t[o]:Vo(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Vo(e[o])?r[o]=Li(e[o],t[o],n):n.clone?r[o]=Vo(t[o])?ox(t[o]):t[o]:r[o]=t[o]}),r}function gl(e,t){return t?Li(e,t,{clone:!1}):e}const oi=process.env.NODE_ENV!=="production"?w.oneOfType([w.number,w.string,w.object,w.array]):{};function Kb(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,o)=>{var s,l;const i=/min-width:\s*([0-9.]+)/;return+(((s=r.match(i))==null?void 0:s[1])||0)-+(((l=o.match(i))==null?void 0:l[1])||0)});return n.length?n.reduce((r,o)=>{const i=t[o];return delete r[o],r[o]=i,r},{...t}):t}function jI(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function $I(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\`.`:zu(18,`(${t})`));return null}const[,r,o]=n,i=Number.isNaN(+r)?r||0:+r;return e.containerQueries(o).up(i)}function zI(e){const t=(i,s)=>i.replace("@media",s?`@container ${s}`:"@container");function n(i,s){i.up=(...l)=>t(e.breakpoints.up(...l),s),i.down=(...l)=>t(e.breakpoints.down(...l),s),i.between=(...l)=>t(e.breakpoints.between(...l),s),i.only=(...l)=>t(e.breakpoints.only(...l),s),i.not=(...l)=>{const u=t(e.breakpoints.not(...l),s);return u.includes("not all and")?u.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):u}}const r={},o=i=>(n(r,i),r);return n(o),{...e,containerQueries:o}}const Rd={xs:0,sm:600,md:900,lg:1200,xl:1536},Jb={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Rd[e]}px)`},LI={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:Rd[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function vo(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||Jb;return t.reduce((s,l,u)=>(s[i.up(i.keys[u])]=n(t[u]),s),{})}if(typeof t=="object"){const i=r.breakpoints||Jb;return Object.keys(t).reduce((s,l)=>{if(jI(i.keys,l)){const u=$I(r.containerQueries?r:LI,l);u&&(s[u]=n(t[l],l))}else if(Object.keys(i.values||Rd).includes(l)){const u=i.up(l);s[u]=n(t[l],l)}else{const u=l;s[u]=t[u]}return s},{})}return n(t)}function BI(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function e0(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function Td(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function Lu(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Td(e,n)||r,t&&(o=t(o,r,e)),o}function Ft(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=s=>{if(s[t]==null)return null;const l=s[t],u=s.theme,d=Td(u,r)||{};return vo(s,l,g=>{let b=Lu(d,o,g);return g===b&&typeof g=="string"&&(b=Lu(d,o,`${t}${g==="default"?"":kg(g)}`,g)),n===!1?b:{[n]:b}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[t]:oi}:{},i.filterProps=[t],i}function VI(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const HI={m:"margin",p:"padding"},FI={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},t0={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},UI=VI(e=>{if(e.length>2)if(t0[e])e=t0[e];else return[e];const[t,n]=e.split(""),r=HI[t],o=FI[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),Od=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Ad=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],WI=[...Od,...Ad];function $l(e,t,n,r){const o=Td(e,t,!0)??n;return typeof o=="number"||typeof o=="string"?i=>typeof i=="string"?i:(process.env.NODE_ENV!=="production"&&typeof i!="number"&&console.error(`MUI: Expected ${r} argument to be a number or a string, got ${i}.`),typeof o=="string"?o.startsWith("var(")&&i===0?0:o.startsWith("var(")&&i===1?o:`calc(${i} * ${o})`:o*i):Array.isArray(o)?i=>{if(typeof i=="string")return i;const s=Math.abs(i);process.env.NODE_ENV!=="production"&&(Number.isInteger(s)?s>o.length-1&&console.error([`MUI: The value provided (${s}) overflows.`,`The supported values are: ${JSON.stringify(o)}.`,`${s} > ${o.length-1}, you need to add the missing values.`].join(`
|
|
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[s];return i>=0?l:typeof l=="number"?-l:typeof l=="string"&&l.startsWith("var(")?`calc(-1 * ${l})`:`-${l}`}:typeof o=="function"?o:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${o}) is invalid.`,"It should be a number, an array or a function."].join(`
|
|
61
|
+
`)),()=>{})}function Mg(e){return $l(e,"spacing",8,"spacing")}function zl(e,t){return typeof t=="string"||t==null?t:e(t)}function YI(e,t){return n=>e.reduce((r,o)=>(r[o]=zl(t,n),r),{})}function GI(e,t,n,r){if(!t.includes(n))return null;const o=UI(n),i=YI(o,r),s=e[n];return vo(e,s,i)}function ix(e,t){const n=Mg(e.theme);return Object.keys(e).map(r=>GI(e,t,r,n)).reduce(gl,{})}function Nt(e){return ix(e,Od)}Nt.propTypes=process.env.NODE_ENV!=="production"?Od.reduce((e,t)=>(e[t]=oi,e),{}):{};Nt.filterProps=Od;function jt(e){return ix(e,Ad)}jt.propTypes=process.env.NODE_ENV!=="production"?Ad.reduce((e,t)=>(e[t]=oi,e),{}):{};jt.filterProps=Ad;process.env.NODE_ENV!=="production"&&WI.reduce((e,t)=>(e[t]=oi,e),{});function kd(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>t[i]?gl(o,t[i](r)):o,{});return n.propTypes=process.env.NODE_ENV!=="production"?e.reduce((r,o)=>Object.assign(r,o.propTypes),{}):{},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function or(e){return typeof e!="number"?e:`${e}px solid`}function fr(e,t){return Ft({prop:e,themeKey:"borders",transform:t})}const qI=fr("border",or),XI=fr("borderTop",or),QI=fr("borderRight",or),ZI=fr("borderBottom",or),KI=fr("borderLeft",or),JI=fr("borderColor"),eN=fr("borderTopColor"),tN=fr("borderRightColor"),nN=fr("borderBottomColor"),rN=fr("borderLeftColor"),oN=fr("outline",or),iN=fr("outlineColor"),Md=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=$l(e.theme,"shape.borderRadius",4,"borderRadius"),n=r=>({borderRadius:zl(t,r)});return vo(e,e.borderRadius,n)}return null};Md.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:oi}:{};Md.filterProps=["borderRadius"];kd(qI,XI,QI,ZI,KI,JI,eN,tN,nN,rN,Md,oN,iN);const Pd=e=>{if(e.gap!==void 0&&e.gap!==null){const t=$l(e.theme,"spacing",8,"gap"),n=r=>({gap:zl(t,r)});return vo(e,e.gap,n)}return null};Pd.propTypes=process.env.NODE_ENV!=="production"?{gap:oi}:{};Pd.filterProps=["gap"];const Id=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=$l(e.theme,"spacing",8,"columnGap"),n=r=>({columnGap:zl(t,r)});return vo(e,e.columnGap,n)}return null};Id.propTypes=process.env.NODE_ENV!=="production"?{columnGap:oi}:{};Id.filterProps=["columnGap"];const Nd=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=$l(e.theme,"spacing",8,"rowGap"),n=r=>({rowGap:zl(t,r)});return vo(e,e.rowGap,n)}return null};Nd.propTypes=process.env.NODE_ENV!=="production"?{rowGap:oi}:{};Nd.filterProps=["rowGap"];const sN=Ft({prop:"gridColumn"}),aN=Ft({prop:"gridRow"}),lN=Ft({prop:"gridAutoFlow"}),cN=Ft({prop:"gridAutoColumns"}),uN=Ft({prop:"gridAutoRows"}),dN=Ft({prop:"gridTemplateColumns"}),fN=Ft({prop:"gridTemplateRows"}),pN=Ft({prop:"gridTemplateAreas"}),hN=Ft({prop:"gridArea"});kd(Pd,Id,Nd,sN,aN,lN,cN,uN,dN,fN,pN,hN);function Fs(e,t){return t==="grey"?t:e}const gN=Ft({prop:"color",themeKey:"palette",transform:Fs}),mN=Ft({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Fs}),yN=Ft({prop:"backgroundColor",themeKey:"palette",transform:Fs});kd(gN,mN,yN);function jn(e){return e<=1&&e!==0?`${e*100}%`:e}const vN=Ft({prop:"width",transform:jn}),Pg=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var o,i,s,l,u;const r=((s=(i=(o=e.theme)==null?void 0:o.breakpoints)==null?void 0:i.values)==null?void 0:s[n])||Rd[n];return r?((u=(l=e.theme)==null?void 0:l.breakpoints)==null?void 0:u.unit)!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:jn(n)}};return vo(e,e.maxWidth,t)}return null};Pg.filterProps=["maxWidth"];const bN=Ft({prop:"minWidth",transform:jn}),wN=Ft({prop:"height",transform:jn}),SN=Ft({prop:"maxHeight",transform:jn}),EN=Ft({prop:"minHeight",transform:jn});Ft({prop:"size",cssProperty:"width",transform:jn});Ft({prop:"size",cssProperty:"height",transform:jn});const xN=Ft({prop:"boxSizing"});kd(vN,Pg,bN,wN,SN,EN,xN);const Ll={border:{themeKey:"borders",transform:or},borderTop:{themeKey:"borders",transform:or},borderRight:{themeKey:"borders",transform:or},borderBottom:{themeKey:"borders",transform:or},borderLeft:{themeKey:"borders",transform:or},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:or},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Md},color:{themeKey:"palette",transform:Fs},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Fs},backgroundColor:{themeKey:"palette",transform:Fs},p:{style:jt},pt:{style:jt},pr:{style:jt},pb:{style:jt},pl:{style:jt},px:{style:jt},py:{style:jt},padding:{style:jt},paddingTop:{style:jt},paddingRight:{style:jt},paddingBottom:{style:jt},paddingLeft:{style:jt},paddingX:{style:jt},paddingY:{style:jt},paddingInline:{style:jt},paddingInlineStart:{style:jt},paddingInlineEnd:{style:jt},paddingBlock:{style:jt},paddingBlockStart:{style:jt},paddingBlockEnd:{style:jt},m:{style:Nt},mt:{style:Nt},mr:{style:Nt},mb:{style:Nt},ml:{style:Nt},mx:{style:Nt},my:{style:Nt},margin:{style:Nt},marginTop:{style:Nt},marginRight:{style:Nt},marginBottom:{style:Nt},marginLeft:{style:Nt},marginX:{style:Nt},marginY:{style:Nt},marginInline:{style:Nt},marginInlineStart:{style:Nt},marginInlineEnd:{style:Nt},marginBlock:{style:Nt},marginBlockStart:{style:Nt},marginBlockEnd:{style:Nt},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:Pd},rowGap:{style:Nd},columnGap:{style:Id},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:jn},maxWidth:{style:Pg},minWidth:{transform:jn},height:{transform:jn},maxHeight:{transform:jn},minHeight:{transform:jn},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 CN(...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 DN(e,t){return typeof e=="function"?e(t):e}function _N(){function e(n,r,o,i){const s={[n]:r,theme:o},l=i[n];if(!l)return{[n]:r};const{cssProperty:u=n,themeKey:d,transform:f,style:g}=l;if(r==null)return null;if(d==="typography"&&r==="inherit")return{[n]:r};const b=Td(o,d)||{};return g?g(s):vo(s,r,v=>{let p=Lu(b,f,v);return v===p&&typeof v=="string"&&(p=Lu(b,f,`${n}${v==="default"?"":kg(v)}`,v)),u===!1?p:{[u]:p}})}function t(n){const{sx:r,theme:o={},nested:i}=n||{};if(!r)return null;const s=o.unstable_sxConfig??Ll;function l(u){let d=u;if(typeof u=="function")d=u(o);else if(typeof u!="object")return u;if(!d)return null;const f=BI(o.breakpoints),g=Object.keys(f);let b=f;return Object.keys(d).forEach(m=>{const v=DN(d[m],o);if(v!=null)if(typeof v=="object")if(s[m])b=gl(b,e(m,v,o,s));else{const p=vo({theme:o},v,y=>({[m]:y}));CN(p,v)?b[m]=t({sx:v,theme:o,nested:!0}):b=gl(b,p)}else b=gl(b,e(m,v,o,s))}),!i&&o.modularCssLayers?{"@layer sx":Kb(o,e0(g,b))}:Kb(o,e0(g,b))}return Array.isArray(r)?r.map(l):l(r)}return t}const Js=_N();Js.filterProps=["sx"];const RN=e=>{var r;const t={systemProps:{},otherProps:{}},n=((r=e==null?void 0:e.theme)==null?void 0:r.unstable_sxConfig)??Ll;return Object.keys(e).forEach(o=>{n[o]?t.systemProps[o]=e[o]:t.otherProps[o]=e[o]}),t};function TN(e){const{sx:t,...n}=e,{systemProps:r,otherProps:o}=RN(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...s)=>{const l=t(...s);return Vo(l)?{...r,...l}:r}:i={...r,...t},{...o,sx:i}}function ON(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 AN={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 kN(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var MN=/[A-Z]|^ms/g,PN=/_EMO_([^_]+?)_([^]*?)_EMO_/g,sx=function(t){return t.charCodeAt(1)===45},n0=function(t){return t!=null&&typeof t!="boolean"},Wp=kN(function(e){return sx(e)?e:e.replace(MN,"-$&").toLowerCase()}),r0=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(PN,function(r,o,i){return Wo={name:o,styles:i,next:Wo},o})}return AN[t]!==1&&!sx(t)&&typeof n=="number"&&n!==0?n+"px":n};function Bu(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 Wo={name:o.name,styles:o.styles,next:Wo},o.name;var i=n;if(i.styles!==void 0){var s=i.next;if(s!==void 0)for(;s!==void 0;)Wo={name:s.name,styles:s.styles,next:Wo},s=s.next;var l=i.styles+";";return l}return IN(e,t,n)}}var u=n;return u}function IN(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Bu(e,t,n[o])+";";else for(var i in n){var s=n[i];if(typeof s!="object"){var l=s;n0(l)&&(r+=Wp(i)+":"+r0(i,l)+";")}else if(Array.isArray(s)&&typeof s[0]=="string"&&t==null)for(var u=0;u<s.length;u++)n0(s[u])&&(r+=Wp(i)+":"+r0(i,s[u])+";");else{var d=Bu(e,t,s);switch(i){case"animation":case"animationName":{r+=Wp(i)+":"+d+";";break}default:r+=i+"{"+d+"}"}}}return r}var o0=/label:\s*([^\s;{]+)\s*(;|$)/g,Wo;function NN(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="";Wo=void 0;var i=e[0];if(i==null||i.raw===void 0)r=!1,o+=Bu(n,t,i);else{var s=i;o+=s[0]}for(var l=1;l<e.length;l++)if(o+=Bu(n,t,e[l]),r){var u=i;o+=u[l]}o0.lastIndex=0;for(var d="",f;(f=o0.exec(o))!==null;)d+="-"+f[1];var g=ON(o)+d;return{name:g,styles:o,next:Wo}}/**
|
|
62
62
|
* @mui/styled-engine v7.3.3
|
|
63
63
|
*
|
|
64
64
|
* @license MIT
|
|
65
65
|
* This source code is licensed under the MIT license found in the
|
|
66
66
|
* LICENSE file in the root directory of this source tree.
|
|
67
|
-
*/function
|
|
68
|
-
`)):r.some(i=>i===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),n(...r)}:n}function
|
|
69
|
-
`));let
|
|
70
|
-
`));const
|
|
71
|
-
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:
|
|
72
|
-
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:Qr(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const Hh=t=>{const e=Vt(t);return e.values.slice(0,3).map((n,r)=>e.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},er=(t,e)=>{try{return Hh(t)}catch{return e&&process.env.NODE_ENV!=="production"&&console.warn(e),t}};function Oo(t){const{type:e,colorSpace:n}=t;let{values:r}=t;return e.includes("rgb")?r=r.map((o,i)=>i<3?parseInt(o,10):o):e.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),e.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${e}(${r})`}function qc(t){t=Vt(t);const{values:e}=t,n=e[0],r=e[1]/100,o=e[2]/100,i=r*Math.min(o,1-o),s=(c,u=(c+n/30)%12)=>o-i*Math.max(Math.min(u-3,9-u,1),-1);let a="rgb";const l=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return t.type==="hsla"&&(a+="a",l.push(e[3])),Oo({type:a,values:l})}function Vi(t){t=Vt(t);let e=t.type==="hsl"||t.type==="hsla"?Vt(qc(t)).values:t.values;return e=e.map(n=>(t.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*e[0]+.7152*e[1]+.0722*e[2]).toFixed(3))}function Ba(t,e){const n=Vi(t),r=Vi(e);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function $t(t,e){return t=Vt(t),e=ps(e),(t.type==="rgb"||t.type==="hsl")&&(t.type+="a"),t.type==="color"?t.values[3]=`/${e}`:t.values[3]=e,Oo(t)}function Ut(t,e,n){try{return $t(t,e)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),t}}function Io(t,e){if(t=Vt(t),e=ps(e),t.type.includes("hsl"))t.values[2]*=1-e;else if(t.type.includes("rgb")||t.type.includes("color"))for(let n=0;n<3;n+=1)t.values[n]*=1-e;return Oo(t)}function Ce(t,e,n){try{return Io(t,e)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),t}}function Po(t,e){if(t=Vt(t),e=ps(e),t.type.includes("hsl"))t.values[2]+=(100-t.values[2])*e;else if(t.type.includes("rgb"))for(let n=0;n<3;n+=1)t.values[n]+=(255-t.values[n])*e;else if(t.type.includes("color"))for(let n=0;n<3;n+=1)t.values[n]+=(1-t.values[n])*e;return Oo(t)}function we(t,e,n){try{return Po(t,e)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),t}}function zh(t,e=.15){return Vi(t)>.5?Io(t,e):Po(t,e)}function Ar(t,e,n){try{return zh(t,e)}catch{return t}}const Fh=x.createContext();process.env.NODE_ENV!=="production"&&(d.node,d.bool);const yr=()=>x.useContext(Fh)??!1,Wh=x.createContext(void 0);process.env.NODE_ENV!=="production"&&(d.node,d.object);function Uh(t){const{theme:e,name:n,props:r}=t;if(!e||!e.components||!e.components[n])return r;const o=e.components[n];return o.defaultProps?Xr(o.defaultProps,r,e.components.mergeClassNameAndStyle):!o.styleOverrides&&!o.variants?Xr(o,r,e.components.mergeClassNameAndStyle):r}function Gh({props:t,name:e}){const n=x.useContext(Wh);return Uh({props:t,name:e,theme:{components:n}})}const La={theme:void 0};function Yh(t){let e,n;return function(o){let i=e;return(i===void 0||o.theme!==n)&&(La.theme=o.theme,i=zc(t(La)),e=i,n=o.theme),i}}function qh(t=""){function e(...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(--${t?`${t}-`:""}${o}${e(...r.slice(1))})`:`, ${o}`}return(r,...o)=>`var(--${t?`${t}-`:""}${r}${e(...o)})`}const Ha=(t,e,n,r=[])=>{let o=t;e.forEach((i,s)=>{s===e.length-1?Array.isArray(o)?o[Number(i)]=n:o&&typeof o=="object"&&(o[i]=n):o&&typeof o=="object"&&(o[i]||(o[i]=r.includes(i)?[]:{}),o=o[i])})},Qh=(t,e,n)=>{function r(o,i=[],s=[]){Object.entries(o).forEach(([a,l])=>{(!n||n&&!n([...i,a]))&&l!=null&&(typeof l=="object"&&Object.keys(l).length>0?r(l,[...i,a],Array.isArray(l)?[...s,a]:s):e([...i,a],l,s))})}r(t)},Zh=(t,e)=>typeof e=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>t.includes(r))||t[t.length-1].toLowerCase().includes("opacity")?e:`${e}px`:e;function ci(t,e){const{prefix:n,shouldSkipGeneratingVar:r}=e||{},o={},i={},s={};return Qh(t,(a,l,c)=>{if((typeof l=="string"||typeof l=="number")&&(!r||!r(a,l))){const u=`--${n?`${n}-`:""}${a.join("-")}`,f=Zh(a,l);Object.assign(o,{[u]:f}),Ha(i,a,`var(${u})`,c),Ha(s,a,`var(${u}, ${f})`,c)}},a=>a[0]==="vars"),{css:o,vars:i,varsWithDefaults:s}}function Kh(t,e={}){const{getSelector:n=b,disableCssColorScheme:r,colorSchemeSelector:o,enableContrastVars:i}=e,{colorSchemes:s={},components:a,defaultColorScheme:l="light",...c}=t,{vars:u,css:f,varsWithDefaults:p}=ci(c,e);let h=p;const m={},{[l]:g,...v}=s;if(Object.entries(v||{}).forEach(([C,A])=>{const{vars:T,css:k,varsWithDefaults:P}=ci(A,e);h=rn(h,P),m[C]={css:k,vars:T}}),g){const{css:C,vars:A,varsWithDefaults:T}=ci(g,e);h=rn(h,T),m[l]={css:C,vars:A}}function b(C,A){var k,P;let T=o;if(o==="class"&&(T=".%s"),o==="data"&&(T="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(T=`[${o}="%s"]`),C){if(T==="media")return t.defaultColorScheme===C?":root":{[`@media (prefers-color-scheme: ${((P=(k=s[C])==null?void 0:k.palette)==null?void 0:P.mode)||C})`]:{":root":A}};if(T)return t.defaultColorScheme===C?`:root, ${T.replace("%s",String(C))}`:T.replace("%s",String(C))}return":root"}return{vars:h,generateThemeVars:()=>{let C={...u};return Object.entries(m).forEach(([,{vars:A}])=>{C=rn(C,A)}),C},generateStyleSheets:()=>{var H,W;const C=[],A=t.defaultColorScheme||"light";function T($,y){Object.keys(y).length&&C.push(typeof $=="string"?{[$]:{...y}}:$)}T(n(void 0,{...f}),f);const{[A]:k,...P}=m;if(k){const{css:$}=k,y=(W=(H=s[A])==null?void 0:H.palette)==null?void 0:W.mode,I=!r&&y?{colorScheme:y,...$}:{...$};T(n(A,{...I}),I)}return Object.entries(P).forEach(([$,{css:y}])=>{var O,N;const I=(N=(O=s[$])==null?void 0:O.palette)==null?void 0:N.mode,_=!r&&I?{colorScheme:I,...y}:{...y};T(n($,{..._}),_)}),i&&C.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)"}}),C}}}function Xh(t){return function(n){return t==="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})`):t?t.startsWith("data-")&&!t.includes("%s")?`[${t}="${n}"] &`:t==="class"?`.${n} &`:t==="data"?`[data-${n}] &`:`${t.replace("%s",n)} &`:"&"}}function Mt(t){if(typeof t!="object"||t===null)return!1;const e=Object.getPrototypeOf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function Qc(t){if(x.isValidElement(t)||In.isValidElementType(t)||!Mt(t))return t;const e={};return Object.keys(t).forEach(n=>{e[n]=Qc(t[n])}),e}function sn(t,e,n={clone:!0}){const r=n.clone?{...t}:t;return Mt(t)&&Mt(e)&&Object.keys(e).forEach(o=>{x.isValidElement(e[o])||In.isValidElementType(e[o])?r[o]=e[o]:Mt(e[o])&&Object.prototype.hasOwnProperty.call(t,o)&&Mt(t[o])?r[o]=sn(t[o],e[o],n):n.clone?r[o]=Mt(e[o])?Qc(e[o]):e[o]:r[o]=e[o]}),r}const ur={black:"#000",white:"#fff"},Jh={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"},vn={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},yn={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Qn={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},bn={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},En={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Sn={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function Zc(){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:ur.white,default:ur.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 Kc=Zc();function Xc(){return{text:{primary:ur.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:ur.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 $i=Xc();function za(t,e,n,r){const o=r.light||r,i=r.dark||r*1.5;t[e]||(t.hasOwnProperty(n)?t[e]=t[n]:e==="light"?t.light=Po(t.main,o):e==="dark"&&(t.dark=Io(t.main,i)))}function Fa(t,e,n,r,o){const i=o.light||o,s=o.dark||o*1.5;e[n]||(e.hasOwnProperty(r)?e[n]=e[r]:n==="light"?e.light=`color-mix(in ${t}, ${e.main}, #fff ${(i*100).toFixed(0)}%)`:n==="dark"&&(e.dark=`color-mix(in ${t}, ${e.main}, #000 ${(s*100).toFixed(0)}%)`))}function eg(t="light"){return t==="dark"?{main:bn[200],light:bn[50],dark:bn[400]}:{main:bn[700],light:bn[400],dark:bn[800]}}function tg(t="light"){return t==="dark"?{main:vn[200],light:vn[50],dark:vn[400]}:{main:vn[500],light:vn[300],dark:vn[700]}}function ng(t="light"){return t==="dark"?{main:yn[500],light:yn[300],dark:yn[700]}:{main:yn[700],light:yn[400],dark:yn[800]}}function rg(t="light"){return t==="dark"?{main:En[400],light:En[300],dark:En[700]}:{main:En[700],light:En[500],dark:En[900]}}function og(t="light"){return t==="dark"?{main:Sn[400],light:Sn[300],dark:Sn[700]}:{main:Sn[800],light:Sn[500],dark:Sn[900]}}function ig(t="light"){return t==="dark"?{main:Qn[400],light:Qn[300],dark:Qn[700]}:{main:"#ed6c02",light:Qn[500],dark:Qn[900]}}function sg(t){return`oklch(from ${t} var(--__l) 0 h / var(--__a))`}function hs(t){const{mode:e="light",contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:o,...i}=t,s=t.primary||eg(e),a=t.secondary||tg(e),l=t.error||ng(e),c=t.info||rg(e),u=t.success||og(e),f=t.warning||ig(e);function p(v){if(o)return sg(v);const b=Ba(v,$i.text.primary)>=n?$i.text.primary:Kc.text.primary;if(process.env.NODE_ENV!=="production"){const S=Ba(v,b);S<3&&console.error([`MUI: The contrast ratio of ${S}:1 for ${b} 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
|
|
74
|
-
The color object needs to have a \`main\` property or a \`${
|
|
75
|
-
\`color.main\` should be a string, but \`${JSON.stringify(
|
|
67
|
+
*/function jN(e,t){const n=KE(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(i=>i===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),n(...r)}:n}function $N(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const i0=[];function Bi(e){return i0[0]=e,NN(i0)}const zN=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 LN(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,i=zN(t),s=Object.keys(i);function l(b){return`@media (min-width:${typeof t[b]=="number"?t[b]:b}${n})`}function u(b){return`@media (max-width:${(typeof t[b]=="number"?t[b]:b)-r/100}${n})`}function d(b,m){const v=s.indexOf(m);return`@media (min-width:${typeof t[b]=="number"?t[b]:b}${n}) and (max-width:${(v!==-1&&typeof t[s[v]]=="number"?t[s[v]]:m)-r/100}${n})`}function f(b){return s.indexOf(b)+1<s.length?d(b,s[s.indexOf(b)+1]):l(b)}function g(b){const m=s.indexOf(b);return m===0?l(s[1]):m===s.length-1?u(s[m]):d(b,s[s.indexOf(b)+1]).replace("@media","@media not all and")}return{keys:s,values:i,up:l,down:u,between:d,only:f,not:g,unit:n,...o}}const BN={borderRadius:4};function ax(e=8,t=Mg({spacing:e})){if(e.mui)return e;const n=(...r)=>(process.env.NODE_ENV!=="production"&&(r.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${r.length}`)),(r.length===0?[1]:r).map(i=>{const s=t(i);return typeof s=="number"?`${s}px`:s}).join(" "));return n.mui=!0,n}function VN(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 Ig(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={},...s}=e,l=LN(n),u=ax(o);let d=Li({breakpoints:l,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:u,shape:{...BN,...i}},s);return d=zI(d),d.applyStyles=VN,d=t.reduce((f,g)=>Li(f,g),d),d.unstable_sxConfig={...Ll,...s==null?void 0:s.unstable_sxConfig},d.unstable_sx=function(g){return Js({sx:g,theme:this})},d}function HN(e){return Object.keys(e).length===0}function lx(e=null){const t=$.useContext(dr.ThemeContext);return!t||HN(t)?e:t}const FN=Ig();function cx(e=FN){return lx(e)}function ux(e,t=""){return e.displayName||e.name||t}function s0(e,t,n){const r=ux(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function UN(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return ux(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Ks.ForwardRef:return s0(e,e.render,"ForwardRef");case Ks.Memo:return s0(e,e.type,"memo");default:return}}}function dx(e){const{variants:t,...n}=e,r={variants:t,style:Bi(n),isProcessed:!0};return r.style===n||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=Bi(o.style))}),r}const WN=Ig();function Yp(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function Ii(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function YN(e){return e?(t,n)=>n[e]:null}function GN(e,t,n){e.theme=ZN(e.theme)?n:e.theme[t]||e.theme}function Cu(e,t,n){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(o=>Cu(e,o,n));if(Array.isArray(r==null?void 0:r.variants)){let o;if(r.isProcessed)o=n?Ii(r.style,n):r.style;else{const{variants:i,...s}=r;o=n?Ii(Bi(s),n):s}return fx(e,r.variants,[o],n)}return r!=null&&r.isProcessed?n?Ii(Bi(r.style),n):r.style:n?Ii(Bi(r),n):r}function fx(e,t,n=[],r=void 0){var i;let o;e:for(let s=0;s<t.length;s+=1){const l=t[s];if(typeof l.props=="function"){if(o??(o={...e,...e.ownerState,ownerState:e.ownerState}),!l.props(o))continue}else for(const u in l.props)if(e[u]!==l.props[u]&&((i=e.ownerState)==null?void 0:i[u])!==l.props[u])continue e;typeof l.style=="function"?(o??(o={...e,...e.ownerState,ownerState:e.ownerState}),n.push(r?Ii(Bi(l.style(o)),r):l.style(o))):n.push(r?Ii(Bi(l.style),r):l.style)}return n}function qN(e={}){const{themeId:t,defaultTheme:n=WN,rootShouldForwardProp:r=Yp,slotShouldForwardProp:o=Yp}=e;function i(l){GN(l,t,n)}return(l,u={})=>{$N(l,T=>T.filter(O=>O!==Js));const{name:d,slot:f,skipVariantsResolver:g,skipSx:b,overridesResolver:m=YN(px(f)),...v}=u,p=d&&d.startsWith("Mui")||f?"components":"custom",y=g!==void 0?g:f&&f!=="Root"&&f!=="root"||!1,S=b||!1;let E=Yp;f==="Root"||f==="root"?E=r:f?E=o:KN(l)&&(E=void 0);const D=jN(l,{shouldForwardProp:E,label:QN(d,f),...v}),R=T=>{if(T.__emotion_real===T)return T;if(typeof T=="function")return function(P){return Cu(P,T,P.theme.modularCssLayers?p:void 0)};if(Vo(T)){const O=dx(T);return function(H){return O.variants?Cu(H,O,H.theme.modularCssLayers?p:void 0):H.theme.modularCssLayers?Ii(O.style,p):O.style}}return T},C=(...T)=>{const O=[],P=T.map(R),H=[];if(O.push(i),d&&m&&H.push(function(L){var te,se;const U=(se=(te=L.theme.components)==null?void 0:te[d])==null?void 0:se.styleOverrides;if(!U)return null;const G={};for(const de in U)G[de]=Cu(L,U[de],L.theme.modularCssLayers?"theme":void 0);return m(L,G)}),d&&!y&&H.push(function(L){var G,te;const I=L.theme,U=(te=(G=I==null?void 0:I.components)==null?void 0:G[d])==null?void 0:te.variants;return U?fx(L,U,[],L.theme.modularCssLayers?"theme":void 0):null}),S||H.push(Js),Array.isArray(P[0])){const x=P.shift(),L=new Array(O.length).fill(""),I=new Array(H.length).fill("");let U;U=[...L,...x,...I],U.raw=[...L,...x.raw,...I],O.unshift(U)}const Q=[...O,...P,...H],q=D(...Q);return l.muiName&&(q.muiName=l.muiName),process.env.NODE_ENV!=="production"&&(q.displayName=XN(d,f,l)),q};return D.withConfig&&(C.withConfig=D.withConfig),C}}function XN(e,t,n){return e?`${e}${kg(t||"")}`:`Styled(${UN(n)})`}function QN(e,t){let n;return process.env.NODE_ENV!=="production"&&e&&(n=`${e}-${px(t||"Root")}`),n}function ZN(e){for(const t in e)return!1;return!0}function KN(e){return typeof e=="string"&&e.charCodeAt(0)>96}function px(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function Vu(e,t,n=!1){const r={...t};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const i=o;if(i==="components"||i==="slots")r[i]={...e[i],...r[i]};else if(i==="componentsProps"||i==="slotProps"){const s=e[i],l=t[i];if(!l)r[i]=s||{};else if(!s)r[i]=l;else{r[i]={...l};for(const u in s)if(Object.prototype.hasOwnProperty.call(s,u)){const d=u;r[i][d]=Vu(s[d],l[d],n)}}}else i==="className"&&n&&t.className?r.className=He(e==null?void 0:e.className,t==null?void 0:t.className):i==="style"&&n&&t.style?r.style={...e==null?void 0:e.style,...t==null?void 0:t.style}:r[i]===void 0&&(r[i]=e[i])}return r}function hx(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:Vu(t.components[n].defaultProps,r)}function JN({props:e,name:t,defaultTheme:n,themeId:r}){let o=cx(n);return o=o[r]||o,hx({theme:o,name:t,props:e})}const ej=typeof window<"u"?$.useLayoutEffect:$.useEffect;function tj(e,t,n,r,o){const[i,s]=$.useState(()=>o&&n?n(e).matches:r?r(e).matches:t);return ej(()=>{if(!n)return;const l=n(e),u=()=>{s(l.matches)};return u(),l.addEventListener("change",u),()=>{l.removeEventListener("change",u)}},[e,n]),i}const nj={...$},gx=nj.useSyncExternalStore;function rj(e,t,n,r,o){const i=$.useCallback(()=>t,[t]),s=$.useMemo(()=>{if(o&&n)return()=>n(e).matches;if(r!==null){const{matches:f}=r(e);return()=>f}return i},[i,e,r,o,n]),[l,u]=$.useMemo(()=>{if(n===null)return[i,()=>()=>{}];const f=n(e);return[()=>f.matches,g=>(f.addEventListener("change",g),()=>{f.removeEventListener("change",g)})]},[i,n,e]);return gx(u,l,s)}function mx(e={}){const{themeId:t}=e;return function(r,o={}){let i=lx();i&&t&&(i=i[t]||i);const s=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:l=!1,matchMedia:u=s?window.matchMedia:null,ssrMatchMedia:d=null,noSsr:f=!1}=hx({name:"MuiUseMediaQuery",props:o,theme:i});process.env.NODE_ENV!=="production"&&typeof r=="function"&&i===null&&console.error(["MUI: The `query` argument provided is invalid.","You are providing a function without a theme in the context.","One of the parent elements needs to use a ThemeProvider."].join(`
|
|
69
|
+
`));let g=typeof r=="function"?r(i):r;g=g.replace(/^@media( ?)/m,""),g.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 m=(gx!==void 0?rj:tj)(g,l,u,d,f);return process.env.NODE_ENV!=="production"&&$.useDebugValue({query:g,match:m}),m}}mx();function oj(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function Ng(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}].`),oj(e,t,n)}function ij(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 Ko(e){if(e.type)return e;if(e.charAt(0)==="#")return Ko(ij(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().`:zu(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.`:zu(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const sj=e=>{const t=Ko(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},sl=(e,t)=>{try{return sj(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function jd(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function yx(e){e=Ko(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),s=(d,f=(d+n/30)%12)=>o-i*Math.max(Math.min(f-3,9-f,1),-1);let l="rgb";const u=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(l+="a",u.push(t[3])),jd({type:l,values:u})}function Hh(e){e=Ko(e);let t=e.type==="hsl"||e.type==="hsla"?Ko(yx(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 a0(e,t){const n=Hh(e),r=Hh(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Jo(e,t){return e=Ko(e),t=Ng(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,jd(e)}function bi(e,t,n){try{return Jo(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function $d(e,t){if(e=Ko(e),t=Ng(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 jd(e)}function dt(e,t,n){try{return $d(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function zd(e,t){if(e=Ko(e),t=Ng(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 jd(e)}function ft(e,t,n){try{return zd(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function aj(e,t=.15){return Hh(e)>.5?$d(e,t):zd(e,t)}function Uc(e,t,n){try{return aj(e,t)}catch{return e}}const lj=$.createContext();process.env.NODE_ENV!=="production"&&(w.node,w.bool);const Bl=()=>$.useContext(lj)??!1,cj=$.createContext(void 0);process.env.NODE_ENV!=="production"&&(w.node,w.object);function uj(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?Vu(o.defaultProps,r,t.components.mergeClassNameAndStyle):!o.styleOverrides&&!o.variants?Vu(o,r,t.components.mergeClassNameAndStyle):r}function dj({props:e,name:t}){const n=$.useContext(cj);return uj({props:e,name:t,theme:{components:n}})}const l0={theme:void 0};function fj(e){let t,n;return function(o){let i=t;return(i===void 0||o.theme!==n)&&(l0.theme=o.theme,i=dx(e(l0)),t=i,n=o.theme),i}}function pj(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 c0=(e,t,n,r=[])=>{let o=e;t.forEach((i,s)=>{s===t.length-1?Array.isArray(o)?o[Number(i)]=n:o&&typeof o=="object"&&(o[i]=n):o&&typeof o=="object"&&(o[i]||(o[i]=r.includes(i)?[]:{}),o=o[i])})},hj=(e,t,n)=>{function r(o,i=[],s=[]){Object.entries(o).forEach(([l,u])=>{(!n||n&&!n([...i,l]))&&u!=null&&(typeof u=="object"&&Object.keys(u).length>0?r(u,[...i,l],Array.isArray(u)?[...s,l]:s):t([...i,l],u,s))})}r(e)},gj=(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 Gp(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},i={},s={};return hj(e,(l,u,d)=>{if((typeof u=="string"||typeof u=="number")&&(!r||!r(l,u))){const f=`--${n?`${n}-`:""}${l.join("-")}`,g=gj(l,u);Object.assign(o,{[f]:g}),c0(i,l,`var(${f})`,d),c0(s,l,`var(${f}, ${g})`,d)}},l=>l[0]==="vars"),{css:o,vars:i,varsWithDefaults:s}}function mj(e,t={}){const{getSelector:n=S,disableCssColorScheme:r,colorSchemeSelector:o,enableContrastVars:i}=t,{colorSchemes:s={},components:l,defaultColorScheme:u="light",...d}=e,{vars:f,css:g,varsWithDefaults:b}=Gp(d,t);let m=b;const v={},{[u]:p,...y}=s;if(Object.entries(y||{}).forEach(([R,C])=>{const{vars:T,css:O,varsWithDefaults:P}=Gp(C,t);m=Li(m,P),v[R]={css:O,vars:T}}),p){const{css:R,vars:C,varsWithDefaults:T}=Gp(p,t);m=Li(m,T),v[u]={css:R,vars:C}}function S(R,C){var O,P;let T=o;if(o==="class"&&(T=".%s"),o==="data"&&(T="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(T=`[${o}="%s"]`),R){if(T==="media")return e.defaultColorScheme===R?":root":{[`@media (prefers-color-scheme: ${((P=(O=s[R])==null?void 0:O.palette)==null?void 0:P.mode)||R})`]:{":root":C}};if(T)return e.defaultColorScheme===R?`:root, ${T.replace("%s",String(R))}`:T.replace("%s",String(R))}return":root"}return{vars:m,generateThemeVars:()=>{let R={...f};return Object.entries(v).forEach(([,{vars:C}])=>{R=Li(R,C)}),R},generateStyleSheets:()=>{var H,Q;const R=[],C=e.defaultColorScheme||"light";function T(q,x){Object.keys(x).length&&R.push(typeof q=="string"?{[q]:{...x}}:q)}T(n(void 0,{...g}),g);const{[C]:O,...P}=v;if(O){const{css:q}=O,x=(Q=(H=s[C])==null?void 0:H.palette)==null?void 0:Q.mode,L=!r&&x?{colorScheme:x,...q}:{...q};T(n(C,{...L}),L)}return Object.entries(P).forEach(([q,{css:x}])=>{var U,G;const L=(G=(U=s[q])==null?void 0:U.palette)==null?void 0:G.mode,I=!r&&L?{colorScheme:L,...x}:{...x};T(n(q,{...I}),I)}),i&&R.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)"}}),R}}}function yj(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 Ho(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 vx(e){if($.isValidElement(e)||Ks.isValidElementType(e)||!Ho(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=vx(e[n])}),t}function Vi(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return Ho(e)&&Ho(t)&&Object.keys(t).forEach(o=>{$.isValidElement(t[o])||Ks.isValidElementType(t[o])?r[o]=t[o]:Ho(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Ho(e[o])?r[o]=Vi(e[o],t[o],n):n.clone?r[o]=Ho(t[o])?vx(t[o]):t[o]:r[o]=t[o]}),r}const Cl={black:"#000",white:"#fff"},vj={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"},bs={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},ws={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},La={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Ss={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Es={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},xs={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function bx(){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:Cl.white,default:Cl.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 wx=bx();function Sx(){return{text:{primary:Cl.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:Cl.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 Fh=Sx();function u0(e,t,n,r){const o=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=zd(e.main,o):t==="dark"&&(e.dark=$d(e.main,i)))}function d0(e,t,n,r,o){const i=o.light||o,s=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 ${(i*100).toFixed(0)}%)`:n==="dark"&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(s*100).toFixed(0)}%)`))}function bj(e="light"){return e==="dark"?{main:Ss[200],light:Ss[50],dark:Ss[400]}:{main:Ss[700],light:Ss[400],dark:Ss[800]}}function wj(e="light"){return e==="dark"?{main:bs[200],light:bs[50],dark:bs[400]}:{main:bs[500],light:bs[300],dark:bs[700]}}function Sj(e="light"){return e==="dark"?{main:ws[500],light:ws[300],dark:ws[700]}:{main:ws[700],light:ws[400],dark:ws[800]}}function Ej(e="light"){return e==="dark"?{main:Es[400],light:Es[300],dark:Es[700]}:{main:Es[700],light:Es[500],dark:Es[900]}}function xj(e="light"){return e==="dark"?{main:xs[400],light:xs[300],dark:xs[700]}:{main:xs[800],light:xs[500],dark:xs[900]}}function Cj(e="light"){return e==="dark"?{main:La[400],light:La[300],dark:La[700]}:{main:"#ed6c02",light:La[500],dark:La[900]}}function Dj(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function jg(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:o,...i}=e,s=e.primary||bj(t),l=e.secondary||wj(t),u=e.error||Sj(t),d=e.info||Ej(t),f=e.success||xj(t),g=e.warning||Cj(t);function b(y){if(o)return Dj(y);const S=a0(y,Fh.text.primary)>=n?Fh.text.primary:wx.text.primary;if(process.env.NODE_ENV!=="production"){const E=a0(y,S);E<3&&console.error([`MUI: The contrast ratio of ${E}:1 for ${S} on ${y}`,"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 m=({color:y,name:S,mainShade:E=500,lightShade:D=300,darkShade:R=700})=>{if(y={...y},!y.main&&y[E]&&(y.main=y[E]),!y.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 \`${E}\` property.`:xl(11,S?` (${S})`:"",E));if(typeof y.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(y.main)}\` was provided instead.
|
|
76
76
|
|
|
77
77
|
Did you intend to use one of the following approaches?
|
|
78
78
|
|
|
@@ -84,23 +84,23 @@ const theme1 = createTheme({ palette: {
|
|
|
84
84
|
|
|
85
85
|
const theme2 = createTheme({ palette: {
|
|
86
86
|
primary: { main: green[500] },
|
|
87
|
-
} });`:
|
|
88
|
-
`)),Object.keys(
|
|
87
|
+
} });`:xl(12,S?` (${S})`:"",JSON.stringify(y.main)));return o?(d0(o,y,"light",D,r),d0(o,y,"dark",R,r)):(u0(y,"light",D,r),u0(y,"dark",R,r)),y.contrastText||(y.contrastText=b(y.main)),y};let v;return t==="light"?v=bx():t==="dark"&&(v=Sx()),process.env.NODE_ENV!=="production"&&(v||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),Vi({common:{...Cl},mode:t,primary:m({color:s,name:"primary"}),secondary:m({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:m({color:u,name:"error"}),warning:m({color:g,name:"warning"}),info:m({color:d,name:"info"}),success:m({color:f,name:"success"}),grey:vj,contrastThreshold:n,getContrastText:b,augmentColor:m,tonalOffset:r,...v},i)}function _j(e){const t={};return Object.entries(e).forEach(r=>{const[o,i]=r;typeof i=="object"&&(t[o]=`${i.fontStyle?`${i.fontStyle} `:""}${i.fontVariant?`${i.fontVariant} `:""}${i.fontWeight?`${i.fontWeight} `:""}${i.fontStretch?`${i.fontStretch} `:""}${i.fontSize||""}${i.lineHeight?`/${i.lineHeight} `:""}${i.fontFamily||""}`)}),t}const Rj={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 Fn(e,t,n="Mui"){const r=Rj[t];return r?`${n}-${r}`:`${CI.generate(e)}-${t}`}function Tj(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function Oj(e){return Math.round(e*1e5)/1e5}const f0={textTransform:"uppercase"},p0='"Roboto", "Helvetica", "Arial", sans-serif';function Aj(e,t){const{fontFamily:n=p0,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:i=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:d,pxToRem:f,...g}=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 u!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const b=r/14,m=f||(y=>`${y/u*b}rem`),v=(y,S,E,D,R)=>({fontFamily:n,fontWeight:y,fontSize:m(S),lineHeight:E,...n===p0?{letterSpacing:`${Oj(D/S)}em`}:{},...R,...d}),p={h1:v(o,96,1.167,-1.5),h2:v(o,60,1.2,-.5),h3:v(i,48,1.167,0),h4:v(i,34,1.235,.25),h5:v(i,24,1.334,0),h6:v(s,20,1.6,.15),subtitle1:v(i,16,1.75,.15),subtitle2:v(s,14,1.57,.1),body1:v(i,16,1.5,.15),body2:v(i,14,1.43,.15),button:v(s,14,1.75,.4,f0),caption:v(i,12,1.66,.4),overline:v(i,12,2.66,1,f0),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Vi({htmlFontSize:u,pxToRem:m,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:s,fontWeightBold:l,...p},g,{clone:!1})}const kj=.2,Mj=.14,Pj=.12;function Ot(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${kj})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Mj})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Pj})`].join(",")}const Ij=["none",Ot(0,2,1,-1,0,1,1,0,0,1,3,0),Ot(0,3,1,-2,0,2,2,0,0,1,5,0),Ot(0,3,3,-2,0,3,4,0,0,1,8,0),Ot(0,2,4,-1,0,4,5,0,0,1,10,0),Ot(0,3,5,-1,0,5,8,0,0,1,14,0),Ot(0,3,5,-1,0,6,10,0,0,1,18,0),Ot(0,4,5,-2,0,7,10,1,0,2,16,1),Ot(0,5,5,-3,0,8,10,1,0,3,14,2),Ot(0,5,6,-3,0,9,12,1,0,3,16,2),Ot(0,6,6,-3,0,10,14,1,0,4,18,3),Ot(0,6,7,-4,0,11,15,1,0,4,20,3),Ot(0,7,8,-4,0,12,17,2,0,5,22,4),Ot(0,7,8,-4,0,13,19,2,0,5,24,4),Ot(0,7,9,-4,0,14,21,2,0,5,26,4),Ot(0,8,9,-5,0,15,22,2,0,6,28,5),Ot(0,8,10,-5,0,16,24,2,0,6,30,5),Ot(0,8,11,-5,0,17,26,2,0,6,32,5),Ot(0,9,11,-5,0,18,28,2,0,7,34,6),Ot(0,9,12,-6,0,19,29,2,0,7,36,6),Ot(0,10,13,-6,0,20,31,3,0,8,38,7),Ot(0,10,13,-6,0,21,33,3,0,8,40,7),Ot(0,10,14,-6,0,22,35,3,0,8,42,7),Ot(0,11,14,-7,0,23,36,3,0,9,44,8),Ot(0,11,15,-7,0,24,38,3,0,9,46,8)],Nj={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)"},jj={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function h0(e){return`${Math.round(e)}ms`}function $j(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function zj(e){const t={...Nj,...e.easing},n={...jj,...e.duration};return{getAutoHeightDuration:$j,create:(o=["all"],i={})=>{const{duration:s=n.standard,easing:l=t.easeInOut,delay:u=0,...d}=i;if(process.env.NODE_ENV!=="production"){const f=b=>typeof b=="string",g=b=>!Number.isNaN(parseFloat(b));!f(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!g(s)&&!f(s)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${s}.`),f(l)||console.error('MUI: Argument "easing" must be a string.'),!g(u)&&!f(u)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof i!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
|
|
88
|
+
`)),Object.keys(d).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(d).join(",")}].`)}return(Array.isArray(o)?o:[o]).map(f=>`${f} ${typeof s=="string"?s:h0(s)} ${l} ${typeof u=="string"?u:h0(u)}`).join(",")},...e,easing:t,duration:n}}const Lj={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Bj(e){return Ho(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function Ex(e={}){const t={...e};function n(r){const o=Object.entries(r);for(let i=0;i<o.length;i++){const[s,l]=o[i];!Bj(l)||s.startsWith("unstable_")?delete r[s]:Ho(l)&&(r[s]={...l},n(r[s]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
|
|
89
89
|
|
|
90
|
-
const theme = ${JSON.stringify(
|
|
90
|
+
const theme = ${JSON.stringify(t,null,2)};
|
|
91
91
|
|
|
92
92
|
theme.breakpoints = createBreakpoints(theme.breakpoints || {});
|
|
93
93
|
theme.transitions = createTransitions(theme.transitions || {});
|
|
94
94
|
|
|
95
|
-
export default theme;`}function
|
|
96
|
-
`))}
|
|
97
|
-
To suppress this warning, you need to explicitly provide the \`palette.${e}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function Mg(t){return typeof t=="number"?`${t}px`:typeof t=="string"||typeof t=="function"||Array.isArray(t)?t:"8px"}const ft=t=>{try{return t()}catch{}},Og=(t="mui")=>qh(t);function ui(t,e,n,r,o){if(!n)return;n=n===!0?{}:n;const i=o==="dark"?"dark":"light";if(!r){e[o]=Tg({...n,palette:{mode:i,...n==null?void 0:n.palette},colorSpace:t});return}const{palette:s,...a}=Bi({...r,palette:{mode:i,...n==null?void 0:n.palette},colorSpace:t});return e[o]={...n,palette:s,opacity:{...eu(i),...n==null?void 0:n.opacity},overlays:(n==null?void 0:n.overlays)||tu(i)},a}function Ig(t={},...e){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",nativeColor:s=!1,shouldSkipGeneratingVar:a=Ag,colorSchemeSelector:l=n.light&&n.dark?"media":void 0,rootSelector:c=":root",...u}=t,f=Object.keys(n)[0],p=r||(n.light&&f!=="light"?"light":f),h=Og(i),{[p]:m,light:g,dark:v,...b}=n,S={...b};let R=m;if((p==="dark"&&!("dark"in n)||p==="light"&&!("light"in n))&&(R=!0),!R)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${p}\` option is either missing or invalid.`:cr(21,p));let C;s&&(C="oklch");const A=ui(C,S,R,u,p);g&&!S.light&&ui(C,S,g,void 0,"light"),v&&!S.dark&&ui(C,S,v,void 0,"dark");let T={defaultColorScheme:p,...A,cssVarPrefix:i,colorSchemeSelector:l,rootSelector:c,getCssVar:h,colorSchemes:S,font:{...ag(A.typography),...A.font},spacing:Mg(u.spacing)};Object.keys(T.colorSchemes).forEach($=>{const y=T.colorSchemes[$].palette,I=O=>{const N=O.split("-"),z=N[1],J=N[2];return h(O,y[z][J])};y.mode==="light"&&(j(y.common,"background","#fff"),j(y.common,"onBackground","#000")),y.mode==="dark"&&(j(y.common,"background","#000"),j(y.common,"onBackground","#fff"));function _(O,N,z){if(C){let J;return O===Ut&&(J=`transparent ${((1-z)*100).toFixed(0)}%`),O===Ce&&(J=`#000 ${(z*100).toFixed(0)}%`),O===we&&(J=`#fff ${(z*100).toFixed(0)}%`),`color-mix(in ${C}, ${N}, ${J})`}return O(N,z)}if(kg(y,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),y.mode==="light"){j(y.Alert,"errorColor",_(Ce,y.error.light,.6)),j(y.Alert,"infoColor",_(Ce,y.info.light,.6)),j(y.Alert,"successColor",_(Ce,y.success.light,.6)),j(y.Alert,"warningColor",_(Ce,y.warning.light,.6)),j(y.Alert,"errorFilledBg",I("palette-error-main")),j(y.Alert,"infoFilledBg",I("palette-info-main")),j(y.Alert,"successFilledBg",I("palette-success-main")),j(y.Alert,"warningFilledBg",I("palette-warning-main")),j(y.Alert,"errorFilledColor",ft(()=>y.getContrastText(y.error.main))),j(y.Alert,"infoFilledColor",ft(()=>y.getContrastText(y.info.main))),j(y.Alert,"successFilledColor",ft(()=>y.getContrastText(y.success.main))),j(y.Alert,"warningFilledColor",ft(()=>y.getContrastText(y.warning.main))),j(y.Alert,"errorStandardBg",_(we,y.error.light,.9)),j(y.Alert,"infoStandardBg",_(we,y.info.light,.9)),j(y.Alert,"successStandardBg",_(we,y.success.light,.9)),j(y.Alert,"warningStandardBg",_(we,y.warning.light,.9)),j(y.Alert,"errorIconColor",I("palette-error-main")),j(y.Alert,"infoIconColor",I("palette-info-main")),j(y.Alert,"successIconColor",I("palette-success-main")),j(y.Alert,"warningIconColor",I("palette-warning-main")),j(y.AppBar,"defaultBg",I("palette-grey-100")),j(y.Avatar,"defaultBg",I("palette-grey-400")),j(y.Button,"inheritContainedBg",I("palette-grey-300")),j(y.Button,"inheritContainedHoverBg",I("palette-grey-A100")),j(y.Chip,"defaultBorder",I("palette-grey-400")),j(y.Chip,"defaultAvatarColor",I("palette-grey-700")),j(y.Chip,"defaultIconColor",I("palette-grey-700")),j(y.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),j(y.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),j(y.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),j(y.LinearProgress,"primaryBg",_(we,y.primary.main,.62)),j(y.LinearProgress,"secondaryBg",_(we,y.secondary.main,.62)),j(y.LinearProgress,"errorBg",_(we,y.error.main,.62)),j(y.LinearProgress,"infoBg",_(we,y.info.main,.62)),j(y.LinearProgress,"successBg",_(we,y.success.main,.62)),j(y.LinearProgress,"warningBg",_(we,y.warning.main,.62)),j(y.Skeleton,"bg",C?_(Ut,y.text.primary,.11):`rgba(${I("palette-text-primaryChannel")} / 0.11)`),j(y.Slider,"primaryTrack",_(we,y.primary.main,.62)),j(y.Slider,"secondaryTrack",_(we,y.secondary.main,.62)),j(y.Slider,"errorTrack",_(we,y.error.main,.62)),j(y.Slider,"infoTrack",_(we,y.info.main,.62)),j(y.Slider,"successTrack",_(we,y.success.main,.62)),j(y.Slider,"warningTrack",_(we,y.warning.main,.62));const O=C?_(Ce,y.background.default,.6825):Ar(y.background.default,.8);j(y.SnackbarContent,"bg",O),j(y.SnackbarContent,"color",ft(()=>C?$i.text.primary:y.getContrastText(O))),j(y.SpeedDialAction,"fabHoverBg",Ar(y.background.paper,.15)),j(y.StepConnector,"border",I("palette-grey-400")),j(y.StepContent,"border",I("palette-grey-400")),j(y.Switch,"defaultColor",I("palette-common-white")),j(y.Switch,"defaultDisabledColor",I("palette-grey-100")),j(y.Switch,"primaryDisabledColor",_(we,y.primary.main,.62)),j(y.Switch,"secondaryDisabledColor",_(we,y.secondary.main,.62)),j(y.Switch,"errorDisabledColor",_(we,y.error.main,.62)),j(y.Switch,"infoDisabledColor",_(we,y.info.main,.62)),j(y.Switch,"successDisabledColor",_(we,y.success.main,.62)),j(y.Switch,"warningDisabledColor",_(we,y.warning.main,.62)),j(y.TableCell,"border",_(we,_(Ut,y.divider,1),.88)),j(y.Tooltip,"bg",_(Ut,y.grey[700],.92))}if(y.mode==="dark"){j(y.Alert,"errorColor",_(we,y.error.light,.6)),j(y.Alert,"infoColor",_(we,y.info.light,.6)),j(y.Alert,"successColor",_(we,y.success.light,.6)),j(y.Alert,"warningColor",_(we,y.warning.light,.6)),j(y.Alert,"errorFilledBg",I("palette-error-dark")),j(y.Alert,"infoFilledBg",I("palette-info-dark")),j(y.Alert,"successFilledBg",I("palette-success-dark")),j(y.Alert,"warningFilledBg",I("palette-warning-dark")),j(y.Alert,"errorFilledColor",ft(()=>y.getContrastText(y.error.dark))),j(y.Alert,"infoFilledColor",ft(()=>y.getContrastText(y.info.dark))),j(y.Alert,"successFilledColor",ft(()=>y.getContrastText(y.success.dark))),j(y.Alert,"warningFilledColor",ft(()=>y.getContrastText(y.warning.dark))),j(y.Alert,"errorStandardBg",_(Ce,y.error.light,.9)),j(y.Alert,"infoStandardBg",_(Ce,y.info.light,.9)),j(y.Alert,"successStandardBg",_(Ce,y.success.light,.9)),j(y.Alert,"warningStandardBg",_(Ce,y.warning.light,.9)),j(y.Alert,"errorIconColor",I("palette-error-main")),j(y.Alert,"infoIconColor",I("palette-info-main")),j(y.Alert,"successIconColor",I("palette-success-main")),j(y.Alert,"warningIconColor",I("palette-warning-main")),j(y.AppBar,"defaultBg",I("palette-grey-900")),j(y.AppBar,"darkBg",I("palette-background-paper")),j(y.AppBar,"darkColor",I("palette-text-primary")),j(y.Avatar,"defaultBg",I("palette-grey-600")),j(y.Button,"inheritContainedBg",I("palette-grey-800")),j(y.Button,"inheritContainedHoverBg",I("palette-grey-700")),j(y.Chip,"defaultBorder",I("palette-grey-700")),j(y.Chip,"defaultAvatarColor",I("palette-grey-300")),j(y.Chip,"defaultIconColor",I("palette-grey-300")),j(y.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),j(y.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),j(y.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),j(y.LinearProgress,"primaryBg",_(Ce,y.primary.main,.5)),j(y.LinearProgress,"secondaryBg",_(Ce,y.secondary.main,.5)),j(y.LinearProgress,"errorBg",_(Ce,y.error.main,.5)),j(y.LinearProgress,"infoBg",_(Ce,y.info.main,.5)),j(y.LinearProgress,"successBg",_(Ce,y.success.main,.5)),j(y.LinearProgress,"warningBg",_(Ce,y.warning.main,.5)),j(y.Skeleton,"bg",C?_(Ut,y.text.primary,.13):`rgba(${I("palette-text-primaryChannel")} / 0.13)`),j(y.Slider,"primaryTrack",_(Ce,y.primary.main,.5)),j(y.Slider,"secondaryTrack",_(Ce,y.secondary.main,.5)),j(y.Slider,"errorTrack",_(Ce,y.error.main,.5)),j(y.Slider,"infoTrack",_(Ce,y.info.main,.5)),j(y.Slider,"successTrack",_(Ce,y.success.main,.5)),j(y.Slider,"warningTrack",_(Ce,y.warning.main,.5));const O=C?_(we,y.background.default,.985):Ar(y.background.default,.98);j(y.SnackbarContent,"bg",O),j(y.SnackbarContent,"color",ft(()=>C?Kc.text.primary:y.getContrastText(O))),j(y.SpeedDialAction,"fabHoverBg",Ar(y.background.paper,.15)),j(y.StepConnector,"border",I("palette-grey-600")),j(y.StepContent,"border",I("palette-grey-600")),j(y.Switch,"defaultColor",I("palette-grey-300")),j(y.Switch,"defaultDisabledColor",I("palette-grey-600")),j(y.Switch,"primaryDisabledColor",_(Ce,y.primary.main,.55)),j(y.Switch,"secondaryDisabledColor",_(Ce,y.secondary.main,.55)),j(y.Switch,"errorDisabledColor",_(Ce,y.error.main,.55)),j(y.Switch,"infoDisabledColor",_(Ce,y.info.main,.55)),j(y.Switch,"successDisabledColor",_(Ce,y.success.main,.55)),j(y.Switch,"warningDisabledColor",_(Ce,y.warning.main,.55)),j(y.TableCell,"border",_(Ce,_(Ut,y.divider,1),.68)),j(y.Tooltip,"bg",_(Ut,y.grey[700],.92))}bt(y.background,"default"),bt(y.background,"paper"),bt(y.common,"background"),bt(y.common,"onBackground"),bt(y,"divider"),Object.keys(y).forEach(O=>{const N=y[O];O!=="tonalOffset"&&N&&typeof N=="object"&&(N.main&&j(y[O],"mainChannel",er(tr(N.main))),N.light&&j(y[O],"lightChannel",er(tr(N.light))),N.dark&&j(y[O],"darkChannel",er(tr(N.dark))),N.contrastText&&j(y[O],"contrastTextChannel",er(tr(N.contrastText))),O==="text"&&(bt(y[O],"primary"),bt(y[O],"secondary")),O==="action"&&(N.active&&bt(y[O],"active"),N.selected&&bt(y[O],"selected")))})}),T=e.reduce(($,y)=>sn($,y),T);const k={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:a,getSelector:_g(T),enableContrastVars:s},{vars:P,generateThemeVars:H,generateStyleSheets:W}=Kh(T,k);return T.vars=P,Object.entries(T.colorSchemes[T.defaultColorScheme]).forEach(([$,y])=>{T[$]=y}),T.generateThemeVars=H,T.generateStyleSheets=W,T.generateSpacing=function(){return $c(u.spacing,us(this))},T.getColorSchemeSelector=Xh(l),T.spacing=T.generateSpacing(),T.shouldSkipGeneratingVar=a,T.unstable_sxConfig={...vr,...u==null?void 0:u.unstable_sxConfig},T.unstable_sx=function(y){return Pn({sx:y,theme:this})},T.toRuntimeSource=Jc,T}function qa(t,e,n){t.colorSchemes&&n&&(t.colorSchemes[e]={...n!==!0&&n,palette:hs({...n===!0?{}:n.palette,mode:e})})}function Pg(t={},...e){const{palette:n,cssVariables:r=!1,colorSchemes:o=n?void 0:{light:!0},defaultColorScheme:i=n==null?void 0:n.mode,...s}=t,a=i||"light",l=o==null?void 0:o[a],c={...o,...n?{[a]:{...typeof l!="boolean"&&l,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in t))return Bi(t,...e);let u=n;"palette"in t||c[a]&&(c[a]!==!0?u=c[a].palette:a==="dark"&&(u={mode:"dark"}));const f=Bi({...t,palette:u},...e);return f.defaultColorScheme=a,f.colorSchemes=c,f.palette.mode==="light"&&(f.colorSchemes.light={...c.light!==!0&&c.light,palette:f.palette},qa(f,"dark",c.dark)),f.palette.mode==="dark"&&(f.colorSchemes.dark={...c.dark!==!0&&c.dark,palette:f.palette},qa(f,"light",c.light)),f}return!n&&!("light"in c)&&a==="light"&&(c.light=!0),Ig({...s,colorSchemes:c,defaultColorScheme:a,...typeof r!="boolean"&&r},...e)}const gs=Pg(),No="$$material";function ms(){const t=Lc(gs);return process.env.NODE_ENV!=="production"&&x.useDebugValue(t),t[No]||t}function Ng(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}const nu=t=>Ng(t)&&t!=="classes",te=_h({themeId:No,defaultTheme:gs,rootShouldForwardProp:nu});function jg(){return ch}const ht=Yh;process.env.NODE_ENV!=="production"&&(d.node,d.object.isRequired);function it(t){return Gh(t)}function Je(t,e,n="Mui"){const r={};return e.forEach(o=>{r[o]=Xe(t,o,n)}),r}function Vg(t){return Xe("MuiSvgIcon",t)}Je("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const $g=t=>{const{color:e,fontSize:n,classes:r}=t,o={root:["root",e!=="inherit"&&`color${se(e)}`,`fontSize${se(n)}`]};return ct(o,Vg,r)},Bg=te("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.color!=="inherit"&&e[`color${se(n.color)}`],e[`fontSize${se(n.fontSize)}`]]}})(ht(({theme:t})=>{var e,n,r,o,i,s,a,l,c,u,f,p,h,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(o=(e=t.transitions)==null?void 0:e.create)==null?void 0:o.call(e,"fill",{duration:(r=(n=(t.vars??t).transitions)==null?void 0:n.duration)==null?void 0:r.shorter}),variants:[{props:g=>!g.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((s=(i=t.typography)==null?void 0:i.pxToRem)==null?void 0:s.call(i,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((l=(a=t.typography)==null?void 0:a.pxToRem)==null?void 0:l.call(a,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((u=(c=t.typography)==null?void 0:c.pxToRem)==null?void 0:u.call(c,35))||"2.1875rem"}},...Object.entries((t.vars??t).palette).filter(([,g])=>g&&g.main).map(([g])=>{var v,b;return{props:{color:g},style:{color:(b=(v=(t.vars??t).palette)==null?void 0:v[g])==null?void 0:b.main}}}),{props:{color:"action"},style:{color:(p=(f=(t.vars??t).palette)==null?void 0:f.action)==null?void 0:p.active}},{props:{color:"disabled"},style:{color:(m=(h=(t.vars??t).palette)==null?void 0:h.action)==null?void 0:m.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),Jr=x.forwardRef(function(e,n){const r=it({props:e,name:"MuiSvgIcon"}),{children:o,className:i,color:s="inherit",component:a="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:f,viewBox:p="0 0 24 24",...h}=r,m=x.isValidElement(o)&&o.type==="svg",g={...r,color:s,component:a,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:p,hasSvgAsChild:m},v={};u||(v.viewBox=p);const b=$g(g);return E.jsxs(Bg,{as:a,className:ce(b.root,i),focusable:"false",color:c,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:n,...v,...h,...m&&o.props,ownerState:g,children:[m?o.props.children:o,f?E.jsx("title",{children:f}):null]})});process.env.NODE_ENV!=="production"&&(Jr.propTypes={children:d.node,classes:d.object,className:d.string,color:d.oneOfType([d.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),d.string]),component:d.elementType,fontSize:d.oneOfType([d.oneOf(["inherit","large","medium","small"]),d.string]),htmlColor:d.string,inheritViewBox:d.bool,shapeRendering:d.string,sx:d.oneOfType([d.arrayOf(d.oneOfType([d.func,d.object,d.bool])),d.func,d.object]),titleAccess:d.string,viewBox:d.string});Jr.muiName="SvgIcon";function Ve(t,e){function n(r,o){return E.jsx(Jr,{"data-testid":process.env.NODE_ENV!=="production"?`${e}Icon`:void 0,ref:o,...r,children:t})}return process.env.NODE_ENV!=="production"&&(n.displayName=`${e}Icon`),n.muiName=Jr.muiName,x.memo(x.forwardRef(n))}function ru(t,e){var n,r,o;return x.isValidElement(t)&&e.indexOf(t.type.muiName??((o=(r=(n=t.type)==null?void 0:n._payload)==null?void 0:r.value)==null?void 0:o.muiName))!==-1}const Lg=typeof window<"u"?x.useLayoutEffect:x.useEffect;let Qa=0;function Hg(t){const[e,n]=x.useState(t),r=t||e;return x.useEffect(()=>{e==null&&(Qa+=1,n(`mui-${Qa}`))},[e]),r}const zg={...x},Za=zg.useId;function ou(t){if(Za!==void 0){const e=Za();return t??e}return Hg(t)}function Fg(t,e,n,r,o){if(process.env.NODE_ENV==="production")return null;const i=o||e;return typeof t[e]<"u"?new Error(`The prop \`${i}\` is not supported. Please remove it.`):null}function Hr(t){const e=x.useRef(t);return Lg(()=>{e.current=t}),x.useRef((...n)=>(0,e.current)(...n)).current}function Nn(...t){const e=x.useRef(void 0),n=x.useCallback(r=>{const o=t.map(i=>{if(i==null)return null;if(typeof i=="function"){const s=i,a=s(r);return typeof a=="function"?a:()=>{s(null)}}return i.current=r,()=>{i.current=null}});return()=>{o.forEach(i=>i==null?void 0:i())}},t);return x.useMemo(()=>t.every(r=>r==null)?null:r=>{e.current&&(e.current(),e.current=void 0),r!=null&&(e.current=n(r))},t)}const Wg=Ve(E.jsx("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft"),Ug=Ve(E.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight"),Gg=Ve(E.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"),eo=Ve(E.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"),Yg=Ve(E.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"),iu=Ve(E.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"),su=Ve(E.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"),qg=[{icon:E.jsx(eo,{}),name:"Month",value:"dayGridMonth"},{icon:E.jsx(iu,{}),name:"Week",value:"timeGridWeek"},{icon:E.jsx(su,{}),name:"Day",value:"timeGridDay"}],Qg=({onPrev:t,onToday:e,onNext:n,onDatePickerOpen:r,calendarView:o,onViewChange:i,currentTitle:s})=>{const a={dayGridMonth:E.jsx(eo,{}),timeGridWeek:E.jsx(iu,{}),timeGridDay:E.jsx(su,{})};return E.jsxs(q.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",mb:1,px:1},children:[E.jsxs(q.Box,{sx:{display:"flex",gap:1},children:[E.jsx(q.Tooltip,{title:"Previous",children:E.jsx(q.IconButton,{size:"small",onClick:t,children:E.jsx(Wg,{fontSize:"small"})})}),E.jsx(q.Tooltip,{title:"Go to today",children:E.jsx(q.IconButton,{size:"small",onClick:e,children:E.jsx(Gg,{fontSize:"small"})})}),E.jsx(q.Tooltip,{title:"Select date",children:E.jsx(q.IconButton,{size:"small",onClick:r,children:E.jsx(eo,{fontSize:"small"})})}),E.jsx(q.Tooltip,{title:"Next",children:E.jsx(q.IconButton,{size:"small",onClick:n,children:E.jsx(Ug,{fontSize:"small"})})})]}),E.jsx(q.Typography,{variant:"subtitle1",children:s}),E.jsx(Dn.SpeedDialButton,{actions:qg,value:o,onChange:i,icons:a,openIcon:E.jsx(Yg,{})})]})};function G(){return G=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},G.apply(null,arguments)}function ze({props:t,name:e}){return Ph({props:t,name:e,defaultTheme:gs,themeId:No})}function _e(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}const Zg=["localeText"],to=x.createContext(null);process.env.NODE_ENV!=="production"&&(to.displayName="MuiPickersAdapterContext");const au=function(e){const{localeText:n}=e,r=_e(e,Zg),{utils:o,localeText:i}=x.useContext(to)??{utils:void 0,localeText:void 0},s=ze({props:r,name:"MuiLocalizationProvider"}),{children:a,dateAdapter:l,dateFormats:c,dateLibInstance:u,adapterLocale:f,localeText:p}=s,h=x.useMemo(()=>G({},p,i,n),[p,i,n]),m=x.useMemo(()=>{if(!l)return o||null;const b=new l({locale:f,formats:c,instance:u});if(!b.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
|
|
99
|
-
`));if(
|
|
100
|
-
`));const
|
|
101
|
-
`))},[r,n,
|
|
102
|
-
`))},[JSON.stringify(e)])}const l=x.useCallback(c=>{o||s(c)},[]);return[a,l]}function he(t){const e=x.useRef(t);return cn(()=>{e.current=t}),x.useRef((...n)=>(0,e.current)(...n)).current}function vs(...t){const e=x.useRef(void 0),n=x.useCallback(r=>{const o=t.map(i=>{if(i==null)return null;if(typeof i=="function"){const s=i,a=s(r);return typeof a=="function"?a:()=>{s(null)}}return i.current=r,()=>{i.current=null}});return()=>{o.forEach(i=>i==null?void 0:i())}},t);return x.useMemo(()=>t.every(r=>r==null)?null:r=>{e.current&&(e.current(),e.current=void 0),r!=null&&(e.current=n(r))},t)}const tl=t=>t,mm=()=>{let t=tl;return{configure(e){t=e},generate(e){return t(e)},reset(){t=tl}}},vm=mm(),ym={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 Ue(t,e,n="Mui"){const r=ym[e];return r?`${n}-${r}`:`${vm.generate(t)}-${e}`}function Ye(t,e,n="Mui"){const r={};return e.forEach(o=>{r[o]=Ue(t,o,n)}),r}function bm(t){return typeof t=="string"}function Em(t,e,n){return t===void 0||bm(t)?e:{...e,ownerState:{...e.ownerState,...n}}}function Sm(t,e=[]){if(t===void 0)return{};const n={};return Object.keys(t).filter(r=>r.match(/^on[A-Z]/)&&typeof t[r]=="function"&&!e.includes(r)).forEach(r=>{n[r]=t[r]}),n}function nl(t){if(t===void 0)return{};const e={};return Object.keys(t).filter(n=>!(n.match(/^on[A-Z]/)&&typeof t[n]=="function")).forEach(n=>{e[n]=t[n]}),e}function Cm(t){const{getSlotProps:e,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=t;if(!e){const h=ce(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),m={...n==null?void 0:n.style,...o==null?void 0:o.style,...r==null?void 0:r.style},g={...n,...o,...r};return h.length>0&&(g.className=h),Object.keys(m).length>0&&(g.style=m),{props:g,internalRef:void 0}}const s=Sm({...o,...r}),a=nl(r),l=nl(o),c=e(s),u=ce(c==null?void 0:c.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),f={...c==null?void 0:c.style,...n==null?void 0:n.style,...o==null?void 0:o.style,...r==null?void 0:r.style},p={...c,...n,...l,...a};return u.length>0&&(p.className=u),Object.keys(f).length>0&&(p.style=f),{props:p,internalRef:c.ref}}function wm(t,e,n){return typeof t=="function"?t(e,n):t}function Qe(t){var f;const{elementType:e,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:o=!1,...i}=t,s=o?{}:wm(n,r),{props:a,internalRef:l}=Cm({...i,externalSlotProps:s}),c=vs(l,s==null?void 0:s.ref,(f=t.additionalProps)==null?void 0:f.ref);return Em(e,{...a,ref:c},r)}function xm(t){return Ue("MuiPickersToolbar",t)}Ye("MuiPickersToolbar",["root","content"]);const Dm=["children","className","toolbarTitle","hidden","titleId","isLandscape","classes","landscapeDirection"],Tm=t=>{const{classes:e}=t;return We({root:["root"],content:["content"]},xm,e)},Am=te("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(t,e)=>e.root})(({theme:t})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:t.spacing(2,3),variants:[{props:{isLandscape:!0},style:{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"}}]})),Rm=te("div",{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(t,e)=>e.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"}}]}),_m=x.forwardRef(function(e,n){const r=ze({props:e,name:"MuiPickersToolbar"}),{children:o,className:i,toolbarTitle:s,hidden:a,titleId:l}=r,c=_e(r,Dm),u=r,f=Tm(u);return a?null:E.jsxs(Am,G({ref:n,className:ce(f.root,i),ownerState:u},c,{children:[E.jsx(pn,{color:"text.secondary",variant:"overline",id:l,children:s}),E.jsx(Rm,{className:f.content,ownerState:u,children:o})]}))}),$o=()=>Hn().localeText;function km(t){return Ue("MuiDatePickerToolbar",t)}Ye("MuiDatePickerToolbar",["root","title"]);const Mm=["value","isLandscape","onChange","toolbarFormat","toolbarPlaceholder","views","className","onViewChange","view"],Om=t=>{const{classes:e}=t;return We({root:["root"],title:["title"]},km,e)},Im=te(_m,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(t,e)=>e.root})({}),Pm=te(pn,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(t,e)=>e.title})({variants:[{props:{isLandscape:!0},style:{margin:"auto 16px auto auto"}}]}),uu=x.forwardRef(function(e,n){const r=ze({props:e,name:"MuiDatePickerToolbar"}),{value:o,isLandscape:i,toolbarFormat:s,toolbarPlaceholder:a="––",views:l,className:c}=r,u=_e(r,Mm),f=Le(),p=$o(),h=Om(r),m=x.useMemo(()=>{if(!o)return a;const v=om(f,{format:s,views:l});return f.formatByString(o,v)},[o,s,a,f,l]),g=r;return E.jsx(Im,G({ref:n,toolbarTitle:p.datePickerToolbarTitle,isLandscape:i,className:ce(h.root,c)},u,{children:E.jsx(Pm,{variant:"h4",align:i?"left":"center",ownerState:g,className:h.title,children:m})}))});process.env.NODE_ENV!=="production"&&(uu.propTypes={classes:d.object,className:d.string,disabled:d.bool,hidden:d.bool,isLandscape:d.bool.isRequired,onChange:d.func.isRequired,onViewChange:d.func.isRequired,readOnly:d.bool,sx:d.oneOfType([d.arrayOf(d.oneOfType([d.func,d.object,d.bool])),d.func,d.object]),titleId:d.string,toolbarFormat:d.string,toolbarPlaceholder:d.node,value:d.object,view:d.oneOf(["day","month","year"]).isRequired,views:d.arrayOf(d.oneOf(["day","month","year"]).isRequired).isRequired});function Nm(t,e){const n=Le(),r=jo(),o=ze({props:t,name:e}),i=x.useMemo(()=>{var s;return((s=o.localeText)==null?void 0:s.toolbarTitle)==null?o.localeText:G({},o.localeText,{datePickerToolbarTitle:o.localeText.toolbarTitle})},[o.localeText]);return G({},o,{localeText:i},Jg({views:o.views,openTo:o.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{disableFuture:o.disableFuture??!1,disablePast:o.disablePast??!1,minDate:gt(n,o.minDate,r.minDate),maxDate:gt(n,o.maxDate,r.maxDate),slots:G({toolbar:uu},o.slots)})}const jm=["hours","minutes","seconds"],Vm=t=>jm.includes(t),rl=(t,e)=>e.getHours(t)*3600+e.getMinutes(t)*60+e.getSeconds(t),$m=(t,e)=>(n,r)=>t?e.isAfter(n,r):rl(n,e)>rl(r,e),St={year:1,month:2,day:3,minutes:5,seconds:6,milliseconds:7},Kn=(t,e,n)=>{if(e===St.year)return t.startOfYear(n);if(e===St.month)return t.startOfMonth(n);if(e===St.day)return t.startOfDay(n);let r=n;return e<St.minutes&&(r=t.setMinutes(r,0)),e<St.seconds&&(r=t.setSeconds(r,0)),e<St.milliseconds&&(r=t.setMilliseconds(r,0)),r},Bm=({props:t,utils:e,granularity:n,timezone:r,getTodayDate:o})=>{let i=o?o():Kn(e,n,cu(e,r));t.minDate!=null&&e.isAfterDay(t.minDate,i)&&(i=Kn(e,n,t.minDate)),t.maxDate!=null&&e.isBeforeDay(t.maxDate,i)&&(i=Kn(e,n,t.maxDate));const s=$m(t.disableIgnoringDatePartForTimeValidation??!1,e);return t.minTime!=null&&s(t.minTime,i)&&(i=Kn(e,n,t.disableIgnoringDatePartForTimeValidation?t.minTime:no(e,i,t.minTime))),t.maxTime!=null&&s(i,t.maxTime)&&(i=Kn(e,n,t.disableIgnoringDatePartForTimeValidation?t.maxTime:no(e,i,t.maxTime))),i},Lm=["value","referenceDate"],Bt={emptyValue:null,getTodayValue:cu,getInitialReferenceValue:t=>{let{value:e,referenceDate:n}=t,r=_e(t,Lm);return e!=null&&r.utils.isValid(e)?e:n??Bm(r)},cleanValue:em,areValuesEqual:tm,isSameError:(t,e)=>t===e,hasError:t=>t!=null,defaultErrorState:null,getTimezone:(t,e)=>e==null||!t.isValid(e)?null:t.getTimezone(e),setTimezone:(t,e,n)=>n==null?null:t.setTimezone(n,e)},ys=({props:t,value:e,timezone:n,adapter:r})=>{if(e===null)return null;const{shouldDisableDate:o,shouldDisableMonth:i,shouldDisableYear:s,disablePast:a,disableFuture:l}=t,c=r.utils.date(void 0,n),u=gt(r.utils,t.minDate,r.defaultDates.minDate),f=gt(r.utils,t.maxDate,r.defaultDates.maxDate);switch(!0){case!r.utils.isValid(e):return"invalidDate";case!!(o&&o(e)):return"shouldDisableDate";case!!(i&&i(e)):return"shouldDisableMonth";case!!(s&&s(e)):return"shouldDisableYear";case!!(l&&r.utils.isAfterDay(e,c)):return"disableFuture";case!!(a&&r.utils.isBeforeDay(e,c)):return"disablePast";case!!(u&&r.utils.isBeforeDay(e,u)):return"minDate";case!!(f&&r.utils.isAfterDay(e,f)):return"maxDate";default:return null}};ys.valueManager=Bt;function Hm(t){const{props:e,validator:n,value:r,timezone:o,onError:i}=t,s=Hn(),a=x.useRef(n.valueManager.defaultErrorState),l=n({adapter:s,value:r,timezone:o,props:e}),c=n.valueManager.hasError(l);x.useEffect(()=>{i&&!n.valueManager.isSameError(l,a.current)&&i(l,r),a.current=l},[n,i,l,r]);const u=he(f=>n({adapter:s,value:f,timezone:o,props:e}));return{validationError:l,hasValidationError:c,getValidationErrorForNewValue:u}}const du=({shouldDisableDate:t,shouldDisableMonth:e,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:i,disablePast:s,timezone:a})=>{const l=Hn();return x.useCallback(c=>ys({adapter:l,value:c,timezone:a,props:{shouldDisableDate:t,shouldDisableMonth:e,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:i,disablePast:s}})!==null,[l,t,e,n,r,o,i,s,a])},zm=(t,e,n)=>(r,o)=>{switch(o.type){case"changeMonth":return G({},r,{slideDirection:o.direction,currentMonth:o.newMonth,isMonthSwitchingAnimating:!t});case"changeMonthTimezone":{const i=o.newTimezone;if(n.getTimezone(r.currentMonth)===i)return r;let s=n.setTimezone(r.currentMonth,i);return n.getMonth(s)!==n.getMonth(r.currentMonth)&&(s=n.setMonth(s,n.getMonth(r.currentMonth))),G({},r,{currentMonth:s})}case"finishMonthSwitchingAnimation":return G({},r,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(r.focusedDay!=null&&o.focusedDay!=null&&n.isSameDay(o.focusedDay,r.focusedDay))return r;const i=o.focusedDay!=null&&!e&&!n.isSameMonth(r.currentMonth,o.focusedDay);return G({},r,{focusedDay:o.focusedDay,isMonthSwitchingAnimating:i&&!t&&!o.withoutMonthSwitchingAnimation,currentMonth:i?n.startOfMonth(o.focusedDay):r.currentMonth,slideDirection:o.focusedDay!=null&&n.isAfterDay(o.focusedDay,r.currentMonth)?"left":"right"})}default:throw new Error("missing support")}},Fm=t=>{const{value:e,referenceDate:n,disableFuture:r,disablePast:o,disableSwitchToMonthOnDayFocus:i=!1,maxDate:s,minDate:a,onMonthChange:l,reduceAnimations:c,shouldDisableDate:u,timezone:f}=t,p=Le(),h=x.useRef(zm(!!c,i,p)).current,m=x.useMemo(()=>Bt.getInitialReferenceValue({value:e,utils:p,timezone:f,props:t,referenceDate:n,granularity:St.day}),[n,f]),[g,v]=x.useReducer(h,{isMonthSwitchingAnimating:!1,focusedDay:m,currentMonth:p.startOfMonth(m),slideDirection:"left"});x.useEffect(()=>{v({type:"changeMonthTimezone",newTimezone:p.getTimezone(m)})},[m,p]);const b=x.useCallback(T=>{v(G({type:"changeMonth"},T)),l&&l(T.newMonth)},[l]),S=x.useCallback(T=>{const k=T;p.isSameMonth(k,g.currentMonth)||b({newMonth:p.startOfMonth(k),direction:p.isAfterDay(k,g.currentMonth)?"left":"right"})},[g.currentMonth,b,p]),R=du({shouldDisableDate:u,minDate:a,maxDate:s,disableFuture:r,disablePast:o,timezone:f}),C=x.useCallback(()=>{v({type:"finishMonthSwitchingAnimation"})},[]),A=he((T,k)=>{R(T)||v({type:"changeFocusedDay",focusedDay:T,withoutMonthSwitchingAnimation:k})});return{referenceDate:m,calendarState:g,changeMonth:S,changeFocusedDay:A,isDateDisabled:R,onMonthSwitchingAnimationEnd:C,handleChangeMonth:b}};function Li(t,e){return Li=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Li(t,e)}function bs(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,Li(t,e)}function Wm(t,e){return t.classList?!!e&&t.classList.contains(e):(" "+(t.className.baseVal||t.className)+" ").indexOf(" "+e+" ")!==-1}function Um(t,e){t.classList?t.classList.add(e):Wm(t,e)||(typeof t.className=="string"?t.className=t.className+" "+e:t.setAttribute("class",(t.className&&t.className.baseVal||"")+" "+e))}function ol(t,e){return t.replace(new RegExp("(^|\\s)"+e+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function Gm(t,e){t.classList?t.classList.remove(e):typeof t.className=="string"?t.className=ol(t.className,e):t.setAttribute("class",ol(t.className&&t.className.baseVal||"",e))}const il={disabled:!1};var Ym=process.env.NODE_ENV!=="production"?d.oneOfType([d.number,d.shape({enter:d.number,exit:d.number,appear:d.number}).isRequired]):null,qm=process.env.NODE_ENV!=="production"?d.oneOfType([d.string,d.shape({enter:d.string,exit:d.string,active:d.string}),d.shape({enter:d.string,enterDone:d.string,enterActive:d.string,exit:d.string,exitDone:d.string,exitActive:d.string})]):null;const ro=oe.createContext(null);var fu=function(e){return e.scrollTop},nr="unmounted",Qt="exited",Zt="entering",wn="entered",Hi="exiting",ut=function(t){bs(e,t);function e(r,o){var i;i=t.call(this,r,o)||this;var s=o,a=s&&!s.isMounting?r.enter:r.appear,l;return i.appearStatus=null,r.in?a?(l=Qt,i.appearStatus=Zt):l=wn:r.unmountOnExit||r.mountOnEnter?l=nr:l=Qt,i.state={status:l},i.nextCallback=null,i}e.getDerivedStateFromProps=function(o,i){var s=o.in;return s&&i.status===nr?{status:Qt}:null};var n=e.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var s=this.state.status;this.props.in?s!==Zt&&s!==wn&&(i=Zt):(s===Zt||s===wn)&&(i=Hi)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,s,a;return i=s=a=o,o!=null&&typeof o!="number"&&(i=o.exit,s=o.enter,a=o.appear!==void 0?o.appear:s),{exit:i,enter:s,appear:a}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===Zt){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:en.findDOMNode(this);s&&fu(s)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Qt&&this.setState({status:nr})},n.performEnter=function(o){var i=this,s=this.props.enter,a=this.context?this.context.isMounting:o,l=this.props.nodeRef?[a]:[en.findDOMNode(this),a],c=l[0],u=l[1],f=this.getTimeouts(),p=a?f.appear:f.enter;if(!o&&!s||il.disabled){this.safeSetState({status:wn},function(){i.props.onEntered(c)});return}this.props.onEnter(c,u),this.safeSetState({status:Zt},function(){i.props.onEntering(c,u),i.onTransitionEnd(p,function(){i.safeSetState({status:wn},function(){i.props.onEntered(c,u)})})})},n.performExit=function(){var o=this,i=this.props.exit,s=this.getTimeouts(),a=this.props.nodeRef?void 0:en.findDOMNode(this);if(!i||il.disabled){this.safeSetState({status:Qt},function(){o.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:Hi},function(){o.props.onExiting(a),o.onTransitionEnd(s.exit,function(){o.safeSetState({status:Qt},function(){o.props.onExited(a)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,s=!0;return this.nextCallback=function(a){s&&(s=!1,i.nextCallback=null,o(a))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var s=this.props.nodeRef?this.props.nodeRef.current:en.findDOMNode(this),a=o==null&&!this.props.addEndListener;if(!s||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],c=l[0],u=l[1];this.props.addEndListener(c,u)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===nr)return null;var i=this.props,s=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var a=_e(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return oe.createElement(ro.Provider,{value:null},typeof s=="function"?s(o,a):oe.cloneElement(oe.Children.only(s),a))},e}(oe.Component);ut.contextType=ro;ut.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:d.shape({current:typeof Element>"u"?d.any:function(t,e,n,r,o,i){var s=t[e];return d.instanceOf(s&&"ownerDocument"in s?s.ownerDocument.defaultView.Element:Element)(t,e,n,r,o,i)}}),children:d.oneOfType([d.func.isRequired,d.element.isRequired]).isRequired,in:d.bool,mountOnEnter:d.bool,unmountOnExit:d.bool,appear:d.bool,enter:d.bool,exit:d.bool,timeout:function(e){var n=Ym;e.addEndListener||(n=n.isRequired);for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return n.apply(void 0,[e].concat(o))},addEndListener:d.func,onEnter:d.func,onEntering:d.func,onEntered:d.func,onExit:d.func,onExiting:d.func,onExited:d.func}:{};function Cn(){}ut.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Cn,onEntering:Cn,onEntered:Cn,onExit:Cn,onExiting:Cn,onExited:Cn};ut.UNMOUNTED=nr;ut.EXITED=Qt;ut.ENTERING=Zt;ut.ENTERED=wn;ut.EXITING=Hi;var Qm=function(e,n){return e&&n&&n.split(" ").forEach(function(r){return Um(e,r)})},di=function(e,n){return e&&n&&n.split(" ").forEach(function(r){return Gm(e,r)})},Es=function(t){bs(e,t);function e(){for(var r,o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i))||this,r.appliedClasses={appear:{},enter:{},exit:{}},r.onEnter=function(a,l){var c=r.resolveArguments(a,l),u=c[0],f=c[1];r.removeClasses(u,"exit"),r.addClass(u,f?"appear":"enter","base"),r.props.onEnter&&r.props.onEnter(a,l)},r.onEntering=function(a,l){var c=r.resolveArguments(a,l),u=c[0],f=c[1],p=f?"appear":"enter";r.addClass(u,p,"active"),r.props.onEntering&&r.props.onEntering(a,l)},r.onEntered=function(a,l){var c=r.resolveArguments(a,l),u=c[0],f=c[1],p=f?"appear":"enter";r.removeClasses(u,p),r.addClass(u,p,"done"),r.props.onEntered&&r.props.onEntered(a,l)},r.onExit=function(a){var l=r.resolveArguments(a),c=l[0];r.removeClasses(c,"appear"),r.removeClasses(c,"enter"),r.addClass(c,"exit","base"),r.props.onExit&&r.props.onExit(a)},r.onExiting=function(a){var l=r.resolveArguments(a),c=l[0];r.addClass(c,"exit","active"),r.props.onExiting&&r.props.onExiting(a)},r.onExited=function(a){var l=r.resolveArguments(a),c=l[0];r.removeClasses(c,"exit"),r.addClass(c,"exit","done"),r.props.onExited&&r.props.onExited(a)},r.resolveArguments=function(a,l){return r.props.nodeRef?[r.props.nodeRef.current,a]:[a,l]},r.getClassNames=function(a){var l=r.props.classNames,c=typeof l=="string",u=c&&l?l+"-":"",f=c?""+u+a:l[a],p=c?f+"-active":l[a+"Active"],h=c?f+"-done":l[a+"Done"];return{baseClassName:f,activeClassName:p,doneClassName:h}},r}var n=e.prototype;return n.addClass=function(o,i,s){var a=this.getClassNames(i)[s+"ClassName"],l=this.getClassNames("enter"),c=l.doneClassName;i==="appear"&&s==="done"&&c&&(a+=" "+c),s==="active"&&o&&fu(o),a&&(this.appliedClasses[i][s]=a,Qm(o,a))},n.removeClasses=function(o,i){var s=this.appliedClasses[i],a=s.base,l=s.active,c=s.done;this.appliedClasses[i]={},a&&di(o,a),l&&di(o,l),c&&di(o,c)},n.render=function(){var o=this.props;o.classNames;var i=_e(o,["classNames"]);return oe.createElement(ut,G({},i,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},e}(oe.Component);Es.defaultProps={classNames:""};Es.propTypes=process.env.NODE_ENV!=="production"?G({},ut.propTypes,{classNames:qm,onEnter:d.func,onEntering:d.func,onEntered:d.func,onExit:d.func,onExiting:d.func,onExited:d.func}):{};function Zm(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ss(t,e){var n=function(i){return e&&oe.isValidElement(i)?e(i):i},r=Object.create(null);return t&&oe.Children.map(t,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function Km(t,e){t=t||{},e=e||{};function n(u){return u in e?e[u]:t[u]}var r=Object.create(null),o=[];for(var i in t)i in e?o.length&&(r[i]=o,o=[]):o.push(i);var s,a={};for(var l in e){if(r[l])for(s=0;s<r[l].length;s++){var c=r[l][s];a[r[l][s]]=n(c)}a[l]=n(l)}for(s=0;s<o.length;s++)a[o[s]]=n(o[s]);return a}function nn(t,e,n){return n[e]!=null?n[e]:t.props[e]}function Xm(t,e){return Ss(t.children,function(n){return oe.cloneElement(n,{onExited:e.bind(null,n),in:!0,appear:nn(n,"appear",t),enter:nn(n,"enter",t),exit:nn(n,"exit",t)})})}function Jm(t,e,n){var r=Ss(t.children),o=Km(e,r);return Object.keys(o).forEach(function(i){var s=o[i];if(oe.isValidElement(s)){var a=i in e,l=i in r,c=e[i],u=oe.isValidElement(c)&&!c.props.in;l&&(!a||u)?o[i]=oe.cloneElement(s,{onExited:n.bind(null,s),in:!0,exit:nn(s,"exit",t),enter:nn(s,"enter",t)}):!l&&a&&!u?o[i]=oe.cloneElement(s,{in:!1}):l&&a&&oe.isValidElement(c)&&(o[i]=oe.cloneElement(s,{onExited:n.bind(null,s),in:c.props.in,exit:nn(s,"exit",t),enter:nn(s,"enter",t)}))}}),o}var ev=Object.values||function(t){return Object.keys(t).map(function(e){return t[e]})},tv={component:"div",childFactory:function(e){return e}},br=function(t){bs(e,t);function e(r,o){var i;i=t.call(this,r,o)||this;var s=i.handleExited.bind(Zm(i));return i.state={contextValue:{isMounting:!0},handleExited:s,firstRender:!0},i}var n=e.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},e.getDerivedStateFromProps=function(o,i){var s=i.children,a=i.handleExited,l=i.firstRender;return{children:l?Xm(o,a):Jm(o,s,a),firstRender:!1}},n.handleExited=function(o,i){var s=Ss(this.props.children);o.key in s||(o.props.onExited&&o.props.onExited(i),this.mounted&&this.setState(function(a){var l=G({},a.children);return delete l[o.key],{children:l}}))},n.render=function(){var o=this.props,i=o.component,s=o.childFactory,a=_e(o,["component","childFactory"]),l=this.state.contextValue,c=ev(this.state.children).map(s);return delete a.appear,delete a.enter,delete a.exit,i===null?oe.createElement(ro.Provider,{value:l},c):oe.createElement(ro.Provider,{value:l},oe.createElement(i,a,c))},e}(oe.Component);br.propTypes=process.env.NODE_ENV!=="production"?{component:d.any,children:d.node,appear:d.bool,enter:d.bool,exit:d.bool,childFactory:d.func}:{};br.defaultProps=tv;function zn(t,e){return process.env.NODE_ENV==="production"?()=>null:function(...r){return t(...r)||e(...r)}}function nv(t){const{prototype:e={}}=t;return!!e.isReactComponent}function pu(t,e,n,r,o){const i=t[e],s=o||e;if(i==null||typeof window>"u")return null;let a;const l=i.type;return typeof l=="function"&&!nv(l)&&(a="Did you accidentally use a plain function component for an element instead?"),a!==void 0?new Error(`Invalid ${r} \`${s}\` supplied to \`${n}\`. Expected an element that can hold a ref. ${a} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const hu=zn(d.element,pu);hu.isRequired=zn(d.element.isRequired,pu);function rv(t){var e;return parseInt(x.version,10)>=19?((e=t==null?void 0:t.props)==null?void 0:e.ref)||null:(t==null?void 0:t.ref)||null}const ov=t=>t.scrollTop;function sl(t,e){const{timeout:n,easing:r,style:o={}}=t;return{duration:o.transitionDuration??(typeof n=="number"?n:n[e.mode]||0),easing:o.transitionTimingFunction??(typeof r=="object"?r[e.mode]:r),delay:o.transitionDelay}}const iv={entering:{opacity:1},entered:{opacity:1}},Cs=x.forwardRef(function(e,n){const r=ms(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:s=!0,children:a,easing:l,in:c,onEnter:u,onEntered:f,onEntering:p,onExit:h,onExited:m,onExiting:g,style:v,timeout:b=o,TransitionComponent:S=ut,...R}=e,C=x.useRef(null),A=Nn(C,rv(a),n),T=_=>O=>{if(_){const N=C.current;O===void 0?_(N):_(N,O)}},k=T(p),P=T((_,O)=>{ov(_);const N=sl({style:v,timeout:b,easing:l},{mode:"enter"});_.style.webkitTransition=r.transitions.create("opacity",N),_.style.transition=r.transitions.create("opacity",N),u&&u(_,O)}),H=T(f),W=T(g),$=T(_=>{const O=sl({style:v,timeout:b,easing:l},{mode:"exit"});_.style.webkitTransition=r.transitions.create("opacity",O),_.style.transition=r.transitions.create("opacity",O),h&&h(_)}),y=T(m),I=_=>{i&&i(C.current,_)};return E.jsx(S,{appear:s,in:c,nodeRef:C,onEnter:P,onEntered:H,onEntering:k,onExit:$,onExited:y,onExiting:W,addEndListener:I,timeout:b,...R,children:(_,{ownerState:O,...N})=>x.cloneElement(a,{style:{opacity:0,visibility:_==="exited"&&!c?"hidden":void 0,...iv[_],...v,...a.props.style},ref:A,...N})})});process.env.NODE_ENV!=="production"&&(Cs.propTypes={addEndListener:d.func,appear:d.bool,children:hu.isRequired,easing:d.oneOfType([d.shape({enter:d.string,exit:d.string}),d.string]),in:d.bool,onEnter:d.func,onEntered:d.func,onEntering:d.func,onExit:d.func,onExited:d.func,onExiting:d.func,style:d.object,timeout:d.oneOfType([d.number,d.shape({appear:d.number,enter:d.number,exit:d.number})])});const sv=t=>Ue("MuiPickersFadeTransitionGroup",t);Ye("MuiPickersFadeTransitionGroup",["root"]);const av=t=>{const{classes:e}=t;return We({root:["root"]},sv,e)},lv=te(br,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"block",position:"relative"});function gu(t){const e=ze({props:t,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:r,reduceAnimations:o,transKey:i}=e,s=av(e),a=ms();return o?n:E.jsx(lv,{className:ce(s.root,r),children:E.jsx(Cs,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:a.transitions.duration.enteringScreen,enter:a.transitions.duration.enteringScreen,exit:0},children:n},i)})}const cv=d.oneOfType([d.func,d.object]);function uv(t){const{prototype:e={}}=t;return!!e.isReactComponent}function dv(t,e,n,r,o){const i=t[e],s=o||e;if(i==null||typeof window>"u")return null;let a;return typeof i=="function"&&!uv(i)&&(a="Did you accidentally provide a plain function component instead?"),a!==void 0?new Error(`Invalid ${r} \`${s}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${a} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const mu=zn(d.elementType,dv);function al(t){try{return t.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
|
|
95
|
+
export default theme;`}function g0(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const Vj=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 Hj(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})`:Jo(t,Vj(n))},lighten(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #fff ${g0(n)})`:zd(t,n)},darken(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #000 ${g0(n)})`:$d(t,n)}})}function Uh(e={},...t){const{breakpoints:n,mixins:r={},spacing:o,palette:i={},transitions:s={},typography:l={},shape:u,colorSpace:d,...f}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.":xl(20));const g=jg({...i,colorSpace:d}),b=Ig(e);let m=Vi(b,{mixins:Tj(b.breakpoints,r),palette:g,shadows:Ij.slice(),typography:Aj(g,l),transitions:zj(s),zIndex:{...Lj}});if(m=Vi(m,f),m=t.reduce((v,p)=>Vi(v,p),m),process.env.NODE_ENV!=="production"){const v=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],p=(y,S)=>{let E;for(E in y){const D=y[E];if(v.includes(E)&&Object.keys(D).length>0){if(process.env.NODE_ENV!=="production"){const R=Fn("",E);console.error([`MUI: The \`${S}\` component increases the CSS specificity of the \`${E}\` internal state.`,"You can not override it like this: ",JSON.stringify(y,null,2),"",`Instead, you need to use the '&.${R}' syntax:`,JSON.stringify({root:{[`&.${R}`]:D}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
|
|
96
|
+
`))}y[E]={}}}};Object.keys(m.components).forEach(y=>{const S=m.components[y].styleOverrides;S&&y.startsWith("Mui")&&p(S,y)})}return m.unstable_sxConfig={...Ll,...f==null?void 0:f.unstable_sxConfig},m.unstable_sx=function(p){return Js({sx:p,theme:this})},m.toRuntimeSource=Ex,Hj(m),m}function Fj(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 Uj=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=Fj(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function xx(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function Cx(e){return e==="dark"?Uj:[]}function Wj(e){const{palette:t={mode:"light"},opacity:n,overlays:r,colorSpace:o,...i}=e,s=jg({...t,colorSpace:o});return{palette:s,opacity:{...xx(s.mode),...n},overlays:r||Cx(s.mode),...i}}function Yj(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 Gj=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],qj=e=>(t,n)=>{const r=e.rootSelector||":root",o=e.colorSchemeSelector;let i=o;if(o==="class"&&(i=".%s"),o==="data"&&(i="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(i=`[${o}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const s={};return Gj(e.cssVarPrefix).forEach(l=>{s[l]=n[l],delete n[l]}),i==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:s}}:i?{[i.replace("%s",t)]:s,[`${r}, ${i.replace("%s",t)}`]:n}:{[r]:{...n,...s}}}if(i&&i!=="media")return`${r}, ${i.replace("%s",String(t))}`}else if(t){if(i==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(i)return i.replace("%s",String(t))}return r};function Xj(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function ge(e,t,n){!e[t]&&n&&(e[t]=n)}function al(e){return typeof e!="string"||!e.startsWith("hsl")?e:yx(e)}function io(e,t){`${t}Channel`in e||(e[`${t}Channel`]=sl(al(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 Qj(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Pr=e=>{try{return e()}catch{}},Zj=(e="mui")=>pj(e);function qp(e,t,n,r,o){if(!n)return;n=n===!0?{}:n;const i=o==="dark"?"dark":"light";if(!r){t[o]=Wj({...n,palette:{mode:i,...n==null?void 0:n.palette},colorSpace:e});return}const{palette:s,...l}=Uh({...r,palette:{mode:i,...n==null?void 0:n.palette},colorSpace:e});return t[o]={...n,palette:s,opacity:{...xx(i),...n==null?void 0:n.opacity},overlays:(n==null?void 0:n.overlays)||Cx(i)},l}function Kj(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",nativeColor:s=!1,shouldSkipGeneratingVar:l=Yj,colorSchemeSelector:u=n.light&&n.dark?"media":void 0,rootSelector:d=":root",...f}=e,g=Object.keys(n)[0],b=r||(n.light&&g!=="light"?"light":g),m=Zj(i),{[b]:v,light:p,dark:y,...S}=n,E={...S};let D=v;if((b==="dark"&&!("dark"in n)||b==="light"&&!("light"in n))&&(D=!0),!D)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${b}\` option is either missing or invalid.`:xl(21,b));let R;s&&(R="oklch");const C=qp(R,E,D,f,b);p&&!E.light&&qp(R,E,p,void 0,"light"),y&&!E.dark&&qp(R,E,y,void 0,"dark");let T={defaultColorScheme:b,...C,cssVarPrefix:i,colorSchemeSelector:u,rootSelector:d,getCssVar:m,colorSchemes:E,font:{..._j(C.typography),...C.font},spacing:Qj(f.spacing)};Object.keys(T.colorSchemes).forEach(q=>{const x=T.colorSchemes[q].palette,L=U=>{const G=U.split("-"),te=G[1],se=G[2];return m(U,x[te][se])};x.mode==="light"&&(ge(x.common,"background","#fff"),ge(x.common,"onBackground","#000")),x.mode==="dark"&&(ge(x.common,"background","#000"),ge(x.common,"onBackground","#fff"));function I(U,G,te){if(R){let se;return U===bi&&(se=`transparent ${((1-te)*100).toFixed(0)}%`),U===dt&&(se=`#000 ${(te*100).toFixed(0)}%`),U===ft&&(se=`#fff ${(te*100).toFixed(0)}%`),`color-mix(in ${R}, ${G}, ${se})`}return U(G,te)}if(Xj(x,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),x.mode==="light"){ge(x.Alert,"errorColor",I(dt,x.error.light,.6)),ge(x.Alert,"infoColor",I(dt,x.info.light,.6)),ge(x.Alert,"successColor",I(dt,x.success.light,.6)),ge(x.Alert,"warningColor",I(dt,x.warning.light,.6)),ge(x.Alert,"errorFilledBg",L("palette-error-main")),ge(x.Alert,"infoFilledBg",L("palette-info-main")),ge(x.Alert,"successFilledBg",L("palette-success-main")),ge(x.Alert,"warningFilledBg",L("palette-warning-main")),ge(x.Alert,"errorFilledColor",Pr(()=>x.getContrastText(x.error.main))),ge(x.Alert,"infoFilledColor",Pr(()=>x.getContrastText(x.info.main))),ge(x.Alert,"successFilledColor",Pr(()=>x.getContrastText(x.success.main))),ge(x.Alert,"warningFilledColor",Pr(()=>x.getContrastText(x.warning.main))),ge(x.Alert,"errorStandardBg",I(ft,x.error.light,.9)),ge(x.Alert,"infoStandardBg",I(ft,x.info.light,.9)),ge(x.Alert,"successStandardBg",I(ft,x.success.light,.9)),ge(x.Alert,"warningStandardBg",I(ft,x.warning.light,.9)),ge(x.Alert,"errorIconColor",L("palette-error-main")),ge(x.Alert,"infoIconColor",L("palette-info-main")),ge(x.Alert,"successIconColor",L("palette-success-main")),ge(x.Alert,"warningIconColor",L("palette-warning-main")),ge(x.AppBar,"defaultBg",L("palette-grey-100")),ge(x.Avatar,"defaultBg",L("palette-grey-400")),ge(x.Button,"inheritContainedBg",L("palette-grey-300")),ge(x.Button,"inheritContainedHoverBg",L("palette-grey-A100")),ge(x.Chip,"defaultBorder",L("palette-grey-400")),ge(x.Chip,"defaultAvatarColor",L("palette-grey-700")),ge(x.Chip,"defaultIconColor",L("palette-grey-700")),ge(x.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),ge(x.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),ge(x.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),ge(x.LinearProgress,"primaryBg",I(ft,x.primary.main,.62)),ge(x.LinearProgress,"secondaryBg",I(ft,x.secondary.main,.62)),ge(x.LinearProgress,"errorBg",I(ft,x.error.main,.62)),ge(x.LinearProgress,"infoBg",I(ft,x.info.main,.62)),ge(x.LinearProgress,"successBg",I(ft,x.success.main,.62)),ge(x.LinearProgress,"warningBg",I(ft,x.warning.main,.62)),ge(x.Skeleton,"bg",R?I(bi,x.text.primary,.11):`rgba(${L("palette-text-primaryChannel")} / 0.11)`),ge(x.Slider,"primaryTrack",I(ft,x.primary.main,.62)),ge(x.Slider,"secondaryTrack",I(ft,x.secondary.main,.62)),ge(x.Slider,"errorTrack",I(ft,x.error.main,.62)),ge(x.Slider,"infoTrack",I(ft,x.info.main,.62)),ge(x.Slider,"successTrack",I(ft,x.success.main,.62)),ge(x.Slider,"warningTrack",I(ft,x.warning.main,.62));const U=R?I(dt,x.background.default,.6825):Uc(x.background.default,.8);ge(x.SnackbarContent,"bg",U),ge(x.SnackbarContent,"color",Pr(()=>R?Fh.text.primary:x.getContrastText(U))),ge(x.SpeedDialAction,"fabHoverBg",Uc(x.background.paper,.15)),ge(x.StepConnector,"border",L("palette-grey-400")),ge(x.StepContent,"border",L("palette-grey-400")),ge(x.Switch,"defaultColor",L("palette-common-white")),ge(x.Switch,"defaultDisabledColor",L("palette-grey-100")),ge(x.Switch,"primaryDisabledColor",I(ft,x.primary.main,.62)),ge(x.Switch,"secondaryDisabledColor",I(ft,x.secondary.main,.62)),ge(x.Switch,"errorDisabledColor",I(ft,x.error.main,.62)),ge(x.Switch,"infoDisabledColor",I(ft,x.info.main,.62)),ge(x.Switch,"successDisabledColor",I(ft,x.success.main,.62)),ge(x.Switch,"warningDisabledColor",I(ft,x.warning.main,.62)),ge(x.TableCell,"border",I(ft,I(bi,x.divider,1),.88)),ge(x.Tooltip,"bg",I(bi,x.grey[700],.92))}if(x.mode==="dark"){ge(x.Alert,"errorColor",I(ft,x.error.light,.6)),ge(x.Alert,"infoColor",I(ft,x.info.light,.6)),ge(x.Alert,"successColor",I(ft,x.success.light,.6)),ge(x.Alert,"warningColor",I(ft,x.warning.light,.6)),ge(x.Alert,"errorFilledBg",L("palette-error-dark")),ge(x.Alert,"infoFilledBg",L("palette-info-dark")),ge(x.Alert,"successFilledBg",L("palette-success-dark")),ge(x.Alert,"warningFilledBg",L("palette-warning-dark")),ge(x.Alert,"errorFilledColor",Pr(()=>x.getContrastText(x.error.dark))),ge(x.Alert,"infoFilledColor",Pr(()=>x.getContrastText(x.info.dark))),ge(x.Alert,"successFilledColor",Pr(()=>x.getContrastText(x.success.dark))),ge(x.Alert,"warningFilledColor",Pr(()=>x.getContrastText(x.warning.dark))),ge(x.Alert,"errorStandardBg",I(dt,x.error.light,.9)),ge(x.Alert,"infoStandardBg",I(dt,x.info.light,.9)),ge(x.Alert,"successStandardBg",I(dt,x.success.light,.9)),ge(x.Alert,"warningStandardBg",I(dt,x.warning.light,.9)),ge(x.Alert,"errorIconColor",L("palette-error-main")),ge(x.Alert,"infoIconColor",L("palette-info-main")),ge(x.Alert,"successIconColor",L("palette-success-main")),ge(x.Alert,"warningIconColor",L("palette-warning-main")),ge(x.AppBar,"defaultBg",L("palette-grey-900")),ge(x.AppBar,"darkBg",L("palette-background-paper")),ge(x.AppBar,"darkColor",L("palette-text-primary")),ge(x.Avatar,"defaultBg",L("palette-grey-600")),ge(x.Button,"inheritContainedBg",L("palette-grey-800")),ge(x.Button,"inheritContainedHoverBg",L("palette-grey-700")),ge(x.Chip,"defaultBorder",L("palette-grey-700")),ge(x.Chip,"defaultAvatarColor",L("palette-grey-300")),ge(x.Chip,"defaultIconColor",L("palette-grey-300")),ge(x.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),ge(x.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),ge(x.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),ge(x.LinearProgress,"primaryBg",I(dt,x.primary.main,.5)),ge(x.LinearProgress,"secondaryBg",I(dt,x.secondary.main,.5)),ge(x.LinearProgress,"errorBg",I(dt,x.error.main,.5)),ge(x.LinearProgress,"infoBg",I(dt,x.info.main,.5)),ge(x.LinearProgress,"successBg",I(dt,x.success.main,.5)),ge(x.LinearProgress,"warningBg",I(dt,x.warning.main,.5)),ge(x.Skeleton,"bg",R?I(bi,x.text.primary,.13):`rgba(${L("palette-text-primaryChannel")} / 0.13)`),ge(x.Slider,"primaryTrack",I(dt,x.primary.main,.5)),ge(x.Slider,"secondaryTrack",I(dt,x.secondary.main,.5)),ge(x.Slider,"errorTrack",I(dt,x.error.main,.5)),ge(x.Slider,"infoTrack",I(dt,x.info.main,.5)),ge(x.Slider,"successTrack",I(dt,x.success.main,.5)),ge(x.Slider,"warningTrack",I(dt,x.warning.main,.5));const U=R?I(ft,x.background.default,.985):Uc(x.background.default,.98);ge(x.SnackbarContent,"bg",U),ge(x.SnackbarContent,"color",Pr(()=>R?wx.text.primary:x.getContrastText(U))),ge(x.SpeedDialAction,"fabHoverBg",Uc(x.background.paper,.15)),ge(x.StepConnector,"border",L("palette-grey-600")),ge(x.StepContent,"border",L("palette-grey-600")),ge(x.Switch,"defaultColor",L("palette-grey-300")),ge(x.Switch,"defaultDisabledColor",L("palette-grey-600")),ge(x.Switch,"primaryDisabledColor",I(dt,x.primary.main,.55)),ge(x.Switch,"secondaryDisabledColor",I(dt,x.secondary.main,.55)),ge(x.Switch,"errorDisabledColor",I(dt,x.error.main,.55)),ge(x.Switch,"infoDisabledColor",I(dt,x.info.main,.55)),ge(x.Switch,"successDisabledColor",I(dt,x.success.main,.55)),ge(x.Switch,"warningDisabledColor",I(dt,x.warning.main,.55)),ge(x.TableCell,"border",I(dt,I(bi,x.divider,1),.68)),ge(x.Tooltip,"bg",I(bi,x.grey[700],.92))}io(x.background,"default"),io(x.background,"paper"),io(x.common,"background"),io(x.common,"onBackground"),io(x,"divider"),Object.keys(x).forEach(U=>{const G=x[U];U!=="tonalOffset"&&G&&typeof G=="object"&&(G.main&&ge(x[U],"mainChannel",sl(al(G.main))),G.light&&ge(x[U],"lightChannel",sl(al(G.light))),G.dark&&ge(x[U],"darkChannel",sl(al(G.dark))),G.contrastText&&ge(x[U],"contrastTextChannel",sl(al(G.contrastText))),U==="text"&&(io(x[U],"primary"),io(x[U],"secondary")),U==="action"&&(G.active&&io(x[U],"active"),G.selected&&io(x[U],"selected")))})}),T=t.reduce((q,x)=>Vi(q,x),T);const O={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:l,getSelector:qj(T),enableContrastVars:s},{vars:P,generateThemeVars:H,generateStyleSheets:Q}=mj(T,O);return T.vars=P,Object.entries(T.colorSchemes[T.defaultColorScheme]).forEach(([q,x])=>{T[q]=x}),T.generateThemeVars=H,T.generateStyleSheets=Q,T.generateSpacing=function(){return ax(f.spacing,Mg(this))},T.getColorSchemeSelector=yj(u),T.spacing=T.generateSpacing(),T.shouldSkipGeneratingVar=l,T.unstable_sxConfig={...Ll,...f==null?void 0:f.unstable_sxConfig},T.unstable_sx=function(x){return Js({sx:x,theme:this})},T.toRuntimeSource=Ex,T}function m0(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:jg({...n===!0?{}:n.palette,mode:t})})}function Jj(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:o=n?void 0:{light:!0},defaultColorScheme:i=n==null?void 0:n.mode,...s}=e,l=i||"light",u=o==null?void 0:o[l],d={...o,...n?{[l]:{...typeof u!="boolean"&&u,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return Uh(e,...t);let f=n;"palette"in e||d[l]&&(d[l]!==!0?f=d[l].palette:l==="dark"&&(f={mode:"dark"}));const g=Uh({...e,palette:f},...t);return g.defaultColorScheme=l,g.colorSchemes=d,g.palette.mode==="light"&&(g.colorSchemes.light={...d.light!==!0&&d.light,palette:g.palette},m0(g,"dark",d.dark)),g.palette.mode==="dark"&&(g.colorSchemes.dark={...d.dark!==!0&&d.dark,palette:g.palette},m0(g,"light",d.light)),g}return!n&&!("light"in d)&&l==="light"&&(d.light=!0),Kj({...s,colorSchemes:d,defaultColorScheme:l,...typeof r!="boolean"&&r},...t)}const $g=Jj(),Ld="$$material";function zg(){const e=cx($g);return process.env.NODE_ENV!=="production"&&$.useDebugValue(e),e[Ld]||e}function e2(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Dx=e=>e2(e)&&e!=="classes",Ne=qN({themeId:Ld,defaultTheme:$g,rootShouldForwardProp:Dx});function t2(){return TN}const Br=fj;process.env.NODE_ENV!=="production"&&(w.node,w.object.isRequired);function pr(e){return dj(e)}function Un(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=Fn(e,o,n)}),r}function n2(e){return Fn("MuiSvgIcon",e)}Un("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const r2=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${je(t)}`,`fontSize${je(n)}`]};return Rr(o,n2,r)},o2=Ne("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${je(n.color)}`],t[`fontSize${je(n.fontSize)}`]]}})(Br(({theme:e})=>{var t,n,r,o,i,s,l,u,d,f,g,b,m,v;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(o=(t=e.transitions)==null?void 0:t.create)==null?void 0:o.call(t,"fill",{duration:(r=(n=(e.vars??e).transitions)==null?void 0:n.duration)==null?void 0:r.shorter}),variants:[{props:p=>!p.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((s=(i=e.typography)==null?void 0:i.pxToRem)==null?void 0:s.call(i,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((u=(l=e.typography)==null?void 0:l.pxToRem)==null?void 0:u.call(l,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((f=(d=e.typography)==null?void 0:d.pxToRem)==null?void 0:f.call(d,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,p])=>p&&p.main).map(([p])=>{var y,S;return{props:{color:p},style:{color:(S=(y=(e.vars??e).palette)==null?void 0:y[p])==null?void 0:S.main}}}),{props:{color:"action"},style:{color:(b=(g=(e.vars??e).palette)==null?void 0:g.action)==null?void 0:b.active}},{props:{color:"disabled"},style:{color:(v=(m=(e.vars??e).palette)==null?void 0:m.action)==null?void 0:v.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),Hu=$.forwardRef(function(t,n){const r=pr({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:s="inherit",component:l="svg",fontSize:u="medium",htmlColor:d,inheritViewBox:f=!1,titleAccess:g,viewBox:b="0 0 24 24",...m}=r,v=$.isValidElement(o)&&o.type==="svg",p={...r,color:s,component:l,fontSize:u,instanceFontSize:t.fontSize,inheritViewBox:f,viewBox:b,hasSvgAsChild:v},y={};f||(y.viewBox=b);const S=r2(p);return Y.jsxs(o2,{as:l,className:He(S.root,i),focusable:"false",color:d,"aria-hidden":g?void 0:!0,role:g?"img":void 0,ref:n,...y,...m,...v&&o.props,ownerState:p,children:[v?o.props.children:o,g?Y.jsx("title",{children:g}):null]})});process.env.NODE_ENV!=="production"&&(Hu.propTypes={children:w.node,classes:w.object,className:w.string,color:w.oneOfType([w.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),w.string]),component:w.elementType,fontSize:w.oneOfType([w.oneOf(["inherit","large","medium","small"]),w.string]),htmlColor:w.string,inheritViewBox:w.bool,shapeRendering:w.string,sx:w.oneOfType([w.arrayOf(w.oneOfType([w.func,w.object,w.bool])),w.func,w.object]),titleAccess:w.string,viewBox:w.string});Hu.muiName="SvgIcon";function Ut(e,t){function n(r,o){return Y.jsx(Hu,{"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=Hu.muiName,$.memo($.forwardRef(n))}function _x(e,t){var n,r,o;return $.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 i2=typeof window<"u"?$.useLayoutEffect:$.useEffect;let y0=0;function s2(e){const[t,n]=$.useState(e),r=e||t;return $.useEffect(()=>{t==null&&(y0+=1,n(`mui-${y0}`))},[t]),r}const a2={...$},v0=a2.useId;function Rx(e){if(v0!==void 0){const t=v0();return e??t}return s2(e)}function l2(e,t,n,r,o){if(process.env.NODE_ENV==="production")return null;const i=o||t;return typeof e[t]<"u"?new Error(`The prop \`${i}\` is not supported. Please remove it.`):null}function Du(e){const t=$.useRef(e);return i2(()=>{t.current=e}),$.useRef((...n)=>(0,t.current)(...n)).current}function ea(...e){const t=$.useRef(void 0),n=$.useCallback(r=>{const o=e.map(i=>{if(i==null)return null;if(typeof i=="function"){const s=i,l=s(r);return typeof l=="function"?l:()=>{s(null)}}return i.current=r,()=>{i.current=null}});return()=>{o.forEach(i=>i==null?void 0:i())}},e);return $.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current(),t.current=void 0),r!=null&&(t.current=n(r))},e)}const c2=Ut(Y.jsx("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft"),u2=Ut(Y.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight"),d2=Ut(Y.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"),Fu=Ut(Y.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"),f2=Ut(Y.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"),Tx=Ut(Y.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"),Ox=Ut(Y.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"),p2=[{icon:Y.jsx(Fu,{}),name:"Month",value:"dayGridMonth"},{icon:Y.jsx(Tx,{}),name:"Week",value:"timeGridWeek"},{icon:Y.jsx(Ox,{}),name:"Day",value:"timeGridDay"}],h2=({onPrev:e,onToday:t,onNext:n,onDatePickerOpen:r,calendarView:o,onViewChange:i,currentTitle:s})=>{const l={dayGridMonth:Y.jsx(Fu,{}),timeGridWeek:Y.jsx(Tx,{}),timeGridDay:Y.jsx(Ox,{})};return Y.jsxs(Re.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",mb:1,px:1},children:[Y.jsxs(Re.Box,{sx:{display:"flex",gap:1},children:[Y.jsx(Re.Tooltip,{title:"Previous",children:Y.jsx(Re.IconButton,{size:"small",onClick:e,children:Y.jsx(c2,{fontSize:"small"})})}),Y.jsx(Re.Tooltip,{title:"Go to today",children:Y.jsx(Re.IconButton,{size:"small",onClick:t,children:Y.jsx(d2,{fontSize:"small"})})}),Y.jsx(Re.Tooltip,{title:"Select date",children:Y.jsx(Re.IconButton,{size:"small",onClick:r,children:Y.jsx(Fu,{fontSize:"small"})})}),Y.jsx(Re.Tooltip,{title:"Next",children:Y.jsx(Re.IconButton,{size:"small",onClick:n,children:Y.jsx(u2,{fontSize:"small"})})})]}),Y.jsx(Re.Typography,{variant:"subtitle1",children:s}),Y.jsx(zs.SpeedDialButton,{actions:p2,value:o,onChange:i,icons:l,openIcon:Y.jsx(f2,{})})]})};function Oe(){return Oe=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},Oe.apply(null,arguments)}function sn({props:e,name:t}){return JN({props:e,name:t,defaultTheme:$g,themeId:Ld})}function _t(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 g2=["localeText"],Uu=$.createContext(null);process.env.NODE_ENV!=="production"&&(Uu.displayName="MuiPickersAdapterContext");const Ax=function(t){const{localeText:n}=t,r=_t(t,g2),{utils:o,localeText:i}=$.useContext(Uu)??{utils:void 0,localeText:void 0},s=sn({props:r,name:"MuiLocalizationProvider"}),{children:l,dateAdapter:u,dateFormats:d,dateLibInstance:f,adapterLocale:g,localeText:b}=s,m=$.useMemo(()=>Oe({},b,i,n),[b,i,n]),v=$.useMemo(()=>{if(!u)return o||null;const S=new u({locale:g,formats:d,instance:f});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},[u,g,d,f,o]),p=$.useMemo(()=>v?{minDate:v.date("1900-01-01T00:00:00.000"),maxDate:v.date("2099-12-31T00:00:00.000")}:null,[v]),y=$.useMemo(()=>({utils:v,defaultDates:p,localeText:m}),[p,v,m]);return Y.jsx(Uu.Provider,{value:y,children:l})};process.env.NODE_ENV!=="production"&&(Ax.propTypes={adapterLocale:w.any,children:w.node,dateAdapter:w.func,dateFormats:w.shape({dayOfMonth:w.string,dayOfMonthFull:w.string,fullDate:w.string,fullTime:w.string,fullTime12h:w.string,fullTime24h:w.string,hours12h:w.string,hours24h:w.string,keyboardDate:w.string,keyboardDateTime:w.string,keyboardDateTime12h:w.string,keyboardDateTime24h:w.string,meridiem:w.string,minutes:w.string,month:w.string,monthShort:w.string,normalDate:w.string,normalDateWithWeekday:w.string,seconds:w.string,shortDate:w.string,weekday:w.string,weekdayShort:w.string,year:w.string}),dateLibInstance:w.any,localeText:w.object});const m2=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:Oe({},e)}}}}),kx={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"},y2=kx;m2(kx);const da=()=>{const e=$.useContext(Uu);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=$.useMemo(()=>Oe({},y2,e.localeText),[e.localeText]);return $.useMemo(()=>Oe({},e,{localeText:t}),[e,t])},Kt=()=>da().utils,Bd=()=>da().defaultDates,Vd=e=>{const t=Kt(),n=$.useRef(void 0);return n.current===void 0&&(n.current=t.date(void 0,e)),n.current},Ba=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),v2=({openTo:e,defaultOpenTo:t,views:n,defaultViews:r})=>{const o=n??r;let i;if(e!=null)i=e;else if(o.includes(t))i=t;else if(o.length>0)i=o[0];else throw new Error("MUI X: The `views` prop must contain at least one view.");return{views:o,openTo:i}},Wu=(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},ml=({date:e,disableFuture:t,disablePast:n,maxDate:r,minDate:o,isDateDisabled:i,utils:s,timezone:l})=>{const u=Wu(s,s.date(void 0,l),e);n&&s.isBefore(o,u)&&(o=u),t&&s.isAfter(r,u)&&(r=u);let d=e,f=e;for(s.isBefore(e,o)&&(d=o,f=null),s.isAfter(e,r)&&(f&&(f=r),d=null);d||f;){if(d&&s.isAfter(d,r)&&(d=null),f&&s.isBefore(f,o)&&(f=null),d){if(!i(d))return d;d=s.addDays(d,1)}if(f){if(!i(f))return f;f=s.addDays(f,-1)}}return null},b2=(e,t)=>t==null||!e.isValid(t)?null:t,Vr=(e,t,n)=>t==null||!e.isValid(t)?n:t,w2=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),S2=(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},Mx=(e,t,n)=>n==="date"?e.startOfDay(e.date(void 0,t)):e.date(void 0,t),E2=["year","month","day"],b0=e=>E2.includes(e),x2=(e,{format:t,views:n},r)=>{if(t!=null)return t;const o=e.formats;return Ba(n,["year"])?o.year:Ba(n,["month"])?o.month:Ba(n,["day"])?o.dayOfMonth:Ba(n,["month","year"])?`${o.month} ${o.year}`:Ba(n,["day","month"])?`${o.month} ${o.dayOfMonth}`:/en/.test(e.getCurrentLocaleCode())?o.normalDateWithWeekday:o.normalDate},C2=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(r=>e.addDays(n,r))};function D2(e){return typeof e.main=="string"}function _2(e,t=[]){if(!D2(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function go(e=[]){return([,t])=>t&&_2(t,e)}function R2(e){return Fn("MuiTypography",e)}Un("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const T2={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},O2=t2(),A2=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:s}=e,l={root:["root",i,e.align!=="inherit"&&`align${je(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return Rr(l,R2,s)},k2=Ne("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${je(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(Br(({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(go()).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${je(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}}]}})),w0={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},ts=$.forwardRef(function(t,n){const{color:r,...o}=pr({props:t,name:"MuiTypography"}),i=!T2[r],s=O2({...o,...i&&{color:r}}),{align:l="inherit",className:u,component:d,gutterBottom:f=!1,noWrap:g=!1,paragraph:b=!1,variant:m="body1",variantMapping:v=w0,...p}=s,y={...s,align:l,color:r,className:u,component:d,gutterBottom:f,noWrap:g,paragraph:b,variant:m,variantMapping:v},S=d||(b?"p":v[m]||w0[m])||"span",E=A2(y);return Y.jsx(k2,{as:S,ref:n,className:He(E.root,u),...p,ownerState:y,style:{...l!=="inherit"&&{"--Typography-textAlign":l},...p.style}})});process.env.NODE_ENV!=="production"&&(ts.propTypes={align:w.oneOf(["center","inherit","justify","left","right"]),children:w.node,classes:w.object,className:w.string,color:w.oneOfType([w.oneOf(["primary","secondary","success","error","info","warning","textPrimary","textSecondary","textDisabled"]),w.string]),component:w.elementType,gutterBottom:w.bool,noWrap:w.bool,paragraph:w.bool,style:w.object,sx:w.oneOfType([w.arrayOf(w.oneOfType([w.func,w.object,w.bool])),w.func,w.object]),variant:w.oneOfType([w.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),w.string]),variantMapping:w.object});function fn(e,t,n=void 0){const r={};for(const o in e){const i=e[o];let s="",l=!0;for(let u=0;u<i.length;u+=1){const d=i[u];d&&(s+=(l===!0?"":" ")+t(d),l=!1,n&&n[d]&&(s+=" "+n[d]))}r[o]=s}return r}const qi=typeof window<"u"?$.useLayoutEffect:$.useEffect;let S0=0;function M2(e){const[t,n]=$.useState(e),r=t;return $.useEffect(()=>{t==null&&(S0+=1,n(`mui-${S0}`))},[t]),r}const P2={...$},E0=P2.useId;function I2(e){return E0!==void 0?E0():M2(e)}function ta({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=$.useRef(e!==void 0),[i,s]=$.useState(t),l=o?e:i;if(process.env.NODE_ENV!=="production"){$.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:d}=$.useRef(t);$.useEffect(()=>{!o&&!Object.is(d,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 u=$.useCallback(d=>{o||s(d)},[]);return[l,u]}function Xe(e){const t=$.useRef(e);return qi(()=>{t.current=e}),$.useRef((...n)=>(0,t.current)(...n)).current}function Lg(...e){const t=$.useRef(void 0),n=$.useCallback(r=>{const o=e.map(i=>{if(i==null)return null;if(typeof i=="function"){const s=i,l=s(r);return typeof l=="function"?l:()=>{s(null)}}return i.current=r,()=>{i.current=null}});return()=>{o.forEach(i=>i==null?void 0:i())}},e);return $.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current(),t.current=void 0),r!=null&&(t.current=n(r))},e)}const x0=e=>e,N2=()=>{let e=x0;return{configure(t){e=t},generate(t){return e(t)},reset(){e=x0}}},j2=N2(),$2={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 pn(e,t,n="Mui"){const r=$2[t];return r?`${n}-${r}`:`${j2.generate(e)}-${t}`}function Rn(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=pn(e,o,n)}),r}function z2(e){return typeof e=="string"}function L2(e,t,n){return e===void 0||z2(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function B2(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 C0(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 V2(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const m=He(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),v={...n==null?void 0:n.style,...o==null?void 0:o.style,...r==null?void 0:r.style},p={...n,...o,...r};return m.length>0&&(p.className=m),Object.keys(v).length>0&&(p.style=v),{props:p,internalRef:void 0}}const s=B2({...o,...r}),l=C0(r),u=C0(o),d=t(s),f=He(d==null?void 0:d.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),g={...d==null?void 0:d.style,...n==null?void 0:n.style,...o==null?void 0:o.style,...r==null?void 0:r.style},b={...d,...n,...u,...l};return f.length>0&&(b.className=f),Object.keys(g).length>0&&(b.style=g),{props:b,internalRef:d.ref}}function H2(e,t,n){return typeof e=="function"?e(t,n):e}function zn(e){var g;const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:o=!1,...i}=e,s=o?{}:H2(n,r),{props:l,internalRef:u}=V2({...i,externalSlotProps:s}),d=Lg(u,s==null?void 0:s.ref,(g=e.additionalProps)==null?void 0:g.ref);return L2(t,{...l,ref:d},r)}function F2(e){return pn("MuiPickersToolbar",e)}Rn("MuiPickersToolbar",["root","content"]);const U2=["children","className","toolbarTitle","hidden","titleId","isLandscape","classes","landscapeDirection"],W2=e=>{const{classes:t}=e;return fn({root:["root"],content:["content"]},F2,t)},Y2=Ne("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"}}]})),G2=Ne("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"}}]}),q2=$.forwardRef(function(t,n){const r=sn({props:t,name:"MuiPickersToolbar"}),{children:o,className:i,toolbarTitle:s,hidden:l,titleId:u}=r,d=_t(r,U2),f=r,g=W2(f);return l?null:Y.jsxs(Y2,Oe({ref:n,className:He(g.root,i),ownerState:f},d,{children:[Y.jsx(ts,{color:"text.secondary",variant:"overline",id:u,children:s}),Y.jsx(G2,{className:g.content,ownerState:f,children:o})]}))}),Hd=()=>da().localeText;function X2(e){return pn("MuiDatePickerToolbar",e)}Rn("MuiDatePickerToolbar",["root","title"]);const Q2=["value","isLandscape","onChange","toolbarFormat","toolbarPlaceholder","views","className","onViewChange","view"],Z2=e=>{const{classes:t}=e;return fn({root:["root"],title:["title"]},X2,t)},K2=Ne(q2,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),J2=Ne(ts,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})({variants:[{props:{isLandscape:!0},style:{margin:"auto 16px auto auto"}}]}),Px=$.forwardRef(function(t,n){const r=sn({props:t,name:"MuiDatePickerToolbar"}),{value:o,isLandscape:i,toolbarFormat:s,toolbarPlaceholder:l="––",views:u,className:d}=r,f=_t(r,Q2),g=Kt(),b=Hd(),m=Z2(r),v=$.useMemo(()=>{if(!o)return l;const y=x2(g,{format:s,views:u});return g.formatByString(o,y)},[o,s,l,g,u]),p=r;return Y.jsx(K2,Oe({ref:n,toolbarTitle:b.datePickerToolbarTitle,isLandscape:i,className:He(m.root,d)},f,{children:Y.jsx(J2,{variant:"h4",align:i?"left":"center",ownerState:p,className:m.title,children:v})}))});process.env.NODE_ENV!=="production"&&(Px.propTypes={classes:w.object,className:w.string,disabled:w.bool,hidden:w.bool,isLandscape:w.bool.isRequired,onChange:w.func.isRequired,onViewChange:w.func.isRequired,readOnly:w.bool,sx:w.oneOfType([w.arrayOf(w.oneOfType([w.func,w.object,w.bool])),w.func,w.object]),titleId:w.string,toolbarFormat:w.string,toolbarPlaceholder:w.node,value:w.object,view:w.oneOf(["day","month","year"]).isRequired,views:w.arrayOf(w.oneOf(["day","month","year"]).isRequired).isRequired});function e$(e,t){const n=Kt(),r=Bd(),o=sn({props:e,name:t}),i=$.useMemo(()=>{var s;return((s=o.localeText)==null?void 0:s.toolbarTitle)==null?o.localeText:Oe({},o.localeText,{datePickerToolbarTitle:o.localeText.toolbarTitle})},[o.localeText]);return Oe({},o,{localeText:i},v2({views:o.views,openTo:o.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{disableFuture:o.disableFuture??!1,disablePast:o.disablePast??!1,minDate:Vr(n,o.minDate,r.minDate),maxDate:Vr(n,o.maxDate,r.maxDate),slots:Oe({toolbar:Px},o.slots)})}const t$=["hours","minutes","seconds"],n$=e=>t$.includes(e),D0=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),r$=(e,t)=>(n,r)=>e?t.isAfter(n,r):D0(n,t)>D0(r,t),ho={year:1,month:2,day:3,minutes:5,seconds:6,milliseconds:7},Va=(e,t,n)=>{if(t===ho.year)return e.startOfYear(n);if(t===ho.month)return e.startOfMonth(n);if(t===ho.day)return e.startOfDay(n);let r=n;return t<ho.minutes&&(r=e.setMinutes(r,0)),t<ho.seconds&&(r=e.setSeconds(r,0)),t<ho.milliseconds&&(r=e.setMilliseconds(r,0)),r},o$=({props:e,utils:t,granularity:n,timezone:r,getTodayDate:o})=>{let i=o?o():Va(t,n,Mx(t,r));e.minDate!=null&&t.isAfterDay(e.minDate,i)&&(i=Va(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,i)&&(i=Va(t,n,e.maxDate));const s=r$(e.disableIgnoringDatePartForTimeValidation??!1,t);return e.minTime!=null&&s(e.minTime,i)&&(i=Va(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:Wu(t,i,e.minTime))),e.maxTime!=null&&s(i,e.maxTime)&&(i=Va(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:Wu(t,i,e.maxTime))),i},i$=["value","referenceDate"],ei={emptyValue:null,getTodayValue:Mx,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,r=_t(e,i$);return t!=null&&r.utils.isValid(t)?t:n??o$(r)},cleanValue:b2,areValuesEqual:w2,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)},Bg=({props:e,value:t,timezone:n,adapter:r})=>{if(t===null)return null;const{shouldDisableDate:o,shouldDisableMonth:i,shouldDisableYear:s,disablePast:l,disableFuture:u}=e,d=r.utils.date(void 0,n),f=Vr(r.utils,e.minDate,r.defaultDates.minDate),g=Vr(r.utils,e.maxDate,r.defaultDates.maxDate);switch(!0){case!r.utils.isValid(t):return"invalidDate";case!!(o&&o(t)):return"shouldDisableDate";case!!(i&&i(t)):return"shouldDisableMonth";case!!(s&&s(t)):return"shouldDisableYear";case!!(u&&r.utils.isAfterDay(t,d)):return"disableFuture";case!!(l&&r.utils.isBeforeDay(t,d)):return"disablePast";case!!(f&&r.utils.isBeforeDay(t,f)):return"minDate";case!!(g&&r.utils.isAfterDay(t,g)):return"maxDate";default:return null}};Bg.valueManager=ei;function s$(e){const{props:t,validator:n,value:r,timezone:o,onError:i}=e,s=da(),l=$.useRef(n.valueManager.defaultErrorState),u=n({adapter:s,value:r,timezone:o,props:t}),d=n.valueManager.hasError(u);$.useEffect(()=>{i&&!n.valueManager.isSameError(u,l.current)&&i(u,r),l.current=u},[n,i,u,r]);const f=Xe(g=>n({adapter:s,value:g,timezone:o,props:t}));return{validationError:u,hasValidationError:d,getValidationErrorForNewValue:f}}const Ix=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:i,disablePast:s,timezone:l})=>{const u=da();return $.useCallback(d=>Bg({adapter:u,value:d,timezone:l,props:{shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:i,disablePast:s}})!==null,[u,e,t,n,r,o,i,s,l])},a$=(e,t,n)=>(r,o)=>{switch(o.type){case"changeMonth":return Oe({},r,{slideDirection:o.direction,currentMonth:o.newMonth,isMonthSwitchingAnimating:!e});case"changeMonthTimezone":{const i=o.newTimezone;if(n.getTimezone(r.currentMonth)===i)return r;let s=n.setTimezone(r.currentMonth,i);return n.getMonth(s)!==n.getMonth(r.currentMonth)&&(s=n.setMonth(s,n.getMonth(r.currentMonth))),Oe({},r,{currentMonth:s})}case"finishMonthSwitchingAnimation":return Oe({},r,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(r.focusedDay!=null&&o.focusedDay!=null&&n.isSameDay(o.focusedDay,r.focusedDay))return r;const i=o.focusedDay!=null&&!t&&!n.isSameMonth(r.currentMonth,o.focusedDay);return Oe({},r,{focusedDay:o.focusedDay,isMonthSwitchingAnimating:i&&!e&&!o.withoutMonthSwitchingAnimation,currentMonth:i?n.startOfMonth(o.focusedDay):r.currentMonth,slideDirection:o.focusedDay!=null&&n.isAfterDay(o.focusedDay,r.currentMonth)?"left":"right"})}default:throw new Error("missing support")}},l$=e=>{const{value:t,referenceDate:n,disableFuture:r,disablePast:o,disableSwitchToMonthOnDayFocus:i=!1,maxDate:s,minDate:l,onMonthChange:u,reduceAnimations:d,shouldDisableDate:f,timezone:g}=e,b=Kt(),m=$.useRef(a$(!!d,i,b)).current,v=$.useMemo(()=>ei.getInitialReferenceValue({value:t,utils:b,timezone:g,props:e,referenceDate:n,granularity:ho.day}),[n,g]),[p,y]=$.useReducer(m,{isMonthSwitchingAnimating:!1,focusedDay:v,currentMonth:b.startOfMonth(v),slideDirection:"left"});$.useEffect(()=>{y({type:"changeMonthTimezone",newTimezone:b.getTimezone(v)})},[v,b]);const S=$.useCallback(T=>{y(Oe({type:"changeMonth"},T)),u&&u(T.newMonth)},[u]),E=$.useCallback(T=>{const O=T;b.isSameMonth(O,p.currentMonth)||S({newMonth:b.startOfMonth(O),direction:b.isAfterDay(O,p.currentMonth)?"left":"right"})},[p.currentMonth,S,b]),D=Ix({shouldDisableDate:f,minDate:l,maxDate:s,disableFuture:r,disablePast:o,timezone:g}),R=$.useCallback(()=>{y({type:"finishMonthSwitchingAnimation"})},[]),C=Xe((T,O)=>{D(T)||y({type:"changeFocusedDay",focusedDay:T,withoutMonthSwitchingAnimation:O})});return{referenceDate:v,calendarState:p,changeMonth:E,changeFocusedDay:C,isDateDisabled:D,onMonthSwitchingAnimationEnd:R,handleChangeMonth:S}};function Wh(e,t){return Wh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Wh(e,t)}function Vg(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Wh(e,t)}function c$(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function u$(e,t){e.classList?e.classList.add(t):c$(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function _0(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function d$(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=_0(e.className,t):e.setAttribute("class",_0(e.className&&e.className.baseVal||"",t))}const R0={disabled:!1};var f$=process.env.NODE_ENV!=="production"?w.oneOfType([w.number,w.shape({enter:w.number,exit:w.number,appear:w.number}).isRequired]):null,p$=process.env.NODE_ENV!=="production"?w.oneOfType([w.string,w.shape({enter:w.string,exit:w.string,active:w.string}),w.shape({enter:w.string,enterDone:w.string,enterActive:w.string,exit:w.string,exitDone:w.string,exitActive:w.string})]):null;const Yu=pe.createContext(null);var Nx=function(t){return t.scrollTop},ll="unmounted",Di="exited",_i="entering",Ns="entered",Yh="exiting",Tr=function(e){Vg(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var s=o,l=s&&!s.isMounting?r.enter:r.appear,u;return i.appearStatus=null,r.in?l?(u=Di,i.appearStatus=_i):u=Ns:r.unmountOnExit||r.mountOnEnter?u=ll:u=Di,i.state={status:u},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var s=o.in;return s&&i.status===ll?{status:Di}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var s=this.state.status;this.props.in?s!==_i&&s!==Ns&&(i=_i):(s===_i||s===Ns)&&(i=Yh)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,s,l;return i=s=l=o,o!=null&&typeof o!="number"&&(i=o.exit,s=o.enter,l=o.appear!==void 0?o.appear:s),{exit:i,enter:s,appear:l}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===_i){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:xn.findDOMNode(this);s&&Nx(s)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Di&&this.setState({status:ll})},n.performEnter=function(o){var i=this,s=this.props.enter,l=this.context?this.context.isMounting:o,u=this.props.nodeRef?[l]:[xn.findDOMNode(this),l],d=u[0],f=u[1],g=this.getTimeouts(),b=l?g.appear:g.enter;if(!o&&!s||R0.disabled){this.safeSetState({status:Ns},function(){i.props.onEntered(d)});return}this.props.onEnter(d,f),this.safeSetState({status:_i},function(){i.props.onEntering(d,f),i.onTransitionEnd(b,function(){i.safeSetState({status:Ns},function(){i.props.onEntered(d,f)})})})},n.performExit=function(){var o=this,i=this.props.exit,s=this.getTimeouts(),l=this.props.nodeRef?void 0:xn.findDOMNode(this);if(!i||R0.disabled){this.safeSetState({status:Di},function(){o.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:Yh},function(){o.props.onExiting(l),o.onTransitionEnd(s.exit,function(){o.safeSetState({status:Di},function(){o.props.onExited(l)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,s=!0;return this.nextCallback=function(l){s&&(s=!1,i.nextCallback=null,o(l))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var s=this.props.nodeRef?this.props.nodeRef.current:xn.findDOMNode(this),l=o==null&&!this.props.addEndListener;if(!s||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var u=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],d=u[0],f=u[1];this.props.addEndListener(d,f)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===ll)return null;var i=this.props,s=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var l=_t(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return pe.createElement(Yu.Provider,{value:null},typeof s=="function"?s(o,l):pe.cloneElement(pe.Children.only(s),l))},t}(pe.Component);Tr.contextType=Yu;Tr.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:w.shape({current:typeof Element>"u"?w.any:function(e,t,n,r,o,i){var s=e[t];return w.instanceOf(s&&"ownerDocument"in s?s.ownerDocument.defaultView.Element:Element)(e,t,n,r,o,i)}}),children:w.oneOfType([w.func.isRequired,w.element.isRequired]).isRequired,in:w.bool,mountOnEnter:w.bool,unmountOnExit:w.bool,appear:w.bool,enter:w.bool,exit:w.bool,timeout:function(t){var n=f$;t.addEndListener||(n=n.isRequired);for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return n.apply(void 0,[t].concat(o))},addEndListener:w.func,onEnter:w.func,onEntering:w.func,onEntered:w.func,onExit:w.func,onExiting:w.func,onExited:w.func}:{};function Cs(){}Tr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Cs,onEntering:Cs,onEntered:Cs,onExit:Cs,onExiting:Cs,onExited:Cs};Tr.UNMOUNTED=ll;Tr.EXITED=Di;Tr.ENTERING=_i;Tr.ENTERED=Ns;Tr.EXITING=Yh;var h$=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return u$(t,r)})},Xp=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return d$(t,r)})},Hg=function(e){Vg(t,e);function t(){for(var r,o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=e.call.apply(e,[this].concat(i))||this,r.appliedClasses={appear:{},enter:{},exit:{}},r.onEnter=function(l,u){var d=r.resolveArguments(l,u),f=d[0],g=d[1];r.removeClasses(f,"exit"),r.addClass(f,g?"appear":"enter","base"),r.props.onEnter&&r.props.onEnter(l,u)},r.onEntering=function(l,u){var d=r.resolveArguments(l,u),f=d[0],g=d[1],b=g?"appear":"enter";r.addClass(f,b,"active"),r.props.onEntering&&r.props.onEntering(l,u)},r.onEntered=function(l,u){var d=r.resolveArguments(l,u),f=d[0],g=d[1],b=g?"appear":"enter";r.removeClasses(f,b),r.addClass(f,b,"done"),r.props.onEntered&&r.props.onEntered(l,u)},r.onExit=function(l){var u=r.resolveArguments(l),d=u[0];r.removeClasses(d,"appear"),r.removeClasses(d,"enter"),r.addClass(d,"exit","base"),r.props.onExit&&r.props.onExit(l)},r.onExiting=function(l){var u=r.resolveArguments(l),d=u[0];r.addClass(d,"exit","active"),r.props.onExiting&&r.props.onExiting(l)},r.onExited=function(l){var u=r.resolveArguments(l),d=u[0];r.removeClasses(d,"exit"),r.addClass(d,"exit","done"),r.props.onExited&&r.props.onExited(l)},r.resolveArguments=function(l,u){return r.props.nodeRef?[r.props.nodeRef.current,l]:[l,u]},r.getClassNames=function(l){var u=r.props.classNames,d=typeof u=="string",f=d&&u?u+"-":"",g=d?""+f+l:u[l],b=d?g+"-active":u[l+"Active"],m=d?g+"-done":u[l+"Done"];return{baseClassName:g,activeClassName:b,doneClassName:m}},r}var n=t.prototype;return n.addClass=function(o,i,s){var l=this.getClassNames(i)[s+"ClassName"],u=this.getClassNames("enter"),d=u.doneClassName;i==="appear"&&s==="done"&&d&&(l+=" "+d),s==="active"&&o&&Nx(o),l&&(this.appliedClasses[i][s]=l,h$(o,l))},n.removeClasses=function(o,i){var s=this.appliedClasses[i],l=s.base,u=s.active,d=s.done;this.appliedClasses[i]={},l&&Xp(o,l),u&&Xp(o,u),d&&Xp(o,d)},n.render=function(){var o=this.props;o.classNames;var i=_t(o,["classNames"]);return pe.createElement(Tr,Oe({},i,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(pe.Component);Hg.defaultProps={classNames:""};Hg.propTypes=process.env.NODE_ENV!=="production"?Oe({},Tr.propTypes,{classNames:p$,onEnter:w.func,onEntering:w.func,onEntered:w.func,onExit:w.func,onExiting:w.func,onExited:w.func}):{};function g$(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Fg(e,t){var n=function(i){return t&&pe.isValidElement(i)?t(i):i},r=Object.create(null);return e&&pe.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function m$(e,t){e=e||{},t=t||{};function n(f){return f in t?t[f]:e[f]}var r=Object.create(null),o=[];for(var i in e)i in t?o.length&&(r[i]=o,o=[]):o.push(i);var s,l={};for(var u in t){if(r[u])for(s=0;s<r[u].length;s++){var d=r[u][s];l[r[u][s]]=n(d)}l[u]=n(u)}for(s=0;s<o.length;s++)l[o[s]]=n(o[s]);return l}function Ni(e,t,n){return n[t]!=null?n[t]:e.props[t]}function y$(e,t){return Fg(e.children,function(n){return pe.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:Ni(n,"appear",e),enter:Ni(n,"enter",e),exit:Ni(n,"exit",e)})})}function v$(e,t,n){var r=Fg(e.children),o=m$(t,r);return Object.keys(o).forEach(function(i){var s=o[i];if(pe.isValidElement(s)){var l=i in t,u=i in r,d=t[i],f=pe.isValidElement(d)&&!d.props.in;u&&(!l||f)?o[i]=pe.cloneElement(s,{onExited:n.bind(null,s),in:!0,exit:Ni(s,"exit",e),enter:Ni(s,"enter",e)}):!u&&l&&!f?o[i]=pe.cloneElement(s,{in:!1}):u&&l&&pe.isValidElement(d)&&(o[i]=pe.cloneElement(s,{onExited:n.bind(null,s),in:d.props.in,exit:Ni(s,"exit",e),enter:Ni(s,"enter",e)}))}}),o}var b$=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},w$={component:"div",childFactory:function(t){return t}},Vl=function(e){Vg(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var s=i.handleExited.bind(g$(i));return i.state={contextValue:{isMounting:!0},handleExited:s,firstRender:!0},i}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(o,i){var s=i.children,l=i.handleExited,u=i.firstRender;return{children:u?y$(o,l):v$(o,s,l),firstRender:!1}},n.handleExited=function(o,i){var s=Fg(this.props.children);o.key in s||(o.props.onExited&&o.props.onExited(i),this.mounted&&this.setState(function(l){var u=Oe({},l.children);return delete u[o.key],{children:u}}))},n.render=function(){var o=this.props,i=o.component,s=o.childFactory,l=_t(o,["component","childFactory"]),u=this.state.contextValue,d=b$(this.state.children).map(s);return delete l.appear,delete l.enter,delete l.exit,i===null?pe.createElement(Yu.Provider,{value:u},d):pe.createElement(Yu.Provider,{value:u},pe.createElement(i,l,d))},t}(pe.Component);Vl.propTypes=process.env.NODE_ENV!=="production"?{component:w.any,children:w.node,appear:w.bool,enter:w.bool,exit:w.bool,childFactory:w.func}:{};Vl.defaultProps=w$;function fa(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...r){return e(...r)||t(...r)}}function S$(e){const{prototype:t={}}=e;return!!t.isReactComponent}function jx(e,t,n,r,o){const i=e[t],s=o||t;if(i==null||typeof window>"u")return null;let l;const u=i.type;return typeof u=="function"&&!S$(u)&&(l="Did you accidentally use a plain function component for an element instead?"),l!==void 0?new Error(`Invalid ${r} \`${s}\` 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 $x=fa(w.element,jx);$x.isRequired=fa(w.element.isRequired,jx);function E$(e){var t;return parseInt($.version,10)>=19?((t=e==null?void 0:e.props)==null?void 0:t.ref)||null:(e==null?void 0:e.ref)||null}const x$=e=>e.scrollTop;function T0(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 C$={entering:{opacity:1},entered:{opacity:1}},Ug=$.forwardRef(function(t,n){const r=zg(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:s=!0,children:l,easing:u,in:d,onEnter:f,onEntered:g,onEntering:b,onExit:m,onExited:v,onExiting:p,style:y,timeout:S=o,TransitionComponent:E=Tr,...D}=t,R=$.useRef(null),C=ea(R,E$(l),n),T=I=>U=>{if(I){const G=R.current;U===void 0?I(G):I(G,U)}},O=T(b),P=T((I,U)=>{x$(I);const G=T0({style:y,timeout:S,easing:u},{mode:"enter"});I.style.webkitTransition=r.transitions.create("opacity",G),I.style.transition=r.transitions.create("opacity",G),f&&f(I,U)}),H=T(g),Q=T(p),q=T(I=>{const U=T0({style:y,timeout:S,easing:u},{mode:"exit"});I.style.webkitTransition=r.transitions.create("opacity",U),I.style.transition=r.transitions.create("opacity",U),m&&m(I)}),x=T(v),L=I=>{i&&i(R.current,I)};return Y.jsx(E,{appear:s,in:d,nodeRef:R,onEnter:P,onEntered:H,onEntering:O,onExit:q,onExited:x,onExiting:Q,addEndListener:L,timeout:S,...D,children:(I,{ownerState:U,...G})=>$.cloneElement(l,{style:{opacity:0,visibility:I==="exited"&&!d?"hidden":void 0,...C$[I],...y,...l.props.style},ref:C,...G})})});process.env.NODE_ENV!=="production"&&(Ug.propTypes={addEndListener:w.func,appear:w.bool,children:$x.isRequired,easing:w.oneOfType([w.shape({enter:w.string,exit:w.string}),w.string]),in:w.bool,onEnter:w.func,onEntered:w.func,onEntering:w.func,onExit:w.func,onExited:w.func,onExiting:w.func,style:w.object,timeout:w.oneOfType([w.number,w.shape({appear:w.number,enter:w.number,exit:w.number})])});const D$=e=>pn("MuiPickersFadeTransitionGroup",e);Rn("MuiPickersFadeTransitionGroup",["root"]);const _$=e=>{const{classes:t}=e;return fn({root:["root"]},D$,t)},R$=Ne(Vl,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function zx(e){const t=sn({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:r,reduceAnimations:o,transKey:i}=t,s=_$(t),l=zg();return o?n:Y.jsx(R$,{className:He(s.root,r),children:Y.jsx(Ug,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:l.transitions.duration.enteringScreen,enter:l.transitions.duration.enteringScreen,exit:0},children:n},i)})}const T$=w.oneOfType([w.func,w.object]);function O$(e){const{prototype:t={}}=e;return!!t.isReactComponent}function A$(e,t,n,r,o){const i=e[t],s=o||t;if(i==null||typeof window>"u")return null;let l;return typeof i=="function"&&!O$(i)&&(l="Did you accidentally provide a plain function component instead?"),l!==void 0?new Error(`Invalid ${r} \`${s}\` 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 Lx=fa(w.elementType,A$);function O0(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 A0={};function Bx(e,t){const n=$.useRef(A0);return n.current===A0&&(n.current=e(t)),n}class Gu{constructor(){ja(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 Gu}static use(){const t=Bx(Gu.create).current,[n,r]=$.useState(!1);return t.shouldMount=n,t.setShouldMount=r,$.useEffect(t.mountEffect,[n]),t}mount(){return this.mounted||(this.mounted=M$(),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 k$(){return Gu.use()}function M$(){let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n}const P$=[];function I$(e){$.useEffect(e,P$)}class Wg{constructor(){ja(this,"currentId",null);ja(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});ja(this,"disposeEffect",()=>this.clear)}static create(){return new Wg}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function N$(){const e=Bx(Wg.create).current;return I$(e.disposeEffect),e}function Vx(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:s,in:l,onExited:u,timeout:d}=e,[f,g]=$.useState(!1),b=He(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),m={width:s,height:s,top:-(s/2)+i,left:-(s/2)+o},v=He(n.child,f&&n.childLeaving,r&&n.childPulsate);return!l&&!f&&g(!0),$.useEffect(()=>{if(!l&&u!=null){const p=setTimeout(u,d);return()=>{clearTimeout(p)}}},[u,l,d]),Y.jsx("span",{className:b,style:m,children:Y.jsx("span",{className:v})})}process.env.NODE_ENV!=="production"&&(Vx.propTypes={classes:w.object.isRequired,className:w.string,in:w.bool,onExited:w.func,pulsate:w.bool,rippleSize:w.number,rippleX:w.number,rippleY:w.number,timeout:w.number.isRequired});const nr=Un("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Gh=550,j$=80,$$=dr.keyframes`
|
|
104
104
|
0% {
|
|
105
105
|
transform: scale(0);
|
|
106
106
|
opacity: 0.1;
|
|
@@ -110,7 +110,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${e}Chann
|
|
|
110
110
|
transform: scale(1);
|
|
111
111
|
opacity: 0.3;
|
|
112
112
|
}
|
|
113
|
-
`,
|
|
113
|
+
`,z$=dr.keyframes`
|
|
114
114
|
0% {
|
|
115
115
|
opacity: 1;
|
|
116
116
|
}
|
|
@@ -118,7 +118,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${e}Chann
|
|
|
118
118
|
100% {
|
|
119
119
|
opacity: 0;
|
|
120
120
|
}
|
|
121
|
-
`,
|
|
121
|
+
`,L$=dr.keyframes`
|
|
122
122
|
0% {
|
|
123
123
|
transform: scale(1);
|
|
124
124
|
}
|
|
@@ -130,23 +130,23 @@ To suppress this warning, you need to explicitly provide the \`palette.${e}Chann
|
|
|
130
130
|
100% {
|
|
131
131
|
transform: scale(1);
|
|
132
132
|
}
|
|
133
|
-
`,
|
|
133
|
+
`,B$=Ne("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),V$=Ne(Vx,{name:"MuiTouchRipple",slot:"Ripple"})`
|
|
134
134
|
opacity: 0;
|
|
135
135
|
position: absolute;
|
|
136
136
|
|
|
137
|
-
&.${
|
|
137
|
+
&.${nr.rippleVisible} {
|
|
138
138
|
opacity: 0.3;
|
|
139
139
|
transform: scale(1);
|
|
140
|
-
animation-name: ${
|
|
141
|
-
animation-duration: ${
|
|
142
|
-
animation-timing-function: ${({theme:
|
|
140
|
+
animation-name: ${$$};
|
|
141
|
+
animation-duration: ${Gh}ms;
|
|
142
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
143
143
|
}
|
|
144
144
|
|
|
145
|
-
&.${
|
|
146
|
-
animation-duration: ${({theme:
|
|
145
|
+
&.${nr.ripplePulsate} {
|
|
146
|
+
animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
|
|
147
147
|
}
|
|
148
148
|
|
|
149
|
-
& .${
|
|
149
|
+
& .${nr.child} {
|
|
150
150
|
opacity: 1;
|
|
151
151
|
display: block;
|
|
152
152
|
width: 100%;
|
|
@@ -155,25 +155,25 @@ To suppress this warning, you need to explicitly provide the \`palette.${e}Chann
|
|
|
155
155
|
background-color: currentColor;
|
|
156
156
|
}
|
|
157
157
|
|
|
158
|
-
& .${
|
|
158
|
+
& .${nr.childLeaving} {
|
|
159
159
|
opacity: 0;
|
|
160
|
-
animation-name: ${
|
|
161
|
-
animation-duration: ${
|
|
162
|
-
animation-timing-function: ${({theme:
|
|
160
|
+
animation-name: ${z$};
|
|
161
|
+
animation-duration: ${Gh}ms;
|
|
162
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
163
163
|
}
|
|
164
164
|
|
|
165
|
-
& .${
|
|
165
|
+
& .${nr.childPulsate} {
|
|
166
166
|
position: absolute;
|
|
167
167
|
/* @noflip */
|
|
168
168
|
left: 0px;
|
|
169
169
|
top: 0;
|
|
170
|
-
animation-name: ${
|
|
170
|
+
animation-name: ${L$};
|
|
171
171
|
animation-duration: 2500ms;
|
|
172
|
-
animation-timing-function: ${({theme:
|
|
172
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
173
173
|
animation-iteration-count: infinite;
|
|
174
174
|
animation-delay: 200ms;
|
|
175
175
|
}
|
|
176
|
-
`,bu=x.forwardRef(function(e,n){const r=it({props:e,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:s,...a}=r,[l,c]=x.useState([]),u=x.useRef(0),f=x.useRef(null);x.useEffect(()=>{f.current&&(f.current(),f.current=null)},[l]);const p=x.useRef(!1),h=mv(),m=x.useRef(null),g=x.useRef(null),v=x.useCallback(C=>{const{pulsate:A,rippleX:T,rippleY:k,rippleSize:P,cb:H}=C;c(W=>[...W,E.jsx(Cv,{classes:{ripple:ce(i.ripple,nt.ripple),rippleVisible:ce(i.rippleVisible,nt.rippleVisible),ripplePulsate:ce(i.ripplePulsate,nt.ripplePulsate),child:ce(i.child,nt.child),childLeaving:ce(i.childLeaving,nt.childLeaving),childPulsate:ce(i.childPulsate,nt.childPulsate)},timeout:zi,pulsate:A,rippleX:T,rippleY:k,rippleSize:P},u.current)]),u.current+=1,f.current=H},[i]),b=x.useCallback((C={},A={},T=()=>{})=>{const{pulsate:k=!1,center:P=o||A.pulsate,fakeElement:H=!1}=A;if((C==null?void 0:C.type)==="mousedown"&&p.current){p.current=!1;return}(C==null?void 0:C.type)==="touchstart"&&(p.current=!0);const W=H?null:g.current,$=W?W.getBoundingClientRect():{width:0,height:0,left:0,top:0};let y,I,_;if(P||C===void 0||C.clientX===0&&C.clientY===0||!C.clientX&&!C.touches)y=Math.round($.width/2),I=Math.round($.height/2);else{const{clientX:O,clientY:N}=C.touches&&C.touches.length>0?C.touches[0]:C;y=Math.round(O-$.left),I=Math.round(N-$.top)}if(P)_=Math.sqrt((2*$.width**2+$.height**2)/3),_%2===0&&(_+=1);else{const O=Math.max(Math.abs((W?W.clientWidth:0)-y),y)*2+2,N=Math.max(Math.abs((W?W.clientHeight:0)-I),I)*2+2;_=Math.sqrt(O**2+N**2)}C!=null&&C.touches?m.current===null&&(m.current=()=>{v({pulsate:k,rippleX:y,rippleY:I,rippleSize:_,cb:T})},h.start(vv,()=>{m.current&&(m.current(),m.current=null)})):v({pulsate:k,rippleX:y,rippleY:I,rippleSize:_,cb:T})},[o,v,h]),S=x.useCallback(()=>{b({},{pulsate:!0})},[b]),R=x.useCallback((C,A)=>{if(h.clear(),(C==null?void 0:C.type)==="touchend"&&m.current){m.current(),m.current=null,h.start(0,()=>{R(C,A)});return}m.current=null,c(T=>T.length>0?T.slice(1):T),f.current=A},[h]);return x.useImperativeHandle(n,()=>({pulsate:S,start:b,stop:R}),[S,b,R]),E.jsx(Sv,{className:ce(nt.root,i.root,s),ref:g,...a,children:E.jsx(br,{component:null,exit:!0,children:l})})});process.env.NODE_ENV!=="production"&&(bu.propTypes={center:d.bool,classes:d.object,className:d.string});function wv(t){return Xe("MuiButtonBase",t)}const xv=Je("MuiButtonBase",["root","disabled","focusVisible"]),Dv=t=>{const{disabled:e,focusVisible:n,focusVisibleClassName:r,classes:o}=t,s=ct({root:["root",e&&"disabled",n&&"focusVisible"]},wv,o);return n&&r&&(s.root+=` ${r}`),s},Tv=te("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"},[`&.${xv.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Vn=x.forwardRef(function(e,n){const r=it({props:e,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:s,className:a,component:l="button",disabled:c=!1,disableRipple:u=!1,disableTouchRipple:f=!1,focusRipple:p=!1,focusVisibleClassName:h,LinkComponent:m="a",onBlur:g,onClick:v,onContextMenu:b,onDragLeave:S,onFocus:R,onFocusVisible:C,onKeyDown:A,onKeyUp:T,onMouseDown:k,onMouseLeave:P,onMouseUp:H,onTouchEnd:W,onTouchMove:$,onTouchStart:y,tabIndex:I=0,TouchRippleProps:_,touchRippleRef:O,type:N,...z}=r,J=x.useRef(null),ne=fv(),V=Nn(ne.ref,O),[D,L]=x.useState(!1);c&&D&&L(!1),x.useImperativeHandle(o,()=>({focusVisible:()=>{L(!0),J.current.focus()}}),[]);const K=ne.shouldMount&&!u&&!c;x.useEffect(()=>{D&&p&&!u&&ne.pulsate()},[u,p,D,ne]);const Q=Et(ne,"start",k,f),ee=Et(ne,"stop",b,f),U=Et(ne,"stop",S,f),Y=Et(ne,"stop",H,f),Z=Et(ne,"stop",ue=>{D&&ue.preventDefault(),P&&P(ue)},f),F=Et(ne,"start",y,f),X=Et(ne,"stop",W,f),fe=Et(ne,"stop",$,f),B=Et(ne,"stop",ue=>{al(ue.target)||L(!1),g&&g(ue)},!1),de=Hr(ue=>{J.current||(J.current=ue.currentTarget),al(ue.target)&&(L(!0),C&&C(ue)),R&&R(ue)}),ye=()=>{const ue=J.current;return l&&l!=="button"&&!(ue.tagName==="A"&&ue.href)},Te=Hr(ue=>{p&&!ue.repeat&&D&&ue.key===" "&&ne.stop(ue,()=>{ne.start(ue)}),ue.target===ue.currentTarget&&ye()&&ue.key===" "&&ue.preventDefault(),A&&A(ue),ue.target===ue.currentTarget&&ye()&&ue.key==="Enter"&&!c&&(ue.preventDefault(),v&&v(ue))}),ie=Hr(ue=>{p&&ue.key===" "&&D&&!ue.defaultPrevented&&ne.stop(ue,()=>{ne.pulsate(ue)}),T&&T(ue),v&&ue.target===ue.currentTarget&&ye()&&ue.key===" "&&!ue.defaultPrevented&&v(ue)});let pe=l;pe==="button"&&(z.href||z.to)&&(pe=m);const re={};pe==="button"?(re.type=N===void 0?"button":N,re.disabled=c):(!z.href&&!z.to&&(re.role="button"),c&&(re["aria-disabled"]=c));const ge=Nn(n,J),$e={...r,centerRipple:i,component:l,disabled:c,disableRipple:u,disableTouchRipple:f,focusRipple:p,tabIndex:I,focusVisible:D},yt=Dv($e);return E.jsxs(Tv,{as:pe,className:ce(yt.root,a),ownerState:$e,onBlur:B,onClick:v,onContextMenu:ee,onFocus:de,onKeyDown:Te,onKeyUp:ie,onMouseDown:Q,onMouseLeave:Z,onMouseUp:Y,onDragLeave:U,onTouchEnd:X,onTouchMove:fe,onTouchStart:F,ref:ge,tabIndex:c?-1:I,type:N,...re,...z,children:[s,K?E.jsx(bu,{ref:V,center:i,..._}):null]})});function Et(t,e,n,r=!1){return Hr(o=>(n&&n(o),r||t[e](o),!0))}process.env.NODE_ENV!=="production"&&(Vn.propTypes={action:cv,centerRipple:d.bool,children:d.node,classes:d.object,className:d.string,component:mu,disabled:d.bool,disableRipple:d.bool,disableTouchRipple:d.bool,focusRipple:d.bool,focusVisibleClassName:d.string,href:d.any,LinkComponent:d.elementType,onBlur:d.func,onClick:d.func,onContextMenu:d.func,onDragLeave:d.func,onFocus:d.func,onFocusVisible:d.func,onKeyDown:d.func,onKeyUp:d.func,onMouseDown:d.func,onMouseLeave:d.func,onMouseUp:d.func,onTouchEnd:d.func,onTouchMove:d.func,onTouchStart:d.func,sx:d.oneOfType([d.arrayOf(d.oneOfType([d.func,d.object,d.bool])),d.func,d.object]),tabIndex:d.number,TouchRippleProps:d.object,touchRippleRef:d.oneOfType([d.func,d.shape({current:d.shape({pulsate:d.func.isRequired,start:d.func.isRequired,stop:d.func.isRequired})})]),type:d.oneOfType([d.oneOf(["button","reset","submit"]),d.string])});const dr=36,Bo=2,Lo=320,Av=280,xs=336;function Rv(t){return Ue("MuiPickersDay",t)}const Gt=Ye("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),_v=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],kv=t=>{const{selected:e,disableMargin:n,disableHighlightToday:r,today:o,disabled:i,outsideCurrentMonth:s,showDaysOutsideCurrentMonth:a,classes:l}=t,c=s&&!a;return We({root:["root",e&&!c&&"selected",i&&"disabled",!n&&"dayWithMargin",!r&&o&&"today",s&&a&&"dayOutsideMonth",c&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},Rv,l)},Eu=({theme:t})=>G({},t.typography.caption,{width:dr,height:dr,borderRadius:"50%",padding:0,backgroundColor:"transparent",transition:t.transitions.create("background-color",{duration:t.transitions.duration.short}),color:(t.vars||t).palette.text.primary,"@media (pointer: fine)":{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.hoverOpacity})`:$t(t.palette.primary.main,t.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.focusOpacity})`:$t(t.palette.primary.main,t.palette.action.focusOpacity),[`&.${Gt.selected}`]:{willChange:"background-color",backgroundColor:(t.vars||t).palette.primary.dark}},[`&.${Gt.selected}`]:{color:(t.vars||t).palette.primary.contrastText,backgroundColor:(t.vars||t).palette.primary.main,fontWeight:t.typography.fontWeightMedium,"&:hover":{willChange:"background-color",backgroundColor:(t.vars||t).palette.primary.dark}},[`&.${Gt.disabled}:not(.${Gt.selected})`]:{color:(t.vars||t).palette.text.disabled},[`&.${Gt.disabled}&.${Gt.selected}`]:{opacity:.6},variants:[{props:{disableMargin:!1},style:{margin:`0 ${Bo}px`}},{props:{outsideCurrentMonth:!0,showDaysOutsideCurrentMonth:!0},style:{color:(t.vars||t).palette.text.secondary}},{props:{disableHighlightToday:!1,today:!0},style:{[`&:not(.${Gt.selected})`]:{border:`1px solid ${(t.vars||t).palette.text.secondary}`}}}]}),Su=(t,e)=>{const{ownerState:n}=t;return[e.root,!n.disableMargin&&e.dayWithMargin,!n.disableHighlightToday&&n.today&&e.today,!n.outsideCurrentMonth&&n.showDaysOutsideCurrentMonth&&e.dayOutsideMonth,n.outsideCurrentMonth&&!n.showDaysOutsideCurrentMonth&&e.hiddenDaySpacingFiller]},Mv=te(Vn,{name:"MuiPickersDay",slot:"Root",overridesResolver:Su})(Eu),Ov=te("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:Su})(({theme:t})=>G({},Eu({theme:t}),{opacity:0,pointerEvents:"none"})),Xn=()=>{},Cu=x.forwardRef(function(e,n){const r=ze({props:e,name:"MuiPickersDay"}),{autoFocus:o=!1,className:i,day:s,disabled:a=!1,disableHighlightToday:l=!1,disableMargin:c=!1,isAnimating:u,onClick:f,onDaySelect:p,onFocus:h=Xn,onBlur:m=Xn,onKeyDown:g=Xn,onMouseDown:v=Xn,onMouseEnter:b=Xn,outsideCurrentMonth:S,selected:R=!1,showDaysOutsideCurrentMonth:C=!1,children:A,today:T=!1}=r,k=_e(r,_v),P=G({},r,{autoFocus:o,disabled:a,disableHighlightToday:l,disableMargin:c,selected:R,showDaysOutsideCurrentMonth:C,today:T}),H=kv(P),W=Le(),$=x.useRef(null),y=vs($,n);cn(()=>{o&&!a&&!u&&!S&&$.current.focus()},[o,a,u,S]);const I=O=>{v(O),S&&O.preventDefault()},_=O=>{a||p(s),S&&O.currentTarget.focus(),f&&f(O)};return S&&!C?E.jsx(Ov,{className:ce(H.root,H.hiddenDaySpacingFiller,i),ownerState:P,role:k.role}):E.jsx(Mv,G({className:ce(H.root,i),ref:y,centerRipple:!0,disabled:a,tabIndex:R?0:-1,onKeyDown:O=>g(O,s),onFocus:O=>h(O,s),onBlur:O=>m(O,s),onMouseEnter:O=>b(O,s),onClick:_,onMouseDown:I},k,{ownerState:P,children:A||W.format(s,"dayOfMonth")}))});process.env.NODE_ENV!=="production"&&(Cu.propTypes={action:d.oneOfType([d.func,d.shape({current:d.shape({focusVisible:d.func.isRequired})})]),centerRipple:d.bool,classes:d.object,className:d.string,component:d.elementType,day:d.object.isRequired,disabled:d.bool,disableHighlightToday:d.bool,disableMargin:d.bool,disableRipple:d.bool,disableTouchRipple:d.bool,focusRipple:d.bool,focusVisibleClassName:d.string,isAnimating:d.bool,isFirstVisibleCell:d.bool.isRequired,isLastVisibleCell:d.bool.isRequired,onBlur:d.func,onDaySelect:d.func.isRequired,onFocus:d.func,onFocusVisible:d.func,onKeyDown:d.func,onMouseEnter:d.func,outsideCurrentMonth:d.bool.isRequired,selected:d.bool,showDaysOutsideCurrentMonth:d.bool,style:d.object,sx:d.oneOfType([d.arrayOf(d.oneOfType([d.func,d.object,d.bool])),d.func,d.object]),tabIndex:d.number,today:d.bool,TouchRippleProps:d.object,touchRippleRef:d.oneOfType([d.func,d.shape({current:d.shape({pulsate:d.func.isRequired,start:d.func.isRequired,stop:d.func.isRequired})})])});const Iv=x.memo(Cu),Pv=t=>Ue("MuiPickersSlideTransition",t),tt=Ye("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),Nv=["children","className","reduceAnimations","slideDirection","transKey","classes"],jv=t=>{const{classes:e,slideDirection:n}=t,r={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return We(r,Pv,e)},Vv=te(br,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(t,e)=>[e.root,{[`.${tt["slideEnter-left"]}`]:e["slideEnter-left"]},{[`.${tt["slideEnter-right"]}`]:e["slideEnter-right"]},{[`.${tt.slideEnterActive}`]:e.slideEnterActive},{[`.${tt.slideExit}`]:e.slideExit},{[`.${tt["slideExitActiveLeft-left"]}`]:e["slideExitActiveLeft-left"]},{[`.${tt["slideExitActiveLeft-right"]}`]:e["slideExitActiveLeft-right"]}]})(({theme:t})=>{const e=t.transitions.create("transform",{duration:t.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},[`& .${tt["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${tt["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${tt.slideEnterActive}`]:{transform:"translate(0%)",transition:e},[`& .${tt.slideExit}`]:{transform:"translate(0%)"},[`& .${tt["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:e,zIndex:0},[`& .${tt["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:e,zIndex:0}}});function $v(t){const e=ze({props:t,name:"MuiPickersSlideTransition"}),{children:n,className:r,reduceAnimations:o,transKey:i}=e,s=_e(e,Nv),a=jv(e),l=ms();if(o)return E.jsx("div",{className:ce(a.root,r),children:n});const c={exit:a.exit,enterActive:a.enterActive,enter:a.enter,exitActive:a.exitActive};return E.jsx(Vv,{className:ce(a.root,r),childFactory:u=>x.cloneElement(u,{classNames:c}),role:"presentation",children:E.jsx(Es,G({mountOnEnter:!0,unmountOnExit:!0,timeout:l.transitions.duration.complex,classNames:c},s,{children:n}),i)})}const Bv=t=>Ue("MuiDayCalendar",t);Ye("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const Lv=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],Hv=["ownerState"],zv=t=>{const{classes:e}=t;return We({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},Bv,e)},wu=(dr+Bo*2)*6,Fv=te("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(t,e)=>e.root})({}),Wv=te("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(t,e)=>e.header})({display:"flex",justifyContent:"center",alignItems:"center"}),Uv=te(pn,{name:"MuiDayCalendar",slot:"WeekDayLabel",overridesResolver:(t,e)=>e.weekDayLabel})(({theme:t})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:(t.vars||t).palette.text.secondary})),Gv=te(pn,{name:"MuiDayCalendar",slot:"WeekNumberLabel",overridesResolver:(t,e)=>e.weekNumberLabel})(({theme:t})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:t.palette.text.disabled})),Yv=te(pn,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(t,e)=>e.weekNumber})(({theme:t})=>G({},t.typography.caption,{width:dr,height:dr,padding:0,margin:`0 ${Bo}px`,color:t.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),qv=te("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(t,e)=>e.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:wu}),Qv=te($v,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(t,e)=>e.slideTransition})({minHeight:wu}),Zv=te("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(t,e)=>e.monthContainer})({overflow:"hidden"}),Kv=te("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(t,e)=>e.weekContainer})({margin:`${Bo}px 0`,display:"flex",justifyContent:"center"});function Xv(t){let{parentProps:e,day:n,focusableDay:r,selectedDays:o,isDateDisabled:i,currentMonthNumber:s,isViewFocused:a}=t,l=_e(t,Lv);const{disabled:c,disableHighlightToday:u,isMonthSwitchingAnimating:f,showDaysOutsideCurrentMonth:p,slots:h,slotProps:m,timezone:g}=e,v=Le(),b=Vo(g),S=r!==null&&v.isSameDay(n,r),R=o.some(y=>v.isSameDay(y,n)),C=v.isSameDay(n,b),A=(h==null?void 0:h.day)??Iv,T=Qe({elementType:A,externalSlotProps:m==null?void 0:m.day,additionalProps:G({disableHighlightToday:u,showDaysOutsideCurrentMonth:p,role:"gridcell",isAnimating:f,"data-timestamp":v.toJsDate(n).valueOf()},l),ownerState:G({},e,{day:n,selected:R})}),k=_e(T,Hv),P=x.useMemo(()=>c||i(n),[c,i,n]),H=x.useMemo(()=>v.getMonth(n)!==s,[v,n,s]),W=x.useMemo(()=>{const y=v.startOfMonth(v.setMonth(n,s));return p?v.isSameDay(n,v.startOfWeek(y)):v.isSameDay(n,y)},[s,n,p,v]),$=x.useMemo(()=>{const y=v.endOfMonth(v.setMonth(n,s));return p?v.isSameDay(n,v.endOfWeek(y)):v.isSameDay(n,y)},[s,n,p,v]);return E.jsx(A,G({},k,{day:n,disabled:P,autoFocus:a&&S,today:C,outsideCurrentMonth:H,isFirstVisibleCell:W,isLastVisibleCell:$,selected:R,tabIndex:S?0:-1,"aria-selected":R,"aria-current":C?"date":void 0}))}function Jv(t){const e=ze({props:t,name:"MuiDayCalendar"}),n=Le(),{onFocusedDayChange:r,className:o,currentMonth:i,selectedDays:s,focusedDay:a,loading:l,onSelectedDaysChange:c,onMonthSwitchingAnimationEnd:u,readOnly:f,reduceAnimations:p,renderLoading:h=()=>E.jsx("span",{children:"..."}),slideDirection:m,TransitionProps:g,disablePast:v,disableFuture:b,minDate:S,maxDate:R,shouldDisableDate:C,shouldDisableMonth:A,shouldDisableYear:T,dayOfWeekFormatter:k=ie=>n.format(ie,"weekdayShort").charAt(0).toUpperCase(),hasFocus:P,onFocusedViewChange:H,gridLabelId:W,displayWeekNumber:$,fixedWeekNumber:y,autoFocus:I,timezone:_}=e,O=Vo(_),N=zv(e),z=yr(),J=du({shouldDisableDate:C,shouldDisableMonth:A,shouldDisableYear:T,minDate:S,maxDate:R,disablePast:v,disableFuture:b,timezone:_}),ne=$o(),[V,D]=jn({name:"DayCalendar",state:"hasFocus",controlled:P,default:I??!1}),[L,K]=x.useState(()=>a||O),Q=he(ie=>{f||c(ie)}),ee=ie=>{J(ie)||(r(ie),K(ie),H==null||H(!0),D(!0))},U=he((ie,pe)=>{switch(ie.key){case"ArrowUp":ee(n.addDays(pe,-7)),ie.preventDefault();break;case"ArrowDown":ee(n.addDays(pe,7)),ie.preventDefault();break;case"ArrowLeft":{const re=n.addDays(pe,z?1:-1),ge=n.addMonths(pe,z?1:-1),$e=ir({utils:n,date:re,minDate:z?re:n.startOfMonth(ge),maxDate:z?n.endOfMonth(ge):re,isDateDisabled:J,timezone:_});ee($e||re),ie.preventDefault();break}case"ArrowRight":{const re=n.addDays(pe,z?-1:1),ge=n.addMonths(pe,z?-1:1),$e=ir({utils:n,date:re,minDate:z?n.startOfMonth(ge):re,maxDate:z?re:n.endOfMonth(ge),isDateDisabled:J,timezone:_});ee($e||re),ie.preventDefault();break}case"Home":ee(n.startOfWeek(pe)),ie.preventDefault();break;case"End":ee(n.endOfWeek(pe)),ie.preventDefault();break;case"PageUp":ee(n.addMonths(pe,1)),ie.preventDefault();break;case"PageDown":ee(n.addMonths(pe,-1)),ie.preventDefault();break}}),Y=he((ie,pe)=>ee(pe)),Z=he((ie,pe)=>{V&&n.isSameDay(L,pe)&&(H==null||H(!1))}),F=n.getMonth(i),X=n.getYear(i),fe=x.useMemo(()=>s.filter(ie=>!!ie).map(ie=>n.startOfDay(ie)),[n,s]),B=`${X}-${F}`,de=x.useMemo(()=>x.createRef(),[B]),ye=x.useMemo(()=>{const ie=n.startOfMonth(i),pe=n.endOfMonth(i);return J(L)||n.isAfterDay(L,pe)||n.isBeforeDay(L,ie)?ir({utils:n,date:L,minDate:ie,maxDate:pe,disablePast:v,disableFuture:b,isDateDisabled:J,timezone:_}):L},[i,b,v,L,J,n,_]),Te=x.useMemo(()=>{const ie=n.getWeekArray(i);let pe=n.addMonths(i,1);for(;y&&ie.length<y;){const re=n.getWeekArray(pe),ge=n.isSameDay(ie[ie.length-1][0],re[0][0]);re.slice(ge?1:0).forEach($e=>{ie.length<y&&ie.push($e)}),pe=n.addMonths(pe,1)}return ie},[i,y,n]);return E.jsxs(Fv,{role:"grid","aria-labelledby":W,className:N.root,children:[E.jsxs(Wv,{role:"row",className:N.header,children:[$&&E.jsx(Gv,{variant:"caption",role:"columnheader","aria-label":ne.calendarWeekNumberHeaderLabel,className:N.weekNumberLabel,children:ne.calendarWeekNumberHeaderText}),im(n,O).map((ie,pe)=>E.jsx(Uv,{variant:"caption",role:"columnheader","aria-label":n.format(ie,"weekday"),className:N.weekDayLabel,children:k(ie)},pe.toString()))]}),l?E.jsx(qv,{className:N.loadingContainer,children:h()}):E.jsx(Qv,G({transKey:B,onExited:u,reduceAnimations:p,slideDirection:m,className:ce(o,N.slideTransition)},g,{nodeRef:de,children:E.jsx(Zv,{ref:de,role:"rowgroup",className:N.monthContainer,children:Te.map((ie,pe)=>E.jsxs(Kv,{role:"row",className:N.weekContainer,"aria-rowindex":pe+1,children:[$&&E.jsx(Yv,{className:N.weekNumber,role:"rowheader","aria-label":ne.calendarWeekNumberAriaLabelText(n.getWeekNumber(ie[0])),children:ne.calendarWeekNumberText(n.getWeekNumber(ie[0]))}),ie.map((re,ge)=>E.jsx(Xv,{parentProps:e,day:re,selectedDays:fe,focusableDay:ye,onKeyDown:U,onFocus:Y,onBlur:Z,onDaySelect:Q,isDateDisabled:J,currentMonthNumber:F,isViewFocused:V,"aria-colindex":ge+1},re.toString()))]},`week-${ie[0]}`))})}))]})}function ey(t){return Ue("MuiPickersMonth",t)}const Rr=Ye("MuiPickersMonth",["root","monthButton","disabled","selected"]),ty=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow","slots","slotProps"],ny=t=>{const{disabled:e,selected:n,classes:r}=t;return We({root:["root"],monthButton:["monthButton",e&&"disabled",n&&"selected"]},ey,r)},ry=te("div",{name:"MuiPickersMonth",slot:"Root",overridesResolver:(t,e)=>[e.root]})({display:"flex",alignItems:"center",justifyContent:"center",flexBasis:"33.3%",variants:[{props:{monthsPerRow:4},style:{flexBasis:"25%"}}]}),oy=te("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(t,e)=>[e.monthButton,{[`&.${Rr.disabled}`]:e.disabled},{[`&.${Rr.selected}`]:e.selected}]})(({theme:t})=>G({color:"unset",backgroundColor:"transparent",border:0,outline:0},t.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:$t(t.palette.action.active,t.palette.action.hoverOpacity)},"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:$t(t.palette.action.active,t.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${Rr.disabled}`]:{color:(t.vars||t).palette.text.secondary},[`&.${Rr.selected}`]:{color:(t.vars||t).palette.primary.contrastText,backgroundColor:(t.vars||t).palette.primary.main,"&:focus, &:hover":{backgroundColor:(t.vars||t).palette.primary.dark}}})),iy=x.memo(function(e){const n=ze({props:e,name:"MuiPickersMonth"}),{autoFocus:r,className:o,children:i,disabled:s,selected:a,value:l,tabIndex:c,onClick:u,onKeyDown:f,onFocus:p,onBlur:h,"aria-current":m,"aria-label":g,slots:v,slotProps:b}=n,S=_e(n,ty),R=x.useRef(null),C=ny(n);cn(()=>{var k;r&&((k=R.current)==null||k.focus())},[r]);const A=(v==null?void 0:v.monthButton)??oy,T=Qe({elementType:A,externalSlotProps:b==null?void 0:b.monthButton,additionalProps:{children:i,disabled:s,tabIndex:c,ref:R,type:"button",role:"radio","aria-current":m,"aria-checked":a,"aria-label":g,onClick:k=>u(k,l),onKeyDown:k=>f(k,l),onFocus:k=>p(k,l),onBlur:k=>h(k,l)},ownerState:n,className:C.monthButton});return E.jsx(ry,G({className:ce(C.root,o),ownerState:n},S,{children:E.jsx(A,G({},T))}))});function sy(t){return Ue("MuiMonthCalendar",t)}Ye("MuiMonthCalendar",["root"]);const xu=({timezone:t,value:e,defaultValue:n,referenceDate:r,onChange:o,valueManager:i})=>{const s=Le(),a=x.useRef(n),l=e??a.current??i.emptyValue,c=x.useMemo(()=>i.getTimezone(s,l),[s,i,l]),u=he(m=>c==null?m:i.setTimezone(s,c,m));let f;t?f=t:c?f=c:r?f=s.getTimezone(r):f="default";const p=x.useMemo(()=>i.setTimezone(s,f,l),[i,s,f,l]),h=he((m,...g)=>{const v=u(m);o==null||o(v,...g)});return{value:p,handleValueChange:h,timezone:f}},Ds=({name:t,timezone:e,value:n,defaultValue:r,referenceDate:o,onChange:i,valueManager:s})=>{const[a,l]=jn({name:t,state:"value",controlled:n,default:r??s.emptyValue}),c=he((u,...f)=>{l(u),i==null||i(u,...f)});return xu({timezone:e,value:a,defaultValue:void 0,referenceDate:o,onChange:c,valueManager:s})},ay=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId","slots","slotProps"],ly=t=>{const{classes:e}=t;return We({root:["root"]},sy,e)};function cy(t,e){const n=Le(),r=jo(),o=ze({props:t,name:e});return G({disableFuture:!1,disablePast:!1},o,{minDate:gt(n,o.minDate,r.minDate),maxDate:gt(n,o.maxDate,r.maxDate)})}const uy=te("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:Lo,boxSizing:"border-box"}),Du=x.forwardRef(function(e,n){const r=cy(e,"MuiMonthCalendar"),{className:o,value:i,defaultValue:s,referenceDate:a,disabled:l,disableFuture:c,disablePast:u,maxDate:f,minDate:p,onChange:h,shouldDisableMonth:m,readOnly:g,autoFocus:v=!1,onMonthFocus:b,hasFocus:S,onFocusedViewChange:R,monthsPerRow:C=3,timezone:A,gridLabelId:T,slots:k,slotProps:P}=r,H=_e(r,ay),{value:W,handleValueChange:$,timezone:y}=Ds({name:"MonthCalendar",timezone:A,value:i,defaultValue:s,referenceDate:a,onChange:h,valueManager:Bt}),I=Vo(y),_=yr(),O=Le(),N=x.useMemo(()=>Bt.getInitialReferenceValue({value:W,utils:O,props:r,timezone:y,referenceDate:a,granularity:St.month}),[]),z=r,J=ly(z),ne=x.useMemo(()=>O.getMonth(I),[O,I]),V=x.useMemo(()=>W!=null?O.getMonth(W):null,[W,O]),[D,L]=x.useState(()=>V||O.getMonth(N)),[K,Q]=jn({name:"MonthCalendar",state:"hasFocus",controlled:S,default:v??!1}),ee=he(B=>{Q(B),R&&R(B)}),U=x.useCallback(B=>{const de=O.startOfMonth(u&&O.isAfter(I,p)?I:p),ye=O.startOfMonth(c&&O.isBefore(I,f)?I:f),Te=O.startOfMonth(B);return O.isBefore(Te,de)||O.isAfter(Te,ye)?!0:m?m(Te):!1},[c,u,f,p,I,m,O]),Y=he((B,de)=>{if(g)return;const ye=O.setMonth(W??N,de);$(ye)}),Z=he(B=>{U(O.setMonth(W??N,B))||(L(B),ee(!0),b&&b(B))});x.useEffect(()=>{L(B=>V!==null&&B!==V?V:B)},[V]);const F=he((B,de)=>{switch(B.key){case"ArrowUp":Z((12+de-3)%12),B.preventDefault();break;case"ArrowDown":Z((12+de+3)%12),B.preventDefault();break;case"ArrowLeft":Z((12+de+(_?1:-1))%12),B.preventDefault();break;case"ArrowRight":Z((12+de+(_?-1:1))%12),B.preventDefault();break}}),X=he((B,de)=>{Z(de)}),fe=he((B,de)=>{D===de&&ee(!1)});return E.jsx(uy,G({ref:n,className:ce(J.root,o),ownerState:z,role:"radiogroup","aria-labelledby":T},H,{children:nm(O,W??N).map(B=>{const de=O.getMonth(B),ye=O.format(B,"monthShort"),Te=O.format(B,"month"),ie=de===V,pe=l||U(B);return E.jsx(iy,{selected:ie,value:de,onClick:Y,onKeyDown:F,autoFocus:K&&de===D,disabled:pe,tabIndex:de===D&&!pe?0:-1,onFocus:X,onBlur:fe,"aria-current":ne===de?"date":void 0,"aria-label":Te,monthsPerRow:C,slots:k,slotProps:P,children:ye},ye)})}))});process.env.NODE_ENV!=="production"&&(Du.propTypes={autoFocus:d.bool,classes:d.object,className:d.string,defaultValue:d.object,disabled:d.bool,disableFuture:d.bool,disableHighlightToday:d.bool,disablePast:d.bool,gridLabelId:d.string,hasFocus:d.bool,maxDate:d.object,minDate:d.object,monthsPerRow:d.oneOf([3,4]),onChange:d.func,onFocusedViewChange:d.func,onMonthFocus:d.func,readOnly:d.bool,referenceDate:d.object,shouldDisableMonth:d.func,slotProps:d.object,slots:d.object,sx:d.oneOfType([d.arrayOf(d.oneOfType([d.func,d.object,d.bool])),d.func,d.object]),timezone:d.string,value:d.object});function dy(t){return Ue("MuiPickersYear",t)}const _r=Ye("MuiPickersYear",["root","yearButton","selected","disabled"]),fy=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow","slots","slotProps"],py=t=>{const{disabled:e,selected:n,classes:r}=t;return We({root:["root"],yearButton:["yearButton",e&&"disabled",n&&"selected"]},dy,r)},hy=te("div",{name:"MuiPickersYear",slot:"Root",overridesResolver:(t,e)=>[e.root]})({display:"flex",alignItems:"center",justifyContent:"center",flexBasis:"33.3%",variants:[{props:{yearsPerRow:4},style:{flexBasis:"25%"}}]}),gy=te("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(t,e)=>[e.yearButton,{[`&.${_r.disabled}`]:e.disabled},{[`&.${_r.selected}`]:e.selected}]})(({theme:t})=>G({color:"unset",backgroundColor:"transparent",border:0,outline:0},t.typography.subtitle1,{margin:"6px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.focusOpacity})`:$t(t.palette.action.active,t.palette.action.focusOpacity)},"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:$t(t.palette.action.active,t.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${_r.disabled}`]:{color:(t.vars||t).palette.text.secondary},[`&.${_r.selected}`]:{color:(t.vars||t).palette.primary.contrastText,backgroundColor:(t.vars||t).palette.primary.main,"&:focus, &:hover":{backgroundColor:(t.vars||t).palette.primary.dark}}})),my=x.memo(function(e){const n=ze({props:e,name:"MuiPickersYear"}),{autoFocus:r,className:o,children:i,disabled:s,selected:a,value:l,tabIndex:c,onClick:u,onKeyDown:f,onFocus:p,onBlur:h,"aria-current":m,slots:g,slotProps:v}=n,b=_e(n,fy),S=x.useRef(null),R=py(n);cn(()=>{var T;r&&((T=S.current)==null||T.focus())},[r]);const C=(g==null?void 0:g.yearButton)??gy,A=Qe({elementType:C,externalSlotProps:v==null?void 0:v.yearButton,additionalProps:{children:i,disabled:s,tabIndex:c,ref:S,type:"button",role:"radio","aria-current":m,"aria-checked":a,onClick:T=>u(T,l),onKeyDown:T=>f(T,l),onFocus:T=>p(T,l),onBlur:T=>h(T,l)},ownerState:n,className:R.yearButton});return E.jsx(hy,G({className:ce(R.root,o),ownerState:n},b,{children:E.jsx(C,G({},A))}))});function vy(t){return Ue("MuiYearCalendar",t)}Ye("MuiYearCalendar",["root"]);const yy=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsOrder","yearsPerRow","timezone","gridLabelId","slots","slotProps"],by=t=>{const{classes:e}=t;return We({root:["root"]},vy,e)};function Ey(t,e){const n=Le(),r=jo(),o=ze({props:t,name:e});return G({disablePast:!1,disableFuture:!1},o,{yearsPerRow:o.yearsPerRow??3,minDate:gt(n,o.minDate,r.minDate),maxDate:gt(n,o.maxDate,r.maxDate)})}const Sy=te("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:Lo,maxHeight:Av,boxSizing:"border-box",position:"relative"}),Tu=x.forwardRef(function(e,n){const r=Ey(e,"MuiYearCalendar"),{autoFocus:o,className:i,value:s,defaultValue:a,referenceDate:l,disabled:c,disableFuture:u,disablePast:f,maxDate:p,minDate:h,onChange:m,readOnly:g,shouldDisableYear:v,onYearFocus:b,hasFocus:S,onFocusedViewChange:R,yearsOrder:C="asc",yearsPerRow:A,timezone:T,gridLabelId:k,slots:P,slotProps:H}=r,W=_e(r,yy),{value:$,handleValueChange:y,timezone:I}=Ds({name:"YearCalendar",timezone:T,value:s,defaultValue:a,referenceDate:l,onChange:m,valueManager:Bt}),_=Vo(I),O=yr(),N=Le(),z=x.useMemo(()=>Bt.getInitialReferenceValue({value:$,utils:N,props:r,timezone:I,referenceDate:l,granularity:St.year}),[]),J=r,ne=by(J),V=x.useMemo(()=>N.getYear(_),[N,_]),D=x.useMemo(()=>$!=null?N.getYear($):null,[$,N]),[L,K]=x.useState(()=>D||N.getYear(z)),[Q,ee]=jn({name:"YearCalendar",state:"hasFocus",controlled:S,default:o??!1}),U=he(re=>{ee(re),R&&R(re)}),Y=x.useCallback(re=>{if(f&&N.isBeforeYear(re,_)||u&&N.isAfterYear(re,_)||h&&N.isBeforeYear(re,h)||p&&N.isAfterYear(re,p))return!0;if(!v)return!1;const ge=N.startOfYear(re);return v(ge)},[u,f,p,h,_,v,N]),Z=he((re,ge)=>{if(g)return;const $e=N.setYear($??z,ge);y($e)}),F=he(re=>{Y(N.setYear($??z,re))||(K(re),U(!0),b==null||b(re))});x.useEffect(()=>{K(re=>D!==null&&re!==D?D:re)},[D]);const X=C!=="desc"?A*1:A*-1,fe=O&&C==="asc"||!O&&C==="desc"?-1:1,B=he((re,ge)=>{switch(re.key){case"ArrowUp":F(ge-X),re.preventDefault();break;case"ArrowDown":F(ge+X),re.preventDefault();break;case"ArrowLeft":F(ge-fe),re.preventDefault();break;case"ArrowRight":F(ge+fe),re.preventDefault();break}}),de=he((re,ge)=>{F(ge)}),ye=he((re,ge)=>{L===ge&&U(!1)}),Te=x.useRef(null),ie=vs(n,Te);x.useEffect(()=>{if(o||Te.current===null)return;const re=Te.current.querySelector('[tabindex="0"]');if(!re)return;const ge=re.offsetHeight,$e=re.offsetTop,yt=Te.current.clientHeight,ue=Te.current.scrollTop,Qo=$e+ge;ge>yt||$e<ue||(Te.current.scrollTop=Qo-yt/2-ge/2)},[o]);const pe=N.getYearRange([h,p]);return C==="desc"&&pe.reverse(),E.jsx(Sy,G({ref:ie,className:ce(ne.root,i),ownerState:J,role:"radiogroup","aria-labelledby":k},W,{children:pe.map(re=>{const ge=N.getYear(re),$e=ge===D,yt=c||Y(re);return E.jsx(my,{selected:$e,value:ge,onClick:Z,onKeyDown:B,autoFocus:Q&&ge===L,disabled:yt,tabIndex:ge===L&&!yt?0:-1,onFocus:de,onBlur:ye,"aria-current":V===ge?"date":void 0,yearsPerRow:A,slots:P,slotProps:H,children:N.format(re,"year")},N.format(re,"year"))})}))});process.env.NODE_ENV!=="production"&&(Tu.propTypes={autoFocus:d.bool,classes:d.object,className:d.string,defaultValue:d.object,disabled:d.bool,disableFuture:d.bool,disableHighlightToday:d.bool,disablePast:d.bool,gridLabelId:d.string,hasFocus:d.bool,maxDate:d.object,minDate:d.object,onChange:d.func,onFocusedViewChange:d.func,onYearFocus:d.func,readOnly:d.bool,referenceDate:d.object,shouldDisableYear:d.func,slotProps:d.object,slots:d.object,sx:d.oneOfType([d.arrayOf(d.oneOfType([d.func,d.object,d.bool])),d.func,d.object]),timezone:d.string,value:d.object,yearsOrder:d.oneOf(["asc","desc"]),yearsPerRow:d.oneOf([3,4])});let fi=!1;function Au({onChange:t,onViewChange:e,openTo:n,view:r,views:o,autoFocus:i,focusedView:s,onFocusedViewChange:a}){process.env.NODE_ENV!=="production"&&(fi||(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('", "')}"]\`.`),fi=!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('", "')}"]\`.`),fi=!0)));const l=x.useRef(n),c=x.useRef(o),u=x.useRef(o.includes(n)?n:o[0]),[f,p]=jn({name:"useViews",state:"view",controlled:r,default:u.current}),h=x.useRef(i?f:null),[m,g]=jn({name:"useViews",state:"focusedView",controlled:s,default:h.current});x.useEffect(()=>{(l.current&&l.current!==n||c.current&&c.current.some(k=>!o.includes(k)))&&(p(o.includes(n)?n:o[0]),c.current=o,l.current=n)},[n,p,f,o]);const v=o.indexOf(f),b=o[v-1]??null,S=o[v+1]??null,R=he((k,P)=>{g(P?k:H=>k===H?null:H),a==null||a(k,P)}),C=he(k=>{R(k,!0),k!==f&&(p(k),e&&e(k))}),A=he(()=>{S&&C(S)}),T=he((k,P,H)=>{const W=P==="finish",$=H?o.indexOf(H)<o.length-1:!!S;if(t(k,W&&$?"partial":P,H),H&&H!==f){const I=o[o.indexOf(H)+1];I&&C(I)}else W&&A()});return{view:f,setView:C,focusedView:m,setFocusedView:R,nextView:S,previousView:b,defaultView:o.includes(n)?n:o[0],goToNextView:A,setValueAndGoToNextView:T}}const Cy=t=>Ue("MuiPickersCalendarHeader",t),wy=Ye("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]);function xy(t){return Xe("MuiCircularProgress",t)}Je("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","track","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const st=44,Fi=zt.keyframes`
|
|
176
|
+
`,Hx=$.forwardRef(function(t,n){const r=pr({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:s,...l}=r,[u,d]=$.useState([]),f=$.useRef(0),g=$.useRef(null);$.useEffect(()=>{g.current&&(g.current(),g.current=null)},[u]);const b=$.useRef(!1),m=N$(),v=$.useRef(null),p=$.useRef(null),y=$.useCallback(R=>{const{pulsate:C,rippleX:T,rippleY:O,rippleSize:P,cb:H}=R;d(Q=>[...Q,Y.jsx(V$,{classes:{ripple:He(i.ripple,nr.ripple),rippleVisible:He(i.rippleVisible,nr.rippleVisible),ripplePulsate:He(i.ripplePulsate,nr.ripplePulsate),child:He(i.child,nr.child),childLeaving:He(i.childLeaving,nr.childLeaving),childPulsate:He(i.childPulsate,nr.childPulsate)},timeout:Gh,pulsate:C,rippleX:T,rippleY:O,rippleSize:P},f.current)]),f.current+=1,g.current=H},[i]),S=$.useCallback((R={},C={},T=()=>{})=>{const{pulsate:O=!1,center:P=o||C.pulsate,fakeElement:H=!1}=C;if((R==null?void 0:R.type)==="mousedown"&&b.current){b.current=!1;return}(R==null?void 0:R.type)==="touchstart"&&(b.current=!0);const Q=H?null:p.current,q=Q?Q.getBoundingClientRect():{width:0,height:0,left:0,top:0};let x,L,I;if(P||R===void 0||R.clientX===0&&R.clientY===0||!R.clientX&&!R.touches)x=Math.round(q.width/2),L=Math.round(q.height/2);else{const{clientX:U,clientY:G}=R.touches&&R.touches.length>0?R.touches[0]:R;x=Math.round(U-q.left),L=Math.round(G-q.top)}if(P)I=Math.sqrt((2*q.width**2+q.height**2)/3),I%2===0&&(I+=1);else{const U=Math.max(Math.abs((Q?Q.clientWidth:0)-x),x)*2+2,G=Math.max(Math.abs((Q?Q.clientHeight:0)-L),L)*2+2;I=Math.sqrt(U**2+G**2)}R!=null&&R.touches?v.current===null&&(v.current=()=>{y({pulsate:O,rippleX:x,rippleY:L,rippleSize:I,cb:T})},m.start(j$,()=>{v.current&&(v.current(),v.current=null)})):y({pulsate:O,rippleX:x,rippleY:L,rippleSize:I,cb:T})},[o,y,m]),E=$.useCallback(()=>{S({},{pulsate:!0})},[S]),D=$.useCallback((R,C)=>{if(m.clear(),(R==null?void 0:R.type)==="touchend"&&v.current){v.current(),v.current=null,m.start(0,()=>{D(R,C)});return}v.current=null,d(T=>T.length>0?T.slice(1):T),g.current=C},[m]);return $.useImperativeHandle(n,()=>({pulsate:E,start:S,stop:D}),[E,S,D]),Y.jsx(B$,{className:He(nr.root,i.root,s),ref:p,...l,children:Y.jsx(Vl,{component:null,exit:!0,children:u})})});process.env.NODE_ENV!=="production"&&(Hx.propTypes={center:w.bool,classes:w.object,className:w.string});function H$(e){return Fn("MuiButtonBase",e)}const F$=Un("MuiButtonBase",["root","disabled","focusVisible"]),U$=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,s=Rr({root:["root",t&&"disabled",n&&"focusVisible"]},H$,o);return n&&r&&(s.root+=` ${r}`),s},W$=Ne("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"},[`&.${F$.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),na=$.forwardRef(function(t,n){const r=pr({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:s,className:l,component:u="button",disabled:d=!1,disableRipple:f=!1,disableTouchRipple:g=!1,focusRipple:b=!1,focusVisibleClassName:m,LinkComponent:v="a",onBlur:p,onClick:y,onContextMenu:S,onDragLeave:E,onFocus:D,onFocusVisible:R,onKeyDown:C,onKeyUp:T,onMouseDown:O,onMouseLeave:P,onMouseUp:H,onTouchEnd:Q,onTouchMove:q,onTouchStart:x,tabIndex:L=0,TouchRippleProps:I,touchRippleRef:U,type:G,...te}=r,se=$.useRef(null),de=k$(),W=ea(de.ref,U),[k,ee]=$.useState(!1);d&&k&&ee(!1),$.useImperativeHandle(o,()=>({focusVisible:()=>{ee(!0),se.current.focus()}}),[]);const ie=de.shouldMount&&!f&&!d;$.useEffect(()=>{k&&b&&!f&&de.pulsate()},[f,b,k,de]);const oe=so(de,"start",O,g),ye=so(de,"stop",S,g),le=so(de,"stop",E,g),B=so(de,"stop",H,g),N=so(de,"stop",Me=>{k&&Me.preventDefault(),P&&P(Me)},g),V=so(de,"start",x,g),K=so(de,"stop",Q,g),ae=so(de,"stop",q,g),F=so(de,"stop",Me=>{O0(Me.target)||ee(!1),p&&p(Me)},!1),ve=Du(Me=>{se.current||(se.current=Me.currentTarget),O0(Me.target)&&(ee(!0),R&&R(Me)),D&&D(Me)}),Ee=()=>{const Me=se.current;return u&&u!=="button"&&!(Me.tagName==="A"&&Me.href)},Te=Du(Me=>{b&&!Me.repeat&&k&&Me.key===" "&&de.stop(Me,()=>{de.start(Me)}),Me.target===Me.currentTarget&&Ee()&&Me.key===" "&&Me.preventDefault(),C&&C(Me),Me.target===Me.currentTarget&&Ee()&&Me.key==="Enter"&&!d&&(Me.preventDefault(),y&&y(Me))}),xe=Du(Me=>{b&&Me.key===" "&&k&&!Me.defaultPrevented&&de.stop(Me,()=>{de.pulsate(Me)}),T&&T(Me),y&&Me.target===Me.currentTarget&&Ee()&&Me.key===" "&&!Me.defaultPrevented&&y(Me)});let he=u;he==="button"&&(te.href||te.to)&&(he=v);const fe={};he==="button"?(fe.type=G===void 0?"button":G,fe.disabled=d):(!te.href&&!te.to&&(fe.role="button"),d&&(fe["aria-disabled"]=d));const Ce=ea(n,se),Pe={...r,centerRipple:i,component:u,disabled:d,disableRipple:f,disableTouchRipple:g,focusRipple:b,tabIndex:L,focusVisible:k},_e=U$(Pe);return Y.jsxs(W$,{as:he,className:He(_e.root,l),ownerState:Pe,onBlur:F,onClick:y,onContextMenu:ye,onFocus:ve,onKeyDown:Te,onKeyUp:xe,onMouseDown:oe,onMouseLeave:N,onMouseUp:B,onDragLeave:le,onTouchEnd:K,onTouchMove:ae,onTouchStart:V,ref:Ce,tabIndex:d?-1:L,type:G,...fe,...te,children:[s,ie?Y.jsx(Hx,{ref:W,center:i,...I}):null]})});function so(e,t,n,r=!1){return Du(o=>(n&&n(o),r||e[t](o),!0))}process.env.NODE_ENV!=="production"&&(na.propTypes={action:T$,centerRipple:w.bool,children:w.node,classes:w.object,className:w.string,component:Lx,disabled:w.bool,disableRipple:w.bool,disableTouchRipple:w.bool,focusRipple:w.bool,focusVisibleClassName:w.string,href:w.any,LinkComponent:w.elementType,onBlur:w.func,onClick:w.func,onContextMenu:w.func,onDragLeave:w.func,onFocus:w.func,onFocusVisible:w.func,onKeyDown:w.func,onKeyUp:w.func,onMouseDown:w.func,onMouseLeave:w.func,onMouseUp:w.func,onTouchEnd:w.func,onTouchMove:w.func,onTouchStart:w.func,sx:w.oneOfType([w.arrayOf(w.oneOfType([w.func,w.object,w.bool])),w.func,w.object]),tabIndex:w.number,TouchRippleProps:w.object,touchRippleRef:w.oneOfType([w.func,w.shape({current:w.shape({pulsate:w.func.isRequired,start:w.func.isRequired,stop:w.func.isRequired})})]),type:w.oneOfType([w.oneOf(["button","reset","submit"]),w.string])});const Dl=36,Fd=2,Ud=320,Y$=280,Yg=336;function G$(e){return pn("MuiPickersDay",e)}const wi=Rn("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),q$=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],X$=e=>{const{selected:t,disableMargin:n,disableHighlightToday:r,today:o,disabled:i,outsideCurrentMonth:s,showDaysOutsideCurrentMonth:l,classes:u}=e,d=s&&!l;return fn({root:["root",t&&!d&&"selected",i&&"disabled",!n&&"dayWithMargin",!r&&o&&"today",s&&l&&"dayOutsideMonth",d&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},G$,u)},Fx=({theme:e})=>Oe({},e.typography.caption,{width:Dl,height:Dl,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})`:Jo(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:Jo(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${wi.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${wi.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}},[`&.${wi.disabled}:not(.${wi.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${wi.disabled}&.${wi.selected}`]:{opacity:.6},variants:[{props:{disableMargin:!1},style:{margin:`0 ${Fd}px`}},{props:{outsideCurrentMonth:!0,showDaysOutsideCurrentMonth:!0},style:{color:(e.vars||e).palette.text.secondary}},{props:{disableHighlightToday:!1,today:!0},style:{[`&:not(.${wi.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}}]}),Ux=(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]},Q$=Ne(na,{name:"MuiPickersDay",slot:"Root",overridesResolver:Ux})(Fx),Z$=Ne("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:Ux})(({theme:e})=>Oe({},Fx({theme:e}),{opacity:0,pointerEvents:"none"})),Ha=()=>{},Wx=$.forwardRef(function(t,n){const r=sn({props:t,name:"MuiPickersDay"}),{autoFocus:o=!1,className:i,day:s,disabled:l=!1,disableHighlightToday:u=!1,disableMargin:d=!1,isAnimating:f,onClick:g,onDaySelect:b,onFocus:m=Ha,onBlur:v=Ha,onKeyDown:p=Ha,onMouseDown:y=Ha,onMouseEnter:S=Ha,outsideCurrentMonth:E,selected:D=!1,showDaysOutsideCurrentMonth:R=!1,children:C,today:T=!1}=r,O=_t(r,q$),P=Oe({},r,{autoFocus:o,disabled:l,disableHighlightToday:u,disableMargin:d,selected:D,showDaysOutsideCurrentMonth:R,today:T}),H=X$(P),Q=Kt(),q=$.useRef(null),x=Lg(q,n);qi(()=>{o&&!l&&!f&&!E&&q.current.focus()},[o,l,f,E]);const L=U=>{y(U),E&&U.preventDefault()},I=U=>{l||b(s),E&&U.currentTarget.focus(),g&&g(U)};return E&&!R?Y.jsx(Z$,{className:He(H.root,H.hiddenDaySpacingFiller,i),ownerState:P,role:O.role}):Y.jsx(Q$,Oe({className:He(H.root,i),ref:x,centerRipple:!0,disabled:l,tabIndex:D?0:-1,onKeyDown:U=>p(U,s),onFocus:U=>m(U,s),onBlur:U=>v(U,s),onMouseEnter:U=>S(U,s),onClick:I,onMouseDown:L},O,{ownerState:P,children:C||Q.format(s,"dayOfMonth")}))});process.env.NODE_ENV!=="production"&&(Wx.propTypes={action:w.oneOfType([w.func,w.shape({current:w.shape({focusVisible:w.func.isRequired})})]),centerRipple:w.bool,classes:w.object,className:w.string,component:w.elementType,day:w.object.isRequired,disabled:w.bool,disableHighlightToday:w.bool,disableMargin:w.bool,disableRipple:w.bool,disableTouchRipple:w.bool,focusRipple:w.bool,focusVisibleClassName:w.string,isAnimating:w.bool,isFirstVisibleCell:w.bool.isRequired,isLastVisibleCell:w.bool.isRequired,onBlur:w.func,onDaySelect:w.func.isRequired,onFocus:w.func,onFocusVisible:w.func,onKeyDown:w.func,onMouseEnter:w.func,outsideCurrentMonth:w.bool.isRequired,selected:w.bool,showDaysOutsideCurrentMonth:w.bool,style:w.object,sx:w.oneOfType([w.arrayOf(w.oneOfType([w.func,w.object,w.bool])),w.func,w.object]),tabIndex:w.number,today:w.bool,TouchRippleProps:w.object,touchRippleRef:w.oneOfType([w.func,w.shape({current:w.shape({pulsate:w.func.isRequired,start:w.func.isRequired,stop:w.func.isRequired})})])});const K$=$.memo(Wx),J$=e=>pn("MuiPickersSlideTransition",e),tr=Rn("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),ez=["children","className","reduceAnimations","slideDirection","transKey","classes"],tz=e=>{const{classes:t,slideDirection:n}=e,r={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return fn(r,J$,t)},nz=Ne(Vl,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${tr["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${tr["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${tr.slideEnterActive}`]:t.slideEnterActive},{[`.${tr.slideExit}`]:t.slideExit},{[`.${tr["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${tr["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},[`& .${tr["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${tr["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${tr.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${tr.slideExit}`]:{transform:"translate(0%)"},[`& .${tr["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${tr["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function rz(e){const t=sn({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:r,reduceAnimations:o,transKey:i}=t,s=_t(t,ez),l=tz(t),u=zg();if(o)return Y.jsx("div",{className:He(l.root,r),children:n});const d={exit:l.exit,enterActive:l.enterActive,enter:l.enter,exitActive:l.exitActive};return Y.jsx(nz,{className:He(l.root,r),childFactory:f=>$.cloneElement(f,{classNames:d}),role:"presentation",children:Y.jsx(Hg,Oe({mountOnEnter:!0,unmountOnExit:!0,timeout:u.transitions.duration.complex,classNames:d},s,{children:n}),i)})}const oz=e=>pn("MuiDayCalendar",e);Rn("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const iz=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],sz=["ownerState"],az=e=>{const{classes:t}=e;return fn({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},oz,t)},Yx=(Dl+Fd*2)*6,lz=Ne("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),cz=Ne("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),uz=Ne(ts,{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})),dz=Ne(ts,{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})),fz=Ne(ts,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(e,t)=>t.weekNumber})(({theme:e})=>Oe({},e.typography.caption,{width:Dl,height:Dl,padding:0,margin:`0 ${Fd}px`,color:e.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),pz=Ne("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:Yx}),hz=Ne(rz,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:Yx}),gz=Ne("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),mz=Ne("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${Fd}px 0`,display:"flex",justifyContent:"center"});function yz(e){let{parentProps:t,day:n,focusableDay:r,selectedDays:o,isDateDisabled:i,currentMonthNumber:s,isViewFocused:l}=e,u=_t(e,iz);const{disabled:d,disableHighlightToday:f,isMonthSwitchingAnimating:g,showDaysOutsideCurrentMonth:b,slots:m,slotProps:v,timezone:p}=t,y=Kt(),S=Vd(p),E=r!==null&&y.isSameDay(n,r),D=o.some(x=>y.isSameDay(x,n)),R=y.isSameDay(n,S),C=(m==null?void 0:m.day)??K$,T=zn({elementType:C,externalSlotProps:v==null?void 0:v.day,additionalProps:Oe({disableHighlightToday:f,showDaysOutsideCurrentMonth:b,role:"gridcell",isAnimating:g,"data-timestamp":y.toJsDate(n).valueOf()},u),ownerState:Oe({},t,{day:n,selected:D})}),O=_t(T,sz),P=$.useMemo(()=>d||i(n),[d,i,n]),H=$.useMemo(()=>y.getMonth(n)!==s,[y,n,s]),Q=$.useMemo(()=>{const x=y.startOfMonth(y.setMonth(n,s));return b?y.isSameDay(n,y.startOfWeek(x)):y.isSameDay(n,x)},[s,n,b,y]),q=$.useMemo(()=>{const x=y.endOfMonth(y.setMonth(n,s));return b?y.isSameDay(n,y.endOfWeek(x)):y.isSameDay(n,x)},[s,n,b,y]);return Y.jsx(C,Oe({},O,{day:n,disabled:P,autoFocus:l&&E,today:R,outsideCurrentMonth:H,isFirstVisibleCell:Q,isLastVisibleCell:q,selected:D,tabIndex:E?0:-1,"aria-selected":D,"aria-current":R?"date":void 0}))}function vz(e){const t=sn({props:e,name:"MuiDayCalendar"}),n=Kt(),{onFocusedDayChange:r,className:o,currentMonth:i,selectedDays:s,focusedDay:l,loading:u,onSelectedDaysChange:d,onMonthSwitchingAnimationEnd:f,readOnly:g,reduceAnimations:b,renderLoading:m=()=>Y.jsx("span",{children:"..."}),slideDirection:v,TransitionProps:p,disablePast:y,disableFuture:S,minDate:E,maxDate:D,shouldDisableDate:R,shouldDisableMonth:C,shouldDisableYear:T,dayOfWeekFormatter:O=xe=>n.format(xe,"weekdayShort").charAt(0).toUpperCase(),hasFocus:P,onFocusedViewChange:H,gridLabelId:Q,displayWeekNumber:q,fixedWeekNumber:x,autoFocus:L,timezone:I}=t,U=Vd(I),G=az(t),te=Bl(),se=Ix({shouldDisableDate:R,shouldDisableMonth:C,shouldDisableYear:T,minDate:E,maxDate:D,disablePast:y,disableFuture:S,timezone:I}),de=Hd(),[W,k]=ta({name:"DayCalendar",state:"hasFocus",controlled:P,default:L??!1}),[ee,ie]=$.useState(()=>l||U),oe=Xe(xe=>{g||d(xe)}),ye=xe=>{se(xe)||(r(xe),ie(xe),H==null||H(!0),k(!0))},le=Xe((xe,he)=>{switch(xe.key){case"ArrowUp":ye(n.addDays(he,-7)),xe.preventDefault();break;case"ArrowDown":ye(n.addDays(he,7)),xe.preventDefault();break;case"ArrowLeft":{const fe=n.addDays(he,te?1:-1),Ce=n.addMonths(he,te?1:-1),Pe=ml({utils:n,date:fe,minDate:te?fe:n.startOfMonth(Ce),maxDate:te?n.endOfMonth(Ce):fe,isDateDisabled:se,timezone:I});ye(Pe||fe),xe.preventDefault();break}case"ArrowRight":{const fe=n.addDays(he,te?-1:1),Ce=n.addMonths(he,te?-1:1),Pe=ml({utils:n,date:fe,minDate:te?n.startOfMonth(Ce):fe,maxDate:te?fe:n.endOfMonth(Ce),isDateDisabled:se,timezone:I});ye(Pe||fe),xe.preventDefault();break}case"Home":ye(n.startOfWeek(he)),xe.preventDefault();break;case"End":ye(n.endOfWeek(he)),xe.preventDefault();break;case"PageUp":ye(n.addMonths(he,1)),xe.preventDefault();break;case"PageDown":ye(n.addMonths(he,-1)),xe.preventDefault();break}}),B=Xe((xe,he)=>ye(he)),N=Xe((xe,he)=>{W&&n.isSameDay(ee,he)&&(H==null||H(!1))}),V=n.getMonth(i),K=n.getYear(i),ae=$.useMemo(()=>s.filter(xe=>!!xe).map(xe=>n.startOfDay(xe)),[n,s]),F=`${K}-${V}`,ve=$.useMemo(()=>$.createRef(),[F]),Ee=$.useMemo(()=>{const xe=n.startOfMonth(i),he=n.endOfMonth(i);return se(ee)||n.isAfterDay(ee,he)||n.isBeforeDay(ee,xe)?ml({utils:n,date:ee,minDate:xe,maxDate:he,disablePast:y,disableFuture:S,isDateDisabled:se,timezone:I}):ee},[i,S,y,ee,se,n,I]),Te=$.useMemo(()=>{const xe=n.getWeekArray(i);let he=n.addMonths(i,1);for(;x&&xe.length<x;){const fe=n.getWeekArray(he),Ce=n.isSameDay(xe[xe.length-1][0],fe[0][0]);fe.slice(Ce?1:0).forEach(Pe=>{xe.length<x&&xe.push(Pe)}),he=n.addMonths(he,1)}return xe},[i,x,n]);return Y.jsxs(lz,{role:"grid","aria-labelledby":Q,className:G.root,children:[Y.jsxs(cz,{role:"row",className:G.header,children:[q&&Y.jsx(dz,{variant:"caption",role:"columnheader","aria-label":de.calendarWeekNumberHeaderLabel,className:G.weekNumberLabel,children:de.calendarWeekNumberHeaderText}),C2(n,U).map((xe,he)=>Y.jsx(uz,{variant:"caption",role:"columnheader","aria-label":n.format(xe,"weekday"),className:G.weekDayLabel,children:O(xe)},he.toString()))]}),u?Y.jsx(pz,{className:G.loadingContainer,children:m()}):Y.jsx(hz,Oe({transKey:F,onExited:f,reduceAnimations:b,slideDirection:v,className:He(o,G.slideTransition)},p,{nodeRef:ve,children:Y.jsx(gz,{ref:ve,role:"rowgroup",className:G.monthContainer,children:Te.map((xe,he)=>Y.jsxs(mz,{role:"row",className:G.weekContainer,"aria-rowindex":he+1,children:[q&&Y.jsx(fz,{className:G.weekNumber,role:"rowheader","aria-label":de.calendarWeekNumberAriaLabelText(n.getWeekNumber(xe[0])),children:de.calendarWeekNumberText(n.getWeekNumber(xe[0]))}),xe.map((fe,Ce)=>Y.jsx(yz,{parentProps:t,day:fe,selectedDays:ae,focusableDay:Ee,onKeyDown:le,onFocus:B,onBlur:N,onDaySelect:oe,isDateDisabled:se,currentMonthNumber:V,isViewFocused:W,"aria-colindex":Ce+1},fe.toString()))]},`week-${xe[0]}`))})}))]})}function bz(e){return pn("MuiPickersMonth",e)}const Wc=Rn("MuiPickersMonth",["root","monthButton","disabled","selected"]),wz=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow","slots","slotProps"],Sz=e=>{const{disabled:t,selected:n,classes:r}=e;return fn({root:["root"],monthButton:["monthButton",t&&"disabled",n&&"selected"]},bz,r)},Ez=Ne("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%"}}]}),xz=Ne("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,t)=>[t.monthButton,{[`&.${Wc.disabled}`]:t.disabled},{[`&.${Wc.selected}`]:t.selected}]})(({theme:e})=>Oe({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})`:Jo(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Jo(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${Wc.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${Wc.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),Cz=$.memo(function(t){const n=sn({props:t,name:"MuiPickersMonth"}),{autoFocus:r,className:o,children:i,disabled:s,selected:l,value:u,tabIndex:d,onClick:f,onKeyDown:g,onFocus:b,onBlur:m,"aria-current":v,"aria-label":p,slots:y,slotProps:S}=n,E=_t(n,wz),D=$.useRef(null),R=Sz(n);qi(()=>{var O;r&&((O=D.current)==null||O.focus())},[r]);const C=(y==null?void 0:y.monthButton)??xz,T=zn({elementType:C,externalSlotProps:S==null?void 0:S.monthButton,additionalProps:{children:i,disabled:s,tabIndex:d,ref:D,type:"button",role:"radio","aria-current":v,"aria-checked":l,"aria-label":p,onClick:O=>f(O,u),onKeyDown:O=>g(O,u),onFocus:O=>b(O,u),onBlur:O=>m(O,u)},ownerState:n,className:R.monthButton});return Y.jsx(Ez,Oe({className:He(R.root,o),ownerState:n},E,{children:Y.jsx(C,Oe({},T))}))});function Dz(e){return pn("MuiMonthCalendar",e)}Rn("MuiMonthCalendar",["root"]);const Gx=({timezone:e,value:t,defaultValue:n,referenceDate:r,onChange:o,valueManager:i})=>{const s=Kt(),l=$.useRef(n),u=t??l.current??i.emptyValue,d=$.useMemo(()=>i.getTimezone(s,u),[s,i,u]),f=Xe(v=>d==null?v:i.setTimezone(s,d,v));let g;e?g=e:d?g=d:r?g=s.getTimezone(r):g="default";const b=$.useMemo(()=>i.setTimezone(s,g,u),[i,s,g,u]),m=Xe((v,...p)=>{const y=f(v);o==null||o(y,...p)});return{value:b,handleValueChange:m,timezone:g}},Gg=({name:e,timezone:t,value:n,defaultValue:r,referenceDate:o,onChange:i,valueManager:s})=>{const[l,u]=ta({name:e,state:"value",controlled:n,default:r??s.emptyValue}),d=Xe((f,...g)=>{u(f),i==null||i(f,...g)});return Gx({timezone:t,value:l,defaultValue:void 0,referenceDate:o,onChange:d,valueManager:s})},_z=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId","slots","slotProps"],Rz=e=>{const{classes:t}=e;return fn({root:["root"]},Dz,t)};function Tz(e,t){const n=Kt(),r=Bd(),o=sn({props:e,name:t});return Oe({disableFuture:!1,disablePast:!1},o,{minDate:Vr(n,o.minDate,r.minDate),maxDate:Vr(n,o.maxDate,r.maxDate)})}const Oz=Ne("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:Ud,boxSizing:"border-box"}),qx=$.forwardRef(function(t,n){const r=Tz(t,"MuiMonthCalendar"),{className:o,value:i,defaultValue:s,referenceDate:l,disabled:u,disableFuture:d,disablePast:f,maxDate:g,minDate:b,onChange:m,shouldDisableMonth:v,readOnly:p,autoFocus:y=!1,onMonthFocus:S,hasFocus:E,onFocusedViewChange:D,monthsPerRow:R=3,timezone:C,gridLabelId:T,slots:O,slotProps:P}=r,H=_t(r,_z),{value:Q,handleValueChange:q,timezone:x}=Gg({name:"MonthCalendar",timezone:C,value:i,defaultValue:s,referenceDate:l,onChange:m,valueManager:ei}),L=Vd(x),I=Bl(),U=Kt(),G=$.useMemo(()=>ei.getInitialReferenceValue({value:Q,utils:U,props:r,timezone:x,referenceDate:l,granularity:ho.month}),[]),te=r,se=Rz(te),de=$.useMemo(()=>U.getMonth(L),[U,L]),W=$.useMemo(()=>Q!=null?U.getMonth(Q):null,[Q,U]),[k,ee]=$.useState(()=>W||U.getMonth(G)),[ie,oe]=ta({name:"MonthCalendar",state:"hasFocus",controlled:E,default:y??!1}),ye=Xe(F=>{oe(F),D&&D(F)}),le=$.useCallback(F=>{const ve=U.startOfMonth(f&&U.isAfter(L,b)?L:b),Ee=U.startOfMonth(d&&U.isBefore(L,g)?L:g),Te=U.startOfMonth(F);return U.isBefore(Te,ve)||U.isAfter(Te,Ee)?!0:v?v(Te):!1},[d,f,g,b,L,v,U]),B=Xe((F,ve)=>{if(p)return;const Ee=U.setMonth(Q??G,ve);q(Ee)}),N=Xe(F=>{le(U.setMonth(Q??G,F))||(ee(F),ye(!0),S&&S(F))});$.useEffect(()=>{ee(F=>W!==null&&F!==W?W:F)},[W]);const V=Xe((F,ve)=>{switch(F.key){case"ArrowUp":N((12+ve-3)%12),F.preventDefault();break;case"ArrowDown":N((12+ve+3)%12),F.preventDefault();break;case"ArrowLeft":N((12+ve+(I?1:-1))%12),F.preventDefault();break;case"ArrowRight":N((12+ve+(I?-1:1))%12),F.preventDefault();break}}),K=Xe((F,ve)=>{N(ve)}),ae=Xe((F,ve)=>{k===ve&&ye(!1)});return Y.jsx(Oz,Oe({ref:n,className:He(se.root,o),ownerState:te,role:"radiogroup","aria-labelledby":T},H,{children:S2(U,Q??G).map(F=>{const ve=U.getMonth(F),Ee=U.format(F,"monthShort"),Te=U.format(F,"month"),xe=ve===W,he=u||le(F);return Y.jsx(Cz,{selected:xe,value:ve,onClick:B,onKeyDown:V,autoFocus:ie&&ve===k,disabled:he,tabIndex:ve===k&&!he?0:-1,onFocus:K,onBlur:ae,"aria-current":de===ve?"date":void 0,"aria-label":Te,monthsPerRow:R,slots:O,slotProps:P,children:Ee},Ee)})}))});process.env.NODE_ENV!=="production"&&(qx.propTypes={autoFocus:w.bool,classes:w.object,className:w.string,defaultValue:w.object,disabled:w.bool,disableFuture:w.bool,disableHighlightToday:w.bool,disablePast:w.bool,gridLabelId:w.string,hasFocus:w.bool,maxDate:w.object,minDate:w.object,monthsPerRow:w.oneOf([3,4]),onChange:w.func,onFocusedViewChange:w.func,onMonthFocus:w.func,readOnly:w.bool,referenceDate:w.object,shouldDisableMonth:w.func,slotProps:w.object,slots:w.object,sx:w.oneOfType([w.arrayOf(w.oneOfType([w.func,w.object,w.bool])),w.func,w.object]),timezone:w.string,value:w.object});function Az(e){return pn("MuiPickersYear",e)}const Yc=Rn("MuiPickersYear",["root","yearButton","selected","disabled"]),kz=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow","slots","slotProps"],Mz=e=>{const{disabled:t,selected:n,classes:r}=e;return fn({root:["root"],yearButton:["yearButton",t&&"disabled",n&&"selected"]},Az,r)},Pz=Ne("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%"}}]}),Iz=Ne("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,t)=>[t.yearButton,{[`&.${Yc.disabled}`]:t.disabled},{[`&.${Yc.selected}`]:t.selected}]})(({theme:e})=>Oe({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})`:Jo(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Jo(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${Yc.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${Yc.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),Nz=$.memo(function(t){const n=sn({props:t,name:"MuiPickersYear"}),{autoFocus:r,className:o,children:i,disabled:s,selected:l,value:u,tabIndex:d,onClick:f,onKeyDown:g,onFocus:b,onBlur:m,"aria-current":v,slots:p,slotProps:y}=n,S=_t(n,kz),E=$.useRef(null),D=Mz(n);qi(()=>{var T;r&&((T=E.current)==null||T.focus())},[r]);const R=(p==null?void 0:p.yearButton)??Iz,C=zn({elementType:R,externalSlotProps:y==null?void 0:y.yearButton,additionalProps:{children:i,disabled:s,tabIndex:d,ref:E,type:"button",role:"radio","aria-current":v,"aria-checked":l,onClick:T=>f(T,u),onKeyDown:T=>g(T,u),onFocus:T=>b(T,u),onBlur:T=>m(T,u)},ownerState:n,className:D.yearButton});return Y.jsx(Pz,Oe({className:He(D.root,o),ownerState:n},S,{children:Y.jsx(R,Oe({},C))}))});function jz(e){return pn("MuiYearCalendar",e)}Rn("MuiYearCalendar",["root"]);const $z=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsOrder","yearsPerRow","timezone","gridLabelId","slots","slotProps"],zz=e=>{const{classes:t}=e;return fn({root:["root"]},jz,t)};function Lz(e,t){const n=Kt(),r=Bd(),o=sn({props:e,name:t});return Oe({disablePast:!1,disableFuture:!1},o,{yearsPerRow:o.yearsPerRow??3,minDate:Vr(n,o.minDate,r.minDate),maxDate:Vr(n,o.maxDate,r.maxDate)})}const Bz=Ne("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:Ud,maxHeight:Y$,boxSizing:"border-box",position:"relative"}),Xx=$.forwardRef(function(t,n){const r=Lz(t,"MuiYearCalendar"),{autoFocus:o,className:i,value:s,defaultValue:l,referenceDate:u,disabled:d,disableFuture:f,disablePast:g,maxDate:b,minDate:m,onChange:v,readOnly:p,shouldDisableYear:y,onYearFocus:S,hasFocus:E,onFocusedViewChange:D,yearsOrder:R="asc",yearsPerRow:C,timezone:T,gridLabelId:O,slots:P,slotProps:H}=r,Q=_t(r,$z),{value:q,handleValueChange:x,timezone:L}=Gg({name:"YearCalendar",timezone:T,value:s,defaultValue:l,referenceDate:u,onChange:v,valueManager:ei}),I=Vd(L),U=Bl(),G=Kt(),te=$.useMemo(()=>ei.getInitialReferenceValue({value:q,utils:G,props:r,timezone:L,referenceDate:u,granularity:ho.year}),[]),se=r,de=zz(se),W=$.useMemo(()=>G.getYear(I),[G,I]),k=$.useMemo(()=>q!=null?G.getYear(q):null,[q,G]),[ee,ie]=$.useState(()=>k||G.getYear(te)),[oe,ye]=ta({name:"YearCalendar",state:"hasFocus",controlled:E,default:o??!1}),le=Xe(fe=>{ye(fe),D&&D(fe)}),B=$.useCallback(fe=>{if(g&&G.isBeforeYear(fe,I)||f&&G.isAfterYear(fe,I)||m&&G.isBeforeYear(fe,m)||b&&G.isAfterYear(fe,b))return!0;if(!y)return!1;const Ce=G.startOfYear(fe);return y(Ce)},[f,g,b,m,I,y,G]),N=Xe((fe,Ce)=>{if(p)return;const Pe=G.setYear(q??te,Ce);x(Pe)}),V=Xe(fe=>{B(G.setYear(q??te,fe))||(ie(fe),le(!0),S==null||S(fe))});$.useEffect(()=>{ie(fe=>k!==null&&fe!==k?k:fe)},[k]);const K=R!=="desc"?C*1:C*-1,ae=U&&R==="asc"||!U&&R==="desc"?-1:1,F=Xe((fe,Ce)=>{switch(fe.key){case"ArrowUp":V(Ce-K),fe.preventDefault();break;case"ArrowDown":V(Ce+K),fe.preventDefault();break;case"ArrowLeft":V(Ce-ae),fe.preventDefault();break;case"ArrowRight":V(Ce+ae),fe.preventDefault();break}}),ve=Xe((fe,Ce)=>{V(Ce)}),Ee=Xe((fe,Ce)=>{ee===Ce&&le(!1)}),Te=$.useRef(null),xe=Lg(n,Te);$.useEffect(()=>{if(o||Te.current===null)return;const fe=Te.current.querySelector('[tabindex="0"]');if(!fe)return;const Ce=fe.offsetHeight,Pe=fe.offsetTop,_e=Te.current.clientHeight,Me=Te.current.scrollTop,nt=Pe+Ce;Ce>_e||Pe<Me||(Te.current.scrollTop=nt-_e/2-Ce/2)},[o]);const he=G.getYearRange([m,b]);return R==="desc"&&he.reverse(),Y.jsx(Bz,Oe({ref:xe,className:He(de.root,i),ownerState:se,role:"radiogroup","aria-labelledby":O},Q,{children:he.map(fe=>{const Ce=G.getYear(fe),Pe=Ce===k,_e=d||B(fe);return Y.jsx(Nz,{selected:Pe,value:Ce,onClick:N,onKeyDown:F,autoFocus:oe&&Ce===ee,disabled:_e,tabIndex:Ce===ee&&!_e?0:-1,onFocus:ve,onBlur:Ee,"aria-current":W===Ce?"date":void 0,yearsPerRow:C,slots:P,slotProps:H,children:G.format(fe,"year")},G.format(fe,"year"))})}))});process.env.NODE_ENV!=="production"&&(Xx.propTypes={autoFocus:w.bool,classes:w.object,className:w.string,defaultValue:w.object,disabled:w.bool,disableFuture:w.bool,disableHighlightToday:w.bool,disablePast:w.bool,gridLabelId:w.string,hasFocus:w.bool,maxDate:w.object,minDate:w.object,onChange:w.func,onFocusedViewChange:w.func,onYearFocus:w.func,readOnly:w.bool,referenceDate:w.object,shouldDisableYear:w.func,slotProps:w.object,slots:w.object,sx:w.oneOfType([w.arrayOf(w.oneOfType([w.func,w.object,w.bool])),w.func,w.object]),timezone:w.string,value:w.object,yearsOrder:w.oneOf(["asc","desc"]),yearsPerRow:w.oneOf([3,4])});let Qp=!1;function Qx({onChange:e,onViewChange:t,openTo:n,view:r,views:o,autoFocus:i,focusedView:s,onFocusedViewChange:l}){process.env.NODE_ENV!=="production"&&(Qp||(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('", "')}"]\`.`),Qp=!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('", "')}"]\`.`),Qp=!0)));const u=$.useRef(n),d=$.useRef(o),f=$.useRef(o.includes(n)?n:o[0]),[g,b]=ta({name:"useViews",state:"view",controlled:r,default:f.current}),m=$.useRef(i?g:null),[v,p]=ta({name:"useViews",state:"focusedView",controlled:s,default:m.current});$.useEffect(()=>{(u.current&&u.current!==n||d.current&&d.current.some(O=>!o.includes(O)))&&(b(o.includes(n)?n:o[0]),d.current=o,u.current=n)},[n,b,g,o]);const y=o.indexOf(g),S=o[y-1]??null,E=o[y+1]??null,D=Xe((O,P)=>{p(P?O:H=>O===H?null:H),l==null||l(O,P)}),R=Xe(O=>{D(O,!0),O!==g&&(b(O),t&&t(O))}),C=Xe(()=>{E&&R(E)}),T=Xe((O,P,H)=>{const Q=P==="finish",q=H?o.indexOf(H)<o.length-1:!!E;if(e(O,Q&&q?"partial":P,H),H&&H!==g){const L=o[o.indexOf(H)+1];L&&R(L)}else Q&&C()});return{view:g,setView:R,focusedView:v,setFocusedView:D,nextView:E,previousView:S,defaultView:o.includes(n)?n:o[0],goToNextView:C,setValueAndGoToNextView:T}}const Vz=e=>pn("MuiPickersCalendarHeader",e),Hz=Rn("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]);function Fz(e){return Fn("MuiCircularProgress",e)}Un("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","track","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const xr=44,qh=dr.keyframes`
|
|
177
177
|
0% {
|
|
178
178
|
transform: rotate(0deg);
|
|
179
179
|
}
|
|
@@ -181,7 +181,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${e}Chann
|
|
|
181
181
|
100% {
|
|
182
182
|
transform: rotate(360deg);
|
|
183
183
|
}
|
|
184
|
-
`,
|
|
184
|
+
`,Xh=dr.keyframes`
|
|
185
185
|
0% {
|
|
186
186
|
stroke-dasharray: 1px, 200px;
|
|
187
187
|
stroke-dashoffset: 0;
|
|
@@ -196,21 +196,21 @@ To suppress this warning, you need to explicitly provide the \`palette.${e}Chann
|
|
|
196
196
|
stroke-dasharray: 1px, 200px;
|
|
197
197
|
stroke-dashoffset: -126px;
|
|
198
198
|
}
|
|
199
|
-
`,
|
|
200
|
-
animation: ${
|
|
201
|
-
`:null,
|
|
202
|
-
animation: ${
|
|
203
|
-
`:null,
|
|
204
|
-
`)):null),classes:d.object,className:d.string,color:d.oneOfType([d.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),d.string]),disabled:d.bool,disableFocusRipple:d.bool,disableRipple:d.bool,edge:d.oneOf(["end","start",!1]),id:d.string,loading:d.bool,loadingIndicator:d.node,size:d.oneOfType([d.oneOf(["small","medium","large"]),d.string]),sx:d.oneOfType([d.arrayOf(d.oneOfType([d.func,d.object,d.bool])),d.func,d.object])});const jy=Ve(E.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),Vy=Ve(E.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),$y=Ve(E.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight");Ve(E.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");Ve(E.jsxs(x.Fragment,{children:[E.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"}),E.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock");Ve(E.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");Ve(E.jsxs(x.Fragment,{children:[E.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"}),E.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time");Ve(E.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 By(t){return Ue("MuiPickersArrowSwitcher",t)}Ye("MuiPickersArrowSwitcher",["root","spacer","button","previousIconButton","nextIconButton","leftArrowIcon","rightArrowIcon"]);const Ly=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel","labelId"],Hy=["ownerState"],zy=["ownerState"],Fy=te("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"flex"}),Wy=te("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(t,e)=>e.spacer})(({theme:t})=>({width:t.spacing(3)})),ul=te(As,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(t,e)=>e.button})({variants:[{props:{hidden:!0},style:{visibility:"hidden"}}]}),Uy=t=>{const{classes:e}=t;return We({root:["root"],spacer:["spacer"],button:["button"],previousIconButton:["previousIconButton"],nextIconButton:["nextIconButton"],leftArrowIcon:["leftArrowIcon"],rightArrowIcon:["rightArrowIcon"]},By,e)},Gy=x.forwardRef(function(e,n){const r=yr(),o=ze({props:e,name:"MuiPickersArrowSwitcher"}),{children:i,className:s,slots:a,slotProps:l,isNextDisabled:c,isNextHidden:u,onGoToNext:f,nextLabel:p,isPreviousDisabled:h,isPreviousHidden:m,onGoToPrevious:g,previousLabel:v,labelId:b}=o,S=_e(o,Ly),R=o,C=Uy(R),A={isDisabled:c,isHidden:u,goTo:f,label:p},T={isDisabled:h,isHidden:m,goTo:g,label:v},k=(a==null?void 0:a.previousIconButton)??ul,P=Qe({elementType:k,externalSlotProps:l==null?void 0:l.previousIconButton,additionalProps:{size:"medium",title:T.label,"aria-label":T.label,disabled:T.isDisabled,edge:"end",onClick:T.goTo},ownerState:G({},R,{hidden:T.isHidden}),className:ce(C.button,C.previousIconButton)}),H=(a==null?void 0:a.nextIconButton)??ul,W=Qe({elementType:H,externalSlotProps:l==null?void 0:l.nextIconButton,additionalProps:{size:"medium",title:A.label,"aria-label":A.label,disabled:A.isDisabled,edge:"start",onClick:A.goTo},ownerState:G({},R,{hidden:A.isHidden}),className:ce(C.button,C.nextIconButton)}),$=(a==null?void 0:a.leftArrowIcon)??Vy,y=Qe({elementType:$,externalSlotProps:l==null?void 0:l.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:R,className:C.leftArrowIcon}),I=_e(y,Hy),_=(a==null?void 0:a.rightArrowIcon)??$y,O=Qe({elementType:_,externalSlotProps:l==null?void 0:l.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:R,className:C.rightArrowIcon}),N=_e(O,zy);return E.jsxs(Fy,G({ref:n,className:ce(C.root,s),ownerState:R},S,{children:[E.jsx(k,G({},P,{children:r?E.jsx(_,G({},N)):E.jsx($,G({},I))})),i?E.jsx(pn,{variant:"subtitle1",component:"span",id:b,children:i}):E.jsx(Wy,{className:C.spacer,ownerState:R}),E.jsx(H,G({},W,{children:r?E.jsx($,G({},I)):E.jsx(_,G({},N))}))]}))});function Yy(t,{disableFuture:e,maxDate:n,timezone:r}){const o=Le();return x.useMemo(()=>{const i=o.date(void 0,r),s=o.startOfMonth(e&&o.isBefore(i,n)?i:n);return!o.isAfter(s,t)},[e,n,t,o,r])}function qy(t,{disablePast:e,minDate:n,timezone:r}){const o=Le();return x.useMemo(()=>{const i=o.date(void 0,r),s=o.startOfMonth(e&&o.isAfter(i,n)?i:n);return!o.isBefore(s,t)},[e,n,t,o,r])}const Qy=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone","format"],Zy=["ownerState"],Ky=t=>{const{classes:e}=t;return We({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},Cy,e)},Xy=te("div",{name:"MuiPickersCalendarHeader",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"flex",alignItems:"center",marginTop:12,marginBottom:4,paddingLeft:24,paddingRight:12,maxHeight:40,minHeight:40}),Jy=te("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(t,e)=>e.labelContainer})(({theme:t})=>G({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},t.typography.body1,{fontWeight:t.typography.fontWeightMedium})),eb=te("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(t,e)=>e.label})({marginRight:6}),tb=te(As,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(t,e)=>e.switchViewButton})({marginRight:"auto",variants:[{props:{view:"year"},style:{[`.${wy.switchViewIcon}`]:{transform:"rotate(180deg)"}}}]}),nb=te(jy,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(t,e)=>e.switchViewIcon})(({theme:t})=>({willChange:"transform",transition:t.transitions.create("transform"),transform:"rotate(0deg)"})),Ru=x.forwardRef(function(e,n){const r=$o(),o=Le(),i=ze({props:e,name:"MuiPickersCalendarHeader"}),{slots:s,slotProps:a,currentMonth:l,disabled:c,disableFuture:u,disablePast:f,maxDate:p,minDate:h,onMonthChange:m,onViewChange:g,view:v,reduceAnimations:b,views:S,labelId:R,className:C,timezone:A,format:T=`${o.formats.month} ${o.formats.year}`}=i,k=_e(i,Qy),P=i,H=Ky(i),W=(s==null?void 0:s.switchViewButton)??tb,$=Qe({elementType:W,externalSlotProps:a==null?void 0:a.switchViewButton,additionalProps:{size:"small","aria-label":r.calendarViewSwitchingButtonAriaLabel(v)},ownerState:P,className:H.switchViewButton}),y=(s==null?void 0:s.switchViewIcon)??nb,I=Qe({elementType:y,externalSlotProps:a==null?void 0:a.switchViewIcon,ownerState:P,className:H.switchViewIcon}),_=_e(I,Zy),O=()=>m(o.addMonths(l,1),"left"),N=()=>m(o.addMonths(l,-1),"right"),z=Yy(l,{disableFuture:u,maxDate:p,timezone:A}),J=qy(l,{disablePast:f,minDate:h,timezone:A}),ne=()=>{if(!(S.length===1||!g||c))if(S.length===2)g(S.find(D=>D!==v)||S[0]);else{const D=S.indexOf(v)!==0?0:1;g(S[D])}};if(S.length===1&&S[0]==="year")return null;const V=o.formatByString(l,T);return E.jsxs(Xy,G({},k,{ownerState:P,className:ce(H.root,C),ref:n,children:[E.jsxs(Jy,{role:"presentation",onClick:ne,ownerState:P,"aria-live":"polite",className:H.labelContainer,children:[E.jsx(gu,{reduceAnimations:b,transKey:V,children:E.jsx(eb,{id:R,ownerState:P,className:H.label,children:V})}),S.length>1&&!c&&E.jsx(W,G({},$,{children:E.jsx(y,G({},_))}))]}),E.jsx(Cs,{in:v==="day",appear:!b,enter:!b,children:E.jsx(Gy,{slots:s,slotProps:a,onGoToPrevious:N,isPreviousDisabled:J,previousLabel:r.previousMonth,onGoToNext:O,isNextDisabled:z,nextLabel:r.nextMonth})})]}))});process.env.NODE_ENV!=="production"&&(Ru.propTypes={classes:d.object,className:d.string,currentMonth:d.object.isRequired,disabled:d.bool,disableFuture:d.bool,disablePast:d.bool,format:d.string,labelId:d.string,maxDate:d.object.isRequired,minDate:d.object.isRequired,onMonthChange:d.func.isRequired,onViewChange:d.func,reduceAnimations:d.bool.isRequired,slotProps:d.object,slots:d.object,sx:d.oneOfType([d.arrayOf(d.oneOfType([d.func,d.object,d.bool])),d.func,d.object]),timezone:d.string.isRequired,view:d.oneOf(["day","month","year"]).isRequired,views:d.arrayOf(d.oneOf(["day","month","year"]).isRequired).isRequired});const rb=te("div")({overflow:"hidden",width:Lo,maxHeight:xs,display:"flex",flexDirection:"column",margin:"0 auto"}),ob=Yc({themeId:No}),ib="@media (prefers-reduced-motion: reduce)",Rn=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),dl=Rn&&Rn[1]?parseInt(Rn[1],10):null,fl=Rn&&Rn[2]?parseInt(Rn[2],10):null,sb=dl&&dl<10||fl&&fl<13||!1,ab=()=>ob(ib,{defaultMatches:!1})||sb,lb=t=>Ue("MuiDateCalendar",t);Ye("MuiDateCalendar",["root","viewTransitionContainer"]);const cb=["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"],ub=t=>{const{classes:e}=t;return We({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},lb,e)};function db(t,e){const n=Le(),r=jo(),o=ab(),i=ze({props:t,name:e});return G({},i,{loading:i.loading??!1,disablePast:i.disablePast??!1,disableFuture:i.disableFuture??!1,openTo:i.openTo??"day",views:i.views??["year","day"],reduceAnimations:i.reduceAnimations??o,renderLoading:i.renderLoading??(()=>E.jsx("span",{children:"..."})),minDate:gt(n,i.minDate,r.minDate),maxDate:gt(n,i.maxDate,r.maxDate)})}const fb=te(rb,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"flex",flexDirection:"column",height:xs}),pb=te(gu,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(t,e)=>e.viewTransitionContainer})({}),_u=x.forwardRef(function(e,n){const r=Le(),o=gm(),i=db(e,"MuiDateCalendar"),{autoFocus:s,onViewChange:a,value:l,defaultValue:c,referenceDate:u,disableFuture:f,disablePast:p,onChange:h,onYearChange:m,onMonthChange:g,reduceAnimations:v,shouldDisableDate:b,shouldDisableMonth:S,shouldDisableYear:R,view:C,views:A,openTo:T,className:k,disabled:P,readOnly:H,minDate:W,maxDate:$,disableHighlightToday:y,focusedView:I,onFocusedViewChange:_,showDaysOutsideCurrentMonth:O,fixedWeekNumber:N,dayOfWeekFormatter:z,slots:J,slotProps:ne,loading:V,renderLoading:D,displayWeekNumber:L,yearsOrder:K,yearsPerRow:Q,monthsPerRow:ee,timezone:U}=i,Y=_e(i,cb),{value:Z,handleValueChange:F,timezone:X}=Ds({name:"DateCalendar",timezone:U,value:l,defaultValue:c,referenceDate:u,onChange:h,valueManager:Bt}),{view:fe,setView:B,focusedView:de,setFocusedView:ye,goToNextView:Te,setValueAndGoToNextView:ie}=Au({view:C,views:A,openTo:T,onChange:F,onViewChange:a,autoFocus:s,focusedView:I,onFocusedViewChange:_}),{referenceDate:pe,calendarState:re,changeFocusedDay:ge,changeMonth:$e,handleChangeMonth:yt,isDateDisabled:ue,onMonthSwitchingAnimationEnd:Qo}=Fm({value:Z,referenceDate:u,reduceAnimations:v,onMonthChange:g,minDate:W,maxDate:$,shouldDisableDate:b,disablePast:p,disableFuture:f,timezone:X}),Wf=P&&Z||W,Uf=P&&Z||$,ua=`${o}-grid-label`,Zo=de!==null,da=(J==null?void 0:J.calendarHeader)??Ru,Gf=Qe({elementType:da,externalSlotProps:ne==null?void 0:ne.calendarHeader,additionalProps:{views:A,view:fe,currentMonth:re.currentMonth,onViewChange:B,onMonthChange:(Oe,dt)=>yt({newMonth:Oe,direction:dt}),minDate:Wf,maxDate:Uf,disabled:P,disablePast:p,disableFuture:f,reduceAnimations:v,timezone:X,labelId:ua},ownerState:i}),Yf=he(Oe=>{const dt=r.startOfMonth(Oe),Un=r.endOfMonth(Oe),_t=ue(Oe)?ir({utils:r,date:Oe,minDate:r.isBefore(W,dt)?dt:W,maxDate:r.isAfter($,Un)?Un:$,disablePast:p,disableFuture:f,isDateDisabled:ue,timezone:X}):Oe;_t?(ie(_t,"finish"),g==null||g(dt)):(Te(),$e(dt)),ge(_t,!0)}),qf=he(Oe=>{const dt=r.startOfYear(Oe),Un=r.endOfYear(Oe),_t=ue(Oe)?ir({utils:r,date:Oe,minDate:r.isBefore(W,dt)?dt:W,maxDate:r.isAfter($,Un)?Un:$,disablePast:p,disableFuture:f,isDateDisabled:ue,timezone:X}):Oe;_t?(ie(_t,"finish"),m==null||m(_t)):(Te(),$e(dt)),ge(_t,!0)}),Qf=he(Oe=>F(Oe&&no(r,Oe,Z??pe),"finish",fe));x.useEffect(()=>{Z!=null&&r.isValid(Z)&&$e(Z)},[Z]);const Ko=i,fa=ub(Ko),Xo={disablePast:p,disableFuture:f,maxDate:$,minDate:W},Jo={disableHighlightToday:y,readOnly:H,disabled:P,timezone:X,gridLabelId:ua,slots:J,slotProps:ne},ei=x.useRef(fe);x.useEffect(()=>{ei.current!==fe&&(de===ei.current&&ye(fe,!0),ei.current=fe)},[de,ye,fe]);const Zf=x.useMemo(()=>[Z],[Z]);return E.jsxs(fb,G({ref:n,className:ce(fa.root,k),ownerState:Ko},Y,{children:[E.jsx(da,G({},Gf,{slots:J,slotProps:ne})),E.jsx(pb,{reduceAnimations:v,className:fa.viewTransitionContainer,transKey:fe,ownerState:Ko,children:E.jsxs("div",{children:[fe==="year"&&E.jsx(Tu,G({},Xo,Jo,{value:Z,onChange:qf,shouldDisableYear:R,hasFocus:Zo,onFocusedViewChange:Oe=>ye("year",Oe),yearsOrder:K,yearsPerRow:Q,referenceDate:pe})),fe==="month"&&E.jsx(Du,G({},Xo,Jo,{hasFocus:Zo,className:k,value:Z,onChange:Yf,shouldDisableMonth:S,onFocusedViewChange:Oe=>ye("month",Oe),monthsPerRow:ee,referenceDate:pe})),fe==="day"&&E.jsx(Jv,G({},re,Xo,Jo,{onMonthSwitchingAnimationEnd:Qo,onFocusedDayChange:ge,reduceAnimations:v,selectedDays:Zf,onSelectedDaysChange:Qf,shouldDisableDate:b,shouldDisableMonth:S,shouldDisableYear:R,hasFocus:Zo,onFocusedViewChange:Oe=>ye("day",Oe),showDaysOutsideCurrentMonth:O,fixedWeekNumber:N,dayOfWeekFormatter:z,displayWeekNumber:L,loading:V,renderLoading:D}))]})})]}))});process.env.NODE_ENV!=="production"&&(_u.propTypes={autoFocus:d.bool,classes:d.object,className:d.string,dayOfWeekFormatter:d.func,defaultValue:d.object,disabled:d.bool,disableFuture:d.bool,disableHighlightToday:d.bool,disablePast:d.bool,displayWeekNumber:d.bool,fixedWeekNumber:d.number,focusedView:d.oneOf(["day","month","year"]),loading:d.bool,maxDate:d.object,minDate:d.object,monthsPerRow:d.oneOf([3,4]),onChange:d.func,onFocusedViewChange:d.func,onMonthChange:d.func,onViewChange:d.func,onYearChange:d.func,openTo:d.oneOf(["day","month","year"]),readOnly:d.bool,reduceAnimations:d.bool,referenceDate:d.object,renderLoading:d.func,shouldDisableDate:d.func,shouldDisableMonth:d.func,shouldDisableYear:d.func,showDaysOutsideCurrentMonth:d.bool,slotProps:d.object,slots:d.object,sx:d.oneOfType([d.arrayOf(d.oneOfType([d.func,d.object,d.bool])),d.func,d.object]),timezone:d.string,value:d.object,view:d.oneOf(["day","month","year"]),views:d.arrayOf(d.oneOf(["day","month","year"]).isRequired),yearsOrder:d.oneOf(["asc","desc"]),yearsPerRow:d.oneOf([3,4])});const pi=({view:t,onViewChange:e,views:n,focusedView:r,onFocusedViewChange:o,value:i,defaultValue:s,referenceDate:a,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minDate:h,maxDate:m,shouldDisableDate:g,shouldDisableMonth:v,shouldDisableYear:b,reduceAnimations:S,onMonthChange:R,monthsPerRow:C,onYearChange:A,yearsOrder:T,yearsPerRow:k,slots:P,slotProps:H,loading:W,renderLoading:$,disableHighlightToday:y,readOnly:I,disabled:_,showDaysOutsideCurrentMonth:O,dayOfWeekFormatter:N,sx:z,autoFocus:J,fixedWeekNumber:ne,displayWeekNumber:V,timezone:D})=>E.jsx(_u,{view:t,onViewChange:e,views:n.filter(Ka),focusedView:r&&Ka(r)?r:null,onFocusedViewChange:o,value:i,defaultValue:s,referenceDate:a,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minDate:h,maxDate:m,shouldDisableDate:g,shouldDisableMonth:v,shouldDisableYear:b,reduceAnimations:S,onMonthChange:R,monthsPerRow:C,onYearChange:A,yearsOrder:T,yearsPerRow:k,slots:P,slotProps:H,loading:W,renderLoading:$,disableHighlightToday:y,readOnly:I,disabled:_,showDaysOutsideCurrentMonth:O,dayOfWeekFormatter:N,sx:z,autoFocus:J,fixedWeekNumber:ne,displayWeekNumber:V,timezone:D}),pl=new Set;function hb(t,e="warning"){if(process.env.NODE_ENV==="production")return;const n=Array.isArray(t)?t.join(`
|
|
205
|
-
`):
|
|
206
|
-
`))},[
|
|
207
|
-
`))},[JSON.stringify(p)]));const v=Le(),b=Hn(),{isOpen:S,setIsOpen:R}=gb(t),{timezone:C,value:A,handleValueChange:T}=xu({timezone:u,value:a,defaultValue:p,referenceDate:f,onChange:s,valueManager:e}),[k,P]=x.useState(()=>{let F;return A!==void 0?F=A:p!==void 0?F=p:F=e.emptyValue,{draft:F,lastPublishedValue:F,lastCommittedValue:F,lastControlledValue:a,hasBeenModifiedSinceMount:!1}}),H=e.getTimezone(v,k.draft);m!==u&&(g(u),u&&H&&u!==H&&P(F=>G({},F,{draft:e.setTimezone(v,u,F.draft)})));const{getValidationErrorForNewValue:W}=Hm({props:t,validator:o,timezone:C,value:k.draft,onError:t.onError}),$=he(F=>{const X={action:F,dateState:k,hasChanged:ie=>!e.areValuesEqual(v,F.value,ie),isControlled:h,closeOnSelect:c},fe=mb(X),B=vb(X),de=yb(X);P(ie=>G({},ie,{draft:F.value,lastPublishedValue:fe?F.value:ie.lastPublishedValue,lastCommittedValue:B?F.value:ie.lastCommittedValue,hasBeenModifiedSinceMount:!0}));let ye=null;const Te=()=>(ye||(ye={validationError:F.name==="setValueFromField"?F.context.validationError:W(F.value)},F.name==="setValueFromShortcut"&&(ye.shortcut=F.shortcut)),ye);fe&&T(F.value,Te()),B&&i&&i(F.value,Te()),de&&R(!1)});if(k.lastControlledValue!==a){const F=e.areValuesEqual(v,k.draft,A);P(X=>G({},X,{lastControlledValue:a},F?{}:{lastCommittedValue:A,lastPublishedValue:A,draft:A,hasBeenModifiedSinceMount:!0}))}const y=he(()=>{$({value:e.emptyValue,name:"setValueFromAction",pickerAction:"clear"})}),I=he(()=>{$({value:k.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),_=he(()=>{$({value:k.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),O=he(()=>{$({value:k.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),N=he(()=>{$({value:e.getTodayValue(v,C,n),name:"setValueFromAction",pickerAction:"today"})}),z=he(F=>{F.preventDefault(),R(!0)}),J=he(F=>{F==null||F.preventDefault(),R(!1)}),ne=he((F,X="partial")=>$({name:"setValueFromView",value:F,selectionState:X})),V=he((F,X,fe)=>$({name:"setValueFromShortcut",value:F,changeImportance:X,shortcut:fe})),D=he((F,X)=>$({name:"setValueFromField",value:F,context:X})),L={onClear:y,onAccept:I,onDismiss:_,onCancel:O,onSetToday:N,onOpen:z,onClose:J},K={value:k.draft,onChange:D},Q=x.useMemo(()=>e.cleanValue(v,k.draft),[v,e,k.draft]),ee={value:Q,onChange:ne,onClose:J,open:S},Y=G({},L,{value:Q,onChange:ne,onSelectShortcut:V,isValid:F=>{const X=o({adapter:b,value:F,timezone:C,props:t});return!e.hasError(X)}}),Z=x.useMemo(()=>({onOpen:z,onClose:J,open:S}),[S,J,z]);return{open:S,fieldProps:K,viewProps:ee,layoutProps:Y,actions:L,contextValue:Z}},Eb=["className","sx"],Sb=({props:t,propsFromPickerValue:e,additionalViewProps:n,autoFocusView:r,rendererInterceptor:o,fieldRef:i})=>{const{onChange:s,open:a,onClose:l}=e,{view:c,views:u,openTo:f,onViewChange:p,viewRenderers:h,timezone:m}=t,g=_e(t,Eb),{view:v,setView:b,defaultView:S,focusedView:R,setFocusedView:C,setValueAndGoToNextView:A}=Au({view:c,views:u,openTo:f,onChange:s,onViewChange:p,autoFocus:r}),{hasUIView:T,viewModeLookup:k}=x.useMemo(()=>u.reduce((_,O)=>{let N;return h[O]!=null?N="UI":N="field",_.viewModeLookup[O]=N,N==="UI"&&(_.hasUIView=!0),_},{hasUIView:!1,viewModeLookup:{}}),[h,u]),P=x.useMemo(()=>u.reduce((_,O)=>h[O]!=null&&Vm(O)?_+1:_,0),[h,u]),H=k[v],W=he(()=>H==="UI"),[$,y]=x.useState(H==="UI"?v:null);return $!==v&&k[v]==="UI"&&y(v),cn(()=>{H==="field"&&a&&(l(),setTimeout(()=>{var _,O;(_=i==null?void 0:i.current)==null||_.setSelectedSections(v),(O=i==null?void 0:i.current)==null||O.focusField(v)}))},[v]),cn(()=>{if(!a)return;let _=v;H==="field"&&$!=null&&(_=$),_!==S&&k[_]==="UI"&&k[S]==="UI"&&(_=S),_!==v&&b(_),C(_,!0)},[a]),{hasUIView:T,shouldRestoreFocus:W,layoutProps:{views:u,view:$,onViewChange:b},renderCurrentView:()=>{if($==null)return null;const _=h[$];if(_==null)return null;const O=G({},g,n,e,{views:u,timezone:m,onChange:A,view:$,onViewChange:b,focusedView:R,onFocusedViewChange:C,showViewSwitcher:P>1,timeViewsCount:P});return o?o(h,$,O):_(O)}}};function Cb(t,e){return Array.isArray(e)?e.every(n=>t.indexOf(n)!==-1):t.indexOf(e)!==-1}function hl(){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 wb=(t,e)=>{const[n,r]=x.useState(hl);return cn(()=>{const i=()=>{r(hl())};return window.addEventListener("orientationchange",i),()=>{window.removeEventListener("orientationchange",i)}},[]),Cb(t,["hours","minutes","seconds"])?!1:(e||n)==="landscape"},xb=({props:t,propsFromPickerValue:e,propsFromPickerViews:n,wrapperVariant:r})=>{const{orientation:o}=t,i=wb(n.views,o),s=yr();return{layoutProps:G({},n,e,{isLandscape:i,isRtl:s,wrapperVariant:r,disabled:t.disabled,readOnly:t.readOnly})}};function Db(t){const{props:e,pickerValueResponse:n}=t;return x.useMemo(()=>({value:n.viewProps.value,open:n.open,disabled:e.disabled??!1,readOnly:e.readOnly??!1}),[n.viewProps.value,n.open,e.disabled,e.readOnly])}const Tb=({props:t,valueManager:e,valueType:n,wrapperVariant:r,additionalViewProps:o,validator:i,autoFocusView:s,rendererInterceptor:a,fieldRef:l})=>{process.env.NODE_ENV!=="production"&&t.renderInput!=null&&hb(["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 c=bb({props:t,valueManager:e,valueType:n,wrapperVariant:r,validator:i}),u=Sb({props:t,additionalViewProps:o,autoFocusView:s,fieldRef:l,propsFromPickerValue:c.viewProps,rendererInterceptor:a}),f=xb({props:t,wrapperVariant:r,propsFromPickerValue:c.layoutProps,propsFromPickerViews:u.layoutProps}),p=Db({props:t,pickerValueResponse:c});return{open:c.open,actions:c.actions,fieldProps:c.fieldProps,renderCurrentView:u.renderCurrentView,hasUIView:u.hasUIView,shouldRestoreFocus:u.shouldRestoreFocus,layoutProps:f.layoutProps,contextValue:c.contextValue,ownerState:p}};function ku(t){return Ue("MuiPickersLayout",t)}const Yt=Ye("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]);function Mu(t,e,n=!1){const r={...e};for(const o in t)if(Object.prototype.hasOwnProperty.call(t,o)){const i=o;if(i==="components"||i==="slots")r[i]={...t[i],...r[i]};else if(i==="componentsProps"||i==="slotProps"){const s=t[i],a=e[i];if(!a)r[i]=s||{};else if(!s)r[i]=a;else{r[i]={...a};for(const l in s)if(Object.prototype.hasOwnProperty.call(s,l)){const c=l;r[i][c]=Mu(s[c],a[c],n)}}}else i==="className"&&n&&e.className?r.className=ce(t==null?void 0:t.className,e==null?void 0:e.className):i==="style"&&n&&e.style?r.style={...t==null?void 0:t.style,...e==null?void 0:e.style}:r[i]===void 0&&(r[i]=t[i])}return r}function Ab(t){return Xe("MuiButton",t)}const qt=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"]),Ou=x.createContext({});process.env.NODE_ENV!=="production"&&(Ou.displayName="ButtonGroupContext");const Iu=x.createContext(void 0);process.env.NODE_ENV!=="production"&&(Iu.displayName="ButtonGroupButtonContext");const Rb=t=>{const{color:e,disableElevation:n,fullWidth:r,size:o,variant:i,loading:s,loadingPosition:a,classes:l}=t,c={root:["root",s&&"loading",i,`${i}${se(e)}`,`size${se(o)}`,`${i}Size${se(o)}`,`color${se(e)}`,n&&"disableElevation",r&&"fullWidth",s&&`loadingPosition${se(a)}`],startIcon:["icon","startIcon",`iconSize${se(o)}`],endIcon:["icon","endIcon",`iconSize${se(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},u=ct(c,Ab,l);return{...l,...u}},Pu=[{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}}}],_b=te(Vn,{shouldForwardProp:t=>nu(t)||t==="classes",name:"MuiButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.variant],e[`${n.variant}${se(n.color)}`],e[`size${se(n.size)}`],e[`${n.variant}Size${se(n.size)}`],n.color==="inherit"&&e.colorInherit,n.disableElevation&&e.disableElevation,n.fullWidth&&e.fullWidth,n.loading&&e.loading]}})(ht(({theme:t})=>{const e=t.palette.mode==="light"?t.palette.grey[300]:t.palette.grey[800],n=t.palette.mode==="light"?t.palette.grey.A100:t.palette.grey[700];return{...t.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create(["background-color","box-shadow","border-color","color"],{duration:t.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${qt.disabled}`]:{color:(t.vars||t).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(t.vars||t).shadows[2],"&:hover":{boxShadow:(t.vars||t).shadows[4],"@media (hover: none)":{boxShadow:(t.vars||t).shadows[2]}},"&:active":{boxShadow:(t.vars||t).shadows[8]},[`&.${qt.focusVisible}`]:{boxShadow:(t.vars||t).shadows[6]},[`&.${qt.disabled}`]:{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).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)",[`&.${qt.disabled}`]:{border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(t.palette).filter(Ct()).map(([r])=>({props:{color:r},style:{"--variant-textColor":(t.vars||t).palette[r].main,"--variant-outlinedColor":(t.vars||t).palette[r].main,"--variant-outlinedBorder":t.alpha((t.vars||t).palette[r].main,.5),"--variant-containedColor":(t.vars||t).palette[r].contrastText,"--variant-containedBg":(t.vars||t).palette[r].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(t.vars||t).palette[r].dark,"--variant-textBg":t.alpha((t.vars||t).palette[r].main,(t.vars||t).palette.action.hoverOpacity),"--variant-outlinedBorder":(t.vars||t).palette[r].main,"--variant-outlinedBg":t.alpha((t.vars||t).palette[r].main,(t.vars||t).palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":t.vars?t.vars.palette.Button.inheritContainedBg:e,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":t.vars?t.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":t.alpha((t.vars||t).palette.text.primary,(t.vars||t).palette.action.hoverOpacity),"--variant-outlinedBg":t.alpha((t.vars||t).palette.text.primary,(t.vars||t).palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:t.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:t.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:t.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${qt.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${qt.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:t.transitions.create(["background-color","box-shadow","border-color"],{duration:t.transitions.duration.short}),[`&.${qt.loading}`]:{color:"transparent"}}}]}})),kb=te("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.startIcon,n.loading&&e.startIconLoadingStart,e[`iconSize${se(n.size)}`]]}})(({theme:t})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...Pu]})),Mb=te("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.endIcon,n.loading&&e.endIconLoadingEnd,e[`iconSize${se(n.size)}`]]}})(({theme:t})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...Pu]})),Ob=te("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:t})=>({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:(t.vars||t).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}}]})),gl=te("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),rr=x.forwardRef(function(e,n){const r=x.useContext(Ou),o=x.useContext(Iu),i=Mu(r,e),s=it({props:i,name:"MuiButton"}),{children:a,color:l="primary",component:c="button",className:u,disabled:f=!1,disableElevation:p=!1,disableFocusRipple:h=!1,endIcon:m,focusVisibleClassName:g,fullWidth:v=!1,id:b,loading:S=null,loadingIndicator:R,loadingPosition:C="center",size:A="medium",startIcon:T,type:k,variant:P="text",...H}=s,W=ou(b),$=R??E.jsx(Ts,{"aria-labelledby":W,color:"inherit",size:16}),y={...s,color:l,component:c,disabled:f,disableElevation:p,disableFocusRipple:h,fullWidth:v,loading:S,loadingIndicator:$,loadingPosition:C,size:A,type:k,variant:P},I=Rb(y),_=(T||S&&C==="start")&&E.jsx(kb,{className:I.startIcon,ownerState:y,children:T||E.jsx(gl,{className:I.loadingIconPlaceholder,ownerState:y})}),O=(m||S&&C==="end")&&E.jsx(Mb,{className:I.endIcon,ownerState:y,children:m||E.jsx(gl,{className:I.loadingIconPlaceholder,ownerState:y})}),N=o||"",z=typeof S=="boolean"?E.jsx("span",{className:I.loadingWrapper,style:{display:"contents"},children:S&&E.jsx(Ob,{className:I.loadingIndicator,ownerState:y,children:$})}):null;return E.jsxs(_b,{ownerState:y,className:ce(r.className,I.root,u,N),component:c,disabled:f||S,focusRipple:!h,focusVisibleClassName:ce(I.focusVisible,g),ref:n,type:k,id:S?W:b,...H,classes:I,children:[_,C!=="end"&&z,a,C==="end"&&z,O]})});process.env.NODE_ENV!=="production"&&(rr.propTypes={children:d.node,classes:d.object,className:d.string,color:d.oneOfType([d.oneOf(["inherit","primary","secondary","success","error","info","warning"]),d.string]),component:d.elementType,disabled:d.bool,disableElevation:d.bool,disableFocusRipple:d.bool,disableRipple:d.bool,endIcon:d.node,focusVisibleClassName:d.string,fullWidth:d.bool,href:d.string,id:d.string,loading:d.bool,loadingIndicator:d.node,loadingPosition:d.oneOf(["center","end","start"]),size:d.oneOfType([d.oneOf(["small","medium","large"]),d.string]),startIcon:d.node,sx:d.oneOfType([d.arrayOf(d.oneOfType([d.func,d.object,d.bool])),d.func,d.object]),type:d.oneOfType([d.oneOf(["button","reset","submit"]),d.string]),variant:d.oneOfType([d.oneOf(["contained","outlined","text"]),d.string])});function Ib(t){return Xe("MuiDialogActions",t)}Je("MuiDialogActions",["root","spacing"]);const Pb=t=>{const{classes:e,disableSpacing:n}=t;return ct({root:["root",!n&&"spacing"]},Ib,e)},Nb=te("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,!n.disableSpacing&&e.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:t})=>!t.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),Nu=x.forwardRef(function(e,n){const r=it({props:e,name:"MuiDialogActions"}),{className:o,disableSpacing:i=!1,...s}=r,a={...r,disableSpacing:i},l=Pb(a);return E.jsx(Nb,{className:ce(l.root,o),ownerState:a,ref:n,...s})});process.env.NODE_ENV!=="production"&&(Nu.propTypes={children:d.node,classes:d.object,className:d.string,disableSpacing:d.bool,sx:d.oneOfType([d.arrayOf(d.oneOfType([d.func,d.object,d.bool])),d.func,d.object])});const jb=["onAccept","onClear","onCancel","onSetToday","actions"];function ju(t){const{onAccept:e,onClear:n,onCancel:r,onSetToday:o,actions:i}=t,s=_e(t,jb),a=$o();if(i==null||i.length===0)return null;const l=i==null?void 0:i.map(c=>{switch(c){case"clear":return E.jsx(rr,{onClick:n,children:a.clearButtonLabel},c);case"cancel":return E.jsx(rr,{onClick:r,children:a.cancelButtonLabel},c);case"accept":return E.jsx(rr,{onClick:e,children:a.okButtonLabel},c);case"today":return E.jsx(rr,{onClick:o,children:a.todayButtonLabel},c);default:return null}});return E.jsx(Nu,G({},s,{children:l}))}process.env.NODE_ENV!=="production"&&(ju.propTypes={actions:d.arrayOf(d.oneOf(["accept","cancel","clear","today"]).isRequired),disableSpacing:d.bool,onAccept:d.func.isRequired,onCancel:d.func.isRequired,onClear:d.func.isRequired,onSetToday:d.func.isRequired,sx:d.oneOfType([d.arrayOf(d.oneOfType([d.func,d.object,d.bool])),d.func,d.object])});const _n=x.createContext({});process.env.NODE_ENV!=="production"&&(_n.displayName="ListContext");function Vb(t){return Xe("MuiList",t)}Je("MuiList",["root","padding","dense","subheader"]);const $b=t=>{const{classes:e,disablePadding:n,dense:r,subheader:o}=t;return ct({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},Vb,e)},Bb=te("ul",{name:"MuiList",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,!n.disablePadding&&e.padding,n.dense&&e.dense,n.subheader&&e.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>t.subheader,style:{paddingTop:0}}]}),Vu=x.forwardRef(function(e,n){const r=it({props:e,name:"MuiList"}),{children:o,className:i,component:s="ul",dense:a=!1,disablePadding:l=!1,subheader:c,...u}=r,f=x.useMemo(()=>({dense:a}),[a]),p={...r,component:s,dense:a,disablePadding:l},h=$b(p);return E.jsx(_n.Provider,{value:f,children:E.jsxs(Bb,{as:s,className:ce(h.root,i),ref:n,ownerState:p,...u,children:[c,o]})})});process.env.NODE_ENV!=="production"&&(Vu.propTypes={children:d.node,classes:d.object,className:d.string,component:d.elementType,dense:d.bool,disablePadding:d.bool,subheader:d.node,sx:d.oneOfType([d.arrayOf(d.oneOfType([d.func,d.object,d.bool])),d.func,d.object])});function Ui(t){return typeof t=="string"}function Lb(t){return Xe("MuiListItem",t)}Je("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);const Hb=Je("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function zb(t){return Xe("MuiListItemSecondaryAction",t)}Je("MuiListItemSecondaryAction",["root","disableGutters"]);const Fb=t=>{const{disableGutters:e,classes:n}=t;return ct({root:["root",e&&"disableGutters"]},zb,n)},Wb=te("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.disableGutters&&e.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:t})=>t.disableGutters,style:{right:0}}]}),Rs=x.forwardRef(function(e,n){const r=it({props:e,name:"MuiListItemSecondaryAction"}),{className:o,...i}=r,s=x.useContext(_n),a={...r,disableGutters:s.disableGutters},l=Fb(a);return E.jsx(Wb,{className:ce(l.root,o),ownerState:a,ref:n,...i})});process.env.NODE_ENV!=="production"&&(Rs.propTypes={children:d.node,classes:d.object,className:d.string,sx:d.oneOfType([d.arrayOf(d.oneOfType([d.func,d.object,d.bool])),d.func,d.object])});Rs.muiName="ListItemSecondaryAction";const Ub=(t,e)=>{const{ownerState:n}=t;return[e.root,n.dense&&e.dense,n.alignItems==="flex-start"&&e.alignItemsFlexStart,n.divider&&e.divider,!n.disableGutters&&e.gutters,!n.disablePadding&&e.padding,n.hasSecondaryAction&&e.secondaryAction]},Gb=t=>{const{alignItems:e,classes:n,dense:r,disableGutters:o,disablePadding:i,divider:s,hasSecondaryAction:a}=t;return ct({root:["root",r&&"dense",!o&&"gutters",!i&&"padding",s&&"divider",e==="flex-start"&&"alignItemsFlexStart",a&&"secondaryAction"],container:["container"]},Lb,n)},Yb=te("div",{name:"MuiListItem",slot:"Root",overridesResolver:Ub})(ht(({theme:t})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>!e.disablePadding&&e.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:e})=>!e.disablePadding&&!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>!e.disablePadding&&!!e.secondaryAction,style:{paddingRight:48}},{props:({ownerState:e})=>!!e.secondaryAction,style:{[`& > .${Hb.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(t.vars||t).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:e})=>e.button,style:{transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:({ownerState:e})=>e.hasSecondaryAction,style:{paddingRight:48}}]}))),qb=te("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),$u=x.forwardRef(function(e,n){const r=it({props:e,name:"MuiListItem"}),{alignItems:o="center",children:i,className:s,component:a,components:l={},componentsProps:c={},ContainerComponent:u="li",ContainerProps:{className:f,...p}={},dense:h=!1,disableGutters:m=!1,disablePadding:g=!1,divider:v=!1,secondaryAction:b,slotProps:S={},slots:R={},...C}=r,A=x.useContext(_n),T=x.useMemo(()=>({dense:h||A.dense||!1,alignItems:o,disableGutters:m}),[o,A.dense,h,m]),k=x.useRef(null),P=x.Children.toArray(i),H=P.length&&ru(P[P.length-1],["ListItemSecondaryAction"]),W={...r,alignItems:o,dense:T.dense,disableGutters:m,disablePadding:g,divider:v,hasSecondaryAction:H},$=Gb(W),y=Nn(k,n),I=R.root||l.Root||Yb,_=S.root||c.root||{},O={className:ce($.root,_.className,s),...C};let N=a||"li";return H?(N=!O.component&&!a?"div":N,u==="li"&&(N==="li"?N="div":O.component==="li"&&(O.component="div")),E.jsx(_n.Provider,{value:T,children:E.jsxs(qb,{as:u,className:ce($.container,f),ref:y,ownerState:W,...p,children:[E.jsx(I,{..._,...!Ui(I)&&{as:N,ownerState:{...W,..._.ownerState}},...O,children:P}),P.pop()]})})):E.jsx(_n.Provider,{value:T,children:E.jsxs(I,{..._,as:N,ref:y,...!Ui(I)&&{ownerState:{...W,..._.ownerState}},...O,children:[P,b&&E.jsx(Rs,{children:b})]})})});process.env.NODE_ENV!=="production"&&($u.propTypes={alignItems:d.oneOf(["center","flex-start"]),children:zn(d.node,t=>{const e=x.Children.toArray(t.children);let n=-1;for(let r=e.length-1;r>=0;r-=1){const o=e[r];if(ru(o,["ListItemSecondaryAction"])){n=r;break}}return n!==-1&&n!==e.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:d.object,className:d.string,component:d.elementType,components:d.shape({Root:d.elementType}),componentsProps:d.shape({root:d.object}),ContainerComponent:mu,ContainerProps:d.object,dense:d.bool,disableGutters:d.bool,disablePadding:d.bool,divider:d.bool,secondaryAction:d.node,slotProps:d.shape({root:d.object}),slots:d.shape({root:d.elementType}),sx:d.oneOfType([d.arrayOf(d.oneOfType([d.func,d.object,d.bool])),d.func,d.object])});const Qb=Ve(E.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 Zb(t){return Xe("MuiChip",t)}const me=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 Kb(t,e,n){return t===void 0||Ui(t)?e:{...e,ownerState:{...e.ownerState,...n}}}function Xb(t,e,n){return typeof t=="function"?t(e,n):t}function Jb(t,e=[]){if(t===void 0)return{};const n={};return Object.keys(t).filter(r=>r.match(/^on[A-Z]/)&&typeof t[r]=="function"&&!e.includes(r)).forEach(r=>{n[r]=t[r]}),n}function ml(t){if(t===void 0)return{};const e={};return Object.keys(t).filter(n=>!(n.match(/^on[A-Z]/)&&typeof t[n]=="function")).forEach(n=>{e[n]=t[n]}),e}function eE(t){const{getSlotProps:e,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=t;if(!e){const h=ce(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),m={...n==null?void 0:n.style,...o==null?void 0:o.style,...r==null?void 0:r.style},g={...n,...o,...r};return h.length>0&&(g.className=h),Object.keys(m).length>0&&(g.style=m),{props:g,internalRef:void 0}}const s=Jb({...o,...r}),a=ml(r),l=ml(o),c=e(s),u=ce(c==null?void 0:c.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),f={...c==null?void 0:c.style,...n==null?void 0:n.style,...o==null?void 0:o.style,...r==null?void 0:r.style},p={...c,...n,...l,...a};return u.length>0&&(p.className=u),Object.keys(f).length>0&&(p.style=f),{props:p,internalRef:c.ref}}function vl(t,e){const{className:n,elementType:r,ownerState:o,externalForwardedProps:i,internalForwardedProps:s,shouldForwardComponentProp:a=!1,...l}=e,{component:c,slots:u={[t]:void 0},slotProps:f={[t]:void 0},...p}=i,h=u[t]||r,m=Xb(f[t],o),{props:{component:g,...v},internalRef:b}=eE({className:n,...l,externalForwardedProps:t==="root"?p:void 0,externalSlotProps:m}),S=Nn(b,m==null?void 0:m.ref,e.ref),R=t==="root"?g||c:g,C=Kb(h,{...t==="root"&&!c&&!u[t]&&s,...t!=="root"&&!u[t]&&s,...v,...R&&!a&&{as:R},...R&&a&&{component:R},ref:S},o);return[h,C]}const tE=t=>{const{classes:e,disabled:n,size:r,color:o,iconColor:i,onDelete:s,clickable:a,variant:l}=t,c={root:["root",l,n&&"disabled",`size${se(r)}`,`color${se(o)}`,a&&"clickable",a&&`clickableColor${se(o)}`,s&&"deletable",s&&`deletableColor${se(o)}`,`${l}${se(o)}`],label:["label",`label${se(r)}`],avatar:["avatar",`avatar${se(r)}`,`avatarColor${se(o)}`],icon:["icon",`icon${se(r)}`,`iconColor${se(i)}`],deleteIcon:["deleteIcon",`deleteIcon${se(r)}`,`deleteIconColor${se(o)}`,`deleteIcon${se(l)}Color${se(o)}`]};return ct(c,Zb,e)},nE=te("div",{name:"MuiChip",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t,{color:r,iconColor:o,clickable:i,onDelete:s,size:a,variant:l}=n;return[{[`& .${me.avatar}`]:e.avatar},{[`& .${me.avatar}`]:e[`avatar${se(a)}`]},{[`& .${me.avatar}`]:e[`avatarColor${se(r)}`]},{[`& .${me.icon}`]:e.icon},{[`& .${me.icon}`]:e[`icon${se(a)}`]},{[`& .${me.icon}`]:e[`iconColor${se(o)}`]},{[`& .${me.deleteIcon}`]:e.deleteIcon},{[`& .${me.deleteIcon}`]:e[`deleteIcon${se(a)}`]},{[`& .${me.deleteIcon}`]:e[`deleteIconColor${se(r)}`]},{[`& .${me.deleteIcon}`]:e[`deleteIcon${se(l)}Color${se(r)}`]},e.root,e[`size${se(a)}`],e[`color${se(r)}`],i&&e.clickable,i&&r!=="default"&&e[`clickableColor${se(r)})`],s&&e.deletable,s&&r!=="default"&&e[`deletableColor${se(r)}`],e[l],e[`${l}${se(r)}`]]}})(ht(({theme:t})=>{const e=t.palette.mode==="light"?t.palette.grey[700]:t.palette.grey[300];return{maxWidth:"100%",fontFamily:t.typography.fontFamily,fontSize:t.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,lineHeight:1.5,color:(t.vars||t).palette.text.primary,backgroundColor:(t.vars||t).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:t.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${me.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${me.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:t.vars?t.vars.palette.Chip.defaultAvatarColor:e,fontSize:t.typography.pxToRem(12)},[`& .${me.avatarColorPrimary}`]:{color:(t.vars||t).palette.primary.contrastText,backgroundColor:(t.vars||t).palette.primary.dark},[`& .${me.avatarColorSecondary}`]:{color:(t.vars||t).palette.secondary.contrastText,backgroundColor:(t.vars||t).palette.secondary.dark},[`& .${me.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:t.typography.pxToRem(10)},[`& .${me.icon}`]:{marginLeft:5,marginRight:-6},[`& .${me.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:t.alpha((t.vars||t).palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:t.alpha((t.vars||t).palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${me.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${me.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(t.palette).filter(Ct(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(t.vars||t).palette[n].main,color:(t.vars||t).palette[n].contrastText,[`& .${me.deleteIcon}`]:{color:t.alpha((t.vars||t).palette[n].contrastText,.7),"&:hover, &:active":{color:(t.vars||t).palette[n].contrastText}}}})),{props:n=>n.iconColor===n.color,style:{[`& .${me.icon}`]:{color:t.vars?t.vars.palette.Chip.defaultIconColor:e}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${me.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${me.focusVisible}`]:{backgroundColor:t.alpha((t.vars||t).palette.action.selected,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.focusOpacity}`)}}},...Object.entries(t.palette).filter(Ct(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${me.focusVisible}`]:{background:(t.vars||t).palette[n].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:t.alpha((t.vars||t).palette.action.selected,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.hoverOpacity}`)},[`&.${me.focusVisible}`]:{backgroundColor:t.alpha((t.vars||t).palette.action.selected,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.focusOpacity}`)},"&:active":{boxShadow:(t.vars||t).shadows[1]}}},...Object.entries(t.palette).filter(Ct(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${me.focusVisible}`]:{backgroundColor:(t.vars||t).palette[n].dark}}})),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:t.vars?`1px solid ${t.vars.palette.Chip.defaultBorder}`:`1px solid ${t.palette.mode==="light"?t.palette.grey[400]:t.palette.grey[700]}`,[`&.${me.clickable}:hover`]:{backgroundColor:(t.vars||t).palette.action.hover},[`&.${me.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`& .${me.avatar}`]:{marginLeft:4},[`& .${me.avatarSmall}`]:{marginLeft:2},[`& .${me.icon}`]:{marginLeft:4},[`& .${me.iconSmall}`]:{marginLeft:2},[`& .${me.deleteIcon}`]:{marginRight:5},[`& .${me.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(t.palette).filter(Ct()).map(([n])=>({props:{variant:"outlined",color:n},style:{color:(t.vars||t).palette[n].main,border:`1px solid ${t.alpha((t.vars||t).palette[n].main,.7)}`,[`&.${me.clickable}:hover`]:{backgroundColor:t.alpha((t.vars||t).palette[n].main,(t.vars||t).palette.action.hoverOpacity)},[`&.${me.focusVisible}`]:{backgroundColor:t.alpha((t.vars||t).palette[n].main,(t.vars||t).palette.action.focusOpacity)},[`& .${me.deleteIcon}`]:{color:t.alpha((t.vars||t).palette[n].main,.7),"&:hover, &:active":{color:(t.vars||t).palette[n].main}}}}))]}})),rE=te("span",{name:"MuiChip",slot:"Label",overridesResolver:(t,e)=>{const{ownerState:n}=t,{size:r}=n;return[e.label,e[`label${se(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 yl(t){return t.key==="Backspace"||t.key==="Delete"}const Bu=x.forwardRef(function(e,n){const r=it({props:e,name:"MuiChip"}),{avatar:o,className:i,clickable:s,color:a="default",component:l,deleteIcon:c,disabled:u=!1,icon:f,label:p,onClick:h,onDelete:m,onKeyDown:g,onKeyUp:v,size:b="medium",variant:S="filled",tabIndex:R,skipFocusWhenDisabled:C=!1,slots:A={},slotProps:T={},...k}=r,P=x.useRef(null),H=Nn(P,n),W=U=>{U.stopPropagation(),m&&m(U)},$=U=>{U.currentTarget===U.target&&yl(U)&&U.preventDefault(),g&&g(U)},y=U=>{U.currentTarget===U.target&&m&&yl(U)&&m(U),v&&v(U)},I=s!==!1&&h?!0:s,_=I||m?Vn:l||"div",O={...r,component:_,disabled:u,size:b,color:a,iconColor:x.isValidElement(f)&&f.props.color||a,onDelete:!!m,clickable:I,variant:S},N=tE(O),z=_===Vn?{component:l||"div",focusVisibleClassName:N.focusVisible,...m&&{disableRipple:!0}}:{};let J=null;m&&(J=c&&x.isValidElement(c)?x.cloneElement(c,{className:ce(c.props.className,N.deleteIcon),onClick:W}):E.jsx(Qb,{className:N.deleteIcon,onClick:W}));let ne=null;o&&x.isValidElement(o)&&(ne=x.cloneElement(o,{className:ce(N.avatar,o.props.className)}));let V=null;f&&x.isValidElement(f)&&(V=x.cloneElement(f,{className:ce(N.icon,f.props.className)})),process.env.NODE_ENV!=="production"&&ne&&V&&console.error("MUI: The Chip component can not handle the avatar and the icon prop at the same time. Pick one.");const D={slots:A,slotProps:T},[L,K]=vl("root",{elementType:nE,externalForwardedProps:{...D,...k},ownerState:O,shouldForwardComponentProp:!0,ref:H,className:ce(N.root,i),additionalProps:{disabled:I&&u?!0:void 0,tabIndex:C&&u?-1:R,...z},getSlotProps:U=>({...U,onClick:Y=>{var Z;(Z=U.onClick)==null||Z.call(U,Y),h==null||h(Y)},onKeyDown:Y=>{var Z;(Z=U.onKeyDown)==null||Z.call(U,Y),$(Y)},onKeyUp:Y=>{var Z;(Z=U.onKeyUp)==null||Z.call(U,Y),y(Y)}})}),[Q,ee]=vl("label",{elementType:rE,externalForwardedProps:D,ownerState:O,className:N.label});return E.jsxs(L,{as:_,...K,children:[ne||V,E.jsx(Q,{...ee,children:p}),J]})});process.env.NODE_ENV!=="production"&&(Bu.propTypes={avatar:d.element,children:Fg,classes:d.object,className:d.string,clickable:d.bool,color:d.oneOfType([d.oneOf(["default","primary","secondary","error","info","success","warning"]),d.string]),component:d.elementType,deleteIcon:d.element,disabled:d.bool,icon:d.element,label:d.node,onClick:d.func,onDelete:d.func,onKeyDown:d.func,onKeyUp:d.func,size:d.oneOfType([d.oneOf(["medium","small"]),d.string]),skipFocusWhenDisabled:d.bool,slotProps:d.shape({label:d.oneOfType([d.func,d.object]),root:d.oneOfType([d.func,d.object])}),slots:d.shape({label:d.elementType,root:d.elementType}),sx:d.oneOfType([d.arrayOf(d.oneOfType([d.func,d.object,d.bool])),d.func,d.object]),tabIndex:d.number,variant:d.oneOfType([d.oneOf(["filled","outlined"]),d.string])});const oE=["items","changeImportance","isLandscape","onChange","isValid"],iE=["getValue"];function Lu(t){const{items:e,changeImportance:n="accept",onChange:r,isValid:o}=t,i=_e(t,oE);if(e==null||e.length===0)return null;const s=e.map(a=>{let{getValue:l}=a,c=_e(a,iE);const u=l({isValid:o});return G({},c,{label:c.label,onClick:()=>{r(u,n,c)},disabled:!o(u)})});return E.jsx(Vu,G({dense:!0,sx:[{maxHeight:xs,maxWidth:200,overflow:"auto"},...Array.isArray(i.sx)?i.sx:[i.sx]]},i,{children:s.map(a=>E.jsx($u,{children:E.jsx(Bu,G({},a))},a.id??a.label))}))}process.env.NODE_ENV!=="production"&&(Lu.propTypes={changeImportance:d.oneOf(["accept","set"]),className:d.string,component:d.elementType,dense:d.bool,disablePadding:d.bool,isLandscape:d.bool.isRequired,isValid:d.func.isRequired,items:d.arrayOf(d.shape({getValue:d.func.isRequired,id:d.string,label:d.string.isRequired})),onChange:d.func.isRequired,style:d.object,subheader:d.node,sx:d.oneOfType([d.arrayOf(d.oneOfType([d.func,d.object,d.bool])),d.func,d.object])});function sE(t){return t.view!==null}const aE=t=>{const{classes:e,isLandscape:n}=t;return We({root:["root",n&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},ku,e)},lE=t=>{const{wrapperVariant:e,onAccept:n,onClear:r,onCancel:o,onSetToday:i,view:s,views:a,onViewChange:l,value:c,onChange:u,onSelectShortcut:f,isValid:p,isLandscape:h,disabled:m,readOnly:g,children:v,slots:b,slotProps:S}=t,R=aE(t),C=(b==null?void 0:b.actionBar)??ju,A=Qe({elementType:C,externalSlotProps:S==null?void 0:S.actionBar,additionalProps:{onAccept:n,onClear:r,onCancel:o,onSetToday:i,actions:e==="desktop"?[]:["cancel","accept"]},className:R.actionBar,ownerState:G({},t,{wrapperVariant:e})}),T=E.jsx(C,G({},A)),k=b==null?void 0:b.toolbar,P=Qe({elementType:k,externalSlotProps:S==null?void 0:S.toolbar,additionalProps:{isLandscape:h,onChange:u,value:c,view:s,onViewChange:l,views:a,disabled:m,readOnly:g},className:R.toolbar,ownerState:G({},t,{wrapperVariant:e})}),H=sE(P)&&k?E.jsx(k,G({},P)):null,W=v,$=b==null?void 0:b.tabs,y=s&&$?E.jsx($,G({view:s,onViewChange:l,className:R.tabs},S==null?void 0:S.tabs)):null,I=(b==null?void 0:b.shortcuts)??Lu,_=Qe({elementType:I,externalSlotProps:S==null?void 0:S.shortcuts,additionalProps:{isValid:p,isLandscape:h,onChange:f},className:R.shortcuts,ownerState:{isValid:p,isLandscape:h,onChange:f,wrapperVariant:e}}),O=s&&I?E.jsx(I,G({},_)):null;return{toolbar:H,content:W,tabs:y,actionBar:T,shortcuts:O}},cE=t=>{const{isLandscape:e,classes:n}=t;return We({root:["root",e&&"landscape"],contentWrapper:["contentWrapper"]},ku,n)},uE=te("div",{name:"MuiPickersLayout",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${Yt.actionBar}`]:{gridColumn:"1 / 4",gridRow:3},variants:[{props:{isLandscape:!0},style:{[`& .${Yt.toolbar}`]:{gridColumn:1,gridRow:"2 / 3"},[`.${Yt.shortcuts}`]:{gridColumn:"2 / 4",gridRow:1}}},{props:{isLandscape:!0,isRtl:!0},style:{[`& .${Yt.toolbar}`]:{gridColumn:3}}},{props:{isLandscape:!1},style:{[`& .${Yt.toolbar}`]:{gridColumn:"2 / 4",gridRow:1},[`& .${Yt.shortcuts}`]:{gridColumn:1,gridRow:"2 / 3"}}},{props:{isLandscape:!1,isRtl:!0},style:{[`& .${Yt.shortcuts}`]:{gridColumn:3}}}]}),dE=te("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(t,e)=>e.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),Hu=x.forwardRef(function(e,n){const r=ze({props:e,name:"MuiPickersLayout"}),{toolbar:o,content:i,tabs:s,actionBar:a,shortcuts:l}=lE(r),{sx:c,className:u,isLandscape:f,wrapperVariant:p}=r,h=cE(r);return E.jsxs(uE,{ref:n,sx:c,className:ce(h.root,u),ownerState:r,children:[f?l:o,f?o:l,E.jsx(dE,{className:h.contentWrapper,children:p==="desktop"?E.jsxs(x.Fragment,{children:[i,s]}):E.jsxs(x.Fragment,{children:[s,i]})}),a]})});process.env.NODE_ENV!=="production"&&(Hu.propTypes={children:d.node,classes:d.object,className:d.string,disabled:d.bool,isLandscape:d.bool.isRequired,isRtl:d.bool.isRequired,isValid:d.func.isRequired,onAccept:d.func.isRequired,onCancel:d.func.isRequired,onChange:d.func.isRequired,onClear:d.func.isRequired,onClose:d.func.isRequired,onDismiss:d.func.isRequired,onOpen:d.func.isRequired,onSelectShortcut:d.func.isRequired,onSetToday:d.func.isRequired,onViewChange:d.func.isRequired,orientation:d.oneOf(["landscape","portrait"]),readOnly:d.bool,slotProps:d.object,slots:d.object,sx:d.oneOfType([d.arrayOf(d.oneOfType([d.func,d.object,d.bool])),d.func,d.object]),value:d.any,view:d.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),views:d.arrayOf(d.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]).isRequired).isRequired,wrapperVariant:d.oneOf(["desktop","mobile"])});const fE=["props","ref"],pE=te(Hu)(({theme:t})=>({overflow:"hidden",minWidth:Lo,backgroundColor:(t.vars||t).palette.background.paper})),hE=t=>{let{props:e,ref:n}=t,r=_e(t,fE);const{localeText:o,slots:i,slotProps:s,className:a,sx:l,displayStaticWrapperAs:c,autoFocus:u}=e,{layoutProps:f,renderCurrentView:p}=Tb(G({},r,{props:e,autoFocusView:u??!1,additionalViewProps:{},wrapperVariant:c})),h=(i==null?void 0:i.layout)??pE;return{renderPicker:()=>{var g,v,b;return E.jsx(au,{localeText:o,children:E.jsx(h,G({},f,s==null?void 0:s.layout,{slots:i,slotProps:s,sx:[...Array.isArray(l)?l:[l],...Array.isArray((g=s==null?void 0:s.layout)==null?void 0:g.sx)?s.layout.sx:[(v=s==null?void 0:s.layout)==null?void 0:v.sx]],className:ce(a,(b=s==null?void 0:s.layout)==null?void 0:b.className),ref:n,children:p()}))})}}},zu=x.forwardRef(function(e,n){var l;const r=Nm(e,"MuiStaticDatePicker"),o=r.displayStaticWrapperAs??"mobile",i=G({day:pi,month:pi,year:pi},r.viewRenderers),s=G({},r,{viewRenderers:i,displayStaticWrapperAs:o,yearsPerRow:r.yearsPerRow??(o==="mobile"?3:4),slotProps:G({},r.slotProps,{toolbar:G({hidden:o==="desktop"},(l=r.slotProps)==null?void 0:l.toolbar)})}),{renderPicker:a}=hE({props:s,valueManager:Bt,valueType:"date",validator:ys,ref:n});return a()});zu.propTypes={autoFocus:d.bool,className:d.string,dayOfWeekFormatter:d.func,defaultValue:d.object,disabled:d.bool,disableFuture:d.bool,disableHighlightToday:d.bool,disablePast:d.bool,displayStaticWrapperAs:d.oneOf(["desktop","mobile"]),displayWeekNumber:d.bool,fixedWeekNumber:d.number,loading:d.bool,localeText:d.object,maxDate:d.object,minDate:d.object,monthsPerRow:d.oneOf([3,4]),onAccept:d.func,onChange:d.func,onClose:d.func,onError:d.func,onMonthChange:d.func,onViewChange:d.func,onYearChange:d.func,openTo:d.oneOf(["day","month","year"]),orientation:d.oneOf(["landscape","portrait"]),readOnly:d.bool,reduceAnimations:d.bool,referenceDate:d.object,renderLoading:d.func,shouldDisableDate:d.func,shouldDisableMonth:d.func,shouldDisableYear:d.func,showDaysOutsideCurrentMonth:d.bool,slotProps:d.object,slots:d.object,sx:d.oneOfType([d.arrayOf(d.oneOfType([d.func,d.object,d.bool])),d.func,d.object]),timezone:d.string,value:d.object,view:d.oneOf(["day","month","year"]),viewRenderers:d.shape({day:d.func,month:d.func,year:d.func}),views:d.arrayOf(d.oneOf(["day","month","year"]).isRequired),yearsOrder:d.oneOf(["asc","desc"]),yearsPerRow:d.oneOf([3,4])};const gE=({anchorEl:t,onClose:e,onDateSelect:n})=>E.jsx(q.Popover,{open:!!t,anchorEl:t,onClose:e,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},children:E.jsx(zu,{displayStaticWrapperAs:"desktop",value:null,onChange:n})});var Ho,ae,Fu,Wu,$n,Jt,bl,Uu,Gu,io={},Yu=[],mE=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function It(t,e){for(var n in e)t[n]=e[n];return t}function qu(t){var e=t.parentNode;e&&e.removeChild(t)}function w(t,e,n){var r,o,i,s={};for(i in e)i=="key"?r=e[i]:i=="ref"?o=e[i]:s[i]=e[i];if(arguments.length>2&&(s.children=arguments.length>3?Ho.call(arguments,2):n),typeof t=="function"&&t.defaultProps!=null)for(i in t.defaultProps)s[i]===void 0&&(s[i]=t.defaultProps[i]);return zr(t,s,r,o,null)}function zr(t,e,n,r,o){var i={type:t,props:e,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:o??++Fu};return o==null&&ae.vnode!=null&&ae.vnode(i),i}function Fe(){return{current:null}}function Ae(t){return t.children}function vE(t,e,n,r,o){var i;for(i in n)i==="children"||i==="key"||i in e||so(t,i,null,n[i],r);for(i in e)o&&typeof e[i]!="function"||i==="children"||i==="key"||i==="value"||i==="checked"||n[i]===e[i]||so(t,i,e[i],n[i],r)}function El(t,e,n){e[0]==="-"?t.setProperty(e,n??""):t[e]=n==null?"":typeof n!="number"||mE.test(e)?n:n+"px"}function so(t,e,n,r,o){var i;e:if(e==="style")if(typeof n=="string")t.style.cssText=n;else{if(typeof r=="string"&&(t.style.cssText=r=""),r)for(e in r)n&&e in n||El(t.style,e,"");if(n)for(e in n)r&&n[e]===r[e]||El(t.style,e,n[e])}else if(e[0]==="o"&&e[1]==="n")i=e!==(e=e.replace(/Capture$/,"")),e=e.toLowerCase()in t?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+i]=n,n?r||t.addEventListener(e,i?Cl:Sl,i):t.removeEventListener(e,i?Cl:Sl,i);else if(e!=="dangerouslySetInnerHTML"){if(o)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(e!=="width"&&e!=="height"&&e!=="href"&&e!=="list"&&e!=="form"&&e!=="tabIndex"&&e!=="download"&&e in t)try{t[e]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&e.indexOf("-")==-1?t.removeAttribute(e):t.setAttribute(e,n))}}function Sl(t){$n=!0;try{return this.l[t.type+!1](ae.event?ae.event(t):t)}finally{$n=!1}}function Cl(t){$n=!0;try{return this.l[t.type+!0](ae.event?ae.event(t):t)}finally{$n=!1}}function Ze(t,e){this.props=t,this.context=e}function fr(t,e){if(e==null)return t.__?fr(t.__,t.__.__k.indexOf(t)+1):null;for(var n;e<t.__k.length;e++)if((n=t.__k[e])!=null&&n.__e!=null)return n.__e;return typeof t.type=="function"?fr(t):null}function Qu(t){var e,n;if((t=t.__)!=null&&t.__c!=null){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if((n=t.__k[e])!=null&&n.__e!=null){t.__e=t.__c.base=n.__e;break}return Qu(t)}}function yE(t){$n?setTimeout(t):Uu(t)}function Gi(t){(!t.__d&&(t.__d=!0)&&Jt.push(t)&&!ao.__r++||bl!==ae.debounceRendering)&&((bl=ae.debounceRendering)||yE)(ao)}function ao(){var t,e,n,r,o,i,s,a;for(Jt.sort(function(l,c){return l.__v.__b-c.__v.__b});t=Jt.shift();)t.__d&&(e=Jt.length,r=void 0,o=void 0,s=(i=(n=t).__v).__e,(a=n.__P)&&(r=[],(o=It({},i)).__v=i.__v+1,_s(a,i,o,n.__n,a.ownerSVGElement!==void 0,i.__h!=null?[s]:null,r,s??fr(i),i.__h),ed(r,i),i.__e!=s&&Qu(i)),Jt.length>e&&Jt.sort(function(l,c){return l.__v.__b-c.__v.__b}));ao.__r=0}function Zu(t,e,n,r,o,i,s,a,l,c){var u,f,p,h,m,g,v,b=r&&r.__k||Yu,S=b.length;for(n.__k=[],u=0;u<e.length;u++)if((h=n.__k[u]=(h=e[u])==null||typeof h=="boolean"?null:typeof h=="string"||typeof h=="number"||typeof h=="bigint"?zr(null,h,null,null,h):Array.isArray(h)?zr(Ae,{children:h},null,null,null):h.__b>0?zr(h.type,h.props,h.key,h.ref?h.ref:null,h.__v):h)!=null){if(h.__=n,h.__b=n.__b+1,(p=b[u])===null||p&&h.key==p.key&&h.type===p.type)b[u]=void 0;else for(f=0;f<S;f++){if((p=b[f])&&h.key==p.key&&h.type===p.type){b[f]=void 0;break}p=null}_s(t,h,p=p||io,o,i,s,a,l,c),m=h.__e,(f=h.ref)&&p.ref!=f&&(v||(v=[]),p.ref&&v.push(p.ref,null,h),v.push(f,h.__c||m,h)),m!=null?(g==null&&(g=m),typeof h.type=="function"&&h.__k===p.__k?h.__d=l=Ku(h,l,t):l=Xu(t,h,p,b,m,l),typeof n.type=="function"&&(n.__d=l)):l&&p.__e==l&&l.parentNode!=t&&(l=fr(p))}for(n.__e=g,u=S;u--;)b[u]!=null&&(typeof n.type=="function"&&b[u].__e!=null&&b[u].__e==n.__d&&(n.__d=Ju(r).nextSibling),nd(b[u],b[u]));if(v)for(u=0;u<v.length;u++)td(v[u],v[++u],v[++u])}function Ku(t,e,n){for(var r,o=t.__k,i=0;o&&i<o.length;i++)(r=o[i])&&(r.__=t,e=typeof r.type=="function"?Ku(r,e,n):Xu(n,r,r,o,r.__e,e));return e}function lo(t,e){return e=e||[],t==null||typeof t=="boolean"||(Array.isArray(t)?t.some(function(n){lo(n,e)}):e.push(t)),e}function Xu(t,e,n,r,o,i){var s,a,l;if(e.__d!==void 0)s=e.__d,e.__d=void 0;else if(n==null||o!=i||o.parentNode==null)e:if(i==null||i.parentNode!==t)t.appendChild(o),s=null;else{for(a=i,l=0;(a=a.nextSibling)&&l<r.length;l+=1)if(a==o)break e;t.insertBefore(o,i),s=i}return s!==void 0?s:o.nextSibling}function Ju(t){var e,n,r;if(t.type==null||typeof t.type=="string")return t.__e;if(t.__k){for(e=t.__k.length-1;e>=0;e--)if((n=t.__k[e])&&(r=Ju(n)))return r}return null}function _s(t,e,n,r,o,i,s,a,l){var c,u,f,p,h,m,g,v,b,S,R,C,A,T,k,P=e.type;if(e.constructor!==void 0)return null;n.__h!=null&&(l=n.__h,a=e.__e=n.__e,e.__h=null,i=[a]),(c=ae.__b)&&c(e);try{e:if(typeof P=="function"){if(v=e.props,b=(c=P.contextType)&&r[c.__c],S=c?b?b.props.value:c.__:r,n.__c?g=(u=e.__c=n.__c).__=u.__E:("prototype"in P&&P.prototype.render?e.__c=u=new P(v,S):(e.__c=u=new Ze(v,S),u.constructor=P,u.render=EE),b&&b.sub(u),u.props=v,u.state||(u.state={}),u.context=S,u.__n=r,f=u.__d=!0,u.__h=[],u._sb=[]),u.__s==null&&(u.__s=u.state),P.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=It({},u.__s)),It(u.__s,P.getDerivedStateFromProps(v,u.__s))),p=u.props,h=u.state,u.__v=e,f)P.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(P.getDerivedStateFromProps==null&&v!==p&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(v,S),!u.__e&&u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(v,u.__s,S)===!1||e.__v===n.__v){for(e.__v!==n.__v&&(u.props=v,u.state=u.__s,u.__d=!1),e.__e=n.__e,e.__k=n.__k,e.__k.forEach(function(H){H&&(H.__=e)}),R=0;R<u._sb.length;R++)u.__h.push(u._sb[R]);u._sb=[],u.__h.length&&s.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(v,u.__s,S),u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(p,h,m)})}if(u.context=S,u.props=v,u.__P=t,C=ae.__r,A=0,"prototype"in P&&P.prototype.render){for(u.state=u.__s,u.__d=!1,C&&C(e),c=u.render(u.props,u.state,u.context),T=0;T<u._sb.length;T++)u.__h.push(u._sb[T]);u._sb=[]}else do u.__d=!1,C&&C(e),c=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++A<25);u.state=u.__s,u.getChildContext!=null&&(r=It(It({},r),u.getChildContext())),f||u.getSnapshotBeforeUpdate==null||(m=u.getSnapshotBeforeUpdate(p,h)),k=c!=null&&c.type===Ae&&c.key==null?c.props.children:c,Zu(t,Array.isArray(k)?k:[k],e,n,r,o,i,s,a,l),u.base=e.__e,e.__h=null,u.__h.length&&s.push(u),g&&(u.__E=u.__=null),u.__e=!1}else i==null&&e.__v===n.__v?(e.__k=n.__k,e.__e=n.__e):e.__e=bE(n.__e,e,n,r,o,i,s,l);(c=ae.diffed)&&c(e)}catch(H){e.__v=null,(l||i!=null)&&(e.__e=a,e.__h=!!l,i[i.indexOf(a)]=null),ae.__e(H,e,n)}}function ed(t,e){ae.__c&&ae.__c(e,t),t.some(function(n){try{t=n.__h,n.__h=[],t.some(function(r){r.call(n)})}catch(r){ae.__e(r,n.__v)}})}function bE(t,e,n,r,o,i,s,a){var l,c,u,f=n.props,p=e.props,h=e.type,m=0;if(h==="svg"&&(o=!0),i!=null){for(;m<i.length;m++)if((l=i[m])&&"setAttribute"in l==!!h&&(h?l.localName===h:l.nodeType===3)){t=l,i[m]=null;break}}if(t==null){if(h===null)return document.createTextNode(p);t=o?document.createElementNS("http://www.w3.org/2000/svg",h):document.createElement(h,p.is&&p),i=null,a=!1}if(h===null)f===p||a&&t.data===p||(t.data=p);else{if(i=i&&Ho.call(t.childNodes),c=(f=n.props||io).dangerouslySetInnerHTML,u=p.dangerouslySetInnerHTML,!a){if(i!=null)for(f={},m=0;m<t.attributes.length;m++)f[t.attributes[m].name]=t.attributes[m].value;(u||c)&&(u&&(c&&u.__html==c.__html||u.__html===t.innerHTML)||(t.innerHTML=u&&u.__html||""))}if(vE(t,p,f,o,a),u)e.__k=[];else if(m=e.props.children,Zu(t,Array.isArray(m)?m:[m],e,n,r,o&&h!=="foreignObject",i,s,i?i[0]:n.__k&&fr(n,0),a),i!=null)for(m=i.length;m--;)i[m]!=null&&qu(i[m]);a||("value"in p&&(m=p.value)!==void 0&&(m!==t.value||h==="progress"&&!m||h==="option"&&m!==f.value)&&so(t,"value",m,f.value,!1),"checked"in p&&(m=p.checked)!==void 0&&m!==t.checked&&so(t,"checked",m,f.checked,!1))}return t}function td(t,e,n){try{typeof t=="function"?t(e):t.current=e}catch(r){ae.__e(r,n)}}function nd(t,e,n){var r,o;if(ae.unmount&&ae.unmount(t),(r=t.ref)&&(r.current&&r.current!==t.__e||td(r,null,e)),(r=t.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){ae.__e(i,e)}r.base=r.__P=null,t.__c=void 0}if(r=t.__k)for(o=0;o<r.length;o++)r[o]&&nd(r[o],e,n||typeof t.type!="function");n||t.__e==null||qu(t.__e),t.__=t.__e=t.__d=void 0}function EE(t,e,n){return this.constructor(t,n)}function pr(t,e,n){var r,o,i;ae.__&&ae.__(t,e),o=(r=!1)?null:e.__k,i=[],_s(e,t=e.__k=w(Ae,null,[t]),o||io,io,e.ownerSVGElement!==void 0,o?null:e.firstChild?Ho.call(e.childNodes):null,i,o?o.__e:e.firstChild,r),ed(i,t)}function SE(t,e){var n={__c:e="__cC"+Gu++,__:t,Consumer:function(r,o){return r.children(o)},Provider:function(r){var o,i;return this.getChildContext||(o=[],(i={})[e]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(s){this.props.value!==s.value&&o.some(function(a){a.__e=!0,Gi(a)})},this.sub=function(s){o.push(s);var a=s.componentWillUnmount;s.componentWillUnmount=function(){o.splice(o.indexOf(s),1),a&&a.call(s)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}Ho=Yu.slice,ae={__e:function(t,e,n,r){for(var o,i,s;e=e.__;)if((o=e.__c)&&!o.__)try{if((i=o.constructor)&&i.getDerivedStateFromError!=null&&(o.setState(i.getDerivedStateFromError(t)),s=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(t,r||{}),s=o.__d),s)return o.__E=o}catch(a){t=a}throw t}},Fu=0,Wu=function(t){return t!=null&&t.constructor===void 0},$n=!1,Ze.prototype.setState=function(t,e){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=It({},this.state),typeof t=="function"&&(t=t(It({},n),this.props)),t&&It(n,t),t!=null&&this.__v&&(e&&this._sb.push(e),Gi(this))},Ze.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),Gi(this))},Ze.prototype.render=Ae,Jt=[],Uu=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,ao.__r=0,Gu=0;var pt,hi,wl,rd=[],gi=[],xl=ae.__b,Dl=ae.__r,Tl=ae.diffed,Al=ae.__c,Rl=ae.unmount;function CE(){for(var t;t=rd.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(Fr),t.__H.__h.forEach(Yi),t.__H.__h=[]}catch(e){t.__H.__h=[],ae.__e(e,t.__v)}}ae.__b=function(t){pt=null,xl&&xl(t)},ae.__r=function(t){Dl&&Dl(t);var e=(pt=t.__c).__H;e&&(hi===pt?(e.__h=[],pt.__h=[],e.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=gi,n.__N=n.i=void 0})):(e.__h.forEach(Fr),e.__h.forEach(Yi),e.__h=[])),hi=pt},ae.diffed=function(t){Tl&&Tl(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(rd.push(e)!==1&&wl===ae.requestAnimationFrame||((wl=ae.requestAnimationFrame)||wE)(CE)),e.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==gi&&(n.__=n.__V),n.i=void 0,n.__V=gi})),hi=pt=null},ae.__c=function(t,e){e.some(function(n){try{n.__h.forEach(Fr),n.__h=n.__h.filter(function(r){return!r.__||Yi(r)})}catch(r){e.some(function(o){o.__h&&(o.__h=[])}),e=[],ae.__e(r,n.__v)}}),Al&&Al(t,e)},ae.unmount=function(t){Rl&&Rl(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{Fr(r)}catch(o){e=o}}),n.__H=void 0,e&&ae.__e(e,n.__v))};var _l=typeof requestAnimationFrame=="function";function wE(t){var e,n=function(){clearTimeout(r),_l&&cancelAnimationFrame(e),setTimeout(t)},r=setTimeout(n,100);_l&&(e=requestAnimationFrame(n))}function Fr(t){var e=pt,n=t.__c;typeof n=="function"&&(t.__c=void 0,n()),pt=e}function Yi(t){var e=pt;t.__c=t.__(),pt=e}function xE(t,e){for(var n in e)t[n]=e[n];return t}function kl(t,e){for(var n in t)if(n!=="__source"&&!(n in e))return!0;for(var r in e)if(r!=="__source"&&t[r]!==e[r])return!0;return!1}function Ml(t){this.props=t}(Ml.prototype=new Ze).isPureReactComponent=!0,Ml.prototype.shouldComponentUpdate=function(t,e){return kl(this.props,t)||kl(this.state,e)};var Ol=ae.__b;ae.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),Ol&&Ol(t)};var DE=ae.__e;ae.__e=function(t,e,n,r){if(t.then){for(var o,i=e;i=i.__;)if((o=i.__c)&&o.__c)return e.__e==null&&(e.__e=n.__e,e.__k=n.__k),o.__c(t,e)}DE(t,e,n,r)};var Il=ae.unmount;function od(t,e,n){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),t.__c.__H=null),(t=xE({},t)).__c!=null&&(t.__c.__P===n&&(t.__c.__P=e),t.__c=null),t.__k=t.__k&&t.__k.map(function(r){return od(r,e,n)})),t}function id(t,e,n){return t&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(r){return id(r,e,n)}),t.__c&&t.__c.__P===e&&(t.__e&&n.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=n)),t}function mi(){this.__u=0,this.t=null,this.__b=null}function sd(t){var e=t.__.__c;return e&&e.__a&&e.__a(t)}function kr(){this.u=null,this.o=null}ae.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&t.__h===!0&&(t.type=null),Il&&Il(t)},(mi.prototype=new Ze).__c=function(t,e){var n=e.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var o=sd(r.__v),i=!1,s=function(){i||(i=!0,n.__R=null,o?o(a):a())};n.__R=s;var a=function(){if(!--r.__u){if(r.state.__a){var c=r.state.__a;r.__v.__k[0]=id(c,c.__c.__P,c.__c.__O)}var u;for(r.setState({__a:r.__b=null});u=r.t.pop();)u.forceUpdate()}},l=e.__h===!0;r.__u++||l||r.setState({__a:r.__b=r.__v.__k[0]}),t.then(s,s)},mi.prototype.componentWillUnmount=function(){this.t=[]},mi.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=od(this.__b,n,r.__O=r.__P)}this.__b=null}var o=e.__a&&w(Ae,null,t.fallback);return o&&(o.__h=null),[w(Ae,null,e.__a?null:t.children),o]};var Pl=function(t,e,n){if(++n[1]===n[0]&&t.o.delete(e),t.props.revealOrder&&(t.props.revealOrder[0]!=="t"||!t.o.size))for(n=t.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;t.u=n=n[2]}};function TE(t){return this.getChildContext=function(){return t.context},t.children}function AE(t){var e=this,n=t.i;e.componentWillUnmount=function(){pr(null,e.l),e.l=null,e.i=null},e.i&&e.i!==n&&e.componentWillUnmount(),t.__v?(e.l||(e.i=n,e.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(r){this.childNodes.push(r),e.i.appendChild(r)},insertBefore:function(r,o){this.childNodes.push(r),e.i.appendChild(r)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),e.i.removeChild(r)}}),pr(w(TE,{context:e.context},t.__v),e.l)):e.l&&e.componentWillUnmount()}function RE(t,e){var n=w(AE,{__v:t,i:e});return n.containerInfo=e,n}(kr.prototype=new Ze).__a=function(t){var e=this,n=sd(e.__v),r=e.o.get(t);return r[0]++,function(o){var i=function(){e.props.revealOrder?(r.push(o),Pl(e,t,r)):o()};n?n(i):i()}},kr.prototype.render=function(t){this.u=null,this.o=new Map;var e=lo(t.children);t.revealOrder&&t.revealOrder[0]==="b"&&e.reverse();for(var n=e.length;n--;)this.o.set(e[n],this.u=[1,0,this.u]);return t.children},kr.prototype.componentDidUpdate=kr.prototype.componentDidMount=function(){var t=this;this.o.forEach(function(e,n){Pl(t,n,e)})};var _E=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,kE=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,ME=typeof document<"u",OE=function(t){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(t)};Ze.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(Ze.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})});var Nl=ae.event;function IE(){}function PE(){return this.cancelBubble}function NE(){return this.defaultPrevented}ae.event=function(t){return Nl&&(t=Nl(t)),t.persist=IE,t.isPropagationStopped=PE,t.isDefaultPrevented=NE,t.nativeEvent=t};var jl={configurable:!0,get:function(){return this.class}},Vl=ae.vnode;ae.vnode=function(t){var e=t.type,n=t.props,r=n;if(typeof e=="string"){var o=e.indexOf("-")===-1;for(var i in r={},n){var s=n[i];ME&&i==="children"&&e==="noscript"||i==="value"&&"defaultValue"in n&&s==null||(i==="defaultValue"&&"value"in n&&n.value==null?i="value":i==="download"&&s===!0?s="":/ondoubleclick/i.test(i)?i="ondblclick":/^onchange(textarea|input)/i.test(i+e)&&!OE(n.type)?i="oninput":/^onfocus$/i.test(i)?i="onfocusin":/^onblur$/i.test(i)?i="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(i)?i=i.toLowerCase():o&&kE.test(i)?i=i.replace(/[A-Z0-9]/g,"-$&").toLowerCase():s===null&&(s=void 0),/^oninput$/i.test(i)&&(i=i.toLowerCase(),r[i]&&(i="oninputCapture")),r[i]=s)}e=="select"&&r.multiple&&Array.isArray(r.value)&&(r.value=lo(n.children).forEach(function(a){a.props.selected=r.value.indexOf(a.props.value)!=-1})),e=="select"&&r.defaultValue!=null&&(r.value=lo(n.children).forEach(function(a){a.props.selected=r.multiple?r.defaultValue.indexOf(a.props.value)!=-1:r.defaultValue==a.props.value})),t.props=r,n.class!=n.className&&(jl.enumerable="className"in n,n.className!=null&&(r.class=n.className),Object.defineProperty(r,"className",jl))}t.$$typeof=_E,Vl&&Vl(t)};var $l=ae.__r;ae.__r=function(t){$l&&$l(t),t.__c};const ad=[],qi=new Map;function ks(t){ad.push(t),qi.forEach(e=>{cd(e,t)})}function jE(t){t.isConnected&&t.getRootNode&&ld(t.getRootNode())}function ld(t){let e=qi.get(t);if(!e||!e.isConnected){if(e=t.querySelector("style[data-fullcalendar]"),!e){e=document.createElement("style"),e.setAttribute("data-fullcalendar","");const n=$E();n&&(e.nonce=n);const r=t===document?document.head:t,o=t===document?r.querySelector("script,link[rel=stylesheet],link[as=style],style"):r.firstChild;r.insertBefore(e,o)}qi.set(t,e),VE(e)}}function VE(t){for(const e of ad)cd(t,e)}function cd(t,e){const{sheet:n}=t,r=n.cssRules.length;e.split("}").forEach((o,i)=>{o=o.trim(),o&&n.insertRule(o+"}",r+i)})}let vi;function $E(){return vi===void 0&&(vi=BE()),vi}function BE(){const t=document.querySelector('meta[name="csp-nonce"]');if(t&&t.hasAttribute("content"))return t.getAttribute("content");const e=document.querySelector("script[nonce]");return e&&e.nonce||""}typeof document<"u"&&ld(document);var LE=':root{--fc-small-font-size:.85em;--fc-page-bg-color:#fff;--fc-neutral-bg-color:hsla(0,0%,82%,.3);--fc-neutral-text-color:grey;--fc-border-color:#ddd;--fc-button-text-color:#fff;--fc-button-bg-color:#2c3e50;--fc-button-border-color:#2c3e50;--fc-button-hover-bg-color:#1e2b37;--fc-button-hover-border-color:#1a252f;--fc-button-active-bg-color:#1a252f;--fc-button-active-border-color:#151e27;--fc-event-bg-color:#3788d8;--fc-event-border-color:#3788d8;--fc-event-text-color:#fff;--fc-event-selected-overlay-color:rgba(0,0,0,.25);--fc-more-link-bg-color:#d0d0d0;--fc-more-link-text-color:inherit;--fc-event-resizer-thickness:8px;--fc-event-resizer-dot-total-width:8px;--fc-event-resizer-dot-border-width:1px;--fc-non-business-color:hsla(0,0%,84%,.3);--fc-bg-event-color:#8fdf82;--fc-bg-event-opacity:0.3;--fc-highlight-color:rgba(188,232,241,.3);--fc-today-bg-color:rgba(255,220,40,.15);--fc-now-indicator-color:red}.fc-not-allowed,.fc-not-allowed .fc-event{cursor:not-allowed}.fc{display:flex;flex-direction:column;font-size:1em}.fc,.fc *,.fc :after,.fc :before{box-sizing:border-box}.fc table{border-collapse:collapse;border-spacing:0;font-size:1em}.fc th{text-align:center}.fc td,.fc th{padding:0;vertical-align:top}.fc a[data-navlink]{cursor:pointer}.fc a[data-navlink]:hover{text-decoration:underline}.fc-direction-ltr{direction:ltr;text-align:left}.fc-direction-rtl{direction:rtl;text-align:right}.fc-theme-standard td,.fc-theme-standard th{border:1px solid var(--fc-border-color)}.fc-liquid-hack td,.fc-liquid-hack th{position:relative}@font-face{font-family:fcicons;font-style:normal;font-weight:400;src:url("data:application/x-font-ttf;charset=utf-8;base64,AAEAAAALAIAAAwAwT1MvMg8SBfAAAAC8AAAAYGNtYXAXVtKNAAABHAAAAFRnYXNwAAAAEAAAAXAAAAAIZ2x5ZgYydxIAAAF4AAAFNGhlYWQUJ7cIAAAGrAAAADZoaGVhB20DzAAABuQAAAAkaG10eCIABhQAAAcIAAAALGxvY2ED4AU6AAAHNAAAABhtYXhwAA8AjAAAB0wAAAAgbmFtZXsr690AAAdsAAABhnBvc3QAAwAAAAAI9AAAACAAAwPAAZAABQAAApkCzAAAAI8CmQLMAAAB6wAzAQkAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAAAAAAAAAAAAABAAADpBgPA/8AAQAPAAEAAAAABAAAAAAAAAAAAAAAgAAAAAAADAAAAAwAAABwAAQADAAAAHAADAAEAAAAcAAQAOAAAAAoACAACAAIAAQAg6Qb//f//AAAAAAAg6QD//f//AAH/4xcEAAMAAQAAAAAAAAAAAAAAAQAB//8ADwABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAABAWIAjQKeAskAEwAAJSc3NjQnJiIHAQYUFwEWMjc2NCcCnuLiDQ0MJAz/AA0NAQAMJAwNDcni4gwjDQwM/wANIwz/AA0NDCMNAAAAAQFiAI0CngLJABMAACUBNjQnASYiBwYUHwEHBhQXFjI3AZ4BAA0N/wAMJAwNDeLiDQ0MJAyNAQAMIw0BAAwMDSMM4uINIwwNDQAAAAIA4gC3Ax4CngATACcAACUnNzY0JyYiDwEGFB8BFjI3NjQnISc3NjQnJiIPAQYUHwEWMjc2NCcB87e3DQ0MIw3VDQ3VDSMMDQ0BK7e3DQ0MJAzVDQ3VDCQMDQ3zuLcMJAwNDdUNIwzWDAwNIwy4twwkDA0N1Q0jDNYMDA0jDAAAAgDiALcDHgKeABMAJwAAJTc2NC8BJiIHBhQfAQcGFBcWMjchNzY0LwEmIgcGFB8BBwYUFxYyNwJJ1Q0N1Q0jDA0Nt7cNDQwjDf7V1Q0N1QwkDA0Nt7cNDQwkDLfWDCMN1Q0NDCQMt7gMIw0MDNYMIw3VDQ0MJAy3uAwjDQwMAAADAFUAAAOrA1UAMwBoAHcAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMhMjY1NCYjISIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAAVYRGRkR/qoRGRkRA1UFBAUOCQkVDAsZDf2rDRkLDBUJCA4FBQUFBQUOCQgVDAsZDQJVDRkLDBUJCQ4FBAVVAgECBQMCBwQECAX9qwQJAwQHAwMFAQICAgIBBQMDBwQDCQQCVQUIBAQHAgMFAgEC/oAZEhEZGRESGQAAAAADAFUAAAOrA1UAMwBoAIkAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMzFRQWMzI2PQEzMjY1NCYrATU0JiMiBh0BIyIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAgBkSEhmAERkZEYAZEhIZgBEZGREDVQUEBQ4JCRUMCxkN/asNGQsMFQkIDgUFBQUFBQ4JCBUMCxkNAlUNGQsMFQkJDgUEBVUCAQIFAwIHBAQIBf2rBAkDBAcDAwUBAgICAgEFAwMHBAMJBAJVBQgEBAcCAwUCAQL+gIASGRkSgBkSERmAEhkZEoAZERIZAAABAOIAjQMeAskAIAAAExcHBhQXFjI/ARcWMjc2NC8BNzY0JyYiDwEnJiIHBhQX4uLiDQ0MJAzi4gwkDA0N4uINDQwkDOLiDCQMDQ0CjeLiDSMMDQ3h4Q0NDCMN4uIMIw0MDOLiDAwNIwwAAAABAAAAAQAAa5n0y18PPPUACwQAAAAAANivOVsAAAAA2K85WwAAAAADqwNVAAAACAACAAAAAAAAAAEAAAPA/8AAAAQAAAAAAAOrAAEAAAAAAAAAAAAAAAAAAAALBAAAAAAAAAAAAAAAAgAAAAQAAWIEAAFiBAAA4gQAAOIEAABVBAAAVQQAAOIAAAAAAAoAFAAeAEQAagCqAOoBngJkApoAAQAAAAsAigADAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAA4ArgABAAAAAAABAAcAAAABAAAAAAACAAcAYAABAAAAAAADAAcANgABAAAAAAAEAAcAdQABAAAAAAAFAAsAFQABAAAAAAAGAAcASwABAAAAAAAKABoAigADAAEECQABAA4ABwADAAEECQACAA4AZwADAAEECQADAA4APQADAAEECQAEAA4AfAADAAEECQAFABYAIAADAAEECQAGAA4AUgADAAEECQAKADQApGZjaWNvbnMAZgBjAGkAYwBvAG4Ac1ZlcnNpb24gMS4wAFYAZQByAHMAaQBvAG4AIAAxAC4AMGZjaWNvbnMAZgBjAGkAYwBvAG4Ac2ZjaWNvbnMAZgBjAGkAYwBvAG4Ac1JlZ3VsYXIAUgBlAGcAdQBsAGEAcmZjaWNvbnMAZgBjAGkAYwBvAG4Ac0ZvbnQgZ2VuZXJhdGVkIGJ5IEljb01vb24uAEYAbwBuAHQAIABnAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAEkAYwBvAE0AbwBvAG4ALgAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=") format("truetype")}.fc-icon{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:inline-block;font-family:fcicons!important;font-style:normal;font-variant:normal;font-weight:400;height:1em;line-height:1;text-align:center;text-transform:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:1em}.fc-icon-chevron-left:before{content:"\\e900"}.fc-icon-chevron-right:before{content:"\\e901"}.fc-icon-chevrons-left:before{content:"\\e902"}.fc-icon-chevrons-right:before{content:"\\e903"}.fc-icon-minus-square:before{content:"\\e904"}.fc-icon-plus-square:before{content:"\\e905"}.fc-icon-x:before{content:"\\e906"}.fc .fc-button{border-radius:0;font-family:inherit;font-size:inherit;line-height:inherit;margin:0;overflow:visible;text-transform:none}.fc .fc-button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}.fc .fc-button{-webkit-appearance:button}.fc .fc-button:not(:disabled){cursor:pointer}.fc .fc-button{background-color:transparent;border:1px solid transparent;border-radius:.25em;display:inline-block;font-size:1em;font-weight:400;line-height:1.5;padding:.4em .65em;text-align:center;-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle}.fc .fc-button:hover{text-decoration:none}.fc .fc-button:focus{box-shadow:0 0 0 .2rem rgba(44,62,80,.25);outline:0}.fc .fc-button:disabled{opacity:.65}.fc .fc-button-primary{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:hover{background-color:var(--fc-button-hover-bg-color);border-color:var(--fc-button-hover-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:disabled{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button-primary:not(:disabled).fc-button-active,.fc .fc-button-primary:not(:disabled):active{background-color:var(--fc-button-active-bg-color);border-color:var(--fc-button-active-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:not(:disabled).fc-button-active:focus,.fc .fc-button-primary:not(:disabled):active:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button .fc-icon{font-size:1.5em;vertical-align:middle}.fc .fc-button-group{display:inline-flex;position:relative;vertical-align:middle}.fc .fc-button-group>.fc-button{flex:1 1 auto;position:relative}.fc .fc-button-group>.fc-button.fc-button-active,.fc .fc-button-group>.fc-button:active,.fc .fc-button-group>.fc-button:focus,.fc .fc-button-group>.fc-button:hover{z-index:1}.fc-direction-ltr .fc-button-group>.fc-button:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0;margin-left:-1px}.fc-direction-ltr .fc-button-group>.fc-button:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0}.fc-direction-rtl .fc-button-group>.fc-button:not(:first-child){border-bottom-right-radius:0;border-top-right-radius:0;margin-right:-1px}.fc-direction-rtl .fc-button-group>.fc-button:not(:last-child){border-bottom-left-radius:0;border-top-left-radius:0}.fc .fc-toolbar{align-items:center;display:flex;justify-content:space-between}.fc .fc-toolbar.fc-header-toolbar{margin-bottom:1.5em}.fc .fc-toolbar.fc-footer-toolbar{margin-top:1.5em}.fc .fc-toolbar-title{font-size:1.75em;margin:0}.fc-direction-ltr .fc-toolbar>*>:not(:first-child){margin-left:.75em}.fc-direction-rtl .fc-toolbar>*>:not(:first-child){margin-right:.75em}.fc-direction-rtl .fc-toolbar-ltr{flex-direction:row-reverse}.fc .fc-scroller{-webkit-overflow-scrolling:touch;position:relative}.fc .fc-scroller-liquid{height:100%}.fc .fc-scroller-liquid-absolute{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-scroller-harness{direction:ltr;overflow:hidden;position:relative}.fc .fc-scroller-harness-liquid{height:100%}.fc-direction-rtl .fc-scroller-harness>.fc-scroller{direction:rtl}.fc-theme-standard .fc-scrollgrid{border:1px solid var(--fc-border-color)}.fc .fc-scrollgrid,.fc .fc-scrollgrid table{table-layout:fixed;width:100%}.fc .fc-scrollgrid table{border-left-style:hidden;border-right-style:hidden;border-top-style:hidden}.fc .fc-scrollgrid{border-bottom-width:0;border-collapse:separate;border-right-width:0}.fc .fc-scrollgrid-liquid{height:100%}.fc .fc-scrollgrid-section,.fc .fc-scrollgrid-section table,.fc .fc-scrollgrid-section>td{height:1px}.fc .fc-scrollgrid-section-liquid>td{height:100%}.fc .fc-scrollgrid-section>*{border-left-width:0;border-top-width:0}.fc .fc-scrollgrid-section-footer>*,.fc .fc-scrollgrid-section-header>*{border-bottom-width:0}.fc .fc-scrollgrid-section-body table,.fc .fc-scrollgrid-section-footer table{border-bottom-style:hidden}.fc .fc-scrollgrid-section-sticky>*{background:var(--fc-page-bg-color);position:sticky;z-index:3}.fc .fc-scrollgrid-section-header.fc-scrollgrid-section-sticky>*{top:0}.fc .fc-scrollgrid-section-footer.fc-scrollgrid-section-sticky>*{bottom:0}.fc .fc-scrollgrid-sticky-shim{height:1px;margin-bottom:-1px}.fc-sticky{position:sticky}.fc .fc-view-harness{flex-grow:1;position:relative}.fc .fc-view-harness-active>.fc-view{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-col-header-cell-cushion{display:inline-block;padding:2px 4px}.fc .fc-bg-event,.fc .fc-highlight,.fc .fc-non-business{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-non-business{background:var(--fc-non-business-color)}.fc .fc-bg-event{background:var(--fc-bg-event-color);opacity:var(--fc-bg-event-opacity)}.fc .fc-bg-event .fc-event-title{font-size:var(--fc-small-font-size);font-style:italic;margin:.5em}.fc .fc-highlight{background:var(--fc-highlight-color)}.fc .fc-cell-shaded,.fc .fc-day-disabled{background:var(--fc-neutral-bg-color)}a.fc-event,a.fc-event:hover{text-decoration:none}.fc-event.fc-event-draggable,.fc-event[href]{cursor:pointer}.fc-event .fc-event-main{position:relative;z-index:2}.fc-event-dragging:not(.fc-event-selected){opacity:.75}.fc-event-dragging.fc-event-selected{box-shadow:0 2px 7px rgba(0,0,0,.3)}.fc-event .fc-event-resizer{display:none;position:absolute;z-index:4}.fc-event-selected .fc-event-resizer,.fc-event:hover .fc-event-resizer{display:block}.fc-event-selected .fc-event-resizer{background:var(--fc-page-bg-color);border-color:inherit;border-radius:calc(var(--fc-event-resizer-dot-total-width)/2);border-style:solid;border-width:var(--fc-event-resizer-dot-border-width);height:var(--fc-event-resizer-dot-total-width);width:var(--fc-event-resizer-dot-total-width)}.fc-event-selected .fc-event-resizer:before{bottom:-20px;content:"";left:-20px;position:absolute;right:-20px;top:-20px}.fc-event-selected,.fc-event:focus{box-shadow:0 2px 5px rgba(0,0,0,.2)}.fc-event-selected:before,.fc-event:focus:before{bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:3}.fc-event-selected:after,.fc-event:focus:after{background:var(--fc-event-selected-overlay-color);bottom:-1px;content:"";left:-1px;position:absolute;right:-1px;top:-1px;z-index:1}.fc-h-event{background-color:var(--fc-event-bg-color);border:1px solid var(--fc-event-border-color);display:block}.fc-h-event .fc-event-main{color:var(--fc-event-text-color)}.fc-h-event .fc-event-main-frame{display:flex}.fc-h-event .fc-event-time{max-width:100%;overflow:hidden}.fc-h-event .fc-event-title-container{flex-grow:1;flex-shrink:1;min-width:0}.fc-h-event .fc-event-title{display:inline-block;left:0;max-width:100%;overflow:hidden;right:0;vertical-align:top}.fc-h-event.fc-event-selected:before{bottom:-10px;top:-10px}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-start),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-end){border-bottom-left-radius:0;border-left-width:0;border-top-left-radius:0}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-end),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-start){border-bottom-right-radius:0;border-right-width:0;border-top-right-radius:0}.fc-h-event:not(.fc-event-selected) .fc-event-resizer{bottom:0;top:0;width:var(--fc-event-resizer-thickness)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end{cursor:w-resize;left:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start{cursor:e-resize;right:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-h-event.fc-event-selected .fc-event-resizer{margin-top:calc(var(--fc-event-resizer-dot-total-width)*-.5);top:50%}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-start,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-end{left:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-end,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-start{right:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc .fc-popover{box-shadow:0 2px 6px rgba(0,0,0,.15);position:absolute;z-index:9999}.fc .fc-popover-header{align-items:center;display:flex;flex-direction:row;justify-content:space-between;padding:3px 4px}.fc .fc-popover-title{margin:0 2px}.fc .fc-popover-close{cursor:pointer;font-size:1.1em;opacity:.65}.fc-theme-standard .fc-popover{background:var(--fc-page-bg-color);border:1px solid var(--fc-border-color)}.fc-theme-standard .fc-popover-header{background:var(--fc-neutral-bg-color)}';ks(LE);class Ms{constructor(e){this.drainedOption=e,this.isRunning=!1,this.isDirty=!1,this.pauseDepths={},this.timeoutId=0}request(e){this.isDirty=!0,this.isPaused()||(this.clearTimeout(),e==null?this.tryDrain():this.timeoutId=setTimeout(this.tryDrain.bind(this),e))}pause(e=""){let{pauseDepths:n}=this;n[e]=(n[e]||0)+1,this.clearTimeout()}resume(e="",n){let{pauseDepths:r}=this;e in r&&(n?delete r[e]:(r[e]-=1,r[e]<=0&&delete r[e]),this.tryDrain())}isPaused(){return Object.keys(this.pauseDepths).length}tryDrain(){if(!this.isRunning&&!this.isPaused()){for(this.isRunning=!0;this.isDirty;)this.isDirty=!1,this.drained();this.isRunning=!1}}clear(){this.clearTimeout(),this.isDirty=!1,this.pauseDepths={}}clearTimeout(){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=0)}drained(){this.drainedOption&&this.drainedOption()}}function Os(t){t.parentNode&&t.parentNode.removeChild(t)}function He(t,e){if(t.closest)return t.closest(e);if(!document.documentElement.contains(t))return null;do{if(HE(t,e))return t;t=t.parentElement||t.parentNode}while(t!==null&&t.nodeType===1);return null}function HE(t,e){return(t.matches||t.matchesSelector||t.msMatchesSelector).call(t,e)}function zE(t,e){let n=t instanceof HTMLElement?[t]:t,r=[];for(let o=0;o<n.length;o+=1){let i=n[o].querySelectorAll(e);for(let s=0;s<i.length;s+=1)r.push(i[s])}return r}const FE=/(top|left|right|bottom|width|height)$/i;function sr(t,e){for(let n in e)ud(t,n,e[n])}function ud(t,e,n){n==null?t.style[e]="":typeof n=="number"&&FE.test(e)?t.style[e]=`${n}px`:t.style[e]=n}function dd(t){var e,n;return(n=(e=t.composedPath)===null||e===void 0?void 0:e.call(t)[0])!==null&&n!==void 0?n:t.target}let Bl=0;function zo(){return Bl+=1,"fc-dom-"+Bl}function Fo(t){t.preventDefault()}function WE(t,e){return n=>{let r=He(n.target,t);r&&e.call(r,n,r)}}function fd(t,e,n,r){let o=WE(n,r);return t.addEventListener(e,o),()=>{t.removeEventListener(e,o)}}function UE(t,e,n,r){let o;return fd(t,"mouseover",e,(i,s)=>{if(s!==o){o=s,n(i,s);let a=l=>{o=null,r(l,s),s.removeEventListener("mouseleave",a)};s.addEventListener("mouseleave",a)}})}const Ll=["webkitTransitionEnd","otransitionend","oTransitionEnd","msTransitionEnd","transitionend"];function GE(t,e){let n=r=>{e(r),Ll.forEach(o=>{t.removeEventListener(o,n)})};Ll.forEach(r=>{t.addEventListener(r,n)})}function pd(t){return Object.assign({onClick:t},hd(t))}function hd(t){return{tabIndex:0,onKeyDown(e){(e.key==="Enter"||e.key===" ")&&(t(e),e.preventDefault())}}}let Hl=0;function hn(){return Hl+=1,String(Hl)}function Is(){document.body.classList.add("fc-not-allowed")}function Ps(){document.body.classList.remove("fc-not-allowed")}function YE(t){t.style.userSelect="none",t.style.webkitUserSelect="none",t.addEventListener("selectstart",Fo)}function qE(t){t.style.userSelect="",t.style.webkitUserSelect="",t.removeEventListener("selectstart",Fo)}function QE(t){t.addEventListener("contextmenu",Fo)}function ZE(t){t.removeEventListener("contextmenu",Fo)}function KE(t){let e=[],n=[],r,o;for(typeof t=="string"?n=t.split(/\s*,\s*/):typeof t=="function"?n=[t]:Array.isArray(t)&&(n=t),r=0;r<n.length;r+=1)o=n[r],typeof o=="string"?e.push(o.charAt(0)==="-"?{field:o.substring(1),order:-1}:{field:o,order:1}):typeof o=="function"&&e.push({func:o});return e}function XE(t,e,n){let r,o;for(r=0;r<n.length;r+=1)if(o=JE(t,e,n[r]),o)return o;return 0}function JE(t,e,n){return n.func?n.func(t,e):eS(t[n.field],e[n.field])*(n.order||1)}function eS(t,e){return!t&&!e?0:e==null?-1:t==null?1:typeof t=="string"||typeof e=="string"?String(t).localeCompare(String(e)):t-e}function kn(t,e){let n=String(t);return"000".substr(0,e-n.length)+n}function ar(t,e,n){return typeof t=="function"?t(...e):typeof t=="string"?e.reduce((r,o,i)=>r.replace("$"+i,o||""),t):n}function tS(t,e){return t-e}function Wr(t){return t%1===0}function nS(t){let e=t.querySelector(".fc-scrollgrid-shrink-frame"),n=t.querySelector(".fc-scrollgrid-shrink-cushion");if(!e)throw new Error("needs fc-scrollgrid-shrink-frame className");if(!n)throw new Error("needs fc-scrollgrid-shrink-cushion className");return t.getBoundingClientRect().width-e.getBoundingClientRect().width+n.getBoundingClientRect().width}const zl=["years","months","days","milliseconds"],rS=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function ve(t,e){return typeof t=="string"?oS(t):typeof t=="object"&&t?Fl(t):typeof t=="number"?Fl({[e||"milliseconds"]:t}):null}function oS(t){let e=rS.exec(t);if(e){let n=e[1]?-1:1;return{years:0,months:0,days:n*(e[2]?parseInt(e[2],10):0),milliseconds:n*((e[3]?parseInt(e[3],10):0)*60*60*1e3+(e[4]?parseInt(e[4],10):0)*60*1e3+(e[5]?parseInt(e[5],10):0)*1e3+(e[6]?parseInt(e[6],10):0))}}return null}function Fl(t){let e={years:t.years||t.year||0,months:t.months||t.month||0,days:t.days||t.day||0,milliseconds:(t.hours||t.hour||0)*60*60*1e3+(t.minutes||t.minute||0)*60*1e3+(t.seconds||t.second||0)*1e3+(t.milliseconds||t.millisecond||t.ms||0)},n=t.weeks||t.week;return n&&(e.days+=n*7,e.specifiedWeeks=!0),e}function iS(t,e){return t.years===e.years&&t.months===e.months&&t.days===e.days&&t.milliseconds===e.milliseconds}function Qi(t,e){return{years:t.years+e.years,months:t.months+e.months,days:t.days+e.days,milliseconds:t.milliseconds+e.milliseconds}}function sS(t,e){return{years:t.years-e.years,months:t.months-e.months,days:t.days-e.days,milliseconds:t.milliseconds-e.milliseconds}}function aS(t,e){return{years:t.years*e,months:t.months*e,days:t.days*e,milliseconds:t.milliseconds*e}}function lS(t){return Mn(t)/365}function cS(t){return Mn(t)/30}function Mn(t){return at(t)/864e5}function at(t){return t.years*(365*864e5)+t.months*(30*864e5)+t.days*864e5+t.milliseconds}function Ns(t,e){let n=null;for(let r=0;r<zl.length;r+=1){let o=zl[r];if(e[o]){let i=t[o]/e[o];if(!Wr(i)||n!==null&&n!==i)return null;n=i}else if(t[o])return null}return n}function Zi(t){let e=t.milliseconds;if(e){if(e%1e3!==0)return{unit:"millisecond",value:e};if(e%(1e3*60)!==0)return{unit:"second",value:e/1e3};if(e%(1e3*60*60)!==0)return{unit:"minute",value:e/(1e3*60)};if(e)return{unit:"hour",value:e/(1e3*60*60)}}return t.days?t.specifiedWeeks&&t.days%7===0?{unit:"week",value:t.days/7}:{unit:"day",value:t.days}:t.months?{unit:"month",value:t.months}:t.years?{unit:"year",value:t.years}:{unit:"millisecond",value:0}}function Lt(t,e,n){if(t===e)return!0;let r=t.length,o;if(r!==e.length)return!1;for(o=0;o<r;o+=1)if(!(n?n(t[o],e[o]):t[o]===e[o]))return!1;return!0}const uS=["sun","mon","tue","wed","thu","fri","sat"];function Wl(t,e){let n=Pt(t);return n[2]+=e*7,Ge(n)}function Be(t,e){let n=Pt(t);return n[2]+=e,Ge(n)}function Ht(t,e){let n=Pt(t);return n[6]+=e,Ge(n)}function dS(t,e){return gn(t,e)/7}function gn(t,e){return(e.valueOf()-t.valueOf())/(1e3*60*60*24)}function fS(t,e){return(e.valueOf()-t.valueOf())/(1e3*60*60)}function pS(t,e){return(e.valueOf()-t.valueOf())/(1e3*60)}function hS(t,e){return(e.valueOf()-t.valueOf())/1e3}function gS(t,e){let n=Re(t),r=Re(e);return{years:0,months:0,days:Math.round(gn(n,r)),milliseconds:e.valueOf()-r.valueOf()-(t.valueOf()-n.valueOf())}}function mS(t,e){let n=co(t,e);return n!==null&&n%7===0?n/7:null}function co(t,e){return Nt(t)===Nt(e)?Math.round(gn(t,e)):null}function Re(t){return Ge([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()])}function vS(t){return Ge([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours()])}function yS(t){return Ge([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes()])}function bS(t){return Ge([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds()])}function ES(t,e,n){let r=t.getUTCFullYear(),o=yi(t,r,e,n);if(o<1)return yi(t,r-1,e,n);let i=yi(t,r+1,e,n);return i>=1?Math.min(o,i):o}function yi(t,e,n,r){let o=Ge([e,0,1+SS(e,n,r)]),i=Re(t),s=Math.round(gn(o,i));return Math.floor(s/7)+1}function SS(t,e,n){let r=7+e-n;return-((7+Ge([t,0,r]).getUTCDay()-e)%7)+r-1}function Ul(t){return[t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()]}function Gl(t){return new Date(t[0],t[1]||0,t[2]==null?1:t[2],t[3]||0,t[4]||0,t[5]||0)}function Pt(t){return[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()]}function Ge(t){return t.length===1&&(t=t.concat([0])),new Date(Date.UTC(...t))}function gd(t){return!isNaN(t.valueOf())}function Nt(t){return t.getUTCHours()*1e3*60*60+t.getUTCMinutes()*1e3*60+t.getUTCSeconds()*1e3+t.getUTCMilliseconds()}function md(t,e,n=!1){let r=t.toISOString();return r=r.replace(".000",""),n&&(r=r.replace("T00:00:00Z","")),r.length>10&&(e==null?r=r.replace("Z",""):e!==0&&(r=r.replace("Z",Vs(e,!0)))),r}function js(t){return t.toISOString().replace(/T.*$/,"")}function CS(t){return t.toISOString().match(/^\d{4}-\d{2}/)[0]}function wS(t){return kn(t.getUTCHours(),2)+":"+kn(t.getUTCMinutes(),2)+":"+kn(t.getUTCSeconds(),2)}function Vs(t,e=!1){let n=t<0?"-":"+",r=Math.abs(t),o=Math.floor(r/60),i=Math.round(r%60);return e?`${n+kn(o,2)}:${kn(i,2)}`:`GMT${n}${o}${i?`:${kn(i,2)}`:""}`}function le(t,e,n){let r,o;return function(...i){if(!r)o=t.apply(this,i);else if(!Lt(r,i)){let s=t.apply(this,i);(!e||!e(s,o))&&(o=s)}return r=i,o}}function Ur(t,e,n){let r,o;return i=>(r?lt(r,i)||(o=t.call(this,i)):o=t.call(this,i),r=i,o)}const bi={week:3,separator:9,omitZeroMinute:9,meridiem:9,omitCommas:9},uo={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},Mr=/\s*([ap])\.?m\.?/i,xS=/,/g,DS=/\s+/g,TS=/\u200e/g,AS=/UTC|GMT/;class RS{constructor(e){let n={},r={},o=9;for(let i in e)i in bi?(r[i]=e[i],bi[i]<9&&(o=Math.min(bi[i],o))):(n[i]=e[i],i in uo&&(o=Math.min(uo[i],o)));this.standardDateProps=n,this.extendedSettings=r,this.smallestUnitNum=o,this.buildFormattingFunc=le(Yl)}format(e,n){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,n)(e)}formatRange(e,n,r,o){let{standardDateProps:i,extendedSettings:s}=this,a=PS(e.marker,n.marker,r.calendarSystem);if(!a)return this.format(e,r);let l=a;l>1&&(i.year==="numeric"||i.year==="2-digit")&&(i.month==="numeric"||i.month==="2-digit")&&(i.day==="numeric"||i.day==="2-digit")&&(l=1);let c=this.format(e,r),u=this.format(n,r);if(c===u)return c;let f=NS(i,l),p=Yl(f,s,r),h=p(e),m=p(n),g=jS(c,h,u,m),v=s.separator||o||r.defaultSeparator||"";return g?g.before+h+v+m+g.after:c+v+u}getSmallestUnit(){switch(this.smallestUnitNum){case 7:case 6:case 5:return"year";case 4:return"month";case 3:return"week";case 2:return"day";default:return"time"}}}function Yl(t,e,n){let r=Object.keys(t).length;return r===1&&t.timeZoneName==="short"?o=>Vs(o.timeZoneOffset):r===0&&e.week?o=>IS(n.computeWeekNumber(o.marker),n.weekText,n.weekTextLong,n.locale,e.week):_S(t,e,n)}function _S(t,e,n){t=Object.assign({},t),e=Object.assign({},e),kS(t,e),t.timeZone="UTC";let r=new Intl.DateTimeFormat(n.locale.codes,t),o;if(e.omitZeroMinute){let i=Object.assign({},t);delete i.minute,o=new Intl.DateTimeFormat(n.locale.codes,i)}return i=>{let{marker:s}=i,a;o&&!s.getUTCMinutes()?a=o:a=r;let l=a.format(s);return MS(l,i,t,e,n)}}function kS(t,e){t.timeZoneName&&(t.hour||(t.hour="2-digit"),t.minute||(t.minute="2-digit")),t.timeZoneName==="long"&&(t.timeZoneName="short"),e.omitZeroMinute&&(t.second||t.millisecond)&&delete e.omitZeroMinute}function MS(t,e,n,r,o){return t=t.replace(TS,""),n.timeZoneName==="short"&&(t=OS(t,o.timeZone==="UTC"||e.timeZoneOffset==null?"UTC":Vs(e.timeZoneOffset))),r.omitCommas&&(t=t.replace(xS,"").trim()),r.omitZeroMinute&&(t=t.replace(":00","")),r.meridiem===!1?t=t.replace(Mr,"").trim():r.meridiem==="narrow"?t=t.replace(Mr,(i,s)=>s.toLocaleLowerCase()):r.meridiem==="short"?t=t.replace(Mr,(i,s)=>`${s.toLocaleLowerCase()}m`):r.meridiem==="lowercase"&&(t=t.replace(Mr,i=>i.toLocaleLowerCase())),t=t.replace(DS," "),t=t.trim(),t}function OS(t,e){let n=!1;return t=t.replace(AS,()=>(n=!0,e)),n||(t+=` ${e}`),t}function IS(t,e,n,r,o){let i=[];return o==="long"?i.push(n):(o==="short"||o==="narrow")&&i.push(e),(o==="long"||o==="short")&&i.push(" "),i.push(r.simpleNumberFormat.format(t)),r.options.direction==="rtl"&&i.reverse(),i.join("")}function PS(t,e,n){return n.getMarkerYear(t)!==n.getMarkerYear(e)?5:n.getMarkerMonth(t)!==n.getMarkerMonth(e)?4:n.getMarkerDay(t)!==n.getMarkerDay(e)?2:Nt(t)!==Nt(e)?1:0}function NS(t,e){let n={};for(let r in t)(!(r in uo)||uo[r]<=e)&&(n[r]=t[r]);return n}function jS(t,e,n,r){let o=0;for(;o<t.length;){let i=t.indexOf(e,o);if(i===-1)break;let s=t.substr(0,i);o=i+e.length;let a=t.substr(o),l=0;for(;l<n.length;){let c=n.indexOf(r,l);if(c===-1)break;let u=n.substr(0,c);l=c+r.length;let f=n.substr(l);if(s===u&&a===f)return{before:s,after:a}}}return null}function ql(t,e){let n=e.markerToArray(t.marker);return{marker:t.marker,timeZoneOffset:t.timeZoneOffset,array:n,year:n[0],month:n[1],day:n[2],hour:n[3],minute:n[4],second:n[5],millisecond:n[6]}}function fo(t,e,n,r){let o=ql(t,n.calendarSystem),i=e?ql(e,n.calendarSystem):null;return{date:o,start:o,end:i,timeZone:n.timeZone,localeCodes:n.locale.codes,defaultSeparator:r||n.defaultSeparator}}class VS{constructor(e){this.cmdStr=e}format(e,n,r){return n.cmdFormatter(this.cmdStr,fo(e,null,n,r))}formatRange(e,n,r,o){return r.cmdFormatter(this.cmdStr,fo(e,n,r,o))}}class $S{constructor(e){this.func=e}format(e,n,r){return this.func(fo(e,null,n,r))}formatRange(e,n,r,o){return this.func(fo(e,n,r,o))}}function Ie(t){return typeof t=="object"&&t?new RS(t):typeof t=="string"?new VS(t):typeof t=="function"?new $S(t):null}const Ql={navLinkDayClick:M,navLinkWeekClick:M,duration:ve,bootstrapFontAwesome:M,buttonIcons:M,customButtons:M,defaultAllDayEventDuration:ve,defaultTimedEventDuration:ve,nextDayThreshold:ve,scrollTime:ve,scrollTimeReset:Boolean,slotMinTime:ve,slotMaxTime:ve,dayPopoverFormat:Ie,slotDuration:ve,snapDuration:ve,headerToolbar:M,footerToolbar:M,defaultRangeSeparator:String,titleRangeSeparator:String,forceEventDuration:Boolean,dayHeaders:Boolean,dayHeaderFormat:Ie,dayHeaderClassNames:M,dayHeaderContent:M,dayHeaderDidMount:M,dayHeaderWillUnmount:M,dayCellClassNames:M,dayCellContent:M,dayCellDidMount:M,dayCellWillUnmount:M,initialView:String,aspectRatio:Number,weekends:Boolean,weekNumberCalculation:M,weekNumbers:Boolean,weekNumberClassNames:M,weekNumberContent:M,weekNumberDidMount:M,weekNumberWillUnmount:M,editable:Boolean,viewClassNames:M,viewDidMount:M,viewWillUnmount:M,nowIndicator:Boolean,nowIndicatorSnap:M,nowIndicatorClassNames:M,nowIndicatorContent:M,nowIndicatorDidMount:M,nowIndicatorWillUnmount:M,showNonCurrentDates:Boolean,lazyFetching:Boolean,startParam:String,endParam:String,timeZoneParam:String,timeZone:String,locales:M,locale:M,themeSystem:String,dragRevertDuration:Number,dragScroll:Boolean,allDayMaintainDuration:Boolean,unselectAuto:Boolean,dropAccept:M,eventOrder:KE,eventOrderStrict:Boolean,handleWindowResize:Boolean,windowResizeDelay:Number,longPressDelay:Number,eventDragMinDistance:Number,expandRows:Boolean,height:M,contentHeight:M,direction:String,weekNumberFormat:Ie,eventResizableFromStart:Boolean,displayEventTime:Boolean,displayEventEnd:Boolean,weekText:String,weekTextLong:String,progressiveEventRendering:Boolean,businessHours:M,initialDate:M,now:M,eventDataTransform:M,stickyHeaderDates:M,stickyFooterScrollbar:M,viewHeight:M,defaultAllDay:Boolean,eventSourceFailure:M,eventSourceSuccess:M,eventDisplay:String,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventOverlap:M,eventConstraint:M,eventAllow:M,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String,eventClassNames:M,eventContent:M,eventDidMount:M,eventWillUnmount:M,selectConstraint:M,selectOverlap:M,selectAllow:M,droppable:Boolean,unselectCancel:String,slotLabelFormat:M,slotLaneClassNames:M,slotLaneContent:M,slotLaneDidMount:M,slotLaneWillUnmount:M,slotLabelClassNames:M,slotLabelContent:M,slotLabelDidMount:M,slotLabelWillUnmount:M,dayMaxEvents:M,dayMaxEventRows:M,dayMinWidth:Number,slotLabelInterval:ve,allDayText:String,allDayClassNames:M,allDayContent:M,allDayDidMount:M,allDayWillUnmount:M,slotMinWidth:Number,navLinks:Boolean,eventTimeFormat:Ie,rerenderDelay:Number,moreLinkText:M,moreLinkHint:M,selectMinDistance:Number,selectable:Boolean,selectLongPressDelay:Number,eventLongPressDelay:Number,selectMirror:Boolean,eventMaxStack:Number,eventMinHeight:Number,eventMinWidth:Number,eventShortHeight:Number,slotEventOverlap:Boolean,plugins:M,firstDay:Number,dayCount:Number,dateAlignment:String,dateIncrement:ve,hiddenDays:M,fixedWeekCount:Boolean,validRange:M,visibleRange:M,titleFormat:M,eventInteractive:Boolean,noEventsText:String,viewHint:M,navLinkHint:M,closeHint:String,timeHint:String,eventHint:String,moreLinkClick:M,moreLinkClassNames:M,moreLinkContent:M,moreLinkDidMount:M,moreLinkWillUnmount:M,monthStartFormat:Ie,handleCustomRendering:M,customRenderingMetaMap:M,customRenderingReplaces:Boolean},lr={eventDisplay:"auto",defaultRangeSeparator:" - ",titleRangeSeparator:" – ",defaultTimedEventDuration:"01:00:00",defaultAllDayEventDuration:{day:1},forceEventDuration:!1,nextDayThreshold:"00:00:00",dayHeaders:!0,initialView:"",aspectRatio:1.35,headerToolbar:{start:"title",center:"",end:"today prev,next"},weekends:!0,weekNumbers:!1,weekNumberCalculation:"local",editable:!1,nowIndicator:!1,scrollTime:"06:00:00",scrollTimeReset:!0,slotMinTime:"00:00:00",slotMaxTime:"24:00:00",showNonCurrentDates:!0,lazyFetching:!0,startParam:"start",endParam:"end",timeZoneParam:"timeZone",timeZone:"local",locales:[],locale:"",themeSystem:"standard",dragRevertDuration:500,dragScroll:!0,allDayMaintainDuration:!1,unselectAuto:!0,dropAccept:"*",eventOrder:"start,-duration,allDay,title",dayPopoverFormat:{month:"long",day:"numeric",year:"numeric"},handleWindowResize:!0,windowResizeDelay:100,longPressDelay:1e3,eventDragMinDistance:5,expandRows:!1,navLinks:!1,selectable:!1,eventMinHeight:15,eventMinWidth:30,eventShortHeight:30,monthStartFormat:{month:"long",day:"numeric"},nowIndicatorSnap:"auto"},Zl={datesSet:M,eventsSet:M,eventAdd:M,eventChange:M,eventRemove:M,windowResize:M,eventClick:M,eventMouseEnter:M,eventMouseLeave:M,select:M,unselect:M,loading:M,_unmount:M,_beforeprint:M,_afterprint:M,_noEventDrop:M,_noEventResize:M,_resize:M,_scrollRequest:M},Kl={buttonText:M,buttonHints:M,views:M,plugins:M,initialEvents:M,events:M,eventSources:M},Kt={headerToolbar:Xt,footerToolbar:Xt,buttonText:Xt,buttonHints:Xt,buttonIcons:Xt,dateIncrement:Xt,plugins:Or,events:Or,eventSources:Or,resources:Or};function Xt(t,e){return typeof t=="object"&&typeof e=="object"&&t&&e?lt(t,e):t===e}function Or(t,e){return Array.isArray(t)&&Array.isArray(e)?Lt(t,e):t===e}const BS={type:String,component:M,buttonText:String,buttonTextKey:String,dateProfileGeneratorClass:M,usesMinMaxTime:Boolean,classNames:M,content:M,didMount:M,willUnmount:M};function Ei(t){return Bs(t,Kt)}function $s(t,e){let n={},r={};for(let o in e)o in t&&(n[o]=e[o](t[o]));for(let o in t)o in e||(r[o]=t[o]);return{refined:n,extra:r}}function M(t){return t}const{hasOwnProperty:po}=Object.prototype;function Bs(t,e){let n={};if(e){for(let r in e)if(e[r]===Xt){let o=[];for(let i=t.length-1;i>=0;i-=1){let s=t[i][r];if(typeof s=="object"&&s)o.unshift(s);else if(s!==void 0){n[r]=s;break}}o.length&&(n[r]=Bs(o))}}for(let r=t.length-1;r>=0;r-=1){let o=t[r];for(let i in o)i in n||(n[i]=o[i])}return n}function un(t,e){let n={};for(let r in t)e(t[r],r)&&(n[r]=t[r]);return n}function Tt(t,e){let n={};for(let r in t)n[r]=e(t[r],r);return n}function vd(t){let e={};for(let n of t)e[n]=!0;return e}function Ls(t){let e=[];for(let n in t)e.push(t[n]);return e}function lt(t,e){if(t===e)return!0;for(let n in t)if(po.call(t,n)&&!(n in e))return!1;for(let n in e)if(po.call(e,n)&&t[n]!==e[n])return!1;return!0}const LS=/^on[A-Z]/;function HS(t,e){const n=zS(t,e);for(let r of n)if(!LS.test(r))return!1;return!0}function zS(t,e){let n=[];for(let r in t)po.call(t,r)&&(r in e||n.push(r));for(let r in e)po.call(e,r)&&t[r]!==e[r]&&n.push(r);return n}function Si(t,e,n={}){if(t===e)return!0;for(let r in e)if(!(r in t&&FS(t[r],e[r],n[r])))return!1;for(let r in t)if(!(r in e))return!1;return!0}function FS(t,e,n){return t===e||n===!0?!0:n?n(t,e):!1}function WS(t,e=0,n,r=1){let o=[];n==null&&(n=Object.keys(t).length);for(let i=e;i<n;i+=r){let s=t[i];s!==void 0&&o.push(s)}return o}let yd={};function US(t,e){yd[t]=e}function GS(t){return new yd[t]}class YS{getMarkerYear(e){return e.getUTCFullYear()}getMarkerMonth(e){return e.getUTCMonth()}getMarkerDay(e){return e.getUTCDate()}arrayToMarker(e){return Ge(e)}markerToArray(e){return Pt(e)}}US("gregory",YS);const qS=/^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;function QS(t){let e=qS.exec(t);if(e){let n=new Date(Date.UTC(Number(e[1]),e[3]?Number(e[3])-1:0,Number(e[5]||1),Number(e[7]||0),Number(e[8]||0),Number(e[10]||0),e[12]?+`0.${e[12]}`*1e3:0));if(gd(n)){let r=null;return e[13]&&(r=(e[15]==="-"?-1:1)*(Number(e[16]||0)*60+Number(e[18]||0))),{marker:n,isTimeUnspecified:!e[6],timeZoneOffset:r}}}return null}class ZS{constructor(e){let n=this.timeZone=e.timeZone,r=n!=="local"&&n!=="UTC";e.namedTimeZoneImpl&&r&&(this.namedTimeZoneImpl=new e.namedTimeZoneImpl(n)),this.canComputeOffset=!!(!r||this.namedTimeZoneImpl),this.calendarSystem=GS(e.calendarSystem),this.locale=e.locale,this.weekDow=e.locale.week.dow,this.weekDoy=e.locale.week.doy,e.weekNumberCalculation==="ISO"&&(this.weekDow=1,this.weekDoy=4),typeof e.firstDay=="number"&&(this.weekDow=e.firstDay),typeof e.weekNumberCalculation=="function"&&(this.weekNumberFunc=e.weekNumberCalculation),this.weekText=e.weekText!=null?e.weekText:e.locale.options.weekText,this.weekTextLong=(e.weekTextLong!=null?e.weekTextLong:e.locale.options.weekTextLong)||this.weekText,this.cmdFormatter=e.cmdFormatter,this.defaultSeparator=e.defaultSeparator}createMarker(e){let n=this.createMarkerMeta(e);return n===null?null:n.marker}createNowMarker(){return this.canComputeOffset?this.timestampToMarker(new Date().valueOf()):Ge(Ul(new Date))}createMarkerMeta(e){if(typeof e=="string")return this.parse(e);let n=null;return typeof e=="number"?n=this.timestampToMarker(e):e instanceof Date?(e=e.valueOf(),isNaN(e)||(n=this.timestampToMarker(e))):Array.isArray(e)&&(n=Ge(e)),n===null||!gd(n)?null:{marker:n,isTimeUnspecified:!1,forcedTzo:null}}parse(e){let n=QS(e);if(n===null)return null;let{marker:r}=n,o=null;return n.timeZoneOffset!==null&&(this.canComputeOffset?r=this.timestampToMarker(r.valueOf()-n.timeZoneOffset*60*1e3):o=n.timeZoneOffset),{marker:r,isTimeUnspecified:n.isTimeUnspecified,forcedTzo:o}}getYear(e){return this.calendarSystem.getMarkerYear(e)}getMonth(e){return this.calendarSystem.getMarkerMonth(e)}getDay(e){return this.calendarSystem.getMarkerDay(e)}add(e,n){let r=this.calendarSystem.markerToArray(e);return r[0]+=n.years,r[1]+=n.months,r[2]+=n.days,r[6]+=n.milliseconds,this.calendarSystem.arrayToMarker(r)}subtract(e,n){let r=this.calendarSystem.markerToArray(e);return r[0]-=n.years,r[1]-=n.months,r[2]-=n.days,r[6]-=n.milliseconds,this.calendarSystem.arrayToMarker(r)}addYears(e,n){let r=this.calendarSystem.markerToArray(e);return r[0]+=n,this.calendarSystem.arrayToMarker(r)}addMonths(e,n){let r=this.calendarSystem.markerToArray(e);return r[1]+=n,this.calendarSystem.arrayToMarker(r)}diffWholeYears(e,n){let{calendarSystem:r}=this;return Nt(e)===Nt(n)&&r.getMarkerDay(e)===r.getMarkerDay(n)&&r.getMarkerMonth(e)===r.getMarkerMonth(n)?r.getMarkerYear(n)-r.getMarkerYear(e):null}diffWholeMonths(e,n){let{calendarSystem:r}=this;return Nt(e)===Nt(n)&&r.getMarkerDay(e)===r.getMarkerDay(n)?r.getMarkerMonth(n)-r.getMarkerMonth(e)+(r.getMarkerYear(n)-r.getMarkerYear(e))*12:null}greatestWholeUnit(e,n){let r=this.diffWholeYears(e,n);return r!==null?{unit:"year",value:r}:(r=this.diffWholeMonths(e,n),r!==null?{unit:"month",value:r}:(r=mS(e,n),r!==null?{unit:"week",value:r}:(r=co(e,n),r!==null?{unit:"day",value:r}:(r=fS(e,n),Wr(r)?{unit:"hour",value:r}:(r=pS(e,n),Wr(r)?{unit:"minute",value:r}:(r=hS(e,n),Wr(r)?{unit:"second",value:r}:{unit:"millisecond",value:n.valueOf()-e.valueOf()}))))))}countDurationsBetween(e,n,r){let o;return r.years&&(o=this.diffWholeYears(e,n),o!==null)?o/lS(r):r.months&&(o=this.diffWholeMonths(e,n),o!==null)?o/cS(r):r.days&&(o=co(e,n),o!==null)?o/Mn(r):(n.valueOf()-e.valueOf())/at(r)}startOf(e,n){return n==="year"?this.startOfYear(e):n==="month"?this.startOfMonth(e):n==="week"?this.startOfWeek(e):n==="day"?Re(e):n==="hour"?vS(e):n==="minute"?yS(e):n==="second"?bS(e):null}startOfYear(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e)])}startOfMonth(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e)])}startOfWeek(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e),e.getUTCDate()-(e.getUTCDay()-this.weekDow+7)%7])}computeWeekNumber(e){return this.weekNumberFunc?this.weekNumberFunc(this.toDate(e)):ES(e,this.weekDow,this.weekDoy)}format(e,n,r={}){return n.format({marker:e,timeZoneOffset:r.forcedTzo!=null?r.forcedTzo:this.offsetForMarker(e)},this)}formatRange(e,n,r,o={}){return o.isEndExclusive&&(n=Ht(n,-1)),r.formatRange({marker:e,timeZoneOffset:o.forcedStartTzo!=null?o.forcedStartTzo:this.offsetForMarker(e)},{marker:n,timeZoneOffset:o.forcedEndTzo!=null?o.forcedEndTzo:this.offsetForMarker(n)},this,o.defaultSeparator)}formatIso(e,n={}){let r=null;return n.omitTimeZoneOffset||(n.forcedTzo!=null?r=n.forcedTzo:r=this.offsetForMarker(e)),md(e,r,n.omitTime)}timestampToMarker(e){return this.timeZone==="local"?Ge(Ul(new Date(e))):this.timeZone==="UTC"||!this.namedTimeZoneImpl?new Date(e):Ge(this.namedTimeZoneImpl.timestampToArray(e))}offsetForMarker(e){return this.timeZone==="local"?-Gl(Pt(e)).getTimezoneOffset():this.timeZone==="UTC"?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(Pt(e)):null}toDate(e,n){return this.timeZone==="local"?Gl(Pt(e)):this.timeZone==="UTC"?new Date(e.valueOf()):this.namedTimeZoneImpl?new Date(e.valueOf()-this.namedTimeZoneImpl.offsetForArray(Pt(e))*1e3*60):new Date(e.valueOf()-(n||0))}}class Er{constructor(e){this.iconOverrideOption&&this.setIconOverride(e[this.iconOverrideOption])}setIconOverride(e){let n,r;if(typeof e=="object"&&e){n=Object.assign({},this.iconClasses);for(r in e)n[r]=this.applyIconOverridePrefix(e[r]);this.iconClasses=n}else e===!1&&(this.iconClasses={})}applyIconOverridePrefix(e){let n=this.iconOverridePrefix;return n&&e.indexOf(n)!==0&&(e=n+e),e}getClass(e){return this.classes[e]||""}getIconClass(e,n){let r;return n&&this.rtlIconClasses?r=this.rtlIconClasses[e]||this.iconClasses[e]:r=this.iconClasses[e],r?`${this.baseIconClass} ${r}`:""}getCustomButtonIconClass(e){let n;return this.iconOverrideCustomButtonOption&&(n=e[this.iconOverrideCustomButtonOption],n)?`${this.baseIconClass} ${this.applyIconOverridePrefix(n)}`:""}}Er.prototype.classes={};Er.prototype.iconClasses={};Er.prototype.baseIconClass="";Er.prototype.iconOverridePrefix="";function ho(t){t();let e=ae.debounceRendering,n=[];function r(o){n.push(o)}for(ae.debounceRendering=r,pr(w(KS,{}),document.createElement("div"));n.length;)n.shift()();ae.debounceRendering=e}class KS extends Ze{render(){return w("div",{})}componentDidMount(){this.setState({})}}function bd(t){let e=SE(t),n=e.Provider;return e.Provider=function(){let r=!this.getChildContext,o=n.apply(this,arguments);if(r){let i=[];this.shouldComponentUpdate=s=>{this.props.value!==s.value&&i.forEach(a=>{a.context=s.value,a.forceUpdate()})},this.sub=s=>{i.push(s);let a=s.componentWillUnmount;s.componentWillUnmount=()=>{i.splice(i.indexOf(s),1),a&&a.call(s)}}}return o},e}class XS{constructor(e,n,r,o){this.execFunc=e,this.emitter=n,this.scrollTime=r,this.scrollTimeReset=o,this.handleScrollRequest=i=>{this.queuedRequest=Object.assign({},this.queuedRequest||{},i),this.drain()},n.on("_scrollRequest",this.handleScrollRequest),this.fireInitialScroll()}detach(){this.emitter.off("_scrollRequest",this.handleScrollRequest)}update(e){e&&this.scrollTimeReset?this.fireInitialScroll():this.drain()}fireInitialScroll(){this.handleScrollRequest({time:this.scrollTime})}drain(){this.queuedRequest&&this.execFunc(this.queuedRequest)&&(this.queuedRequest=null)}}const At=bd({});function JS(t,e,n,r,o,i,s,a,l,c,u,f,p,h){return{dateEnv:o,nowManager:i,options:n,pluginHooks:a,emitter:u,dispatch:l,getCurrentData:c,calendarApi:f,viewSpec:t,viewApi:e,dateProfileGenerator:r,theme:s,isRtl:n.direction==="rtl",addResizeHandler(m){u.on("_resize",m)},removeResizeHandler(m){u.off("_resize",m)},createScrollResponder(m){return new XS(m,u,ve(n.scrollTime),n.scrollTimeReset)},registerInteractiveComponent:p,unregisterInteractiveComponent:h}}class mn extends Ze{shouldComponentUpdate(e,n){return!Si(this.props,e,this.propEquality)||!Si(this.state,n,this.stateEquality)}safeSetState(e){Si(this.state,Object.assign(Object.assign({},this.state),e),this.stateEquality)||this.setState(e)}}mn.addPropsEquality=eC;mn.addStateEquality=tC;mn.contextType=At;mn.prototype.propEquality={};mn.prototype.stateEquality={};class Se extends mn{}Se.contextType=At;function eC(t){let e=Object.create(this.prototype.propEquality);Object.assign(e,t),this.prototype.propEquality=e}function tC(t){let e=Object.create(this.prototype.stateEquality);Object.assign(e,t),this.prototype.stateEquality=e}function mt(t,e){typeof t=="function"?t(e):t&&(t.current=e)}class Hs extends Se{constructor(){super(...arguments),this.id=hn(),this.queuedDomNodes=[],this.currentDomNodes=[],this.handleEl=e=>{const{options:n}=this.context,{generatorName:r}=this.props;(!n.customRenderingReplaces||!Ki(r,n))&&this.updateElRef(e)},this.updateElRef=e=>{this.props.elRef&&mt(this.props.elRef,e)}}render(){const{props:e,context:n}=this,{options:r}=n,{customGenerator:o,defaultGenerator:i,renderProps:s}=e,a=Ed(e,[],this.handleEl);let l=!1,c,u=[],f;if(o!=null){const p=typeof o=="function"?o(s,w):o;if(p===!0)l=!0;else{const h=p&&typeof p=="object";h&&"html"in p?a.dangerouslySetInnerHTML={__html:p.html}:h&&"domNodes"in p?u=Array.prototype.slice.call(p.domNodes):(h?Wu(p):typeof p!="function")?c=p:f=p}}else l=!Ki(e.generatorName,r);return l&&i&&(c=i(s)),this.queuedDomNodes=u,this.currentGeneratorMeta=f,w(e.elTag,a,c)}componentDidMount(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentDidUpdate(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentWillUnmount(){this.triggerCustomRendering(!1)}triggerCustomRendering(e){var n;const{props:r,context:o}=this,{handleCustomRendering:i,customRenderingMetaMap:s}=o.options;if(i){const a=(n=this.currentGeneratorMeta)!==null&&n!==void 0?n:s==null?void 0:s[r.generatorName];a&&i(Object.assign(Object.assign({id:this.id,isActive:e,containerEl:this.base,reportNewContainerEl:this.updateElRef,generatorMeta:a},r),{elClasses:(r.elClasses||[]).filter(nC)}))}}applyQueueudDomNodes(){const{queuedDomNodes:e,currentDomNodes:n}=this,r=this.base;if(!Lt(e,n)){n.forEach(Os);for(let o of e)r.appendChild(o);this.currentDomNodes=e}}}Hs.addPropsEquality({elClasses:Lt,elStyle:lt,elAttrs:HS,renderProps:lt});function Ki(t,e){var n;return!!(e.handleCustomRendering&&t&&(!((n=e.customRenderingMetaMap)===null||n===void 0)&&n[t]))}function Ed(t,e,n){const r=Object.assign(Object.assign({},t.elAttrs),{ref:n});return(t.elClasses||e)&&(r.className=(t.elClasses||[]).concat(e||[]).concat(r.className||[]).filter(Boolean).join(" ")),t.elStyle&&(r.style=t.elStyle),r}function nC(t){return!!t}const Sd=bd(0);class et extends Ze{constructor(){super(...arguments),this.InnerContent=rC.bind(void 0,this),this.handleEl=e=>{this.el=e,this.props.elRef&&(mt(this.props.elRef,e),e&&this.didMountMisfire&&this.componentDidMount())}}render(){const{props:e}=this,n=oC(e.classNameGenerator,e.renderProps);if(e.children){const r=Ed(e,n,this.handleEl),o=e.children(this.InnerContent,e.renderProps,r);return e.elTag?w(e.elTag,r,o):o}else return w(Hs,Object.assign(Object.assign({},e),{elRef:this.handleEl,elTag:e.elTag||"div",elClasses:(e.elClasses||[]).concat(n),renderId:this.context}))}componentDidMount(){var e,n;this.el?(n=(e=this.props).didMount)===null||n===void 0||n.call(e,Object.assign(Object.assign({},this.props.renderProps),{el:this.el})):this.didMountMisfire=!0}componentWillUnmount(){var e,n;(n=(e=this.props).willUnmount)===null||n===void 0||n.call(e,Object.assign(Object.assign({},this.props.renderProps),{el:this.el}))}}et.contextType=Sd;function rC(t,e){const n=t.props;return w(Hs,Object.assign({renderProps:n.renderProps,generatorName:n.generatorName,customGenerator:n.customGenerator,defaultGenerator:n.defaultGenerator,renderId:t.context},e))}function oC(t,e){const n=typeof t=="function"?t(e):t||[];return typeof n=="string"?[n]:n}class go extends Se{render(){let{props:e,context:n}=this,{options:r}=n,o={view:n.viewApi};return w(et,{elRef:e.elRef,elTag:e.elTag||"div",elAttrs:e.elAttrs,elClasses:[...Cd(e.viewSpec),...e.elClasses||[]],elStyle:e.elStyle,renderProps:o,classNameGenerator:r.viewClassNames,generatorName:void 0,didMount:r.viewDidMount,willUnmount:r.viewWillUnmount},()=>e.children)}}function Cd(t){return[`fc-${t.type}-view`,"fc-view"]}function iC(t,e){let n=null,r=null;return t.start&&(n=e.createMarker(t.start)),t.end&&(r=e.createMarker(t.end)),!n&&!r||n&&r&&r<n?null:{start:n,end:r}}function Xl(t,e){let n=[],{start:r}=e,o,i;for(t.sort(sC),o=0;o<t.length;o+=1)i=t[o],i.start>r&&n.push({start:r,end:i.start}),i.end>r&&(r=i.end);return r<e.end&&n.push({start:r,end:e.end}),n}function sC(t,e){return t.start.valueOf()-e.start.valueOf()}function dn(t,e){let{start:n,end:r}=t,o=null;return e.start!==null&&(n===null?n=e.start:n=new Date(Math.max(n.valueOf(),e.start.valueOf()))),e.end!=null&&(r===null?r=e.end:r=new Date(Math.min(r.valueOf(),e.end.valueOf()))),(n===null||r===null||n<r)&&(o={start:n,end:r}),o}function aC(t,e){return(t.start===null?null:t.start.valueOf())===(e.start===null?null:e.start.valueOf())&&(t.end===null?null:t.end.valueOf())===(e.end===null?null:e.end.valueOf())}function zs(t,e){return(t.end===null||e.start===null||t.end>e.start)&&(t.start===null||e.end===null||t.start<e.end)}function Wo(t,e){return(t.start===null||e.start!==null&&e.start>=t.start)&&(t.end===null||e.end!==null&&e.end<=t.end)}function xt(t,e){return(t.start===null||e>=t.start)&&(t.end===null||e<t.end)}function lC(t,e){return e.start!=null&&t<e.start?e.start:e.end!=null&&t>=e.end?new Date(e.end.valueOf()-1):t}function wd(t){let e=Math.floor(gn(t.start,t.end))||1,n=Re(t.start),r=Be(n,e);return{start:n,end:r}}function xd(t,e=ve(0)){let n=null,r=null;if(t.end){r=Re(t.end);let o=t.end.valueOf()-r.valueOf();o&&o>=at(e)&&(r=Be(r,1))}return t.start&&(n=Re(t.start),r&&r<=n&&(r=Be(n,1))),{start:n,end:r}}function Tn(t,e,n,r){return r==="year"?ve(n.diffWholeYears(t,e),"year"):r==="month"?ve(n.diffWholeMonths(t,e),"month"):gS(t,e)}class Dd{constructor(e){this.props=e,this.initHiddenDays()}buildPrev(e,n,r){let{dateEnv:o}=this.props,i=o.subtract(o.startOf(n,e.currentRangeUnit),e.dateIncrement);return this.build(i,-1,r)}buildNext(e,n,r){let{dateEnv:o}=this.props,i=o.add(o.startOf(n,e.currentRangeUnit),e.dateIncrement);return this.build(i,1,r)}build(e,n,r=!0){let{props:o}=this,i,s,a,l,c,u;return i=this.buildValidRange(),i=this.trimHiddenDays(i),r&&(e=lC(e,i)),s=this.buildCurrentRangeInfo(e,n),a=/^(year|month|week|day)$/.test(s.unit),l=this.buildRenderRange(this.trimHiddenDays(s.range),s.unit,a),l=this.trimHiddenDays(l),c=l,o.showNonCurrentDates||(c=dn(c,s.range)),c=this.adjustActiveRange(c),c=dn(c,i),u=zs(s.range,i),xt(l,e)||(e=l.start),{currentDate:e,validRange:i,currentRange:s.range,currentRangeUnit:s.unit,isRangeAllDay:a,activeRange:c,renderRange:l,slotMinTime:o.slotMinTime,slotMaxTime:o.slotMaxTime,isValid:u,dateIncrement:this.buildDateIncrement(s.duration)}}buildValidRange(){let e=this.props.validRangeInput,n=typeof e=="function"?e.call(this.props.calendarApi,this.props.dateEnv.toDate(this.props.nowManager.getDateMarker())):e;return this.refineRange(n)||{start:null,end:null}}buildCurrentRangeInfo(e,n){let{props:r}=this,o=null,i=null,s=null,a;return r.duration?(o=r.duration,i=r.durationUnit,s=this.buildRangeFromDuration(e,n,o,i)):(a=this.props.dayCount)?(i="day",s=this.buildRangeFromDayCount(e,n,a)):(s=this.buildCustomVisibleRange(e))?i=r.dateEnv.greatestWholeUnit(s.start,s.end).unit:(o=this.getFallbackDuration(),i=Zi(o).unit,s=this.buildRangeFromDuration(e,n,o,i)),{duration:o,unit:i,range:s}}getFallbackDuration(){return ve({day:1})}adjustActiveRange(e){let{dateEnv:n,usesMinMaxTime:r,slotMinTime:o,slotMaxTime:i}=this.props,{start:s,end:a}=e;return r&&(Mn(o)<0&&(s=Re(s),s=n.add(s,o)),Mn(i)>1&&(a=Re(a),a=Be(a,-1),a=n.add(a,i))),{start:s,end:a}}buildRangeFromDuration(e,n,r,o){let{dateEnv:i,dateAlignment:s}=this.props,a,l,c;if(!s){let{dateIncrement:f}=this.props;f&&at(f)<at(r)?s=Zi(f).unit:s=o}Mn(r)<=1&&this.isHiddenDay(a)&&(a=this.skipHiddenDays(a,n),a=Re(a));function u(){a=i.startOf(e,s),l=i.add(a,r),c={start:a,end:l}}return u(),this.trimHiddenDays(c)||(e=this.skipHiddenDays(e,n),u()),c}buildRangeFromDayCount(e,n,r){let{dateEnv:o,dateAlignment:i}=this.props,s=0,a=e,l;i&&(a=o.startOf(a,i)),a=Re(a),a=this.skipHiddenDays(a,n),l=a;do l=Be(l,1),this.isHiddenDay(l)||(s+=1);while(s<r);return{start:a,end:l}}buildCustomVisibleRange(e){let{props:n}=this,r=n.visibleRangeInput,o=typeof r=="function"?r.call(n.calendarApi,n.dateEnv.toDate(e)):r,i=this.refineRange(o);return i&&(i.start==null||i.end==null)?null:i}buildRenderRange(e,n,r){return e}buildDateIncrement(e){let{dateIncrement:n}=this.props,r;return n||((r=this.props.dateAlignment)?ve(1,r):e||ve({days:1}))}refineRange(e){if(e){let n=iC(e,this.props.dateEnv);return n&&(n=xd(n)),n}return null}initHiddenDays(){let e=this.props.hiddenDays||[],n=[],r=0,o;for(this.props.weekends===!1&&e.push(0,6),o=0;o<7;o+=1)(n[o]=e.indexOf(o)!==-1)||(r+=1);if(!r)throw new Error("invalid hiddenDays");this.isHiddenDayHash=n}trimHiddenDays(e){let{start:n,end:r}=e;return n&&(n=this.skipHiddenDays(n)),r&&(r=this.skipHiddenDays(r,-1,!0)),n==null||r==null||n<r?{start:n,end:r}:null}isHiddenDay(e){return e instanceof Date&&(e=e.getUTCDay()),this.isHiddenDayHash[e]}skipHiddenDays(e,n=1,r=!1){for(;this.isHiddenDayHash[(e.getUTCDay()+(r?n:0)+7)%7];)e=Be(e,n);return e}}function Fs(t,e,n,r){return{instanceId:hn(),defId:t,range:e,forcedStartTzo:n??null,forcedEndTzo:r??null}}function cC(t,e,n,r){for(let o=0;o<r.length;o+=1){let i=r[o].parse(t,n);if(i){let{allDay:s}=t;return s==null&&(s=e,s==null&&(s=i.allDayGuess,s==null&&(s=!1))),{allDay:s,duration:i.duration,typeData:i.typeData,typeId:o}}}return null}function fn(t,e,n){let{dateEnv:r,pluginHooks:o,options:i}=n,{defs:s,instances:a}=t;a=un(a,l=>!s[l.defId].recurringDef);for(let l in s){let c=s[l];if(c.recurringDef){let{duration:u}=c.recurringDef;u||(u=c.allDay?i.defaultAllDayEventDuration:i.defaultTimedEventDuration);let f=uC(c,u,e,r,o.recurringTypes);for(let p of f){let h=Fs(l,{start:p,end:r.add(p,u)});a[h.instanceId]=h}}}return{defs:s,instances:a}}function uC(t,e,n,r,o){let s=o[t.recurringDef.typeId].expand(t.recurringDef.typeData,{start:r.subtract(n.start,e),end:n.end},r);return t.allDay&&(s=s.map(Re)),s}const Gr={id:String,groupId:String,title:String,url:String,interactive:Boolean},Td={start:M,end:M,date:M,allDay:Boolean},dC=Object.assign(Object.assign(Object.assign({},Gr),Td),{extendedProps:M});function Ad(t,e,n,r,o=Ws(n),i,s){let{refined:a,extra:l}=Rd(t,n,o),c=pC(e,n),u=cC(a,c,n.dateEnv,n.pluginHooks.recurringTypes);if(u){let p=Xi(a,l,e?e.sourceId:"",u.allDay,!!u.duration,n,i);return p.recurringDef={typeId:u.typeId,typeData:u.typeData,duration:u.duration},{def:p,instance:null}}let f=fC(a,c,n,r);if(f){let p=Xi(a,l,e?e.sourceId:"",f.allDay,f.hasEnd,n,i),h=Fs(p.defId,f.range,f.forcedStartTzo,f.forcedEndTzo);return s&&p.publicId&&s[p.publicId]&&(h.instanceId=s[p.publicId]),{def:p,instance:h}}return null}function Rd(t,e,n=Ws(e)){return $s(t,n)}function Ws(t){return Object.assign(Object.assign(Object.assign({},mo),dC),t.pluginHooks.eventRefiners)}function Xi(t,e,n,r,o,i,s){let a={title:t.title||"",groupId:t.groupId||"",publicId:t.id||"",url:t.url||"",recurringDef:null,defId:(s&&t.id?s[t.id]:"")||hn(),sourceId:n,allDay:r,hasEnd:o,interactive:t.interactive,ui:vo(t,i),extendedProps:Object.assign(Object.assign({},t.extendedProps||{}),e)};for(let l of i.pluginHooks.eventDefMemberAdders)Object.assign(a,l(t));return Object.freeze(a.ui.classNames),Object.freeze(a.extendedProps),a}function fC(t,e,n,r){let{allDay:o}=t,i,s=null,a=!1,l,c=null,u=t.start!=null?t.start:t.date;if(i=n.dateEnv.createMarkerMeta(u),i)s=i.marker;else if(!r)return null;return t.end!=null&&(l=n.dateEnv.createMarkerMeta(t.end)),o==null&&(e!=null?o=e:o=(!i||i.isTimeUnspecified)&&(!l||l.isTimeUnspecified)),o&&s&&(s=Re(s)),l&&(c=l.marker,o&&(c=Re(c)),s&&c<=s&&(c=null)),c?a=!0:r||(a=n.options.forceEventDuration||!1,c=n.dateEnv.add(s,o?n.options.defaultAllDayEventDuration:n.options.defaultTimedEventDuration)),{allDay:o,hasEnd:a,range:{start:s,end:c},forcedStartTzo:i?i.forcedTzo:null,forcedEndTzo:l?l.forcedTzo:null}}function pC(t,e){let n=null;return t&&(n=t.defaultAllDay),n==null&&(n=e.options.defaultAllDay),n}function hr(t,e,n,r,o,i){let s=Ke(),a=Ws(n);for(let l of t){let c=Ad(l,e,n,r,a,o,i);c&&Ji(c,s)}return s}function Ji(t,e=Ke()){return e.defs[t.def.defId]=t.def,t.instance&&(e.instances[t.instance.instanceId]=t.instance),e}function Us(t,e){let n=t.instances[e];if(n){let r=t.defs[n.defId],o=Uo(t,i=>hC(r,i));return o.defs[r.defId]=r,o.instances[n.instanceId]=n,o}return Ke()}function hC(t,e){return!!(t.groupId&&t.groupId===e.groupId)}function Ke(){return{defs:{},instances:{}}}function Gs(t,e){return{defs:Object.assign(Object.assign({},t.defs),e.defs),instances:Object.assign(Object.assign({},t.instances),e.instances)}}function Uo(t,e){let n=un(t.defs,e),r=un(t.instances,o=>n[o.defId]);return{defs:n,instances:r}}function gC(t,e){let{defs:n,instances:r}=t,o={},i={};for(let s in n)e.defs[s]||(o[s]=n[s]);for(let s in r)!e.instances[s]&&o[r[s].defId]&&(i[s]=r[s]);return{defs:o,instances:i}}function mC(t,e){return Array.isArray(t)?hr(t,null,e,!0):typeof t=="object"&&t?hr([t],null,e,!0):t!=null?String(t):null}function Jl(t){return Array.isArray(t)?t:typeof t=="string"?t.split(/\s+/):[]}const mo={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:M,overlap:M,allow:M,className:Jl,classNames:Jl,color:String,backgroundColor:String,borderColor:String,textColor:String},vC={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function vo(t,e){let n=mC(t.constraint,e);return{display:t.display||null,startEditable:t.startEditable!=null?t.startEditable:t.editable,durationEditable:t.durationEditable!=null?t.durationEditable:t.editable,constraints:n!=null?[n]:[],overlap:t.overlap!=null?t.overlap:null,allows:t.allow!=null?[t.allow]:[],backgroundColor:t.backgroundColor||t.color||"",borderColor:t.borderColor||t.color||"",textColor:t.textColor||"",classNames:(t.className||[]).concat(t.classNames||[])}}function _d(t){return t.reduce(yC,vC)}function yC(t,e){return{display:e.display!=null?e.display:t.display,startEditable:e.startEditable!=null?e.startEditable:t.startEditable,durationEditable:e.durationEditable!=null?e.durationEditable:t.durationEditable,constraints:t.constraints.concat(e.constraints),overlap:typeof e.overlap=="boolean"?e.overlap:t.overlap,allows:t.allows.concat(e.allows),backgroundColor:e.backgroundColor||t.backgroundColor,borderColor:e.borderColor||t.borderColor,textColor:e.textColor||t.textColor,classNames:t.classNames.concat(e.classNames)}}const bC={id:String,defaultAllDay:Boolean,url:String,format:String,events:M,eventDataTransform:M,success:M,failure:M};function kd(t,e,n=Md(e)){let r;if(typeof t=="string"?r={url:t}:typeof t=="function"||Array.isArray(t)?r={events:t}:typeof t=="object"&&t&&(r=t),r){let{refined:o,extra:i}=$s(r,n),s=EC(o,e);if(s)return{_raw:t,isFetching:!1,latestFetchId:"",fetchRange:null,defaultAllDay:o.defaultAllDay,eventDataTransform:o.eventDataTransform,success:o.success,failure:o.failure,publicId:o.id||"",sourceId:hn(),sourceDefId:s.sourceDefId,meta:s.meta,ui:vo(o,e),extendedProps:i}}return null}function Md(t){return Object.assign(Object.assign(Object.assign({},mo),bC),t.pluginHooks.eventSourceRefiners)}function EC(t,e){let n=e.pluginHooks.eventSourceDefs;for(let r=n.length-1;r>=0;r-=1){let i=n[r].parseMeta(t);if(i)return{sourceDefId:r,meta:i}}return null}function SC(t,e,n,r,o){switch(e.type){case"RECEIVE_EVENTS":return CC(t,n[e.sourceId],e.fetchId,e.fetchRange,e.rawEvents,o);case"RESET_RAW_EVENTS":return wC(t,n[e.sourceId],e.rawEvents,r.activeRange,o);case"ADD_EVENTS":return xC(t,e.eventStore,r?r.activeRange:null,o);case"RESET_EVENTS":return e.eventStore;case"MERGE_EVENTS":return Gs(t,e.eventStore);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return r?fn(t,r.activeRange,o):t;case"REMOVE_EVENTS":return gC(t,e.eventStore);case"REMOVE_EVENT_SOURCE":return Id(t,e.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return Uo(t,i=>!i.sourceId);case"REMOVE_ALL_EVENTS":return Ke();default:return t}}function CC(t,e,n,r,o,i){if(e&&n===e.latestFetchId){let s=hr(Od(o,e,i),e,i);return r&&(s=fn(s,r,i)),Gs(Id(t,e.sourceId),s)}return t}function wC(t,e,n,r,o){const{defIdMap:i,instanceIdMap:s}=TC(t);let a=hr(Od(n,e,o),e,o,!1,i,s);return fn(a,r,o)}function Od(t,e,n){let r=n.options.eventDataTransform,o=e?e.eventDataTransform:null;return o&&(t=ec(t,o)),r&&(t=ec(t,r)),t}function ec(t,e){let n;if(!e)n=t;else{n=[];for(let r of t){let o=e(r);o?n.push(o):o==null&&n.push(r)}}return n}function xC(t,e,n,r){return n&&(e=fn(e,n,r)),Gs(t,e)}function tc(t,e,n){let{defs:r}=t,o=Tt(t.instances,i=>r[i.defId].allDay?i:Object.assign(Object.assign({},i),{range:{start:n.createMarker(e.toDate(i.range.start,i.forcedStartTzo)),end:n.createMarker(e.toDate(i.range.end,i.forcedEndTzo))},forcedStartTzo:n.canComputeOffset?null:i.forcedStartTzo,forcedEndTzo:n.canComputeOffset?null:i.forcedEndTzo}));return{defs:r,instances:o}}function Id(t,e){return Uo(t,n=>n.sourceId!==e)}function DC(t,e){return{defs:t.defs,instances:un(t.instances,n=>!e[n.instanceId])}}function TC(t){const{defs:e,instances:n}=t,r={},o={};for(let i in e){const s=e[i],{publicId:a}=s;a&&(r[a]=i)}for(let i in n){const s=n[i],a=e[s.defId],{publicId:l}=a;l&&(o[l]=i)}return{defIdMap:r,instanceIdMap:o}}class Go{constructor(){this.handlers={},this.thisContext=null}setThisContext(e){this.thisContext=e}setOptions(e){this.options=e}on(e,n){AC(this.handlers,e,n)}off(e,n){RC(this.handlers,e,n)}trigger(e,...n){let r=this.handlers[e]||[],o=this.options&&this.options[e],i=[].concat(o||[],r);for(let s of i)s.apply(this.thisContext,n)}hasHandlers(e){return!!(this.handlers[e]&&this.handlers[e].length||this.options&&this.options[e])}}function AC(t,e,n){(t[e]||(t[e]=[])).push(n)}function RC(t,e,n){n?t[e]&&(t[e]=t[e].filter(r=>r!==n)):delete t[e]}const _C={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",classNames:"fc-non-business",groupId:"_businessHours"};function kC(t,e){return hr(MC(t),null,e)}function MC(t){let e;return t===!0?e=[{}]:Array.isArray(t)?e=t.filter(n=>n.daysOfWeek):typeof t=="object"&&t?e=[t]:e=[],e=e.map(n=>Object.assign(Object.assign({},_C),n)),e}function Pd(t,e,n){n.emitter.trigger("select",Object.assign(Object.assign({},Ys(t,n)),{jsEvent:e?e.origEvent:null,view:n.viewApi||n.calendarApi.view}))}function OC(t,e){e.emitter.trigger("unselect",{jsEvent:t?t.origEvent:null,view:e.viewApi||e.calendarApi.view})}function Ys(t,e){let n={};for(let r of e.pluginHooks.dateSpanTransforms)Object.assign(n,r(t,e));return Object.assign(n,GC(t,e.dateEnv)),n}function nc(t,e,n){let{dateEnv:r,options:o}=n,i=e;return t?(i=Re(i),i=r.add(i,o.defaultAllDayEventDuration)):i=r.add(i,o.defaultTimedEventDuration),i}function qs(t,e,n,r){let o=yo(t.defs,e),i=Ke();for(let s in t.defs){let a=t.defs[s];i.defs[s]=IC(a,o[s],n,r)}for(let s in t.instances){let a=t.instances[s],l=i.defs[a.defId];i.instances[s]=PC(a,l,o[a.defId],n,r)}return i}function IC(t,e,n,r){let o=n.standardProps||{};o.hasEnd==null&&e.durationEditable&&(n.startDelta||n.endDelta)&&(o.hasEnd=!0);let i=Object.assign(Object.assign(Object.assign({},t),o),{ui:Object.assign(Object.assign({},t.ui),o.ui)});n.extendedProps&&(i.extendedProps=Object.assign(Object.assign({},i.extendedProps),n.extendedProps));for(let s of r.pluginHooks.eventDefMutationAppliers)s(i,n,r);return!i.hasEnd&&r.options.forceEventDuration&&(i.hasEnd=!0),i}function PC(t,e,n,r,o){let{dateEnv:i}=o,s=r.standardProps&&r.standardProps.allDay===!0,a=r.standardProps&&r.standardProps.hasEnd===!1,l=Object.assign({},t);return s&&(l.range=wd(l.range)),r.datesDelta&&n.startEditable&&(l.range={start:i.add(l.range.start,r.datesDelta),end:i.add(l.range.end,r.datesDelta)}),r.startDelta&&n.durationEditable&&(l.range={start:i.add(l.range.start,r.startDelta),end:l.range.end}),r.endDelta&&n.durationEditable&&(l.range={start:l.range.start,end:i.add(l.range.end,r.endDelta)}),a&&(l.range={start:l.range.start,end:nc(e.allDay,l.range.start,o)}),e.allDay&&(l.range={start:Re(l.range.start),end:Re(l.range.end)}),l.range.end<l.range.start&&(l.range.end=nc(e.allDay,l.range.start,o)),l}class xn{constructor(e,n){this.context=e,this.internalEventSource=n}remove(){this.context.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:this.internalEventSource.sourceId})}refetch(){this.context.dispatch({type:"FETCH_EVENT_SOURCES",sourceIds:[this.internalEventSource.sourceId],isRefetch:!0})}get id(){return this.internalEventSource.publicId}get url(){return this.internalEventSource.meta.url}get format(){return this.internalEventSource.meta.format}}class Me{constructor(e,n,r){this._context=e,this._def=n,this._instance=r||null}setProp(e,n){if(e in Td)console.warn("Could not set date-related prop 'name'. Use one of the date-related methods instead.");else if(e==="id")n=Gr[e](n),this.mutate({standardProps:{publicId:n}});else if(e in Gr)n=Gr[e](n),this.mutate({standardProps:{[e]:n}});else if(e in mo){let r=mo[e](n);e==="color"?r={backgroundColor:n,borderColor:n}:e==="editable"?r={startEditable:n,durationEditable:n}:r={[e]:n},this.mutate({standardProps:{ui:r}})}else console.warn(`Could not set prop '${e}'. Use setExtendedProp instead.`)}setExtendedProp(e,n){this.mutate({extendedProps:{[e]:n}})}setStart(e,n={}){let{dateEnv:r}=this._context,o=r.createMarker(e);if(o&&this._instance){let i=this._instance.range,s=Tn(i.start,o,r,n.granularity);n.maintainDuration?this.mutate({datesDelta:s}):this.mutate({startDelta:s})}}setEnd(e,n={}){let{dateEnv:r}=this._context,o;if(!(e!=null&&(o=r.createMarker(e),!o))&&this._instance)if(o){let i=Tn(this._instance.range.end,o,r,n.granularity);this.mutate({endDelta:i})}else this.mutate({standardProps:{hasEnd:!1}})}setDates(e,n,r={}){let{dateEnv:o}=this._context,i={allDay:r.allDay},s=o.createMarker(e),a;if(s&&!(n!=null&&(a=o.createMarker(n),!a))&&this._instance){let l=this._instance.range;r.allDay===!0&&(l=wd(l));let c=Tn(l.start,s,o,r.granularity);if(a){let u=Tn(l.end,a,o,r.granularity);iS(c,u)?this.mutate({datesDelta:c,standardProps:i}):this.mutate({startDelta:c,endDelta:u,standardProps:i})}else i.hasEnd=!1,this.mutate({datesDelta:c,standardProps:i})}}moveStart(e){let n=ve(e);n&&this.mutate({startDelta:n})}moveEnd(e){let n=ve(e);n&&this.mutate({endDelta:n})}moveDates(e){let n=ve(e);n&&this.mutate({datesDelta:n})}setAllDay(e,n={}){let r={allDay:e},{maintainDuration:o}=n;o==null&&(o=this._context.options.allDayMaintainDuration),this._def.allDay!==e&&(r.hasEnd=o),this.mutate({standardProps:r})}formatRange(e){let{dateEnv:n}=this._context,r=this._instance,o=Ie(e);return this._def.hasEnd?n.formatRange(r.range.start,r.range.end,o,{forcedStartTzo:r.forcedStartTzo,forcedEndTzo:r.forcedEndTzo}):n.format(r.range.start,o,{forcedTzo:r.forcedStartTzo})}mutate(e){let n=this._instance;if(n){let r=this._def,o=this._context,{eventStore:i}=o.getCurrentData(),s=Us(i,n.instanceId);s=qs(s,{"":{display:"",startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]}},e,o);let l=new Me(o,r,n);this._def=s.defs[r.defId],this._instance=s.instances[n.instanceId],o.dispatch({type:"MERGE_EVENTS",eventStore:s}),o.emitter.trigger("eventChange",{oldEvent:l,event:this,relatedEvents:an(s,o,n),revert(){o.dispatch({type:"RESET_EVENTS",eventStore:i})}})}}remove(){let e=this._context,n=Nd(this);e.dispatch({type:"REMOVE_EVENTS",eventStore:n}),e.emitter.trigger("eventRemove",{event:this,relatedEvents:[],revert(){e.dispatch({type:"MERGE_EVENTS",eventStore:n})}})}get source(){let{sourceId:e}=this._def;return e?new xn(this._context,this._context.getCurrentData().eventSources[e]):null}get start(){return this._instance?this._context.dateEnv.toDate(this._instance.range.start):null}get end(){return this._instance&&this._def.hasEnd?this._context.dateEnv.toDate(this._instance.range.end):null}get startStr(){let e=this._instance;return e?this._context.dateEnv.formatIso(e.range.start,{omitTime:this._def.allDay,forcedTzo:e.forcedStartTzo}):""}get endStr(){let e=this._instance;return e&&this._def.hasEnd?this._context.dateEnv.formatIso(e.range.end,{omitTime:this._def.allDay,forcedTzo:e.forcedEndTzo}):""}get id(){return this._def.publicId}get groupId(){return this._def.groupId}get allDay(){return this._def.allDay}get title(){return this._def.title}get url(){return this._def.url}get display(){return this._def.ui.display||"auto"}get startEditable(){return this._def.ui.startEditable}get durationEditable(){return this._def.ui.durationEditable}get constraint(){return this._def.ui.constraints[0]||null}get overlap(){return this._def.ui.overlap}get allow(){return this._def.ui.allows[0]||null}get backgroundColor(){return this._def.ui.backgroundColor}get borderColor(){return this._def.ui.borderColor}get textColor(){return this._def.ui.textColor}get classNames(){return this._def.ui.classNames}get extendedProps(){return this._def.extendedProps}toPlainObject(e={}){let n=this._def,{ui:r}=n,{startStr:o,endStr:i}=this,s={allDay:n.allDay};return n.title&&(s.title=n.title),o&&(s.start=o),i&&(s.end=i),n.publicId&&(s.id=n.publicId),n.groupId&&(s.groupId=n.groupId),n.url&&(s.url=n.url),r.display&&r.display!=="auto"&&(s.display=r.display),e.collapseColor&&r.backgroundColor&&r.backgroundColor===r.borderColor?s.color=r.backgroundColor:(r.backgroundColor&&(s.backgroundColor=r.backgroundColor),r.borderColor&&(s.borderColor=r.borderColor)),r.textColor&&(s.textColor=r.textColor),r.classNames.length&&(s.classNames=r.classNames),Object.keys(n.extendedProps).length&&(e.collapseExtendedProps?Object.assign(s,n.extendedProps):s.extendedProps=n.extendedProps),s}toJSON(){return this.toPlainObject()}}function Nd(t){let e=t._def,n=t._instance;return{defs:{[e.defId]:e},instances:n?{[n.instanceId]:n}:{}}}function an(t,e,n){let{defs:r,instances:o}=t,i=[],s=n?n.instanceId:"";for(let a in o){let l=o[a],c=r[l.defId];l.instanceId!==s&&i.push(new Me(e,c,l))}return i}function rc(t,e,n,r){let o={},i={},s={},a=[],l=[],c=yo(t.defs,e);for(let u in t.defs){let f=t.defs[u];c[f.defId].display==="inverse-background"&&(f.groupId?(o[f.groupId]=[],s[f.groupId]||(s[f.groupId]=f)):i[u]=[])}for(let u in t.instances){let f=t.instances[u],p=t.defs[f.defId],h=c[p.defId],m=f.range,g=!p.allDay&&r?xd(m,r):m,v=dn(g,n);v&&(h.display==="inverse-background"?p.groupId?o[p.groupId].push(v):i[f.defId].push(v):h.display!=="none"&&(h.display==="background"?a:l).push({def:p,ui:h,instance:f,range:v,isStart:g.start&&g.start.valueOf()===v.start.valueOf(),isEnd:g.end&&g.end.valueOf()===v.end.valueOf()}))}for(let u in o){let f=o[u],p=Xl(f,n);for(let h of p){let m=s[u],g=c[m.defId];a.push({def:m,ui:g,instance:null,range:h,isStart:!1,isEnd:!1})}}for(let u in i){let f=i[u],p=Xl(f,n);for(let h of p)a.push({def:t.defs[u],ui:c[u],instance:null,range:h,isStart:!1,isEnd:!1})}return{bg:a,fg:l}}function NC(t){return t.ui.display==="background"||t.ui.display==="inverse-background"}function oc(t,e){t.fcSeg=e}function Bn(t){return t.fcSeg||t.parentNode.fcSeg||null}function yo(t,e){return Tt(t,n=>jd(n,e))}function jd(t,e){let n=[];return e[""]&&n.push(e[""]),e[t.defId]&&n.push(e[t.defId]),n.push(t.ui),_d(n)}function Vd(t,e){let n=t.map(jC);return n.sort((r,o)=>XE(r,o,e)),n.map(r=>r._seg)}function jC(t){let{eventRange:e}=t,n=e.def,r=e.instance?e.instance.range:e.range,o=r.start?r.start.valueOf():0,i=r.end?r.end.valueOf():0;return Object.assign(Object.assign(Object.assign({},n.extendedProps),n),{id:n.publicId,start:o,end:i,duration:i-o,allDay:Number(n.allDay),_seg:t})}function VC(t,e){let{pluginHooks:n}=e,r=n.isDraggableTransformers,{def:o,ui:i}=t.eventRange,s=i.startEditable;for(let a of r)s=a(s,o,i,e);return s}function $C(t,e){return t.isStart&&t.eventRange.ui.durationEditable&&e.options.eventResizableFromStart}function BC(t,e){return t.isEnd&&t.eventRange.ui.durationEditable}function $d(t,e,n,r,o,i,s){let{dateEnv:a,options:l}=n,{displayEventTime:c,displayEventEnd:u}=l,f=t.eventRange.def,p=t.eventRange.instance;c==null&&(c=r!==!1),u==null&&(u=o!==!1);let h=p.range.start,m=p.range.end,g=t.start||t.eventRange.range.start,v=t.end||t.eventRange.range.end,b=Re(h).valueOf()===Re(g).valueOf(),S=Re(Ht(m,-1)).valueOf()===Re(Ht(v,-1)).valueOf();return c&&!f.allDay&&(b||S)?(g=b?h:g,v=S?m:v,u&&f.hasEnd?a.formatRange(g,v,e,{forcedStartTzo:p.forcedStartTzo,forcedEndTzo:p.forcedEndTzo}):a.format(g,e,{forcedTzo:p.forcedStartTzo})):""}function jt(t,e,n){let r=t.eventRange.range;return{isPast:r.end<=(n||e.start),isFuture:r.start>=(n||e.end),isToday:e&&xt(e,r.start)}}function LC(t){let e=["fc-event"];return t.isMirror&&e.push("fc-event-mirror"),t.isDraggable&&e.push("fc-event-draggable"),(t.isStartResizable||t.isEndResizable)&&e.push("fc-event-resizable"),t.isDragging&&e.push("fc-event-dragging"),t.isResizing&&e.push("fc-event-resizing"),t.isSelected&&e.push("fc-event-selected"),t.isStart&&e.push("fc-event-start"),t.isEnd&&e.push("fc-event-end"),t.isPast&&e.push("fc-event-past"),t.isToday&&e.push("fc-event-today"),t.isFuture&&e.push("fc-event-future"),e}function Bd(t){return t.instance?t.instance.instanceId:`${t.def.defId}:${t.range.start.toISOString()}`}function Ld(t,e){let{def:n,instance:r}=t.eventRange,{url:o}=n;if(o)return{href:o};let{emitter:i,options:s}=e,{eventInteractive:a}=s;return a==null&&(a=n.interactive,a==null&&(a=!!i.hasHandlers("eventClick"))),a?hd(l=>{i.trigger("eventClick",{el:l.target,event:new Me(e,n,r),jsEvent:l,view:e.viewApi})}):{}}const HC={start:M,end:M,allDay:Boolean};function zC(t,e,n){let r=FC(t,e),{range:o}=r;if(!o.start)return null;if(!o.end){if(n==null)return null;o.end=e.add(o.start,n)}return r}function FC(t,e){let{refined:n,extra:r}=$s(t,HC),o=n.start?e.createMarkerMeta(n.start):null,i=n.end?e.createMarkerMeta(n.end):null,{allDay:s}=n;return s==null&&(s=o&&o.isTimeUnspecified&&(!i||i.isTimeUnspecified)),Object.assign({range:{start:o?o.marker:null,end:i?i.marker:null},allDay:s},r)}function WC(t,e){return aC(t.range,e.range)&&t.allDay===e.allDay&&UC(t,e)}function UC(t,e){for(let n in e)if(n!=="range"&&n!=="allDay"&&t[n]!==e[n])return!1;for(let n in t)if(!(n in e))return!1;return!0}function GC(t,e){return Object.assign(Object.assign({},zd(t.range,e,t.allDay)),{allDay:t.allDay})}function Hd(t,e,n){return Object.assign(Object.assign({},zd(t,e,n)),{timeZone:e.timeZone})}function zd(t,e,n){return{start:e.toDate(t.start),end:e.toDate(t.end),startStr:e.formatIso(t.start,{omitTime:n}),endStr:e.formatIso(t.end,{omitTime:n})}}function YC(t,e,n){let r=Rd({editable:!1},n),o=Xi(r.refined,r.extra,"",t.allDay,!0,n);return{def:o,ui:jd(o,e),instance:Fs(o.defId,t.range),range:t.range,isStart:!0,isEnd:!0}}function qC(t,e,n){let r=!1,o=function(a){r||(r=!0,e(a))},i=function(a){r||(r=!0,n(a))},s=t(o,i);s&&typeof s.then=="function"&&s.then(o,i)}class ic extends Error{constructor(e,n){super(e),this.response=n}}function QC(t,e,n){t=t.toUpperCase();const r={method:t};return t==="GET"?e+=(e.indexOf("?")===-1?"?":"&")+new URLSearchParams(n):(r.body=new URLSearchParams(n),r.headers={"Content-Type":"application/x-www-form-urlencoded"}),fetch(e,r).then(o=>{if(o.ok)return o.json().then(i=>[i,o],()=>{throw new ic("Failure parsing JSON",o)});throw new ic("Request failed",o)})}let Ci;function Fd(){return Ci==null&&(Ci=ZC()),Ci}function ZC(){if(typeof document>"u")return!0;let t=document.createElement("div");t.style.position="absolute",t.style.top="0px",t.style.left="0px",t.innerHTML="<table><tr><td><div></div></td></tr></table>",t.querySelector("table").style.height="100px",t.querySelector("div").style.height="100%",document.body.appendChild(t);let n=t.querySelector("div").offsetHeight>0;return document.body.removeChild(t),n}class KC extends Se{constructor(){super(...arguments),this.state={forPrint:!1},this.handleBeforePrint=()=>{ho(()=>{this.setState({forPrint:!0})})},this.handleAfterPrint=()=>{ho(()=>{this.setState({forPrint:!1})})}}render(){let{props:e}=this,{options:n}=e,{forPrint:r}=this.state,o=r||n.height==="auto"||n.contentHeight==="auto",i=!o&&n.height!=null?n.height:"",s=["fc",r?"fc-media-print":"fc-media-screen",`fc-direction-${n.direction}`,e.theme.getClass("root")];return Fd()||s.push("fc-liquid-hack"),e.children(s,i,o,r)}componentDidMount(){let{emitter:e}=this.props;e.on("_beforeprint",this.handleBeforePrint),e.on("_afterprint",this.handleAfterPrint)}componentWillUnmount(){let{emitter:e}=this.props;e.off("_beforeprint",this.handleBeforePrint),e.off("_afterprint",this.handleAfterPrint)}}class Fn{constructor(e){this.component=e.component,this.isHitComboAllowed=e.isHitComboAllowed||null}destroy(){}}function XC(t,e){return{component:t,el:e.el,useEventCenter:e.useEventCenter!=null?e.useEventCenter:!0,isHitComboAllowed:e.isHitComboAllowed||null}}function Qs(t){return{[t.component.uid]:t}}const es={};class Wn extends Ze{constructor(e,n){super(e,n),this.handleRefresh=()=>{let r=this.computeTiming();r.state.nowDate.valueOf()!==this.state.nowDate.valueOf()&&this.setState(r.state),this.clearTimeout(),this.setTimeout(r.waitMs)},this.handleVisibilityChange=()=>{document.hidden||this.handleRefresh()},this.state=this.computeTiming().state}render(){let{props:e,state:n}=this;return e.children(n.nowDate,n.todayRange)}componentDidMount(){this.setTimeout(),this.context.nowManager.addResetListener(this.handleRefresh),document.addEventListener("visibilitychange",this.handleVisibilityChange)}componentDidUpdate(e){e.unit!==this.props.unit&&(this.clearTimeout(),this.setTimeout())}componentWillUnmount(){this.clearTimeout(),this.context.nowManager.removeResetListener(this.handleRefresh),document.removeEventListener("visibilitychange",this.handleVisibilityChange)}computeTiming(){let{props:e,context:n}=this,r=n.nowManager.getDateMarker(),{nowIndicatorSnap:o}=n.options;o==="auto"&&(o=/year|month|week|day/.test(e.unit)||(e.unitValue||1)===1);let i,s;return o?(i=n.dateEnv.startOf(r,e.unit),s=n.dateEnv.add(i,ve(1,e.unit)).valueOf()-r.valueOf()):(i=r,s=1e3*60),s=Math.min(1e3*60*60*24,s),{state:{nowDate:i,todayRange:JC(i)},waitMs:s}}setTimeout(e=this.computeTiming().waitMs){this.timeoutId=setTimeout(()=>{const n=this.computeTiming();this.setState(n.state,()=>{this.setTimeout(n.waitMs)})},e)}clearTimeout(){this.timeoutId&&clearTimeout(this.timeoutId)}}Wn.contextType=At;function JC(t){let e=Re(t),n=Be(e,1);return{start:e,end:n}}class ew{getCurrentData(){return this.currentDataManager.getCurrentData()}dispatch(e){this.currentDataManager.dispatch(e)}get view(){return this.getCurrentData().viewApi}batchRendering(e){e()}updateSize(){this.trigger("_resize",!0)}setOption(e,n){this.dispatch({type:"SET_OPTION",optionName:e,rawOptionValue:n})}getOption(e){return this.currentDataManager.currentCalendarOptionsInput[e]}getAvailableLocaleCodes(){return Object.keys(this.getCurrentData().availableRawLocales)}on(e,n){let{currentDataManager:r}=this;r.currentCalendarOptionsRefiners[e]?r.emitter.on(e,n):console.warn(`Unknown listener name '${e}'`)}off(e,n){this.currentDataManager.emitter.off(e,n)}trigger(e,...n){this.currentDataManager.emitter.trigger(e,...n)}changeView(e,n){this.batchRendering(()=>{if(this.unselect(),n)if(n.start&&n.end)this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e}),this.dispatch({type:"SET_OPTION",optionName:"visibleRange",rawOptionValue:n});else{let{dateEnv:r}=this.getCurrentData();this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e,dateMarker:r.createMarker(n)})}else this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e})})}zoomTo(e,n){let r=this.getCurrentData(),o;n=n||"day",o=r.viewSpecs[n]||this.getUnitViewSpec(n),this.unselect(),o?this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:o.type,dateMarker:e}):this.dispatch({type:"CHANGE_DATE",dateMarker:e})}getUnitViewSpec(e){let{viewSpecs:n,toolbarConfig:r}=this.getCurrentData(),o=[].concat(r.header?r.header.viewsWithButtons:[],r.footer?r.footer.viewsWithButtons:[]),i,s;for(let a in n)o.push(a);for(i=0;i<o.length;i+=1)if(s=n[o[i]],s&&s.singleUnit===e)return s;return null}prev(){this.unselect(),this.dispatch({type:"PREV"})}next(){this.unselect(),this.dispatch({type:"NEXT"})}prevYear(){let e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.dateEnv.addYears(e.currentDate,-1)})}nextYear(){let e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.dateEnv.addYears(e.currentDate,1)})}today(){let e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.nowManager.getDateMarker()})}gotoDate(e){let n=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:n.dateEnv.createMarker(e)})}incrementDate(e){let n=this.getCurrentData(),r=ve(e);r&&(this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:n.dateEnv.add(n.currentDate,r)}))}getDate(){let e=this.getCurrentData();return e.dateEnv.toDate(e.currentDate)}formatDate(e,n){let{dateEnv:r}=this.getCurrentData();return r.format(r.createMarker(e),Ie(n))}formatRange(e,n,r){let{dateEnv:o}=this.getCurrentData();return o.formatRange(o.createMarker(e),o.createMarker(n),Ie(r),r)}formatIso(e,n){let{dateEnv:r}=this.getCurrentData();return r.formatIso(r.createMarker(e),{omitTime:n})}select(e,n){let r;n==null?e.start!=null?r=e:r={start:e,end:null}:r={start:e,end:n};let o=this.getCurrentData(),i=zC(r,o.dateEnv,ve({days:1}));i&&(this.dispatch({type:"SELECT_DATES",selection:i}),Pd(i,null,o))}unselect(e){let n=this.getCurrentData();n.dateSelection&&(this.dispatch({type:"UNSELECT_DATES"}),OC(e,n))}addEvent(e,n){if(e instanceof Me){let s=e._def,a=e._instance;return this.getCurrentData().eventStore.defs[s.defId]||(this.dispatch({type:"ADD_EVENTS",eventStore:Ji({def:s,instance:a})}),this.triggerEventAdd(e)),e}let r=this.getCurrentData(),o;if(n instanceof xn)o=n.internalEventSource;else if(typeof n=="boolean")n&&([o]=Ls(r.eventSources));else if(n!=null){let s=this.getEventSourceById(n);if(!s)return console.warn(`Could not find an event source with ID "${n}"`),null;o=s.internalEventSource}let i=Ad(e,o,r,!1);if(i){let s=new Me(r,i.def,i.def.recurringDef?null:i.instance);return this.dispatch({type:"ADD_EVENTS",eventStore:Ji(i)}),this.triggerEventAdd(s),s}return null}triggerEventAdd(e){let{emitter:n}=this.getCurrentData();n.trigger("eventAdd",{event:e,relatedEvents:[],revert:()=>{this.dispatch({type:"REMOVE_EVENTS",eventStore:Nd(e)})}})}getEventById(e){let n=this.getCurrentData(),{defs:r,instances:o}=n.eventStore;e=String(e);for(let i in r){let s=r[i];if(s.publicId===e){if(s.recurringDef)return new Me(n,s,null);for(let a in o){let l=o[a];if(l.defId===s.defId)return new Me(n,s,l)}}}return null}getEvents(){let e=this.getCurrentData();return an(e.eventStore,e)}removeAllEvents(){this.dispatch({type:"REMOVE_ALL_EVENTS"})}getEventSources(){let e=this.getCurrentData(),n=e.eventSources,r=[];for(let o in n)r.push(new xn(e,n[o]));return r}getEventSourceById(e){let n=this.getCurrentData(),r=n.eventSources;e=String(e);for(let o in r)if(r[o].publicId===e)return new xn(n,r[o]);return null}addEventSource(e){let n=this.getCurrentData();if(e instanceof xn)return n.eventSources[e.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[e.internalEventSource]}),e;let r=kd(e,n);return r?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[r]}),new xn(n,r)):null}removeAllEventSources(){this.dispatch({type:"REMOVE_ALL_EVENT_SOURCES"})}refetchEvents(){this.dispatch({type:"FETCH_EVENT_SOURCES",isRefetch:!0})}scrollToTime(e){let n=ve(e);n&&this.trigger("_scrollRequest",{time:n})}}function tw(t,e){return t.left>=e.left&&t.left<e.right&&t.top>=e.top&&t.top<e.bottom}function Wd(t,e){let n={left:Math.max(t.left,e.left),right:Math.min(t.right,e.right),top:Math.max(t.top,e.top),bottom:Math.min(t.bottom,e.bottom)};return n.left<n.right&&n.top<n.bottom?n:!1}function nw(t,e){return{left:Math.min(Math.max(t.left,e.left),e.right),top:Math.min(Math.max(t.top,e.top),e.bottom)}}function rw(t){return{left:(t.left+t.right)/2,top:(t.top+t.bottom)/2}}function ow(t,e){return{left:t.left-e.left,top:t.top-e.top}}const wi=Ke();class iw{constructor(){this.getKeysForEventDefs=le(this._getKeysForEventDefs),this.splitDateSelection=le(this._splitDateSpan),this.splitEventStore=le(this._splitEventStore),this.splitIndividualUi=le(this._splitIndividualUi),this.splitEventDrag=le(this._splitInteraction),this.splitEventResize=le(this._splitInteraction),this.eventUiBuilders={}}splitProps(e){let n=this.getKeyInfo(e),r=this.getKeysForEventDefs(e.eventStore),o=this.splitDateSelection(e.dateSelection),i=this.splitIndividualUi(e.eventUiBases,r),s=this.splitEventStore(e.eventStore,r),a=this.splitEventDrag(e.eventDrag),l=this.splitEventResize(e.eventResize),c={};this.eventUiBuilders=Tt(n,(u,f)=>this.eventUiBuilders[f]||le(sw));for(let u in n){let f=n[u],p=s[u]||wi,h=this.eventUiBuilders[u];c[u]={businessHours:f.businessHours||e.businessHours,dateSelection:o[u]||null,eventStore:p,eventUiBases:h(e.eventUiBases[""],f.ui,i[u]),eventSelection:p.instances[e.eventSelection]?e.eventSelection:"",eventDrag:a[u]||null,eventResize:l[u]||null}}return c}_splitDateSpan(e){let n={};if(e){let r=this.getKeysForDateSpan(e);for(let o of r)n[o]=e}return n}_getKeysForEventDefs(e){return Tt(e.defs,n=>this.getKeysForEventDef(n))}_splitEventStore(e,n){let{defs:r,instances:o}=e,i={};for(let s in r)for(let a of n[s])i[a]||(i[a]=Ke()),i[a].defs[s]=r[s];for(let s in o){let a=o[s];for(let l of n[a.defId])i[l]&&(i[l].instances[s]=a)}return i}_splitIndividualUi(e,n){let r={};for(let o in e)if(o)for(let i of n[o])r[i]||(r[i]={}),r[i][o]=e[o];return r}_splitInteraction(e){let n={};if(e){let r=this._splitEventStore(e.affectedEvents,this._getKeysForEventDefs(e.affectedEvents)),o=this._getKeysForEventDefs(e.mutatedEvents),i=this._splitEventStore(e.mutatedEvents,o),s=a=>{n[a]||(n[a]={affectedEvents:r[a]||wi,mutatedEvents:i[a]||wi,isEvent:e.isEvent})};for(let a in r)s(a);for(let a in i)s(a)}return n}}function sw(t,e,n){let r=[];t&&r.push(t),e&&r.push(e);let o={"":_d(r)};return n&&Object.assign(o,n),o}function Ud(t,e,n,r){return{dow:t.getUTCDay(),isDisabled:!!(r&&(!r.activeRange||!xt(r.activeRange,t))),isOther:!!(r&&!xt(r.currentRange,t)),isToday:!!(e&&xt(e,t)),isPast:!!(e&&t<e.start),isFuture:!!(e&&t>=e.end)}}function Zs(t,e){let n=["fc-day",`fc-day-${uS[t.dow]}`];return t.isDisabled?n.push("fc-day-disabled"):(t.isToday&&(n.push("fc-day-today"),n.push(e.getClass("today"))),t.isPast&&n.push("fc-day-past"),t.isFuture&&n.push("fc-day-future"),t.isOther&&n.push("fc-day-other")),n}const aw=Ie({year:"numeric",month:"long",day:"numeric"}),lw=Ie({week:"long"});function bo(t,e,n="day",r=!0){const{dateEnv:o,options:i,calendarApi:s}=t;let a=o.format(e,n==="week"?lw:aw);if(i.navLinks){let l=o.toDate(e);const c=u=>{let f=n==="day"?i.navLinkDayClick:n==="week"?i.navLinkWeekClick:null;typeof f=="function"?f.call(s,o.toDate(e),u):(typeof f=="string"&&(n=f),s.zoomTo(e,n))};return Object.assign({title:ar(i.navLinkHint,[a,l],a),"data-navlink":""},r?pd(c):{onClick:c})}return{"aria-label":a}}let xi=null;function cw(){return xi===null&&(xi=uw()),xi}function uw(){let t=document.createElement("div");sr(t,{position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}),t.innerHTML="<div></div>",document.body.appendChild(t);let n=t.firstChild.getBoundingClientRect().left>t.getBoundingClientRect().left;return Os(t),n}let Di;function dw(){return Di||(Di=fw()),Di}function fw(){let t=document.createElement("div");t.style.overflow="scroll",t.style.position="absolute",t.style.top="-9999px",t.style.left="-9999px",document.body.appendChild(t);let e=Gd(t);return document.body.removeChild(t),e}function Gd(t){return{x:t.offsetHeight-t.clientHeight,y:t.offsetWidth-t.clientWidth}}function pw(t,e=!1){let n=window.getComputedStyle(t),r=parseInt(n.borderLeftWidth,10)||0,o=parseInt(n.borderRightWidth,10)||0,i=parseInt(n.borderTopWidth,10)||0,s=parseInt(n.borderBottomWidth,10)||0,a=Gd(t),l=a.y-r-o,c=a.x-i-s,u={borderLeft:r,borderRight:o,borderTop:i,borderBottom:s,scrollbarBottom:c,scrollbarLeft:0,scrollbarRight:0};return cw()&&n.direction==="rtl"?u.scrollbarLeft=l:u.scrollbarRight=l,e&&(u.paddingLeft=parseInt(n.paddingLeft,10)||0,u.paddingRight=parseInt(n.paddingRight,10)||0,u.paddingTop=parseInt(n.paddingTop,10)||0,u.paddingBottom=parseInt(n.paddingBottom,10)||0),u}function hw(t,e=!1,n){let r=Ks(t),o=pw(t,e),i={left:r.left+o.borderLeft+o.scrollbarLeft,right:r.right-o.borderRight-o.scrollbarRight,top:r.top+o.borderTop,bottom:r.bottom-o.borderBottom-o.scrollbarBottom};return e&&(i.left+=o.paddingLeft,i.right-=o.paddingRight,i.top+=o.paddingTop,i.bottom-=o.paddingBottom),i}function Ks(t){let e=t.getBoundingClientRect();return{left:e.left+window.scrollX,top:e.top+window.scrollY,right:e.right+window.scrollX,bottom:e.bottom+window.scrollY}}function gw(t){let e=Yd(t),n=t.getBoundingClientRect();for(let r of e){let o=Wd(n,r.getBoundingClientRect());if(o)n=o;else return null}return n}function Yd(t){let e=[];for(;t instanceof HTMLElement;){let n=window.getComputedStyle(t);if(n.position==="fixed")break;/(auto|scroll)/.test(n.overflow+n.overflowY+n.overflowX)&&e.push(t),t=t.parentNode}return e}class Ln{constructor(e,n,r,o){this.els=n;let i=this.originClientRect=e.getBoundingClientRect();r&&this.buildElHorizontals(i.left),o&&this.buildElVerticals(i.top)}buildElHorizontals(e){let n=[],r=[];for(let o of this.els){let i=o.getBoundingClientRect();n.push(i.left-e),r.push(i.right-e)}this.lefts=n,this.rights=r}buildElVerticals(e){let n=[],r=[];for(let o of this.els){let i=o.getBoundingClientRect();n.push(i.top-e),r.push(i.bottom-e)}this.tops=n,this.bottoms=r}leftToIndex(e){let{lefts:n,rights:r}=this,o=n.length,i;for(i=0;i<o;i+=1)if(e>=n[i]&&e<r[i])return i}topToIndex(e){let{tops:n,bottoms:r}=this,o=n.length,i;for(i=0;i<o;i+=1)if(e>=n[i]&&e<r[i])return i}getWidth(e){return this.rights[e]-this.lefts[e]}getHeight(e){return this.bottoms[e]-this.tops[e]}similarTo(e){return Ir(this.tops||[],e.tops||[])&&Ir(this.bottoms||[],e.bottoms||[])&&Ir(this.lefts||[],e.lefts||[])&&Ir(this.rights||[],e.rights||[])}}function Ir(t,e){const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(Math.round(t[r])!==Math.round(e[r]))return!1;return!0}class Xs{getMaxScrollTop(){return this.getScrollHeight()-this.getClientHeight()}getMaxScrollLeft(){return this.getScrollWidth()-this.getClientWidth()}canScrollVertically(){return this.getMaxScrollTop()>0}canScrollHorizontally(){return this.getMaxScrollLeft()>0}canScrollUp(){return this.getScrollTop()>0}canScrollDown(){return this.getScrollTop()<this.getMaxScrollTop()}canScrollLeft(){return this.getScrollLeft()>0}canScrollRight(){return this.getScrollLeft()<this.getMaxScrollLeft()}}class mw extends Xs{constructor(e){super(),this.el=e}getScrollTop(){return this.el.scrollTop}getScrollLeft(){return this.el.scrollLeft}setScrollTop(e){this.el.scrollTop=e}setScrollLeft(e){this.el.scrollLeft=e}getScrollWidth(){return this.el.scrollWidth}getScrollHeight(){return this.el.scrollHeight}getClientHeight(){return this.el.clientHeight}getClientWidth(){return this.el.clientWidth}}class vw extends Xs{getScrollTop(){return window.scrollY}getScrollLeft(){return window.scrollX}setScrollTop(e){window.scroll(window.scrollX,e)}setScrollLeft(e){window.scroll(e,window.scrollY)}getScrollWidth(){return document.documentElement.scrollWidth}getScrollHeight(){return document.documentElement.scrollHeight}getClientHeight(){return document.documentElement.clientHeight}getClientWidth(){return document.documentElement.clientWidth}}class vt extends Se{constructor(){super(...arguments),this.uid=hn()}prepareHits(){}queryHit(e,n,r,o){return null}isValidSegDownEl(e){return!this.props.eventDrag&&!this.props.eventResize&&!He(e,".fc-event-mirror")}isValidDateDownEl(e){return!He(e,".fc-event:not(.fc-bg-event)")&&!He(e,".fc-more-link")&&!He(e,"a[data-navlink]")&&!He(e,".fc-popover")}}class qd{constructor(e=n=>n.thickness||1){this.getEntryThickness=e,this.strictOrder=!1,this.allowReslicing=!1,this.maxCoord=-1,this.maxStackCnt=-1,this.levelCoords=[],this.entriesByLevel=[],this.stackCnts={}}addSegs(e){let n=[];for(let r of e)this.insertEntry(r,n);return n}insertEntry(e,n){let r=this.findInsertion(e);this.isInsertionValid(r,e)?this.insertEntryAt(e,r):this.handleInvalidInsertion(r,e,n)}isInsertionValid(e,n){return(this.maxCoord===-1||e.levelCoord+this.getEntryThickness(n)<=this.maxCoord)&&(this.maxStackCnt===-1||e.stackCnt<this.maxStackCnt)}handleInvalidInsertion(e,n,r){if(this.allowReslicing&&e.touchingEntry){const o=Object.assign(Object.assign({},n),{span:Js(n.span,e.touchingEntry.span)});r.push(o),this.splitEntry(n,e.touchingEntry,r)}else r.push(n)}splitEntry(e,n,r){let o=e.span,i=n.span;o.start<i.start&&this.insertEntry({index:e.index,thickness:e.thickness,span:{start:o.start,end:i.start}},r),o.end>i.end&&this.insertEntry({index:e.index,thickness:e.thickness,span:{start:i.end,end:o.end}},r)}insertEntryAt(e,n){let{entriesByLevel:r,levelCoords:o}=this;n.lateral===-1?(Ti(o,n.level,n.levelCoord),Ti(r,n.level,[e])):Ti(r[n.level],n.lateral,e),this.stackCnts[ln(e)]=n.stackCnt}findInsertion(e){let{levelCoords:n,entriesByLevel:r,strictOrder:o,stackCnts:i}=this,s=n.length,a=0,l=-1,c=-1,u=null,f=0;for(let m=0;m<s;m+=1){const g=n[m];if(!o&&g>=a+this.getEntryThickness(e))break;let v=r[m],b,S=ns(v,e.span.start,ts),R=S[0]+S[1];for(;(b=v[R])&&b.span.start<e.span.end;){let C=g+this.getEntryThickness(b);C>a&&(a=C,u=b,l=m,c=R),C===a&&(f=Math.max(f,i[ln(b)]+1)),R+=1}}let p=0;if(u)for(p=l+1;p<s&&n[p]<a;)p+=1;let h=-1;return p<s&&n[p]===a&&(h=ns(r[p],e.span.end,ts)[0]),{touchingLevel:l,touchingLateral:c,touchingEntry:u,stackCnt:f,levelCoord:a,level:p,lateral:h}}toRects(){let{entriesByLevel:e,levelCoords:n}=this,r=e.length,o=[];for(let i=0;i<r;i+=1){let s=e[i],a=n[i];for(let l of s)o.push(Object.assign(Object.assign({},l),{thickness:this.getEntryThickness(l),levelCoord:a}))}return o}}function ts(t){return t.span.end}function ln(t){return t.index+":"+t.span.start}function yw(t){let e=[];for(let n of t){let r=[],o={span:n.span,entries:[n]};for(let i of e)Js(i.span,o.span)?o={entries:i.entries.concat(o.entries),span:bw(i.span,o.span)}:r.push(i);r.push(o),e=r}return e}function bw(t,e){return{start:Math.min(t.start,e.start),end:Math.max(t.end,e.end)}}function Js(t,e){let n=Math.max(t.start,e.start),r=Math.min(t.end,e.end);return n<r?{start:n,end:r}:null}function Ti(t,e,n){t.splice(e,0,n)}function ns(t,e,n){let r=0,o=t.length;if(!o||e<n(t[r]))return[0,0];if(e>n(t[o-1]))return[o,0];for(;r<o;){let i=Math.floor(r+(o-r)/2),s=n(t[i]);if(e<s)o=i;else if(e>s)r=i+1;else return[i,1]}return[r,0]}class Ew{constructor(e,n){this.emitter=new Go}destroy(){}setMirrorIsVisible(e){}setMirrorNeedsRevert(e){}setAutoScrollEnabled(e){}}const ea={};function Sw(t,e){return!t||e>10?Ie({weekday:"short"}):e>1?Ie({weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}):Ie({weekday:"long"})}const Qd="fc-col-header-cell";function Zd(t){return t.text}class Cw extends Se{render(){let{dateEnv:e,options:n,theme:r,viewApi:o}=this.context,{props:i}=this,{date:s,dateProfile:a}=i,l=Ud(s,i.todayRange,null,a),c=[Qd].concat(Zs(l,r)),u=e.format(s,i.dayHeaderFormat),f=!l.isDisabled&&i.colCnt>1?bo(this.context,s):{},p=e.toDate(s);e.namedTimeZoneImpl&&(p=Ht(p,36e5));let h=Object.assign(Object.assign(Object.assign({date:p,view:o},i.extraRenderProps),{text:u}),l);return w(et,{elTag:"th",elClasses:c,elAttrs:Object.assign({role:"columnheader",colSpan:i.colSpan,"data-date":l.isDisabled?void 0:js(s)},i.extraDataAttrs),renderProps:h,generatorName:"dayHeaderContent",customGenerator:n.dayHeaderContent,defaultGenerator:Zd,classNameGenerator:n.dayHeaderClassNames,didMount:n.dayHeaderDidMount,willUnmount:n.dayHeaderWillUnmount},m=>w("div",{className:"fc-scrollgrid-sync-inner"},!l.isDisabled&&w(m,{elTag:"a",elAttrs:f,elClasses:["fc-col-header-cell-cushion",i.isSticky&&"fc-sticky"]})))}}const ww=Ie({weekday:"long"});class xw extends Se{render(){let{props:e}=this,{dateEnv:n,theme:r,viewApi:o,options:i}=this.context,s=Be(new Date(2592e5),e.dow),a={dow:e.dow,isDisabled:!1,isFuture:!1,isPast:!1,isToday:!1,isOther:!1},l=n.format(s,e.dayHeaderFormat),c=Object.assign(Object.assign(Object.assign(Object.assign({date:s},a),{view:o}),e.extraRenderProps),{text:l});return w(et,{elTag:"th",elClasses:[Qd,...Zs(a,r),...e.extraClassNames||[]],elAttrs:Object.assign({role:"columnheader",colSpan:e.colSpan},e.extraDataAttrs),renderProps:c,generatorName:"dayHeaderContent",customGenerator:i.dayHeaderContent,defaultGenerator:Zd,classNameGenerator:i.dayHeaderClassNames,didMount:i.dayHeaderDidMount,willUnmount:i.dayHeaderWillUnmount},u=>w("div",{className:"fc-scrollgrid-sync-inner"},w(u,{elTag:"a",elClasses:["fc-col-header-cell-cushion",e.isSticky&&"fc-sticky"],elAttrs:{"aria-label":n.format(s,ww)}})))}}class Kd extends Se{constructor(){super(...arguments),this.createDayHeaderFormatter=le(Dw)}render(){let{context:e}=this,{dates:n,dateProfile:r,datesRepDistinctDays:o,renderIntro:i}=this.props,s=this.createDayHeaderFormatter(e.options.dayHeaderFormat,o,n.length);return w(Wn,{unit:"day"},(a,l)=>w("tr",{role:"row"},i&&i("day"),n.map(c=>o?w(Cw,{key:c.toISOString(),date:c,dateProfile:r,todayRange:l,colCnt:n.length,dayHeaderFormat:s}):w(xw,{key:c.getUTCDay(),dow:c.getUTCDay(),dayHeaderFormat:s}))))}}function Dw(t,e,n){return t||Sw(e,n)}class Xd{constructor(e,n){let r=e.start,{end:o}=e,i=[],s=[],a=-1;for(;r<o;)n.isHiddenDay(r)?i.push(a+.5):(a+=1,i.push(a),s.push(r)),r=Be(r,1);this.dates=s,this.indices=i,this.cnt=s.length}sliceRange(e){let n=this.getDateDayIndex(e.start),r=this.getDateDayIndex(Be(e.end,-1)),o=Math.max(0,n),i=Math.min(this.cnt-1,r);return o=Math.ceil(o),i=Math.floor(i),o<=i?{firstIndex:o,lastIndex:i,isStart:n===o,isEnd:r===i}:null}getDateDayIndex(e){let{indices:n}=this,r=Math.floor(gn(this.dates[0],e));return r<0?n[0]-1:r>=n.length?n[n.length-1]+1:n[r]}}class Jd{constructor(e,n){let{dates:r}=e,o,i,s;if(n){for(i=r[0].getUTCDay(),o=1;o<r.length&&r[o].getUTCDay()!==i;o+=1);s=Math.ceil(r.length/o)}else s=1,o=r.length;this.rowCnt=s,this.colCnt=o,this.daySeries=e,this.cells=this.buildCells(),this.headerDates=this.buildHeaderDates()}buildCells(){let e=[];for(let n=0;n<this.rowCnt;n+=1){let r=[];for(let o=0;o<this.colCnt;o+=1)r.push(this.buildCell(n,o));e.push(r)}return e}buildCell(e,n){let r=this.daySeries.dates[e*this.colCnt+n];return{key:r.toISOString(),date:r}}buildHeaderDates(){let e=[];for(let n=0;n<this.colCnt;n+=1)e.push(this.cells[0][n].date);return e}sliceRange(e){let{colCnt:n}=this,r=this.daySeries.sliceRange(e),o=[];if(r){let{firstIndex:i,lastIndex:s}=r,a=i;for(;a<=s;){let l=Math.floor(a/n),c=Math.min((l+1)*n,s+1);o.push({row:l,firstCol:a%n,lastCol:(c-1)%n,isStart:r.isStart&&a===i,isEnd:r.isEnd&&c-1===s}),a=c}}return o}}class ef{constructor(){this.sliceBusinessHours=le(this._sliceBusinessHours),this.sliceDateSelection=le(this._sliceDateSpan),this.sliceEventStore=le(this._sliceEventStore),this.sliceEventDrag=le(this._sliceInteraction),this.sliceEventResize=le(this._sliceInteraction),this.forceDayIfListItem=!1}sliceProps(e,n,r,o,...i){let{eventUiBases:s}=e,a=this.sliceEventStore(e.eventStore,s,n,r,...i);return{dateSelectionSegs:this.sliceDateSelection(e.dateSelection,n,r,s,o,...i),businessHourSegs:this.sliceBusinessHours(e.businessHours,n,r,o,...i),fgEventSegs:a.fg,bgEventSegs:a.bg,eventDrag:this.sliceEventDrag(e.eventDrag,s,n,r,...i),eventResize:this.sliceEventResize(e.eventResize,s,n,r,...i),eventSelection:e.eventSelection}}sliceNowDate(e,n,r,o,...i){return this._sliceDateSpan({range:{start:e,end:Ht(e,1)},allDay:!1},n,r,{},o,...i)}_sliceBusinessHours(e,n,r,o,...i){return e?this._sliceEventStore(fn(e,Pr(n,!!r),o),{},n,r,...i).bg:[]}_sliceEventStore(e,n,r,o,...i){if(e){let s=rc(e,n,Pr(r,!!o),o);return{bg:this.sliceEventRanges(s.bg,i),fg:this.sliceEventRanges(s.fg,i)}}return{bg:[],fg:[]}}_sliceInteraction(e,n,r,o,...i){if(!e)return null;let s=rc(e.mutatedEvents,n,Pr(r,!!o),o);return{segs:this.sliceEventRanges(s.fg,i),affectedInstances:e.affectedEvents.instances,isEvent:e.isEvent}}_sliceDateSpan(e,n,r,o,i,...s){if(!e)return[];let a=Pr(n,!!r),l=dn(e.range,a);if(l){e=Object.assign(Object.assign({},e),{range:l});let c=YC(e,o,i),u=this.sliceRange(e.range,...s);for(let f of u)f.eventRange=c;return u}return[]}sliceEventRanges(e,n){let r=[];for(let o of e)r.push(...this.sliceEventRange(o,n));return r}sliceEventRange(e,n){let r=e.range;this.forceDayIfListItem&&e.ui.display==="list-item"&&(r={start:r.start,end:Be(r.start,1)});let o=this.sliceRange(r,...n);for(let i of o)i.eventRange=e,i.isStart=e.isStart&&i.isStart,i.isEnd=e.isEnd&&i.isEnd;return o}}function Pr(t,e){let n=t.activeRange;return e?n:{start:Ht(n.start,t.slotMinTime.milliseconds),end:Ht(n.end,t.slotMaxTime.milliseconds-864e5)}}function tf(t,e,n){let{instances:r}=t.mutatedEvents;for(let o in r)if(!Wo(e.validRange,r[o].range))return!1;return nf({eventDrag:t},n)}function Tw(t,e,n){return Wo(e.validRange,t.range)?nf({dateSelection:t},n):!1}function nf(t,e){let n=e.getCurrentData(),r=Object.assign({businessHours:n.businessHours,dateSelection:"",eventStore:n.eventStore,eventUiBases:n.eventUiBases,eventSelection:"",eventDrag:null,eventResize:null},t);return(e.pluginHooks.isPropsValid||Aw)(r,e)}function Aw(t,e,n={},r){return!(t.eventDrag&&!Rw(t,e,n,r)||t.dateSelection&&!_w(t,e,n,r))}function Rw(t,e,n,r){let o=e.getCurrentData(),i=t.eventDrag,s=i.mutatedEvents,a=s.defs,l=s.instances,c=yo(a,i.isEvent?t.eventUiBases:{"":o.selectionConfig});r&&(c=Tt(c,r));let u=DC(t.eventStore,i.affectedEvents.instances),f=u.defs,p=u.instances,h=yo(f,t.eventUiBases);for(let m in l){let g=l[m],v=g.range,b=c[g.defId],S=a[g.defId];if(!rf(b.constraints,v,u,t.businessHours,e))return!1;let{eventOverlap:R}=e.options,C=typeof R=="function"?R:null;for(let T in p){let k=p[T];if(zs(v,k.range)&&(h[k.defId].overlap===!1&&i.isEvent||b.overlap===!1||C&&!C(new Me(e,f[k.defId],k),new Me(e,S,g))))return!1}let A=o.eventStore;for(let T of b.allows){let k=Object.assign(Object.assign({},n),{range:g.range,allDay:S.allDay}),P=A.defs[S.defId],H=A.instances[m],W;if(P?W=new Me(e,P,H):W=new Me(e,S),!T(Ys(k,e),W))return!1}}return!0}function _w(t,e,n,r){let o=t.eventStore,i=o.defs,s=o.instances,a=t.dateSelection,l=a.range,{selectionConfig:c}=e.getCurrentData();if(r&&(c=r(c)),!rf(c.constraints,l,o,t.businessHours,e))return!1;let{selectOverlap:u}=e.options,f=typeof u=="function"?u:null;for(let p in s){let h=s[p];if(zs(l,h.range)&&(c.overlap===!1||f&&!f(new Me(e,i[h.defId],h),null)))return!1}for(let p of c.allows){let h=Object.assign(Object.assign({},n),a);if(!p(Ys(h,e),null))return!1}return!0}function rf(t,e,n,r,o){for(let i of t)if(!Mw(kw(i,e,n,r,o),e))return!1;return!0}function kw(t,e,n,r,o){return t==="businessHours"?Ai(fn(r,e,o)):typeof t=="string"?Ai(Uo(n,i=>i.groupId===t)):typeof t=="object"&&t?Ai(fn(t,e,o)):[]}function Ai(t){let{instances:e}=t,n=[];for(let r in e)n.push(e[r].range);return n}function Mw(t,e){for(let n of t)if(Wo(n,e))return!0;return!1}const Nr=/^(visible|hidden)$/;class Ow extends Se{constructor(){super(...arguments),this.handleEl=e=>{this.el=e,mt(this.props.elRef,e)}}render(){let{props:e}=this,{liquid:n,liquidIsAbsolute:r}=e,o=n&&r,i=["fc-scroller"];return n&&(r?i.push("fc-scroller-liquid-absolute"):i.push("fc-scroller-liquid")),w("div",{ref:this.handleEl,className:i.join(" "),style:{overflowX:e.overflowX,overflowY:e.overflowY,left:o&&-(e.overcomeLeft||0)||"",right:o&&-(e.overcomeRight||0)||"",bottom:o&&-(e.overcomeBottom||0)||"",marginLeft:!o&&-(e.overcomeLeft||0)||"",marginRight:!o&&-(e.overcomeRight||0)||"",marginBottom:!o&&-(e.overcomeBottom||0)||"",maxHeight:e.maxHeight||""}},e.children)}needsXScrolling(){if(Nr.test(this.props.overflowX))return!1;let{el:e}=this,n=this.el.getBoundingClientRect().width-this.getYScrollbarWidth(),{children:r}=e;for(let o=0;o<r.length;o+=1)if(r[o].getBoundingClientRect().width>n)return!0;return!1}needsYScrolling(){if(Nr.test(this.props.overflowY))return!1;let{el:e}=this,n=this.el.getBoundingClientRect().height-this.getXScrollbarWidth(),{children:r}=e;for(let o=0;o<r.length;o+=1)if(r[o].getBoundingClientRect().height>n)return!0;return!1}getXScrollbarWidth(){return Nr.test(this.props.overflowX)?0:this.el.offsetHeight-this.el.clientHeight}getYScrollbarWidth(){return Nr.test(this.props.overflowY)?0:this.el.offsetWidth-this.el.clientWidth}}class wt{constructor(e){this.masterCallback=e,this.currentMap={},this.depths={},this.callbackMap={},this.handleValue=(n,r)=>{let{depths:o,currentMap:i}=this,s=!1,a=!1;n!==null?(s=r in i,i[r]=n,o[r]=(o[r]||0)+1,a=!0):(o[r]-=1,o[r]||(delete i[r],delete this.callbackMap[r],s=!0)),this.masterCallback&&(s&&this.masterCallback(null,String(r)),a&&this.masterCallback(n,String(r)))}}createRef(e){let n=this.callbackMap[e];return n||(n=this.callbackMap[e]=r=>{this.handleValue(r,String(e))}),n}collect(e,n,r){return WS(this.currentMap,e,n,r)}getAll(){return Ls(this.currentMap)}}function Iw(t){let e=zE(t,".fc-scrollgrid-shrink"),n=0;for(let r of e)n=Math.max(n,nS(r));return Math.ceil(n)}function of(t,e){return t.liquid&&e.liquid}function Pw(t,e){return e.maxHeight!=null||of(t,e)}function Nw(t,e,n,r){let{expandRows:o}=n;return typeof e.content=="function"?e.content(n):w("table",{role:"presentation",className:[e.tableClassName,t.syncRowHeights?"fc-scrollgrid-sync-table":""].join(" "),style:{minWidth:n.tableMinWidth,width:n.clientWidth,height:o?n.clientHeight:""}},n.tableColGroupNode,w(r?"thead":"tbody",{role:"presentation"},typeof e.rowContent=="function"?e.rowContent(n):e.rowContent))}function jw(t,e){return Lt(t,e,lt)}function Vw(t,e){let n=[];for(let r of t){let o=r.span||1;for(let i=0;i<o;i+=1)n.push(w("col",{style:{width:r.width==="shrink"?$w(e):r.width||"",minWidth:r.minWidth||""}}))}return w("colgroup",{},...n)}function $w(t){return t??4}function Bw(t){for(let e of t)if(e.width==="shrink")return!0;return!1}function Lw(t,e){let n=["fc-scrollgrid",e.theme.getClass("table")];return t&&n.push("fc-scrollgrid-liquid"),n}function Hw(t,e){let n=["fc-scrollgrid-section",`fc-scrollgrid-section-${t.type}`,t.className];return e&&t.liquid&&t.maxHeight==null&&n.push("fc-scrollgrid-section-liquid"),t.isSticky&&n.push("fc-scrollgrid-section-sticky"),n}function rs(t){return w("div",{className:"fc-scrollgrid-sticky-shim",style:{width:t.clientWidth,minWidth:t.tableMinWidth}})}function Eo(t){let{stickyHeaderDates:e}=t;return(e==null||e==="auto")&&(e=t.height==="auto"||t.viewHeight==="auto"),e}function sf(t){let{stickyFooterScrollbar:e}=t;return(e==null||e==="auto")&&(e=t.height==="auto"||t.viewHeight==="auto"),e}class ta extends Se{constructor(){super(...arguments),this.processCols=le(e=>e,jw),this.renderMicroColGroup=le(Vw),this.scrollerRefs=new wt,this.scrollerElRefs=new wt(this._handleScrollerEl.bind(this)),this.state={shrinkWidth:null,forceYScrollbars:!1,scrollerClientWidths:{},scrollerClientHeights:{}},this.handleSizing=()=>{this.safeSetState(Object.assign({shrinkWidth:this.computeShrinkWidth()},this.computeScrollerDims()))}}render(){let{props:e,state:n,context:r}=this,o=e.sections||[],i=this.processCols(e.cols),s=this.renderMicroColGroup(i,n.shrinkWidth),a=Lw(e.liquid,r);e.collapsibleWidth&&a.push("fc-scrollgrid-collapsible");let l=o.length,c=0,u,f=[],p=[],h=[];for(;c<l&&(u=o[c]).type==="header";)f.push(this.renderSection(u,s,!0)),c+=1;for(;c<l&&(u=o[c]).type==="body";)p.push(this.renderSection(u,s,!1)),c+=1;for(;c<l&&(u=o[c]).type==="footer";)h.push(this.renderSection(u,s,!0)),c+=1;let m=!Fd();const g={role:"rowgroup"};return w("table",{role:"grid",className:a.join(" "),style:{height:e.height}},!!(!m&&f.length)&&w("thead",g,...f),!!(!m&&p.length)&&w("tbody",g,...p),!!(!m&&h.length)&&w("tfoot",g,...h),m&&w("tbody",g,...f,...p,...h))}renderSection(e,n,r){return"outerContent"in e?w(Ae,{key:e.key},e.outerContent):w("tr",{key:e.key,role:"presentation",className:Hw(e,this.props.liquid).join(" ")},this.renderChunkTd(e,n,e.chunk,r))}renderChunkTd(e,n,r,o){if("outerContent"in r)return r.outerContent;let{props:i}=this,{forceYScrollbars:s,scrollerClientWidths:a,scrollerClientHeights:l}=this.state,c=Pw(i,e),u=of(i,e),f=i.liquid?s?"scroll":c?"auto":"hidden":"visible",p=e.key,h=Nw(e,r,{tableColGroupNode:n,tableMinWidth:"",clientWidth:!i.collapsibleWidth&&a[p]!==void 0?a[p]:null,clientHeight:l[p]!==void 0?l[p]:null,expandRows:e.expandRows,syncRowHeights:!1,rowSyncHeights:[],reportRowHeightChange:()=>{}},o);return w(o?"th":"td",{ref:r.elRef,role:"presentation"},w("div",{className:`fc-scroller-harness${u?" fc-scroller-harness-liquid":""}`},w(Ow,{ref:this.scrollerRefs.createRef(p),elRef:this.scrollerElRefs.createRef(p),overflowY:f,overflowX:i.liquid?"hidden":"visible",maxHeight:e.maxHeight,liquid:u,liquidIsAbsolute:!0},h)))}_handleScrollerEl(e,n){let r=zw(this.props.sections,n);r&&mt(r.chunk.scrollerElRef,e)}componentDidMount(){this.handleSizing(),this.context.addResizeHandler(this.handleSizing)}componentDidUpdate(){this.handleSizing()}componentWillUnmount(){this.context.removeResizeHandler(this.handleSizing)}computeShrinkWidth(){return Bw(this.props.cols)?Iw(this.scrollerElRefs.getAll()):0}computeScrollerDims(){let e=dw(),{scrollerRefs:n,scrollerElRefs:r}=this,o=!1,i={},s={};for(let a in n.currentMap){let l=n.currentMap[a];if(l&&l.needsYScrolling()){o=!0;break}}for(let a of this.props.sections){let l=a.key,c=r.currentMap[l];if(c){let u=c.parentNode;i[l]=Math.floor(u.getBoundingClientRect().width-(o?e.y:0)),s[l]=Math.floor(u.getBoundingClientRect().height)}}return{forceYScrollbars:o,scrollerClientWidths:i,scrollerClientHeights:s}}}ta.addStateEquality({scrollerClientWidths:lt,scrollerClientHeights:lt});function zw(t,e){for(let n of t)if(n.key===e)return n;return null}class na extends Se{constructor(){super(...arguments),this.buildPublicEvent=le((e,n,r)=>new Me(e,n,r)),this.handleEl=e=>{this.el=e,mt(this.props.elRef,e),e&&oc(e,this.props.seg)}}render(){const{props:e,context:n}=this,{options:r}=n,{seg:o}=e,{eventRange:i}=o,{ui:s}=i,a={event:this.buildPublicEvent(n,i.def,i.instance),view:n.viewApi,timeText:e.timeText,textColor:s.textColor,backgroundColor:s.backgroundColor,borderColor:s.borderColor,isDraggable:!e.disableDragging&&VC(o,n),isStartResizable:!e.disableResizing&&$C(o,n),isEndResizable:!e.disableResizing&&BC(o),isMirror:!!(e.isDragging||e.isResizing||e.isDateSelecting),isStart:!!o.isStart,isEnd:!!o.isEnd,isPast:!!e.isPast,isFuture:!!e.isFuture,isToday:!!e.isToday,isSelected:!!e.isSelected,isDragging:!!e.isDragging,isResizing:!!e.isResizing};return w(et,{elRef:this.handleEl,elTag:e.elTag,elAttrs:e.elAttrs,elClasses:[...LC(a),...o.eventRange.ui.classNames,...e.elClasses||[]],elStyle:e.elStyle,renderProps:a,generatorName:"eventContent",customGenerator:r.eventContent,defaultGenerator:e.defaultGenerator,classNameGenerator:r.eventClassNames,didMount:r.eventDidMount,willUnmount:r.eventWillUnmount},e.children)}componentDidUpdate(e){this.el&&this.props.seg!==e.seg&&oc(this.el,this.props.seg)}}class ra extends Se{render(){let{props:e,context:n}=this,{options:r}=n,{seg:o}=e,{ui:i}=o.eventRange,s=r.eventTimeFormat||e.defaultTimeFormat,a=$d(o,s,n,e.defaultDisplayEventTime,e.defaultDisplayEventEnd);return w(na,Object.assign({},e,{elTag:"a",elStyle:{borderColor:i.borderColor,backgroundColor:i.backgroundColor},elAttrs:Ld(o,n),defaultGenerator:Fw,timeText:a}),(l,c)=>w(Ae,null,w(l,{elTag:"div",elClasses:["fc-event-main"],elStyle:{color:c.textColor}}),!!c.isStartResizable&&w("div",{className:"fc-event-resizer fc-event-resizer-start"}),!!c.isEndResizable&&w("div",{className:"fc-event-resizer fc-event-resizer-end"})))}}ra.addPropsEquality({seg:lt});function Fw(t){return w("div",{className:"fc-event-main-frame"},t.timeText&&w("div",{className:"fc-event-time"},t.timeText),w("div",{className:"fc-event-title-container"},w("div",{className:"fc-event-title fc-sticky"},t.event.title||w(Ae,null," "))))}const oa=t=>w(At.Consumer,null,e=>{let{options:n}=e,r={isAxis:t.isAxis,date:e.dateEnv.toDate(t.date),view:e.viewApi};return w(et,{elRef:t.elRef,elTag:t.elTag||"div",elAttrs:t.elAttrs,elClasses:t.elClasses,elStyle:t.elStyle,renderProps:r,generatorName:"nowIndicatorContent",customGenerator:n.nowIndicatorContent,classNameGenerator:n.nowIndicatorClassNames,didMount:n.nowIndicatorDidMount,willUnmount:n.nowIndicatorWillUnmount},t.children)}),Ww=Ie({day:"numeric"});class ia extends Se{constructor(){super(...arguments),this.refineRenderProps=Ur(Uw)}render(){let{props:e,context:n}=this,{options:r}=n,o=this.refineRenderProps({date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,isMonthStart:e.isMonthStart||!1,showDayNumber:e.showDayNumber,extraRenderProps:e.extraRenderProps,viewApi:n.viewApi,dateEnv:n.dateEnv,monthStartFormat:r.monthStartFormat});return w(et,{elRef:e.elRef,elTag:e.elTag,elAttrs:Object.assign(Object.assign({},e.elAttrs),o.isDisabled?{}:{"data-date":js(e.date)}),elClasses:[...Zs(o,n.theme),...e.elClasses||[]],elStyle:e.elStyle,renderProps:o,generatorName:"dayCellContent",customGenerator:r.dayCellContent,defaultGenerator:e.defaultGenerator,classNameGenerator:o.isDisabled?void 0:r.dayCellClassNames,didMount:r.dayCellDidMount,willUnmount:r.dayCellWillUnmount},e.children)}}function sa(t){return!!(t.dayCellContent||Ki("dayCellContent",t))}function Uw(t){let{date:e,dateEnv:n,dateProfile:r,isMonthStart:o}=t,i=Ud(e,t.todayRange,null,r),s=t.showDayNumber?n.format(e,o?t.monthStartFormat:Ww):"";return Object.assign(Object.assign(Object.assign({date:n.toDate(e),view:t.viewApi},i),{isMonthStart:o,dayNumberText:s}),t.extraRenderProps)}class af extends Se{render(){let{props:e}=this,{seg:n}=e;return w(na,{elTag:"div",elClasses:["fc-bg-event"],elStyle:{backgroundColor:n.eventRange.ui.backgroundColor},defaultGenerator:Gw,seg:n,timeText:"",isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,isPast:e.isPast,isFuture:e.isFuture,isToday:e.isToday,disableDragging:!0,disableResizing:!0})}}function Gw(t){let{title:e}=t.event;return e&&w("div",{className:"fc-event-title"},t.event.title)}function lf(t){return w("div",{className:`fc-${t}`})}const cf=t=>w(At.Consumer,null,e=>{let{dateEnv:n,options:r}=e,{date:o}=t,i=r.weekNumberFormat||t.defaultFormat,s=n.computeWeekNumber(o),a=n.format(o,i),l={num:s,text:a,date:o};return w(et,{elRef:t.elRef,elTag:t.elTag,elAttrs:t.elAttrs,elClasses:t.elClasses,elStyle:t.elStyle,renderProps:l,generatorName:"weekNumberContent",customGenerator:r.weekNumberContent,defaultGenerator:Yw,classNameGenerator:r.weekNumberClassNames,didMount:r.weekNumberDidMount,willUnmount:r.weekNumberWillUnmount},t.children)});function Yw(t){return t.text}const Ri=10;class qw extends Se{constructor(){super(...arguments),this.state={titleId:zo()},this.handleRootEl=e=>{this.rootEl=e,this.props.elRef&&mt(this.props.elRef,e)},this.handleDocumentMouseDown=e=>{const n=dd(e);this.rootEl.contains(n)||this.handleCloseClick()},this.handleDocumentKeyDown=e=>{e.key==="Escape"&&this.handleCloseClick()},this.handleCloseClick=()=>{let{onClose:e}=this.props;e&&e()}}render(){let{theme:e,options:n}=this.context,{props:r,state:o}=this,i=["fc-popover",e.getClass("popover")].concat(r.extraClassNames||[]);return RE(w("div",Object.assign({},r.extraAttrs,{id:r.id,className:i.join(" "),"aria-labelledby":o.titleId,ref:this.handleRootEl}),w("div",{className:"fc-popover-header "+e.getClass("popoverHeader")},w("span",{className:"fc-popover-title",id:o.titleId},r.title),w("span",{className:"fc-popover-close "+e.getIconClass("close"),title:n.closeHint,onClick:this.handleCloseClick})),w("div",{className:"fc-popover-body "+e.getClass("popoverContent")},r.children)),r.parentEl)}componentDidMount(){document.addEventListener("mousedown",this.handleDocumentMouseDown),document.addEventListener("keydown",this.handleDocumentKeyDown),this.updateSize()}componentWillUnmount(){document.removeEventListener("mousedown",this.handleDocumentMouseDown),document.removeEventListener("keydown",this.handleDocumentKeyDown)}updateSize(){let{isRtl:e}=this.context,{alignmentEl:n,alignGridTop:r}=this.props,{rootEl:o}=this,i=gw(n);if(i){let s=o.getBoundingClientRect(),a=r?He(n,".fc-scrollgrid").getBoundingClientRect().top:i.top,l=e?i.right-s.width:i.left;a=Math.max(a,Ri),l=Math.min(l,document.documentElement.clientWidth-Ri-s.width),l=Math.max(l,Ri);let c=o.offsetParent.getBoundingClientRect();sr(o,{top:a-c.top,left:l-c.left})}}}class Qw extends vt{constructor(){super(...arguments),this.handleRootEl=e=>{this.rootEl=e,e?this.context.registerInteractiveComponent(this,{el:e,useEventCenter:!1}):this.context.unregisterInteractiveComponent(this)}}render(){let{options:e,dateEnv:n}=this.context,{props:r}=this,{startDate:o,todayRange:i,dateProfile:s}=r,a=n.format(o,e.dayPopoverFormat);return w(ia,{elRef:this.handleRootEl,date:o,dateProfile:s,todayRange:i},(l,c,u)=>w(qw,{elRef:u.ref,id:r.id,title:a,extraClassNames:["fc-more-popover"].concat(u.className||[]),extraAttrs:u,parentEl:r.parentEl,alignmentEl:r.alignmentEl,alignGridTop:r.alignGridTop,onClose:r.onClose},sa(e)&&w(l,{elTag:"div",elClasses:["fc-more-popover-misc"]}),r.children))}queryHit(e,n,r,o){let{rootEl:i,props:s}=this;return e>=0&&e<r&&n>=0&&n<o?{dateProfile:s.dateProfile,dateSpan:Object.assign({allDay:!s.forceTimed,range:{start:s.startDate,end:s.endDate}},s.extraDateSpan),dayEl:i,rect:{left:0,top:0,right:r,bottom:o},layer:1}:null}}class uf extends Se{constructor(){super(...arguments),this.state={isPopoverOpen:!1,popoverId:zo()},this.handleLinkEl=e=>{this.linkEl=e,this.props.elRef&&mt(this.props.elRef,e)},this.handleClick=e=>{let{props:n,context:r}=this,{moreLinkClick:o}=r.options,i=sc(n).start;function s(a){let{def:l,instance:c,range:u}=a.eventRange;return{event:new Me(r,l,c),start:r.dateEnv.toDate(u.start),end:r.dateEnv.toDate(u.end),isStart:a.isStart,isEnd:a.isEnd}}typeof o=="function"&&(o=o({date:i,allDay:!!n.allDayDate,allSegs:n.allSegs.map(s),hiddenSegs:n.hiddenSegs.map(s),jsEvent:e,view:r.viewApi})),!o||o==="popover"?this.setState({isPopoverOpen:!0}):typeof o=="string"&&r.calendarApi.zoomTo(i,o)},this.handlePopoverClose=()=>{this.setState({isPopoverOpen:!1})}}render(){let{props:e,state:n}=this;return w(At.Consumer,null,r=>{let{viewApi:o,options:i,calendarApi:s}=r,{moreLinkText:a}=i,{moreCnt:l}=e,c=sc(e),u=typeof a=="function"?a.call(s,l):`+${l} ${a}`,f=ar(i.moreLinkHint,[l],u),p={num:l,shortText:`+${l}`,text:u,view:o};return w(Ae,null,!!e.moreCnt&&w(et,{elTag:e.elTag||"a",elRef:this.handleLinkEl,elClasses:[...e.elClasses||[],"fc-more-link"],elStyle:e.elStyle,elAttrs:Object.assign(Object.assign(Object.assign({},e.elAttrs),pd(this.handleClick)),{title:f,"aria-expanded":n.isPopoverOpen,"aria-controls":n.isPopoverOpen?n.popoverId:""}),renderProps:p,generatorName:"moreLinkContent",customGenerator:i.moreLinkContent,defaultGenerator:e.defaultGenerator||Zw,classNameGenerator:i.moreLinkClassNames,didMount:i.moreLinkDidMount,willUnmount:i.moreLinkWillUnmount},e.children),n.isPopoverOpen&&w(Qw,{id:n.popoverId,startDate:c.start,endDate:c.end,dateProfile:e.dateProfile,todayRange:e.todayRange,extraDateSpan:e.extraDateSpan,parentEl:this.parentEl,alignmentEl:e.alignmentElRef?e.alignmentElRef.current:this.linkEl,alignGridTop:e.alignGridTop,forceTimed:e.forceTimed,onClose:this.handlePopoverClose},e.popoverContent()))})}componentDidMount(){this.updateParentEl()}componentDidUpdate(){this.updateParentEl()}updateParentEl(){this.linkEl&&(this.parentEl=He(this.linkEl,".fc-view-harness"))}}function Zw(t){return t.text}function sc(t){if(t.allDayDate)return{start:t.allDayDate,end:Be(t.allDayDate,1)};let{hiddenSegs:e}=t;return{start:df(e),end:Xw(e)}}function df(t){return t.reduce(Kw).eventRange.range.start}function Kw(t,e){return t.eventRange.range.start<e.eventRange.range.start?t:e}function Xw(t){return t.reduce(Jw).eventRange.range.end}function Jw(t,e){return t.eventRange.range.end>e.eventRange.range.end?t:e}class ex{constructor(){this.handlers=[]}set(e){this.currentValue=e;for(let n of this.handlers)n(e)}subscribe(e){this.handlers.push(e),this.currentValue!==void 0&&e(this.currentValue)}}class tx extends ex{constructor(){super(...arguments),this.map=new Map}handle(e){const{map:n}=this;let r=!1;e.isActive?(n.set(e.id,e),r=!0):n.has(e.id)&&(n.delete(e.id),r=!0),r&&this.set(n)}}const nx=[],ff={code:"en",week:{dow:0,doy:4},direction:"ltr",buttonText:{prev:"prev",next:"next",prevYear:"prev year",nextYear:"next year",year:"year",today:"today",month:"month",week:"week",day:"day",list:"list"},weekText:"W",weekTextLong:"Week",closeHint:"Close",timeHint:"Time",eventHint:"Event",allDayText:"all-day",moreLinkText:"more",noEventsText:"No events to display"},pf=Object.assign(Object.assign({},ff),{buttonHints:{prev:"Previous $0",next:"Next $0",today(t,e){return e==="day"?"Today":`This ${t}`}},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint(t){return`Show ${t} more event${t===1?"":"s"}`}});function rx(t){let e=t.length>0?t[0].code:"en",n=nx.concat(t),r={en:pf};for(let o of n)r[o.code]=o;return{map:r,defaultCode:e}}function hf(t,e){return typeof t=="object"&&!Array.isArray(t)?gf(t.code,[t.code],t):ox(t,e)}function ox(t,e){let n=[].concat(t||[]),r=ix(n,e)||pf;return gf(t,n,r)}function ix(t,e){for(let n=0;n<t.length;n+=1){let r=t[n].toLocaleLowerCase().split("-");for(let o=r.length;o>0;o-=1){let i=r.slice(0,o).join("-");if(e[i])return e[i]}}return null}function gf(t,e,n){let r=Bs([ff,n],["buttonText"]);delete r.code;let{week:o}=r;return delete r.week,{codeArg:t,codes:e,week:o,simpleNumberFormat:new Intl.NumberFormat(t),options:r}}function Rt(t){return{id:hn(),name:t.name,premiumReleaseDate:t.premiumReleaseDate?new Date(t.premiumReleaseDate):void 0,deps:t.deps||[],reducers:t.reducers||[],isLoadingFuncs:t.isLoadingFuncs||[],contextInit:[].concat(t.contextInit||[]),eventRefiners:t.eventRefiners||{},eventDefMemberAdders:t.eventDefMemberAdders||[],eventSourceRefiners:t.eventSourceRefiners||{},isDraggableTransformers:t.isDraggableTransformers||[],eventDragMutationMassagers:t.eventDragMutationMassagers||[],eventDefMutationAppliers:t.eventDefMutationAppliers||[],dateSelectionTransformers:t.dateSelectionTransformers||[],datePointTransforms:t.datePointTransforms||[],dateSpanTransforms:t.dateSpanTransforms||[],views:t.views||{},viewPropsTransformers:t.viewPropsTransformers||[],isPropsValid:t.isPropsValid||null,externalDefTransforms:t.externalDefTransforms||[],viewContainerAppends:t.viewContainerAppends||[],eventDropTransformers:t.eventDropTransformers||[],componentInteractions:t.componentInteractions||[],calendarInteractions:t.calendarInteractions||[],themeClasses:t.themeClasses||{},eventSourceDefs:t.eventSourceDefs||[],cmdFormatter:t.cmdFormatter,recurringTypes:t.recurringTypes||[],namedTimeZonedImpl:t.namedTimeZonedImpl,initialView:t.initialView||"",elementDraggingImpl:t.elementDraggingImpl,optionChangeHandlers:t.optionChangeHandlers||{},scrollGridImpl:t.scrollGridImpl||null,listenerRefiners:t.listenerRefiners||{},optionRefiners:t.optionRefiners||{},propSetHandlers:t.propSetHandlers||{}}}function sx(t,e){let n={},r={premiumReleaseDate:void 0,reducers:[],isLoadingFuncs:[],contextInit:[],eventRefiners:{},eventDefMemberAdders:[],eventSourceRefiners:{},isDraggableTransformers:[],eventDragMutationMassagers:[],eventDefMutationAppliers:[],dateSelectionTransformers:[],datePointTransforms:[],dateSpanTransforms:[],views:{},viewPropsTransformers:[],isPropsValid:null,externalDefTransforms:[],viewContainerAppends:[],eventDropTransformers:[],componentInteractions:[],calendarInteractions:[],themeClasses:{},eventSourceDefs:[],cmdFormatter:null,recurringTypes:[],namedTimeZonedImpl:null,initialView:"",elementDraggingImpl:null,optionChangeHandlers:{},scrollGridImpl:null,listenerRefiners:{},optionRefiners:{},propSetHandlers:{}};function o(i){for(let s of i){const a=s.name,l=n[a];l===void 0?(n[a]=s.id,o(s.deps),r=lx(r,s)):l!==s.id&&console.warn(`Duplicate plugin '${a}'`)}}return t&&o(t),o(e),r}function ax(){let t=[],e=[],n;return(r,o)=>((!n||!Lt(r,t)||!Lt(o,e))&&(n=sx(r,o)),t=r,e=o,n)}function lx(t,e){return{premiumReleaseDate:cx(t.premiumReleaseDate,e.premiumReleaseDate),reducers:t.reducers.concat(e.reducers),isLoadingFuncs:t.isLoadingFuncs.concat(e.isLoadingFuncs),contextInit:t.contextInit.concat(e.contextInit),eventRefiners:Object.assign(Object.assign({},t.eventRefiners),e.eventRefiners),eventDefMemberAdders:t.eventDefMemberAdders.concat(e.eventDefMemberAdders),eventSourceRefiners:Object.assign(Object.assign({},t.eventSourceRefiners),e.eventSourceRefiners),isDraggableTransformers:t.isDraggableTransformers.concat(e.isDraggableTransformers),eventDragMutationMassagers:t.eventDragMutationMassagers.concat(e.eventDragMutationMassagers),eventDefMutationAppliers:t.eventDefMutationAppliers.concat(e.eventDefMutationAppliers),dateSelectionTransformers:t.dateSelectionTransformers.concat(e.dateSelectionTransformers),datePointTransforms:t.datePointTransforms.concat(e.datePointTransforms),dateSpanTransforms:t.dateSpanTransforms.concat(e.dateSpanTransforms),views:Object.assign(Object.assign({},t.views),e.views),viewPropsTransformers:t.viewPropsTransformers.concat(e.viewPropsTransformers),isPropsValid:e.isPropsValid||t.isPropsValid,externalDefTransforms:t.externalDefTransforms.concat(e.externalDefTransforms),viewContainerAppends:t.viewContainerAppends.concat(e.viewContainerAppends),eventDropTransformers:t.eventDropTransformers.concat(e.eventDropTransformers),calendarInteractions:t.calendarInteractions.concat(e.calendarInteractions),componentInteractions:t.componentInteractions.concat(e.componentInteractions),themeClasses:Object.assign(Object.assign({},t.themeClasses),e.themeClasses),eventSourceDefs:t.eventSourceDefs.concat(e.eventSourceDefs),cmdFormatter:e.cmdFormatter||t.cmdFormatter,recurringTypes:t.recurringTypes.concat(e.recurringTypes),namedTimeZonedImpl:e.namedTimeZonedImpl||t.namedTimeZonedImpl,initialView:t.initialView||e.initialView,elementDraggingImpl:t.elementDraggingImpl||e.elementDraggingImpl,optionChangeHandlers:Object.assign(Object.assign({},t.optionChangeHandlers),e.optionChangeHandlers),scrollGridImpl:e.scrollGridImpl||t.scrollGridImpl,listenerRefiners:Object.assign(Object.assign({},t.listenerRefiners),e.listenerRefiners),optionRefiners:Object.assign(Object.assign({},t.optionRefiners),e.optionRefiners),propSetHandlers:Object.assign(Object.assign({},t.propSetHandlers),e.propSetHandlers)}}function cx(t,e){return t===void 0?e:e===void 0?t:new Date(Math.max(t.valueOf(),e.valueOf()))}class Wt extends Er{}Wt.prototype.classes={root:"fc-theme-standard",tableCellShaded:"fc-cell-shaded",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active"};Wt.prototype.baseIconClass="fc-icon";Wt.prototype.iconClasses={close:"fc-icon-x",prev:"fc-icon-chevron-left",next:"fc-icon-chevron-right",prevYear:"fc-icon-chevrons-left",nextYear:"fc-icon-chevrons-right"};Wt.prototype.rtlIconClasses={prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"};Wt.prototype.iconOverrideOption="buttonIcons";Wt.prototype.iconOverrideCustomButtonOption="icon";Wt.prototype.iconOverridePrefix="fc-icon-";function ux(t,e){let n={},r;for(r in t)os(r,n,t,e);for(r in e)os(r,n,t,e);return n}function os(t,e,n,r){if(e[t])return e[t];let o=dx(t,e,n,r);return o&&(e[t]=o),o}function dx(t,e,n,r){let o=n[t],i=r[t],s=u=>o&&o[u]!==null?o[u]:i&&i[u]!==null?i[u]:null,a=s("component"),l=s("superType"),c=null;if(l){if(l===t)throw new Error("Can't have a custom view type that references itself");c=os(l,e,n,r)}return!a&&c&&(a=c.component),a?{type:t,component:a,defaults:Object.assign(Object.assign({},c?c.defaults:{}),o?o.rawOptions:{}),overrides:Object.assign(Object.assign({},c?c.overrides:{}),i?i.rawOptions:{})}:null}function ac(t){return Tt(t,fx)}function fx(t){let e=typeof t=="function"?{component:t}:t,{component:n}=e;return e.content?n=lc(e):n&&!(n.prototype instanceof Se)&&(n=lc(Object.assign(Object.assign({},e),{content:n}))),{superType:e.type,component:n,rawOptions:e}}function lc(t){return e=>w(At.Consumer,null,n=>w(et,{elTag:"div",elClasses:Cd(n.viewSpec),renderProps:Object.assign(Object.assign({},e),{nextDayThreshold:n.options.nextDayThreshold}),generatorName:void 0,customGenerator:t.content,classNameGenerator:t.classNames,didMount:t.didMount,willUnmount:t.willUnmount}))}function px(t,e,n,r){let o=ac(t),i=ac(e.views),s=ux(o,i);return Tt(s,a=>hx(a,i,e,n,r))}function hx(t,e,n,r,o){let i=t.overrides.duration||t.defaults.duration||r.duration||n.duration,s=null,a="",l="",c={};if(i&&(s=gx(i),s)){let p=Zi(s);a=p.unit,p.value===1&&(l=a,c=e[a]?e[a].rawOptions:{})}let u=p=>{let h=p.buttonText||{},m=t.defaults.buttonTextKey;return m!=null&&h[m]!=null?h[m]:h[t.type]!=null?h[t.type]:h[l]!=null?h[l]:null},f=p=>{let h=p.buttonHints||{},m=t.defaults.buttonTextKey;return m!=null&&h[m]!=null?h[m]:h[t.type]!=null?h[t.type]:h[l]!=null?h[l]:null};return{type:t.type,component:t.component,duration:s,durationUnit:a,singleUnit:l,optionDefaults:t.defaults,optionOverrides:Object.assign(Object.assign({},c),t.overrides),buttonTextOverride:u(r)||u(n)||t.overrides.buttonText,buttonTextDefault:u(o)||t.defaults.buttonText||u(lr)||t.type,buttonTitleOverride:f(r)||f(n)||t.overrides.buttonHint,buttonTitleDefault:f(o)||t.defaults.buttonHint||f(lr)}}let cc={};function gx(t){let e=JSON.stringify(t),n=cc[e];return n===void 0&&(n=ve(t),cc[e]=n),n}function mx(t,e){switch(e.type){case"CHANGE_VIEW_TYPE":t=e.viewType}return t}function vx(t,e){switch(e.type){case"CHANGE_DATE":return e.dateMarker;default:return t}}function yx(t,e,n){let r=t.initialDate;return r!=null?e.createMarker(r):n.getDateMarker()}function bx(t,e){switch(e.type){case"SET_OPTION":return Object.assign(Object.assign({},t),{[e.optionName]:e.rawOptionValue});default:return t}}function Ex(t,e,n,r){let o;switch(e.type){case"CHANGE_VIEW_TYPE":return r.build(e.dateMarker||n);case"CHANGE_DATE":return r.build(e.dateMarker);case"PREV":if(o=r.buildPrev(t,n),o.isValid)return o;break;case"NEXT":if(o=r.buildNext(t,n),o.isValid)return o;break}return t}function Sx(t,e,n){let r=e?e.activeRange:null;return vf({},Rx(t,n),r,n)}function Cx(t,e,n,r){let o=n?n.activeRange:null;switch(e.type){case"ADD_EVENT_SOURCES":return vf(t,e.sources,o,r);case"REMOVE_EVENT_SOURCE":return xx(t,e.sourceId);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return n?yf(t,o,r):t;case"FETCH_EVENT_SOURCES":return aa(t,e.sourceIds?vd(e.sourceIds):bf(t,r),o,e.isRefetch||!1,r);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return Ax(t,e.sourceId,e.fetchId,e.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return t}}function wx(t,e,n){let r=e?e.activeRange:null;return aa(t,bf(t,n),r,!0,n)}function mf(t){for(let e in t)if(t[e].isFetching)return!0;return!1}function vf(t,e,n,r){let o={};for(let i of e)o[i.sourceId]=i;return n&&(o=yf(o,n,r)),Object.assign(Object.assign({},t),o)}function xx(t,e){return un(t,n=>n.sourceId!==e)}function yf(t,e,n){return aa(t,un(t,r=>Dx(r,e,n)),e,!1,n)}function Dx(t,e,n){return Ef(t,n)?!n.options.lazyFetching||!t.fetchRange||t.isFetching||e.start<t.fetchRange.start||e.end>t.fetchRange.end:!t.latestFetchId}function aa(t,e,n,r,o){let i={};for(let s in t){let a=t[s];e[s]?i[s]=Tx(a,n,r,o):i[s]=a}return i}function Tx(t,e,n,r){let{options:o,calendarApi:i}=r,s=r.pluginHooks.eventSourceDefs[t.sourceDefId],a=hn();return s.fetch({eventSource:t,range:e,isRefetch:n,context:r},l=>{let{rawEvents:c}=l;o.eventSourceSuccess&&(c=o.eventSourceSuccess.call(i,c,l.response)||c),t.success&&(c=t.success.call(i,c,l.response)||c),r.dispatch({type:"RECEIVE_EVENTS",sourceId:t.sourceId,fetchId:a,fetchRange:e,rawEvents:c})},l=>{let c=!1;o.eventSourceFailure&&(o.eventSourceFailure.call(i,l),c=!0),t.failure&&(t.failure(l),c=!0),c||console.warn(l.message,l),r.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:t.sourceId,fetchId:a,fetchRange:e,error:l})}),Object.assign(Object.assign({},t),{isFetching:!0,latestFetchId:a})}function Ax(t,e,n,r){let o=t[e];return o&&n===o.latestFetchId?Object.assign(Object.assign({},t),{[e]:Object.assign(Object.assign({},o),{isFetching:!1,fetchRange:r})}):t}function bf(t,e){return un(t,n=>Ef(n,e))}function Rx(t,e){let n=Md(e),r=[].concat(t.eventSources||[]),o=[];t.initialEvents&&r.unshift(t.initialEvents),t.events&&r.unshift(t.events);for(let i of r){let s=kd(i,e,n);s&&o.push(s)}return o}function Ef(t,e){return!e.pluginHooks.eventSourceDefs[t.sourceDefId].ignoreRange}function _x(t,e){switch(e.type){case"UNSELECT_DATES":return null;case"SELECT_DATES":return e.selection;default:return t}}function kx(t,e){switch(e.type){case"UNSELECT_EVENT":return"";case"SELECT_EVENT":return e.eventInstanceId;default:return t}}function Mx(t,e){let n;switch(e.type){case"UNSET_EVENT_DRAG":return null;case"SET_EVENT_DRAG":return n=e.state,{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return t}}function Ox(t,e){let n;switch(e.type){case"UNSET_EVENT_RESIZE":return null;case"SET_EVENT_RESIZE":return n=e.state,{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return t}}function Ix(t,e,n,r,o){let i=t.headerToolbar?uc(t.headerToolbar,t,e,n,r,o):null,s=t.footerToolbar?uc(t.footerToolbar,t,e,n,r,o):null;return{header:i,footer:s}}function uc(t,e,n,r,o,i){let s={},a=[],l=!1;for(let c in t){let u=t[c],f=Px(u,e,n,r,o,i);s[c]=f.widgets,a.push(...f.viewsWithButtons),l=l||f.hasTitle}return{sectionWidgets:s,viewsWithButtons:a,hasTitle:l}}function Px(t,e,n,r,o,i){let s=e.direction==="rtl",a=e.customButtons||{},l=n.buttonText||{},c=e.buttonText||{},u=n.buttonHints||{},f=e.buttonHints||{},p=t?t.split(" "):[],h=[],m=!1;return{widgets:p.map(v=>v.split(",").map(b=>{if(b==="title")return m=!0,{buttonName:b};let S,R,C,A,T,k;if(S=a[b])C=P=>{S.click&&S.click.call(P.target,P,P.target)},(A=r.getCustomButtonIconClass(S))||(A=r.getIconClass(b,s))||(T=S.text),k=S.hint||S.text;else if(R=o[b]){h.push(b),C=()=>{i.changeView(b)},(T=R.buttonTextOverride)||(A=r.getIconClass(b,s))||(T=R.buttonTextDefault);let P=R.buttonTextOverride||R.buttonTextDefault;k=ar(R.buttonTitleOverride||R.buttonTitleDefault||e.viewHint,[P,b],P)}else if(i[b])if(C=()=>{i[b]()},(T=l[b])||(A=r.getIconClass(b,s))||(T=c[b]),b==="prevYear"||b==="nextYear"){let P=b==="prevYear"?"prev":"next";k=ar(u[P]||f[P],[c.year||"year","year"],c[b])}else k=P=>ar(u[b]||f[b],[c[P]||P,P],c[b]);return{buttonName:b,buttonClick:C,buttonIcon:A,buttonText:T,buttonHint:k}})),viewsWithButtons:h,hasTitle:m}}class Nx{constructor(e,n,r){this.type=e,this.getCurrentData=n,this.dateEnv=r}get calendar(){return this.getCurrentData().calendarApi}get title(){return this.getCurrentData().viewTitle}get activeStart(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.start)}get activeEnd(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.end)}get currentStart(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.start)}get currentEnd(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.end)}getOption(e){return this.getCurrentData().options[e]}}let jx={ignoreRange:!0,parseMeta(t){return Array.isArray(t.events)?t.events:null},fetch(t,e){e({rawEvents:t.eventSource.meta})}};const Vx=Rt({name:"array-event-source",eventSourceDefs:[jx]});let $x={parseMeta(t){return typeof t.events=="function"?t.events:null},fetch(t,e,n){const{dateEnv:r}=t.context,o=t.eventSource.meta;qC(o.bind(null,Hd(t.range,r)),i=>e({rawEvents:i}),n)}};const Bx=Rt({name:"func-event-source",eventSourceDefs:[$x]}),Lx={method:String,extraParams:M,startParam:String,endParam:String,timeZoneParam:String};let Hx={parseMeta(t){return t.url&&(t.format==="json"||!t.format)?{url:t.url,format:"json",method:(t.method||"GET").toUpperCase(),extraParams:t.extraParams,startParam:t.startParam,endParam:t.endParam,timeZoneParam:t.timeZoneParam}:null},fetch(t,e,n){const{meta:r}=t.eventSource,o=Fx(r,t.range,t.context);QC(r.method,r.url,o).then(([i,s])=>{e({rawEvents:i,response:s})},n)}};const zx=Rt({name:"json-event-source",eventSourceRefiners:Lx,eventSourceDefs:[Hx]});function Fx(t,e,n){let{dateEnv:r,options:o}=n,i,s,a,l,c={};return i=t.startParam,i==null&&(i=o.startParam),s=t.endParam,s==null&&(s=o.endParam),a=t.timeZoneParam,a==null&&(a=o.timeZoneParam),typeof t.extraParams=="function"?l=t.extraParams():l=t.extraParams||{},Object.assign(c,l),c[i]=r.formatIso(e.start),c[s]=r.formatIso(e.end),r.timeZone!=="local"&&(c[a]=r.timeZone),c}const Wx={daysOfWeek:M,startTime:ve,endTime:ve,duration:ve,startRecur:M,endRecur:M};let Ux={parse(t,e){if(t.daysOfWeek||t.startTime||t.endTime||t.startRecur||t.endRecur){let n={daysOfWeek:t.daysOfWeek||null,startTime:t.startTime||null,endTime:t.endTime||null,startRecur:t.startRecur?e.createMarker(t.startRecur):null,endRecur:t.endRecur?e.createMarker(t.endRecur):null,dateEnv:e},r;return t.duration&&(r=t.duration),!r&&t.startTime&&t.endTime&&(r=sS(t.endTime,t.startTime)),{allDayGuess:!t.startTime&&!t.endTime,duration:r,typeData:n}}return null},expand(t,e,n){let r=dn(e,{start:t.startRecur,end:t.endRecur});return r?Yx(t.daysOfWeek,t.startTime,t.dateEnv,n,r):[]}};const Gx=Rt({name:"simple-recurring-event",recurringTypes:[Ux],eventRefiners:Wx});function Yx(t,e,n,r,o){let i=t?vd(t):null,s=Re(o.start),a=o.end,l=[];for(e&&(e.milliseconds<0?a=Be(a,1):e.milliseconds>=1e3*60*60*24&&(s=Be(s,-1)));s<a;){let c;(!i||i[s.getUTCDay()])&&(e?c=r.add(s,e):c=s,l.push(r.createMarker(n.toDate(c)))),s=Be(s,1)}return l}const qx=Rt({name:"change-handler",optionChangeHandlers:{events(t,e){dc([t],e)},eventSources:dc}});function dc(t,e){let n=Ls(e.getCurrentData().eventSources);if(n.length===1&&t.length===1&&Array.isArray(n[0]._raw)&&Array.isArray(t[0])){e.dispatch({type:"RESET_RAW_EVENTS",sourceId:n[0].sourceId,rawEvents:t[0]});return}let r=[];for(let o of t){let i=!1;for(let s=0;s<n.length;s+=1)if(n[s]._raw===o){n.splice(s,1),i=!0;break}i||r.push(o)}for(let o of n)e.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:o.sourceId});for(let o of r)e.calendarApi.addEventSource(o)}function Qx(t,e){e.emitter.trigger("datesSet",Object.assign(Object.assign({},Hd(t.activeRange,e.dateEnv)),{view:e.viewApi}))}function Zx(t,e){let{emitter:n}=e;n.hasHandlers("eventsSet")&&n.trigger("eventsSet",an(t,e))}const Kx=[Vx,Bx,zx,Gx,qx,Rt({name:"misc",isLoadingFuncs:[t=>mf(t.eventSources)],propSetHandlers:{dateProfile:Qx,eventStore:Zx}})];class Xx{constructor(e,n){this.runTaskOption=e,this.drainedOption=n,this.queue=[],this.delayedRunner=new Ms(this.drain.bind(this))}request(e,n){this.queue.push(e),this.delayedRunner.request(n)}pause(e){this.delayedRunner.pause(e)}resume(e,n){this.delayedRunner.resume(e,n)}drain(){let{queue:e}=this;for(;e.length;){let n=[],r;for(;r=e.shift();)this.runTask(r),n.push(r);this.drained(n)}}runTask(e){this.runTaskOption&&this.runTaskOption(e)}drained(e){this.drainedOption&&this.drainedOption(e)}}function Jx(t,e,n){let r;return/^(year|month)$/.test(t.currentRangeUnit)?r=t.currentRange:r=t.activeRange,n.formatRange(r.start,r.end,Ie(e.titleFormat||e0(t)),{isEndExclusive:t.isRangeAllDay,defaultSeparator:e.titleRangeSeparator})}function e0(t){let{currentRangeUnit:e}=t;if(e==="year")return{year:"numeric"};if(e==="month")return{year:"numeric",month:"long"};let n=co(t.currentRange.start,t.currentRange.end);return n!==null&&n>1?{year:"numeric",month:"short",day:"numeric"}:{year:"numeric",month:"long",day:"numeric"}}class fc{constructor(){this.resetListeners=new Set}handleInput(e,n){const r=this.dateEnv;if(e!==r&&(typeof n=="function"?this.nowFn=n:r||(this.nowAnchorDate=e.toDate(n?e.createMarker(n):e.createNowMarker()),this.nowAnchorQueried=Date.now()),this.dateEnv=e,r))for(const o of this.resetListeners.values())o()}getDateMarker(){return this.nowAnchorDate?this.dateEnv.timestampToMarker(this.nowAnchorDate.valueOf()+(Date.now()-this.nowAnchorQueried)):this.dateEnv.createMarker(this.nowFn())}addResetListener(e){this.resetListeners.add(e)}removeResetListener(e){this.resetListeners.delete(e)}}class t0{constructor(e){this.computeCurrentViewData=le(this._computeCurrentViewData),this.organizeRawLocales=le(rx),this.buildLocale=le(hf),this.buildPluginHooks=ax(),this.buildDateEnv=le(n0),this.buildTheme=le(r0),this.parseToolbars=le(Ix),this.buildViewSpecs=le(px),this.buildDateProfileGenerator=Ur(o0),this.buildViewApi=le(i0),this.buildViewUiProps=Ur(l0),this.buildEventUiBySource=le(s0,lt),this.buildEventUiBases=le(a0),this.parseContextBusinessHours=Ur(c0),this.buildTitle=le(Jx),this.nowManager=new fc,this.emitter=new Go,this.actionRunner=new Xx(this._handleAction.bind(this),this.updateData.bind(this)),this.currentCalendarOptionsInput={},this.currentCalendarOptionsRefined={},this.currentViewOptionsInput={},this.currentViewOptionsRefined={},this.currentCalendarOptionsRefiners={},this.optionsForRefining=[],this.optionsForHandling=[],this.getCurrentData=()=>this.data,this.dispatch=p=>{this.actionRunner.request(p)},this.props=e,this.actionRunner.pause(),this.nowManager=new fc;let n={},r=this.computeOptionsData(e.optionOverrides,n,e.calendarApi),o=r.calendarOptions.initialView||r.pluginHooks.initialView,i=this.computeCurrentViewData(o,r,e.optionOverrides,n);e.calendarApi.currentDataManager=this,this.emitter.setThisContext(e.calendarApi),this.emitter.setOptions(i.options);let s={nowManager:this.nowManager,dateEnv:r.dateEnv,options:r.calendarOptions,pluginHooks:r.pluginHooks,calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},a=yx(r.calendarOptions,r.dateEnv,this.nowManager),l=i.dateProfileGenerator.build(a);xt(l.activeRange,a)||(a=l.currentRange.start);for(let p of r.pluginHooks.contextInit)p(s);let c=Sx(r.calendarOptions,l,s),u={dynamicOptionOverrides:n,currentViewType:o,currentDate:a,dateProfile:l,businessHours:this.parseContextBusinessHours(s),eventSources:c,eventUiBases:{},eventStore:Ke(),renderableEventStore:Ke(),dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null,selectionConfig:this.buildViewUiProps(s).selectionConfig},f=Object.assign(Object.assign({},s),u);for(let p of r.pluginHooks.reducers)Object.assign(u,p(null,null,f));_i(u,s)&&this.emitter.trigger("loading",!0),this.state=u,this.updateData(),this.actionRunner.resume()}resetOptions(e,n){let{props:r}=this;n===void 0?r.optionOverrides=e:(r.optionOverrides=Object.assign(Object.assign({},r.optionOverrides||{}),e),this.optionsForRefining.push(...n)),(n===void 0||n.length)&&this.actionRunner.request({type:"NOTHING"})}_handleAction(e){let{props:n,state:r,emitter:o}=this,i=bx(r.dynamicOptionOverrides,e),s=this.computeOptionsData(n.optionOverrides,i,n.calendarApi),a=mx(r.currentViewType,e),l=this.computeCurrentViewData(a,s,n.optionOverrides,i);n.calendarApi.currentDataManager=this,o.setThisContext(n.calendarApi),o.setOptions(l.options);let c={nowManager:this.nowManager,dateEnv:s.dateEnv,options:s.calendarOptions,pluginHooks:s.pluginHooks,calendarApi:n.calendarApi,dispatch:this.dispatch,emitter:o,getCurrentData:this.getCurrentData},{currentDate:u,dateProfile:f}=r;this.data&&this.data.dateProfileGenerator!==l.dateProfileGenerator&&(f=l.dateProfileGenerator.build(u)),u=vx(u,e),f=Ex(f,e,u,l.dateProfileGenerator),(e.type==="PREV"||e.type==="NEXT"||!xt(f.currentRange,u))&&(u=f.currentRange.start);let p=Cx(r.eventSources,e,f,c),h=SC(r.eventStore,e,p,f,c),g=mf(p)&&!l.options.progressiveEventRendering&&r.renderableEventStore||h,{eventUiSingleBase:v,selectionConfig:b}=this.buildViewUiProps(c),S=this.buildEventUiBySource(p),R=this.buildEventUiBases(g.defs,v,S),C={dynamicOptionOverrides:i,currentViewType:a,currentDate:u,dateProfile:f,eventSources:p,eventStore:h,renderableEventStore:g,selectionConfig:b,eventUiBases:R,businessHours:this.parseContextBusinessHours(c),dateSelection:_x(r.dateSelection,e),eventSelection:kx(r.eventSelection,e),eventDrag:Mx(r.eventDrag,e),eventResize:Ox(r.eventResize,e)},A=Object.assign(Object.assign({},c),C);for(let P of s.pluginHooks.reducers)Object.assign(C,P(r,e,A));let T=_i(r,c),k=_i(C,c);!T&&k?o.trigger("loading",!0):T&&!k&&o.trigger("loading",!1),this.state=C,n.onAction&&n.onAction(e)}updateData(){let{props:e,state:n}=this,r=this.data,o=this.computeOptionsData(e.optionOverrides,n.dynamicOptionOverrides,e.calendarApi),i=this.computeCurrentViewData(n.currentViewType,o,e.optionOverrides,n.dynamicOptionOverrides),s=this.data=Object.assign(Object.assign(Object.assign({nowManager:this.nowManager,viewTitle:this.buildTitle(n.dateProfile,i.options,o.dateEnv),calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},o),i),n),a=o.pluginHooks.optionChangeHandlers,l=r&&r.calendarOptions,c=o.calendarOptions;if(l&&l!==c){l.timeZone!==c.timeZone&&(n.eventSources=s.eventSources=wx(s.eventSources,n.dateProfile,s),n.eventStore=s.eventStore=tc(s.eventStore,r.dateEnv,s.dateEnv),n.renderableEventStore=s.renderableEventStore=tc(s.renderableEventStore,r.dateEnv,s.dateEnv));for(let u in a)(this.optionsForHandling.indexOf(u)!==-1||l[u]!==c[u])&&a[u](c[u],s)}this.optionsForHandling=[],e.onData&&e.onData(s)}computeOptionsData(e,n,r){if(!this.optionsForRefining.length&&e===this.stableOptionOverrides&&n===this.stableDynamicOptionOverrides)return this.stableCalendarOptionsData;let{refinedOptions:o,pluginHooks:i,localeDefaults:s,availableLocaleData:a,extra:l}=this.processRawCalendarOptions(e,n);pc(l);let c=this.buildDateEnv(o.timeZone,o.locale,o.weekNumberCalculation,o.firstDay,o.weekText,i,a,o.defaultRangeSeparator),u=this.buildViewSpecs(i.views,this.stableOptionOverrides,this.stableDynamicOptionOverrides,s),f=this.buildTheme(o,i),p=this.parseToolbars(o,this.stableOptionOverrides,f,u,r);return this.stableCalendarOptionsData={calendarOptions:o,pluginHooks:i,dateEnv:c,viewSpecs:u,theme:f,toolbarConfig:p,localeDefaults:s,availableRawLocales:a.map}}processRawCalendarOptions(e,n){let{locales:r,locale:o}=Ei([lr,e,n]),i=this.organizeRawLocales(r),s=i.map,a=this.buildLocale(o||i.defaultCode,s).options,l=this.buildPluginHooks(e.plugins||[],Kx),c=this.currentCalendarOptionsRefiners=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ql),Zl),Kl),l.listenerRefiners),l.optionRefiners),u={},f=Ei([lr,a,e,n]),p={},h=this.currentCalendarOptionsInput,m=this.currentCalendarOptionsRefined,g=!1;for(let v in f)this.optionsForRefining.indexOf(v)===-1&&(f[v]===h[v]||Kt[v]&&v in h&&Kt[v](h[v],f[v]))?p[v]=m[v]:c[v]?(p[v]=c[v](f[v]),g=!0):u[v]=h[v];return g&&(this.currentCalendarOptionsInput=f,this.currentCalendarOptionsRefined=p,this.stableOptionOverrides=e,this.stableDynamicOptionOverrides=n),this.optionsForHandling.push(...this.optionsForRefining),this.optionsForRefining=[],{rawOptions:this.currentCalendarOptionsInput,refinedOptions:this.currentCalendarOptionsRefined,pluginHooks:l,availableLocaleData:i,localeDefaults:a,extra:u}}_computeCurrentViewData(e,n,r,o){let i=n.viewSpecs[e];if(!i)throw new Error(`viewType "${e}" is not available. Please make sure you've loaded all neccessary plugins`);let{refinedOptions:s,extra:a}=this.processRawViewOptions(i,n.pluginHooks,n.localeDefaults,r,o);pc(a),this.nowManager.handleInput(n.dateEnv,s.now);let l=this.buildDateProfileGenerator({dateProfileGeneratorClass:i.optionDefaults.dateProfileGeneratorClass,nowManager:this.nowManager,duration:i.duration,durationUnit:i.durationUnit,usesMinMaxTime:i.optionDefaults.usesMinMaxTime,dateEnv:n.dateEnv,calendarApi:this.props.calendarApi,slotMinTime:s.slotMinTime,slotMaxTime:s.slotMaxTime,showNonCurrentDates:s.showNonCurrentDates,dayCount:s.dayCount,dateAlignment:s.dateAlignment,dateIncrement:s.dateIncrement,hiddenDays:s.hiddenDays,weekends:s.weekends,validRangeInput:s.validRange,visibleRangeInput:s.visibleRange,fixedWeekCount:s.fixedWeekCount}),c=this.buildViewApi(e,this.getCurrentData,n.dateEnv);return{viewSpec:i,options:s,dateProfileGenerator:l,viewApi:c}}processRawViewOptions(e,n,r,o,i){let s=Ei([lr,e.optionDefaults,r,o,e.optionOverrides,i]),a=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ql),Zl),Kl),BS),n.listenerRefiners),n.optionRefiners),l={},c=this.currentViewOptionsInput,u=this.currentViewOptionsRefined,f=!1,p={};for(let h in s)s[h]===c[h]||Kt[h]&&Kt[h](s[h],c[h])?l[h]=u[h]:(s[h]===this.currentCalendarOptionsInput[h]||Kt[h]&&Kt[h](s[h],this.currentCalendarOptionsInput[h])?h in this.currentCalendarOptionsRefined&&(l[h]=this.currentCalendarOptionsRefined[h]):a[h]?l[h]=a[h](s[h]):p[h]=s[h],f=!0);return f&&(this.currentViewOptionsInput=s,this.currentViewOptionsRefined=l),{rawOptions:this.currentViewOptionsInput,refinedOptions:this.currentViewOptionsRefined,extra:p}}}function n0(t,e,n,r,o,i,s,a){let l=hf(e||s.defaultCode,s.map);return new ZS({calendarSystem:"gregory",timeZone:t,namedTimeZoneImpl:i.namedTimeZonedImpl,locale:l,weekNumberCalculation:n,firstDay:r,weekText:o,cmdFormatter:i.cmdFormatter,defaultSeparator:a})}function r0(t,e){let n=e.themeClasses[t.themeSystem]||Wt;return new n(t)}function o0(t){let e=t.dateProfileGeneratorClass||Dd;return new e(t)}function i0(t,e,n){return new Nx(t,e,n)}function s0(t){return Tt(t,e=>e.ui)}function a0(t,e,n){let r={"":e};for(let o in t){let i=t[o];i.sourceId&&n[i.sourceId]&&(r[o]=n[i.sourceId])}return r}function l0(t){let{options:e}=t;return{eventUiSingleBase:vo({display:e.eventDisplay,editable:e.editable,startEditable:e.eventStartEditable,durationEditable:e.eventDurationEditable,constraint:e.eventConstraint,overlap:typeof e.eventOverlap=="boolean"?e.eventOverlap:void 0,allow:e.eventAllow,backgroundColor:e.eventBackgroundColor,borderColor:e.eventBorderColor,textColor:e.eventTextColor,color:e.eventColor},t),selectionConfig:vo({constraint:e.selectConstraint,overlap:typeof e.selectOverlap=="boolean"?e.selectOverlap:void 0,allow:e.selectAllow},t)}}function _i(t,e){for(let n of e.pluginHooks.isLoadingFuncs)if(n(t))return!0;return!1}function c0(t){return kC(t.options.businessHours,t)}function pc(t,e){for(let n in t)console.warn(`Unknown option '${n}'`)}class u0 extends Se{render(){let e=this.props.widgetGroups.map(n=>this.renderWidgetGroup(n));return w("div",{className:"fc-toolbar-chunk"},...e)}renderWidgetGroup(e){let{props:n}=this,{theme:r}=this.context,o=[],i=!0;for(let s of e){let{buttonName:a,buttonClick:l,buttonText:c,buttonIcon:u,buttonHint:f}=s;if(a==="title")i=!1,o.push(w("h2",{className:"fc-toolbar-title",id:n.titleId},n.title));else{let p=a===n.activeButton,h=!n.isTodayEnabled&&a==="today"||!n.isPrevEnabled&&a==="prev"||!n.isNextEnabled&&a==="next",m=[`fc-${a}-button`,r.getClass("button")];p&&m.push(r.getClass("buttonActive")),o.push(w("button",{type:"button",title:typeof f=="function"?f(n.navUnit):f,disabled:h,"aria-pressed":p,className:m.join(" "),onClick:l},c||(u?w("span",{className:u,role:"img"}):"")))}}if(o.length>1){let s=i&&r.getClass("buttonGroup")||"";return w("div",{className:s},...o)}return o[0]}}class hc extends Se{render(){let{model:e,extraClassName:n}=this.props,r=!1,o,i,s=e.sectionWidgets,a=s.center;return s.left?(r=!0,o=s.left):o=s.start,s.right?(r=!0,i=s.right):i=s.end,w("div",{className:[n||"","fc-toolbar",r?"fc-toolbar-ltr":""].join(" ")},this.renderSection("start",o||[]),this.renderSection("center",a||[]),this.renderSection("end",i||[]))}renderSection(e,n){let{props:r}=this;return w(u0,{key:e,widgetGroups:n,title:r.title,navUnit:r.navUnit,activeButton:r.activeButton,isTodayEnabled:r.isTodayEnabled,isPrevEnabled:r.isPrevEnabled,isNextEnabled:r.isNextEnabled,titleId:r.titleId})}}class d0 extends Se{constructor(){super(...arguments),this.state={availableWidth:null},this.handleEl=e=>{this.el=e,mt(this.props.elRef,e),this.updateAvailableWidth()},this.handleResize=()=>{this.updateAvailableWidth()}}render(){let{props:e,state:n}=this,{aspectRatio:r}=e,o=["fc-view-harness",r||e.liquid||e.height?"fc-view-harness-active":"fc-view-harness-passive"],i="",s="";return r?n.availableWidth!==null?i=n.availableWidth/r:s=`${1/r*100}%`:i=e.height||"",w("div",{"aria-labelledby":e.labeledById,ref:this.handleEl,className:o.join(" "),style:{height:i,paddingBottom:s}},e.children)}componentDidMount(){this.context.addResizeHandler(this.handleResize)}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}updateAvailableWidth(){this.el&&this.props.aspectRatio&&this.setState({availableWidth:this.el.offsetWidth})}}class f0 extends Fn{constructor(e){super(e),this.handleSegClick=(n,r)=>{let{component:o}=this,{context:i}=o,s=Bn(r);if(s&&o.isValidSegDownEl(n.target)){let a=He(n.target,".fc-event-forced-url"),l=a?a.querySelector("a[href]").href:"";i.emitter.trigger("eventClick",{el:r,event:new Me(o.context,s.eventRange.def,s.eventRange.instance),jsEvent:n,view:i.viewApi}),l&&!n.defaultPrevented&&(window.location.href=l)}},this.destroy=fd(e.el,"click",".fc-event",this.handleSegClick)}}class p0 extends Fn{constructor(e){super(e),this.handleEventElRemove=n=>{n===this.currentSegEl&&this.handleSegLeave(null,this.currentSegEl)},this.handleSegEnter=(n,r)=>{Bn(r)&&(this.currentSegEl=r,this.triggerEvent("eventMouseEnter",n,r))},this.handleSegLeave=(n,r)=>{this.currentSegEl&&(this.currentSegEl=null,this.triggerEvent("eventMouseLeave",n,r))},this.removeHoverListeners=UE(e.el,".fc-event",this.handleSegEnter,this.handleSegLeave)}destroy(){this.removeHoverListeners()}triggerEvent(e,n,r){let{component:o}=this,{context:i}=o,s=Bn(r);(!n||o.isValidSegDownEl(n.target))&&i.emitter.trigger(e,{el:r,event:new Me(i,s.eventRange.def,s.eventRange.instance),jsEvent:n,view:i.viewApi})}}class h0 extends mn{constructor(){super(...arguments),this.buildViewContext=le(JS),this.buildViewPropTransformers=le(m0),this.buildToolbarProps=le(g0),this.headerRef=Fe(),this.footerRef=Fe(),this.interactionsStore={},this.state={viewLabelId:zo()},this.registerInteractiveComponent=(e,n)=>{let r=XC(e,n),s=[f0,p0].concat(this.props.pluginHooks.componentInteractions).map(a=>new a(r));this.interactionsStore[e.uid]=s,es[e.uid]=r},this.unregisterInteractiveComponent=e=>{let n=this.interactionsStore[e.uid];if(n){for(let r of n)r.destroy();delete this.interactionsStore[e.uid]}delete es[e.uid]},this.resizeRunner=new Ms(()=>{this.props.emitter.trigger("_resize",!0),this.props.emitter.trigger("windowResize",{view:this.props.viewApi})}),this.handleWindowResize=e=>{let{options:n}=this.props;n.handleWindowResize&&e.target===window&&this.resizeRunner.request(n.windowResizeDelay)}}render(){let{props:e}=this,{toolbarConfig:n,options:r}=e,o=!1,i="",s;e.isHeightAuto||e.forPrint?i="":r.height!=null?o=!0:r.contentHeight!=null?i=r.contentHeight:s=Math.max(r.aspectRatio,.5);let a=this.buildViewContext(e.viewSpec,e.viewApi,e.options,e.dateProfileGenerator,e.dateEnv,e.nowManager,e.theme,e.pluginHooks,e.dispatch,e.getCurrentData,e.emitter,e.calendarApi,this.registerInteractiveComponent,this.unregisterInteractiveComponent),l=n.header&&n.header.hasTitle?this.state.viewLabelId:void 0;return w(At.Provider,{value:a},w(Wn,{unit:"day"},c=>{let u=this.buildToolbarProps(e.viewSpec,e.dateProfile,e.dateProfileGenerator,e.currentDate,c,e.viewTitle);return w(Ae,null,n.header&&w(hc,Object.assign({ref:this.headerRef,extraClassName:"fc-header-toolbar",model:n.header,titleId:l},u)),w(d0,{liquid:o,height:i,aspectRatio:s,labeledById:l},this.renderView(e),this.buildAppendContent()),n.footer&&w(hc,Object.assign({ref:this.footerRef,extraClassName:"fc-footer-toolbar",model:n.footer,titleId:""},u)))}))}componentDidMount(){let{props:e}=this;this.calendarInteractions=e.pluginHooks.calendarInteractions.map(r=>new r(e)),window.addEventListener("resize",this.handleWindowResize);let{propSetHandlers:n}=e.pluginHooks;for(let r in n)n[r](e[r],e)}componentDidUpdate(e){let{props:n}=this,{propSetHandlers:r}=n.pluginHooks;for(let o in r)n[o]!==e[o]&&r[o](n[o],n)}componentWillUnmount(){window.removeEventListener("resize",this.handleWindowResize),this.resizeRunner.clear();for(let e of this.calendarInteractions)e.destroy();this.props.emitter.trigger("_unmount")}buildAppendContent(){let{props:e}=this,n=e.pluginHooks.viewContainerAppends.map(r=>r(e));return w(Ae,{},...n)}renderView(e){let{pluginHooks:n}=e,{viewSpec:r}=e,o={dateProfile:e.dateProfile,businessHours:e.businessHours,eventStore:e.renderableEventStore,eventUiBases:e.eventUiBases,dateSelection:e.dateSelection,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,isHeightAuto:e.isHeightAuto,forPrint:e.forPrint},i=this.buildViewPropTransformers(n.viewPropsTransformers);for(let a of i)Object.assign(o,a.transform(o,e));let s=r.component;return w(s,Object.assign({},o))}}function g0(t,e,n,r,o,i){let s=n.build(o,void 0,!1),a=n.buildPrev(e,r,!1),l=n.buildNext(e,r,!1);return{title:i,activeButton:t.type,navUnit:t.singleUnit,isTodayEnabled:s.isValid&&!xt(e.currentRange,o),isPrevEnabled:a.isValid,isNextEnabled:l.isValid}}function m0(t){return t.map(e=>new e)}let v0=class extends ew{constructor(e,n={}){super(),this.isRendering=!1,this.isRendered=!1,this.currentClassNames=[],this.customContentRenderId=0,this.handleAction=r=>{switch(r.type){case"SET_EVENT_DRAG":case"SET_EVENT_RESIZE":this.renderRunner.tryDrain()}},this.handleData=r=>{this.currentData=r,this.renderRunner.request(r.calendarOptions.rerenderDelay)},this.handleRenderRequest=()=>{if(this.isRendering){this.isRendered=!0;let{currentData:r}=this;ho(()=>{pr(w(KC,{options:r.calendarOptions,theme:r.theme,emitter:r.emitter},(o,i,s,a)=>(this.setClassNames(o),this.setHeight(i),w(Sd.Provider,{value:this.customContentRenderId},w(h0,Object.assign({isHeightAuto:s,forPrint:a},r))))),this.el)})}else this.isRendered&&(this.isRendered=!1,pr(null,this.el),this.setClassNames([]),this.setHeight(""))},jE(e),this.el=e,this.renderRunner=new Ms(this.handleRenderRequest),new t0({optionOverrides:n,calendarApi:this,onAction:this.handleAction,onData:this.handleData})}render(){let e=this.isRendering;e?this.customContentRenderId+=1:this.isRendering=!0,this.renderRunner.request(),e&&this.updateSize()}destroy(){this.isRendering&&(this.isRendering=!1,this.renderRunner.request())}updateSize(){ho(()=>{super.updateSize()})}batchRendering(e){this.renderRunner.pause("batchRendering"),e(),this.renderRunner.resume("batchRendering")}pauseRendering(){this.renderRunner.pause("pauseRendering")}resumeRendering(){this.renderRunner.resume("pauseRendering",!0)}resetOptions(e,n){this.currentDataManager.resetOptions(e,n)}setClassNames(e){if(!Lt(e,this.currentClassNames)){let{classList:n}=this.el;for(let r of this.currentClassNames)n.remove(r);for(let r of e)n.add(r);this.currentClassNames=e}}setHeight(e){ud(this.el,"height",e)}};const y0=parseInt(String(oe.version).split(".")[0]),b0=y0<18;class Sf extends oe.Component{constructor(){super(...arguments),this.elRef=oe.createRef(),this.isUpdating=!1,this.isUnmounting=!1,this.state={customRenderingMap:new Map},this.requestResize=()=>{this.isUnmounting||(this.cancelResize(),this.resizeId=requestAnimationFrame(()=>{this.doResize()}))}}render(){const e=[];for(const n of this.state.customRenderingMap.values())e.push(oe.createElement(E0,{key:n.id,customRendering:n}));return oe.createElement("div",{ref:this.elRef},e)}componentDidMount(){this.isUnmounting=!1;const e=new tx;this.handleCustomRendering=e.handle.bind(e),this.calendar=new v0(this.elRef.current,Object.assign(Object.assign({},this.props),{handleCustomRendering:this.handleCustomRendering})),this.calendar.render(),this.calendar.on("_beforeprint",()=>{en.flushSync(()=>{})});let n;e.subscribe(r=>{const o=Date.now(),i=!n;(b0||i||this.isUpdating||this.isUnmounting||o-n<100?Cf:en.flushSync)(()=>{this.setState({customRenderingMap:r},()=>{n=o,i?this.doResize():this.requestResize()})})})}componentDidUpdate(){this.isUpdating=!0,this.calendar.resetOptions(Object.assign(Object.assign({},this.props),{handleCustomRendering:this.handleCustomRendering})),this.isUpdating=!1}componentWillUnmount(){this.isUnmounting=!0,this.cancelResize(),this.calendar.destroy()}doResize(){this.calendar.updateSize()}cancelResize(){this.resizeId!==void 0&&(cancelAnimationFrame(this.resizeId),this.resizeId=void 0)}getApi(){return this.calendar}}Sf.act=Cf;class E0 extends oe.PureComponent{render(){const{customRendering:e}=this.props,{generatorMeta:n}=e,r=typeof n=="function"?n(e.renderProps):n;return en.createPortal(r,e.containerEl)}}function Cf(t){t()}class S0 extends vt{constructor(){super(...arguments),this.headerElRef=Fe()}renderSimpleLayout(e,n){let{props:r,context:o}=this,i=[],s=Eo(o.options);return e&&i.push({type:"header",key:"header",isSticky:s,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}}),i.push({type:"body",key:"body",liquid:!0,chunk:{content:n}}),w(go,{elClasses:["fc-daygrid"],viewSpec:o.viewSpec},w(ta,{liquid:!r.isHeightAuto&&!r.forPrint,collapsibleWidth:r.forPrint,cols:[],sections:i}))}renderHScrollLayout(e,n,r,o){let i=this.context.pluginHooks.scrollGridImpl;if(!i)throw new Error("No ScrollGrid implementation");let{props:s,context:a}=this,l=!s.forPrint&&Eo(a.options),c=!s.forPrint&&sf(a.options),u=[];return e&&u.push({type:"header",key:"header",isSticky:l,chunks:[{key:"main",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}]}),u.push({type:"body",key:"body",liquid:!0,chunks:[{key:"main",content:n}]}),c&&u.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"main",content:rs}]}),w(go,{elClasses:["fc-daygrid"],viewSpec:a.viewSpec},w(i,{liquid:!s.isHeightAuto&&!s.forPrint,forPrint:s.forPrint,collapsibleWidth:s.forPrint,colGroups:[{cols:[{span:r,minWidth:o}]}],sections:u}))}}function Yr(t,e){let n=[];for(let r=0;r<e;r+=1)n[r]=[];for(let r of t)n[r.row].push(r);return n}function jr(t,e){let n=[];for(let r=0;r<e;r+=1)n[r]=[];for(let r of t)n[r.firstCol].push(r);return n}function gc(t,e){let n=[];if(t){for(let r=0;r<e;r+=1)n[r]={affectedInstances:t.affectedInstances,isEvent:t.isEvent,segs:[]};for(let r of t.segs)n[r.row].segs.push(r)}else for(let r=0;r<e;r+=1)n[r]=null;return n}const wf=Ie({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"});function xf(t){let{display:e}=t.eventRange.ui;return e==="list-item"||e==="auto"&&!t.eventRange.def.allDay&&t.firstCol===t.lastCol&&t.isStart&&t.isEnd}class Df extends Se{render(){let{props:e}=this;return w(ra,Object.assign({},e,{elClasses:["fc-daygrid-event","fc-daygrid-block-event","fc-h-event"],defaultTimeFormat:wf,defaultDisplayEventEnd:e.defaultDisplayEventEnd,disableResizing:!e.seg.eventRange.def.allDay}))}}class Tf extends Se{render(){let{props:e,context:n}=this,{options:r}=n,{seg:o}=e,i=r.eventTimeFormat||wf,s=$d(o,i,n,!0,e.defaultDisplayEventEnd);return w(na,Object.assign({},e,{elTag:"a",elClasses:["fc-daygrid-event","fc-daygrid-dot-event"],elAttrs:Ld(e.seg,n),defaultGenerator:C0,timeText:s,isResizing:!1,isDateSelecting:!1}))}}function C0(t){return w(Ae,null,w("div",{className:"fc-daygrid-event-dot",style:{borderColor:t.borderColor||t.backgroundColor}}),t.timeText&&w("div",{className:"fc-event-time"},t.timeText),w("div",{className:"fc-event-title"},t.event.title||w(Ae,null," ")))}class w0 extends Se{constructor(){super(...arguments),this.compileSegs=le(x0)}render(){let{props:e}=this,{allSegs:n,invisibleSegs:r}=this.compileSegs(e.singlePlacements);return w(uf,{elClasses:["fc-daygrid-more-link"],dateProfile:e.dateProfile,todayRange:e.todayRange,allDayDate:e.allDayDate,moreCnt:e.moreCnt,allSegs:n,hiddenSegs:r,alignmentElRef:e.alignmentElRef,alignGridTop:e.alignGridTop,extraDateSpan:e.extraDateSpan,popoverContent:()=>{let o=(e.eventDrag?e.eventDrag.affectedInstances:null)||(e.eventResize?e.eventResize.affectedInstances:null)||{};return w(Ae,null,n.map(i=>{let s=i.eventRange.instance.instanceId;return w("div",{className:"fc-daygrid-event-harness",key:s,style:{visibility:o[s]?"hidden":""}},xf(i)?w(Tf,Object.assign({seg:i,isDragging:!1,isSelected:s===e.eventSelection,defaultDisplayEventEnd:!1},jt(i,e.todayRange))):w(Df,Object.assign({seg:i,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:s===e.eventSelection,defaultDisplayEventEnd:!1},jt(i,e.todayRange))))}))}})}}function x0(t){let e=[],n=[];for(let r of t)e.push(r.seg),r.isVisible||n.push(r.seg);return{allSegs:e,invisibleSegs:n}}const D0=Ie({week:"narrow"});class T0 extends vt{constructor(){super(...arguments),this.rootElRef=Fe(),this.state={dayNumberId:zo()},this.handleRootEl=e=>{mt(this.rootElRef,e),mt(this.props.elRef,e)}}render(){let{context:e,props:n,state:r,rootElRef:o}=this,{options:i,dateEnv:s}=e,{date:a,dateProfile:l}=n;const c=n.showDayNumber&&R0(a,l.currentRange,s);return w(ia,{elTag:"td",elRef:this.handleRootEl,elClasses:["fc-daygrid-day",...n.extraClassNames||[]],elAttrs:Object.assign(Object.assign(Object.assign({},n.extraDataAttrs),n.showDayNumber?{"aria-labelledby":r.dayNumberId}:{}),{role:"gridcell"}),defaultGenerator:A0,date:a,dateProfile:l,todayRange:n.todayRange,showDayNumber:n.showDayNumber,isMonthStart:c,extraRenderProps:n.extraRenderProps},(u,f)=>w("div",{ref:n.innerElRef,className:"fc-daygrid-day-frame fc-scrollgrid-sync-inner",style:{minHeight:n.minHeight}},n.showWeekNumber&&w(cf,{elTag:"a",elClasses:["fc-daygrid-week-number"],elAttrs:bo(e,a,"week"),date:a,defaultFormat:D0}),!f.isDisabled&&(n.showDayNumber||sa(i)||n.forceDayTop)?w("div",{className:"fc-daygrid-day-top"},w(u,{elTag:"a",elClasses:["fc-daygrid-day-number",c&&"fc-daygrid-month-start"],elAttrs:Object.assign(Object.assign({},bo(e,a)),{id:r.dayNumberId})})):n.showDayNumber?w("div",{className:"fc-daygrid-day-top",style:{visibility:"hidden"}},w("a",{className:"fc-daygrid-day-number"}," ")):void 0,w("div",{className:"fc-daygrid-day-events",ref:n.fgContentElRef},n.fgContent,w("div",{className:"fc-daygrid-day-bottom",style:{marginTop:n.moreMarginTop}},w(w0,{allDayDate:a,singlePlacements:n.singlePlacements,moreCnt:n.moreCnt,alignmentElRef:o,alignGridTop:!n.showDayNumber,extraDateSpan:n.extraDateSpan,dateProfile:n.dateProfile,eventSelection:n.eventSelection,eventDrag:n.eventDrag,eventResize:n.eventResize,todayRange:n.todayRange}))),w("div",{className:"fc-daygrid-day-bg"},n.bgContent)))}}function A0(t){return t.dayNumberText||w(Ae,null," ")}function R0(t,e,n){const{start:r,end:o}=e,i=Ht(o,-1),s=n.getYear(r),a=n.getMonth(r),l=n.getYear(i),c=n.getMonth(i);return!(s===l&&a===c)&&(t.valueOf()===r.valueOf()||n.getDay(t)===1&&t.valueOf()<o.valueOf())}function Af(t){return t.eventRange.instance.instanceId+":"+t.firstCol}function Rf(t){return Af(t)+":"+t.lastCol}function _0(t,e,n,r,o,i,s){let a=new O0(b=>{let S=t[b.index].eventRange.instance.instanceId+":"+b.span.start+":"+(b.span.end-1);return o[S]||1});a.allowReslicing=!0,a.strictOrder=r,e===!0||n===!0?(a.maxCoord=i,a.hiddenConsumes=!0):typeof e=="number"?a.maxStackCnt=e:typeof n=="number"&&(a.maxStackCnt=n,a.hiddenConsumes=!0);let l=[],c=[];for(let b=0;b<t.length;b+=1){let S=t[b],R=Rf(S);o[R]!=null?l.push({index:b,span:{start:S.firstCol,end:S.lastCol+1}}):c.push(S)}let u=a.addSegs(l),f=a.toRects(),{singleColPlacements:p,multiColPlacements:h,leftoverMargins:m}=k0(f,t,s),g=[],v=[];for(let b of c){h[b.firstCol].push({seg:b,isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let S=b.firstCol;S<=b.lastCol;S+=1)p[S].push({seg:On(b,S,S+1,s),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let b=0;b<s.length;b+=1)g.push(0);for(let b of u){let S=t[b.index],R=b.span;h[R.start].push({seg:On(S,R.start,R.end,s),isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let C=R.start;C<R.end;C+=1)g[C]+=1,p[C].push({seg:On(S,C,C+1,s),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let b=0;b<s.length;b+=1)v.push(m[b]);return{singleColPlacements:p,multiColPlacements:h,moreCnts:g,moreMarginTops:v}}function k0(t,e,n){let r=M0(t,n.length),o=[],i=[],s=[];for(let a=0;a<n.length;a+=1){let l=r[a],c=[],u=0,f=0;for(let h of l){let m=e[h.index];c.push({seg:On(m,a,a+1,n),isVisible:!0,isAbsolute:!1,absoluteTop:h.levelCoord,marginTop:h.levelCoord-u}),u=h.levelCoord+h.thickness}let p=[];u=0,f=0;for(let h of l){let m=e[h.index],g=h.span.end-h.span.start>1,v=h.span.start===a;f+=h.levelCoord-u,u=h.levelCoord+h.thickness,g?(f+=h.thickness,v&&p.push({seg:On(m,h.span.start,h.span.end,n),isVisible:!0,isAbsolute:!0,absoluteTop:h.levelCoord,marginTop:0})):v&&(p.push({seg:On(m,h.span.start,h.span.end,n),isVisible:!0,isAbsolute:!1,absoluteTop:h.levelCoord,marginTop:f}),f=0)}o.push(c),i.push(p),s.push(f)}return{singleColPlacements:o,multiColPlacements:i,leftoverMargins:s}}function M0(t,e){let n=[];for(let r=0;r<e;r+=1)n.push([]);for(let r of t)for(let o=r.span.start;o<r.span.end;o+=1)n[o].push(r);return n}function On(t,e,n,r){if(t.firstCol===e&&t.lastCol===n-1)return t;let o=t.eventRange,i=o.range,s=dn(i,{start:r[e].date,end:Be(r[n-1].date,1)});return Object.assign(Object.assign({},t),{firstCol:e,lastCol:n-1,eventRange:{def:o.def,ui:Object.assign(Object.assign({},o.ui),{durationEditable:!1}),instance:o.instance,range:s},isStart:t.isStart&&s.start.valueOf()===i.start.valueOf(),isEnd:t.isEnd&&s.end.valueOf()===i.end.valueOf()})}class O0 extends qd{constructor(){super(...arguments),this.hiddenConsumes=!1,this.forceHidden={}}addSegs(e){const n=super.addSegs(e),{entriesByLevel:r}=this,o=i=>!this.forceHidden[ln(i)];for(let i=0;i<r.length;i+=1)r[i]=r[i].filter(o);return n}handleInvalidInsertion(e,n,r){const{entriesByLevel:o,forceHidden:i}=this,{touchingEntry:s,touchingLevel:a,touchingLateral:l}=e;if(this.hiddenConsumes&&s){const c=ln(s);if(!i[c])if(this.allowReslicing){const u=Object.assign(Object.assign({},s),{span:Js(s.span,n.span)}),f=ln(u);i[f]=!0,o[a][l]=u,r.push(u),this.splitEntry(s,n,r)}else i[c]=!0,r.push(s)}super.handleInvalidInsertion(e,n,r)}}class _f extends vt{constructor(){super(...arguments),this.cellElRefs=new wt,this.frameElRefs=new wt,this.fgElRefs=new wt,this.segHarnessRefs=new wt,this.rootElRef=Fe(),this.state={framePositions:null,maxContentHeight:null,segHeights:{}},this.handleResize=e=>{e&&this.updateSizing(!0)}}render(){let{props:e,state:n,context:r}=this,{options:o}=r,i=e.cells.length,s=jr(e.businessHourSegs,i),a=jr(e.bgEventSegs,i),l=jr(this.getHighlightSegs(),i),c=jr(this.getMirrorSegs(),i),{singleColPlacements:u,multiColPlacements:f,moreCnts:p,moreMarginTops:h}=_0(Vd(e.fgEventSegs,o.eventOrder),e.dayMaxEvents,e.dayMaxEventRows,o.eventOrderStrict,n.segHeights,n.maxContentHeight,e.cells),m=e.eventDrag&&e.eventDrag.affectedInstances||e.eventResize&&e.eventResize.affectedInstances||{};return w("tr",{ref:this.rootElRef,role:"row"},e.renderIntro&&e.renderIntro(),e.cells.map((g,v)=>{let b=this.renderFgSegs(v,e.forPrint?u[v]:f[v],e.todayRange,m),S=this.renderFgSegs(v,I0(c[v],f),e.todayRange,{},!!e.eventDrag,!!e.eventResize,!1);return w(T0,{key:g.key,elRef:this.cellElRefs.createRef(g.key),innerElRef:this.frameElRefs.createRef(g.key),dateProfile:e.dateProfile,date:g.date,showDayNumber:e.showDayNumbers,showWeekNumber:e.showWeekNumbers&&v===0,forceDayTop:e.showWeekNumbers,todayRange:e.todayRange,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,extraRenderProps:g.extraRenderProps,extraDataAttrs:g.extraDataAttrs,extraClassNames:g.extraClassNames,extraDateSpan:g.extraDateSpan,moreCnt:p[v],moreMarginTop:h[v],singlePlacements:u[v],fgContentElRef:this.fgElRefs.createRef(g.key),fgContent:w(Ae,null,w(Ae,null,b),w(Ae,null,S)),bgContent:w(Ae,null,this.renderFillSegs(l[v],"highlight"),this.renderFillSegs(s[v],"non-business"),this.renderFillSegs(a[v],"bg-event")),minHeight:e.cellMinHeight})}))}componentDidMount(){this.updateSizing(!0),this.context.addResizeHandler(this.handleResize)}componentDidUpdate(e,n){let r=this.props;this.updateSizing(!lt(e,r))}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}getHighlightSegs(){let{props:e}=this;return e.eventDrag&&e.eventDrag.segs.length?e.eventDrag.segs:e.eventResize&&e.eventResize.segs.length?e.eventResize.segs:e.dateSelectionSegs}getMirrorSegs(){let{props:e}=this;return e.eventResize&&e.eventResize.segs.length?e.eventResize.segs:[]}renderFgSegs(e,n,r,o,i,s,a){let{context:l}=this,{eventSelection:c}=this.props,{framePositions:u}=this.state,f=this.props.cells.length===1,p=i||s||a,h=[];if(u)for(let m of n){let{seg:g}=m,{instanceId:v}=g.eventRange.instance,b=m.isVisible&&!o[v],S=m.isAbsolute,R="",C="";S&&(l.isRtl?(C=0,R=u.lefts[g.lastCol]-u.lefts[g.firstCol]):(R=0,C=u.rights[g.firstCol]-u.rights[g.lastCol])),h.push(w("div",{className:"fc-daygrid-event-harness"+(S?" fc-daygrid-event-harness-abs":""),key:Af(g),ref:p?null:this.segHarnessRefs.createRef(Rf(g)),style:{visibility:b?"":"hidden",marginTop:S?"":m.marginTop,top:S?m.absoluteTop:"",left:R,right:C}},xf(g)?w(Tf,Object.assign({seg:g,isDragging:i,isSelected:v===c,defaultDisplayEventEnd:f},jt(g,r))):w(Df,Object.assign({seg:g,isDragging:i,isResizing:s,isDateSelecting:a,isSelected:v===c,defaultDisplayEventEnd:f},jt(g,r)))))}return h}renderFillSegs(e,n){let{isRtl:r}=this.context,{todayRange:o}=this.props,{framePositions:i}=this.state,s=[];if(i)for(let a of e){let l=r?{right:0,left:i.lefts[a.lastCol]-i.lefts[a.firstCol]}:{left:0,right:i.rights[a.firstCol]-i.rights[a.lastCol]};s.push(w("div",{key:Bd(a.eventRange),className:"fc-daygrid-bg-harness",style:l},n==="bg-event"?w(af,Object.assign({seg:a},jt(a,o))):lf(n)))}return w(Ae,{},...s)}updateSizing(e){let{props:n,state:r,frameElRefs:o}=this;if(!n.forPrint&&n.clientWidth!==null){if(e){let l=n.cells.map(c=>o.currentMap[c.key]);if(l.length){let c=this.rootElRef.current,u=new Ln(c,l,!0,!1);(!r.framePositions||!r.framePositions.similarTo(u))&&this.setState({framePositions:new Ln(c,l,!0,!1)})}}const i=this.state.segHeights,s=this.querySegHeights(),a=n.dayMaxEvents===!0||n.dayMaxEventRows===!0;this.safeSetState({segHeights:Object.assign(Object.assign({},i),s),maxContentHeight:a?this.computeMaxContentHeight():null})}}querySegHeights(){let e=this.segHarnessRefs.currentMap,n={};for(let r in e){let o=Math.round(e[r].getBoundingClientRect().height);n[r]=Math.max(n[r]||0,o)}return n}computeMaxContentHeight(){let e=this.props.cells[0].key,n=this.cellElRefs.currentMap[e],r=this.fgElRefs.currentMap[e];return n.getBoundingClientRect().bottom-r.getBoundingClientRect().top}getCellEls(){let e=this.cellElRefs.currentMap;return this.props.cells.map(n=>e[n.key])}}_f.addStateEquality({segHeights:lt});function I0(t,e){if(!t.length)return[];let n=P0(e);return t.map(r=>({seg:r,isVisible:!0,isAbsolute:!0,absoluteTop:n[r.eventRange.instance.instanceId],marginTop:0}))}function P0(t){let e={};for(let n of t)for(let r of n)e[r.seg.eventRange.instance.instanceId]=r.absoluteTop;return e}class N0 extends vt{constructor(){super(...arguments),this.splitBusinessHourSegs=le(Yr),this.splitBgEventSegs=le(j0),this.splitFgEventSegs=le(Yr),this.splitDateSelectionSegs=le(Yr),this.splitEventDrag=le(gc),this.splitEventResize=le(gc),this.rowRefs=new wt}render(){let{props:e,context:n}=this,r=e.cells.length,o=this.splitBusinessHourSegs(e.businessHourSegs,r),i=this.splitBgEventSegs(e.bgEventSegs,r),s=this.splitFgEventSegs(e.fgEventSegs,r),a=this.splitDateSelectionSegs(e.dateSelectionSegs,r),l=this.splitEventDrag(e.eventDrag,r),c=this.splitEventResize(e.eventResize,r),u=r>=7&&e.clientWidth?e.clientWidth/n.options.aspectRatio/6:null;return w(Wn,{unit:"day"},(f,p)=>w(Ae,null,e.cells.map((h,m)=>w(_f,{ref:this.rowRefs.createRef(m),key:h.length?h[0].date.toISOString():m,showDayNumbers:r>1,showWeekNumbers:e.showWeekNumbers,todayRange:p,dateProfile:e.dateProfile,cells:h,renderIntro:e.renderRowIntro,businessHourSegs:o[m],eventSelection:e.eventSelection,bgEventSegs:i[m],fgEventSegs:s[m],dateSelectionSegs:a[m],eventDrag:l[m],eventResize:c[m],dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,clientWidth:e.clientWidth,clientHeight:e.clientHeight,cellMinHeight:u,forPrint:e.forPrint}))))}componentDidMount(){this.registerInteractiveComponent()}componentDidUpdate(){this.registerInteractiveComponent()}registerInteractiveComponent(){if(!this.rootEl){const e=this.rowRefs.currentMap[0].getCellEls()[0],n=e?e.closest(".fc-daygrid-body"):null;n&&(this.rootEl=n,this.context.registerInteractiveComponent(this,{el:n,isHitComboAllowed:this.props.isHitComboAllowed}))}}componentWillUnmount(){this.rootEl&&(this.context.unregisterInteractiveComponent(this),this.rootEl=null)}prepareHits(){this.rowPositions=new Ln(this.rootEl,this.rowRefs.collect().map(e=>e.getCellEls()[0]),!1,!0),this.colPositions=new Ln(this.rootEl,this.rowRefs.currentMap[0].getCellEls(),!0,!1)}queryHit(e,n){let{colPositions:r,rowPositions:o}=this,i=r.leftToIndex(e),s=o.topToIndex(n);if(s!=null&&i!=null){let a=this.props.cells[s][i];return{dateProfile:this.props.dateProfile,dateSpan:Object.assign({range:this.getCellRange(s,i),allDay:!0},a.extraDateSpan),dayEl:this.getCellEl(s,i),rect:{left:r.lefts[i],right:r.rights[i],top:o.tops[s],bottom:o.bottoms[s]},layer:0}}return null}getCellEl(e,n){return this.rowRefs.currentMap[e].getCellEls()[n]}getCellRange(e,n){let r=this.props.cells[e][n].date,o=Be(r,1);return{start:r,end:o}}}function j0(t,e){return Yr(t.filter(V0),e)}function V0(t){return t.eventRange.def.allDay}class $0 extends vt{constructor(){super(...arguments),this.elRef=Fe(),this.needsScrollReset=!1}render(){let{props:e}=this,{dayMaxEventRows:n,dayMaxEvents:r,expandRows:o}=e,i=r===!0||n===!0;i&&!o&&(i=!1,n=null,r=null);let s=["fc-daygrid-body",i?"fc-daygrid-body-balanced":"fc-daygrid-body-unbalanced",o?"":"fc-daygrid-body-natural"];return w("div",{ref:this.elRef,className:s.join(" "),style:{width:e.clientWidth,minWidth:e.tableMinWidth}},w("table",{role:"presentation",className:"fc-scrollgrid-sync-table",style:{width:e.clientWidth,minWidth:e.tableMinWidth,height:o?e.clientHeight:""}},e.colGroupNode,w("tbody",{role:"presentation"},w(N0,{dateProfile:e.dateProfile,cells:e.cells,renderRowIntro:e.renderRowIntro,showWeekNumbers:e.showWeekNumbers,clientWidth:e.clientWidth,clientHeight:e.clientHeight,businessHourSegs:e.businessHourSegs,bgEventSegs:e.bgEventSegs,fgEventSegs:e.fgEventSegs,dateSelectionSegs:e.dateSelectionSegs,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,dayMaxEvents:r,dayMaxEventRows:n,forPrint:e.forPrint,isHitComboAllowed:e.isHitComboAllowed}))))}componentDidMount(){this.requestScrollReset()}componentDidUpdate(e){e.dateProfile!==this.props.dateProfile?this.requestScrollReset():this.flushScrollReset()}requestScrollReset(){this.needsScrollReset=!0,this.flushScrollReset()}flushScrollReset(){if(this.needsScrollReset&&this.props.clientWidth){const e=B0(this.elRef.current,this.props.dateProfile);if(e){const n=e.closest(".fc-daygrid-body"),r=n.closest(".fc-scroller"),o=e.getBoundingClientRect().top-n.getBoundingClientRect().top;r.scrollTop=o?o+1:0}this.needsScrollReset=!1}}}function B0(t,e){let n;return e.currentRangeUnit.match(/year|month/)&&(n=t.querySelector(`[data-date="${CS(e.currentDate)}-01"]`)),n||(n=t.querySelector(`[data-date="${js(e.currentDate)}"]`)),n}class L0 extends ef{constructor(){super(...arguments),this.forceDayIfListItem=!0}sliceRange(e,n){return n.sliceRange(e)}}class kf extends vt{constructor(){super(...arguments),this.slicer=new L0,this.tableRef=Fe()}render(){let{props:e,context:n}=this;return w($0,Object.assign({ref:this.tableRef},this.slicer.sliceProps(e,e.dateProfile,e.nextDayThreshold,n,e.dayTableModel),{dateProfile:e.dateProfile,cells:e.dayTableModel.cells,colGroupNode:e.colGroupNode,tableMinWidth:e.tableMinWidth,renderRowIntro:e.renderRowIntro,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,showWeekNumbers:e.showWeekNumbers,expandRows:e.expandRows,headerAlignElRef:e.headerAlignElRef,clientWidth:e.clientWidth,clientHeight:e.clientHeight,forPrint:e.forPrint}))}}class H0 extends S0{constructor(){super(...arguments),this.buildDayTableModel=le(z0),this.headerRef=Fe(),this.tableRef=Fe()}render(){let{options:e,dateProfileGenerator:n}=this.context,{props:r}=this,o=this.buildDayTableModel(r.dateProfile,n),i=e.dayHeaders&&w(Kd,{ref:this.headerRef,dateProfile:r.dateProfile,dates:o.headerDates,datesRepDistinctDays:o.rowCnt===1}),s=a=>w(kf,{ref:this.tableRef,dateProfile:r.dateProfile,dayTableModel:o,businessHours:r.businessHours,dateSelection:r.dateSelection,eventStore:r.eventStore,eventUiBases:r.eventUiBases,eventSelection:r.eventSelection,eventDrag:r.eventDrag,eventResize:r.eventResize,nextDayThreshold:e.nextDayThreshold,colGroupNode:a.tableColGroupNode,tableMinWidth:a.tableMinWidth,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,showWeekNumbers:e.weekNumbers,expandRows:!r.isHeightAuto,headerAlignElRef:this.headerElRef,clientWidth:a.clientWidth,clientHeight:a.clientHeight,forPrint:r.forPrint});return e.dayMinWidth?this.renderHScrollLayout(i,s,o.colCnt,e.dayMinWidth):this.renderSimpleLayout(i,s)}}function z0(t,e){let n=new Xd(t.renderRange,e);return new Jd(n,/year|month|week/.test(t.currentRangeUnit))}class F0 extends Dd{buildRenderRange(e,n,r){let o=super.buildRenderRange(e,n,r),{props:i}=this;return W0({currentRange:o,snapToWeek:/^(year|month)$/.test(n),fixedWeekCount:i.fixedWeekCount,dateEnv:i.dateEnv})}}function W0(t){let{dateEnv:e,currentRange:n}=t,{start:r,end:o}=n,i;if(t.snapToWeek&&(r=e.startOfWeek(r),i=e.startOfWeek(o),i.valueOf()!==o.valueOf()&&(o=Wl(i,1))),t.fixedWeekCount){let s=e.startOfWeek(e.startOfMonth(Be(n.end,-1))),a=Math.ceil(dS(s,o));o=Wl(o,6-a)}return{start:r,end:o}}var U0=':root{--fc-daygrid-event-dot-width:8px}.fc-daygrid-day-events:after,.fc-daygrid-day-events:before,.fc-daygrid-day-frame:after,.fc-daygrid-day-frame:before,.fc-daygrid-event-harness:after,.fc-daygrid-event-harness:before{clear:both;content:"";display:table}.fc .fc-daygrid-body{position:relative;z-index:1}.fc .fc-daygrid-day.fc-day-today{background-color:var(--fc-today-bg-color)}.fc .fc-daygrid-day-frame{min-height:100%;position:relative}.fc .fc-daygrid-day-top{display:flex;flex-direction:row-reverse}.fc .fc-day-other .fc-daygrid-day-top{opacity:.3}.fc .fc-daygrid-day-number{padding:4px;position:relative;z-index:4}.fc .fc-daygrid-month-start{font-size:1.1em;font-weight:700}.fc .fc-daygrid-day-events{margin-top:1px}.fc .fc-daygrid-body-balanced .fc-daygrid-day-events{left:0;position:absolute;right:0}.fc .fc-daygrid-body-unbalanced .fc-daygrid-day-events{min-height:2em;position:relative}.fc .fc-daygrid-body-natural .fc-daygrid-day-events{margin-bottom:1em}.fc .fc-daygrid-event-harness{position:relative}.fc .fc-daygrid-event-harness-abs{left:0;position:absolute;right:0;top:0}.fc .fc-daygrid-bg-harness{bottom:0;position:absolute;top:0}.fc .fc-daygrid-day-bg .fc-non-business{z-index:1}.fc .fc-daygrid-day-bg .fc-bg-event{z-index:2}.fc .fc-daygrid-day-bg .fc-highlight{z-index:3}.fc .fc-daygrid-event{margin-top:1px;z-index:6}.fc .fc-daygrid-event.fc-event-mirror{z-index:7}.fc .fc-daygrid-day-bottom{font-size:.85em;margin:0 2px}.fc .fc-daygrid-day-bottom:after,.fc .fc-daygrid-day-bottom:before{clear:both;content:"";display:table}.fc .fc-daygrid-more-link{border-radius:3px;cursor:pointer;line-height:1;margin-top:1px;max-width:100%;overflow:hidden;padding:2px;position:relative;white-space:nowrap;z-index:4}.fc .fc-daygrid-more-link:hover{background-color:rgba(0,0,0,.1)}.fc .fc-daygrid-week-number{background-color:var(--fc-neutral-bg-color);color:var(--fc-neutral-text-color);min-width:1.5em;padding:2px;position:absolute;text-align:center;top:0;z-index:5}.fc .fc-more-popover .fc-popover-body{min-width:220px;padding:10px}.fc-direction-ltr .fc-daygrid-event.fc-event-start,.fc-direction-rtl .fc-daygrid-event.fc-event-end{margin-left:2px}.fc-direction-ltr .fc-daygrid-event.fc-event-end,.fc-direction-rtl .fc-daygrid-event.fc-event-start{margin-right:2px}.fc-direction-ltr .fc-daygrid-more-link{float:left}.fc-direction-ltr .fc-daygrid-week-number{border-radius:0 0 3px 0;left:0}.fc-direction-rtl .fc-daygrid-more-link{float:right}.fc-direction-rtl .fc-daygrid-week-number{border-radius:0 0 0 3px;right:0}.fc-liquid-hack .fc-daygrid-day-frame{position:static}.fc-daygrid-event{border-radius:3px;font-size:var(--fc-small-font-size);position:relative;white-space:nowrap}.fc-daygrid-block-event .fc-event-time{font-weight:700}.fc-daygrid-block-event .fc-event-time,.fc-daygrid-block-event .fc-event-title{padding:1px}.fc-daygrid-dot-event{align-items:center;display:flex;padding:2px 0}.fc-daygrid-dot-event .fc-event-title{flex-grow:1;flex-shrink:1;font-weight:700;min-width:0;overflow:hidden}.fc-daygrid-dot-event.fc-event-mirror,.fc-daygrid-dot-event:hover{background:rgba(0,0,0,.1)}.fc-daygrid-dot-event.fc-event-selected:before{bottom:-10px;top:-10px}.fc-daygrid-event-dot{border:calc(var(--fc-daygrid-event-dot-width)/2) solid var(--fc-event-border-color);border-radius:calc(var(--fc-daygrid-event-dot-width)/2);box-sizing:content-box;height:0;margin:0 4px;width:0}.fc-direction-ltr .fc-daygrid-event .fc-event-time{margin-right:3px}.fc-direction-rtl .fc-daygrid-event .fc-event-time{margin-left:3px}';ks(U0);var G0=Rt({name:"@fullcalendar/daygrid",initialView:"dayGridMonth",views:{dayGrid:{component:H0,dateProfileGeneratorClass:F0},dayGridDay:{type:"dayGrid",duration:{days:1}},dayGridWeek:{type:"dayGrid",duration:{weeks:1}},dayGridMonth:{type:"dayGrid",duration:{months:1},fixedWeekCount:!0},dayGridYear:{type:"dayGrid",duration:{years:1}}}});class Y0 extends iw{getKeyInfo(){return{allDay:{},timed:{}}}getKeysForDateSpan(e){return e.allDay?["allDay"]:["timed"]}getKeysForEventDef(e){return e.allDay?NC(e)?["timed","allDay"]:["allDay"]:["timed"]}}const q0=Ie({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"short"});function Mf(t){let e=["fc-timegrid-slot","fc-timegrid-slot-label",t.isLabeled?"fc-scrollgrid-shrink":"fc-timegrid-slot-minor"];return w(At.Consumer,null,n=>{if(!t.isLabeled)return w("td",{className:e.join(" "),"data-time":t.isoTimeStr});let{dateEnv:r,options:o,viewApi:i}=n,s=o.slotLabelFormat==null?q0:Array.isArray(o.slotLabelFormat)?Ie(o.slotLabelFormat[0]):Ie(o.slotLabelFormat),a={level:0,time:t.time,date:r.toDate(t.date),view:i,text:r.format(t.date,s)};return w(et,{elTag:"td",elClasses:e,elAttrs:{"data-time":t.isoTimeStr},renderProps:a,generatorName:"slotLabelContent",customGenerator:o.slotLabelContent,defaultGenerator:Q0,classNameGenerator:o.slotLabelClassNames,didMount:o.slotLabelDidMount,willUnmount:o.slotLabelWillUnmount},l=>w("div",{className:"fc-timegrid-slot-label-frame fc-scrollgrid-shrink-frame"},w(l,{elTag:"div",elClasses:["fc-timegrid-slot-label-cushion","fc-scrollgrid-shrink-cushion"]})))})}function Q0(t){return t.text}class Z0 extends Se{render(){return this.props.slatMetas.map(e=>w("tr",{key:e.key},w(Mf,Object.assign({},e))))}}const K0=Ie({week:"short"}),X0=5;class J0 extends vt{constructor(){super(...arguments),this.allDaySplitter=new Y0,this.headerElRef=Fe(),this.rootElRef=Fe(),this.scrollerElRef=Fe(),this.state={slatCoords:null},this.handleScrollTopRequest=e=>{let n=this.scrollerElRef.current;n&&(n.scrollTop=e)},this.renderHeadAxis=(e,n="")=>{let{options:r}=this.context,{dateProfile:o}=this.props,i=o.renderRange,a=gn(i.start,i.end)===1?bo(this.context,i.start,"week"):{};return r.weekNumbers&&e==="day"?w(cf,{elTag:"th",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},date:i.start,defaultFormat:K0},l=>w("div",{className:["fc-timegrid-axis-frame","fc-scrollgrid-shrink-frame","fc-timegrid-axis-frame-liquid"].join(" "),style:{height:n}},w(l,{elTag:"a",elClasses:["fc-timegrid-axis-cushion","fc-scrollgrid-shrink-cushion","fc-scrollgrid-sync-inner"],elAttrs:a}))):w("th",{"aria-hidden":!0,className:"fc-timegrid-axis"},w("div",{className:"fc-timegrid-axis-frame",style:{height:n}}))},this.renderTableRowAxis=e=>{let{options:n,viewApi:r}=this.context,o={text:n.allDayText,view:r};return w(et,{elTag:"td",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},renderProps:o,generatorName:"allDayContent",customGenerator:n.allDayContent,defaultGenerator:eD,classNameGenerator:n.allDayClassNames,didMount:n.allDayDidMount,willUnmount:n.allDayWillUnmount},i=>w("div",{className:["fc-timegrid-axis-frame","fc-scrollgrid-shrink-frame",e==null?" fc-timegrid-axis-frame-liquid":""].join(" "),style:{height:e}},w(i,{elTag:"span",elClasses:["fc-timegrid-axis-cushion","fc-scrollgrid-shrink-cushion","fc-scrollgrid-sync-inner"]})))},this.handleSlatCoords=e=>{this.setState({slatCoords:e})}}renderSimpleLayout(e,n,r){let{context:o,props:i}=this,s=[],a=Eo(o.options);return e&&s.push({type:"header",key:"header",isSticky:a,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}}),n&&(s.push({type:"body",key:"all-day",chunk:{content:n}}),s.push({type:"body",key:"all-day-divider",outerContent:w("tr",{role:"presentation",className:"fc-scrollgrid-section"},w("td",{className:"fc-timegrid-divider "+o.theme.getClass("tableCellShaded")}))})),s.push({type:"body",key:"body",liquid:!0,expandRows:!!o.options.expandRows,chunk:{scrollerElRef:this.scrollerElRef,content:r}}),w(go,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:o.viewSpec},w(ta,{liquid:!i.isHeightAuto&&!i.forPrint,collapsibleWidth:i.forPrint,cols:[{width:"shrink"}],sections:s}))}renderHScrollLayout(e,n,r,o,i,s,a){let l=this.context.pluginHooks.scrollGridImpl;if(!l)throw new Error("No ScrollGrid implementation");let{context:c,props:u}=this,f=!u.forPrint&&Eo(c.options),p=!u.forPrint&&sf(c.options),h=[];e&&h.push({type:"header",key:"header",isSticky:f,syncRowHeights:!0,chunks:[{key:"axis",rowContent:g=>w("tr",{role:"presentation"},this.renderHeadAxis("day",g.rowSyncHeights[0]))},{key:"cols",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}]}),n&&(h.push({type:"body",key:"all-day",syncRowHeights:!0,chunks:[{key:"axis",rowContent:g=>w("tr",{role:"presentation"},this.renderTableRowAxis(g.rowSyncHeights[0]))},{key:"cols",content:n}]}),h.push({key:"all-day-divider",type:"body",outerContent:w("tr",{role:"presentation",className:"fc-scrollgrid-section"},w("td",{colSpan:2,className:"fc-timegrid-divider "+c.theme.getClass("tableCellShaded")}))}));let m=c.options.nowIndicator;return h.push({type:"body",key:"body",liquid:!0,expandRows:!!c.options.expandRows,chunks:[{key:"axis",content:g=>w("div",{className:"fc-timegrid-axis-chunk"},w("table",{"aria-hidden":!0,style:{height:g.expandRows?g.clientHeight:""}},g.tableColGroupNode,w("tbody",null,w(Z0,{slatMetas:s}))),w("div",{className:"fc-timegrid-now-indicator-container"},w(Wn,{unit:m?"minute":"day"},v=>{let b=m&&a&&a.safeComputeTop(v);return typeof b=="number"?w(oa,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:b},isAxis:!0,date:v}):null})))},{key:"cols",scrollerElRef:this.scrollerElRef,content:r}]}),p&&h.push({key:"footer",type:"footer",isSticky:!0,chunks:[{key:"axis",content:rs},{key:"cols",content:rs}]}),w(go,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:c.viewSpec},w(l,{liquid:!u.isHeightAuto&&!u.forPrint,forPrint:u.forPrint,collapsibleWidth:!1,colGroups:[{width:"shrink",cols:[{width:"shrink"}]},{cols:[{span:o,minWidth:i}]}],sections:h}))}getAllDayMaxEventProps(){let{dayMaxEvents:e,dayMaxEventRows:n}=this.context.options;return(e===!0||n===!0)&&(e=void 0,n=X0),{dayMaxEvents:e,dayMaxEventRows:n}}}function eD(t){return t.text}class tD{constructor(e,n,r){this.positions=e,this.dateProfile=n,this.slotDuration=r}safeComputeTop(e){let{dateProfile:n}=this;if(xt(n.currentRange,e)){let r=Re(e),o=e.valueOf()-r.valueOf();if(o>=at(n.slotMinTime)&&o<at(n.slotMaxTime))return this.computeTimeTop(ve(o))}return null}computeDateTop(e,n){return n||(n=Re(e)),this.computeTimeTop(ve(e.valueOf()-n.valueOf()))}computeTimeTop(e){let{positions:n,dateProfile:r}=this,o=n.els.length,i=(e.milliseconds-at(r.slotMinTime))/at(this.slotDuration),s,a;return i=Math.max(0,i),i=Math.min(o,i),s=Math.floor(i),s=Math.min(s,o-1),a=i-s,n.tops[s]+n.getHeight(s)*a}}class nD extends Se{render(){let{props:e,context:n}=this,{options:r}=n,{slatElRefs:o}=e;return w("tbody",null,e.slatMetas.map((i,s)=>{let a={time:i.time,date:n.dateEnv.toDate(i.date),view:n.viewApi};return w("tr",{key:i.key,ref:o.createRef(i.key)},e.axis&&w(Mf,Object.assign({},i)),w(et,{elTag:"td",elClasses:["fc-timegrid-slot","fc-timegrid-slot-lane",!i.isLabeled&&"fc-timegrid-slot-minor"],elAttrs:{"data-time":i.isoTimeStr},renderProps:a,generatorName:"slotLaneContent",customGenerator:r.slotLaneContent,classNameGenerator:r.slotLaneClassNames,didMount:r.slotLaneDidMount,willUnmount:r.slotLaneWillUnmount}))}))}}class rD extends Se{constructor(){super(...arguments),this.rootElRef=Fe(),this.slatElRefs=new wt}render(){let{props:e,context:n}=this;return w("div",{ref:this.rootElRef,className:"fc-timegrid-slots"},w("table",{"aria-hidden":!0,className:n.theme.getClass("table"),style:{minWidth:e.tableMinWidth,width:e.clientWidth,height:e.minHeight}},e.tableColGroupNode,w(nD,{slatElRefs:this.slatElRefs,axis:e.axis,slatMetas:e.slatMetas})))}componentDidMount(){this.updateSizing()}componentDidUpdate(){this.updateSizing()}componentWillUnmount(){this.props.onCoords&&this.props.onCoords(null)}updateSizing(){let{context:e,props:n}=this;n.onCoords&&n.clientWidth!==null&&this.rootElRef.current.offsetHeight&&n.onCoords(new tD(new Ln(this.rootElRef.current,oD(this.slatElRefs.currentMap,n.slatMetas),!1,!0),this.props.dateProfile,e.options.slotDuration))}}function oD(t,e){return e.map(n=>t[n.key])}function Jn(t,e){let n=[],r;for(r=0;r<e;r+=1)n.push([]);if(t)for(r=0;r<t.length;r+=1)n[t[r].col].push(t[r]);return n}function mc(t,e){let n=[];if(t){for(let r=0;r<e;r+=1)n[r]={affectedInstances:t.affectedInstances,isEvent:t.isEvent,segs:[]};for(let r of t.segs)n[r.col].segs.push(r)}else for(let r=0;r<e;r+=1)n[r]=null;return n}class iD extends Se{render(){let{props:e}=this;return w(uf,{elClasses:["fc-timegrid-more-link"],elStyle:{top:e.top,bottom:e.bottom},allDayDate:null,moreCnt:e.hiddenSegs.length,allSegs:e.hiddenSegs,hiddenSegs:e.hiddenSegs,extraDateSpan:e.extraDateSpan,dateProfile:e.dateProfile,todayRange:e.todayRange,popoverContent:()=>If(e.hiddenSegs,e),defaultGenerator:sD,forceTimed:!0},n=>w(n,{elTag:"div",elClasses:["fc-timegrid-more-link-inner","fc-sticky"]}))}}function sD(t){return t.shortText}function aD(t,e,n){let r=new qd;e!=null&&(r.strictOrder=e),n!=null&&(r.maxStackCnt=n);let o=r.addSegs(t),i=yw(o),s=lD(r);return s=fD(s,1),{segRects:pD(s),hiddenGroups:i}}function lD(t){const{entriesByLevel:e}=t,n=la((r,o)=>r+":"+o,(r,o)=>{let i=dD(t,r,o),s=vc(i,n),a=e[r][o];return[Object.assign(Object.assign({},a),{nextLevelNodes:s[0]}),a.thickness+s[1]]});return vc(e.length?{level:0,lateralStart:0,lateralEnd:e[0].length}:null,n)[0]}function vc(t,e){if(!t)return[[],0];let{level:n,lateralStart:r,lateralEnd:o}=t,i=r,s=[];for(;i<o;)s.push(e(n,i)),i+=1;return s.sort(cD),[s.map(uD),s[0][1]]}function cD(t,e){return e[1]-t[1]}function uD(t){return t[0]}function dD(t,e,n){let{levelCoords:r,entriesByLevel:o}=t,i=o[e][n],s=r[e]+i.thickness,a=r.length,l=e;for(;l<a&&r[l]<s;l+=1);for(;l<a;l+=1){let c=o[l],u,f=ns(c,i.span.start,ts),p=f[0]+f[1],h=p;for(;(u=c[h])&&u.span.start<i.span.end;)h+=1;if(p<h)return{level:l,lateralStart:p,lateralEnd:h}}return null}function fD(t,e){const n=la((r,o,i)=>ln(r),(r,o,i)=>{let{nextLevelNodes:s,thickness:a}=r,l=a+i,c=a/l,u,f=[];if(!s.length)u=e;else for(let h of s)if(u===void 0){let m=n(h,o,l);u=m[0],f.push(m[1])}else{let m=n(h,u,0);f.push(m[1])}let p=(u-o)*c;return[u-p,Object.assign(Object.assign({},r),{thickness:p,nextLevelNodes:f})]});return t.map(r=>n(r,0,0)[1])}function pD(t){let e=[];const n=la((o,i,s)=>ln(o),(o,i,s)=>{let a=Object.assign(Object.assign({},o),{levelCoord:i,stackDepth:s,stackForward:0});return e.push(a),a.stackForward=r(o.nextLevelNodes,i+o.thickness,s+1)+1});function r(o,i,s){let a=0;for(let l of o)a=Math.max(n(l,i,s),a);return a}return r(t,0,0),e}function la(t,e){const n={};return(...r)=>{let o=t(...r);return o in n?n[o]:n[o]=e(...r)}}function yc(t,e,n=null,r=0){let o=[];if(n)for(let i=0;i<t.length;i+=1){let s=t[i],a=n.computeDateTop(s.start,e),l=Math.max(a+(r||0),n.computeDateTop(s.end,e));o.push({start:Math.round(a),end:Math.round(l)})}return o}function hD(t,e,n,r){let o=[],i=[];for(let c=0;c<t.length;c+=1){let u=e[c];u?o.push({index:c,thickness:1,span:u}):i.push(t[c])}let{segRects:s,hiddenGroups:a}=aD(o,n,r),l=[];for(let c of s)l.push({seg:t[c.index],rect:c});for(let c of i)l.push({seg:c,rect:null});return{segPlacements:l,hiddenGroups:a}}const gD=Ie({hour:"numeric",minute:"2-digit",meridiem:!1});class Of extends Se{render(){return w(ra,Object.assign({},this.props,{elClasses:["fc-timegrid-event","fc-v-event",this.props.isShort&&"fc-timegrid-event-short"],defaultTimeFormat:gD}))}}class mD extends Se{constructor(){super(...arguments),this.sortEventSegs=le(Vd)}render(){let{props:e,context:n}=this,{options:r}=n,o=r.selectMirror,i=e.eventDrag&&e.eventDrag.segs||e.eventResize&&e.eventResize.segs||o&&e.dateSelectionSegs||[],s=e.eventDrag&&e.eventDrag.affectedInstances||e.eventResize&&e.eventResize.affectedInstances||{},a=this.sortEventSegs(e.fgEventSegs,r.eventOrder);return w(ia,{elTag:"td",elRef:e.elRef,elClasses:["fc-timegrid-col",...e.extraClassNames||[]],elAttrs:Object.assign({role:"gridcell"},e.extraDataAttrs),date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,extraRenderProps:e.extraRenderProps},l=>w("div",{className:"fc-timegrid-col-frame"},w("div",{className:"fc-timegrid-col-bg"},this.renderFillSegs(e.businessHourSegs,"non-business"),this.renderFillSegs(e.bgEventSegs,"bg-event"),this.renderFillSegs(e.dateSelectionSegs,"highlight")),w("div",{className:"fc-timegrid-col-events"},this.renderFgSegs(a,s,!1,!1,!1)),w("div",{className:"fc-timegrid-col-events"},this.renderFgSegs(i,{},!!e.eventDrag,!!e.eventResize,!!o,"mirror")),w("div",{className:"fc-timegrid-now-indicator-container"},this.renderNowIndicator(e.nowIndicatorSegs)),sa(r)&&w(l,{elTag:"div",elClasses:["fc-timegrid-col-misc"]})))}renderFgSegs(e,n,r,o,i,s){let{props:a}=this;return a.forPrint?If(e,a):this.renderPositionedFgSegs(e,n,r,o,i,s)}renderPositionedFgSegs(e,n,r,o,i,s){let{eventMaxStack:a,eventShortHeight:l,eventOrderStrict:c,eventMinHeight:u}=this.context.options,{date:f,slatCoords:p,eventSelection:h,todayRange:m,nowDate:g}=this.props,v=r||o||i,b=yc(e,f,p,u),{segPlacements:S,hiddenGroups:R}=hD(e,b,c,a);return w(Ae,null,this.renderHiddenGroups(R,e),S.map(C=>{let{seg:A,rect:T}=C,k=A.eventRange.instance.instanceId,P=v||!!(!n[k]&&T),H=ki(T&&T.span),W=!v&&T?this.computeSegHStyle(T):{left:0,right:0},$=!!T&&T.stackForward>0,y=!!T&&T.span.end-T.span.start<l;return w("div",{className:"fc-timegrid-event-harness"+($?" fc-timegrid-event-harness-inset":""),key:s||k,style:Object.assign(Object.assign({visibility:P?"":"hidden"},H),W)},w(Of,Object.assign({seg:A,isDragging:r,isResizing:o,isDateSelecting:i,isSelected:k===h,isShort:y},jt(A,m,g))))}))}renderHiddenGroups(e,n){let{extraDateSpan:r,dateProfile:o,todayRange:i,nowDate:s,eventSelection:a,eventDrag:l,eventResize:c}=this.props;return w(Ae,null,e.map(u=>{let f=ki(u.span),p=vD(u.entries,n);return w(iD,{key:md(df(p)),hiddenSegs:p,top:f.top,bottom:f.bottom,extraDateSpan:r,dateProfile:o,todayRange:i,nowDate:s,eventSelection:a,eventDrag:l,eventResize:c})}))}renderFillSegs(e,n){let{props:r,context:o}=this,s=yc(e,r.date,r.slatCoords,o.options.eventMinHeight).map((a,l)=>{let c=e[l];return w("div",{key:Bd(c.eventRange),className:"fc-timegrid-bg-harness",style:ki(a)},n==="bg-event"?w(af,Object.assign({seg:c},jt(c,r.todayRange,r.nowDate))):lf(n))});return w(Ae,null,s)}renderNowIndicator(e){let{slatCoords:n,date:r}=this.props;return n?e.map((o,i)=>w(oa,{key:i,elClasses:["fc-timegrid-now-indicator-line"],elStyle:{top:n.computeDateTop(o.start,r)},isAxis:!1,date:r})):null}computeSegHStyle(e){let{isRtl:n,options:r}=this.context,o=r.slotEventOverlap,i=e.levelCoord,s=e.levelCoord+e.thickness,a,l;o&&(s=Math.min(1,i+(s-i)*2)),n?(a=1-s,l=i):(a=i,l=1-s);let c={zIndex:e.stackDepth+1,left:a*100+"%",right:l*100+"%"};return o&&!e.stackForward&&(c[n?"marginLeft":"marginRight"]=10*2),c}}function If(t,{todayRange:e,nowDate:n,eventSelection:r,eventDrag:o,eventResize:i}){let s=(o?o.affectedInstances:null)||(i?i.affectedInstances:null)||{};return w(Ae,null,t.map(a=>{let l=a.eventRange.instance.instanceId;return w("div",{key:l,style:{visibility:s[l]?"hidden":""}},w(Of,Object.assign({seg:a,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:l===r,isShort:!1},jt(a,e,n))))}))}function ki(t){return t?{top:t.start,bottom:-t.end}:{top:"",bottom:""}}function vD(t,e){return t.map(n=>e[n.index])}class yD extends Se{constructor(){super(...arguments),this.splitFgEventSegs=le(Jn),this.splitBgEventSegs=le(Jn),this.splitBusinessHourSegs=le(Jn),this.splitNowIndicatorSegs=le(Jn),this.splitDateSelectionSegs=le(Jn),this.splitEventDrag=le(mc),this.splitEventResize=le(mc),this.rootElRef=Fe(),this.cellElRefs=new wt}render(){let{props:e,context:n}=this,r=n.options.nowIndicator&&e.slatCoords&&e.slatCoords.safeComputeTop(e.nowDate),o=e.cells.length,i=this.splitFgEventSegs(e.fgEventSegs,o),s=this.splitBgEventSegs(e.bgEventSegs,o),a=this.splitBusinessHourSegs(e.businessHourSegs,o),l=this.splitNowIndicatorSegs(e.nowIndicatorSegs,o),c=this.splitDateSelectionSegs(e.dateSelectionSegs,o),u=this.splitEventDrag(e.eventDrag,o),f=this.splitEventResize(e.eventResize,o);return w("div",{className:"fc-timegrid-cols",ref:this.rootElRef},w("table",{role:"presentation",style:{minWidth:e.tableMinWidth,width:e.clientWidth}},e.tableColGroupNode,w("tbody",{role:"presentation"},w("tr",{role:"row"},e.axis&&w("td",{"aria-hidden":!0,className:"fc-timegrid-col fc-timegrid-axis"},w("div",{className:"fc-timegrid-col-frame"},w("div",{className:"fc-timegrid-now-indicator-container"},typeof r=="number"&&w(oa,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:r},isAxis:!0,date:e.nowDate})))),e.cells.map((p,h)=>w(mD,{key:p.key,elRef:this.cellElRefs.createRef(p.key),dateProfile:e.dateProfile,date:p.date,nowDate:e.nowDate,todayRange:e.todayRange,extraRenderProps:p.extraRenderProps,extraDataAttrs:p.extraDataAttrs,extraClassNames:p.extraClassNames,extraDateSpan:p.extraDateSpan,fgEventSegs:i[h],bgEventSegs:s[h],businessHourSegs:a[h],nowIndicatorSegs:l[h],dateSelectionSegs:c[h],eventDrag:u[h],eventResize:f[h],slatCoords:e.slatCoords,eventSelection:e.eventSelection,forPrint:e.forPrint}))))))}componentDidMount(){this.updateCoords()}componentDidUpdate(){this.updateCoords()}updateCoords(){let{props:e}=this;e.onColCoords&&e.clientWidth!==null&&e.onColCoords(new Ln(this.rootElRef.current,bD(this.cellElRefs.currentMap,e.cells),!0,!1))}}function bD(t,e){return e.map(n=>t[n.key])}class ED extends vt{constructor(){super(...arguments),this.processSlotOptions=le(SD),this.state={slatCoords:null},this.handleRootEl=e=>{e?this.context.registerInteractiveComponent(this,{el:e,isHitComboAllowed:this.props.isHitComboAllowed}):this.context.unregisterInteractiveComponent(this)},this.handleScrollRequest=e=>{let{onScrollTopRequest:n}=this.props,{slatCoords:r}=this.state;if(n&&r){if(e.time){let o=r.computeTimeTop(e.time);o=Math.ceil(o),o&&(o+=1),n(o)}return!0}return!1},this.handleColCoords=e=>{this.colCoords=e},this.handleSlatCoords=e=>{this.setState({slatCoords:e}),this.props.onSlatCoords&&this.props.onSlatCoords(e)}}render(){let{props:e,state:n}=this;return w("div",{className:"fc-timegrid-body",ref:this.handleRootEl,style:{width:e.clientWidth,minWidth:e.tableMinWidth}},w(rD,{axis:e.axis,dateProfile:e.dateProfile,slatMetas:e.slatMetas,clientWidth:e.clientWidth,minHeight:e.expandRows?e.clientHeight:"",tableMinWidth:e.tableMinWidth,tableColGroupNode:e.axis?e.tableColGroupNode:null,onCoords:this.handleSlatCoords}),w(yD,{cells:e.cells,axis:e.axis,dateProfile:e.dateProfile,businessHourSegs:e.businessHourSegs,bgEventSegs:e.bgEventSegs,fgEventSegs:e.fgEventSegs,dateSelectionSegs:e.dateSelectionSegs,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,todayRange:e.todayRange,nowDate:e.nowDate,nowIndicatorSegs:e.nowIndicatorSegs,clientWidth:e.clientWidth,tableMinWidth:e.tableMinWidth,tableColGroupNode:e.tableColGroupNode,slatCoords:n.slatCoords,onColCoords:this.handleColCoords,forPrint:e.forPrint}))}componentDidMount(){this.scrollResponder=this.context.createScrollResponder(this.handleScrollRequest)}componentDidUpdate(e){this.scrollResponder.update(e.dateProfile!==this.props.dateProfile)}componentWillUnmount(){this.scrollResponder.detach()}queryHit(e,n){let{dateEnv:r,options:o}=this.context,{colCoords:i}=this,{dateProfile:s}=this.props,{slatCoords:a}=this.state,{snapDuration:l,snapsPerSlot:c}=this.processSlotOptions(this.props.slotDuration,o.snapDuration),u=i.leftToIndex(e),f=a.positions.topToIndex(n);if(u!=null&&f!=null){let p=this.props.cells[u],h=a.positions.tops[f],m=a.positions.getHeight(f),g=(n-h)/m,v=Math.floor(g*c),b=f*c+v,S=this.props.cells[u].date,R=Qi(s.slotMinTime,aS(l,b)),C=r.add(S,R),A=r.add(C,l);return{dateProfile:s,dateSpan:Object.assign({range:{start:C,end:A},allDay:!1},p.extraDateSpan),dayEl:i.els[u],rect:{left:i.lefts[u],right:i.rights[u],top:h,bottom:h+m},layer:0}}return null}}function SD(t,e){let n=e||t,r=Ns(t,n);return r===null&&(n=t,r=1),{snapDuration:n,snapsPerSlot:r}}class CD extends ef{sliceRange(e,n){let r=[];for(let o=0;o<n.length;o+=1){let i=dn(e,n[o]);i&&r.push({start:i.start,end:i.end,isStart:i.start.valueOf()===e.start.valueOf(),isEnd:i.end.valueOf()===e.end.valueOf(),col:o})}return r}}class wD extends vt{constructor(){super(...arguments),this.buildDayRanges=le(xD),this.slicer=new CD,this.timeColsRef=Fe()}render(){let{props:e,context:n}=this,{dateProfile:r,dayTableModel:o}=e,{nowIndicator:i,nextDayThreshold:s}=n.options,a=this.buildDayRanges(o,r,n.dateEnv);return w(Wn,{unit:i?"minute":"day"},(l,c)=>w(ED,Object.assign({ref:this.timeColsRef},this.slicer.sliceProps(e,r,null,n,a),{forPrint:e.forPrint,axis:e.axis,dateProfile:r,slatMetas:e.slatMetas,slotDuration:e.slotDuration,cells:o.cells[0],tableColGroupNode:e.tableColGroupNode,tableMinWidth:e.tableMinWidth,clientWidth:e.clientWidth,clientHeight:e.clientHeight,expandRows:e.expandRows,nowDate:l,nowIndicatorSegs:i&&this.slicer.sliceNowDate(l,r,s,n,a),todayRange:c,onScrollTopRequest:e.onScrollTopRequest,onSlatCoords:e.onSlatCoords})))}}function xD(t,e,n){let r=[];for(let o of t.headerDates)r.push({start:n.add(o,e.slotMinTime),end:n.add(o,e.slotMaxTime)});return r}const bc=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}];function DD(t,e,n,r,o){let i=new Date(0),s=t,a=ve(0),l=n||TD(r),c=[];for(;at(s)<at(e);){let u=o.add(i,s),f=Ns(a,l)!==null;c.push({date:u,time:s,key:u.toISOString(),isoTimeStr:wS(u),isLabeled:f}),s=Qi(s,r),a=Qi(a,r)}return c}function TD(t){let e,n,r;for(e=bc.length-1;e>=0;e-=1)if(n=ve(bc[e]),r=Ns(n,t),r!==null&&r>1)return n;return t}class AD extends J0{constructor(){super(...arguments),this.buildTimeColsModel=le(RD),this.buildSlatMetas=le(DD)}render(){let{options:e,dateEnv:n,dateProfileGenerator:r}=this.context,{props:o}=this,{dateProfile:i}=o,s=this.buildTimeColsModel(i,r),a=this.allDaySplitter.splitProps(o),l=this.buildSlatMetas(i.slotMinTime,i.slotMaxTime,e.slotLabelInterval,e.slotDuration,n),{dayMinWidth:c}=e,u=!c,f=c,p=e.dayHeaders&&w(Kd,{dates:s.headerDates,dateProfile:i,datesRepDistinctDays:!0,renderIntro:u?this.renderHeadAxis:null}),h=e.allDaySlot!==!1&&(g=>w(kf,Object.assign({},a.allDay,{dateProfile:i,dayTableModel:s,nextDayThreshold:e.nextDayThreshold,tableMinWidth:g.tableMinWidth,colGroupNode:g.tableColGroupNode,renderRowIntro:u?this.renderTableRowAxis:null,showWeekNumbers:!1,expandRows:!1,headerAlignElRef:this.headerElRef,clientWidth:g.clientWidth,clientHeight:g.clientHeight,forPrint:o.forPrint},this.getAllDayMaxEventProps()))),m=g=>w(wD,Object.assign({},a.timed,{dayTableModel:s,dateProfile:i,axis:u,slotDuration:e.slotDuration,slatMetas:l,forPrint:o.forPrint,tableColGroupNode:g.tableColGroupNode,tableMinWidth:g.tableMinWidth,clientWidth:g.clientWidth,clientHeight:g.clientHeight,onSlatCoords:this.handleSlatCoords,expandRows:g.expandRows,onScrollTopRequest:this.handleScrollTopRequest}));return f?this.renderHScrollLayout(p,h,m,s.colCnt,c,l,this.state.slatCoords):this.renderSimpleLayout(p,h,m)}}function RD(t,e){let n=new Xd(t.renderRange,e);return new Jd(n,!1)}var _D='.fc-v-event{background-color:var(--fc-event-bg-color);border:1px solid var(--fc-event-border-color);display:block}.fc-v-event .fc-event-main{color:var(--fc-event-text-color);height:100%}.fc-v-event .fc-event-main-frame{display:flex;flex-direction:column;height:100%}.fc-v-event .fc-event-time{flex-grow:0;flex-shrink:0;max-height:100%;overflow:hidden}.fc-v-event .fc-event-title-container{flex-grow:1;flex-shrink:1;min-height:0}.fc-v-event .fc-event-title{bottom:0;max-height:100%;overflow:hidden;top:0}.fc-v-event:not(.fc-event-start){border-top-left-radius:0;border-top-right-radius:0;border-top-width:0}.fc-v-event:not(.fc-event-end){border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom-width:0}.fc-v-event.fc-event-selected:before{left:-10px;right:-10px}.fc-v-event .fc-event-resizer-start{cursor:n-resize}.fc-v-event .fc-event-resizer-end{cursor:s-resize}.fc-v-event:not(.fc-event-selected) .fc-event-resizer{height:var(--fc-event-resizer-thickness);left:0;right:0}.fc-v-event:not(.fc-event-selected) .fc-event-resizer-start{top:calc(var(--fc-event-resizer-thickness)/-2)}.fc-v-event:not(.fc-event-selected) .fc-event-resizer-end{bottom:calc(var(--fc-event-resizer-thickness)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer{left:50%;margin-left:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer-start{top:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer-end{bottom:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc .fc-timegrid .fc-daygrid-body{z-index:2}.fc .fc-timegrid-divider{padding:0 0 2px}.fc .fc-timegrid-body{min-height:100%;position:relative;z-index:1}.fc .fc-timegrid-axis-chunk{position:relative}.fc .fc-timegrid-axis-chunk>table,.fc .fc-timegrid-slots{position:relative;z-index:1}.fc .fc-timegrid-slot{border-bottom:0;height:1.5em}.fc .fc-timegrid-slot:empty:before{content:"\\00a0"}.fc .fc-timegrid-slot-minor{border-top-style:dotted}.fc .fc-timegrid-slot-label-cushion{display:inline-block;white-space:nowrap}.fc .fc-timegrid-slot-label{vertical-align:middle}.fc .fc-timegrid-axis-cushion,.fc .fc-timegrid-slot-label-cushion{padding:0 4px}.fc .fc-timegrid-axis-frame-liquid{height:100%}.fc .fc-timegrid-axis-frame{align-items:center;display:flex;justify-content:flex-end;overflow:hidden}.fc .fc-timegrid-axis-cushion{flex-shrink:0;max-width:60px}.fc-direction-ltr .fc-timegrid-slot-label-frame{text-align:right}.fc-direction-rtl .fc-timegrid-slot-label-frame{text-align:left}.fc-liquid-hack .fc-timegrid-axis-frame-liquid{bottom:0;height:auto;left:0;position:absolute;right:0;top:0}.fc .fc-timegrid-col.fc-day-today{background-color:var(--fc-today-bg-color)}.fc .fc-timegrid-col-frame{min-height:100%;position:relative}.fc-media-screen.fc-liquid-hack .fc-timegrid-col-frame{bottom:0;height:auto;left:0;position:absolute;right:0;top:0}.fc-media-screen .fc-timegrid-cols{bottom:0;left:0;position:absolute;right:0;top:0}.fc-media-screen .fc-timegrid-cols>table{height:100%}.fc-media-screen .fc-timegrid-col-bg,.fc-media-screen .fc-timegrid-col-events,.fc-media-screen .fc-timegrid-now-indicator-container{left:0;position:absolute;right:0;top:0}.fc .fc-timegrid-col-bg{z-index:2}.fc .fc-timegrid-col-bg .fc-non-business{z-index:1}.fc .fc-timegrid-col-bg .fc-bg-event{z-index:2}.fc .fc-timegrid-col-bg .fc-highlight{z-index:3}.fc .fc-timegrid-bg-harness{left:0;position:absolute;right:0}.fc .fc-timegrid-col-events{z-index:3}.fc .fc-timegrid-now-indicator-container{bottom:0;overflow:hidden}.fc-direction-ltr .fc-timegrid-col-events{margin:0 2.5% 0 2px}.fc-direction-rtl .fc-timegrid-col-events{margin:0 2px 0 2.5%}.fc-timegrid-event-harness{position:absolute}.fc-timegrid-event-harness>.fc-timegrid-event{bottom:0;left:0;position:absolute;right:0;top:0}.fc-timegrid-event-harness-inset .fc-timegrid-event,.fc-timegrid-event.fc-event-mirror,.fc-timegrid-more-link{box-shadow:0 0 0 1px var(--fc-page-bg-color)}.fc-timegrid-event,.fc-timegrid-more-link{border-radius:3px;font-size:var(--fc-small-font-size)}.fc-timegrid-event{margin-bottom:1px}.fc-timegrid-event .fc-event-main{padding:1px 1px 0}.fc-timegrid-event .fc-event-time{font-size:var(--fc-small-font-size);margin-bottom:1px;white-space:nowrap}.fc-timegrid-event-short .fc-event-main-frame{flex-direction:row;overflow:hidden}.fc-timegrid-event-short .fc-event-time:after{content:"\\00a0-\\00a0"}.fc-timegrid-event-short .fc-event-title{font-size:var(--fc-small-font-size)}.fc-timegrid-more-link{background:var(--fc-more-link-bg-color);color:var(--fc-more-link-text-color);cursor:pointer;margin-bottom:1px;position:absolute;z-index:9999}.fc-timegrid-more-link-inner{padding:3px 2px;top:0}.fc-direction-ltr .fc-timegrid-more-link{right:0}.fc-direction-rtl .fc-timegrid-more-link{left:0}.fc .fc-timegrid-now-indicator-arrow,.fc .fc-timegrid-now-indicator-line{pointer-events:none}.fc .fc-timegrid-now-indicator-line{border-color:var(--fc-now-indicator-color);border-style:solid;border-width:1px 0 0;left:0;position:absolute;right:0;z-index:4}.fc .fc-timegrid-now-indicator-arrow{border-color:var(--fc-now-indicator-color);border-style:solid;margin-top:-5px;position:absolute;z-index:4}.fc-direction-ltr .fc-timegrid-now-indicator-arrow{border-bottom-color:transparent;border-top-color:transparent;border-width:5px 0 5px 6px;left:0}.fc-direction-rtl .fc-timegrid-now-indicator-arrow{border-bottom-color:transparent;border-top-color:transparent;border-width:5px 6px 5px 0;right:0}';ks(_D);const kD={allDaySlot:Boolean};var MD=Rt({name:"@fullcalendar/timegrid",initialView:"timeGridWeek",optionRefiners:kD,views:{timeGrid:{component:AD,usesMinMaxTime:!0,allDaySlot:!0,slotDuration:"00:30:00",slotEventOverlap:!0},timeGridDay:{type:"timeGrid",duration:{days:1}},timeGridWeek:{type:"timeGrid",duration:{weeks:1}}}});ea.touchMouseIgnoreWait=500;let is=0,So=0,ss=!1;class Pf{constructor(e){this.subjectEl=null,this.selector="",this.handleSelector="",this.shouldIgnoreMove=!1,this.shouldWatchScroll=!0,this.isDragging=!1,this.isTouchDragging=!1,this.wasTouchScroll=!1,this.handleMouseDown=n=>{if(!this.shouldIgnoreMouse()&&OD(n)&&this.tryStart(n)){let r=this.createEventFromMouse(n,!0);this.emitter.trigger("pointerdown",r),this.initScrollWatch(r),this.shouldIgnoreMove||document.addEventListener("mousemove",this.handleMouseMove),document.addEventListener("mouseup",this.handleMouseUp)}},this.handleMouseMove=n=>{let r=this.createEventFromMouse(n);this.recordCoords(r),this.emitter.trigger("pointermove",r)},this.handleMouseUp=n=>{document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp),this.emitter.trigger("pointerup",this.createEventFromMouse(n)),this.cleanup()},this.handleTouchStart=n=>{if(this.tryStart(n)){this.isTouchDragging=!0;let r=this.createEventFromTouch(n,!0);this.emitter.trigger("pointerdown",r),this.initScrollWatch(r);let o=n.target;this.shouldIgnoreMove||o.addEventListener("touchmove",this.handleTouchMove),o.addEventListener("touchend",this.handleTouchEnd),o.addEventListener("touchcancel",this.handleTouchEnd),window.addEventListener("scroll",this.handleTouchScroll,!0)}},this.handleTouchMove=n=>{let r=this.createEventFromTouch(n);this.recordCoords(r),this.emitter.trigger("pointermove",r)},this.handleTouchEnd=n=>{if(this.isDragging){let r=n.target;r.removeEventListener("touchmove",this.handleTouchMove),r.removeEventListener("touchend",this.handleTouchEnd),r.removeEventListener("touchcancel",this.handleTouchEnd),window.removeEventListener("scroll",this.handleTouchScroll,!0),this.emitter.trigger("pointerup",this.createEventFromTouch(n)),this.cleanup(),this.isTouchDragging=!1,ID()}},this.handleTouchScroll=()=>{this.wasTouchScroll=!0},this.handleScroll=n=>{if(!this.shouldIgnoreMove){let r=window.scrollX-this.prevScrollX+this.prevPageX,o=window.scrollY-this.prevScrollY+this.prevPageY;this.emitter.trigger("pointermove",{origEvent:n,isTouch:this.isTouchDragging,subjectEl:this.subjectEl,pageX:r,pageY:o,deltaX:r-this.origPageX,deltaY:o-this.origPageY})}},this.containerEl=e,this.emitter=new Go,e.addEventListener("mousedown",this.handleMouseDown),e.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),PD()}destroy(){this.containerEl.removeEventListener("mousedown",this.handleMouseDown),this.containerEl.removeEventListener("touchstart",this.handleTouchStart,{passive:!0}),ND()}tryStart(e){let n=this.querySubjectEl(e),r=e.target;return n&&(!this.handleSelector||He(r,this.handleSelector))?(this.subjectEl=n,this.isDragging=!0,this.wasTouchScroll=!1,!0):!1}cleanup(){ss=!1,this.isDragging=!1,this.subjectEl=null,this.destroyScrollWatch()}querySubjectEl(e){return this.selector?He(e.target,this.selector):this.containerEl}shouldIgnoreMouse(){return is||this.isTouchDragging}cancelTouchScroll(){this.isDragging&&(ss=!0)}initScrollWatch(e){this.shouldWatchScroll&&(this.recordCoords(e),window.addEventListener("scroll",this.handleScroll,!0))}recordCoords(e){this.shouldWatchScroll&&(this.prevPageX=e.pageX,this.prevPageY=e.pageY,this.prevScrollX=window.scrollX,this.prevScrollY=window.scrollY)}destroyScrollWatch(){this.shouldWatchScroll&&window.removeEventListener("scroll",this.handleScroll,!0)}createEventFromMouse(e,n){let r=0,o=0;return n?(this.origPageX=e.pageX,this.origPageY=e.pageY):(r=e.pageX-this.origPageX,o=e.pageY-this.origPageY),{origEvent:e,isTouch:!1,subjectEl:this.subjectEl,pageX:e.pageX,pageY:e.pageY,deltaX:r,deltaY:o}}createEventFromTouch(e,n){let r=e.touches,o,i,s=0,a=0;return r&&r.length?(o=r[0].pageX,i=r[0].pageY):(o=e.pageX,i=e.pageY),n?(this.origPageX=o,this.origPageY=i):(s=o-this.origPageX,a=i-this.origPageY),{origEvent:e,isTouch:!0,subjectEl:this.subjectEl,pageX:o,pageY:i,deltaX:s,deltaY:a}}}function OD(t){return t.button===0&&!t.ctrlKey}function ID(){is+=1,setTimeout(()=>{is-=1},ea.touchMouseIgnoreWait)}function PD(){So+=1,So===1&&window.addEventListener("touchmove",Nf,{passive:!1})}function ND(){So-=1,So||window.removeEventListener("touchmove",Nf,{passive:!1})}function Nf(t){ss&&t.preventDefault()}class jD{constructor(){this.isVisible=!1,this.sourceEl=null,this.mirrorEl=null,this.sourceElRect=null,this.parentNode=document.body,this.zIndex=9999,this.revertDuration=0}start(e,n,r){this.sourceEl=e,this.sourceElRect=this.sourceEl.getBoundingClientRect(),this.origScreenX=n-window.scrollX,this.origScreenY=r-window.scrollY,this.deltaX=0,this.deltaY=0,this.updateElPosition()}handleMove(e,n){this.deltaX=e-window.scrollX-this.origScreenX,this.deltaY=n-window.scrollY-this.origScreenY,this.updateElPosition()}setIsVisible(e){e?this.isVisible||(this.mirrorEl&&(this.mirrorEl.style.display=""),this.isVisible=e,this.updateElPosition()):this.isVisible&&(this.mirrorEl&&(this.mirrorEl.style.display="none"),this.isVisible=e)}stop(e,n){let r=()=>{this.cleanup(),n()};e&&this.mirrorEl&&this.isVisible&&this.revertDuration&&(this.deltaX||this.deltaY)?this.doRevertAnimation(r,this.revertDuration):setTimeout(r,0)}doRevertAnimation(e,n){let r=this.mirrorEl,o=this.sourceEl.getBoundingClientRect();r.style.transition="top "+n+"ms,left "+n+"ms",sr(r,{left:o.left,top:o.top}),GE(r,()=>{r.style.transition="",e()})}cleanup(){this.mirrorEl&&(Os(this.mirrorEl),this.mirrorEl=null),this.sourceEl=null}updateElPosition(){this.sourceEl&&this.isVisible&&sr(this.getMirrorEl(),{left:this.sourceElRect.left+this.deltaX,top:this.sourceElRect.top+this.deltaY})}getMirrorEl(){let e=this.sourceElRect,n=this.mirrorEl;return n||(n=this.mirrorEl=this.sourceEl.cloneNode(!0),n.style.userSelect="none",n.style.webkitUserSelect="none",n.style.pointerEvents="none",n.classList.add("fc-event-dragging"),sr(n,{position:"fixed",zIndex:this.zIndex,visibility:"",boxSizing:"border-box",width:e.right-e.left,height:e.bottom-e.top,right:"auto",bottom:"auto",margin:0}),this.parentNode.appendChild(n)),n}}class jf extends Xs{constructor(e,n){super(),this.handleScroll=()=>{this.scrollTop=this.scrollController.getScrollTop(),this.scrollLeft=this.scrollController.getScrollLeft(),this.handleScrollChange()},this.scrollController=e,this.doesListening=n,this.scrollTop=this.origScrollTop=e.getScrollTop(),this.scrollLeft=this.origScrollLeft=e.getScrollLeft(),this.scrollWidth=e.getScrollWidth(),this.scrollHeight=e.getScrollHeight(),this.clientWidth=e.getClientWidth(),this.clientHeight=e.getClientHeight(),this.clientRect=this.computeClientRect(),this.doesListening&&this.getEventTarget().addEventListener("scroll",this.handleScroll)}destroy(){this.doesListening&&this.getEventTarget().removeEventListener("scroll",this.handleScroll)}getScrollTop(){return this.scrollTop}getScrollLeft(){return this.scrollLeft}setScrollTop(e){this.scrollController.setScrollTop(e),this.doesListening||(this.scrollTop=Math.max(Math.min(e,this.getMaxScrollTop()),0),this.handleScrollChange())}setScrollLeft(e){this.scrollController.setScrollLeft(e),this.doesListening||(this.scrollLeft=Math.max(Math.min(e,this.getMaxScrollLeft()),0),this.handleScrollChange())}getClientWidth(){return this.clientWidth}getClientHeight(){return this.clientHeight}getScrollWidth(){return this.scrollWidth}getScrollHeight(){return this.scrollHeight}handleScrollChange(){}}class Vf extends jf{constructor(e,n){super(new mw(e),n)}getEventTarget(){return this.scrollController.el}computeClientRect(){return hw(this.scrollController.el)}}class VD extends jf{constructor(e){super(new vw,e)}getEventTarget(){return window}computeClientRect(){return{left:this.scrollLeft,right:this.scrollLeft+this.clientWidth,top:this.scrollTop,bottom:this.scrollTop+this.clientHeight}}handleScrollChange(){this.clientRect=this.computeClientRect()}}const Ec=typeof performance=="function"?performance.now:Date.now;class $D{constructor(){this.isEnabled=!0,this.scrollQuery=[window,".fc-scroller"],this.edgeThreshold=50,this.maxVelocity=300,this.pointerScreenX=null,this.pointerScreenY=null,this.isAnimating=!1,this.scrollCaches=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.animate=()=>{if(this.isAnimating){let e=this.computeBestEdge(this.pointerScreenX+window.scrollX,this.pointerScreenY+window.scrollY);if(e){let n=Ec();this.handleSide(e,(n-this.msSinceRequest)/1e3),this.requestAnimation(n)}else this.isAnimating=!1}}}start(e,n,r){this.isEnabled&&(this.scrollCaches=this.buildCaches(r),this.pointerScreenX=null,this.pointerScreenY=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.handleMove(e,n))}handleMove(e,n){if(this.isEnabled){let r=e-window.scrollX,o=n-window.scrollY,i=this.pointerScreenY===null?0:o-this.pointerScreenY,s=this.pointerScreenX===null?0:r-this.pointerScreenX;i<0?this.everMovedUp=!0:i>0&&(this.everMovedDown=!0),s<0?this.everMovedLeft=!0:s>0&&(this.everMovedRight=!0),this.pointerScreenX=r,this.pointerScreenY=o,this.isAnimating||(this.isAnimating=!0,this.requestAnimation(Ec()))}}stop(){if(this.isEnabled){this.isAnimating=!1;for(let e of this.scrollCaches)e.destroy();this.scrollCaches=null}}requestAnimation(e){this.msSinceRequest=e,requestAnimationFrame(this.animate)}handleSide(e,n){let{scrollCache:r}=e,{edgeThreshold:o}=this,i=o-e.distance,s=i*i/(o*o)*this.maxVelocity*n,a=1;switch(e.name){case"left":a=-1;case"right":r.setScrollLeft(r.getScrollLeft()+s*a);break;case"top":a=-1;case"bottom":r.setScrollTop(r.getScrollTop()+s*a);break}}computeBestEdge(e,n){let{edgeThreshold:r}=this,o=null,i=this.scrollCaches||[];for(let s of i){let a=s.clientRect,l=e-a.left,c=a.right-e,u=n-a.top,f=a.bottom-n;l>=0&&c>=0&&u>=0&&f>=0&&(u<=r&&this.everMovedUp&&s.canScrollUp()&&(!o||o.distance>u)&&(o={scrollCache:s,name:"top",distance:u}),f<=r&&this.everMovedDown&&s.canScrollDown()&&(!o||o.distance>f)&&(o={scrollCache:s,name:"bottom",distance:f}),l<=r&&this.everMovedLeft&&s.canScrollLeft()&&(!o||o.distance>l)&&(o={scrollCache:s,name:"left",distance:l}),c<=r&&this.everMovedRight&&s.canScrollRight()&&(!o||o.distance>c)&&(o={scrollCache:s,name:"right",distance:c}))}return o}buildCaches(e){return this.queryScrollEls(e).map(n=>n===window?new VD(!1):new Vf(n,!1))}queryScrollEls(e){let n=[];for(let r of this.scrollQuery)typeof r=="object"?n.push(r):n.push(...Array.prototype.slice.call(e.getRootNode().querySelectorAll(r)));return n}}class Sr extends Ew{constructor(e,n){super(e),this.containerEl=e,this.delay=null,this.minDistance=0,this.touchScrollAllowed=!0,this.mirrorNeedsRevert=!1,this.isInteracting=!1,this.isDragging=!1,this.isDelayEnded=!1,this.isDistanceSurpassed=!1,this.delayTimeoutId=null,this.onPointerDown=o=>{this.isDragging||(this.isInteracting=!0,this.isDelayEnded=!1,this.isDistanceSurpassed=!1,YE(document.body),QE(document.body),o.isTouch||o.origEvent.preventDefault(),this.emitter.trigger("pointerdown",o),this.isInteracting&&!this.pointer.shouldIgnoreMove&&(this.mirror.setIsVisible(!1),this.mirror.start(o.subjectEl,o.pageX,o.pageY),this.startDelay(o),this.minDistance||this.handleDistanceSurpassed(o)))},this.onPointerMove=o=>{if(this.isInteracting){if(this.emitter.trigger("pointermove",o),!this.isDistanceSurpassed){let i=this.minDistance,s,{deltaX:a,deltaY:l}=o;s=a*a+l*l,s>=i*i&&this.handleDistanceSurpassed(o)}this.isDragging&&(o.origEvent.type!=="scroll"&&(this.mirror.handleMove(o.pageX,o.pageY),this.autoScroller.handleMove(o.pageX,o.pageY)),this.emitter.trigger("dragmove",o))}},this.onPointerUp=o=>{this.isInteracting&&(this.isInteracting=!1,qE(document.body),ZE(document.body),this.emitter.trigger("pointerup",o),this.isDragging&&(this.autoScroller.stop(),this.tryStopDrag(o)),this.delayTimeoutId&&(clearTimeout(this.delayTimeoutId),this.delayTimeoutId=null))};let r=this.pointer=new Pf(e);r.emitter.on("pointerdown",this.onPointerDown),r.emitter.on("pointermove",this.onPointerMove),r.emitter.on("pointerup",this.onPointerUp),n&&(r.selector=n),this.mirror=new jD,this.autoScroller=new $D}destroy(){this.pointer.destroy(),this.onPointerUp({})}startDelay(e){typeof this.delay=="number"?this.delayTimeoutId=setTimeout(()=>{this.delayTimeoutId=null,this.handleDelayEnd(e)},this.delay):this.handleDelayEnd(e)}handleDelayEnd(e){this.isDelayEnded=!0,this.tryStartDrag(e)}handleDistanceSurpassed(e){this.isDistanceSurpassed=!0,this.tryStartDrag(e)}tryStartDrag(e){this.isDelayEnded&&this.isDistanceSurpassed&&(!this.pointer.wasTouchScroll||this.touchScrollAllowed)&&(this.isDragging=!0,this.mirrorNeedsRevert=!1,this.autoScroller.start(e.pageX,e.pageY,this.containerEl),this.emitter.trigger("dragstart",e),this.touchScrollAllowed===!1&&this.pointer.cancelTouchScroll())}tryStopDrag(e){this.mirror.stop(this.mirrorNeedsRevert,this.stopDrag.bind(this,e))}stopDrag(e){this.isDragging=!1,this.emitter.trigger("dragend",e)}setIgnoreMove(e){this.pointer.shouldIgnoreMove=e}setMirrorIsVisible(e){this.mirror.setIsVisible(e)}setMirrorNeedsRevert(e){this.mirrorNeedsRevert=e}setAutoScrollEnabled(e){this.autoScroller.isEnabled=e}}class BD{constructor(e){this.el=e,this.origRect=Ks(e),this.scrollCaches=Yd(e).map(n=>new Vf(n,!0))}destroy(){for(let e of this.scrollCaches)e.destroy()}computeLeft(){let e=this.origRect.left;for(let n of this.scrollCaches)e+=n.origScrollLeft-n.getScrollLeft();return e}computeTop(){let e=this.origRect.top;for(let n of this.scrollCaches)e+=n.origScrollTop-n.getScrollTop();return e}isWithinClipping(e,n){let r={left:e,top:n};for(let o of this.scrollCaches)if(!LD(o.getEventTarget())&&!tw(r,o.clientRect))return!1;return!0}}function LD(t){let e=t.tagName;return e==="HTML"||e==="BODY"}class Yo{constructor(e,n){this.useSubjectCenter=!1,this.requireInitial=!0,this.disablePointCheck=!1,this.initialHit=null,this.movingHit=null,this.finalHit=null,this.handlePointerDown=r=>{let{dragging:o}=this;this.initialHit=null,this.movingHit=null,this.finalHit=null,this.prepareHits(),this.processFirstCoord(r),this.initialHit||!this.requireInitial?(o.setIgnoreMove(!1),this.emitter.trigger("pointerdown",r)):o.setIgnoreMove(!0)},this.handleDragStart=r=>{this.emitter.trigger("dragstart",r),this.handleMove(r,!0)},this.handleDragMove=r=>{this.emitter.trigger("dragmove",r),this.handleMove(r)},this.handlePointerUp=r=>{this.releaseHits(),this.emitter.trigger("pointerup",r)},this.handleDragEnd=r=>{this.movingHit&&this.emitter.trigger("hitupdate",null,!0,r),this.finalHit=this.movingHit,this.movingHit=null,this.emitter.trigger("dragend",r)},this.droppableStore=n,e.emitter.on("pointerdown",this.handlePointerDown),e.emitter.on("dragstart",this.handleDragStart),e.emitter.on("dragmove",this.handleDragMove),e.emitter.on("pointerup",this.handlePointerUp),e.emitter.on("dragend",this.handleDragEnd),this.dragging=e,this.emitter=new Go}processFirstCoord(e){let n={left:e.pageX,top:e.pageY},r=n,o=e.subjectEl,i;o instanceof HTMLElement&&(i=Ks(o),r=nw(r,i));let s=this.initialHit=this.queryHitForOffset(r.left,r.top);if(s){if(this.useSubjectCenter&&i){let a=Wd(i,s.rect);a&&(r=rw(a))}this.coordAdjust=ow(r,n)}else this.coordAdjust={left:0,top:0}}handleMove(e,n){let r=this.queryHitForOffset(e.pageX+this.coordAdjust.left,e.pageY+this.coordAdjust.top);(n||!qo(this.movingHit,r))&&(this.movingHit=r,this.emitter.trigger("hitupdate",r,!1,e))}prepareHits(){this.offsetTrackers=Tt(this.droppableStore,e=>(e.component.prepareHits(),new BD(e.el)))}releaseHits(){let{offsetTrackers:e}=this;for(let n in e)e[n].destroy();this.offsetTrackers={}}queryHitForOffset(e,n){let{droppableStore:r,offsetTrackers:o}=this,i=null;for(let s in r){let a=r[s].component,l=o[s];if(l&&l.isWithinClipping(e,n)){let c=l.computeLeft(),u=l.computeTop(),f=e-c,p=n-u,{origRect:h}=l,m=h.right-h.left,g=h.bottom-h.top;if(f>=0&&f<m&&p>=0&&p<g){let v=a.queryHit(f,p,m,g);v&&Wo(v.dateProfile.activeRange,v.dateSpan.range)&&(this.disablePointCheck||l.el.contains(l.el.getRootNode().elementFromPoint(f+c-window.scrollX,p+u-window.scrollY)))&&(!i||v.layer>i.layer)&&(v.componentId=s,v.context=a.context,v.rect.left+=c,v.rect.right+=c,v.rect.top+=u,v.rect.bottom+=u,i=v)}}}return i}}function qo(t,e){return!t&&!e?!0:!!t!=!!e?!1:WC(t.dateSpan,e.dateSpan)}function $f(t,e){let n={};for(let r of e.pluginHooks.datePointTransforms)Object.assign(n,r(t,e));return Object.assign(n,HD(t,e.dateEnv)),n}function HD(t,e){return{date:e.toDate(t.range.start),dateStr:e.formatIso(t.range.start,{omitTime:t.allDay}),allDay:t.allDay}}class zD extends Fn{constructor(e){super(e),this.handlePointerDown=r=>{let{dragging:o}=this,i=r.origEvent.target;o.setIgnoreMove(!this.component.isValidDateDownEl(i))},this.handleDragEnd=r=>{let{component:o}=this,{pointer:i}=this.dragging;if(!i.wasTouchScroll){let{initialHit:s,finalHit:a}=this.hitDragging;if(s&&a&&qo(s,a)){let{context:l}=o,c=Object.assign(Object.assign({},$f(s.dateSpan,l)),{dayEl:s.dayEl,jsEvent:r.origEvent,view:l.viewApi||l.calendarApi.view});l.emitter.trigger("dateClick",c)}}},this.dragging=new Sr(e.el),this.dragging.autoScroller.isEnabled=!1;let n=this.hitDragging=new Yo(this.dragging,Qs(e));n.emitter.on("pointerdown",this.handlePointerDown),n.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}}class FD extends Fn{constructor(e){super(e),this.dragSelection=null,this.handlePointerDown=s=>{let{component:a,dragging:l}=this,{options:c}=a.context,u=c.selectable&&a.isValidDateDownEl(s.origEvent.target);l.setIgnoreMove(!u),l.delay=s.isTouch?WD(a):null},this.handleDragStart=s=>{this.component.context.calendarApi.unselect(s)},this.handleHitUpdate=(s,a)=>{let{context:l}=this.component,c=null,u=!1;if(s){let f=this.hitDragging.initialHit;s.componentId===f.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(f,s)||(c=UD(f,s,l.pluginHooks.dateSelectionTransformers)),(!c||!Tw(c,s.dateProfile,l))&&(u=!0,c=null)}c?l.dispatch({type:"SELECT_DATES",selection:c}):a||l.dispatch({type:"UNSELECT_DATES"}),u?Is():Ps(),a||(this.dragSelection=c)},this.handlePointerUp=s=>{this.dragSelection&&(Pd(this.dragSelection,s,this.component.context),this.dragSelection=null)};let{component:n}=e,{options:r}=n.context,o=this.dragging=new Sr(e.el);o.touchScrollAllowed=!1,o.minDistance=r.selectMinDistance||0,o.autoScroller.isEnabled=r.dragScroll;let i=this.hitDragging=new Yo(this.dragging,Qs(e));i.emitter.on("pointerdown",this.handlePointerDown),i.emitter.on("dragstart",this.handleDragStart),i.emitter.on("hitupdate",this.handleHitUpdate),i.emitter.on("pointerup",this.handlePointerUp)}destroy(){this.dragging.destroy()}}function WD(t){let{options:e}=t.context,n=e.selectLongPressDelay;return n==null&&(n=e.longPressDelay),n}function UD(t,e,n){let r=t.dateSpan,o=e.dateSpan,i=[r.range.start,r.range.end,o.range.start,o.range.end];i.sort(tS);let s={};for(let a of n){let l=a(t,e);if(l===!1)return null;l&&Object.assign(s,l)}return s.range={start:i[0],end:i[3]},s.allDay=r.allDay,s}class Cr extends Fn{constructor(e){super(e),this.subjectEl=null,this.subjectSeg=null,this.isDragging=!1,this.eventRange=null,this.relevantEvents=null,this.receivingContext=null,this.validMutation=null,this.mutatedRelevantEvents=null,this.handlePointerDown=s=>{let a=s.origEvent.target,{component:l,dragging:c}=this,{mirror:u}=c,{options:f}=l.context,p=l.context;this.subjectEl=s.subjectEl;let h=this.subjectSeg=Bn(s.subjectEl),g=(this.eventRange=h.eventRange).instance.instanceId;this.relevantEvents=Us(p.getCurrentData().eventStore,g),c.minDistance=s.isTouch?0:f.eventDragMinDistance,c.delay=s.isTouch&&g!==l.props.eventSelection?YD(l):null,f.fixedMirrorParent?u.parentNode=f.fixedMirrorParent:u.parentNode=He(a,".fc"),u.revertDuration=f.dragRevertDuration;let v=l.isValidSegDownEl(a)&&!He(a,".fc-event-resizer");c.setIgnoreMove(!v),this.isDragging=v&&s.subjectEl.classList.contains("fc-event-draggable")},this.handleDragStart=s=>{let a=this.component.context,l=this.eventRange,c=l.instance.instanceId;s.isTouch?c!==this.component.props.eventSelection&&a.dispatch({type:"SELECT_EVENT",eventInstanceId:c}):a.dispatch({type:"UNSELECT_EVENT"}),this.isDragging&&(a.calendarApi.unselect(s),a.emitter.trigger("eventDragStart",{el:this.subjectEl,event:new Me(a,l.def,l.instance),jsEvent:s.origEvent,view:a.viewApi}))},this.handleHitUpdate=(s,a)=>{if(!this.isDragging)return;let l=this.relevantEvents,c=this.hitDragging.initialHit,u=this.component.context,f=null,p=null,h=null,m=!1,g={affectedEvents:l,mutatedEvents:Ke(),isEvent:!0};if(s){f=s.context;let v=f.options;u===f||v.editable&&v.droppable?(p=GD(c,s,this.eventRange.instance.range.start,f.getCurrentData().pluginHooks.eventDragMutationMassagers),p&&(h=qs(l,f.getCurrentData().eventUiBases,p,f),g.mutatedEvents=h,tf(g,s.dateProfile,f)||(m=!0,p=null,h=null,g.mutatedEvents=Ke()))):f=null}this.displayDrag(f,g),m?Is():Ps(),a||(u===f&&qo(c,s)&&(p=null),this.dragging.setMirrorNeedsRevert(!p),this.dragging.setMirrorIsVisible(!s||!this.subjectEl.getRootNode().querySelector(".fc-event-mirror")),this.receivingContext=f,this.validMutation=p,this.mutatedRelevantEvents=h)},this.handlePointerUp=()=>{this.isDragging||this.cleanup()},this.handleDragEnd=s=>{if(this.isDragging){let a=this.component.context,l=a.viewApi,{receivingContext:c,validMutation:u}=this,f=this.eventRange.def,p=this.eventRange.instance,h=new Me(a,f,p),m=this.relevantEvents,g=this.mutatedRelevantEvents,{finalHit:v}=this.hitDragging;if(this.clearDrag(),a.emitter.trigger("eventDragStop",{el:this.subjectEl,event:h,jsEvent:s.origEvent,view:l}),u){if(c===a){let b=new Me(a,g.defs[f.defId],p?g.instances[p.instanceId]:null);a.dispatch({type:"MERGE_EVENTS",eventStore:g});let S={oldEvent:h,event:b,relatedEvents:an(g,a,p),revert(){a.dispatch({type:"MERGE_EVENTS",eventStore:m})}},R={};for(let C of a.getCurrentData().pluginHooks.eventDropTransformers)Object.assign(R,C(u,a));a.emitter.trigger("eventDrop",Object.assign(Object.assign(Object.assign({},S),R),{el:s.subjectEl,delta:u.datesDelta,jsEvent:s.origEvent,view:l})),a.emitter.trigger("eventChange",S)}else if(c){let b={event:h,relatedEvents:an(m,a,p),revert(){a.dispatch({type:"MERGE_EVENTS",eventStore:m})}};a.emitter.trigger("eventLeave",Object.assign(Object.assign({},b),{draggedEl:s.subjectEl,view:l})),a.dispatch({type:"REMOVE_EVENTS",eventStore:m}),a.emitter.trigger("eventRemove",b);let S=g.defs[f.defId],R=g.instances[p.instanceId],C=new Me(c,S,R);c.dispatch({type:"MERGE_EVENTS",eventStore:g});let A={event:C,relatedEvents:an(g,c,R),revert(){c.dispatch({type:"REMOVE_EVENTS",eventStore:g})}};c.emitter.trigger("eventAdd",A),s.isTouch&&c.dispatch({type:"SELECT_EVENT",eventInstanceId:p.instanceId}),c.emitter.trigger("drop",Object.assign(Object.assign({},$f(v.dateSpan,c)),{draggedEl:s.subjectEl,jsEvent:s.origEvent,view:v.context.viewApi})),c.emitter.trigger("eventReceive",Object.assign(Object.assign({},A),{draggedEl:s.subjectEl,view:v.context.viewApi}))}}else a.emitter.trigger("_noEventDrop")}this.cleanup()};let{component:n}=this,{options:r}=n.context,o=this.dragging=new Sr(e.el);o.pointer.selector=Cr.SELECTOR,o.touchScrollAllowed=!1,o.autoScroller.isEnabled=r.dragScroll;let i=this.hitDragging=new Yo(this.dragging,es);i.useSubjectCenter=e.useEventCenter,i.emitter.on("pointerdown",this.handlePointerDown),i.emitter.on("dragstart",this.handleDragStart),i.emitter.on("hitupdate",this.handleHitUpdate),i.emitter.on("pointerup",this.handlePointerUp),i.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}displayDrag(e,n){let r=this.component.context,o=this.receivingContext;o&&o!==e&&(o===r?o.dispatch({type:"SET_EVENT_DRAG",state:{affectedEvents:n.affectedEvents,mutatedEvents:Ke(),isEvent:!0}}):o.dispatch({type:"UNSET_EVENT_DRAG"})),e&&e.dispatch({type:"SET_EVENT_DRAG",state:n})}clearDrag(){let e=this.component.context,{receivingContext:n}=this;n&&n.dispatch({type:"UNSET_EVENT_DRAG"}),e!==n&&e.dispatch({type:"UNSET_EVENT_DRAG"})}cleanup(){this.subjectSeg=null,this.isDragging=!1,this.eventRange=null,this.relevantEvents=null,this.receivingContext=null,this.validMutation=null,this.mutatedRelevantEvents=null}}Cr.SELECTOR=".fc-event-draggable, .fc-event-resizable";function GD(t,e,n,r){let o=t.dateSpan,i=e.dateSpan,s=o.range.start,a=i.range.start,l={};o.allDay!==i.allDay&&(l.allDay=i.allDay,l.hasEnd=e.context.options.allDayMaintainDuration,i.allDay?s=Re(n):s=n);let c=Tn(s,a,t.context.dateEnv,t.componentId===e.componentId?t.largeUnit:null);c.milliseconds&&(l.allDay=!1);let u={datesDelta:c,standardProps:l};for(let f of r)f(u,t,e);return u}function YD(t){let{options:e}=t.context,n=e.eventLongPressDelay;return n==null&&(n=e.longPressDelay),n}class qD extends Fn{constructor(e){super(e),this.draggingSegEl=null,this.draggingSeg=null,this.eventRange=null,this.relevantEvents=null,this.validMutation=null,this.mutatedRelevantEvents=null,this.handlePointerDown=i=>{let{component:s}=this,a=this.querySegEl(i),l=Bn(a),c=this.eventRange=l.eventRange;this.dragging.minDistance=s.context.options.eventDragMinDistance,this.dragging.setIgnoreMove(!this.component.isValidSegDownEl(i.origEvent.target)||i.isTouch&&this.component.props.eventSelection!==c.instance.instanceId)},this.handleDragStart=i=>{let{context:s}=this.component,a=this.eventRange;this.relevantEvents=Us(s.getCurrentData().eventStore,this.eventRange.instance.instanceId);let l=this.querySegEl(i);this.draggingSegEl=l,this.draggingSeg=Bn(l),s.calendarApi.unselect(),s.emitter.trigger("eventResizeStart",{el:l,event:new Me(s,a.def,a.instance),jsEvent:i.origEvent,view:s.viewApi})},this.handleHitUpdate=(i,s,a)=>{let{context:l}=this.component,c=this.relevantEvents,u=this.hitDragging.initialHit,f=this.eventRange.instance,p=null,h=null,m=!1,g={affectedEvents:c,mutatedEvents:Ke(),isEvent:!0};i&&(i.componentId===u.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(u,i)||(p=QD(u,i,a.subjectEl.classList.contains("fc-event-resizer-start"),f.range))),p&&(h=qs(c,l.getCurrentData().eventUiBases,p,l),g.mutatedEvents=h,tf(g,i.dateProfile,l)||(m=!0,p=null,h=null,g.mutatedEvents=null)),h?l.dispatch({type:"SET_EVENT_RESIZE",state:g}):l.dispatch({type:"UNSET_EVENT_RESIZE"}),m?Is():Ps(),s||(p&&qo(u,i)&&(p=null),this.validMutation=p,this.mutatedRelevantEvents=h)},this.handleDragEnd=i=>{let{context:s}=this.component,a=this.eventRange.def,l=this.eventRange.instance,c=new Me(s,a,l),u=this.relevantEvents,f=this.mutatedRelevantEvents;if(s.emitter.trigger("eventResizeStop",{el:this.draggingSegEl,event:c,jsEvent:i.origEvent,view:s.viewApi}),this.validMutation){let p=new Me(s,f.defs[a.defId],l?f.instances[l.instanceId]:null);s.dispatch({type:"MERGE_EVENTS",eventStore:f});let h={oldEvent:c,event:p,relatedEvents:an(f,s,l),revert(){s.dispatch({type:"MERGE_EVENTS",eventStore:u})}};s.emitter.trigger("eventResize",Object.assign(Object.assign({},h),{el:this.draggingSegEl,startDelta:this.validMutation.startDelta||ve(0),endDelta:this.validMutation.endDelta||ve(0),jsEvent:i.origEvent,view:s.viewApi})),s.emitter.trigger("eventChange",h)}else s.emitter.trigger("_noEventResize");this.draggingSeg=null,this.relevantEvents=null,this.validMutation=null};let{component:n}=e,r=this.dragging=new Sr(e.el);r.pointer.selector=".fc-event-resizer",r.touchScrollAllowed=!1,r.autoScroller.isEnabled=n.context.options.dragScroll;let o=this.hitDragging=new Yo(this.dragging,Qs(e));o.emitter.on("pointerdown",this.handlePointerDown),o.emitter.on("dragstart",this.handleDragStart),o.emitter.on("hitupdate",this.handleHitUpdate),o.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}querySegEl(e){return He(e.subjectEl,".fc-event")}}function QD(t,e,n,r){let o=t.context.dateEnv,i=t.dateSpan.range.start,s=e.dateSpan.range.start,a=Tn(i,s,o,t.largeUnit);if(n){if(o.add(r.start,a)<r.end)return{startDelta:a}}else if(o.add(r.end,a)>r.start)return{endDelta:a};return null}class ZD{constructor(e){this.context=e,this.isRecentPointerDateSelect=!1,this.matchesCancel=!1,this.matchesEvent=!1,this.onSelect=r=>{r.jsEvent&&(this.isRecentPointerDateSelect=!0)},this.onDocumentPointerDown=r=>{let o=this.context.options.unselectCancel,i=dd(r.origEvent);this.matchesCancel=!!He(i,o),this.matchesEvent=!!He(i,Cr.SELECTOR)},this.onDocumentPointerUp=r=>{let{context:o}=this,{documentPointer:i}=this,s=o.getCurrentData();if(!i.wasTouchScroll){if(s.dateSelection&&!this.isRecentPointerDateSelect){let a=o.options.unselectAuto;a&&(!a||!this.matchesCancel)&&o.calendarApi.unselect(r)}s.eventSelection&&!this.matchesEvent&&o.dispatch({type:"UNSELECT_EVENT"})}this.isRecentPointerDateSelect=!1};let n=this.documentPointer=new Pf(document);n.shouldIgnoreMove=!0,n.shouldWatchScroll=!1,n.emitter.on("pointerdown",this.onDocumentPointerDown),n.emitter.on("pointerup",this.onDocumentPointerUp),e.emitter.on("select",this.onSelect)}destroy(){this.context.emitter.off("select",this.onSelect),this.documentPointer.destroy()}}const KD={fixedMirrorParent:M},XD={dateClick:M,eventDragStart:M,eventDragStop:M,eventDrop:M,eventResizeStart:M,eventResizeStop:M,eventResize:M,drop:M,eventReceive:M,eventLeave:M};ea.dataAttrPrefix="";var JD=Rt({name:"@fullcalendar/interaction",componentInteractions:[zD,FD,Cr,qD],calendarInteractions:[ZD],elementDraggingImpl:Sr,optionRefiners:KD,listenerRefiners:XD});const Bf=Ve(E.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"),Co=Ve(E.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"),ca=Ve(E.jsx("path",{d:"M7 7h10v3l4-4-4-4v3H5v6h2zm10 10H7v-3l-4 4 4 4v-3h12v-6h-2z"}),"Repeat"),eT=({courseCode:t,courseColor:e,requiresRegistration:n,recurring:r,theme:o})=>E.jsxs(q.Box,{sx:{display:"flex",alignItems:"center",height:"100%",minHeight:18,position:"relative",gap:.5,px:.5,backgroundColor:`${e}30`,border:`1px solid ${e}50`,borderLeft:`3px solid ${e}`,boxShadow:`0 0 0 1px ${o.palette.background.paper}, 0 1px 2px ${o.palette.action.hover}`,"&:hover":{backgroundColor:`${e}40`,boxShadow:`0 0 0 1px ${o.palette.background.paper}, 0 2px 4px ${o.palette.action.hover}`,zIndex:1}},children:[E.jsx(q.Typography,{variant:"caption",sx:{color:o.palette.text.primary,fontWeight:600,fontSize:"0.7rem",lineHeight:1},noWrap:!0,children:t}),(n||r)&&E.jsxs(q.Box,{sx:{display:"flex",gap:.25,ml:"auto"},children:[n&&E.jsx(Co,{sx:{fontSize:10,color:o.palette.warning.main}}),r&&E.jsx(ca,{sx:{fontSize:10,color:e}})]})]}),tT=({eventInfo:t,courseCode:e,type:n,courseColor:r,requiresRegistration:o,recurring:i,eventTypeIcons:s,theme:a})=>{const l=new Date(t.event.start).getTime(),f=(new Date(t.event.end).getTime()-l)/(1e3*60),p=(h,m)=>{switch(h){case"lecture":return`linear-gradient(45deg, ${m}20, ${m}30)`;case"exercise":return`linear-gradient(135deg, ${m}20, ${m}30)`;case"exam":return`linear-gradient(90deg, ${m}30, ${m}40)`;case"deadline":return`linear-gradient(180deg, ${m}20, ${m}30)`;default:return`linear-gradient(90deg, ${m}20, ${m}25)`}};return f<30?E.jsxs(q.Box,{sx:{display:"flex",alignItems:"center",height:"100%",minHeight:18,position:"relative",gap:.5,px:.5,background:p(n,r),border:`1px solid ${r}50`,borderLeft:`3px solid ${r}`,boxShadow:`0 0 0 1px ${a.palette.background.paper}, 0 1px 2px ${a.palette.action.hover}`,"&:hover":{background:p(n,r).replace(/[0-9]+/g,h=>(Number(h)+10).toString()),boxShadow:`0 0 0 1px ${a.palette.background.paper}, 0 2px 4px ${a.palette.action.hover}`,zIndex:1}},children:[E.jsx(q.Typography,{variant:"caption",sx:{color:a.palette.text.primary,fontWeight:600,fontSize:"0.7rem",lineHeight:1},noWrap:!0,children:e}),(o||i)&&E.jsxs(q.Box,{sx:{display:"flex",gap:.25,ml:"auto"},children:[o&&E.jsx(Co,{sx:{fontSize:10,color:a.palette.warning.main}}),i&&E.jsx(ca,{sx:{fontSize:10,color:r}})]})]}):E.jsxs(q.Box,{sx:{display:"flex",alignItems:"flex-start",p:.75,height:"100%",position:"relative",gap:.5,background:p(n,r),border:`1px solid ${r}50`,borderLeft:`3px solid ${r}`,boxShadow:`0 0 0 1px ${a.palette.background.paper}, 0 1px 2px ${a.palette.action.hover}`,"&:hover":{background:p(n,r).replace(/[0-9]+/g,h=>(Number(h)+10).toString()),boxShadow:`0 0 0 1px ${a.palette.background.paper}, 0 2px 4px ${a.palette.action.hover}`,zIndex:1}},children:[E.jsx(q.Box,{component:"img",src:s[n],alt:n,sx:{width:14,height:14,filter:`drop-shadow(0 0 1px ${r})`,flexShrink:0,mt:.25}}),E.jsxs(q.Box,{sx:{minWidth:0,flex:1,display:"flex",flexDirection:"column",gap:.25},children:[E.jsx(q.Typography,{variant:"caption",sx:{color:r,fontWeight:600,lineHeight:1},noWrap:!0,children:e}),E.jsx(q.Typography,{variant:"caption",sx:{lineHeight:1,color:a.palette.text.primary,fontWeight:500,fontSize:f<45?"0.7rem":"inherit"},noWrap:!0,children:t.event.title}),f>=45&&E.jsx(q.Typography,{variant:"caption",sx:{lineHeight:1,color:a.palette.text.secondary,fontSize:"0.7rem"},noWrap:!0,children:t.timeText})]})]})},nT=({eventInfo:t,courseCode:e,type:n,courseColor:r,location:o,requiresRegistration:i,recurring:s,eventTypeIcons:a,theme:l})=>{const c=new Date(t.event.start).getTime(),p=(new Date(t.event.end).getTime()-c)/(1e3*60),h=(m,g)=>{switch(m){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?E.jsx(eT,{eventInfo:t,courseCode:e,type:n,courseColor:r,requiresRegistration:i,recurring:s,eventTypeIcons:a,theme:l}):E.jsxs(q.Box,{sx:{display:"flex",flexDirection:"column",p:p<45?.75:1,height:"100%",position:"relative",gap:.5,background:h(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:h(n,r).replace(/[0-9]+/g,m=>(Number(m)+10).toString()),boxShadow:`0 0 0 1px ${l.palette.background.paper}, 0 2px 4px ${l.palette.action.hover}`,zIndex:1}},children:[E.jsx(q.Box,{sx:{display:"flex",alignItems:"flex-start",gap:p<45?.5:.75},children:E.jsxs(q.Box,{sx:{minWidth:0,flex:1,display:"flex",flexDirection:"column",gap:.25},children:[E.jsxs(q.Typography,{variant:"caption",sx:{color:r,fontWeight:600,lineHeight:1,fontSize:p<45?"0.7rem":"0.75rem"},noWrap:!0,children:[e," • ",n]}),E.jsx(q.Typography,{variant:p<45?"caption":"body2",sx:{lineHeight:1.2,color:l.palette.text.primary,fontWeight:500},noWrap:!0,children:t.event.title}),p>=45&&E.jsx(q.Typography,{variant:"caption",sx:{lineHeight:1,color:l.palette.text.secondary},noWrap:!0,children:t.timeText})]})}),p>=60&&o&&E.jsxs(q.Box,{sx:{display:"flex",alignItems:"center",gap:.5,mt:"auto"},children:[E.jsx(Bf,{sx:{fontSize:14,color:r}}),E.jsx(q.Typography,{variant:"caption",sx:{color:l.palette.text.secondary},noWrap:!0,children:o})]})]})},rT=Ve(E.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"),oT=Ve(E.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"),iT=({description:t,location:e,courseColor:n,maxParticipants:r,requiresRegistration:o,teachers:i,type:s,recurring:a,onAddToCalendar:l,onRegister:c,theme:u})=>E.jsxs(q.Stack,{spacing:2,children:[t&&E.jsxs(q.Box,{children:[E.jsx(q.Typography,{variant:"subtitle2",gutterBottom:!0,children:"Description"}),E.jsx(q.Typography,{variant:"body2",sx:{backgroundColor:`${n}08`,p:1.5,borderRadius:1,border:`1px solid ${n}20`},children:t})]}),e&&E.jsxs(q.Box,{children:[E.jsx(q.Typography,{variant:"subtitle2",gutterBottom:!0,children:"Location"}),E.jsxs(q.Box,{sx:{p:1.5,backgroundColor:`${n}08`,borderRadius:1,border:`1px solid ${n}20`,display:"flex",alignItems:"center",gap:1},children:[E.jsx(Bf,{sx:{color:n}}),E.jsx(q.Typography,{variant:"body2",children:e})]})]}),(r||o)&&E.jsxs(q.Box,{sx:{p:1.5,backgroundColor:u.palette.warning.light+"20",borderRadius:1,border:`1px solid ${u.palette.warning.light}40`},children:[E.jsx(q.Typography,{variant:"subtitle2",gutterBottom:!0,color:"warning.dark",children:"Registration Details"}),E.jsxs(q.Stack,{spacing:1,children:[r&&E.jsxs(q.Typography,{variant:"body2",sx:{display:"flex",alignItems:"center",gap:1},children:[E.jsx(rT,{fontSize:"small"}),"Available spots: ",r]}),o&&E.jsxs(q.Typography,{variant:"body2",sx:{display:"flex",alignItems:"center",gap:1,color:u.palette.warning.dark},children:[E.jsx(Co,{fontSize:"small"}),"Registration required"]})]})]}),E.jsxs(q.Box,{children:[E.jsx(q.Typography,{variant:"subtitle2",gutterBottom:!0,children:"Event Details"}),E.jsxs(q.Stack,{direction:"row",spacing:1,flexWrap:"wrap",useFlexGap:!0,children:[E.jsx(q.Chip,{label:s,size:"small",variant:"outlined",sx:{borderColor:n,color:n}}),a&&E.jsx(q.Chip,{icon:E.jsx(ca,{}),label:"Recurring",size:"small",variant:"outlined",sx:{borderColor:n,color:n}})]})]}),i&&i.length>0&&E.jsxs(q.Box,{children:[E.jsx(q.Typography,{variant:"subtitle2",gutterBottom:!0,children:"Teachers"}),E.jsx(q.Stack,{direction:"row",spacing:1,flexWrap:"wrap",useFlexGap:!0,children:i.map((f,p)=>E.jsx(q.Chip,{label:f.name,size:"small",variant:"outlined",sx:{borderColor:`${n}40`,"&:hover":{borderColor:n}}},p))})]}),E.jsx(q.Divider,{}),E.jsxs(q.Stack,{direction:"row",spacing:1,justifyContent:"flex-end",children:[E.jsx(q.Button,{size:"small",startIcon:E.jsx(oT,{}),onClick:l,variant:"outlined",sx:{borderColor:`${n}60`,color:n,"&:hover":{borderColor:n,backgroundColor:`${n}10`}},children:"Add to Calendar"}),o&&E.jsx(q.Button,{size:"small",startIcon:E.jsx(Co,{}),onClick:c,variant:"contained",sx:{backgroundColor:n,"&:hover":{backgroundColor:`${n}dd`}},children:"Register"})]})]}),sT=({open:t,anchorEl:e,onClose:n,eventInfo:r,courseColor:o,type:i,eventTypeIcons:s,courseTitle:a,courseCode:l,description:c,location:u,maxParticipants:f,requiresRegistration:p,teachers:h,recurring:m,theme:g})=>{const v=S=>{S.stopPropagation()},b=S=>{S.stopPropagation()};return E.jsx(q.Popover,{open:t,anchorEl:e,onClose:n,anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"},TransitionComponent:q.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 ${g.palette.divider}`,borderBottom:`1px solid ${g.palette.divider}`}}},children:E.jsx(q.Paper,{elevation:4,sx:{width:{xs:"90vw",sm:400},maxWidth:400,position:"relative",overflow:"hidden",borderLeft:`4px solid ${o}`},children:E.jsxs(q.Stack,{spacing:2,sx:{p:2},children:[E.jsxs(q.Box,{sx:{display:"flex",gap:1.5},children:[E.jsx(q.Box,{component:"img",src:s[i],alt:i,sx:{width:32,height:32,filter:`drop-shadow(0 0 1px ${o})`,mt:.5}}),E.jsxs(q.Box,{sx:{flex:1},children:[E.jsx(q.Typography,{variant:"h6",sx:{lineHeight:1.2,mb:.5},children:r.event.title}),E.jsxs(q.Typography,{variant:"body2",color:"text.secondary",gutterBottom:!0,children:[a," (",l,")"]}),E.jsx(q.Typography,{variant:"body2",color:"text.secondary",children:r.timeText})]})]}),E.jsx(q.Divider,{}),E.jsx(iT,{description:c,location:u,courseColor:o,maxParticipants:f,requiresRegistration:p,teachers:h,type:i,recurring:m,onAddToCalendar:v,onRegister:b,theme:g})]})})})},Sc={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"},aT=({eventInfo:t})=>{var A,T;const e=q.useTheme(),n=q.useMediaQuery(e.breakpoints.down("sm")),[r,o]=oe.useState(null),i=t.event.extendedProps.courseCode||"",s=t.event.extendedProps.type,a=t.event.backgroundColor||e.palette.primary.main,{courseTitle:l,description:c,location:u,teachers:f,maxParticipants:p,requiresRegistration:h,recurring:m}=t.event.extendedProps,g=oe.useCallback(k=>{k.stopPropagation(),o(k.currentTarget)},[]),v=oe.useCallback(()=>{o(null)},[]),b={eventInfo:t,courseCode:i,type:s,courseColor:a,location:u,requiresRegistration:h,recurring:m,eventTypeIcons:Sc,theme:e,courseTitle:l,maxParticipants:p},S=Number(((A=t.el)==null?void 0:A.style.getPropertyValue("--event-group-index"))||"0"),R=Number(((T=t.el)==null?void 0:T.style.getPropertyValue("--event-group-size"))||"1"),C=(k,P)=>P<=1?1:k%2===0?2:0;return E.jsxs(E.Fragment,{children:[E.jsx(q.Box,{onClick:g,sx:{height:"100%",transition:"all 0.2s ease-in-out",position:"relative",overflow:"hidden",cursor:"pointer",m:"1px",ml:S>0?`${S*4}px`:"1px",width:R>1?`calc(100% - ${S*4}px)`:"auto",zIndex:C(S,R),"&:hover":{transform:"scale(1.01)",zIndex:10}},children:n?E.jsx(tT,{...b}):E.jsx(nT,{...b})}),E.jsx(sT,{open:!!r,anchorEl:r,onClose:v,eventInfo:t,courseColor:a,type:s,eventTypeIcons:Sc,courseTitle:l,courseCode:i,description:c,location:u,maxParticipants:p,requiresRegistration:h,teachers:f,recurring:m,theme:e})]})},lT=({calendarRef:t,calendarView:e,events:n,onDatesSet:r,eventDidMount:o,showAllDaySlot:i,onMouseDown:s,onMouseMove:a,onMouseUp:l,onMouseLeave:c,density:u="comfortable"})=>{const f=q.useTheme(),p=g=>{const v=g.view.calendar.getEvents().filter(R=>{var C,A,T,k;return((C=R.start)==null?void 0:C.getTime())===((A=g.event.start)==null?void 0:A.getTime())&&((T=R.end)==null?void 0:T.getTime())===((k=g.event.end)==null?void 0:k.getTime())&&R.allDay===g.event.allDay});v.sort((R,C)=>{const A=R.extendedProps.courseCode||"",T=C.extendedProps.courseCode||"";return A===T?v.indexOf(R)-v.indexOf(C):A.localeCompare(T)});const b=v.length,S=v.findIndex(R=>R.id===g.event.id);g.el.style.setProperty("--event-group-index",JSON.stringify(S)),g.el.style.setProperty("--event-group-size",JSON.stringify(b)),g.el.style.pointerEvents="all",o&&o(g)},m={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}}[u];return E.jsx(q.Box,{onMouseDown:s,onMouseMove:a,onMouseUp:l,onMouseLeave:c,sx:{flex:1,minHeight:0,overflow:"hidden","& ::-webkit-scrollbar":{width:"8px",height:"8px"},"& ::-webkit-scrollbar-track":{background:f.palette.background.default},"& ::-webkit-scrollbar-thumb":{backgroundColor:f.palette.divider,borderRadius:"4px","&:hover":{backgroundColor:f.palette.action.hover}},"& .fc-scroller-liquid-absolute":{cursor:"grab","&:active":{cursor:"grabbing"}},".fc-timegrid-event-harness":{margin:m.margin,pointerEvents:"all !important","&:not(:first-of-type)":{borderTop:`2px solid ${f.palette.background.paper}`,marginTop:`-${2+m.spacing}px !important`,paddingTop:`${m.spacing}px !important`,"&::before":{content:'""',position:"absolute",top:-1,left:0,right:0,height:2,background:f.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 ${f.palette.divider}40 !important`},".fc-timegrid-slot":{height:m.slotHeight,borderColor:`${f.palette.divider}30 !important`,"&:nth-of-type(4n+1)":{borderTop:`2px solid ${f.palette.divider}50 !important`},"&:nth-of-type(2n)":{backgroundColor:`${f.palette.action.hover}05`}},".fc-timegrid-slot-minor":{borderColor:`${f.palette.divider}20 !important`},".fc-day-sun, .fc-day-sat":{backgroundColor:`${f.palette.action.hover}15 !important`},".fc-day-today":{backgroundColor:`${f.palette.primary.main}08 !important`,borderLeft:`2px solid ${f.palette.primary.main}40 !important`,borderRight:`2px solid ${f.palette.primary.main}40 !important`},".fc-col-header-cell":{padding:"8px 4px",backgroundColor:f.palette.background.default,borderBottom:`2px solid ${f.palette.divider} !important`,"&.fc-day-today":{backgroundColor:`${f.palette.primary.main}15 !important`,fontWeight:600}},".fc-timegrid-col-bg":{background:`repeating-linear-gradient(
|
|
199
|
+
`,Uz=typeof qh!="string"?dr.css`
|
|
200
|
+
animation: ${qh} 1.4s linear infinite;
|
|
201
|
+
`:null,Wz=typeof Xh!="string"?dr.css`
|
|
202
|
+
animation: ${Xh} 1.4s ease-in-out infinite;
|
|
203
|
+
`:null,Yz=e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,i={root:["root",n,`color${je(r)}`],svg:["svg"],track:["track"],circle:["circle",`circle${je(n)}`,o&&"circleDisableShrink"]};return Rr(i,Fz,t)},Gz=Ne("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${je(n.color)}`]]}})(Br(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:Uz||{animation:`${qh} 1.4s linear infinite`}},...Object.entries(e.palette).filter(go()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),qz=Ne("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),Xz=Ne("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${je(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(Br(({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:Wz||{animation:`${Xh} 1.4s ease-in-out infinite`}}]}))),Qz=Ne("circle",{name:"MuiCircularProgress",slot:"Track"})(Br(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),qg=$.forwardRef(function(t,n){const r=pr({props:t,name:"MuiCircularProgress"}),{className:o,color:i="primary",disableShrink:s=!1,enableTrackSlot:l=!1,size:u=40,style:d,thickness:f=3.6,value:g=0,variant:b="indeterminate",...m}=r,v={...r,color:i,disableShrink:s,size:u,thickness:f,value:g,variant:b,enableTrackSlot:l},p=Yz(v),y={},S={},E={};if(b==="determinate"){const D=2*Math.PI*((xr-f)/2);y.strokeDasharray=D.toFixed(3),E["aria-valuenow"]=Math.round(g),y.strokeDashoffset=`${((100-g)/100*D).toFixed(3)}px`,S.transform="rotate(-90deg)"}return Y.jsx(Gz,{className:He(p.root,o),style:{width:u,height:u,...S,...d},ownerState:v,ref:n,role:"progressbar",...E,...m,children:Y.jsxs(qz,{className:p.svg,ownerState:v,viewBox:`${xr/2} ${xr/2} ${xr} ${xr}`,children:[l?Y.jsx(Qz,{className:p.track,ownerState:v,cx:xr,cy:xr,r:(xr-f)/2,fill:"none",strokeWidth:f,"aria-hidden":"true"}):null,Y.jsx(Xz,{className:p.circle,style:y,ownerState:v,cx:xr,cy:xr,r:(xr-f)/2,fill:"none",strokeWidth:f})]})})});process.env.NODE_ENV!=="production"&&(qg.propTypes={classes:w.object,className:w.string,color:w.oneOfType([w.oneOf(["inherit","primary","secondary","error","info","success","warning"]),w.string]),disableShrink:fa(w.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:w.bool,size:w.oneOfType([w.number,w.string]),style:w.object,sx:w.oneOfType([w.arrayOf(w.oneOfType([w.func,w.object,w.bool])),w.func,w.object]),thickness:w.number,value:w.number,variant:w.oneOf(["determinate","indeterminate"])});function Zz(e){return Fn("MuiIconButton",e)}const k0=Un("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),Kz=e=>{const{classes:t,disabled:n,color:r,edge:o,size:i,loading:s}=e,l={root:["root",s&&"loading",n&&"disabled",r!=="default"&&`color${je(r)}`,o&&`edge${je(o)}`,`size${je(i)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return Rr(l,Zz,t)},Jz=Ne(na,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${je(n.color)}`],n.edge&&t[`edge${je(n.edge)}`],t[`size${je(n.size)}`]]}})(Br(({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}}]})),Br(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(go()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(go()).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)}}],[`&.${k0.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${k0.loading}`]:{color:"transparent"}}))),eL=Ne("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"}}]})),Xg=$.forwardRef(function(t,n){const r=pr({props:t,name:"MuiIconButton"}),{edge:o=!1,children:i,className:s,color:l="default",disabled:u=!1,disableFocusRipple:d=!1,size:f="medium",id:g,loading:b=null,loadingIndicator:m,...v}=r,p=Rx(g),y=m??Y.jsx(qg,{"aria-labelledby":p,color:"inherit",size:16}),S={...r,edge:o,color:l,disabled:u,disableFocusRipple:d,loading:b,loadingIndicator:y,size:f},E=Kz(S);return Y.jsxs(Jz,{id:b?p:g,className:He(E.root,s),centerRipple:!0,focusRipple:!d,disabled:u||b,ref:n,...v,ownerState:S,children:[typeof b=="boolean"&&Y.jsx("span",{className:E.loadingWrapper,style:{display:"contents"},children:Y.jsx(eL,{className:E.loadingIndicator,ownerState:S,children:b&&y})}),i]})});process.env.NODE_ENV!=="production"&&(Xg.propTypes={children:fa(w.node,e=>$.Children.toArray(e.children).some(n=>$.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:w.object,className:w.string,color:w.oneOfType([w.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),w.string]),disabled:w.bool,disableFocusRipple:w.bool,disableRipple:w.bool,edge:w.oneOf(["end","start",!1]),id:w.string,loading:w.bool,loadingIndicator:w.node,size:w.oneOfType([w.oneOf(["small","medium","large"]),w.string]),sx:w.oneOfType([w.arrayOf(w.oneOfType([w.func,w.object,w.bool])),w.func,w.object])});const tL=Ut(Y.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),nL=Ut(Y.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),rL=Ut(Y.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight");Ut(Y.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");Ut(Y.jsxs($.Fragment,{children:[Y.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"}),Y.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock");Ut(Y.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");Ut(Y.jsxs($.Fragment,{children:[Y.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"}),Y.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time");Ut(Y.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 oL(e){return pn("MuiPickersArrowSwitcher",e)}Rn("MuiPickersArrowSwitcher",["root","spacer","button","previousIconButton","nextIconButton","leftArrowIcon","rightArrowIcon"]);const iL=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel","labelId"],sL=["ownerState"],aL=["ownerState"],lL=Ne("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),cL=Ne("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),M0=Ne(Xg,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})({variants:[{props:{hidden:!0},style:{visibility:"hidden"}}]}),uL=e=>{const{classes:t}=e;return fn({root:["root"],spacer:["spacer"],button:["button"],previousIconButton:["previousIconButton"],nextIconButton:["nextIconButton"],leftArrowIcon:["leftArrowIcon"],rightArrowIcon:["rightArrowIcon"]},oL,t)},dL=$.forwardRef(function(t,n){const r=Bl(),o=sn({props:t,name:"MuiPickersArrowSwitcher"}),{children:i,className:s,slots:l,slotProps:u,isNextDisabled:d,isNextHidden:f,onGoToNext:g,nextLabel:b,isPreviousDisabled:m,isPreviousHidden:v,onGoToPrevious:p,previousLabel:y,labelId:S}=o,E=_t(o,iL),D=o,R=uL(D),C={isDisabled:d,isHidden:f,goTo:g,label:b},T={isDisabled:m,isHidden:v,goTo:p,label:y},O=(l==null?void 0:l.previousIconButton)??M0,P=zn({elementType:O,externalSlotProps:u==null?void 0:u.previousIconButton,additionalProps:{size:"medium",title:T.label,"aria-label":T.label,disabled:T.isDisabled,edge:"end",onClick:T.goTo},ownerState:Oe({},D,{hidden:T.isHidden}),className:He(R.button,R.previousIconButton)}),H=(l==null?void 0:l.nextIconButton)??M0,Q=zn({elementType:H,externalSlotProps:u==null?void 0:u.nextIconButton,additionalProps:{size:"medium",title:C.label,"aria-label":C.label,disabled:C.isDisabled,edge:"start",onClick:C.goTo},ownerState:Oe({},D,{hidden:C.isHidden}),className:He(R.button,R.nextIconButton)}),q=(l==null?void 0:l.leftArrowIcon)??nL,x=zn({elementType:q,externalSlotProps:u==null?void 0:u.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:D,className:R.leftArrowIcon}),L=_t(x,sL),I=(l==null?void 0:l.rightArrowIcon)??rL,U=zn({elementType:I,externalSlotProps:u==null?void 0:u.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:D,className:R.rightArrowIcon}),G=_t(U,aL);return Y.jsxs(lL,Oe({ref:n,className:He(R.root,s),ownerState:D},E,{children:[Y.jsx(O,Oe({},P,{children:r?Y.jsx(I,Oe({},G)):Y.jsx(q,Oe({},L))})),i?Y.jsx(ts,{variant:"subtitle1",component:"span",id:S,children:i}):Y.jsx(cL,{className:R.spacer,ownerState:D}),Y.jsx(H,Oe({},Q,{children:r?Y.jsx(q,Oe({},L)):Y.jsx(I,Oe({},G))}))]}))});function fL(e,{disableFuture:t,maxDate:n,timezone:r}){const o=Kt();return $.useMemo(()=>{const i=o.date(void 0,r),s=o.startOfMonth(t&&o.isBefore(i,n)?i:n);return!o.isAfter(s,e)},[t,n,e,o,r])}function pL(e,{disablePast:t,minDate:n,timezone:r}){const o=Kt();return $.useMemo(()=>{const i=o.date(void 0,r),s=o.startOfMonth(t&&o.isAfter(i,n)?i:n);return!o.isBefore(s,e)},[t,n,e,o,r])}const hL=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone","format"],gL=["ownerState"],mL=e=>{const{classes:t}=e;return fn({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},Vz,t)},yL=Ne("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}),vL=Ne("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>Oe({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),bL=Ne("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),wL=Ne(Xg,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})({marginRight:"auto",variants:[{props:{view:"year"},style:{[`.${Hz.switchViewIcon}`]:{transform:"rotate(180deg)"}}}]}),SL=Ne(tL,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),Zx=$.forwardRef(function(t,n){const r=Hd(),o=Kt(),i=sn({props:t,name:"MuiPickersCalendarHeader"}),{slots:s,slotProps:l,currentMonth:u,disabled:d,disableFuture:f,disablePast:g,maxDate:b,minDate:m,onMonthChange:v,onViewChange:p,view:y,reduceAnimations:S,views:E,labelId:D,className:R,timezone:C,format:T=`${o.formats.month} ${o.formats.year}`}=i,O=_t(i,hL),P=i,H=mL(i),Q=(s==null?void 0:s.switchViewButton)??wL,q=zn({elementType:Q,externalSlotProps:l==null?void 0:l.switchViewButton,additionalProps:{size:"small","aria-label":r.calendarViewSwitchingButtonAriaLabel(y)},ownerState:P,className:H.switchViewButton}),x=(s==null?void 0:s.switchViewIcon)??SL,L=zn({elementType:x,externalSlotProps:l==null?void 0:l.switchViewIcon,ownerState:P,className:H.switchViewIcon}),I=_t(L,gL),U=()=>v(o.addMonths(u,1),"left"),G=()=>v(o.addMonths(u,-1),"right"),te=fL(u,{disableFuture:f,maxDate:b,timezone:C}),se=pL(u,{disablePast:g,minDate:m,timezone:C}),de=()=>{if(!(E.length===1||!p||d))if(E.length===2)p(E.find(k=>k!==y)||E[0]);else{const k=E.indexOf(y)!==0?0:1;p(E[k])}};if(E.length===1&&E[0]==="year")return null;const W=o.formatByString(u,T);return Y.jsxs(yL,Oe({},O,{ownerState:P,className:He(H.root,R),ref:n,children:[Y.jsxs(vL,{role:"presentation",onClick:de,ownerState:P,"aria-live":"polite",className:H.labelContainer,children:[Y.jsx(zx,{reduceAnimations:S,transKey:W,children:Y.jsx(bL,{id:D,ownerState:P,className:H.label,children:W})}),E.length>1&&!d&&Y.jsx(Q,Oe({},q,{children:Y.jsx(x,Oe({},I))}))]}),Y.jsx(Ug,{in:y==="day",appear:!S,enter:!S,children:Y.jsx(dL,{slots:s,slotProps:l,onGoToPrevious:G,isPreviousDisabled:se,previousLabel:r.previousMonth,onGoToNext:U,isNextDisabled:te,nextLabel:r.nextMonth})})]}))});process.env.NODE_ENV!=="production"&&(Zx.propTypes={classes:w.object,className:w.string,currentMonth:w.object.isRequired,disabled:w.bool,disableFuture:w.bool,disablePast:w.bool,format:w.string,labelId:w.string,maxDate:w.object.isRequired,minDate:w.object.isRequired,onMonthChange:w.func.isRequired,onViewChange:w.func,reduceAnimations:w.bool.isRequired,slotProps:w.object,slots:w.object,sx:w.oneOfType([w.arrayOf(w.oneOfType([w.func,w.object,w.bool])),w.func,w.object]),timezone:w.string.isRequired,view:w.oneOf(["day","month","year"]).isRequired,views:w.arrayOf(w.oneOf(["day","month","year"]).isRequired).isRequired});const EL=Ne("div")({overflow:"hidden",width:Ud,maxHeight:Yg,display:"flex",flexDirection:"column",margin:"0 auto"}),xL=mx({themeId:Ld}),CL="@media (prefers-reduced-motion: reduce)",Us=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),P0=Us&&Us[1]?parseInt(Us[1],10):null,I0=Us&&Us[2]?parseInt(Us[2],10):null,DL=P0&&P0<10||I0&&I0<13||!1,_L=()=>xL(CL,{defaultMatches:!1})||DL,RL=e=>pn("MuiDateCalendar",e);Rn("MuiDateCalendar",["root","viewTransitionContainer"]);const TL=["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"],OL=e=>{const{classes:t}=e;return fn({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},RL,t)};function AL(e,t){const n=Kt(),r=Bd(),o=_L(),i=sn({props:e,name:t});return Oe({},i,{loading:i.loading??!1,disablePast:i.disablePast??!1,disableFuture:i.disableFuture??!1,openTo:i.openTo??"day",views:i.views??["year","day"],reduceAnimations:i.reduceAnimations??o,renderLoading:i.renderLoading??(()=>Y.jsx("span",{children:"..."})),minDate:Vr(n,i.minDate,r.minDate),maxDate:Vr(n,i.maxDate,r.maxDate)})}const kL=Ne(EL,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",height:Yg}),ML=Ne(zx,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),Kx=$.forwardRef(function(t,n){const r=Kt(),o=I2(),i=AL(t,"MuiDateCalendar"),{autoFocus:s,onViewChange:l,value:u,defaultValue:d,referenceDate:f,disableFuture:g,disablePast:b,onChange:m,onYearChange:v,onMonthChange:p,reduceAnimations:y,shouldDisableDate:S,shouldDisableMonth:E,shouldDisableYear:D,view:R,views:C,openTo:T,className:O,disabled:P,readOnly:H,minDate:Q,maxDate:q,disableHighlightToday:x,focusedView:L,onFocusedViewChange:I,showDaysOutsideCurrentMonth:U,fixedWeekNumber:G,dayOfWeekFormatter:te,slots:se,slotProps:de,loading:W,renderLoading:k,displayWeekNumber:ee,yearsOrder:ie,yearsPerRow:oe,monthsPerRow:ye,timezone:le}=i,B=_t(i,TL),{value:N,handleValueChange:V,timezone:K}=Gg({name:"DateCalendar",timezone:le,value:u,defaultValue:d,referenceDate:f,onChange:m,valueManager:ei}),{view:ae,setView:F,focusedView:ve,setFocusedView:Ee,goToNextView:Te,setValueAndGoToNextView:xe}=Qx({view:R,views:C,openTo:T,onChange:V,onViewChange:l,autoFocus:s,focusedView:L,onFocusedViewChange:I}),{referenceDate:he,calendarState:fe,changeFocusedDay:Ce,changeMonth:Pe,handleChangeMonth:_e,isDateDisabled:Me,onMonthSwitchingAnimationEnd:nt}=l$({value:N,referenceDate:f,reduceAnimations:y,onMonthChange:p,minDate:Q,maxDate:q,shouldDisableDate:S,disablePast:b,disableFuture:g,timezone:K}),gr=P&&N||Q,gn=P&&N||q,mr=`${o}-grid-label`,mn=ve!==null,qt=(se==null?void 0:se.calendarHeader)??Zx,qr=zn({elementType:qt,externalSlotProps:de==null?void 0:de.calendarHeader,additionalProps:{views:C,view:ae,currentMonth:fe.currentMonth,onViewChange:F,onMonthChange:(bt,yn)=>_e({newMonth:bt,direction:yn}),minDate:gr,maxDate:gn,disabled:P,disablePast:b,disableFuture:g,reduceAnimations:y,timezone:K,labelId:mr},ownerState:i}),Xt=Xe(bt=>{const yn=r.startOfMonth(bt),Or=r.endOfMonth(bt),On=Me(bt)?ml({utils:r,date:bt,minDate:r.isBefore(Q,yn)?yn:Q,maxDate:r.isAfter(q,Or)?Or:q,disablePast:b,disableFuture:g,isDateDisabled:Me,timezone:K}):bt;On?(xe(On,"finish"),p==null||p(yn)):(Te(),Pe(yn)),Ce(On,!0)}),yr=Xe(bt=>{const yn=r.startOfYear(bt),Or=r.endOfYear(bt),On=Me(bt)?ml({utils:r,date:bt,minDate:r.isBefore(Q,yn)?yn:Q,maxDate:r.isAfter(q,Or)?Or:q,disablePast:b,disableFuture:g,isDateDisabled:Me,timezone:K}):bt;On?(xe(On,"finish"),v==null||v(On)):(Te(),Pe(yn)),Ce(On,!0)}),Tn=Xe(bt=>V(bt&&Wu(r,bt,N??he),"finish",ae));$.useEffect(()=>{N!=null&&r.isValid(N)&&Pe(N)},[N]);const tn=i,_o=OL(tn),vr={disablePast:b,disableFuture:g,maxDate:q,minDate:Q},Xr={disableHighlightToday:x,readOnly:H,disabled:P,timezone:K,gridLabelId:mr,slots:se,slotProps:de},Yn=$.useRef(ae);$.useEffect(()=>{Yn.current!==ae&&(ve===Yn.current&&Ee(ae,!0),Yn.current=ae)},[ve,Ee,ae]);const wa=$.useMemo(()=>[N],[N]);return Y.jsxs(kL,Oe({ref:n,className:He(_o.root,O),ownerState:tn},B,{children:[Y.jsx(qt,Oe({},qr,{slots:se,slotProps:de})),Y.jsx(ML,{reduceAnimations:y,className:_o.viewTransitionContainer,transKey:ae,ownerState:tn,children:Y.jsxs("div",{children:[ae==="year"&&Y.jsx(Xx,Oe({},vr,Xr,{value:N,onChange:yr,shouldDisableYear:D,hasFocus:mn,onFocusedViewChange:bt=>Ee("year",bt),yearsOrder:ie,yearsPerRow:oe,referenceDate:he})),ae==="month"&&Y.jsx(qx,Oe({},vr,Xr,{hasFocus:mn,className:O,value:N,onChange:Xt,shouldDisableMonth:E,onFocusedViewChange:bt=>Ee("month",bt),monthsPerRow:ye,referenceDate:he})),ae==="day"&&Y.jsx(vz,Oe({},fe,vr,Xr,{onMonthSwitchingAnimationEnd:nt,onFocusedDayChange:Ce,reduceAnimations:y,selectedDays:wa,onSelectedDaysChange:Tn,shouldDisableDate:S,shouldDisableMonth:E,shouldDisableYear:D,hasFocus:mn,onFocusedViewChange:bt=>Ee("day",bt),showDaysOutsideCurrentMonth:U,fixedWeekNumber:G,dayOfWeekFormatter:te,displayWeekNumber:ee,loading:W,renderLoading:k}))]})})]}))});process.env.NODE_ENV!=="production"&&(Kx.propTypes={autoFocus:w.bool,classes:w.object,className:w.string,dayOfWeekFormatter:w.func,defaultValue:w.object,disabled:w.bool,disableFuture:w.bool,disableHighlightToday:w.bool,disablePast:w.bool,displayWeekNumber:w.bool,fixedWeekNumber:w.number,focusedView:w.oneOf(["day","month","year"]),loading:w.bool,maxDate:w.object,minDate:w.object,monthsPerRow:w.oneOf([3,4]),onChange:w.func,onFocusedViewChange:w.func,onMonthChange:w.func,onViewChange:w.func,onYearChange:w.func,openTo:w.oneOf(["day","month","year"]),readOnly:w.bool,reduceAnimations:w.bool,referenceDate:w.object,renderLoading:w.func,shouldDisableDate:w.func,shouldDisableMonth:w.func,shouldDisableYear:w.func,showDaysOutsideCurrentMonth:w.bool,slotProps:w.object,slots:w.object,sx:w.oneOfType([w.arrayOf(w.oneOfType([w.func,w.object,w.bool])),w.func,w.object]),timezone:w.string,value:w.object,view:w.oneOf(["day","month","year"]),views:w.arrayOf(w.oneOf(["day","month","year"]).isRequired),yearsOrder:w.oneOf(["asc","desc"]),yearsPerRow:w.oneOf([3,4])});const Zp=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:o,value:i,defaultValue:s,referenceDate:l,onChange:u,className:d,classes:f,disableFuture:g,disablePast:b,minDate:m,maxDate:v,shouldDisableDate:p,shouldDisableMonth:y,shouldDisableYear:S,reduceAnimations:E,onMonthChange:D,monthsPerRow:R,onYearChange:C,yearsOrder:T,yearsPerRow:O,slots:P,slotProps:H,loading:Q,renderLoading:q,disableHighlightToday:x,readOnly:L,disabled:I,showDaysOutsideCurrentMonth:U,dayOfWeekFormatter:G,sx:te,autoFocus:se,fixedWeekNumber:de,displayWeekNumber:W,timezone:k})=>Y.jsx(Kx,{view:e,onViewChange:t,views:n.filter(b0),focusedView:r&&b0(r)?r:null,onFocusedViewChange:o,value:i,defaultValue:s,referenceDate:l,onChange:u,className:d,classes:f,disableFuture:g,disablePast:b,minDate:m,maxDate:v,shouldDisableDate:p,shouldDisableMonth:y,shouldDisableYear:S,reduceAnimations:E,onMonthChange:D,monthsPerRow:R,onYearChange:C,yearsOrder:T,yearsPerRow:O,slots:P,slotProps:H,loading:Q,renderLoading:q,disableHighlightToday:x,readOnly:L,disabled:I,showDaysOutsideCurrentMonth:U,dayOfWeekFormatter:G,sx:te,autoFocus:se,fixedWeekNumber:de,displayWeekNumber:W,timezone:k}),N0=new Set;function PL(e,t="warning"){if(process.env.NODE_ENV==="production")return;const n=Array.isArray(e)?e.join(`
|
|
205
|
+
`):e;N0.has(n)||(N0.add(n),t==="error"?console.error(n):console.warn(n))}const IL=({open:e,onOpen:t,onClose:n})=>{const r=$.useRef(typeof e=="boolean").current,[o,i]=$.useState(!1);$.useEffect(()=>{if(r){if(typeof e!="boolean")throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");i(e)}},[r,e]);const s=$.useCallback(l=>{r||i(l),l&&t&&t(),!l&&n&&n()},[r,t,n]);return{isOpen:o,setIsOpen:s}},NL=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:o}=e,i=!o&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromField"?!0:t.name==="setValueFromAction"?i&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastPublishedValue):t.name==="setValueFromView"&&t.selectionState!=="shallow"||t.name==="setValueFromShortcut"?i?!0:n(r.lastPublishedValue):!1},jL=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:o,closeOnSelect:i}=e,s=!o&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromAction"?s&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastCommittedValue):t.name==="setValueFromView"&&t.selectionState==="finish"&&i?s?!0:n(r.lastCommittedValue):t.name==="setValueFromShortcut"?t.changeImportance==="accept"&&n(r.lastCommittedValue):!1},$L=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},zL=({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:o})=>{const{onAccept:i,onChange:s,value:l,defaultValue:u,closeOnSelect:d=r==="desktop",timezone:f,referenceDate:g}=e,{current:b}=$.useRef(u),{current:m}=$.useRef(l!==void 0),[v,p]=$.useState(f);process.env.NODE_ENV!=="production"&&($.useEffect(()=>{m!==(l!==void 0)&&console.error([`MUI X: A component is changing the ${m?"":"un"}controlled value of a picker to be ${m?"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]),$.useEffect(()=>{!m&&b!==u&&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(b)]));const y=Kt(),S=da(),{isOpen:E,setIsOpen:D}=IL(e),{timezone:R,value:C,handleValueChange:T}=Gx({timezone:f,value:l,defaultValue:b,referenceDate:g,onChange:s,valueManager:t}),[O,P]=$.useState(()=>{let V;return C!==void 0?V=C:b!==void 0?V=b:V=t.emptyValue,{draft:V,lastPublishedValue:V,lastCommittedValue:V,lastControlledValue:l,hasBeenModifiedSinceMount:!1}}),H=t.getTimezone(y,O.draft);v!==f&&(p(f),f&&H&&f!==H&&P(V=>Oe({},V,{draft:t.setTimezone(y,f,V.draft)})));const{getValidationErrorForNewValue:Q}=s$({props:e,validator:o,timezone:R,value:O.draft,onError:e.onError}),q=Xe(V=>{const K={action:V,dateState:O,hasChanged:xe=>!t.areValuesEqual(y,V.value,xe),isControlled:m,closeOnSelect:d},ae=NL(K),F=jL(K),ve=$L(K);P(xe=>Oe({},xe,{draft:V.value,lastPublishedValue:ae?V.value:xe.lastPublishedValue,lastCommittedValue:F?V.value:xe.lastCommittedValue,hasBeenModifiedSinceMount:!0}));let Ee=null;const Te=()=>(Ee||(Ee={validationError:V.name==="setValueFromField"?V.context.validationError:Q(V.value)},V.name==="setValueFromShortcut"&&(Ee.shortcut=V.shortcut)),Ee);ae&&T(V.value,Te()),F&&i&&i(V.value,Te()),ve&&D(!1)});if(O.lastControlledValue!==l){const V=t.areValuesEqual(y,O.draft,C);P(K=>Oe({},K,{lastControlledValue:l},V?{}:{lastCommittedValue:C,lastPublishedValue:C,draft:C,hasBeenModifiedSinceMount:!0}))}const x=Xe(()=>{q({value:t.emptyValue,name:"setValueFromAction",pickerAction:"clear"})}),L=Xe(()=>{q({value:O.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),I=Xe(()=>{q({value:O.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),U=Xe(()=>{q({value:O.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),G=Xe(()=>{q({value:t.getTodayValue(y,R,n),name:"setValueFromAction",pickerAction:"today"})}),te=Xe(V=>{V.preventDefault(),D(!0)}),se=Xe(V=>{V==null||V.preventDefault(),D(!1)}),de=Xe((V,K="partial")=>q({name:"setValueFromView",value:V,selectionState:K})),W=Xe((V,K,ae)=>q({name:"setValueFromShortcut",value:V,changeImportance:K,shortcut:ae})),k=Xe((V,K)=>q({name:"setValueFromField",value:V,context:K})),ee={onClear:x,onAccept:L,onDismiss:I,onCancel:U,onSetToday:G,onOpen:te,onClose:se},ie={value:O.draft,onChange:k},oe=$.useMemo(()=>t.cleanValue(y,O.draft),[y,t,O.draft]),ye={value:oe,onChange:de,onClose:se,open:E},B=Oe({},ee,{value:oe,onChange:de,onSelectShortcut:W,isValid:V=>{const K=o({adapter:S,value:V,timezone:R,props:e});return!t.hasError(K)}}),N=$.useMemo(()=>({onOpen:te,onClose:se,open:E}),[E,se,te]);return{open:E,fieldProps:ie,viewProps:ye,layoutProps:B,actions:ee,contextValue:N}},LL=["className","sx"],BL=({props:e,propsFromPickerValue:t,additionalViewProps:n,autoFocusView:r,rendererInterceptor:o,fieldRef:i})=>{const{onChange:s,open:l,onClose:u}=t,{view:d,views:f,openTo:g,onViewChange:b,viewRenderers:m,timezone:v}=e,p=_t(e,LL),{view:y,setView:S,defaultView:E,focusedView:D,setFocusedView:R,setValueAndGoToNextView:C}=Qx({view:d,views:f,openTo:g,onChange:s,onViewChange:b,autoFocus:r}),{hasUIView:T,viewModeLookup:O}=$.useMemo(()=>f.reduce((I,U)=>{let G;return m[U]!=null?G="UI":G="field",I.viewModeLookup[U]=G,G==="UI"&&(I.hasUIView=!0),I},{hasUIView:!1,viewModeLookup:{}}),[m,f]),P=$.useMemo(()=>f.reduce((I,U)=>m[U]!=null&&n$(U)?I+1:I,0),[m,f]),H=O[y],Q=Xe(()=>H==="UI"),[q,x]=$.useState(H==="UI"?y:null);return q!==y&&O[y]==="UI"&&x(y),qi(()=>{H==="field"&&l&&(u(),setTimeout(()=>{var I,U;(I=i==null?void 0:i.current)==null||I.setSelectedSections(y),(U=i==null?void 0:i.current)==null||U.focusField(y)}))},[y]),qi(()=>{if(!l)return;let I=y;H==="field"&&q!=null&&(I=q),I!==E&&O[I]==="UI"&&O[E]==="UI"&&(I=E),I!==y&&S(I),R(I,!0)},[l]),{hasUIView:T,shouldRestoreFocus:Q,layoutProps:{views:f,view:q,onViewChange:S},renderCurrentView:()=>{if(q==null)return null;const I=m[q];if(I==null)return null;const U=Oe({},p,n,t,{views:f,timezone:v,onChange:C,view:q,onViewChange:S,focusedView:D,onFocusedViewChange:R,showViewSwitcher:P>1,timeViewsCount:P});return o?o(m,q,U):I(U)}}};function VL(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}function j0(){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 HL=(e,t)=>{const[n,r]=$.useState(j0);return qi(()=>{const i=()=>{r(j0())};return window.addEventListener("orientationchange",i),()=>{window.removeEventListener("orientationchange",i)}},[]),VL(e,["hours","minutes","seconds"])?!1:(t||n)==="landscape"},FL=({props:e,propsFromPickerValue:t,propsFromPickerViews:n,wrapperVariant:r})=>{const{orientation:o}=e,i=HL(n.views,o),s=Bl();return{layoutProps:Oe({},n,t,{isLandscape:i,isRtl:s,wrapperVariant:r,disabled:e.disabled,readOnly:e.readOnly})}};function UL(e){const{props:t,pickerValueResponse:n}=e;return $.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 WL=({props:e,valueManager:t,valueType:n,wrapperVariant:r,additionalViewProps:o,validator:i,autoFocusView:s,rendererInterceptor:l,fieldRef:u})=>{process.env.NODE_ENV!=="production"&&e.renderInput!=null&&PL(["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 d=zL({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:i}),f=BL({props:e,additionalViewProps:o,autoFocusView:s,fieldRef:u,propsFromPickerValue:d.viewProps,rendererInterceptor:l}),g=FL({props:e,wrapperVariant:r,propsFromPickerValue:d.layoutProps,propsFromPickerViews:f.layoutProps}),b=UL({props:e,pickerValueResponse:d});return{open:d.open,actions:d.actions,fieldProps:d.fieldProps,renderCurrentView:f.renderCurrentView,hasUIView:f.hasUIView,shouldRestoreFocus:f.shouldRestoreFocus,layoutProps:g.layoutProps,contextValue:d.contextValue,ownerState:b}};function Jx(e){return pn("MuiPickersLayout",e)}const Si=Rn("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]);function eC(e,t,n=!1){const r={...t};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const i=o;if(i==="components"||i==="slots")r[i]={...e[i],...r[i]};else if(i==="componentsProps"||i==="slotProps"){const s=e[i],l=t[i];if(!l)r[i]=s||{};else if(!s)r[i]=l;else{r[i]={...l};for(const u in s)if(Object.prototype.hasOwnProperty.call(s,u)){const d=u;r[i][d]=eC(s[d],l[d],n)}}}else i==="className"&&n&&t.className?r.className=He(e==null?void 0:e.className,t==null?void 0:t.className):i==="style"&&n&&t.style?r.style={...e==null?void 0:e.style,...t==null?void 0:t.style}:r[i]===void 0&&(r[i]=e[i])}return r}function YL(e){return Fn("MuiButton",e)}const Ei=Un("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"]),tC=$.createContext({});process.env.NODE_ENV!=="production"&&(tC.displayName="ButtonGroupContext");const nC=$.createContext(void 0);process.env.NODE_ENV!=="production"&&(nC.displayName="ButtonGroupButtonContext");const GL=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,loading:s,loadingPosition:l,classes:u}=e,d={root:["root",s&&"loading",i,`${i}${je(t)}`,`size${je(o)}`,`${i}Size${je(o)}`,`color${je(t)}`,n&&"disableElevation",r&&"fullWidth",s&&`loadingPosition${je(l)}`],startIcon:["icon","startIcon",`iconSize${je(o)}`],endIcon:["icon","endIcon",`iconSize${je(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},f=Rr(d,YL,u);return{...u,...f}},rC=[{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}}}],qL=Ne(na,{shouldForwardProp:e=>Dx(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${je(n.color)}`],t[`size${je(n.size)}`],t[`${n.variant}Size${je(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(Br(({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"},[`&.${Ei.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]},[`&.${Ei.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${Ei.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)",[`&.${Ei.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(go()).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"},[`&.${Ei.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Ei.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}),[`&.${Ei.loading}`]:{color:"transparent"}}}]}})),XL=Ne("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${je(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}},...rC]})),QL=Ne("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${je(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}},...rC]})),ZL=Ne("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}}]})),$0=Ne("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),cl=$.forwardRef(function(t,n){const r=$.useContext(tC),o=$.useContext(nC),i=eC(r,t),s=pr({props:i,name:"MuiButton"}),{children:l,color:u="primary",component:d="button",className:f,disabled:g=!1,disableElevation:b=!1,disableFocusRipple:m=!1,endIcon:v,focusVisibleClassName:p,fullWidth:y=!1,id:S,loading:E=null,loadingIndicator:D,loadingPosition:R="center",size:C="medium",startIcon:T,type:O,variant:P="text",...H}=s,Q=Rx(S),q=D??Y.jsx(qg,{"aria-labelledby":Q,color:"inherit",size:16}),x={...s,color:u,component:d,disabled:g,disableElevation:b,disableFocusRipple:m,fullWidth:y,loading:E,loadingIndicator:q,loadingPosition:R,size:C,type:O,variant:P},L=GL(x),I=(T||E&&R==="start")&&Y.jsx(XL,{className:L.startIcon,ownerState:x,children:T||Y.jsx($0,{className:L.loadingIconPlaceholder,ownerState:x})}),U=(v||E&&R==="end")&&Y.jsx(QL,{className:L.endIcon,ownerState:x,children:v||Y.jsx($0,{className:L.loadingIconPlaceholder,ownerState:x})}),G=o||"",te=typeof E=="boolean"?Y.jsx("span",{className:L.loadingWrapper,style:{display:"contents"},children:E&&Y.jsx(ZL,{className:L.loadingIndicator,ownerState:x,children:q})}):null;return Y.jsxs(qL,{ownerState:x,className:He(r.className,L.root,f,G),component:d,disabled:g||E,focusRipple:!m,focusVisibleClassName:He(L.focusVisible,p),ref:n,type:O,id:E?Q:S,...H,classes:L,children:[I,R!=="end"&&te,l,R==="end"&&te,U]})});process.env.NODE_ENV!=="production"&&(cl.propTypes={children:w.node,classes:w.object,className:w.string,color:w.oneOfType([w.oneOf(["inherit","primary","secondary","success","error","info","warning"]),w.string]),component:w.elementType,disabled:w.bool,disableElevation:w.bool,disableFocusRipple:w.bool,disableRipple:w.bool,endIcon:w.node,focusVisibleClassName:w.string,fullWidth:w.bool,href:w.string,id:w.string,loading:w.bool,loadingIndicator:w.node,loadingPosition:w.oneOf(["center","end","start"]),size:w.oneOfType([w.oneOf(["small","medium","large"]),w.string]),startIcon:w.node,sx:w.oneOfType([w.arrayOf(w.oneOfType([w.func,w.object,w.bool])),w.func,w.object]),type:w.oneOfType([w.oneOf(["button","reset","submit"]),w.string]),variant:w.oneOfType([w.oneOf(["contained","outlined","text"]),w.string])});function KL(e){return Fn("MuiDialogActions",e)}Un("MuiDialogActions",["root","spacing"]);const JL=e=>{const{classes:t,disableSpacing:n}=e;return Rr({root:["root",!n&&"spacing"]},KL,t)},eB=Ne("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}}}]}),oC=$.forwardRef(function(t,n){const r=pr({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:i=!1,...s}=r,l={...r,disableSpacing:i},u=JL(l);return Y.jsx(eB,{className:He(u.root,o),ownerState:l,ref:n,...s})});process.env.NODE_ENV!=="production"&&(oC.propTypes={children:w.node,classes:w.object,className:w.string,disableSpacing:w.bool,sx:w.oneOfType([w.arrayOf(w.oneOfType([w.func,w.object,w.bool])),w.func,w.object])});const tB=["onAccept","onClear","onCancel","onSetToday","actions"];function iC(e){const{onAccept:t,onClear:n,onCancel:r,onSetToday:o,actions:i}=e,s=_t(e,tB),l=Hd();if(i==null||i.length===0)return null;const u=i==null?void 0:i.map(d=>{switch(d){case"clear":return Y.jsx(cl,{onClick:n,children:l.clearButtonLabel},d);case"cancel":return Y.jsx(cl,{onClick:r,children:l.cancelButtonLabel},d);case"accept":return Y.jsx(cl,{onClick:t,children:l.okButtonLabel},d);case"today":return Y.jsx(cl,{onClick:o,children:l.todayButtonLabel},d);default:return null}});return Y.jsx(oC,Oe({},s,{children:u}))}process.env.NODE_ENV!=="production"&&(iC.propTypes={actions:w.arrayOf(w.oneOf(["accept","cancel","clear","today"]).isRequired),disableSpacing:w.bool,onAccept:w.func.isRequired,onCancel:w.func.isRequired,onClear:w.func.isRequired,onSetToday:w.func.isRequired,sx:w.oneOfType([w.arrayOf(w.oneOfType([w.func,w.object,w.bool])),w.func,w.object])});const Ws=$.createContext({});process.env.NODE_ENV!=="production"&&(Ws.displayName="ListContext");function nB(e){return Fn("MuiList",e)}Un("MuiList",["root","padding","dense","subheader"]);const rB=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Rr({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},nB,t)},oB=Ne("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}}]}),sC=$.forwardRef(function(t,n){const r=pr({props:t,name:"MuiList"}),{children:o,className:i,component:s="ul",dense:l=!1,disablePadding:u=!1,subheader:d,...f}=r,g=$.useMemo(()=>({dense:l}),[l]),b={...r,component:s,dense:l,disablePadding:u},m=rB(b);return Y.jsx(Ws.Provider,{value:g,children:Y.jsxs(oB,{as:s,className:He(m.root,i),ref:n,ownerState:b,...f,children:[d,o]})})});process.env.NODE_ENV!=="production"&&(sC.propTypes={children:w.node,classes:w.object,className:w.string,component:w.elementType,dense:w.bool,disablePadding:w.bool,subheader:w.node,sx:w.oneOfType([w.arrayOf(w.oneOfType([w.func,w.object,w.bool])),w.func,w.object])});function Qh(e){return typeof e=="string"}function iB(e){return Fn("MuiListItem",e)}Un("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);const sB=Un("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function aB(e){return Fn("MuiListItemSecondaryAction",e)}Un("MuiListItemSecondaryAction",["root","disableGutters"]);const lB=e=>{const{disableGutters:t,classes:n}=e;return Rr({root:["root",t&&"disableGutters"]},aB,n)},cB=Ne("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}}]}),Qg=$.forwardRef(function(t,n){const r=pr({props:t,name:"MuiListItemSecondaryAction"}),{className:o,...i}=r,s=$.useContext(Ws),l={...r,disableGutters:s.disableGutters},u=lB(l);return Y.jsx(cB,{className:He(u.root,o),ownerState:l,ref:n,...i})});process.env.NODE_ENV!=="production"&&(Qg.propTypes={children:w.node,classes:w.object,className:w.string,sx:w.oneOfType([w.arrayOf(w.oneOfType([w.func,w.object,w.bool])),w.func,w.object])});Qg.muiName="ListItemSecondaryAction";const uB=(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]},dB=e=>{const{alignItems:t,classes:n,dense:r,disableGutters:o,disablePadding:i,divider:s,hasSecondaryAction:l}=e;return Rr({root:["root",r&&"dense",!o&&"gutters",!i&&"padding",s&&"divider",t==="flex-start"&&"alignItemsFlexStart",l&&"secondaryAction"],container:["container"]},iB,n)},fB=Ne("div",{name:"MuiListItem",slot:"Root",overridesResolver:uB})(Br(({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:{[`& > .${sB.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}}]}))),pB=Ne("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),aC=$.forwardRef(function(t,n){const r=pr({props:t,name:"MuiListItem"}),{alignItems:o="center",children:i,className:s,component:l,components:u={},componentsProps:d={},ContainerComponent:f="li",ContainerProps:{className:g,...b}={},dense:m=!1,disableGutters:v=!1,disablePadding:p=!1,divider:y=!1,secondaryAction:S,slotProps:E={},slots:D={},...R}=r,C=$.useContext(Ws),T=$.useMemo(()=>({dense:m||C.dense||!1,alignItems:o,disableGutters:v}),[o,C.dense,m,v]),O=$.useRef(null),P=$.Children.toArray(i),H=P.length&&_x(P[P.length-1],["ListItemSecondaryAction"]),Q={...r,alignItems:o,dense:T.dense,disableGutters:v,disablePadding:p,divider:y,hasSecondaryAction:H},q=dB(Q),x=ea(O,n),L=D.root||u.Root||fB,I=E.root||d.root||{},U={className:He(q.root,I.className,s),...R};let G=l||"li";return H?(G=!U.component&&!l?"div":G,f==="li"&&(G==="li"?G="div":U.component==="li"&&(U.component="div")),Y.jsx(Ws.Provider,{value:T,children:Y.jsxs(pB,{as:f,className:He(q.container,g),ref:x,ownerState:Q,...b,children:[Y.jsx(L,{...I,...!Qh(L)&&{as:G,ownerState:{...Q,...I.ownerState}},...U,children:P}),P.pop()]})})):Y.jsx(Ws.Provider,{value:T,children:Y.jsxs(L,{...I,as:G,ref:x,...!Qh(L)&&{ownerState:{...Q,...I.ownerState}},...U,children:[P,S&&Y.jsx(Qg,{children:S})]})})});process.env.NODE_ENV!=="production"&&(aC.propTypes={alignItems:w.oneOf(["center","flex-start"]),children:fa(w.node,e=>{const t=$.Children.toArray(e.children);let n=-1;for(let r=t.length-1;r>=0;r-=1){const o=t[r];if(_x(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:w.object,className:w.string,component:w.elementType,components:w.shape({Root:w.elementType}),componentsProps:w.shape({root:w.object}),ContainerComponent:Lx,ContainerProps:w.object,dense:w.bool,disableGutters:w.bool,disablePadding:w.bool,divider:w.bool,secondaryAction:w.node,slotProps:w.shape({root:w.object}),slots:w.shape({root:w.elementType}),sx:w.oneOfType([w.arrayOf(w.oneOfType([w.func,w.object,w.bool])),w.func,w.object])});const hB=Ut(Y.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 gB(e){return Fn("MuiChip",e)}const Ke=Un("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 mB(e,t,n){return e===void 0||Qh(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function yB(e,t,n){return typeof e=="function"?e(t,n):e}function vB(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 z0(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 bB(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const m=He(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),v={...n==null?void 0:n.style,...o==null?void 0:o.style,...r==null?void 0:r.style},p={...n,...o,...r};return m.length>0&&(p.className=m),Object.keys(v).length>0&&(p.style=v),{props:p,internalRef:void 0}}const s=vB({...o,...r}),l=z0(r),u=z0(o),d=t(s),f=He(d==null?void 0:d.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),g={...d==null?void 0:d.style,...n==null?void 0:n.style,...o==null?void 0:o.style,...r==null?void 0:r.style},b={...d,...n,...u,...l};return f.length>0&&(b.className=f),Object.keys(g).length>0&&(b.style=g),{props:b,internalRef:d.ref}}function L0(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:i,internalForwardedProps:s,shouldForwardComponentProp:l=!1,...u}=t,{component:d,slots:f={[e]:void 0},slotProps:g={[e]:void 0},...b}=i,m=f[e]||r,v=yB(g[e],o),{props:{component:p,...y},internalRef:S}=bB({className:n,...u,externalForwardedProps:e==="root"?b:void 0,externalSlotProps:v}),E=ea(S,v==null?void 0:v.ref,t.ref),D=e==="root"?p||d:p,R=mB(m,{...e==="root"&&!d&&!f[e]&&s,...e!=="root"&&!f[e]&&s,...y,...D&&!l&&{as:D},...D&&l&&{component:D},ref:E},o);return[m,R]}const wB=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:i,onDelete:s,clickable:l,variant:u}=e,d={root:["root",u,n&&"disabled",`size${je(r)}`,`color${je(o)}`,l&&"clickable",l&&`clickableColor${je(o)}`,s&&"deletable",s&&`deletableColor${je(o)}`,`${u}${je(o)}`],label:["label",`label${je(r)}`],avatar:["avatar",`avatar${je(r)}`,`avatarColor${je(o)}`],icon:["icon",`icon${je(r)}`,`iconColor${je(i)}`],deleteIcon:["deleteIcon",`deleteIcon${je(r)}`,`deleteIconColor${je(o)}`,`deleteIcon${je(u)}Color${je(o)}`]};return Rr(d,gB,t)},SB=Ne("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:i,onDelete:s,size:l,variant:u}=n;return[{[`& .${Ke.avatar}`]:t.avatar},{[`& .${Ke.avatar}`]:t[`avatar${je(l)}`]},{[`& .${Ke.avatar}`]:t[`avatarColor${je(r)}`]},{[`& .${Ke.icon}`]:t.icon},{[`& .${Ke.icon}`]:t[`icon${je(l)}`]},{[`& .${Ke.icon}`]:t[`iconColor${je(o)}`]},{[`& .${Ke.deleteIcon}`]:t.deleteIcon},{[`& .${Ke.deleteIcon}`]:t[`deleteIcon${je(l)}`]},{[`& .${Ke.deleteIcon}`]:t[`deleteIconColor${je(r)}`]},{[`& .${Ke.deleteIcon}`]:t[`deleteIcon${je(u)}Color${je(r)}`]},t.root,t[`size${je(l)}`],t[`color${je(r)}`],i&&t.clickable,i&&r!=="default"&&t[`clickableColor${je(r)})`],s&&t.deletable,s&&r!=="default"&&t[`deletableColor${je(r)}`],t[u],t[`${u}${je(r)}`]]}})(Br(({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",[`&.${Ke.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Ke.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${Ke.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Ke.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Ke.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Ke.icon}`]:{marginLeft:5,marginRight:-6},[`& .${Ke.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,[`& .${Ke.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${Ke.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(go(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText,[`& .${Ke.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:{[`& .${Ke.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${Ke.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${Ke.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(go(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${Ke.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}`)},[`&.${Ke.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(go(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${Ke.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]}`,[`&.${Ke.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Ke.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Ke.avatar}`]:{marginLeft:4},[`& .${Ke.avatarSmall}`]:{marginLeft:2},[`& .${Ke.icon}`]:{marginLeft:4},[`& .${Ke.iconSmall}`]:{marginLeft:2},[`& .${Ke.deleteIcon}`]:{marginRight:5},[`& .${Ke.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(go()).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)}`,[`&.${Ke.clickable}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.hoverOpacity)},[`&.${Ke.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.focusOpacity)},[`& .${Ke.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),EB=Ne("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${je(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 B0(e){return e.key==="Backspace"||e.key==="Delete"}const lC=$.forwardRef(function(t,n){const r=pr({props:t,name:"MuiChip"}),{avatar:o,className:i,clickable:s,color:l="default",component:u,deleteIcon:d,disabled:f=!1,icon:g,label:b,onClick:m,onDelete:v,onKeyDown:p,onKeyUp:y,size:S="medium",variant:E="filled",tabIndex:D,skipFocusWhenDisabled:R=!1,slots:C={},slotProps:T={},...O}=r,P=$.useRef(null),H=ea(P,n),Q=le=>{le.stopPropagation(),v&&v(le)},q=le=>{le.currentTarget===le.target&&B0(le)&&le.preventDefault(),p&&p(le)},x=le=>{le.currentTarget===le.target&&v&&B0(le)&&v(le),y&&y(le)},L=s!==!1&&m?!0:s,I=L||v?na:u||"div",U={...r,component:I,disabled:f,size:S,color:l,iconColor:$.isValidElement(g)&&g.props.color||l,onDelete:!!v,clickable:L,variant:E},G=wB(U),te=I===na?{component:u||"div",focusVisibleClassName:G.focusVisible,...v&&{disableRipple:!0}}:{};let se=null;v&&(se=d&&$.isValidElement(d)?$.cloneElement(d,{className:He(d.props.className,G.deleteIcon),onClick:Q}):Y.jsx(hB,{className:G.deleteIcon,onClick:Q}));let de=null;o&&$.isValidElement(o)&&(de=$.cloneElement(o,{className:He(G.avatar,o.props.className)}));let W=null;g&&$.isValidElement(g)&&(W=$.cloneElement(g,{className:He(G.icon,g.props.className)})),process.env.NODE_ENV!=="production"&&de&&W&&console.error("MUI: The Chip component can not handle the avatar and the icon prop at the same time. Pick one.");const k={slots:C,slotProps:T},[ee,ie]=L0("root",{elementType:SB,externalForwardedProps:{...k,...O},ownerState:U,shouldForwardComponentProp:!0,ref:H,className:He(G.root,i),additionalProps:{disabled:L&&f?!0:void 0,tabIndex:R&&f?-1:D,...te},getSlotProps:le=>({...le,onClick:B=>{var N;(N=le.onClick)==null||N.call(le,B),m==null||m(B)},onKeyDown:B=>{var N;(N=le.onKeyDown)==null||N.call(le,B),q(B)},onKeyUp:B=>{var N;(N=le.onKeyUp)==null||N.call(le,B),x(B)}})}),[oe,ye]=L0("label",{elementType:EB,externalForwardedProps:k,ownerState:U,className:G.label});return Y.jsxs(ee,{as:I,...ie,children:[de||W,Y.jsx(oe,{...ye,children:b}),se]})});process.env.NODE_ENV!=="production"&&(lC.propTypes={avatar:w.element,children:l2,classes:w.object,className:w.string,clickable:w.bool,color:w.oneOfType([w.oneOf(["default","primary","secondary","error","info","success","warning"]),w.string]),component:w.elementType,deleteIcon:w.element,disabled:w.bool,icon:w.element,label:w.node,onClick:w.func,onDelete:w.func,onKeyDown:w.func,onKeyUp:w.func,size:w.oneOfType([w.oneOf(["medium","small"]),w.string]),skipFocusWhenDisabled:w.bool,slotProps:w.shape({label:w.oneOfType([w.func,w.object]),root:w.oneOfType([w.func,w.object])}),slots:w.shape({label:w.elementType,root:w.elementType}),sx:w.oneOfType([w.arrayOf(w.oneOfType([w.func,w.object,w.bool])),w.func,w.object]),tabIndex:w.number,variant:w.oneOfType([w.oneOf(["filled","outlined"]),w.string])});const xB=["items","changeImportance","isLandscape","onChange","isValid"],CB=["getValue"];function cC(e){const{items:t,changeImportance:n="accept",onChange:r,isValid:o}=e,i=_t(e,xB);if(t==null||t.length===0)return null;const s=t.map(l=>{let{getValue:u}=l,d=_t(l,CB);const f=u({isValid:o});return Oe({},d,{label:d.label,onClick:()=>{r(f,n,d)},disabled:!o(f)})});return Y.jsx(sC,Oe({dense:!0,sx:[{maxHeight:Yg,maxWidth:200,overflow:"auto"},...Array.isArray(i.sx)?i.sx:[i.sx]]},i,{children:s.map(l=>Y.jsx(aC,{children:Y.jsx(lC,Oe({},l))},l.id??l.label))}))}process.env.NODE_ENV!=="production"&&(cC.propTypes={changeImportance:w.oneOf(["accept","set"]),className:w.string,component:w.elementType,dense:w.bool,disablePadding:w.bool,isLandscape:w.bool.isRequired,isValid:w.func.isRequired,items:w.arrayOf(w.shape({getValue:w.func.isRequired,id:w.string,label:w.string.isRequired})),onChange:w.func.isRequired,style:w.object,subheader:w.node,sx:w.oneOfType([w.arrayOf(w.oneOfType([w.func,w.object,w.bool])),w.func,w.object])});function DB(e){return e.view!==null}const _B=e=>{const{classes:t,isLandscape:n}=e;return fn({root:["root",n&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},Jx,t)},RB=e=>{const{wrapperVariant:t,onAccept:n,onClear:r,onCancel:o,onSetToday:i,view:s,views:l,onViewChange:u,value:d,onChange:f,onSelectShortcut:g,isValid:b,isLandscape:m,disabled:v,readOnly:p,children:y,slots:S,slotProps:E}=e,D=_B(e),R=(S==null?void 0:S.actionBar)??iC,C=zn({elementType:R,externalSlotProps:E==null?void 0:E.actionBar,additionalProps:{onAccept:n,onClear:r,onCancel:o,onSetToday:i,actions:t==="desktop"?[]:["cancel","accept"]},className:D.actionBar,ownerState:Oe({},e,{wrapperVariant:t})}),T=Y.jsx(R,Oe({},C)),O=S==null?void 0:S.toolbar,P=zn({elementType:O,externalSlotProps:E==null?void 0:E.toolbar,additionalProps:{isLandscape:m,onChange:f,value:d,view:s,onViewChange:u,views:l,disabled:v,readOnly:p},className:D.toolbar,ownerState:Oe({},e,{wrapperVariant:t})}),H=DB(P)&&O?Y.jsx(O,Oe({},P)):null,Q=y,q=S==null?void 0:S.tabs,x=s&&q?Y.jsx(q,Oe({view:s,onViewChange:u,className:D.tabs},E==null?void 0:E.tabs)):null,L=(S==null?void 0:S.shortcuts)??cC,I=zn({elementType:L,externalSlotProps:E==null?void 0:E.shortcuts,additionalProps:{isValid:b,isLandscape:m,onChange:g},className:D.shortcuts,ownerState:{isValid:b,isLandscape:m,onChange:g,wrapperVariant:t}}),U=s&&L?Y.jsx(L,Oe({},I)):null;return{toolbar:H,content:Q,tabs:x,actionBar:T,shortcuts:U}},TB=e=>{const{isLandscape:t,classes:n}=e;return fn({root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]},Jx,n)},OB=Ne("div",{name:"MuiPickersLayout",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${Si.actionBar}`]:{gridColumn:"1 / 4",gridRow:3},variants:[{props:{isLandscape:!0},style:{[`& .${Si.toolbar}`]:{gridColumn:1,gridRow:"2 / 3"},[`.${Si.shortcuts}`]:{gridColumn:"2 / 4",gridRow:1}}},{props:{isLandscape:!0,isRtl:!0},style:{[`& .${Si.toolbar}`]:{gridColumn:3}}},{props:{isLandscape:!1},style:{[`& .${Si.toolbar}`]:{gridColumn:"2 / 4",gridRow:1},[`& .${Si.shortcuts}`]:{gridColumn:1,gridRow:"2 / 3"}}},{props:{isLandscape:!1,isRtl:!0},style:{[`& .${Si.shortcuts}`]:{gridColumn:3}}}]}),AB=Ne("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),uC=$.forwardRef(function(t,n){const r=sn({props:t,name:"MuiPickersLayout"}),{toolbar:o,content:i,tabs:s,actionBar:l,shortcuts:u}=RB(r),{sx:d,className:f,isLandscape:g,wrapperVariant:b}=r,m=TB(r);return Y.jsxs(OB,{ref:n,sx:d,className:He(m.root,f),ownerState:r,children:[g?u:o,g?o:u,Y.jsx(AB,{className:m.contentWrapper,children:b==="desktop"?Y.jsxs($.Fragment,{children:[i,s]}):Y.jsxs($.Fragment,{children:[s,i]})}),l]})});process.env.NODE_ENV!=="production"&&(uC.propTypes={children:w.node,classes:w.object,className:w.string,disabled:w.bool,isLandscape:w.bool.isRequired,isRtl:w.bool.isRequired,isValid:w.func.isRequired,onAccept:w.func.isRequired,onCancel:w.func.isRequired,onChange:w.func.isRequired,onClear:w.func.isRequired,onClose:w.func.isRequired,onDismiss:w.func.isRequired,onOpen:w.func.isRequired,onSelectShortcut:w.func.isRequired,onSetToday:w.func.isRequired,onViewChange:w.func.isRequired,orientation:w.oneOf(["landscape","portrait"]),readOnly:w.bool,slotProps:w.object,slots:w.object,sx:w.oneOfType([w.arrayOf(w.oneOfType([w.func,w.object,w.bool])),w.func,w.object]),value:w.any,view:w.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),views:w.arrayOf(w.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]).isRequired).isRequired,wrapperVariant:w.oneOf(["desktop","mobile"])});const kB=["props","ref"],MB=Ne(uC)(({theme:e})=>({overflow:"hidden",minWidth:Ud,backgroundColor:(e.vars||e).palette.background.paper})),PB=e=>{let{props:t,ref:n}=e,r=_t(e,kB);const{localeText:o,slots:i,slotProps:s,className:l,sx:u,displayStaticWrapperAs:d,autoFocus:f}=t,{layoutProps:g,renderCurrentView:b}=WL(Oe({},r,{props:t,autoFocusView:f??!1,additionalViewProps:{},wrapperVariant:d})),m=(i==null?void 0:i.layout)??MB;return{renderPicker:()=>{var p,y,S;return Y.jsx(Ax,{localeText:o,children:Y.jsx(m,Oe({},g,s==null?void 0:s.layout,{slots:i,slotProps:s,sx:[...Array.isArray(u)?u:[u],...Array.isArray((p=s==null?void 0:s.layout)==null?void 0:p.sx)?s.layout.sx:[(y=s==null?void 0:s.layout)==null?void 0:y.sx]],className:He(l,(S=s==null?void 0:s.layout)==null?void 0:S.className),ref:n,children:b()}))})}}},dC=$.forwardRef(function(t,n){var u;const r=e$(t,"MuiStaticDatePicker"),o=r.displayStaticWrapperAs??"mobile",i=Oe({day:Zp,month:Zp,year:Zp},r.viewRenderers),s=Oe({},r,{viewRenderers:i,displayStaticWrapperAs:o,yearsPerRow:r.yearsPerRow??(o==="mobile"?3:4),slotProps:Oe({},r.slotProps,{toolbar:Oe({hidden:o==="desktop"},(u=r.slotProps)==null?void 0:u.toolbar)})}),{renderPicker:l}=PB({props:s,valueManager:ei,valueType:"date",validator:Bg,ref:n});return l()});dC.propTypes={autoFocus:w.bool,className:w.string,dayOfWeekFormatter:w.func,defaultValue:w.object,disabled:w.bool,disableFuture:w.bool,disableHighlightToday:w.bool,disablePast:w.bool,displayStaticWrapperAs:w.oneOf(["desktop","mobile"]),displayWeekNumber:w.bool,fixedWeekNumber:w.number,loading:w.bool,localeText:w.object,maxDate:w.object,minDate:w.object,monthsPerRow:w.oneOf([3,4]),onAccept:w.func,onChange:w.func,onClose:w.func,onError:w.func,onMonthChange:w.func,onViewChange:w.func,onYearChange:w.func,openTo:w.oneOf(["day","month","year"]),orientation:w.oneOf(["landscape","portrait"]),readOnly:w.bool,reduceAnimations:w.bool,referenceDate:w.object,renderLoading:w.func,shouldDisableDate:w.func,shouldDisableMonth:w.func,shouldDisableYear:w.func,showDaysOutsideCurrentMonth:w.bool,slotProps:w.object,slots:w.object,sx:w.oneOfType([w.arrayOf(w.oneOfType([w.func,w.object,w.bool])),w.func,w.object]),timezone:w.string,value:w.object,view:w.oneOf(["day","month","year"]),viewRenderers:w.shape({day:w.func,month:w.func,year:w.func}),views:w.arrayOf(w.oneOf(["day","month","year"]).isRequired),yearsOrder:w.oneOf(["asc","desc"]),yearsPerRow:w.oneOf([3,4])};const IB=({anchorEl:e,onClose:t,onDateSelect:n})=>Y.jsx(Re.Popover,{open:!!e,anchorEl:e,onClose:t,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},children:Y.jsx(dC,{displayStaticWrapperAs:"desktop",value:null,onChange:n})});var Wd,$e,fC,pC,ra,Mi,V0,hC,gC,qu={},mC=[],NB=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function Yo(e,t){for(var n in t)e[n]=t[n];return e}function yC(e){var t=e.parentNode;t&&t.removeChild(e)}function Z(e,t,n){var r,o,i,s={};for(i in t)i=="key"?r=t[i]:i=="ref"?o=t[i]:s[i]=t[i];if(arguments.length>2&&(s.children=arguments.length>3?Wd.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)s[i]===void 0&&(s[i]=e.defaultProps[i]);return _u(e,s,r,o,null)}function _u(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:o??++fC};return o==null&&$e.vnode!=null&&$e.vnode(i),i}function dn(){return{current:null}}function Ct(e){return e.children}function jB(e,t,n,r,o){var i;for(i in n)i==="children"||i==="key"||i in t||Xu(e,i,null,n[i],r);for(i in t)o&&typeof t[i]!="function"||i==="children"||i==="key"||i==="value"||i==="checked"||n[i]===t[i]||Xu(e,i,t[i],n[i],r)}function H0(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||NB.test(t)?n:n+"px"}function Xu(e,t,n,r,o){var i;e:if(t==="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||H0(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||H0(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")i=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r||e.addEventListener(t,i?U0:F0,i):e.removeEventListener(t,i?U0:F0,i);else if(t!=="dangerouslySetInnerHTML"){if(o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!=="width"&&t!=="height"&&t!=="href"&&t!=="list"&&t!=="form"&&t!=="tabIndex"&&t!=="download"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t.indexOf("-")==-1?e.removeAttribute(t):e.setAttribute(t,n))}}function F0(e){ra=!0;try{return this.l[e.type+!1]($e.event?$e.event(e):e)}finally{ra=!1}}function U0(e){ra=!0;try{return this.l[e.type+!0]($e.event?$e.event(e):e)}finally{ra=!1}}function Ln(e,t){this.props=e,this.context=t}function _l(e,t){if(t==null)return e.__?_l(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?_l(e):null}function vC(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return vC(e)}}function $B(e){ra?setTimeout(e):hC(e)}function Zh(e){(!e.__d&&(e.__d=!0)&&Mi.push(e)&&!Qu.__r++||V0!==$e.debounceRendering)&&((V0=$e.debounceRendering)||$B)(Qu)}function Qu(){var e,t,n,r,o,i,s,l;for(Mi.sort(function(u,d){return u.__v.__b-d.__v.__b});e=Mi.shift();)e.__d&&(t=Mi.length,r=void 0,o=void 0,s=(i=(n=e).__v).__e,(l=n.__P)&&(r=[],(o=Yo({},i)).__v=i.__v+1,Zg(l,i,o,n.__n,l.ownerSVGElement!==void 0,i.__h!=null?[s]:null,r,s??_l(i),i.__h),xC(r,i),i.__e!=s&&vC(i)),Mi.length>t&&Mi.sort(function(u,d){return u.__v.__b-d.__v.__b}));Qu.__r=0}function bC(e,t,n,r,o,i,s,l,u,d){var f,g,b,m,v,p,y,S=r&&r.__k||mC,E=S.length;for(n.__k=[],f=0;f<t.length;f++)if((m=n.__k[f]=(m=t[f])==null||typeof m=="boolean"?null:typeof m=="string"||typeof m=="number"||typeof m=="bigint"?_u(null,m,null,null,m):Array.isArray(m)?_u(Ct,{children:m},null,null,null):m.__b>0?_u(m.type,m.props,m.key,m.ref?m.ref:null,m.__v):m)!=null){if(m.__=n,m.__b=n.__b+1,(b=S[f])===null||b&&m.key==b.key&&m.type===b.type)S[f]=void 0;else for(g=0;g<E;g++){if((b=S[g])&&m.key==b.key&&m.type===b.type){S[g]=void 0;break}b=null}Zg(e,m,b=b||qu,o,i,s,l,u,d),v=m.__e,(g=m.ref)&&b.ref!=g&&(y||(y=[]),b.ref&&y.push(b.ref,null,m),y.push(g,m.__c||v,m)),v!=null?(p==null&&(p=v),typeof m.type=="function"&&m.__k===b.__k?m.__d=u=wC(m,u,e):u=SC(e,m,b,S,v,u),typeof n.type=="function"&&(n.__d=u)):u&&b.__e==u&&u.parentNode!=e&&(u=_l(b))}for(n.__e=p,f=E;f--;)S[f]!=null&&(typeof n.type=="function"&&S[f].__e!=null&&S[f].__e==n.__d&&(n.__d=EC(r).nextSibling),DC(S[f],S[f]));if(y)for(f=0;f<y.length;f++)CC(y[f],y[++f],y[++f])}function wC(e,t,n){for(var r,o=e.__k,i=0;o&&i<o.length;i++)(r=o[i])&&(r.__=e,t=typeof r.type=="function"?wC(r,t,n):SC(n,r,r,o,r.__e,t));return t}function Zu(e,t){return t=t||[],e==null||typeof e=="boolean"||(Array.isArray(e)?e.some(function(n){Zu(n,t)}):t.push(e)),t}function SC(e,t,n,r,o,i){var s,l,u;if(t.__d!==void 0)s=t.__d,t.__d=void 0;else if(n==null||o!=i||o.parentNode==null)e:if(i==null||i.parentNode!==e)e.appendChild(o),s=null;else{for(l=i,u=0;(l=l.nextSibling)&&u<r.length;u+=1)if(l==o)break e;e.insertBefore(o,i),s=i}return s!==void 0?s:o.nextSibling}function EC(e){var t,n,r;if(e.type==null||typeof e.type=="string")return e.__e;if(e.__k){for(t=e.__k.length-1;t>=0;t--)if((n=e.__k[t])&&(r=EC(n)))return r}return null}function Zg(e,t,n,r,o,i,s,l,u){var d,f,g,b,m,v,p,y,S,E,D,R,C,T,O,P=t.type;if(t.constructor!==void 0)return null;n.__h!=null&&(u=n.__h,l=t.__e=n.__e,t.__h=null,i=[l]),(d=$e.__b)&&d(t);try{e:if(typeof P=="function"){if(y=t.props,S=(d=P.contextType)&&r[d.__c],E=d?S?S.props.value:d.__:r,n.__c?p=(f=t.__c=n.__c).__=f.__E:("prototype"in P&&P.prototype.render?t.__c=f=new P(y,E):(t.__c=f=new Ln(y,E),f.constructor=P,f.render=LB),S&&S.sub(f),f.props=y,f.state||(f.state={}),f.context=E,f.__n=r,g=f.__d=!0,f.__h=[],f._sb=[]),f.__s==null&&(f.__s=f.state),P.getDerivedStateFromProps!=null&&(f.__s==f.state&&(f.__s=Yo({},f.__s)),Yo(f.__s,P.getDerivedStateFromProps(y,f.__s))),b=f.props,m=f.state,f.__v=t,g)P.getDerivedStateFromProps==null&&f.componentWillMount!=null&&f.componentWillMount(),f.componentDidMount!=null&&f.__h.push(f.componentDidMount);else{if(P.getDerivedStateFromProps==null&&y!==b&&f.componentWillReceiveProps!=null&&f.componentWillReceiveProps(y,E),!f.__e&&f.shouldComponentUpdate!=null&&f.shouldComponentUpdate(y,f.__s,E)===!1||t.__v===n.__v){for(t.__v!==n.__v&&(f.props=y,f.state=f.__s,f.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(H){H&&(H.__=t)}),D=0;D<f._sb.length;D++)f.__h.push(f._sb[D]);f._sb=[],f.__h.length&&s.push(f);break e}f.componentWillUpdate!=null&&f.componentWillUpdate(y,f.__s,E),f.componentDidUpdate!=null&&f.__h.push(function(){f.componentDidUpdate(b,m,v)})}if(f.context=E,f.props=y,f.__P=e,R=$e.__r,C=0,"prototype"in P&&P.prototype.render){for(f.state=f.__s,f.__d=!1,R&&R(t),d=f.render(f.props,f.state,f.context),T=0;T<f._sb.length;T++)f.__h.push(f._sb[T]);f._sb=[]}else do f.__d=!1,R&&R(t),d=f.render(f.props,f.state,f.context),f.state=f.__s;while(f.__d&&++C<25);f.state=f.__s,f.getChildContext!=null&&(r=Yo(Yo({},r),f.getChildContext())),g||f.getSnapshotBeforeUpdate==null||(v=f.getSnapshotBeforeUpdate(b,m)),O=d!=null&&d.type===Ct&&d.key==null?d.props.children:d,bC(e,Array.isArray(O)?O:[O],t,n,r,o,i,s,l,u),f.base=t.__e,t.__h=null,f.__h.length&&s.push(f),p&&(f.__E=f.__=null),f.__e=!1}else i==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=zB(n.__e,t,n,r,o,i,s,u);(d=$e.diffed)&&d(t)}catch(H){t.__v=null,(u||i!=null)&&(t.__e=l,t.__h=!!u,i[i.indexOf(l)]=null),$e.__e(H,t,n)}}function xC(e,t){$e.__c&&$e.__c(t,e),e.some(function(n){try{e=n.__h,n.__h=[],e.some(function(r){r.call(n)})}catch(r){$e.__e(r,n.__v)}})}function zB(e,t,n,r,o,i,s,l){var u,d,f,g=n.props,b=t.props,m=t.type,v=0;if(m==="svg"&&(o=!0),i!=null){for(;v<i.length;v++)if((u=i[v])&&"setAttribute"in u==!!m&&(m?u.localName===m:u.nodeType===3)){e=u,i[v]=null;break}}if(e==null){if(m===null)return document.createTextNode(b);e=o?document.createElementNS("http://www.w3.org/2000/svg",m):document.createElement(m,b.is&&b),i=null,l=!1}if(m===null)g===b||l&&e.data===b||(e.data=b);else{if(i=i&&Wd.call(e.childNodes),d=(g=n.props||qu).dangerouslySetInnerHTML,f=b.dangerouslySetInnerHTML,!l){if(i!=null)for(g={},v=0;v<e.attributes.length;v++)g[e.attributes[v].name]=e.attributes[v].value;(f||d)&&(f&&(d&&f.__html==d.__html||f.__html===e.innerHTML)||(e.innerHTML=f&&f.__html||""))}if(jB(e,b,g,o,l),f)t.__k=[];else if(v=t.props.children,bC(e,Array.isArray(v)?v:[v],t,n,r,o&&m!=="foreignObject",i,s,i?i[0]:n.__k&&_l(n,0),l),i!=null)for(v=i.length;v--;)i[v]!=null&&yC(i[v]);l||("value"in b&&(v=b.value)!==void 0&&(v!==e.value||m==="progress"&&!v||m==="option"&&v!==g.value)&&Xu(e,"value",v,g.value,!1),"checked"in b&&(v=b.checked)!==void 0&&v!==e.checked&&Xu(e,"checked",v,g.checked,!1))}return e}function CC(e,t,n){try{typeof e=="function"?e(t):e.current=t}catch(r){$e.__e(r,n)}}function DC(e,t,n){var r,o;if($e.unmount&&$e.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||CC(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){$e.__e(i,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&DC(r[o],t,n||typeof e.type!="function");n||e.__e==null||yC(e.__e),e.__=e.__e=e.__d=void 0}function LB(e,t,n){return this.constructor(e,n)}function Rl(e,t,n){var r,o,i;$e.__&&$e.__(e,t),o=(r=!1)?null:t.__k,i=[],Zg(t,e=t.__k=Z(Ct,null,[e]),o||qu,qu,t.ownerSVGElement!==void 0,o?null:t.firstChild?Wd.call(t.childNodes):null,i,o?o.__e:t.firstChild,r),xC(i,e)}function BB(e,t){var n={__c:t="__cC"+gC++,__:e,Consumer:function(r,o){return r.children(o)},Provider:function(r){var o,i;return this.getChildContext||(o=[],(i={})[t]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(s){this.props.value!==s.value&&o.some(function(l){l.__e=!0,Zh(l)})},this.sub=function(s){o.push(s);var l=s.componentWillUnmount;s.componentWillUnmount=function(){o.splice(o.indexOf(s),1),l&&l.call(s)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}Wd=mC.slice,$e={__e:function(e,t,n,r){for(var o,i,s;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&i.getDerivedStateFromError!=null&&(o.setState(i.getDerivedStateFromError(e)),s=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,r||{}),s=o.__d),s)return o.__E=o}catch(l){e=l}throw e}},fC=0,pC=function(e){return e!=null&&e.constructor===void 0},ra=!1,Ln.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Yo({},this.state),typeof e=="function"&&(e=e(Yo({},n),this.props)),e&&Yo(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),Zh(this))},Ln.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Zh(this))},Ln.prototype.render=Ct,Mi=[],hC=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Qu.__r=0,gC=0;var $r,Kp,W0,_C=[],Jp=[],Y0=$e.__b,G0=$e.__r,q0=$e.diffed,X0=$e.__c,Q0=$e.unmount;function VB(){for(var e;e=_C.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Ru),e.__H.__h.forEach(Kh),e.__H.__h=[]}catch(t){e.__H.__h=[],$e.__e(t,e.__v)}}$e.__b=function(e){$r=null,Y0&&Y0(e)},$e.__r=function(e){G0&&G0(e);var t=($r=e.__c).__H;t&&(Kp===$r?(t.__h=[],$r.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=Jp,n.__N=n.i=void 0})):(t.__h.forEach(Ru),t.__h.forEach(Kh),t.__h=[])),Kp=$r},$e.diffed=function(e){q0&&q0(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(_C.push(t)!==1&&W0===$e.requestAnimationFrame||((W0=$e.requestAnimationFrame)||HB)(VB)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==Jp&&(n.__=n.__V),n.i=void 0,n.__V=Jp})),Kp=$r=null},$e.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Ru),n.__h=n.__h.filter(function(r){return!r.__||Kh(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],$e.__e(r,n.__v)}}),X0&&X0(e,t)},$e.unmount=function(e){Q0&&Q0(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{Ru(r)}catch(o){t=o}}),n.__H=void 0,t&&$e.__e(t,n.__v))};var Z0=typeof requestAnimationFrame=="function";function HB(e){var t,n=function(){clearTimeout(r),Z0&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Z0&&(t=requestAnimationFrame(n))}function Ru(e){var t=$r,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),$r=t}function Kh(e){var t=$r;e.__c=e.__(),$r=t}function FB(e,t){for(var n in t)e[n]=t[n];return e}function K0(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var r in t)if(r!=="__source"&&e[r]!==t[r])return!0;return!1}function J0(e){this.props=e}(J0.prototype=new Ln).isPureReactComponent=!0,J0.prototype.shouldComponentUpdate=function(e,t){return K0(this.props,e)||K0(this.state,t)};var ew=$e.__b;$e.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),ew&&ew(e)};var UB=$e.__e;$e.__e=function(e,t,n,r){if(e.then){for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t)}UB(e,t,n,r)};var tw=$e.unmount;function RC(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),e.__c.__H=null),(e=FB({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return RC(r,t,n)})),e}function TC(e,t,n){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return TC(r,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=n)),e}function eh(){this.__u=0,this.t=null,this.__b=null}function OC(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Gc(){this.u=null,this.o=null}$e.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&e.__h===!0&&(e.type=null),tw&&tw(e)},(eh.prototype=new Ln).__c=function(e,t){var n=t.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var o=OC(r.__v),i=!1,s=function(){i||(i=!0,n.__R=null,o?o(l):l())};n.__R=s;var l=function(){if(!--r.__u){if(r.state.__a){var d=r.state.__a;r.__v.__k[0]=TC(d,d.__c.__P,d.__c.__O)}var f;for(r.setState({__a:r.__b=null});f=r.t.pop();)f.forceUpdate()}},u=t.__h===!0;r.__u++||u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(s,s)},eh.prototype.componentWillUnmount=function(){this.t=[]},eh.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=RC(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&Z(Ct,null,e.fallback);return o&&(o.__h=null),[Z(Ct,null,t.__a?null:e.children),o]};var nw=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function WB(e){return this.getChildContext=function(){return e.context},e.children}function YB(e){var t=this,n=e.i;t.componentWillUnmount=function(){Rl(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),e.__v?(t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(r){this.childNodes.push(r),t.i.appendChild(r)},insertBefore:function(r,o){this.childNodes.push(r),t.i.appendChild(r)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),t.i.removeChild(r)}}),Rl(Z(WB,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}function GB(e,t){var n=Z(YB,{__v:e,i:t});return n.containerInfo=t,n}(Gc.prototype=new Ln).__a=function(e){var t=this,n=OC(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),nw(t,e,r)):o()};n?n(i):i()}},Gc.prototype.render=function(e){this.u=null,this.o=new Map;var t=Zu(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},Gc.prototype.componentDidUpdate=Gc.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){nw(e,n,t)})};var qB=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,XB=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,QB=typeof document<"u",ZB=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(e)};Ln.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(Ln.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var rw=$e.event;function KB(){}function JB(){return this.cancelBubble}function eV(){return this.defaultPrevented}$e.event=function(e){return rw&&(e=rw(e)),e.persist=KB,e.isPropagationStopped=JB,e.isDefaultPrevented=eV,e.nativeEvent=e};var ow={configurable:!0,get:function(){return this.class}},iw=$e.vnode;$e.vnode=function(e){var t=e.type,n=e.props,r=n;if(typeof t=="string"){var o=t.indexOf("-")===-1;for(var i in r={},n){var s=n[i];QB&&i==="children"&&t==="noscript"||i==="value"&&"defaultValue"in n&&s==null||(i==="defaultValue"&&"value"in n&&n.value==null?i="value":i==="download"&&s===!0?s="":/ondoubleclick/i.test(i)?i="ondblclick":/^onchange(textarea|input)/i.test(i+t)&&!ZB(n.type)?i="oninput":/^onfocus$/i.test(i)?i="onfocusin":/^onblur$/i.test(i)?i="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(i)?i=i.toLowerCase():o&&XB.test(i)?i=i.replace(/[A-Z0-9]/g,"-$&").toLowerCase():s===null&&(s=void 0),/^oninput$/i.test(i)&&(i=i.toLowerCase(),r[i]&&(i="oninputCapture")),r[i]=s)}t=="select"&&r.multiple&&Array.isArray(r.value)&&(r.value=Zu(n.children).forEach(function(l){l.props.selected=r.value.indexOf(l.props.value)!=-1})),t=="select"&&r.defaultValue!=null&&(r.value=Zu(n.children).forEach(function(l){l.props.selected=r.multiple?r.defaultValue.indexOf(l.props.value)!=-1:r.defaultValue==l.props.value})),e.props=r,n.class!=n.className&&(ow.enumerable="className"in n,n.className!=null&&(r.class=n.className),Object.defineProperty(r,"className",ow))}e.$$typeof=qB,iw&&iw(e)};var sw=$e.__r;$e.__r=function(e){sw&&sw(e),e.__c};const AC=[],Jh=new Map;function Kg(e){AC.push(e),Jh.forEach(t=>{MC(t,e)})}function tV(e){e.isConnected&&e.getRootNode&&kC(e.getRootNode())}function kC(e){let t=Jh.get(e);if(!t||!t.isConnected){if(t=e.querySelector("style[data-fullcalendar]"),!t){t=document.createElement("style"),t.setAttribute("data-fullcalendar","");const n=rV();n&&(t.nonce=n);const r=e===document?document.head:e,o=e===document?r.querySelector("script,link[rel=stylesheet],link[as=style],style"):r.firstChild;r.insertBefore(t,o)}Jh.set(e,t),nV(t)}}function nV(e){for(const t of AC)MC(e,t)}function MC(e,t){const{sheet:n}=e,r=n.cssRules.length;t.split("}").forEach((o,i)=>{o=o.trim(),o&&n.insertRule(o+"}",r+i)})}let th;function rV(){return th===void 0&&(th=oV()),th}function oV(){const e=document.querySelector('meta[name="csp-nonce"]');if(e&&e.hasAttribute("content"))return e.getAttribute("content");const t=document.querySelector("script[nonce]");return t&&t.nonce||""}typeof document<"u"&&kC(document);var iV=':root{--fc-small-font-size:.85em;--fc-page-bg-color:#fff;--fc-neutral-bg-color:hsla(0,0%,82%,.3);--fc-neutral-text-color:grey;--fc-border-color:#ddd;--fc-button-text-color:#fff;--fc-button-bg-color:#2c3e50;--fc-button-border-color:#2c3e50;--fc-button-hover-bg-color:#1e2b37;--fc-button-hover-border-color:#1a252f;--fc-button-active-bg-color:#1a252f;--fc-button-active-border-color:#151e27;--fc-event-bg-color:#3788d8;--fc-event-border-color:#3788d8;--fc-event-text-color:#fff;--fc-event-selected-overlay-color:rgba(0,0,0,.25);--fc-more-link-bg-color:#d0d0d0;--fc-more-link-text-color:inherit;--fc-event-resizer-thickness:8px;--fc-event-resizer-dot-total-width:8px;--fc-event-resizer-dot-border-width:1px;--fc-non-business-color:hsla(0,0%,84%,.3);--fc-bg-event-color:#8fdf82;--fc-bg-event-opacity:0.3;--fc-highlight-color:rgba(188,232,241,.3);--fc-today-bg-color:rgba(255,220,40,.15);--fc-now-indicator-color:red}.fc-not-allowed,.fc-not-allowed .fc-event{cursor:not-allowed}.fc{display:flex;flex-direction:column;font-size:1em}.fc,.fc *,.fc :after,.fc :before{box-sizing:border-box}.fc table{border-collapse:collapse;border-spacing:0;font-size:1em}.fc th{text-align:center}.fc td,.fc th{padding:0;vertical-align:top}.fc a[data-navlink]{cursor:pointer}.fc a[data-navlink]:hover{text-decoration:underline}.fc-direction-ltr{direction:ltr;text-align:left}.fc-direction-rtl{direction:rtl;text-align:right}.fc-theme-standard td,.fc-theme-standard th{border:1px solid var(--fc-border-color)}.fc-liquid-hack td,.fc-liquid-hack th{position:relative}@font-face{font-family:fcicons;font-style:normal;font-weight:400;src:url("data:application/x-font-ttf;charset=utf-8;base64,AAEAAAALAIAAAwAwT1MvMg8SBfAAAAC8AAAAYGNtYXAXVtKNAAABHAAAAFRnYXNwAAAAEAAAAXAAAAAIZ2x5ZgYydxIAAAF4AAAFNGhlYWQUJ7cIAAAGrAAAADZoaGVhB20DzAAABuQAAAAkaG10eCIABhQAAAcIAAAALGxvY2ED4AU6AAAHNAAAABhtYXhwAA8AjAAAB0wAAAAgbmFtZXsr690AAAdsAAABhnBvc3QAAwAAAAAI9AAAACAAAwPAAZAABQAAApkCzAAAAI8CmQLMAAAB6wAzAQkAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAAAAAAAAAAAAABAAADpBgPA/8AAQAPAAEAAAAABAAAAAAAAAAAAAAAgAAAAAAADAAAAAwAAABwAAQADAAAAHAADAAEAAAAcAAQAOAAAAAoACAACAAIAAQAg6Qb//f//AAAAAAAg6QD//f//AAH/4xcEAAMAAQAAAAAAAAAAAAAAAQAB//8ADwABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAABAWIAjQKeAskAEwAAJSc3NjQnJiIHAQYUFwEWMjc2NCcCnuLiDQ0MJAz/AA0NAQAMJAwNDcni4gwjDQwM/wANIwz/AA0NDCMNAAAAAQFiAI0CngLJABMAACUBNjQnASYiBwYUHwEHBhQXFjI3AZ4BAA0N/wAMJAwNDeLiDQ0MJAyNAQAMIw0BAAwMDSMM4uINIwwNDQAAAAIA4gC3Ax4CngATACcAACUnNzY0JyYiDwEGFB8BFjI3NjQnISc3NjQnJiIPAQYUHwEWMjc2NCcB87e3DQ0MIw3VDQ3VDSMMDQ0BK7e3DQ0MJAzVDQ3VDCQMDQ3zuLcMJAwNDdUNIwzWDAwNIwy4twwkDA0N1Q0jDNYMDA0jDAAAAgDiALcDHgKeABMAJwAAJTc2NC8BJiIHBhQfAQcGFBcWMjchNzY0LwEmIgcGFB8BBwYUFxYyNwJJ1Q0N1Q0jDA0Nt7cNDQwjDf7V1Q0N1QwkDA0Nt7cNDQwkDLfWDCMN1Q0NDCQMt7gMIw0MDNYMIw3VDQ0MJAy3uAwjDQwMAAADAFUAAAOrA1UAMwBoAHcAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMhMjY1NCYjISIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAAVYRGRkR/qoRGRkRA1UFBAUOCQkVDAsZDf2rDRkLDBUJCA4FBQUFBQUOCQgVDAsZDQJVDRkLDBUJCQ4FBAVVAgECBQMCBwQECAX9qwQJAwQHAwMFAQICAgIBBQMDBwQDCQQCVQUIBAQHAgMFAgEC/oAZEhEZGRESGQAAAAADAFUAAAOrA1UAMwBoAIkAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMzFRQWMzI2PQEzMjY1NCYrATU0JiMiBh0BIyIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAgBkSEhmAERkZEYAZEhIZgBEZGREDVQUEBQ4JCRUMCxkN/asNGQsMFQkIDgUFBQUFBQ4JCBUMCxkNAlUNGQsMFQkJDgUEBVUCAQIFAwIHBAQIBf2rBAkDBAcDAwUBAgICAgEFAwMHBAMJBAJVBQgEBAcCAwUCAQL+gIASGRkSgBkSERmAEhkZEoAZERIZAAABAOIAjQMeAskAIAAAExcHBhQXFjI/ARcWMjc2NC8BNzY0JyYiDwEnJiIHBhQX4uLiDQ0MJAzi4gwkDA0N4uINDQwkDOLiDCQMDQ0CjeLiDSMMDQ3h4Q0NDCMN4uIMIw0MDOLiDAwNIwwAAAABAAAAAQAAa5n0y18PPPUACwQAAAAAANivOVsAAAAA2K85WwAAAAADqwNVAAAACAACAAAAAAAAAAEAAAPA/8AAAAQAAAAAAAOrAAEAAAAAAAAAAAAAAAAAAAALBAAAAAAAAAAAAAAAAgAAAAQAAWIEAAFiBAAA4gQAAOIEAABVBAAAVQQAAOIAAAAAAAoAFAAeAEQAagCqAOoBngJkApoAAQAAAAsAigADAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAA4ArgABAAAAAAABAAcAAAABAAAAAAACAAcAYAABAAAAAAADAAcANgABAAAAAAAEAAcAdQABAAAAAAAFAAsAFQABAAAAAAAGAAcASwABAAAAAAAKABoAigADAAEECQABAA4ABwADAAEECQACAA4AZwADAAEECQADAA4APQADAAEECQAEAA4AfAADAAEECQAFABYAIAADAAEECQAGAA4AUgADAAEECQAKADQApGZjaWNvbnMAZgBjAGkAYwBvAG4Ac1ZlcnNpb24gMS4wAFYAZQByAHMAaQBvAG4AIAAxAC4AMGZjaWNvbnMAZgBjAGkAYwBvAG4Ac2ZjaWNvbnMAZgBjAGkAYwBvAG4Ac1JlZ3VsYXIAUgBlAGcAdQBsAGEAcmZjaWNvbnMAZgBjAGkAYwBvAG4Ac0ZvbnQgZ2VuZXJhdGVkIGJ5IEljb01vb24uAEYAbwBuAHQAIABnAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAEkAYwBvAE0AbwBvAG4ALgAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=") format("truetype")}.fc-icon{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:inline-block;font-family:fcicons!important;font-style:normal;font-variant:normal;font-weight:400;height:1em;line-height:1;text-align:center;text-transform:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:1em}.fc-icon-chevron-left:before{content:"\\e900"}.fc-icon-chevron-right:before{content:"\\e901"}.fc-icon-chevrons-left:before{content:"\\e902"}.fc-icon-chevrons-right:before{content:"\\e903"}.fc-icon-minus-square:before{content:"\\e904"}.fc-icon-plus-square:before{content:"\\e905"}.fc-icon-x:before{content:"\\e906"}.fc .fc-button{border-radius:0;font-family:inherit;font-size:inherit;line-height:inherit;margin:0;overflow:visible;text-transform:none}.fc .fc-button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}.fc .fc-button{-webkit-appearance:button}.fc .fc-button:not(:disabled){cursor:pointer}.fc .fc-button{background-color:transparent;border:1px solid transparent;border-radius:.25em;display:inline-block;font-size:1em;font-weight:400;line-height:1.5;padding:.4em .65em;text-align:center;-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle}.fc .fc-button:hover{text-decoration:none}.fc .fc-button:focus{box-shadow:0 0 0 .2rem rgba(44,62,80,.25);outline:0}.fc .fc-button:disabled{opacity:.65}.fc .fc-button-primary{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:hover{background-color:var(--fc-button-hover-bg-color);border-color:var(--fc-button-hover-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:disabled{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button-primary:not(:disabled).fc-button-active,.fc .fc-button-primary:not(:disabled):active{background-color:var(--fc-button-active-bg-color);border-color:var(--fc-button-active-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:not(:disabled).fc-button-active:focus,.fc .fc-button-primary:not(:disabled):active:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button .fc-icon{font-size:1.5em;vertical-align:middle}.fc .fc-button-group{display:inline-flex;position:relative;vertical-align:middle}.fc .fc-button-group>.fc-button{flex:1 1 auto;position:relative}.fc .fc-button-group>.fc-button.fc-button-active,.fc .fc-button-group>.fc-button:active,.fc .fc-button-group>.fc-button:focus,.fc .fc-button-group>.fc-button:hover{z-index:1}.fc-direction-ltr .fc-button-group>.fc-button:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0;margin-left:-1px}.fc-direction-ltr .fc-button-group>.fc-button:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0}.fc-direction-rtl .fc-button-group>.fc-button:not(:first-child){border-bottom-right-radius:0;border-top-right-radius:0;margin-right:-1px}.fc-direction-rtl .fc-button-group>.fc-button:not(:last-child){border-bottom-left-radius:0;border-top-left-radius:0}.fc .fc-toolbar{align-items:center;display:flex;justify-content:space-between}.fc .fc-toolbar.fc-header-toolbar{margin-bottom:1.5em}.fc .fc-toolbar.fc-footer-toolbar{margin-top:1.5em}.fc .fc-toolbar-title{font-size:1.75em;margin:0}.fc-direction-ltr .fc-toolbar>*>:not(:first-child){margin-left:.75em}.fc-direction-rtl .fc-toolbar>*>:not(:first-child){margin-right:.75em}.fc-direction-rtl .fc-toolbar-ltr{flex-direction:row-reverse}.fc .fc-scroller{-webkit-overflow-scrolling:touch;position:relative}.fc .fc-scroller-liquid{height:100%}.fc .fc-scroller-liquid-absolute{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-scroller-harness{direction:ltr;overflow:hidden;position:relative}.fc .fc-scroller-harness-liquid{height:100%}.fc-direction-rtl .fc-scroller-harness>.fc-scroller{direction:rtl}.fc-theme-standard .fc-scrollgrid{border:1px solid var(--fc-border-color)}.fc .fc-scrollgrid,.fc .fc-scrollgrid table{table-layout:fixed;width:100%}.fc .fc-scrollgrid table{border-left-style:hidden;border-right-style:hidden;border-top-style:hidden}.fc .fc-scrollgrid{border-bottom-width:0;border-collapse:separate;border-right-width:0}.fc .fc-scrollgrid-liquid{height:100%}.fc .fc-scrollgrid-section,.fc .fc-scrollgrid-section table,.fc .fc-scrollgrid-section>td{height:1px}.fc .fc-scrollgrid-section-liquid>td{height:100%}.fc .fc-scrollgrid-section>*{border-left-width:0;border-top-width:0}.fc .fc-scrollgrid-section-footer>*,.fc .fc-scrollgrid-section-header>*{border-bottom-width:0}.fc .fc-scrollgrid-section-body table,.fc .fc-scrollgrid-section-footer table{border-bottom-style:hidden}.fc .fc-scrollgrid-section-sticky>*{background:var(--fc-page-bg-color);position:sticky;z-index:3}.fc .fc-scrollgrid-section-header.fc-scrollgrid-section-sticky>*{top:0}.fc .fc-scrollgrid-section-footer.fc-scrollgrid-section-sticky>*{bottom:0}.fc .fc-scrollgrid-sticky-shim{height:1px;margin-bottom:-1px}.fc-sticky{position:sticky}.fc .fc-view-harness{flex-grow:1;position:relative}.fc .fc-view-harness-active>.fc-view{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-col-header-cell-cushion{display:inline-block;padding:2px 4px}.fc .fc-bg-event,.fc .fc-highlight,.fc .fc-non-business{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-non-business{background:var(--fc-non-business-color)}.fc .fc-bg-event{background:var(--fc-bg-event-color);opacity:var(--fc-bg-event-opacity)}.fc .fc-bg-event .fc-event-title{font-size:var(--fc-small-font-size);font-style:italic;margin:.5em}.fc .fc-highlight{background:var(--fc-highlight-color)}.fc .fc-cell-shaded,.fc .fc-day-disabled{background:var(--fc-neutral-bg-color)}a.fc-event,a.fc-event:hover{text-decoration:none}.fc-event.fc-event-draggable,.fc-event[href]{cursor:pointer}.fc-event .fc-event-main{position:relative;z-index:2}.fc-event-dragging:not(.fc-event-selected){opacity:.75}.fc-event-dragging.fc-event-selected{box-shadow:0 2px 7px rgba(0,0,0,.3)}.fc-event .fc-event-resizer{display:none;position:absolute;z-index:4}.fc-event-selected .fc-event-resizer,.fc-event:hover .fc-event-resizer{display:block}.fc-event-selected .fc-event-resizer{background:var(--fc-page-bg-color);border-color:inherit;border-radius:calc(var(--fc-event-resizer-dot-total-width)/2);border-style:solid;border-width:var(--fc-event-resizer-dot-border-width);height:var(--fc-event-resizer-dot-total-width);width:var(--fc-event-resizer-dot-total-width)}.fc-event-selected .fc-event-resizer:before{bottom:-20px;content:"";left:-20px;position:absolute;right:-20px;top:-20px}.fc-event-selected,.fc-event:focus{box-shadow:0 2px 5px rgba(0,0,0,.2)}.fc-event-selected:before,.fc-event:focus:before{bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:3}.fc-event-selected:after,.fc-event:focus:after{background:var(--fc-event-selected-overlay-color);bottom:-1px;content:"";left:-1px;position:absolute;right:-1px;top:-1px;z-index:1}.fc-h-event{background-color:var(--fc-event-bg-color);border:1px solid var(--fc-event-border-color);display:block}.fc-h-event .fc-event-main{color:var(--fc-event-text-color)}.fc-h-event .fc-event-main-frame{display:flex}.fc-h-event .fc-event-time{max-width:100%;overflow:hidden}.fc-h-event .fc-event-title-container{flex-grow:1;flex-shrink:1;min-width:0}.fc-h-event .fc-event-title{display:inline-block;left:0;max-width:100%;overflow:hidden;right:0;vertical-align:top}.fc-h-event.fc-event-selected:before{bottom:-10px;top:-10px}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-start),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-end){border-bottom-left-radius:0;border-left-width:0;border-top-left-radius:0}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-end),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-start){border-bottom-right-radius:0;border-right-width:0;border-top-right-radius:0}.fc-h-event:not(.fc-event-selected) .fc-event-resizer{bottom:0;top:0;width:var(--fc-event-resizer-thickness)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end{cursor:w-resize;left:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start{cursor:e-resize;right:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-h-event.fc-event-selected .fc-event-resizer{margin-top:calc(var(--fc-event-resizer-dot-total-width)*-.5);top:50%}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-start,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-end{left:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-end,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-start{right:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc .fc-popover{box-shadow:0 2px 6px rgba(0,0,0,.15);position:absolute;z-index:9999}.fc .fc-popover-header{align-items:center;display:flex;flex-direction:row;justify-content:space-between;padding:3px 4px}.fc .fc-popover-title{margin:0 2px}.fc .fc-popover-close{cursor:pointer;font-size:1.1em;opacity:.65}.fc-theme-standard .fc-popover{background:var(--fc-page-bg-color);border:1px solid var(--fc-border-color)}.fc-theme-standard .fc-popover-header{background:var(--fc-neutral-bg-color)}';Kg(iV);class Jg{constructor(t){this.drainedOption=t,this.isRunning=!1,this.isDirty=!1,this.pauseDepths={},this.timeoutId=0}request(t){this.isDirty=!0,this.isPaused()||(this.clearTimeout(),t==null?this.tryDrain():this.timeoutId=setTimeout(this.tryDrain.bind(this),t))}pause(t=""){let{pauseDepths:n}=this;n[t]=(n[t]||0)+1,this.clearTimeout()}resume(t="",n){let{pauseDepths:r}=this;t in r&&(n?delete r[t]:(r[t]-=1,r[t]<=0&&delete r[t]),this.tryDrain())}isPaused(){return Object.keys(this.pauseDepths).length}tryDrain(){if(!this.isRunning&&!this.isPaused()){for(this.isRunning=!0;this.isDirty;)this.isDirty=!1,this.drained();this.isRunning=!1}}clear(){this.clearTimeout(),this.isDirty=!1,this.pauseDepths={}}clearTimeout(){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=0)}drained(){this.drainedOption&&this.drainedOption()}}function em(e){e.parentNode&&e.parentNode.removeChild(e)}function on(e,t){if(e.closest)return e.closest(t);if(!document.documentElement.contains(e))return null;do{if(sV(e,t))return e;e=e.parentElement||e.parentNode}while(e!==null&&e.nodeType===1);return null}function sV(e,t){return(e.matches||e.matchesSelector||e.msMatchesSelector).call(e,t)}function aV(e,t){let n=e instanceof HTMLElement?[e]:e,r=[];for(let o=0;o<n.length;o+=1){let i=n[o].querySelectorAll(t);for(let s=0;s<i.length;s+=1)r.push(i[s])}return r}const lV=/(top|left|right|bottom|width|height)$/i;function yl(e,t){for(let n in t)PC(e,n,t[n])}function PC(e,t,n){n==null?e.style[t]="":typeof n=="number"&&lV.test(t)?e.style[t]=`${n}px`:e.style[t]=n}function IC(e){var t,n;return(n=(t=e.composedPath)===null||t===void 0?void 0:t.call(e)[0])!==null&&n!==void 0?n:e.target}let aw=0;function Yd(){return aw+=1,"fc-dom-"+aw}function Gd(e){e.preventDefault()}function cV(e,t){return n=>{let r=on(n.target,e);r&&t.call(r,n,r)}}function NC(e,t,n,r){let o=cV(n,r);return e.addEventListener(t,o),()=>{e.removeEventListener(t,o)}}function uV(e,t,n,r){let o;return NC(e,"mouseover",t,(i,s)=>{if(s!==o){o=s,n(i,s);let l=u=>{o=null,r(u,s),s.removeEventListener("mouseleave",l)};s.addEventListener("mouseleave",l)}})}const lw=["webkitTransitionEnd","otransitionend","oTransitionEnd","msTransitionEnd","transitionend"];function dV(e,t){let n=r=>{t(r),lw.forEach(o=>{e.removeEventListener(o,n)})};lw.forEach(r=>{e.addEventListener(r,n)})}function jC(e){return Object.assign({onClick:e},$C(e))}function $C(e){return{tabIndex:0,onKeyDown(t){(t.key==="Enter"||t.key===" ")&&(e(t),t.preventDefault())}}}let cw=0;function ns(){return cw+=1,String(cw)}function tm(){document.body.classList.add("fc-not-allowed")}function nm(){document.body.classList.remove("fc-not-allowed")}function fV(e){e.style.userSelect="none",e.style.webkitUserSelect="none",e.addEventListener("selectstart",Gd)}function pV(e){e.style.userSelect="",e.style.webkitUserSelect="",e.removeEventListener("selectstart",Gd)}function hV(e){e.addEventListener("contextmenu",Gd)}function gV(e){e.removeEventListener("contextmenu",Gd)}function mV(e){let t=[],n=[],r,o;for(typeof e=="string"?n=e.split(/\s*,\s*/):typeof e=="function"?n=[e]:Array.isArray(e)&&(n=e),r=0;r<n.length;r+=1)o=n[r],typeof o=="string"?t.push(o.charAt(0)==="-"?{field:o.substring(1),order:-1}:{field:o,order:1}):typeof o=="function"&&t.push({func:o});return t}function yV(e,t,n){let r,o;for(r=0;r<n.length;r+=1)if(o=vV(e,t,n[r]),o)return o;return 0}function vV(e,t,n){return n.func?n.func(e,t):bV(e[n.field],t[n.field])*(n.order||1)}function bV(e,t){return!e&&!t?0:t==null?-1:e==null?1:typeof e=="string"||typeof t=="string"?String(e).localeCompare(String(t)):e-t}function Ys(e,t){let n=String(e);return"000".substr(0,t-n.length)+n}function vl(e,t,n){return typeof e=="function"?e(...t):typeof e=="string"?t.reduce((r,o,i)=>r.replace("$"+i,o||""),e):n}function wV(e,t){return e-t}function Tu(e){return e%1===0}function SV(e){let t=e.querySelector(".fc-scrollgrid-shrink-frame"),n=e.querySelector(".fc-scrollgrid-shrink-cushion");if(!t)throw new Error("needs fc-scrollgrid-shrink-frame className");if(!n)throw new Error("needs fc-scrollgrid-shrink-cushion className");return e.getBoundingClientRect().width-t.getBoundingClientRect().width+n.getBoundingClientRect().width}const uw=["years","months","days","milliseconds"],EV=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function tt(e,t){return typeof e=="string"?xV(e):typeof e=="object"&&e?dw(e):typeof e=="number"?dw({[t||"milliseconds"]:e}):null}function xV(e){let t=EV.exec(e);if(t){let n=t[1]?-1:1;return{years:0,months:0,days:n*(t[2]?parseInt(t[2],10):0),milliseconds:n*((t[3]?parseInt(t[3],10):0)*60*60*1e3+(t[4]?parseInt(t[4],10):0)*60*1e3+(t[5]?parseInt(t[5],10):0)*1e3+(t[6]?parseInt(t[6],10):0))}}return null}function dw(e){let t={years:e.years||e.year||0,months:e.months||e.month||0,days:e.days||e.day||0,milliseconds:(e.hours||e.hour||0)*60*60*1e3+(e.minutes||e.minute||0)*60*1e3+(e.seconds||e.second||0)*1e3+(e.milliseconds||e.millisecond||e.ms||0)},n=e.weeks||e.week;return n&&(t.days+=n*7,t.specifiedWeeks=!0),t}function CV(e,t){return e.years===t.years&&e.months===t.months&&e.days===t.days&&e.milliseconds===t.milliseconds}function eg(e,t){return{years:e.years+t.years,months:e.months+t.months,days:e.days+t.days,milliseconds:e.milliseconds+t.milliseconds}}function DV(e,t){return{years:e.years-t.years,months:e.months-t.months,days:e.days-t.days,milliseconds:e.milliseconds-t.milliseconds}}function _V(e,t){return{years:e.years*t,months:e.months*t,days:e.days*t,milliseconds:e.milliseconds*t}}function RV(e){return Gs(e)/365}function TV(e){return Gs(e)/30}function Gs(e){return Cr(e)/864e5}function Cr(e){return e.years*(365*864e5)+e.months*(30*864e5)+e.days*864e5+e.milliseconds}function rm(e,t){let n=null;for(let r=0;r<uw.length;r+=1){let o=uw[r];if(t[o]){let i=e[o]/t[o];if(!Tu(i)||n!==null&&n!==i)return null;n=i}else if(e[o])return null}return n}function tg(e){let t=e.milliseconds;if(t){if(t%1e3!==0)return{unit:"millisecond",value:t};if(t%(1e3*60)!==0)return{unit:"second",value:t/1e3};if(t%(1e3*60*60)!==0)return{unit:"minute",value:t/(1e3*60)};if(t)return{unit:"hour",value:t/(1e3*60*60)}}return e.days?e.specifiedWeeks&&e.days%7===0?{unit:"week",value:e.days/7}:{unit:"day",value:e.days}:e.months?{unit:"month",value:e.months}:e.years?{unit:"year",value:e.years}:{unit:"millisecond",value:0}}function ti(e,t,n){if(e===t)return!0;let r=e.length,o;if(r!==t.length)return!1;for(o=0;o<r;o+=1)if(!(n?n(e[o],t[o]):e[o]===t[o]))return!1;return!0}const OV=["sun","mon","tue","wed","thu","fri","sat"];function fw(e,t){let n=Go(e);return n[2]+=t*7,Cn(n)}function Zt(e,t){let n=Go(e);return n[2]+=t,Cn(n)}function ni(e,t){let n=Go(e);return n[6]+=t,Cn(n)}function AV(e,t){return rs(e,t)/7}function rs(e,t){return(t.valueOf()-e.valueOf())/(1e3*60*60*24)}function kV(e,t){return(t.valueOf()-e.valueOf())/(1e3*60*60)}function MV(e,t){return(t.valueOf()-e.valueOf())/(1e3*60)}function PV(e,t){return(t.valueOf()-e.valueOf())/1e3}function IV(e,t){let n=Dt(e),r=Dt(t);return{years:0,months:0,days:Math.round(rs(n,r)),milliseconds:t.valueOf()-r.valueOf()-(e.valueOf()-n.valueOf())}}function NV(e,t){let n=Ku(e,t);return n!==null&&n%7===0?n/7:null}function Ku(e,t){return qo(e)===qo(t)?Math.round(rs(e,t)):null}function Dt(e){return Cn([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()])}function jV(e){return Cn([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours()])}function $V(e){return Cn([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes()])}function zV(e){return Cn([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds()])}function LV(e,t,n){let r=e.getUTCFullYear(),o=nh(e,r,t,n);if(o<1)return nh(e,r-1,t,n);let i=nh(e,r+1,t,n);return i>=1?Math.min(o,i):o}function nh(e,t,n,r){let o=Cn([t,0,1+BV(t,n,r)]),i=Dt(e),s=Math.round(rs(o,i));return Math.floor(s/7)+1}function BV(e,t,n){let r=7+t-n;return-((7+Cn([e,0,r]).getUTCDay()-t)%7)+r-1}function pw(e){return[e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()]}function hw(e){return new Date(e[0],e[1]||0,e[2]==null?1:e[2],e[3]||0,e[4]||0,e[5]||0)}function Go(e){return[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()]}function Cn(e){return e.length===1&&(e=e.concat([0])),new Date(Date.UTC(...e))}function zC(e){return!isNaN(e.valueOf())}function qo(e){return e.getUTCHours()*1e3*60*60+e.getUTCMinutes()*1e3*60+e.getUTCSeconds()*1e3+e.getUTCMilliseconds()}function LC(e,t,n=!1){let r=e.toISOString();return r=r.replace(".000",""),n&&(r=r.replace("T00:00:00Z","")),r.length>10&&(t==null?r=r.replace("Z",""):t!==0&&(r=r.replace("Z",im(t,!0)))),r}function om(e){return e.toISOString().replace(/T.*$/,"")}function VV(e){return e.toISOString().match(/^\d{4}-\d{2}/)[0]}function HV(e){return Ys(e.getUTCHours(),2)+":"+Ys(e.getUTCMinutes(),2)+":"+Ys(e.getUTCSeconds(),2)}function im(e,t=!1){let n=e<0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=Math.round(r%60);return t?`${n+Ys(o,2)}:${Ys(i,2)}`:`GMT${n}${o}${i?`:${Ys(i,2)}`:""}`}function Le(e,t,n){let r,o;return function(...i){if(!r)o=e.apply(this,i);else if(!ti(r,i)){let s=e.apply(this,i);(!t||!t(s,o))&&(o=s)}return r=i,o}}function Ou(e,t,n){let r,o;return i=>(r?Dr(r,i)||(o=e.call(this,i)):o=e.call(this,i),r=i,o)}const rh={week:3,separator:9,omitZeroMinute:9,meridiem:9,omitCommas:9},Ju={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},qc=/\s*([ap])\.?m\.?/i,FV=/,/g,UV=/\s+/g,WV=/\u200e/g,YV=/UTC|GMT/;class GV{constructor(t){let n={},r={},o=9;for(let i in t)i in rh?(r[i]=t[i],rh[i]<9&&(o=Math.min(rh[i],o))):(n[i]=t[i],i in Ju&&(o=Math.min(Ju[i],o)));this.standardDateProps=n,this.extendedSettings=r,this.smallestUnitNum=o,this.buildFormattingFunc=Le(gw)}format(t,n){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,n)(t)}formatRange(t,n,r,o){let{standardDateProps:i,extendedSettings:s}=this,l=JV(t.marker,n.marker,r.calendarSystem);if(!l)return this.format(t,r);let u=l;u>1&&(i.year==="numeric"||i.year==="2-digit")&&(i.month==="numeric"||i.month==="2-digit")&&(i.day==="numeric"||i.day==="2-digit")&&(u=1);let d=this.format(t,r),f=this.format(n,r);if(d===f)return d;let g=e5(i,u),b=gw(g,s,r),m=b(t),v=b(n),p=t5(d,m,f,v),y=s.separator||o||r.defaultSeparator||"";return p?p.before+m+y+v+p.after:d+y+f}getSmallestUnit(){switch(this.smallestUnitNum){case 7:case 6:case 5:return"year";case 4:return"month";case 3:return"week";case 2:return"day";default:return"time"}}}function gw(e,t,n){let r=Object.keys(e).length;return r===1&&e.timeZoneName==="short"?o=>im(o.timeZoneOffset):r===0&&t.week?o=>KV(n.computeWeekNumber(o.marker),n.weekText,n.weekTextLong,n.locale,t.week):qV(e,t,n)}function qV(e,t,n){e=Object.assign({},e),t=Object.assign({},t),XV(e,t),e.timeZone="UTC";let r=new Intl.DateTimeFormat(n.locale.codes,e),o;if(t.omitZeroMinute){let i=Object.assign({},e);delete i.minute,o=new Intl.DateTimeFormat(n.locale.codes,i)}return i=>{let{marker:s}=i,l;o&&!s.getUTCMinutes()?l=o:l=r;let u=l.format(s);return QV(u,i,e,t,n)}}function XV(e,t){e.timeZoneName&&(e.hour||(e.hour="2-digit"),e.minute||(e.minute="2-digit")),e.timeZoneName==="long"&&(e.timeZoneName="short"),t.omitZeroMinute&&(e.second||e.millisecond)&&delete t.omitZeroMinute}function QV(e,t,n,r,o){return e=e.replace(WV,""),n.timeZoneName==="short"&&(e=ZV(e,o.timeZone==="UTC"||t.timeZoneOffset==null?"UTC":im(t.timeZoneOffset))),r.omitCommas&&(e=e.replace(FV,"").trim()),r.omitZeroMinute&&(e=e.replace(":00","")),r.meridiem===!1?e=e.replace(qc,"").trim():r.meridiem==="narrow"?e=e.replace(qc,(i,s)=>s.toLocaleLowerCase()):r.meridiem==="short"?e=e.replace(qc,(i,s)=>`${s.toLocaleLowerCase()}m`):r.meridiem==="lowercase"&&(e=e.replace(qc,i=>i.toLocaleLowerCase())),e=e.replace(UV," "),e=e.trim(),e}function ZV(e,t){let n=!1;return e=e.replace(YV,()=>(n=!0,t)),n||(e+=` ${t}`),e}function KV(e,t,n,r,o){let i=[];return o==="long"?i.push(n):(o==="short"||o==="narrow")&&i.push(t),(o==="long"||o==="short")&&i.push(" "),i.push(r.simpleNumberFormat.format(e)),r.options.direction==="rtl"&&i.reverse(),i.join("")}function JV(e,t,n){return n.getMarkerYear(e)!==n.getMarkerYear(t)?5:n.getMarkerMonth(e)!==n.getMarkerMonth(t)?4:n.getMarkerDay(e)!==n.getMarkerDay(t)?2:qo(e)!==qo(t)?1:0}function e5(e,t){let n={};for(let r in e)(!(r in Ju)||Ju[r]<=t)&&(n[r]=e[r]);return n}function t5(e,t,n,r){let o=0;for(;o<e.length;){let i=e.indexOf(t,o);if(i===-1)break;let s=e.substr(0,i);o=i+t.length;let l=e.substr(o),u=0;for(;u<n.length;){let d=n.indexOf(r,u);if(d===-1)break;let f=n.substr(0,d);u=d+r.length;let g=n.substr(u);if(s===f&&l===g)return{before:s,after:l}}}return null}function mw(e,t){let n=t.markerToArray(e.marker);return{marker:e.marker,timeZoneOffset:e.timeZoneOffset,array:n,year:n[0],month:n[1],day:n[2],hour:n[3],minute:n[4],second:n[5],millisecond:n[6]}}function ed(e,t,n,r){let o=mw(e,n.calendarSystem),i=t?mw(t,n.calendarSystem):null;return{date:o,start:o,end:i,timeZone:n.timeZone,localeCodes:n.locale.codes,defaultSeparator:r||n.defaultSeparator}}class n5{constructor(t){this.cmdStr=t}format(t,n,r){return n.cmdFormatter(this.cmdStr,ed(t,null,n,r))}formatRange(t,n,r,o){return r.cmdFormatter(this.cmdStr,ed(t,n,r,o))}}class r5{constructor(t){this.func=t}format(t,n,r){return this.func(ed(t,null,n,r))}formatRange(t,n,r,o){return this.func(ed(t,n,r,o))}}function Pt(e){return typeof e=="object"&&e?new GV(e):typeof e=="string"?new n5(e):typeof e=="function"?new r5(e):null}const yw={navLinkDayClick:ce,navLinkWeekClick:ce,duration:tt,bootstrapFontAwesome:ce,buttonIcons:ce,customButtons:ce,defaultAllDayEventDuration:tt,defaultTimedEventDuration:tt,nextDayThreshold:tt,scrollTime:tt,scrollTimeReset:Boolean,slotMinTime:tt,slotMaxTime:tt,dayPopoverFormat:Pt,slotDuration:tt,snapDuration:tt,headerToolbar:ce,footerToolbar:ce,defaultRangeSeparator:String,titleRangeSeparator:String,forceEventDuration:Boolean,dayHeaders:Boolean,dayHeaderFormat:Pt,dayHeaderClassNames:ce,dayHeaderContent:ce,dayHeaderDidMount:ce,dayHeaderWillUnmount:ce,dayCellClassNames:ce,dayCellContent:ce,dayCellDidMount:ce,dayCellWillUnmount:ce,initialView:String,aspectRatio:Number,weekends:Boolean,weekNumberCalculation:ce,weekNumbers:Boolean,weekNumberClassNames:ce,weekNumberContent:ce,weekNumberDidMount:ce,weekNumberWillUnmount:ce,editable:Boolean,viewClassNames:ce,viewDidMount:ce,viewWillUnmount:ce,nowIndicator:Boolean,nowIndicatorSnap:ce,nowIndicatorClassNames:ce,nowIndicatorContent:ce,nowIndicatorDidMount:ce,nowIndicatorWillUnmount:ce,showNonCurrentDates:Boolean,lazyFetching:Boolean,startParam:String,endParam:String,timeZoneParam:String,timeZone:String,locales:ce,locale:ce,themeSystem:String,dragRevertDuration:Number,dragScroll:Boolean,allDayMaintainDuration:Boolean,unselectAuto:Boolean,dropAccept:ce,eventOrder:mV,eventOrderStrict:Boolean,handleWindowResize:Boolean,windowResizeDelay:Number,longPressDelay:Number,eventDragMinDistance:Number,expandRows:Boolean,height:ce,contentHeight:ce,direction:String,weekNumberFormat:Pt,eventResizableFromStart:Boolean,displayEventTime:Boolean,displayEventEnd:Boolean,weekText:String,weekTextLong:String,progressiveEventRendering:Boolean,businessHours:ce,initialDate:ce,now:ce,eventDataTransform:ce,stickyHeaderDates:ce,stickyFooterScrollbar:ce,viewHeight:ce,defaultAllDay:Boolean,eventSourceFailure:ce,eventSourceSuccess:ce,eventDisplay:String,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventOverlap:ce,eventConstraint:ce,eventAllow:ce,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String,eventClassNames:ce,eventContent:ce,eventDidMount:ce,eventWillUnmount:ce,selectConstraint:ce,selectOverlap:ce,selectAllow:ce,droppable:Boolean,unselectCancel:String,slotLabelFormat:ce,slotLaneClassNames:ce,slotLaneContent:ce,slotLaneDidMount:ce,slotLaneWillUnmount:ce,slotLabelClassNames:ce,slotLabelContent:ce,slotLabelDidMount:ce,slotLabelWillUnmount:ce,dayMaxEvents:ce,dayMaxEventRows:ce,dayMinWidth:Number,slotLabelInterval:tt,allDayText:String,allDayClassNames:ce,allDayContent:ce,allDayDidMount:ce,allDayWillUnmount:ce,slotMinWidth:Number,navLinks:Boolean,eventTimeFormat:Pt,rerenderDelay:Number,moreLinkText:ce,moreLinkHint:ce,selectMinDistance:Number,selectable:Boolean,selectLongPressDelay:Number,eventLongPressDelay:Number,selectMirror:Boolean,eventMaxStack:Number,eventMinHeight:Number,eventMinWidth:Number,eventShortHeight:Number,slotEventOverlap:Boolean,plugins:ce,firstDay:Number,dayCount:Number,dateAlignment:String,dateIncrement:tt,hiddenDays:ce,fixedWeekCount:Boolean,validRange:ce,visibleRange:ce,titleFormat:ce,eventInteractive:Boolean,noEventsText:String,viewHint:ce,navLinkHint:ce,closeHint:String,timeHint:String,eventHint:String,moreLinkClick:ce,moreLinkClassNames:ce,moreLinkContent:ce,moreLinkDidMount:ce,moreLinkWillUnmount:ce,monthStartFormat:Pt,handleCustomRendering:ce,customRenderingMetaMap:ce,customRenderingReplaces:Boolean},bl={eventDisplay:"auto",defaultRangeSeparator:" - ",titleRangeSeparator:" – ",defaultTimedEventDuration:"01:00:00",defaultAllDayEventDuration:{day:1},forceEventDuration:!1,nextDayThreshold:"00:00:00",dayHeaders:!0,initialView:"",aspectRatio:1.35,headerToolbar:{start:"title",center:"",end:"today prev,next"},weekends:!0,weekNumbers:!1,weekNumberCalculation:"local",editable:!1,nowIndicator:!1,scrollTime:"06:00:00",scrollTimeReset:!0,slotMinTime:"00:00:00",slotMaxTime:"24:00:00",showNonCurrentDates:!0,lazyFetching:!0,startParam:"start",endParam:"end",timeZoneParam:"timeZone",timeZone:"local",locales:[],locale:"",themeSystem:"standard",dragRevertDuration:500,dragScroll:!0,allDayMaintainDuration:!1,unselectAuto:!0,dropAccept:"*",eventOrder:"start,-duration,allDay,title",dayPopoverFormat:{month:"long",day:"numeric",year:"numeric"},handleWindowResize:!0,windowResizeDelay:100,longPressDelay:1e3,eventDragMinDistance:5,expandRows:!1,navLinks:!1,selectable:!1,eventMinHeight:15,eventMinWidth:30,eventShortHeight:30,monthStartFormat:{month:"long",day:"numeric"},nowIndicatorSnap:"auto"},vw={datesSet:ce,eventsSet:ce,eventAdd:ce,eventChange:ce,eventRemove:ce,windowResize:ce,eventClick:ce,eventMouseEnter:ce,eventMouseLeave:ce,select:ce,unselect:ce,loading:ce,_unmount:ce,_beforeprint:ce,_afterprint:ce,_noEventDrop:ce,_noEventResize:ce,_resize:ce,_scrollRequest:ce},bw={buttonText:ce,buttonHints:ce,views:ce,plugins:ce,initialEvents:ce,events:ce,eventSources:ce},Ri={headerToolbar:Ti,footerToolbar:Ti,buttonText:Ti,buttonHints:Ti,buttonIcons:Ti,dateIncrement:Ti,plugins:Xc,events:Xc,eventSources:Xc,resources:Xc};function Ti(e,t){return typeof e=="object"&&typeof t=="object"&&e&&t?Dr(e,t):e===t}function Xc(e,t){return Array.isArray(e)&&Array.isArray(t)?ti(e,t):e===t}const o5={type:String,component:ce,buttonText:String,buttonTextKey:String,dateProfileGeneratorClass:ce,usesMinMaxTime:Boolean,classNames:ce,content:ce,didMount:ce,willUnmount:ce};function oh(e){return am(e,Ri)}function sm(e,t){let n={},r={};for(let o in t)o in e&&(n[o]=t[o](e[o]));for(let o in e)o in t||(r[o]=e[o]);return{refined:n,extra:r}}function ce(e){return e}const{hasOwnProperty:td}=Object.prototype;function am(e,t){let n={};if(t){for(let r in t)if(t[r]===Ti){let o=[];for(let i=e.length-1;i>=0;i-=1){let s=e[i][r];if(typeof s=="object"&&s)o.unshift(s);else if(s!==void 0){n[r]=s;break}}o.length&&(n[r]=am(o))}}for(let r=e.length-1;r>=0;r-=1){let o=e[r];for(let i in o)i in n||(n[i]=o[i])}return n}function Xi(e,t){let n={};for(let r in e)t(e[r],r)&&(n[r]=e[r]);return n}function bo(e,t){let n={};for(let r in e)n[r]=t(e[r],r);return n}function BC(e){let t={};for(let n of e)t[n]=!0;return t}function lm(e){let t=[];for(let n in e)t.push(e[n]);return t}function Dr(e,t){if(e===t)return!0;for(let n in e)if(td.call(e,n)&&!(n in t))return!1;for(let n in t)if(td.call(t,n)&&e[n]!==t[n])return!1;return!0}const i5=/^on[A-Z]/;function s5(e,t){const n=a5(e,t);for(let r of n)if(!i5.test(r))return!1;return!0}function a5(e,t){let n=[];for(let r in e)td.call(e,r)&&(r in t||n.push(r));for(let r in t)td.call(t,r)&&e[r]!==t[r]&&n.push(r);return n}function ih(e,t,n={}){if(e===t)return!0;for(let r in t)if(!(r in e&&l5(e[r],t[r],n[r])))return!1;for(let r in e)if(!(r in t))return!1;return!0}function l5(e,t,n){return e===t||n===!0?!0:n?n(e,t):!1}function c5(e,t=0,n,r=1){let o=[];n==null&&(n=Object.keys(e).length);for(let i=t;i<n;i+=r){let s=e[i];s!==void 0&&o.push(s)}return o}let VC={};function u5(e,t){VC[e]=t}function d5(e){return new VC[e]}class f5{getMarkerYear(t){return t.getUTCFullYear()}getMarkerMonth(t){return t.getUTCMonth()}getMarkerDay(t){return t.getUTCDate()}arrayToMarker(t){return Cn(t)}markerToArray(t){return Go(t)}}u5("gregory",f5);const p5=/^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;function h5(e){let t=p5.exec(e);if(t){let n=new Date(Date.UTC(Number(t[1]),t[3]?Number(t[3])-1:0,Number(t[5]||1),Number(t[7]||0),Number(t[8]||0),Number(t[10]||0),t[12]?+`0.${t[12]}`*1e3:0));if(zC(n)){let r=null;return t[13]&&(r=(t[15]==="-"?-1:1)*(Number(t[16]||0)*60+Number(t[18]||0))),{marker:n,isTimeUnspecified:!t[6],timeZoneOffset:r}}}return null}class g5{constructor(t){let n=this.timeZone=t.timeZone,r=n!=="local"&&n!=="UTC";t.namedTimeZoneImpl&&r&&(this.namedTimeZoneImpl=new t.namedTimeZoneImpl(n)),this.canComputeOffset=!!(!r||this.namedTimeZoneImpl),this.calendarSystem=d5(t.calendarSystem),this.locale=t.locale,this.weekDow=t.locale.week.dow,this.weekDoy=t.locale.week.doy,t.weekNumberCalculation==="ISO"&&(this.weekDow=1,this.weekDoy=4),typeof t.firstDay=="number"&&(this.weekDow=t.firstDay),typeof t.weekNumberCalculation=="function"&&(this.weekNumberFunc=t.weekNumberCalculation),this.weekText=t.weekText!=null?t.weekText:t.locale.options.weekText,this.weekTextLong=(t.weekTextLong!=null?t.weekTextLong:t.locale.options.weekTextLong)||this.weekText,this.cmdFormatter=t.cmdFormatter,this.defaultSeparator=t.defaultSeparator}createMarker(t){let n=this.createMarkerMeta(t);return n===null?null:n.marker}createNowMarker(){return this.canComputeOffset?this.timestampToMarker(new Date().valueOf()):Cn(pw(new Date))}createMarkerMeta(t){if(typeof t=="string")return this.parse(t);let n=null;return typeof t=="number"?n=this.timestampToMarker(t):t instanceof Date?(t=t.valueOf(),isNaN(t)||(n=this.timestampToMarker(t))):Array.isArray(t)&&(n=Cn(t)),n===null||!zC(n)?null:{marker:n,isTimeUnspecified:!1,forcedTzo:null}}parse(t){let n=h5(t);if(n===null)return null;let{marker:r}=n,o=null;return n.timeZoneOffset!==null&&(this.canComputeOffset?r=this.timestampToMarker(r.valueOf()-n.timeZoneOffset*60*1e3):o=n.timeZoneOffset),{marker:r,isTimeUnspecified:n.isTimeUnspecified,forcedTzo:o}}getYear(t){return this.calendarSystem.getMarkerYear(t)}getMonth(t){return this.calendarSystem.getMarkerMonth(t)}getDay(t){return this.calendarSystem.getMarkerDay(t)}add(t,n){let r=this.calendarSystem.markerToArray(t);return r[0]+=n.years,r[1]+=n.months,r[2]+=n.days,r[6]+=n.milliseconds,this.calendarSystem.arrayToMarker(r)}subtract(t,n){let r=this.calendarSystem.markerToArray(t);return r[0]-=n.years,r[1]-=n.months,r[2]-=n.days,r[6]-=n.milliseconds,this.calendarSystem.arrayToMarker(r)}addYears(t,n){let r=this.calendarSystem.markerToArray(t);return r[0]+=n,this.calendarSystem.arrayToMarker(r)}addMonths(t,n){let r=this.calendarSystem.markerToArray(t);return r[1]+=n,this.calendarSystem.arrayToMarker(r)}diffWholeYears(t,n){let{calendarSystem:r}=this;return qo(t)===qo(n)&&r.getMarkerDay(t)===r.getMarkerDay(n)&&r.getMarkerMonth(t)===r.getMarkerMonth(n)?r.getMarkerYear(n)-r.getMarkerYear(t):null}diffWholeMonths(t,n){let{calendarSystem:r}=this;return qo(t)===qo(n)&&r.getMarkerDay(t)===r.getMarkerDay(n)?r.getMarkerMonth(n)-r.getMarkerMonth(t)+(r.getMarkerYear(n)-r.getMarkerYear(t))*12:null}greatestWholeUnit(t,n){let r=this.diffWholeYears(t,n);return r!==null?{unit:"year",value:r}:(r=this.diffWholeMonths(t,n),r!==null?{unit:"month",value:r}:(r=NV(t,n),r!==null?{unit:"week",value:r}:(r=Ku(t,n),r!==null?{unit:"day",value:r}:(r=kV(t,n),Tu(r)?{unit:"hour",value:r}:(r=MV(t,n),Tu(r)?{unit:"minute",value:r}:(r=PV(t,n),Tu(r)?{unit:"second",value:r}:{unit:"millisecond",value:n.valueOf()-t.valueOf()}))))))}countDurationsBetween(t,n,r){let o;return r.years&&(o=this.diffWholeYears(t,n),o!==null)?o/RV(r):r.months&&(o=this.diffWholeMonths(t,n),o!==null)?o/TV(r):r.days&&(o=Ku(t,n),o!==null)?o/Gs(r):(n.valueOf()-t.valueOf())/Cr(r)}startOf(t,n){return n==="year"?this.startOfYear(t):n==="month"?this.startOfMonth(t):n==="week"?this.startOfWeek(t):n==="day"?Dt(t):n==="hour"?jV(t):n==="minute"?$V(t):n==="second"?zV(t):null}startOfYear(t){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(t)])}startOfMonth(t){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(t),this.calendarSystem.getMarkerMonth(t)])}startOfWeek(t){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(t),this.calendarSystem.getMarkerMonth(t),t.getUTCDate()-(t.getUTCDay()-this.weekDow+7)%7])}computeWeekNumber(t){return this.weekNumberFunc?this.weekNumberFunc(this.toDate(t)):LV(t,this.weekDow,this.weekDoy)}format(t,n,r={}){return n.format({marker:t,timeZoneOffset:r.forcedTzo!=null?r.forcedTzo:this.offsetForMarker(t)},this)}formatRange(t,n,r,o={}){return o.isEndExclusive&&(n=ni(n,-1)),r.formatRange({marker:t,timeZoneOffset:o.forcedStartTzo!=null?o.forcedStartTzo:this.offsetForMarker(t)},{marker:n,timeZoneOffset:o.forcedEndTzo!=null?o.forcedEndTzo:this.offsetForMarker(n)},this,o.defaultSeparator)}formatIso(t,n={}){let r=null;return n.omitTimeZoneOffset||(n.forcedTzo!=null?r=n.forcedTzo:r=this.offsetForMarker(t)),LC(t,r,n.omitTime)}timestampToMarker(t){return this.timeZone==="local"?Cn(pw(new Date(t))):this.timeZone==="UTC"||!this.namedTimeZoneImpl?new Date(t):Cn(this.namedTimeZoneImpl.timestampToArray(t))}offsetForMarker(t){return this.timeZone==="local"?-hw(Go(t)).getTimezoneOffset():this.timeZone==="UTC"?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(Go(t)):null}toDate(t,n){return this.timeZone==="local"?hw(Go(t)):this.timeZone==="UTC"?new Date(t.valueOf()):this.namedTimeZoneImpl?new Date(t.valueOf()-this.namedTimeZoneImpl.offsetForArray(Go(t))*1e3*60):new Date(t.valueOf()-(n||0))}}class Hl{constructor(t){this.iconOverrideOption&&this.setIconOverride(t[this.iconOverrideOption])}setIconOverride(t){let n,r;if(typeof t=="object"&&t){n=Object.assign({},this.iconClasses);for(r in t)n[r]=this.applyIconOverridePrefix(t[r]);this.iconClasses=n}else t===!1&&(this.iconClasses={})}applyIconOverridePrefix(t){let n=this.iconOverridePrefix;return n&&t.indexOf(n)!==0&&(t=n+t),t}getClass(t){return this.classes[t]||""}getIconClass(t,n){let r;return n&&this.rtlIconClasses?r=this.rtlIconClasses[t]||this.iconClasses[t]:r=this.iconClasses[t],r?`${this.baseIconClass} ${r}`:""}getCustomButtonIconClass(t){let n;return this.iconOverrideCustomButtonOption&&(n=t[this.iconOverrideCustomButtonOption],n)?`${this.baseIconClass} ${this.applyIconOverridePrefix(n)}`:""}}Hl.prototype.classes={};Hl.prototype.iconClasses={};Hl.prototype.baseIconClass="";Hl.prototype.iconOverridePrefix="";function nd(e){e();let t=$e.debounceRendering,n=[];function r(o){n.push(o)}for($e.debounceRendering=r,Rl(Z(m5,{}),document.createElement("div"));n.length;)n.shift()();$e.debounceRendering=t}class m5 extends Ln{render(){return Z("div",{})}componentDidMount(){this.setState({})}}function HC(e){let t=BB(e),n=t.Provider;return t.Provider=function(){let r=!this.getChildContext,o=n.apply(this,arguments);if(r){let i=[];this.shouldComponentUpdate=s=>{this.props.value!==s.value&&i.forEach(l=>{l.context=s.value,l.forceUpdate()})},this.sub=s=>{i.push(s);let l=s.componentWillUnmount;s.componentWillUnmount=()=>{i.splice(i.indexOf(s),1),l&&l.call(s)}}}return o},t}class y5{constructor(t,n,r,o){this.execFunc=t,this.emitter=n,this.scrollTime=r,this.scrollTimeReset=o,this.handleScrollRequest=i=>{this.queuedRequest=Object.assign({},this.queuedRequest||{},i),this.drain()},n.on("_scrollRequest",this.handleScrollRequest),this.fireInitialScroll()}detach(){this.emitter.off("_scrollRequest",this.handleScrollRequest)}update(t){t&&this.scrollTimeReset?this.fireInitialScroll():this.drain()}fireInitialScroll(){this.handleScrollRequest({time:this.scrollTime})}drain(){this.queuedRequest&&this.execFunc(this.queuedRequest)&&(this.queuedRequest=null)}}const Eo=HC({});function v5(e,t,n,r,o,i,s,l,u,d,f,g,b,m){return{dateEnv:o,nowManager:i,options:n,pluginHooks:l,emitter:f,dispatch:u,getCurrentData:d,calendarApi:g,viewSpec:e,viewApi:t,dateProfileGenerator:r,theme:s,isRtl:n.direction==="rtl",addResizeHandler(v){f.on("_resize",v)},removeResizeHandler(v){f.off("_resize",v)},createScrollResponder(v){return new y5(v,f,tt(n.scrollTime),n.scrollTimeReset)},registerInteractiveComponent:b,unregisterInteractiveComponent:m}}class os extends Ln{shouldComponentUpdate(t,n){return!ih(this.props,t,this.propEquality)||!ih(this.state,n,this.stateEquality)}safeSetState(t){ih(this.state,Object.assign(Object.assign({},this.state),t),this.stateEquality)||this.setState(t)}}os.addPropsEquality=b5;os.addStateEquality=w5;os.contextType=Eo;os.prototype.propEquality={};os.prototype.stateEquality={};class ct extends os{}ct.contextType=Eo;function b5(e){let t=Object.create(this.prototype.propEquality);Object.assign(t,e),this.prototype.propEquality=t}function w5(e){let t=Object.create(this.prototype.stateEquality);Object.assign(t,e),this.prototype.stateEquality=t}function Hr(e,t){typeof e=="function"?e(t):e&&(e.current=t)}class cm extends ct{constructor(){super(...arguments),this.id=ns(),this.queuedDomNodes=[],this.currentDomNodes=[],this.handleEl=t=>{const{options:n}=this.context,{generatorName:r}=this.props;(!n.customRenderingReplaces||!ng(r,n))&&this.updateElRef(t)},this.updateElRef=t=>{this.props.elRef&&Hr(this.props.elRef,t)}}render(){const{props:t,context:n}=this,{options:r}=n,{customGenerator:o,defaultGenerator:i,renderProps:s}=t,l=FC(t,[],this.handleEl);let u=!1,d,f=[],g;if(o!=null){const b=typeof o=="function"?o(s,Z):o;if(b===!0)u=!0;else{const m=b&&typeof b=="object";m&&"html"in b?l.dangerouslySetInnerHTML={__html:b.html}:m&&"domNodes"in b?f=Array.prototype.slice.call(b.domNodes):(m?pC(b):typeof b!="function")?d=b:g=b}}else u=!ng(t.generatorName,r);return u&&i&&(d=i(s)),this.queuedDomNodes=f,this.currentGeneratorMeta=g,Z(t.elTag,l,d)}componentDidMount(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentDidUpdate(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentWillUnmount(){this.triggerCustomRendering(!1)}triggerCustomRendering(t){var n;const{props:r,context:o}=this,{handleCustomRendering:i,customRenderingMetaMap:s}=o.options;if(i){const l=(n=this.currentGeneratorMeta)!==null&&n!==void 0?n:s==null?void 0:s[r.generatorName];l&&i(Object.assign(Object.assign({id:this.id,isActive:t,containerEl:this.base,reportNewContainerEl:this.updateElRef,generatorMeta:l},r),{elClasses:(r.elClasses||[]).filter(S5)}))}}applyQueueudDomNodes(){const{queuedDomNodes:t,currentDomNodes:n}=this,r=this.base;if(!ti(t,n)){n.forEach(em);for(let o of t)r.appendChild(o);this.currentDomNodes=t}}}cm.addPropsEquality({elClasses:ti,elStyle:Dr,elAttrs:s5,renderProps:Dr});function ng(e,t){var n;return!!(t.handleCustomRendering&&e&&(!((n=t.customRenderingMetaMap)===null||n===void 0)&&n[e]))}function FC(e,t,n){const r=Object.assign(Object.assign({},e.elAttrs),{ref:n});return(e.elClasses||t)&&(r.className=(e.elClasses||[]).concat(t||[]).concat(r.className||[]).filter(Boolean).join(" ")),e.elStyle&&(r.style=e.elStyle),r}function S5(e){return!!e}const UC=HC(0);class Wn extends Ln{constructor(){super(...arguments),this.InnerContent=E5.bind(void 0,this),this.handleEl=t=>{this.el=t,this.props.elRef&&(Hr(this.props.elRef,t),t&&this.didMountMisfire&&this.componentDidMount())}}render(){const{props:t}=this,n=x5(t.classNameGenerator,t.renderProps);if(t.children){const r=FC(t,n,this.handleEl),o=t.children(this.InnerContent,t.renderProps,r);return t.elTag?Z(t.elTag,r,o):o}else return Z(cm,Object.assign(Object.assign({},t),{elRef:this.handleEl,elTag:t.elTag||"div",elClasses:(t.elClasses||[]).concat(n),renderId:this.context}))}componentDidMount(){var t,n;this.el?(n=(t=this.props).didMount)===null||n===void 0||n.call(t,Object.assign(Object.assign({},this.props.renderProps),{el:this.el})):this.didMountMisfire=!0}componentWillUnmount(){var t,n;(n=(t=this.props).willUnmount)===null||n===void 0||n.call(t,Object.assign(Object.assign({},this.props.renderProps),{el:this.el}))}}Wn.contextType=UC;function E5(e,t){const n=e.props;return Z(cm,Object.assign({renderProps:n.renderProps,generatorName:n.generatorName,customGenerator:n.customGenerator,defaultGenerator:n.defaultGenerator,renderId:e.context},t))}function x5(e,t){const n=typeof e=="function"?e(t):e||[];return typeof n=="string"?[n]:n}class rd extends ct{render(){let{props:t,context:n}=this,{options:r}=n,o={view:n.viewApi};return Z(Wn,{elRef:t.elRef,elTag:t.elTag||"div",elAttrs:t.elAttrs,elClasses:[...WC(t.viewSpec),...t.elClasses||[]],elStyle:t.elStyle,renderProps:o,classNameGenerator:r.viewClassNames,generatorName:void 0,didMount:r.viewDidMount,willUnmount:r.viewWillUnmount},()=>t.children)}}function WC(e){return[`fc-${e.type}-view`,"fc-view"]}function C5(e,t){let n=null,r=null;return e.start&&(n=t.createMarker(e.start)),e.end&&(r=t.createMarker(e.end)),!n&&!r||n&&r&&r<n?null:{start:n,end:r}}function ww(e,t){let n=[],{start:r}=t,o,i;for(e.sort(D5),o=0;o<e.length;o+=1)i=e[o],i.start>r&&n.push({start:r,end:i.start}),i.end>r&&(r=i.end);return r<t.end&&n.push({start:r,end:t.end}),n}function D5(e,t){return e.start.valueOf()-t.start.valueOf()}function Qi(e,t){let{start:n,end:r}=e,o=null;return t.start!==null&&(n===null?n=t.start:n=new Date(Math.max(n.valueOf(),t.start.valueOf()))),t.end!=null&&(r===null?r=t.end:r=new Date(Math.min(r.valueOf(),t.end.valueOf()))),(n===null||r===null||n<r)&&(o={start:n,end:r}),o}function _5(e,t){return(e.start===null?null:e.start.valueOf())===(t.start===null?null:t.start.valueOf())&&(e.end===null?null:e.end.valueOf())===(t.end===null?null:t.end.valueOf())}function um(e,t){return(e.end===null||t.start===null||e.end>t.start)&&(e.start===null||t.end===null||e.start<t.end)}function qd(e,t){return(e.start===null||t.start!==null&&t.start>=e.start)&&(e.end===null||t.end!==null&&t.end<=e.end)}function yo(e,t){return(e.start===null||t>=e.start)&&(e.end===null||t<e.end)}function R5(e,t){return t.start!=null&&e<t.start?t.start:t.end!=null&&e>=t.end?new Date(t.end.valueOf()-1):e}function YC(e){let t=Math.floor(rs(e.start,e.end))||1,n=Dt(e.start),r=Zt(n,t);return{start:n,end:r}}function GC(e,t=tt(0)){let n=null,r=null;if(e.end){r=Dt(e.end);let o=e.end.valueOf()-r.valueOf();o&&o>=Cr(t)&&(r=Zt(r,1))}return e.start&&(n=Dt(e.start),r&&r<=n&&(r=Zt(n,1))),{start:n,end:r}}function Ls(e,t,n,r){return r==="year"?tt(n.diffWholeYears(e,t),"year"):r==="month"?tt(n.diffWholeMonths(e,t),"month"):IV(e,t)}class qC{constructor(t){this.props=t,this.initHiddenDays()}buildPrev(t,n,r){let{dateEnv:o}=this.props,i=o.subtract(o.startOf(n,t.currentRangeUnit),t.dateIncrement);return this.build(i,-1,r)}buildNext(t,n,r){let{dateEnv:o}=this.props,i=o.add(o.startOf(n,t.currentRangeUnit),t.dateIncrement);return this.build(i,1,r)}build(t,n,r=!0){let{props:o}=this,i,s,l,u,d,f;return i=this.buildValidRange(),i=this.trimHiddenDays(i),r&&(t=R5(t,i)),s=this.buildCurrentRangeInfo(t,n),l=/^(year|month|week|day)$/.test(s.unit),u=this.buildRenderRange(this.trimHiddenDays(s.range),s.unit,l),u=this.trimHiddenDays(u),d=u,o.showNonCurrentDates||(d=Qi(d,s.range)),d=this.adjustActiveRange(d),d=Qi(d,i),f=um(s.range,i),yo(u,t)||(t=u.start),{currentDate:t,validRange:i,currentRange:s.range,currentRangeUnit:s.unit,isRangeAllDay:l,activeRange:d,renderRange:u,slotMinTime:o.slotMinTime,slotMaxTime:o.slotMaxTime,isValid:f,dateIncrement:this.buildDateIncrement(s.duration)}}buildValidRange(){let t=this.props.validRangeInput,n=typeof t=="function"?t.call(this.props.calendarApi,this.props.dateEnv.toDate(this.props.nowManager.getDateMarker())):t;return this.refineRange(n)||{start:null,end:null}}buildCurrentRangeInfo(t,n){let{props:r}=this,o=null,i=null,s=null,l;return r.duration?(o=r.duration,i=r.durationUnit,s=this.buildRangeFromDuration(t,n,o,i)):(l=this.props.dayCount)?(i="day",s=this.buildRangeFromDayCount(t,n,l)):(s=this.buildCustomVisibleRange(t))?i=r.dateEnv.greatestWholeUnit(s.start,s.end).unit:(o=this.getFallbackDuration(),i=tg(o).unit,s=this.buildRangeFromDuration(t,n,o,i)),{duration:o,unit:i,range:s}}getFallbackDuration(){return tt({day:1})}adjustActiveRange(t){let{dateEnv:n,usesMinMaxTime:r,slotMinTime:o,slotMaxTime:i}=this.props,{start:s,end:l}=t;return r&&(Gs(o)<0&&(s=Dt(s),s=n.add(s,o)),Gs(i)>1&&(l=Dt(l),l=Zt(l,-1),l=n.add(l,i))),{start:s,end:l}}buildRangeFromDuration(t,n,r,o){let{dateEnv:i,dateAlignment:s}=this.props,l,u,d;if(!s){let{dateIncrement:g}=this.props;g&&Cr(g)<Cr(r)?s=tg(g).unit:s=o}Gs(r)<=1&&this.isHiddenDay(l)&&(l=this.skipHiddenDays(l,n),l=Dt(l));function f(){l=i.startOf(t,s),u=i.add(l,r),d={start:l,end:u}}return f(),this.trimHiddenDays(d)||(t=this.skipHiddenDays(t,n),f()),d}buildRangeFromDayCount(t,n,r){let{dateEnv:o,dateAlignment:i}=this.props,s=0,l=t,u;i&&(l=o.startOf(l,i)),l=Dt(l),l=this.skipHiddenDays(l,n),u=l;do u=Zt(u,1),this.isHiddenDay(u)||(s+=1);while(s<r);return{start:l,end:u}}buildCustomVisibleRange(t){let{props:n}=this,r=n.visibleRangeInput,o=typeof r=="function"?r.call(n.calendarApi,n.dateEnv.toDate(t)):r,i=this.refineRange(o);return i&&(i.start==null||i.end==null)?null:i}buildRenderRange(t,n,r){return t}buildDateIncrement(t){let{dateIncrement:n}=this.props,r;return n||((r=this.props.dateAlignment)?tt(1,r):t||tt({days:1}))}refineRange(t){if(t){let n=C5(t,this.props.dateEnv);return n&&(n=GC(n)),n}return null}initHiddenDays(){let t=this.props.hiddenDays||[],n=[],r=0,o;for(this.props.weekends===!1&&t.push(0,6),o=0;o<7;o+=1)(n[o]=t.indexOf(o)!==-1)||(r+=1);if(!r)throw new Error("invalid hiddenDays");this.isHiddenDayHash=n}trimHiddenDays(t){let{start:n,end:r}=t;return n&&(n=this.skipHiddenDays(n)),r&&(r=this.skipHiddenDays(r,-1,!0)),n==null||r==null||n<r?{start:n,end:r}:null}isHiddenDay(t){return t instanceof Date&&(t=t.getUTCDay()),this.isHiddenDayHash[t]}skipHiddenDays(t,n=1,r=!1){for(;this.isHiddenDayHash[(t.getUTCDay()+(r?n:0)+7)%7];)t=Zt(t,n);return t}}function dm(e,t,n,r){return{instanceId:ns(),defId:e,range:t,forcedStartTzo:n??null,forcedEndTzo:r??null}}function T5(e,t,n,r){for(let o=0;o<r.length;o+=1){let i=r[o].parse(e,n);if(i){let{allDay:s}=e;return s==null&&(s=t,s==null&&(s=i.allDayGuess,s==null&&(s=!1))),{allDay:s,duration:i.duration,typeData:i.typeData,typeId:o}}}return null}function Zi(e,t,n){let{dateEnv:r,pluginHooks:o,options:i}=n,{defs:s,instances:l}=e;l=Xi(l,u=>!s[u.defId].recurringDef);for(let u in s){let d=s[u];if(d.recurringDef){let{duration:f}=d.recurringDef;f||(f=d.allDay?i.defaultAllDayEventDuration:i.defaultTimedEventDuration);let g=O5(d,f,t,r,o.recurringTypes);for(let b of g){let m=dm(u,{start:b,end:r.add(b,f)});l[m.instanceId]=m}}}return{defs:s,instances:l}}function O5(e,t,n,r,o){let s=o[e.recurringDef.typeId].expand(e.recurringDef.typeData,{start:r.subtract(n.start,t),end:n.end},r);return e.allDay&&(s=s.map(Dt)),s}const Au={id:String,groupId:String,title:String,url:String,interactive:Boolean},XC={start:ce,end:ce,date:ce,allDay:Boolean},A5=Object.assign(Object.assign(Object.assign({},Au),XC),{extendedProps:ce});function QC(e,t,n,r,o=fm(n),i,s){let{refined:l,extra:u}=ZC(e,n,o),d=M5(t,n),f=T5(l,d,n.dateEnv,n.pluginHooks.recurringTypes);if(f){let b=rg(l,u,t?t.sourceId:"",f.allDay,!!f.duration,n,i);return b.recurringDef={typeId:f.typeId,typeData:f.typeData,duration:f.duration},{def:b,instance:null}}let g=k5(l,d,n,r);if(g){let b=rg(l,u,t?t.sourceId:"",g.allDay,g.hasEnd,n,i),m=dm(b.defId,g.range,g.forcedStartTzo,g.forcedEndTzo);return s&&b.publicId&&s[b.publicId]&&(m.instanceId=s[b.publicId]),{def:b,instance:m}}return null}function ZC(e,t,n=fm(t)){return sm(e,n)}function fm(e){return Object.assign(Object.assign(Object.assign({},od),A5),e.pluginHooks.eventRefiners)}function rg(e,t,n,r,o,i,s){let l={title:e.title||"",groupId:e.groupId||"",publicId:e.id||"",url:e.url||"",recurringDef:null,defId:(s&&e.id?s[e.id]:"")||ns(),sourceId:n,allDay:r,hasEnd:o,interactive:e.interactive,ui:id(e,i),extendedProps:Object.assign(Object.assign({},e.extendedProps||{}),t)};for(let u of i.pluginHooks.eventDefMemberAdders)Object.assign(l,u(e));return Object.freeze(l.ui.classNames),Object.freeze(l.extendedProps),l}function k5(e,t,n,r){let{allDay:o}=e,i,s=null,l=!1,u,d=null,f=e.start!=null?e.start:e.date;if(i=n.dateEnv.createMarkerMeta(f),i)s=i.marker;else if(!r)return null;return e.end!=null&&(u=n.dateEnv.createMarkerMeta(e.end)),o==null&&(t!=null?o=t:o=(!i||i.isTimeUnspecified)&&(!u||u.isTimeUnspecified)),o&&s&&(s=Dt(s)),u&&(d=u.marker,o&&(d=Dt(d)),s&&d<=s&&(d=null)),d?l=!0:r||(l=n.options.forceEventDuration||!1,d=n.dateEnv.add(s,o?n.options.defaultAllDayEventDuration:n.options.defaultTimedEventDuration)),{allDay:o,hasEnd:l,range:{start:s,end:d},forcedStartTzo:i?i.forcedTzo:null,forcedEndTzo:u?u.forcedTzo:null}}function M5(e,t){let n=null;return e&&(n=e.defaultAllDay),n==null&&(n=t.options.defaultAllDay),n}function Tl(e,t,n,r,o,i){let s=Bn(),l=fm(n);for(let u of e){let d=QC(u,t,n,r,l,o,i);d&&og(d,s)}return s}function og(e,t=Bn()){return t.defs[e.def.defId]=e.def,e.instance&&(t.instances[e.instance.instanceId]=e.instance),t}function pm(e,t){let n=e.instances[t];if(n){let r=e.defs[n.defId],o=Xd(e,i=>P5(r,i));return o.defs[r.defId]=r,o.instances[n.instanceId]=n,o}return Bn()}function P5(e,t){return!!(e.groupId&&e.groupId===t.groupId)}function Bn(){return{defs:{},instances:{}}}function hm(e,t){return{defs:Object.assign(Object.assign({},e.defs),t.defs),instances:Object.assign(Object.assign({},e.instances),t.instances)}}function Xd(e,t){let n=Xi(e.defs,t),r=Xi(e.instances,o=>n[o.defId]);return{defs:n,instances:r}}function I5(e,t){let{defs:n,instances:r}=e,o={},i={};for(let s in n)t.defs[s]||(o[s]=n[s]);for(let s in r)!t.instances[s]&&o[r[s].defId]&&(i[s]=r[s]);return{defs:o,instances:i}}function N5(e,t){return Array.isArray(e)?Tl(e,null,t,!0):typeof e=="object"&&e?Tl([e],null,t,!0):e!=null?String(e):null}function Sw(e){return Array.isArray(e)?e:typeof e=="string"?e.split(/\s+/):[]}const od={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:ce,overlap:ce,allow:ce,className:Sw,classNames:Sw,color:String,backgroundColor:String,borderColor:String,textColor:String},j5={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function id(e,t){let n=N5(e.constraint,t);return{display:e.display||null,startEditable:e.startEditable!=null?e.startEditable:e.editable,durationEditable:e.durationEditable!=null?e.durationEditable:e.editable,constraints:n!=null?[n]:[],overlap:e.overlap!=null?e.overlap:null,allows:e.allow!=null?[e.allow]:[],backgroundColor:e.backgroundColor||e.color||"",borderColor:e.borderColor||e.color||"",textColor:e.textColor||"",classNames:(e.className||[]).concat(e.classNames||[])}}function KC(e){return e.reduce($5,j5)}function $5(e,t){return{display:t.display!=null?t.display:e.display,startEditable:t.startEditable!=null?t.startEditable:e.startEditable,durationEditable:t.durationEditable!=null?t.durationEditable:e.durationEditable,constraints:e.constraints.concat(t.constraints),overlap:typeof t.overlap=="boolean"?t.overlap:e.overlap,allows:e.allows.concat(t.allows),backgroundColor:t.backgroundColor||e.backgroundColor,borderColor:t.borderColor||e.borderColor,textColor:t.textColor||e.textColor,classNames:e.classNames.concat(t.classNames)}}const z5={id:String,defaultAllDay:Boolean,url:String,format:String,events:ce,eventDataTransform:ce,success:ce,failure:ce};function JC(e,t,n=e1(t)){let r;if(typeof e=="string"?r={url:e}:typeof e=="function"||Array.isArray(e)?r={events:e}:typeof e=="object"&&e&&(r=e),r){let{refined:o,extra:i}=sm(r,n),s=L5(o,t);if(s)return{_raw:e,isFetching:!1,latestFetchId:"",fetchRange:null,defaultAllDay:o.defaultAllDay,eventDataTransform:o.eventDataTransform,success:o.success,failure:o.failure,publicId:o.id||"",sourceId:ns(),sourceDefId:s.sourceDefId,meta:s.meta,ui:id(o,t),extendedProps:i}}return null}function e1(e){return Object.assign(Object.assign(Object.assign({},od),z5),e.pluginHooks.eventSourceRefiners)}function L5(e,t){let n=t.pluginHooks.eventSourceDefs;for(let r=n.length-1;r>=0;r-=1){let i=n[r].parseMeta(e);if(i)return{sourceDefId:r,meta:i}}return null}function B5(e,t,n,r,o){switch(t.type){case"RECEIVE_EVENTS":return V5(e,n[t.sourceId],t.fetchId,t.fetchRange,t.rawEvents,o);case"RESET_RAW_EVENTS":return H5(e,n[t.sourceId],t.rawEvents,r.activeRange,o);case"ADD_EVENTS":return F5(e,t.eventStore,r?r.activeRange:null,o);case"RESET_EVENTS":return t.eventStore;case"MERGE_EVENTS":return hm(e,t.eventStore);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return r?Zi(e,r.activeRange,o):e;case"REMOVE_EVENTS":return I5(e,t.eventStore);case"REMOVE_EVENT_SOURCE":return n1(e,t.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return Xd(e,i=>!i.sourceId);case"REMOVE_ALL_EVENTS":return Bn();default:return e}}function V5(e,t,n,r,o,i){if(t&&n===t.latestFetchId){let s=Tl(t1(o,t,i),t,i);return r&&(s=Zi(s,r,i)),hm(n1(e,t.sourceId),s)}return e}function H5(e,t,n,r,o){const{defIdMap:i,instanceIdMap:s}=W5(e);let l=Tl(t1(n,t,o),t,o,!1,i,s);return Zi(l,r,o)}function t1(e,t,n){let r=n.options.eventDataTransform,o=t?t.eventDataTransform:null;return o&&(e=Ew(e,o)),r&&(e=Ew(e,r)),e}function Ew(e,t){let n;if(!t)n=e;else{n=[];for(let r of e){let o=t(r);o?n.push(o):o==null&&n.push(r)}}return n}function F5(e,t,n,r){return n&&(t=Zi(t,n,r)),hm(e,t)}function xw(e,t,n){let{defs:r}=e,o=bo(e.instances,i=>r[i.defId].allDay?i:Object.assign(Object.assign({},i),{range:{start:n.createMarker(t.toDate(i.range.start,i.forcedStartTzo)),end:n.createMarker(t.toDate(i.range.end,i.forcedEndTzo))},forcedStartTzo:n.canComputeOffset?null:i.forcedStartTzo,forcedEndTzo:n.canComputeOffset?null:i.forcedEndTzo}));return{defs:r,instances:o}}function n1(e,t){return Xd(e,n=>n.sourceId!==t)}function U5(e,t){return{defs:e.defs,instances:Xi(e.instances,n=>!t[n.instanceId])}}function W5(e){const{defs:t,instances:n}=e,r={},o={};for(let i in t){const s=t[i],{publicId:l}=s;l&&(r[l]=i)}for(let i in n){const s=n[i],l=t[s.defId],{publicId:u}=l;u&&(o[u]=i)}return{defIdMap:r,instanceIdMap:o}}class Qd{constructor(){this.handlers={},this.thisContext=null}setThisContext(t){this.thisContext=t}setOptions(t){this.options=t}on(t,n){Y5(this.handlers,t,n)}off(t,n){G5(this.handlers,t,n)}trigger(t,...n){let r=this.handlers[t]||[],o=this.options&&this.options[t],i=[].concat(o||[],r);for(let s of i)s.apply(this.thisContext,n)}hasHandlers(t){return!!(this.handlers[t]&&this.handlers[t].length||this.options&&this.options[t])}}function Y5(e,t,n){(e[t]||(e[t]=[])).push(n)}function G5(e,t,n){n?e[t]&&(e[t]=e[t].filter(r=>r!==n)):delete e[t]}const q5={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",classNames:"fc-non-business",groupId:"_businessHours"};function X5(e,t){return Tl(Q5(e),null,t)}function Q5(e){let t;return e===!0?t=[{}]:Array.isArray(e)?t=e.filter(n=>n.daysOfWeek):typeof e=="object"&&e?t=[e]:t=[],t=t.map(n=>Object.assign(Object.assign({},q5),n)),t}function r1(e,t,n){n.emitter.trigger("select",Object.assign(Object.assign({},gm(e,n)),{jsEvent:t?t.origEvent:null,view:n.viewApi||n.calendarApi.view}))}function Z5(e,t){t.emitter.trigger("unselect",{jsEvent:e?e.origEvent:null,view:t.viewApi||t.calendarApi.view})}function gm(e,t){let n={};for(let r of t.pluginHooks.dateSpanTransforms)Object.assign(n,r(e,t));return Object.assign(n,dH(e,t.dateEnv)),n}function Cw(e,t,n){let{dateEnv:r,options:o}=n,i=t;return e?(i=Dt(i),i=r.add(i,o.defaultAllDayEventDuration)):i=r.add(i,o.defaultTimedEventDuration),i}function mm(e,t,n,r){let o=sd(e.defs,t),i=Bn();for(let s in e.defs){let l=e.defs[s];i.defs[s]=K5(l,o[s],n,r)}for(let s in e.instances){let l=e.instances[s],u=i.defs[l.defId];i.instances[s]=J5(l,u,o[l.defId],n,r)}return i}function K5(e,t,n,r){let o=n.standardProps||{};o.hasEnd==null&&t.durationEditable&&(n.startDelta||n.endDelta)&&(o.hasEnd=!0);let i=Object.assign(Object.assign(Object.assign({},e),o),{ui:Object.assign(Object.assign({},e.ui),o.ui)});n.extendedProps&&(i.extendedProps=Object.assign(Object.assign({},i.extendedProps),n.extendedProps));for(let s of r.pluginHooks.eventDefMutationAppliers)s(i,n,r);return!i.hasEnd&&r.options.forceEventDuration&&(i.hasEnd=!0),i}function J5(e,t,n,r,o){let{dateEnv:i}=o,s=r.standardProps&&r.standardProps.allDay===!0,l=r.standardProps&&r.standardProps.hasEnd===!1,u=Object.assign({},e);return s&&(u.range=YC(u.range)),r.datesDelta&&n.startEditable&&(u.range={start:i.add(u.range.start,r.datesDelta),end:i.add(u.range.end,r.datesDelta)}),r.startDelta&&n.durationEditable&&(u.range={start:i.add(u.range.start,r.startDelta),end:u.range.end}),r.endDelta&&n.durationEditable&&(u.range={start:u.range.start,end:i.add(u.range.end,r.endDelta)}),l&&(u.range={start:u.range.start,end:Cw(t.allDay,u.range.start,o)}),t.allDay&&(u.range={start:Dt(u.range.start),end:Dt(u.range.end)}),u.range.end<u.range.start&&(u.range.end=Cw(t.allDay,u.range.start,o)),u}class js{constructor(t,n){this.context=t,this.internalEventSource=n}remove(){this.context.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:this.internalEventSource.sourceId})}refetch(){this.context.dispatch({type:"FETCH_EVENT_SOURCES",sourceIds:[this.internalEventSource.sourceId],isRefetch:!0})}get id(){return this.internalEventSource.publicId}get url(){return this.internalEventSource.meta.url}get format(){return this.internalEventSource.meta.format}}class kt{constructor(t,n,r){this._context=t,this._def=n,this._instance=r||null}setProp(t,n){if(t in XC)console.warn("Could not set date-related prop 'name'. Use one of the date-related methods instead.");else if(t==="id")n=Au[t](n),this.mutate({standardProps:{publicId:n}});else if(t in Au)n=Au[t](n),this.mutate({standardProps:{[t]:n}});else if(t in od){let r=od[t](n);t==="color"?r={backgroundColor:n,borderColor:n}:t==="editable"?r={startEditable:n,durationEditable:n}:r={[t]:n},this.mutate({standardProps:{ui:r}})}else console.warn(`Could not set prop '${t}'. Use setExtendedProp instead.`)}setExtendedProp(t,n){this.mutate({extendedProps:{[t]:n}})}setStart(t,n={}){let{dateEnv:r}=this._context,o=r.createMarker(t);if(o&&this._instance){let i=this._instance.range,s=Ls(i.start,o,r,n.granularity);n.maintainDuration?this.mutate({datesDelta:s}):this.mutate({startDelta:s})}}setEnd(t,n={}){let{dateEnv:r}=this._context,o;if(!(t!=null&&(o=r.createMarker(t),!o))&&this._instance)if(o){let i=Ls(this._instance.range.end,o,r,n.granularity);this.mutate({endDelta:i})}else this.mutate({standardProps:{hasEnd:!1}})}setDates(t,n,r={}){let{dateEnv:o}=this._context,i={allDay:r.allDay},s=o.createMarker(t),l;if(s&&!(n!=null&&(l=o.createMarker(n),!l))&&this._instance){let u=this._instance.range;r.allDay===!0&&(u=YC(u));let d=Ls(u.start,s,o,r.granularity);if(l){let f=Ls(u.end,l,o,r.granularity);CV(d,f)?this.mutate({datesDelta:d,standardProps:i}):this.mutate({startDelta:d,endDelta:f,standardProps:i})}else i.hasEnd=!1,this.mutate({datesDelta:d,standardProps:i})}}moveStart(t){let n=tt(t);n&&this.mutate({startDelta:n})}moveEnd(t){let n=tt(t);n&&this.mutate({endDelta:n})}moveDates(t){let n=tt(t);n&&this.mutate({datesDelta:n})}setAllDay(t,n={}){let r={allDay:t},{maintainDuration:o}=n;o==null&&(o=this._context.options.allDayMaintainDuration),this._def.allDay!==t&&(r.hasEnd=o),this.mutate({standardProps:r})}formatRange(t){let{dateEnv:n}=this._context,r=this._instance,o=Pt(t);return this._def.hasEnd?n.formatRange(r.range.start,r.range.end,o,{forcedStartTzo:r.forcedStartTzo,forcedEndTzo:r.forcedEndTzo}):n.format(r.range.start,o,{forcedTzo:r.forcedStartTzo})}mutate(t){let n=this._instance;if(n){let r=this._def,o=this._context,{eventStore:i}=o.getCurrentData(),s=pm(i,n.instanceId);s=mm(s,{"":{display:"",startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]}},t,o);let u=new kt(o,r,n);this._def=s.defs[r.defId],this._instance=s.instances[n.instanceId],o.dispatch({type:"MERGE_EVENTS",eventStore:s}),o.emitter.trigger("eventChange",{oldEvent:u,event:this,relatedEvents:Hi(s,o,n),revert(){o.dispatch({type:"RESET_EVENTS",eventStore:i})}})}}remove(){let t=this._context,n=o1(this);t.dispatch({type:"REMOVE_EVENTS",eventStore:n}),t.emitter.trigger("eventRemove",{event:this,relatedEvents:[],revert(){t.dispatch({type:"MERGE_EVENTS",eventStore:n})}})}get source(){let{sourceId:t}=this._def;return t?new js(this._context,this._context.getCurrentData().eventSources[t]):null}get start(){return this._instance?this._context.dateEnv.toDate(this._instance.range.start):null}get end(){return this._instance&&this._def.hasEnd?this._context.dateEnv.toDate(this._instance.range.end):null}get startStr(){let t=this._instance;return t?this._context.dateEnv.formatIso(t.range.start,{omitTime:this._def.allDay,forcedTzo:t.forcedStartTzo}):""}get endStr(){let t=this._instance;return t&&this._def.hasEnd?this._context.dateEnv.formatIso(t.range.end,{omitTime:this._def.allDay,forcedTzo:t.forcedEndTzo}):""}get id(){return this._def.publicId}get groupId(){return this._def.groupId}get allDay(){return this._def.allDay}get title(){return this._def.title}get url(){return this._def.url}get display(){return this._def.ui.display||"auto"}get startEditable(){return this._def.ui.startEditable}get durationEditable(){return this._def.ui.durationEditable}get constraint(){return this._def.ui.constraints[0]||null}get overlap(){return this._def.ui.overlap}get allow(){return this._def.ui.allows[0]||null}get backgroundColor(){return this._def.ui.backgroundColor}get borderColor(){return this._def.ui.borderColor}get textColor(){return this._def.ui.textColor}get classNames(){return this._def.ui.classNames}get extendedProps(){return this._def.extendedProps}toPlainObject(t={}){let n=this._def,{ui:r}=n,{startStr:o,endStr:i}=this,s={allDay:n.allDay};return n.title&&(s.title=n.title),o&&(s.start=o),i&&(s.end=i),n.publicId&&(s.id=n.publicId),n.groupId&&(s.groupId=n.groupId),n.url&&(s.url=n.url),r.display&&r.display!=="auto"&&(s.display=r.display),t.collapseColor&&r.backgroundColor&&r.backgroundColor===r.borderColor?s.color=r.backgroundColor:(r.backgroundColor&&(s.backgroundColor=r.backgroundColor),r.borderColor&&(s.borderColor=r.borderColor)),r.textColor&&(s.textColor=r.textColor),r.classNames.length&&(s.classNames=r.classNames),Object.keys(n.extendedProps).length&&(t.collapseExtendedProps?Object.assign(s,n.extendedProps):s.extendedProps=n.extendedProps),s}toJSON(){return this.toPlainObject()}}function o1(e){let t=e._def,n=e._instance;return{defs:{[t.defId]:t},instances:n?{[n.instanceId]:n}:{}}}function Hi(e,t,n){let{defs:r,instances:o}=e,i=[],s=n?n.instanceId:"";for(let l in o){let u=o[l],d=r[u.defId];u.instanceId!==s&&i.push(new kt(t,d,u))}return i}function Dw(e,t,n,r){let o={},i={},s={},l=[],u=[],d=sd(e.defs,t);for(let f in e.defs){let g=e.defs[f];d[g.defId].display==="inverse-background"&&(g.groupId?(o[g.groupId]=[],s[g.groupId]||(s[g.groupId]=g)):i[f]=[])}for(let f in e.instances){let g=e.instances[f],b=e.defs[g.defId],m=d[b.defId],v=g.range,p=!b.allDay&&r?GC(v,r):v,y=Qi(p,n);y&&(m.display==="inverse-background"?b.groupId?o[b.groupId].push(y):i[g.defId].push(y):m.display!=="none"&&(m.display==="background"?l:u).push({def:b,ui:m,instance:g,range:y,isStart:p.start&&p.start.valueOf()===y.start.valueOf(),isEnd:p.end&&p.end.valueOf()===y.end.valueOf()}))}for(let f in o){let g=o[f],b=ww(g,n);for(let m of b){let v=s[f],p=d[v.defId];l.push({def:v,ui:p,instance:null,range:m,isStart:!1,isEnd:!1})}}for(let f in i){let g=i[f],b=ww(g,n);for(let m of b)l.push({def:e.defs[f],ui:d[f],instance:null,range:m,isStart:!1,isEnd:!1})}return{bg:l,fg:u}}function eH(e){return e.ui.display==="background"||e.ui.display==="inverse-background"}function _w(e,t){e.fcSeg=t}function oa(e){return e.fcSeg||e.parentNode.fcSeg||null}function sd(e,t){return bo(e,n=>i1(n,t))}function i1(e,t){let n=[];return t[""]&&n.push(t[""]),t[e.defId]&&n.push(t[e.defId]),n.push(e.ui),KC(n)}function s1(e,t){let n=e.map(tH);return n.sort((r,o)=>yV(r,o,t)),n.map(r=>r._seg)}function tH(e){let{eventRange:t}=e,n=t.def,r=t.instance?t.instance.range:t.range,o=r.start?r.start.valueOf():0,i=r.end?r.end.valueOf():0;return Object.assign(Object.assign(Object.assign({},n.extendedProps),n),{id:n.publicId,start:o,end:i,duration:i-o,allDay:Number(n.allDay),_seg:e})}function nH(e,t){let{pluginHooks:n}=t,r=n.isDraggableTransformers,{def:o,ui:i}=e.eventRange,s=i.startEditable;for(let l of r)s=l(s,o,i,t);return s}function rH(e,t){return e.isStart&&e.eventRange.ui.durationEditable&&t.options.eventResizableFromStart}function oH(e,t){return e.isEnd&&e.eventRange.ui.durationEditable}function a1(e,t,n,r,o,i,s){let{dateEnv:l,options:u}=n,{displayEventTime:d,displayEventEnd:f}=u,g=e.eventRange.def,b=e.eventRange.instance;d==null&&(d=r!==!1),f==null&&(f=o!==!1);let m=b.range.start,v=b.range.end,p=e.start||e.eventRange.range.start,y=e.end||e.eventRange.range.end,S=Dt(m).valueOf()===Dt(p).valueOf(),E=Dt(ni(v,-1)).valueOf()===Dt(ni(y,-1)).valueOf();return d&&!g.allDay&&(S||E)?(p=S?m:p,y=E?v:y,f&&g.hasEnd?l.formatRange(p,y,t,{forcedStartTzo:b.forcedStartTzo,forcedEndTzo:b.forcedEndTzo}):l.format(p,t,{forcedTzo:b.forcedStartTzo})):""}function Zo(e,t,n){let r=e.eventRange.range;return{isPast:r.end<=(n||t.start),isFuture:r.start>=(n||t.end),isToday:t&&yo(t,r.start)}}function iH(e){let t=["fc-event"];return e.isMirror&&t.push("fc-event-mirror"),e.isDraggable&&t.push("fc-event-draggable"),(e.isStartResizable||e.isEndResizable)&&t.push("fc-event-resizable"),e.isDragging&&t.push("fc-event-dragging"),e.isResizing&&t.push("fc-event-resizing"),e.isSelected&&t.push("fc-event-selected"),e.isStart&&t.push("fc-event-start"),e.isEnd&&t.push("fc-event-end"),e.isPast&&t.push("fc-event-past"),e.isToday&&t.push("fc-event-today"),e.isFuture&&t.push("fc-event-future"),t}function l1(e){return e.instance?e.instance.instanceId:`${e.def.defId}:${e.range.start.toISOString()}`}function c1(e,t){let{def:n,instance:r}=e.eventRange,{url:o}=n;if(o)return{href:o};let{emitter:i,options:s}=t,{eventInteractive:l}=s;return l==null&&(l=n.interactive,l==null&&(l=!!i.hasHandlers("eventClick"))),l?$C(u=>{i.trigger("eventClick",{el:u.target,event:new kt(t,n,r),jsEvent:u,view:t.viewApi})}):{}}const sH={start:ce,end:ce,allDay:Boolean};function aH(e,t,n){let r=lH(e,t),{range:o}=r;if(!o.start)return null;if(!o.end){if(n==null)return null;o.end=t.add(o.start,n)}return r}function lH(e,t){let{refined:n,extra:r}=sm(e,sH),o=n.start?t.createMarkerMeta(n.start):null,i=n.end?t.createMarkerMeta(n.end):null,{allDay:s}=n;return s==null&&(s=o&&o.isTimeUnspecified&&(!i||i.isTimeUnspecified)),Object.assign({range:{start:o?o.marker:null,end:i?i.marker:null},allDay:s},r)}function cH(e,t){return _5(e.range,t.range)&&e.allDay===t.allDay&&uH(e,t)}function uH(e,t){for(let n in t)if(n!=="range"&&n!=="allDay"&&e[n]!==t[n])return!1;for(let n in e)if(!(n in t))return!1;return!0}function dH(e,t){return Object.assign(Object.assign({},d1(e.range,t,e.allDay)),{allDay:e.allDay})}function u1(e,t,n){return Object.assign(Object.assign({},d1(e,t,n)),{timeZone:t.timeZone})}function d1(e,t,n){return{start:t.toDate(e.start),end:t.toDate(e.end),startStr:t.formatIso(e.start,{omitTime:n}),endStr:t.formatIso(e.end,{omitTime:n})}}function fH(e,t,n){let r=ZC({editable:!1},n),o=rg(r.refined,r.extra,"",e.allDay,!0,n);return{def:o,ui:i1(o,t),instance:dm(o.defId,e.range),range:e.range,isStart:!0,isEnd:!0}}function pH(e,t,n){let r=!1,o=function(l){r||(r=!0,t(l))},i=function(l){r||(r=!0,n(l))},s=e(o,i);s&&typeof s.then=="function"&&s.then(o,i)}class Rw extends Error{constructor(t,n){super(t),this.response=n}}function hH(e,t,n){e=e.toUpperCase();const r={method:e};return e==="GET"?t+=(t.indexOf("?")===-1?"?":"&")+new URLSearchParams(n):(r.body=new URLSearchParams(n),r.headers={"Content-Type":"application/x-www-form-urlencoded"}),fetch(t,r).then(o=>{if(o.ok)return o.json().then(i=>[i,o],()=>{throw new Rw("Failure parsing JSON",o)});throw new Rw("Request failed",o)})}let sh;function f1(){return sh==null&&(sh=gH()),sh}function gH(){if(typeof document>"u")return!0;let e=document.createElement("div");e.style.position="absolute",e.style.top="0px",e.style.left="0px",e.innerHTML="<table><tr><td><div></div></td></tr></table>",e.querySelector("table").style.height="100px",e.querySelector("div").style.height="100%",document.body.appendChild(e);let n=e.querySelector("div").offsetHeight>0;return document.body.removeChild(e),n}class mH extends ct{constructor(){super(...arguments),this.state={forPrint:!1},this.handleBeforePrint=()=>{nd(()=>{this.setState({forPrint:!0})})},this.handleAfterPrint=()=>{nd(()=>{this.setState({forPrint:!1})})}}render(){let{props:t}=this,{options:n}=t,{forPrint:r}=this.state,o=r||n.height==="auto"||n.contentHeight==="auto",i=!o&&n.height!=null?n.height:"",s=["fc",r?"fc-media-print":"fc-media-screen",`fc-direction-${n.direction}`,t.theme.getClass("root")];return f1()||s.push("fc-liquid-hack"),t.children(s,i,o,r)}componentDidMount(){let{emitter:t}=this.props;t.on("_beforeprint",this.handleBeforePrint),t.on("_afterprint",this.handleAfterPrint)}componentWillUnmount(){let{emitter:t}=this.props;t.off("_beforeprint",this.handleBeforePrint),t.off("_afterprint",this.handleAfterPrint)}}class pa{constructor(t){this.component=t.component,this.isHitComboAllowed=t.isHitComboAllowed||null}destroy(){}}function yH(e,t){return{component:e,el:t.el,useEventCenter:t.useEventCenter!=null?t.useEventCenter:!0,isHitComboAllowed:t.isHitComboAllowed||null}}function ym(e){return{[e.component.uid]:e}}const ig={};class ha extends Ln{constructor(t,n){super(t,n),this.handleRefresh=()=>{let r=this.computeTiming();r.state.nowDate.valueOf()!==this.state.nowDate.valueOf()&&this.setState(r.state),this.clearTimeout(),this.setTimeout(r.waitMs)},this.handleVisibilityChange=()=>{document.hidden||this.handleRefresh()},this.state=this.computeTiming().state}render(){let{props:t,state:n}=this;return t.children(n.nowDate,n.todayRange)}componentDidMount(){this.setTimeout(),this.context.nowManager.addResetListener(this.handleRefresh),document.addEventListener("visibilitychange",this.handleVisibilityChange)}componentDidUpdate(t){t.unit!==this.props.unit&&(this.clearTimeout(),this.setTimeout())}componentWillUnmount(){this.clearTimeout(),this.context.nowManager.removeResetListener(this.handleRefresh),document.removeEventListener("visibilitychange",this.handleVisibilityChange)}computeTiming(){let{props:t,context:n}=this,r=n.nowManager.getDateMarker(),{nowIndicatorSnap:o}=n.options;o==="auto"&&(o=/year|month|week|day/.test(t.unit)||(t.unitValue||1)===1);let i,s;return o?(i=n.dateEnv.startOf(r,t.unit),s=n.dateEnv.add(i,tt(1,t.unit)).valueOf()-r.valueOf()):(i=r,s=1e3*60),s=Math.min(1e3*60*60*24,s),{state:{nowDate:i,todayRange:vH(i)},waitMs:s}}setTimeout(t=this.computeTiming().waitMs){this.timeoutId=setTimeout(()=>{const n=this.computeTiming();this.setState(n.state,()=>{this.setTimeout(n.waitMs)})},t)}clearTimeout(){this.timeoutId&&clearTimeout(this.timeoutId)}}ha.contextType=Eo;function vH(e){let t=Dt(e),n=Zt(t,1);return{start:t,end:n}}class bH{getCurrentData(){return this.currentDataManager.getCurrentData()}dispatch(t){this.currentDataManager.dispatch(t)}get view(){return this.getCurrentData().viewApi}batchRendering(t){t()}updateSize(){this.trigger("_resize",!0)}setOption(t,n){this.dispatch({type:"SET_OPTION",optionName:t,rawOptionValue:n})}getOption(t){return this.currentDataManager.currentCalendarOptionsInput[t]}getAvailableLocaleCodes(){return Object.keys(this.getCurrentData().availableRawLocales)}on(t,n){let{currentDataManager:r}=this;r.currentCalendarOptionsRefiners[t]?r.emitter.on(t,n):console.warn(`Unknown listener name '${t}'`)}off(t,n){this.currentDataManager.emitter.off(t,n)}trigger(t,...n){this.currentDataManager.emitter.trigger(t,...n)}changeView(t,n){this.batchRendering(()=>{if(this.unselect(),n)if(n.start&&n.end)this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:t}),this.dispatch({type:"SET_OPTION",optionName:"visibleRange",rawOptionValue:n});else{let{dateEnv:r}=this.getCurrentData();this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:t,dateMarker:r.createMarker(n)})}else this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:t})})}zoomTo(t,n){let r=this.getCurrentData(),o;n=n||"day",o=r.viewSpecs[n]||this.getUnitViewSpec(n),this.unselect(),o?this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:o.type,dateMarker:t}):this.dispatch({type:"CHANGE_DATE",dateMarker:t})}getUnitViewSpec(t){let{viewSpecs:n,toolbarConfig:r}=this.getCurrentData(),o=[].concat(r.header?r.header.viewsWithButtons:[],r.footer?r.footer.viewsWithButtons:[]),i,s;for(let l in n)o.push(l);for(i=0;i<o.length;i+=1)if(s=n[o[i]],s&&s.singleUnit===t)return s;return null}prev(){this.unselect(),this.dispatch({type:"PREV"})}next(){this.unselect(),this.dispatch({type:"NEXT"})}prevYear(){let t=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:t.dateEnv.addYears(t.currentDate,-1)})}nextYear(){let t=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:t.dateEnv.addYears(t.currentDate,1)})}today(){let t=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:t.nowManager.getDateMarker()})}gotoDate(t){let n=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:n.dateEnv.createMarker(t)})}incrementDate(t){let n=this.getCurrentData(),r=tt(t);r&&(this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:n.dateEnv.add(n.currentDate,r)}))}getDate(){let t=this.getCurrentData();return t.dateEnv.toDate(t.currentDate)}formatDate(t,n){let{dateEnv:r}=this.getCurrentData();return r.format(r.createMarker(t),Pt(n))}formatRange(t,n,r){let{dateEnv:o}=this.getCurrentData();return o.formatRange(o.createMarker(t),o.createMarker(n),Pt(r),r)}formatIso(t,n){let{dateEnv:r}=this.getCurrentData();return r.formatIso(r.createMarker(t),{omitTime:n})}select(t,n){let r;n==null?t.start!=null?r=t:r={start:t,end:null}:r={start:t,end:n};let o=this.getCurrentData(),i=aH(r,o.dateEnv,tt({days:1}));i&&(this.dispatch({type:"SELECT_DATES",selection:i}),r1(i,null,o))}unselect(t){let n=this.getCurrentData();n.dateSelection&&(this.dispatch({type:"UNSELECT_DATES"}),Z5(t,n))}addEvent(t,n){if(t instanceof kt){let s=t._def,l=t._instance;return this.getCurrentData().eventStore.defs[s.defId]||(this.dispatch({type:"ADD_EVENTS",eventStore:og({def:s,instance:l})}),this.triggerEventAdd(t)),t}let r=this.getCurrentData(),o;if(n instanceof js)o=n.internalEventSource;else if(typeof n=="boolean")n&&([o]=lm(r.eventSources));else if(n!=null){let s=this.getEventSourceById(n);if(!s)return console.warn(`Could not find an event source with ID "${n}"`),null;o=s.internalEventSource}let i=QC(t,o,r,!1);if(i){let s=new kt(r,i.def,i.def.recurringDef?null:i.instance);return this.dispatch({type:"ADD_EVENTS",eventStore:og(i)}),this.triggerEventAdd(s),s}return null}triggerEventAdd(t){let{emitter:n}=this.getCurrentData();n.trigger("eventAdd",{event:t,relatedEvents:[],revert:()=>{this.dispatch({type:"REMOVE_EVENTS",eventStore:o1(t)})}})}getEventById(t){let n=this.getCurrentData(),{defs:r,instances:o}=n.eventStore;t=String(t);for(let i in r){let s=r[i];if(s.publicId===t){if(s.recurringDef)return new kt(n,s,null);for(let l in o){let u=o[l];if(u.defId===s.defId)return new kt(n,s,u)}}}return null}getEvents(){let t=this.getCurrentData();return Hi(t.eventStore,t)}removeAllEvents(){this.dispatch({type:"REMOVE_ALL_EVENTS"})}getEventSources(){let t=this.getCurrentData(),n=t.eventSources,r=[];for(let o in n)r.push(new js(t,n[o]));return r}getEventSourceById(t){let n=this.getCurrentData(),r=n.eventSources;t=String(t);for(let o in r)if(r[o].publicId===t)return new js(n,r[o]);return null}addEventSource(t){let n=this.getCurrentData();if(t instanceof js)return n.eventSources[t.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[t.internalEventSource]}),t;let r=JC(t,n);return r?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[r]}),new js(n,r)):null}removeAllEventSources(){this.dispatch({type:"REMOVE_ALL_EVENT_SOURCES"})}refetchEvents(){this.dispatch({type:"FETCH_EVENT_SOURCES",isRefetch:!0})}scrollToTime(t){let n=tt(t);n&&this.trigger("_scrollRequest",{time:n})}}function wH(e,t){return e.left>=t.left&&e.left<t.right&&e.top>=t.top&&e.top<t.bottom}function p1(e,t){let n={left:Math.max(e.left,t.left),right:Math.min(e.right,t.right),top:Math.max(e.top,t.top),bottom:Math.min(e.bottom,t.bottom)};return n.left<n.right&&n.top<n.bottom?n:!1}function SH(e,t){return{left:Math.min(Math.max(e.left,t.left),t.right),top:Math.min(Math.max(e.top,t.top),t.bottom)}}function EH(e){return{left:(e.left+e.right)/2,top:(e.top+e.bottom)/2}}function xH(e,t){return{left:e.left-t.left,top:e.top-t.top}}const ah=Bn();class CH{constructor(){this.getKeysForEventDefs=Le(this._getKeysForEventDefs),this.splitDateSelection=Le(this._splitDateSpan),this.splitEventStore=Le(this._splitEventStore),this.splitIndividualUi=Le(this._splitIndividualUi),this.splitEventDrag=Le(this._splitInteraction),this.splitEventResize=Le(this._splitInteraction),this.eventUiBuilders={}}splitProps(t){let n=this.getKeyInfo(t),r=this.getKeysForEventDefs(t.eventStore),o=this.splitDateSelection(t.dateSelection),i=this.splitIndividualUi(t.eventUiBases,r),s=this.splitEventStore(t.eventStore,r),l=this.splitEventDrag(t.eventDrag),u=this.splitEventResize(t.eventResize),d={};this.eventUiBuilders=bo(n,(f,g)=>this.eventUiBuilders[g]||Le(DH));for(let f in n){let g=n[f],b=s[f]||ah,m=this.eventUiBuilders[f];d[f]={businessHours:g.businessHours||t.businessHours,dateSelection:o[f]||null,eventStore:b,eventUiBases:m(t.eventUiBases[""],g.ui,i[f]),eventSelection:b.instances[t.eventSelection]?t.eventSelection:"",eventDrag:l[f]||null,eventResize:u[f]||null}}return d}_splitDateSpan(t){let n={};if(t){let r=this.getKeysForDateSpan(t);for(let o of r)n[o]=t}return n}_getKeysForEventDefs(t){return bo(t.defs,n=>this.getKeysForEventDef(n))}_splitEventStore(t,n){let{defs:r,instances:o}=t,i={};for(let s in r)for(let l of n[s])i[l]||(i[l]=Bn()),i[l].defs[s]=r[s];for(let s in o){let l=o[s];for(let u of n[l.defId])i[u]&&(i[u].instances[s]=l)}return i}_splitIndividualUi(t,n){let r={};for(let o in t)if(o)for(let i of n[o])r[i]||(r[i]={}),r[i][o]=t[o];return r}_splitInteraction(t){let n={};if(t){let r=this._splitEventStore(t.affectedEvents,this._getKeysForEventDefs(t.affectedEvents)),o=this._getKeysForEventDefs(t.mutatedEvents),i=this._splitEventStore(t.mutatedEvents,o),s=l=>{n[l]||(n[l]={affectedEvents:r[l]||ah,mutatedEvents:i[l]||ah,isEvent:t.isEvent})};for(let l in r)s(l);for(let l in i)s(l)}return n}}function DH(e,t,n){let r=[];e&&r.push(e),t&&r.push(t);let o={"":KC(r)};return n&&Object.assign(o,n),o}function h1(e,t,n,r){return{dow:e.getUTCDay(),isDisabled:!!(r&&(!r.activeRange||!yo(r.activeRange,e))),isOther:!!(r&&!yo(r.currentRange,e)),isToday:!!(t&&yo(t,e)),isPast:!!(t&&e<t.start),isFuture:!!(t&&e>=t.end)}}function vm(e,t){let n=["fc-day",`fc-day-${OV[e.dow]}`];return e.isDisabled?n.push("fc-day-disabled"):(e.isToday&&(n.push("fc-day-today"),n.push(t.getClass("today"))),e.isPast&&n.push("fc-day-past"),e.isFuture&&n.push("fc-day-future"),e.isOther&&n.push("fc-day-other")),n}const _H=Pt({year:"numeric",month:"long",day:"numeric"}),RH=Pt({week:"long"});function ad(e,t,n="day",r=!0){const{dateEnv:o,options:i,calendarApi:s}=e;let l=o.format(t,n==="week"?RH:_H);if(i.navLinks){let u=o.toDate(t);const d=f=>{let g=n==="day"?i.navLinkDayClick:n==="week"?i.navLinkWeekClick:null;typeof g=="function"?g.call(s,o.toDate(t),f):(typeof g=="string"&&(n=g),s.zoomTo(t,n))};return Object.assign({title:vl(i.navLinkHint,[l,u],l),"data-navlink":""},r?jC(d):{onClick:d})}return{"aria-label":l}}let lh=null;function TH(){return lh===null&&(lh=OH()),lh}function OH(){let e=document.createElement("div");yl(e,{position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}),e.innerHTML="<div></div>",document.body.appendChild(e);let n=e.firstChild.getBoundingClientRect().left>e.getBoundingClientRect().left;return em(e),n}let ch;function AH(){return ch||(ch=kH()),ch}function kH(){let e=document.createElement("div");e.style.overflow="scroll",e.style.position="absolute",e.style.top="-9999px",e.style.left="-9999px",document.body.appendChild(e);let t=g1(e);return document.body.removeChild(e),t}function g1(e){return{x:e.offsetHeight-e.clientHeight,y:e.offsetWidth-e.clientWidth}}function MH(e,t=!1){let n=window.getComputedStyle(e),r=parseInt(n.borderLeftWidth,10)||0,o=parseInt(n.borderRightWidth,10)||0,i=parseInt(n.borderTopWidth,10)||0,s=parseInt(n.borderBottomWidth,10)||0,l=g1(e),u=l.y-r-o,d=l.x-i-s,f={borderLeft:r,borderRight:o,borderTop:i,borderBottom:s,scrollbarBottom:d,scrollbarLeft:0,scrollbarRight:0};return TH()&&n.direction==="rtl"?f.scrollbarLeft=u:f.scrollbarRight=u,t&&(f.paddingLeft=parseInt(n.paddingLeft,10)||0,f.paddingRight=parseInt(n.paddingRight,10)||0,f.paddingTop=parseInt(n.paddingTop,10)||0,f.paddingBottom=parseInt(n.paddingBottom,10)||0),f}function PH(e,t=!1,n){let r=bm(e),o=MH(e,t),i={left:r.left+o.borderLeft+o.scrollbarLeft,right:r.right-o.borderRight-o.scrollbarRight,top:r.top+o.borderTop,bottom:r.bottom-o.borderBottom-o.scrollbarBottom};return t&&(i.left+=o.paddingLeft,i.right-=o.paddingRight,i.top+=o.paddingTop,i.bottom-=o.paddingBottom),i}function bm(e){let t=e.getBoundingClientRect();return{left:t.left+window.scrollX,top:t.top+window.scrollY,right:t.right+window.scrollX,bottom:t.bottom+window.scrollY}}function IH(e){let t=m1(e),n=e.getBoundingClientRect();for(let r of t){let o=p1(n,r.getBoundingClientRect());if(o)n=o;else return null}return n}function m1(e){let t=[];for(;e instanceof HTMLElement;){let n=window.getComputedStyle(e);if(n.position==="fixed")break;/(auto|scroll)/.test(n.overflow+n.overflowY+n.overflowX)&&t.push(e),e=e.parentNode}return t}class ia{constructor(t,n,r,o){this.els=n;let i=this.originClientRect=t.getBoundingClientRect();r&&this.buildElHorizontals(i.left),o&&this.buildElVerticals(i.top)}buildElHorizontals(t){let n=[],r=[];for(let o of this.els){let i=o.getBoundingClientRect();n.push(i.left-t),r.push(i.right-t)}this.lefts=n,this.rights=r}buildElVerticals(t){let n=[],r=[];for(let o of this.els){let i=o.getBoundingClientRect();n.push(i.top-t),r.push(i.bottom-t)}this.tops=n,this.bottoms=r}leftToIndex(t){let{lefts:n,rights:r}=this,o=n.length,i;for(i=0;i<o;i+=1)if(t>=n[i]&&t<r[i])return i}topToIndex(t){let{tops:n,bottoms:r}=this,o=n.length,i;for(i=0;i<o;i+=1)if(t>=n[i]&&t<r[i])return i}getWidth(t){return this.rights[t]-this.lefts[t]}getHeight(t){return this.bottoms[t]-this.tops[t]}similarTo(t){return Qc(this.tops||[],t.tops||[])&&Qc(this.bottoms||[],t.bottoms||[])&&Qc(this.lefts||[],t.lefts||[])&&Qc(this.rights||[],t.rights||[])}}function Qc(e,t){const n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r++)if(Math.round(e[r])!==Math.round(t[r]))return!1;return!0}class wm{getMaxScrollTop(){return this.getScrollHeight()-this.getClientHeight()}getMaxScrollLeft(){return this.getScrollWidth()-this.getClientWidth()}canScrollVertically(){return this.getMaxScrollTop()>0}canScrollHorizontally(){return this.getMaxScrollLeft()>0}canScrollUp(){return this.getScrollTop()>0}canScrollDown(){return this.getScrollTop()<this.getMaxScrollTop()}canScrollLeft(){return this.getScrollLeft()>0}canScrollRight(){return this.getScrollLeft()<this.getMaxScrollLeft()}}class NH extends wm{constructor(t){super(),this.el=t}getScrollTop(){return this.el.scrollTop}getScrollLeft(){return this.el.scrollLeft}setScrollTop(t){this.el.scrollTop=t}setScrollLeft(t){this.el.scrollLeft=t}getScrollWidth(){return this.el.scrollWidth}getScrollHeight(){return this.el.scrollHeight}getClientHeight(){return this.el.clientHeight}getClientWidth(){return this.el.clientWidth}}class jH extends wm{getScrollTop(){return window.scrollY}getScrollLeft(){return window.scrollX}setScrollTop(t){window.scroll(window.scrollX,t)}setScrollLeft(t){window.scroll(t,window.scrollY)}getScrollWidth(){return document.documentElement.scrollWidth}getScrollHeight(){return document.documentElement.scrollHeight}getClientHeight(){return document.documentElement.clientHeight}getClientWidth(){return document.documentElement.clientWidth}}class Ur extends ct{constructor(){super(...arguments),this.uid=ns()}prepareHits(){}queryHit(t,n,r,o){return null}isValidSegDownEl(t){return!this.props.eventDrag&&!this.props.eventResize&&!on(t,".fc-event-mirror")}isValidDateDownEl(t){return!on(t,".fc-event:not(.fc-bg-event)")&&!on(t,".fc-more-link")&&!on(t,"a[data-navlink]")&&!on(t,".fc-popover")}}class y1{constructor(t=n=>n.thickness||1){this.getEntryThickness=t,this.strictOrder=!1,this.allowReslicing=!1,this.maxCoord=-1,this.maxStackCnt=-1,this.levelCoords=[],this.entriesByLevel=[],this.stackCnts={}}addSegs(t){let n=[];for(let r of t)this.insertEntry(r,n);return n}insertEntry(t,n){let r=this.findInsertion(t);this.isInsertionValid(r,t)?this.insertEntryAt(t,r):this.handleInvalidInsertion(r,t,n)}isInsertionValid(t,n){return(this.maxCoord===-1||t.levelCoord+this.getEntryThickness(n)<=this.maxCoord)&&(this.maxStackCnt===-1||t.stackCnt<this.maxStackCnt)}handleInvalidInsertion(t,n,r){if(this.allowReslicing&&t.touchingEntry){const o=Object.assign(Object.assign({},n),{span:Sm(n.span,t.touchingEntry.span)});r.push(o),this.splitEntry(n,t.touchingEntry,r)}else r.push(n)}splitEntry(t,n,r){let o=t.span,i=n.span;o.start<i.start&&this.insertEntry({index:t.index,thickness:t.thickness,span:{start:o.start,end:i.start}},r),o.end>i.end&&this.insertEntry({index:t.index,thickness:t.thickness,span:{start:i.end,end:o.end}},r)}insertEntryAt(t,n){let{entriesByLevel:r,levelCoords:o}=this;n.lateral===-1?(uh(o,n.level,n.levelCoord),uh(r,n.level,[t])):uh(r[n.level],n.lateral,t),this.stackCnts[Fi(t)]=n.stackCnt}findInsertion(t){let{levelCoords:n,entriesByLevel:r,strictOrder:o,stackCnts:i}=this,s=n.length,l=0,u=-1,d=-1,f=null,g=0;for(let v=0;v<s;v+=1){const p=n[v];if(!o&&p>=l+this.getEntryThickness(t))break;let y=r[v],S,E=ag(y,t.span.start,sg),D=E[0]+E[1];for(;(S=y[D])&&S.span.start<t.span.end;){let R=p+this.getEntryThickness(S);R>l&&(l=R,f=S,u=v,d=D),R===l&&(g=Math.max(g,i[Fi(S)]+1)),D+=1}}let b=0;if(f)for(b=u+1;b<s&&n[b]<l;)b+=1;let m=-1;return b<s&&n[b]===l&&(m=ag(r[b],t.span.end,sg)[0]),{touchingLevel:u,touchingLateral:d,touchingEntry:f,stackCnt:g,levelCoord:l,level:b,lateral:m}}toRects(){let{entriesByLevel:t,levelCoords:n}=this,r=t.length,o=[];for(let i=0;i<r;i+=1){let s=t[i],l=n[i];for(let u of s)o.push(Object.assign(Object.assign({},u),{thickness:this.getEntryThickness(u),levelCoord:l}))}return o}}function sg(e){return e.span.end}function Fi(e){return e.index+":"+e.span.start}function $H(e){let t=[];for(let n of e){let r=[],o={span:n.span,entries:[n]};for(let i of t)Sm(i.span,o.span)?o={entries:i.entries.concat(o.entries),span:zH(i.span,o.span)}:r.push(i);r.push(o),t=r}return t}function zH(e,t){return{start:Math.min(e.start,t.start),end:Math.max(e.end,t.end)}}function Sm(e,t){let n=Math.max(e.start,t.start),r=Math.min(e.end,t.end);return n<r?{start:n,end:r}:null}function uh(e,t,n){e.splice(t,0,n)}function ag(e,t,n){let r=0,o=e.length;if(!o||t<n(e[r]))return[0,0];if(t>n(e[o-1]))return[o,0];for(;r<o;){let i=Math.floor(r+(o-r)/2),s=n(e[i]);if(t<s)o=i;else if(t>s)r=i+1;else return[i,1]}return[r,0]}class LH{constructor(t,n){this.emitter=new Qd}destroy(){}setMirrorIsVisible(t){}setMirrorNeedsRevert(t){}setAutoScrollEnabled(t){}}const Em={};function BH(e,t){return!e||t>10?Pt({weekday:"short"}):t>1?Pt({weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}):Pt({weekday:"long"})}const v1="fc-col-header-cell";function b1(e){return e.text}class VH extends ct{render(){let{dateEnv:t,options:n,theme:r,viewApi:o}=this.context,{props:i}=this,{date:s,dateProfile:l}=i,u=h1(s,i.todayRange,null,l),d=[v1].concat(vm(u,r)),f=t.format(s,i.dayHeaderFormat),g=!u.isDisabled&&i.colCnt>1?ad(this.context,s):{},b=t.toDate(s);t.namedTimeZoneImpl&&(b=ni(b,36e5));let m=Object.assign(Object.assign(Object.assign({date:b,view:o},i.extraRenderProps),{text:f}),u);return Z(Wn,{elTag:"th",elClasses:d,elAttrs:Object.assign({role:"columnheader",colSpan:i.colSpan,"data-date":u.isDisabled?void 0:om(s)},i.extraDataAttrs),renderProps:m,generatorName:"dayHeaderContent",customGenerator:n.dayHeaderContent,defaultGenerator:b1,classNameGenerator:n.dayHeaderClassNames,didMount:n.dayHeaderDidMount,willUnmount:n.dayHeaderWillUnmount},v=>Z("div",{className:"fc-scrollgrid-sync-inner"},!u.isDisabled&&Z(v,{elTag:"a",elAttrs:g,elClasses:["fc-col-header-cell-cushion",i.isSticky&&"fc-sticky"]})))}}const HH=Pt({weekday:"long"});class FH extends ct{render(){let{props:t}=this,{dateEnv:n,theme:r,viewApi:o,options:i}=this.context,s=Zt(new Date(2592e5),t.dow),l={dow:t.dow,isDisabled:!1,isFuture:!1,isPast:!1,isToday:!1,isOther:!1},u=n.format(s,t.dayHeaderFormat),d=Object.assign(Object.assign(Object.assign(Object.assign({date:s},l),{view:o}),t.extraRenderProps),{text:u});return Z(Wn,{elTag:"th",elClasses:[v1,...vm(l,r),...t.extraClassNames||[]],elAttrs:Object.assign({role:"columnheader",colSpan:t.colSpan},t.extraDataAttrs),renderProps:d,generatorName:"dayHeaderContent",customGenerator:i.dayHeaderContent,defaultGenerator:b1,classNameGenerator:i.dayHeaderClassNames,didMount:i.dayHeaderDidMount,willUnmount:i.dayHeaderWillUnmount},f=>Z("div",{className:"fc-scrollgrid-sync-inner"},Z(f,{elTag:"a",elClasses:["fc-col-header-cell-cushion",t.isSticky&&"fc-sticky"],elAttrs:{"aria-label":n.format(s,HH)}})))}}class w1 extends ct{constructor(){super(...arguments),this.createDayHeaderFormatter=Le(UH)}render(){let{context:t}=this,{dates:n,dateProfile:r,datesRepDistinctDays:o,renderIntro:i}=this.props,s=this.createDayHeaderFormatter(t.options.dayHeaderFormat,o,n.length);return Z(ha,{unit:"day"},(l,u)=>Z("tr",{role:"row"},i&&i("day"),n.map(d=>o?Z(VH,{key:d.toISOString(),date:d,dateProfile:r,todayRange:u,colCnt:n.length,dayHeaderFormat:s}):Z(FH,{key:d.getUTCDay(),dow:d.getUTCDay(),dayHeaderFormat:s}))))}}function UH(e,t,n){return e||BH(t,n)}class S1{constructor(t,n){let r=t.start,{end:o}=t,i=[],s=[],l=-1;for(;r<o;)n.isHiddenDay(r)?i.push(l+.5):(l+=1,i.push(l),s.push(r)),r=Zt(r,1);this.dates=s,this.indices=i,this.cnt=s.length}sliceRange(t){let n=this.getDateDayIndex(t.start),r=this.getDateDayIndex(Zt(t.end,-1)),o=Math.max(0,n),i=Math.min(this.cnt-1,r);return o=Math.ceil(o),i=Math.floor(i),o<=i?{firstIndex:o,lastIndex:i,isStart:n===o,isEnd:r===i}:null}getDateDayIndex(t){let{indices:n}=this,r=Math.floor(rs(this.dates[0],t));return r<0?n[0]-1:r>=n.length?n[n.length-1]+1:n[r]}}class E1{constructor(t,n){let{dates:r}=t,o,i,s;if(n){for(i=r[0].getUTCDay(),o=1;o<r.length&&r[o].getUTCDay()!==i;o+=1);s=Math.ceil(r.length/o)}else s=1,o=r.length;this.rowCnt=s,this.colCnt=o,this.daySeries=t,this.cells=this.buildCells(),this.headerDates=this.buildHeaderDates()}buildCells(){let t=[];for(let n=0;n<this.rowCnt;n+=1){let r=[];for(let o=0;o<this.colCnt;o+=1)r.push(this.buildCell(n,o));t.push(r)}return t}buildCell(t,n){let r=this.daySeries.dates[t*this.colCnt+n];return{key:r.toISOString(),date:r}}buildHeaderDates(){let t=[];for(let n=0;n<this.colCnt;n+=1)t.push(this.cells[0][n].date);return t}sliceRange(t){let{colCnt:n}=this,r=this.daySeries.sliceRange(t),o=[];if(r){let{firstIndex:i,lastIndex:s}=r,l=i;for(;l<=s;){let u=Math.floor(l/n),d=Math.min((u+1)*n,s+1);o.push({row:u,firstCol:l%n,lastCol:(d-1)%n,isStart:r.isStart&&l===i,isEnd:r.isEnd&&d-1===s}),l=d}}return o}}class x1{constructor(){this.sliceBusinessHours=Le(this._sliceBusinessHours),this.sliceDateSelection=Le(this._sliceDateSpan),this.sliceEventStore=Le(this._sliceEventStore),this.sliceEventDrag=Le(this._sliceInteraction),this.sliceEventResize=Le(this._sliceInteraction),this.forceDayIfListItem=!1}sliceProps(t,n,r,o,...i){let{eventUiBases:s}=t,l=this.sliceEventStore(t.eventStore,s,n,r,...i);return{dateSelectionSegs:this.sliceDateSelection(t.dateSelection,n,r,s,o,...i),businessHourSegs:this.sliceBusinessHours(t.businessHours,n,r,o,...i),fgEventSegs:l.fg,bgEventSegs:l.bg,eventDrag:this.sliceEventDrag(t.eventDrag,s,n,r,...i),eventResize:this.sliceEventResize(t.eventResize,s,n,r,...i),eventSelection:t.eventSelection}}sliceNowDate(t,n,r,o,...i){return this._sliceDateSpan({range:{start:t,end:ni(t,1)},allDay:!1},n,r,{},o,...i)}_sliceBusinessHours(t,n,r,o,...i){return t?this._sliceEventStore(Zi(t,Zc(n,!!r),o),{},n,r,...i).bg:[]}_sliceEventStore(t,n,r,o,...i){if(t){let s=Dw(t,n,Zc(r,!!o),o);return{bg:this.sliceEventRanges(s.bg,i),fg:this.sliceEventRanges(s.fg,i)}}return{bg:[],fg:[]}}_sliceInteraction(t,n,r,o,...i){if(!t)return null;let s=Dw(t.mutatedEvents,n,Zc(r,!!o),o);return{segs:this.sliceEventRanges(s.fg,i),affectedInstances:t.affectedEvents.instances,isEvent:t.isEvent}}_sliceDateSpan(t,n,r,o,i,...s){if(!t)return[];let l=Zc(n,!!r),u=Qi(t.range,l);if(u){t=Object.assign(Object.assign({},t),{range:u});let d=fH(t,o,i),f=this.sliceRange(t.range,...s);for(let g of f)g.eventRange=d;return f}return[]}sliceEventRanges(t,n){let r=[];for(let o of t)r.push(...this.sliceEventRange(o,n));return r}sliceEventRange(t,n){let r=t.range;this.forceDayIfListItem&&t.ui.display==="list-item"&&(r={start:r.start,end:Zt(r.start,1)});let o=this.sliceRange(r,...n);for(let i of o)i.eventRange=t,i.isStart=t.isStart&&i.isStart,i.isEnd=t.isEnd&&i.isEnd;return o}}function Zc(e,t){let n=e.activeRange;return t?n:{start:ni(n.start,e.slotMinTime.milliseconds),end:ni(n.end,e.slotMaxTime.milliseconds-864e5)}}function C1(e,t,n){let{instances:r}=e.mutatedEvents;for(let o in r)if(!qd(t.validRange,r[o].range))return!1;return D1({eventDrag:e},n)}function WH(e,t,n){return qd(t.validRange,e.range)?D1({dateSelection:e},n):!1}function D1(e,t){let n=t.getCurrentData(),r=Object.assign({businessHours:n.businessHours,dateSelection:"",eventStore:n.eventStore,eventUiBases:n.eventUiBases,eventSelection:"",eventDrag:null,eventResize:null},e);return(t.pluginHooks.isPropsValid||YH)(r,t)}function YH(e,t,n={},r){return!(e.eventDrag&&!GH(e,t,n,r)||e.dateSelection&&!qH(e,t,n,r))}function GH(e,t,n,r){let o=t.getCurrentData(),i=e.eventDrag,s=i.mutatedEvents,l=s.defs,u=s.instances,d=sd(l,i.isEvent?e.eventUiBases:{"":o.selectionConfig});r&&(d=bo(d,r));let f=U5(e.eventStore,i.affectedEvents.instances),g=f.defs,b=f.instances,m=sd(g,e.eventUiBases);for(let v in u){let p=u[v],y=p.range,S=d[p.defId],E=l[p.defId];if(!_1(S.constraints,y,f,e.businessHours,t))return!1;let{eventOverlap:D}=t.options,R=typeof D=="function"?D:null;for(let T in b){let O=b[T];if(um(y,O.range)&&(m[O.defId].overlap===!1&&i.isEvent||S.overlap===!1||R&&!R(new kt(t,g[O.defId],O),new kt(t,E,p))))return!1}let C=o.eventStore;for(let T of S.allows){let O=Object.assign(Object.assign({},n),{range:p.range,allDay:E.allDay}),P=C.defs[E.defId],H=C.instances[v],Q;if(P?Q=new kt(t,P,H):Q=new kt(t,E),!T(gm(O,t),Q))return!1}}return!0}function qH(e,t,n,r){let o=e.eventStore,i=o.defs,s=o.instances,l=e.dateSelection,u=l.range,{selectionConfig:d}=t.getCurrentData();if(r&&(d=r(d)),!_1(d.constraints,u,o,e.businessHours,t))return!1;let{selectOverlap:f}=t.options,g=typeof f=="function"?f:null;for(let b in s){let m=s[b];if(um(u,m.range)&&(d.overlap===!1||g&&!g(new kt(t,i[m.defId],m),null)))return!1}for(let b of d.allows){let m=Object.assign(Object.assign({},n),l);if(!b(gm(m,t),null))return!1}return!0}function _1(e,t,n,r,o){for(let i of e)if(!QH(XH(i,t,n,r,o),t))return!1;return!0}function XH(e,t,n,r,o){return e==="businessHours"?dh(Zi(r,t,o)):typeof e=="string"?dh(Xd(n,i=>i.groupId===e)):typeof e=="object"&&e?dh(Zi(e,t,o)):[]}function dh(e){let{instances:t}=e,n=[];for(let r in t)n.push(t[r].range);return n}function QH(e,t){for(let n of e)if(qd(n,t))return!0;return!1}const Kc=/^(visible|hidden)$/;class ZH extends ct{constructor(){super(...arguments),this.handleEl=t=>{this.el=t,Hr(this.props.elRef,t)}}render(){let{props:t}=this,{liquid:n,liquidIsAbsolute:r}=t,o=n&&r,i=["fc-scroller"];return n&&(r?i.push("fc-scroller-liquid-absolute"):i.push("fc-scroller-liquid")),Z("div",{ref:this.handleEl,className:i.join(" "),style:{overflowX:t.overflowX,overflowY:t.overflowY,left:o&&-(t.overcomeLeft||0)||"",right:o&&-(t.overcomeRight||0)||"",bottom:o&&-(t.overcomeBottom||0)||"",marginLeft:!o&&-(t.overcomeLeft||0)||"",marginRight:!o&&-(t.overcomeRight||0)||"",marginBottom:!o&&-(t.overcomeBottom||0)||"",maxHeight:t.maxHeight||""}},t.children)}needsXScrolling(){if(Kc.test(this.props.overflowX))return!1;let{el:t}=this,n=this.el.getBoundingClientRect().width-this.getYScrollbarWidth(),{children:r}=t;for(let o=0;o<r.length;o+=1)if(r[o].getBoundingClientRect().width>n)return!0;return!1}needsYScrolling(){if(Kc.test(this.props.overflowY))return!1;let{el:t}=this,n=this.el.getBoundingClientRect().height-this.getXScrollbarWidth(),{children:r}=t;for(let o=0;o<r.length;o+=1)if(r[o].getBoundingClientRect().height>n)return!0;return!1}getXScrollbarWidth(){return Kc.test(this.props.overflowX)?0:this.el.offsetHeight-this.el.clientHeight}getYScrollbarWidth(){return Kc.test(this.props.overflowY)?0:this.el.offsetWidth-this.el.clientWidth}}class mo{constructor(t){this.masterCallback=t,this.currentMap={},this.depths={},this.callbackMap={},this.handleValue=(n,r)=>{let{depths:o,currentMap:i}=this,s=!1,l=!1;n!==null?(s=r in i,i[r]=n,o[r]=(o[r]||0)+1,l=!0):(o[r]-=1,o[r]||(delete i[r],delete this.callbackMap[r],s=!0)),this.masterCallback&&(s&&this.masterCallback(null,String(r)),l&&this.masterCallback(n,String(r)))}}createRef(t){let n=this.callbackMap[t];return n||(n=this.callbackMap[t]=r=>{this.handleValue(r,String(t))}),n}collect(t,n,r){return c5(this.currentMap,t,n,r)}getAll(){return lm(this.currentMap)}}function KH(e){let t=aV(e,".fc-scrollgrid-shrink"),n=0;for(let r of t)n=Math.max(n,SV(r));return Math.ceil(n)}function R1(e,t){return e.liquid&&t.liquid}function JH(e,t){return t.maxHeight!=null||R1(e,t)}function eF(e,t,n,r){let{expandRows:o}=n;return typeof t.content=="function"?t.content(n):Z("table",{role:"presentation",className:[t.tableClassName,e.syncRowHeights?"fc-scrollgrid-sync-table":""].join(" "),style:{minWidth:n.tableMinWidth,width:n.clientWidth,height:o?n.clientHeight:""}},n.tableColGroupNode,Z(r?"thead":"tbody",{role:"presentation"},typeof t.rowContent=="function"?t.rowContent(n):t.rowContent))}function tF(e,t){return ti(e,t,Dr)}function nF(e,t){let n=[];for(let r of e){let o=r.span||1;for(let i=0;i<o;i+=1)n.push(Z("col",{style:{width:r.width==="shrink"?rF(t):r.width||"",minWidth:r.minWidth||""}}))}return Z("colgroup",{},...n)}function rF(e){return e??4}function oF(e){for(let t of e)if(t.width==="shrink")return!0;return!1}function iF(e,t){let n=["fc-scrollgrid",t.theme.getClass("table")];return e&&n.push("fc-scrollgrid-liquid"),n}function sF(e,t){let n=["fc-scrollgrid-section",`fc-scrollgrid-section-${e.type}`,e.className];return t&&e.liquid&&e.maxHeight==null&&n.push("fc-scrollgrid-section-liquid"),e.isSticky&&n.push("fc-scrollgrid-section-sticky"),n}function lg(e){return Z("div",{className:"fc-scrollgrid-sticky-shim",style:{width:e.clientWidth,minWidth:e.tableMinWidth}})}function ld(e){let{stickyHeaderDates:t}=e;return(t==null||t==="auto")&&(t=e.height==="auto"||e.viewHeight==="auto"),t}function T1(e){let{stickyFooterScrollbar:t}=e;return(t==null||t==="auto")&&(t=e.height==="auto"||e.viewHeight==="auto"),t}class xm extends ct{constructor(){super(...arguments),this.processCols=Le(t=>t,tF),this.renderMicroColGroup=Le(nF),this.scrollerRefs=new mo,this.scrollerElRefs=new mo(this._handleScrollerEl.bind(this)),this.state={shrinkWidth:null,forceYScrollbars:!1,scrollerClientWidths:{},scrollerClientHeights:{}},this.handleSizing=()=>{this.safeSetState(Object.assign({shrinkWidth:this.computeShrinkWidth()},this.computeScrollerDims()))}}render(){let{props:t,state:n,context:r}=this,o=t.sections||[],i=this.processCols(t.cols),s=this.renderMicroColGroup(i,n.shrinkWidth),l=iF(t.liquid,r);t.collapsibleWidth&&l.push("fc-scrollgrid-collapsible");let u=o.length,d=0,f,g=[],b=[],m=[];for(;d<u&&(f=o[d]).type==="header";)g.push(this.renderSection(f,s,!0)),d+=1;for(;d<u&&(f=o[d]).type==="body";)b.push(this.renderSection(f,s,!1)),d+=1;for(;d<u&&(f=o[d]).type==="footer";)m.push(this.renderSection(f,s,!0)),d+=1;let v=!f1();const p={role:"rowgroup"};return Z("table",{role:"grid",className:l.join(" "),style:{height:t.height}},!!(!v&&g.length)&&Z("thead",p,...g),!!(!v&&b.length)&&Z("tbody",p,...b),!!(!v&&m.length)&&Z("tfoot",p,...m),v&&Z("tbody",p,...g,...b,...m))}renderSection(t,n,r){return"outerContent"in t?Z(Ct,{key:t.key},t.outerContent):Z("tr",{key:t.key,role:"presentation",className:sF(t,this.props.liquid).join(" ")},this.renderChunkTd(t,n,t.chunk,r))}renderChunkTd(t,n,r,o){if("outerContent"in r)return r.outerContent;let{props:i}=this,{forceYScrollbars:s,scrollerClientWidths:l,scrollerClientHeights:u}=this.state,d=JH(i,t),f=R1(i,t),g=i.liquid?s?"scroll":d?"auto":"hidden":"visible",b=t.key,m=eF(t,r,{tableColGroupNode:n,tableMinWidth:"",clientWidth:!i.collapsibleWidth&&l[b]!==void 0?l[b]:null,clientHeight:u[b]!==void 0?u[b]:null,expandRows:t.expandRows,syncRowHeights:!1,rowSyncHeights:[],reportRowHeightChange:()=>{}},o);return Z(o?"th":"td",{ref:r.elRef,role:"presentation"},Z("div",{className:`fc-scroller-harness${f?" fc-scroller-harness-liquid":""}`},Z(ZH,{ref:this.scrollerRefs.createRef(b),elRef:this.scrollerElRefs.createRef(b),overflowY:g,overflowX:i.liquid?"hidden":"visible",maxHeight:t.maxHeight,liquid:f,liquidIsAbsolute:!0},m)))}_handleScrollerEl(t,n){let r=aF(this.props.sections,n);r&&Hr(r.chunk.scrollerElRef,t)}componentDidMount(){this.handleSizing(),this.context.addResizeHandler(this.handleSizing)}componentDidUpdate(){this.handleSizing()}componentWillUnmount(){this.context.removeResizeHandler(this.handleSizing)}computeShrinkWidth(){return oF(this.props.cols)?KH(this.scrollerElRefs.getAll()):0}computeScrollerDims(){let t=AH(),{scrollerRefs:n,scrollerElRefs:r}=this,o=!1,i={},s={};for(let l in n.currentMap){let u=n.currentMap[l];if(u&&u.needsYScrolling()){o=!0;break}}for(let l of this.props.sections){let u=l.key,d=r.currentMap[u];if(d){let f=d.parentNode;i[u]=Math.floor(f.getBoundingClientRect().width-(o?t.y:0)),s[u]=Math.floor(f.getBoundingClientRect().height)}}return{forceYScrollbars:o,scrollerClientWidths:i,scrollerClientHeights:s}}}xm.addStateEquality({scrollerClientWidths:Dr,scrollerClientHeights:Dr});function aF(e,t){for(let n of e)if(n.key===t)return n;return null}class Cm extends ct{constructor(){super(...arguments),this.buildPublicEvent=Le((t,n,r)=>new kt(t,n,r)),this.handleEl=t=>{this.el=t,Hr(this.props.elRef,t),t&&_w(t,this.props.seg)}}render(){const{props:t,context:n}=this,{options:r}=n,{seg:o}=t,{eventRange:i}=o,{ui:s}=i,l={event:this.buildPublicEvent(n,i.def,i.instance),view:n.viewApi,timeText:t.timeText,textColor:s.textColor,backgroundColor:s.backgroundColor,borderColor:s.borderColor,isDraggable:!t.disableDragging&&nH(o,n),isStartResizable:!t.disableResizing&&rH(o,n),isEndResizable:!t.disableResizing&&oH(o),isMirror:!!(t.isDragging||t.isResizing||t.isDateSelecting),isStart:!!o.isStart,isEnd:!!o.isEnd,isPast:!!t.isPast,isFuture:!!t.isFuture,isToday:!!t.isToday,isSelected:!!t.isSelected,isDragging:!!t.isDragging,isResizing:!!t.isResizing};return Z(Wn,{elRef:this.handleEl,elTag:t.elTag,elAttrs:t.elAttrs,elClasses:[...iH(l),...o.eventRange.ui.classNames,...t.elClasses||[]],elStyle:t.elStyle,renderProps:l,generatorName:"eventContent",customGenerator:r.eventContent,defaultGenerator:t.defaultGenerator,classNameGenerator:r.eventClassNames,didMount:r.eventDidMount,willUnmount:r.eventWillUnmount},t.children)}componentDidUpdate(t){this.el&&this.props.seg!==t.seg&&_w(this.el,this.props.seg)}}class Dm extends ct{render(){let{props:t,context:n}=this,{options:r}=n,{seg:o}=t,{ui:i}=o.eventRange,s=r.eventTimeFormat||t.defaultTimeFormat,l=a1(o,s,n,t.defaultDisplayEventTime,t.defaultDisplayEventEnd);return Z(Cm,Object.assign({},t,{elTag:"a",elStyle:{borderColor:i.borderColor,backgroundColor:i.backgroundColor},elAttrs:c1(o,n),defaultGenerator:lF,timeText:l}),(u,d)=>Z(Ct,null,Z(u,{elTag:"div",elClasses:["fc-event-main"],elStyle:{color:d.textColor}}),!!d.isStartResizable&&Z("div",{className:"fc-event-resizer fc-event-resizer-start"}),!!d.isEndResizable&&Z("div",{className:"fc-event-resizer fc-event-resizer-end"})))}}Dm.addPropsEquality({seg:Dr});function lF(e){return Z("div",{className:"fc-event-main-frame"},e.timeText&&Z("div",{className:"fc-event-time"},e.timeText),Z("div",{className:"fc-event-title-container"},Z("div",{className:"fc-event-title fc-sticky"},e.event.title||Z(Ct,null," "))))}const _m=e=>Z(Eo.Consumer,null,t=>{let{options:n}=t,r={isAxis:e.isAxis,date:t.dateEnv.toDate(e.date),view:t.viewApi};return Z(Wn,{elRef:e.elRef,elTag:e.elTag||"div",elAttrs:e.elAttrs,elClasses:e.elClasses,elStyle:e.elStyle,renderProps:r,generatorName:"nowIndicatorContent",customGenerator:n.nowIndicatorContent,classNameGenerator:n.nowIndicatorClassNames,didMount:n.nowIndicatorDidMount,willUnmount:n.nowIndicatorWillUnmount},e.children)}),cF=Pt({day:"numeric"});class Rm extends ct{constructor(){super(...arguments),this.refineRenderProps=Ou(uF)}render(){let{props:t,context:n}=this,{options:r}=n,o=this.refineRenderProps({date:t.date,dateProfile:t.dateProfile,todayRange:t.todayRange,isMonthStart:t.isMonthStart||!1,showDayNumber:t.showDayNumber,extraRenderProps:t.extraRenderProps,viewApi:n.viewApi,dateEnv:n.dateEnv,monthStartFormat:r.monthStartFormat});return Z(Wn,{elRef:t.elRef,elTag:t.elTag,elAttrs:Object.assign(Object.assign({},t.elAttrs),o.isDisabled?{}:{"data-date":om(t.date)}),elClasses:[...vm(o,n.theme),...t.elClasses||[]],elStyle:t.elStyle,renderProps:o,generatorName:"dayCellContent",customGenerator:r.dayCellContent,defaultGenerator:t.defaultGenerator,classNameGenerator:o.isDisabled?void 0:r.dayCellClassNames,didMount:r.dayCellDidMount,willUnmount:r.dayCellWillUnmount},t.children)}}function Tm(e){return!!(e.dayCellContent||ng("dayCellContent",e))}function uF(e){let{date:t,dateEnv:n,dateProfile:r,isMonthStart:o}=e,i=h1(t,e.todayRange,null,r),s=e.showDayNumber?n.format(t,o?e.monthStartFormat:cF):"";return Object.assign(Object.assign(Object.assign({date:n.toDate(t),view:e.viewApi},i),{isMonthStart:o,dayNumberText:s}),e.extraRenderProps)}class O1 extends ct{render(){let{props:t}=this,{seg:n}=t;return Z(Cm,{elTag:"div",elClasses:["fc-bg-event"],elStyle:{backgroundColor:n.eventRange.ui.backgroundColor},defaultGenerator:dF,seg:n,timeText:"",isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,isPast:t.isPast,isFuture:t.isFuture,isToday:t.isToday,disableDragging:!0,disableResizing:!0})}}function dF(e){let{title:t}=e.event;return t&&Z("div",{className:"fc-event-title"},e.event.title)}function A1(e){return Z("div",{className:`fc-${e}`})}const k1=e=>Z(Eo.Consumer,null,t=>{let{dateEnv:n,options:r}=t,{date:o}=e,i=r.weekNumberFormat||e.defaultFormat,s=n.computeWeekNumber(o),l=n.format(o,i),u={num:s,text:l,date:o};return Z(Wn,{elRef:e.elRef,elTag:e.elTag,elAttrs:e.elAttrs,elClasses:e.elClasses,elStyle:e.elStyle,renderProps:u,generatorName:"weekNumberContent",customGenerator:r.weekNumberContent,defaultGenerator:fF,classNameGenerator:r.weekNumberClassNames,didMount:r.weekNumberDidMount,willUnmount:r.weekNumberWillUnmount},e.children)});function fF(e){return e.text}const fh=10;class pF extends ct{constructor(){super(...arguments),this.state={titleId:Yd()},this.handleRootEl=t=>{this.rootEl=t,this.props.elRef&&Hr(this.props.elRef,t)},this.handleDocumentMouseDown=t=>{const n=IC(t);this.rootEl.contains(n)||this.handleCloseClick()},this.handleDocumentKeyDown=t=>{t.key==="Escape"&&this.handleCloseClick()},this.handleCloseClick=()=>{let{onClose:t}=this.props;t&&t()}}render(){let{theme:t,options:n}=this.context,{props:r,state:o}=this,i=["fc-popover",t.getClass("popover")].concat(r.extraClassNames||[]);return GB(Z("div",Object.assign({},r.extraAttrs,{id:r.id,className:i.join(" "),"aria-labelledby":o.titleId,ref:this.handleRootEl}),Z("div",{className:"fc-popover-header "+t.getClass("popoverHeader")},Z("span",{className:"fc-popover-title",id:o.titleId},r.title),Z("span",{className:"fc-popover-close "+t.getIconClass("close"),title:n.closeHint,onClick:this.handleCloseClick})),Z("div",{className:"fc-popover-body "+t.getClass("popoverContent")},r.children)),r.parentEl)}componentDidMount(){document.addEventListener("mousedown",this.handleDocumentMouseDown),document.addEventListener("keydown",this.handleDocumentKeyDown),this.updateSize()}componentWillUnmount(){document.removeEventListener("mousedown",this.handleDocumentMouseDown),document.removeEventListener("keydown",this.handleDocumentKeyDown)}updateSize(){let{isRtl:t}=this.context,{alignmentEl:n,alignGridTop:r}=this.props,{rootEl:o}=this,i=IH(n);if(i){let s=o.getBoundingClientRect(),l=r?on(n,".fc-scrollgrid").getBoundingClientRect().top:i.top,u=t?i.right-s.width:i.left;l=Math.max(l,fh),u=Math.min(u,document.documentElement.clientWidth-fh-s.width),u=Math.max(u,fh);let d=o.offsetParent.getBoundingClientRect();yl(o,{top:l-d.top,left:u-d.left})}}}class hF extends Ur{constructor(){super(...arguments),this.handleRootEl=t=>{this.rootEl=t,t?this.context.registerInteractiveComponent(this,{el:t,useEventCenter:!1}):this.context.unregisterInteractiveComponent(this)}}render(){let{options:t,dateEnv:n}=this.context,{props:r}=this,{startDate:o,todayRange:i,dateProfile:s}=r,l=n.format(o,t.dayPopoverFormat);return Z(Rm,{elRef:this.handleRootEl,date:o,dateProfile:s,todayRange:i},(u,d,f)=>Z(pF,{elRef:f.ref,id:r.id,title:l,extraClassNames:["fc-more-popover"].concat(f.className||[]),extraAttrs:f,parentEl:r.parentEl,alignmentEl:r.alignmentEl,alignGridTop:r.alignGridTop,onClose:r.onClose},Tm(t)&&Z(u,{elTag:"div",elClasses:["fc-more-popover-misc"]}),r.children))}queryHit(t,n,r,o){let{rootEl:i,props:s}=this;return t>=0&&t<r&&n>=0&&n<o?{dateProfile:s.dateProfile,dateSpan:Object.assign({allDay:!s.forceTimed,range:{start:s.startDate,end:s.endDate}},s.extraDateSpan),dayEl:i,rect:{left:0,top:0,right:r,bottom:o},layer:1}:null}}class M1 extends ct{constructor(){super(...arguments),this.state={isPopoverOpen:!1,popoverId:Yd()},this.handleLinkEl=t=>{this.linkEl=t,this.props.elRef&&Hr(this.props.elRef,t)},this.handleClick=t=>{let{props:n,context:r}=this,{moreLinkClick:o}=r.options,i=Tw(n).start;function s(l){let{def:u,instance:d,range:f}=l.eventRange;return{event:new kt(r,u,d),start:r.dateEnv.toDate(f.start),end:r.dateEnv.toDate(f.end),isStart:l.isStart,isEnd:l.isEnd}}typeof o=="function"&&(o=o({date:i,allDay:!!n.allDayDate,allSegs:n.allSegs.map(s),hiddenSegs:n.hiddenSegs.map(s),jsEvent:t,view:r.viewApi})),!o||o==="popover"?this.setState({isPopoverOpen:!0}):typeof o=="string"&&r.calendarApi.zoomTo(i,o)},this.handlePopoverClose=()=>{this.setState({isPopoverOpen:!1})}}render(){let{props:t,state:n}=this;return Z(Eo.Consumer,null,r=>{let{viewApi:o,options:i,calendarApi:s}=r,{moreLinkText:l}=i,{moreCnt:u}=t,d=Tw(t),f=typeof l=="function"?l.call(s,u):`+${u} ${l}`,g=vl(i.moreLinkHint,[u],f),b={num:u,shortText:`+${u}`,text:f,view:o};return Z(Ct,null,!!t.moreCnt&&Z(Wn,{elTag:t.elTag||"a",elRef:this.handleLinkEl,elClasses:[...t.elClasses||[],"fc-more-link"],elStyle:t.elStyle,elAttrs:Object.assign(Object.assign(Object.assign({},t.elAttrs),jC(this.handleClick)),{title:g,"aria-expanded":n.isPopoverOpen,"aria-controls":n.isPopoverOpen?n.popoverId:""}),renderProps:b,generatorName:"moreLinkContent",customGenerator:i.moreLinkContent,defaultGenerator:t.defaultGenerator||gF,classNameGenerator:i.moreLinkClassNames,didMount:i.moreLinkDidMount,willUnmount:i.moreLinkWillUnmount},t.children),n.isPopoverOpen&&Z(hF,{id:n.popoverId,startDate:d.start,endDate:d.end,dateProfile:t.dateProfile,todayRange:t.todayRange,extraDateSpan:t.extraDateSpan,parentEl:this.parentEl,alignmentEl:t.alignmentElRef?t.alignmentElRef.current:this.linkEl,alignGridTop:t.alignGridTop,forceTimed:t.forceTimed,onClose:this.handlePopoverClose},t.popoverContent()))})}componentDidMount(){this.updateParentEl()}componentDidUpdate(){this.updateParentEl()}updateParentEl(){this.linkEl&&(this.parentEl=on(this.linkEl,".fc-view-harness"))}}function gF(e){return e.text}function Tw(e){if(e.allDayDate)return{start:e.allDayDate,end:Zt(e.allDayDate,1)};let{hiddenSegs:t}=e;return{start:P1(t),end:yF(t)}}function P1(e){return e.reduce(mF).eventRange.range.start}function mF(e,t){return e.eventRange.range.start<t.eventRange.range.start?e:t}function yF(e){return e.reduce(vF).eventRange.range.end}function vF(e,t){return e.eventRange.range.end>t.eventRange.range.end?e:t}class bF{constructor(){this.handlers=[]}set(t){this.currentValue=t;for(let n of this.handlers)n(t)}subscribe(t){this.handlers.push(t),this.currentValue!==void 0&&t(this.currentValue)}}class wF extends bF{constructor(){super(...arguments),this.map=new Map}handle(t){const{map:n}=this;let r=!1;t.isActive?(n.set(t.id,t),r=!0):n.has(t.id)&&(n.delete(t.id),r=!0),r&&this.set(n)}}const SF=[],I1={code:"en",week:{dow:0,doy:4},direction:"ltr",buttonText:{prev:"prev",next:"next",prevYear:"prev year",nextYear:"next year",year:"year",today:"today",month:"month",week:"week",day:"day",list:"list"},weekText:"W",weekTextLong:"Week",closeHint:"Close",timeHint:"Time",eventHint:"Event",allDayText:"all-day",moreLinkText:"more",noEventsText:"No events to display"},N1=Object.assign(Object.assign({},I1),{buttonHints:{prev:"Previous $0",next:"Next $0",today(e,t){return t==="day"?"Today":`This ${e}`}},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint(e){return`Show ${e} more event${e===1?"":"s"}`}});function EF(e){let t=e.length>0?e[0].code:"en",n=SF.concat(e),r={en:N1};for(let o of n)r[o.code]=o;return{map:r,defaultCode:t}}function j1(e,t){return typeof e=="object"&&!Array.isArray(e)?$1(e.code,[e.code],e):xF(e,t)}function xF(e,t){let n=[].concat(e||[]),r=CF(n,t)||N1;return $1(e,n,r)}function CF(e,t){for(let n=0;n<e.length;n+=1){let r=e[n].toLocaleLowerCase().split("-");for(let o=r.length;o>0;o-=1){let i=r.slice(0,o).join("-");if(t[i])return t[i]}}return null}function $1(e,t,n){let r=am([I1,n],["buttonText"]);delete r.code;let{week:o}=r;return delete r.week,{codeArg:e,codes:t,week:o,simpleNumberFormat:new Intl.NumberFormat(e),options:r}}function xo(e){return{id:ns(),name:e.name,premiumReleaseDate:e.premiumReleaseDate?new Date(e.premiumReleaseDate):void 0,deps:e.deps||[],reducers:e.reducers||[],isLoadingFuncs:e.isLoadingFuncs||[],contextInit:[].concat(e.contextInit||[]),eventRefiners:e.eventRefiners||{},eventDefMemberAdders:e.eventDefMemberAdders||[],eventSourceRefiners:e.eventSourceRefiners||{},isDraggableTransformers:e.isDraggableTransformers||[],eventDragMutationMassagers:e.eventDragMutationMassagers||[],eventDefMutationAppliers:e.eventDefMutationAppliers||[],dateSelectionTransformers:e.dateSelectionTransformers||[],datePointTransforms:e.datePointTransforms||[],dateSpanTransforms:e.dateSpanTransforms||[],views:e.views||{},viewPropsTransformers:e.viewPropsTransformers||[],isPropsValid:e.isPropsValid||null,externalDefTransforms:e.externalDefTransforms||[],viewContainerAppends:e.viewContainerAppends||[],eventDropTransformers:e.eventDropTransformers||[],componentInteractions:e.componentInteractions||[],calendarInteractions:e.calendarInteractions||[],themeClasses:e.themeClasses||{},eventSourceDefs:e.eventSourceDefs||[],cmdFormatter:e.cmdFormatter,recurringTypes:e.recurringTypes||[],namedTimeZonedImpl:e.namedTimeZonedImpl,initialView:e.initialView||"",elementDraggingImpl:e.elementDraggingImpl,optionChangeHandlers:e.optionChangeHandlers||{},scrollGridImpl:e.scrollGridImpl||null,listenerRefiners:e.listenerRefiners||{},optionRefiners:e.optionRefiners||{},propSetHandlers:e.propSetHandlers||{}}}function DF(e,t){let n={},r={premiumReleaseDate:void 0,reducers:[],isLoadingFuncs:[],contextInit:[],eventRefiners:{},eventDefMemberAdders:[],eventSourceRefiners:{},isDraggableTransformers:[],eventDragMutationMassagers:[],eventDefMutationAppliers:[],dateSelectionTransformers:[],datePointTransforms:[],dateSpanTransforms:[],views:{},viewPropsTransformers:[],isPropsValid:null,externalDefTransforms:[],viewContainerAppends:[],eventDropTransformers:[],componentInteractions:[],calendarInteractions:[],themeClasses:{},eventSourceDefs:[],cmdFormatter:null,recurringTypes:[],namedTimeZonedImpl:null,initialView:"",elementDraggingImpl:null,optionChangeHandlers:{},scrollGridImpl:null,listenerRefiners:{},optionRefiners:{},propSetHandlers:{}};function o(i){for(let s of i){const l=s.name,u=n[l];u===void 0?(n[l]=s.id,o(s.deps),r=RF(r,s)):u!==s.id&&console.warn(`Duplicate plugin '${l}'`)}}return e&&o(e),o(t),r}function _F(){let e=[],t=[],n;return(r,o)=>((!n||!ti(r,e)||!ti(o,t))&&(n=DF(r,o)),e=r,t=o,n)}function RF(e,t){return{premiumReleaseDate:TF(e.premiumReleaseDate,t.premiumReleaseDate),reducers:e.reducers.concat(t.reducers),isLoadingFuncs:e.isLoadingFuncs.concat(t.isLoadingFuncs),contextInit:e.contextInit.concat(t.contextInit),eventRefiners:Object.assign(Object.assign({},e.eventRefiners),t.eventRefiners),eventDefMemberAdders:e.eventDefMemberAdders.concat(t.eventDefMemberAdders),eventSourceRefiners:Object.assign(Object.assign({},e.eventSourceRefiners),t.eventSourceRefiners),isDraggableTransformers:e.isDraggableTransformers.concat(t.isDraggableTransformers),eventDragMutationMassagers:e.eventDragMutationMassagers.concat(t.eventDragMutationMassagers),eventDefMutationAppliers:e.eventDefMutationAppliers.concat(t.eventDefMutationAppliers),dateSelectionTransformers:e.dateSelectionTransformers.concat(t.dateSelectionTransformers),datePointTransforms:e.datePointTransforms.concat(t.datePointTransforms),dateSpanTransforms:e.dateSpanTransforms.concat(t.dateSpanTransforms),views:Object.assign(Object.assign({},e.views),t.views),viewPropsTransformers:e.viewPropsTransformers.concat(t.viewPropsTransformers),isPropsValid:t.isPropsValid||e.isPropsValid,externalDefTransforms:e.externalDefTransforms.concat(t.externalDefTransforms),viewContainerAppends:e.viewContainerAppends.concat(t.viewContainerAppends),eventDropTransformers:e.eventDropTransformers.concat(t.eventDropTransformers),calendarInteractions:e.calendarInteractions.concat(t.calendarInteractions),componentInteractions:e.componentInteractions.concat(t.componentInteractions),themeClasses:Object.assign(Object.assign({},e.themeClasses),t.themeClasses),eventSourceDefs:e.eventSourceDefs.concat(t.eventSourceDefs),cmdFormatter:t.cmdFormatter||e.cmdFormatter,recurringTypes:e.recurringTypes.concat(t.recurringTypes),namedTimeZonedImpl:t.namedTimeZonedImpl||e.namedTimeZonedImpl,initialView:e.initialView||t.initialView,elementDraggingImpl:e.elementDraggingImpl||t.elementDraggingImpl,optionChangeHandlers:Object.assign(Object.assign({},e.optionChangeHandlers),t.optionChangeHandlers),scrollGridImpl:t.scrollGridImpl||e.scrollGridImpl,listenerRefiners:Object.assign(Object.assign({},e.listenerRefiners),t.listenerRefiners),optionRefiners:Object.assign(Object.assign({},e.optionRefiners),t.optionRefiners),propSetHandlers:Object.assign(Object.assign({},e.propSetHandlers),t.propSetHandlers)}}function TF(e,t){return e===void 0?t:t===void 0?e:new Date(Math.max(e.valueOf(),t.valueOf()))}class ii extends Hl{}ii.prototype.classes={root:"fc-theme-standard",tableCellShaded:"fc-cell-shaded",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active"};ii.prototype.baseIconClass="fc-icon";ii.prototype.iconClasses={close:"fc-icon-x",prev:"fc-icon-chevron-left",next:"fc-icon-chevron-right",prevYear:"fc-icon-chevrons-left",nextYear:"fc-icon-chevrons-right"};ii.prototype.rtlIconClasses={prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"};ii.prototype.iconOverrideOption="buttonIcons";ii.prototype.iconOverrideCustomButtonOption="icon";ii.prototype.iconOverridePrefix="fc-icon-";function OF(e,t){let n={},r;for(r in e)cg(r,n,e,t);for(r in t)cg(r,n,e,t);return n}function cg(e,t,n,r){if(t[e])return t[e];let o=AF(e,t,n,r);return o&&(t[e]=o),o}function AF(e,t,n,r){let o=n[e],i=r[e],s=f=>o&&o[f]!==null?o[f]:i&&i[f]!==null?i[f]:null,l=s("component"),u=s("superType"),d=null;if(u){if(u===e)throw new Error("Can't have a custom view type that references itself");d=cg(u,t,n,r)}return!l&&d&&(l=d.component),l?{type:e,component:l,defaults:Object.assign(Object.assign({},d?d.defaults:{}),o?o.rawOptions:{}),overrides:Object.assign(Object.assign({},d?d.overrides:{}),i?i.rawOptions:{})}:null}function Ow(e){return bo(e,kF)}function kF(e){let t=typeof e=="function"?{component:e}:e,{component:n}=t;return t.content?n=Aw(t):n&&!(n.prototype instanceof ct)&&(n=Aw(Object.assign(Object.assign({},t),{content:n}))),{superType:t.type,component:n,rawOptions:t}}function Aw(e){return t=>Z(Eo.Consumer,null,n=>Z(Wn,{elTag:"div",elClasses:WC(n.viewSpec),renderProps:Object.assign(Object.assign({},t),{nextDayThreshold:n.options.nextDayThreshold}),generatorName:void 0,customGenerator:e.content,classNameGenerator:e.classNames,didMount:e.didMount,willUnmount:e.willUnmount}))}function MF(e,t,n,r){let o=Ow(e),i=Ow(t.views),s=OF(o,i);return bo(s,l=>PF(l,i,t,n,r))}function PF(e,t,n,r,o){let i=e.overrides.duration||e.defaults.duration||r.duration||n.duration,s=null,l="",u="",d={};if(i&&(s=IF(i),s)){let b=tg(s);l=b.unit,b.value===1&&(u=l,d=t[l]?t[l].rawOptions:{})}let f=b=>{let m=b.buttonText||{},v=e.defaults.buttonTextKey;return v!=null&&m[v]!=null?m[v]:m[e.type]!=null?m[e.type]:m[u]!=null?m[u]:null},g=b=>{let m=b.buttonHints||{},v=e.defaults.buttonTextKey;return v!=null&&m[v]!=null?m[v]:m[e.type]!=null?m[e.type]:m[u]!=null?m[u]:null};return{type:e.type,component:e.component,duration:s,durationUnit:l,singleUnit:u,optionDefaults:e.defaults,optionOverrides:Object.assign(Object.assign({},d),e.overrides),buttonTextOverride:f(r)||f(n)||e.overrides.buttonText,buttonTextDefault:f(o)||e.defaults.buttonText||f(bl)||e.type,buttonTitleOverride:g(r)||g(n)||e.overrides.buttonHint,buttonTitleDefault:g(o)||e.defaults.buttonHint||g(bl)}}let kw={};function IF(e){let t=JSON.stringify(e),n=kw[t];return n===void 0&&(n=tt(e),kw[t]=n),n}function NF(e,t){switch(t.type){case"CHANGE_VIEW_TYPE":e=t.viewType}return e}function jF(e,t){switch(t.type){case"CHANGE_DATE":return t.dateMarker;default:return e}}function $F(e,t,n){let r=e.initialDate;return r!=null?t.createMarker(r):n.getDateMarker()}function zF(e,t){switch(t.type){case"SET_OPTION":return Object.assign(Object.assign({},e),{[t.optionName]:t.rawOptionValue});default:return e}}function LF(e,t,n,r){let o;switch(t.type){case"CHANGE_VIEW_TYPE":return r.build(t.dateMarker||n);case"CHANGE_DATE":return r.build(t.dateMarker);case"PREV":if(o=r.buildPrev(e,n),o.isValid)return o;break;case"NEXT":if(o=r.buildNext(e,n),o.isValid)return o;break}return e}function BF(e,t,n){let r=t?t.activeRange:null;return L1({},GF(e,n),r,n)}function VF(e,t,n,r){let o=n?n.activeRange:null;switch(t.type){case"ADD_EVENT_SOURCES":return L1(e,t.sources,o,r);case"REMOVE_EVENT_SOURCE":return FF(e,t.sourceId);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return n?B1(e,o,r):e;case"FETCH_EVENT_SOURCES":return Om(e,t.sourceIds?BC(t.sourceIds):V1(e,r),o,t.isRefetch||!1,r);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return YF(e,t.sourceId,t.fetchId,t.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return e}}function HF(e,t,n){let r=t?t.activeRange:null;return Om(e,V1(e,n),r,!0,n)}function z1(e){for(let t in e)if(e[t].isFetching)return!0;return!1}function L1(e,t,n,r){let o={};for(let i of t)o[i.sourceId]=i;return n&&(o=B1(o,n,r)),Object.assign(Object.assign({},e),o)}function FF(e,t){return Xi(e,n=>n.sourceId!==t)}function B1(e,t,n){return Om(e,Xi(e,r=>UF(r,t,n)),t,!1,n)}function UF(e,t,n){return H1(e,n)?!n.options.lazyFetching||!e.fetchRange||e.isFetching||t.start<e.fetchRange.start||t.end>e.fetchRange.end:!e.latestFetchId}function Om(e,t,n,r,o){let i={};for(let s in e){let l=e[s];t[s]?i[s]=WF(l,n,r,o):i[s]=l}return i}function WF(e,t,n,r){let{options:o,calendarApi:i}=r,s=r.pluginHooks.eventSourceDefs[e.sourceDefId],l=ns();return s.fetch({eventSource:e,range:t,isRefetch:n,context:r},u=>{let{rawEvents:d}=u;o.eventSourceSuccess&&(d=o.eventSourceSuccess.call(i,d,u.response)||d),e.success&&(d=e.success.call(i,d,u.response)||d),r.dispatch({type:"RECEIVE_EVENTS",sourceId:e.sourceId,fetchId:l,fetchRange:t,rawEvents:d})},u=>{let d=!1;o.eventSourceFailure&&(o.eventSourceFailure.call(i,u),d=!0),e.failure&&(e.failure(u),d=!0),d||console.warn(u.message,u),r.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:e.sourceId,fetchId:l,fetchRange:t,error:u})}),Object.assign(Object.assign({},e),{isFetching:!0,latestFetchId:l})}function YF(e,t,n,r){let o=e[t];return o&&n===o.latestFetchId?Object.assign(Object.assign({},e),{[t]:Object.assign(Object.assign({},o),{isFetching:!1,fetchRange:r})}):e}function V1(e,t){return Xi(e,n=>H1(n,t))}function GF(e,t){let n=e1(t),r=[].concat(e.eventSources||[]),o=[];e.initialEvents&&r.unshift(e.initialEvents),e.events&&r.unshift(e.events);for(let i of r){let s=JC(i,t,n);s&&o.push(s)}return o}function H1(e,t){return!t.pluginHooks.eventSourceDefs[e.sourceDefId].ignoreRange}function qF(e,t){switch(t.type){case"UNSELECT_DATES":return null;case"SELECT_DATES":return t.selection;default:return e}}function XF(e,t){switch(t.type){case"UNSELECT_EVENT":return"";case"SELECT_EVENT":return t.eventInstanceId;default:return e}}function QF(e,t){let n;switch(t.type){case"UNSET_EVENT_DRAG":return null;case"SET_EVENT_DRAG":return n=t.state,{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return e}}function ZF(e,t){let n;switch(t.type){case"UNSET_EVENT_RESIZE":return null;case"SET_EVENT_RESIZE":return n=t.state,{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return e}}function KF(e,t,n,r,o){let i=e.headerToolbar?Mw(e.headerToolbar,e,t,n,r,o):null,s=e.footerToolbar?Mw(e.footerToolbar,e,t,n,r,o):null;return{header:i,footer:s}}function Mw(e,t,n,r,o,i){let s={},l=[],u=!1;for(let d in e){let f=e[d],g=JF(f,t,n,r,o,i);s[d]=g.widgets,l.push(...g.viewsWithButtons),u=u||g.hasTitle}return{sectionWidgets:s,viewsWithButtons:l,hasTitle:u}}function JF(e,t,n,r,o,i){let s=t.direction==="rtl",l=t.customButtons||{},u=n.buttonText||{},d=t.buttonText||{},f=n.buttonHints||{},g=t.buttonHints||{},b=e?e.split(" "):[],m=[],v=!1;return{widgets:b.map(y=>y.split(",").map(S=>{if(S==="title")return v=!0,{buttonName:S};let E,D,R,C,T,O;if(E=l[S])R=P=>{E.click&&E.click.call(P.target,P,P.target)},(C=r.getCustomButtonIconClass(E))||(C=r.getIconClass(S,s))||(T=E.text),O=E.hint||E.text;else if(D=o[S]){m.push(S),R=()=>{i.changeView(S)},(T=D.buttonTextOverride)||(C=r.getIconClass(S,s))||(T=D.buttonTextDefault);let P=D.buttonTextOverride||D.buttonTextDefault;O=vl(D.buttonTitleOverride||D.buttonTitleDefault||t.viewHint,[P,S],P)}else if(i[S])if(R=()=>{i[S]()},(T=u[S])||(C=r.getIconClass(S,s))||(T=d[S]),S==="prevYear"||S==="nextYear"){let P=S==="prevYear"?"prev":"next";O=vl(f[P]||g[P],[d.year||"year","year"],d[S])}else O=P=>vl(f[S]||g[S],[d[P]||P,P],d[S]);return{buttonName:S,buttonClick:R,buttonIcon:C,buttonText:T,buttonHint:O}})),viewsWithButtons:m,hasTitle:v}}class eU{constructor(t,n,r){this.type=t,this.getCurrentData=n,this.dateEnv=r}get calendar(){return this.getCurrentData().calendarApi}get title(){return this.getCurrentData().viewTitle}get activeStart(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.start)}get activeEnd(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.end)}get currentStart(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.start)}get currentEnd(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.end)}getOption(t){return this.getCurrentData().options[t]}}let tU={ignoreRange:!0,parseMeta(e){return Array.isArray(e.events)?e.events:null},fetch(e,t){t({rawEvents:e.eventSource.meta})}};const nU=xo({name:"array-event-source",eventSourceDefs:[tU]});let rU={parseMeta(e){return typeof e.events=="function"?e.events:null},fetch(e,t,n){const{dateEnv:r}=e.context,o=e.eventSource.meta;pH(o.bind(null,u1(e.range,r)),i=>t({rawEvents:i}),n)}};const oU=xo({name:"func-event-source",eventSourceDefs:[rU]}),iU={method:String,extraParams:ce,startParam:String,endParam:String,timeZoneParam:String};let sU={parseMeta(e){return e.url&&(e.format==="json"||!e.format)?{url:e.url,format:"json",method:(e.method||"GET").toUpperCase(),extraParams:e.extraParams,startParam:e.startParam,endParam:e.endParam,timeZoneParam:e.timeZoneParam}:null},fetch(e,t,n){const{meta:r}=e.eventSource,o=lU(r,e.range,e.context);hH(r.method,r.url,o).then(([i,s])=>{t({rawEvents:i,response:s})},n)}};const aU=xo({name:"json-event-source",eventSourceRefiners:iU,eventSourceDefs:[sU]});function lU(e,t,n){let{dateEnv:r,options:o}=n,i,s,l,u,d={};return i=e.startParam,i==null&&(i=o.startParam),s=e.endParam,s==null&&(s=o.endParam),l=e.timeZoneParam,l==null&&(l=o.timeZoneParam),typeof e.extraParams=="function"?u=e.extraParams():u=e.extraParams||{},Object.assign(d,u),d[i]=r.formatIso(t.start),d[s]=r.formatIso(t.end),r.timeZone!=="local"&&(d[l]=r.timeZone),d}const cU={daysOfWeek:ce,startTime:tt,endTime:tt,duration:tt,startRecur:ce,endRecur:ce};let uU={parse(e,t){if(e.daysOfWeek||e.startTime||e.endTime||e.startRecur||e.endRecur){let n={daysOfWeek:e.daysOfWeek||null,startTime:e.startTime||null,endTime:e.endTime||null,startRecur:e.startRecur?t.createMarker(e.startRecur):null,endRecur:e.endRecur?t.createMarker(e.endRecur):null,dateEnv:t},r;return e.duration&&(r=e.duration),!r&&e.startTime&&e.endTime&&(r=DV(e.endTime,e.startTime)),{allDayGuess:!e.startTime&&!e.endTime,duration:r,typeData:n}}return null},expand(e,t,n){let r=Qi(t,{start:e.startRecur,end:e.endRecur});return r?fU(e.daysOfWeek,e.startTime,e.dateEnv,n,r):[]}};const dU=xo({name:"simple-recurring-event",recurringTypes:[uU],eventRefiners:cU});function fU(e,t,n,r,o){let i=e?BC(e):null,s=Dt(o.start),l=o.end,u=[];for(t&&(t.milliseconds<0?l=Zt(l,1):t.milliseconds>=1e3*60*60*24&&(s=Zt(s,-1)));s<l;){let d;(!i||i[s.getUTCDay()])&&(t?d=r.add(s,t):d=s,u.push(r.createMarker(n.toDate(d)))),s=Zt(s,1)}return u}const pU=xo({name:"change-handler",optionChangeHandlers:{events(e,t){Pw([e],t)},eventSources:Pw}});function Pw(e,t){let n=lm(t.getCurrentData().eventSources);if(n.length===1&&e.length===1&&Array.isArray(n[0]._raw)&&Array.isArray(e[0])){t.dispatch({type:"RESET_RAW_EVENTS",sourceId:n[0].sourceId,rawEvents:e[0]});return}let r=[];for(let o of e){let i=!1;for(let s=0;s<n.length;s+=1)if(n[s]._raw===o){n.splice(s,1),i=!0;break}i||r.push(o)}for(let o of n)t.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:o.sourceId});for(let o of r)t.calendarApi.addEventSource(o)}function hU(e,t){t.emitter.trigger("datesSet",Object.assign(Object.assign({},u1(e.activeRange,t.dateEnv)),{view:t.viewApi}))}function gU(e,t){let{emitter:n}=t;n.hasHandlers("eventsSet")&&n.trigger("eventsSet",Hi(e,t))}const mU=[nU,oU,aU,dU,pU,xo({name:"misc",isLoadingFuncs:[e=>z1(e.eventSources)],propSetHandlers:{dateProfile:hU,eventStore:gU}})];class yU{constructor(t,n){this.runTaskOption=t,this.drainedOption=n,this.queue=[],this.delayedRunner=new Jg(this.drain.bind(this))}request(t,n){this.queue.push(t),this.delayedRunner.request(n)}pause(t){this.delayedRunner.pause(t)}resume(t,n){this.delayedRunner.resume(t,n)}drain(){let{queue:t}=this;for(;t.length;){let n=[],r;for(;r=t.shift();)this.runTask(r),n.push(r);this.drained(n)}}runTask(t){this.runTaskOption&&this.runTaskOption(t)}drained(t){this.drainedOption&&this.drainedOption(t)}}function vU(e,t,n){let r;return/^(year|month)$/.test(e.currentRangeUnit)?r=e.currentRange:r=e.activeRange,n.formatRange(r.start,r.end,Pt(t.titleFormat||bU(e)),{isEndExclusive:e.isRangeAllDay,defaultSeparator:t.titleRangeSeparator})}function bU(e){let{currentRangeUnit:t}=e;if(t==="year")return{year:"numeric"};if(t==="month")return{year:"numeric",month:"long"};let n=Ku(e.currentRange.start,e.currentRange.end);return n!==null&&n>1?{year:"numeric",month:"short",day:"numeric"}:{year:"numeric",month:"long",day:"numeric"}}class Iw{constructor(){this.resetListeners=new Set}handleInput(t,n){const r=this.dateEnv;if(t!==r&&(typeof n=="function"?this.nowFn=n:r||(this.nowAnchorDate=t.toDate(n?t.createMarker(n):t.createNowMarker()),this.nowAnchorQueried=Date.now()),this.dateEnv=t,r))for(const o of this.resetListeners.values())o()}getDateMarker(){return this.nowAnchorDate?this.dateEnv.timestampToMarker(this.nowAnchorDate.valueOf()+(Date.now()-this.nowAnchorQueried)):this.dateEnv.createMarker(this.nowFn())}addResetListener(t){this.resetListeners.add(t)}removeResetListener(t){this.resetListeners.delete(t)}}class wU{constructor(t){this.computeCurrentViewData=Le(this._computeCurrentViewData),this.organizeRawLocales=Le(EF),this.buildLocale=Le(j1),this.buildPluginHooks=_F(),this.buildDateEnv=Le(SU),this.buildTheme=Le(EU),this.parseToolbars=Le(KF),this.buildViewSpecs=Le(MF),this.buildDateProfileGenerator=Ou(xU),this.buildViewApi=Le(CU),this.buildViewUiProps=Ou(RU),this.buildEventUiBySource=Le(DU,Dr),this.buildEventUiBases=Le(_U),this.parseContextBusinessHours=Ou(TU),this.buildTitle=Le(vU),this.nowManager=new Iw,this.emitter=new Qd,this.actionRunner=new yU(this._handleAction.bind(this),this.updateData.bind(this)),this.currentCalendarOptionsInput={},this.currentCalendarOptionsRefined={},this.currentViewOptionsInput={},this.currentViewOptionsRefined={},this.currentCalendarOptionsRefiners={},this.optionsForRefining=[],this.optionsForHandling=[],this.getCurrentData=()=>this.data,this.dispatch=b=>{this.actionRunner.request(b)},this.props=t,this.actionRunner.pause(),this.nowManager=new Iw;let n={},r=this.computeOptionsData(t.optionOverrides,n,t.calendarApi),o=r.calendarOptions.initialView||r.pluginHooks.initialView,i=this.computeCurrentViewData(o,r,t.optionOverrides,n);t.calendarApi.currentDataManager=this,this.emitter.setThisContext(t.calendarApi),this.emitter.setOptions(i.options);let s={nowManager:this.nowManager,dateEnv:r.dateEnv,options:r.calendarOptions,pluginHooks:r.pluginHooks,calendarApi:t.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},l=$F(r.calendarOptions,r.dateEnv,this.nowManager),u=i.dateProfileGenerator.build(l);yo(u.activeRange,l)||(l=u.currentRange.start);for(let b of r.pluginHooks.contextInit)b(s);let d=BF(r.calendarOptions,u,s),f={dynamicOptionOverrides:n,currentViewType:o,currentDate:l,dateProfile:u,businessHours:this.parseContextBusinessHours(s),eventSources:d,eventUiBases:{},eventStore:Bn(),renderableEventStore:Bn(),dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null,selectionConfig:this.buildViewUiProps(s).selectionConfig},g=Object.assign(Object.assign({},s),f);for(let b of r.pluginHooks.reducers)Object.assign(f,b(null,null,g));ph(f,s)&&this.emitter.trigger("loading",!0),this.state=f,this.updateData(),this.actionRunner.resume()}resetOptions(t,n){let{props:r}=this;n===void 0?r.optionOverrides=t:(r.optionOverrides=Object.assign(Object.assign({},r.optionOverrides||{}),t),this.optionsForRefining.push(...n)),(n===void 0||n.length)&&this.actionRunner.request({type:"NOTHING"})}_handleAction(t){let{props:n,state:r,emitter:o}=this,i=zF(r.dynamicOptionOverrides,t),s=this.computeOptionsData(n.optionOverrides,i,n.calendarApi),l=NF(r.currentViewType,t),u=this.computeCurrentViewData(l,s,n.optionOverrides,i);n.calendarApi.currentDataManager=this,o.setThisContext(n.calendarApi),o.setOptions(u.options);let d={nowManager:this.nowManager,dateEnv:s.dateEnv,options:s.calendarOptions,pluginHooks:s.pluginHooks,calendarApi:n.calendarApi,dispatch:this.dispatch,emitter:o,getCurrentData:this.getCurrentData},{currentDate:f,dateProfile:g}=r;this.data&&this.data.dateProfileGenerator!==u.dateProfileGenerator&&(g=u.dateProfileGenerator.build(f)),f=jF(f,t),g=LF(g,t,f,u.dateProfileGenerator),(t.type==="PREV"||t.type==="NEXT"||!yo(g.currentRange,f))&&(f=g.currentRange.start);let b=VF(r.eventSources,t,g,d),m=B5(r.eventStore,t,b,g,d),p=z1(b)&&!u.options.progressiveEventRendering&&r.renderableEventStore||m,{eventUiSingleBase:y,selectionConfig:S}=this.buildViewUiProps(d),E=this.buildEventUiBySource(b),D=this.buildEventUiBases(p.defs,y,E),R={dynamicOptionOverrides:i,currentViewType:l,currentDate:f,dateProfile:g,eventSources:b,eventStore:m,renderableEventStore:p,selectionConfig:S,eventUiBases:D,businessHours:this.parseContextBusinessHours(d),dateSelection:qF(r.dateSelection,t),eventSelection:XF(r.eventSelection,t),eventDrag:QF(r.eventDrag,t),eventResize:ZF(r.eventResize,t)},C=Object.assign(Object.assign({},d),R);for(let P of s.pluginHooks.reducers)Object.assign(R,P(r,t,C));let T=ph(r,d),O=ph(R,d);!T&&O?o.trigger("loading",!0):T&&!O&&o.trigger("loading",!1),this.state=R,n.onAction&&n.onAction(t)}updateData(){let{props:t,state:n}=this,r=this.data,o=this.computeOptionsData(t.optionOverrides,n.dynamicOptionOverrides,t.calendarApi),i=this.computeCurrentViewData(n.currentViewType,o,t.optionOverrides,n.dynamicOptionOverrides),s=this.data=Object.assign(Object.assign(Object.assign({nowManager:this.nowManager,viewTitle:this.buildTitle(n.dateProfile,i.options,o.dateEnv),calendarApi:t.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},o),i),n),l=o.pluginHooks.optionChangeHandlers,u=r&&r.calendarOptions,d=o.calendarOptions;if(u&&u!==d){u.timeZone!==d.timeZone&&(n.eventSources=s.eventSources=HF(s.eventSources,n.dateProfile,s),n.eventStore=s.eventStore=xw(s.eventStore,r.dateEnv,s.dateEnv),n.renderableEventStore=s.renderableEventStore=xw(s.renderableEventStore,r.dateEnv,s.dateEnv));for(let f in l)(this.optionsForHandling.indexOf(f)!==-1||u[f]!==d[f])&&l[f](d[f],s)}this.optionsForHandling=[],t.onData&&t.onData(s)}computeOptionsData(t,n,r){if(!this.optionsForRefining.length&&t===this.stableOptionOverrides&&n===this.stableDynamicOptionOverrides)return this.stableCalendarOptionsData;let{refinedOptions:o,pluginHooks:i,localeDefaults:s,availableLocaleData:l,extra:u}=this.processRawCalendarOptions(t,n);Nw(u);let d=this.buildDateEnv(o.timeZone,o.locale,o.weekNumberCalculation,o.firstDay,o.weekText,i,l,o.defaultRangeSeparator),f=this.buildViewSpecs(i.views,this.stableOptionOverrides,this.stableDynamicOptionOverrides,s),g=this.buildTheme(o,i),b=this.parseToolbars(o,this.stableOptionOverrides,g,f,r);return this.stableCalendarOptionsData={calendarOptions:o,pluginHooks:i,dateEnv:d,viewSpecs:f,theme:g,toolbarConfig:b,localeDefaults:s,availableRawLocales:l.map}}processRawCalendarOptions(t,n){let{locales:r,locale:o}=oh([bl,t,n]),i=this.organizeRawLocales(r),s=i.map,l=this.buildLocale(o||i.defaultCode,s).options,u=this.buildPluginHooks(t.plugins||[],mU),d=this.currentCalendarOptionsRefiners=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},yw),vw),bw),u.listenerRefiners),u.optionRefiners),f={},g=oh([bl,l,t,n]),b={},m=this.currentCalendarOptionsInput,v=this.currentCalendarOptionsRefined,p=!1;for(let y in g)this.optionsForRefining.indexOf(y)===-1&&(g[y]===m[y]||Ri[y]&&y in m&&Ri[y](m[y],g[y]))?b[y]=v[y]:d[y]?(b[y]=d[y](g[y]),p=!0):f[y]=m[y];return p&&(this.currentCalendarOptionsInput=g,this.currentCalendarOptionsRefined=b,this.stableOptionOverrides=t,this.stableDynamicOptionOverrides=n),this.optionsForHandling.push(...this.optionsForRefining),this.optionsForRefining=[],{rawOptions:this.currentCalendarOptionsInput,refinedOptions:this.currentCalendarOptionsRefined,pluginHooks:u,availableLocaleData:i,localeDefaults:l,extra:f}}_computeCurrentViewData(t,n,r,o){let i=n.viewSpecs[t];if(!i)throw new Error(`viewType "${t}" is not available. Please make sure you've loaded all neccessary plugins`);let{refinedOptions:s,extra:l}=this.processRawViewOptions(i,n.pluginHooks,n.localeDefaults,r,o);Nw(l),this.nowManager.handleInput(n.dateEnv,s.now);let u=this.buildDateProfileGenerator({dateProfileGeneratorClass:i.optionDefaults.dateProfileGeneratorClass,nowManager:this.nowManager,duration:i.duration,durationUnit:i.durationUnit,usesMinMaxTime:i.optionDefaults.usesMinMaxTime,dateEnv:n.dateEnv,calendarApi:this.props.calendarApi,slotMinTime:s.slotMinTime,slotMaxTime:s.slotMaxTime,showNonCurrentDates:s.showNonCurrentDates,dayCount:s.dayCount,dateAlignment:s.dateAlignment,dateIncrement:s.dateIncrement,hiddenDays:s.hiddenDays,weekends:s.weekends,validRangeInput:s.validRange,visibleRangeInput:s.visibleRange,fixedWeekCount:s.fixedWeekCount}),d=this.buildViewApi(t,this.getCurrentData,n.dateEnv);return{viewSpec:i,options:s,dateProfileGenerator:u,viewApi:d}}processRawViewOptions(t,n,r,o,i){let s=oh([bl,t.optionDefaults,r,o,t.optionOverrides,i]),l=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},yw),vw),bw),o5),n.listenerRefiners),n.optionRefiners),u={},d=this.currentViewOptionsInput,f=this.currentViewOptionsRefined,g=!1,b={};for(let m in s)s[m]===d[m]||Ri[m]&&Ri[m](s[m],d[m])?u[m]=f[m]:(s[m]===this.currentCalendarOptionsInput[m]||Ri[m]&&Ri[m](s[m],this.currentCalendarOptionsInput[m])?m in this.currentCalendarOptionsRefined&&(u[m]=this.currentCalendarOptionsRefined[m]):l[m]?u[m]=l[m](s[m]):b[m]=s[m],g=!0);return g&&(this.currentViewOptionsInput=s,this.currentViewOptionsRefined=u),{rawOptions:this.currentViewOptionsInput,refinedOptions:this.currentViewOptionsRefined,extra:b}}}function SU(e,t,n,r,o,i,s,l){let u=j1(t||s.defaultCode,s.map);return new g5({calendarSystem:"gregory",timeZone:e,namedTimeZoneImpl:i.namedTimeZonedImpl,locale:u,weekNumberCalculation:n,firstDay:r,weekText:o,cmdFormatter:i.cmdFormatter,defaultSeparator:l})}function EU(e,t){let n=t.themeClasses[e.themeSystem]||ii;return new n(e)}function xU(e){let t=e.dateProfileGeneratorClass||qC;return new t(e)}function CU(e,t,n){return new eU(e,t,n)}function DU(e){return bo(e,t=>t.ui)}function _U(e,t,n){let r={"":t};for(let o in e){let i=e[o];i.sourceId&&n[i.sourceId]&&(r[o]=n[i.sourceId])}return r}function RU(e){let{options:t}=e;return{eventUiSingleBase:id({display:t.eventDisplay,editable:t.editable,startEditable:t.eventStartEditable,durationEditable:t.eventDurationEditable,constraint:t.eventConstraint,overlap:typeof t.eventOverlap=="boolean"?t.eventOverlap:void 0,allow:t.eventAllow,backgroundColor:t.eventBackgroundColor,borderColor:t.eventBorderColor,textColor:t.eventTextColor,color:t.eventColor},e),selectionConfig:id({constraint:t.selectConstraint,overlap:typeof t.selectOverlap=="boolean"?t.selectOverlap:void 0,allow:t.selectAllow},e)}}function ph(e,t){for(let n of t.pluginHooks.isLoadingFuncs)if(n(e))return!0;return!1}function TU(e){return X5(e.options.businessHours,e)}function Nw(e,t){for(let n in e)console.warn(`Unknown option '${n}'`)}class OU extends ct{render(){let t=this.props.widgetGroups.map(n=>this.renderWidgetGroup(n));return Z("div",{className:"fc-toolbar-chunk"},...t)}renderWidgetGroup(t){let{props:n}=this,{theme:r}=this.context,o=[],i=!0;for(let s of t){let{buttonName:l,buttonClick:u,buttonText:d,buttonIcon:f,buttonHint:g}=s;if(l==="title")i=!1,o.push(Z("h2",{className:"fc-toolbar-title",id:n.titleId},n.title));else{let b=l===n.activeButton,m=!n.isTodayEnabled&&l==="today"||!n.isPrevEnabled&&l==="prev"||!n.isNextEnabled&&l==="next",v=[`fc-${l}-button`,r.getClass("button")];b&&v.push(r.getClass("buttonActive")),o.push(Z("button",{type:"button",title:typeof g=="function"?g(n.navUnit):g,disabled:m,"aria-pressed":b,className:v.join(" "),onClick:u},d||(f?Z("span",{className:f,role:"img"}):"")))}}if(o.length>1){let s=i&&r.getClass("buttonGroup")||"";return Z("div",{className:s},...o)}return o[0]}}class jw extends ct{render(){let{model:t,extraClassName:n}=this.props,r=!1,o,i,s=t.sectionWidgets,l=s.center;return s.left?(r=!0,o=s.left):o=s.start,s.right?(r=!0,i=s.right):i=s.end,Z("div",{className:[n||"","fc-toolbar",r?"fc-toolbar-ltr":""].join(" ")},this.renderSection("start",o||[]),this.renderSection("center",l||[]),this.renderSection("end",i||[]))}renderSection(t,n){let{props:r}=this;return Z(OU,{key:t,widgetGroups:n,title:r.title,navUnit:r.navUnit,activeButton:r.activeButton,isTodayEnabled:r.isTodayEnabled,isPrevEnabled:r.isPrevEnabled,isNextEnabled:r.isNextEnabled,titleId:r.titleId})}}class AU extends ct{constructor(){super(...arguments),this.state={availableWidth:null},this.handleEl=t=>{this.el=t,Hr(this.props.elRef,t),this.updateAvailableWidth()},this.handleResize=()=>{this.updateAvailableWidth()}}render(){let{props:t,state:n}=this,{aspectRatio:r}=t,o=["fc-view-harness",r||t.liquid||t.height?"fc-view-harness-active":"fc-view-harness-passive"],i="",s="";return r?n.availableWidth!==null?i=n.availableWidth/r:s=`${1/r*100}%`:i=t.height||"",Z("div",{"aria-labelledby":t.labeledById,ref:this.handleEl,className:o.join(" "),style:{height:i,paddingBottom:s}},t.children)}componentDidMount(){this.context.addResizeHandler(this.handleResize)}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}updateAvailableWidth(){this.el&&this.props.aspectRatio&&this.setState({availableWidth:this.el.offsetWidth})}}class kU extends pa{constructor(t){super(t),this.handleSegClick=(n,r)=>{let{component:o}=this,{context:i}=o,s=oa(r);if(s&&o.isValidSegDownEl(n.target)){let l=on(n.target,".fc-event-forced-url"),u=l?l.querySelector("a[href]").href:"";i.emitter.trigger("eventClick",{el:r,event:new kt(o.context,s.eventRange.def,s.eventRange.instance),jsEvent:n,view:i.viewApi}),u&&!n.defaultPrevented&&(window.location.href=u)}},this.destroy=NC(t.el,"click",".fc-event",this.handleSegClick)}}class MU extends pa{constructor(t){super(t),this.handleEventElRemove=n=>{n===this.currentSegEl&&this.handleSegLeave(null,this.currentSegEl)},this.handleSegEnter=(n,r)=>{oa(r)&&(this.currentSegEl=r,this.triggerEvent("eventMouseEnter",n,r))},this.handleSegLeave=(n,r)=>{this.currentSegEl&&(this.currentSegEl=null,this.triggerEvent("eventMouseLeave",n,r))},this.removeHoverListeners=uV(t.el,".fc-event",this.handleSegEnter,this.handleSegLeave)}destroy(){this.removeHoverListeners()}triggerEvent(t,n,r){let{component:o}=this,{context:i}=o,s=oa(r);(!n||o.isValidSegDownEl(n.target))&&i.emitter.trigger(t,{el:r,event:new kt(i,s.eventRange.def,s.eventRange.instance),jsEvent:n,view:i.viewApi})}}class PU extends os{constructor(){super(...arguments),this.buildViewContext=Le(v5),this.buildViewPropTransformers=Le(NU),this.buildToolbarProps=Le(IU),this.headerRef=dn(),this.footerRef=dn(),this.interactionsStore={},this.state={viewLabelId:Yd()},this.registerInteractiveComponent=(t,n)=>{let r=yH(t,n),s=[kU,MU].concat(this.props.pluginHooks.componentInteractions).map(l=>new l(r));this.interactionsStore[t.uid]=s,ig[t.uid]=r},this.unregisterInteractiveComponent=t=>{let n=this.interactionsStore[t.uid];if(n){for(let r of n)r.destroy();delete this.interactionsStore[t.uid]}delete ig[t.uid]},this.resizeRunner=new Jg(()=>{this.props.emitter.trigger("_resize",!0),this.props.emitter.trigger("windowResize",{view:this.props.viewApi})}),this.handleWindowResize=t=>{let{options:n}=this.props;n.handleWindowResize&&t.target===window&&this.resizeRunner.request(n.windowResizeDelay)}}render(){let{props:t}=this,{toolbarConfig:n,options:r}=t,o=!1,i="",s;t.isHeightAuto||t.forPrint?i="":r.height!=null?o=!0:r.contentHeight!=null?i=r.contentHeight:s=Math.max(r.aspectRatio,.5);let l=this.buildViewContext(t.viewSpec,t.viewApi,t.options,t.dateProfileGenerator,t.dateEnv,t.nowManager,t.theme,t.pluginHooks,t.dispatch,t.getCurrentData,t.emitter,t.calendarApi,this.registerInteractiveComponent,this.unregisterInteractiveComponent),u=n.header&&n.header.hasTitle?this.state.viewLabelId:void 0;return Z(Eo.Provider,{value:l},Z(ha,{unit:"day"},d=>{let f=this.buildToolbarProps(t.viewSpec,t.dateProfile,t.dateProfileGenerator,t.currentDate,d,t.viewTitle);return Z(Ct,null,n.header&&Z(jw,Object.assign({ref:this.headerRef,extraClassName:"fc-header-toolbar",model:n.header,titleId:u},f)),Z(AU,{liquid:o,height:i,aspectRatio:s,labeledById:u},this.renderView(t),this.buildAppendContent()),n.footer&&Z(jw,Object.assign({ref:this.footerRef,extraClassName:"fc-footer-toolbar",model:n.footer,titleId:""},f)))}))}componentDidMount(){let{props:t}=this;this.calendarInteractions=t.pluginHooks.calendarInteractions.map(r=>new r(t)),window.addEventListener("resize",this.handleWindowResize);let{propSetHandlers:n}=t.pluginHooks;for(let r in n)n[r](t[r],t)}componentDidUpdate(t){let{props:n}=this,{propSetHandlers:r}=n.pluginHooks;for(let o in r)n[o]!==t[o]&&r[o](n[o],n)}componentWillUnmount(){window.removeEventListener("resize",this.handleWindowResize),this.resizeRunner.clear();for(let t of this.calendarInteractions)t.destroy();this.props.emitter.trigger("_unmount")}buildAppendContent(){let{props:t}=this,n=t.pluginHooks.viewContainerAppends.map(r=>r(t));return Z(Ct,{},...n)}renderView(t){let{pluginHooks:n}=t,{viewSpec:r}=t,o={dateProfile:t.dateProfile,businessHours:t.businessHours,eventStore:t.renderableEventStore,eventUiBases:t.eventUiBases,dateSelection:t.dateSelection,eventSelection:t.eventSelection,eventDrag:t.eventDrag,eventResize:t.eventResize,isHeightAuto:t.isHeightAuto,forPrint:t.forPrint},i=this.buildViewPropTransformers(n.viewPropsTransformers);for(let l of i)Object.assign(o,l.transform(o,t));let s=r.component;return Z(s,Object.assign({},o))}}function IU(e,t,n,r,o,i){let s=n.build(o,void 0,!1),l=n.buildPrev(t,r,!1),u=n.buildNext(t,r,!1);return{title:i,activeButton:e.type,navUnit:e.singleUnit,isTodayEnabled:s.isValid&&!yo(t.currentRange,o),isPrevEnabled:l.isValid,isNextEnabled:u.isValid}}function NU(e){return e.map(t=>new t)}let jU=class extends bH{constructor(t,n={}){super(),this.isRendering=!1,this.isRendered=!1,this.currentClassNames=[],this.customContentRenderId=0,this.handleAction=r=>{switch(r.type){case"SET_EVENT_DRAG":case"SET_EVENT_RESIZE":this.renderRunner.tryDrain()}},this.handleData=r=>{this.currentData=r,this.renderRunner.request(r.calendarOptions.rerenderDelay)},this.handleRenderRequest=()=>{if(this.isRendering){this.isRendered=!0;let{currentData:r}=this;nd(()=>{Rl(Z(mH,{options:r.calendarOptions,theme:r.theme,emitter:r.emitter},(o,i,s,l)=>(this.setClassNames(o),this.setHeight(i),Z(UC.Provider,{value:this.customContentRenderId},Z(PU,Object.assign({isHeightAuto:s,forPrint:l},r))))),this.el)})}else this.isRendered&&(this.isRendered=!1,Rl(null,this.el),this.setClassNames([]),this.setHeight(""))},tV(t),this.el=t,this.renderRunner=new Jg(this.handleRenderRequest),new wU({optionOverrides:n,calendarApi:this,onAction:this.handleAction,onData:this.handleData})}render(){let t=this.isRendering;t?this.customContentRenderId+=1:this.isRendering=!0,this.renderRunner.request(),t&&this.updateSize()}destroy(){this.isRendering&&(this.isRendering=!1,this.renderRunner.request())}updateSize(){nd(()=>{super.updateSize()})}batchRendering(t){this.renderRunner.pause("batchRendering"),t(),this.renderRunner.resume("batchRendering")}pauseRendering(){this.renderRunner.pause("pauseRendering")}resumeRendering(){this.renderRunner.resume("pauseRendering",!0)}resetOptions(t,n){this.currentDataManager.resetOptions(t,n)}setClassNames(t){if(!ti(t,this.currentClassNames)){let{classList:n}=this.el;for(let r of this.currentClassNames)n.remove(r);for(let r of t)n.add(r);this.currentClassNames=t}}setHeight(t){PC(this.el,"height",t)}};const $U=parseInt(String(pe.version).split(".")[0]),zU=$U<18;class F1 extends pe.Component{constructor(){super(...arguments),this.elRef=pe.createRef(),this.isUpdating=!1,this.isUnmounting=!1,this.state={customRenderingMap:new Map},this.requestResize=()=>{this.isUnmounting||(this.cancelResize(),this.resizeId=requestAnimationFrame(()=>{this.doResize()}))}}render(){const t=[];for(const n of this.state.customRenderingMap.values())t.push(pe.createElement(LU,{key:n.id,customRendering:n}));return pe.createElement("div",{ref:this.elRef},t)}componentDidMount(){this.isUnmounting=!1;const t=new wF;this.handleCustomRendering=t.handle.bind(t),this.calendar=new jU(this.elRef.current,Object.assign(Object.assign({},this.props),{handleCustomRendering:this.handleCustomRendering})),this.calendar.render(),this.calendar.on("_beforeprint",()=>{xn.flushSync(()=>{})});let n;t.subscribe(r=>{const o=Date.now(),i=!n;(zU||i||this.isUpdating||this.isUnmounting||o-n<100?U1:xn.flushSync)(()=>{this.setState({customRenderingMap:r},()=>{n=o,i?this.doResize():this.requestResize()})})})}componentDidUpdate(){this.isUpdating=!0,this.calendar.resetOptions(Object.assign(Object.assign({},this.props),{handleCustomRendering:this.handleCustomRendering})),this.isUpdating=!1}componentWillUnmount(){this.isUnmounting=!0,this.cancelResize(),this.calendar.destroy()}doResize(){this.calendar.updateSize()}cancelResize(){this.resizeId!==void 0&&(cancelAnimationFrame(this.resizeId),this.resizeId=void 0)}getApi(){return this.calendar}}F1.act=U1;class LU extends pe.PureComponent{render(){const{customRendering:t}=this.props,{generatorMeta:n}=t,r=typeof n=="function"?n(t.renderProps):n;return xn.createPortal(r,t.containerEl)}}function U1(e){e()}class BU extends Ur{constructor(){super(...arguments),this.headerElRef=dn()}renderSimpleLayout(t,n){let{props:r,context:o}=this,i=[],s=ld(o.options);return t&&i.push({type:"header",key:"header",isSticky:s,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:t}}),i.push({type:"body",key:"body",liquid:!0,chunk:{content:n}}),Z(rd,{elClasses:["fc-daygrid"],viewSpec:o.viewSpec},Z(xm,{liquid:!r.isHeightAuto&&!r.forPrint,collapsibleWidth:r.forPrint,cols:[],sections:i}))}renderHScrollLayout(t,n,r,o){let i=this.context.pluginHooks.scrollGridImpl;if(!i)throw new Error("No ScrollGrid implementation");let{props:s,context:l}=this,u=!s.forPrint&&ld(l.options),d=!s.forPrint&&T1(l.options),f=[];return t&&f.push({type:"header",key:"header",isSticky:u,chunks:[{key:"main",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:t}]}),f.push({type:"body",key:"body",liquid:!0,chunks:[{key:"main",content:n}]}),d&&f.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"main",content:lg}]}),Z(rd,{elClasses:["fc-daygrid"],viewSpec:l.viewSpec},Z(i,{liquid:!s.isHeightAuto&&!s.forPrint,forPrint:s.forPrint,collapsibleWidth:s.forPrint,colGroups:[{cols:[{span:r,minWidth:o}]}],sections:f}))}}function ku(e,t){let n=[];for(let r=0;r<t;r+=1)n[r]=[];for(let r of e)n[r.row].push(r);return n}function Jc(e,t){let n=[];for(let r=0;r<t;r+=1)n[r]=[];for(let r of e)n[r.firstCol].push(r);return n}function $w(e,t){let n=[];if(e){for(let r=0;r<t;r+=1)n[r]={affectedInstances:e.affectedInstances,isEvent:e.isEvent,segs:[]};for(let r of e.segs)n[r.row].segs.push(r)}else for(let r=0;r<t;r+=1)n[r]=null;return n}const W1=Pt({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"});function Y1(e){let{display:t}=e.eventRange.ui;return t==="list-item"||t==="auto"&&!e.eventRange.def.allDay&&e.firstCol===e.lastCol&&e.isStart&&e.isEnd}class G1 extends ct{render(){let{props:t}=this;return Z(Dm,Object.assign({},t,{elClasses:["fc-daygrid-event","fc-daygrid-block-event","fc-h-event"],defaultTimeFormat:W1,defaultDisplayEventEnd:t.defaultDisplayEventEnd,disableResizing:!t.seg.eventRange.def.allDay}))}}class q1 extends ct{render(){let{props:t,context:n}=this,{options:r}=n,{seg:o}=t,i=r.eventTimeFormat||W1,s=a1(o,i,n,!0,t.defaultDisplayEventEnd);return Z(Cm,Object.assign({},t,{elTag:"a",elClasses:["fc-daygrid-event","fc-daygrid-dot-event"],elAttrs:c1(t.seg,n),defaultGenerator:VU,timeText:s,isResizing:!1,isDateSelecting:!1}))}}function VU(e){return Z(Ct,null,Z("div",{className:"fc-daygrid-event-dot",style:{borderColor:e.borderColor||e.backgroundColor}}),e.timeText&&Z("div",{className:"fc-event-time"},e.timeText),Z("div",{className:"fc-event-title"},e.event.title||Z(Ct,null," ")))}class HU extends ct{constructor(){super(...arguments),this.compileSegs=Le(FU)}render(){let{props:t}=this,{allSegs:n,invisibleSegs:r}=this.compileSegs(t.singlePlacements);return Z(M1,{elClasses:["fc-daygrid-more-link"],dateProfile:t.dateProfile,todayRange:t.todayRange,allDayDate:t.allDayDate,moreCnt:t.moreCnt,allSegs:n,hiddenSegs:r,alignmentElRef:t.alignmentElRef,alignGridTop:t.alignGridTop,extraDateSpan:t.extraDateSpan,popoverContent:()=>{let o=(t.eventDrag?t.eventDrag.affectedInstances:null)||(t.eventResize?t.eventResize.affectedInstances:null)||{};return Z(Ct,null,n.map(i=>{let s=i.eventRange.instance.instanceId;return Z("div",{className:"fc-daygrid-event-harness",key:s,style:{visibility:o[s]?"hidden":""}},Y1(i)?Z(q1,Object.assign({seg:i,isDragging:!1,isSelected:s===t.eventSelection,defaultDisplayEventEnd:!1},Zo(i,t.todayRange))):Z(G1,Object.assign({seg:i,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:s===t.eventSelection,defaultDisplayEventEnd:!1},Zo(i,t.todayRange))))}))}})}}function FU(e){let t=[],n=[];for(let r of e)t.push(r.seg),r.isVisible||n.push(r.seg);return{allSegs:t,invisibleSegs:n}}const UU=Pt({week:"narrow"});class WU extends Ur{constructor(){super(...arguments),this.rootElRef=dn(),this.state={dayNumberId:Yd()},this.handleRootEl=t=>{Hr(this.rootElRef,t),Hr(this.props.elRef,t)}}render(){let{context:t,props:n,state:r,rootElRef:o}=this,{options:i,dateEnv:s}=t,{date:l,dateProfile:u}=n;const d=n.showDayNumber&&GU(l,u.currentRange,s);return Z(Rm,{elTag:"td",elRef:this.handleRootEl,elClasses:["fc-daygrid-day",...n.extraClassNames||[]],elAttrs:Object.assign(Object.assign(Object.assign({},n.extraDataAttrs),n.showDayNumber?{"aria-labelledby":r.dayNumberId}:{}),{role:"gridcell"}),defaultGenerator:YU,date:l,dateProfile:u,todayRange:n.todayRange,showDayNumber:n.showDayNumber,isMonthStart:d,extraRenderProps:n.extraRenderProps},(f,g)=>Z("div",{ref:n.innerElRef,className:"fc-daygrid-day-frame fc-scrollgrid-sync-inner",style:{minHeight:n.minHeight}},n.showWeekNumber&&Z(k1,{elTag:"a",elClasses:["fc-daygrid-week-number"],elAttrs:ad(t,l,"week"),date:l,defaultFormat:UU}),!g.isDisabled&&(n.showDayNumber||Tm(i)||n.forceDayTop)?Z("div",{className:"fc-daygrid-day-top"},Z(f,{elTag:"a",elClasses:["fc-daygrid-day-number",d&&"fc-daygrid-month-start"],elAttrs:Object.assign(Object.assign({},ad(t,l)),{id:r.dayNumberId})})):n.showDayNumber?Z("div",{className:"fc-daygrid-day-top",style:{visibility:"hidden"}},Z("a",{className:"fc-daygrid-day-number"}," ")):void 0,Z("div",{className:"fc-daygrid-day-events",ref:n.fgContentElRef},n.fgContent,Z("div",{className:"fc-daygrid-day-bottom",style:{marginTop:n.moreMarginTop}},Z(HU,{allDayDate:l,singlePlacements:n.singlePlacements,moreCnt:n.moreCnt,alignmentElRef:o,alignGridTop:!n.showDayNumber,extraDateSpan:n.extraDateSpan,dateProfile:n.dateProfile,eventSelection:n.eventSelection,eventDrag:n.eventDrag,eventResize:n.eventResize,todayRange:n.todayRange}))),Z("div",{className:"fc-daygrid-day-bg"},n.bgContent)))}}function YU(e){return e.dayNumberText||Z(Ct,null," ")}function GU(e,t,n){const{start:r,end:o}=t,i=ni(o,-1),s=n.getYear(r),l=n.getMonth(r),u=n.getYear(i),d=n.getMonth(i);return!(s===u&&l===d)&&(e.valueOf()===r.valueOf()||n.getDay(e)===1&&e.valueOf()<o.valueOf())}function X1(e){return e.eventRange.instance.instanceId+":"+e.firstCol}function Q1(e){return X1(e)+":"+e.lastCol}function qU(e,t,n,r,o,i,s){let l=new ZU(S=>{let E=e[S.index].eventRange.instance.instanceId+":"+S.span.start+":"+(S.span.end-1);return o[E]||1});l.allowReslicing=!0,l.strictOrder=r,t===!0||n===!0?(l.maxCoord=i,l.hiddenConsumes=!0):typeof t=="number"?l.maxStackCnt=t:typeof n=="number"&&(l.maxStackCnt=n,l.hiddenConsumes=!0);let u=[],d=[];for(let S=0;S<e.length;S+=1){let E=e[S],D=Q1(E);o[D]!=null?u.push({index:S,span:{start:E.firstCol,end:E.lastCol+1}}):d.push(E)}let f=l.addSegs(u),g=l.toRects(),{singleColPlacements:b,multiColPlacements:m,leftoverMargins:v}=XU(g,e,s),p=[],y=[];for(let S of d){m[S.firstCol].push({seg:S,isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let E=S.firstCol;E<=S.lastCol;E+=1)b[E].push({seg:qs(S,E,E+1,s),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let S=0;S<s.length;S+=1)p.push(0);for(let S of f){let E=e[S.index],D=S.span;m[D.start].push({seg:qs(E,D.start,D.end,s),isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let R=D.start;R<D.end;R+=1)p[R]+=1,b[R].push({seg:qs(E,R,R+1,s),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let S=0;S<s.length;S+=1)y.push(v[S]);return{singleColPlacements:b,multiColPlacements:m,moreCnts:p,moreMarginTops:y}}function XU(e,t,n){let r=QU(e,n.length),o=[],i=[],s=[];for(let l=0;l<n.length;l+=1){let u=r[l],d=[],f=0,g=0;for(let m of u){let v=t[m.index];d.push({seg:qs(v,l,l+1,n),isVisible:!0,isAbsolute:!1,absoluteTop:m.levelCoord,marginTop:m.levelCoord-f}),f=m.levelCoord+m.thickness}let b=[];f=0,g=0;for(let m of u){let v=t[m.index],p=m.span.end-m.span.start>1,y=m.span.start===l;g+=m.levelCoord-f,f=m.levelCoord+m.thickness,p?(g+=m.thickness,y&&b.push({seg:qs(v,m.span.start,m.span.end,n),isVisible:!0,isAbsolute:!0,absoluteTop:m.levelCoord,marginTop:0})):y&&(b.push({seg:qs(v,m.span.start,m.span.end,n),isVisible:!0,isAbsolute:!1,absoluteTop:m.levelCoord,marginTop:g}),g=0)}o.push(d),i.push(b),s.push(g)}return{singleColPlacements:o,multiColPlacements:i,leftoverMargins:s}}function QU(e,t){let n=[];for(let r=0;r<t;r+=1)n.push([]);for(let r of e)for(let o=r.span.start;o<r.span.end;o+=1)n[o].push(r);return n}function qs(e,t,n,r){if(e.firstCol===t&&e.lastCol===n-1)return e;let o=e.eventRange,i=o.range,s=Qi(i,{start:r[t].date,end:Zt(r[n-1].date,1)});return Object.assign(Object.assign({},e),{firstCol:t,lastCol:n-1,eventRange:{def:o.def,ui:Object.assign(Object.assign({},o.ui),{durationEditable:!1}),instance:o.instance,range:s},isStart:e.isStart&&s.start.valueOf()===i.start.valueOf(),isEnd:e.isEnd&&s.end.valueOf()===i.end.valueOf()})}class ZU extends y1{constructor(){super(...arguments),this.hiddenConsumes=!1,this.forceHidden={}}addSegs(t){const n=super.addSegs(t),{entriesByLevel:r}=this,o=i=>!this.forceHidden[Fi(i)];for(let i=0;i<r.length;i+=1)r[i]=r[i].filter(o);return n}handleInvalidInsertion(t,n,r){const{entriesByLevel:o,forceHidden:i}=this,{touchingEntry:s,touchingLevel:l,touchingLateral:u}=t;if(this.hiddenConsumes&&s){const d=Fi(s);if(!i[d])if(this.allowReslicing){const f=Object.assign(Object.assign({},s),{span:Sm(s.span,n.span)}),g=Fi(f);i[g]=!0,o[l][u]=f,r.push(f),this.splitEntry(s,n,r)}else i[d]=!0,r.push(s)}super.handleInvalidInsertion(t,n,r)}}class Z1 extends Ur{constructor(){super(...arguments),this.cellElRefs=new mo,this.frameElRefs=new mo,this.fgElRefs=new mo,this.segHarnessRefs=new mo,this.rootElRef=dn(),this.state={framePositions:null,maxContentHeight:null,segHeights:{}},this.handleResize=t=>{t&&this.updateSizing(!0)}}render(){let{props:t,state:n,context:r}=this,{options:o}=r,i=t.cells.length,s=Jc(t.businessHourSegs,i),l=Jc(t.bgEventSegs,i),u=Jc(this.getHighlightSegs(),i),d=Jc(this.getMirrorSegs(),i),{singleColPlacements:f,multiColPlacements:g,moreCnts:b,moreMarginTops:m}=qU(s1(t.fgEventSegs,o.eventOrder),t.dayMaxEvents,t.dayMaxEventRows,o.eventOrderStrict,n.segHeights,n.maxContentHeight,t.cells),v=t.eventDrag&&t.eventDrag.affectedInstances||t.eventResize&&t.eventResize.affectedInstances||{};return Z("tr",{ref:this.rootElRef,role:"row"},t.renderIntro&&t.renderIntro(),t.cells.map((p,y)=>{let S=this.renderFgSegs(y,t.forPrint?f[y]:g[y],t.todayRange,v),E=this.renderFgSegs(y,KU(d[y],g),t.todayRange,{},!!t.eventDrag,!!t.eventResize,!1);return Z(WU,{key:p.key,elRef:this.cellElRefs.createRef(p.key),innerElRef:this.frameElRefs.createRef(p.key),dateProfile:t.dateProfile,date:p.date,showDayNumber:t.showDayNumbers,showWeekNumber:t.showWeekNumbers&&y===0,forceDayTop:t.showWeekNumbers,todayRange:t.todayRange,eventSelection:t.eventSelection,eventDrag:t.eventDrag,eventResize:t.eventResize,extraRenderProps:p.extraRenderProps,extraDataAttrs:p.extraDataAttrs,extraClassNames:p.extraClassNames,extraDateSpan:p.extraDateSpan,moreCnt:b[y],moreMarginTop:m[y],singlePlacements:f[y],fgContentElRef:this.fgElRefs.createRef(p.key),fgContent:Z(Ct,null,Z(Ct,null,S),Z(Ct,null,E)),bgContent:Z(Ct,null,this.renderFillSegs(u[y],"highlight"),this.renderFillSegs(s[y],"non-business"),this.renderFillSegs(l[y],"bg-event")),minHeight:t.cellMinHeight})}))}componentDidMount(){this.updateSizing(!0),this.context.addResizeHandler(this.handleResize)}componentDidUpdate(t,n){let r=this.props;this.updateSizing(!Dr(t,r))}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}getHighlightSegs(){let{props:t}=this;return t.eventDrag&&t.eventDrag.segs.length?t.eventDrag.segs:t.eventResize&&t.eventResize.segs.length?t.eventResize.segs:t.dateSelectionSegs}getMirrorSegs(){let{props:t}=this;return t.eventResize&&t.eventResize.segs.length?t.eventResize.segs:[]}renderFgSegs(t,n,r,o,i,s,l){let{context:u}=this,{eventSelection:d}=this.props,{framePositions:f}=this.state,g=this.props.cells.length===1,b=i||s||l,m=[];if(f)for(let v of n){let{seg:p}=v,{instanceId:y}=p.eventRange.instance,S=v.isVisible&&!o[y],E=v.isAbsolute,D="",R="";E&&(u.isRtl?(R=0,D=f.lefts[p.lastCol]-f.lefts[p.firstCol]):(D=0,R=f.rights[p.firstCol]-f.rights[p.lastCol])),m.push(Z("div",{className:"fc-daygrid-event-harness"+(E?" fc-daygrid-event-harness-abs":""),key:X1(p),ref:b?null:this.segHarnessRefs.createRef(Q1(p)),style:{visibility:S?"":"hidden",marginTop:E?"":v.marginTop,top:E?v.absoluteTop:"",left:D,right:R}},Y1(p)?Z(q1,Object.assign({seg:p,isDragging:i,isSelected:y===d,defaultDisplayEventEnd:g},Zo(p,r))):Z(G1,Object.assign({seg:p,isDragging:i,isResizing:s,isDateSelecting:l,isSelected:y===d,defaultDisplayEventEnd:g},Zo(p,r)))))}return m}renderFillSegs(t,n){let{isRtl:r}=this.context,{todayRange:o}=this.props,{framePositions:i}=this.state,s=[];if(i)for(let l of t){let u=r?{right:0,left:i.lefts[l.lastCol]-i.lefts[l.firstCol]}:{left:0,right:i.rights[l.firstCol]-i.rights[l.lastCol]};s.push(Z("div",{key:l1(l.eventRange),className:"fc-daygrid-bg-harness",style:u},n==="bg-event"?Z(O1,Object.assign({seg:l},Zo(l,o))):A1(n)))}return Z(Ct,{},...s)}updateSizing(t){let{props:n,state:r,frameElRefs:o}=this;if(!n.forPrint&&n.clientWidth!==null){if(t){let u=n.cells.map(d=>o.currentMap[d.key]);if(u.length){let d=this.rootElRef.current,f=new ia(d,u,!0,!1);(!r.framePositions||!r.framePositions.similarTo(f))&&this.setState({framePositions:new ia(d,u,!0,!1)})}}const i=this.state.segHeights,s=this.querySegHeights(),l=n.dayMaxEvents===!0||n.dayMaxEventRows===!0;this.safeSetState({segHeights:Object.assign(Object.assign({},i),s),maxContentHeight:l?this.computeMaxContentHeight():null})}}querySegHeights(){let t=this.segHarnessRefs.currentMap,n={};for(let r in t){let o=Math.round(t[r].getBoundingClientRect().height);n[r]=Math.max(n[r]||0,o)}return n}computeMaxContentHeight(){let t=this.props.cells[0].key,n=this.cellElRefs.currentMap[t],r=this.fgElRefs.currentMap[t];return n.getBoundingClientRect().bottom-r.getBoundingClientRect().top}getCellEls(){let t=this.cellElRefs.currentMap;return this.props.cells.map(n=>t[n.key])}}Z1.addStateEquality({segHeights:Dr});function KU(e,t){if(!e.length)return[];let n=JU(t);return e.map(r=>({seg:r,isVisible:!0,isAbsolute:!0,absoluteTop:n[r.eventRange.instance.instanceId],marginTop:0}))}function JU(e){let t={};for(let n of e)for(let r of n)t[r.seg.eventRange.instance.instanceId]=r.absoluteTop;return t}class eW extends Ur{constructor(){super(...arguments),this.splitBusinessHourSegs=Le(ku),this.splitBgEventSegs=Le(tW),this.splitFgEventSegs=Le(ku),this.splitDateSelectionSegs=Le(ku),this.splitEventDrag=Le($w),this.splitEventResize=Le($w),this.rowRefs=new mo}render(){let{props:t,context:n}=this,r=t.cells.length,o=this.splitBusinessHourSegs(t.businessHourSegs,r),i=this.splitBgEventSegs(t.bgEventSegs,r),s=this.splitFgEventSegs(t.fgEventSegs,r),l=this.splitDateSelectionSegs(t.dateSelectionSegs,r),u=this.splitEventDrag(t.eventDrag,r),d=this.splitEventResize(t.eventResize,r),f=r>=7&&t.clientWidth?t.clientWidth/n.options.aspectRatio/6:null;return Z(ha,{unit:"day"},(g,b)=>Z(Ct,null,t.cells.map((m,v)=>Z(Z1,{ref:this.rowRefs.createRef(v),key:m.length?m[0].date.toISOString():v,showDayNumbers:r>1,showWeekNumbers:t.showWeekNumbers,todayRange:b,dateProfile:t.dateProfile,cells:m,renderIntro:t.renderRowIntro,businessHourSegs:o[v],eventSelection:t.eventSelection,bgEventSegs:i[v],fgEventSegs:s[v],dateSelectionSegs:l[v],eventDrag:u[v],eventResize:d[v],dayMaxEvents:t.dayMaxEvents,dayMaxEventRows:t.dayMaxEventRows,clientWidth:t.clientWidth,clientHeight:t.clientHeight,cellMinHeight:f,forPrint:t.forPrint}))))}componentDidMount(){this.registerInteractiveComponent()}componentDidUpdate(){this.registerInteractiveComponent()}registerInteractiveComponent(){if(!this.rootEl){const t=this.rowRefs.currentMap[0].getCellEls()[0],n=t?t.closest(".fc-daygrid-body"):null;n&&(this.rootEl=n,this.context.registerInteractiveComponent(this,{el:n,isHitComboAllowed:this.props.isHitComboAllowed}))}}componentWillUnmount(){this.rootEl&&(this.context.unregisterInteractiveComponent(this),this.rootEl=null)}prepareHits(){this.rowPositions=new ia(this.rootEl,this.rowRefs.collect().map(t=>t.getCellEls()[0]),!1,!0),this.colPositions=new ia(this.rootEl,this.rowRefs.currentMap[0].getCellEls(),!0,!1)}queryHit(t,n){let{colPositions:r,rowPositions:o}=this,i=r.leftToIndex(t),s=o.topToIndex(n);if(s!=null&&i!=null){let l=this.props.cells[s][i];return{dateProfile:this.props.dateProfile,dateSpan:Object.assign({range:this.getCellRange(s,i),allDay:!0},l.extraDateSpan),dayEl:this.getCellEl(s,i),rect:{left:r.lefts[i],right:r.rights[i],top:o.tops[s],bottom:o.bottoms[s]},layer:0}}return null}getCellEl(t,n){return this.rowRefs.currentMap[t].getCellEls()[n]}getCellRange(t,n){let r=this.props.cells[t][n].date,o=Zt(r,1);return{start:r,end:o}}}function tW(e,t){return ku(e.filter(nW),t)}function nW(e){return e.eventRange.def.allDay}class rW extends Ur{constructor(){super(...arguments),this.elRef=dn(),this.needsScrollReset=!1}render(){let{props:t}=this,{dayMaxEventRows:n,dayMaxEvents:r,expandRows:o}=t,i=r===!0||n===!0;i&&!o&&(i=!1,n=null,r=null);let s=["fc-daygrid-body",i?"fc-daygrid-body-balanced":"fc-daygrid-body-unbalanced",o?"":"fc-daygrid-body-natural"];return Z("div",{ref:this.elRef,className:s.join(" "),style:{width:t.clientWidth,minWidth:t.tableMinWidth}},Z("table",{role:"presentation",className:"fc-scrollgrid-sync-table",style:{width:t.clientWidth,minWidth:t.tableMinWidth,height:o?t.clientHeight:""}},t.colGroupNode,Z("tbody",{role:"presentation"},Z(eW,{dateProfile:t.dateProfile,cells:t.cells,renderRowIntro:t.renderRowIntro,showWeekNumbers:t.showWeekNumbers,clientWidth:t.clientWidth,clientHeight:t.clientHeight,businessHourSegs:t.businessHourSegs,bgEventSegs:t.bgEventSegs,fgEventSegs:t.fgEventSegs,dateSelectionSegs:t.dateSelectionSegs,eventSelection:t.eventSelection,eventDrag:t.eventDrag,eventResize:t.eventResize,dayMaxEvents:r,dayMaxEventRows:n,forPrint:t.forPrint,isHitComboAllowed:t.isHitComboAllowed}))))}componentDidMount(){this.requestScrollReset()}componentDidUpdate(t){t.dateProfile!==this.props.dateProfile?this.requestScrollReset():this.flushScrollReset()}requestScrollReset(){this.needsScrollReset=!0,this.flushScrollReset()}flushScrollReset(){if(this.needsScrollReset&&this.props.clientWidth){const t=oW(this.elRef.current,this.props.dateProfile);if(t){const n=t.closest(".fc-daygrid-body"),r=n.closest(".fc-scroller"),o=t.getBoundingClientRect().top-n.getBoundingClientRect().top;r.scrollTop=o?o+1:0}this.needsScrollReset=!1}}}function oW(e,t){let n;return t.currentRangeUnit.match(/year|month/)&&(n=e.querySelector(`[data-date="${VV(t.currentDate)}-01"]`)),n||(n=e.querySelector(`[data-date="${om(t.currentDate)}"]`)),n}class iW extends x1{constructor(){super(...arguments),this.forceDayIfListItem=!0}sliceRange(t,n){return n.sliceRange(t)}}class K1 extends Ur{constructor(){super(...arguments),this.slicer=new iW,this.tableRef=dn()}render(){let{props:t,context:n}=this;return Z(rW,Object.assign({ref:this.tableRef},this.slicer.sliceProps(t,t.dateProfile,t.nextDayThreshold,n,t.dayTableModel),{dateProfile:t.dateProfile,cells:t.dayTableModel.cells,colGroupNode:t.colGroupNode,tableMinWidth:t.tableMinWidth,renderRowIntro:t.renderRowIntro,dayMaxEvents:t.dayMaxEvents,dayMaxEventRows:t.dayMaxEventRows,showWeekNumbers:t.showWeekNumbers,expandRows:t.expandRows,headerAlignElRef:t.headerAlignElRef,clientWidth:t.clientWidth,clientHeight:t.clientHeight,forPrint:t.forPrint}))}}class sW extends BU{constructor(){super(...arguments),this.buildDayTableModel=Le(aW),this.headerRef=dn(),this.tableRef=dn()}render(){let{options:t,dateProfileGenerator:n}=this.context,{props:r}=this,o=this.buildDayTableModel(r.dateProfile,n),i=t.dayHeaders&&Z(w1,{ref:this.headerRef,dateProfile:r.dateProfile,dates:o.headerDates,datesRepDistinctDays:o.rowCnt===1}),s=l=>Z(K1,{ref:this.tableRef,dateProfile:r.dateProfile,dayTableModel:o,businessHours:r.businessHours,dateSelection:r.dateSelection,eventStore:r.eventStore,eventUiBases:r.eventUiBases,eventSelection:r.eventSelection,eventDrag:r.eventDrag,eventResize:r.eventResize,nextDayThreshold:t.nextDayThreshold,colGroupNode:l.tableColGroupNode,tableMinWidth:l.tableMinWidth,dayMaxEvents:t.dayMaxEvents,dayMaxEventRows:t.dayMaxEventRows,showWeekNumbers:t.weekNumbers,expandRows:!r.isHeightAuto,headerAlignElRef:this.headerElRef,clientWidth:l.clientWidth,clientHeight:l.clientHeight,forPrint:r.forPrint});return t.dayMinWidth?this.renderHScrollLayout(i,s,o.colCnt,t.dayMinWidth):this.renderSimpleLayout(i,s)}}function aW(e,t){let n=new S1(e.renderRange,t);return new E1(n,/year|month|week/.test(e.currentRangeUnit))}class lW extends qC{buildRenderRange(t,n,r){let o=super.buildRenderRange(t,n,r),{props:i}=this;return cW({currentRange:o,snapToWeek:/^(year|month)$/.test(n),fixedWeekCount:i.fixedWeekCount,dateEnv:i.dateEnv})}}function cW(e){let{dateEnv:t,currentRange:n}=e,{start:r,end:o}=n,i;if(e.snapToWeek&&(r=t.startOfWeek(r),i=t.startOfWeek(o),i.valueOf()!==o.valueOf()&&(o=fw(i,1))),e.fixedWeekCount){let s=t.startOfWeek(t.startOfMonth(Zt(n.end,-1))),l=Math.ceil(AV(s,o));o=fw(o,6-l)}return{start:r,end:o}}var uW=':root{--fc-daygrid-event-dot-width:8px}.fc-daygrid-day-events:after,.fc-daygrid-day-events:before,.fc-daygrid-day-frame:after,.fc-daygrid-day-frame:before,.fc-daygrid-event-harness:after,.fc-daygrid-event-harness:before{clear:both;content:"";display:table}.fc .fc-daygrid-body{position:relative;z-index:1}.fc .fc-daygrid-day.fc-day-today{background-color:var(--fc-today-bg-color)}.fc .fc-daygrid-day-frame{min-height:100%;position:relative}.fc .fc-daygrid-day-top{display:flex;flex-direction:row-reverse}.fc .fc-day-other .fc-daygrid-day-top{opacity:.3}.fc .fc-daygrid-day-number{padding:4px;position:relative;z-index:4}.fc .fc-daygrid-month-start{font-size:1.1em;font-weight:700}.fc .fc-daygrid-day-events{margin-top:1px}.fc .fc-daygrid-body-balanced .fc-daygrid-day-events{left:0;position:absolute;right:0}.fc .fc-daygrid-body-unbalanced .fc-daygrid-day-events{min-height:2em;position:relative}.fc .fc-daygrid-body-natural .fc-daygrid-day-events{margin-bottom:1em}.fc .fc-daygrid-event-harness{position:relative}.fc .fc-daygrid-event-harness-abs{left:0;position:absolute;right:0;top:0}.fc .fc-daygrid-bg-harness{bottom:0;position:absolute;top:0}.fc .fc-daygrid-day-bg .fc-non-business{z-index:1}.fc .fc-daygrid-day-bg .fc-bg-event{z-index:2}.fc .fc-daygrid-day-bg .fc-highlight{z-index:3}.fc .fc-daygrid-event{margin-top:1px;z-index:6}.fc .fc-daygrid-event.fc-event-mirror{z-index:7}.fc .fc-daygrid-day-bottom{font-size:.85em;margin:0 2px}.fc .fc-daygrid-day-bottom:after,.fc .fc-daygrid-day-bottom:before{clear:both;content:"";display:table}.fc .fc-daygrid-more-link{border-radius:3px;cursor:pointer;line-height:1;margin-top:1px;max-width:100%;overflow:hidden;padding:2px;position:relative;white-space:nowrap;z-index:4}.fc .fc-daygrid-more-link:hover{background-color:rgba(0,0,0,.1)}.fc .fc-daygrid-week-number{background-color:var(--fc-neutral-bg-color);color:var(--fc-neutral-text-color);min-width:1.5em;padding:2px;position:absolute;text-align:center;top:0;z-index:5}.fc .fc-more-popover .fc-popover-body{min-width:220px;padding:10px}.fc-direction-ltr .fc-daygrid-event.fc-event-start,.fc-direction-rtl .fc-daygrid-event.fc-event-end{margin-left:2px}.fc-direction-ltr .fc-daygrid-event.fc-event-end,.fc-direction-rtl .fc-daygrid-event.fc-event-start{margin-right:2px}.fc-direction-ltr .fc-daygrid-more-link{float:left}.fc-direction-ltr .fc-daygrid-week-number{border-radius:0 0 3px 0;left:0}.fc-direction-rtl .fc-daygrid-more-link{float:right}.fc-direction-rtl .fc-daygrid-week-number{border-radius:0 0 0 3px;right:0}.fc-liquid-hack .fc-daygrid-day-frame{position:static}.fc-daygrid-event{border-radius:3px;font-size:var(--fc-small-font-size);position:relative;white-space:nowrap}.fc-daygrid-block-event .fc-event-time{font-weight:700}.fc-daygrid-block-event .fc-event-time,.fc-daygrid-block-event .fc-event-title{padding:1px}.fc-daygrid-dot-event{align-items:center;display:flex;padding:2px 0}.fc-daygrid-dot-event .fc-event-title{flex-grow:1;flex-shrink:1;font-weight:700;min-width:0;overflow:hidden}.fc-daygrid-dot-event.fc-event-mirror,.fc-daygrid-dot-event:hover{background:rgba(0,0,0,.1)}.fc-daygrid-dot-event.fc-event-selected:before{bottom:-10px;top:-10px}.fc-daygrid-event-dot{border:calc(var(--fc-daygrid-event-dot-width)/2) solid var(--fc-event-border-color);border-radius:calc(var(--fc-daygrid-event-dot-width)/2);box-sizing:content-box;height:0;margin:0 4px;width:0}.fc-direction-ltr .fc-daygrid-event .fc-event-time{margin-right:3px}.fc-direction-rtl .fc-daygrid-event .fc-event-time{margin-left:3px}';Kg(uW);var dW=xo({name:"@fullcalendar/daygrid",initialView:"dayGridMonth",views:{dayGrid:{component:sW,dateProfileGeneratorClass:lW},dayGridDay:{type:"dayGrid",duration:{days:1}},dayGridWeek:{type:"dayGrid",duration:{weeks:1}},dayGridMonth:{type:"dayGrid",duration:{months:1},fixedWeekCount:!0},dayGridYear:{type:"dayGrid",duration:{years:1}}}});class fW extends CH{getKeyInfo(){return{allDay:{},timed:{}}}getKeysForDateSpan(t){return t.allDay?["allDay"]:["timed"]}getKeysForEventDef(t){return t.allDay?eH(t)?["timed","allDay"]:["allDay"]:["timed"]}}const pW=Pt({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"short"});function J1(e){let t=["fc-timegrid-slot","fc-timegrid-slot-label",e.isLabeled?"fc-scrollgrid-shrink":"fc-timegrid-slot-minor"];return Z(Eo.Consumer,null,n=>{if(!e.isLabeled)return Z("td",{className:t.join(" "),"data-time":e.isoTimeStr});let{dateEnv:r,options:o,viewApi:i}=n,s=o.slotLabelFormat==null?pW:Array.isArray(o.slotLabelFormat)?Pt(o.slotLabelFormat[0]):Pt(o.slotLabelFormat),l={level:0,time:e.time,date:r.toDate(e.date),view:i,text:r.format(e.date,s)};return Z(Wn,{elTag:"td",elClasses:t,elAttrs:{"data-time":e.isoTimeStr},renderProps:l,generatorName:"slotLabelContent",customGenerator:o.slotLabelContent,defaultGenerator:hW,classNameGenerator:o.slotLabelClassNames,didMount:o.slotLabelDidMount,willUnmount:o.slotLabelWillUnmount},u=>Z("div",{className:"fc-timegrid-slot-label-frame fc-scrollgrid-shrink-frame"},Z(u,{elTag:"div",elClasses:["fc-timegrid-slot-label-cushion","fc-scrollgrid-shrink-cushion"]})))})}function hW(e){return e.text}class gW extends ct{render(){return this.props.slatMetas.map(t=>Z("tr",{key:t.key},Z(J1,Object.assign({},t))))}}const mW=Pt({week:"short"}),yW=5;class vW extends Ur{constructor(){super(...arguments),this.allDaySplitter=new fW,this.headerElRef=dn(),this.rootElRef=dn(),this.scrollerElRef=dn(),this.state={slatCoords:null},this.handleScrollTopRequest=t=>{let n=this.scrollerElRef.current;n&&(n.scrollTop=t)},this.renderHeadAxis=(t,n="")=>{let{options:r}=this.context,{dateProfile:o}=this.props,i=o.renderRange,l=rs(i.start,i.end)===1?ad(this.context,i.start,"week"):{};return r.weekNumbers&&t==="day"?Z(k1,{elTag:"th",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},date:i.start,defaultFormat:mW},u=>Z("div",{className:["fc-timegrid-axis-frame","fc-scrollgrid-shrink-frame","fc-timegrid-axis-frame-liquid"].join(" "),style:{height:n}},Z(u,{elTag:"a",elClasses:["fc-timegrid-axis-cushion","fc-scrollgrid-shrink-cushion","fc-scrollgrid-sync-inner"],elAttrs:l}))):Z("th",{"aria-hidden":!0,className:"fc-timegrid-axis"},Z("div",{className:"fc-timegrid-axis-frame",style:{height:n}}))},this.renderTableRowAxis=t=>{let{options:n,viewApi:r}=this.context,o={text:n.allDayText,view:r};return Z(Wn,{elTag:"td",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},renderProps:o,generatorName:"allDayContent",customGenerator:n.allDayContent,defaultGenerator:bW,classNameGenerator:n.allDayClassNames,didMount:n.allDayDidMount,willUnmount:n.allDayWillUnmount},i=>Z("div",{className:["fc-timegrid-axis-frame","fc-scrollgrid-shrink-frame",t==null?" fc-timegrid-axis-frame-liquid":""].join(" "),style:{height:t}},Z(i,{elTag:"span",elClasses:["fc-timegrid-axis-cushion","fc-scrollgrid-shrink-cushion","fc-scrollgrid-sync-inner"]})))},this.handleSlatCoords=t=>{this.setState({slatCoords:t})}}renderSimpleLayout(t,n,r){let{context:o,props:i}=this,s=[],l=ld(o.options);return t&&s.push({type:"header",key:"header",isSticky:l,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:t}}),n&&(s.push({type:"body",key:"all-day",chunk:{content:n}}),s.push({type:"body",key:"all-day-divider",outerContent:Z("tr",{role:"presentation",className:"fc-scrollgrid-section"},Z("td",{className:"fc-timegrid-divider "+o.theme.getClass("tableCellShaded")}))})),s.push({type:"body",key:"body",liquid:!0,expandRows:!!o.options.expandRows,chunk:{scrollerElRef:this.scrollerElRef,content:r}}),Z(rd,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:o.viewSpec},Z(xm,{liquid:!i.isHeightAuto&&!i.forPrint,collapsibleWidth:i.forPrint,cols:[{width:"shrink"}],sections:s}))}renderHScrollLayout(t,n,r,o,i,s,l){let u=this.context.pluginHooks.scrollGridImpl;if(!u)throw new Error("No ScrollGrid implementation");let{context:d,props:f}=this,g=!f.forPrint&&ld(d.options),b=!f.forPrint&&T1(d.options),m=[];t&&m.push({type:"header",key:"header",isSticky:g,syncRowHeights:!0,chunks:[{key:"axis",rowContent:p=>Z("tr",{role:"presentation"},this.renderHeadAxis("day",p.rowSyncHeights[0]))},{key:"cols",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:t}]}),n&&(m.push({type:"body",key:"all-day",syncRowHeights:!0,chunks:[{key:"axis",rowContent:p=>Z("tr",{role:"presentation"},this.renderTableRowAxis(p.rowSyncHeights[0]))},{key:"cols",content:n}]}),m.push({key:"all-day-divider",type:"body",outerContent:Z("tr",{role:"presentation",className:"fc-scrollgrid-section"},Z("td",{colSpan:2,className:"fc-timegrid-divider "+d.theme.getClass("tableCellShaded")}))}));let v=d.options.nowIndicator;return m.push({type:"body",key:"body",liquid:!0,expandRows:!!d.options.expandRows,chunks:[{key:"axis",content:p=>Z("div",{className:"fc-timegrid-axis-chunk"},Z("table",{"aria-hidden":!0,style:{height:p.expandRows?p.clientHeight:""}},p.tableColGroupNode,Z("tbody",null,Z(gW,{slatMetas:s}))),Z("div",{className:"fc-timegrid-now-indicator-container"},Z(ha,{unit:v?"minute":"day"},y=>{let S=v&&l&&l.safeComputeTop(y);return typeof S=="number"?Z(_m,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:S},isAxis:!0,date:y}):null})))},{key:"cols",scrollerElRef:this.scrollerElRef,content:r}]}),b&&m.push({key:"footer",type:"footer",isSticky:!0,chunks:[{key:"axis",content:lg},{key:"cols",content:lg}]}),Z(rd,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:d.viewSpec},Z(u,{liquid:!f.isHeightAuto&&!f.forPrint,forPrint:f.forPrint,collapsibleWidth:!1,colGroups:[{width:"shrink",cols:[{width:"shrink"}]},{cols:[{span:o,minWidth:i}]}],sections:m}))}getAllDayMaxEventProps(){let{dayMaxEvents:t,dayMaxEventRows:n}=this.context.options;return(t===!0||n===!0)&&(t=void 0,n=yW),{dayMaxEvents:t,dayMaxEventRows:n}}}function bW(e){return e.text}class wW{constructor(t,n,r){this.positions=t,this.dateProfile=n,this.slotDuration=r}safeComputeTop(t){let{dateProfile:n}=this;if(yo(n.currentRange,t)){let r=Dt(t),o=t.valueOf()-r.valueOf();if(o>=Cr(n.slotMinTime)&&o<Cr(n.slotMaxTime))return this.computeTimeTop(tt(o))}return null}computeDateTop(t,n){return n||(n=Dt(t)),this.computeTimeTop(tt(t.valueOf()-n.valueOf()))}computeTimeTop(t){let{positions:n,dateProfile:r}=this,o=n.els.length,i=(t.milliseconds-Cr(r.slotMinTime))/Cr(this.slotDuration),s,l;return i=Math.max(0,i),i=Math.min(o,i),s=Math.floor(i),s=Math.min(s,o-1),l=i-s,n.tops[s]+n.getHeight(s)*l}}class SW extends ct{render(){let{props:t,context:n}=this,{options:r}=n,{slatElRefs:o}=t;return Z("tbody",null,t.slatMetas.map((i,s)=>{let l={time:i.time,date:n.dateEnv.toDate(i.date),view:n.viewApi};return Z("tr",{key:i.key,ref:o.createRef(i.key)},t.axis&&Z(J1,Object.assign({},i)),Z(Wn,{elTag:"td",elClasses:["fc-timegrid-slot","fc-timegrid-slot-lane",!i.isLabeled&&"fc-timegrid-slot-minor"],elAttrs:{"data-time":i.isoTimeStr},renderProps:l,generatorName:"slotLaneContent",customGenerator:r.slotLaneContent,classNameGenerator:r.slotLaneClassNames,didMount:r.slotLaneDidMount,willUnmount:r.slotLaneWillUnmount}))}))}}class EW extends ct{constructor(){super(...arguments),this.rootElRef=dn(),this.slatElRefs=new mo}render(){let{props:t,context:n}=this;return Z("div",{ref:this.rootElRef,className:"fc-timegrid-slots"},Z("table",{"aria-hidden":!0,className:n.theme.getClass("table"),style:{minWidth:t.tableMinWidth,width:t.clientWidth,height:t.minHeight}},t.tableColGroupNode,Z(SW,{slatElRefs:this.slatElRefs,axis:t.axis,slatMetas:t.slatMetas})))}componentDidMount(){this.updateSizing()}componentDidUpdate(){this.updateSizing()}componentWillUnmount(){this.props.onCoords&&this.props.onCoords(null)}updateSizing(){let{context:t,props:n}=this;n.onCoords&&n.clientWidth!==null&&this.rootElRef.current.offsetHeight&&n.onCoords(new wW(new ia(this.rootElRef.current,xW(this.slatElRefs.currentMap,n.slatMetas),!1,!0),this.props.dateProfile,t.options.slotDuration))}}function xW(e,t){return t.map(n=>e[n.key])}function Fa(e,t){let n=[],r;for(r=0;r<t;r+=1)n.push([]);if(e)for(r=0;r<e.length;r+=1)n[e[r].col].push(e[r]);return n}function zw(e,t){let n=[];if(e){for(let r=0;r<t;r+=1)n[r]={affectedInstances:e.affectedInstances,isEvent:e.isEvent,segs:[]};for(let r of e.segs)n[r.col].segs.push(r)}else for(let r=0;r<t;r+=1)n[r]=null;return n}class CW extends ct{render(){let{props:t}=this;return Z(M1,{elClasses:["fc-timegrid-more-link"],elStyle:{top:t.top,bottom:t.bottom},allDayDate:null,moreCnt:t.hiddenSegs.length,allSegs:t.hiddenSegs,hiddenSegs:t.hiddenSegs,extraDateSpan:t.extraDateSpan,dateProfile:t.dateProfile,todayRange:t.todayRange,popoverContent:()=>tD(t.hiddenSegs,t),defaultGenerator:DW,forceTimed:!0},n=>Z(n,{elTag:"div",elClasses:["fc-timegrid-more-link-inner","fc-sticky"]}))}}function DW(e){return e.shortText}function _W(e,t,n){let r=new y1;t!=null&&(r.strictOrder=t),n!=null&&(r.maxStackCnt=n);let o=r.addSegs(e),i=$H(o),s=RW(r);return s=kW(s,1),{segRects:MW(s),hiddenGroups:i}}function RW(e){const{entriesByLevel:t}=e,n=Am((r,o)=>r+":"+o,(r,o)=>{let i=AW(e,r,o),s=Lw(i,n),l=t[r][o];return[Object.assign(Object.assign({},l),{nextLevelNodes:s[0]}),l.thickness+s[1]]});return Lw(t.length?{level:0,lateralStart:0,lateralEnd:t[0].length}:null,n)[0]}function Lw(e,t){if(!e)return[[],0];let{level:n,lateralStart:r,lateralEnd:o}=e,i=r,s=[];for(;i<o;)s.push(t(n,i)),i+=1;return s.sort(TW),[s.map(OW),s[0][1]]}function TW(e,t){return t[1]-e[1]}function OW(e){return e[0]}function AW(e,t,n){let{levelCoords:r,entriesByLevel:o}=e,i=o[t][n],s=r[t]+i.thickness,l=r.length,u=t;for(;u<l&&r[u]<s;u+=1);for(;u<l;u+=1){let d=o[u],f,g=ag(d,i.span.start,sg),b=g[0]+g[1],m=b;for(;(f=d[m])&&f.span.start<i.span.end;)m+=1;if(b<m)return{level:u,lateralStart:b,lateralEnd:m}}return null}function kW(e,t){const n=Am((r,o,i)=>Fi(r),(r,o,i)=>{let{nextLevelNodes:s,thickness:l}=r,u=l+i,d=l/u,f,g=[];if(!s.length)f=t;else for(let m of s)if(f===void 0){let v=n(m,o,u);f=v[0],g.push(v[1])}else{let v=n(m,f,0);g.push(v[1])}let b=(f-o)*d;return[f-b,Object.assign(Object.assign({},r),{thickness:b,nextLevelNodes:g})]});return e.map(r=>n(r,0,0)[1])}function MW(e){let t=[];const n=Am((o,i,s)=>Fi(o),(o,i,s)=>{let l=Object.assign(Object.assign({},o),{levelCoord:i,stackDepth:s,stackForward:0});return t.push(l),l.stackForward=r(o.nextLevelNodes,i+o.thickness,s+1)+1});function r(o,i,s){let l=0;for(let u of o)l=Math.max(n(u,i,s),l);return l}return r(e,0,0),t}function Am(e,t){const n={};return(...r)=>{let o=e(...r);return o in n?n[o]:n[o]=t(...r)}}function Bw(e,t,n=null,r=0){let o=[];if(n)for(let i=0;i<e.length;i+=1){let s=e[i],l=n.computeDateTop(s.start,t),u=Math.max(l+(r||0),n.computeDateTop(s.end,t));o.push({start:Math.round(l),end:Math.round(u)})}return o}function PW(e,t,n,r){let o=[],i=[];for(let d=0;d<e.length;d+=1){let f=t[d];f?o.push({index:d,thickness:1,span:f}):i.push(e[d])}let{segRects:s,hiddenGroups:l}=_W(o,n,r),u=[];for(let d of s)u.push({seg:e[d.index],rect:d});for(let d of i)u.push({seg:d,rect:null});return{segPlacements:u,hiddenGroups:l}}const IW=Pt({hour:"numeric",minute:"2-digit",meridiem:!1});class eD extends ct{render(){return Z(Dm,Object.assign({},this.props,{elClasses:["fc-timegrid-event","fc-v-event",this.props.isShort&&"fc-timegrid-event-short"],defaultTimeFormat:IW}))}}class NW extends ct{constructor(){super(...arguments),this.sortEventSegs=Le(s1)}render(){let{props:t,context:n}=this,{options:r}=n,o=r.selectMirror,i=t.eventDrag&&t.eventDrag.segs||t.eventResize&&t.eventResize.segs||o&&t.dateSelectionSegs||[],s=t.eventDrag&&t.eventDrag.affectedInstances||t.eventResize&&t.eventResize.affectedInstances||{},l=this.sortEventSegs(t.fgEventSegs,r.eventOrder);return Z(Rm,{elTag:"td",elRef:t.elRef,elClasses:["fc-timegrid-col",...t.extraClassNames||[]],elAttrs:Object.assign({role:"gridcell"},t.extraDataAttrs),date:t.date,dateProfile:t.dateProfile,todayRange:t.todayRange,extraRenderProps:t.extraRenderProps},u=>Z("div",{className:"fc-timegrid-col-frame"},Z("div",{className:"fc-timegrid-col-bg"},this.renderFillSegs(t.businessHourSegs,"non-business"),this.renderFillSegs(t.bgEventSegs,"bg-event"),this.renderFillSegs(t.dateSelectionSegs,"highlight")),Z("div",{className:"fc-timegrid-col-events"},this.renderFgSegs(l,s,!1,!1,!1)),Z("div",{className:"fc-timegrid-col-events"},this.renderFgSegs(i,{},!!t.eventDrag,!!t.eventResize,!!o,"mirror")),Z("div",{className:"fc-timegrid-now-indicator-container"},this.renderNowIndicator(t.nowIndicatorSegs)),Tm(r)&&Z(u,{elTag:"div",elClasses:["fc-timegrid-col-misc"]})))}renderFgSegs(t,n,r,o,i,s){let{props:l}=this;return l.forPrint?tD(t,l):this.renderPositionedFgSegs(t,n,r,o,i,s)}renderPositionedFgSegs(t,n,r,o,i,s){let{eventMaxStack:l,eventShortHeight:u,eventOrderStrict:d,eventMinHeight:f}=this.context.options,{date:g,slatCoords:b,eventSelection:m,todayRange:v,nowDate:p}=this.props,y=r||o||i,S=Bw(t,g,b,f),{segPlacements:E,hiddenGroups:D}=PW(t,S,d,l);return Z(Ct,null,this.renderHiddenGroups(D,t),E.map(R=>{let{seg:C,rect:T}=R,O=C.eventRange.instance.instanceId,P=y||!!(!n[O]&&T),H=hh(T&&T.span),Q=!y&&T?this.computeSegHStyle(T):{left:0,right:0},q=!!T&&T.stackForward>0,x=!!T&&T.span.end-T.span.start<u;return Z("div",{className:"fc-timegrid-event-harness"+(q?" fc-timegrid-event-harness-inset":""),key:s||O,style:Object.assign(Object.assign({visibility:P?"":"hidden"},H),Q)},Z(eD,Object.assign({seg:C,isDragging:r,isResizing:o,isDateSelecting:i,isSelected:O===m,isShort:x},Zo(C,v,p))))}))}renderHiddenGroups(t,n){let{extraDateSpan:r,dateProfile:o,todayRange:i,nowDate:s,eventSelection:l,eventDrag:u,eventResize:d}=this.props;return Z(Ct,null,t.map(f=>{let g=hh(f.span),b=jW(f.entries,n);return Z(CW,{key:LC(P1(b)),hiddenSegs:b,top:g.top,bottom:g.bottom,extraDateSpan:r,dateProfile:o,todayRange:i,nowDate:s,eventSelection:l,eventDrag:u,eventResize:d})}))}renderFillSegs(t,n){let{props:r,context:o}=this,s=Bw(t,r.date,r.slatCoords,o.options.eventMinHeight).map((l,u)=>{let d=t[u];return Z("div",{key:l1(d.eventRange),className:"fc-timegrid-bg-harness",style:hh(l)},n==="bg-event"?Z(O1,Object.assign({seg:d},Zo(d,r.todayRange,r.nowDate))):A1(n))});return Z(Ct,null,s)}renderNowIndicator(t){let{slatCoords:n,date:r}=this.props;return n?t.map((o,i)=>Z(_m,{key:i,elClasses:["fc-timegrid-now-indicator-line"],elStyle:{top:n.computeDateTop(o.start,r)},isAxis:!1,date:r})):null}computeSegHStyle(t){let{isRtl:n,options:r}=this.context,o=r.slotEventOverlap,i=t.levelCoord,s=t.levelCoord+t.thickness,l,u;o&&(s=Math.min(1,i+(s-i)*2)),n?(l=1-s,u=i):(l=i,u=1-s);let d={zIndex:t.stackDepth+1,left:l*100+"%",right:u*100+"%"};return o&&!t.stackForward&&(d[n?"marginLeft":"marginRight"]=10*2),d}}function tD(e,{todayRange:t,nowDate:n,eventSelection:r,eventDrag:o,eventResize:i}){let s=(o?o.affectedInstances:null)||(i?i.affectedInstances:null)||{};return Z(Ct,null,e.map(l=>{let u=l.eventRange.instance.instanceId;return Z("div",{key:u,style:{visibility:s[u]?"hidden":""}},Z(eD,Object.assign({seg:l,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:u===r,isShort:!1},Zo(l,t,n))))}))}function hh(e){return e?{top:e.start,bottom:-e.end}:{top:"",bottom:""}}function jW(e,t){return e.map(n=>t[n.index])}class $W extends ct{constructor(){super(...arguments),this.splitFgEventSegs=Le(Fa),this.splitBgEventSegs=Le(Fa),this.splitBusinessHourSegs=Le(Fa),this.splitNowIndicatorSegs=Le(Fa),this.splitDateSelectionSegs=Le(Fa),this.splitEventDrag=Le(zw),this.splitEventResize=Le(zw),this.rootElRef=dn(),this.cellElRefs=new mo}render(){let{props:t,context:n}=this,r=n.options.nowIndicator&&t.slatCoords&&t.slatCoords.safeComputeTop(t.nowDate),o=t.cells.length,i=this.splitFgEventSegs(t.fgEventSegs,o),s=this.splitBgEventSegs(t.bgEventSegs,o),l=this.splitBusinessHourSegs(t.businessHourSegs,o),u=this.splitNowIndicatorSegs(t.nowIndicatorSegs,o),d=this.splitDateSelectionSegs(t.dateSelectionSegs,o),f=this.splitEventDrag(t.eventDrag,o),g=this.splitEventResize(t.eventResize,o);return Z("div",{className:"fc-timegrid-cols",ref:this.rootElRef},Z("table",{role:"presentation",style:{minWidth:t.tableMinWidth,width:t.clientWidth}},t.tableColGroupNode,Z("tbody",{role:"presentation"},Z("tr",{role:"row"},t.axis&&Z("td",{"aria-hidden":!0,className:"fc-timegrid-col fc-timegrid-axis"},Z("div",{className:"fc-timegrid-col-frame"},Z("div",{className:"fc-timegrid-now-indicator-container"},typeof r=="number"&&Z(_m,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:r},isAxis:!0,date:t.nowDate})))),t.cells.map((b,m)=>Z(NW,{key:b.key,elRef:this.cellElRefs.createRef(b.key),dateProfile:t.dateProfile,date:b.date,nowDate:t.nowDate,todayRange:t.todayRange,extraRenderProps:b.extraRenderProps,extraDataAttrs:b.extraDataAttrs,extraClassNames:b.extraClassNames,extraDateSpan:b.extraDateSpan,fgEventSegs:i[m],bgEventSegs:s[m],businessHourSegs:l[m],nowIndicatorSegs:u[m],dateSelectionSegs:d[m],eventDrag:f[m],eventResize:g[m],slatCoords:t.slatCoords,eventSelection:t.eventSelection,forPrint:t.forPrint}))))))}componentDidMount(){this.updateCoords()}componentDidUpdate(){this.updateCoords()}updateCoords(){let{props:t}=this;t.onColCoords&&t.clientWidth!==null&&t.onColCoords(new ia(this.rootElRef.current,zW(this.cellElRefs.currentMap,t.cells),!0,!1))}}function zW(e,t){return t.map(n=>e[n.key])}class LW extends Ur{constructor(){super(...arguments),this.processSlotOptions=Le(BW),this.state={slatCoords:null},this.handleRootEl=t=>{t?this.context.registerInteractiveComponent(this,{el:t,isHitComboAllowed:this.props.isHitComboAllowed}):this.context.unregisterInteractiveComponent(this)},this.handleScrollRequest=t=>{let{onScrollTopRequest:n}=this.props,{slatCoords:r}=this.state;if(n&&r){if(t.time){let o=r.computeTimeTop(t.time);o=Math.ceil(o),o&&(o+=1),n(o)}return!0}return!1},this.handleColCoords=t=>{this.colCoords=t},this.handleSlatCoords=t=>{this.setState({slatCoords:t}),this.props.onSlatCoords&&this.props.onSlatCoords(t)}}render(){let{props:t,state:n}=this;return Z("div",{className:"fc-timegrid-body",ref:this.handleRootEl,style:{width:t.clientWidth,minWidth:t.tableMinWidth}},Z(EW,{axis:t.axis,dateProfile:t.dateProfile,slatMetas:t.slatMetas,clientWidth:t.clientWidth,minHeight:t.expandRows?t.clientHeight:"",tableMinWidth:t.tableMinWidth,tableColGroupNode:t.axis?t.tableColGroupNode:null,onCoords:this.handleSlatCoords}),Z($W,{cells:t.cells,axis:t.axis,dateProfile:t.dateProfile,businessHourSegs:t.businessHourSegs,bgEventSegs:t.bgEventSegs,fgEventSegs:t.fgEventSegs,dateSelectionSegs:t.dateSelectionSegs,eventSelection:t.eventSelection,eventDrag:t.eventDrag,eventResize:t.eventResize,todayRange:t.todayRange,nowDate:t.nowDate,nowIndicatorSegs:t.nowIndicatorSegs,clientWidth:t.clientWidth,tableMinWidth:t.tableMinWidth,tableColGroupNode:t.tableColGroupNode,slatCoords:n.slatCoords,onColCoords:this.handleColCoords,forPrint:t.forPrint}))}componentDidMount(){this.scrollResponder=this.context.createScrollResponder(this.handleScrollRequest)}componentDidUpdate(t){this.scrollResponder.update(t.dateProfile!==this.props.dateProfile)}componentWillUnmount(){this.scrollResponder.detach()}queryHit(t,n){let{dateEnv:r,options:o}=this.context,{colCoords:i}=this,{dateProfile:s}=this.props,{slatCoords:l}=this.state,{snapDuration:u,snapsPerSlot:d}=this.processSlotOptions(this.props.slotDuration,o.snapDuration),f=i.leftToIndex(t),g=l.positions.topToIndex(n);if(f!=null&&g!=null){let b=this.props.cells[f],m=l.positions.tops[g],v=l.positions.getHeight(g),p=(n-m)/v,y=Math.floor(p*d),S=g*d+y,E=this.props.cells[f].date,D=eg(s.slotMinTime,_V(u,S)),R=r.add(E,D),C=r.add(R,u);return{dateProfile:s,dateSpan:Object.assign({range:{start:R,end:C},allDay:!1},b.extraDateSpan),dayEl:i.els[f],rect:{left:i.lefts[f],right:i.rights[f],top:m,bottom:m+v},layer:0}}return null}}function BW(e,t){let n=t||e,r=rm(e,n);return r===null&&(n=e,r=1),{snapDuration:n,snapsPerSlot:r}}class VW extends x1{sliceRange(t,n){let r=[];for(let o=0;o<n.length;o+=1){let i=Qi(t,n[o]);i&&r.push({start:i.start,end:i.end,isStart:i.start.valueOf()===t.start.valueOf(),isEnd:i.end.valueOf()===t.end.valueOf(),col:o})}return r}}class HW extends Ur{constructor(){super(...arguments),this.buildDayRanges=Le(FW),this.slicer=new VW,this.timeColsRef=dn()}render(){let{props:t,context:n}=this,{dateProfile:r,dayTableModel:o}=t,{nowIndicator:i,nextDayThreshold:s}=n.options,l=this.buildDayRanges(o,r,n.dateEnv);return Z(ha,{unit:i?"minute":"day"},(u,d)=>Z(LW,Object.assign({ref:this.timeColsRef},this.slicer.sliceProps(t,r,null,n,l),{forPrint:t.forPrint,axis:t.axis,dateProfile:r,slatMetas:t.slatMetas,slotDuration:t.slotDuration,cells:o.cells[0],tableColGroupNode:t.tableColGroupNode,tableMinWidth:t.tableMinWidth,clientWidth:t.clientWidth,clientHeight:t.clientHeight,expandRows:t.expandRows,nowDate:u,nowIndicatorSegs:i&&this.slicer.sliceNowDate(u,r,s,n,l),todayRange:d,onScrollTopRequest:t.onScrollTopRequest,onSlatCoords:t.onSlatCoords})))}}function FW(e,t,n){let r=[];for(let o of e.headerDates)r.push({start:n.add(o,t.slotMinTime),end:n.add(o,t.slotMaxTime)});return r}const Vw=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}];function UW(e,t,n,r,o){let i=new Date(0),s=e,l=tt(0),u=n||WW(r),d=[];for(;Cr(s)<Cr(t);){let f=o.add(i,s),g=rm(l,u)!==null;d.push({date:f,time:s,key:f.toISOString(),isoTimeStr:HV(f),isLabeled:g}),s=eg(s,r),l=eg(l,r)}return d}function WW(e){let t,n,r;for(t=Vw.length-1;t>=0;t-=1)if(n=tt(Vw[t]),r=rm(n,e),r!==null&&r>1)return n;return e}class YW extends vW{constructor(){super(...arguments),this.buildTimeColsModel=Le(GW),this.buildSlatMetas=Le(UW)}render(){let{options:t,dateEnv:n,dateProfileGenerator:r}=this.context,{props:o}=this,{dateProfile:i}=o,s=this.buildTimeColsModel(i,r),l=this.allDaySplitter.splitProps(o),u=this.buildSlatMetas(i.slotMinTime,i.slotMaxTime,t.slotLabelInterval,t.slotDuration,n),{dayMinWidth:d}=t,f=!d,g=d,b=t.dayHeaders&&Z(w1,{dates:s.headerDates,dateProfile:i,datesRepDistinctDays:!0,renderIntro:f?this.renderHeadAxis:null}),m=t.allDaySlot!==!1&&(p=>Z(K1,Object.assign({},l.allDay,{dateProfile:i,dayTableModel:s,nextDayThreshold:t.nextDayThreshold,tableMinWidth:p.tableMinWidth,colGroupNode:p.tableColGroupNode,renderRowIntro:f?this.renderTableRowAxis:null,showWeekNumbers:!1,expandRows:!1,headerAlignElRef:this.headerElRef,clientWidth:p.clientWidth,clientHeight:p.clientHeight,forPrint:o.forPrint},this.getAllDayMaxEventProps()))),v=p=>Z(HW,Object.assign({},l.timed,{dayTableModel:s,dateProfile:i,axis:f,slotDuration:t.slotDuration,slatMetas:u,forPrint:o.forPrint,tableColGroupNode:p.tableColGroupNode,tableMinWidth:p.tableMinWidth,clientWidth:p.clientWidth,clientHeight:p.clientHeight,onSlatCoords:this.handleSlatCoords,expandRows:p.expandRows,onScrollTopRequest:this.handleScrollTopRequest}));return g?this.renderHScrollLayout(b,m,v,s.colCnt,d,u,this.state.slatCoords):this.renderSimpleLayout(b,m,v)}}function GW(e,t){let n=new S1(e.renderRange,t);return new E1(n,!1)}var qW='.fc-v-event{background-color:var(--fc-event-bg-color);border:1px solid var(--fc-event-border-color);display:block}.fc-v-event .fc-event-main{color:var(--fc-event-text-color);height:100%}.fc-v-event .fc-event-main-frame{display:flex;flex-direction:column;height:100%}.fc-v-event .fc-event-time{flex-grow:0;flex-shrink:0;max-height:100%;overflow:hidden}.fc-v-event .fc-event-title-container{flex-grow:1;flex-shrink:1;min-height:0}.fc-v-event .fc-event-title{bottom:0;max-height:100%;overflow:hidden;top:0}.fc-v-event:not(.fc-event-start){border-top-left-radius:0;border-top-right-radius:0;border-top-width:0}.fc-v-event:not(.fc-event-end){border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom-width:0}.fc-v-event.fc-event-selected:before{left:-10px;right:-10px}.fc-v-event .fc-event-resizer-start{cursor:n-resize}.fc-v-event .fc-event-resizer-end{cursor:s-resize}.fc-v-event:not(.fc-event-selected) .fc-event-resizer{height:var(--fc-event-resizer-thickness);left:0;right:0}.fc-v-event:not(.fc-event-selected) .fc-event-resizer-start{top:calc(var(--fc-event-resizer-thickness)/-2)}.fc-v-event:not(.fc-event-selected) .fc-event-resizer-end{bottom:calc(var(--fc-event-resizer-thickness)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer{left:50%;margin-left:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer-start{top:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer-end{bottom:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc .fc-timegrid .fc-daygrid-body{z-index:2}.fc .fc-timegrid-divider{padding:0 0 2px}.fc .fc-timegrid-body{min-height:100%;position:relative;z-index:1}.fc .fc-timegrid-axis-chunk{position:relative}.fc .fc-timegrid-axis-chunk>table,.fc .fc-timegrid-slots{position:relative;z-index:1}.fc .fc-timegrid-slot{border-bottom:0;height:1.5em}.fc .fc-timegrid-slot:empty:before{content:"\\00a0"}.fc .fc-timegrid-slot-minor{border-top-style:dotted}.fc .fc-timegrid-slot-label-cushion{display:inline-block;white-space:nowrap}.fc .fc-timegrid-slot-label{vertical-align:middle}.fc .fc-timegrid-axis-cushion,.fc .fc-timegrid-slot-label-cushion{padding:0 4px}.fc .fc-timegrid-axis-frame-liquid{height:100%}.fc .fc-timegrid-axis-frame{align-items:center;display:flex;justify-content:flex-end;overflow:hidden}.fc .fc-timegrid-axis-cushion{flex-shrink:0;max-width:60px}.fc-direction-ltr .fc-timegrid-slot-label-frame{text-align:right}.fc-direction-rtl .fc-timegrid-slot-label-frame{text-align:left}.fc-liquid-hack .fc-timegrid-axis-frame-liquid{bottom:0;height:auto;left:0;position:absolute;right:0;top:0}.fc .fc-timegrid-col.fc-day-today{background-color:var(--fc-today-bg-color)}.fc .fc-timegrid-col-frame{min-height:100%;position:relative}.fc-media-screen.fc-liquid-hack .fc-timegrid-col-frame{bottom:0;height:auto;left:0;position:absolute;right:0;top:0}.fc-media-screen .fc-timegrid-cols{bottom:0;left:0;position:absolute;right:0;top:0}.fc-media-screen .fc-timegrid-cols>table{height:100%}.fc-media-screen .fc-timegrid-col-bg,.fc-media-screen .fc-timegrid-col-events,.fc-media-screen .fc-timegrid-now-indicator-container{left:0;position:absolute;right:0;top:0}.fc .fc-timegrid-col-bg{z-index:2}.fc .fc-timegrid-col-bg .fc-non-business{z-index:1}.fc .fc-timegrid-col-bg .fc-bg-event{z-index:2}.fc .fc-timegrid-col-bg .fc-highlight{z-index:3}.fc .fc-timegrid-bg-harness{left:0;position:absolute;right:0}.fc .fc-timegrid-col-events{z-index:3}.fc .fc-timegrid-now-indicator-container{bottom:0;overflow:hidden}.fc-direction-ltr .fc-timegrid-col-events{margin:0 2.5% 0 2px}.fc-direction-rtl .fc-timegrid-col-events{margin:0 2px 0 2.5%}.fc-timegrid-event-harness{position:absolute}.fc-timegrid-event-harness>.fc-timegrid-event{bottom:0;left:0;position:absolute;right:0;top:0}.fc-timegrid-event-harness-inset .fc-timegrid-event,.fc-timegrid-event.fc-event-mirror,.fc-timegrid-more-link{box-shadow:0 0 0 1px var(--fc-page-bg-color)}.fc-timegrid-event,.fc-timegrid-more-link{border-radius:3px;font-size:var(--fc-small-font-size)}.fc-timegrid-event{margin-bottom:1px}.fc-timegrid-event .fc-event-main{padding:1px 1px 0}.fc-timegrid-event .fc-event-time{font-size:var(--fc-small-font-size);margin-bottom:1px;white-space:nowrap}.fc-timegrid-event-short .fc-event-main-frame{flex-direction:row;overflow:hidden}.fc-timegrid-event-short .fc-event-time:after{content:"\\00a0-\\00a0"}.fc-timegrid-event-short .fc-event-title{font-size:var(--fc-small-font-size)}.fc-timegrid-more-link{background:var(--fc-more-link-bg-color);color:var(--fc-more-link-text-color);cursor:pointer;margin-bottom:1px;position:absolute;z-index:9999}.fc-timegrid-more-link-inner{padding:3px 2px;top:0}.fc-direction-ltr .fc-timegrid-more-link{right:0}.fc-direction-rtl .fc-timegrid-more-link{left:0}.fc .fc-timegrid-now-indicator-arrow,.fc .fc-timegrid-now-indicator-line{pointer-events:none}.fc .fc-timegrid-now-indicator-line{border-color:var(--fc-now-indicator-color);border-style:solid;border-width:1px 0 0;left:0;position:absolute;right:0;z-index:4}.fc .fc-timegrid-now-indicator-arrow{border-color:var(--fc-now-indicator-color);border-style:solid;margin-top:-5px;position:absolute;z-index:4}.fc-direction-ltr .fc-timegrid-now-indicator-arrow{border-bottom-color:transparent;border-top-color:transparent;border-width:5px 0 5px 6px;left:0}.fc-direction-rtl .fc-timegrid-now-indicator-arrow{border-bottom-color:transparent;border-top-color:transparent;border-width:5px 6px 5px 0;right:0}';Kg(qW);const XW={allDaySlot:Boolean};var QW=xo({name:"@fullcalendar/timegrid",initialView:"timeGridWeek",optionRefiners:XW,views:{timeGrid:{component:YW,usesMinMaxTime:!0,allDaySlot:!0,slotDuration:"00:30:00",slotEventOverlap:!0},timeGridDay:{type:"timeGrid",duration:{days:1}},timeGridWeek:{type:"timeGrid",duration:{weeks:1}}}});Em.touchMouseIgnoreWait=500;let ug=0,cd=0,dg=!1;class nD{constructor(t){this.subjectEl=null,this.selector="",this.handleSelector="",this.shouldIgnoreMove=!1,this.shouldWatchScroll=!0,this.isDragging=!1,this.isTouchDragging=!1,this.wasTouchScroll=!1,this.handleMouseDown=n=>{if(!this.shouldIgnoreMouse()&&ZW(n)&&this.tryStart(n)){let r=this.createEventFromMouse(n,!0);this.emitter.trigger("pointerdown",r),this.initScrollWatch(r),this.shouldIgnoreMove||document.addEventListener("mousemove",this.handleMouseMove),document.addEventListener("mouseup",this.handleMouseUp)}},this.handleMouseMove=n=>{let r=this.createEventFromMouse(n);this.recordCoords(r),this.emitter.trigger("pointermove",r)},this.handleMouseUp=n=>{document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp),this.emitter.trigger("pointerup",this.createEventFromMouse(n)),this.cleanup()},this.handleTouchStart=n=>{if(this.tryStart(n)){this.isTouchDragging=!0;let r=this.createEventFromTouch(n,!0);this.emitter.trigger("pointerdown",r),this.initScrollWatch(r);let o=n.target;this.shouldIgnoreMove||o.addEventListener("touchmove",this.handleTouchMove),o.addEventListener("touchend",this.handleTouchEnd),o.addEventListener("touchcancel",this.handleTouchEnd),window.addEventListener("scroll",this.handleTouchScroll,!0)}},this.handleTouchMove=n=>{let r=this.createEventFromTouch(n);this.recordCoords(r),this.emitter.trigger("pointermove",r)},this.handleTouchEnd=n=>{if(this.isDragging){let r=n.target;r.removeEventListener("touchmove",this.handleTouchMove),r.removeEventListener("touchend",this.handleTouchEnd),r.removeEventListener("touchcancel",this.handleTouchEnd),window.removeEventListener("scroll",this.handleTouchScroll,!0),this.emitter.trigger("pointerup",this.createEventFromTouch(n)),this.cleanup(),this.isTouchDragging=!1,KW()}},this.handleTouchScroll=()=>{this.wasTouchScroll=!0},this.handleScroll=n=>{if(!this.shouldIgnoreMove){let r=window.scrollX-this.prevScrollX+this.prevPageX,o=window.scrollY-this.prevScrollY+this.prevPageY;this.emitter.trigger("pointermove",{origEvent:n,isTouch:this.isTouchDragging,subjectEl:this.subjectEl,pageX:r,pageY:o,deltaX:r-this.origPageX,deltaY:o-this.origPageY})}},this.containerEl=t,this.emitter=new Qd,t.addEventListener("mousedown",this.handleMouseDown),t.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),JW()}destroy(){this.containerEl.removeEventListener("mousedown",this.handleMouseDown),this.containerEl.removeEventListener("touchstart",this.handleTouchStart,{passive:!0}),e4()}tryStart(t){let n=this.querySubjectEl(t),r=t.target;return n&&(!this.handleSelector||on(r,this.handleSelector))?(this.subjectEl=n,this.isDragging=!0,this.wasTouchScroll=!1,!0):!1}cleanup(){dg=!1,this.isDragging=!1,this.subjectEl=null,this.destroyScrollWatch()}querySubjectEl(t){return this.selector?on(t.target,this.selector):this.containerEl}shouldIgnoreMouse(){return ug||this.isTouchDragging}cancelTouchScroll(){this.isDragging&&(dg=!0)}initScrollWatch(t){this.shouldWatchScroll&&(this.recordCoords(t),window.addEventListener("scroll",this.handleScroll,!0))}recordCoords(t){this.shouldWatchScroll&&(this.prevPageX=t.pageX,this.prevPageY=t.pageY,this.prevScrollX=window.scrollX,this.prevScrollY=window.scrollY)}destroyScrollWatch(){this.shouldWatchScroll&&window.removeEventListener("scroll",this.handleScroll,!0)}createEventFromMouse(t,n){let r=0,o=0;return n?(this.origPageX=t.pageX,this.origPageY=t.pageY):(r=t.pageX-this.origPageX,o=t.pageY-this.origPageY),{origEvent:t,isTouch:!1,subjectEl:this.subjectEl,pageX:t.pageX,pageY:t.pageY,deltaX:r,deltaY:o}}createEventFromTouch(t,n){let r=t.touches,o,i,s=0,l=0;return r&&r.length?(o=r[0].pageX,i=r[0].pageY):(o=t.pageX,i=t.pageY),n?(this.origPageX=o,this.origPageY=i):(s=o-this.origPageX,l=i-this.origPageY),{origEvent:t,isTouch:!0,subjectEl:this.subjectEl,pageX:o,pageY:i,deltaX:s,deltaY:l}}}function ZW(e){return e.button===0&&!e.ctrlKey}function KW(){ug+=1,setTimeout(()=>{ug-=1},Em.touchMouseIgnoreWait)}function JW(){cd+=1,cd===1&&window.addEventListener("touchmove",rD,{passive:!1})}function e4(){cd-=1,cd||window.removeEventListener("touchmove",rD,{passive:!1})}function rD(e){dg&&e.preventDefault()}class t4{constructor(){this.isVisible=!1,this.sourceEl=null,this.mirrorEl=null,this.sourceElRect=null,this.parentNode=document.body,this.zIndex=9999,this.revertDuration=0}start(t,n,r){this.sourceEl=t,this.sourceElRect=this.sourceEl.getBoundingClientRect(),this.origScreenX=n-window.scrollX,this.origScreenY=r-window.scrollY,this.deltaX=0,this.deltaY=0,this.updateElPosition()}handleMove(t,n){this.deltaX=t-window.scrollX-this.origScreenX,this.deltaY=n-window.scrollY-this.origScreenY,this.updateElPosition()}setIsVisible(t){t?this.isVisible||(this.mirrorEl&&(this.mirrorEl.style.display=""),this.isVisible=t,this.updateElPosition()):this.isVisible&&(this.mirrorEl&&(this.mirrorEl.style.display="none"),this.isVisible=t)}stop(t,n){let r=()=>{this.cleanup(),n()};t&&this.mirrorEl&&this.isVisible&&this.revertDuration&&(this.deltaX||this.deltaY)?this.doRevertAnimation(r,this.revertDuration):setTimeout(r,0)}doRevertAnimation(t,n){let r=this.mirrorEl,o=this.sourceEl.getBoundingClientRect();r.style.transition="top "+n+"ms,left "+n+"ms",yl(r,{left:o.left,top:o.top}),dV(r,()=>{r.style.transition="",t()})}cleanup(){this.mirrorEl&&(em(this.mirrorEl),this.mirrorEl=null),this.sourceEl=null}updateElPosition(){this.sourceEl&&this.isVisible&&yl(this.getMirrorEl(),{left:this.sourceElRect.left+this.deltaX,top:this.sourceElRect.top+this.deltaY})}getMirrorEl(){let t=this.sourceElRect,n=this.mirrorEl;return n||(n=this.mirrorEl=this.sourceEl.cloneNode(!0),n.style.userSelect="none",n.style.webkitUserSelect="none",n.style.pointerEvents="none",n.classList.add("fc-event-dragging"),yl(n,{position:"fixed",zIndex:this.zIndex,visibility:"",boxSizing:"border-box",width:t.right-t.left,height:t.bottom-t.top,right:"auto",bottom:"auto",margin:0}),this.parentNode.appendChild(n)),n}}class oD extends wm{constructor(t,n){super(),this.handleScroll=()=>{this.scrollTop=this.scrollController.getScrollTop(),this.scrollLeft=this.scrollController.getScrollLeft(),this.handleScrollChange()},this.scrollController=t,this.doesListening=n,this.scrollTop=this.origScrollTop=t.getScrollTop(),this.scrollLeft=this.origScrollLeft=t.getScrollLeft(),this.scrollWidth=t.getScrollWidth(),this.scrollHeight=t.getScrollHeight(),this.clientWidth=t.getClientWidth(),this.clientHeight=t.getClientHeight(),this.clientRect=this.computeClientRect(),this.doesListening&&this.getEventTarget().addEventListener("scroll",this.handleScroll)}destroy(){this.doesListening&&this.getEventTarget().removeEventListener("scroll",this.handleScroll)}getScrollTop(){return this.scrollTop}getScrollLeft(){return this.scrollLeft}setScrollTop(t){this.scrollController.setScrollTop(t),this.doesListening||(this.scrollTop=Math.max(Math.min(t,this.getMaxScrollTop()),0),this.handleScrollChange())}setScrollLeft(t){this.scrollController.setScrollLeft(t),this.doesListening||(this.scrollLeft=Math.max(Math.min(t,this.getMaxScrollLeft()),0),this.handleScrollChange())}getClientWidth(){return this.clientWidth}getClientHeight(){return this.clientHeight}getScrollWidth(){return this.scrollWidth}getScrollHeight(){return this.scrollHeight}handleScrollChange(){}}class iD extends oD{constructor(t,n){super(new NH(t),n)}getEventTarget(){return this.scrollController.el}computeClientRect(){return PH(this.scrollController.el)}}class n4 extends oD{constructor(t){super(new jH,t)}getEventTarget(){return window}computeClientRect(){return{left:this.scrollLeft,right:this.scrollLeft+this.clientWidth,top:this.scrollTop,bottom:this.scrollTop+this.clientHeight}}handleScrollChange(){this.clientRect=this.computeClientRect()}}const Hw=typeof performance=="function"?performance.now:Date.now;class r4{constructor(){this.isEnabled=!0,this.scrollQuery=[window,".fc-scroller"],this.edgeThreshold=50,this.maxVelocity=300,this.pointerScreenX=null,this.pointerScreenY=null,this.isAnimating=!1,this.scrollCaches=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.animate=()=>{if(this.isAnimating){let t=this.computeBestEdge(this.pointerScreenX+window.scrollX,this.pointerScreenY+window.scrollY);if(t){let n=Hw();this.handleSide(t,(n-this.msSinceRequest)/1e3),this.requestAnimation(n)}else this.isAnimating=!1}}}start(t,n,r){this.isEnabled&&(this.scrollCaches=this.buildCaches(r),this.pointerScreenX=null,this.pointerScreenY=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.handleMove(t,n))}handleMove(t,n){if(this.isEnabled){let r=t-window.scrollX,o=n-window.scrollY,i=this.pointerScreenY===null?0:o-this.pointerScreenY,s=this.pointerScreenX===null?0:r-this.pointerScreenX;i<0?this.everMovedUp=!0:i>0&&(this.everMovedDown=!0),s<0?this.everMovedLeft=!0:s>0&&(this.everMovedRight=!0),this.pointerScreenX=r,this.pointerScreenY=o,this.isAnimating||(this.isAnimating=!0,this.requestAnimation(Hw()))}}stop(){if(this.isEnabled){this.isAnimating=!1;for(let t of this.scrollCaches)t.destroy();this.scrollCaches=null}}requestAnimation(t){this.msSinceRequest=t,requestAnimationFrame(this.animate)}handleSide(t,n){let{scrollCache:r}=t,{edgeThreshold:o}=this,i=o-t.distance,s=i*i/(o*o)*this.maxVelocity*n,l=1;switch(t.name){case"left":l=-1;case"right":r.setScrollLeft(r.getScrollLeft()+s*l);break;case"top":l=-1;case"bottom":r.setScrollTop(r.getScrollTop()+s*l);break}}computeBestEdge(t,n){let{edgeThreshold:r}=this,o=null,i=this.scrollCaches||[];for(let s of i){let l=s.clientRect,u=t-l.left,d=l.right-t,f=n-l.top,g=l.bottom-n;u>=0&&d>=0&&f>=0&&g>=0&&(f<=r&&this.everMovedUp&&s.canScrollUp()&&(!o||o.distance>f)&&(o={scrollCache:s,name:"top",distance:f}),g<=r&&this.everMovedDown&&s.canScrollDown()&&(!o||o.distance>g)&&(o={scrollCache:s,name:"bottom",distance:g}),u<=r&&this.everMovedLeft&&s.canScrollLeft()&&(!o||o.distance>u)&&(o={scrollCache:s,name:"left",distance:u}),d<=r&&this.everMovedRight&&s.canScrollRight()&&(!o||o.distance>d)&&(o={scrollCache:s,name:"right",distance:d}))}return o}buildCaches(t){return this.queryScrollEls(t).map(n=>n===window?new n4(!1):new iD(n,!1))}queryScrollEls(t){let n=[];for(let r of this.scrollQuery)typeof r=="object"?n.push(r):n.push(...Array.prototype.slice.call(t.getRootNode().querySelectorAll(r)));return n}}class Fl extends LH{constructor(t,n){super(t),this.containerEl=t,this.delay=null,this.minDistance=0,this.touchScrollAllowed=!0,this.mirrorNeedsRevert=!1,this.isInteracting=!1,this.isDragging=!1,this.isDelayEnded=!1,this.isDistanceSurpassed=!1,this.delayTimeoutId=null,this.onPointerDown=o=>{this.isDragging||(this.isInteracting=!0,this.isDelayEnded=!1,this.isDistanceSurpassed=!1,fV(document.body),hV(document.body),o.isTouch||o.origEvent.preventDefault(),this.emitter.trigger("pointerdown",o),this.isInteracting&&!this.pointer.shouldIgnoreMove&&(this.mirror.setIsVisible(!1),this.mirror.start(o.subjectEl,o.pageX,o.pageY),this.startDelay(o),this.minDistance||this.handleDistanceSurpassed(o)))},this.onPointerMove=o=>{if(this.isInteracting){if(this.emitter.trigger("pointermove",o),!this.isDistanceSurpassed){let i=this.minDistance,s,{deltaX:l,deltaY:u}=o;s=l*l+u*u,s>=i*i&&this.handleDistanceSurpassed(o)}this.isDragging&&(o.origEvent.type!=="scroll"&&(this.mirror.handleMove(o.pageX,o.pageY),this.autoScroller.handleMove(o.pageX,o.pageY)),this.emitter.trigger("dragmove",o))}},this.onPointerUp=o=>{this.isInteracting&&(this.isInteracting=!1,pV(document.body),gV(document.body),this.emitter.trigger("pointerup",o),this.isDragging&&(this.autoScroller.stop(),this.tryStopDrag(o)),this.delayTimeoutId&&(clearTimeout(this.delayTimeoutId),this.delayTimeoutId=null))};let r=this.pointer=new nD(t);r.emitter.on("pointerdown",this.onPointerDown),r.emitter.on("pointermove",this.onPointerMove),r.emitter.on("pointerup",this.onPointerUp),n&&(r.selector=n),this.mirror=new t4,this.autoScroller=new r4}destroy(){this.pointer.destroy(),this.onPointerUp({})}startDelay(t){typeof this.delay=="number"?this.delayTimeoutId=setTimeout(()=>{this.delayTimeoutId=null,this.handleDelayEnd(t)},this.delay):this.handleDelayEnd(t)}handleDelayEnd(t){this.isDelayEnded=!0,this.tryStartDrag(t)}handleDistanceSurpassed(t){this.isDistanceSurpassed=!0,this.tryStartDrag(t)}tryStartDrag(t){this.isDelayEnded&&this.isDistanceSurpassed&&(!this.pointer.wasTouchScroll||this.touchScrollAllowed)&&(this.isDragging=!0,this.mirrorNeedsRevert=!1,this.autoScroller.start(t.pageX,t.pageY,this.containerEl),this.emitter.trigger("dragstart",t),this.touchScrollAllowed===!1&&this.pointer.cancelTouchScroll())}tryStopDrag(t){this.mirror.stop(this.mirrorNeedsRevert,this.stopDrag.bind(this,t))}stopDrag(t){this.isDragging=!1,this.emitter.trigger("dragend",t)}setIgnoreMove(t){this.pointer.shouldIgnoreMove=t}setMirrorIsVisible(t){this.mirror.setIsVisible(t)}setMirrorNeedsRevert(t){this.mirrorNeedsRevert=t}setAutoScrollEnabled(t){this.autoScroller.isEnabled=t}}class o4{constructor(t){this.el=t,this.origRect=bm(t),this.scrollCaches=m1(t).map(n=>new iD(n,!0))}destroy(){for(let t of this.scrollCaches)t.destroy()}computeLeft(){let t=this.origRect.left;for(let n of this.scrollCaches)t+=n.origScrollLeft-n.getScrollLeft();return t}computeTop(){let t=this.origRect.top;for(let n of this.scrollCaches)t+=n.origScrollTop-n.getScrollTop();return t}isWithinClipping(t,n){let r={left:t,top:n};for(let o of this.scrollCaches)if(!i4(o.getEventTarget())&&!wH(r,o.clientRect))return!1;return!0}}function i4(e){let t=e.tagName;return t==="HTML"||t==="BODY"}class Zd{constructor(t,n){this.useSubjectCenter=!1,this.requireInitial=!0,this.disablePointCheck=!1,this.initialHit=null,this.movingHit=null,this.finalHit=null,this.handlePointerDown=r=>{let{dragging:o}=this;this.initialHit=null,this.movingHit=null,this.finalHit=null,this.prepareHits(),this.processFirstCoord(r),this.initialHit||!this.requireInitial?(o.setIgnoreMove(!1),this.emitter.trigger("pointerdown",r)):o.setIgnoreMove(!0)},this.handleDragStart=r=>{this.emitter.trigger("dragstart",r),this.handleMove(r,!0)},this.handleDragMove=r=>{this.emitter.trigger("dragmove",r),this.handleMove(r)},this.handlePointerUp=r=>{this.releaseHits(),this.emitter.trigger("pointerup",r)},this.handleDragEnd=r=>{this.movingHit&&this.emitter.trigger("hitupdate",null,!0,r),this.finalHit=this.movingHit,this.movingHit=null,this.emitter.trigger("dragend",r)},this.droppableStore=n,t.emitter.on("pointerdown",this.handlePointerDown),t.emitter.on("dragstart",this.handleDragStart),t.emitter.on("dragmove",this.handleDragMove),t.emitter.on("pointerup",this.handlePointerUp),t.emitter.on("dragend",this.handleDragEnd),this.dragging=t,this.emitter=new Qd}processFirstCoord(t){let n={left:t.pageX,top:t.pageY},r=n,o=t.subjectEl,i;o instanceof HTMLElement&&(i=bm(o),r=SH(r,i));let s=this.initialHit=this.queryHitForOffset(r.left,r.top);if(s){if(this.useSubjectCenter&&i){let l=p1(i,s.rect);l&&(r=EH(l))}this.coordAdjust=xH(r,n)}else this.coordAdjust={left:0,top:0}}handleMove(t,n){let r=this.queryHitForOffset(t.pageX+this.coordAdjust.left,t.pageY+this.coordAdjust.top);(n||!Kd(this.movingHit,r))&&(this.movingHit=r,this.emitter.trigger("hitupdate",r,!1,t))}prepareHits(){this.offsetTrackers=bo(this.droppableStore,t=>(t.component.prepareHits(),new o4(t.el)))}releaseHits(){let{offsetTrackers:t}=this;for(let n in t)t[n].destroy();this.offsetTrackers={}}queryHitForOffset(t,n){let{droppableStore:r,offsetTrackers:o}=this,i=null;for(let s in r){let l=r[s].component,u=o[s];if(u&&u.isWithinClipping(t,n)){let d=u.computeLeft(),f=u.computeTop(),g=t-d,b=n-f,{origRect:m}=u,v=m.right-m.left,p=m.bottom-m.top;if(g>=0&&g<v&&b>=0&&b<p){let y=l.queryHit(g,b,v,p);y&&qd(y.dateProfile.activeRange,y.dateSpan.range)&&(this.disablePointCheck||u.el.contains(u.el.getRootNode().elementFromPoint(g+d-window.scrollX,b+f-window.scrollY)))&&(!i||y.layer>i.layer)&&(y.componentId=s,y.context=l.context,y.rect.left+=d,y.rect.right+=d,y.rect.top+=f,y.rect.bottom+=f,i=y)}}}return i}}function Kd(e,t){return!e&&!t?!0:!!e!=!!t?!1:cH(e.dateSpan,t.dateSpan)}function sD(e,t){let n={};for(let r of t.pluginHooks.datePointTransforms)Object.assign(n,r(e,t));return Object.assign(n,s4(e,t.dateEnv)),n}function s4(e,t){return{date:t.toDate(e.range.start),dateStr:t.formatIso(e.range.start,{omitTime:e.allDay}),allDay:e.allDay}}class a4 extends pa{constructor(t){super(t),this.handlePointerDown=r=>{let{dragging:o}=this,i=r.origEvent.target;o.setIgnoreMove(!this.component.isValidDateDownEl(i))},this.handleDragEnd=r=>{let{component:o}=this,{pointer:i}=this.dragging;if(!i.wasTouchScroll){let{initialHit:s,finalHit:l}=this.hitDragging;if(s&&l&&Kd(s,l)){let{context:u}=o,d=Object.assign(Object.assign({},sD(s.dateSpan,u)),{dayEl:s.dayEl,jsEvent:r.origEvent,view:u.viewApi||u.calendarApi.view});u.emitter.trigger("dateClick",d)}}},this.dragging=new Fl(t.el),this.dragging.autoScroller.isEnabled=!1;let n=this.hitDragging=new Zd(this.dragging,ym(t));n.emitter.on("pointerdown",this.handlePointerDown),n.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}}class l4 extends pa{constructor(t){super(t),this.dragSelection=null,this.handlePointerDown=s=>{let{component:l,dragging:u}=this,{options:d}=l.context,f=d.selectable&&l.isValidDateDownEl(s.origEvent.target);u.setIgnoreMove(!f),u.delay=s.isTouch?c4(l):null},this.handleDragStart=s=>{this.component.context.calendarApi.unselect(s)},this.handleHitUpdate=(s,l)=>{let{context:u}=this.component,d=null,f=!1;if(s){let g=this.hitDragging.initialHit;s.componentId===g.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(g,s)||(d=u4(g,s,u.pluginHooks.dateSelectionTransformers)),(!d||!WH(d,s.dateProfile,u))&&(f=!0,d=null)}d?u.dispatch({type:"SELECT_DATES",selection:d}):l||u.dispatch({type:"UNSELECT_DATES"}),f?tm():nm(),l||(this.dragSelection=d)},this.handlePointerUp=s=>{this.dragSelection&&(r1(this.dragSelection,s,this.component.context),this.dragSelection=null)};let{component:n}=t,{options:r}=n.context,o=this.dragging=new Fl(t.el);o.touchScrollAllowed=!1,o.minDistance=r.selectMinDistance||0,o.autoScroller.isEnabled=r.dragScroll;let i=this.hitDragging=new Zd(this.dragging,ym(t));i.emitter.on("pointerdown",this.handlePointerDown),i.emitter.on("dragstart",this.handleDragStart),i.emitter.on("hitupdate",this.handleHitUpdate),i.emitter.on("pointerup",this.handlePointerUp)}destroy(){this.dragging.destroy()}}function c4(e){let{options:t}=e.context,n=t.selectLongPressDelay;return n==null&&(n=t.longPressDelay),n}function u4(e,t,n){let r=e.dateSpan,o=t.dateSpan,i=[r.range.start,r.range.end,o.range.start,o.range.end];i.sort(wV);let s={};for(let l of n){let u=l(e,t);if(u===!1)return null;u&&Object.assign(s,u)}return s.range={start:i[0],end:i[3]},s.allDay=r.allDay,s}class Ul extends pa{constructor(t){super(t),this.subjectEl=null,this.subjectSeg=null,this.isDragging=!1,this.eventRange=null,this.relevantEvents=null,this.receivingContext=null,this.validMutation=null,this.mutatedRelevantEvents=null,this.handlePointerDown=s=>{let l=s.origEvent.target,{component:u,dragging:d}=this,{mirror:f}=d,{options:g}=u.context,b=u.context;this.subjectEl=s.subjectEl;let m=this.subjectSeg=oa(s.subjectEl),p=(this.eventRange=m.eventRange).instance.instanceId;this.relevantEvents=pm(b.getCurrentData().eventStore,p),d.minDistance=s.isTouch?0:g.eventDragMinDistance,d.delay=s.isTouch&&p!==u.props.eventSelection?f4(u):null,g.fixedMirrorParent?f.parentNode=g.fixedMirrorParent:f.parentNode=on(l,".fc"),f.revertDuration=g.dragRevertDuration;let y=u.isValidSegDownEl(l)&&!on(l,".fc-event-resizer");d.setIgnoreMove(!y),this.isDragging=y&&s.subjectEl.classList.contains("fc-event-draggable")},this.handleDragStart=s=>{let l=this.component.context,u=this.eventRange,d=u.instance.instanceId;s.isTouch?d!==this.component.props.eventSelection&&l.dispatch({type:"SELECT_EVENT",eventInstanceId:d}):l.dispatch({type:"UNSELECT_EVENT"}),this.isDragging&&(l.calendarApi.unselect(s),l.emitter.trigger("eventDragStart",{el:this.subjectEl,event:new kt(l,u.def,u.instance),jsEvent:s.origEvent,view:l.viewApi}))},this.handleHitUpdate=(s,l)=>{if(!this.isDragging)return;let u=this.relevantEvents,d=this.hitDragging.initialHit,f=this.component.context,g=null,b=null,m=null,v=!1,p={affectedEvents:u,mutatedEvents:Bn(),isEvent:!0};if(s){g=s.context;let y=g.options;f===g||y.editable&&y.droppable?(b=d4(d,s,this.eventRange.instance.range.start,g.getCurrentData().pluginHooks.eventDragMutationMassagers),b&&(m=mm(u,g.getCurrentData().eventUiBases,b,g),p.mutatedEvents=m,C1(p,s.dateProfile,g)||(v=!0,b=null,m=null,p.mutatedEvents=Bn()))):g=null}this.displayDrag(g,p),v?tm():nm(),l||(f===g&&Kd(d,s)&&(b=null),this.dragging.setMirrorNeedsRevert(!b),this.dragging.setMirrorIsVisible(!s||!this.subjectEl.getRootNode().querySelector(".fc-event-mirror")),this.receivingContext=g,this.validMutation=b,this.mutatedRelevantEvents=m)},this.handlePointerUp=()=>{this.isDragging||this.cleanup()},this.handleDragEnd=s=>{if(this.isDragging){let l=this.component.context,u=l.viewApi,{receivingContext:d,validMutation:f}=this,g=this.eventRange.def,b=this.eventRange.instance,m=new kt(l,g,b),v=this.relevantEvents,p=this.mutatedRelevantEvents,{finalHit:y}=this.hitDragging;if(this.clearDrag(),l.emitter.trigger("eventDragStop",{el:this.subjectEl,event:m,jsEvent:s.origEvent,view:u}),f){if(d===l){let S=new kt(l,p.defs[g.defId],b?p.instances[b.instanceId]:null);l.dispatch({type:"MERGE_EVENTS",eventStore:p});let E={oldEvent:m,event:S,relatedEvents:Hi(p,l,b),revert(){l.dispatch({type:"MERGE_EVENTS",eventStore:v})}},D={};for(let R of l.getCurrentData().pluginHooks.eventDropTransformers)Object.assign(D,R(f,l));l.emitter.trigger("eventDrop",Object.assign(Object.assign(Object.assign({},E),D),{el:s.subjectEl,delta:f.datesDelta,jsEvent:s.origEvent,view:u})),l.emitter.trigger("eventChange",E)}else if(d){let S={event:m,relatedEvents:Hi(v,l,b),revert(){l.dispatch({type:"MERGE_EVENTS",eventStore:v})}};l.emitter.trigger("eventLeave",Object.assign(Object.assign({},S),{draggedEl:s.subjectEl,view:u})),l.dispatch({type:"REMOVE_EVENTS",eventStore:v}),l.emitter.trigger("eventRemove",S);let E=p.defs[g.defId],D=p.instances[b.instanceId],R=new kt(d,E,D);d.dispatch({type:"MERGE_EVENTS",eventStore:p});let C={event:R,relatedEvents:Hi(p,d,D),revert(){d.dispatch({type:"REMOVE_EVENTS",eventStore:p})}};d.emitter.trigger("eventAdd",C),s.isTouch&&d.dispatch({type:"SELECT_EVENT",eventInstanceId:b.instanceId}),d.emitter.trigger("drop",Object.assign(Object.assign({},sD(y.dateSpan,d)),{draggedEl:s.subjectEl,jsEvent:s.origEvent,view:y.context.viewApi})),d.emitter.trigger("eventReceive",Object.assign(Object.assign({},C),{draggedEl:s.subjectEl,view:y.context.viewApi}))}}else l.emitter.trigger("_noEventDrop")}this.cleanup()};let{component:n}=this,{options:r}=n.context,o=this.dragging=new Fl(t.el);o.pointer.selector=Ul.SELECTOR,o.touchScrollAllowed=!1,o.autoScroller.isEnabled=r.dragScroll;let i=this.hitDragging=new Zd(this.dragging,ig);i.useSubjectCenter=t.useEventCenter,i.emitter.on("pointerdown",this.handlePointerDown),i.emitter.on("dragstart",this.handleDragStart),i.emitter.on("hitupdate",this.handleHitUpdate),i.emitter.on("pointerup",this.handlePointerUp),i.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}displayDrag(t,n){let r=this.component.context,o=this.receivingContext;o&&o!==t&&(o===r?o.dispatch({type:"SET_EVENT_DRAG",state:{affectedEvents:n.affectedEvents,mutatedEvents:Bn(),isEvent:!0}}):o.dispatch({type:"UNSET_EVENT_DRAG"})),t&&t.dispatch({type:"SET_EVENT_DRAG",state:n})}clearDrag(){let t=this.component.context,{receivingContext:n}=this;n&&n.dispatch({type:"UNSET_EVENT_DRAG"}),t!==n&&t.dispatch({type:"UNSET_EVENT_DRAG"})}cleanup(){this.subjectSeg=null,this.isDragging=!1,this.eventRange=null,this.relevantEvents=null,this.receivingContext=null,this.validMutation=null,this.mutatedRelevantEvents=null}}Ul.SELECTOR=".fc-event-draggable, .fc-event-resizable";function d4(e,t,n,r){let o=e.dateSpan,i=t.dateSpan,s=o.range.start,l=i.range.start,u={};o.allDay!==i.allDay&&(u.allDay=i.allDay,u.hasEnd=t.context.options.allDayMaintainDuration,i.allDay?s=Dt(n):s=n);let d=Ls(s,l,e.context.dateEnv,e.componentId===t.componentId?e.largeUnit:null);d.milliseconds&&(u.allDay=!1);let f={datesDelta:d,standardProps:u};for(let g of r)g(f,e,t);return f}function f4(e){let{options:t}=e.context,n=t.eventLongPressDelay;return n==null&&(n=t.longPressDelay),n}class p4 extends pa{constructor(t){super(t),this.draggingSegEl=null,this.draggingSeg=null,this.eventRange=null,this.relevantEvents=null,this.validMutation=null,this.mutatedRelevantEvents=null,this.handlePointerDown=i=>{let{component:s}=this,l=this.querySegEl(i),u=oa(l),d=this.eventRange=u.eventRange;this.dragging.minDistance=s.context.options.eventDragMinDistance,this.dragging.setIgnoreMove(!this.component.isValidSegDownEl(i.origEvent.target)||i.isTouch&&this.component.props.eventSelection!==d.instance.instanceId)},this.handleDragStart=i=>{let{context:s}=this.component,l=this.eventRange;this.relevantEvents=pm(s.getCurrentData().eventStore,this.eventRange.instance.instanceId);let u=this.querySegEl(i);this.draggingSegEl=u,this.draggingSeg=oa(u),s.calendarApi.unselect(),s.emitter.trigger("eventResizeStart",{el:u,event:new kt(s,l.def,l.instance),jsEvent:i.origEvent,view:s.viewApi})},this.handleHitUpdate=(i,s,l)=>{let{context:u}=this.component,d=this.relevantEvents,f=this.hitDragging.initialHit,g=this.eventRange.instance,b=null,m=null,v=!1,p={affectedEvents:d,mutatedEvents:Bn(),isEvent:!0};i&&(i.componentId===f.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(f,i)||(b=h4(f,i,l.subjectEl.classList.contains("fc-event-resizer-start"),g.range))),b&&(m=mm(d,u.getCurrentData().eventUiBases,b,u),p.mutatedEvents=m,C1(p,i.dateProfile,u)||(v=!0,b=null,m=null,p.mutatedEvents=null)),m?u.dispatch({type:"SET_EVENT_RESIZE",state:p}):u.dispatch({type:"UNSET_EVENT_RESIZE"}),v?tm():nm(),s||(b&&Kd(f,i)&&(b=null),this.validMutation=b,this.mutatedRelevantEvents=m)},this.handleDragEnd=i=>{let{context:s}=this.component,l=this.eventRange.def,u=this.eventRange.instance,d=new kt(s,l,u),f=this.relevantEvents,g=this.mutatedRelevantEvents;if(s.emitter.trigger("eventResizeStop",{el:this.draggingSegEl,event:d,jsEvent:i.origEvent,view:s.viewApi}),this.validMutation){let b=new kt(s,g.defs[l.defId],u?g.instances[u.instanceId]:null);s.dispatch({type:"MERGE_EVENTS",eventStore:g});let m={oldEvent:d,event:b,relatedEvents:Hi(g,s,u),revert(){s.dispatch({type:"MERGE_EVENTS",eventStore:f})}};s.emitter.trigger("eventResize",Object.assign(Object.assign({},m),{el:this.draggingSegEl,startDelta:this.validMutation.startDelta||tt(0),endDelta:this.validMutation.endDelta||tt(0),jsEvent:i.origEvent,view:s.viewApi})),s.emitter.trigger("eventChange",m)}else s.emitter.trigger("_noEventResize");this.draggingSeg=null,this.relevantEvents=null,this.validMutation=null};let{component:n}=t,r=this.dragging=new Fl(t.el);r.pointer.selector=".fc-event-resizer",r.touchScrollAllowed=!1,r.autoScroller.isEnabled=n.context.options.dragScroll;let o=this.hitDragging=new Zd(this.dragging,ym(t));o.emitter.on("pointerdown",this.handlePointerDown),o.emitter.on("dragstart",this.handleDragStart),o.emitter.on("hitupdate",this.handleHitUpdate),o.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}querySegEl(t){return on(t.subjectEl,".fc-event")}}function h4(e,t,n,r){let o=e.context.dateEnv,i=e.dateSpan.range.start,s=t.dateSpan.range.start,l=Ls(i,s,o,e.largeUnit);if(n){if(o.add(r.start,l)<r.end)return{startDelta:l}}else if(o.add(r.end,l)>r.start)return{endDelta:l};return null}class g4{constructor(t){this.context=t,this.isRecentPointerDateSelect=!1,this.matchesCancel=!1,this.matchesEvent=!1,this.onSelect=r=>{r.jsEvent&&(this.isRecentPointerDateSelect=!0)},this.onDocumentPointerDown=r=>{let o=this.context.options.unselectCancel,i=IC(r.origEvent);this.matchesCancel=!!on(i,o),this.matchesEvent=!!on(i,Ul.SELECTOR)},this.onDocumentPointerUp=r=>{let{context:o}=this,{documentPointer:i}=this,s=o.getCurrentData();if(!i.wasTouchScroll){if(s.dateSelection&&!this.isRecentPointerDateSelect){let l=o.options.unselectAuto;l&&(!l||!this.matchesCancel)&&o.calendarApi.unselect(r)}s.eventSelection&&!this.matchesEvent&&o.dispatch({type:"UNSELECT_EVENT"})}this.isRecentPointerDateSelect=!1};let n=this.documentPointer=new nD(document);n.shouldIgnoreMove=!0,n.shouldWatchScroll=!1,n.emitter.on("pointerdown",this.onDocumentPointerDown),n.emitter.on("pointerup",this.onDocumentPointerUp),t.emitter.on("select",this.onSelect)}destroy(){this.context.emitter.off("select",this.onSelect),this.documentPointer.destroy()}}const m4={fixedMirrorParent:ce},y4={dateClick:ce,eventDragStart:ce,eventDragStop:ce,eventDrop:ce,eventResizeStart:ce,eventResizeStop:ce,eventResize:ce,drop:ce,eventReceive:ce,eventLeave:ce};Em.dataAttrPrefix="";var v4=xo({name:"@fullcalendar/interaction",componentInteractions:[a4,l4,Ul,p4],calendarInteractions:[g4],elementDraggingImpl:Fl,optionRefiners:m4,listenerRefiners:y4});const aD=Ut(Y.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"),ud=Ut(Y.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"),km=Ut(Y.jsx("path",{d:"M7 7h10v3l4-4-4-4v3H5v6h2zm10 10H7v-3l-4 4 4 4v-3h12v-6h-2z"}),"Repeat"),b4=({courseCode:e,courseColor:t,requiresRegistration:n,recurring:r,theme:o})=>Y.jsxs(Re.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:[Y.jsx(Re.Typography,{variant:"caption",sx:{color:o.palette.text.primary,fontWeight:600,fontSize:"0.7rem",lineHeight:1},noWrap:!0,children:e}),(n||r)&&Y.jsxs(Re.Box,{sx:{display:"flex",gap:.25,ml:"auto"},children:[n&&Y.jsx(ud,{sx:{fontSize:10,color:o.palette.warning.main}}),r&&Y.jsx(km,{sx:{fontSize:10,color:t}})]})]}),w4=({eventInfo:e,courseCode:t,type:n,courseColor:r,requiresRegistration:o,recurring:i,eventTypeIcons:s,theme:l})=>{const u=new Date(e.event.start).getTime(),g=(new Date(e.event.end).getTime()-u)/(1e3*60),b=(m,v)=>{switch(m){case"lecture":return`linear-gradient(45deg, ${v}20, ${v}30)`;case"exercise":return`linear-gradient(135deg, ${v}20, ${v}30)`;case"exam":return`linear-gradient(90deg, ${v}30, ${v}40)`;case"deadline":return`linear-gradient(180deg, ${v}20, ${v}30)`;default:return`linear-gradient(90deg, ${v}20, ${v}25)`}};return g<30?Y.jsxs(Re.Box,{sx:{display:"flex",alignItems:"center",height:"100%",minHeight:18,position:"relative",gap:.5,px:.5,background:b(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:b(n,r).replace(/[0-9]+/g,m=>(Number(m)+10).toString()),boxShadow:`0 0 0 1px ${l.palette.background.paper}, 0 2px 4px ${l.palette.action.hover}`,zIndex:1}},children:[Y.jsx(Re.Typography,{variant:"caption",sx:{color:l.palette.text.primary,fontWeight:600,fontSize:"0.7rem",lineHeight:1},noWrap:!0,children:t}),(o||i)&&Y.jsxs(Re.Box,{sx:{display:"flex",gap:.25,ml:"auto"},children:[o&&Y.jsx(ud,{sx:{fontSize:10,color:l.palette.warning.main}}),i&&Y.jsx(km,{sx:{fontSize:10,color:r}})]})]}):Y.jsxs(Re.Box,{sx:{display:"flex",alignItems:"flex-start",p:.75,height:"100%",position:"relative",gap:.5,background:b(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:b(n,r).replace(/[0-9]+/g,m=>(Number(m)+10).toString()),boxShadow:`0 0 0 1px ${l.palette.background.paper}, 0 2px 4px ${l.palette.action.hover}`,zIndex:1}},children:[Y.jsx(Re.Box,{component:"img",src:s[n],alt:n,sx:{width:14,height:14,filter:`drop-shadow(0 0 1px ${r})`,flexShrink:0,mt:.25}}),Y.jsxs(Re.Box,{sx:{minWidth:0,flex:1,display:"flex",flexDirection:"column",gap:.25},children:[Y.jsx(Re.Typography,{variant:"caption",sx:{color:r,fontWeight:600,lineHeight:1},noWrap:!0,children:t}),Y.jsx(Re.Typography,{variant:"caption",sx:{lineHeight:1,color:l.palette.text.primary,fontWeight:500,fontSize:g<45?"0.7rem":"inherit"},noWrap:!0,children:e.event.title}),g>=45&&Y.jsx(Re.Typography,{variant:"caption",sx:{lineHeight:1,color:l.palette.text.secondary,fontSize:"0.7rem"},noWrap:!0,children:e.timeText})]})]})},S4=({eventInfo:e,courseCode:t,type:n,courseColor:r,location:o,requiresRegistration:i,recurring:s,eventTypeIcons:l,theme:u})=>{const d=new Date(e.event.start).getTime(),b=(new Date(e.event.end).getTime()-d)/(1e3*60),m=(v,p)=>{switch(v){case"lecture":return`linear-gradient(45deg, ${p}20, ${p}30)`;case"exercise":return`linear-gradient(135deg, ${p}20, ${p}30)`;case"exam":return`linear-gradient(90deg, ${p}30, ${p}40)`;case"deadline":return`linear-gradient(180deg, ${p}20, ${p}30)`;default:return`linear-gradient(90deg, ${p}20, ${p}25)`}};return b<30?Y.jsx(b4,{eventInfo:e,courseCode:t,type:n,courseColor:r,requiresRegistration:i,recurring:s,eventTypeIcons:l,theme:u}):Y.jsxs(Re.Box,{sx:{display:"flex",flexDirection:"column",p:b<45?.75:1,height:"100%",position:"relative",gap:.5,background:m(n,r),border:`1px solid ${r}50`,borderLeft:`3px solid ${r}`,boxShadow:`0 0 0 1px ${u.palette.background.paper}, 0 1px 2px ${u.palette.action.hover}`,"&:hover":{background:m(n,r).replace(/[0-9]+/g,v=>(Number(v)+10).toString()),boxShadow:`0 0 0 1px ${u.palette.background.paper}, 0 2px 4px ${u.palette.action.hover}`,zIndex:1}},children:[Y.jsx(Re.Box,{sx:{display:"flex",alignItems:"flex-start",gap:b<45?.5:.75},children:Y.jsxs(Re.Box,{sx:{minWidth:0,flex:1,display:"flex",flexDirection:"column",gap:.25},children:[Y.jsxs(Re.Typography,{variant:"caption",sx:{color:r,fontWeight:600,lineHeight:1,fontSize:b<45?"0.7rem":"0.75rem"},noWrap:!0,children:[t," • ",n]}),Y.jsx(Re.Typography,{variant:b<45?"caption":"body2",sx:{lineHeight:1.2,color:u.palette.text.primary,fontWeight:500},noWrap:!0,children:e.event.title}),b>=45&&Y.jsx(Re.Typography,{variant:"caption",sx:{lineHeight:1,color:u.palette.text.secondary},noWrap:!0,children:e.timeText})]})}),b>=60&&o&&Y.jsxs(Re.Box,{sx:{display:"flex",alignItems:"center",gap:.5,mt:"auto"},children:[Y.jsx(aD,{sx:{fontSize:14,color:r}}),Y.jsx(Re.Typography,{variant:"caption",sx:{color:u.palette.text.secondary},noWrap:!0,children:o})]})]})},E4=Ut(Y.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"),x4=Ut(Y.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"),C4=({description:e,location:t,courseColor:n,maxParticipants:r,requiresRegistration:o,teachers:i,type:s,recurring:l,onAddToCalendar:u,onRegister:d,theme:f})=>Y.jsxs(Re.Stack,{spacing:2,children:[e&&Y.jsxs(Re.Box,{children:[Y.jsx(Re.Typography,{variant:"subtitle2",gutterBottom:!0,children:"Description"}),Y.jsx(Re.Typography,{variant:"body2",sx:{backgroundColor:`${n}08`,p:1.5,borderRadius:1,border:`1px solid ${n}20`},children:e})]}),t&&Y.jsxs(Re.Box,{children:[Y.jsx(Re.Typography,{variant:"subtitle2",gutterBottom:!0,children:"Location"}),Y.jsxs(Re.Box,{sx:{p:1.5,backgroundColor:`${n}08`,borderRadius:1,border:`1px solid ${n}20`,display:"flex",alignItems:"center",gap:1},children:[Y.jsx(aD,{sx:{color:n}}),Y.jsx(Re.Typography,{variant:"body2",children:t})]})]}),(r||o)&&Y.jsxs(Re.Box,{sx:{p:1.5,backgroundColor:f.palette.warning.light+"20",borderRadius:1,border:`1px solid ${f.palette.warning.light}40`},children:[Y.jsx(Re.Typography,{variant:"subtitle2",gutterBottom:!0,color:"warning.dark",children:"Registration Details"}),Y.jsxs(Re.Stack,{spacing:1,children:[r&&Y.jsxs(Re.Typography,{variant:"body2",sx:{display:"flex",alignItems:"center",gap:1},children:[Y.jsx(E4,{fontSize:"small"}),"Available spots: ",r]}),o&&Y.jsxs(Re.Typography,{variant:"body2",sx:{display:"flex",alignItems:"center",gap:1,color:f.palette.warning.dark},children:[Y.jsx(ud,{fontSize:"small"}),"Registration required"]})]})]}),Y.jsxs(Re.Box,{children:[Y.jsx(Re.Typography,{variant:"subtitle2",gutterBottom:!0,children:"Event Details"}),Y.jsxs(Re.Stack,{direction:"row",spacing:1,flexWrap:"wrap",useFlexGap:!0,children:[Y.jsx(Re.Chip,{label:s,size:"small",variant:"outlined",sx:{borderColor:n,color:n}}),l&&Y.jsx(Re.Chip,{icon:Y.jsx(km,{}),label:"Recurring",size:"small",variant:"outlined",sx:{borderColor:n,color:n}})]})]}),i&&i.length>0&&Y.jsxs(Re.Box,{children:[Y.jsx(Re.Typography,{variant:"subtitle2",gutterBottom:!0,children:"Teachers"}),Y.jsx(Re.Stack,{direction:"row",spacing:1,flexWrap:"wrap",useFlexGap:!0,children:i.map((g,b)=>Y.jsx(Re.Chip,{label:g.name,size:"small",variant:"outlined",sx:{borderColor:`${n}40`,"&:hover":{borderColor:n}}},b))})]}),Y.jsx(Re.Divider,{}),Y.jsxs(Re.Stack,{direction:"row",spacing:1,justifyContent:"flex-end",children:[Y.jsx(Re.Button,{size:"small",startIcon:Y.jsx(x4,{}),onClick:u,variant:"outlined",sx:{borderColor:`${n}60`,color:n,"&:hover":{borderColor:n,backgroundColor:`${n}10`}},children:"Add to Calendar"}),o&&Y.jsx(Re.Button,{size:"small",startIcon:Y.jsx(ud,{}),onClick:d,variant:"contained",sx:{backgroundColor:n,"&:hover":{backgroundColor:`${n}dd`}},children:"Register"})]})]}),D4=({open:e,anchorEl:t,onClose:n,eventInfo:r,courseColor:o,type:i,eventTypeIcons:s,courseTitle:l,courseCode:u,description:d,location:f,maxParticipants:g,requiresRegistration:b,teachers:m,recurring:v,theme:p})=>{const y=E=>{E.stopPropagation()},S=E=>{E.stopPropagation()};return Y.jsx(Re.Popover,{open:e,anchorEl:t,onClose:n,anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"},TransitionComponent:Re.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 ${p.palette.divider}`,borderBottom:`1px solid ${p.palette.divider}`}}},children:Y.jsx(Re.Paper,{elevation:4,sx:{width:{xs:"90vw",sm:400},maxWidth:400,position:"relative",overflow:"hidden",borderLeft:`4px solid ${o}`},children:Y.jsxs(Re.Stack,{spacing:2,sx:{p:2},children:[Y.jsxs(Re.Box,{sx:{display:"flex",gap:1.5},children:[Y.jsx(Re.Box,{component:"img",src:s[i],alt:i,sx:{width:32,height:32,filter:`drop-shadow(0 0 1px ${o})`,mt:.5}}),Y.jsxs(Re.Box,{sx:{flex:1},children:[Y.jsx(Re.Typography,{variant:"h6",sx:{lineHeight:1.2,mb:.5},children:r.event.title}),Y.jsxs(Re.Typography,{variant:"body2",color:"text.secondary",gutterBottom:!0,children:[l," (",u,")"]}),Y.jsx(Re.Typography,{variant:"body2",color:"text.secondary",children:r.timeText})]})]}),Y.jsx(Re.Divider,{}),Y.jsx(C4,{description:d,location:f,courseColor:o,maxParticipants:g,requiresRegistration:b,teachers:m,type:i,recurring:v,onAddToCalendar:y,onRegister:S,theme:p})]})})})},Fw={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"},_4=({eventInfo:e})=>{var C,T;const t=Re.useTheme(),n=Re.useMediaQuery(t.breakpoints.down("sm")),[r,o]=pe.useState(null),i=e.event.extendedProps.courseCode||"",s=e.event.extendedProps.type,l=e.event.backgroundColor||t.palette.primary.main,{courseTitle:u,description:d,location:f,teachers:g,maxParticipants:b,requiresRegistration:m,recurring:v}=e.event.extendedProps,p=pe.useCallback(O=>{O.stopPropagation(),o(O.currentTarget)},[]),y=pe.useCallback(()=>{o(null)},[]),S={eventInfo:e,courseCode:i,type:s,courseColor:l,location:f,requiresRegistration:m,recurring:v,eventTypeIcons:Fw,theme:t,courseTitle:u,maxParticipants:b},E=Number(((C=e.el)==null?void 0:C.style.getPropertyValue("--event-group-index"))||"0"),D=Number(((T=e.el)==null?void 0:T.style.getPropertyValue("--event-group-size"))||"1"),R=(O,P)=>P<=1?1:O%2===0?2:0;return Y.jsxs(Y.Fragment,{children:[Y.jsx(Re.Box,{onClick:p,sx:{height:"100%",transition:"all 0.2s ease-in-out",position:"relative",overflow:"hidden",cursor:"pointer",m:"1px",ml:E>0?`${E*4}px`:"1px",width:D>1?`calc(100% - ${E*4}px)`:"auto",zIndex:R(E,D),"&:hover":{transform:"scale(1.01)",zIndex:10}},children:n?Y.jsx(w4,{...S}):Y.jsx(S4,{...S})}),Y.jsx(D4,{open:!!r,anchorEl:r,onClose:y,eventInfo:e,courseColor:l,type:s,eventTypeIcons:Fw,courseTitle:u,courseCode:i,description:d,location:f,maxParticipants:b,requiresRegistration:m,teachers:g,recurring:v,theme:t})]})},R4=({calendarRef:e,calendarView:t,events:n,onDatesSet:r,eventDidMount:o,showAllDaySlot:i,onMouseDown:s,onMouseMove:l,onMouseUp:u,onMouseLeave:d,density:f="comfortable"})=>{const g=Re.useTheme(),b=p=>{const y=p.view.calendar.getEvents().filter(D=>{var R,C,T,O;return((R=D.start)==null?void 0:R.getTime())===((C=p.event.start)==null?void 0:C.getTime())&&((T=D.end)==null?void 0:T.getTime())===((O=p.event.end)==null?void 0:O.getTime())&&D.allDay===p.event.allDay});y.sort((D,R)=>{const C=D.extendedProps.courseCode||"",T=R.extendedProps.courseCode||"";return C===T?y.indexOf(D)-y.indexOf(R):C.localeCompare(T)});const S=y.length,E=y.findIndex(D=>D.id===p.event.id);p.el.style.setProperty("--event-group-index",JSON.stringify(E)),p.el.style.setProperty("--event-group-size",JSON.stringify(S)),p.el.style.pointerEvents="all",o&&o(p)},v={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}}[f];return Y.jsx(Re.Box,{onMouseDown:s,onMouseMove:l,onMouseUp:u,onMouseLeave:d,sx:{flex:1,minHeight:0,overflow:"hidden","& ::-webkit-scrollbar":{width:"8px",height:"8px"},"& ::-webkit-scrollbar-track":{background:g.palette.background.default},"& ::-webkit-scrollbar-thumb":{backgroundColor:g.palette.divider,borderRadius:"4px","&:hover":{backgroundColor:g.palette.action.hover}},"& .fc-scroller-liquid-absolute":{cursor:"grab","&:active":{cursor:"grabbing"}},".fc-timegrid-event-harness":{margin:v.margin,pointerEvents:"all !important","&:not(:first-of-type)":{borderTop:`2px solid ${g.palette.background.paper}`,marginTop:`-${2+v.spacing}px !important`,paddingTop:`${v.spacing}px !important`,"&::before":{content:'""',position:"absolute",top:-1,left:0,right:0,height:2,background:g.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 ${g.palette.divider}40 !important`},".fc-timegrid-slot":{height:v.slotHeight,borderColor:`${g.palette.divider}30 !important`,"&:nth-of-type(4n+1)":{borderTop:`2px solid ${g.palette.divider}50 !important`},"&:nth-of-type(2n)":{backgroundColor:`${g.palette.action.hover}05`}},".fc-timegrid-slot-minor":{borderColor:`${g.palette.divider}20 !important`},".fc-day-sun, .fc-day-sat":{backgroundColor:`${g.palette.action.hover}15 !important`},".fc-day-today":{backgroundColor:`${g.palette.primary.main}08 !important`,borderLeft:`2px solid ${g.palette.primary.main}40 !important`,borderRight:`2px solid ${g.palette.primary.main}40 !important`},".fc-col-header-cell":{padding:"8px 4px",backgroundColor:g.palette.background.default,borderBottom:`2px solid ${g.palette.divider} !important`,"&.fc-day-today":{backgroundColor:`${g.palette.primary.main}15 !important`,fontWeight:600}},".fc-timegrid-col-bg":{background:`repeating-linear-gradient(
|
|
208
208
|
to bottom,
|
|
209
|
-
${
|
|
210
|
-
${
|
|
211
|
-
${
|
|
212
|
-
${
|
|
213
|
-
)`},".fc-timegrid-axis":{borderRight:`2px solid ${
|
|
209
|
+
${g.palette.background.paper},
|
|
210
|
+
${g.palette.background.paper} 3rem,
|
|
211
|
+
${g.palette.action.hover}10 3rem,
|
|
212
|
+
${g.palette.action.hover}10 6rem
|
|
213
|
+
)`},".fc-timegrid-axis":{borderRight:`2px solid ${g.palette.divider}`,"& .fc-timegrid-axis-cushion":{padding:"4px 8px",fontSize:"0.75rem",color:g.palette.text.secondary}},".fc-timegrid-now-indicator-line":{borderColor:g.palette.error.main,borderStyle:"dashed",opacity:.7,zIndex:3},".fc-timegrid-now-indicator-arrow":{borderColor:g.palette.error.main,opacity:.7},".fc .fc-day-today":{backgroundColor:g.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:g.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:g.palette.action.hover+" !important"},".fc-daygrid-row:hover":{"& .fc-daygrid-day":{backgroundColor:g.palette.action.hover+" !important"}},".fc-timegrid-slot-lane:hover":{backgroundColor:g.palette.action.hover+" !important"},".fc-daygrid-day:hover":{backgroundColor:g.palette.action.hover+" !important"}},children:Y.jsx(F1,{ref:e,plugins:[dW,QW,v4],initialView:t,events:n,eventDidMount:b,height:"100%",headerToolbar:!1,eventContent:p=>Y.jsx(_4,{eventInfo:p}),datesSet:r,editable:!1,selectable:!1,slotMinTime:"00:00:00",slotMaxTime:"24:00:00",expandRows:!0,handleWindowResize:!0,allDaySlot:i,slotEventOverlap:!1,eventMinHeight:v.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 eu={exports:{}},gh={},tu={exports:{}},mh={};/**
|
|
214
214
|
* @license React
|
|
215
215
|
* use-sync-external-store-shim.production.js
|
|
216
216
|
*
|
|
@@ -218,7 +218,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${e}Chann
|
|
|
218
218
|
*
|
|
219
219
|
* This source code is licensed under the MIT license found in the
|
|
220
220
|
* LICENSE file in the root directory of this source tree.
|
|
221
|
-
*/var
|
|
221
|
+
*/var Uw;function T4(){if(Uw)return mh;Uw=1;var e=pe;function t(g,b){return g===b&&(g!==0||1/g===1/b)||g!==g&&b!==b}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,i=e.useLayoutEffect,s=e.useDebugValue;function l(g,b){var m=b(),v=r({inst:{value:m,getSnapshot:b}}),p=v[0].inst,y=v[1];return i(function(){p.value=m,p.getSnapshot=b,u(p)&&y({inst:p})},[g,m,b]),o(function(){return u(p)&&y({inst:p}),g(function(){u(p)&&y({inst:p})})},[g]),s(m),m}function u(g){var b=g.getSnapshot;g=g.value;try{var m=b();return!n(g,m)}catch{return!0}}function d(g,b){return b()}var f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:l;return mh.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:f,mh}var yh={};/**
|
|
222
222
|
* @license React
|
|
223
223
|
* use-sync-external-store-shim.development.js
|
|
224
224
|
*
|
|
@@ -226,7 +226,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${e}Chann
|
|
|
226
226
|
*
|
|
227
227
|
* This source code is licensed under the MIT license found in the
|
|
228
228
|
* LICENSE file in the root directory of this source tree.
|
|
229
|
-
*/var
|
|
229
|
+
*/var Ww;function O4(){return Ww||(Ww=1,process.env.NODE_ENV!=="production"&&function(){function e(m,v){return m===v&&(m!==0||1/m===1/v)||m!==m&&v!==v}function t(m,v){f||o.startTransition===void 0||(f=!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 p=v();if(!g){var y=v();i(p,y)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),g=!0)}y=s({inst:{value:p,getSnapshot:v}});var S=y[0].inst,E=y[1];return u(function(){S.value=p,S.getSnapshot=v,n(S)&&E({inst:S})},[m,p,v]),l(function(){return n(S)&&E({inst:S}),m(function(){n(S)&&E({inst:S})})},[m]),d(p),p}function n(m){var v=m.getSnapshot;m=m.value;try{var p=v();return!i(m,p)}catch{return!0}}function r(m,v){return v()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=pe,i=typeof Object.is=="function"?Object.is:e,s=o.useState,l=o.useEffect,u=o.useLayoutEffect,d=o.useDebugValue,f=!1,g=!1,b=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:t;yh.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:b,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),yh}var Yw;function lD(){return Yw||(Yw=1,process.env.NODE_ENV==="production"?tu.exports=T4():tu.exports=O4()),tu.exports}/**
|
|
230
230
|
* @license React
|
|
231
231
|
* use-sync-external-store-shim/with-selector.production.js
|
|
232
232
|
*
|
|
@@ -234,7 +234,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${e}Chann
|
|
|
234
234
|
*
|
|
235
235
|
* This source code is licensed under the MIT license found in the
|
|
236
236
|
* LICENSE file in the root directory of this source tree.
|
|
237
|
-
*/var
|
|
237
|
+
*/var Gw;function A4(){if(Gw)return gh;Gw=1;var e=pe,t=lD();function n(d,f){return d===f&&(d!==0||1/d===1/f)||d!==d&&f!==f}var r=typeof Object.is=="function"?Object.is:n,o=t.useSyncExternalStore,i=e.useRef,s=e.useEffect,l=e.useMemo,u=e.useDebugValue;return gh.useSyncExternalStoreWithSelector=function(d,f,g,b,m){var v=i(null);if(v.current===null){var p={hasValue:!1,value:null};v.current=p}else p=v.current;v=l(function(){function S(T){if(!E){if(E=!0,D=T,T=b(T),m!==void 0&&p.hasValue){var O=p.value;if(m(O,T))return R=O}return R=T}if(O=R,r(D,T))return O;var P=b(T);return m!==void 0&&m(O,P)?(D=T,O):(D=T,R=P)}var E=!1,D,R,C=g===void 0?null:g;return[function(){return S(f())},C===null?void 0:function(){return S(C())}]},[f,g,b,m]);var y=o(d,v[0],v[1]);return s(function(){p.hasValue=!0,p.value=y},[y]),u(y),y},gh}var vh={};/**
|
|
238
238
|
* @license React
|
|
239
239
|
* use-sync-external-store-shim/with-selector.development.js
|
|
240
240
|
*
|
|
@@ -242,8 +242,226 @@ To suppress this warning, you need to explicitly provide the \`palette.${e}Chann
|
|
|
242
242
|
*
|
|
243
243
|
* This source code is licensed under the MIT license found in the
|
|
244
244
|
* LICENSE file in the root directory of this source tree.
|
|
245
|
-
*/var
|
|
245
|
+
*/var qw;function k4(){return qw||(qw=1,process.env.NODE_ENV!=="production"&&function(){function e(d,f){return d===f&&(d!==0||1/d===1/f)||d!==d&&f!==f}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=pe,n=lD(),r=typeof Object.is=="function"?Object.is:e,o=n.useSyncExternalStore,i=t.useRef,s=t.useEffect,l=t.useMemo,u=t.useDebugValue;vh.useSyncExternalStoreWithSelector=function(d,f,g,b,m){var v=i(null);if(v.current===null){var p={hasValue:!1,value:null};v.current=p}else p=v.current;v=l(function(){function S(T){if(!E){if(E=!0,D=T,T=b(T),m!==void 0&&p.hasValue){var O=p.value;if(m(O,T))return R=O}return R=T}if(O=R,r(D,T))return O;var P=b(T);return m!==void 0&&m(O,P)?(D=T,O):(D=T,R=P)}var E=!1,D,R,C=g===void 0?null:g;return[function(){return S(f())},C===null?void 0:function(){return S(C())}]},[f,g,b,m]);var y=o(d,v[0],v[1]);return s(function(){p.hasValue=!0,p.value=y},[y]),u(y),y},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),vh}var Xw;function M4(){return Xw||(Xw=1,process.env.NODE_ENV==="production"?eu.exports=A4():eu.exports=k4()),eu.exports}var P4=M4();const cD=ex(P4),I4={},Qw=e=>{let t;const n=new Set,r=(f,g)=>{const b=typeof f=="function"?f(t):f;if(!Object.is(b,t)){const m=t;t=g??(typeof b!="object"||b===null)?b:Object.assign({},t,b),n.forEach(v=>v(t,m))}},o=()=>t,u={setState:r,getState:o,getInitialState:()=>d,subscribe:f=>(n.add(f),()=>n.delete(f)),destroy:()=>{(I4?"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()}},d=t=e(r,o,u);return u},uD=e=>e?Qw(e):Qw,{useDebugValue:N4}=pe,{useSyncExternalStoreWithSelector:j4}=cD,$4=e=>e;function z4(e,t=$4,n){const r=j4(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return N4(r),r}const Zw=(e,t)=>{const n=uD(e),r=(o,i=t)=>z4(n,o,i);return Object.assign(r,n),r},L4=(e,t)=>e?Zw(e,t):Zw,bh={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1},fg=new Map,nu=e=>{const t=fg.get(e);return t?Object.fromEntries(Object.entries(t.stores).map(([n,r])=>[n,r.getState()])):{}},B4=(e,t,n)=>{if(e===void 0)return{type:"untracked",connection:t.connect(n)};const r=fg.get(n.name);if(r)return{type:"tracked",store:e,...r};const o={connection:t.connect(n),stores:{}};return fg.set(n.name,o),{type:"tracked",store:e,...o}},V4=(e,t={})=>(n,r,o)=>{const{enabled:i,anonymousActionType:s,store:l,...u}=t;let d;try{d=(i??(bh?"production":void 0)!=="production")&&window.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!d)return(bh?"production":void 0)!=="production"&&i&&console.warn("[zustand devtools middleware] Please install/enable Redux devtools extension"),e(n,r,o);const{connection:f,...g}=B4(l,d,u);let b=!0;o.setState=(p,y,S)=>{const E=n(p,y);if(!b)return E;const D=S===void 0?{type:s||"anonymous"}:typeof S=="string"?{type:S}:S;return l===void 0?(f==null||f.send(D,r()),E):(f==null||f.send({...D,type:`${l}/${D.type}`},{...nu(u.name),[l]:o.getState()}),E)};const m=(...p)=>{const y=b;b=!1,n(...p),b=y},v=e(o.setState,r,o);if(g.type==="untracked"?f==null||f.init(v):(g.stores[g.store]=o,f==null||f.init(Object.fromEntries(Object.entries(g.stores).map(([p,y])=>[p,p===g.store?v:y.getState()])))),o.dispatchFromDevtools&&typeof o.dispatch=="function"){let p=!1;const y=o.dispatch;o.dispatch=(...S)=>{(bh?"production":void 0)!=="production"&&S[0].type==="__setState"&&!p&&(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),p=!0),y(...S)}}return f.subscribe(p=>{var y;switch(p.type){case"ACTION":if(typeof p.payload!="string"){console.error("[zustand devtools middleware] Unsupported action format");return}return wh(p.payload,S=>{if(S.type==="__setState"){if(l===void 0){m(S.state);return}Object.keys(S.state).length!==1&&console.error(`
|
|
246
246
|
[zustand devtools middleware] Unsupported __setState action format.
|
|
247
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
248
|
and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } }
|
|
249
|
-
`);const S=b.state[a];if(S==null)return;JSON.stringify(o.getState())!==JSON.stringify(S)&&h(S);return}o.dispatchFromDevtools&&typeof o.dispatch=="function"&&o.dispatch(b)});case"DISPATCH":switch(g.payload.type){case"RESET":return h(m),a===void 0?u==null?void 0:u.init(o.getState()):u==null?void 0:u.init(Br(l.name));case"COMMIT":if(a===void 0){u==null||u.init(o.getState());return}return u==null?void 0:u.init(Br(l.name));case"ROLLBACK":return ji(g.state,b=>{if(a===void 0){h(b),u==null||u.init(o.getState());return}h(b[a]),u==null||u.init(Br(l.name))});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return ji(g.state,b=>{if(a===void 0){h(b);return}JSON.stringify(o.getState())!==JSON.stringify(b[a])&&h(b[a])});case"IMPORT_STATE":{const{nextLiftedState:b}=g.payload,S=(v=b.computedStates.slice(-1)[0])==null?void 0:v.state;if(!S)return;h(a===void 0?S:S[a]),u==null||u.send(null,b);return}case"PAUSE_RECORDING":return p=!p}return}}),m},DT=xT,ji=(t,e)=>{let n;try{n=JSON.parse(t)}catch(r){console.error("[zustand devtools middleware] Could not parse the received json",r)}n!==void 0&&e(n)},Hf=CT()(DT((t,e)=>({events:[],isLoading:!1,error:null,setEvents:n=>t({events:n}),addEvent:n=>t(r=>({events:[...r.events,n]})),updateEvent:(n,r)=>t(o=>({events:o.events.map(i=>i.id===n?{...i,...r}:i)})),removeEvent:n=>t(r=>({events:r.events.filter(o=>o.id!==n)})),clearEvents:()=>t({events:[]}),setLoading:n=>t({isLoading:n}),setError:n=>t({error:n}),getEventsForDateRange:(n,r)=>{const{events:o}=e();return o.filter(i=>{const s=new Date(i.start),a=i.end?new Date(i.end):s;return s<=r&&a>=n})}}),{name:"calendar-store"})),TT=t=>{const e=t.replace("#",""),n=parseInt(e.substr(0,2),16),r=parseInt(e.substr(2,2),16),o=parseInt(e.substr(4,2),16);return(.299*n+.587*r+.114*o)/255>.5?"black":"white"},qr=()=>{const{events:t}=Hf(),e=q.useTheme(),n=q.useMediaQuery(e.breakpoints.down("sm")),r=q.useMediaQuery(e.breakpoints.between("sm","md")),o=n?"compact":r?"comfortable":"spacious",i=oe.useRef(null),s=oe.useRef(null),[a,l]=oe.useState("dayGridMonth"),[c,u]=oe.useState(!1),[f,p]=oe.useState(""),[h,m]=oe.useState(null),[g]=oe.useState(!1),[v,b]=oe.useState(!1),S=oe.useRef({x:0,scrollLeft:0}),R=oe.useRef(null);oe.useLayoutEffect(()=>{},[300,200]),oe.useLayoutEffect(()=>{if(!i.current||c)return;const z=ne=>{for(let V of ne){const D=V.contentRect.width,L=D>=1e3?"dayGridMonth":D>=600?"timeGridWeek":"timeGridDay";L!==a&&l(L)}},J=new ResizeObserver(z);return J.observe(i.current),()=>J.disconnect()},[c,a]),oe.useLayoutEffect(()=>{if(s.current){const z=s.current.getApi();requestAnimationFrame(()=>{z.changeView(a)})}},[a]),oe.useEffect(()=>{if(i.current){const z=i.current.querySelector(".fc-scroller");z&&(z.style.overflow="auto",R.current=z)}},[a]);const T=()=>{s.current&&s.current.getApi().prev()},k=()=>{s.current&&s.current.getApi().next()},P=()=>{s.current&&s.current.getApi().today()},H=z=>{l(z),u(!0),s.current&&s.current.getApi().changeView(z)},W=z=>{p(z.view.title)},$=oe.useCallback(z=>{const J=z.event.backgroundColor||z.event.extendedProps.backgroundColor,ne=z.event.borderColor||z.event.extendedProps.borderColor,V=z.event.textColor||z.event.extendedProps.textColor;J&&(z.el.style.backgroundColor=J),ne&&(z.el.style.borderColor=ne),V&&(z.el.style.color=V)},[]),y=oe.useCallback(z=>{R.current&&(b(!0),S.current={x:z.pageX,scrollLeft:R.current.scrollLeft})},[]),I=oe.useCallback(z=>{if(!v||!R.current)return;z.preventDefault();const J=z.pageX-S.current.x;R.current.scrollLeft=S.current.scrollLeft-J},[v]),_=oe.useCallback(()=>b(!1),[]),O=oe.useCallback(()=>b(!1),[]),N=z=>{z&&s.current&&s.current.getApi().gotoDate(z.toJSDate()),m(null)};return E.jsxs(q.Box,{ref:i,sx:{width:"100%",height:"100%",display:"flex",flexDirection:"column",color:e.palette.text.primary,padding:e.spacing(2),boxShadow:e.shadows[2],"& .fc-timegrid-event":{margin:"1px 0",padding:"1px"},"& .fc-daygrid-event":{margin:"1px 2px"},"& .fc td":{border:`1px solid ${e.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:e.palette.divider},"& .fc-col-header-cell":{borderColor:e.palette.divider},"& .fc-day:nth-of-type(even)":{backgroundColor:e.palette.background.default}},children:[E.jsx(Qg,{onPrev:T,onToday:P,onNext:k,onDatePickerOpen:z=>m(z.currentTarget),calendarView:a,onViewChange:H,currentTitle:f}),E.jsx(gE,{anchorEl:h,onClose:()=>m(null),onDateSelect:N}),E.jsx(lT,{calendarRef:s,calendarView:a,events:t,onDatesSet:W,eventDidMount:$,showAllDaySlot:g,onMouseDown:y,onMouseMove:I,onMouseUp:_,onMouseLeave:O,density:o})]})},zf=()=>{const{registerGridItem:t,unregisterGridItem:e}=Dn.useGridItemContext();return oe.useEffect(()=>(Dn.registerMicroservice("calendar",qr,{name:"Calendar",description:"Shows events and deadlines in a calendar view",category:"planning",iconComponent:eo,metadata:{route:{path:"calendar",element:E.jsx(qr,{})}}}),()=>{Dn.unregisterMicroservice("calendar")}),[]),oe.useEffect(()=>{const n=Dn.createGridItem({id:"calendar",x:0,y:0,w:15,h:2,minW:1,minH:1,maxW:15,maxH:15});return t("calendar",E.jsx(qr,{}),n),()=>{e("calendar")}},[t,e]),null},kc={"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"}}},Ff=()=>{const{setEvents:t,clearEvents:e}=Hf();return oe.useEffect(()=>Dn.eventBus.subscribe(r=>{if(r.length>0){const o=r.map(i=>{const s=i.metadata||{};let a="#2196f3",l="#1976d2";if(s.source==="courses"&&s.subject&&s.courseLevel){const c=kc[s.subject]||kc["COMP.CS"];a=c.levelShades[s.courseLevel]||c.levelShades.basic,l=c.baseColor}return{id:i.id,title:i.title,start:i.start,end:i.end,backgroundColor:a,borderColor:l,textColor:TT(a),extendedProps:s}});t(o)}else e()}),[t,e]),null},AT=({children:t})=>E.jsxs(E.Fragment,{children:[E.jsx(zf,{}),E.jsx(Ff,{}),t]});exports.Calendar=qr;exports.CalendarEventAggregator=Ff;exports.CalendarManager=zf;exports.CalendarMicroservice=AT;
|
|
249
|
+
`);const E=S.state[l];if(E==null)return;JSON.stringify(o.getState())!==JSON.stringify(E)&&m(E);return}o.dispatchFromDevtools&&typeof o.dispatch=="function"&&o.dispatch(S)});case"DISPATCH":switch(p.payload.type){case"RESET":return m(v),l===void 0?f==null?void 0:f.init(o.getState()):f==null?void 0:f.init(nu(u.name));case"COMMIT":if(l===void 0){f==null||f.init(o.getState());return}return f==null?void 0:f.init(nu(u.name));case"ROLLBACK":return wh(p.state,S=>{if(l===void 0){m(S),f==null||f.init(o.getState());return}m(S[l]),f==null||f.init(nu(u.name))});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return wh(p.state,S=>{if(l===void 0){m(S);return}JSON.stringify(o.getState())!==JSON.stringify(S[l])&&m(S[l])});case"IMPORT_STATE":{const{nextLiftedState:S}=p.payload,E=(y=S.computedStates.slice(-1)[0])==null?void 0:y.state;if(!E)return;m(l===void 0?E:E[l]),f==null||f.send(null,S);return}case"PAUSE_RECORDING":return b=!b}return}}),v},H4=V4,wh=(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)},Mm=L4()(H4((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(i=>i.id===n?{...i,...r}:i)})),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(i=>{const s=new Date(i.start),l=i.end?new Date(i.end):s;return s<=r&&l>=n})}}),{name:"calendar-store"})),Pm=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"},F4=(e,t,n,r,o)=>({id:e,title:t,start:n,end:r||n,backgroundColor:(o==null?void 0:o.backgroundColor)||"#2196f3",borderColor:(o==null?void 0:o.borderColor)||"#1976d2",textColor:(o==null?void 0:o.textColor)||Pm((o==null?void 0:o.backgroundColor)||"#2196f3"),extendedProps:(o==null?void 0:o.extendedProps)||{}}),Mu=()=>{const{events:e}=Mm(),t=Re.useTheme(),n=Re.useMediaQuery(t.breakpoints.down("sm")),r=Re.useMediaQuery(t.breakpoints.between("sm","md")),o=n?"compact":r?"comfortable":"spacious",i=pe.useRef(null),s=pe.useRef(null),[l,u]=pe.useState("dayGridMonth"),[d,f]=pe.useState(!1),[g,b]=pe.useState(""),[m,v]=pe.useState(null),[p]=pe.useState(!1),[y,S]=pe.useState(!1),E=pe.useRef({x:0,scrollLeft:0}),D=pe.useRef(null);pe.useLayoutEffect(()=>{},[300,200]),pe.useLayoutEffect(()=>{if(!i.current||d)return;const te=de=>{for(let W of de){const k=W.contentRect.width,ee=k>=1e3?"dayGridMonth":k>=600?"timeGridWeek":"timeGridDay";ee!==l&&u(ee)}},se=new ResizeObserver(te);return se.observe(i.current),()=>se.disconnect()},[d,l]),pe.useLayoutEffect(()=>{if(s.current){const te=s.current.getApi();requestAnimationFrame(()=>{te.changeView(l)})}},[l]),pe.useEffect(()=>{if(i.current){const te=i.current.querySelector(".fc-scroller");te&&(te.style.overflow="auto",D.current=te)}},[l]);const T=()=>{s.current&&s.current.getApi().prev()},O=()=>{s.current&&s.current.getApi().next()},P=()=>{s.current&&s.current.getApi().today()},H=te=>{u(te),f(!0),s.current&&s.current.getApi().changeView(te)},Q=te=>{b(te.view.title)},q=pe.useCallback(te=>{const se=te.event.backgroundColor||te.event.extendedProps.backgroundColor,de=te.event.borderColor||te.event.extendedProps.borderColor,W=te.event.textColor||te.event.extendedProps.textColor;se&&(te.el.style.backgroundColor=se),de&&(te.el.style.borderColor=de),W&&(te.el.style.color=W)},[]),x=pe.useCallback(te=>{D.current&&(S(!0),E.current={x:te.pageX,scrollLeft:D.current.scrollLeft})},[]),L=pe.useCallback(te=>{if(!y||!D.current)return;te.preventDefault();const se=te.pageX-E.current.x;D.current.scrollLeft=E.current.scrollLeft-se},[y]),I=pe.useCallback(()=>S(!1),[]),U=pe.useCallback(()=>S(!1),[]),G=te=>{te&&s.current&&s.current.getApi().gotoDate(te.toJSDate()),v(null)};return Y.jsxs(Re.Box,{ref:i,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:[Y.jsx(h2,{onPrev:T,onToday:P,onNext:O,onDatePickerOpen:te=>v(te.currentTarget),calendarView:l,onViewChange:H,currentTitle:g}),Y.jsx(IB,{anchorEl:m,onClose:()=>v(null),onDateSelect:G}),Y.jsx(R4,{calendarRef:s,calendarView:l,events:e,onDatesSet:Q,eventDidMount:q,showAllDaySlot:p,onMouseDown:x,onMouseMove:L,onMouseUp:I,onMouseLeave:U,density:o})]})},dD=()=>{const{registerGridItem:e,unregisterGridItem:t}=zs.useGridItemContext();return pe.useEffect(()=>(zs.registerMicroservice("calendar",Mu,{name:"Calendar",description:"Shows events and deadlines in a calendar view",category:"planning",iconComponent:Fu,metadata:{route:{path:"calendar",element:Y.jsx(Mu,{})}}}),()=>{zs.unregisterMicroservice("calendar")}),[]),pe.useEffect(()=>{const n=zs.createGridItem({id:"calendar",x:0,y:0,w:15,h:2,minW:1,minH:1,maxW:15,maxH:15});return e("calendar",Y.jsx(Mu,{}),n),()=>{t("calendar")}},[e,t]),null},Kw={"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"}}},fD=()=>{const{setEvents:e,clearEvents:t}=Mm();return pe.useEffect(()=>zs.eventBus.subscribe(r=>{if(r.length>0){const o=r.map(i=>{const s=i.metadata||{};let l="#2196f3",u="#1976d2";if(s.source==="courses"&&s.subject&&s.courseLevel){const d=Kw[s.subject]||Kw["COMP.CS"];l=d.levelShades[s.courseLevel]||d.levelShades.basic,u=d.baseColor}return{id:i.id,title:i.title,start:i.start,end:i.end,backgroundColor:l,borderColor:u,textColor:Pm(l),extendedProps:s}});e(o)}else t()}),[e,t]),null},pD={},{useDebugValue:U4}=pe,{useSyncExternalStoreWithSelector:W4}=cD;let Jw=!1;const Y4=e=>e;function G4(e,t=Y4,n){(pD?"production":void 0)!=="production"&&n&&!Jw&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),Jw=!0);const r=W4(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return U4(r),r}const eS=e=>{(pD?"production":void 0)!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t=typeof e=="function"?uD(e):e,n=(r,o)=>G4(t,r,o);return Object.assign(n,t),n},ga=e=>e?eS(e):eS;function hD(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=hD(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Jd(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=hD(e))&&(r&&(r+=" "),r+=t);return r}let q4={data:""},X4=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||q4,Q4=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Z4=/\/\*[^]*?\*\/| +/g,tS=/\n+/g,Pi=(e,t)=>{let n="",r="",o="";for(let i in e){let s=e[i];i[0]=="@"?i[1]=="i"?n=i+" "+s+";":r+=i[1]=="f"?Pi(s,i):i+"{"+Pi(s,i[1]=="k"?"":t)+"}":typeof s=="object"?r+=Pi(s,t?t.replace(/([^,])+/g,l=>i.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,u=>/&/.test(u)?u.replace(/&/g,l):l?l+" "+u:u)):i):s!=null&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=Pi.p?Pi.p(i,s):i+":"+s+";")}return n+(t&&o?t+"{"+o+"}":o)+r},ao={},gD=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+gD(e[n]);return t}return e},K4=(e,t,n,r,o)=>{let i=gD(e),s=ao[i]||(ao[i]=(u=>{let d=0,f=11;for(;d<u.length;)f=101*f+u.charCodeAt(d++)>>>0;return"go"+f})(i));if(!ao[s]){let u=i!==e?e:(d=>{let f,g,b=[{}];for(;f=Q4.exec(d.replace(Z4,""));)f[4]?b.shift():f[3]?(g=f[3].replace(tS," ").trim(),b.unshift(b[0][g]=b[0][g]||{})):b[0][f[1]]=f[2].replace(tS," ").trim();return b[0]})(e);ao[s]=Pi(o?{["@keyframes "+s]:u}:u,n?"":"."+s)}let l=n&&ao.g?ao.g:null;return n&&(ao.g=ao[s]),((u,d,f,g)=>{g?d.data=d.data.replace(g,u):d.data.indexOf(u)===-1&&(d.data=f?u+d.data:d.data+u)})(ao[s],t,r,l),s},J4=(e,t,n)=>e.reduce((r,o,i)=>{let s=t[i];if(s&&s.call){let l=s(n),u=l&&l.props&&l.props.className||/^go/.test(l)&&l;s=u?"."+u:l&&typeof l=="object"?l.props?"":Pi(l,""):l===!1?"":l}return r+o+(s??"")},"");function Im(e){let t=this||{},n=e.call?e(t.p):e;return K4(n.unshift?n.raw?J4(n,[].slice.call(arguments,1),t.p):n.reduce((r,o)=>Object.assign(r,o&&o.call?o(t.p):o),{}):n,X4(t.target),t.g,t.o,t.k)}Im.bind({g:1});Im.bind({k:1});function e3(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function t3(e,t,n){return t&&e3(e.prototype,t),e}function Xo(){return Xo=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Xo.apply(this,arguments)}function n3(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function Nm(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var Oi={downXs:"@media (max-width:599.95px)",upSm:"@media (min-width:600px)"},ru="unmounted",Ds="exited",_s="entering",Ua="entered",nS="exiting",jm=function(e){n3(t,e);function t(r){var o;o=e.call(this,r)||this;var i=r.appear,s;return o.appearStatus=null,r.in?i?(s=Ds,o.appearStatus=_s):s=Ua:r.unmountOnExit||r.mountOnEnter?s=ru:s=Ds,o.state={status:s},o.nextCallback=null,o}t.getDerivedStateFromProps=function(o,i){var s=o.in;return s&&i.status===ru?{status:Ds}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var s=this.state.status;this.props.in?s!==_s&&s!==Ua&&(i=_s):(s===_s||s===Ua)&&(i=nS)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i=o,s=o;return o!=null&&typeof o!="number"&&typeof o!="string"&&(s=o.exit,i=o.enter),{exit:s,enter:i}},n.updateStatus=function(o,i){o===void 0&&(o=!1),i!==null?(this.cancelNextCallback(),i===_s?this.performEnter(o):this.performExit()):this.props.unmountOnExit&&this.state.status===Ds&&this.setState({status:ru})},n.performEnter=function(o){var i=this,s=this.props.enter,l=o,u=this.getTimeouts();if(!o&&!s){this.safeSetState({status:Ua},function(){i.props.onEntered&&i.props.onEntered(i.node,l)});return}this.props.onEnter&&this.props.onEnter(this.node,l),this.safeSetState({status:_s},function(){i.props.onEntering&&i.props.onEntering(i.node,l),i.onTransitionEnd(u.enter,function(){i.safeSetState({status:Ua},function(){i.props.onEntered&&i.props.onEntered(i.node,l)})})})},n.performExit=function(){var o=this,i=this.props.exit,s=this.getTimeouts();if(!i){this.safeSetState({status:Ds},function(){o.props.onExited&&o.props.onExited(o.node)});return}this.props.onExit&&this.props.onExit(this.node),this.safeSetState({status:nS},function(){o.props.onExiting&&o.props.onExiting(o.node),o.onTransitionEnd(s.exit,function(){o.safeSetState({status:Ds},function(){o.props.onExited&&o.props.onExited(o.node)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&this.nextCallback.cancel&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,s=!0;return this.nextCallback=function(){s&&(s=!1,i.nextCallback=null,o())},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var s=o==null&&!this.props.addEndListener;if(!this.node||s){setTimeout(this.nextCallback,0);return}this.props.addEndListener&&this.props.addEndListener(this.node,this.nextCallback),o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===ru)return null;var i=this.props,s=i.children,l=Nm(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return s(o,l)},t3(t,[{key:"node",get:function(){var o,i=(o=this.props.nodeRef)===null||o===void 0?void 0:o.current;if(!i)throw new Error("notistack - Custom snackbar is not refForwarding");return i}}]),t}(pe.Component);function Rs(){}jm.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Rs,onEntering:Rs,onEntered:Rs,onExit:Rs,onExiting:Rs,onExited:Rs};function rS(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function pg(e,t){return pe.useMemo(function(){return e==null&&t==null?null:function(n){rS(e,n),rS(t,n)}},[e,t])}function dd(e){var t=e.timeout,n=e.style,r=n===void 0?{}:n,o=e.mode;return{duration:typeof t=="object"?t[o]||0:t,easing:r.transitionTimingFunction,delay:r.transitionDelay}}var hg={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},mD=function(t){t.scrollTop=t.scrollTop},oS=function(t){return Math.round(t)+"ms"};function Bs(e,t){e===void 0&&(e=["all"]);var n=t||{},r=n.duration,o=r===void 0?300:r,i=n.easing,s=i===void 0?hg.easeInOut:i,l=n.delay,u=l===void 0?0:l,d=Array.isArray(e)?e:[e];return d.map(function(f){var g=typeof o=="string"?o:oS(o),b=typeof u=="string"?u:oS(u);return f+" "+g+" "+s+" "+b}).join(",")}function r3(e){return e&&e.ownerDocument||document}function yD(e){var t=r3(e);return t.defaultView||window}function o3(e,t){t===void 0&&(t=166);var n;function r(){for(var o=this,i=arguments.length,s=new Array(i),l=0;l<i;l++)s[l]=arguments[l];var u=function(){e.apply(o,s)};clearTimeout(n),n=setTimeout(u,t)}return r.clear=function(){clearTimeout(n)},r}function i3(e,t){var n=t.getBoundingClientRect(),r=yD(t),o;if(t.fakeTransform)o=t.fakeTransform;else{var i=r.getComputedStyle(t);o=i.getPropertyValue("-webkit-transform")||i.getPropertyValue("transform")}var s=0,l=0;if(o&&o!=="none"&&typeof o=="string"){var u=o.split("(")[1].split(")")[0].split(",");s=parseInt(u[4],10),l=parseInt(u[5],10)}switch(e){case"left":return"translateX("+(r.innerWidth+s-n.left)+"px)";case"right":return"translateX(-"+(n.left+n.width-s)+"px)";case"up":return"translateY("+(r.innerHeight+l-n.top)+"px)";default:return"translateY(-"+(n.top+n.height-l)+"px)"}}function ou(e,t){if(t){var n=i3(e,t);n&&(t.style.webkitTransform=n,t.style.transform=n)}}var s3=pe.forwardRef(function(e,t){var n=e.children,r=e.direction,o=r===void 0?"down":r,i=e.in,s=e.style,l=e.timeout,u=l===void 0?0:l,d=e.onEnter,f=e.onEntered,g=e.onExit,b=e.onExited,m=Nm(e,["children","direction","in","style","timeout","onEnter","onEntered","onExit","onExited"]),v=pe.useRef(null),p=pg(n.ref,v),y=pg(p,t),S=function(O,P){ou(o,O),mD(O),d&&d(O,P)},E=function(O){var P=(s==null?void 0:s.transitionTimingFunction)||hg.easeOut,H=dd({timeout:u,mode:"enter",style:Xo({},s,{transitionTimingFunction:P})});O.style.webkitTransition=Bs("-webkit-transform",H),O.style.transition=Bs("transform",H),O.style.webkitTransform="none",O.style.transform="none"},D=function(O){var P=(s==null?void 0:s.transitionTimingFunction)||hg.sharp,H=dd({timeout:u,mode:"exit",style:Xo({},s,{transitionTimingFunction:P})});O.style.webkitTransition=Bs("-webkit-transform",H),O.style.transition=Bs("transform",H),ou(o,O),g&&g(O)},R=function(O){O.style.webkitTransition="",O.style.transition="",b&&b(O)},C=pe.useCallback(function(){v.current&&ou(o,v.current)},[o]);return pe.useEffect(function(){if(!(i||o==="down"||o==="right")){var T=o3(function(){v.current&&ou(o,v.current)}),O=yD(v.current);return O.addEventListener("resize",T),function(){T.clear(),O.removeEventListener("resize",T)}}},[o,i]),pe.useEffect(function(){i||C()},[i,C]),pe.createElement(jm,Object.assign({appear:!0,nodeRef:v,onEnter:S,onEntered:f,onEntering:E,onExit:D,onExited:R,in:i,timeout:u},m),function(T,O){return pe.cloneElement(n,Xo({ref:y,style:Xo({visibility:T==="exited"&&!i?"hidden":void 0},s,{},n.props.style)},O))})});s3.displayName="Slide";function ef(e){return Object.entries(e).reduce(function(t,n){var r,o=n[0],i=n[1];return Xo({},t,(r={},r[o]=Im(i),r))},{})}var Ol={SnackbarContainer:"notistack-SnackbarContainer",Snackbar:"notistack-Snackbar",CollapseWrapper:"notistack-CollapseWrapper",MuiContent:"notistack-MuiContent",MuiContentVariant:function(t){return"notistack-MuiContent-"+t}},iS=ef({root:{height:0},entered:{height:"auto"}}),Sh="0px",Eh=175,a3=pe.forwardRef(function(e,t){var n=e.children,r=e.in,o=e.onExited,i=pe.useRef(null),s=pe.useRef(null),l=pg(t,s),u=function(){return i.current?i.current.clientHeight:0},d=function(p){p.style.height=Sh},f=function(p){var y=u(),S=dd({timeout:Eh,mode:"enter"}),E=S.duration,D=S.easing;p.style.transitionDuration=typeof E=="string"?E:E+"ms",p.style.height=y+"px",p.style.transitionTimingFunction=D||""},g=function(p){p.style.height="auto"},b=function(p){p.style.height=u()+"px"},m=function(p){mD(p);var y=dd({timeout:Eh,mode:"exit"}),S=y.duration,E=y.easing;p.style.transitionDuration=typeof S=="string"?S:S+"ms",p.style.height=Sh,p.style.transitionTimingFunction=E||""};return pe.createElement(jm,{in:r,unmountOnExit:!0,onEnter:d,onEntered:g,onEntering:f,onExit:b,onExited:o,onExiting:m,nodeRef:s,timeout:Eh},function(v,p){return pe.createElement("div",Object.assign({ref:l,className:Jd(iS.root,v==="entered"&&iS.entered),style:Xo({pointerEvents:"all",overflow:"hidden",minHeight:Sh,transition:Bs("height")},v==="entered"&&{overflow:"visible"},{},v==="exited"&&!r&&{visibility:"hidden"})},p),pe.createElement("div",{ref:i,className:Ol.CollapseWrapper,style:{display:"flex",width:"100%"}},n))})});a3.displayName="Collapse";var l3=typeof window<"u"?pe.useLayoutEffect:pe.useEffect;function sS(e){var t=pe.useRef(e);return l3(function(){t.current=e}),pe.useCallback(function(){return t.current.apply(void 0,arguments)},[])}var c3=pe.forwardRef(function(e,t){var n=e.children,r=e.className,o=e.autoHideDuration,i=e.disableWindowBlurListener,s=i===void 0?!1:i,l=e.onClose,u=e.id,d=e.open,f=e.SnackbarProps,g=f===void 0?{}:f,b=pe.useRef(),m=sS(function(){l&&l.apply(void 0,arguments)}),v=sS(function(D){!l||D==null||(b.current&&clearTimeout(b.current),b.current=setTimeout(function(){m(null,"timeout",u)},D))});pe.useEffect(function(){return d&&v(o),function(){b.current&&clearTimeout(b.current)}},[d,o,v]);var p=function(){b.current&&clearTimeout(b.current)},y=pe.useCallback(function(){o!=null&&v(o*.5)},[o,v]),S=function(R){g.onMouseEnter&&g.onMouseEnter(R),p()},E=function(R){g.onMouseLeave&&g.onMouseLeave(R),y()};return pe.useEffect(function(){if(!s&&d)return window.addEventListener("focus",y),window.addEventListener("blur",p),function(){window.removeEventListener("focus",y),window.removeEventListener("blur",p)}},[s,y,d]),pe.createElement("div",Object.assign({ref:t},g,{className:Jd(Ol.Snackbar,r),onMouseEnter:S,onMouseLeave:E}),n)});c3.displayName="Snackbar";var xh,u3=ef({root:(xh={display:"flex",flexWrap:"wrap",flexGrow:1},xh[Oi.upSm]={flexGrow:"initial",minWidth:"288px"},xh)}),vD=pe.forwardRef(function(e,t){var n=e.className,r=Nm(e,["className"]);return pe.createElement("div",Object.assign({ref:t,className:Jd(u3.root,n)},r))});vD.displayName="SnackbarContent";var Wa=ef({root:{backgroundColor:"#313131",fontSize:"0.875rem",lineHeight:1.43,letterSpacing:"0.01071em",color:"#fff",alignItems:"center",padding:"6px 16px",borderRadius:"4px",boxShadow:"0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)"},lessPadding:{paddingLeft:8*2.5+"px"},default:{backgroundColor:"#313131"},success:{backgroundColor:"#43a047"},error:{backgroundColor:"#d32f2f"},warning:{backgroundColor:"#ff9800"},info:{backgroundColor:"#2196f3"},message:{display:"flex",alignItems:"center",padding:"8px 0"},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:"16px",marginRight:"-8px"}}),aS="notistack-snackbar",d3=pe.forwardRef(function(e,t){var n=e.id,r=e.message,o=e.action,i=e.iconVariant,s=e.variant,l=e.hideIconVariant,u=e.style,d=e.className,f=i[s],g=o;return typeof g=="function"&&(g=g(n)),pe.createElement(vD,{ref:t,role:"alert","aria-describedby":aS,style:u,className:Jd(Ol.MuiContent,Ol.MuiContentVariant(s),Wa.root,Wa[s],d,!l&&f&&Wa.lessPadding)},pe.createElement("div",{id:aS,className:Wa.message},l?null:f,r),g&&pe.createElement("div",{className:Wa.action},g))});d3.displayName="MaterialDesignContent";var Ya,Ch,iu,su,Dh,lo={view:{default:20},snackbar:{default:6,dense:2}},lS="."+Ol.CollapseWrapper,_h=16;Ya={boxSizing:"border-box",display:"flex",maxHeight:"100%",position:"fixed",zIndex:1400,height:"auto",width:"auto",transition:Bs(["top","right","bottom","left","max-width"],{duration:300,easing:"ease"}),pointerEvents:"none"},Ya[lS]={padding:lo.snackbar.default+"px 0px",transition:"padding 300ms ease 0ms"},Ya.maxWidth="calc(100% - "+lo.view.default*2+"px)",Ya[Oi.downXs]={width:"100%",maxWidth:"calc(100% - "+_h*2+"px)"},Ch={},Ch[lS]={padding:lo.snackbar.dense+"px 0px"},lo.view.default-lo.snackbar.default+"",lo.view.default-lo.snackbar.default+"",iu={left:lo.view.default+"px"},iu[Oi.upSm]={alignItems:"flex-start"},iu[Oi.downXs]={left:_h+"px"},su={right:lo.view.default+"px"},su[Oi.upSm]={alignItems:"flex-end"},su[Oi.downXs]={right:_h+"px"},Dh={left:"50%",transform:"translateX(-50%)"},Dh[Oi.upSm]={alignItems:"center"};process.env.NODE_ENV;var f3=Object.defineProperty,p3=(e,t,n)=>t in e?f3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,sr=(e,t,n)=>p3(e,typeof t!="symbol"?t+"":t,n);const bD=class ul{constructor(){sr(this,"subscribers",new Set),sr(this,"events",new Map)}static getInstance(){return ul.instance||(ul.instance=new ul),ul.instance}subscribe(t){return this.subscribers.add(t),t(Array.from(this.events.values())),()=>{this.subscribers.delete(t)}}publish(t,n){Array.from(this.events.keys()).filter(o=>o.startsWith(`${t}:`)).forEach(o=>this.events.delete(o)),n.forEach(o=>{this.events.set(`${t}:${o.id}`,o)});const r=Array.from(this.events.values());this.subscribers.forEach(o=>o(r))}removeSource(t){Array.from(this.events.keys()).filter(r=>r.startsWith(`${t}:`)).forEach(r=>this.events.delete(r));const n=Array.from(this.events.values());this.subscribers.forEach(r=>r(n))}getAllEvents(){return Array.from(this.events.values())}clear(){this.events.clear(),this.subscribers.forEach(t=>t([]))}};sr(bD,"instance");let h3=bD;h3.getInstance();const wD=class dl{constructor(){sr(this,"subscribers",new Set),sr(this,"currentUser",null),sr(this,"lastEvent",null),sr(this,"storeConfig",null)}configureStore(t){this.storeConfig=t}getStoreConfig(){if(!this.storeConfig)throw new Error("UserBus store not configured. Call configureStore() first.");return this.storeConfig}static getInstance(){return dl.instance||(dl.instance=new dl),dl.instance}subscribe(t){return this.subscribers.add(t),this.lastEvent&&t(this.lastEvent),()=>{this.subscribers.delete(t)}}publish(t){this.lastEvent=t,t.user?this.currentUser=t.user:t.type==="user:loggedOut"&&(this.currentUser=null),this.subscribers.forEach(n=>n(t))}getCurrentUser(){return this.currentUser}getCurrentUserSync(){return this.currentUser}subscribeToUser(t){return t(this.currentUser),this.subscribe(n=>{t(n.user)})}getLastEvent(){return this.lastEvent}clear(){this.currentUser=null,this.lastEvent=null,this.subscribers.forEach(t=>t({type:"user:loggedOut",user:null,timestamp:new Date().toISOString()}))}initializeFromStore(){const t=this.getStoreConfig().getState();t.user&&!this.currentUser&&(this.currentUser=t.user,this.publish({type:"user:loggedIn",user:t.user,timestamp:new Date().toISOString()}))}async getUser(){await this.getStoreConfig().getUser()}async updateUser(t){const n=this.getStoreConfig(),r=n.getState().user,o=await n.updateUser(t);return this.publish({type:"user:updated",user:o,timestamp:new Date().toISOString(),metadata:{previousUser:r}}),o}setUserToUpdate(t){this.getStoreConfig().setUserToUpdate(t)}async fetchCourseUsers(t){await this.getStoreConfig().fetchCourseUsers(t)}getCourseUsers(){return this.getStoreConfig().getState().courseUsers}async logout(){await this.getStoreConfig().logout(),this.publish({type:"user:loggedOut",user:null,timestamp:new Date().toISOString()})}};sr(wD,"instance");let g3=wD;g3.getInstance();var au=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function m3(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function SD(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var Rh={exports:{}},Ga={};/**
|
|
250
|
+
* @license React
|
|
251
|
+
* react-jsx-runtime.production.js
|
|
252
|
+
*
|
|
253
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
254
|
+
*
|
|
255
|
+
* This source code is licensed under the MIT license found in the
|
|
256
|
+
* LICENSE file in the root directory of this source tree.
|
|
257
|
+
*/var cS;function y3(){if(cS)return Ga;cS=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,o,i){var s=null;if(i!==void 0&&(s=""+i),o.key!==void 0&&(s=""+o.key),"key"in o){i={};for(var l in o)l!=="key"&&(i[l]=o[l])}else i=o;return o=i.ref,{$$typeof:e,type:r,key:s,ref:o!==void 0?o:null,props:i}}return Ga.Fragment=t,Ga.jsx=n,Ga.jsxs=n,Ga}var lu={};/**
|
|
258
|
+
* @license React
|
|
259
|
+
* react-jsx-runtime.development.js
|
|
260
|
+
*
|
|
261
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
262
|
+
*
|
|
263
|
+
* This source code is licensed under the MIT license found in the
|
|
264
|
+
* LICENSE file in the root directory of this source tree.
|
|
265
|
+
*/var uS;function v3(){return uS||(uS=1,process.env.NODE_ENV!=="production"&&function(){function e(k){if(k==null)return null;if(typeof k=="function")return k.$$typeof===q?null:k.displayName||k.name||null;if(typeof k=="string")return k;switch(k){case y:return"Fragment";case E:return"Profiler";case S:return"StrictMode";case T:return"Suspense";case O:return"SuspenseList";case Q:return"Activity"}if(typeof k=="object")switch(typeof k.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),k.$$typeof){case p:return"Portal";case R:return k.displayName||"Context";case D:return(k._context.displayName||"Context")+".Consumer";case C:var ee=k.render;return k=k.displayName,k||(k=ee.displayName||ee.name||"",k=k!==""?"ForwardRef("+k+")":"ForwardRef"),k;case P:return ee=k.displayName||null,ee!==null?ee:e(k.type)||"Memo";case H:ee=k._payload,k=k._init;try{return e(k(ee))}catch{}}return null}function t(k){return""+k}function n(k){try{t(k);var ee=!1}catch{ee=!0}if(ee){ee=console;var ie=ee.error,oe=typeof Symbol=="function"&&Symbol.toStringTag&&k[Symbol.toStringTag]||k.constructor.name||"Object";return ie.call(ee,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",oe),t(k)}}function r(k){if(k===y)return"<>";if(typeof k=="object"&&k!==null&&k.$$typeof===H)return"<...>";try{var ee=e(k);return ee?"<"+ee+">":"<...>"}catch{return"<...>"}}function o(){var k=x.A;return k===null?null:k.getOwner()}function i(){return Error("react-stack-top-frame")}function s(k){if(L.call(k,"key")){var ee=Object.getOwnPropertyDescriptor(k,"key").get;if(ee&&ee.isReactWarning)return!1}return k.key!==void 0}function l(k,ee){function ie(){G||(G=!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)",ee))}ie.isReactWarning=!0,Object.defineProperty(k,"key",{get:ie,configurable:!0})}function u(){var k=e(this.type);return te[k]||(te[k]=!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.")),k=this.props.ref,k!==void 0?k:null}function d(k,ee,ie,oe,ye,le){var B=ie.ref;return k={$$typeof:v,type:k,key:ee,props:ie,_owner:oe},(B!==void 0?B:null)!==null?Object.defineProperty(k,"ref",{enumerable:!1,get:u}):Object.defineProperty(k,"ref",{enumerable:!1,value:null}),k._store={},Object.defineProperty(k._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(k,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(k,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:ye}),Object.defineProperty(k,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:le}),Object.freeze&&(Object.freeze(k.props),Object.freeze(k)),k}function f(k,ee,ie,oe,ye,le){var B=ee.children;if(B!==void 0)if(oe)if(I(B)){for(oe=0;oe<B.length;oe++)g(B[oe]);Object.freeze&&Object.freeze(B)}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 g(B);if(L.call(ee,"key")){B=e(k);var N=Object.keys(ee).filter(function(K){return K!=="key"});oe=0<N.length?"{key: someKey, "+N.join(": ..., ")+": ...}":"{key: someKey}",W[B+oe]||(N=0<N.length?"{"+N.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
266
|
+
let props = %s;
|
|
267
|
+
<%s {...props} />
|
|
268
|
+
React keys must be passed directly to JSX without using spread:
|
|
269
|
+
let props = %s;
|
|
270
|
+
<%s key={someKey} {...props} />`,oe,B,N,B),W[B+oe]=!0)}if(B=null,ie!==void 0&&(n(ie),B=""+ie),s(ee)&&(n(ee.key),B=""+ee.key),"key"in ee){ie={};for(var V in ee)V!=="key"&&(ie[V]=ee[V])}else ie=ee;return B&&l(ie,typeof k=="function"?k.displayName||k.name||"Unknown":k),d(k,B,ie,o(),ye,le)}function g(k){b(k)?k._store&&(k._store.validated=1):typeof k=="object"&&k!==null&&k.$$typeof===H&&(k._payload.status==="fulfilled"?b(k._payload.value)&&k._payload.value._store&&(k._payload.value._store.validated=1):k._store&&(k._store.validated=1))}function b(k){return typeof k=="object"&&k!==null&&k.$$typeof===v}var m=pe,v=Symbol.for("react.transitional.element"),p=Symbol.for("react.portal"),y=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),D=Symbol.for("react.consumer"),R=Symbol.for("react.context"),C=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),O=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),H=Symbol.for("react.lazy"),Q=Symbol.for("react.activity"),q=Symbol.for("react.client.reference"),x=m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,L=Object.prototype.hasOwnProperty,I=Array.isArray,U=console.createTask?console.createTask:function(){return null};m={react_stack_bottom_frame:function(k){return k()}};var G,te={},se=m.react_stack_bottom_frame.bind(m,i)(),de=U(r(i)),W={};lu.Fragment=y,lu.jsx=function(k,ee,ie){var oe=1e4>x.recentlyCreatedOwnerStacks++;return f(k,ee,ie,!1,oe?Error("react-stack-top-frame"):se,oe?U(r(k)):de)},lu.jsxs=function(k,ee,ie){var oe=1e4>x.recentlyCreatedOwnerStacks++;return f(k,ee,ie,!0,oe?Error("react-stack-top-frame"):se,oe?U(r(k)):de)}}()),lu}var dS;function b3(){return dS||(dS=1,process.env.NODE_ENV==="production"?Rh.exports=y3():Rh.exports=v3()),Rh.exports}var Fe=b3();const fS=[],ED=(e,t,n)=>{let r=[];return t.forEach(o=>{if(!n[o])return;const i=e[o];i&&(r.length>0&&r.push({kind:"divider"}),r.push(i.header),i.pageOrder.forEach(s=>{const l=i.pages[s];r.push(l)}))}),fS.length>0&&(r.length>0&&r.push({kind:"divider"}),r=[...r,...fS]),r},w3=e=>[...e.allMicroserviceNavigation,...e.externalMicroservices],S3=(e,t)=>{var n;if(!((n=e.metadata)!=null&&n.microservices))return null;const r=(e.children||[]).filter(l=>!t.some(u=>u.segment===l.segment)),o=t.filter(l=>e.metadata.microservices.includes(l.segment)),i=[...r,...o],s=e.children||[];return s.length!==i.length||!s.every((l,u)=>{var d;return l.segment===((d=i[u])==null?void 0:d.segment)})?{...e,children:i}:null},E3=(e,t)=>{var n,r;if((n=e.metadata)!=null&&n.microservices){const o=((r=e.children)==null?void 0:r.filter(u=>!t.some(d=>d.segment===u.segment)))||[],i=t.filter(u=>e.metadata.microservices.includes(u.segment)),s=[...o,...i],l=e.children||[];return JSON.stringify(l)!==JSON.stringify(s)?{...e,children:s}:null}if(e.children&&e.children.length>0){let o=!1;const i=e.children.map(s=>{const l=S3(s,t);return l?(o=!0,l):{...s}});return o?{...e,children:i}:{...e,children:[...i]}}return null},x3=(e,t)=>{const n={...e,pages:Object.keys(e.pages).reduce((o,i)=>{var s;const l=e.pages[i];return o[i]={...l,children:(s=l.children)==null?void 0:s.map(u=>({...u,children:u.children?[...u.children]:void 0}))},o},{})};let r=!1;return Object.keys(n.pages).forEach(o=>{const i=n.pages[o],s=E3(i,t);s&&(n.pages[o]=s,r=!0)}),r?n:null},C3=e=>{try{const t=w3(e);if(t.length===0)return null;const n={...e.sections};let r=!1;if(Object.keys(n).forEach(i=>{const s=n[i],l=x3(s,t);l&&(n[i]=l,r=!0)}),!r)return null;const o=ED(n,e.sectionOrder,e.visibleSections);return{sections:n,navigation:o}}catch(t){throw console.error("[updateMicroserviceNavigationForSections] Error:",t),t}},D3=[],xD=ga((e,t)=>({navigation:D3,sections:{},sectionOrder:[],allMicroserviceNavigation:[],externalMicroservices:[],visibleSections:{},collapsedSections:{},setVisibleSections:n=>{e({visibleSections:n}),t().recalculateNavigation()},setCollapsedSections:n=>{e({collapsedSections:n})},toggleSectionCollapse:n=>{e(r=>({collapsedSections:{...r.collapsedSections,[n]:!r.collapsedSections[n]}}))},addSection:({underHeader:n,pages:r,keepVisible:o})=>e(i=>{const s=n,l={...i.sections},u={...i.visibleSections};o?u[s]=!0:s in u||(u[s]=!1),l[s]||(l[s]={header:{kind:"header",title:n},pages:{},pageOrder:[]}),r.forEach(f=>{const{segment:g,title:b,Icon:m,description:v,instances:p,microservices:y,actionFC:S}=f,E=p==null?void 0:p.map(R=>({kind:"page",segment:R,title:R,metadata:{description:v,forRoles:["student","teacher"],microservices:y},children:[]})),D={kind:"page",segment:g,title:b,iconFC:m,actionFC:S,metadata:{description:v,forRoles:["student","teacher"],isRootTool:!0,underHeader:n,microservices:p?void 0:y},...E&&E.length>0?{children:E}:{}};l[s].pages[g]=D,l[s].pageOrder.includes(g)||l[s].pageOrder.push(g)});const d=i.sections[s]?i.sectionOrder:[...i.sectionOrder,s];return{sections:l,sectionOrder:d,visibleSections:u}}),recalculateNavigation:()=>{const n=t(),r=ED(n.sections,n.sectionOrder,n.visibleSections);JSON.stringify(n.navigation)!==JSON.stringify(r)&&e({navigation:r})},addMicroserviceNavigation:n=>e(r=>r.allMicroserviceNavigation.find(o=>o.segment===n.segment)?r:{allMicroserviceNavigation:[...r.allMicroserviceNavigation,n]}),updateMicroserviceNavigationForSections:()=>{const n=t(),r=C3(n);r&&e(r)},addStandaloneNavigation:n=>e(r=>{let o=[...r.navigation];if(!o.find(i=>i.kind==="page"&&i.segment===n.segment)){const i=o.findIndex(s=>s.kind==="divider"||s.kind==="header");return i!==-1?o.splice(i,0,n):o.push(n),{navigation:o}}return r}),removeHeader:n=>e(r=>{const o={...r.sections};o[n]&&delete o[n];const i=r.sectionOrder.filter(s=>s!==n);return{sections:o,sectionOrder:i}}),setExternalMicroservices:n=>{e({externalMicroservices:n}),t().updateMicroserviceNavigationForSections()}})),CD="navigation-filter-preferences",pS=()=>{try{const e=localStorage.getItem(CD);if(e)return JSON.parse(e)}catch(e){console.warn("Failed to load navigation filter preferences from localStorage:",e)}return null},hS=e=>{try{localStorage.setItem(CD,JSON.stringify(e))}catch(t){console.warn("Failed to save navigation filter preferences to localStorage:",t),t instanceof DOMException&&t.code===22&&console.error("localStorage quota exceeded. Consider clearing old data.")}},_3=ga((e,t)=>({filterOptions:pS()||{},setFilterOptions:n=>e(r=>{const o=typeof n=="function"?n(r.filterOptions):n;return hS(o),{filterOptions:o}}),initializeFilters:()=>{const{sectionOrder:n}=xD.getState(),r=t().filterOptions,o=Object.keys(r).length>0?r:pS()||{},i=n.reduce((l,u)=>(u in o||(l[u]=u==="Courses"),l),{}),s={...o,...i};Object.keys(i).length>0&&(e({filterOptions:s}),hS(s))}})),Lo=new Map,Ts=new Map,gS=()=>{const e=xD.getState(),{setFilterOptions:t}=_3.getState(),n={};Lo.forEach((r,o)=>{var i,s;if(!((i=r.metadata)!=null&&i.showInNavigation))return;const l=r.category||"Microservices";n[l]||(n[l]=[]),n[l].push({segment:o,title:r.name,Icon:r.iconComponent,description:r.description}),(s=r.metadata)!=null&&s.keepVisible&&t(u=>({...u,[l]:!0}))}),Object.entries(n).forEach(([r,o])=>{e.addSection({underHeader:r,pages:o})}),e.recalculateNavigation()};ga(e=>({microservices:Lo,routeProviders:Ts,lastUpdate:Date.now(),registerMicroservice:(t,n)=>{Lo.set(t,n),e({microservices:new Map(Lo),lastUpdate:Date.now()}),gS()},unregisterMicroservice:t=>{Lo.has(t)&&(Lo.delete(t),e({microservices:new Map(Lo),lastUpdate:Date.now()}),gS())},registerRouteProvider:(t,n)=>{Ts.set(t,n),e({routeProviders:new Map(Ts),lastUpdate:Date.now()})},unregisterRouteProvider:t=>{Ts.has(t)&&(Ts.delete(t),e({routeProviders:new Map(Ts),lastUpdate:Date.now()}))},getRoutes:()=>{const t=[];return Lo.forEach(n=>{var r;if((r=n.metadata)!=null&&r.route){const o=n.Component;t.push({path:n.metadata.route.path,element:n.metadata.route.element||Fe.jsx(o,{...n.props}),index:n.metadata.route.index})}}),t}}));var Pu={exports:{}};/**
|
|
271
|
+
* @license
|
|
272
|
+
* Lodash <https://lodash.com/>
|
|
273
|
+
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
274
|
+
* Released under MIT license <https://lodash.com/license>
|
|
275
|
+
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
276
|
+
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
277
|
+
*/var R3=Pu.exports,mS;function T3(){return mS||(mS=1,function(e,t){(function(){var n,r="4.17.21",o=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",l="Invalid `variable` option passed into `_.template`",u="__lodash_hash_undefined__",d=500,f="__lodash_placeholder__",g=1,b=2,m=4,v=1,p=2,y=1,S=2,E=4,D=8,R=16,C=32,T=64,O=128,P=256,H=512,Q=30,q="...",x=800,L=16,I=1,U=2,G=3,te=1/0,se=9007199254740991,de=17976931348623157e292,W=NaN,k=4294967295,ee=k-1,ie=k>>>1,oe=[["ary",O],["bind",y],["bindKey",S],["curry",D],["curryRight",R],["flip",H],["partial",C],["partialRight",T],["rearg",P]],ye="[object Arguments]",le="[object Array]",B="[object AsyncFunction]",N="[object Boolean]",V="[object Date]",K="[object DOMException]",ae="[object Error]",F="[object Function]",ve="[object GeneratorFunction]",Ee="[object Map]",Te="[object Number]",xe="[object Null]",he="[object Object]",fe="[object Promise]",Ce="[object Proxy]",Pe="[object RegExp]",_e="[object Set]",Me="[object String]",nt="[object Symbol]",gr="[object Undefined]",gn="[object WeakMap]",mr="[object WeakSet]",mn="[object ArrayBuffer]",qt="[object DataView]",qr="[object Float32Array]",Xt="[object Float64Array]",yr="[object Int8Array]",Tn="[object Int16Array]",tn="[object Int32Array]",_o="[object Uint8Array]",vr="[object Uint8ClampedArray]",Xr="[object Uint16Array]",Yn="[object Uint32Array]",wa=/\b__p \+= '';/g,bt=/\b(__p \+=) '' \+/g,yn=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Or=/&(?:amp|lt|gt|quot|#39);/g,On=/[&<>"']/g,Cf=RegExp(Or.source),Df=RegExp(On.source),_f=/<%-([\s\S]+?)%>/g,Ye=/<%([\s\S]+?)%>/g,vn=/<%=([\s\S]+?)%>/g,ci=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Y_=/^\w*$/,G_=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Rf=/[\\^$.*+?()[\]{}|]/g,q_=RegExp(Rf.source),Tf=/^\s+/,X_=/\s/,Q_=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Z_=/\{\n\/\* \[wrapped with (.+)\] \*/,K_=/,? & /,J_=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,eR=/[()=,{}\[\]\/\s]/,tR=/\\(\\)?/g,nR=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,cy=/\w*$/,rR=/^[-+]0x[0-9a-f]+$/i,oR=/^0b[01]+$/i,iR=/^\[object .+?Constructor\]$/,sR=/^0o[0-7]+$/i,aR=/^(?:0|[1-9]\d*)$/,lR=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Kl=/($^)/,cR=/['\n\r\u2028\u2029\\]/g,Jl="\\ud800-\\udfff",uR="\\u0300-\\u036f",dR="\\ufe20-\\ufe2f",fR="\\u20d0-\\u20ff",uy=uR+dR+fR,dy="\\u2700-\\u27bf",fy="a-z\\xdf-\\xf6\\xf8-\\xff",pR="\\xac\\xb1\\xd7\\xf7",hR="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",gR="\\u2000-\\u206f",mR=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",py="A-Z\\xc0-\\xd6\\xd8-\\xde",hy="\\ufe0e\\ufe0f",gy=pR+hR+gR+mR,Of="['’]",yR="["+Jl+"]",my="["+gy+"]",ec="["+uy+"]",yy="\\d+",vR="["+dy+"]",vy="["+fy+"]",by="[^"+Jl+gy+yy+dy+fy+py+"]",Af="\\ud83c[\\udffb-\\udfff]",bR="(?:"+ec+"|"+Af+")",wy="[^"+Jl+"]",kf="(?:\\ud83c[\\udde6-\\uddff]){2}",Mf="[\\ud800-\\udbff][\\udc00-\\udfff]",is="["+py+"]",Sy="\\u200d",Ey="(?:"+vy+"|"+by+")",wR="(?:"+is+"|"+by+")",xy="(?:"+Of+"(?:d|ll|m|re|s|t|ve))?",Cy="(?:"+Of+"(?:D|LL|M|RE|S|T|VE))?",Dy=bR+"?",_y="["+hy+"]?",SR="(?:"+Sy+"(?:"+[wy,kf,Mf].join("|")+")"+_y+Dy+")*",ER="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",xR="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Ry=_y+Dy+SR,CR="(?:"+[vR,kf,Mf].join("|")+")"+Ry,DR="(?:"+[wy+ec+"?",ec,kf,Mf,yR].join("|")+")",_R=RegExp(Of,"g"),RR=RegExp(ec,"g"),Pf=RegExp(Af+"(?="+Af+")|"+DR+Ry,"g"),TR=RegExp([is+"?"+vy+"+"+xy+"(?="+[my,is,"$"].join("|")+")",wR+"+"+Cy+"(?="+[my,is+Ey,"$"].join("|")+")",is+"?"+Ey+"+"+xy,is+"+"+Cy,xR,ER,yy,CR].join("|"),"g"),OR=RegExp("["+Sy+Jl+uy+hy+"]"),AR=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,kR=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],MR=-1,Rt={};Rt[qr]=Rt[Xt]=Rt[yr]=Rt[Tn]=Rt[tn]=Rt[_o]=Rt[vr]=Rt[Xr]=Rt[Yn]=!0,Rt[ye]=Rt[le]=Rt[mn]=Rt[N]=Rt[qt]=Rt[V]=Rt[ae]=Rt[F]=Rt[Ee]=Rt[Te]=Rt[he]=Rt[Pe]=Rt[_e]=Rt[Me]=Rt[gn]=!1;var Et={};Et[ye]=Et[le]=Et[mn]=Et[qt]=Et[N]=Et[V]=Et[qr]=Et[Xt]=Et[yr]=Et[Tn]=Et[tn]=Et[Ee]=Et[Te]=Et[he]=Et[Pe]=Et[_e]=Et[Me]=Et[nt]=Et[_o]=Et[vr]=Et[Xr]=Et[Yn]=!0,Et[ae]=Et[F]=Et[gn]=!1;var PR={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},IR={"&":"&","<":"<",">":">",'"':""","'":"'"},NR={"&":"&","<":"<",">":">",""":'"',"'":"'"},jR={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},$R=parseFloat,zR=parseInt,Ty=typeof au=="object"&&au&&au.Object===Object&&au,LR=typeof self=="object"&&self&&self.Object===Object&&self,Jt=Ty||LR||Function("return this")(),If=t&&!t.nodeType&&t,ui=If&&!0&&e&&!e.nodeType&&e,Oy=ui&&ui.exports===If,Nf=Oy&&Ty.process,Gn=function(){try{var ne=ui&&ui.require&&ui.require("util").types;return ne||Nf&&Nf.binding&&Nf.binding("util")}catch{}}(),Ay=Gn&&Gn.isArrayBuffer,ky=Gn&&Gn.isDate,My=Gn&&Gn.isMap,Py=Gn&&Gn.isRegExp,Iy=Gn&&Gn.isSet,Ny=Gn&&Gn.isTypedArray;function An(ne,be,ue){switch(ue.length){case 0:return ne.call(be);case 1:return ne.call(be,ue[0]);case 2:return ne.call(be,ue[0],ue[1]);case 3:return ne.call(be,ue[0],ue[1],ue[2])}return ne.apply(be,ue)}function BR(ne,be,ue,ke){for(var Ue=-1,ot=ne==null?0:ne.length;++Ue<ot;){var Yt=ne[Ue];be(ke,Yt,ue(Yt),ne)}return ke}function qn(ne,be){for(var ue=-1,ke=ne==null?0:ne.length;++ue<ke&&be(ne[ue],ue,ne)!==!1;);return ne}function VR(ne,be){for(var ue=ne==null?0:ne.length;ue--&&be(ne[ue],ue,ne)!==!1;);return ne}function jy(ne,be){for(var ue=-1,ke=ne==null?0:ne.length;++ue<ke;)if(!be(ne[ue],ue,ne))return!1;return!0}function Ro(ne,be){for(var ue=-1,ke=ne==null?0:ne.length,Ue=0,ot=[];++ue<ke;){var Yt=ne[ue];be(Yt,ue,ne)&&(ot[Ue++]=Yt)}return ot}function tc(ne,be){var ue=ne==null?0:ne.length;return!!ue&&ss(ne,be,0)>-1}function jf(ne,be,ue){for(var ke=-1,Ue=ne==null?0:ne.length;++ke<Ue;)if(ue(be,ne[ke]))return!0;return!1}function Tt(ne,be){for(var ue=-1,ke=ne==null?0:ne.length,Ue=Array(ke);++ue<ke;)Ue[ue]=be(ne[ue],ue,ne);return Ue}function To(ne,be){for(var ue=-1,ke=be.length,Ue=ne.length;++ue<ke;)ne[Ue+ue]=be[ue];return ne}function $f(ne,be,ue,ke){var Ue=-1,ot=ne==null?0:ne.length;for(ke&&ot&&(ue=ne[++Ue]);++Ue<ot;)ue=be(ue,ne[Ue],Ue,ne);return ue}function HR(ne,be,ue,ke){var Ue=ne==null?0:ne.length;for(ke&&Ue&&(ue=ne[--Ue]);Ue--;)ue=be(ue,ne[Ue],Ue,ne);return ue}function zf(ne,be){for(var ue=-1,ke=ne==null?0:ne.length;++ue<ke;)if(be(ne[ue],ue,ne))return!0;return!1}var FR=Lf("length");function UR(ne){return ne.split("")}function WR(ne){return ne.match(J_)||[]}function $y(ne,be,ue){var ke;return ue(ne,function(Ue,ot,Yt){if(be(Ue,ot,Yt))return ke=ot,!1}),ke}function nc(ne,be,ue,ke){for(var Ue=ne.length,ot=ue+(ke?1:-1);ke?ot--:++ot<Ue;)if(be(ne[ot],ot,ne))return ot;return-1}function ss(ne,be,ue){return be===be?rT(ne,be,ue):nc(ne,zy,ue)}function YR(ne,be,ue,ke){for(var Ue=ue-1,ot=ne.length;++Ue<ot;)if(ke(ne[Ue],be))return Ue;return-1}function zy(ne){return ne!==ne}function Ly(ne,be){var ue=ne==null?0:ne.length;return ue?Vf(ne,be)/ue:W}function Lf(ne){return function(be){return be==null?n:be[ne]}}function Bf(ne){return function(be){return ne==null?n:ne[be]}}function By(ne,be,ue,ke,Ue){return Ue(ne,function(ot,Yt,wt){ue=ke?(ke=!1,ot):be(ue,ot,Yt,wt)}),ue}function GR(ne,be){var ue=ne.length;for(ne.sort(be);ue--;)ne[ue]=ne[ue].value;return ne}function Vf(ne,be){for(var ue,ke=-1,Ue=ne.length;++ke<Ue;){var ot=be(ne[ke]);ot!==n&&(ue=ue===n?ot:ue+ot)}return ue}function Hf(ne,be){for(var ue=-1,ke=Array(ne);++ue<ne;)ke[ue]=be(ue);return ke}function qR(ne,be){return Tt(be,function(ue){return[ue,ne[ue]]})}function Vy(ne){return ne&&ne.slice(0,Wy(ne)+1).replace(Tf,"")}function kn(ne){return function(be){return ne(be)}}function Ff(ne,be){return Tt(be,function(ue){return ne[ue]})}function Sa(ne,be){return ne.has(be)}function Hy(ne,be){for(var ue=-1,ke=ne.length;++ue<ke&&ss(be,ne[ue],0)>-1;);return ue}function Fy(ne,be){for(var ue=ne.length;ue--&&ss(be,ne[ue],0)>-1;);return ue}function XR(ne,be){for(var ue=ne.length,ke=0;ue--;)ne[ue]===be&&++ke;return ke}var QR=Bf(PR),ZR=Bf(IR);function KR(ne){return"\\"+jR[ne]}function JR(ne,be){return ne==null?n:ne[be]}function as(ne){return OR.test(ne)}function eT(ne){return AR.test(ne)}function tT(ne){for(var be,ue=[];!(be=ne.next()).done;)ue.push(be.value);return ue}function Uf(ne){var be=-1,ue=Array(ne.size);return ne.forEach(function(ke,Ue){ue[++be]=[Ue,ke]}),ue}function Uy(ne,be){return function(ue){return ne(be(ue))}}function Oo(ne,be){for(var ue=-1,ke=ne.length,Ue=0,ot=[];++ue<ke;){var Yt=ne[ue];(Yt===be||Yt===f)&&(ne[ue]=f,ot[Ue++]=ue)}return ot}function rc(ne){var be=-1,ue=Array(ne.size);return ne.forEach(function(ke){ue[++be]=ke}),ue}function nT(ne){var be=-1,ue=Array(ne.size);return ne.forEach(function(ke){ue[++be]=[ke,ke]}),ue}function rT(ne,be,ue){for(var ke=ue-1,Ue=ne.length;++ke<Ue;)if(ne[ke]===be)return ke;return-1}function oT(ne,be,ue){for(var ke=ue+1;ke--;)if(ne[ke]===be)return ke;return ke}function ls(ne){return as(ne)?sT(ne):FR(ne)}function br(ne){return as(ne)?aT(ne):UR(ne)}function Wy(ne){for(var be=ne.length;be--&&X_.test(ne.charAt(be)););return be}var iT=Bf(NR);function sT(ne){for(var be=Pf.lastIndex=0;Pf.test(ne);)++be;return be}function aT(ne){return ne.match(Pf)||[]}function lT(ne){return ne.match(TR)||[]}var cT=function ne(be){be=be==null?Jt:cs.defaults(Jt.Object(),be,cs.pick(Jt,kR));var ue=be.Array,ke=be.Date,Ue=be.Error,ot=be.Function,Yt=be.Math,wt=be.Object,Wf=be.RegExp,uT=be.String,Xn=be.TypeError,oc=ue.prototype,dT=ot.prototype,us=wt.prototype,ic=be["__core-js_shared__"],sc=dT.toString,ut=us.hasOwnProperty,fT=0,Yy=function(){var a=/[^.]+$/.exec(ic&&ic.keys&&ic.keys.IE_PROTO||"");return a?"Symbol(src)_1."+a:""}(),ac=us.toString,pT=sc.call(wt),hT=Jt._,gT=Wf("^"+sc.call(ut).replace(Rf,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),lc=Oy?be.Buffer:n,Ao=be.Symbol,cc=be.Uint8Array,Gy=lc?lc.allocUnsafe:n,uc=Uy(wt.getPrototypeOf,wt),qy=wt.create,Xy=us.propertyIsEnumerable,dc=oc.splice,Qy=Ao?Ao.isConcatSpreadable:n,Ea=Ao?Ao.iterator:n,di=Ao?Ao.toStringTag:n,fc=function(){try{var a=mi(wt,"defineProperty");return a({},"",{}),a}catch{}}(),mT=be.clearTimeout!==Jt.clearTimeout&&be.clearTimeout,yT=ke&&ke.now!==Jt.Date.now&&ke.now,vT=be.setTimeout!==Jt.setTimeout&&be.setTimeout,pc=Yt.ceil,hc=Yt.floor,Yf=wt.getOwnPropertySymbols,bT=lc?lc.isBuffer:n,Zy=be.isFinite,wT=oc.join,ST=Uy(wt.keys,wt),Gt=Yt.max,nn=Yt.min,ET=ke.now,xT=be.parseInt,Ky=Yt.random,CT=oc.reverse,Gf=mi(be,"DataView"),xa=mi(be,"Map"),qf=mi(be,"Promise"),ds=mi(be,"Set"),Ca=mi(be,"WeakMap"),Da=mi(wt,"create"),gc=Ca&&new Ca,fs={},DT=yi(Gf),_T=yi(xa),RT=yi(qf),TT=yi(ds),OT=yi(Ca),mc=Ao?Ao.prototype:n,_a=mc?mc.valueOf:n,Jy=mc?mc.toString:n;function j(a){if(It(a)&&!We(a)&&!(a instanceof Je)){if(a instanceof Qn)return a;if(ut.call(a,"__wrapped__"))return eb(a)}return new Qn(a)}var ps=function(){function a(){}return function(c){if(!Mt(c))return{};if(qy)return qy(c);a.prototype=c;var h=new a;return a.prototype=n,h}}();function yc(){}function Qn(a,c){this.__wrapped__=a,this.__actions__=[],this.__chain__=!!c,this.__index__=0,this.__values__=n}j.templateSettings={escape:_f,evaluate:Ye,interpolate:vn,variable:"",imports:{_:j}},j.prototype=yc.prototype,j.prototype.constructor=j,Qn.prototype=ps(yc.prototype),Qn.prototype.constructor=Qn;function Je(a){this.__wrapped__=a,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=k,this.__views__=[]}function AT(){var a=new Je(this.__wrapped__);return a.__actions__=bn(this.__actions__),a.__dir__=this.__dir__,a.__filtered__=this.__filtered__,a.__iteratees__=bn(this.__iteratees__),a.__takeCount__=this.__takeCount__,a.__views__=bn(this.__views__),a}function kT(){if(this.__filtered__){var a=new Je(this);a.__dir__=-1,a.__filtered__=!0}else a=this.clone(),a.__dir__*=-1;return a}function MT(){var a=this.__wrapped__.value(),c=this.__dir__,h=We(a),_=c<0,M=h?a.length:0,z=UO(0,M,this.__views__),X=z.start,J=z.end,re=J-X,we=_?J:X-1,Se=this.__iteratees__,De=Se.length,Ae=0,Ie=nn(re,this.__takeCount__);if(!h||!_&&M==re&&Ie==re)return xv(a,this.__actions__);var Be=[];e:for(;re--&&Ae<Ie;){we+=c;for(var qe=-1,Ve=a[we];++qe<De;){var Ze=Se[qe],et=Ze.iteratee,In=Ze.type,un=et(Ve);if(In==U)Ve=un;else if(!un){if(In==I)continue e;break e}}Be[Ae++]=Ve}return Be}Je.prototype=ps(yc.prototype),Je.prototype.constructor=Je;function fi(a){var c=-1,h=a==null?0:a.length;for(this.clear();++c<h;){var _=a[c];this.set(_[0],_[1])}}function PT(){this.__data__=Da?Da(null):{},this.size=0}function IT(a){var c=this.has(a)&&delete this.__data__[a];return this.size-=c?1:0,c}function NT(a){var c=this.__data__;if(Da){var h=c[a];return h===u?n:h}return ut.call(c,a)?c[a]:n}function jT(a){var c=this.__data__;return Da?c[a]!==n:ut.call(c,a)}function $T(a,c){var h=this.__data__;return this.size+=this.has(a)?0:1,h[a]=Da&&c===n?u:c,this}fi.prototype.clear=PT,fi.prototype.delete=IT,fi.prototype.get=NT,fi.prototype.has=jT,fi.prototype.set=$T;function Qr(a){var c=-1,h=a==null?0:a.length;for(this.clear();++c<h;){var _=a[c];this.set(_[0],_[1])}}function zT(){this.__data__=[],this.size=0}function LT(a){var c=this.__data__,h=vc(c,a);if(h<0)return!1;var _=c.length-1;return h==_?c.pop():dc.call(c,h,1),--this.size,!0}function BT(a){var c=this.__data__,h=vc(c,a);return h<0?n:c[h][1]}function VT(a){return vc(this.__data__,a)>-1}function HT(a,c){var h=this.__data__,_=vc(h,a);return _<0?(++this.size,h.push([a,c])):h[_][1]=c,this}Qr.prototype.clear=zT,Qr.prototype.delete=LT,Qr.prototype.get=BT,Qr.prototype.has=VT,Qr.prototype.set=HT;function Zr(a){var c=-1,h=a==null?0:a.length;for(this.clear();++c<h;){var _=a[c];this.set(_[0],_[1])}}function FT(){this.size=0,this.__data__={hash:new fi,map:new(xa||Qr),string:new fi}}function UT(a){var c=Ac(this,a).delete(a);return this.size-=c?1:0,c}function WT(a){return Ac(this,a).get(a)}function YT(a){return Ac(this,a).has(a)}function GT(a,c){var h=Ac(this,a),_=h.size;return h.set(a,c),this.size+=h.size==_?0:1,this}Zr.prototype.clear=FT,Zr.prototype.delete=UT,Zr.prototype.get=WT,Zr.prototype.has=YT,Zr.prototype.set=GT;function pi(a){var c=-1,h=a==null?0:a.length;for(this.__data__=new Zr;++c<h;)this.add(a[c])}function qT(a){return this.__data__.set(a,u),this}function XT(a){return this.__data__.has(a)}pi.prototype.add=pi.prototype.push=qT,pi.prototype.has=XT;function wr(a){var c=this.__data__=new Qr(a);this.size=c.size}function QT(){this.__data__=new Qr,this.size=0}function ZT(a){var c=this.__data__,h=c.delete(a);return this.size=c.size,h}function KT(a){return this.__data__.get(a)}function JT(a){return this.__data__.has(a)}function eO(a,c){var h=this.__data__;if(h instanceof Qr){var _=h.__data__;if(!xa||_.length<o-1)return _.push([a,c]),this.size=++h.size,this;h=this.__data__=new Zr(_)}return h.set(a,c),this.size=h.size,this}wr.prototype.clear=QT,wr.prototype.delete=ZT,wr.prototype.get=KT,wr.prototype.has=JT,wr.prototype.set=eO;function ev(a,c){var h=We(a),_=!h&&vi(a),M=!h&&!_&&No(a),z=!h&&!_&&!M&&ys(a),X=h||_||M||z,J=X?Hf(a.length,uT):[],re=J.length;for(var we in a)(c||ut.call(a,we))&&!(X&&(we=="length"||M&&(we=="offset"||we=="parent")||z&&(we=="buffer"||we=="byteLength"||we=="byteOffset")||to(we,re)))&&J.push(we);return J}function tv(a){var c=a.length;return c?a[ip(0,c-1)]:n}function tO(a,c){return kc(bn(a),hi(c,0,a.length))}function nO(a){return kc(bn(a))}function Xf(a,c,h){(h!==n&&!Sr(a[c],h)||h===n&&!(c in a))&&Kr(a,c,h)}function Ra(a,c,h){var _=a[c];(!(ut.call(a,c)&&Sr(_,h))||h===n&&!(c in a))&&Kr(a,c,h)}function vc(a,c){for(var h=a.length;h--;)if(Sr(a[h][0],c))return h;return-1}function rO(a,c,h,_){return ko(a,function(M,z,X){c(_,M,h(M),X)}),_}function nv(a,c){return a&&kr(c,Qt(c),a)}function oO(a,c){return a&&kr(c,Sn(c),a)}function Kr(a,c,h){c=="__proto__"&&fc?fc(a,c,{configurable:!0,enumerable:!0,value:h,writable:!0}):a[c]=h}function Qf(a,c){for(var h=-1,_=c.length,M=ue(_),z=a==null;++h<_;)M[h]=z?n:Ap(a,c[h]);return M}function hi(a,c,h){return a===a&&(h!==n&&(a=a<=h?a:h),c!==n&&(a=a>=c?a:c)),a}function Zn(a,c,h,_,M,z){var X,J=c&g,re=c&b,we=c&m;if(h&&(X=M?h(a,_,M,z):h(a)),X!==n)return X;if(!Mt(a))return a;var Se=We(a);if(Se){if(X=YO(a),!J)return bn(a,X)}else{var De=rn(a),Ae=De==F||De==ve;if(No(a))return _v(a,J);if(De==he||De==ye||Ae&&!M){if(X=re||Ae?{}:Wv(a),!J)return re?NO(a,oO(X,a)):IO(a,nv(X,a))}else{if(!Et[De])return M?a:{};X=GO(a,De,J)}}z||(z=new wr);var Ie=z.get(a);if(Ie)return Ie;z.set(a,X),wb(a)?a.forEach(function(Ve){X.add(Zn(Ve,c,h,Ve,a,z))}):vb(a)&&a.forEach(function(Ve,Ze){X.set(Ze,Zn(Ve,c,h,Ze,a,z))});var Be=we?re?mp:gp:re?Sn:Qt,qe=Se?n:Be(a);return qn(qe||a,function(Ve,Ze){qe&&(Ze=Ve,Ve=a[Ze]),Ra(X,Ze,Zn(Ve,c,h,Ze,a,z))}),X}function iO(a){var c=Qt(a);return function(h){return rv(h,a,c)}}function rv(a,c,h){var _=h.length;if(a==null)return!_;for(a=wt(a);_--;){var M=h[_],z=c[M],X=a[M];if(X===n&&!(M in a)||!z(X))return!1}return!0}function ov(a,c,h){if(typeof a!="function")throw new Xn(s);return Ia(function(){a.apply(n,h)},c)}function Ta(a,c,h,_){var M=-1,z=tc,X=!0,J=a.length,re=[],we=c.length;if(!J)return re;h&&(c=Tt(c,kn(h))),_?(z=jf,X=!1):c.length>=o&&(z=Sa,X=!1,c=new pi(c));e:for(;++M<J;){var Se=a[M],De=h==null?Se:h(Se);if(Se=_||Se!==0?Se:0,X&&De===De){for(var Ae=we;Ae--;)if(c[Ae]===De)continue e;re.push(Se)}else z(c,De,_)||re.push(Se)}return re}var ko=kv(Ar),iv=kv(Kf,!0);function sO(a,c){var h=!0;return ko(a,function(_,M,z){return h=!!c(_,M,z),h}),h}function bc(a,c,h){for(var _=-1,M=a.length;++_<M;){var z=a[_],X=c(z);if(X!=null&&(J===n?X===X&&!Pn(X):h(X,J)))var J=X,re=z}return re}function aO(a,c,h,_){var M=a.length;for(h=Ge(h),h<0&&(h=-h>M?0:M+h),_=_===n||_>M?M:Ge(_),_<0&&(_+=M),_=h>_?0:Eb(_);h<_;)a[h++]=c;return a}function sv(a,c){var h=[];return ko(a,function(_,M,z){c(_,M,z)&&h.push(_)}),h}function en(a,c,h,_,M){var z=-1,X=a.length;for(h||(h=XO),M||(M=[]);++z<X;){var J=a[z];c>0&&h(J)?c>1?en(J,c-1,h,_,M):To(M,J):_||(M[M.length]=J)}return M}var Zf=Mv(),av=Mv(!0);function Ar(a,c){return a&&Zf(a,c,Qt)}function Kf(a,c){return a&&av(a,c,Qt)}function wc(a,c){return Ro(c,function(h){return no(a[h])})}function gi(a,c){c=Po(c,a);for(var h=0,_=c.length;a!=null&&h<_;)a=a[Mr(c[h++])];return h&&h==_?a:n}function lv(a,c,h){var _=c(a);return We(a)?_:To(_,h(a))}function ln(a){return a==null?a===n?gr:xe:di&&di in wt(a)?FO(a):nA(a)}function Jf(a,c){return a>c}function lO(a,c){return a!=null&&ut.call(a,c)}function cO(a,c){return a!=null&&c in wt(a)}function uO(a,c,h){return a>=nn(c,h)&&a<Gt(c,h)}function ep(a,c,h){for(var _=h?jf:tc,M=a[0].length,z=a.length,X=z,J=ue(z),re=1/0,we=[];X--;){var Se=a[X];X&&c&&(Se=Tt(Se,kn(c))),re=nn(Se.length,re),J[X]=!h&&(c||M>=120&&Se.length>=120)?new pi(X&&Se):n}Se=a[0];var De=-1,Ae=J[0];e:for(;++De<M&&we.length<re;){var Ie=Se[De],Be=c?c(Ie):Ie;if(Ie=h||Ie!==0?Ie:0,!(Ae?Sa(Ae,Be):_(we,Be,h))){for(X=z;--X;){var qe=J[X];if(!(qe?Sa(qe,Be):_(a[X],Be,h)))continue e}Ae&&Ae.push(Be),we.push(Ie)}}return we}function dO(a,c,h,_){return Ar(a,function(M,z,X){c(_,h(M),z,X)}),_}function Oa(a,c,h){c=Po(c,a),a=Xv(a,c);var _=a==null?a:a[Mr(Jn(c))];return _==null?n:An(_,a,h)}function cv(a){return It(a)&&ln(a)==ye}function fO(a){return It(a)&&ln(a)==mn}function pO(a){return It(a)&&ln(a)==V}function Aa(a,c,h,_,M){return a===c?!0:a==null||c==null||!It(a)&&!It(c)?a!==a&&c!==c:hO(a,c,h,_,Aa,M)}function hO(a,c,h,_,M,z){var X=We(a),J=We(c),re=X?le:rn(a),we=J?le:rn(c);re=re==ye?he:re,we=we==ye?he:we;var Se=re==he,De=we==he,Ae=re==we;if(Ae&&No(a)){if(!No(c))return!1;X=!0,Se=!1}if(Ae&&!Se)return z||(z=new wr),X||ys(a)?Hv(a,c,h,_,M,z):VO(a,c,re,h,_,M,z);if(!(h&v)){var Ie=Se&&ut.call(a,"__wrapped__"),Be=De&&ut.call(c,"__wrapped__");if(Ie||Be){var qe=Ie?a.value():a,Ve=Be?c.value():c;return z||(z=new wr),M(qe,Ve,h,_,z)}}return Ae?(z||(z=new wr),HO(a,c,h,_,M,z)):!1}function gO(a){return It(a)&&rn(a)==Ee}function tp(a,c,h,_){var M=h.length,z=M,X=!_;if(a==null)return!z;for(a=wt(a);M--;){var J=h[M];if(X&&J[2]?J[1]!==a[J[0]]:!(J[0]in a))return!1}for(;++M<z;){J=h[M];var re=J[0],we=a[re],Se=J[1];if(X&&J[2]){if(we===n&&!(re in a))return!1}else{var De=new wr;if(_)var Ae=_(we,Se,re,a,c,De);if(!(Ae===n?Aa(Se,we,v|p,_,De):Ae))return!1}}return!0}function uv(a){if(!Mt(a)||ZO(a))return!1;var c=no(a)?gT:iR;return c.test(yi(a))}function mO(a){return It(a)&&ln(a)==Pe}function yO(a){return It(a)&&rn(a)==_e}function vO(a){return It(a)&&$c(a.length)&&!!Rt[ln(a)]}function dv(a){return typeof a=="function"?a:a==null?En:typeof a=="object"?We(a)?hv(a[0],a[1]):pv(a):Pb(a)}function np(a){if(!Pa(a))return ST(a);var c=[];for(var h in wt(a))ut.call(a,h)&&h!="constructor"&&c.push(h);return c}function bO(a){if(!Mt(a))return tA(a);var c=Pa(a),h=[];for(var _ in a)_=="constructor"&&(c||!ut.call(a,_))||h.push(_);return h}function rp(a,c){return a<c}function fv(a,c){var h=-1,_=wn(a)?ue(a.length):[];return ko(a,function(M,z,X){_[++h]=c(M,z,X)}),_}function pv(a){var c=vp(a);return c.length==1&&c[0][2]?Gv(c[0][0],c[0][1]):function(h){return h===a||tp(h,a,c)}}function hv(a,c){return wp(a)&&Yv(c)?Gv(Mr(a),c):function(h){var _=Ap(h,a);return _===n&&_===c?kp(h,a):Aa(c,_,v|p)}}function Sc(a,c,h,_,M){a!==c&&Zf(c,function(z,X){if(M||(M=new wr),Mt(z))wO(a,c,X,h,Sc,_,M);else{var J=_?_(Ep(a,X),z,X+"",a,c,M):n;J===n&&(J=z),Xf(a,X,J)}},Sn)}function wO(a,c,h,_,M,z,X){var J=Ep(a,h),re=Ep(c,h),we=X.get(re);if(we){Xf(a,h,we);return}var Se=z?z(J,re,h+"",a,c,X):n,De=Se===n;if(De){var Ae=We(re),Ie=!Ae&&No(re),Be=!Ae&&!Ie&&ys(re);Se=re,Ae||Ie||Be?We(J)?Se=J:Bt(J)?Se=bn(J):Ie?(De=!1,Se=_v(re,!0)):Be?(De=!1,Se=Rv(re,!0)):Se=[]:Na(re)||vi(re)?(Se=J,vi(J)?Se=xb(J):(!Mt(J)||no(J))&&(Se=Wv(re))):De=!1}De&&(X.set(re,Se),M(Se,re,_,z,X),X.delete(re)),Xf(a,h,Se)}function gv(a,c){var h=a.length;if(h)return c+=c<0?h:0,to(c,h)?a[c]:n}function mv(a,c,h){c.length?c=Tt(c,function(z){return We(z)?function(X){return gi(X,z.length===1?z[0]:z)}:z}):c=[En];var _=-1;c=Tt(c,kn(ze()));var M=fv(a,function(z,X,J){var re=Tt(c,function(we){return we(z)});return{criteria:re,index:++_,value:z}});return GR(M,function(z,X){return PO(z,X,h)})}function SO(a,c){return yv(a,c,function(h,_){return kp(a,_)})}function yv(a,c,h){for(var _=-1,M=c.length,z={};++_<M;){var X=c[_],J=gi(a,X);h(J,X)&&ka(z,Po(X,a),J)}return z}function EO(a){return function(c){return gi(c,a)}}function op(a,c,h,_){var M=_?YR:ss,z=-1,X=c.length,J=a;for(a===c&&(c=bn(c)),h&&(J=Tt(a,kn(h)));++z<X;)for(var re=0,we=c[z],Se=h?h(we):we;(re=M(J,Se,re,_))>-1;)J!==a&&dc.call(J,re,1),dc.call(a,re,1);return a}function vv(a,c){for(var h=a?c.length:0,_=h-1;h--;){var M=c[h];if(h==_||M!==z){var z=M;to(M)?dc.call(a,M,1):lp(a,M)}}return a}function ip(a,c){return a+hc(Ky()*(c-a+1))}function xO(a,c,h,_){for(var M=-1,z=Gt(pc((c-a)/(h||1)),0),X=ue(z);z--;)X[_?z:++M]=a,a+=h;return X}function sp(a,c){var h="";if(!a||c<1||c>se)return h;do c%2&&(h+=a),c=hc(c/2),c&&(a+=a);while(c);return h}function Qe(a,c){return xp(qv(a,c,En),a+"")}function CO(a){return tv(vs(a))}function DO(a,c){var h=vs(a);return kc(h,hi(c,0,h.length))}function ka(a,c,h,_){if(!Mt(a))return a;c=Po(c,a);for(var M=-1,z=c.length,X=z-1,J=a;J!=null&&++M<z;){var re=Mr(c[M]),we=h;if(re==="__proto__"||re==="constructor"||re==="prototype")return a;if(M!=X){var Se=J[re];we=_?_(Se,re,J):n,we===n&&(we=Mt(Se)?Se:to(c[M+1])?[]:{})}Ra(J,re,we),J=J[re]}return a}var bv=gc?function(a,c){return gc.set(a,c),a}:En,_O=fc?function(a,c){return fc(a,"toString",{configurable:!0,enumerable:!1,value:Pp(c),writable:!0})}:En;function RO(a){return kc(vs(a))}function Kn(a,c,h){var _=-1,M=a.length;c<0&&(c=-c>M?0:M+c),h=h>M?M:h,h<0&&(h+=M),M=c>h?0:h-c>>>0,c>>>=0;for(var z=ue(M);++_<M;)z[_]=a[_+c];return z}function TO(a,c){var h;return ko(a,function(_,M,z){return h=c(_,M,z),!h}),!!h}function Ec(a,c,h){var _=0,M=a==null?_:a.length;if(typeof c=="number"&&c===c&&M<=ie){for(;_<M;){var z=_+M>>>1,X=a[z];X!==null&&!Pn(X)&&(h?X<=c:X<c)?_=z+1:M=z}return M}return ap(a,c,En,h)}function ap(a,c,h,_){var M=0,z=a==null?0:a.length;if(z===0)return 0;c=h(c);for(var X=c!==c,J=c===null,re=Pn(c),we=c===n;M<z;){var Se=hc((M+z)/2),De=h(a[Se]),Ae=De!==n,Ie=De===null,Be=De===De,qe=Pn(De);if(X)var Ve=_||Be;else we?Ve=Be&&(_||Ae):J?Ve=Be&&Ae&&(_||!Ie):re?Ve=Be&&Ae&&!Ie&&(_||!qe):Ie||qe?Ve=!1:Ve=_?De<=c:De<c;Ve?M=Se+1:z=Se}return nn(z,ee)}function wv(a,c){for(var h=-1,_=a.length,M=0,z=[];++h<_;){var X=a[h],J=c?c(X):X;if(!h||!Sr(J,re)){var re=J;z[M++]=X===0?0:X}}return z}function Sv(a){return typeof a=="number"?a:Pn(a)?W:+a}function Mn(a){if(typeof a=="string")return a;if(We(a))return Tt(a,Mn)+"";if(Pn(a))return Jy?Jy.call(a):"";var c=a+"";return c=="0"&&1/a==-1/0?"-0":c}function Mo(a,c,h){var _=-1,M=tc,z=a.length,X=!0,J=[],re=J;if(h)X=!1,M=jf;else if(z>=o){var we=c?null:LO(a);if(we)return rc(we);X=!1,M=Sa,re=new pi}else re=c?[]:J;e:for(;++_<z;){var Se=a[_],De=c?c(Se):Se;if(Se=h||Se!==0?Se:0,X&&De===De){for(var Ae=re.length;Ae--;)if(re[Ae]===De)continue e;c&&re.push(De),J.push(Se)}else M(re,De,h)||(re!==J&&re.push(De),J.push(Se))}return J}function lp(a,c){return c=Po(c,a),a=Xv(a,c),a==null||delete a[Mr(Jn(c))]}function Ev(a,c,h,_){return ka(a,c,h(gi(a,c)),_)}function xc(a,c,h,_){for(var M=a.length,z=_?M:-1;(_?z--:++z<M)&&c(a[z],z,a););return h?Kn(a,_?0:z,_?z+1:M):Kn(a,_?z+1:0,_?M:z)}function xv(a,c){var h=a;return h instanceof Je&&(h=h.value()),$f(c,function(_,M){return M.func.apply(M.thisArg,To([_],M.args))},h)}function cp(a,c,h){var _=a.length;if(_<2)return _?Mo(a[0]):[];for(var M=-1,z=ue(_);++M<_;)for(var X=a[M],J=-1;++J<_;)J!=M&&(z[M]=Ta(z[M]||X,a[J],c,h));return Mo(en(z,1),c,h)}function Cv(a,c,h){for(var _=-1,M=a.length,z=c.length,X={};++_<M;){var J=_<z?c[_]:n;h(X,a[_],J)}return X}function up(a){return Bt(a)?a:[]}function dp(a){return typeof a=="function"?a:En}function Po(a,c){return We(a)?a:wp(a,c)?[a]:Jv(it(a))}var OO=Qe;function Io(a,c,h){var _=a.length;return h=h===n?_:h,!c&&h>=_?a:Kn(a,c,h)}var Dv=mT||function(a){return Jt.clearTimeout(a)};function _v(a,c){if(c)return a.slice();var h=a.length,_=Gy?Gy(h):new a.constructor(h);return a.copy(_),_}function fp(a){var c=new a.constructor(a.byteLength);return new cc(c).set(new cc(a)),c}function AO(a,c){var h=c?fp(a.buffer):a.buffer;return new a.constructor(h,a.byteOffset,a.byteLength)}function kO(a){var c=new a.constructor(a.source,cy.exec(a));return c.lastIndex=a.lastIndex,c}function MO(a){return _a?wt(_a.call(a)):{}}function Rv(a,c){var h=c?fp(a.buffer):a.buffer;return new a.constructor(h,a.byteOffset,a.length)}function Tv(a,c){if(a!==c){var h=a!==n,_=a===null,M=a===a,z=Pn(a),X=c!==n,J=c===null,re=c===c,we=Pn(c);if(!J&&!we&&!z&&a>c||z&&X&&re&&!J&&!we||_&&X&&re||!h&&re||!M)return 1;if(!_&&!z&&!we&&a<c||we&&h&&M&&!_&&!z||J&&h&&M||!X&&M||!re)return-1}return 0}function PO(a,c,h){for(var _=-1,M=a.criteria,z=c.criteria,X=M.length,J=h.length;++_<X;){var re=Tv(M[_],z[_]);if(re){if(_>=J)return re;var we=h[_];return re*(we=="desc"?-1:1)}}return a.index-c.index}function Ov(a,c,h,_){for(var M=-1,z=a.length,X=h.length,J=-1,re=c.length,we=Gt(z-X,0),Se=ue(re+we),De=!_;++J<re;)Se[J]=c[J];for(;++M<X;)(De||M<z)&&(Se[h[M]]=a[M]);for(;we--;)Se[J++]=a[M++];return Se}function Av(a,c,h,_){for(var M=-1,z=a.length,X=-1,J=h.length,re=-1,we=c.length,Se=Gt(z-J,0),De=ue(Se+we),Ae=!_;++M<Se;)De[M]=a[M];for(var Ie=M;++re<we;)De[Ie+re]=c[re];for(;++X<J;)(Ae||M<z)&&(De[Ie+h[X]]=a[M++]);return De}function bn(a,c){var h=-1,_=a.length;for(c||(c=ue(_));++h<_;)c[h]=a[h];return c}function kr(a,c,h,_){var M=!h;h||(h={});for(var z=-1,X=c.length;++z<X;){var J=c[z],re=_?_(h[J],a[J],J,h,a):n;re===n&&(re=a[J]),M?Kr(h,J,re):Ra(h,J,re)}return h}function IO(a,c){return kr(a,bp(a),c)}function NO(a,c){return kr(a,Fv(a),c)}function Cc(a,c){return function(h,_){var M=We(h)?BR:rO,z=c?c():{};return M(h,a,ze(_,2),z)}}function hs(a){return Qe(function(c,h){var _=-1,M=h.length,z=M>1?h[M-1]:n,X=M>2?h[2]:n;for(z=a.length>3&&typeof z=="function"?(M--,z):n,X&&cn(h[0],h[1],X)&&(z=M<3?n:z,M=1),c=wt(c);++_<M;){var J=h[_];J&&a(c,J,_,z)}return c})}function kv(a,c){return function(h,_){if(h==null)return h;if(!wn(h))return a(h,_);for(var M=h.length,z=c?M:-1,X=wt(h);(c?z--:++z<M)&&_(X[z],z,X)!==!1;);return h}}function Mv(a){return function(c,h,_){for(var M=-1,z=wt(c),X=_(c),J=X.length;J--;){var re=X[a?J:++M];if(h(z[re],re,z)===!1)break}return c}}function jO(a,c,h){var _=c&y,M=Ma(a);function z(){var X=this&&this!==Jt&&this instanceof z?M:a;return X.apply(_?h:this,arguments)}return z}function Pv(a){return function(c){c=it(c);var h=as(c)?br(c):n,_=h?h[0]:c.charAt(0),M=h?Io(h,1).join(""):c.slice(1);return _[a]()+M}}function gs(a){return function(c){return $f(kb(Ab(c).replace(_R,"")),a,"")}}function Ma(a){return function(){var c=arguments;switch(c.length){case 0:return new a;case 1:return new a(c[0]);case 2:return new a(c[0],c[1]);case 3:return new a(c[0],c[1],c[2]);case 4:return new a(c[0],c[1],c[2],c[3]);case 5:return new a(c[0],c[1],c[2],c[3],c[4]);case 6:return new a(c[0],c[1],c[2],c[3],c[4],c[5]);case 7:return new a(c[0],c[1],c[2],c[3],c[4],c[5],c[6])}var h=ps(a.prototype),_=a.apply(h,c);return Mt(_)?_:h}}function $O(a,c,h){var _=Ma(a);function M(){for(var z=arguments.length,X=ue(z),J=z,re=ms(M);J--;)X[J]=arguments[J];var we=z<3&&X[0]!==re&&X[z-1]!==re?[]:Oo(X,re);if(z-=we.length,z<h)return zv(a,c,Dc,M.placeholder,n,X,we,n,n,h-z);var Se=this&&this!==Jt&&this instanceof M?_:a;return An(Se,this,X)}return M}function Iv(a){return function(c,h,_){var M=wt(c);if(!wn(c)){var z=ze(h,3);c=Qt(c),h=function(J){return z(M[J],J,M)}}var X=a(c,h,_);return X>-1?M[z?c[X]:X]:n}}function Nv(a){return eo(function(c){var h=c.length,_=h,M=Qn.prototype.thru;for(a&&c.reverse();_--;){var z=c[_];if(typeof z!="function")throw new Xn(s);if(M&&!X&&Oc(z)=="wrapper")var X=new Qn([],!0)}for(_=X?_:h;++_<h;){z=c[_];var J=Oc(z),re=J=="wrapper"?yp(z):n;re&&Sp(re[0])&&re[1]==(O|D|C|P)&&!re[4].length&&re[9]==1?X=X[Oc(re[0])].apply(X,re[3]):X=z.length==1&&Sp(z)?X[J]():X.thru(z)}return function(){var we=arguments,Se=we[0];if(X&&we.length==1&&We(Se))return X.plant(Se).value();for(var De=0,Ae=h?c[De].apply(this,we):Se;++De<h;)Ae=c[De].call(this,Ae);return Ae}})}function Dc(a,c,h,_,M,z,X,J,re,we){var Se=c&O,De=c&y,Ae=c&S,Ie=c&(D|R),Be=c&H,qe=Ae?n:Ma(a);function Ve(){for(var Ze=arguments.length,et=ue(Ze),In=Ze;In--;)et[In]=arguments[In];if(Ie)var un=ms(Ve),Nn=XR(et,un);if(_&&(et=Ov(et,_,M,Ie)),z&&(et=Av(et,z,X,Ie)),Ze-=Nn,Ie&&Ze<we){var Vt=Oo(et,un);return zv(a,c,Dc,Ve.placeholder,h,et,Vt,J,re,we-Ze)}var Er=De?h:this,oo=Ae?Er[a]:a;return Ze=et.length,J?et=rA(et,J):Be&&Ze>1&&et.reverse(),Se&&re<Ze&&(et.length=re),this&&this!==Jt&&this instanceof Ve&&(oo=qe||Ma(oo)),oo.apply(Er,et)}return Ve}function jv(a,c){return function(h,_){return dO(h,a,c(_),{})}}function _c(a,c){return function(h,_){var M;if(h===n&&_===n)return c;if(h!==n&&(M=h),_!==n){if(M===n)return _;typeof h=="string"||typeof _=="string"?(h=Mn(h),_=Mn(_)):(h=Sv(h),_=Sv(_)),M=a(h,_)}return M}}function pp(a){return eo(function(c){return c=Tt(c,kn(ze())),Qe(function(h){var _=this;return a(c,function(M){return An(M,_,h)})})})}function Rc(a,c){c=c===n?" ":Mn(c);var h=c.length;if(h<2)return h?sp(c,a):c;var _=sp(c,pc(a/ls(c)));return as(c)?Io(br(_),0,a).join(""):_.slice(0,a)}function zO(a,c,h,_){var M=c&y,z=Ma(a);function X(){for(var J=-1,re=arguments.length,we=-1,Se=_.length,De=ue(Se+re),Ae=this&&this!==Jt&&this instanceof X?z:a;++we<Se;)De[we]=_[we];for(;re--;)De[we++]=arguments[++J];return An(Ae,M?h:this,De)}return X}function $v(a){return function(c,h,_){return _&&typeof _!="number"&&cn(c,h,_)&&(h=_=n),c=ro(c),h===n?(h=c,c=0):h=ro(h),_=_===n?c<h?1:-1:ro(_),xO(c,h,_,a)}}function Tc(a){return function(c,h){return typeof c=="string"&&typeof h=="string"||(c=er(c),h=er(h)),a(c,h)}}function zv(a,c,h,_,M,z,X,J,re,we){var Se=c&D,De=Se?X:n,Ae=Se?n:X,Ie=Se?z:n,Be=Se?n:z;c|=Se?C:T,c&=~(Se?T:C),c&E||(c&=-4);var qe=[a,c,M,Ie,De,Be,Ae,J,re,we],Ve=h.apply(n,qe);return Sp(a)&&Qv(Ve,qe),Ve.placeholder=_,Zv(Ve,a,c)}function hp(a){var c=Yt[a];return function(h,_){if(h=er(h),_=_==null?0:nn(Ge(_),292),_&&Zy(h)){var M=(it(h)+"e").split("e"),z=c(M[0]+"e"+(+M[1]+_));return M=(it(z)+"e").split("e"),+(M[0]+"e"+(+M[1]-_))}return c(h)}}var LO=ds&&1/rc(new ds([,-0]))[1]==te?function(a){return new ds(a)}:jp;function Lv(a){return function(c){var h=rn(c);return h==Ee?Uf(c):h==_e?nT(c):qR(c,a(c))}}function Jr(a,c,h,_,M,z,X,J){var re=c&S;if(!re&&typeof a!="function")throw new Xn(s);var we=_?_.length:0;if(we||(c&=-97,_=M=n),X=X===n?X:Gt(Ge(X),0),J=J===n?J:Ge(J),we-=M?M.length:0,c&T){var Se=_,De=M;_=M=n}var Ae=re?n:yp(a),Ie=[a,c,h,_,M,Se,De,z,X,J];if(Ae&&eA(Ie,Ae),a=Ie[0],c=Ie[1],h=Ie[2],_=Ie[3],M=Ie[4],J=Ie[9]=Ie[9]===n?re?0:a.length:Gt(Ie[9]-we,0),!J&&c&(D|R)&&(c&=-25),!c||c==y)var Be=jO(a,c,h);else c==D||c==R?Be=$O(a,c,J):(c==C||c==(y|C))&&!M.length?Be=zO(a,c,h,_):Be=Dc.apply(n,Ie);var qe=Ae?bv:Qv;return Zv(qe(Be,Ie),a,c)}function Bv(a,c,h,_){return a===n||Sr(a,us[h])&&!ut.call(_,h)?c:a}function Vv(a,c,h,_,M,z){return Mt(a)&&Mt(c)&&(z.set(c,a),Sc(a,c,n,Vv,z),z.delete(c)),a}function BO(a){return Na(a)?n:a}function Hv(a,c,h,_,M,z){var X=h&v,J=a.length,re=c.length;if(J!=re&&!(X&&re>J))return!1;var we=z.get(a),Se=z.get(c);if(we&&Se)return we==c&&Se==a;var De=-1,Ae=!0,Ie=h&p?new pi:n;for(z.set(a,c),z.set(c,a);++De<J;){var Be=a[De],qe=c[De];if(_)var Ve=X?_(qe,Be,De,c,a,z):_(Be,qe,De,a,c,z);if(Ve!==n){if(Ve)continue;Ae=!1;break}if(Ie){if(!zf(c,function(Ze,et){if(!Sa(Ie,et)&&(Be===Ze||M(Be,Ze,h,_,z)))return Ie.push(et)})){Ae=!1;break}}else if(!(Be===qe||M(Be,qe,h,_,z))){Ae=!1;break}}return z.delete(a),z.delete(c),Ae}function VO(a,c,h,_,M,z,X){switch(h){case qt:if(a.byteLength!=c.byteLength||a.byteOffset!=c.byteOffset)return!1;a=a.buffer,c=c.buffer;case mn:return!(a.byteLength!=c.byteLength||!z(new cc(a),new cc(c)));case N:case V:case Te:return Sr(+a,+c);case ae:return a.name==c.name&&a.message==c.message;case Pe:case Me:return a==c+"";case Ee:var J=Uf;case _e:var re=_&v;if(J||(J=rc),a.size!=c.size&&!re)return!1;var we=X.get(a);if(we)return we==c;_|=p,X.set(a,c);var Se=Hv(J(a),J(c),_,M,z,X);return X.delete(a),Se;case nt:if(_a)return _a.call(a)==_a.call(c)}return!1}function HO(a,c,h,_,M,z){var X=h&v,J=gp(a),re=J.length,we=gp(c),Se=we.length;if(re!=Se&&!X)return!1;for(var De=re;De--;){var Ae=J[De];if(!(X?Ae in c:ut.call(c,Ae)))return!1}var Ie=z.get(a),Be=z.get(c);if(Ie&&Be)return Ie==c&&Be==a;var qe=!0;z.set(a,c),z.set(c,a);for(var Ve=X;++De<re;){Ae=J[De];var Ze=a[Ae],et=c[Ae];if(_)var In=X?_(et,Ze,Ae,c,a,z):_(Ze,et,Ae,a,c,z);if(!(In===n?Ze===et||M(Ze,et,h,_,z):In)){qe=!1;break}Ve||(Ve=Ae=="constructor")}if(qe&&!Ve){var un=a.constructor,Nn=c.constructor;un!=Nn&&"constructor"in a&&"constructor"in c&&!(typeof un=="function"&&un instanceof un&&typeof Nn=="function"&&Nn instanceof Nn)&&(qe=!1)}return z.delete(a),z.delete(c),qe}function eo(a){return xp(qv(a,n,rb),a+"")}function gp(a){return lv(a,Qt,bp)}function mp(a){return lv(a,Sn,Fv)}var yp=gc?function(a){return gc.get(a)}:jp;function Oc(a){for(var c=a.name+"",h=fs[c],_=ut.call(fs,c)?h.length:0;_--;){var M=h[_],z=M.func;if(z==null||z==a)return M.name}return c}function ms(a){var c=ut.call(j,"placeholder")?j:a;return c.placeholder}function ze(){var a=j.iteratee||Ip;return a=a===Ip?dv:a,arguments.length?a(arguments[0],arguments[1]):a}function Ac(a,c){var h=a.__data__;return QO(c)?h[typeof c=="string"?"string":"hash"]:h.map}function vp(a){for(var c=Qt(a),h=c.length;h--;){var _=c[h],M=a[_];c[h]=[_,M,Yv(M)]}return c}function mi(a,c){var h=JR(a,c);return uv(h)?h:n}function FO(a){var c=ut.call(a,di),h=a[di];try{a[di]=n;var _=!0}catch{}var M=ac.call(a);return _&&(c?a[di]=h:delete a[di]),M}var bp=Yf?function(a){return a==null?[]:(a=wt(a),Ro(Yf(a),function(c){return Xy.call(a,c)}))}:$p,Fv=Yf?function(a){for(var c=[];a;)To(c,bp(a)),a=uc(a);return c}:$p,rn=ln;(Gf&&rn(new Gf(new ArrayBuffer(1)))!=qt||xa&&rn(new xa)!=Ee||qf&&rn(qf.resolve())!=fe||ds&&rn(new ds)!=_e||Ca&&rn(new Ca)!=gn)&&(rn=function(a){var c=ln(a),h=c==he?a.constructor:n,_=h?yi(h):"";if(_)switch(_){case DT:return qt;case _T:return Ee;case RT:return fe;case TT:return _e;case OT:return gn}return c});function UO(a,c,h){for(var _=-1,M=h.length;++_<M;){var z=h[_],X=z.size;switch(z.type){case"drop":a+=X;break;case"dropRight":c-=X;break;case"take":c=nn(c,a+X);break;case"takeRight":a=Gt(a,c-X);break}}return{start:a,end:c}}function WO(a){var c=a.match(Z_);return c?c[1].split(K_):[]}function Uv(a,c,h){c=Po(c,a);for(var _=-1,M=c.length,z=!1;++_<M;){var X=Mr(c[_]);if(!(z=a!=null&&h(a,X)))break;a=a[X]}return z||++_!=M?z:(M=a==null?0:a.length,!!M&&$c(M)&&to(X,M)&&(We(a)||vi(a)))}function YO(a){var c=a.length,h=new a.constructor(c);return c&&typeof a[0]=="string"&&ut.call(a,"index")&&(h.index=a.index,h.input=a.input),h}function Wv(a){return typeof a.constructor=="function"&&!Pa(a)?ps(uc(a)):{}}function GO(a,c,h){var _=a.constructor;switch(c){case mn:return fp(a);case N:case V:return new _(+a);case qt:return AO(a,h);case qr:case Xt:case yr:case Tn:case tn:case _o:case vr:case Xr:case Yn:return Rv(a,h);case Ee:return new _;case Te:case Me:return new _(a);case Pe:return kO(a);case _e:return new _;case nt:return MO(a)}}function qO(a,c){var h=c.length;if(!h)return a;var _=h-1;return c[_]=(h>1?"& ":"")+c[_],c=c.join(h>2?", ":" "),a.replace(Q_,`{
|
|
278
|
+
/* [wrapped with `+c+`] */
|
|
279
|
+
`)}function XO(a){return We(a)||vi(a)||!!(Qy&&a&&a[Qy])}function to(a,c){var h=typeof a;return c=c??se,!!c&&(h=="number"||h!="symbol"&&aR.test(a))&&a>-1&&a%1==0&&a<c}function cn(a,c,h){if(!Mt(h))return!1;var _=typeof c;return(_=="number"?wn(h)&&to(c,h.length):_=="string"&&c in h)?Sr(h[c],a):!1}function wp(a,c){if(We(a))return!1;var h=typeof a;return h=="number"||h=="symbol"||h=="boolean"||a==null||Pn(a)?!0:Y_.test(a)||!ci.test(a)||c!=null&&a in wt(c)}function QO(a){var c=typeof a;return c=="string"||c=="number"||c=="symbol"||c=="boolean"?a!=="__proto__":a===null}function Sp(a){var c=Oc(a),h=j[c];if(typeof h!="function"||!(c in Je.prototype))return!1;if(a===h)return!0;var _=yp(h);return!!_&&a===_[0]}function ZO(a){return!!Yy&&Yy in a}var KO=ic?no:zp;function Pa(a){var c=a&&a.constructor,h=typeof c=="function"&&c.prototype||us;return a===h}function Yv(a){return a===a&&!Mt(a)}function Gv(a,c){return function(h){return h==null?!1:h[a]===c&&(c!==n||a in wt(h))}}function JO(a){var c=Nc(a,function(_){return h.size===d&&h.clear(),_}),h=c.cache;return c}function eA(a,c){var h=a[1],_=c[1],M=h|_,z=M<(y|S|O),X=_==O&&h==D||_==O&&h==P&&a[7].length<=c[8]||_==(O|P)&&c[7].length<=c[8]&&h==D;if(!(z||X))return a;_&y&&(a[2]=c[2],M|=h&y?0:E);var J=c[3];if(J){var re=a[3];a[3]=re?Ov(re,J,c[4]):J,a[4]=re?Oo(a[3],f):c[4]}return J=c[5],J&&(re=a[5],a[5]=re?Av(re,J,c[6]):J,a[6]=re?Oo(a[5],f):c[6]),J=c[7],J&&(a[7]=J),_&O&&(a[8]=a[8]==null?c[8]:nn(a[8],c[8])),a[9]==null&&(a[9]=c[9]),a[0]=c[0],a[1]=M,a}function tA(a){var c=[];if(a!=null)for(var h in wt(a))c.push(h);return c}function nA(a){return ac.call(a)}function qv(a,c,h){return c=Gt(c===n?a.length-1:c,0),function(){for(var _=arguments,M=-1,z=Gt(_.length-c,0),X=ue(z);++M<z;)X[M]=_[c+M];M=-1;for(var J=ue(c+1);++M<c;)J[M]=_[M];return J[c]=h(X),An(a,this,J)}}function Xv(a,c){return c.length<2?a:gi(a,Kn(c,0,-1))}function rA(a,c){for(var h=a.length,_=nn(c.length,h),M=bn(a);_--;){var z=c[_];a[_]=to(z,h)?M[z]:n}return a}function Ep(a,c){if(!(c==="constructor"&&typeof a[c]=="function")&&c!="__proto__")return a[c]}var Qv=Kv(bv),Ia=vT||function(a,c){return Jt.setTimeout(a,c)},xp=Kv(_O);function Zv(a,c,h){var _=c+"";return xp(a,qO(_,oA(WO(_),h)))}function Kv(a){var c=0,h=0;return function(){var _=ET(),M=L-(_-h);if(h=_,M>0){if(++c>=x)return arguments[0]}else c=0;return a.apply(n,arguments)}}function kc(a,c){var h=-1,_=a.length,M=_-1;for(c=c===n?_:c;++h<c;){var z=ip(h,M),X=a[z];a[z]=a[h],a[h]=X}return a.length=c,a}var Jv=JO(function(a){var c=[];return a.charCodeAt(0)===46&&c.push(""),a.replace(G_,function(h,_,M,z){c.push(M?z.replace(tR,"$1"):_||h)}),c});function Mr(a){if(typeof a=="string"||Pn(a))return a;var c=a+"";return c=="0"&&1/a==-1/0?"-0":c}function yi(a){if(a!=null){try{return sc.call(a)}catch{}try{return a+""}catch{}}return""}function oA(a,c){return qn(oe,function(h){var _="_."+h[0];c&h[1]&&!tc(a,_)&&a.push(_)}),a.sort()}function eb(a){if(a instanceof Je)return a.clone();var c=new Qn(a.__wrapped__,a.__chain__);return c.__actions__=bn(a.__actions__),c.__index__=a.__index__,c.__values__=a.__values__,c}function iA(a,c,h){(h?cn(a,c,h):c===n)?c=1:c=Gt(Ge(c),0);var _=a==null?0:a.length;if(!_||c<1)return[];for(var M=0,z=0,X=ue(pc(_/c));M<_;)X[z++]=Kn(a,M,M+=c);return X}function sA(a){for(var c=-1,h=a==null?0:a.length,_=0,M=[];++c<h;){var z=a[c];z&&(M[_++]=z)}return M}function aA(){var a=arguments.length;if(!a)return[];for(var c=ue(a-1),h=arguments[0],_=a;_--;)c[_-1]=arguments[_];return To(We(h)?bn(h):[h],en(c,1))}var lA=Qe(function(a,c){return Bt(a)?Ta(a,en(c,1,Bt,!0)):[]}),cA=Qe(function(a,c){var h=Jn(c);return Bt(h)&&(h=n),Bt(a)?Ta(a,en(c,1,Bt,!0),ze(h,2)):[]}),uA=Qe(function(a,c){var h=Jn(c);return Bt(h)&&(h=n),Bt(a)?Ta(a,en(c,1,Bt,!0),n,h):[]});function dA(a,c,h){var _=a==null?0:a.length;return _?(c=h||c===n?1:Ge(c),Kn(a,c<0?0:c,_)):[]}function fA(a,c,h){var _=a==null?0:a.length;return _?(c=h||c===n?1:Ge(c),c=_-c,Kn(a,0,c<0?0:c)):[]}function pA(a,c){return a&&a.length?xc(a,ze(c,3),!0,!0):[]}function hA(a,c){return a&&a.length?xc(a,ze(c,3),!0):[]}function gA(a,c,h,_){var M=a==null?0:a.length;return M?(h&&typeof h!="number"&&cn(a,c,h)&&(h=0,_=M),aO(a,c,h,_)):[]}function tb(a,c,h){var _=a==null?0:a.length;if(!_)return-1;var M=h==null?0:Ge(h);return M<0&&(M=Gt(_+M,0)),nc(a,ze(c,3),M)}function nb(a,c,h){var _=a==null?0:a.length;if(!_)return-1;var M=_-1;return h!==n&&(M=Ge(h),M=h<0?Gt(_+M,0):nn(M,_-1)),nc(a,ze(c,3),M,!0)}function rb(a){var c=a==null?0:a.length;return c?en(a,1):[]}function mA(a){var c=a==null?0:a.length;return c?en(a,te):[]}function yA(a,c){var h=a==null?0:a.length;return h?(c=c===n?1:Ge(c),en(a,c)):[]}function vA(a){for(var c=-1,h=a==null?0:a.length,_={};++c<h;){var M=a[c];_[M[0]]=M[1]}return _}function ob(a){return a&&a.length?a[0]:n}function bA(a,c,h){var _=a==null?0:a.length;if(!_)return-1;var M=h==null?0:Ge(h);return M<0&&(M=Gt(_+M,0)),ss(a,c,M)}function wA(a){var c=a==null?0:a.length;return c?Kn(a,0,-1):[]}var SA=Qe(function(a){var c=Tt(a,up);return c.length&&c[0]===a[0]?ep(c):[]}),EA=Qe(function(a){var c=Jn(a),h=Tt(a,up);return c===Jn(h)?c=n:h.pop(),h.length&&h[0]===a[0]?ep(h,ze(c,2)):[]}),xA=Qe(function(a){var c=Jn(a),h=Tt(a,up);return c=typeof c=="function"?c:n,c&&h.pop(),h.length&&h[0]===a[0]?ep(h,n,c):[]});function CA(a,c){return a==null?"":wT.call(a,c)}function Jn(a){var c=a==null?0:a.length;return c?a[c-1]:n}function DA(a,c,h){var _=a==null?0:a.length;if(!_)return-1;var M=_;return h!==n&&(M=Ge(h),M=M<0?Gt(_+M,0):nn(M,_-1)),c===c?oT(a,c,M):nc(a,zy,M,!0)}function _A(a,c){return a&&a.length?gv(a,Ge(c)):n}var RA=Qe(ib);function ib(a,c){return a&&a.length&&c&&c.length?op(a,c):a}function TA(a,c,h){return a&&a.length&&c&&c.length?op(a,c,ze(h,2)):a}function OA(a,c,h){return a&&a.length&&c&&c.length?op(a,c,n,h):a}var AA=eo(function(a,c){var h=a==null?0:a.length,_=Qf(a,c);return vv(a,Tt(c,function(M){return to(M,h)?+M:M}).sort(Tv)),_});function kA(a,c){var h=[];if(!(a&&a.length))return h;var _=-1,M=[],z=a.length;for(c=ze(c,3);++_<z;){var X=a[_];c(X,_,a)&&(h.push(X),M.push(_))}return vv(a,M),h}function Cp(a){return a==null?a:CT.call(a)}function MA(a,c,h){var _=a==null?0:a.length;return _?(h&&typeof h!="number"&&cn(a,c,h)?(c=0,h=_):(c=c==null?0:Ge(c),h=h===n?_:Ge(h)),Kn(a,c,h)):[]}function PA(a,c){return Ec(a,c)}function IA(a,c,h){return ap(a,c,ze(h,2))}function NA(a,c){var h=a==null?0:a.length;if(h){var _=Ec(a,c);if(_<h&&Sr(a[_],c))return _}return-1}function jA(a,c){return Ec(a,c,!0)}function $A(a,c,h){return ap(a,c,ze(h,2),!0)}function zA(a,c){var h=a==null?0:a.length;if(h){var _=Ec(a,c,!0)-1;if(Sr(a[_],c))return _}return-1}function LA(a){return a&&a.length?wv(a):[]}function BA(a,c){return a&&a.length?wv(a,ze(c,2)):[]}function VA(a){var c=a==null?0:a.length;return c?Kn(a,1,c):[]}function HA(a,c,h){return a&&a.length?(c=h||c===n?1:Ge(c),Kn(a,0,c<0?0:c)):[]}function FA(a,c,h){var _=a==null?0:a.length;return _?(c=h||c===n?1:Ge(c),c=_-c,Kn(a,c<0?0:c,_)):[]}function UA(a,c){return a&&a.length?xc(a,ze(c,3),!1,!0):[]}function WA(a,c){return a&&a.length?xc(a,ze(c,3)):[]}var YA=Qe(function(a){return Mo(en(a,1,Bt,!0))}),GA=Qe(function(a){var c=Jn(a);return Bt(c)&&(c=n),Mo(en(a,1,Bt,!0),ze(c,2))}),qA=Qe(function(a){var c=Jn(a);return c=typeof c=="function"?c:n,Mo(en(a,1,Bt,!0),n,c)});function XA(a){return a&&a.length?Mo(a):[]}function QA(a,c){return a&&a.length?Mo(a,ze(c,2)):[]}function ZA(a,c){return c=typeof c=="function"?c:n,a&&a.length?Mo(a,n,c):[]}function Dp(a){if(!(a&&a.length))return[];var c=0;return a=Ro(a,function(h){if(Bt(h))return c=Gt(h.length,c),!0}),Hf(c,function(h){return Tt(a,Lf(h))})}function sb(a,c){if(!(a&&a.length))return[];var h=Dp(a);return c==null?h:Tt(h,function(_){return An(c,n,_)})}var KA=Qe(function(a,c){return Bt(a)?Ta(a,c):[]}),JA=Qe(function(a){return cp(Ro(a,Bt))}),ek=Qe(function(a){var c=Jn(a);return Bt(c)&&(c=n),cp(Ro(a,Bt),ze(c,2))}),tk=Qe(function(a){var c=Jn(a);return c=typeof c=="function"?c:n,cp(Ro(a,Bt),n,c)}),nk=Qe(Dp);function rk(a,c){return Cv(a||[],c||[],Ra)}function ok(a,c){return Cv(a||[],c||[],ka)}var ik=Qe(function(a){var c=a.length,h=c>1?a[c-1]:n;return h=typeof h=="function"?(a.pop(),h):n,sb(a,h)});function ab(a){var c=j(a);return c.__chain__=!0,c}function sk(a,c){return c(a),a}function Mc(a,c){return c(a)}var ak=eo(function(a){var c=a.length,h=c?a[0]:0,_=this.__wrapped__,M=function(z){return Qf(z,a)};return c>1||this.__actions__.length||!(_ instanceof Je)||!to(h)?this.thru(M):(_=_.slice(h,+h+(c?1:0)),_.__actions__.push({func:Mc,args:[M],thisArg:n}),new Qn(_,this.__chain__).thru(function(z){return c&&!z.length&&z.push(n),z}))});function lk(){return ab(this)}function ck(){return new Qn(this.value(),this.__chain__)}function uk(){this.__values__===n&&(this.__values__=Sb(this.value()));var a=this.__index__>=this.__values__.length,c=a?n:this.__values__[this.__index__++];return{done:a,value:c}}function dk(){return this}function fk(a){for(var c,h=this;h instanceof yc;){var _=eb(h);_.__index__=0,_.__values__=n,c?M.__wrapped__=_:c=_;var M=_;h=h.__wrapped__}return M.__wrapped__=a,c}function pk(){var a=this.__wrapped__;if(a instanceof Je){var c=a;return this.__actions__.length&&(c=new Je(this)),c=c.reverse(),c.__actions__.push({func:Mc,args:[Cp],thisArg:n}),new Qn(c,this.__chain__)}return this.thru(Cp)}function hk(){return xv(this.__wrapped__,this.__actions__)}var gk=Cc(function(a,c,h){ut.call(a,h)?++a[h]:Kr(a,h,1)});function mk(a,c,h){var _=We(a)?jy:sO;return h&&cn(a,c,h)&&(c=n),_(a,ze(c,3))}function yk(a,c){var h=We(a)?Ro:sv;return h(a,ze(c,3))}var vk=Iv(tb),bk=Iv(nb);function wk(a,c){return en(Pc(a,c),1)}function Sk(a,c){return en(Pc(a,c),te)}function Ek(a,c,h){return h=h===n?1:Ge(h),en(Pc(a,c),h)}function lb(a,c){var h=We(a)?qn:ko;return h(a,ze(c,3))}function cb(a,c){var h=We(a)?VR:iv;return h(a,ze(c,3))}var xk=Cc(function(a,c,h){ut.call(a,h)?a[h].push(c):Kr(a,h,[c])});function Ck(a,c,h,_){a=wn(a)?a:vs(a),h=h&&!_?Ge(h):0;var M=a.length;return h<0&&(h=Gt(M+h,0)),zc(a)?h<=M&&a.indexOf(c,h)>-1:!!M&&ss(a,c,h)>-1}var Dk=Qe(function(a,c,h){var _=-1,M=typeof c=="function",z=wn(a)?ue(a.length):[];return ko(a,function(X){z[++_]=M?An(c,X,h):Oa(X,c,h)}),z}),_k=Cc(function(a,c,h){Kr(a,h,c)});function Pc(a,c){var h=We(a)?Tt:fv;return h(a,ze(c,3))}function Rk(a,c,h,_){return a==null?[]:(We(c)||(c=c==null?[]:[c]),h=_?n:h,We(h)||(h=h==null?[]:[h]),mv(a,c,h))}var Tk=Cc(function(a,c,h){a[h?0:1].push(c)},function(){return[[],[]]});function Ok(a,c,h){var _=We(a)?$f:By,M=arguments.length<3;return _(a,ze(c,4),h,M,ko)}function Ak(a,c,h){var _=We(a)?HR:By,M=arguments.length<3;return _(a,ze(c,4),h,M,iv)}function kk(a,c){var h=We(a)?Ro:sv;return h(a,jc(ze(c,3)))}function Mk(a){var c=We(a)?tv:CO;return c(a)}function Pk(a,c,h){(h?cn(a,c,h):c===n)?c=1:c=Ge(c);var _=We(a)?tO:DO;return _(a,c)}function Ik(a){var c=We(a)?nO:RO;return c(a)}function Nk(a){if(a==null)return 0;if(wn(a))return zc(a)?ls(a):a.length;var c=rn(a);return c==Ee||c==_e?a.size:np(a).length}function jk(a,c,h){var _=We(a)?zf:TO;return h&&cn(a,c,h)&&(c=n),_(a,ze(c,3))}var $k=Qe(function(a,c){if(a==null)return[];var h=c.length;return h>1&&cn(a,c[0],c[1])?c=[]:h>2&&cn(c[0],c[1],c[2])&&(c=[c[0]]),mv(a,en(c,1),[])}),Ic=yT||function(){return Jt.Date.now()};function zk(a,c){if(typeof c!="function")throw new Xn(s);return a=Ge(a),function(){if(--a<1)return c.apply(this,arguments)}}function ub(a,c,h){return c=h?n:c,c=a&&c==null?a.length:c,Jr(a,O,n,n,n,n,c)}function db(a,c){var h;if(typeof c!="function")throw new Xn(s);return a=Ge(a),function(){return--a>0&&(h=c.apply(this,arguments)),a<=1&&(c=n),h}}var _p=Qe(function(a,c,h){var _=y;if(h.length){var M=Oo(h,ms(_p));_|=C}return Jr(a,_,c,h,M)}),fb=Qe(function(a,c,h){var _=y|S;if(h.length){var M=Oo(h,ms(fb));_|=C}return Jr(c,_,a,h,M)});function pb(a,c,h){c=h?n:c;var _=Jr(a,D,n,n,n,n,n,c);return _.placeholder=pb.placeholder,_}function hb(a,c,h){c=h?n:c;var _=Jr(a,R,n,n,n,n,n,c);return _.placeholder=hb.placeholder,_}function gb(a,c,h){var _,M,z,X,J,re,we=0,Se=!1,De=!1,Ae=!0;if(typeof a!="function")throw new Xn(s);c=er(c)||0,Mt(h)&&(Se=!!h.leading,De="maxWait"in h,z=De?Gt(er(h.maxWait)||0,c):z,Ae="trailing"in h?!!h.trailing:Ae);function Ie(Vt){var Er=_,oo=M;return _=M=n,we=Vt,X=a.apply(oo,Er),X}function Be(Vt){return we=Vt,J=Ia(Ze,c),Se?Ie(Vt):X}function qe(Vt){var Er=Vt-re,oo=Vt-we,Ib=c-Er;return De?nn(Ib,z-oo):Ib}function Ve(Vt){var Er=Vt-re,oo=Vt-we;return re===n||Er>=c||Er<0||De&&oo>=z}function Ze(){var Vt=Ic();if(Ve(Vt))return et(Vt);J=Ia(Ze,qe(Vt))}function et(Vt){return J=n,Ae&&_?Ie(Vt):(_=M=n,X)}function In(){J!==n&&Dv(J),we=0,_=re=M=J=n}function un(){return J===n?X:et(Ic())}function Nn(){var Vt=Ic(),Er=Ve(Vt);if(_=arguments,M=this,re=Vt,Er){if(J===n)return Be(re);if(De)return Dv(J),J=Ia(Ze,c),Ie(re)}return J===n&&(J=Ia(Ze,c)),X}return Nn.cancel=In,Nn.flush=un,Nn}var Lk=Qe(function(a,c){return ov(a,1,c)}),Bk=Qe(function(a,c,h){return ov(a,er(c)||0,h)});function Vk(a){return Jr(a,H)}function Nc(a,c){if(typeof a!="function"||c!=null&&typeof c!="function")throw new Xn(s);var h=function(){var _=arguments,M=c?c.apply(this,_):_[0],z=h.cache;if(z.has(M))return z.get(M);var X=a.apply(this,_);return h.cache=z.set(M,X)||z,X};return h.cache=new(Nc.Cache||Zr),h}Nc.Cache=Zr;function jc(a){if(typeof a!="function")throw new Xn(s);return function(){var c=arguments;switch(c.length){case 0:return!a.call(this);case 1:return!a.call(this,c[0]);case 2:return!a.call(this,c[0],c[1]);case 3:return!a.call(this,c[0],c[1],c[2])}return!a.apply(this,c)}}function Hk(a){return db(2,a)}var Fk=OO(function(a,c){c=c.length==1&&We(c[0])?Tt(c[0],kn(ze())):Tt(en(c,1),kn(ze()));var h=c.length;return Qe(function(_){for(var M=-1,z=nn(_.length,h);++M<z;)_[M]=c[M].call(this,_[M]);return An(a,this,_)})}),Rp=Qe(function(a,c){var h=Oo(c,ms(Rp));return Jr(a,C,n,c,h)}),mb=Qe(function(a,c){var h=Oo(c,ms(mb));return Jr(a,T,n,c,h)}),Uk=eo(function(a,c){return Jr(a,P,n,n,n,c)});function Wk(a,c){if(typeof a!="function")throw new Xn(s);return c=c===n?c:Ge(c),Qe(a,c)}function Yk(a,c){if(typeof a!="function")throw new Xn(s);return c=c==null?0:Gt(Ge(c),0),Qe(function(h){var _=h[c],M=Io(h,0,c);return _&&To(M,_),An(a,this,M)})}function Gk(a,c,h){var _=!0,M=!0;if(typeof a!="function")throw new Xn(s);return Mt(h)&&(_="leading"in h?!!h.leading:_,M="trailing"in h?!!h.trailing:M),gb(a,c,{leading:_,maxWait:c,trailing:M})}function qk(a){return ub(a,1)}function Xk(a,c){return Rp(dp(c),a)}function Qk(){if(!arguments.length)return[];var a=arguments[0];return We(a)?a:[a]}function Zk(a){return Zn(a,m)}function Kk(a,c){return c=typeof c=="function"?c:n,Zn(a,m,c)}function Jk(a){return Zn(a,g|m)}function eM(a,c){return c=typeof c=="function"?c:n,Zn(a,g|m,c)}function tM(a,c){return c==null||rv(a,c,Qt(c))}function Sr(a,c){return a===c||a!==a&&c!==c}var nM=Tc(Jf),rM=Tc(function(a,c){return a>=c}),vi=cv(function(){return arguments}())?cv:function(a){return It(a)&&ut.call(a,"callee")&&!Xy.call(a,"callee")},We=ue.isArray,oM=Ay?kn(Ay):fO;function wn(a){return a!=null&&$c(a.length)&&!no(a)}function Bt(a){return It(a)&&wn(a)}function iM(a){return a===!0||a===!1||It(a)&&ln(a)==N}var No=bT||zp,sM=ky?kn(ky):pO;function aM(a){return It(a)&&a.nodeType===1&&!Na(a)}function lM(a){if(a==null)return!0;if(wn(a)&&(We(a)||typeof a=="string"||typeof a.splice=="function"||No(a)||ys(a)||vi(a)))return!a.length;var c=rn(a);if(c==Ee||c==_e)return!a.size;if(Pa(a))return!np(a).length;for(var h in a)if(ut.call(a,h))return!1;return!0}function cM(a,c){return Aa(a,c)}function uM(a,c,h){h=typeof h=="function"?h:n;var _=h?h(a,c):n;return _===n?Aa(a,c,n,h):!!_}function Tp(a){if(!It(a))return!1;var c=ln(a);return c==ae||c==K||typeof a.message=="string"&&typeof a.name=="string"&&!Na(a)}function dM(a){return typeof a=="number"&&Zy(a)}function no(a){if(!Mt(a))return!1;var c=ln(a);return c==F||c==ve||c==B||c==Ce}function yb(a){return typeof a=="number"&&a==Ge(a)}function $c(a){return typeof a=="number"&&a>-1&&a%1==0&&a<=se}function Mt(a){var c=typeof a;return a!=null&&(c=="object"||c=="function")}function It(a){return a!=null&&typeof a=="object"}var vb=My?kn(My):gO;function fM(a,c){return a===c||tp(a,c,vp(c))}function pM(a,c,h){return h=typeof h=="function"?h:n,tp(a,c,vp(c),h)}function hM(a){return bb(a)&&a!=+a}function gM(a){if(KO(a))throw new Ue(i);return uv(a)}function mM(a){return a===null}function yM(a){return a==null}function bb(a){return typeof a=="number"||It(a)&&ln(a)==Te}function Na(a){if(!It(a)||ln(a)!=he)return!1;var c=uc(a);if(c===null)return!0;var h=ut.call(c,"constructor")&&c.constructor;return typeof h=="function"&&h instanceof h&&sc.call(h)==pT}var Op=Py?kn(Py):mO;function vM(a){return yb(a)&&a>=-9007199254740991&&a<=se}var wb=Iy?kn(Iy):yO;function zc(a){return typeof a=="string"||!We(a)&&It(a)&&ln(a)==Me}function Pn(a){return typeof a=="symbol"||It(a)&&ln(a)==nt}var ys=Ny?kn(Ny):vO;function bM(a){return a===n}function wM(a){return It(a)&&rn(a)==gn}function SM(a){return It(a)&&ln(a)==mr}var EM=Tc(rp),xM=Tc(function(a,c){return a<=c});function Sb(a){if(!a)return[];if(wn(a))return zc(a)?br(a):bn(a);if(Ea&&a[Ea])return tT(a[Ea]());var c=rn(a),h=c==Ee?Uf:c==_e?rc:vs;return h(a)}function ro(a){if(!a)return a===0?a:0;if(a=er(a),a===te||a===-1/0){var c=a<0?-1:1;return c*de}return a===a?a:0}function Ge(a){var c=ro(a),h=c%1;return c===c?h?c-h:c:0}function Eb(a){return a?hi(Ge(a),0,k):0}function er(a){if(typeof a=="number")return a;if(Pn(a))return W;if(Mt(a)){var c=typeof a.valueOf=="function"?a.valueOf():a;a=Mt(c)?c+"":c}if(typeof a!="string")return a===0?a:+a;a=Vy(a);var h=oR.test(a);return h||sR.test(a)?zR(a.slice(2),h?2:8):rR.test(a)?W:+a}function xb(a){return kr(a,Sn(a))}function CM(a){return a?hi(Ge(a),-9007199254740991,se):a===0?a:0}function it(a){return a==null?"":Mn(a)}var DM=hs(function(a,c){if(Pa(c)||wn(c)){kr(c,Qt(c),a);return}for(var h in c)ut.call(c,h)&&Ra(a,h,c[h])}),Cb=hs(function(a,c){kr(c,Sn(c),a)}),Lc=hs(function(a,c,h,_){kr(c,Sn(c),a,_)}),_M=hs(function(a,c,h,_){kr(c,Qt(c),a,_)}),RM=eo(Qf);function TM(a,c){var h=ps(a);return c==null?h:nv(h,c)}var OM=Qe(function(a,c){a=wt(a);var h=-1,_=c.length,M=_>2?c[2]:n;for(M&&cn(c[0],c[1],M)&&(_=1);++h<_;)for(var z=c[h],X=Sn(z),J=-1,re=X.length;++J<re;){var we=X[J],Se=a[we];(Se===n||Sr(Se,us[we])&&!ut.call(a,we))&&(a[we]=z[we])}return a}),AM=Qe(function(a){return a.push(n,Vv),An(Db,n,a)});function kM(a,c){return $y(a,ze(c,3),Ar)}function MM(a,c){return $y(a,ze(c,3),Kf)}function PM(a,c){return a==null?a:Zf(a,ze(c,3),Sn)}function IM(a,c){return a==null?a:av(a,ze(c,3),Sn)}function NM(a,c){return a&&Ar(a,ze(c,3))}function jM(a,c){return a&&Kf(a,ze(c,3))}function $M(a){return a==null?[]:wc(a,Qt(a))}function zM(a){return a==null?[]:wc(a,Sn(a))}function Ap(a,c,h){var _=a==null?n:gi(a,c);return _===n?h:_}function LM(a,c){return a!=null&&Uv(a,c,lO)}function kp(a,c){return a!=null&&Uv(a,c,cO)}var BM=jv(function(a,c,h){c!=null&&typeof c.toString!="function"&&(c=ac.call(c)),a[c]=h},Pp(En)),VM=jv(function(a,c,h){c!=null&&typeof c.toString!="function"&&(c=ac.call(c)),ut.call(a,c)?a[c].push(h):a[c]=[h]},ze),HM=Qe(Oa);function Qt(a){return wn(a)?ev(a):np(a)}function Sn(a){return wn(a)?ev(a,!0):bO(a)}function FM(a,c){var h={};return c=ze(c,3),Ar(a,function(_,M,z){Kr(h,c(_,M,z),_)}),h}function UM(a,c){var h={};return c=ze(c,3),Ar(a,function(_,M,z){Kr(h,M,c(_,M,z))}),h}var WM=hs(function(a,c,h){Sc(a,c,h)}),Db=hs(function(a,c,h,_){Sc(a,c,h,_)}),YM=eo(function(a,c){var h={};if(a==null)return h;var _=!1;c=Tt(c,function(z){return z=Po(z,a),_||(_=z.length>1),z}),kr(a,mp(a),h),_&&(h=Zn(h,g|b|m,BO));for(var M=c.length;M--;)lp(h,c[M]);return h});function GM(a,c){return _b(a,jc(ze(c)))}var qM=eo(function(a,c){return a==null?{}:SO(a,c)});function _b(a,c){if(a==null)return{};var h=Tt(mp(a),function(_){return[_]});return c=ze(c),yv(a,h,function(_,M){return c(_,M[0])})}function XM(a,c,h){c=Po(c,a);var _=-1,M=c.length;for(M||(M=1,a=n);++_<M;){var z=a==null?n:a[Mr(c[_])];z===n&&(_=M,z=h),a=no(z)?z.call(a):z}return a}function QM(a,c,h){return a==null?a:ka(a,c,h)}function ZM(a,c,h,_){return _=typeof _=="function"?_:n,a==null?a:ka(a,c,h,_)}var Rb=Lv(Qt),Tb=Lv(Sn);function KM(a,c,h){var _=We(a),M=_||No(a)||ys(a);if(c=ze(c,4),h==null){var z=a&&a.constructor;M?h=_?new z:[]:Mt(a)?h=no(z)?ps(uc(a)):{}:h={}}return(M?qn:Ar)(a,function(X,J,re){return c(h,X,J,re)}),h}function JM(a,c){return a==null?!0:lp(a,c)}function eP(a,c,h){return a==null?a:Ev(a,c,dp(h))}function tP(a,c,h,_){return _=typeof _=="function"?_:n,a==null?a:Ev(a,c,dp(h),_)}function vs(a){return a==null?[]:Ff(a,Qt(a))}function nP(a){return a==null?[]:Ff(a,Sn(a))}function rP(a,c,h){return h===n&&(h=c,c=n),h!==n&&(h=er(h),h=h===h?h:0),c!==n&&(c=er(c),c=c===c?c:0),hi(er(a),c,h)}function oP(a,c,h){return c=ro(c),h===n?(h=c,c=0):h=ro(h),a=er(a),uO(a,c,h)}function iP(a,c,h){if(h&&typeof h!="boolean"&&cn(a,c,h)&&(c=h=n),h===n&&(typeof c=="boolean"?(h=c,c=n):typeof a=="boolean"&&(h=a,a=n)),a===n&&c===n?(a=0,c=1):(a=ro(a),c===n?(c=a,a=0):c=ro(c)),a>c){var _=a;a=c,c=_}if(h||a%1||c%1){var M=Ky();return nn(a+M*(c-a+$R("1e-"+((M+"").length-1))),c)}return ip(a,c)}var sP=gs(function(a,c,h){return c=c.toLowerCase(),a+(h?Ob(c):c)});function Ob(a){return Mp(it(a).toLowerCase())}function Ab(a){return a=it(a),a&&a.replace(lR,QR).replace(RR,"")}function aP(a,c,h){a=it(a),c=Mn(c);var _=a.length;h=h===n?_:hi(Ge(h),0,_);var M=h;return h-=c.length,h>=0&&a.slice(h,M)==c}function lP(a){return a=it(a),a&&Df.test(a)?a.replace(On,ZR):a}function cP(a){return a=it(a),a&&q_.test(a)?a.replace(Rf,"\\$&"):a}var uP=gs(function(a,c,h){return a+(h?"-":"")+c.toLowerCase()}),dP=gs(function(a,c,h){return a+(h?" ":"")+c.toLowerCase()}),fP=Pv("toLowerCase");function pP(a,c,h){a=it(a),c=Ge(c);var _=c?ls(a):0;if(!c||_>=c)return a;var M=(c-_)/2;return Rc(hc(M),h)+a+Rc(pc(M),h)}function hP(a,c,h){a=it(a),c=Ge(c);var _=c?ls(a):0;return c&&_<c?a+Rc(c-_,h):a}function gP(a,c,h){a=it(a),c=Ge(c);var _=c?ls(a):0;return c&&_<c?Rc(c-_,h)+a:a}function mP(a,c,h){return h||c==null?c=0:c&&(c=+c),xT(it(a).replace(Tf,""),c||0)}function yP(a,c,h){return(h?cn(a,c,h):c===n)?c=1:c=Ge(c),sp(it(a),c)}function vP(){var a=arguments,c=it(a[0]);return a.length<3?c:c.replace(a[1],a[2])}var bP=gs(function(a,c,h){return a+(h?"_":"")+c.toLowerCase()});function wP(a,c,h){return h&&typeof h!="number"&&cn(a,c,h)&&(c=h=n),h=h===n?k:h>>>0,h?(a=it(a),a&&(typeof c=="string"||c!=null&&!Op(c))&&(c=Mn(c),!c&&as(a))?Io(br(a),0,h):a.split(c,h)):[]}var SP=gs(function(a,c,h){return a+(h?" ":"")+Mp(c)});function EP(a,c,h){return a=it(a),h=h==null?0:hi(Ge(h),0,a.length),c=Mn(c),a.slice(h,h+c.length)==c}function xP(a,c,h){var _=j.templateSettings;h&&cn(a,c,h)&&(c=n),a=it(a),c=Lc({},c,_,Bv);var M=Lc({},c.imports,_.imports,Bv),z=Qt(M),X=Ff(M,z),J,re,we=0,Se=c.interpolate||Kl,De="__p += '",Ae=Wf((c.escape||Kl).source+"|"+Se.source+"|"+(Se===vn?nR:Kl).source+"|"+(c.evaluate||Kl).source+"|$","g"),Ie="//# sourceURL="+(ut.call(c,"sourceURL")?(c.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++MR+"]")+`
|
|
280
|
+
`;a.replace(Ae,function(Ve,Ze,et,In,un,Nn){return et||(et=In),De+=a.slice(we,Nn).replace(cR,KR),Ze&&(J=!0,De+=`' +
|
|
281
|
+
__e(`+Ze+`) +
|
|
282
|
+
'`),un&&(re=!0,De+=`';
|
|
283
|
+
`+un+`;
|
|
284
|
+
__p += '`),et&&(De+=`' +
|
|
285
|
+
((__t = (`+et+`)) == null ? '' : __t) +
|
|
286
|
+
'`),we=Nn+Ve.length,Ve}),De+=`';
|
|
287
|
+
`;var Be=ut.call(c,"variable")&&c.variable;if(!Be)De=`with (obj) {
|
|
288
|
+
`+De+`
|
|
289
|
+
}
|
|
290
|
+
`;else if(eR.test(Be))throw new Ue(l);De=(re?De.replace(wa,""):De).replace(bt,"$1").replace(yn,"$1;"),De="function("+(Be||"obj")+`) {
|
|
291
|
+
`+(Be?"":`obj || (obj = {});
|
|
292
|
+
`)+"var __t, __p = ''"+(J?", __e = _.escape":"")+(re?`, __j = Array.prototype.join;
|
|
293
|
+
function print() { __p += __j.call(arguments, '') }
|
|
294
|
+
`:`;
|
|
295
|
+
`)+De+`return __p
|
|
296
|
+
}`;var qe=Mb(function(){return ot(z,Ie+"return "+De).apply(n,X)});if(qe.source=De,Tp(qe))throw qe;return qe}function CP(a){return it(a).toLowerCase()}function DP(a){return it(a).toUpperCase()}function _P(a,c,h){if(a=it(a),a&&(h||c===n))return Vy(a);if(!a||!(c=Mn(c)))return a;var _=br(a),M=br(c),z=Hy(_,M),X=Fy(_,M)+1;return Io(_,z,X).join("")}function RP(a,c,h){if(a=it(a),a&&(h||c===n))return a.slice(0,Wy(a)+1);if(!a||!(c=Mn(c)))return a;var _=br(a),M=Fy(_,br(c))+1;return Io(_,0,M).join("")}function TP(a,c,h){if(a=it(a),a&&(h||c===n))return a.replace(Tf,"");if(!a||!(c=Mn(c)))return a;var _=br(a),M=Hy(_,br(c));return Io(_,M).join("")}function OP(a,c){var h=Q,_=q;if(Mt(c)){var M="separator"in c?c.separator:M;h="length"in c?Ge(c.length):h,_="omission"in c?Mn(c.omission):_}a=it(a);var z=a.length;if(as(a)){var X=br(a);z=X.length}if(h>=z)return a;var J=h-ls(_);if(J<1)return _;var re=X?Io(X,0,J).join(""):a.slice(0,J);if(M===n)return re+_;if(X&&(J+=re.length-J),Op(M)){if(a.slice(J).search(M)){var we,Se=re;for(M.global||(M=Wf(M.source,it(cy.exec(M))+"g")),M.lastIndex=0;we=M.exec(Se);)var De=we.index;re=re.slice(0,De===n?J:De)}}else if(a.indexOf(Mn(M),J)!=J){var Ae=re.lastIndexOf(M);Ae>-1&&(re=re.slice(0,Ae))}return re+_}function AP(a){return a=it(a),a&&Cf.test(a)?a.replace(Or,iT):a}var kP=gs(function(a,c,h){return a+(h?" ":"")+c.toUpperCase()}),Mp=Pv("toUpperCase");function kb(a,c,h){return a=it(a),c=h?n:c,c===n?eT(a)?lT(a):WR(a):a.match(c)||[]}var Mb=Qe(function(a,c){try{return An(a,n,c)}catch(h){return Tp(h)?h:new Ue(h)}}),MP=eo(function(a,c){return qn(c,function(h){h=Mr(h),Kr(a,h,_p(a[h],a))}),a});function PP(a){var c=a==null?0:a.length,h=ze();return a=c?Tt(a,function(_){if(typeof _[1]!="function")throw new Xn(s);return[h(_[0]),_[1]]}):[],Qe(function(_){for(var M=-1;++M<c;){var z=a[M];if(An(z[0],this,_))return An(z[1],this,_)}})}function IP(a){return iO(Zn(a,g))}function Pp(a){return function(){return a}}function NP(a,c){return a==null||a!==a?c:a}var jP=Nv(),$P=Nv(!0);function En(a){return a}function Ip(a){return dv(typeof a=="function"?a:Zn(a,g))}function zP(a){return pv(Zn(a,g))}function LP(a,c){return hv(a,Zn(c,g))}var BP=Qe(function(a,c){return function(h){return Oa(h,a,c)}}),VP=Qe(function(a,c){return function(h){return Oa(a,h,c)}});function Np(a,c,h){var _=Qt(c),M=wc(c,_);h==null&&!(Mt(c)&&(M.length||!_.length))&&(h=c,c=a,a=this,M=wc(c,Qt(c)));var z=!(Mt(h)&&"chain"in h)||!!h.chain,X=no(a);return qn(M,function(J){var re=c[J];a[J]=re,X&&(a.prototype[J]=function(){var we=this.__chain__;if(z||we){var Se=a(this.__wrapped__),De=Se.__actions__=bn(this.__actions__);return De.push({func:re,args:arguments,thisArg:a}),Se.__chain__=we,Se}return re.apply(a,To([this.value()],arguments))})}),a}function HP(){return Jt._===this&&(Jt._=hT),this}function jp(){}function FP(a){return a=Ge(a),Qe(function(c){return gv(c,a)})}var UP=pp(Tt),WP=pp(jy),YP=pp(zf);function Pb(a){return wp(a)?Lf(Mr(a)):EO(a)}function GP(a){return function(c){return a==null?n:gi(a,c)}}var qP=$v(),XP=$v(!0);function $p(){return[]}function zp(){return!1}function QP(){return{}}function ZP(){return""}function KP(){return!0}function JP(a,c){if(a=Ge(a),a<1||a>se)return[];var h=k,_=nn(a,k);c=ze(c),a-=k;for(var M=Hf(_,c);++h<a;)c(h);return M}function eI(a){return We(a)?Tt(a,Mr):Pn(a)?[a]:bn(Jv(it(a)))}function tI(a){var c=++fT;return it(a)+c}var nI=_c(function(a,c){return a+c},0),rI=hp("ceil"),oI=_c(function(a,c){return a/c},1),iI=hp("floor");function sI(a){return a&&a.length?bc(a,En,Jf):n}function aI(a,c){return a&&a.length?bc(a,ze(c,2),Jf):n}function lI(a){return Ly(a,En)}function cI(a,c){return Ly(a,ze(c,2))}function uI(a){return a&&a.length?bc(a,En,rp):n}function dI(a,c){return a&&a.length?bc(a,ze(c,2),rp):n}var fI=_c(function(a,c){return a*c},1),pI=hp("round"),hI=_c(function(a,c){return a-c},0);function gI(a){return a&&a.length?Vf(a,En):0}function mI(a,c){return a&&a.length?Vf(a,ze(c,2)):0}return j.after=zk,j.ary=ub,j.assign=DM,j.assignIn=Cb,j.assignInWith=Lc,j.assignWith=_M,j.at=RM,j.before=db,j.bind=_p,j.bindAll=MP,j.bindKey=fb,j.castArray=Qk,j.chain=ab,j.chunk=iA,j.compact=sA,j.concat=aA,j.cond=PP,j.conforms=IP,j.constant=Pp,j.countBy=gk,j.create=TM,j.curry=pb,j.curryRight=hb,j.debounce=gb,j.defaults=OM,j.defaultsDeep=AM,j.defer=Lk,j.delay=Bk,j.difference=lA,j.differenceBy=cA,j.differenceWith=uA,j.drop=dA,j.dropRight=fA,j.dropRightWhile=pA,j.dropWhile=hA,j.fill=gA,j.filter=yk,j.flatMap=wk,j.flatMapDeep=Sk,j.flatMapDepth=Ek,j.flatten=rb,j.flattenDeep=mA,j.flattenDepth=yA,j.flip=Vk,j.flow=jP,j.flowRight=$P,j.fromPairs=vA,j.functions=$M,j.functionsIn=zM,j.groupBy=xk,j.initial=wA,j.intersection=SA,j.intersectionBy=EA,j.intersectionWith=xA,j.invert=BM,j.invertBy=VM,j.invokeMap=Dk,j.iteratee=Ip,j.keyBy=_k,j.keys=Qt,j.keysIn=Sn,j.map=Pc,j.mapKeys=FM,j.mapValues=UM,j.matches=zP,j.matchesProperty=LP,j.memoize=Nc,j.merge=WM,j.mergeWith=Db,j.method=BP,j.methodOf=VP,j.mixin=Np,j.negate=jc,j.nthArg=FP,j.omit=YM,j.omitBy=GM,j.once=Hk,j.orderBy=Rk,j.over=UP,j.overArgs=Fk,j.overEvery=WP,j.overSome=YP,j.partial=Rp,j.partialRight=mb,j.partition=Tk,j.pick=qM,j.pickBy=_b,j.property=Pb,j.propertyOf=GP,j.pull=RA,j.pullAll=ib,j.pullAllBy=TA,j.pullAllWith=OA,j.pullAt=AA,j.range=qP,j.rangeRight=XP,j.rearg=Uk,j.reject=kk,j.remove=kA,j.rest=Wk,j.reverse=Cp,j.sampleSize=Pk,j.set=QM,j.setWith=ZM,j.shuffle=Ik,j.slice=MA,j.sortBy=$k,j.sortedUniq=LA,j.sortedUniqBy=BA,j.split=wP,j.spread=Yk,j.tail=VA,j.take=HA,j.takeRight=FA,j.takeRightWhile=UA,j.takeWhile=WA,j.tap=sk,j.throttle=Gk,j.thru=Mc,j.toArray=Sb,j.toPairs=Rb,j.toPairsIn=Tb,j.toPath=eI,j.toPlainObject=xb,j.transform=KM,j.unary=qk,j.union=YA,j.unionBy=GA,j.unionWith=qA,j.uniq=XA,j.uniqBy=QA,j.uniqWith=ZA,j.unset=JM,j.unzip=Dp,j.unzipWith=sb,j.update=eP,j.updateWith=tP,j.values=vs,j.valuesIn=nP,j.without=KA,j.words=kb,j.wrap=Xk,j.xor=JA,j.xorBy=ek,j.xorWith=tk,j.zip=nk,j.zipObject=rk,j.zipObjectDeep=ok,j.zipWith=ik,j.entries=Rb,j.entriesIn=Tb,j.extend=Cb,j.extendWith=Lc,Np(j,j),j.add=nI,j.attempt=Mb,j.camelCase=sP,j.capitalize=Ob,j.ceil=rI,j.clamp=rP,j.clone=Zk,j.cloneDeep=Jk,j.cloneDeepWith=eM,j.cloneWith=Kk,j.conformsTo=tM,j.deburr=Ab,j.defaultTo=NP,j.divide=oI,j.endsWith=aP,j.eq=Sr,j.escape=lP,j.escapeRegExp=cP,j.every=mk,j.find=vk,j.findIndex=tb,j.findKey=kM,j.findLast=bk,j.findLastIndex=nb,j.findLastKey=MM,j.floor=iI,j.forEach=lb,j.forEachRight=cb,j.forIn=PM,j.forInRight=IM,j.forOwn=NM,j.forOwnRight=jM,j.get=Ap,j.gt=nM,j.gte=rM,j.has=LM,j.hasIn=kp,j.head=ob,j.identity=En,j.includes=Ck,j.indexOf=bA,j.inRange=oP,j.invoke=HM,j.isArguments=vi,j.isArray=We,j.isArrayBuffer=oM,j.isArrayLike=wn,j.isArrayLikeObject=Bt,j.isBoolean=iM,j.isBuffer=No,j.isDate=sM,j.isElement=aM,j.isEmpty=lM,j.isEqual=cM,j.isEqualWith=uM,j.isError=Tp,j.isFinite=dM,j.isFunction=no,j.isInteger=yb,j.isLength=$c,j.isMap=vb,j.isMatch=fM,j.isMatchWith=pM,j.isNaN=hM,j.isNative=gM,j.isNil=yM,j.isNull=mM,j.isNumber=bb,j.isObject=Mt,j.isObjectLike=It,j.isPlainObject=Na,j.isRegExp=Op,j.isSafeInteger=vM,j.isSet=wb,j.isString=zc,j.isSymbol=Pn,j.isTypedArray=ys,j.isUndefined=bM,j.isWeakMap=wM,j.isWeakSet=SM,j.join=CA,j.kebabCase=uP,j.last=Jn,j.lastIndexOf=DA,j.lowerCase=dP,j.lowerFirst=fP,j.lt=EM,j.lte=xM,j.max=sI,j.maxBy=aI,j.mean=lI,j.meanBy=cI,j.min=uI,j.minBy=dI,j.stubArray=$p,j.stubFalse=zp,j.stubObject=QP,j.stubString=ZP,j.stubTrue=KP,j.multiply=fI,j.nth=_A,j.noConflict=HP,j.noop=jp,j.now=Ic,j.pad=pP,j.padEnd=hP,j.padStart=gP,j.parseInt=mP,j.random=iP,j.reduce=Ok,j.reduceRight=Ak,j.repeat=yP,j.replace=vP,j.result=XM,j.round=pI,j.runInContext=ne,j.sample=Mk,j.size=Nk,j.snakeCase=bP,j.some=jk,j.sortedIndex=PA,j.sortedIndexBy=IA,j.sortedIndexOf=NA,j.sortedLastIndex=jA,j.sortedLastIndexBy=$A,j.sortedLastIndexOf=zA,j.startCase=SP,j.startsWith=EP,j.subtract=hI,j.sum=gI,j.sumBy=mI,j.template=xP,j.times=JP,j.toFinite=ro,j.toInteger=Ge,j.toLength=Eb,j.toLower=CP,j.toNumber=er,j.toSafeInteger=CM,j.toString=it,j.toUpper=DP,j.trim=_P,j.trimEnd=RP,j.trimStart=TP,j.truncate=OP,j.unescape=AP,j.uniqueId=tI,j.upperCase=kP,j.upperFirst=Mp,j.each=lb,j.eachRight=cb,j.first=ob,Np(j,function(){var a={};return Ar(j,function(c,h){ut.call(j.prototype,h)||(a[h]=c)}),a}(),{chain:!1}),j.VERSION=r,qn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(a){j[a].placeholder=j}),qn(["drop","take"],function(a,c){Je.prototype[a]=function(h){h=h===n?1:Gt(Ge(h),0);var _=this.__filtered__&&!c?new Je(this):this.clone();return _.__filtered__?_.__takeCount__=nn(h,_.__takeCount__):_.__views__.push({size:nn(h,k),type:a+(_.__dir__<0?"Right":"")}),_},Je.prototype[a+"Right"]=function(h){return this.reverse()[a](h).reverse()}}),qn(["filter","map","takeWhile"],function(a,c){var h=c+1,_=h==I||h==G;Je.prototype[a]=function(M){var z=this.clone();return z.__iteratees__.push({iteratee:ze(M,3),type:h}),z.__filtered__=z.__filtered__||_,z}}),qn(["head","last"],function(a,c){var h="take"+(c?"Right":"");Je.prototype[a]=function(){return this[h](1).value()[0]}}),qn(["initial","tail"],function(a,c){var h="drop"+(c?"":"Right");Je.prototype[a]=function(){return this.__filtered__?new Je(this):this[h](1)}}),Je.prototype.compact=function(){return this.filter(En)},Je.prototype.find=function(a){return this.filter(a).head()},Je.prototype.findLast=function(a){return this.reverse().find(a)},Je.prototype.invokeMap=Qe(function(a,c){return typeof a=="function"?new Je(this):this.map(function(h){return Oa(h,a,c)})}),Je.prototype.reject=function(a){return this.filter(jc(ze(a)))},Je.prototype.slice=function(a,c){a=Ge(a);var h=this;return h.__filtered__&&(a>0||c<0)?new Je(h):(a<0?h=h.takeRight(-a):a&&(h=h.drop(a)),c!==n&&(c=Ge(c),h=c<0?h.dropRight(-c):h.take(c-a)),h)},Je.prototype.takeRightWhile=function(a){return this.reverse().takeWhile(a).reverse()},Je.prototype.toArray=function(){return this.take(k)},Ar(Je.prototype,function(a,c){var h=/^(?:filter|find|map|reject)|While$/.test(c),_=/^(?:head|last)$/.test(c),M=j[_?"take"+(c=="last"?"Right":""):c],z=_||/^find/.test(c);M&&(j.prototype[c]=function(){var X=this.__wrapped__,J=_?[1]:arguments,re=X instanceof Je,we=J[0],Se=re||We(X),De=function(Ze){var et=M.apply(j,To([Ze],J));return _&&Ae?et[0]:et};Se&&h&&typeof we=="function"&&we.length!=1&&(re=Se=!1);var Ae=this.__chain__,Ie=!!this.__actions__.length,Be=z&&!Ae,qe=re&&!Ie;if(!z&&Se){X=qe?X:new Je(this);var Ve=a.apply(X,J);return Ve.__actions__.push({func:Mc,args:[De],thisArg:n}),new Qn(Ve,Ae)}return Be&&qe?a.apply(this,J):(Ve=this.thru(De),Be?_?Ve.value()[0]:Ve.value():Ve)})}),qn(["pop","push","shift","sort","splice","unshift"],function(a){var c=oc[a],h=/^(?:push|sort|unshift)$/.test(a)?"tap":"thru",_=/^(?:pop|shift)$/.test(a);j.prototype[a]=function(){var M=arguments;if(_&&!this.__chain__){var z=this.value();return c.apply(We(z)?z:[],M)}return this[h](function(X){return c.apply(We(X)?X:[],M)})}}),Ar(Je.prototype,function(a,c){var h=j[c];if(h){var _=h.name+"";ut.call(fs,_)||(fs[_]=[]),fs[_].push({name:c,func:h})}}),fs[Dc(n,S).name]=[{name:"wrapper",func:n}],Je.prototype.clone=AT,Je.prototype.reverse=kT,Je.prototype.value=MT,j.prototype.at=ak,j.prototype.chain=lk,j.prototype.commit=ck,j.prototype.next=uk,j.prototype.plant=fk,j.prototype.reverse=pk,j.prototype.toJSON=j.prototype.valueOf=j.prototype.value=hk,j.prototype.first=j.prototype.head,Ea&&(j.prototype[Ea]=dk),j},cs=cT();ui?((ui.exports=cs)._=cs,If._=cs):Jt._=cs}).call(R3)}(Pu,Pu.exports)),Pu.exports}T3();const yS=e=>e,O3=()=>{let e=yS;return{configure(t){e=t},generate(t){return e(t)},reset(){e=yS}}},DD=O3();function Al(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 Vn(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Al(7));return e.charAt(0).toUpperCase()+e.slice(1)}var cu={exports:{}},Th={exports:{}},lt={};/** @license React v16.13.1
|
|
297
|
+
* react-is.production.min.js
|
|
298
|
+
*
|
|
299
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
300
|
+
*
|
|
301
|
+
* This source code is licensed under the MIT license found in the
|
|
302
|
+
* LICENSE file in the root directory of this source tree.
|
|
303
|
+
*/var vS;function A3(){if(vS)return lt;vS=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,b=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,S=e?Symbol.for("react.responder"):60118,E=e?Symbol.for("react.scope"):60119;function D(C){if(typeof C=="object"&&C!==null){var T=C.$$typeof;switch(T){case t:switch(C=C.type,C){case u:case d:case r:case i:case o:case g:return C;default:switch(C=C&&C.$$typeof,C){case l:case f:case v:case m:case s:return C;default:return T}}case n:return T}}}function R(C){return D(C)===d}return lt.AsyncMode=u,lt.ConcurrentMode=d,lt.ContextConsumer=l,lt.ContextProvider=s,lt.Element=t,lt.ForwardRef=f,lt.Fragment=r,lt.Lazy=v,lt.Memo=m,lt.Portal=n,lt.Profiler=i,lt.StrictMode=o,lt.Suspense=g,lt.isAsyncMode=function(C){return R(C)||D(C)===u},lt.isConcurrentMode=R,lt.isContextConsumer=function(C){return D(C)===l},lt.isContextProvider=function(C){return D(C)===s},lt.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===t},lt.isForwardRef=function(C){return D(C)===f},lt.isFragment=function(C){return D(C)===r},lt.isLazy=function(C){return D(C)===v},lt.isMemo=function(C){return D(C)===m},lt.isPortal=function(C){return D(C)===n},lt.isProfiler=function(C){return D(C)===i},lt.isStrictMode=function(C){return D(C)===o},lt.isSuspense=function(C){return D(C)===g},lt.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===r||C===d||C===i||C===o||C===g||C===b||typeof C=="object"&&C!==null&&(C.$$typeof===v||C.$$typeof===m||C.$$typeof===s||C.$$typeof===l||C.$$typeof===f||C.$$typeof===y||C.$$typeof===S||C.$$typeof===E||C.$$typeof===p)},lt.typeOf=D,lt}var pt={};/** @license React v16.13.1
|
|
304
|
+
* react-is.development.js
|
|
305
|
+
*
|
|
306
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
307
|
+
*
|
|
308
|
+
* This source code is licensed under the MIT license found in the
|
|
309
|
+
* LICENSE file in the root directory of this source tree.
|
|
310
|
+
*/var bS;function k3(){return bS||(bS=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,b=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,S=e?Symbol.for("react.responder"):60118,E=e?Symbol.for("react.scope"):60119;function D(F){return typeof F=="string"||typeof F=="function"||F===r||F===d||F===i||F===o||F===g||F===b||typeof F=="object"&&F!==null&&(F.$$typeof===v||F.$$typeof===m||F.$$typeof===s||F.$$typeof===l||F.$$typeof===f||F.$$typeof===y||F.$$typeof===S||F.$$typeof===E||F.$$typeof===p)}function R(F){if(typeof F=="object"&&F!==null){var ve=F.$$typeof;switch(ve){case t:var Ee=F.type;switch(Ee){case u:case d:case r:case i:case o:case g:return Ee;default:var Te=Ee&&Ee.$$typeof;switch(Te){case l:case f:case v:case m:case s:return Te;default:return ve}}case n:return ve}}}var C=u,T=d,O=l,P=s,H=t,Q=f,q=r,x=v,L=m,I=n,U=i,G=o,te=g,se=!1;function de(F){return se||(se=!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.")),W(F)||R(F)===u}function W(F){return R(F)===d}function k(F){return R(F)===l}function ee(F){return R(F)===s}function ie(F){return typeof F=="object"&&F!==null&&F.$$typeof===t}function oe(F){return R(F)===f}function ye(F){return R(F)===r}function le(F){return R(F)===v}function B(F){return R(F)===m}function N(F){return R(F)===n}function V(F){return R(F)===i}function K(F){return R(F)===o}function ae(F){return R(F)===g}pt.AsyncMode=C,pt.ConcurrentMode=T,pt.ContextConsumer=O,pt.ContextProvider=P,pt.Element=H,pt.ForwardRef=Q,pt.Fragment=q,pt.Lazy=x,pt.Memo=L,pt.Portal=I,pt.Profiler=U,pt.StrictMode=G,pt.Suspense=te,pt.isAsyncMode=de,pt.isConcurrentMode=W,pt.isContextConsumer=k,pt.isContextProvider=ee,pt.isElement=ie,pt.isForwardRef=oe,pt.isFragment=ye,pt.isLazy=le,pt.isMemo=B,pt.isPortal=N,pt.isProfiler=V,pt.isStrictMode=K,pt.isSuspense=ae,pt.isValidElementType=D,pt.typeOf=R}()),pt}var wS;function _D(){return wS||(wS=1,process.env.NODE_ENV==="production"?Th.exports=A3():Th.exports=k3()),Th.exports}/*
|
|
311
|
+
object-assign
|
|
312
|
+
(c) Sindre Sorhus
|
|
313
|
+
@license MIT
|
|
314
|
+
*/var Oh,SS;function M3(){if(SS)return Oh;SS=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function o(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var s={},l=0;l<10;l++)s["_"+String.fromCharCode(l)]=l;var u=Object.getOwnPropertyNames(s).map(function(f){return s[f]});if(u.join("")!=="0123456789")return!1;var d={};return"abcdefghijklmnopqrst".split("").forEach(function(f){d[f]=f}),Object.keys(Object.assign({},d)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Oh=o()?Object.assign:function(i,s){for(var l,u=r(i),d,f=1;f<arguments.length;f++){l=Object(arguments[f]);for(var g in l)t.call(l,g)&&(u[g]=l[g]);if(e){d=e(l);for(var b=0;b<d.length;b++)n.call(l,d[b])&&(u[d[b]]=l[d[b]])}}return u},Oh}var Ah,ES;function $m(){if(ES)return Ah;ES=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Ah=e,Ah}var xS,CS;function RD(){return CS||(CS=1,xS=Function.call.bind(Object.prototype.hasOwnProperty)),xS}var kh,DS;function P3(){if(DS)return kh;DS=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=$m(),n={},r=RD();e=function(i){var s="Warning: "+i;typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}}}function o(i,s,l,u,d){if(process.env.NODE_ENV!=="production"){for(var f in i)if(r(i,f)){var g;try{if(typeof i[f]!="function"){var b=Error((u||"React class")+": "+l+" type `"+f+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[f]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw b.name="Invariant Violation",b}g=i[f](s,f,u,l,null,t)}catch(v){g=v}if(g&&!(g instanceof Error)&&e((u||"React class")+": type specification of "+l+" `"+f+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof g+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),g instanceof Error&&!(g.message in n)){n[g.message]=!0;var m=d?d():"";e("Failed "+l+" type: "+g.message+(m??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},kh=o,kh}var Mh,_S;function I3(){if(_S)return Mh;_S=1;var e=_D(),t=M3(),n=$m(),r=RD(),o=P3(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(l){var u="Warning: "+l;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}});function s(){return null}return Mh=function(l,u){var d=typeof Symbol=="function"&&Symbol.iterator,f="@@iterator";function g(W){var k=W&&(d&&W[d]||W[f]);if(typeof k=="function")return k}var b="<<anonymous>>",m={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:E(),arrayOf:D,element:R(),elementType:C(),instanceOf:T,node:Q(),objectOf:P,oneOf:O,oneOfType:H,shape:x,exact:L};function v(W,k){return W===k?W!==0||1/W===1/k:W!==W&&k!==k}function p(W,k){this.message=W,this.data=k&&typeof k=="object"?k:{},this.stack=""}p.prototype=Error.prototype;function y(W){if(process.env.NODE_ENV!=="production")var k={},ee=0;function ie(ye,le,B,N,V,K,ae){if(N=N||b,K=K||B,ae!==n){if(u){var F=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 F.name="Invariant Violation",F}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ve=N+":"+B;!k[ve]&&ee<3&&(i("You are manually calling a React.PropTypes validation function for the `"+K+"` prop on `"+N+"`. 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."),k[ve]=!0,ee++)}}return le[B]==null?ye?le[B]===null?new p("The "+V+" `"+K+"` is marked as required "+("in `"+N+"`, but its value is `null`.")):new p("The "+V+" `"+K+"` is marked as required in "+("`"+N+"`, but its value is `undefined`.")):null:W(le,B,N,V,K)}var oe=ie.bind(null,!1);return oe.isRequired=ie.bind(null,!0),oe}function S(W){function k(ee,ie,oe,ye,le,B){var N=ee[ie],V=G(N);if(V!==W){var K=te(N);return new p("Invalid "+ye+" `"+le+"` of type "+("`"+K+"` supplied to `"+oe+"`, expected ")+("`"+W+"`."),{expectedType:W})}return null}return y(k)}function E(){return y(s)}function D(W){function k(ee,ie,oe,ye,le){if(typeof W!="function")return new p("Property `"+le+"` of component `"+oe+"` has invalid PropType notation inside arrayOf.");var B=ee[ie];if(!Array.isArray(B)){var N=G(B);return new p("Invalid "+ye+" `"+le+"` of type "+("`"+N+"` supplied to `"+oe+"`, expected an array."))}for(var V=0;V<B.length;V++){var K=W(B,V,oe,ye,le+"["+V+"]",n);if(K instanceof Error)return K}return null}return y(k)}function R(){function W(k,ee,ie,oe,ye){var le=k[ee];if(!l(le)){var B=G(le);return new p("Invalid "+oe+" `"+ye+"` of type "+("`"+B+"` supplied to `"+ie+"`, expected a single ReactElement."))}return null}return y(W)}function C(){function W(k,ee,ie,oe,ye){var le=k[ee];if(!e.isValidElementType(le)){var B=G(le);return new p("Invalid "+oe+" `"+ye+"` of type "+("`"+B+"` supplied to `"+ie+"`, expected a single ReactElement type."))}return null}return y(W)}function T(W){function k(ee,ie,oe,ye,le){if(!(ee[ie]instanceof W)){var B=W.name||b,N=de(ee[ie]);return new p("Invalid "+ye+" `"+le+"` of type "+("`"+N+"` supplied to `"+oe+"`, expected ")+("instance of `"+B+"`."))}return null}return y(k)}function O(W){if(!Array.isArray(W))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),s;function k(ee,ie,oe,ye,le){for(var B=ee[ie],N=0;N<W.length;N++)if(v(B,W[N]))return null;var V=JSON.stringify(W,function(K,ae){var F=te(ae);return F==="symbol"?String(ae):ae});return new p("Invalid "+ye+" `"+le+"` of value `"+String(B)+"` "+("supplied to `"+oe+"`, expected one of "+V+"."))}return y(k)}function P(W){function k(ee,ie,oe,ye,le){if(typeof W!="function")return new p("Property `"+le+"` of component `"+oe+"` has invalid PropType notation inside objectOf.");var B=ee[ie],N=G(B);if(N!=="object")return new p("Invalid "+ye+" `"+le+"` of type "+("`"+N+"` supplied to `"+oe+"`, expected an object."));for(var V in B)if(r(B,V)){var K=W(B,V,oe,ye,le+"."+V,n);if(K instanceof Error)return K}return null}return y(k)}function H(W){if(!Array.isArray(W))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var k=0;k<W.length;k++){var ee=W[k];if(typeof ee!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+se(ee)+" at index "+k+"."),s}function ie(oe,ye,le,B,N){for(var V=[],K=0;K<W.length;K++){var ae=W[K],F=ae(oe,ye,le,B,N,n);if(F==null)return null;F.data&&r(F.data,"expectedType")&&V.push(F.data.expectedType)}var ve=V.length>0?", expected one of type ["+V.join(", ")+"]":"";return new p("Invalid "+B+" `"+N+"` supplied to "+("`"+le+"`"+ve+"."))}return y(ie)}function Q(){function W(k,ee,ie,oe,ye){return I(k[ee])?null:new p("Invalid "+oe+" `"+ye+"` supplied to "+("`"+ie+"`, expected a ReactNode."))}return y(W)}function q(W,k,ee,ie,oe){return new p((W||"React class")+": "+k+" type `"+ee+"."+ie+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+oe+"`.")}function x(W){function k(ee,ie,oe,ye,le){var B=ee[ie],N=G(B);if(N!=="object")return new p("Invalid "+ye+" `"+le+"` of type `"+N+"` "+("supplied to `"+oe+"`, expected `object`."));for(var V in W){var K=W[V];if(typeof K!="function")return q(oe,ye,le,V,te(K));var ae=K(B,V,oe,ye,le+"."+V,n);if(ae)return ae}return null}return y(k)}function L(W){function k(ee,ie,oe,ye,le){var B=ee[ie],N=G(B);if(N!=="object")return new p("Invalid "+ye+" `"+le+"` of type `"+N+"` "+("supplied to `"+oe+"`, expected `object`."));var V=t({},ee[ie],W);for(var K in V){var ae=W[K];if(r(W,K)&&typeof ae!="function")return q(oe,ye,le,K,te(ae));if(!ae)return new p("Invalid "+ye+" `"+le+"` key `"+K+"` supplied to `"+oe+"`.\nBad object: "+JSON.stringify(ee[ie],null," ")+`
|
|
315
|
+
Valid keys: `+JSON.stringify(Object.keys(W),null," "));var F=ae(B,K,oe,ye,le+"."+K,n);if(F)return F}return null}return y(k)}function I(W){switch(typeof W){case"number":case"string":case"undefined":return!0;case"boolean":return!W;case"object":if(Array.isArray(W))return W.every(I);if(W===null||l(W))return!0;var k=g(W);if(k){var ee=k.call(W),ie;if(k!==W.entries){for(;!(ie=ee.next()).done;)if(!I(ie.value))return!1}else for(;!(ie=ee.next()).done;){var oe=ie.value;if(oe&&!I(oe[1]))return!1}}else return!1;return!0;default:return!1}}function U(W,k){return W==="symbol"?!0:k?k["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&k instanceof Symbol:!1}function G(W){var k=typeof W;return Array.isArray(W)?"array":W instanceof RegExp?"object":U(k,W)?"symbol":k}function te(W){if(typeof W>"u"||W===null)return""+W;var k=G(W);if(k==="object"){if(W instanceof Date)return"date";if(W instanceof RegExp)return"regexp"}return k}function se(W){var k=te(W);switch(k){case"array":case"object":return"an "+k;case"boolean":case"date":case"regexp":return"a "+k;default:return k}}function de(W){return!W.constructor||!W.constructor.name?b:W.constructor.name}return m.checkPropTypes=o,m.resetWarningCache=o.resetWarningCache,m.PropTypes=m,m},Mh}var Ph,RS;function N3(){if(RS)return Ph;RS=1;var e=$m();function t(){}function n(){}return n.resetWarningCache=t,Ph=function(){function r(s,l,u,d,f,g){if(g!==e){var b=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 b.name="Invariant Violation",b}}r.isRequired=r;function o(){return r}var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},Ph}var TS;function Co(){if(TS)return cu.exports;if(TS=1,process.env.NODE_ENV!=="production"){var e=_D(),t=!0;cu.exports=I3()(e.isElement,t)}else cu.exports=N3()();return cu.exports}var j3=Co();const A=m3(j3);function TD(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=TD(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function xt(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=TD(e))&&(r&&(r+=" "),r+=t);return r}function si(e,t,n=void 0){const r={};for(const o in e){const i=e[o];let s="",l=!0;for(let u=0;u<i.length;u+=1){const d=i[u];d&&(s+=(l===!0?"":" ")+t(d),l=!1,n&&n[d]&&(s+=" "+n[d]))}r[o]=s}return r}function fd(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 zm(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":fd(7));return e.charAt(0).toUpperCase()+e.slice(1)}var Ih={exports:{}},vt={};/**
|
|
316
|
+
* @license React
|
|
317
|
+
* react-is.production.js
|
|
318
|
+
*
|
|
319
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
320
|
+
*
|
|
321
|
+
* This source code is licensed under the MIT license found in the
|
|
322
|
+
* LICENSE file in the root directory of this source tree.
|
|
323
|
+
*/var OS;function $3(){if(OS)return vt;OS=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),b=Symbol.for("react.view_transition"),m=Symbol.for("react.client.reference");function v(p){if(typeof p=="object"&&p!==null){var y=p.$$typeof;switch(y){case e:switch(p=p.type,p){case n:case o:case r:case u:case d:case b:return p;default:switch(p=p&&p.$$typeof,p){case s:case l:case g:case f:return p;case i:return p;default:return y}}case t:return y}}}return vt.ContextConsumer=i,vt.ContextProvider=s,vt.Element=e,vt.ForwardRef=l,vt.Fragment=n,vt.Lazy=g,vt.Memo=f,vt.Portal=t,vt.Profiler=o,vt.StrictMode=r,vt.Suspense=u,vt.SuspenseList=d,vt.isContextConsumer=function(p){return v(p)===i},vt.isContextProvider=function(p){return v(p)===s},vt.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===e},vt.isForwardRef=function(p){return v(p)===l},vt.isFragment=function(p){return v(p)===n},vt.isLazy=function(p){return v(p)===g},vt.isMemo=function(p){return v(p)===f},vt.isPortal=function(p){return v(p)===t},vt.isProfiler=function(p){return v(p)===o},vt.isStrictMode=function(p){return v(p)===r},vt.isSuspense=function(p){return v(p)===u},vt.isSuspenseList=function(p){return v(p)===d},vt.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===n||p===o||p===r||p===u||p===d||typeof p=="object"&&p!==null&&(p.$$typeof===g||p.$$typeof===f||p.$$typeof===s||p.$$typeof===i||p.$$typeof===l||p.$$typeof===m||p.getModuleId!==void 0)},vt.typeOf=v,vt}var St={};/**
|
|
324
|
+
* @license React
|
|
325
|
+
* react-is.development.js
|
|
326
|
+
*
|
|
327
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
328
|
+
*
|
|
329
|
+
* This source code is licensed under the MIT license found in the
|
|
330
|
+
* LICENSE file in the root directory of this source tree.
|
|
331
|
+
*/var AS;function z3(){return AS||(AS=1,process.env.NODE_ENV!=="production"&&function(){function e(p){if(typeof p=="object"&&p!==null){var y=p.$$typeof;switch(y){case t:switch(p=p.type,p){case r:case i:case o:case d:case f:case m:return p;default:switch(p=p&&p.$$typeof,p){case l:case u:case b:case g:return p;case s:return p;default:return y}}case n:return y}}}var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),m=Symbol.for("react.view_transition"),v=Symbol.for("react.client.reference");St.ContextConsumer=s,St.ContextProvider=l,St.Element=t,St.ForwardRef=u,St.Fragment=r,St.Lazy=b,St.Memo=g,St.Portal=n,St.Profiler=i,St.StrictMode=o,St.Suspense=d,St.SuspenseList=f,St.isContextConsumer=function(p){return e(p)===s},St.isContextProvider=function(p){return e(p)===l},St.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===t},St.isForwardRef=function(p){return e(p)===u},St.isFragment=function(p){return e(p)===r},St.isLazy=function(p){return e(p)===b},St.isMemo=function(p){return e(p)===g},St.isPortal=function(p){return e(p)===n},St.isProfiler=function(p){return e(p)===i},St.isStrictMode=function(p){return e(p)===o},St.isSuspense=function(p){return e(p)===d},St.isSuspenseList=function(p){return e(p)===f},St.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===r||p===i||p===o||p===d||p===f||typeof p=="object"&&p!==null&&(p.$$typeof===b||p.$$typeof===g||p.$$typeof===l||p.$$typeof===s||p.$$typeof===u||p.$$typeof===v||p.getModuleId!==void 0)},St.typeOf=e}()),St}var kS;function L3(){return kS||(kS=1,process.env.NODE_ENV==="production"?Ih.exports=$3():Ih.exports=z3()),Ih.exports}var Ki=L3();function Fo(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 OD(e){if($.isValidElement(e)||Ki.isValidElementType(e)||!Fo(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=OD(e[n])}),t}function Ui(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return Fo(e)&&Fo(t)&&Object.keys(t).forEach(o=>{$.isValidElement(t[o])||Ki.isValidElementType(t[o])?r[o]=t[o]:Fo(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Fo(e[o])?r[o]=Ui(e[o],t[o],n):n.clone?r[o]=Fo(t[o])?OD(t[o]):t[o]:r[o]=t[o]}),r}function wl(e,t){return t?Ui(e,t,{clone:!1}):e}const ai=process.env.NODE_ENV!=="production"?A.oneOfType([A.number,A.string,A.object,A.array]):{};function MS(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,o)=>{var i,s;const l=/min-width:\s*([0-9.]+)/;return+(((i=r.match(l))==null?void 0:i[1])||0)-+(((s=o.match(l))==null?void 0:s[1])||0)});return n.length?n.reduce((r,o)=>{const i=t[o];return delete r[o],r[o]=i,r},{...t}):t}function B3(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function V3(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>\`.
|
|
332
|
+
For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:fd(18,`(${t})`));return null}const[,r,o]=n,i=Number.isNaN(+r)?r||0:+r;return e.containerQueries(o).up(i)}function H3(e){const t=(i,s)=>i.replace("@media",s?`@container ${s}`:"@container");function n(i,s){i.up=(...l)=>t(e.breakpoints.up(...l),s),i.down=(...l)=>t(e.breakpoints.down(...l),s),i.between=(...l)=>t(e.breakpoints.between(...l),s),i.only=(...l)=>t(e.breakpoints.only(...l),s),i.not=(...l)=>{const u=t(e.breakpoints.not(...l),s);return u.includes("not all and")?u.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):u}}const r={},o=i=>(n(r,i),r);return n(o),{...e,containerQueries:o}}const tf={xs:0,sm:600,md:900,lg:1200,xl:1536},PS={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${tf[e]}px)`},F3={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:tf[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function wo(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const o=r.breakpoints||PS;return t.reduce((i,s,l)=>(i[o.up(o.keys[l])]=n(t[l]),i),{})}if(typeof t=="object"){const o=r.breakpoints||PS;return Object.keys(t).reduce((i,s)=>{if(B3(o.keys,s)){const l=V3(r.containerQueries?r:F3,s);l&&(i[l]=n(t[s],s))}else if(Object.keys(o.values||tf).includes(s)){const l=o.up(s);i[l]=n(t[s],s)}else{const l=s;i[l]=t[l]}return i},{})}return n(t)}function U3(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,r)=>{const o=e.up(r);return n[o]={},n},{}))||{}}function IS(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function nf(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function pd(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=nf(e,n)||r,t&&(o=t(o,r,e)),o}function Wt(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=s=>{if(s[t]==null)return null;const l=s[t],u=s.theme,d=nf(u,r)||{};return wo(s,l,f=>{let g=pd(d,o,f);return f===g&&typeof f=="string"&&(g=pd(d,o,`${t}${f==="default"?"":zm(f)}`,f)),n===!1?g:{[n]:g}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[t]:ai}:{},i.filterProps=[t],i}function W3(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const Y3={m:"margin",p:"padding"},G3={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},NS={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},q3=W3(e=>{if(e.length>2)if(NS[e])e=NS[e];else return[e];const[t,n]=e.split(""),r=Y3[t],o=G3[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),rf=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],of=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],X3=[...rf,...of];function Wl(e,t,n,r){const o=nf(e,t,!0)??n;return typeof o=="number"||typeof o=="string"?i=>typeof i=="string"?i:(process.env.NODE_ENV!=="production"&&typeof i!="number"&&console.error(`MUI: Expected ${r} argument to be a number or a string, got ${i}.`),typeof o=="string"?o.startsWith("var(")&&i===0?0:o.startsWith("var(")&&i===1?o:`calc(${i} * ${o})`:o*i):Array.isArray(o)?i=>{if(typeof i=="string")return i;const s=Math.abs(i);process.env.NODE_ENV!=="production"&&(Number.isInteger(s)?s>o.length-1&&console.error([`MUI: The value provided (${s}) overflows.`,`The supported values are: ${JSON.stringify(o)}.`,`${s} > ${o.length-1}, you need to add the missing values.`].join(`
|
|
333
|
+
`)):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(`
|
|
334
|
+
`)));const l=o[s];return i>=0?l:typeof l=="number"?-l:typeof l=="string"&&l.startsWith("var(")?`calc(-1 * ${l})`:`-${l}`}:typeof o=="function"?o:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${o}) is invalid.`,"It should be a number, an array or a function."].join(`
|
|
335
|
+
`)),()=>{})}function Lm(e){return Wl(e,"spacing",8,"spacing")}function Yl(e,t){return typeof t=="string"||t==null?t:e(t)}function Q3(e,t){return n=>e.reduce((r,o)=>(r[o]=Yl(t,n),r),{})}function Z3(e,t,n,r){if(!t.includes(n))return null;const o=q3(n),i=Q3(o,r),s=e[n];return wo(e,s,i)}function AD(e,t){const n=Lm(e.theme);return Object.keys(e).map(r=>Z3(e,t,r,n)).reduce(wl,{})}function $t(e){return AD(e,rf)}$t.propTypes=process.env.NODE_ENV!=="production"?rf.reduce((e,t)=>(e[t]=ai,e),{}):{};$t.filterProps=rf;function zt(e){return AD(e,of)}zt.propTypes=process.env.NODE_ENV!=="production"?of.reduce((e,t)=>(e[t]=ai,e),{}):{};zt.filterProps=of;process.env.NODE_ENV!=="production"&&X3.reduce((e,t)=>(e[t]=ai,e),{});function sf(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>t[i]?wl(o,t[i](r)):o,{});return n.propTypes=process.env.NODE_ENV!=="production"?e.reduce((r,o)=>Object.assign(r,o.propTypes),{}):{},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function ir(e){return typeof e!="number"?e:`${e}px solid`}function hr(e,t){return Wt({prop:e,themeKey:"borders",transform:t})}const K3=hr("border",ir),J3=hr("borderTop",ir),e6=hr("borderRight",ir),t6=hr("borderBottom",ir),n6=hr("borderLeft",ir),r6=hr("borderColor"),o6=hr("borderTopColor"),i6=hr("borderRightColor"),s6=hr("borderBottomColor"),a6=hr("borderLeftColor"),l6=hr("outline",ir),c6=hr("outlineColor"),af=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Wl(e.theme,"shape.borderRadius",4,"borderRadius"),n=r=>({borderRadius:Yl(t,r)});return wo(e,e.borderRadius,n)}return null};af.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:ai}:{};af.filterProps=["borderRadius"];sf(K3,J3,e6,t6,n6,r6,o6,i6,s6,a6,af,l6,c6);const lf=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Wl(e.theme,"spacing",8,"gap"),n=r=>({gap:Yl(t,r)});return wo(e,e.gap,n)}return null};lf.propTypes=process.env.NODE_ENV!=="production"?{gap:ai}:{};lf.filterProps=["gap"];const cf=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Wl(e.theme,"spacing",8,"columnGap"),n=r=>({columnGap:Yl(t,r)});return wo(e,e.columnGap,n)}return null};cf.propTypes=process.env.NODE_ENV!=="production"?{columnGap:ai}:{};cf.filterProps=["columnGap"];const uf=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Wl(e.theme,"spacing",8,"rowGap"),n=r=>({rowGap:Yl(t,r)});return wo(e,e.rowGap,n)}return null};uf.propTypes=process.env.NODE_ENV!=="production"?{rowGap:ai}:{};uf.filterProps=["rowGap"];const u6=Wt({prop:"gridColumn"}),d6=Wt({prop:"gridRow"}),f6=Wt({prop:"gridAutoFlow"}),p6=Wt({prop:"gridAutoColumns"}),h6=Wt({prop:"gridAutoRows"}),g6=Wt({prop:"gridTemplateColumns"}),m6=Wt({prop:"gridTemplateRows"}),y6=Wt({prop:"gridTemplateAreas"}),v6=Wt({prop:"gridArea"});sf(lf,cf,uf,u6,d6,f6,p6,h6,g6,m6,y6,v6);function Xs(e,t){return t==="grey"?t:e}const b6=Wt({prop:"color",themeKey:"palette",transform:Xs}),w6=Wt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Xs}),S6=Wt({prop:"backgroundColor",themeKey:"palette",transform:Xs});sf(b6,w6,S6);function $n(e){return e<=1&&e!==0?`${e*100}%`:e}const E6=Wt({prop:"width",transform:$n}),Bm=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o,i,s,l;const u=((i=(o=(r=e.theme)==null?void 0:r.breakpoints)==null?void 0:o.values)==null?void 0:i[n])||tf[n];return u?((l=(s=e.theme)==null?void 0:s.breakpoints)==null?void 0:l.unit)!=="px"?{maxWidth:`${u}${e.theme.breakpoints.unit}`}:{maxWidth:u}:{maxWidth:$n(n)}};return wo(e,e.maxWidth,t)}return null};Bm.filterProps=["maxWidth"];const x6=Wt({prop:"minWidth",transform:$n}),C6=Wt({prop:"height",transform:$n}),D6=Wt({prop:"maxHeight",transform:$n}),_6=Wt({prop:"minHeight",transform:$n});Wt({prop:"size",cssProperty:"width",transform:$n});Wt({prop:"size",cssProperty:"height",transform:$n});const R6=Wt({prop:"boxSizing"});sf(E6,Bm,x6,C6,D6,_6,R6);const Gl={border:{themeKey:"borders",transform:ir},borderTop:{themeKey:"borders",transform:ir},borderRight:{themeKey:"borders",transform:ir},borderBottom:{themeKey:"borders",transform:ir},borderLeft:{themeKey:"borders",transform:ir},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:ir},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:af},color:{themeKey:"palette",transform:Xs},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Xs},backgroundColor:{themeKey:"palette",transform:Xs},p:{style:zt},pt:{style:zt},pr:{style:zt},pb:{style:zt},pl:{style:zt},px:{style:zt},py:{style:zt},padding:{style:zt},paddingTop:{style:zt},paddingRight:{style:zt},paddingBottom:{style:zt},paddingLeft:{style:zt},paddingX:{style:zt},paddingY:{style:zt},paddingInline:{style:zt},paddingInlineStart:{style:zt},paddingInlineEnd:{style:zt},paddingBlock:{style:zt},paddingBlockStart:{style:zt},paddingBlockEnd:{style:zt},m:{style:$t},mt:{style:$t},mr:{style:$t},mb:{style:$t},ml:{style:$t},mx:{style:$t},my:{style:$t},margin:{style:$t},marginTop:{style:$t},marginRight:{style:$t},marginBottom:{style:$t},marginLeft:{style:$t},marginX:{style:$t},marginY:{style:$t},marginInline:{style:$t},marginInlineStart:{style:$t},marginInlineEnd:{style:$t},marginBlock:{style:$t},marginBlockStart:{style:$t},marginBlockEnd:{style:$t},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:lf},rowGap:{style:uf},columnGap:{style:cf},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:$n},maxWidth:{style:Bm},minWidth:{transform:$n},height:{transform:$n},maxHeight:{transform:$n},minHeight:{transform:$n},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 T6(...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 O6(e,t){return typeof e=="function"?e(t):e}function A6(){function e(n,r,o,i){const s={[n]:r,theme:o},l=i[n];if(!l)return{[n]:r};const{cssProperty:u=n,themeKey:d,transform:f,style:g}=l;if(r==null)return null;if(d==="typography"&&r==="inherit")return{[n]:r};const b=nf(o,d)||{};return g?g(s):wo(s,r,m=>{let v=pd(b,f,m);return m===v&&typeof m=="string"&&(v=pd(b,f,`${n}${m==="default"?"":zm(m)}`,m)),u===!1?v:{[u]:v}})}function t(n){const{sx:r,theme:o={},nested:i}=n||{};if(!r)return null;const s=o.unstable_sxConfig??Gl;function l(u){let d=u;if(typeof u=="function")d=u(o);else if(typeof u!="object")return u;if(!d)return null;const f=U3(o.breakpoints),g=Object.keys(f);let b=f;return Object.keys(d).forEach(m=>{const v=O6(d[m],o);if(v!=null)if(typeof v=="object")if(s[m])b=wl(b,e(m,v,o,s));else{const p=wo({theme:o},v,y=>({[m]:y}));T6(p,v)?b[m]=t({sx:v,theme:o,nested:!0}):b=wl(b,p)}else b=wl(b,e(m,v,o,s))}),!i&&o.modularCssLayers?{"@layer sx":MS(o,IS(g,b))}:MS(o,IS(g,b))}return Array.isArray(r)?r.map(l):l(r)}return t}const Ji=A6();Ji.filterProps=["sx"];const k6=e=>{var t;const n={systemProps:{},otherProps:{}},r=((t=e==null?void 0:e.theme)==null?void 0:t.unstable_sxConfig)??Gl;return Object.keys(e).forEach(o=>{r[o]?n.systemProps[o]=e[o]:n.otherProps[o]=e[o]}),n};function M6(e){const{sx:t,...n}=e,{systemProps:r,otherProps:o}=k6(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...s)=>{const l=t(...s);return Fo(l)?{...r,...l}:r}:i={...r,...t},{...o,sx:i}}function P6(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 I6={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 N6(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var j6=/[A-Z]|^ms/g,$6=/_EMO_([^_]+?)_([^]*?)_EMO_/g,kD=function(e){return e.charCodeAt(1)===45},jS=function(e){return e!=null&&typeof e!="boolean"},Nh=N6(function(e){return kD(e)?e:e.replace(j6,"-$&").toLowerCase()}),$S=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace($6,function(n,r,o){return Qo={name:r,styles:o,next:Qo},r})}return I6[e]!==1&&!kD(e)&&typeof t=="number"&&t!==0?t+"px":t};function hd(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 Qo={name:o.name,styles:o.styles,next:Qo},o.name;var i=n;if(i.styles!==void 0){var s=i.next;if(s!==void 0)for(;s!==void 0;)Qo={name:s.name,styles:s.styles,next:Qo},s=s.next;var l=i.styles+";";return l}return z6(e,t,n)}}var u=n;return u}function z6(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=hd(e,t,n[o])+";";else for(var i in n){var s=n[i];if(typeof s!="object"){var l=s;jS(l)&&(r+=Nh(i)+":"+$S(i,l)+";")}else if(Array.isArray(s)&&typeof s[0]=="string"&&t==null)for(var u=0;u<s.length;u++)jS(s[u])&&(r+=Nh(i)+":"+$S(i,s[u])+";");else{var d=hd(e,t,s);switch(i){case"animation":case"animationName":{r+=Nh(i)+":"+d+";";break}default:r+=i+"{"+d+"}"}}}return r}var zS=/label:\s*([^\s;{]+)\s*(;|$)/g,Qo;function L6(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="";Qo=void 0;var i=e[0];if(i==null||i.raw===void 0)r=!1,o+=hd(n,t,i);else{var s=i;o+=s[0]}for(var l=1;l<e.length;l++)if(o+=hd(n,t,e[l]),r){var u=i;o+=u[l]}zS.lastIndex=0;for(var d="",f;(f=zS.exec(o))!==null;)d+="-"+f[1];var g=P6(o)+d;return{name:g,styles:o,next:Qo}}/**
|
|
336
|
+
* @mui/styled-engine v7.3.3
|
|
337
|
+
*
|
|
338
|
+
* @license MIT
|
|
339
|
+
* This source code is licensed under the MIT license found in the
|
|
340
|
+
* LICENSE file in the root directory of this source tree.
|
|
341
|
+
*/function MD(e,t){const n=KE(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(`
|
|
342
|
+
`)):r.some(i=>i===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),n(...r)}:n}function B6(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const LS=[];function Wi(e){return LS[0]=e,L6(LS)}const V6=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 H6(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,i=V6(t),s=Object.keys(i);function l(b){return`@media (min-width:${typeof t[b]=="number"?t[b]:b}${n})`}function u(b){return`@media (max-width:${(typeof t[b]=="number"?t[b]:b)-r/100}${n})`}function d(b,m){const v=s.indexOf(m);return`@media (min-width:${typeof t[b]=="number"?t[b]:b}${n}) and (max-width:${(v!==-1&&typeof t[s[v]]=="number"?t[s[v]]:m)-r/100}${n})`}function f(b){return s.indexOf(b)+1<s.length?d(b,s[s.indexOf(b)+1]):l(b)}function g(b){const m=s.indexOf(b);return m===0?l(s[1]):m===s.length-1?u(s[m]):d(b,s[s.indexOf(b)+1]).replace("@media","@media not all and")}return{keys:s,values:i,up:l,down:u,between:d,only:f,not:g,unit:n,...o}}const F6={borderRadius:4};function PD(e=8,t=Lm({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(o=>{const i=t(o);return typeof i=="number"?`${i}px`:i}).join(" "));return n.mui=!0,n}function U6(e,t){var n;const r=this;if(r.vars){if(!((n=r.colorSchemes)!=null&&n[e])||typeof r.getColorSchemeSelector!="function")return{};let o=r.getColorSchemeSelector(e);return o==="&"?t:((o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:t})}return r.palette.mode===e?t:{}}function Vm(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={},...s}=e,l=H6(n),u=PD(o);let d=Ui({breakpoints:l,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:u,shape:{...F6,...i}},s);return d=H3(d),d.applyStyles=U6,d=t.reduce((f,g)=>Ui(f,g),d),d.unstable_sxConfig={...Gl,...s==null?void 0:s.unstable_sxConfig},d.unstable_sx=function(f){return Ji({sx:f,theme:this})},d}function W6(e){return Object.keys(e).length===0}function Y6(e=null){const t=$.useContext(dr.ThemeContext);return!t||W6(t)?e:t}const G6=Vm();function ID(e=G6){return Y6(e)}function q6(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=MD("div",{shouldForwardProp:s=>s!=="theme"&&s!=="sx"&&s!=="as"})(Ji);return $.forwardRef(function(s,l){const u=ID(n),{className:d,component:f="div",...g}=M6(s);return Fe.jsx(i,{as:f,ref:l,className:xt(d,o?o(r):r),theme:t&&u[t]||u,...g})})}function ND(e,t=""){return e.displayName||e.name||t}function BS(e,t,n){const r=ND(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function X6(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return ND(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Ki.ForwardRef:return BS(e,e.render,"ForwardRef");case Ki.Memo:return BS(e,e.type,"memo");default:return}}}function jD(e){const{variants:t,...n}=e,r={variants:t,style:Wi(n),isProcessed:!0};return r.style===n||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=Wi(o.style))}),r}const Q6=Vm();function jh(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function ji(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function Z6(e){return e?(t,n)=>n[e]:null}function K6(e,t,n){e.theme=nY(e.theme)?n:e.theme[t]||e.theme}function Iu(e,t,n){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(o=>Iu(e,o,n));if(Array.isArray(r==null?void 0:r.variants)){let o;if(r.isProcessed)o=n?ji(r.style,n):r.style;else{const{variants:i,...s}=r;o=n?ji(Wi(s),n):s}return $D(e,r.variants,[o],n)}return r!=null&&r.isProcessed?n?ji(Wi(r.style),n):r.style:n?ji(Wi(r),n):r}function $D(e,t,n=[],r=void 0){var o;let i;e:for(let s=0;s<t.length;s+=1){const l=t[s];if(typeof l.props=="function"){if(i??(i={...e,...e.ownerState,ownerState:e.ownerState}),!l.props(i))continue}else for(const u in l.props)if(e[u]!==l.props[u]&&((o=e.ownerState)==null?void 0:o[u])!==l.props[u])continue e;typeof l.style=="function"?(i??(i={...e,...e.ownerState,ownerState:e.ownerState}),n.push(r?ji(Wi(l.style(i)),r):l.style(i))):n.push(r?ji(Wi(l.style),r):l.style)}return n}function J6(e={}){const{themeId:t,defaultTheme:n=Q6,rootShouldForwardProp:r=jh,slotShouldForwardProp:o=jh}=e;function i(s){K6(s,t,n)}return(s,l={})=>{B6(s,C=>C.filter(T=>T!==Ji));const{name:u,slot:d,skipVariantsResolver:f,skipSx:g,overridesResolver:b=Z6(zD(d)),...m}=l,v=u&&u.startsWith("Mui")||d?"components":"custom",p=f!==void 0?f:d&&d!=="Root"&&d!=="root"||!1,y=g||!1;let S=jh;d==="Root"||d==="root"?S=r:d?S=o:rY(s)&&(S=void 0);const E=MD(s,{shouldForwardProp:S,label:tY(u,d),...m}),D=C=>{if(C.__emotion_real===C)return C;if(typeof C=="function")return function(T){return Iu(T,C,T.theme.modularCssLayers?v:void 0)};if(Fo(C)){const T=jD(C);return function(O){return T.variants?Iu(O,T,O.theme.modularCssLayers?v:void 0):O.theme.modularCssLayers?ji(T.style,v):T.style}}return C},R=(...C)=>{const T=[],O=C.map(D),P=[];if(T.push(i),u&&b&&P.push(function(q){var x,L;const I=(L=(x=q.theme.components)==null?void 0:x[u])==null?void 0:L.styleOverrides;if(!I)return null;const U={};for(const G in I)U[G]=Iu(q,I[G],q.theme.modularCssLayers?"theme":void 0);return b(q,U)}),u&&!p&&P.push(function(q){var x,L;const I=q.theme,U=(L=(x=I==null?void 0:I.components)==null?void 0:x[u])==null?void 0:L.variants;return U?$D(q,U,[],q.theme.modularCssLayers?"theme":void 0):null}),y||P.push(Ji),Array.isArray(O[0])){const q=O.shift(),x=new Array(T.length).fill(""),L=new Array(P.length).fill("");let I;I=[...x,...q,...L],I.raw=[...x,...q.raw,...L],T.unshift(I)}const H=[...T,...O,...P],Q=E(...H);return s.muiName&&(Q.muiName=s.muiName),process.env.NODE_ENV!=="production"&&(Q.displayName=eY(u,d,s)),Q};return E.withConfig&&(R.withConfig=E.withConfig),R}}function eY(e,t,n){return e?`${e}${zm(t||"")}`:`Styled(${X6(n)})`}function tY(e,t){let n;return process.env.NODE_ENV!=="production"&&e&&(n=`${e}-${zD(t||"Root")}`),n}function nY(e){for(const t in e)return!1;return!0}function rY(e){return typeof e=="string"&&e.charCodeAt(0)>96}function zD(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function gg(e,t,n=!1){const r={...t};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const i=o;if(i==="components"||i==="slots")r[i]={...e[i],...r[i]};else if(i==="componentsProps"||i==="slotProps"){const s=e[i],l=t[i];if(!l)r[i]=s||{};else if(!s)r[i]=l;else{r[i]={...l};for(const u in s)if(Object.prototype.hasOwnProperty.call(s,u)){const d=u;r[i][d]=gg(s[d],l[d],n)}}}else i==="className"&&n&&t.className?r.className=xt(e==null?void 0:e.className,t==null?void 0:t.className):i==="style"&&n&&t.style?r.style={...e==null?void 0:e.style,...t==null?void 0:t.style}:r[i]===void 0&&(r[i]=e[i])}return r}function oY(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function Hm(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}].`),oY(e,t,n)}function iY(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 ri(e){if(e.type)return e;if(e.charAt(0)==="#")return ri(iY(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.
|
|
343
|
+
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:fd(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.
|
|
344
|
+
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:fd(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const sY=e=>{const t=ri(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},fl=(e,t)=>{try{return sY(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function df(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function LD(e){e=ri(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),s=(d,f=(d+n/30)%12)=>o-i*Math.max(Math.min(f-3,9-f,1),-1);let l="rgb";const u=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(l+="a",u.push(t[3])),df({type:l,values:u})}function mg(e){e=ri(e);let t=e.type==="hsl"||e.type==="hsla"?ri(LD(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function VS(e,t){const n=mg(e),r=mg(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function BD(e,t){return e=ri(e),t=Hm(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,df(e)}function xi(e,t,n){try{return BD(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function ff(e,t){if(e=ri(e),t=Hm(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 df(e)}function ht(e,t,n){try{return ff(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function pf(e,t){if(e=ri(e),t=Hm(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 df(e)}function gt(e,t,n){try{return pf(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function VD(e,t=.15){return mg(e)>.5?ff(e,t):pf(e,t)}function uu(e,t,n){try{return VD(e,t)}catch{return e}}const aY=$.createContext();process.env.NODE_ENV!=="production"&&(A.node,A.bool);const HD=()=>$.useContext(aY)??!1,lY=$.createContext(void 0);process.env.NODE_ENV!=="production"&&(A.node,A.object);function cY(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?gg(o.defaultProps,r,t.components.mergeClassNameAndStyle):!o.styleOverrides&&!o.variants?gg(o,r,t.components.mergeClassNameAndStyle):r}function uY({props:e,name:t}){const n=$.useContext(lY);return cY({props:e,name:t,theme:{components:n}})}const HS={theme:void 0};function dY(e){let t,n;return function(r){let o=t;return(o===void 0||r.theme!==n)&&(HS.theme=r.theme,o=jD(e(HS)),t=o,n=r.theme),o}}function fY(e=""){function t(...n){if(!n.length)return"";const r=n[0];return typeof r=="string"&&!r.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}-`:""}${r}${t(...n.slice(1))})`:`, ${r}`}return(n,...r)=>`var(--${e?`${e}-`:""}${n}${t(...r)})`}const FS=(e,t,n,r=[])=>{let o=e;t.forEach((i,s)=>{s===t.length-1?Array.isArray(o)?o[Number(i)]=n:o&&typeof o=="object"&&(o[i]=n):o&&typeof o=="object"&&(o[i]||(o[i]=r.includes(i)?[]:{}),o=o[i])})},pY=(e,t,n)=>{function r(o,i=[],s=[]){Object.entries(o).forEach(([l,u])=>{(!n||n&&!n([...i,l]))&&u!=null&&(typeof u=="object"&&Object.keys(u).length>0?r(u,[...i,l],Array.isArray(u)?[...s,l]:s):t([...i,l],u,s))})}r(e)},hY=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(n=>e.includes(n))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function $h(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},i={},s={};return pY(e,(l,u,d)=>{if((typeof u=="string"||typeof u=="number")&&(!r||!r(l,u))){const f=`--${n?`${n}-`:""}${l.join("-")}`,g=hY(l,u);Object.assign(o,{[f]:g}),FS(i,l,`var(${f})`,d),FS(s,l,`var(${f}, ${g})`,d)}},l=>l[0]==="vars"),{css:o,vars:i,varsWithDefaults:s}}function gY(e,t={}){const{getSelector:n=S,disableCssColorScheme:r,colorSchemeSelector:o,enableContrastVars:i}=t,{colorSchemes:s={},components:l,defaultColorScheme:u="light",...d}=e,{vars:f,css:g,varsWithDefaults:b}=$h(d,t);let m=b;const v={},{[u]:p,...y}=s;if(Object.entries(y||{}).forEach(([E,D])=>{const{vars:R,css:C,varsWithDefaults:T}=$h(D,t);m=Ui(m,T),v[E]={css:C,vars:R}}),p){const{css:E,vars:D,varsWithDefaults:R}=$h(p,t);m=Ui(m,R),v[u]={css:E,vars:D}}function S(E,D){var R,C;let T=o;if(o==="class"&&(T=".%s"),o==="data"&&(T="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(T=`[${o}="%s"]`),E){if(T==="media")return e.defaultColorScheme===E?":root":{[`@media (prefers-color-scheme: ${((C=(R=s[E])==null?void 0:R.palette)==null?void 0:C.mode)||E})`]:{":root":D}};if(T)return e.defaultColorScheme===E?`:root, ${T.replace("%s",String(E))}`:T.replace("%s",String(E))}return":root"}return{vars:m,generateThemeVars:()=>{let E={...f};return Object.entries(v).forEach(([,{vars:D}])=>{E=Ui(E,D)}),E},generateStyleSheets:()=>{var E,D;const R=[],C=e.defaultColorScheme||"light";function T(H,Q){Object.keys(Q).length&&R.push(typeof H=="string"?{[H]:{...Q}}:H)}T(n(void 0,{...g}),g);const{[C]:O,...P}=v;if(O){const{css:H}=O,Q=(D=(E=s[C])==null?void 0:E.palette)==null?void 0:D.mode,q=!r&&Q?{colorScheme:Q,...H}:{...H};T(n(C,{...q}),q)}return Object.entries(P).forEach(([H,{css:Q}])=>{var q,x;const L=(x=(q=s[H])==null?void 0:q.palette)==null?void 0:x.mode,I=!r&&L?{colorScheme:L,...Q}:{...Q};T(n(H,{...I}),I)}),i&&R.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)"}}),R}}}function mY(e){return function(t){return e==="media"?(process.env.NODE_ENV!=="production"&&t!=="light"&&t!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${t}'.`),`@media (prefers-color-scheme: ${t})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${t}"] &`:e==="class"?`.${t} &`:e==="data"?`[data-${t}] &`:`${e.replace("%s",t)} &`:"&"}}function Uo(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 FD(e){if($.isValidElement(e)||Ki.isValidElementType(e)||!Uo(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=FD(e[n])}),t}function Yi(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return Uo(e)&&Uo(t)&&Object.keys(t).forEach(o=>{$.isValidElement(t[o])||Ki.isValidElementType(t[o])?r[o]=t[o]:Uo(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Uo(e[o])?r[o]=Yi(e[o],t[o],n):n.clone?r[o]=Uo(t[o])?FD(t[o]):t[o]:r[o]=t[o]}),r}const kl={black:"#000",white:"#fff"},yY={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"},Os={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},As={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},qa={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},ks={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Ms={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Ps={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function UD(){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:kl.white,default:kl.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 WD=UD();function YD(){return{text:{primary:kl.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:kl.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 yg=YD();function US(e,t,n,r){const o=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=pf(e.main,o):t==="dark"&&(e.dark=ff(e.main,i)))}function WS(e,t,n,r,o){const i=o.light||o,s=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 ${(i*100).toFixed(0)}%)`:n==="dark"&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(s*100).toFixed(0)}%)`))}function vY(e="light"){return e==="dark"?{main:ks[200],light:ks[50],dark:ks[400]}:{main:ks[700],light:ks[400],dark:ks[800]}}function bY(e="light"){return e==="dark"?{main:Os[200],light:Os[50],dark:Os[400]}:{main:Os[500],light:Os[300],dark:Os[700]}}function wY(e="light"){return e==="dark"?{main:As[500],light:As[300],dark:As[700]}:{main:As[700],light:As[400],dark:As[800]}}function SY(e="light"){return e==="dark"?{main:Ms[400],light:Ms[300],dark:Ms[700]}:{main:Ms[700],light:Ms[500],dark:Ms[900]}}function EY(e="light"){return e==="dark"?{main:Ps[400],light:Ps[300],dark:Ps[700]}:{main:Ps[800],light:Ps[500],dark:Ps[900]}}function xY(e="light"){return e==="dark"?{main:qa[400],light:qa[300],dark:qa[700]}:{main:"#ed6c02",light:qa[500],dark:qa[900]}}function CY(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function Fm(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:o,...i}=e,s=e.primary||vY(t),l=e.secondary||bY(t),u=e.error||wY(t),d=e.info||SY(t),f=e.success||EY(t),g=e.warning||xY(t);function b(p){if(o)return CY(p);const y=VS(p,yg.text.primary)>=n?yg.text.primary:WD.text.primary;if(process.env.NODE_ENV!=="production"){const S=VS(p,y);S<3&&console.error([`MUI: The contrast ratio of ${S}:1 for ${y} on ${p}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
|
|
345
|
+
`))}return y}const m=({color:p,name:y,mainShade:S=500,lightShade:E=300,darkShade:D=700})=>{if(p={...p},!p.main&&p[S]&&(p.main=p[S]),!p.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${y?` (${y})`:""} provided to augmentColor(color) is invalid.
|
|
346
|
+
The color object needs to have a \`main\` property or a \`${S}\` property.`:Al(11,y?` (${y})`:"",S));if(typeof p.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${y?` (${y})`:""} provided to augmentColor(color) is invalid.
|
|
347
|
+
\`color.main\` should be a string, but \`${JSON.stringify(p.main)}\` was provided instead.
|
|
348
|
+
|
|
349
|
+
Did you intend to use one of the following approaches?
|
|
350
|
+
|
|
351
|
+
import { green } from "@mui/material/colors";
|
|
352
|
+
|
|
353
|
+
const theme1 = createTheme({ palette: {
|
|
354
|
+
primary: green,
|
|
355
|
+
} });
|
|
356
|
+
|
|
357
|
+
const theme2 = createTheme({ palette: {
|
|
358
|
+
primary: { main: green[500] },
|
|
359
|
+
} });`:Al(12,y?` (${y})`:"",JSON.stringify(p.main)));return o?(WS(o,p,"light",E,r),WS(o,p,"dark",D,r)):(US(p,"light",E,r),US(p,"dark",D,r)),p.contrastText||(p.contrastText=b(p.main)),p};let v;return t==="light"?v=UD():t==="dark"&&(v=YD()),process.env.NODE_ENV!=="production"&&(v||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),Yi({common:{...kl},mode:t,primary:m({color:s,name:"primary"}),secondary:m({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:m({color:u,name:"error"}),warning:m({color:g,name:"warning"}),info:m({color:d,name:"info"}),success:m({color:f,name:"success"}),grey:yY,contrastThreshold:n,getContrastText:b,augmentColor:m,tonalOffset:r,...v},i)}function DY(e){const t={};return Object.entries(e).forEach(n=>{const[r,o]=n;typeof o=="object"&&(t[r]=`${o.fontStyle?`${o.fontStyle} `:""}${o.fontVariant?`${o.fontVariant} `:""}${o.fontWeight?`${o.fontWeight} `:""}${o.fontStretch?`${o.fontStretch} `:""}${o.fontSize||""}${o.lineHeight?`/${o.lineHeight} `:""}${o.fontFamily||""}`)}),t}const _Y={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 Wr(e,t,n="Mui"){const r=_Y[t];return r?`${n}-${r}`:`${DD.generate(e)}-${t}`}function RY(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function TY(e){return Math.round(e*1e5)/1e5}const YS={textTransform:"uppercase"},GS='"Roboto", "Helvetica", "Arial", sans-serif';function OY(e,t){const{fontFamily:n=GS,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:i=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:d,pxToRem:f,...g}=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 u!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const b=r/14,m=f||(y=>`${y/u*b}rem`),v=(y,S,E,D,R)=>({fontFamily:n,fontWeight:y,fontSize:m(S),lineHeight:E,...n===GS?{letterSpacing:`${TY(D/S)}em`}:{},...R,...d}),p={h1:v(o,96,1.167,-1.5),h2:v(o,60,1.2,-.5),h3:v(i,48,1.167,0),h4:v(i,34,1.235,.25),h5:v(i,24,1.334,0),h6:v(s,20,1.6,.15),subtitle1:v(i,16,1.75,.15),subtitle2:v(s,14,1.57,.1),body1:v(i,16,1.5,.15),body2:v(i,14,1.43,.15),button:v(s,14,1.75,.4,YS),caption:v(i,12,1.66,.4),overline:v(i,12,2.66,1,YS),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Yi({htmlFontSize:u,pxToRem:m,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:s,fontWeightBold:l,...p},g,{clone:!1})}const AY=.2,kY=.14,MY=.12;function At(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${AY})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${kY})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${MY})`].join(",")}const PY=["none",At(0,2,1,-1,0,1,1,0,0,1,3,0),At(0,3,1,-2,0,2,2,0,0,1,5,0),At(0,3,3,-2,0,3,4,0,0,1,8,0),At(0,2,4,-1,0,4,5,0,0,1,10,0),At(0,3,5,-1,0,5,8,0,0,1,14,0),At(0,3,5,-1,0,6,10,0,0,1,18,0),At(0,4,5,-2,0,7,10,1,0,2,16,1),At(0,5,5,-3,0,8,10,1,0,3,14,2),At(0,5,6,-3,0,9,12,1,0,3,16,2),At(0,6,6,-3,0,10,14,1,0,4,18,3),At(0,6,7,-4,0,11,15,1,0,4,20,3),At(0,7,8,-4,0,12,17,2,0,5,22,4),At(0,7,8,-4,0,13,19,2,0,5,24,4),At(0,7,9,-4,0,14,21,2,0,5,26,4),At(0,8,9,-5,0,15,22,2,0,6,28,5),At(0,8,10,-5,0,16,24,2,0,6,30,5),At(0,8,11,-5,0,17,26,2,0,6,32,5),At(0,9,11,-5,0,18,28,2,0,7,34,6),At(0,9,12,-6,0,19,29,2,0,7,36,6),At(0,10,13,-6,0,20,31,3,0,8,38,7),At(0,10,13,-6,0,21,33,3,0,8,40,7),At(0,10,14,-6,0,22,35,3,0,8,42,7),At(0,11,14,-7,0,23,36,3,0,9,44,8),At(0,11,15,-7,0,24,38,3,0,9,46,8)],IY={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)"},NY={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function qS(e){return`${Math.round(e)}ms`}function jY(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function $Y(e){const t={...IY,...e.easing},n={...NY,...e.duration};return{getAutoHeightDuration:jY,create:(r=["all"],o={})=>{const{duration:i=n.standard,easing:s=t.easeInOut,delay:l=0,...u}=o;if(process.env.NODE_ENV!=="production"){const d=g=>typeof g=="string",f=g=>!Number.isNaN(parseFloat(g));!d(r)&&!Array.isArray(r)&&console.error('MUI: Argument "props" must be a string or Array.'),!f(i)&&!d(i)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${i}.`),d(s)||console.error('MUI: Argument "easing" must be a string.'),!f(l)&&!d(l)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof o!="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(`
|
|
360
|
+
`)),Object.keys(u).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(u).join(",")}].`)}return(Array.isArray(r)?r:[r]).map(d=>`${d} ${typeof i=="string"?i:qS(i)} ${s} ${typeof l=="string"?l:qS(l)}`).join(",")},...e,easing:t,duration:n}}const zY={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function LY(e){return Uo(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function GD(e={}){const t={...e};function n(r){const o=Object.entries(r);for(let i=0;i<o.length;i++){const[s,l]=o[i];!LY(l)||s.startsWith("unstable_")?delete r[s]:Uo(l)&&(r[s]={...l},n(r[s]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
|
|
361
|
+
|
|
362
|
+
const theme = ${JSON.stringify(t,null,2)};
|
|
363
|
+
|
|
364
|
+
theme.breakpoints = createBreakpoints(theme.breakpoints || {});
|
|
365
|
+
theme.transitions = createTransitions(theme.transitions || {});
|
|
366
|
+
|
|
367
|
+
export default theme;`}function XS(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const BY=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 VY(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})`:BD(t,BY(n))},lighten(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #fff ${XS(n)})`:pf(t,n)},darken(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #000 ${XS(n)})`:ff(t,n)}})}function vg(e={},...t){const{breakpoints:n,mixins:r={},spacing:o,palette:i={},transitions:s={},typography:l={},shape:u,colorSpace:d,...f}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.":Al(20));const g=Fm({...i,colorSpace:d}),b=Vm(e);let m=Yi(b,{mixins:RY(b.breakpoints,r),palette:g,shadows:PY.slice(),typography:OY(g,l),transitions:$Y(s),zIndex:{...zY}});if(m=Yi(m,f),m=t.reduce((v,p)=>Yi(v,p),m),process.env.NODE_ENV!=="production"){const v=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],p=(y,S)=>{let E;for(E in y){const D=y[E];if(v.includes(E)&&Object.keys(D).length>0){if(process.env.NODE_ENV!=="production"){const R=Wr("",E);console.error([`MUI: The \`${S}\` component increases the CSS specificity of the \`${E}\` internal state.`,"You can not override it like this: ",JSON.stringify(y,null,2),"",`Instead, you need to use the '&.${R}' syntax:`,JSON.stringify({root:{[`&.${R}`]:D}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
|
|
368
|
+
`))}y[E]={}}}};Object.keys(m.components).forEach(y=>{const S=m.components[y].styleOverrides;S&&y.startsWith("Mui")&&p(S,y)})}return m.unstable_sxConfig={...Gl,...f==null?void 0:f.unstable_sxConfig},m.unstable_sx=function(v){return Ji({sx:v,theme:this})},m.toRuntimeSource=GD,VY(m),m}function HY(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 FY=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=HY(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function qD(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function XD(e){return e==="dark"?FY:[]}function UY(e){const{palette:t={mode:"light"},opacity:n,overlays:r,colorSpace:o,...i}=e,s=Fm({...t,colorSpace:o});return{palette:s,opacity:{...qD(s.mode),...n},overlays:r||XD(s.mode),...i}}function WY(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 YY=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],GY=e=>(t,n)=>{const r=e.rootSelector||":root",o=e.colorSchemeSelector;let i=o;if(o==="class"&&(i=".%s"),o==="data"&&(i="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(i=`[${o}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const s={};return YY(e.cssVarPrefix).forEach(l=>{s[l]=n[l],delete n[l]}),i==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:s}}:i?{[i.replace("%s",t)]:s,[`${r}, ${i.replace("%s",t)}`]:n}:{[r]:{...n,...s}}}if(i&&i!=="media")return`${r}, ${i.replace("%s",String(t))}`}else if(t){if(i==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(i)return i.replace("%s",String(t))}return r};function qY(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function me(e,t,n){!e[t]&&n&&(e[t]=n)}function pl(e){return typeof e!="string"||!e.startsWith("hsl")?e:LD(e)}function co(e,t){`${t}Channel`in e||(e[`${t}Channel`]=fl(pl(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().
|
|
369
|
+
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 XY(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Ir=e=>{try{return e()}catch{}},QY=(e="mui")=>fY(e);function zh(e,t,n,r,o){if(!n)return;n=n===!0?{}:n;const i=o==="dark"?"dark":"light";if(!r){t[o]=UY({...n,palette:{mode:i,...n==null?void 0:n.palette},colorSpace:e});return}const{palette:s,...l}=vg({...r,palette:{mode:i,...n==null?void 0:n.palette},colorSpace:e});return t[o]={...n,palette:s,opacity:{...qD(i),...n==null?void 0:n.opacity},overlays:(n==null?void 0:n.overlays)||XD(i)},l}function ZY(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",nativeColor:s=!1,shouldSkipGeneratingVar:l=WY,colorSchemeSelector:u=n.light&&n.dark?"media":void 0,rootSelector:d=":root",...f}=e,g=Object.keys(n)[0],b=r||(n.light&&g!=="light"?"light":g),m=QY(i),{[b]:v,light:p,dark:y,...S}=n,E={...S};let D=v;if((b==="dark"&&!("dark"in n)||b==="light"&&!("light"in n))&&(D=!0),!D)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${b}\` option is either missing or invalid.`:Al(21,b));let R;s&&(R="oklch");const C=zh(R,E,D,f,b);p&&!E.light&&zh(R,E,p,void 0,"light"),y&&!E.dark&&zh(R,E,y,void 0,"dark");let T={defaultColorScheme:b,...C,cssVarPrefix:i,colorSchemeSelector:u,rootSelector:d,getCssVar:m,colorSchemes:E,font:{...DY(C.typography),...C.font},spacing:XY(f.spacing)};Object.keys(T.colorSchemes).forEach(q=>{const x=T.colorSchemes[q].palette,L=U=>{const G=U.split("-"),te=G[1],se=G[2];return m(U,x[te][se])};x.mode==="light"&&(me(x.common,"background","#fff"),me(x.common,"onBackground","#000")),x.mode==="dark"&&(me(x.common,"background","#000"),me(x.common,"onBackground","#fff"));function I(U,G,te){if(R){let se;return U===xi&&(se=`transparent ${((1-te)*100).toFixed(0)}%`),U===ht&&(se=`#000 ${(te*100).toFixed(0)}%`),U===gt&&(se=`#fff ${(te*100).toFixed(0)}%`),`color-mix(in ${R}, ${G}, ${se})`}return U(G,te)}if(qY(x,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),x.mode==="light"){me(x.Alert,"errorColor",I(ht,x.error.light,.6)),me(x.Alert,"infoColor",I(ht,x.info.light,.6)),me(x.Alert,"successColor",I(ht,x.success.light,.6)),me(x.Alert,"warningColor",I(ht,x.warning.light,.6)),me(x.Alert,"errorFilledBg",L("palette-error-main")),me(x.Alert,"infoFilledBg",L("palette-info-main")),me(x.Alert,"successFilledBg",L("palette-success-main")),me(x.Alert,"warningFilledBg",L("palette-warning-main")),me(x.Alert,"errorFilledColor",Ir(()=>x.getContrastText(x.error.main))),me(x.Alert,"infoFilledColor",Ir(()=>x.getContrastText(x.info.main))),me(x.Alert,"successFilledColor",Ir(()=>x.getContrastText(x.success.main))),me(x.Alert,"warningFilledColor",Ir(()=>x.getContrastText(x.warning.main))),me(x.Alert,"errorStandardBg",I(gt,x.error.light,.9)),me(x.Alert,"infoStandardBg",I(gt,x.info.light,.9)),me(x.Alert,"successStandardBg",I(gt,x.success.light,.9)),me(x.Alert,"warningStandardBg",I(gt,x.warning.light,.9)),me(x.Alert,"errorIconColor",L("palette-error-main")),me(x.Alert,"infoIconColor",L("palette-info-main")),me(x.Alert,"successIconColor",L("palette-success-main")),me(x.Alert,"warningIconColor",L("palette-warning-main")),me(x.AppBar,"defaultBg",L("palette-grey-100")),me(x.Avatar,"defaultBg",L("palette-grey-400")),me(x.Button,"inheritContainedBg",L("palette-grey-300")),me(x.Button,"inheritContainedHoverBg",L("palette-grey-A100")),me(x.Chip,"defaultBorder",L("palette-grey-400")),me(x.Chip,"defaultAvatarColor",L("palette-grey-700")),me(x.Chip,"defaultIconColor",L("palette-grey-700")),me(x.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),me(x.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),me(x.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),me(x.LinearProgress,"primaryBg",I(gt,x.primary.main,.62)),me(x.LinearProgress,"secondaryBg",I(gt,x.secondary.main,.62)),me(x.LinearProgress,"errorBg",I(gt,x.error.main,.62)),me(x.LinearProgress,"infoBg",I(gt,x.info.main,.62)),me(x.LinearProgress,"successBg",I(gt,x.success.main,.62)),me(x.LinearProgress,"warningBg",I(gt,x.warning.main,.62)),me(x.Skeleton,"bg",R?I(xi,x.text.primary,.11):`rgba(${L("palette-text-primaryChannel")} / 0.11)`),me(x.Slider,"primaryTrack",I(gt,x.primary.main,.62)),me(x.Slider,"secondaryTrack",I(gt,x.secondary.main,.62)),me(x.Slider,"errorTrack",I(gt,x.error.main,.62)),me(x.Slider,"infoTrack",I(gt,x.info.main,.62)),me(x.Slider,"successTrack",I(gt,x.success.main,.62)),me(x.Slider,"warningTrack",I(gt,x.warning.main,.62));const U=R?I(ht,x.background.default,.6825):uu(x.background.default,.8);me(x.SnackbarContent,"bg",U),me(x.SnackbarContent,"color",Ir(()=>R?yg.text.primary:x.getContrastText(U))),me(x.SpeedDialAction,"fabHoverBg",uu(x.background.paper,.15)),me(x.StepConnector,"border",L("palette-grey-400")),me(x.StepContent,"border",L("palette-grey-400")),me(x.Switch,"defaultColor",L("palette-common-white")),me(x.Switch,"defaultDisabledColor",L("palette-grey-100")),me(x.Switch,"primaryDisabledColor",I(gt,x.primary.main,.62)),me(x.Switch,"secondaryDisabledColor",I(gt,x.secondary.main,.62)),me(x.Switch,"errorDisabledColor",I(gt,x.error.main,.62)),me(x.Switch,"infoDisabledColor",I(gt,x.info.main,.62)),me(x.Switch,"successDisabledColor",I(gt,x.success.main,.62)),me(x.Switch,"warningDisabledColor",I(gt,x.warning.main,.62)),me(x.TableCell,"border",I(gt,I(xi,x.divider,1),.88)),me(x.Tooltip,"bg",I(xi,x.grey[700],.92))}if(x.mode==="dark"){me(x.Alert,"errorColor",I(gt,x.error.light,.6)),me(x.Alert,"infoColor",I(gt,x.info.light,.6)),me(x.Alert,"successColor",I(gt,x.success.light,.6)),me(x.Alert,"warningColor",I(gt,x.warning.light,.6)),me(x.Alert,"errorFilledBg",L("palette-error-dark")),me(x.Alert,"infoFilledBg",L("palette-info-dark")),me(x.Alert,"successFilledBg",L("palette-success-dark")),me(x.Alert,"warningFilledBg",L("palette-warning-dark")),me(x.Alert,"errorFilledColor",Ir(()=>x.getContrastText(x.error.dark))),me(x.Alert,"infoFilledColor",Ir(()=>x.getContrastText(x.info.dark))),me(x.Alert,"successFilledColor",Ir(()=>x.getContrastText(x.success.dark))),me(x.Alert,"warningFilledColor",Ir(()=>x.getContrastText(x.warning.dark))),me(x.Alert,"errorStandardBg",I(ht,x.error.light,.9)),me(x.Alert,"infoStandardBg",I(ht,x.info.light,.9)),me(x.Alert,"successStandardBg",I(ht,x.success.light,.9)),me(x.Alert,"warningStandardBg",I(ht,x.warning.light,.9)),me(x.Alert,"errorIconColor",L("palette-error-main")),me(x.Alert,"infoIconColor",L("palette-info-main")),me(x.Alert,"successIconColor",L("palette-success-main")),me(x.Alert,"warningIconColor",L("palette-warning-main")),me(x.AppBar,"defaultBg",L("palette-grey-900")),me(x.AppBar,"darkBg",L("palette-background-paper")),me(x.AppBar,"darkColor",L("palette-text-primary")),me(x.Avatar,"defaultBg",L("palette-grey-600")),me(x.Button,"inheritContainedBg",L("palette-grey-800")),me(x.Button,"inheritContainedHoverBg",L("palette-grey-700")),me(x.Chip,"defaultBorder",L("palette-grey-700")),me(x.Chip,"defaultAvatarColor",L("palette-grey-300")),me(x.Chip,"defaultIconColor",L("palette-grey-300")),me(x.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),me(x.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),me(x.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),me(x.LinearProgress,"primaryBg",I(ht,x.primary.main,.5)),me(x.LinearProgress,"secondaryBg",I(ht,x.secondary.main,.5)),me(x.LinearProgress,"errorBg",I(ht,x.error.main,.5)),me(x.LinearProgress,"infoBg",I(ht,x.info.main,.5)),me(x.LinearProgress,"successBg",I(ht,x.success.main,.5)),me(x.LinearProgress,"warningBg",I(ht,x.warning.main,.5)),me(x.Skeleton,"bg",R?I(xi,x.text.primary,.13):`rgba(${L("palette-text-primaryChannel")} / 0.13)`),me(x.Slider,"primaryTrack",I(ht,x.primary.main,.5)),me(x.Slider,"secondaryTrack",I(ht,x.secondary.main,.5)),me(x.Slider,"errorTrack",I(ht,x.error.main,.5)),me(x.Slider,"infoTrack",I(ht,x.info.main,.5)),me(x.Slider,"successTrack",I(ht,x.success.main,.5)),me(x.Slider,"warningTrack",I(ht,x.warning.main,.5));const U=R?I(gt,x.background.default,.985):uu(x.background.default,.98);me(x.SnackbarContent,"bg",U),me(x.SnackbarContent,"color",Ir(()=>R?WD.text.primary:x.getContrastText(U))),me(x.SpeedDialAction,"fabHoverBg",uu(x.background.paper,.15)),me(x.StepConnector,"border",L("palette-grey-600")),me(x.StepContent,"border",L("palette-grey-600")),me(x.Switch,"defaultColor",L("palette-grey-300")),me(x.Switch,"defaultDisabledColor",L("palette-grey-600")),me(x.Switch,"primaryDisabledColor",I(ht,x.primary.main,.55)),me(x.Switch,"secondaryDisabledColor",I(ht,x.secondary.main,.55)),me(x.Switch,"errorDisabledColor",I(ht,x.error.main,.55)),me(x.Switch,"infoDisabledColor",I(ht,x.info.main,.55)),me(x.Switch,"successDisabledColor",I(ht,x.success.main,.55)),me(x.Switch,"warningDisabledColor",I(ht,x.warning.main,.55)),me(x.TableCell,"border",I(ht,I(xi,x.divider,1),.68)),me(x.Tooltip,"bg",I(xi,x.grey[700],.92))}co(x.background,"default"),co(x.background,"paper"),co(x.common,"background"),co(x.common,"onBackground"),co(x,"divider"),Object.keys(x).forEach(U=>{const G=x[U];U!=="tonalOffset"&&G&&typeof G=="object"&&(G.main&&me(x[U],"mainChannel",fl(pl(G.main))),G.light&&me(x[U],"lightChannel",fl(pl(G.light))),G.dark&&me(x[U],"darkChannel",fl(pl(G.dark))),G.contrastText&&me(x[U],"contrastTextChannel",fl(pl(G.contrastText))),U==="text"&&(co(x[U],"primary"),co(x[U],"secondary")),U==="action"&&(G.active&&co(x[U],"active"),G.selected&&co(x[U],"selected")))})}),T=t.reduce((q,x)=>Yi(q,x),T);const O={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:l,getSelector:GY(T),enableContrastVars:s},{vars:P,generateThemeVars:H,generateStyleSheets:Q}=gY(T,O);return T.vars=P,Object.entries(T.colorSchemes[T.defaultColorScheme]).forEach(([q,x])=>{T[q]=x}),T.generateThemeVars=H,T.generateStyleSheets=Q,T.generateSpacing=function(){return PD(f.spacing,Lm(this))},T.getColorSchemeSelector=mY(u),T.spacing=T.generateSpacing(),T.shouldSkipGeneratingVar=l,T.unstable_sxConfig={...Gl,...f==null?void 0:f.unstable_sxConfig},T.unstable_sx=function(q){return Ji({sx:q,theme:this})},T.toRuntimeSource=GD,T}function QS(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Fm({...n===!0?{}:n.palette,mode:t})})}function QD(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:o=n?void 0:{light:!0},defaultColorScheme:i=n==null?void 0:n.mode,...s}=e,l=i||"light",u=o==null?void 0:o[l],d={...o,...n?{[l]:{...typeof u!="boolean"&&u,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return vg(e,...t);let f=n;"palette"in e||d[l]&&(d[l]!==!0?f=d[l].palette:l==="dark"&&(f={mode:"dark"}));const g=vg({...e,palette:f},...t);return g.defaultColorScheme=l,g.colorSchemes=d,g.palette.mode==="light"&&(g.colorSchemes.light={...d.light!==!0&&d.light,palette:g.palette},QS(g,"dark",d.dark)),g.palette.mode==="dark"&&(g.colorSchemes.dark={...d.dark!==!0&&d.dark,palette:g.palette},QS(g,"light",d.light)),g}return!n&&!("light"in d)&&l==="light"&&(d.light=!0),ZY({...s,colorSchemes:d,defaultColorScheme:l,...typeof r!="boolean"&&r},...t)}const ZD=QD(),Um="$$material";function hf(){const e=ID(ZD);return process.env.NODE_ENV!=="production"&&$.useDebugValue(e),e[Um]||e}function KY(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const KD=e=>KY(e)&&e!=="classes",an=J6({themeId:Um,defaultTheme:ZD,rootShouldForwardProp:KD}),ar=dY;process.env.NODE_ENV!=="production"&&(A.node,A.object.isRequired);function Do(e){return uY(e)}function Yr(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=Wr(e,o,n)}),r}function JY(e){return Wr("MuiSvgIcon",e)}Yr("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const e9=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${Vn(t)}`,`fontSize${Vn(n)}`]};return si(o,JY,r)},t9=an("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Vn(n.color)}`],t[`fontSize${Vn(n.fontSize)}`]]}})(ar(({theme:e})=>{var t,n,r,o,i,s,l,u,d,f,g,b,m,v;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(o=(t=e.transitions)==null?void 0:t.create)==null?void 0:o.call(t,"fill",{duration:(r=(n=(e.vars??e).transitions)==null?void 0:n.duration)==null?void 0:r.shorter}),variants:[{props:p=>!p.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((s=(i=e.typography)==null?void 0:i.pxToRem)==null?void 0:s.call(i,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((u=(l=e.typography)==null?void 0:l.pxToRem)==null?void 0:u.call(l,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((f=(d=e.typography)==null?void 0:d.pxToRem)==null?void 0:f.call(d,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,p])=>p&&p.main).map(([p])=>{var y,S;return{props:{color:p},style:{color:(S=(y=(e.vars??e).palette)==null?void 0:y[p])==null?void 0:S.main}}}),{props:{color:"action"},style:{color:(b=(g=(e.vars??e).palette)==null?void 0:g.action)==null?void 0:b.active}},{props:{color:"disabled"},style:{color:(v=(m=(e.vars??e).palette)==null?void 0:m.action)==null?void 0:v.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),gd=$.forwardRef(function(e,t){const n=Do({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:i="inherit",component:s="svg",fontSize:l="medium",htmlColor:u,inheritViewBox:d=!1,titleAccess:f,viewBox:g="0 0 24 24",...b}=n,m=$.isValidElement(r)&&r.type==="svg",v={...n,color:i,component:s,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:d,viewBox:g,hasSvgAsChild:m},p={};d||(p.viewBox=g);const y=e9(v);return Fe.jsxs(t9,{as:s,className:xt(y.root,o),focusable:"false",color:u,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:t,...p,...b,...m&&r.props,ownerState:v,children:[m?r.props.children:r,f?Fe.jsx("title",{children:f}):null]})});process.env.NODE_ENV!=="production"&&(gd.propTypes={children:A.node,classes:A.object,className:A.string,color:A.oneOfType([A.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),A.string]),component:A.elementType,fontSize:A.oneOfType([A.oneOf(["inherit","large","medium","small"]),A.string]),htmlColor:A.string,inheritViewBox:A.bool,shapeRendering:A.string,sx:A.oneOfType([A.arrayOf(A.oneOfType([A.func,A.object,A.bool])),A.func,A.object]),titleAccess:A.string,viewBox:A.string});gd.muiName="SvgIcon";function hn(e,t){function n(r,o){return Fe.jsx(gd,{"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=gd.muiName,$.memo($.forwardRef(n))}function n9(e,t){var n,r,o;return $.isValidElement(e)&&t.indexOf(e.type.muiName??((o=(r=(n=e.type)==null?void 0:n._payload)==null?void 0:r.value)==null?void 0:o.muiName))!==-1}function ZS(e){return e&&e.ownerDocument||document}function KS(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const Ml=typeof window<"u"?$.useLayoutEffect:$.useEffect;let JS=0;function r9(e){const[t,n]=$.useState(e),r=e||t;return $.useEffect(()=>{t==null&&(JS+=1,n(`mui-${JS}`))},[t]),r}const o9={...$},eE=o9.useId;function i9(e){if(eE!==void 0){const t=eE();return e??t}return r9(e)}function JD(e){const{controlled:t,default:n,name:r,state:o="value"}=e,{current:i}=$.useRef(t!==void 0),[s,l]=$.useState(n),u=i?t:s;if(process.env.NODE_ENV!=="production"){$.useEffect(()=>{i!==(t!==void 0)&&console.error([`MUI: A component is changing the ${i?"":"un"}controlled ${o} state of ${r} to be ${i?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${r} 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(`
|
|
370
|
+
`))},[o,r,t]);const{current:f}=$.useRef(n);$.useEffect(()=>{!i&&JSON.stringify(n)!==JSON.stringify(f)&&console.error([`MUI: A component is changing the default ${o} state of an uncontrolled ${r} after being initialized. To suppress this warning opt to use a controlled ${r}.`].join(`
|
|
371
|
+
`))},[JSON.stringify(n)])}const d=$.useCallback(f=>{i||l(f)},[]);return[u,d]}function Qs(e){const t=$.useRef(e);return Ml(()=>{t.current=e}),$.useRef((...n)=>(0,t.current)(...n)).current}function _r(...e){const t=$.useRef(void 0),n=$.useCallback(r=>{const o=e.map(i=>{if(i==null)return null;if(typeof i=="function"){const s=i,l=s(r);return typeof l=="function"?l:()=>{s(null)}}return i.current=r,()=>{i.current=null}});return()=>{o.forEach(i=>i==null?void 0:i())}},e);return $.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current(),t.current=void 0),r!=null&&(t.current=n(r))},e)}function s9(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function a9(e,t){if(!e)return t;function n(s,l){const u={};return Object.keys(l).forEach(d=>{s9(d,l[d])&&typeof s[d]=="function"&&(u[d]=(...f)=>{s[d](...f),l[d](...f)})}),u}if(typeof e=="function"||typeof t=="function")return s=>{const l=typeof t=="function"?t(s):t,u=typeof e=="function"?e({...s,...l}):e,d=xt(s==null?void 0:s.className,l==null?void 0:l.className,u==null?void 0:u.className),f=n(u,l);return{...l,...u,...f,...!!d&&{className:d},...(l==null?void 0:l.style)&&(u==null?void 0:u.style)&&{style:{...l.style,...u.style}},...(l==null?void 0:l.sx)&&(u==null?void 0:u.sx)&&{sx:[...Array.isArray(l.sx)?l.sx:[l.sx],...Array.isArray(u.sx)?u.sx:[u.sx]]}}};const r=t,o=n(e,r),i=xt(r==null?void 0:r.className,e==null?void 0:e.className);return{...t,...e,...o,...!!i&&{className:i},...(r==null?void 0:r.style)&&(e==null?void 0:e.style)&&{style:{...r.style,...e.style}},...(r==null?void 0:r.sx)&&(e==null?void 0:e.sx)&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}hn(Fe.jsx("path",{d:"M10 18h4v-2h-4zM3 6v2h18V6zm3 7h12v-2H6z"}),"FilterList");hn(Fe.jsx("path",{d:"M7.41 15.41 12 10.83l4.59 4.58L18 14l-6-6-6 6z"}),"KeyboardArrowUp");hn(Fe.jsx("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown");hn(Fe.jsx("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft");hn(Fe.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight");pe.createContext({itemCounts:{horizontal:1,vertical:1},setItemCounts:()=>{}});Re.keyframes`
|
|
372
|
+
0% { transform: scale(0.95); opacity: 0.5; }
|
|
373
|
+
50% { transform: scale(1.05); opacity: 0.8; }
|
|
374
|
+
100% { transform: scale(0.95); opacity: 0.5; }
|
|
375
|
+
`;Re.keyframes`
|
|
376
|
+
0% { content: ''; }
|
|
377
|
+
25% { content: '.'; }
|
|
378
|
+
50% { content: '..'; }
|
|
379
|
+
75% { content: '...'; }
|
|
380
|
+
100% { content: ''; }
|
|
381
|
+
`;Re.keyframes`
|
|
382
|
+
from { opacity: 0; }
|
|
383
|
+
to { opacity: 1; }
|
|
384
|
+
`;pe.createContext({id:"",panelRef:{current:null},panelContentRef:{current:null},defaultWidth:200,defaultHeight:200,minWidth:100,maxWidth:500,minHeight:100,maxHeight:500,extendedStyle:{},setExtendedStyle:()=>{},tools:[],setTools:()=>{},addTool:()=>{},removeTool:()=>{},dimensions:{width:200,height:200},setDimensions:()=>{},handleDimensionsChange:()=>{},dimensionsWereTemporary:!1,extendedContainerStyle:{position:"relative"},setExtendedContainerStyle:()=>{}});const l9={};function c9(e,t){let n;try{n=e()}catch{return}return{getItem:r=>{var o;const i=l=>l===null?null:JSON.parse(l,void 0),s=(o=n.getItem(r))!=null?o:null;return s instanceof Promise?s.then(i):i(s)},setItem:(r,o)=>n.setItem(r,JSON.stringify(o,void 0)),removeItem:r=>n.removeItem(r)}}const Pl=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(r){return Pl(r)(n)},catch(r){return this}}}catch(n){return{then(r){return this},catch(r){return Pl(r)(n)}}}},u9=(e,t)=>(n,r,o)=>{let i={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:y=>y,version:0,merge:(y,S)=>({...S,...y}),...t},s=!1;const l=new Set,u=new Set;let d;try{d=i.getStorage()}catch{}if(!d)return e((...y)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),n(...y)},r,o);const f=Pl(i.serialize),g=()=>{const y=i.partialize({...r()});let S;const E=f({state:y,version:i.version}).then(D=>d.setItem(i.name,D)).catch(D=>{S=D});if(S)throw S;return E},b=o.setState;o.setState=(y,S)=>{b(y,S),g()};const m=e((...y)=>{n(...y),g()},r,o);let v;const p=()=>{var y;if(!d)return;s=!1,l.forEach(E=>E(r()));const S=((y=i.onRehydrateStorage)==null?void 0:y.call(i,r()))||void 0;return Pl(d.getItem.bind(d))(i.name).then(E=>{if(E)return i.deserialize(E)}).then(E=>{if(E)if(typeof E.version=="number"&&E.version!==i.version){if(i.migrate)return i.migrate(E.state,E.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return E.state}).then(E=>{var D;return v=i.merge(E,(D=r())!=null?D:m),n(v,!0),g()}).then(()=>{S==null||S(v,void 0),s=!0,u.forEach(E=>E(v))}).catch(E=>{S==null||S(void 0,E)})};return o.persist={setOptions:y=>{i={...i,...y},y.getStorage&&(d=y.getStorage())},clearStorage:()=>{d==null||d.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>p(),hasHydrated:()=>s,onHydrate:y=>(l.add(y),()=>{l.delete(y)}),onFinishHydration:y=>(u.add(y),()=>{u.delete(y)})},p(),v||m},d9=(e,t)=>(n,r,o)=>{let i={storage:c9(()=>localStorage),partialize:p=>p,version:0,merge:(p,y)=>({...y,...p}),...t},s=!1;const l=new Set,u=new Set;let d=i.storage;if(!d)return e((...p)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),n(...p)},r,o);const f=()=>{const p=i.partialize({...r()});return d.setItem(i.name,{state:p,version:i.version})},g=o.setState;o.setState=(p,y)=>{g(p,y),f()};const b=e((...p)=>{n(...p),f()},r,o);o.getInitialState=()=>b;let m;const v=()=>{var p,y;if(!d)return;s=!1,l.forEach(E=>{var D;return E((D=r())!=null?D:b)});const S=((y=i.onRehydrateStorage)==null?void 0:y.call(i,(p=r())!=null?p:b))||void 0;return Pl(d.getItem.bind(d))(i.name).then(E=>{if(E)if(typeof E.version=="number"&&E.version!==i.version){if(i.migrate)return[!0,i.migrate(E.state,E.version)];console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,E.state];return[!1,void 0]}).then(E=>{var D;const[R,C]=E;if(m=i.merge(C,(D=r())!=null?D:b),n(m,!0),R)return f()}).then(()=>{S==null||S(m,void 0),m=r(),s=!0,u.forEach(E=>E(m))}).catch(E=>{S==null||S(void 0,E)})};return o.persist={setOptions:p=>{i={...i,...p},p.storage&&(d=p.storage)},clearStorage:()=>{d==null||d.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>v(),hasHydrated:()=>s,onHydrate:p=>(l.add(p),()=>{l.delete(p)}),onFinishHydration:p=>(u.add(p),()=>{u.delete(p)})},i.skipHydration||v(),m||b},f9=(e,t)=>"getStorage"in t||"serialize"in t||"deserialize"in t?((l9?"production":void 0)!=="production"&&console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),u9(e,t)):d9(e,t),p9=f9;ga()(p9(e=>({editMode:!1,toggleEditMode:()=>e(t=>({editMode:!t.editMode})),resizeMode:!1,toggleResizeMode:()=>e(t=>({resizeMode:!t.resizeMode})),moveMode:!1,toggleMoveMode:()=>e(t=>({moveMode:!t.moveMode}))}),{name:"grid-layout-storage"}));pe.createContext({itemCounts:{horizontal:1,vertical:1},setItemCounts:()=>{}});hn(Fe.jsx("path",{d:"M22 3.41 16.71 8.7 20 12h-8V4l3.29 3.29L20.59 2zM3.41 22l5.29-5.29L12 20v-8H4l3.29 3.29L2 20.59z"}),"CloseFullscreen");hn(Fe.jsx("path",{d:"M21 11V3h-8l3.29 3.29-10 10L3 13v8h8l-3.29-3.29 10-10z"}),"OpenInFull");ga(e=>({expandedPanelId:null,setExpandedPanelId:t=>e({expandedPanelId:t})}));pe.createContext(void 0);pe.createContext(void 0);pe.createContext(void 0);const tE={};function e_(e,t){const n=$.useRef(tE);return n.current===tE&&(n.current=e(t)),n}const h9=[];function g9(e){$.useEffect(e,h9)}class gf{constructor(){sr(this,"currentId",null),sr(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)}),sr(this,"disposeEffect",()=>this.clear)}static create(){return new gf}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function $i(){const e=e_(gf.create).current;return g9(e.disposeEffect),e}function m9(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function bg(){return bg=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},bg.apply(null,arguments)}function t_(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}function wg(e,t){return wg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},wg(e,t)}function n_(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,wg(e,t)}const nE={disabled:!1};var y9=process.env.NODE_ENV!=="production"?A.oneOfType([A.number,A.shape({enter:A.number,exit:A.number,appear:A.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&A.oneOfType([A.string,A.shape({enter:A.string,exit:A.string,active:A.string}),A.shape({enter:A.string,enterDone:A.string,enterActive:A.string,exit:A.string,exitDone:A.string,exitActive:A.string})]);const md=pe.createContext(null);var v9=function(e){return e.scrollTop},hl="unmounted",Ai="exited",ki="entering",$s="entered",Sg="exiting",Gr=function(e){n_(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var s=o,l=s&&!s.isMounting?r.enter:r.appear,u;return i.appearStatus=null,r.in?l?(u=Ai,i.appearStatus=ki):u=$s:r.unmountOnExit||r.mountOnEnter?u=hl:u=Ai,i.state={status:u},i.nextCallback=null,i}t.getDerivedStateFromProps=function(r,o){var i=r.in;return i&&o.status===hl?{status:Ai}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(r){var o=null;if(r!==this.props){var i=this.state.status;this.props.in?i!==ki&&i!==$s&&(o=ki):(i===ki||i===$s)&&(o=Sg)}this.updateStatus(!1,o)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var r=this.props.timeout,o,i,s;return o=i=s=r,r!=null&&typeof r!="number"&&(o=r.exit,i=r.enter,s=r.appear!==void 0?r.appear:i),{exit:o,enter:i,appear:s}},n.updateStatus=function(r,o){if(r===void 0&&(r=!1),o!==null)if(this.cancelNextCallback(),o===ki){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:xn.findDOMNode(this);i&&v9(i)}this.performEnter(r)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Ai&&this.setState({status:hl})},n.performEnter=function(r){var o=this,i=this.props.enter,s=this.context?this.context.isMounting:r,l=this.props.nodeRef?[s]:[xn.findDOMNode(this),s],u=l[0],d=l[1],f=this.getTimeouts(),g=s?f.appear:f.enter;if(!r&&!i||nE.disabled){this.safeSetState({status:$s},function(){o.props.onEntered(u)});return}this.props.onEnter(u,d),this.safeSetState({status:ki},function(){o.props.onEntering(u,d),o.onTransitionEnd(g,function(){o.safeSetState({status:$s},function(){o.props.onEntered(u,d)})})})},n.performExit=function(){var r=this,o=this.props.exit,i=this.getTimeouts(),s=this.props.nodeRef?void 0:xn.findDOMNode(this);if(!o||nE.disabled){this.safeSetState({status:Ai},function(){r.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:Sg},function(){r.props.onExiting(s),r.onTransitionEnd(i.exit,function(){r.safeSetState({status:Ai},function(){r.props.onExited(s)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(r,o){o=this.setNextCallback(o),this.setState(r,o)},n.setNextCallback=function(r){var o=this,i=!0;return this.nextCallback=function(s){i&&(i=!1,o.nextCallback=null,r(s))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},n.onTransitionEnd=function(r,o){this.setNextCallback(o);var i=this.props.nodeRef?this.props.nodeRef.current:xn.findDOMNode(this),s=r==null&&!this.props.addEndListener;if(!i||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],u=l[0],d=l[1];this.props.addEndListener(u,d)}r!=null&&setTimeout(this.nextCallback,r)},n.render=function(){var r=this.state.status;if(r===hl)return null;var o=this.props,i=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var s=t_(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return pe.createElement(md.Provider,{value:null},typeof i=="function"?i(r,s):pe.cloneElement(pe.Children.only(i),s))},t}(pe.Component);Gr.contextType=md;Gr.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:A.shape({current:typeof Element>"u"?A.any:function(e,t,n,r,o,i){var s=e[t];return A.instanceOf(s&&"ownerDocument"in s?s.ownerDocument.defaultView.Element:Element)(e,t,n,r,o,i)}}),children:A.oneOfType([A.func.isRequired,A.element.isRequired]).isRequired,in:A.bool,mountOnEnter:A.bool,unmountOnExit:A.bool,appear:A.bool,enter:A.bool,exit:A.bool,timeout:function(e){var t=y9;e.addEndListener||(t=t.isRequired);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return t.apply(void 0,[e].concat(r))},addEndListener:A.func,onEnter:A.func,onEntering:A.func,onEntered:A.func,onExit:A.func,onExiting:A.func,onExited:A.func}:{};function Is(){}Gr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Is,onEntering:Is,onEntered:Is,onExit:Is,onExiting:Is,onExited:Is};Gr.UNMOUNTED=hl;Gr.EXITED=Ai;Gr.ENTERING=ki;Gr.ENTERED=$s;Gr.EXITING=Sg;function b9(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Wm(e,t){var n=function(o){return t&&pe.isValidElement(o)?t(o):o},r=Object.create(null);return e&&pe.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function w9(e,t){e=e||{},t=t||{};function n(f){return f in t?t[f]:e[f]}var r=Object.create(null),o=[];for(var i in e)i in t?o.length&&(r[i]=o,o=[]):o.push(i);var s,l={};for(var u in t){if(r[u])for(s=0;s<r[u].length;s++){var d=r[u][s];l[r[u][s]]=n(d)}l[u]=n(u)}for(s=0;s<o.length;s++)l[o[s]]=n(o[s]);return l}function zi(e,t,n){return n[t]!=null?n[t]:e.props[t]}function S9(e,t){return Wm(e.children,function(n){return pe.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:zi(n,"appear",e),enter:zi(n,"enter",e),exit:zi(n,"exit",e)})})}function E9(e,t,n){var r=Wm(e.children),o=w9(t,r);return Object.keys(o).forEach(function(i){var s=o[i];if(pe.isValidElement(s)){var l=i in t,u=i in r,d=t[i],f=pe.isValidElement(d)&&!d.props.in;u&&(!l||f)?o[i]=pe.cloneElement(s,{onExited:n.bind(null,s),in:!0,exit:zi(s,"exit",e),enter:zi(s,"enter",e)}):!u&&l&&!f?o[i]=pe.cloneElement(s,{in:!1}):u&&l&&pe.isValidElement(d)&&(o[i]=pe.cloneElement(s,{onExited:n.bind(null,s),in:d.props.in,exit:zi(s,"exit",e),enter:zi(s,"enter",e)}))}}),o}var x9=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},C9={component:"div",childFactory:function(e){return e}},Ym=function(e){n_(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var s=i.handleExited.bind(b9(i));return i.state={contextValue:{isMounting:!0},handleExited:s,firstRender:!0},i}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(r,o){var i=o.children,s=o.handleExited,l=o.firstRender;return{children:l?S9(r,s):E9(r,i,s),firstRender:!1}},n.handleExited=function(r,o){var i=Wm(this.props.children);r.key in i||(r.props.onExited&&r.props.onExited(o),this.mounted&&this.setState(function(s){var l=bg({},s.children);return delete l[r.key],{children:l}}))},n.render=function(){var r=this.props,o=r.component,i=r.childFactory,s=t_(r,["component","childFactory"]),l=this.state.contextValue,u=x9(this.state.children).map(i);return delete s.appear,delete s.enter,delete s.exit,o===null?pe.createElement(md.Provider,{value:l},u):pe.createElement(md.Provider,{value:l},pe.createElement(o,s,u))},t}(pe.Component);Ym.propTypes=process.env.NODE_ENV!=="production"?{component:A.any,children:A.node,appear:A.bool,enter:A.bool,exit:A.bool,childFactory:A.func}:{};Ym.defaultProps=C9;function mf(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...n){return e(...n)||t(...n)}}function D9(e){const{prototype:t={}}=e;return!!t.isReactComponent}function r_(e,t,n,r,o){const i=e[t],s=o||t;if(i==null||typeof window>"u")return null;let l;const u=i.type;return typeof u=="function"&&!D9(u)&&(l="Did you accidentally use a plain function component for an element instead?"),l!==void 0?new Error(`Invalid ${r} \`${s}\` 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 yf=mf(A.element,r_);yf.isRequired=mf(A.element.isRequired,r_);function vf(e){var t;return parseInt($.version,10)>=19?((t=e==null?void 0:e.props)==null?void 0:t.ref)||null:(e==null?void 0:e.ref)||null}const o_=e=>e.scrollTop;function yd(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 _9={entering:{transform:"none"},entered:{transform:"none"}},i_=$.forwardRef(function(e,t){const n=hf(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:s,easing:l,in:u,onEnter:d,onEntered:f,onEntering:g,onExit:b,onExited:m,onExiting:v,style:p,timeout:y=r,TransitionComponent:S=Gr,...E}=e,D=$.useRef(null),R=_r(D,vf(s),t),C=L=>I=>{if(L){const U=D.current;I===void 0?L(U):L(U,I)}},T=C(g),O=C((L,I)=>{o_(L);const U=yd({style:p,timeout:y,easing:l},{mode:"enter"});L.style.webkitTransition=n.transitions.create("transform",U),L.style.transition=n.transitions.create("transform",U),d&&d(L,I)}),P=C(f),H=C(v),Q=C(L=>{const I=yd({style:p,timeout:y,easing:l},{mode:"exit"});L.style.webkitTransition=n.transitions.create("transform",I),L.style.transition=n.transitions.create("transform",I),b&&b(L)}),q=C(m),x=L=>{o&&o(D.current,L)};return Fe.jsx(S,{appear:i,in:u,nodeRef:D,onEnter:O,onEntered:P,onEntering:T,onExit:Q,onExited:q,onExiting:H,addEndListener:x,timeout:y,...E,children:(L,{ownerState:I,...U})=>$.cloneElement(s,{style:{transform:"scale(0)",visibility:L==="exited"&&!u?"hidden":void 0,..._9[L],...p,...s.props.style},ref:R,...U})})});process.env.NODE_ENV!=="production"&&(i_.propTypes={addEndListener:A.func,appear:A.bool,children:yf.isRequired,easing:A.oneOfType([A.shape({enter:A.string,exit:A.string}),A.string]),in:A.bool,onEnter:A.func,onEntered:A.func,onEntering:A.func,onExit:A.func,onExited:A.func,onExiting:A.func,style:A.object,timeout:A.oneOfType([A.number,A.shape({appear:A.number,enter:A.number,exit:A.number})])});const Gm=A.oneOfType([A.func,A.object]);function R9(e){const{prototype:t={}}=e;return!!t.isReactComponent}function T9(e,t,n,r,o){const i=e[t],s=o||t;if(i==null||typeof window>"u")return null;let l;return typeof i=="function"&&!R9(i)&&(l="Did you accidentally provide a plain function component instead?"),l!==void 0?new Error(`Invalid ${r} \`${s}\` 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 O9=mf(A.elementType,T9);function vd(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(`
|
|
385
|
+
`))}return!1}class bd{constructor(){sr(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 bd}static use(){const t=e_(bd.create).current,[n,r]=$.useState(!1);return t.shouldMount=n,t.setShouldMount=r,$.useEffect(t.mountEffect,[n]),t}mount(){return this.mounted||(this.mounted=k9(),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 A9(){return bd.use()}function k9(){let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n}function s_(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:s,in:l,onExited:u,timeout:d}=e,[f,g]=$.useState(!1),b=xt(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),m={width:s,height:s,top:-(s/2)+i,left:-(s/2)+o},v=xt(n.child,f&&n.childLeaving,r&&n.childPulsate);return!l&&!f&&g(!0),$.useEffect(()=>{if(!l&&u!=null){const p=setTimeout(u,d);return()=>{clearTimeout(p)}}},[u,l,d]),Fe.jsx("span",{className:b,style:m,children:Fe.jsx("span",{className:v})})}process.env.NODE_ENV!=="production"&&(s_.propTypes={classes:A.object.isRequired,className:A.string,in:A.bool,onExited:A.func,pulsate:A.bool,rippleSize:A.number,rippleX:A.number,rippleY:A.number,timeout:A.number.isRequired});const rr=Yr("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Eg=550,M9=80,P9=dr.keyframes`
|
|
386
|
+
0% {
|
|
387
|
+
transform: scale(0);
|
|
388
|
+
opacity: 0.1;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
100% {
|
|
392
|
+
transform: scale(1);
|
|
393
|
+
opacity: 0.3;
|
|
394
|
+
}
|
|
395
|
+
`,I9=dr.keyframes`
|
|
396
|
+
0% {
|
|
397
|
+
opacity: 1;
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
100% {
|
|
401
|
+
opacity: 0;
|
|
402
|
+
}
|
|
403
|
+
`,N9=dr.keyframes`
|
|
404
|
+
0% {
|
|
405
|
+
transform: scale(1);
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
50% {
|
|
409
|
+
transform: scale(0.92);
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
100% {
|
|
413
|
+
transform: scale(1);
|
|
414
|
+
}
|
|
415
|
+
`,j9=an("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),$9=an(s_,{name:"MuiTouchRipple",slot:"Ripple"})`
|
|
416
|
+
opacity: 0;
|
|
417
|
+
position: absolute;
|
|
418
|
+
|
|
419
|
+
&.${rr.rippleVisible} {
|
|
420
|
+
opacity: 0.3;
|
|
421
|
+
transform: scale(1);
|
|
422
|
+
animation-name: ${P9};
|
|
423
|
+
animation-duration: ${Eg}ms;
|
|
424
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
&.${rr.ripplePulsate} {
|
|
428
|
+
animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
& .${rr.child} {
|
|
432
|
+
opacity: 1;
|
|
433
|
+
display: block;
|
|
434
|
+
width: 100%;
|
|
435
|
+
height: 100%;
|
|
436
|
+
border-radius: 50%;
|
|
437
|
+
background-color: currentColor;
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
& .${rr.childLeaving} {
|
|
441
|
+
opacity: 0;
|
|
442
|
+
animation-name: ${I9};
|
|
443
|
+
animation-duration: ${Eg}ms;
|
|
444
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
& .${rr.childPulsate} {
|
|
448
|
+
position: absolute;
|
|
449
|
+
/* @noflip */
|
|
450
|
+
left: 0px;
|
|
451
|
+
top: 0;
|
|
452
|
+
animation-name: ${N9};
|
|
453
|
+
animation-duration: 2500ms;
|
|
454
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
455
|
+
animation-iteration-count: infinite;
|
|
456
|
+
animation-delay: 200ms;
|
|
457
|
+
}
|
|
458
|
+
`,a_=$.forwardRef(function(e,t){const n=Do({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i,...s}=n,[l,u]=$.useState([]),d=$.useRef(0),f=$.useRef(null);$.useEffect(()=>{f.current&&(f.current(),f.current=null)},[l]);const g=$.useRef(!1),b=$i(),m=$.useRef(null),v=$.useRef(null),p=$.useCallback(D=>{const{pulsate:R,rippleX:C,rippleY:T,rippleSize:O,cb:P}=D;u(H=>[...H,Fe.jsx($9,{classes:{ripple:xt(o.ripple,rr.ripple),rippleVisible:xt(o.rippleVisible,rr.rippleVisible),ripplePulsate:xt(o.ripplePulsate,rr.ripplePulsate),child:xt(o.child,rr.child),childLeaving:xt(o.childLeaving,rr.childLeaving),childPulsate:xt(o.childPulsate,rr.childPulsate)},timeout:Eg,pulsate:R,rippleX:C,rippleY:T,rippleSize:O},d.current)]),d.current+=1,f.current=P},[o]),y=$.useCallback((D={},R={},C=()=>{})=>{const{pulsate:T=!1,center:O=r||R.pulsate,fakeElement:P=!1}=R;if((D==null?void 0:D.type)==="mousedown"&&g.current){g.current=!1;return}(D==null?void 0:D.type)==="touchstart"&&(g.current=!0);const H=P?null:v.current,Q=H?H.getBoundingClientRect():{width:0,height:0,left:0,top:0};let q,x,L;if(O||D===void 0||D.clientX===0&&D.clientY===0||!D.clientX&&!D.touches)q=Math.round(Q.width/2),x=Math.round(Q.height/2);else{const{clientX:I,clientY:U}=D.touches&&D.touches.length>0?D.touches[0]:D;q=Math.round(I-Q.left),x=Math.round(U-Q.top)}if(O)L=Math.sqrt((2*Q.width**2+Q.height**2)/3),L%2===0&&(L+=1);else{const I=Math.max(Math.abs((H?H.clientWidth:0)-q),q)*2+2,U=Math.max(Math.abs((H?H.clientHeight:0)-x),x)*2+2;L=Math.sqrt(I**2+U**2)}D!=null&&D.touches?m.current===null&&(m.current=()=>{p({pulsate:T,rippleX:q,rippleY:x,rippleSize:L,cb:C})},b.start(M9,()=>{m.current&&(m.current(),m.current=null)})):p({pulsate:T,rippleX:q,rippleY:x,rippleSize:L,cb:C})},[r,p,b]),S=$.useCallback(()=>{y({},{pulsate:!0})},[y]),E=$.useCallback((D,R)=>{if(b.clear(),(D==null?void 0:D.type)==="touchend"&&m.current){m.current(),m.current=null,b.start(0,()=>{E(D,R)});return}m.current=null,u(C=>C.length>0?C.slice(1):C),f.current=R},[b]);return $.useImperativeHandle(t,()=>({pulsate:S,start:y,stop:E}),[S,y,E]),Fe.jsx(j9,{className:xt(rr.root,o.root,i),ref:v,...s,children:Fe.jsx(Ym,{component:null,exit:!0,children:l})})});process.env.NODE_ENV!=="production"&&(a_.propTypes={center:A.bool,classes:A.object,className:A.string});function z9(e){return Wr("MuiButtonBase",e)}const L9=Yr("MuiButtonBase",["root","disabled","focusVisible"]),B9=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=si({root:["root",t&&"disabled",n&&"focusVisible"]},z9,o);return n&&r&&(i.root+=` ${r}`),i},V9=an("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"},[`&.${L9.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),l_=$.forwardRef(function(e,t){const n=Do({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:s,component:l="button",disabled:u=!1,disableRipple:d=!1,disableTouchRipple:f=!1,focusRipple:g=!1,focusVisibleClassName:b,LinkComponent:m="a",onBlur:v,onClick:p,onContextMenu:y,onDragLeave:S,onFocus:E,onFocusVisible:D,onKeyDown:R,onKeyUp:C,onMouseDown:T,onMouseLeave:O,onMouseUp:P,onTouchEnd:H,onTouchMove:Q,onTouchStart:q,tabIndex:x=0,TouchRippleProps:L,touchRippleRef:I,type:U,...G}=n,te=$.useRef(null),se=A9(),de=_r(se.ref,I),[W,k]=$.useState(!1);u&&W&&k(!1),$.useImperativeHandle(r,()=>({focusVisible:()=>{k(!0),te.current.focus()}}),[]);const ee=se.shouldMount&&!d&&!u;$.useEffect(()=>{W&&g&&!d&&se.pulsate()},[d,g,W,se]);const ie=uo(se,"start",T,f),oe=uo(se,"stop",y,f),ye=uo(se,"stop",S,f),le=uo(se,"stop",P,f),B=uo(se,"stop",_e=>{W&&_e.preventDefault(),O&&O(_e)},f),N=uo(se,"start",q,f),V=uo(se,"stop",H,f),K=uo(se,"stop",Q,f),ae=uo(se,"stop",_e=>{vd(_e.target)||k(!1),v&&v(_e)},!1),F=Qs(_e=>{te.current||(te.current=_e.currentTarget),vd(_e.target)&&(k(!0),D&&D(_e)),E&&E(_e)}),ve=()=>{const _e=te.current;return l&&l!=="button"&&!(_e.tagName==="A"&&_e.href)},Ee=Qs(_e=>{g&&!_e.repeat&&W&&_e.key===" "&&se.stop(_e,()=>{se.start(_e)}),_e.target===_e.currentTarget&&ve()&&_e.key===" "&&_e.preventDefault(),R&&R(_e),_e.target===_e.currentTarget&&ve()&&_e.key==="Enter"&&!u&&(_e.preventDefault(),p&&p(_e))}),Te=Qs(_e=>{g&&_e.key===" "&&W&&!_e.defaultPrevented&&se.stop(_e,()=>{se.pulsate(_e)}),C&&C(_e),p&&_e.target===_e.currentTarget&&ve()&&_e.key===" "&&!_e.defaultPrevented&&p(_e)});let xe=l;xe==="button"&&(G.href||G.to)&&(xe=m);const he={};xe==="button"?(he.type=U===void 0?"button":U,he.disabled=u):(!G.href&&!G.to&&(he.role="button"),u&&(he["aria-disabled"]=u));const fe=_r(t,te),Ce={...n,centerRipple:o,component:l,disabled:u,disableRipple:d,disableTouchRipple:f,focusRipple:g,tabIndex:x,focusVisible:W},Pe=B9(Ce);return Fe.jsxs(V9,{as:xe,className:xt(Pe.root,s),ownerState:Ce,onBlur:ae,onClick:p,onContextMenu:oe,onFocus:F,onKeyDown:Ee,onKeyUp:Te,onMouseDown:ie,onMouseLeave:B,onMouseUp:le,onDragLeave:ye,onTouchEnd:V,onTouchMove:K,onTouchStart:N,ref:fe,tabIndex:u?-1:x,type:U,...he,...G,children:[i,ee?Fe.jsx(a_,{ref:de,center:o,...L}):null]})});function uo(e,t,n,r=!1){return Qs(o=>(n&&n(o),r||e[t](o),!0))}process.env.NODE_ENV!=="production"&&(l_.propTypes={action:Gm,centerRipple:A.bool,children:A.node,classes:A.object,className:A.string,component:O9,disabled:A.bool,disableRipple:A.bool,disableTouchRipple:A.bool,focusRipple:A.bool,focusVisibleClassName:A.string,href:A.any,LinkComponent:A.elementType,onBlur:A.func,onClick:A.func,onContextMenu:A.func,onDragLeave:A.func,onFocus:A.func,onFocusVisible:A.func,onKeyDown:A.func,onKeyUp:A.func,onMouseDown:A.func,onMouseLeave:A.func,onMouseUp:A.func,onTouchEnd:A.func,onTouchMove:A.func,onTouchStart:A.func,sx:A.oneOfType([A.arrayOf(A.oneOfType([A.func,A.object,A.bool])),A.func,A.object]),tabIndex:A.number,TouchRippleProps:A.object,touchRippleRef:A.oneOfType([A.func,A.shape({current:A.shape({pulsate:A.func.isRequired,start:A.func.isRequired,stop:A.func.isRequired})})]),type:A.oneOfType([A.oneOf(["button","reset","submit"]),A.string])});function H9(e){return Wr("MuiFab",e)}const rE=Yr("MuiFab",["root","primary","secondary","extended","circular","focusVisible","disabled","colorInherit","sizeSmall","sizeMedium","sizeLarge","info","error","warning","success"]);function F9(e){return typeof e.main=="string"}function U9(e,t=[]){if(!F9(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function W9(e=[]){return([,t])=>t&&U9(t,e)}const Y9=e=>{const{color:t,variant:n,classes:r,size:o}=e,i={root:["root",n,`size${Vn(o)}`,t==="inherit"?"colorInherit":t]},s=si(i,H9,r);return{...r,...s}},G9=an(l_,{name:"MuiFab",slot:"Root",shouldForwardProp:e=>KD(e)||e==="classes",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${Vn(n.size)}`],n.color==="inherit"&&t.colorInherit,t[Vn(n.size)],t[n.color]]}})(ar(({theme:e})=>{var t,n;return{...e.typography.button,minHeight:36,transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),borderRadius:"50%",padding:0,minWidth:0,width:56,height:56,zIndex:(e.vars||e).zIndex.fab,boxShadow:(e.vars||e).shadows[6],"&:active":{boxShadow:(e.vars||e).shadows[12]},color:e.vars?e.vars.palette.grey[900]:(n=(t=e.palette).getContrastText)==null?void 0:n.call(t,e.palette.grey[300]),backgroundColor:(e.vars||e).palette.grey[300],"&:hover":{backgroundColor:(e.vars||e).palette.grey.A100,"@media (hover: none)":{backgroundColor:(e.vars||e).palette.grey[300]},textDecoration:"none"},[`&.${rE.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},variants:[{props:{size:"small"},style:{width:40,height:40}},{props:{size:"medium"},style:{width:48,height:48}},{props:{variant:"extended"},style:{borderRadius:48/2,padding:"0 16px",width:"auto",minHeight:"auto",minWidth:48,height:48}},{props:{variant:"extended",size:"small"},style:{width:"auto",padding:"0 8px",borderRadius:34/2,minWidth:34,height:34}},{props:{variant:"extended",size:"medium"},style:{width:"auto",padding:"0 16px",borderRadius:40/2,minWidth:40,height:40}},{props:{color:"inherit"},style:{color:"inherit"}}]}}),ar(({theme:e})=>({variants:[...Object.entries(e.palette).filter(W9(["dark","contrastText"])).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].contrastText,backgroundColor:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:(e.vars||e).palette[t].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t].main}}}}))]})),ar(({theme:e})=>({[`&.${rE.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}))),qm=$.forwardRef(function(e,t){const n=Do({props:e,name:"MuiFab"}),{children:r,className:o,color:i="default",component:s="button",disabled:l=!1,disableFocusRipple:u=!1,focusVisibleClassName:d,size:f="large",variant:g="circular",...b}=n,m={...n,color:i,component:s,disabled:l,disableFocusRipple:u,size:f,variant:g},v=Y9(m);return Fe.jsx(G9,{className:xt(v.root,o),component:s,disabled:l,focusRipple:!u,focusVisibleClassName:xt(v.focusVisible,d),ownerState:m,ref:t,...b,classes:v,children:r})});process.env.NODE_ENV!=="production"&&(qm.propTypes={children:A.node,classes:A.object,className:A.string,color:A.oneOfType([A.oneOf(["default","error","info","inherit","primary","secondary","success","warning"]),A.string]),component:A.elementType,disabled:A.bool,disableFocusRipple:A.bool,disableRipple:A.bool,focusVisibleClassName:A.string,href:A.string,size:A.oneOfType([A.oneOf(["small","medium","large"]),A.string]),sx:A.oneOfType([A.arrayOf(A.oneOfType([A.func,A.object,A.bool])),A.func,A.object]),variant:A.oneOfType([A.oneOf(["circular","extended"]),A.string])});function q9(e){return Wr("MuiSpeedDial",e)}const du=Yr("MuiSpeedDial",["root","fab","directionUp","directionDown","directionLeft","directionRight","actions","actionsClosed"]);function X9(e){return typeof e=="string"}function c_(e,t,n){return e===void 0||X9(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function u_(e,t,n){return typeof e=="function"?e(t,n):e}function Q9(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 oE(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 d_(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const m=xt(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),v={...n==null?void 0:n.style,...o==null?void 0:o.style,...r==null?void 0:r.style},p={...n,...o,...r};return m.length>0&&(p.className=m),Object.keys(v).length>0&&(p.style=v),{props:p,internalRef:void 0}}const s=Q9({...o,...r}),l=oE(r),u=oE(o),d=t(s),f=xt(d==null?void 0:d.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),g={...d==null?void 0:d.style,...n==null?void 0:n.style,...o==null?void 0:o.style,...r==null?void 0:r.style},b={...d,...n,...u,...l};return f.length>0&&(b.className=f),Object.keys(g).length>0&&(b.style=g),{props:b,internalRef:d.ref}}function zr(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:i,internalForwardedProps:s,shouldForwardComponentProp:l=!1,...u}=t,{component:d,slots:f={[e]:void 0},slotProps:g={[e]:void 0},...b}=i,m=f[e]||r,v=u_(g[e],o),{props:{component:p,...y},internalRef:S}=d_({className:n,...u,externalForwardedProps:e==="root"?b:void 0,externalSlotProps:v}),E=_r(S,v==null?void 0:v.ref,t.ref),D=e==="root"?p||d:p,R=c_(m,{...e==="root"&&!d&&!f[e]&&s,...e!=="root"&&!f[e]&&s,...y,...D&&!l&&{as:D},...D&&l&&{component:D},ref:E},o);return[m,R]}const Z9=e=>{const{classes:t,open:n,direction:r}=e,o={root:["root",`direction${Vn(r)}`],fab:["fab"],actions:["actions",!n&&"actionsClosed"]};return si(o,q9,t)};function Xa(e){if(e==="up"||e==="down")return"vertical";if(e==="right"||e==="left")return"horizontal"}const fu=32,pu=16,K9=an("div",{name:"MuiSpeedDial",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`direction${Vn(n.direction)}`]]}})(ar(({theme:e})=>({zIndex:(e.vars||e).zIndex.speedDial,display:"flex",alignItems:"center",pointerEvents:"none",variants:[{props:{direction:"up"},style:{flexDirection:"column-reverse",[`& .${du.actions}`]:{flexDirection:"column-reverse",marginBottom:-32,paddingBottom:pu+fu}}},{props:{direction:"down"},style:{flexDirection:"column",[`& .${du.actions}`]:{flexDirection:"column",marginTop:-32,paddingTop:pu+fu}}},{props:{direction:"left"},style:{flexDirection:"row-reverse",[`& .${du.actions}`]:{flexDirection:"row-reverse",marginRight:-32,paddingRight:pu+fu}}},{props:{direction:"right"},style:{flexDirection:"row",[`& .${du.actions}`]:{flexDirection:"row",marginLeft:-32,paddingLeft:pu+fu}}}]}))),J9=an(qm,{name:"MuiSpeedDial",slot:"Fab"})({pointerEvents:"auto"}),eG=an("div",{name:"MuiSpeedDial",slot:"Actions",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.actions,!n.open&&t.actionsClosed]}})({display:"flex",pointerEvents:"auto",variants:[{props:({ownerState:e})=>!e.open,style:{transition:"top 0s linear 0.2s",pointerEvents:"none"}}]}),tG=$.forwardRef(function(e,t){const n=Do({props:e,name:"MuiSpeedDial"}),r=hf(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{ariaLabel:i,FabProps:{ref:s,...l}={},children:u,className:d,direction:f="up",hidden:g=!1,icon:b,onBlur:m,onClose:v,onFocus:p,onKeyDown:y,onMouseEnter:S,onMouseLeave:E,onOpen:D,open:R,openIcon:C,slots:T={},slotProps:O={},TransitionComponent:P,TransitionProps:H,transitionDuration:Q=o,...q}=n,[x,L]=JD({controlled:R,default:!1,name:"SpeedDial",state:"open"}),I={...n,open:x,direction:f},U=Z9(I),G=$i(),te=$.useRef(0),se=$.useRef(),de=$.useRef([]);de.current=[de.current[0]];const W=$.useCallback(he=>{de.current[0]=he},[]),k=_r(s,W),ee=(he,fe,Ce)=>Pe=>{de.current[he+1]=Pe,fe&&fe(Pe),Ce&&Ce(Pe)},ie=he=>{y&&y(he);const fe=he.key.replace("Arrow","").toLowerCase(),{current:Ce=fe}=se;if(he.key==="Escape"){L(!1),de.current[0].focus(),v&&v(he,"escapeKeyDown");return}if(Xa(fe)===Xa(Ce)&&Xa(fe)!==void 0){he.preventDefault();const Pe=fe===Ce?1:-1,_e=m9(te.current+Pe,0,de.current.length-1);de.current[_e].focus(),te.current=_e,se.current=Ce}};$.useEffect(()=>{x||(te.current=0,se.current=void 0)},[x]);const oe=he=>{he.type==="mouseleave"&&E&&E(he),he.type==="blur"&&m&&m(he),G.clear(),he.type==="blur"?G.start(0,()=>{L(!1),v&&v(he,"blur")}):(L(!1),v&&v(he,"mouseLeave"))},ye=he=>{l.onClick&&l.onClick(he),G.clear(),x?(L(!1),v&&v(he,"toggle")):(L(!0),D&&D(he,"toggle"))},le=he=>{he.type==="mouseenter"&&S&&S(he),he.type==="focus"&&p&&p(he),G.clear(),x||G.start(0,()=>{L(!0),D&&D(he,{focus:"focus",mouseenter:"mouseEnter"}[he.type])})},B=i.replace(/^[^a-z]+|[^\w:.-]+/gi,""),N=$.Children.toArray(u).filter(he=>(process.env.NODE_ENV!=="production"&&Ki.isFragment(he)&&console.error(["MUI: The SpeedDial component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
459
|
+
`)),$.isValidElement(he))),V=N.map((he,fe)=>{const{FabProps:{ref:Ce}={},slotProps:Pe={},tooltipPlacement:_e}=he.props,{fab:{ref:Me,...nt}={},...gr}=Pe,gn=_e||(Xa(f)==="vertical"?"left":"top");return $.cloneElement(he,{slotProps:{fab:{...nt,ref:ee(fe,Ce,Me)},...gr},delay:30*(x?fe:N.length-fe),open:x,tooltipPlacement:gn,id:`${B}-action-${fe}`})}),K={transition:P,...T},ae={transition:H,...O},F={slots:K,slotProps:ae},[ve,Ee]=zr("root",{elementType:K9,externalForwardedProps:{...F,...q},ownerState:I,ref:t,className:xt(U.root,d),additionalProps:{role:"presentation"},getSlotProps:he=>({...he,onKeyDown:fe=>{var Ce;(Ce=he.onKeyDown)==null||Ce.call(he,fe),ie(fe)},onBlur:fe=>{var Ce;(Ce=he.onBlur)==null||Ce.call(he,fe),oe(fe)},onFocus:fe=>{var Ce;(Ce=he.onFocus)==null||Ce.call(he,fe),le(fe)},onMouseEnter:fe=>{var Ce;(Ce=he.onMouseEnter)==null||Ce.call(he,fe),le(fe)},onMouseLeave:fe=>{var Ce;(Ce=he.onMouseLeave)==null||Ce.call(he,fe),oe(fe)}})}),[Te,xe]=zr("transition",{elementType:i_,externalForwardedProps:F,ownerState:I});return Fe.jsxs(ve,{...Ee,children:[Fe.jsx(Te,{in:!g,timeout:Q,unmountOnExit:!0,...xe,children:Fe.jsx(J9,{color:"primary","aria-label":i,"aria-haspopup":"true","aria-expanded":x,"aria-controls":`${B}-actions`,...l,onClick:ye,className:xt(U.fab,l.className),ref:k,ownerState:I,children:$.isValidElement(b)&&n9(b,["SpeedDialIcon"])?$.cloneElement(b,{open:x}):b})}),Fe.jsx(eG,{id:`${B}-actions`,role:"menu","aria-orientation":Xa(f),className:xt(U.actions,!x&&U.actionsClosed),ownerState:I,children:V})]})});process.env.NODE_ENV!=="production"&&(tG.propTypes={ariaLabel:A.string.isRequired,children:A.node,classes:A.object,className:A.string,direction:A.oneOf(["down","left","right","up"]),FabProps:A.object,hidden:A.bool,icon:A.node,onBlur:A.func,onClose:A.func,onFocus:A.func,onKeyDown:A.func,onMouseEnter:A.func,onMouseLeave:A.func,onOpen:A.func,open:A.bool,openIcon:A.node,slotProps:A.shape({root:A.oneOfType([A.func,A.object]),transition:A.oneOfType([A.func,A.object])}),slots:A.shape({root:A.elementType,transition:A.elementType}),sx:A.oneOfType([A.arrayOf(A.oneOfType([A.func,A.object,A.bool])),A.func,A.object]),TransitionComponent:A.elementType,transitionDuration:A.oneOfType([A.number,A.shape({appear:A.number,enter:A.number,exit:A.number})]),TransitionProps:A.object});const nG=hn(Fe.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add");function rG(e){return Wr("MuiSpeedDialIcon",e)}const Nr=Yr("MuiSpeedDialIcon",["root","icon","iconOpen","iconWithOpenIconOpen","openIcon","openIconOpen"]),oG=e=>{const{classes:t,open:n,openIcon:r}=e;return si({root:["root"],icon:["icon",n&&"iconOpen",r&&n&&"iconWithOpenIconOpen"],openIcon:["openIcon",n&&"openIconOpen"]},rG,t)},iG=an("span",{name:"MuiSpeedDialIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Nr.icon}`]:t.icon},{[`& .${Nr.icon}`]:n.open&&t.iconOpen},{[`& .${Nr.icon}`]:n.open&&n.openIcon&&t.iconWithOpenIconOpen},{[`& .${Nr.openIcon}`]:t.openIcon},{[`& .${Nr.openIcon}`]:n.open&&t.openIconOpen},t.root]}})(ar(({theme:e})=>({height:24,[`& .${Nr.icon}`]:{transition:e.transitions.create(["transform","opacity"],{duration:e.transitions.duration.short})},[`& .${Nr.openIcon}`]:{position:"absolute",transition:e.transitions.create(["transform","opacity"],{duration:e.transitions.duration.short}),opacity:0,transform:"rotate(-45deg)"},variants:[{props:({ownerState:t})=>t.open,style:{[`& .${Nr.icon}`]:{transform:"rotate(45deg)"}}},{props:({ownerState:t})=>t.open&&t.openIcon,style:{[`& .${Nr.icon}`]:{opacity:0}}},{props:({ownerState:t})=>t.open,style:{[`& .${Nr.openIcon}`]:{transform:"rotate(0deg)",opacity:1}}}]}))),f_=$.forwardRef(function(e,t){const n=Do({props:e,name:"MuiSpeedDialIcon"}),{className:r,icon:o,open:i,openIcon:s,...l}=n,u=n,d=oG(u);function f(g,b){return $.isValidElement(g)?$.cloneElement(g,{className:b}):g}return Fe.jsxs(iG,{className:xt(d.root,r),ref:t,ownerState:u,...l,children:[s?f(s,d.openIcon):null,o?f(o,d.icon):Fe.jsx(nG,{className:d.icon})]})});process.env.NODE_ENV!=="production"&&(f_.propTypes={classes:A.object,className:A.string,icon:A.node,open:A.bool,openIcon:A.node,sx:A.oneOfType([A.arrayOf(A.oneOfType([A.func,A.object,A.bool])),A.func,A.object])});f_.muiName="SpeedDialIcon";function xg(e){return`scale(${e}, ${e**2})`}const sG={entering:{opacity:1,transform:xg(1)},entered:{opacity:1,transform:"none"}},Lh=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),wd=$.forwardRef(function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:s,onEnter:l,onEntered:u,onEntering:d,onExit:f,onExited:g,onExiting:b,style:m,timeout:v="auto",TransitionComponent:p=Gr,...y}=e,S=$i(),E=$.useRef(),D=hf(),R=$.useRef(null),C=_r(R,vf(o),t),T=I=>U=>{if(I){const G=R.current;U===void 0?I(G):I(G,U)}},O=T(d),P=T((I,U)=>{o_(I);const{duration:G,delay:te,easing:se}=yd({style:m,timeout:v,easing:i},{mode:"enter"});let de;v==="auto"?(de=D.transitions.getAutoHeightDuration(I.clientHeight),E.current=de):de=G,I.style.transition=[D.transitions.create("opacity",{duration:de,delay:te}),D.transitions.create("transform",{duration:Lh?de:de*.666,delay:te,easing:se})].join(","),l&&l(I,U)}),H=T(u),Q=T(b),q=T(I=>{const{duration:U,delay:G,easing:te}=yd({style:m,timeout:v,easing:i},{mode:"exit"});let se;v==="auto"?(se=D.transitions.getAutoHeightDuration(I.clientHeight),E.current=se):se=U,I.style.transition=[D.transitions.create("opacity",{duration:se,delay:G}),D.transitions.create("transform",{duration:Lh?se:se*.666,delay:Lh?G:G||se*.333,easing:te})].join(","),I.style.opacity=0,I.style.transform=xg(.75),f&&f(I)}),x=T(g),L=I=>{v==="auto"&&S.start(E.current||0,I),n&&n(R.current,I)};return Fe.jsx(p,{appear:r,in:s,nodeRef:R,onEnter:P,onEntered:H,onEntering:O,onExit:q,onExited:x,onExiting:Q,addEndListener:L,timeout:v==="auto"?null:v,...y,children:(I,{ownerState:U,...G})=>$.cloneElement(o,{style:{opacity:0,transform:xg(.75),visibility:I==="exited"&&!s?"hidden":void 0,...sG[I],...m,...o.props.style},ref:C,...G})})});process.env.NODE_ENV!=="production"&&(wd.propTypes={addEndListener:A.func,appear:A.bool,children:yf.isRequired,easing:A.oneOfType([A.shape({enter:A.string,exit:A.string}),A.string]),in:A.bool,onEnter:A.func,onEntered:A.func,onEntering:A.func,onExit:A.func,onExited:A.func,onExiting:A.func,style:A.object,timeout:A.oneOfType([A.oneOf(["auto"]),A.number,A.shape({appear:A.number,enter:A.number,exit:A.number})])});wd&&(wd.muiSupportAuto=!0);function Il(e,t,n,r,o){if(process.env.NODE_ENV==="production")return null;const i=e[t],s=o||t;return i==null?null:i&&i.nodeType!==1?new Error(`Invalid ${r} \`${s}\` supplied to \`${n}\`. Expected an HTMLElement.`):null}var Dn="top",cr="bottom",ur="right",_n="left",Xm="auto",ql=[Dn,cr,ur,_n],sa="start",Nl="end",aG="clippingParents",p_="viewport",Qa="popper",lG="reference",iE=ql.reduce(function(e,t){return e.concat([t+"-"+sa,t+"-"+Nl])},[]),h_=[].concat(ql,[Xm]).reduce(function(e,t){return e.concat([t,t+"-"+sa,t+"-"+Nl])},[]),cG="beforeRead",uG="read",dG="afterRead",fG="beforeMain",pG="main",hG="afterMain",gG="beforeWrite",mG="write",yG="afterWrite",vG=[cG,uG,dG,fG,pG,hG,gG,mG,yG];function Fr(e){return e?(e.nodeName||"").toLowerCase():null}function Hn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function es(e){var t=Hn(e).Element;return e instanceof t||e instanceof Element}function lr(e){var t=Hn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Qm(e){if(typeof ShadowRoot>"u")return!1;var t=Hn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function bG(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!lr(i)||!Fr(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(s){var l=o[s];l===!1?i.removeAttribute(s):i.setAttribute(s,l===!0?"":l)}))})}function wG(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),l=s.reduce(function(u,d){return u[d]="",u},{});!lr(o)||!Fr(o)||(Object.assign(o.style,l),Object.keys(i).forEach(function(u){o.removeAttribute(u)}))})}}const SG={name:"applyStyles",enabled:!0,phase:"write",fn:bG,effect:wG,requires:["computeStyles"]};function Lr(e){return e.split("-")[0]}var Gi=Math.max,Sd=Math.min,aa=Math.round;function Cg(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function g_(){return!/^((?!chrome|android).)*safari/i.test(Cg())}function la(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&lr(e)&&(o=e.offsetWidth>0&&aa(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&aa(r.height)/e.offsetHeight||1);var s=es(e)?Hn(e):window,l=s.visualViewport,u=!g_()&&n,d=(r.left+(u&&l?l.offsetLeft:0))/o,f=(r.top+(u&&l?l.offsetTop:0))/i,g=r.width/o,b=r.height/i;return{width:g,height:b,top:f,right:d+g,bottom:f+b,left:d,x:d,y:f}}function Zm(e){var t=la(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function m_(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Qm(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function So(e){return Hn(e).getComputedStyle(e)}function EG(e){return["table","td","th"].indexOf(Fr(e))>=0}function li(e){return((es(e)?e.ownerDocument:e.document)||window.document).documentElement}function bf(e){return Fr(e)==="html"?e:e.assignedSlot||e.parentNode||(Qm(e)?e.host:null)||li(e)}function sE(e){return!lr(e)||So(e).position==="fixed"?null:e.offsetParent}function xG(e){var t=/firefox/i.test(Cg()),n=/Trident/i.test(Cg());if(n&&lr(e)){var r=So(e);if(r.position==="fixed")return null}var o=bf(e);for(Qm(o)&&(o=o.host);lr(o)&&["html","body"].indexOf(Fr(o))<0;){var i=So(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function Xl(e){for(var t=Hn(e),n=sE(e);n&&EG(n)&&So(n).position==="static";)n=sE(n);return n&&(Fr(n)==="html"||Fr(n)==="body"&&So(n).position==="static")?t:n||xG(e)||t}function Km(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Sl(e,t,n){return Gi(e,Sd(t,n))}function CG(e,t,n){var r=Sl(e,t,n);return r>n?n:r}function y_(){return{top:0,right:0,bottom:0,left:0}}function v_(e){return Object.assign({},y_(),e)}function b_(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var DG=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,v_(typeof e!="number"?e:b_(e,ql))};function _G(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,l=Lr(n.placement),u=Km(l),d=[_n,ur].indexOf(l)>=0,f=d?"height":"width";if(!(!i||!s)){var g=DG(o.padding,n),b=Zm(i),m=u==="y"?Dn:_n,v=u==="y"?cr:ur,p=n.rects.reference[f]+n.rects.reference[u]-s[u]-n.rects.popper[f],y=s[u]-n.rects.reference[u],S=Xl(i),E=S?u==="y"?S.clientHeight||0:S.clientWidth||0:0,D=p/2-y/2,R=g[m],C=E-b[f]-g[v],T=E/2-b[f]/2+D,O=Sl(R,T,C),P=u;n.modifiersData[r]=(t={},t[P]=O,t.centerOffset=O-T,t)}}function RG(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||m_(t.elements.popper,o)&&(t.elements.arrow=o))}const TG={name:"arrow",enabled:!0,phase:"main",fn:_G,effect:RG,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ca(e){return e.split("-")[1]}var OG={top:"auto",right:"auto",bottom:"auto",left:"auto"};function AG(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:aa(n*o)/o||0,y:aa(r*o)/o||0}}function aE(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,s=e.offsets,l=e.position,u=e.gpuAcceleration,d=e.adaptive,f=e.roundOffsets,g=e.isFixed,b=s.x,m=b===void 0?0:b,v=s.y,p=v===void 0?0:v,y=typeof f=="function"?f({x:m,y:p}):{x:m,y:p};m=y.x,p=y.y;var S=s.hasOwnProperty("x"),E=s.hasOwnProperty("y"),D=_n,R=Dn,C=window;if(d){var T=Xl(n),O="clientHeight",P="clientWidth";if(T===Hn(n)&&(T=li(n),So(T).position!=="static"&&l==="absolute"&&(O="scrollHeight",P="scrollWidth")),T=T,o===Dn||(o===_n||o===ur)&&i===Nl){R=cr;var H=g&&T===C&&C.visualViewport?C.visualViewport.height:T[O];p-=H-r.height,p*=u?1:-1}if(o===_n||(o===Dn||o===cr)&&i===Nl){D=ur;var Q=g&&T===C&&C.visualViewport?C.visualViewport.width:T[P];m-=Q-r.width,m*=u?1:-1}}var q=Object.assign({position:l},d&&OG),x=f===!0?AG({x:m,y:p},Hn(n)):{x:m,y:p};if(m=x.x,p=x.y,u){var L;return Object.assign({},q,(L={},L[R]=E?"0":"",L[D]=S?"0":"",L.transform=(C.devicePixelRatio||1)<=1?"translate("+m+"px, "+p+"px)":"translate3d("+m+"px, "+p+"px, 0)",L))}return Object.assign({},q,(t={},t[R]=E?p+"px":"",t[D]=S?m+"px":"",t.transform="",t))}function kG(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,s=i===void 0?!0:i,l=n.roundOffsets,u=l===void 0?!0:l,d={placement:Lr(t.placement),variation:ca(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,aE(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,aE(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const MG={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:kG,data:{}};var hu={passive:!0};function PG(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,s=r.resize,l=s===void 0?!0:s,u=Hn(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&d.forEach(function(f){f.addEventListener("scroll",n.update,hu)}),l&&u.addEventListener("resize",n.update,hu),function(){i&&d.forEach(function(f){f.removeEventListener("scroll",n.update,hu)}),l&&u.removeEventListener("resize",n.update,hu)}}const IG={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:PG,data:{}};var NG={left:"right",right:"left",bottom:"top",top:"bottom"};function Nu(e){return e.replace(/left|right|bottom|top/g,function(t){return NG[t]})}var jG={start:"end",end:"start"};function lE(e){return e.replace(/start|end/g,function(t){return jG[t]})}function Jm(e){var t=Hn(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function ey(e){return la(li(e)).left+Jm(e).scrollLeft}function $G(e,t){var n=Hn(e),r=li(e),o=n.visualViewport,i=r.clientWidth,s=r.clientHeight,l=0,u=0;if(o){i=o.width,s=o.height;var d=g_();(d||!d&&t==="fixed")&&(l=o.offsetLeft,u=o.offsetTop)}return{width:i,height:s,x:l+ey(e),y:u}}function zG(e){var t,n=li(e),r=Jm(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=Gi(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=Gi(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+ey(e),u=-r.scrollTop;return So(o||n).direction==="rtl"&&(l+=Gi(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:l,y:u}}function ty(e){var t=So(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function w_(e){return["html","body","#document"].indexOf(Fr(e))>=0?e.ownerDocument.body:lr(e)&&ty(e)?e:w_(bf(e))}function El(e,t){var n;t===void 0&&(t=[]);var r=w_(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=Hn(r),s=o?[i].concat(i.visualViewport||[],ty(r)?r:[]):r,l=t.concat(s);return o?l:l.concat(El(bf(s)))}function Dg(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function LG(e,t){var n=la(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function cE(e,t,n){return t===p_?Dg($G(e,n)):es(t)?LG(t,n):Dg(zG(li(e)))}function BG(e){var t=El(bf(e)),n=["absolute","fixed"].indexOf(So(e).position)>=0,r=n&&lr(e)?Xl(e):e;return es(r)?t.filter(function(o){return es(o)&&m_(o,r)&&Fr(o)!=="body"}):[]}function VG(e,t,n,r){var o=t==="clippingParents"?BG(e):[].concat(t),i=[].concat(o,[n]),s=i[0],l=i.reduce(function(u,d){var f=cE(e,d,r);return u.top=Gi(f.top,u.top),u.right=Sd(f.right,u.right),u.bottom=Sd(f.bottom,u.bottom),u.left=Gi(f.left,u.left),u},cE(e,s,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function S_(e){var t=e.reference,n=e.element,r=e.placement,o=r?Lr(r):null,i=r?ca(r):null,s=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,u;switch(o){case Dn:u={x:s,y:t.y-n.height};break;case cr:u={x:s,y:t.y+t.height};break;case ur:u={x:t.x+t.width,y:l};break;case _n:u={x:t.x-n.width,y:l};break;default:u={x:t.x,y:t.y}}var d=o?Km(o):null;if(d!=null){var f=d==="y"?"height":"width";switch(i){case sa:u[d]=u[d]-(t[f]/2-n[f]/2);break;case Nl:u[d]=u[d]+(t[f]/2-n[f]/2);break}}return u}function jl(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,s=i===void 0?e.strategy:i,l=n.boundary,u=l===void 0?aG:l,d=n.rootBoundary,f=d===void 0?p_:d,g=n.elementContext,b=g===void 0?Qa:g,m=n.altBoundary,v=m===void 0?!1:m,p=n.padding,y=p===void 0?0:p,S=v_(typeof y!="number"?y:b_(y,ql)),E=b===Qa?lG:Qa,D=e.rects.popper,R=e.elements[v?E:b],C=VG(es(R)?R:R.contextElement||li(e.elements.popper),u,f,s),T=la(e.elements.reference),O=S_({reference:T,element:D,placement:o}),P=Dg(Object.assign({},D,O)),H=b===Qa?P:T,Q={top:C.top-H.top+S.top,bottom:H.bottom-C.bottom+S.bottom,left:C.left-H.left+S.left,right:H.right-C.right+S.right},q=e.modifiersData.offset;if(b===Qa&&q){var x=q[o];Object.keys(Q).forEach(function(L){var I=[ur,cr].indexOf(L)>=0?1:-1,U=[Dn,cr].indexOf(L)>=0?"y":"x";Q[L]+=x[U]*I})}return Q}function HG(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,s=n.padding,l=n.flipVariations,u=n.allowedAutoPlacements,d=u===void 0?h_:u,f=ca(r),g=f?l?iE:iE.filter(function(v){return ca(v)===f}):ql,b=g.filter(function(v){return d.indexOf(v)>=0});b.length===0&&(b=g);var m=b.reduce(function(v,p){return v[p]=jl(e,{placement:p,boundary:o,rootBoundary:i,padding:s})[Lr(p)],v},{});return Object.keys(m).sort(function(v,p){return m[v]-m[p]})}function FG(e){if(Lr(e)===Xm)return[];var t=Nu(e);return[lE(e),t,lE(t)]}function UG(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,l=s===void 0?!0:s,u=n.fallbackPlacements,d=n.padding,f=n.boundary,g=n.rootBoundary,b=n.altBoundary,m=n.flipVariations,v=m===void 0?!0:m,p=n.allowedAutoPlacements,y=t.options.placement,S=Lr(y),E=S===y,D=u||(E||!v?[Nu(y)]:FG(y)),R=[y].concat(D).reduce(function(oe,ye){return oe.concat(Lr(ye)===Xm?HG(t,{placement:ye,boundary:f,rootBoundary:g,padding:d,flipVariations:v,allowedAutoPlacements:p}):ye)},[]),C=t.rects.reference,T=t.rects.popper,O=new Map,P=!0,H=R[0],Q=0;Q<R.length;Q++){var q=R[Q],x=Lr(q),L=ca(q)===sa,I=[Dn,cr].indexOf(x)>=0,U=I?"width":"height",G=jl(t,{placement:q,boundary:f,rootBoundary:g,altBoundary:b,padding:d}),te=I?L?ur:_n:L?cr:Dn;C[U]>T[U]&&(te=Nu(te));var se=Nu(te),de=[];if(i&&de.push(G[x]<=0),l&&de.push(G[te]<=0,G[se]<=0),de.every(function(oe){return oe})){H=q,P=!1;break}O.set(q,de)}if(P)for(var W=v?3:1,k=function(oe){var ye=R.find(function(le){var B=O.get(le);if(B)return B.slice(0,oe).every(function(N){return N})});if(ye)return H=ye,"break"},ee=W;ee>0;ee--){var ie=k(ee);if(ie==="break")break}t.placement!==H&&(t.modifiersData[r]._skip=!0,t.placement=H,t.reset=!0)}}const WG={name:"flip",enabled:!0,phase:"main",fn:UG,requiresIfExists:["offset"],data:{_skip:!1}};function uE(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function dE(e){return[Dn,ur,cr,_n].some(function(t){return e[t]>=0})}function YG(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,s=jl(t,{elementContext:"reference"}),l=jl(t,{altBoundary:!0}),u=uE(s,r),d=uE(l,o,i),f=dE(u),g=dE(d);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:d,isReferenceHidden:f,hasPopperEscaped:g},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":g})}const GG={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:YG};function qG(e,t,n){var r=Lr(e),o=[_n,Dn].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=i[0],l=i[1];return s=s||0,l=(l||0)*o,[_n,ur].indexOf(r)>=0?{x:l,y:s}:{x:s,y:l}}function XG(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,s=h_.reduce(function(f,g){return f[g]=qG(g,t.rects,i),f},{}),l=s[t.placement],u=l.x,d=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=d),t.modifiersData[r]=s}const QG={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:XG};function ZG(e){var t=e.state,n=e.name;t.modifiersData[n]=S_({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const KG={name:"popperOffsets",enabled:!0,phase:"read",fn:ZG,data:{}};function JG(e){return e==="x"?"y":"x"}function eq(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,l=s===void 0?!1:s,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,g=n.padding,b=n.tether,m=b===void 0?!0:b,v=n.tetherOffset,p=v===void 0?0:v,y=jl(t,{boundary:u,rootBoundary:d,padding:g,altBoundary:f}),S=Lr(t.placement),E=ca(t.placement),D=!E,R=Km(S),C=JG(R),T=t.modifiersData.popperOffsets,O=t.rects.reference,P=t.rects.popper,H=typeof p=="function"?p(Object.assign({},t.rects,{placement:t.placement})):p,Q=typeof H=="number"?{mainAxis:H,altAxis:H}:Object.assign({mainAxis:0,altAxis:0},H),q=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,x={x:0,y:0};if(T){if(i){var L,I=R==="y"?Dn:_n,U=R==="y"?cr:ur,G=R==="y"?"height":"width",te=T[R],se=te+y[I],de=te-y[U],W=m?-P[G]/2:0,k=E===sa?O[G]:P[G],ee=E===sa?-P[G]:-O[G],ie=t.elements.arrow,oe=m&&ie?Zm(ie):{width:0,height:0},ye=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:y_(),le=ye[I],B=ye[U],N=Sl(0,O[G],oe[G]),V=D?O[G]/2-W-N-le-Q.mainAxis:k-N-le-Q.mainAxis,K=D?-O[G]/2+W+N+B+Q.mainAxis:ee+N+B+Q.mainAxis,ae=t.elements.arrow&&Xl(t.elements.arrow),F=ae?R==="y"?ae.clientTop||0:ae.clientLeft||0:0,ve=(L=q==null?void 0:q[R])!=null?L:0,Ee=te+V-ve-F,Te=te+K-ve,xe=Sl(m?Sd(se,Ee):se,te,m?Gi(de,Te):de);T[R]=xe,x[R]=xe-te}if(l){var he,fe=R==="x"?Dn:_n,Ce=R==="x"?cr:ur,Pe=T[C],_e=C==="y"?"height":"width",Me=Pe+y[fe],nt=Pe-y[Ce],gr=[Dn,_n].indexOf(S)!==-1,gn=(he=q==null?void 0:q[C])!=null?he:0,mr=gr?Me:Pe-O[_e]-P[_e]-gn+Q.altAxis,mn=gr?Pe+O[_e]+P[_e]-gn-Q.altAxis:nt,qt=m&&gr?CG(mr,Pe,mn):Sl(m?mr:Me,Pe,m?mn:nt);T[C]=qt,x[C]=qt-Pe}t.modifiersData[r]=x}}const tq={name:"preventOverflow",enabled:!0,phase:"main",fn:eq,requiresIfExists:["offset"]};function nq(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function rq(e){return e===Hn(e)||!lr(e)?Jm(e):nq(e)}function oq(e){var t=e.getBoundingClientRect(),n=aa(t.width)/e.offsetWidth||1,r=aa(t.height)/e.offsetHeight||1;return n!==1||r!==1}function iq(e,t,n){n===void 0&&(n=!1);var r=lr(t),o=lr(t)&&oq(t),i=li(t),s=la(e,o,n),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&((Fr(t)!=="body"||ty(i))&&(l=rq(t)),lr(t)?(u=la(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):i&&(u.x=ey(i))),{x:s.left+l.scrollLeft-u.x,y:s.top+l.scrollTop-u.y,width:s.width,height:s.height}}function sq(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(l){if(!n.has(l)){var u=t.get(l);u&&o(u)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function aq(e){var t=sq(e);return vG.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function lq(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function cq(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var fE={placement:"bottom",modifiers:[],strategy:"absolute"};function pE(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function uq(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,i=o===void 0?fE:o;return function(s,l,u){u===void 0&&(u=i);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},fE,i),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},f=[],g=!1,b={state:d,setOptions:function(p){var y=typeof p=="function"?p(d.options):p;v(),d.options=Object.assign({},i,d.options,y),d.scrollParents={reference:es(s)?El(s):s.contextElement?El(s.contextElement):[],popper:El(l)};var S=aq(cq([].concat(r,d.options.modifiers)));return d.orderedModifiers=S.filter(function(E){return E.enabled}),m(),b.update()},forceUpdate:function(){if(!g){var p=d.elements,y=p.reference,S=p.popper;if(pE(y,S)){d.rects={reference:iq(y,Xl(S),d.options.strategy==="fixed"),popper:Zm(S)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(P){return d.modifiersData[P.name]=Object.assign({},P.data)});for(var E=0;E<d.orderedModifiers.length;E++){if(d.reset===!0){d.reset=!1,E=-1;continue}var D=d.orderedModifiers[E],R=D.fn,C=D.options,T=C===void 0?{}:C,O=D.name;typeof R=="function"&&(d=R({state:d,options:T,name:O,instance:b})||d)}}}},update:lq(function(){return new Promise(function(p){b.forceUpdate(),p(d)})}),destroy:function(){v(),g=!0}};if(!pE(s,l))return b;b.setOptions(u).then(function(p){!g&&u.onFirstUpdate&&u.onFirstUpdate(p)});function m(){d.orderedModifiers.forEach(function(p){var y=p.name,S=p.options,E=S===void 0?{}:S,D=p.effect;if(typeof D=="function"){var R=D({state:d,name:y,instance:b,options:E}),C=function(){};f.push(R||C)}})}function v(){f.forEach(function(p){return p()}),f=[]}return b}}var dq=[IG,KG,MG,SG,QG,WG,tq,TG,GG],fq=uq({defaultModifiers:dq});function pq(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1,...s}=e,l=i?{}:u_(r,o),{props:u,internalRef:d}=d_({...s,externalSlotProps:l}),f=_r(d,l==null?void 0:l.ref,(t=e.additionalProps)==null?void 0:t.ref);return c_(n,{...u,ref:f},o)}const hq="exact-prop: ";function gq(e){return process.env.NODE_ENV==="production"?e:{...e,[hq]:t=>{const n=Object.keys(t).filter(r=>!e.hasOwnProperty(r));return n.length>0?new Error(`The following props are not supported: ${n.map(r=>`\`${r}\``).join(", ")}. Please remove them.`):null}}}function mq(e){return typeof e=="function"?e():e}const Ed=$.forwardRef(function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,s]=$.useState(null),l=_r($.isValidElement(n)?vf(n):null,t);if(Ml(()=>{o||s(mq(r)||document.body)},[r,o]),Ml(()=>{if(i&&!o)return KS(t,i),()=>{KS(t,null)}},[t,i,o]),o){if($.isValidElement(n)){const u={ref:l};return $.cloneElement(n,u)}return n}return i&&bI.createPortal(n,i)});process.env.NODE_ENV!=="production"&&(Ed.propTypes={children:A.node,container:A.oneOfType([Il,A.func]),disablePortal:A.bool});process.env.NODE_ENV!=="production"&&(Ed.propTypes=gq(Ed.propTypes));function yq(e){return Wr("MuiPopper",e)}Yr("MuiPopper",["root"]);function vq(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function xd(e){return typeof e=="function"?e():e}function wf(e){return e.nodeType!==void 0}function bq(e){return!wf(e)}const wq=e=>{const{classes:t}=e;return si({root:["root"]},yq,t)},Sq={},Eq=$.forwardRef(function(e,t){const{anchorEl:n,children:r,direction:o,disablePortal:i,modifiers:s,open:l,placement:u,popperOptions:d,popperRef:f,slotProps:g={},slots:b={},TransitionProps:m,ownerState:v,...p}=e,y=$.useRef(null),S=_r(y,t),E=$.useRef(null),D=_r(E,f),R=$.useRef(D);Ml(()=>{R.current=D},[D]),$.useImperativeHandle(f,()=>E.current,[]);const C=vq(u,o),[T,O]=$.useState(C),[P,H]=$.useState(xd(n));$.useEffect(()=>{E.current&&E.current.forceUpdate()}),$.useEffect(()=>{n&&H(xd(n))},[n]),Ml(()=>{if(!P||!l)return;const I=te=>{O(te.placement)};if(process.env.NODE_ENV!=="production"&&P&&wf(P)&&P.nodeType===1){const te=P.getBoundingClientRect();process.env.NODE_ENV!=="test"&&te.top===0&&te.left===0&&te.right===0&&te.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
|
|
460
|
+
`))}let U=[{name:"preventOverflow",options:{altBoundary:i}},{name:"flip",options:{altBoundary:i}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:te})=>{I(te)}}];s!=null&&(U=U.concat(s)),d&&d.modifiers!=null&&(U=U.concat(d.modifiers));const G=fq(P,y.current,{placement:C,...d,modifiers:U});return R.current(G),()=>{G.destroy(),R.current(null)}},[P,i,s,l,d,C]);const Q={placement:T};m!==null&&(Q.TransitionProps=m);const q=wq(e),x=b.root??"div",L=pq({elementType:x,externalSlotProps:g.root,externalForwardedProps:p,additionalProps:{role:"tooltip",ref:S},ownerState:e,className:q.root});return Fe.jsx(x,{...L,children:typeof r=="function"?r(Q):r})}),E_=$.forwardRef(function(e,t){const{anchorEl:n,children:r,container:o,direction:i="ltr",disablePortal:s=!1,keepMounted:l=!1,modifiers:u,open:d,placement:f="bottom",popperOptions:g=Sq,popperRef:b,style:m,transition:v=!1,slotProps:p={},slots:y={},...S}=e,[E,D]=$.useState(!0),R=()=>{D(!1)},C=()=>{D(!0)};if(!l&&!d&&(!v||E))return null;let T;if(o)T=o;else if(n){const H=xd(n);T=H&&wf(H)?ZS(H).body:ZS(null).body}const O=!d&&l&&(!v||E)?"none":void 0,P=v?{in:d,onEnter:R,onExited:C}:void 0;return Fe.jsx(Ed,{disablePortal:s,container:T,children:Fe.jsx(Eq,{anchorEl:n,direction:i,disablePortal:s,modifiers:u,ref:t,open:v?!E:d,placement:f,popperOptions:g,popperRef:b,slotProps:p,slots:y,...S,style:{position:"fixed",top:0,left:0,display:O,...m},TransitionProps:P,children:r})})});process.env.NODE_ENV!=="production"&&(E_.propTypes={anchorEl:mf(A.oneOfType([Il,A.object,A.func]),e=>{if(e.open){const t=xd(e.anchorEl);if(t&&wf(t)&&t.nodeType===1){const n=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&n.top===0&&n.left===0&&n.right===0&&n.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
|
|
461
|
+
`))}else if(!t||typeof t.getBoundingClientRect!="function"||bq(t)&&t.contextElement!=null&&t.contextElement.nodeType!==1)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","It should be an HTML element instance or a virtualElement ","(https://popper.js.org/docs/v2/virtual-elements/)."].join(`
|
|
462
|
+
`))}return null}),children:A.oneOfType([A.node,A.func]),container:A.oneOfType([Il,A.func]),direction:A.oneOf(["ltr","rtl"]),disablePortal:A.bool,keepMounted:A.bool,modifiers:A.arrayOf(A.shape({data:A.object,effect:A.func,enabled:A.bool,fn:A.func,name:A.any,options:A.object,phase:A.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:A.arrayOf(A.string),requiresIfExists:A.arrayOf(A.string)})),open:A.bool.isRequired,placement:A.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:A.shape({modifiers:A.array,onFirstUpdate:A.func,placement:A.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:A.oneOf(["absolute","fixed"])}),popperRef:Gm,slotProps:A.shape({root:A.oneOfType([A.func,A.object])}),slots:A.shape({root:A.elementType}),transition:A.bool});const xq=an(E_,{name:"MuiPopper",slot:"Root"})({}),ny=$.forwardRef(function(e,t){const n=HD(),r=Do({props:e,name:"MuiPopper"}),{anchorEl:o,component:i,components:s,componentsProps:l,container:u,disablePortal:d,keepMounted:f,modifiers:g,open:b,placement:m,popperOptions:v,popperRef:p,transition:y,slots:S,slotProps:E,...D}=r,R=(S==null?void 0:S.root)??(s==null?void 0:s.Root),C={anchorEl:o,container:u,disablePortal:d,keepMounted:f,modifiers:g,open:b,placement:m,popperOptions:v,popperRef:p,transition:y,...D};return Fe.jsx(xq,{as:i,direction:n?"rtl":"ltr",slots:{root:R},slotProps:E??l,...C,ref:t})});process.env.NODE_ENV!=="production"&&(ny.propTypes={anchorEl:A.oneOfType([Il,A.object,A.func]),children:A.oneOfType([A.node,A.func]),component:A.elementType,components:A.shape({Root:A.elementType}),componentsProps:A.shape({root:A.oneOfType([A.func,A.object])}),container:A.oneOfType([Il,A.func]),disablePortal:A.bool,keepMounted:A.bool,modifiers:A.arrayOf(A.shape({data:A.object,effect:A.func,enabled:A.bool,fn:A.func,name:A.any,options:A.object,phase:A.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:A.arrayOf(A.string),requiresIfExists:A.arrayOf(A.string)})),open:A.bool.isRequired,placement:A.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:A.shape({modifiers:A.array,onFirstUpdate:A.func,placement:A.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:A.oneOf(["absolute","fixed"])}),popperRef:Gm,slotProps:A.shape({root:A.oneOfType([A.func,A.object])}),slots:A.shape({root:A.elementType}),sx:A.oneOfType([A.arrayOf(A.oneOfType([A.func,A.object,A.bool])),A.func,A.object]),transition:A.bool});function Cq(e){return Wr("MuiTooltip",e)}const Lt=Yr("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function Dq(e){return Math.round(e*1e5)/1e5}const _q=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e,s={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${Vn(i.split("-")[0])}`],arrow:["arrow"]};return si(s,Cq,t)},Rq=an(ny,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(ar(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:t})=>!t.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:t})=>!t,style:{pointerEvents:"none"}},{props:({ownerState:t})=>t.arrow,style:{[`&[data-popper-placement*="bottom"] .${Lt.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Lt.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Lt.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${Lt.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${Lt.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${Lt.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${Lt.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${Lt.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),Tq=an("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${Vn(n.placement.split("-")[0])}`]]}})(ar(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium,[`.${Lt.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${Lt.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${Lt.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${Lt.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:t})=>t.arrow,style:{position:"relative",margin:0}},{props:({ownerState:t})=>t.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${Dq(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${Lt.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${Lt.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${Lt.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${Lt.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${Lt.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${Lt.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${Lt.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${Lt.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${Lt.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${Lt.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),Oq=an("span",{name:"MuiTooltip",slot:"Arrow"})(ar(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let gu=!1;const hE=new gf;let Za={x:0,y:0};function mu(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const x_=$.forwardRef(function(e,t){const n=Do({props:e,name:"MuiTooltip"}),{arrow:r=!1,children:o,classes:i,components:s={},componentsProps:l={},describeChild:u=!1,disableFocusListener:d=!1,disableHoverListener:f=!1,disableInteractive:g=!1,disableTouchListener:b=!1,enterDelay:m=100,enterNextDelay:v=0,enterTouchDelay:p=700,followCursor:y=!1,id:S,leaveDelay:E=0,leaveTouchDelay:D=1500,onClose:R,onOpen:C,open:T,placement:O="bottom",PopperComponent:P,PopperProps:H={},slotProps:Q={},slots:q={},title:x,TransitionComponent:L,TransitionProps:I,...U}=n,G=$.isValidElement(o)?o:Fe.jsx("span",{children:o}),te=hf(),se=HD(),[de,W]=$.useState(),[k,ee]=$.useState(null),ie=$.useRef(!1),oe=g||y,ye=$i(),le=$i(),B=$i(),N=$i(),[V,K]=JD({controlled:T,default:!1,name:"Tooltip",state:"open"});let ae=V;if(process.env.NODE_ENV!=="production"){const{current:Ye}=$.useRef(T!==void 0);$.useEffect(()=>{de&&de.disabled&&!Ye&&x!==""&&de.tagName.toLowerCase()==="button"&&console.warn(["MUI: You are providing a disabled `button` child to the Tooltip component.","A disabled element does not fire events.","Tooltip needs to listen to the child element's events to display the title.","","Add a simple wrapper element, such as a `span`."].join(`
|
|
463
|
+
`))},[x,de,Ye])}const F=i9(S),ve=$.useRef(),Ee=Qs(()=>{ve.current!==void 0&&(document.body.style.WebkitUserSelect=ve.current,ve.current=void 0),N.clear()});$.useEffect(()=>Ee,[Ee]);const Te=Ye=>{hE.clear(),gu=!0,K(!0),C&&!ae&&C(Ye)},xe=Qs(Ye=>{hE.start(800+E,()=>{gu=!1}),K(!1),R&&ae&&R(Ye),ye.start(te.transitions.duration.shortest,()=>{ie.current=!1})}),he=Ye=>{ie.current&&Ye.type!=="touchstart"||(de&&de.removeAttribute("title"),le.clear(),B.clear(),m||gu&&v?le.start(gu?v:m,()=>{Te(Ye)}):Te(Ye))},fe=Ye=>{le.clear(),B.start(E,()=>{xe(Ye)})},[,Ce]=$.useState(!1),Pe=Ye=>{vd(Ye.target)||(Ce(!1),fe(Ye))},_e=Ye=>{de||W(Ye.currentTarget),vd(Ye.target)&&(Ce(!0),he(Ye))},Me=Ye=>{ie.current=!0;const vn=G.props;vn.onTouchStart&&vn.onTouchStart(Ye)},nt=Ye=>{Me(Ye),B.clear(),ye.clear(),Ee(),ve.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",N.start(p,()=>{document.body.style.WebkitUserSelect=ve.current,he(Ye)})},gr=Ye=>{G.props.onTouchEnd&&G.props.onTouchEnd(Ye),Ee(),B.start(D,()=>{xe(Ye)})};$.useEffect(()=>{if(!ae)return;function Ye(vn){vn.key==="Escape"&&xe(vn)}return document.addEventListener("keydown",Ye),()=>{document.removeEventListener("keydown",Ye)}},[xe,ae]);const gn=_r(vf(G),W,t);!x&&x!==0&&(ae=!1);const mr=$.useRef(),mn=Ye=>{const vn=G.props;vn.onMouseMove&&vn.onMouseMove(Ye),Za={x:Ye.clientX,y:Ye.clientY},mr.current&&mr.current.update()},qt={},qr=typeof x=="string";u?(qt.title=!ae&&qr&&!f?x:null,qt["aria-describedby"]=ae?F:null):(qt["aria-label"]=qr?x:null,qt["aria-labelledby"]=ae&&!qr?F:null);const Xt={...qt,...U,...G.props,className:xt(U.className,G.props.className),onTouchStart:Me,ref:gn,...y?{onMouseMove:mn}:{}};process.env.NODE_ENV!=="production"&&(Xt["data-mui-internal-clone-element"]=!0,$.useEffect(()=>{de&&!de.getAttribute("data-mui-internal-clone-element")&&console.error(["MUI: The `children` component of the Tooltip is not forwarding its props correctly.","Please make sure that props are spread on the same element that the ref is applied to."].join(`
|
|
464
|
+
`))},[de]));const yr={};b||(Xt.onTouchStart=nt,Xt.onTouchEnd=gr),f||(Xt.onMouseOver=mu(he,Xt.onMouseOver),Xt.onMouseLeave=mu(fe,Xt.onMouseLeave),oe||(yr.onMouseOver=he,yr.onMouseLeave=fe)),d||(Xt.onFocus=mu(_e,Xt.onFocus),Xt.onBlur=mu(Pe,Xt.onBlur),oe||(yr.onFocus=_e,yr.onBlur=Pe)),process.env.NODE_ENV!=="production"&&G.props.title&&console.error(["MUI: You have provided a `title` prop to the child of <Tooltip />.",`Remove this title prop \`${G.props.title}\` or the Tooltip component.`].join(`
|
|
465
|
+
`));const Tn={...n,isRtl:se,arrow:r,disableInteractive:oe,placement:O,PopperComponentProp:P,touch:ie.current},tn=typeof Q.popper=="function"?Q.popper(Tn):Q.popper,_o=$.useMemo(()=>{var Ye,vn;let ci=[{name:"arrow",enabled:!!k,options:{element:k,padding:4}}];return(Ye=H.popperOptions)!=null&&Ye.modifiers&&(ci=ci.concat(H.popperOptions.modifiers)),(vn=tn==null?void 0:tn.popperOptions)!=null&&vn.modifiers&&(ci=ci.concat(tn.popperOptions.modifiers)),{...H.popperOptions,...tn==null?void 0:tn.popperOptions,modifiers:ci}},[k,H.popperOptions,tn==null?void 0:tn.popperOptions]),vr=_q(Tn),Xr=typeof Q.transition=="function"?Q.transition(Tn):Q.transition,Yn={slots:{popper:s.Popper,transition:s.Transition??L,tooltip:s.Tooltip,arrow:s.Arrow,...q},slotProps:{arrow:Q.arrow??l.arrow,popper:{...H,...tn??l.popper},tooltip:Q.tooltip??l.tooltip,transition:{...I,...Xr??l.transition}}},[wa,bt]=zr("popper",{elementType:Rq,externalForwardedProps:Yn,ownerState:Tn,className:xt(vr.popper,H==null?void 0:H.className)}),[yn,Or]=zr("transition",{elementType:wd,externalForwardedProps:Yn,ownerState:Tn}),[On,Cf]=zr("tooltip",{elementType:Tq,className:vr.tooltip,externalForwardedProps:Yn,ownerState:Tn}),[Df,_f]=zr("arrow",{elementType:Oq,className:vr.arrow,externalForwardedProps:Yn,ownerState:Tn,ref:ee});return Fe.jsxs($.Fragment,{children:[$.cloneElement(G,Xt),Fe.jsx(wa,{as:P??ny,placement:O,anchorEl:y?{getBoundingClientRect:()=>({top:Za.y,left:Za.x,right:Za.x,bottom:Za.y,width:0,height:0})}:de,popperRef:mr,open:de?ae:!1,id:F,transition:!0,...yr,...bt,popperOptions:_o,children:({TransitionProps:Ye})=>Fe.jsx(yn,{timeout:te.transitions.duration.shorter,...Ye,...Or,children:Fe.jsxs(On,{...Cf,children:[x,r?Fe.jsx(Df,{..._f}):null]})})})]})});process.env.NODE_ENV!=="production"&&(x_.propTypes={arrow:A.bool,children:yf.isRequired,classes:A.object,className:A.string,components:A.shape({Arrow:A.elementType,Popper:A.elementType,Tooltip:A.elementType,Transition:A.elementType}),componentsProps:A.shape({arrow:A.object,popper:A.object,tooltip:A.object,transition:A.object}),describeChild:A.bool,disableFocusListener:A.bool,disableHoverListener:A.bool,disableInteractive:A.bool,disableTouchListener:A.bool,enterDelay:A.number,enterNextDelay:A.number,enterTouchDelay:A.number,followCursor:A.bool,id:A.string,leaveDelay:A.number,leaveTouchDelay:A.number,onClose:A.func,onOpen:A.func,open:A.bool,placement:A.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),PopperComponent:A.elementType,PopperProps:A.object,slotProps:A.shape({arrow:A.oneOfType([A.func,A.object]),popper:A.oneOfType([A.func,A.object]),tooltip:A.oneOfType([A.func,A.object]),transition:A.oneOfType([A.func,A.object])}),slots:A.shape({arrow:A.elementType,popper:A.elementType,tooltip:A.elementType,transition:A.elementType}),sx:A.oneOfType([A.arrayOf(A.oneOfType([A.func,A.object,A.bool])),A.func,A.object]),title:A.node,TransitionComponent:A.elementType,TransitionProps:A.object});function Aq(e){return Wr("MuiSpeedDialAction",e)}const yu=Yr("MuiSpeedDialAction",["fab","fabClosed","staticTooltip","staticTooltipClosed","staticTooltipLabel","tooltipPlacementLeft","tooltipPlacementRight"]),kq=e=>{const{open:t,tooltipPlacement:n,classes:r}=e,o={fab:["fab",!t&&"fabClosed"],staticTooltip:["staticTooltip",`tooltipPlacement${Vn(n)}`,!t&&"staticTooltipClosed"],staticTooltipLabel:["staticTooltipLabel"]};return si(o,Aq,r)},Mq=an(qm,{name:"MuiSpeedDialAction",slot:"Fab",skipVariantsResolver:!1,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.fab,!n.open&&t.fabClosed]}})(ar(({theme:e})=>({margin:8,color:(e.vars||e).palette.text.secondary,backgroundColor:(e.vars||e).palette.background.paper,"&:hover":{backgroundColor:e.vars?e.vars.palette.SpeedDialAction.fabHoverBg:VD(e.palette.background.paper,.15)},transition:`${e.transitions.create("transform",{duration:e.transitions.duration.shorter})}, opacity 0.8s`,opacity:1,variants:[{props:({ownerState:t})=>!t.open,style:{opacity:0,transform:"scale(0)"}}]}))),Pq=an("span",{name:"MuiSpeedDialAction",slot:"StaticTooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.staticTooltip,!n.open&&t.staticTooltipClosed,t[`tooltipPlacement${Vn(n.tooltipPlacement)}`]]}})(ar(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",[`& .${yu.staticTooltipLabel}`]:{transition:e.transitions.create(["transform","opacity"],{duration:e.transitions.duration.shorter}),opacity:1},variants:[{props:({ownerState:t})=>!t.open,style:{[`& .${yu.staticTooltipLabel}`]:{opacity:0,transform:"scale(0.5)"}}},{props:{tooltipPlacement:"left"},style:{[`& .${yu.staticTooltipLabel}`]:{transformOrigin:"100% 50%",right:"100%",marginRight:8}}},{props:{tooltipPlacement:"right"},style:{[`& .${yu.staticTooltipLabel}`]:{transformOrigin:"0% 50%",left:"100%",marginLeft:8}}}]}))),Iq=an("span",{name:"MuiSpeedDialAction",slot:"StaticTooltipLabel"})(ar(({theme:e})=>({position:"absolute",...e.typography.body1,backgroundColor:(e.vars||e).palette.background.paper,borderRadius:(e.vars||e).shape.borderRadius,boxShadow:(e.vars||e).shadows[1],color:(e.vars||e).palette.text.secondary,padding:"4px 16px",wordBreak:"keep-all"}))),Nq=$.forwardRef(function(e,t){var n;const r=Do({props:e,name:"MuiSpeedDialAction"}),{className:o,delay:i=0,FabProps:s={},icon:l,id:u,open:d,TooltipClasses:f,tooltipOpen:g=!1,tooltipPlacement:b="left",tooltipTitle:m,slots:v={},slotProps:p={},...y}=r,S={...r,tooltipPlacement:b},E=kq(S),D={slots:v,slotProps:{fab:s,...p,tooltip:a9(typeof p.tooltip=="function"?p.tooltip(S):p.tooltip,{title:m,open:g,placement:b,classes:f})}},[R,C]=$.useState((n=D.slotProps.tooltip)==null?void 0:n.open),T=()=>{C(!1)},O=()=>{C(!0)},P={transitionDelay:`${i}ms`},[H,Q]=zr("fab",{elementType:Mq,externalForwardedProps:D,ownerState:S,shouldForwardComponentProp:!0,className:xt(E.fab,o),additionalProps:{style:P,tabIndex:-1,role:"menuitem",size:"small"}}),[q,x]=zr("tooltip",{elementType:x_,externalForwardedProps:D,shouldForwardComponentProp:!0,ref:t,additionalProps:{id:u},ownerState:S,getSlotProps:se=>({...se,onClose:de=>{var W;(W=se.onClose)==null||W.call(se,de),T()},onOpen:de=>{var W;(W=se.onOpen)==null||W.call(se,de),O()}})}),[L,I]=zr("staticTooltip",{elementType:Pq,externalForwardedProps:D,ownerState:S,ref:t,className:E.staticTooltip,additionalProps:{id:u}}),[U,G]=zr("staticTooltipLabel",{elementType:Iq,externalForwardedProps:D,ownerState:S,className:E.staticTooltipLabel,additionalProps:{style:P,id:`${u}-label`}}),te=Fe.jsx(H,{...Q,children:l});return x.open?Fe.jsxs(L,{...I,...y,children:[Fe.jsx(U,{...G,children:x.title}),$.cloneElement(te,{"aria-labelledby":`${u}-label`})]}):(!d&&R&&C(!1),Fe.jsx(q,{...x,title:x.title,open:d&&R,placement:x.placement,classes:x.classes,...y,children:te}))});process.env.NODE_ENV!=="production"&&(Nq.propTypes={classes:A.object,className:A.string,delay:A.number,FabProps:A.object,icon:A.node,id:A.string,open:A.bool,slotProps:A.shape({fab:A.oneOfType([A.func,A.object]),staticTooltip:A.oneOfType([A.func,A.object]),staticTooltipLabel:A.oneOfType([A.func,A.object]),tooltip:A.oneOfType([A.func,A.object])}),slots:A.shape({fab:A.elementType,staticTooltip:A.elementType,staticTooltipLabel:A.elementType,tooltip:A.elementType}),sx:A.oneOfType([A.arrayOf(A.oneOfType([A.func,A.object,A.bool])),A.func,A.object]),TooltipClasses:A.object,tooltipOpen:A.bool,tooltipPlacement:A.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),tooltipTitle:A.node});const jq=Yr("MuiBox",["root"]),$q=QD(),zq=q6({themeId:Um,defaultTheme:$q,defaultClassName:jq.root,generateClassName:DD.generate});process.env.NODE_ENV!=="production"&&(zq.propTypes={children:A.node,component:A.elementType,sx:A.oneOfType([A.arrayOf(A.oneOfType([A.func,A.object,A.bool])),A.func,A.object])});pe.createContext(void 0);var gE={exports:{}},Ka={},ju={exports:{}},Lq=ju.exports,mE;function ry(){return mE||(mE=1,function(e,t){(function(n,r){r(t)})(Lq,function(n){function r(N){return function(V,K,ae,F,ve,Ee,Te){return N(V,K,Te)}}function o(N){return function(V,K,ae,F){if(!V||!K||typeof V!="object"||typeof K!="object")return N(V,K,ae,F);var ve=F.get(V),Ee=F.get(K);if(ve&&Ee)return ve===K&&Ee===V;F.set(V,K),F.set(K,V);var Te=N(V,K,ae,F);return F.delete(V),F.delete(K),Te}}function i(N,V){var K={};for(var ae in N)K[ae]=N[ae];for(var ae in V)K[ae]=V[ae];return K}function s(N){return N.constructor===Object||N.constructor==null}function l(N){return typeof N.then=="function"}function u(N,V){return N===V||N!==N&&V!==V}var d="[object Arguments]",f="[object Boolean]",g="[object Date]",b="[object RegExp]",m="[object Map]",v="[object Number]",p="[object Object]",y="[object Set]",S="[object String]",E=Object.prototype.toString;function D(N){var V=N.areArraysEqual,K=N.areDatesEqual,ae=N.areMapsEqual,F=N.areObjectsEqual,ve=N.areRegExpsEqual,Ee=N.areSetsEqual,Te=N.createIsNestedEqual,xe=Te(he);function he(fe,Ce,Pe){if(fe===Ce)return!0;if(!fe||!Ce||typeof fe!="object"||typeof Ce!="object")return fe!==fe&&Ce!==Ce;if(s(fe)&&s(Ce))return F(fe,Ce,xe,Pe);var _e=Array.isArray(fe),Me=Array.isArray(Ce);if(_e||Me)return _e===Me&&V(fe,Ce,xe,Pe);var nt=E.call(fe);return nt!==E.call(Ce)?!1:nt===g?K(fe,Ce,xe,Pe):nt===b?ve(fe,Ce,xe,Pe):nt===m?ae(fe,Ce,xe,Pe):nt===y?Ee(fe,Ce,xe,Pe):nt===p||nt===d?l(fe)||l(Ce)?!1:F(fe,Ce,xe,Pe):nt===f||nt===v||nt===S?u(fe.valueOf(),Ce.valueOf()):!1}return he}function R(N,V,K,ae){var F=N.length;if(V.length!==F)return!1;for(;F-- >0;)if(!K(N[F],V[F],F,F,N,V,ae))return!1;return!0}var C=o(R);function T(N,V){return u(N.valueOf(),V.valueOf())}function O(N,V,K,ae){var F=N.size===V.size;if(!F)return!1;if(!N.size)return!0;var ve={},Ee=0;return N.forEach(function(Te,xe){if(F){var he=!1,fe=0;V.forEach(function(Ce,Pe){!he&&!ve[fe]&&(he=K(xe,Pe,Ee,fe,N,V,ae)&&K(Te,Ce,xe,Pe,N,V,ae))&&(ve[fe]=!0),fe++}),Ee++,F=he}}),F}var P=o(O),H="_owner",Q=Object.prototype.hasOwnProperty;function q(N,V,K,ae){var F=Object.keys(N),ve=F.length;if(Object.keys(V).length!==ve)return!1;for(var Ee;ve-- >0;){if(Ee=F[ve],Ee===H){var Te=!!N.$$typeof,xe=!!V.$$typeof;if((Te||xe)&&Te!==xe)return!1}if(!Q.call(V,Ee)||!K(N[Ee],V[Ee],Ee,Ee,N,V,ae))return!1}return!0}var x=o(q);function L(N,V){return N.source===V.source&&N.flags===V.flags}function I(N,V,K,ae){var F=N.size===V.size;if(!F)return!1;if(!N.size)return!0;var ve={};return N.forEach(function(Ee,Te){if(F){var xe=!1,he=0;V.forEach(function(fe,Ce){!xe&&!ve[he]&&(xe=K(Ee,fe,Te,Ce,N,V,ae))&&(ve[he]=!0),he++}),F=xe}}),F}var U=o(I),G=Object.freeze({areArraysEqual:R,areDatesEqual:T,areMapsEqual:O,areObjectsEqual:q,areRegExpsEqual:L,areSetsEqual:I,createIsNestedEqual:r}),te=Object.freeze({areArraysEqual:C,areDatesEqual:T,areMapsEqual:P,areObjectsEqual:x,areRegExpsEqual:L,areSetsEqual:U,createIsNestedEqual:r}),se=D(G);function de(N,V){return se(N,V,void 0)}var W=D(i(G,{createIsNestedEqual:function(){return u}}));function k(N,V){return W(N,V,void 0)}var ee=D(te);function ie(N,V){return ee(N,V,new WeakMap)}var oe=D(i(te,{createIsNestedEqual:function(){return u}}));function ye(N,V){return oe(N,V,new WeakMap)}function le(N){return D(i(G,N(G)))}function B(N){var V=D(i(te,N(te)));return function(K,ae,F){return F===void 0&&(F=new WeakMap),V(K,ae,F)}}n.circularDeepEqual=ie,n.circularShallowEqual=ye,n.createCustomCircularEqual=B,n.createCustomEqual=le,n.deepEqual=de,n.sameValueZeroEqual=u,n.shallowEqual=k,Object.defineProperty(n,"__esModule",{value:!0})})}(ju,ju.exports)),ju.exports}var vu={exports:{}},yE;function oy(){if(yE)return vu.exports;yE=1;function e(n){var r,o,i="";if(typeof n=="string"||typeof n=="number")i+=n;else if(typeof n=="object")if(Array.isArray(n)){var s=n.length;for(r=0;r<s;r++)n[r]&&(o=e(n[r]))&&(i&&(i+=" "),i+=o)}else for(o in n)n[o]&&(i&&(i+=" "),i+=o);return i}function t(){for(var n,r,o=0,i="",s=arguments.length;o<s;o++)(n=arguments[o])&&(r=e(n))&&(i&&(i+=" "),i+=r);return i}return vu.exports=t,vu.exports.clsx=t,vu.exports}var rt={},vE,bE;function Bq(){return bE||(bE=1,vE=function(e,t,n){return e===t?!0:e.className===t.className&&n(e.style,t.style)&&e.width===t.width&&e.autoSize===t.autoSize&&e.cols===t.cols&&e.draggableCancel===t.draggableCancel&&e.draggableHandle===t.draggableHandle&&n(e.verticalCompact,t.verticalCompact)&&n(e.compactType,t.compactType)&&n(e.layout,t.layout)&&n(e.margin,t.margin)&&n(e.containerPadding,t.containerPadding)&&e.rowHeight===t.rowHeight&&e.maxRows===t.maxRows&&e.isBounded===t.isBounded&&e.isDraggable===t.isDraggable&&e.isResizable===t.isResizable&&e.allowOverlap===t.allowOverlap&&e.preventCollision===t.preventCollision&&e.useCSSTransforms===t.useCSSTransforms&&e.transformScale===t.transformScale&&e.isDroppable===t.isDroppable&&n(e.resizeHandles,t.resizeHandles)&&n(e.resizeHandle,t.resizeHandle)&&e.onLayoutChange===t.onLayoutChange&&e.onDragStart===t.onDragStart&&e.onDrag===t.onDrag&&e.onDragStop===t.onDragStop&&e.onResizeStart===t.onResizeStart&&e.onResize===t.onResize&&e.onResizeStop===t.onResizeStop&&e.onDrop===t.onDrop&&n(e.droppingItem,t.droppingItem)&&n(e.innerRef,t.innerRef)}),vE}var wE;function ma(){if(wE)return rt;wE=1,Object.defineProperty(rt,"__esModule",{value:!0}),rt.bottom=o,rt.childrenEqual=d,rt.cloneLayout=i,rt.cloneLayoutItem=u,rt.collides=g,rt.compact=b,rt.compactItem=p,rt.compactType=ye,rt.correctBounds=y,rt.fastPositionEqual=f,rt.fastRGLPropsEqual=void 0,rt.getAllCollisions=D,rt.getFirstCollision=E,rt.getLayoutItem=S,rt.getStatics=R,rt.modifyLayout=s,rt.moveElement=C,rt.moveElementAwayFromCollision=T,rt.noop=void 0,rt.perc=O,rt.resizeItemInDirection=te,rt.setTopLeft=de,rt.setTransform=se,rt.sortLayoutItems=W,rt.sortLayoutItemsByColRow=ee,rt.sortLayoutItemsByRowCol=k,rt.synchronizeLayoutWithChildren=ie,rt.validateLayout=oe,rt.withLayoutItem=l;var e=ry(),t=n(pe);function n(B){return B&&B.__esModule?B:{default:B}}const r=process.env.NODE_ENV==="production";function o(B){let N=0,V;for(let K=0,ae=B.length;K<ae;K++)V=B[K].y+B[K].h,V>N&&(N=V);return N}function i(B){const N=Array(B.length);for(let V=0,K=B.length;V<K;V++)N[V]=u(B[V]);return N}function s(B,N){const V=Array(B.length);for(let K=0,ae=B.length;K<ae;K++)N.i===B[K].i?V[K]=N:V[K]=B[K];return V}function l(B,N,V){let K=S(B,N);return K?(K=V(u(K)),B=s(B,K),[B,K]):[B,null]}function u(B){return{w:B.w,h:B.h,x:B.x,y:B.y,i:B.i,minW:B.minW,maxW:B.maxW,minH:B.minH,maxH:B.maxH,moved:!!B.moved,static:!!B.static,isDraggable:B.isDraggable,isResizable:B.isResizable,resizeHandles:B.resizeHandles,isBounded:B.isBounded}}function d(B,N){return(0,e.deepEqual)(t.default.Children.map(B,V=>V==null?void 0:V.key),t.default.Children.map(N,V=>V==null?void 0:V.key))&&(0,e.deepEqual)(t.default.Children.map(B,V=>V==null?void 0:V.props["data-grid"]),t.default.Children.map(N,V=>V==null?void 0:V.props["data-grid"]))}rt.fastRGLPropsEqual=Bq();function f(B,N){return B.left===N.left&&B.top===N.top&&B.width===N.width&&B.height===N.height}function g(B,N){return!(B.i===N.i||B.x+B.w<=N.x||B.x>=N.x+N.w||B.y+B.h<=N.y||B.y>=N.y+N.h)}function b(B,N,V,K){const ae=R(B),F=W(B,N),ve=Array(B.length);for(let Ee=0,Te=F.length;Ee<Te;Ee++){let xe=u(F[Ee]);xe.static||(xe=p(ae,xe,N,V,F,K),ae.push(xe)),ve[B.indexOf(F[Ee])]=xe,xe.moved=!1}return ve}const m={x:"w",y:"h"};function v(B,N,V,K){const ae=m[K];N[K]+=1;const F=B.map(ve=>ve.i).indexOf(N.i);for(let ve=F+1;ve<B.length;ve++){const Ee=B[ve];if(!Ee.static){if(Ee.y>N.y+N.h)break;g(N,Ee)&&v(B,Ee,V+N[ae],K)}}N[K]=V}function p(B,N,V,K,ae,F){const ve=V==="vertical",Ee=V==="horizontal";if(ve)for(N.y=Math.min(o(B),N.y);N.y>0&&!E(B,N);)N.y--;else if(Ee)for(;N.x>0&&!E(B,N);)N.x--;let Te;for(;(Te=E(B,N))&&!(V===null&&F);)if(Ee?v(ae,N,Te.x+Te.w,"x"):v(ae,N,Te.y+Te.h,"y"),Ee&&N.x+N.w>K)for(N.x=K-N.w,N.y++;N.x>0&&!E(B,N);)N.x--;return N.y=Math.max(N.y,0),N.x=Math.max(N.x,0),N}function y(B,N){const V=R(B);for(let K=0,ae=B.length;K<ae;K++){const F=B[K];if(F.x+F.w>N.cols&&(F.x=N.cols-F.w),F.x<0&&(F.x=0,F.w=N.cols),!F.static)V.push(F);else for(;E(V,F);)F.y++}return B}function S(B,N){for(let V=0,K=B.length;V<K;V++)if(B[V].i===N)return B[V]}function E(B,N){for(let V=0,K=B.length;V<K;V++)if(g(B[V],N))return B[V]}function D(B,N){return B.filter(V=>g(V,N))}function R(B){return B.filter(N=>N.static)}function C(B,N,V,K,ae,F,ve,Ee,Te){if(N.static&&N.isDraggable!==!0||N.y===K&&N.x===V)return B;`${N.i}${String(V)}${String(K)}${N.x}${N.y}`;const xe=N.x,he=N.y;typeof V=="number"&&(N.x=V),typeof K=="number"&&(N.y=K),N.moved=!0;let fe=W(B,ve);(ve==="vertical"&&typeof K=="number"?he>=K:ve==="horizontal"&&typeof V=="number"&&xe>=V)&&(fe=fe.reverse());const Ce=D(fe,N),Pe=Ce.length>0;if(Pe&&Te)return i(B);if(Pe&&F)return`${N.i}`,N.x=xe,N.y=he,N.moved=!1,B;for(let _e=0,Me=Ce.length;_e<Me;_e++){const nt=Ce[_e];`${N.i}${N.x}${N.y}${nt.i}${nt.x}${nt.y}`,!nt.moved&&(nt.static?B=T(B,nt,N,ae,ve):B=T(B,N,nt,ae,ve))}return B}function T(B,N,V,K,ae,F){const ve=ae==="horizontal",Ee=ae==="vertical",Te=N.static;if(K){K=!1;const fe={x:ve?Math.max(N.x-V.w,0):V.x,y:Ee?Math.max(N.y-V.h,0):V.y,w:V.w,h:V.h,i:"-1"},Ce=E(B,fe),Pe=Ce&&Ce.y+Ce.h>N.y,_e=Ce&&N.x+N.w>Ce.x;if(Ce){if(Pe&&Ee)return C(B,V,void 0,N.y+1,K,Te,ae);if(Pe&&ae==null)return N.y=V.y,V.y=V.y+V.h,B;if(_e&&ve)return C(B,N,V.x,void 0,K,Te,ae)}else return`${V.i}${fe.x}${fe.y}`,C(B,V,ve?fe.x:void 0,Ee?fe.y:void 0,K,Te,ae)}const xe=ve?V.x+1:void 0,he=Ee?V.y+1:void 0;return xe==null&&he==null?B:C(B,V,ve?V.x+1:void 0,Ee?V.y+1:void 0,K,Te,ae)}function O(B){return B*100+"%"}const P=(B,N,V,K)=>B+V>K?N:V,H=(B,N,V)=>B<0?N:V,Q=B=>Math.max(0,B),q=B=>Math.max(0,B),x=(B,N,V)=>{let{left:K,height:ae,width:F}=N;const ve=B.top-(ae-B.height);return{left:K,width:F,height:H(ve,B.height,ae),top:q(ve)}},L=(B,N,V)=>{let{top:K,left:ae,height:F,width:ve}=N;return{top:K,height:F,width:P(B.left,B.width,ve,V),left:Q(ae)}},I=(B,N,V)=>{let{top:K,height:ae,width:F}=N;const ve=B.left-(F-B.width);return{height:ae,width:ve<0?B.width:P(B.left,B.width,F,V),top:q(K),left:Q(ve)}},U=(B,N,V)=>{let{top:K,left:ae,height:F,width:ve}=N;return{width:ve,left:ae,height:H(K,B.height,F),top:q(K)}},G={n:x,ne:function(){return x(arguments.length<=0?void 0:arguments[0],L(...arguments))},e:L,se:function(){return U(arguments.length<=0?void 0:arguments[0],L(...arguments))},s:U,sw:function(){return U(arguments.length<=0?void 0:arguments[0],I(...arguments))},w:I,nw:function(){return x(arguments.length<=0?void 0:arguments[0],I(...arguments))}};function te(B,N,V,K){const ae=G[B];return ae?ae(N,{...N,...V},K):V}function se(B){let{top:N,left:V,width:K,height:ae}=B;const F=`translate(${V}px,${N}px)`;return{transform:F,WebkitTransform:F,MozTransform:F,msTransform:F,OTransform:F,width:`${K}px`,height:`${ae}px`,position:"absolute"}}function de(B){let{top:N,left:V,width:K,height:ae}=B;return{top:`${N}px`,left:`${V}px`,width:`${K}px`,height:`${ae}px`,position:"absolute"}}function W(B,N){return N==="horizontal"?ee(B):N==="vertical"?k(B):B}function k(B){return B.slice(0).sort(function(N,V){return N.y>V.y||N.y===V.y&&N.x>V.x?1:N.y===V.y&&N.x===V.x?0:-1})}function ee(B){return B.slice(0).sort(function(N,V){return N.x>V.x||N.x===V.x&&N.y>V.y?1:-1})}function ie(B,N,V,K,ae){B=B||[];const F=[];t.default.Children.forEach(N,Ee=>{if((Ee==null?void 0:Ee.key)==null)return;const Te=S(B,String(Ee.key)),xe=Ee.props["data-grid"];Te&&xe==null?F.push(u(Te)):xe?(r||oe([xe],"ReactGridLayout.children"),F.push(u({...xe,i:Ee.key}))):F.push(u({w:1,h:1,x:0,y:o(F),i:String(Ee.key)}))});const ve=y(F,{cols:V});return ae?ve:b(ve,K,V)}function oe(B){let N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"Layout";const V=["x","y","w","h"];if(!Array.isArray(B))throw new Error(N+" must be an array!");for(let K=0,ae=B.length;K<ae;K++){const F=B[K];for(let ve=0;ve<V.length;ve++){const Ee=V[ve],Te=F[Ee];if(typeof Te!="number"||Number.isNaN(Te))throw new Error(`ReactGridLayout: ${N}[${K}].${Ee} must be a number! Received: ${Te} (${typeof Te})`)}if(typeof F.i<"u"&&typeof F.i!="string")throw new Error(`ReactGridLayout: ${N}[${K}].i must be a string! Received: ${F.i} (${typeof F.i})`)}}function ye(B){const{verticalCompact:N,compactType:V}=B||{};return N===!1?null:V}const le=()=>{};return rt.noop=le,rt}var fo={},SE;function iy(){if(SE)return fo;SE=1,Object.defineProperty(fo,"__esModule",{value:!0}),fo.calcGridColWidth=e,fo.calcGridItemPosition=n,fo.calcGridItemWHPx=t,fo.calcWH=o,fo.calcXY=r,fo.clamp=i;function e(s){const{margin:l,containerPadding:u,containerWidth:d,cols:f}=s;return(d-l[0]*(f-1)-u[0]*2)/f}function t(s,l,u){return Number.isFinite(s)?Math.round(l*s+Math.max(0,s-1)*u):s}function n(s,l,u,d,f,g){const{margin:b,containerPadding:m,rowHeight:v}=s,p=e(s),y={};return g&&g.resizing?(y.width=Math.round(g.resizing.width),y.height=Math.round(g.resizing.height)):(y.width=t(d,p,b[0]),y.height=t(f,v,b[1])),g&&g.dragging?(y.top=Math.round(g.dragging.top),y.left=Math.round(g.dragging.left)):g&&g.resizing&&typeof g.resizing.top=="number"&&typeof g.resizing.left=="number"?(y.top=Math.round(g.resizing.top),y.left=Math.round(g.resizing.left)):(y.top=Math.round((v+b[1])*u+m[1]),y.left=Math.round((p+b[0])*l+m[0])),y}function r(s,l,u,d,f){const{margin:g,containerPadding:b,cols:m,rowHeight:v,maxRows:p}=s,y=e(s);let S=Math.round((u-b[0])/(y+g[0])),E=Math.round((l-b[1])/(v+g[1]));return S=i(S,0,m-d),E=i(E,0,p-f),{x:S,y:E}}function o(s,l,u,d,f,g){const{margin:b,maxRows:m,cols:v,rowHeight:p}=s,y=e(s);let S=Math.round((l+b[0])/(y+b[0])),E=Math.round((u+b[1])/(p+b[1])),D=i(S,0,v-d),R=i(E,0,m-f);return["sw","w","nw"].indexOf(g)!==-1&&(D=i(S,0,v)),["nw","n","ne"].indexOf(g)!==-1&&(R=i(E,0,m)),{w:D,h:R}}function i(s,l,u){return Math.max(Math.min(s,u),l)}return fo}var Ja={},el={exports:{}},EE={};function C_(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=C_(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function xE(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=C_(e))&&(r&&(r+=" "),r+=t);return r}const Vq=Object.freeze(Object.defineProperty({__proto__:null,clsx:xE,default:xE},Symbol.toStringTag,{value:"Module"})),Hq=SD(Vq);var Ht={},jo={},CE;function Sf(){if(CE)return jo;CE=1,Object.defineProperty(jo,"__esModule",{value:!0}),jo.dontSetMe=o,jo.findInArray=e,jo.int=r,jo.isFunction=t,jo.isNum=n;function e(i,s){for(let l=0,u=i.length;l<u;l++)if(s.apply(s,[i[l],l,i]))return i[l]}function t(i){return typeof i=="function"||Object.prototype.toString.call(i)==="[object Function]"}function n(i){return typeof i=="number"&&!isNaN(i)}function r(i){return parseInt(i,10)}function o(i,s,l){if(i[s])return new Error("Invalid prop ".concat(s," passed to ").concat(l," - do not set this, set it on the child."))}return jo}var $o={},DE;function Fq(){if(DE)return $o;DE=1,Object.defineProperty($o,"__esModule",{value:!0}),$o.browserPrefixToKey=n,$o.browserPrefixToStyle=r,$o.default=void 0,$o.getPrefix=t;const e=["Moz","Webkit","O","ms"];function t(){var i;let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window>"u")return"";const l=(i=window.document)===null||i===void 0||(i=i.documentElement)===null||i===void 0?void 0:i.style;if(!l||s in l)return"";for(let u=0;u<e.length;u++)if(n(s,e[u])in l)return e[u];return""}function n(i,s){return s?"".concat(s).concat(o(i)):i}function r(i,s){return s?"-".concat(s.toLowerCase(),"-").concat(i):i}function o(i){let s="",l=!0;for(let u=0;u<i.length;u++)l?(s+=i[u].toUpperCase(),l=!1):i[u]==="-"?l=!0:s+=i[u];return s}return $o.default=t(),$o}var _E;function sy(){if(_E)return Ht;_E=1,Object.defineProperty(Ht,"__esModule",{value:!0}),Ht.addClassName=C,Ht.addEvent=l,Ht.addUserSelectStyles=D,Ht.createCSSTransform=v,Ht.createSVGTransform=p,Ht.getTouch=S,Ht.getTouchIdentifier=E,Ht.getTranslation=y,Ht.innerHeight=g,Ht.innerWidth=b,Ht.matchesSelector=i,Ht.matchesSelectorAndParentsTo=s,Ht.offsetXYFromParent=m,Ht.outerHeight=d,Ht.outerWidth=f,Ht.removeClassName=T,Ht.removeEvent=u,Ht.removeUserSelectStyles=R;var e=Sf(),t=r(Fq());function n(O){if(typeof WeakMap!="function")return null;var P=new WeakMap,H=new WeakMap;return(n=function(Q){return Q?H:P})(O)}function r(O,P){if(O&&O.__esModule)return O;if(O===null||typeof O!="object"&&typeof O!="function")return{default:O};var H=n(P);if(H&&H.has(O))return H.get(O);var Q={},q=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var x in O)if(x!=="default"&&Object.prototype.hasOwnProperty.call(O,x)){var L=q?Object.getOwnPropertyDescriptor(O,x):null;L&&(L.get||L.set)?Object.defineProperty(Q,x,L):Q[x]=O[x]}return Q.default=O,H&&H.set(O,Q),Q}let o="";function i(O,P){return o||(o=(0,e.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(H){return(0,e.isFunction)(O[H])})),(0,e.isFunction)(O[o])?O[o](P):!1}function s(O,P,H){let Q=O;do{if(i(Q,P))return!0;if(Q===H)return!1;Q=Q.parentNode}while(Q);return!1}function l(O,P,H,Q){if(!O)return;const q={capture:!0,...Q};O.addEventListener?O.addEventListener(P,H,q):O.attachEvent?O.attachEvent("on"+P,H):O["on"+P]=H}function u(O,P,H,Q){if(!O)return;const q={capture:!0,...Q};O.removeEventListener?O.removeEventListener(P,H,q):O.detachEvent?O.detachEvent("on"+P,H):O["on"+P]=null}function d(O){let P=O.clientHeight;const H=O.ownerDocument.defaultView.getComputedStyle(O);return P+=(0,e.int)(H.borderTopWidth),P+=(0,e.int)(H.borderBottomWidth),P}function f(O){let P=O.clientWidth;const H=O.ownerDocument.defaultView.getComputedStyle(O);return P+=(0,e.int)(H.borderLeftWidth),P+=(0,e.int)(H.borderRightWidth),P}function g(O){let P=O.clientHeight;const H=O.ownerDocument.defaultView.getComputedStyle(O);return P-=(0,e.int)(H.paddingTop),P-=(0,e.int)(H.paddingBottom),P}function b(O){let P=O.clientWidth;const H=O.ownerDocument.defaultView.getComputedStyle(O);return P-=(0,e.int)(H.paddingLeft),P-=(0,e.int)(H.paddingRight),P}function m(O,P,H){const Q=P===P.ownerDocument.body?{left:0,top:0}:P.getBoundingClientRect(),q=(O.clientX+P.scrollLeft-Q.left)/H,x=(O.clientY+P.scrollTop-Q.top)/H;return{x:q,y:x}}function v(O,P){const H=y(O,P,"px");return{[(0,t.browserPrefixToKey)("transform",t.default)]:H}}function p(O,P){return y(O,P,"")}function y(O,P,H){let{x:Q,y:q}=O,x="translate(".concat(Q).concat(H,",").concat(q).concat(H,")");if(P){const L="".concat(typeof P.x=="string"?P.x:P.x+H),I="".concat(typeof P.y=="string"?P.y:P.y+H);x="translate(".concat(L,", ").concat(I,")")+x}return x}function S(O,P){return O.targetTouches&&(0,e.findInArray)(O.targetTouches,H=>P===H.identifier)||O.changedTouches&&(0,e.findInArray)(O.changedTouches,H=>P===H.identifier)}function E(O){if(O.targetTouches&&O.targetTouches[0])return O.targetTouches[0].identifier;if(O.changedTouches&&O.changedTouches[0])return O.changedTouches[0].identifier}function D(O){if(!O)return;let P=O.getElementById("react-draggable-style-el");P||(P=O.createElement("style"),P.type="text/css",P.id="react-draggable-style-el",P.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
|
|
466
|
+
`,P.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;}
|
|
467
|
+
`,O.getElementsByTagName("head")[0].appendChild(P)),O.body&&C(O.body,"react-draggable-transparent-selection")}function R(O){if(O)try{if(O.body&&T(O.body,"react-draggable-transparent-selection"),O.selection)O.selection.empty();else{const P=(O.defaultView||window).getSelection();P&&P.type!=="Caret"&&P.removeAllRanges()}}catch{}}function C(O,P){O.classList?O.classList.add(P):O.className.match(new RegExp("(?:^|\\s)".concat(P,"(?!\\S)")))||(O.className+=" ".concat(P))}function T(O,P){O.classList?O.classList.remove(P):O.className=O.className.replace(new RegExp("(?:^|\\s)".concat(P,"(?!\\S)"),"g"),"")}return Ht}var jr={},RE;function D_(){if(RE)return jr;RE=1,Object.defineProperty(jr,"__esModule",{value:!0}),jr.canDragX=o,jr.canDragY=i,jr.createCoreData=l,jr.createDraggableData=u,jr.getBoundPosition=n,jr.getControlPosition=s,jr.snapToGrid=r;var e=Sf(),t=sy();function n(g,b,m){if(!g.props.bounds)return[b,m];let{bounds:v}=g.props;v=typeof v=="string"?v:d(v);const p=f(g);if(typeof v=="string"){const{ownerDocument:y}=p,S=y.defaultView;let E;if(v==="parent"?E=p.parentNode:E=y.querySelector(v),!(E instanceof S.HTMLElement))throw new Error('Bounds selector "'+v+'" could not find an element.');const D=E,R=S.getComputedStyle(p),C=S.getComputedStyle(D);v={left:-p.offsetLeft+(0,e.int)(C.paddingLeft)+(0,e.int)(R.marginLeft),top:-p.offsetTop+(0,e.int)(C.paddingTop)+(0,e.int)(R.marginTop),right:(0,t.innerWidth)(D)-(0,t.outerWidth)(p)-p.offsetLeft+(0,e.int)(C.paddingRight)-(0,e.int)(R.marginRight),bottom:(0,t.innerHeight)(D)-(0,t.outerHeight)(p)-p.offsetTop+(0,e.int)(C.paddingBottom)-(0,e.int)(R.marginBottom)}}return(0,e.isNum)(v.right)&&(b=Math.min(b,v.right)),(0,e.isNum)(v.bottom)&&(m=Math.min(m,v.bottom)),(0,e.isNum)(v.left)&&(b=Math.max(b,v.left)),(0,e.isNum)(v.top)&&(m=Math.max(m,v.top)),[b,m]}function r(g,b,m){const v=Math.round(b/g[0])*g[0],p=Math.round(m/g[1])*g[1];return[v,p]}function o(g){return g.props.axis==="both"||g.props.axis==="x"}function i(g){return g.props.axis==="both"||g.props.axis==="y"}function s(g,b,m){const v=typeof b=="number"?(0,t.getTouch)(g,b):null;if(typeof b=="number"&&!v)return null;const p=f(m),y=m.props.offsetParent||p.offsetParent||p.ownerDocument.body;return(0,t.offsetXYFromParent)(v||g,y,m.props.scale)}function l(g,b,m){const v=!(0,e.isNum)(g.lastX),p=f(g);return v?{node:p,deltaX:0,deltaY:0,lastX:b,lastY:m,x:b,y:m}:{node:p,deltaX:b-g.lastX,deltaY:m-g.lastY,lastX:g.lastX,lastY:g.lastY,x:b,y:m}}function u(g,b){const m=g.props.scale;return{node:b.node,x:g.state.x+b.deltaX/m,y:g.state.y+b.deltaY/m,deltaX:b.deltaX/m,deltaY:b.deltaY/m,lastX:g.state.x,lastY:g.state.y}}function d(g){return{left:g.left,top:g.top,right:g.right,bottom:g.bottom}}function f(g){const b=g.findDOMNode();if(!b)throw new Error("<DraggableCore>: Unmounted during event!");return b}return jr}var tl={},bu={},TE;function __(){if(TE)return bu;TE=1,Object.defineProperty(bu,"__esModule",{value:!0}),bu.default=e;function e(){}return bu}var OE;function Uq(){if(OE)return tl;OE=1,Object.defineProperty(tl,"__esModule",{value:!0}),tl.default=void 0;var e=d(pe),t=l(Co()),n=l(xn),r=sy(),o=D_(),i=Sf(),s=l(__());function l(y){return y&&y.__esModule?y:{default:y}}function u(y){if(typeof WeakMap!="function")return null;var S=new WeakMap,E=new WeakMap;return(u=function(D){return D?E:S})(y)}function d(y,S){if(y&&y.__esModule)return y;if(y===null||typeof y!="object"&&typeof y!="function")return{default:y};var E=u(S);if(E&&E.has(y))return E.get(y);var D={},R=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var C in y)if(C!=="default"&&Object.prototype.hasOwnProperty.call(y,C)){var T=R?Object.getOwnPropertyDescriptor(y,C):null;T&&(T.get||T.set)?Object.defineProperty(D,C,T):D[C]=y[C]}return D.default=y,E&&E.set(y,D),D}function f(y,S,E){return S=g(S),S in y?Object.defineProperty(y,S,{value:E,enumerable:!0,configurable:!0,writable:!0}):y[S]=E,y}function g(y){var S=b(y,"string");return typeof S=="symbol"?S:String(S)}function b(y,S){if(typeof y!="object"||y===null)return y;var E=y[Symbol.toPrimitive];if(E!==void 0){var D=E.call(y,S);if(typeof D!="object")return D;throw new TypeError("@@toPrimitive must return a primitive value.")}return(S==="string"?String:Number)(y)}const m={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let v=m.mouse,p=class extends e.Component{constructor(){super(...arguments),f(this,"dragging",!1),f(this,"lastX",NaN),f(this,"lastY",NaN),f(this,"touchIdentifier",null),f(this,"mounted",!1),f(this,"handleDragStart",y=>{if(this.props.onMouseDown(y),!this.props.allowAnyClick&&typeof y.button=="number"&&y.button!==0)return!1;const S=this.findDOMNode();if(!S||!S.ownerDocument||!S.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:E}=S;if(this.props.disabled||!(y.target instanceof E.defaultView.Node)||this.props.handle&&!(0,r.matchesSelectorAndParentsTo)(y.target,this.props.handle,S)||this.props.cancel&&(0,r.matchesSelectorAndParentsTo)(y.target,this.props.cancel,S))return;y.type==="touchstart"&&y.preventDefault();const D=(0,r.getTouchIdentifier)(y);this.touchIdentifier=D;const R=(0,o.getControlPosition)(y,D,this);if(R==null)return;const{x:C,y:T}=R,O=(0,o.createCoreData)(this,C,T);(0,s.default)("DraggableCore: handleDragStart: %j",O),(0,s.default)("calling",this.props.onStart),!(this.props.onStart(y,O)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,r.addUserSelectStyles)(E),this.dragging=!0,this.lastX=C,this.lastY=T,(0,r.addEvent)(E,v.move,this.handleDrag),(0,r.addEvent)(E,v.stop,this.handleDragStop))}),f(this,"handleDrag",y=>{const S=(0,o.getControlPosition)(y,this.touchIdentifier,this);if(S==null)return;let{x:E,y:D}=S;if(Array.isArray(this.props.grid)){let C=E-this.lastX,T=D-this.lastY;if([C,T]=(0,o.snapToGrid)(this.props.grid,C,T),!C&&!T)return;E=this.lastX+C,D=this.lastY+T}const R=(0,o.createCoreData)(this,E,D);if((0,s.default)("DraggableCore: handleDrag: %j",R),this.props.onDrag(y,R)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch{const C=document.createEvent("MouseEvents");C.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(C)}return}this.lastX=E,this.lastY=D}),f(this,"handleDragStop",y=>{if(!this.dragging)return;const S=(0,o.getControlPosition)(y,this.touchIdentifier,this);if(S==null)return;let{x:E,y:D}=S;if(Array.isArray(this.props.grid)){let T=E-this.lastX||0,O=D-this.lastY||0;[T,O]=(0,o.snapToGrid)(this.props.grid,T,O),E=this.lastX+T,D=this.lastY+O}const R=(0,o.createCoreData)(this,E,D);if(this.props.onStop(y,R)===!1||this.mounted===!1)return!1;const C=this.findDOMNode();C&&this.props.enableUserSelectHack&&(0,r.removeUserSelectStyles)(C.ownerDocument),(0,s.default)("DraggableCore: handleDragStop: %j",R),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,C&&((0,s.default)("DraggableCore: Removing handlers"),(0,r.removeEvent)(C.ownerDocument,v.move,this.handleDrag),(0,r.removeEvent)(C.ownerDocument,v.stop,this.handleDragStop))}),f(this,"onMouseDown",y=>(v=m.mouse,this.handleDragStart(y))),f(this,"onMouseUp",y=>(v=m.mouse,this.handleDragStop(y))),f(this,"onTouchStart",y=>(v=m.touch,this.handleDragStart(y))),f(this,"onTouchEnd",y=>(v=m.touch,this.handleDragStop(y)))}componentDidMount(){this.mounted=!0;const y=this.findDOMNode();y&&(0,r.addEvent)(y,m.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const y=this.findDOMNode();if(y){const{ownerDocument:S}=y;(0,r.removeEvent)(S,m.mouse.move,this.handleDrag),(0,r.removeEvent)(S,m.touch.move,this.handleDrag),(0,r.removeEvent)(S,m.mouse.stop,this.handleDragStop),(0,r.removeEvent)(S,m.touch.stop,this.handleDragStop),(0,r.removeEvent)(y,m.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,r.removeUserSelectStyles)(S)}}findDOMNode(){var y,S;return(y=this.props)!==null&&y!==void 0&&y.nodeRef?(S=this.props)===null||S===void 0||(S=S.nodeRef)===null||S===void 0?void 0:S.current:n.default.findDOMNode(this)}render(){return e.cloneElement(e.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};return tl.default=p,f(p,"displayName","DraggableCore"),f(p,"propTypes",{allowAnyClick:t.default.bool,children:t.default.node.isRequired,disabled:t.default.bool,enableUserSelectHack:t.default.bool,offsetParent:function(y,S){if(y[S]&&y[S].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:t.default.arrayOf(t.default.number),handle:t.default.string,cancel:t.default.string,nodeRef:t.default.object,onStart:t.default.func,onDrag:t.default.func,onStop:t.default.func,onMouseDown:t.default.func,scale:t.default.number,className:i.dontSetMe,style:i.dontSetMe,transform:i.dontSetMe}),f(p,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1}),tl}var AE;function Wq(){return AE||(AE=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DraggableCore",{enumerable:!0,get:function(){return u.default}}),e.default=void 0;var t=b(pe),n=f(Co()),r=f(xn),o=f(Hq),i=sy(),s=D_(),l=Sf(),u=f(Uq()),d=f(__());function f(E){return E&&E.__esModule?E:{default:E}}function g(E){if(typeof WeakMap!="function")return null;var D=new WeakMap,R=new WeakMap;return(g=function(C){return C?R:D})(E)}function b(E,D){if(E&&E.__esModule)return E;if(E===null||typeof E!="object"&&typeof E!="function")return{default:E};var R=g(D);if(R&&R.has(E))return R.get(E);var C={},T=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var O in E)if(O!=="default"&&Object.prototype.hasOwnProperty.call(E,O)){var P=T?Object.getOwnPropertyDescriptor(E,O):null;P&&(P.get||P.set)?Object.defineProperty(C,O,P):C[O]=E[O]}return C.default=E,R&&R.set(E,C),C}function m(){return m=Object.assign?Object.assign.bind():function(E){for(var D=1;D<arguments.length;D++){var R=arguments[D];for(var C in R)Object.prototype.hasOwnProperty.call(R,C)&&(E[C]=R[C])}return E},m.apply(this,arguments)}function v(E,D,R){return D=p(D),D in E?Object.defineProperty(E,D,{value:R,enumerable:!0,configurable:!0,writable:!0}):E[D]=R,E}function p(E){var D=y(E,"string");return typeof D=="symbol"?D:String(D)}function y(E,D){if(typeof E!="object"||E===null)return E;var R=E[Symbol.toPrimitive];if(R!==void 0){var C=R.call(E,D);if(typeof C!="object")return C;throw new TypeError("@@toPrimitive must return a primitive value.")}return(D==="string"?String:Number)(E)}class S extends t.Component{static getDerivedStateFromProps(D,R){let{position:C}=D,{prevPropsPosition:T}=R;return C&&(!T||C.x!==T.x||C.y!==T.y)?((0,d.default)("Draggable: getDerivedStateFromProps %j",{position:C,prevPropsPosition:T}),{x:C.x,y:C.y,prevPropsPosition:{...C}}):null}constructor(D){super(D),v(this,"onDragStart",(R,C)=>{if((0,d.default)("Draggable: onDragStart: %j",C),this.props.onStart(R,(0,s.createDraggableData)(this,C))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),v(this,"onDrag",(R,C)=>{if(!this.state.dragging)return!1;(0,d.default)("Draggable: onDrag: %j",C);const T=(0,s.createDraggableData)(this,C),O={x:T.x,y:T.y,slackX:0,slackY:0};if(this.props.bounds){const{x:P,y:H}=O;O.x+=this.state.slackX,O.y+=this.state.slackY;const[Q,q]=(0,s.getBoundPosition)(this,O.x,O.y);O.x=Q,O.y=q,O.slackX=this.state.slackX+(P-O.x),O.slackY=this.state.slackY+(H-O.y),T.x=O.x,T.y=O.y,T.deltaX=O.x-this.state.x,T.deltaY=O.y-this.state.y}if(this.props.onDrag(R,T)===!1)return!1;this.setState(O)}),v(this,"onDragStop",(R,C)=>{if(!this.state.dragging||this.props.onStop(R,(0,s.createDraggableData)(this,C))===!1)return!1;(0,d.default)("Draggable: onDragStop: %j",C);const T={dragging:!1,slackX:0,slackY:0};if(this.props.position){const{x:O,y:P}=this.props.position;T.x=O,T.y=P}this.setState(T)}),this.state={dragging:!1,dragged:!1,x:D.position?D.position.x:D.defaultPosition.x,y:D.position?D.position.y:D.defaultPosition.y,prevPropsPosition:{...D.position},slackX:0,slackY:0,isElementSVG:!1},D.position&&!(D.onDrag||D.onStop)&&console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){typeof window.SVGElement<"u"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.setState({dragging:!1})}findDOMNode(){var D,R;return(D=(R=this.props)===null||R===void 0||(R=R.nodeRef)===null||R===void 0?void 0:R.current)!==null&&D!==void 0?D:r.default.findDOMNode(this)}render(){const{axis:D,bounds:R,children:C,defaultPosition:T,defaultClassName:O,defaultClassNameDragging:P,defaultClassNameDragged:H,position:Q,positionOffset:q,scale:x,...L}=this.props;let I={},U=null;const G=!Q||this.state.dragging,te=Q||T,se={x:(0,s.canDragX)(this)&&G?this.state.x:te.x,y:(0,s.canDragY)(this)&&G?this.state.y:te.y};this.state.isElementSVG?U=(0,i.createSVGTransform)(se,q):I=(0,i.createCSSTransform)(se,q);const de=(0,o.default)(C.props.className||"",O,{[P]:this.state.dragging,[H]:this.state.dragged});return t.createElement(u.default,m({},L,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),t.cloneElement(t.Children.only(C),{className:de,style:{...C.props.style,...I},transform:U}))}}e.default=S,v(S,"displayName","Draggable"),v(S,"propTypes",{...u.default.propTypes,axis:n.default.oneOf(["both","x","y","none"]),bounds:n.default.oneOfType([n.default.shape({left:n.default.number,right:n.default.number,top:n.default.number,bottom:n.default.number}),n.default.string,n.default.oneOf([!1])]),defaultClassName:n.default.string,defaultClassNameDragging:n.default.string,defaultClassNameDragged:n.default.string,defaultPosition:n.default.shape({x:n.default.number,y:n.default.number}),positionOffset:n.default.shape({x:n.default.oneOfType([n.default.number,n.default.string]),y:n.default.oneOfType([n.default.number,n.default.string])}),position:n.default.shape({x:n.default.number,y:n.default.number}),className:l.dontSetMe,style:l.dontSetMe,transform:l.dontSetMe}),v(S,"defaultProps",{...u.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})}(EE)),EE}var kE;function ay(){if(kE)return el.exports;kE=1;const{default:e,DraggableCore:t}=Wq();return el.exports=e,el.exports.default=e,el.exports.DraggableCore=t,el.exports}var wu={exports:{}},nl={},Su={},ME;function Yq(){if(ME)return Su;ME=1,Su.__esModule=!0,Su.cloneElement=l;var e=t(pe);function t(u){return u&&u.__esModule?u:{default:u}}function n(u,d){var f=Object.keys(u);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(u);d&&(g=g.filter(function(b){return Object.getOwnPropertyDescriptor(u,b).enumerable})),f.push.apply(f,g)}return f}function r(u){for(var d=1;d<arguments.length;d++){var f=arguments[d]!=null?arguments[d]:{};d%2?n(Object(f),!0).forEach(function(g){o(u,g,f[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(u,Object.getOwnPropertyDescriptors(f)):n(Object(f)).forEach(function(g){Object.defineProperty(u,g,Object.getOwnPropertyDescriptor(f,g))})}return u}function o(u,d,f){return d=i(d),d in u?Object.defineProperty(u,d,{value:f,enumerable:!0,configurable:!0,writable:!0}):u[d]=f,u}function i(u){var d=s(u,"string");return typeof d=="symbol"?d:String(d)}function s(u,d){if(typeof u!="object"||u===null)return u;var f=u[Symbol.toPrimitive];if(f!==void 0){var g=f.call(u,d);if(typeof g!="object")return g;throw new TypeError("@@toPrimitive must return a primitive value.")}return(d==="string"?String:Number)(u)}function l(u,d){return d.style&&u.props.style&&(d.style=r(r({},u.props.style),d.style)),d.className&&u.props.className&&(d.className=u.props.className+" "+d.className),e.default.cloneElement(u,d)}return Su}var rl={},PE;function R_(){if(PE)return rl;PE=1,rl.__esModule=!0,rl.resizableProps=void 0;var e=t(Co());ay();function t(r){return r&&r.__esModule?r:{default:r}}var n={axis:e.default.oneOf(["both","x","y","none"]),className:e.default.string,children:e.default.element.isRequired,draggableOpts:e.default.shape({allowAnyClick:e.default.bool,cancel:e.default.string,children:e.default.node,disabled:e.default.bool,enableUserSelectHack:e.default.bool,offsetParent:e.default.node,grid:e.default.arrayOf(e.default.number),handle:e.default.string,nodeRef:e.default.object,onStart:e.default.func,onDrag:e.default.func,onStop:e.default.func,onMouseDown:e.default.func,scale:e.default.number}),height:function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var s=o[0];if(s.axis==="both"||s.axis==="y"){var l;return(l=e.default.number).isRequired.apply(l,o)}return e.default.number.apply(e.default,o)},handle:e.default.oneOfType([e.default.node,e.default.func]),handleSize:e.default.arrayOf(e.default.number),lockAspectRatio:e.default.bool,maxConstraints:e.default.arrayOf(e.default.number),minConstraints:e.default.arrayOf(e.default.number),onResizeStop:e.default.func,onResizeStart:e.default.func,onResize:e.default.func,resizeHandles:e.default.arrayOf(e.default.oneOf(["s","w","e","n","sw","nw","se","ne"])),transformScale:e.default.number,width:function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var s=o[0];if(s.axis==="both"||s.axis==="x"){var l;return(l=e.default.number).isRequired.apply(l,o)}return e.default.number.apply(e.default,o)}};return rl.resizableProps=n,rl}var IE;function T_(){if(IE)return nl;IE=1,nl.__esModule=!0,nl.default=void 0;var e=s(pe),t=ay(),n=Yq(),r=R_(),o=["children","className","draggableOpts","width","height","handle","handleSize","lockAspectRatio","axis","minConstraints","maxConstraints","onResize","onResizeStop","onResizeStart","resizeHandles","transformScale"];function i(S){if(typeof WeakMap!="function")return null;var E=new WeakMap,D=new WeakMap;return(i=function(R){return R?D:E})(S)}function s(S,E){if(S&&S.__esModule)return S;if(S===null||typeof S!="object"&&typeof S!="function")return{default:S};var D=i(E);if(D&&D.has(S))return D.get(S);var R={},C=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var T in S)if(T!=="default"&&Object.prototype.hasOwnProperty.call(S,T)){var O=C?Object.getOwnPropertyDescriptor(S,T):null;O&&(O.get||O.set)?Object.defineProperty(R,T,O):R[T]=S[T]}return R.default=S,D&&D.set(S,R),R}function l(){return l=Object.assign?Object.assign.bind():function(S){for(var E=1;E<arguments.length;E++){var D=arguments[E];for(var R in D)Object.prototype.hasOwnProperty.call(D,R)&&(S[R]=D[R])}return S},l.apply(this,arguments)}function u(S,E){if(S==null)return{};var D={},R=Object.keys(S),C,T;for(T=0;T<R.length;T++)C=R[T],!(E.indexOf(C)>=0)&&(D[C]=S[C]);return D}function d(S,E){var D=Object.keys(S);if(Object.getOwnPropertySymbols){var R=Object.getOwnPropertySymbols(S);E&&(R=R.filter(function(C){return Object.getOwnPropertyDescriptor(S,C).enumerable})),D.push.apply(D,R)}return D}function f(S){for(var E=1;E<arguments.length;E++){var D=arguments[E]!=null?arguments[E]:{};E%2?d(Object(D),!0).forEach(function(R){g(S,R,D[R])}):Object.getOwnPropertyDescriptors?Object.defineProperties(S,Object.getOwnPropertyDescriptors(D)):d(Object(D)).forEach(function(R){Object.defineProperty(S,R,Object.getOwnPropertyDescriptor(D,R))})}return S}function g(S,E,D){return E=b(E),E in S?Object.defineProperty(S,E,{value:D,enumerable:!0,configurable:!0,writable:!0}):S[E]=D,S}function b(S){var E=m(S,"string");return typeof E=="symbol"?E:String(E)}function m(S,E){if(typeof S!="object"||S===null)return S;var D=S[Symbol.toPrimitive];if(D!==void 0){var R=D.call(S,E);if(typeof R!="object")return R;throw new TypeError("@@toPrimitive must return a primitive value.")}return(E==="string"?String:Number)(S)}function v(S,E){S.prototype=Object.create(E.prototype),S.prototype.constructor=S,p(S,E)}function p(S,E){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(D,R){return D.__proto__=R,D},p(S,E)}var y=function(S){v(E,S);function E(){for(var R,C=arguments.length,T=new Array(C),O=0;O<C;O++)T[O]=arguments[O];return R=S.call.apply(S,[this].concat(T))||this,R.handleRefs={},R.lastHandleRect=null,R.slack=null,R}var D=E.prototype;return D.componentWillUnmount=function(){this.resetData()},D.resetData=function(){this.lastHandleRect=this.slack=null},D.runConstraints=function(R,C){var T=this.props,O=T.minConstraints,P=T.maxConstraints,H=T.lockAspectRatio;if(!O&&!P&&!H)return[R,C];if(H){var Q=this.props.width/this.props.height,q=R-this.props.width,x=C-this.props.height;Math.abs(q)>Math.abs(x*Q)?C=R/Q:R=C*Q}var L=R,I=C,U=this.slack||[0,0],G=U[0],te=U[1];return R+=G,C+=te,O&&(R=Math.max(O[0],R),C=Math.max(O[1],C)),P&&(R=Math.min(P[0],R),C=Math.min(P[1],C)),this.slack=[G+(L-R),te+(I-C)],[R,C]},D.resizeHandler=function(R,C){var T=this;return function(O,P){var H=P.node,Q=P.deltaX,q=P.deltaY;R==="onResizeStart"&&T.resetData();var x=(T.props.axis==="both"||T.props.axis==="x")&&C!=="n"&&C!=="s",L=(T.props.axis==="both"||T.props.axis==="y")&&C!=="e"&&C!=="w";if(!(!x&&!L)){var I=C[0],U=C[C.length-1],G=H.getBoundingClientRect();if(T.lastHandleRect!=null){if(U==="w"){var te=G.left-T.lastHandleRect.left;Q+=te}if(I==="n"){var se=G.top-T.lastHandleRect.top;q+=se}}T.lastHandleRect=G,U==="w"&&(Q=-Q),I==="n"&&(q=-q);var de=T.props.width+(x?Q/T.props.transformScale:0),W=T.props.height+(L?q/T.props.transformScale:0),k=T.runConstraints(de,W);de=k[0],W=k[1];var ee=de!==T.props.width||W!==T.props.height,ie=typeof T.props[R]=="function"?T.props[R]:null,oe=R==="onResize"&&!ee;ie&&!oe&&(O.persist==null||O.persist(),ie(O,{node:H,size:{width:de,height:W},handle:C})),R==="onResizeStop"&&T.resetData()}}},D.renderResizeHandle=function(R,C){var T=this.props.handle;if(!T)return e.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+R,ref:C});if(typeof T=="function")return T(R,C);var O=typeof T.type=="string",P=f({ref:C},O?{}:{handleAxis:R});return e.cloneElement(T,P)},D.render=function(){var R=this,C=this.props,T=C.children,O=C.className,P=C.draggableOpts;C.width,C.height,C.handle,C.handleSize,C.lockAspectRatio,C.axis,C.minConstraints,C.maxConstraints,C.onResize,C.onResizeStop,C.onResizeStart;var H=C.resizeHandles;C.transformScale;var Q=u(C,o);return(0,n.cloneElement)(T,f(f({},Q),{},{className:(O?O+" ":"")+"react-resizable",children:[].concat(T.props.children,H.map(function(q){var x,L=(x=R.handleRefs[q])!=null?x:R.handleRefs[q]=e.createRef();return e.createElement(t.DraggableCore,l({},P,{nodeRef:L,key:"resizableHandle-"+q,onStop:R.resizeHandler("onResizeStop",q),onStart:R.resizeHandler("onResizeStart",q),onDrag:R.resizeHandler("onResize",q)}),R.renderResizeHandle(q,L))}))}))},E}(e.Component);return nl.default=y,y.propTypes=r.resizableProps,y.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1},nl}var ol={},NE;function Gq(){if(NE)return ol;NE=1,ol.__esModule=!0,ol.default=void 0;var e=l(pe),t=i(Co()),n=i(T_()),r=R_(),o=["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"];function i(E){return E&&E.__esModule?E:{default:E}}function s(E){if(typeof WeakMap!="function")return null;var D=new WeakMap,R=new WeakMap;return(s=function(C){return C?R:D})(E)}function l(E,D){if(E&&E.__esModule)return E;if(E===null||typeof E!="object"&&typeof E!="function")return{default:E};var R=s(D);if(R&&R.has(E))return R.get(E);var C={},T=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var O in E)if(O!=="default"&&Object.prototype.hasOwnProperty.call(E,O)){var P=T?Object.getOwnPropertyDescriptor(E,O):null;P&&(P.get||P.set)?Object.defineProperty(C,O,P):C[O]=E[O]}return C.default=E,R&&R.set(E,C),C}function u(){return u=Object.assign?Object.assign.bind():function(E){for(var D=1;D<arguments.length;D++){var R=arguments[D];for(var C in R)Object.prototype.hasOwnProperty.call(R,C)&&(E[C]=R[C])}return E},u.apply(this,arguments)}function d(E,D){var R=Object.keys(E);if(Object.getOwnPropertySymbols){var C=Object.getOwnPropertySymbols(E);D&&(C=C.filter(function(T){return Object.getOwnPropertyDescriptor(E,T).enumerable})),R.push.apply(R,C)}return R}function f(E){for(var D=1;D<arguments.length;D++){var R=arguments[D]!=null?arguments[D]:{};D%2?d(Object(R),!0).forEach(function(C){g(E,C,R[C])}):Object.getOwnPropertyDescriptors?Object.defineProperties(E,Object.getOwnPropertyDescriptors(R)):d(Object(R)).forEach(function(C){Object.defineProperty(E,C,Object.getOwnPropertyDescriptor(R,C))})}return E}function g(E,D,R){return D=b(D),D in E?Object.defineProperty(E,D,{value:R,enumerable:!0,configurable:!0,writable:!0}):E[D]=R,E}function b(E){var D=m(E,"string");return typeof D=="symbol"?D:String(D)}function m(E,D){if(typeof E!="object"||E===null)return E;var R=E[Symbol.toPrimitive];if(R!==void 0){var C=R.call(E,D);if(typeof C!="object")return C;throw new TypeError("@@toPrimitive must return a primitive value.")}return(D==="string"?String:Number)(E)}function v(E,D){if(E==null)return{};var R={},C=Object.keys(E),T,O;for(O=0;O<C.length;O++)T=C[O],!(D.indexOf(T)>=0)&&(R[T]=E[T]);return R}function p(E,D){E.prototype=Object.create(D.prototype),E.prototype.constructor=E,y(E,D)}function y(E,D){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(R,C){return R.__proto__=C,R},y(E,D)}var S=function(E){p(D,E);function D(){for(var C,T=arguments.length,O=new Array(T),P=0;P<T;P++)O[P]=arguments[P];return C=E.call.apply(E,[this].concat(O))||this,C.state={width:C.props.width,height:C.props.height,propsWidth:C.props.width,propsHeight:C.props.height},C.onResize=function(H,Q){var q=Q.size;C.props.onResize?(H.persist==null||H.persist(),C.setState(q,function(){return C.props.onResize&&C.props.onResize(H,Q)})):C.setState(q)},C}D.getDerivedStateFromProps=function(C,T){return T.propsWidth!==C.width||T.propsHeight!==C.height?{width:C.width,height:C.height,propsWidth:C.width,propsHeight:C.height}:null};var R=D.prototype;return R.render=function(){var C=this.props,T=C.handle,O=C.handleSize;C.onResize;var P=C.onResizeStart,H=C.onResizeStop,Q=C.draggableOpts,q=C.minConstraints,x=C.maxConstraints,L=C.lockAspectRatio,I=C.axis;C.width,C.height;var U=C.resizeHandles,G=C.style,te=C.transformScale,se=v(C,o);return e.createElement(n.default,{axis:I,draggableOpts:Q,handle:T,handleSize:O,height:this.state.height,lockAspectRatio:L,maxConstraints:x,minConstraints:q,onResizeStart:P,onResize:this.onResize,onResizeStop:H,resizeHandles:U,transformScale:te,width:this.state.width},e.createElement("div",u({},se,{style:f(f({},G),{},{width:this.state.width+"px",height:this.state.height+"px"})})))},D}(e.Component);return ol.default=S,S.propTypes=f(f({},r.resizableProps),{},{children:t.default.element}),ol}var jE;function qq(){return jE||(jE=1,wu.exports=function(){throw new Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable")},wu.exports.Resizable=T_().default,wu.exports.ResizableBox=Gq().default),wu.exports}var po={},$E;function O_(){if($E)return po;$E=1,Object.defineProperty(po,"__esModule",{value:!0}),po.resizeHandleType=po.resizeHandleAxesType=po.default=void 0;var e=n(Co()),t=n(pe);function n(i){return i&&i.__esModule?i:{default:i}}const r=po.resizeHandleAxesType=e.default.arrayOf(e.default.oneOf(["s","w","e","n","sw","nw","se","ne"])),o=po.resizeHandleType=e.default.oneOfType([e.default.node,e.default.func]);return po.default={className:e.default.string,style:e.default.object,width:e.default.number,autoSize:e.default.bool,cols:e.default.number,draggableCancel:e.default.string,draggableHandle:e.default.string,verticalCompact:function(i){i.verticalCompact===!1&&process.env.NODE_ENV!=="production"&&console.warn('`verticalCompact` on <ReactGridLayout> is deprecated and will be removed soon. Use `compactType`: "horizontal" | "vertical" | null.')},compactType:e.default.oneOf(["vertical","horizontal"]),layout:function(i){var s=i.layout;s!==void 0&&ma().validateLayout(s,"layout")},margin:e.default.arrayOf(e.default.number),containerPadding:e.default.arrayOf(e.default.number),rowHeight:e.default.number,maxRows:e.default.number,isBounded:e.default.bool,isDraggable:e.default.bool,isResizable:e.default.bool,allowOverlap:e.default.bool,preventCollision:e.default.bool,useCSSTransforms:e.default.bool,transformScale:e.default.number,isDroppable:e.default.bool,resizeHandles:r,resizeHandle:o,onLayoutChange:e.default.func,onDragStart:e.default.func,onDrag:e.default.func,onDragStop:e.default.func,onResizeStart:e.default.func,onResize:e.default.func,onResizeStop:e.default.func,onDrop:e.default.func,droppingItem:e.default.shape({i:e.default.string.isRequired,w:e.default.number.isRequired,h:e.default.number.isRequired}),children:function(i,s){const l=i[s],u={};t.default.Children.forEach(l,function(d){if((d==null?void 0:d.key)!=null){if(u[d.key])throw new Error('Duplicate child key "'+d.key+'" found! This will cause problems in ReactGridLayout.');u[d.key]=!0}})},innerRef:e.default.any},po}var zE;function Xq(){if(zE)return Ja;zE=1,Object.defineProperty(Ja,"__esModule",{value:!0}),Ja.default=void 0;var e=u(pe),t=u(Co()),n=ay(),r=qq(),o=ma(),i=iy(),s=O_(),l=u(oy());function u(m){return m&&m.__esModule?m:{default:m}}function d(m,v,p){return v=f(v),v in m?Object.defineProperty(m,v,{value:p,enumerable:!0,configurable:!0,writable:!0}):m[v]=p,m}function f(m){var v=g(m,"string");return typeof v=="symbol"?v:String(v)}function g(m,v){if(typeof m!="object"||m===null)return m;var p=m[Symbol.toPrimitive];if(p!==void 0){var y=p.call(m,v);if(typeof y!="object")return y;throw new TypeError("@@toPrimitive must return a primitive value.")}return(v==="string"?String:Number)(m)}let b=class extends e.default.Component{constructor(){super(...arguments),d(this,"state",{resizing:null,dragging:null,className:""}),d(this,"elementRef",e.default.createRef()),d(this,"onDragStart",(m,v)=>{let{node:p}=v;const{onDragStart:y,transformScale:S}=this.props;if(!y)return;const E={top:0,left:0},{offsetParent:D}=p;if(!D)return;const R=D.getBoundingClientRect(),C=p.getBoundingClientRect(),T=C.left/S,O=R.left/S,P=C.top/S,H=R.top/S;E.left=T-O+D.scrollLeft,E.top=P-H+D.scrollTop,this.setState({dragging:E});const{x:Q,y:q}=(0,i.calcXY)(this.getPositionParams(),E.top,E.left,this.props.w,this.props.h);return y.call(this,this.props.i,Q,q,{e:m,node:p,newPosition:E})}),d(this,"onDrag",(m,v)=>{let{node:p,deltaX:y,deltaY:S}=v;const{onDrag:E}=this.props;if(!E)return;if(!this.state.dragging)throw new Error("onDrag called before onDragStart.");let D=this.state.dragging.top+S,R=this.state.dragging.left+y;const{isBounded:C,i:T,w:O,h:P,containerWidth:H}=this.props,Q=this.getPositionParams();if(C){const{offsetParent:I}=p;if(I){const{margin:U,rowHeight:G,containerPadding:te}=this.props,se=I.clientHeight-(0,i.calcGridItemWHPx)(P,G,U[1]);D=(0,i.clamp)(D-te[1],0,se);const de=(0,i.calcGridColWidth)(Q),W=H-(0,i.calcGridItemWHPx)(O,de,U[0]);R=(0,i.clamp)(R-te[0],0,W)}}const q={top:D,left:R};this.setState({dragging:q});const{x,y:L}=(0,i.calcXY)(Q,D,R,O,P);return E.call(this,T,x,L,{e:m,node:p,newPosition:q})}),d(this,"onDragStop",(m,v)=>{let{node:p}=v;const{onDragStop:y}=this.props;if(!y)return;if(!this.state.dragging)throw new Error("onDragEnd called before onDragStart.");const{w:S,h:E,i:D}=this.props,{left:R,top:C}=this.state.dragging,T={top:C,left:R};this.setState({dragging:null});const{x:O,y:P}=(0,i.calcXY)(this.getPositionParams(),C,R,S,E);return y.call(this,D,O,P,{e:m,node:p,newPosition:T})}),d(this,"onResizeStop",(m,v,p)=>this.onResizeHandler(m,v,p,"onResizeStop")),d(this,"onResizeStart",(m,v,p)=>this.onResizeHandler(m,v,p,"onResizeStart")),d(this,"onResize",(m,v,p)=>this.onResizeHandler(m,v,p,"onResize"))}shouldComponentUpdate(m,v){if(this.props.children!==m.children||this.props.droppingPosition!==m.droppingPosition)return!0;const p=(0,i.calcGridItemPosition)(this.getPositionParams(this.props),this.props.x,this.props.y,this.props.w,this.props.h,this.state),y=(0,i.calcGridItemPosition)(this.getPositionParams(m),m.x,m.y,m.w,m.h,v);return!(0,o.fastPositionEqual)(p,y)||this.props.useCSSTransforms!==m.useCSSTransforms}componentDidMount(){this.moveDroppingItem({})}componentDidUpdate(m){this.moveDroppingItem(m)}moveDroppingItem(m){const{droppingPosition:v}=this.props;if(!v)return;const p=this.elementRef.current;if(!p)return;const y=m.droppingPosition||{left:0,top:0},{dragging:S}=this.state,E=S&&v.left!==y.left||v.top!==y.top;if(!S)this.onDragStart(v.e,{node:p,deltaX:v.left,deltaY:v.top});else if(E){const D=v.left-S.left,R=v.top-S.top;this.onDrag(v.e,{node:p,deltaX:D,deltaY:R})}}getPositionParams(){let m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props;return{cols:m.cols,containerPadding:m.containerPadding,containerWidth:m.containerWidth,margin:m.margin,maxRows:m.maxRows,rowHeight:m.rowHeight}}createStyle(m){const{usePercentages:v,containerWidth:p,useCSSTransforms:y}=this.props;let S;return y?S=(0,o.setTransform)(m):(S=(0,o.setTopLeft)(m),v&&(S.left=(0,o.perc)(m.left/p),S.width=(0,o.perc)(m.width/p))),S}mixinDraggable(m,v){return e.default.createElement(n.DraggableCore,{disabled:!v,onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop,handle:this.props.handle,cancel:".react-resizable-handle"+(this.props.cancel?","+this.props.cancel:""),scale:this.props.transformScale,nodeRef:this.elementRef},m)}curryResizeHandler(m,v){return(p,y)=>v(p,y,m)}mixinResizable(m,v,p){const{cols:y,minW:S,minH:E,maxW:D,maxH:R,transformScale:C,resizeHandles:T,resizeHandle:O}=this.props,P=this.getPositionParams(),H=(0,i.calcGridItemPosition)(P,0,0,y,0).width,Q=(0,i.calcGridItemPosition)(P,0,0,S,E),q=(0,i.calcGridItemPosition)(P,0,0,D,R),x=[Q.width,Q.height],L=[Math.min(q.width,H),Math.min(q.height,1/0)];return e.default.createElement(r.Resizable,{draggableOpts:{disabled:!p},className:p?void 0:"react-resizable-hide",width:v.width,height:v.height,minConstraints:x,maxConstraints:L,onResizeStop:this.curryResizeHandler(v,this.onResizeStop),onResizeStart:this.curryResizeHandler(v,this.onResizeStart),onResize:this.curryResizeHandler(v,this.onResize),transformScale:C,resizeHandles:T,handle:O},m)}onResizeHandler(m,v,p,y){let{node:S,size:E,handle:D}=v;const R=this.props[y];if(!R)return;const{x:C,y:T,i:O,maxH:P,minH:H,containerWidth:Q}=this.props,{minW:q,maxW:x}=this.props;let L=E;S&&(L=(0,o.resizeItemInDirection)(D,p,E,Q),this.setState({resizing:y==="onResizeStop"?null:L}));let{w:I,h:U}=(0,i.calcWH)(this.getPositionParams(),L.width,L.height,C,T,D);I=(0,i.clamp)(I,Math.max(q,1),x),U=(0,i.clamp)(U,H,P),R.call(this,O,I,U,{e:m,node:S,size:L,handle:D})}render(){const{x:m,y:v,w:p,h:y,isDraggable:S,isResizable:E,droppingPosition:D,useCSSTransforms:R}=this.props,C=(0,i.calcGridItemPosition)(this.getPositionParams(),m,v,p,y,this.state),T=e.default.Children.only(this.props.children);let O=e.default.cloneElement(T,{ref:this.elementRef,className:(0,l.default)("react-grid-item",T.props.className,this.props.className,{static:this.props.static,resizing:!!this.state.resizing,"react-draggable":S,"react-draggable-dragging":!!this.state.dragging,dropping:!!D,cssTransforms:R}),style:{...this.props.style,...T.props.style,...this.createStyle(C)}});return O=this.mixinResizable(O,C,E),O=this.mixinDraggable(O,S),O}};return Ja.default=b,d(b,"propTypes",{children:t.default.element,cols:t.default.number.isRequired,containerWidth:t.default.number.isRequired,rowHeight:t.default.number.isRequired,margin:t.default.array.isRequired,maxRows:t.default.number.isRequired,containerPadding:t.default.array.isRequired,x:t.default.number.isRequired,y:t.default.number.isRequired,w:t.default.number.isRequired,h:t.default.number.isRequired,minW:function(m,v){const p=m[v];if(typeof p!="number")return new Error("minWidth not Number");if(p>m.w||p>m.maxW)return new Error("minWidth larger than item width/maxWidth")},maxW:function(m,v){const p=m[v];if(typeof p!="number")return new Error("maxWidth not Number");if(p<m.w||p<m.minW)return new Error("maxWidth smaller than item width/minWidth")},minH:function(m,v){const p=m[v];if(typeof p!="number")return new Error("minHeight not Number");if(p>m.h||p>m.maxH)return new Error("minHeight larger than item height/maxHeight")},maxH:function(m,v){const p=m[v];if(typeof p!="number")return new Error("maxHeight not Number");if(p<m.h||p<m.minH)return new Error("maxHeight smaller than item height/minHeight")},i:t.default.string.isRequired,resizeHandles:s.resizeHandleAxesType,resizeHandle:s.resizeHandleType,onDragStop:t.default.func,onDragStart:t.default.func,onDrag:t.default.func,onResizeStop:t.default.func,onResizeStart:t.default.func,onResize:t.default.func,isDraggable:t.default.bool.isRequired,isResizable:t.default.bool.isRequired,isBounded:t.default.bool.isRequired,static:t.default.bool,useCSSTransforms:t.default.bool.isRequired,transformScale:t.default.number,className:t.default.string,handle:t.default.string,cancel:t.default.string,droppingPosition:t.default.shape({e:t.default.object.isRequired,left:t.default.number.isRequired,top:t.default.number.isRequired})}),d(b,"defaultProps",{className:"",cancel:"",handle:"",minH:1,minW:1,maxH:1/0,maxW:1/0,transformScale:1}),Ja}var LE;function A_(){if(LE)return Ka;LE=1,Object.defineProperty(Ka,"__esModule",{value:!0}),Ka.default=void 0;var e=d(pe),t=ry(),n=l(oy()),r=ma(),o=iy(),i=l(Xq()),s=l(O_());function l(y){return y&&y.__esModule?y:{default:y}}function u(y){if(typeof WeakMap!="function")return null;var S=new WeakMap,E=new WeakMap;return(u=function(D){return D?E:S})(y)}function d(y,S){if(y&&y.__esModule)return y;if(y===null||typeof y!="object"&&typeof y!="function")return{default:y};var E=u(S);if(E&&E.has(y))return E.get(y);var D={__proto__:null},R=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var C in y)if(C!=="default"&&Object.prototype.hasOwnProperty.call(y,C)){var T=R?Object.getOwnPropertyDescriptor(y,C):null;T&&(T.get||T.set)?Object.defineProperty(D,C,T):D[C]=y[C]}return D.default=y,E&&E.set(y,D),D}function f(y,S,E){return S=g(S),S in y?Object.defineProperty(y,S,{value:E,enumerable:!0,configurable:!0,writable:!0}):y[S]=E,y}function g(y){var S=b(y,"string");return typeof S=="symbol"?S:String(S)}function b(y,S){if(typeof y!="object"||y===null)return y;var E=y[Symbol.toPrimitive];if(E!==void 0){var D=E.call(y,S);if(typeof D!="object")return D;throw new TypeError("@@toPrimitive must return a primitive value.")}return(S==="string"?String:Number)(y)}const m="react-grid-layout";let v=!1;try{v=/firefox/i.test(navigator.userAgent)}catch{}class p extends e.Component{constructor(){super(...arguments),f(this,"state",{activeDrag:null,layout:(0,r.synchronizeLayoutWithChildren)(this.props.layout,this.props.children,this.props.cols,(0,r.compactType)(this.props),this.props.allowOverlap),mounted:!1,oldDragItem:null,oldLayout:null,oldResizeItem:null,resizing:!1,droppingDOMNode:null,children:[]}),f(this,"dragEnterCounter",0),f(this,"onDragStart",(S,E,D,R)=>{let{e:C,node:T}=R;const{layout:O}=this.state,P=(0,r.getLayoutItem)(O,S);if(!P)return;const H={w:P.w,h:P.h,x:P.x,y:P.y,placeholder:!0,i:S};return this.setState({oldDragItem:(0,r.cloneLayoutItem)(P),oldLayout:O,activeDrag:H}),this.props.onDragStart(O,P,P,null,C,T)}),f(this,"onDrag",(S,E,D,R)=>{let{e:C,node:T}=R;const{oldDragItem:O}=this.state;let{layout:P}=this.state;const{cols:H,allowOverlap:Q,preventCollision:q}=this.props,x=(0,r.getLayoutItem)(P,S);if(!x)return;const L={w:x.w,h:x.h,x:x.x,y:x.y,placeholder:!0,i:S};P=(0,r.moveElement)(P,x,E,D,!0,q,(0,r.compactType)(this.props),H,Q),this.props.onDrag(P,O,x,L,C,T),this.setState({layout:Q?P:(0,r.compact)(P,(0,r.compactType)(this.props),H),activeDrag:L})}),f(this,"onDragStop",(S,E,D,R)=>{let{e:C,node:T}=R;if(!this.state.activeDrag)return;const{oldDragItem:O}=this.state;let{layout:P}=this.state;const{cols:H,preventCollision:Q,allowOverlap:q}=this.props,x=(0,r.getLayoutItem)(P,S);if(!x)return;P=(0,r.moveElement)(P,x,E,D,!0,Q,(0,r.compactType)(this.props),H,q);const L=q?P:(0,r.compact)(P,(0,r.compactType)(this.props),H);this.props.onDragStop(L,O,x,null,C,T);const{oldLayout:I}=this.state;this.setState({activeDrag:null,layout:L,oldDragItem:null,oldLayout:null}),this.onLayoutMaybeChanged(L,I)}),f(this,"onResizeStart",(S,E,D,R)=>{let{e:C,node:T}=R;const{layout:O}=this.state,P=(0,r.getLayoutItem)(O,S);P&&(this.setState({oldResizeItem:(0,r.cloneLayoutItem)(P),oldLayout:this.state.layout,resizing:!0}),this.props.onResizeStart(O,P,P,null,C,T))}),f(this,"onResize",(S,E,D,R)=>{let{e:C,node:T,size:O,handle:P}=R;const{oldResizeItem:H}=this.state,{layout:Q}=this.state,{cols:q,preventCollision:x,allowOverlap:L}=this.props;let I=!1,U,G,te;const[se,de]=(0,r.withLayoutItem)(Q,S,k=>{let ee;return G=k.x,te=k.y,["sw","w","nw","n","ne"].indexOf(P)!==-1&&(["sw","nw","w"].indexOf(P)!==-1&&(G=k.x+(k.w-E),E=k.x!==G&&G<0?k.w:E,G=G<0?0:G),["ne","n","nw"].indexOf(P)!==-1&&(te=k.y+(k.h-D),D=k.y!==te&&te<0?k.h:D,te=te<0?0:te),I=!0),x&&!L&&(ee=(0,r.getAllCollisions)(Q,{...k,w:E,h:D,x:G,y:te}).filter(ie=>ie.i!==k.i).length>0,ee&&(te=k.y,D=k.h,G=k.x,E=k.w,I=!1)),k.w=E,k.h=D,k});if(!de)return;U=se,I&&(U=(0,r.moveElement)(se,de,G,te,!0,this.props.preventCollision,(0,r.compactType)(this.props),q,L));const W={w:de.w,h:de.h,x:de.x,y:de.y,static:!0,i:S};this.props.onResize(U,H,de,W,C,T),this.setState({layout:L?U:(0,r.compact)(U,(0,r.compactType)(this.props),q),activeDrag:W})}),f(this,"onResizeStop",(S,E,D,R)=>{let{e:C,node:T}=R;const{layout:O,oldResizeItem:P}=this.state,{cols:H,allowOverlap:Q}=this.props,q=(0,r.getLayoutItem)(O,S),x=Q?O:(0,r.compact)(O,(0,r.compactType)(this.props),H);this.props.onResizeStop(x,P,q,null,C,T);const{oldLayout:L}=this.state;this.setState({activeDrag:null,layout:x,oldResizeItem:null,oldLayout:null,resizing:!1}),this.onLayoutMaybeChanged(x,L)}),f(this,"onDragOver",S=>{var E;if(S.preventDefault(),S.stopPropagation(),v&&!((E=S.nativeEvent.target)!=null&&E.classList.contains(m)))return!1;const{droppingItem:D,onDropDragOver:R,margin:C,cols:T,rowHeight:O,maxRows:P,width:H,containerPadding:Q,transformScale:q}=this.props,x=R==null?void 0:R(S);if(x===!1)return this.state.droppingDOMNode&&this.removeDroppingPlaceholder(),!1;const L={...D,...x},{layout:I}=this.state,U=S.currentTarget.getBoundingClientRect(),G=S.clientX-U.left,te=S.clientY-U.top,se={left:G/q,top:te/q,e:S};if(this.state.droppingDOMNode){if(this.state.droppingPosition){const{left:de,top:W}=this.state.droppingPosition;(de!=G||W!=te)&&this.setState({droppingPosition:se})}}else{const de={cols:T,margin:C,maxRows:P,rowHeight:O,containerWidth:H,containerPadding:Q||C},W=(0,o.calcXY)(de,te,G,L.w,L.h);this.setState({droppingDOMNode:e.createElement("div",{key:L.i}),droppingPosition:se,layout:[...I,{...L,x:W.x,y:W.y,static:!1,isDraggable:!0}]})}}),f(this,"removeDroppingPlaceholder",()=>{const{droppingItem:S,cols:E}=this.props,{layout:D}=this.state,R=(0,r.compact)(D.filter(C=>C.i!==S.i),(0,r.compactType)(this.props),E,this.props.allowOverlap);this.setState({layout:R,droppingDOMNode:null,activeDrag:null,droppingPosition:void 0})}),f(this,"onDragLeave",S=>{S.preventDefault(),S.stopPropagation(),this.dragEnterCounter--,this.dragEnterCounter===0&&this.removeDroppingPlaceholder()}),f(this,"onDragEnter",S=>{S.preventDefault(),S.stopPropagation(),this.dragEnterCounter++}),f(this,"onDrop",S=>{S.preventDefault(),S.stopPropagation();const{droppingItem:E}=this.props,{layout:D}=this.state,R=D.find(C=>C.i===E.i);this.dragEnterCounter=0,this.removeDroppingPlaceholder(),this.props.onDrop(D,R,S)})}componentDidMount(){this.setState({mounted:!0}),this.onLayoutMaybeChanged(this.state.layout,this.props.layout)}static getDerivedStateFromProps(S,E){let D;return E.activeDrag?null:(!(0,t.deepEqual)(S.layout,E.propsLayout)||S.compactType!==E.compactType?D=S.layout:(0,r.childrenEqual)(S.children,E.children)||(D=E.layout),D?{layout:(0,r.synchronizeLayoutWithChildren)(D,S.children,S.cols,(0,r.compactType)(S),S.allowOverlap),compactType:S.compactType,children:S.children,propsLayout:S.layout}:null)}shouldComponentUpdate(S,E){return this.props.children!==S.children||!(0,r.fastRGLPropsEqual)(this.props,S,t.deepEqual)||this.state.activeDrag!==E.activeDrag||this.state.mounted!==E.mounted||this.state.droppingPosition!==E.droppingPosition}componentDidUpdate(S,E){if(!this.state.activeDrag){const D=this.state.layout,R=E.layout;this.onLayoutMaybeChanged(D,R)}}containerHeight(){if(!this.props.autoSize)return;const S=(0,r.bottom)(this.state.layout),E=this.props.containerPadding?this.props.containerPadding[1]:this.props.margin[1];return S*this.props.rowHeight+(S-1)*this.props.margin[1]+E*2+"px"}onLayoutMaybeChanged(S,E){E||(E=this.state.layout),(0,t.deepEqual)(E,S)||this.props.onLayoutChange(S)}placeholder(){const{activeDrag:S}=this.state;if(!S)return null;const{width:E,cols:D,margin:R,containerPadding:C,rowHeight:T,maxRows:O,useCSSTransforms:P,transformScale:H}=this.props;return e.createElement(i.default,{w:S.w,h:S.h,x:S.x,y:S.y,i:S.i,className:`react-grid-placeholder ${this.state.resizing?"placeholder-resizing":""}`,containerWidth:E,cols:D,margin:R,containerPadding:C||R,maxRows:O,rowHeight:T,isDraggable:!1,isResizable:!1,isBounded:!1,useCSSTransforms:P,transformScale:H},e.createElement("div",null))}processGridItem(S,E){if(!S||!S.key)return;const D=(0,r.getLayoutItem)(this.state.layout,String(S.key));if(!D)return null;const{width:R,cols:C,margin:T,containerPadding:O,rowHeight:P,maxRows:H,isDraggable:Q,isResizable:q,isBounded:x,useCSSTransforms:L,transformScale:I,draggableCancel:U,draggableHandle:G,resizeHandles:te,resizeHandle:se}=this.props,{mounted:de,droppingPosition:W}=this.state,k=typeof D.isDraggable=="boolean"?D.isDraggable:!D.static&&Q,ee=typeof D.isResizable=="boolean"?D.isResizable:!D.static&&q,ie=D.resizeHandles||te,oe=k&&x&&D.isBounded!==!1;return e.createElement(i.default,{containerWidth:R,cols:C,margin:T,containerPadding:O||T,maxRows:H,rowHeight:P,cancel:U,handle:G,onDragStop:this.onDragStop,onDragStart:this.onDragStart,onDrag:this.onDrag,onResizeStart:this.onResizeStart,onResize:this.onResize,onResizeStop:this.onResizeStop,isDraggable:k,isResizable:ee,isBounded:oe,useCSSTransforms:L&&de,usePercentages:!de,transformScale:I,w:D.w,h:D.h,x:D.x,y:D.y,i:D.i,minH:D.minH,minW:D.minW,maxH:D.maxH,maxW:D.maxW,static:D.static,droppingPosition:E?W:void 0,resizeHandles:ie,resizeHandle:se},S)}render(){const{className:S,style:E,isDroppable:D,innerRef:R}=this.props,C=(0,n.default)(m,S),T={height:this.containerHeight(),...E};return e.createElement("div",{ref:R,className:C,style:T,onDrop:D?this.onDrop:r.noop,onDragLeave:D?this.onDragLeave:r.noop,onDragEnter:D?this.onDragEnter:r.noop,onDragOver:D?this.onDragOver:r.noop},e.Children.map(this.props.children,O=>this.processGridItem(O)),D&&this.state.droppingDOMNode&&this.processGridItem(this.state.droppingDOMNode,!0),this.placeholder())}}return Ka.default=p,f(p,"displayName","ReactGridLayout"),f(p,"propTypes",s.default),f(p,"defaultProps",{autoSize:!0,cols:12,className:"",style:{},draggableHandle:"",draggableCancel:"",containerPadding:null,rowHeight:150,maxRows:1/0,layout:[],margin:[10,10],isBounded:!1,isDraggable:!0,isResizable:!0,allowOverlap:!1,isDroppable:!1,useCSSTransforms:!0,transformScale:1,verticalCompact:!0,compactType:"vertical",preventCollision:!1,droppingItem:{i:"__dropping-elem__",h:1,w:1},resizeHandles:["se"],onLayoutChange:r.noop,onDragStart:r.noop,onDrag:r.noop,onDragStop:r.noop,onResizeStart:r.noop,onResize:r.noop,onResizeStop:r.noop,onDrop:r.noop,onDropDragOver:r.noop}),Ka}var il={},Ci={},BE;function k_(){if(BE)return Ci;BE=1,Object.defineProperty(Ci,"__esModule",{value:!0}),Ci.findOrGenerateResponsiveLayout=r,Ci.getBreakpointFromWidth=t,Ci.getColsFromBreakpoint=n,Ci.sortBreakpoints=o;var e=ma();function t(i,s){const l=o(i);let u=l[0];for(let d=1,f=l.length;d<f;d++){const g=l[d];s>i[g]&&(u=g)}return u}function n(i,s){if(!s[i])throw new Error("ResponsiveReactGridLayout: `cols` entry for breakpoint "+i+" is missing!");return s[i]}function r(i,s,l,u,d,f){if(i[l])return(0,e.cloneLayout)(i[l]);let g=i[u];const b=o(s),m=b.slice(b.indexOf(l));for(let v=0,p=m.length;v<p;v++){const y=m[v];if(i[y]){g=i[y];break}}return g=(0,e.cloneLayout)(g||[]),(0,e.compact)((0,e.correctBounds)(g,{cols:d}),f,d)}function o(i){return Object.keys(i).sort(function(s,l){return i[s]-i[l]})}return Ci}var VE;function Qq(){if(VE)return il;VE=1,Object.defineProperty(il,"__esModule",{value:!0}),il.default=void 0;var e=u(pe),t=s(Co()),n=ry(),r=ma(),o=k_(),i=s(A_());function s(y){return y&&y.__esModule?y:{default:y}}function l(y){if(typeof WeakMap!="function")return null;var S=new WeakMap,E=new WeakMap;return(l=function(D){return D?E:S})(y)}function u(y,S){if(y&&y.__esModule)return y;if(y===null||typeof y!="object"&&typeof y!="function")return{default:y};var E=l(S);if(E&&E.has(y))return E.get(y);var D={__proto__:null},R=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var C in y)if(C!=="default"&&Object.prototype.hasOwnProperty.call(y,C)){var T=R?Object.getOwnPropertyDescriptor(y,C):null;T&&(T.get||T.set)?Object.defineProperty(D,C,T):D[C]=y[C]}return D.default=y,E&&E.set(y,D),D}function d(){return d=Object.assign?Object.assign.bind():function(y){for(var S=1;S<arguments.length;S++){var E=arguments[S];for(var D in E)Object.prototype.hasOwnProperty.call(E,D)&&(y[D]=E[D])}return y},d.apply(this,arguments)}function f(y,S,E){return S=g(S),S in y?Object.defineProperty(y,S,{value:E,enumerable:!0,configurable:!0,writable:!0}):y[S]=E,y}function g(y){var S=b(y,"string");return typeof S=="symbol"?S:String(S)}function b(y,S){if(typeof y!="object"||y===null)return y;var E=y[Symbol.toPrimitive];if(E!==void 0){var D=E.call(y,S);if(typeof D!="object")return D;throw new TypeError("@@toPrimitive must return a primitive value.")}return(S==="string"?String:Number)(y)}const m=y=>Object.prototype.toString.call(y);function v(y,S){return y==null?null:Array.isArray(y)?y:y[S]}let p=class extends e.Component{constructor(){super(...arguments),f(this,"state",this.generateInitialState()),f(this,"onLayoutChange",y=>{this.props.onLayoutChange(y,{...this.props.layouts,[this.state.breakpoint]:y})})}generateInitialState(){const{width:y,breakpoints:S,layouts:E,cols:D}=this.props,R=(0,o.getBreakpointFromWidth)(S,y),C=(0,o.getColsFromBreakpoint)(R,D),T=this.props.verticalCompact===!1?null:this.props.compactType;return{layout:(0,o.findOrGenerateResponsiveLayout)(E,S,R,R,C,T),breakpoint:R,cols:C}}static getDerivedStateFromProps(y,S){if(!(0,n.deepEqual)(y.layouts,S.layouts)){const{breakpoint:E,cols:D}=S;return{layout:(0,o.findOrGenerateResponsiveLayout)(y.layouts,y.breakpoints,E,E,D,y.compactType),layouts:y.layouts}}return null}componentDidUpdate(y){(this.props.width!=y.width||this.props.breakpoint!==y.breakpoint||!(0,n.deepEqual)(this.props.breakpoints,y.breakpoints)||!(0,n.deepEqual)(this.props.cols,y.cols))&&this.onWidthChange(y)}onWidthChange(y){const{breakpoints:S,cols:E,layouts:D,compactType:R}=this.props,C=this.props.breakpoint||(0,o.getBreakpointFromWidth)(this.props.breakpoints,this.props.width),T=this.state.breakpoint,O=(0,o.getColsFromBreakpoint)(C,E),P={...D};if(T!==C||y.breakpoints!==S||y.cols!==E){T in P||(P[T]=(0,r.cloneLayout)(this.state.layout));let q=(0,o.findOrGenerateResponsiveLayout)(P,S,C,T,O,R);q=(0,r.synchronizeLayoutWithChildren)(q,this.props.children,O,R,this.props.allowOverlap),P[C]=q,this.props.onBreakpointChange(C,O),this.props.onLayoutChange(q,P),this.setState({breakpoint:C,layout:q,cols:O})}const H=v(this.props.margin,C),Q=v(this.props.containerPadding,C);this.props.onWidthChange(this.props.width,H,O,Q)}render(){const{breakpoint:y,breakpoints:S,cols:E,layouts:D,margin:R,containerPadding:C,onBreakpointChange:T,onLayoutChange:O,onWidthChange:P,...H}=this.props;return e.createElement(i.default,d({},H,{margin:v(R,this.state.breakpoint),containerPadding:v(C,this.state.breakpoint),onLayoutChange:this.onLayoutChange,layout:this.state.layout,cols:this.state.cols}))}};return il.default=p,f(p,"propTypes",{breakpoint:t.default.string,breakpoints:t.default.object,allowOverlap:t.default.bool,cols:t.default.object,margin:t.default.oneOfType([t.default.array,t.default.object]),containerPadding:t.default.oneOfType([t.default.array,t.default.object]),layouts(y,S){if(m(y[S])!=="[object Object]")throw new Error("Layout property must be an object. Received: "+m(y[S]));Object.keys(y[S]).forEach(E=>{if(!(E in y.breakpoints))throw new Error("Each key in layouts must align with a key in breakpoints.");(0,r.validateLayout)(y.layouts[E],"layouts."+E)})},width:t.default.number.isRequired,onBreakpointChange:t.default.func,onLayoutChange:t.default.func,onWidthChange:t.default.func}),f(p,"defaultProps",{breakpoints:{lg:1200,md:996,sm:768,xs:480,xxs:0},cols:{lg:12,md:10,sm:6,xs:4,xxs:2},containerPadding:{lg:null,md:null,sm:null,xs:null,xxs:null},layouts:{},margin:[10,10],allowOverlap:!1,onBreakpointChange:r.noop,onLayoutChange:r.noop,onWidthChange:r.noop}),il}var Eu={},M_=function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(o,i){return o[0]===n?(r=i,!0):!1}),r}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(n){var r=e(this.__entries__,n),o=this.__entries__[r];return o&&o[1]},t.prototype.set=function(n,r){var o=e(this.__entries__,n);~o?this.__entries__[o][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,o=e(r,n);~o&&r.splice(o,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var o=0,i=this.__entries__;o<i.length;o++){var s=i[o];n.call(r,s[1],s[0])}},t}()}(),_g=typeof window<"u"&&typeof document<"u"&&window.document===document,Cd=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),Zq=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Cd):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),Kq=2;function Jq(e,t){var n=!1,r=!1,o=0;function i(){n&&(n=!1,e()),r&&l()}function s(){Zq(i)}function l(){var u=Date.now();if(n){if(u-o<Kq)return;r=!0}else n=!0,r=!1,setTimeout(s,t);o=u}return l}var e8=20,t8=["top","right","bottom","left","width","height","size","weight"],n8=typeof MutationObserver<"u",r8=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=Jq(this.refresh.bind(this),e8)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var n=this.observers_,r=n.indexOf(t);~r&&n.splice(r,1),!n.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(n){return n.gatherActive(),n.hasActive()});return t.forEach(function(n){return n.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!_g||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),n8?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!_g||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,r=n===void 0?"":n,o=t8.some(function(i){return!!~r.indexOf(i)});o&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),P_=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},ua=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||Cd},I_=Ef(0,0,0,0);function Dd(e){return parseFloat(e)||0}function HE(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(r,o){var i=e["border-"+o+"-width"];return r+Dd(i)},0)}function o8(e){for(var t=["top","right","bottom","left"],n={},r=0,o=t;r<o.length;r++){var i=o[r],s=e["padding-"+i];n[i]=Dd(s)}return n}function i8(e){var t=e.getBBox();return Ef(0,0,t.width,t.height)}function s8(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return I_;var r=ua(e).getComputedStyle(e),o=o8(r),i=o.left+o.right,s=o.top+o.bottom,l=Dd(r.width),u=Dd(r.height);if(r.boxSizing==="border-box"&&(Math.round(l+i)!==t&&(l-=HE(r,"left","right")+i),Math.round(u+s)!==n&&(u-=HE(r,"top","bottom")+s)),!l8(e)){var d=Math.round(l+i)-t,f=Math.round(u+s)-n;Math.abs(d)!==1&&(l-=d),Math.abs(f)!==1&&(u-=f)}return Ef(o.left,o.top,l,u)}var a8=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof ua(e).SVGGraphicsElement}:function(e){return e instanceof ua(e).SVGElement&&typeof e.getBBox=="function"}}();function l8(e){return e===ua(e).document.documentElement}function c8(e){return _g?a8(e)?i8(e):s8(e):I_}function u8(e){var t=e.x,n=e.y,r=e.width,o=e.height,i=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,s=Object.create(i.prototype);return P_(s,{x:t,y:n,width:r,height:o,top:n,right:t+r,bottom:o+n,left:t}),s}function Ef(e,t,n,r){return{x:e,y:t,width:n,height:r}}var d8=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Ef(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=c8(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e}(),f8=function(){function e(t,n){var r=u8(n);P_(this,{target:t,contentRect:r})}return e}(),p8=function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new M_,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=n,this.callbackCtx_=r}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof ua(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new d8(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof ua(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new f8(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),N_=typeof WeakMap<"u"?new WeakMap:new M_,j_=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=r8.getInstance(),r=new p8(t,n,this);N_.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){j_.prototype[e]=function(){var t;return(t=N_.get(this))[e].apply(t,arguments)}});var h8=function(){return typeof Cd.ResizeObserver<"u"?Cd.ResizeObserver:j_}();const g8=Object.freeze(Object.defineProperty({__proto__:null,default:h8},Symbol.toStringTag,{value:"Module"})),m8=SD(g8);var FE;function y8(){if(FE)return Eu;FE=1,Object.defineProperty(Eu,"__esModule",{value:!0}),Eu.default=b;var e=s(pe),t=o(Co()),n=o(m8),r=o(oy());function o(m){return m&&m.__esModule?m:{default:m}}function i(m){if(typeof WeakMap!="function")return null;var v=new WeakMap,p=new WeakMap;return(i=function(y){return y?p:v})(m)}function s(m,v){if(m&&m.__esModule)return m;if(m===null||typeof m!="object"&&typeof m!="function")return{default:m};var p=i(v);if(p&&p.has(m))return p.get(m);var y={__proto__:null},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var E in m)if(E!=="default"&&Object.prototype.hasOwnProperty.call(m,E)){var D=S?Object.getOwnPropertyDescriptor(m,E):null;D&&(D.get||D.set)?Object.defineProperty(y,E,D):y[E]=m[E]}return y.default=m,p&&p.set(m,y),y}function l(){return l=Object.assign?Object.assign.bind():function(m){for(var v=1;v<arguments.length;v++){var p=arguments[v];for(var y in p)Object.prototype.hasOwnProperty.call(p,y)&&(m[y]=p[y])}return m},l.apply(this,arguments)}function u(m,v,p){return v=d(v),v in m?Object.defineProperty(m,v,{value:p,enumerable:!0,configurable:!0,writable:!0}):m[v]=p,m}function d(m){var v=f(m,"string");return typeof v=="symbol"?v:String(v)}function f(m,v){if(typeof m!="object"||m===null)return m;var p=m[Symbol.toPrimitive];if(p!==void 0){var y=p.call(m,v);if(typeof y!="object")return y;throw new TypeError("@@toPrimitive must return a primitive value.")}return(v==="string"?String:Number)(m)}const g="react-grid-layout";function b(m){var v;return v=class extends e.Component{constructor(){super(...arguments),u(this,"state",{width:1280}),u(this,"elementRef",e.createRef()),u(this,"mounted",!1),u(this,"resizeObserver",void 0)}componentDidMount(){this.mounted=!0,this.resizeObserver=new n.default(y=>{if(this.elementRef.current instanceof HTMLElement){const S=y[0].contentRect.width;this.setState({width:S})}});const p=this.elementRef.current;p instanceof HTMLElement&&this.resizeObserver.observe(p)}componentWillUnmount(){this.mounted=!1;const p=this.elementRef.current;p instanceof HTMLElement&&this.resizeObserver.unobserve(p),this.resizeObserver.disconnect()}render(){const{measureBeforeMount:p,...y}=this.props;return p&&!this.mounted?e.createElement("div",{className:(0,r.default)(this.props.className,g),style:this.props.style,ref:this.elementRef}):e.createElement(m,l({innerRef:this.elementRef},y,this.state))}},u(v,"defaultProps",{measureBeforeMount:!1}),u(v,"propTypes",{measureBeforeMount:t.default.bool}),v}return Eu}var UE;function v8(){return UE||(UE=1,function(e){e.exports=A_().default,e.exports.utils=ma(),e.exports.calculateUtils=iy(),e.exports.Responsive=Qq().default,e.exports.Responsive.utils=k_(),e.exports.WidthProvider=y8().default}(gE)),gE.exports}var WE=v8();WE.WidthProvider(WE.Responsive);hn(Fe.jsx("path",{d:"M14.67 5v6.5H9.33V5zm1 6.5H21V5h-5.33zm-1 7.5v-6.5H9.33V19zm1-6.5V19H21v-6.5zm-7.34 0H3V19h5.33zm0-1V5H3v6.5z"}),"ViewModule");hn(Fe.jsx("path",{d:"M20 3H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h6v2H8v2h8v-2h-2v-2h6c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"}),"DesktopWindows");hn(Fe.jsx("path",{d:"M21 4H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h18c1.1 0 1.99-.9 1.99-2L23 6c0-1.1-.9-2-2-2m-2 14H5V6h14z"}),"Tablet");hn(Fe.jsx("path",{d:"M15.5 1h-8C6.12 1 5 2.12 5 3.5v17C5 21.88 6.12 23 7.5 23h8c1.38 0 2.5-1.12 2.5-2.5v-17C18 2.12 16.88 1 15.5 1m-4 21c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5m4.5-4H7V4h9z"}),"PhoneIphone");var YE;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(YE||(YE={}));const b8=Object.freeze({x:0,y:0});var Vs;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(Vs||(Vs={}));var GE;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(GE||(GE={}));var Bo;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"})(Bo||(Bo={}));Bo.Space,Bo.Enter,Bo.Esc,Bo.Space,Bo.Enter,Bo.Tab;var qE;(function(e){e[e.RightClick=2]="RightClick"})(qE||(qE={}));var XE;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(XE||(XE={}));var QE;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(QE||(QE={}));Vs.Backward+"",Vs.Forward+"",Vs.Backward+"",Vs.Forward+"";var Rg;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(Rg||(Rg={}));var Tg;(function(e){e.Optimized="optimized"})(Tg||(Tg={}));Rg.WhileDragging,Tg.Optimized;({...b8});var ZE;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(ZE||(ZE={}));const w8=e=>{if(!e)return!0;const t=`notification_shown_${e}`;return localStorage.getItem(t)?!1:(localStorage.setItem(t,"true"),!0)};ga(e=>({notifications:[],addNotificationData:t=>{t.singular&&!w8(t.singularId)||e(n=>({notifications:[...n.notifications,{...t,id:`${Date.now()*Math.random()}`}]}))},removeNotificationData:t=>{e(n=>({notifications:n.notifications.filter(r=>r.id!==`${t}`)}))},clearNotificationsByType:t=>{e(n=>({notifications:n.notifications.filter(r=>r.type!==t)}))}}));hn(Fe.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");hn(Fe.jsx("path",{d:"M8 5v14l11-7z"}),"PlayArrow");hn(Fe.jsx("path",{d:"M6 19h4V5H6zm8-14v14h4V5z"}),"Pause");class S8 extends Error{}class zo extends S8{constructor(){super("Zone is an abstract class")}}class $_{get type(){throw new zo}get name(){throw new zo}get ianaName(){return this.name}get isUniversal(){throw new zo}offsetName(t,n){throw new zo}formatOffset(t,n){throw new zo}offset(t){throw new zo}equals(t){throw new zo}get isValid(){throw new zo}}const Og=new Map;function E8(e){let t=Og.get(e);return t===void 0&&(t=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}),Og.set(e,t)),t}const x8={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function C8(e,t){const n=e.format(t).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,o,i,s,l,u,d,f]=r;return[s,o,i,l,u,d,f]}function D8(e,t){const n=e.formatToParts(t),r=[];for(let o=0;o<n.length;o++){const{type:i,value:s}=n[o],l=x8[i];i==="era"?r[l]=s:xf(l)||(r[l]=parseInt(s,10))}return r}const Bh=new Map;class _d extends $_{static create(t){let n=Bh.get(t);return n===void 0&&Bh.set(t,n=new _d(t)),n}static resetCache(){Bh.clear(),Og.clear()}static isValidSpecifier(t){return this.isValidZone(t)}static isValidZone(t){if(!t)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:t}).format(),!0}catch{return!1}}constructor(t){super(),this.zoneName=t,this.valid=_d.isValidZone(t)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(t,{format:n,locale:r}){return T8(t,n,r,this.name)}formatOffset(t,n){return $u(this.offset(t),n)}offset(t){if(!this.valid)return NaN;const n=new Date(t);if(isNaN(n))return NaN;const r=E8(this.name);let[o,i,s,l,u,d,f]=r.formatToParts?D8(r,n):C8(r,n);l==="BC"&&(o=-Math.abs(o)+1);const g=R8({year:o,month:i,day:s,hour:u===24?0:u,minute:d,second:f,millisecond:0});let b=+n;const m=b%1e3;return b-=m>=0?m:1e3+m,(g-b)/(60*1e3)}equals(t){return t.type==="iana"&&t.name===this.name}get isValid(){return this.valid}}let Vh=null;class Hs extends $_{static get utcInstance(){return Vh===null&&(Vh=new Hs(0)),Vh}static instance(t){return t===0?Hs.utcInstance:new Hs(t)}static parseSpecifier(t){if(t){const n=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new Hs(L_(n[1],n[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${$u(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${$u(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,n){return $u(this.fixed,n)}get isUniversal(){return!0}offset(){return this.fixed}equals(t){return t.type==="fixed"&&t.fixed===this.fixed}get isValid(){return!0}}function xf(e){return typeof e>"u"}function xu(e,t=2){const n=e<0;let r;return n?r="-"+(""+-e).padStart(t,"0"):r=(""+e).padStart(t,"0"),r}function z_(e){if(!(xf(e)||e===null||e===""))return parseInt(e,10)}function _8(e){if(!(xf(e)||e===null||e==="")){const t=parseFloat("0."+e)*1e3;return Math.floor(t)}}function R8(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t),t.setUTCFullYear(e.year,e.month-1,e.day)),+t}function T8(e,t,n,r=null){const o=new Date(e),i={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(i.timeZone=r);const s={timeZoneName:t,...i},l=new Intl.DateTimeFormat(n,s).formatToParts(o).find(u=>u.type.toLowerCase()==="timezonename");return l?l.value:null}function L_(e,t){let n=parseInt(e,10);Number.isNaN(n)&&(n=0);const r=parseInt(t,10)||0,o=n<0||Object.is(n,-0)?-r:r;return n*60+o}function $u(e,t){const n=Math.trunc(Math.abs(e/60)),r=Math.trunc(Math.abs(e%60)),o=e>=0?"+":"-";switch(t){case"short":return`${o}${xu(n,2)}:${xu(r,2)}`;case"narrow":return`${o}${n}${r>0?`:${r}`:""}`;case"techie":return`${o}${xu(n,2)}${xu(r,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}const B_=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function ya(...e){const t=e.reduce((n,r)=>n+r.source,"");return RegExp(`^${t}$`)}function va(...e){return t=>e.reduce(([n,r,o],i)=>{const[s,l,u]=i(t,o);return[{...n,...s},l||r,u]},[{},null,1]).slice(0,2)}function V_(...e){return(t,n)=>{const r={};let o;for(o=0;o<e.length;o++)r[e[o]]=z_(t[n+o]);return[r,null,n+o]}}const H_=/(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/,O8=`(?:${H_.source}?(?:\\[(${B_.source})\\])?)?`,F_=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,U_=RegExp(`${F_.source}${O8}`),ly=RegExp(`(?:[Tt]${U_.source})?`),A8=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,k8=/(\d{4})-?W(\d\d)(?:-?(\d))?/,M8=/(\d{4})-?(\d{3})/,P8=V_("weekYear","weekNumber","weekDay"),I8=V_("year","ordinal"),N8=/(\d{4})-(\d\d)-(\d\d)/,W_=RegExp(`${F_.source} ?(?:${H_.source}|(${B_.source}))?`),j8=RegExp(`(?: ${W_.source})?`);function Zs(e,t,n){const r=e[t];return xf(r)?n:z_(r)}function $8(e,t){return[{year:Zs(e,t),month:Zs(e,t+1,1),day:Zs(e,t+2,1)},null,t+3]}function ba(e,t){return[{hours:Zs(e,t,0),minutes:Zs(e,t+1,0),seconds:Zs(e,t+2,0),milliseconds:_8(e[t+3])},null,t+4]}function Ql(e,t){const n=!e[t]&&!e[t+1],r=L_(e[t+1],e[t+2]),o=n?null:Hs.instance(r);return[{},o,t+3]}function Zl(e,t){const n=e[t]?_d.create(e[t]):null;return[{},n,t+1]}ya(A8,ly);ya(k8,ly);ya(M8,ly);ya(U_);va($8,ba,Ql,Zl);va(P8,ba,Ql,Zl);va(I8,ba,Ql,Zl);va(ba,Ql,Zl);va(ba);ya(N8,j8);ya(W_);va(ba,Ql,Zl);const z8=pe.createContext(void 0),L8=(e,t)=>{console.warn(`ApiConfig not initialized. Cannot register endpoints for '${e}'. Make sure ApiConfigProvider is rendered.`)},B8=e=>{const t=pe.useContext(z8);if(t===void 0)throw new Error("useServiceApiConfig must be used within an ApiConfigProvider");return t.endpoints.get(e)},V8=({children:e,apiEndpoints:t})=>(pe.useEffect(()=>{L8("calendar")},[t]),Y.jsxs(Y.Fragment,{children:[Y.jsx(dD,{}),Y.jsx(fD,{}),e]})),H8=()=>B8("calendar");exports.Calendar=Mu;exports.CalendarEventAggregator=fD;exports.CalendarManager=dD;exports.CalendarMicroservice=V8;exports.createCalendarEvent=F4;exports.getContrastColor=Pm;exports.useCalendarApiConfig=H8;exports.useCalendarStore=Mm;
|