diff --git a/404.html b/404.html index 8531722..baef007 100644 --- a/404.html +++ b/404.html @@ -8,7 +8,7 @@ - + diff --git a/assets/index-BIpacZ-s.js b/assets/index-BIpacZ-s.js new file mode 100644 index 0000000..2c7f8a9 --- /dev/null +++ b/assets/index-BIpacZ-s.js @@ -0,0 +1,233 @@ +var sC=Object.defineProperty;var lC=(e,t,n)=>t in e?sC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Za=(e,t,n)=>lC(e,typeof t!="symbol"?t+"":t,n);function V0(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var Ci=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function fo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var W0={exports:{}},Fu={},U0={exports:{}},We={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Ml=Symbol.for("react.element"),cC=Symbol.for("react.portal"),uC=Symbol.for("react.fragment"),dC=Symbol.for("react.strict_mode"),fC=Symbol.for("react.profiler"),pC=Symbol.for("react.provider"),hC=Symbol.for("react.context"),mC=Symbol.for("react.forward_ref"),gC=Symbol.for("react.suspense"),yC=Symbol.for("react.memo"),vC=Symbol.for("react.lazy"),xg=Symbol.iterator;function xC(e){return e===null||typeof e!="object"?null:(e=xg&&e[xg]||e["@@iterator"],typeof e=="function"?e:null)}var H0={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Y0=Object.assign,K0={};function za(e,t,n){this.props=e,this.context=t,this.refs=K0,this.updater=n||H0}za.prototype.isReactComponent={};za.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};za.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function G0(){}G0.prototype=za.prototype;function ph(e,t,n){this.props=e,this.context=t,this.refs=K0,this.updater=n||H0}var hh=ph.prototype=new G0;hh.constructor=ph;Y0(hh,za.prototype);hh.isPureReactComponent=!0;var Sg=Array.isArray,Q0=Object.prototype.hasOwnProperty,mh={current:null},X0={key:!0,ref:!0,__self:!0,__source:!0};function q0(e,t,n){var r,o={},i=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)Q0.call(t,r)&&!X0.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1>>1,Y=D[V];if(0>>1;Vo(H,z))leo(ae,H)?(D[V]=ae,D[le]=z,V=le):(D[V]=H,D[X]=z,V=X);else if(leo(ae,z))D[V]=ae,D[le]=z,V=le;else break e}}return L}function o(D,L){var z=D.sortIndex-L.sortIndex;return z!==0?z:D.id-L.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],c=[],u=1,d=null,f=3,y=!1,g=!1,S=!1,C=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(D){for(var L=n(c);L!==null;){if(L.callback===null)r(c);else if(L.startTime<=D)r(c),L.sortIndex=L.expirationTime,t(l,L);else break;L=n(c)}}function b(D){if(S=!1,v(D),!g)if(n(l)!==null)g=!0,I(E);else{var L=n(c);L!==null&&N(b,L.startTime-D)}}function E(D,L){g=!1,S&&(S=!1,h(P),P=-1),y=!0;var z=f;try{for(v(L),d=n(l);d!==null&&(!(d.expirationTime>L)||D&&!R());){var V=d.callback;if(typeof V=="function"){d.callback=null,f=d.priorityLevel;var Y=V(d.expirationTime<=L);L=e.unstable_now(),typeof Y=="function"?d.callback=Y:d===n(l)&&r(l),v(L)}else r(l);d=n(l)}if(d!==null)var se=!0;else{var X=n(c);X!==null&&N(b,X.startTime-L),se=!1}return se}finally{d=null,f=z,y=!1}}var k=!1,M=null,P=-1,$=5,w=-1;function R(){return!(e.unstable_now()-w<$)}function A(){if(M!==null){var D=e.unstable_now();w=D;var L=!0;try{L=M(!0,D)}finally{L?j():(k=!1,M=null)}}else k=!1}var j;if(typeof m=="function")j=function(){m(A)};else if(typeof MessageChannel<"u"){var O=new MessageChannel,T=O.port2;O.port1.onmessage=A,j=function(){T.postMessage(null)}}else j=function(){C(A,0)};function I(D){M=D,k||(k=!0,j())}function N(D,L){P=C(function(){D(e.unstable_now())},L)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(D){D.callback=null},e.unstable_continueExecution=function(){g||y||(g=!0,I(E))},e.unstable_forceFrameRate=function(D){0>D||125V?(D.sortIndex=z,t(c,D),n(l)===null&&D===n(c)&&(S?(h(P),P=-1):S=!0,N(b,z-V))):(D.sortIndex=Y,t(l,D),g||y||(g=!0,I(E))),D},e.unstable_shouldYield=R,e.unstable_wrapCallback=function(D){var L=f;return function(){var z=f;f=L;try{return D.apply(this,arguments)}finally{f=z}}}})(nx);tx.exports=nx;var TC=tx.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var IC=p,Nn=TC;function he(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Gf=Object.prototype.hasOwnProperty,OC=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,wg={},Cg={};function $C(e){return Gf.call(Cg,e)?!0:Gf.call(wg,e)?!1:OC.test(e)?Cg[e]=!0:(wg[e]=!0,!1)}function AC(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function LC(e,t,n,r){if(t===null||typeof t>"u"||AC(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function pn(e,t,n,r,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var tn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){tn[e]=new pn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];tn[t]=new pn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){tn[e]=new pn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){tn[e]=new pn(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){tn[e]=new pn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){tn[e]=new pn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){tn[e]=new pn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){tn[e]=new pn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){tn[e]=new pn(e,5,!1,e.toLowerCase(),null,!1,!1)});var yh=/[\-:]([a-z])/g;function vh(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(yh,vh);tn[t]=new pn(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(yh,vh);tn[t]=new pn(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(yh,vh);tn[t]=new pn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){tn[e]=new pn(e,1,!1,e.toLowerCase(),null,!1,!1)});tn.xlinkHref=new pn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){tn[e]=new pn(e,1,!1,e.toLowerCase(),null,!0,!0)});function xh(e,t,n,r){var o=tn.hasOwnProperty(t)?tn[t]:null;(o!==null?o.type!==0:r||!(2s||o[a]!==i[s]){var l=` +`+o[a].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{nf=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ws(e):""}function jC(e){switch(e.tag){case 5:return ws(e.type);case 16:return ws("Lazy");case 13:return ws("Suspense");case 19:return ws("SuspenseList");case 0:case 2:case 15:return e=rf(e.type,!1),e;case 11:return e=rf(e.type.render,!1),e;case 1:return e=rf(e.type,!0),e;default:return""}}function Zf(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Ki:return"Fragment";case Yi:return"Portal";case Qf:return"Profiler";case Sh:return"StrictMode";case Xf:return"Suspense";case qf:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ix:return(e.displayName||"Context")+".Consumer";case ox:return(e._context.displayName||"Context")+".Provider";case bh:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case wh:return t=e.displayName||null,t!==null?t:Zf(e.type)||"Memo";case So:t=e._payload,e=e._init;try{return Zf(e(t))}catch{}}return null}function NC(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Zf(t);case 8:return t===Sh?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function jo(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function sx(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function FC(e){var t=sx(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){r=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ec(e){e._valueTracker||(e._valueTracker=FC(e))}function lx(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=sx(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Gc(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Jf(e,t){var n=t.checked;return kt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Eg(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=jo(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function cx(e,t){t=t.checked,t!=null&&xh(e,"checked",t,!1)}function ep(e,t){cx(e,t);var n=jo(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?tp(e,t.type,n):t.hasOwnProperty("defaultValue")&&tp(e,t.type,jo(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Pg(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function tp(e,t,n){(t!=="number"||Gc(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Cs=Array.isArray;function ia(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=tc.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Xs(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Is={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},BC=["Webkit","ms","Moz","O"];Object.keys(Is).forEach(function(e){BC.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Is[t]=Is[e]})});function px(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Is.hasOwnProperty(e)&&Is[e]?(""+t).trim():t+"px"}function hx(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=px(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var zC=kt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function op(e,t){if(t){if(zC[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(he(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(he(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(he(61))}if(t.style!=null&&typeof t.style!="object")throw Error(he(62))}}function ip(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ap=null;function Ch(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var sp=null,aa=null,sa=null;function Dg(e){if(e=Tl(e)){if(typeof sp!="function")throw Error(he(280));var t=e.stateNode;t&&(t=Wu(t),sp(e.stateNode,e.type,t))}}function mx(e){aa?sa?sa.push(e):sa=[e]:aa=e}function gx(){if(aa){var e=aa,t=sa;if(sa=aa=null,Dg(e),t)for(e=0;e>>=0,e===0?32:31-(qC(e)/ZC|0)|0}var nc=64,rc=4194304;function ks(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Zc(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=n&268435455;if(a!==0){var s=a&~o;s!==0?r=ks(s):(i&=a,i!==0&&(r=ks(i)))}else a=n&~o,a!==0?r=ks(a):i!==0&&(r=ks(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Rl(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-gr(t),e[t]=n}function nk(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=$s),Fg=" ",Bg=!1;function jx(e,t){switch(e){case"keyup":return Tk.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Nx(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Gi=!1;function Ok(e,t){switch(e){case"compositionend":return Nx(t);case"keypress":return t.which!==32?null:(Bg=!0,Fg);case"textInput":return e=t.data,e===Fg&&Bg?null:e;default:return null}}function $k(e,t){if(Gi)return e==="compositionend"||!Ih&&jx(e,t)?(e=Ax(),Ic=Rh=ko=null,Gi=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Wg(n)}}function _x(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?_x(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Vx(){for(var e=window,t=Gc();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Gc(e.document)}return t}function Oh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Vk(e){var t=Vx(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&_x(n.ownerDocument.documentElement,n)){if(r!==null&&Oh(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=Ug(n,i);var a=Ug(n,r);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Qi=null,pp=null,Ls=null,hp=!1;function Hg(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;hp||Qi==null||Qi!==Gc(r)||(r=Qi,"selectionStart"in r&&Oh(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ls&&nl(Ls,r)||(Ls=r,r=tu(pp,"onSelect"),0Zi||(e.current=Sp[Zi],Sp[Zi]=null,Zi--)}function ft(e,t){Zi++,Sp[Zi]=e.current,e.current=t}var No={},ln=_o(No),vn=_o(!1),pi=No;function Sa(e,t){var n=e.type.contextTypes;if(!n)return No;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function xn(e){return e=e.childContextTypes,e!=null}function ru(){mt(vn),mt(ln)}function Zg(e,t,n){if(ln.current!==No)throw Error(he(168));ft(ln,t),ft(vn,n)}function qx(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(he(108,NC(e)||"Unknown",o));return kt({},n,r)}function ou(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||No,pi=ln.current,ft(ln,e),ft(vn,vn.current),!0}function Jg(e,t,n){var r=e.stateNode;if(!r)throw Error(he(169));n?(e=qx(e,t,pi),r.__reactInternalMemoizedMergedChildContext=e,mt(vn),mt(ln),ft(ln,e)):mt(vn),ft(vn,n)}var qr=null,Uu=!1,vf=!1;function Zx(e){qr===null?qr=[e]:qr.push(e)}function eE(e){Uu=!0,Zx(e)}function Vo(){if(!vf&&qr!==null){vf=!0;var e=0,t=rt;try{var n=qr;for(rt=1;e>=a,o-=a,Zr=1<<32-gr(t)+o|n<P?($=M,M=null):$=M.sibling;var w=f(h,M,v[P],b);if(w===null){M===null&&(M=$);break}e&&M&&w.alternate===null&&t(h,M),m=i(w,m,P),k===null?E=w:k.sibling=w,k=w,M=$}if(P===v.length)return n(h,M),bt&&qo(h,P),E;if(M===null){for(;PP?($=M,M=null):$=M.sibling;var R=f(h,M,w.value,b);if(R===null){M===null&&(M=$);break}e&&M&&R.alternate===null&&t(h,M),m=i(R,m,P),k===null?E=R:k.sibling=R,k=R,M=$}if(w.done)return n(h,M),bt&&qo(h,P),E;if(M===null){for(;!w.done;P++,w=v.next())w=d(h,w.value,b),w!==null&&(m=i(w,m,P),k===null?E=w:k.sibling=w,k=w);return bt&&qo(h,P),E}for(M=r(h,M);!w.done;P++,w=v.next())w=y(M,h,P,w.value,b),w!==null&&(e&&w.alternate!==null&&M.delete(w.key===null?P:w.key),m=i(w,m,P),k===null?E=w:k.sibling=w,k=w);return e&&M.forEach(function(A){return t(h,A)}),bt&&qo(h,P),E}function C(h,m,v,b){if(typeof v=="object"&&v!==null&&v.type===Ki&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case Jl:e:{for(var E=v.key,k=m;k!==null;){if(k.key===E){if(E=v.type,E===Ki){if(k.tag===7){n(h,k.sibling),m=o(k,v.props.children),m.return=h,h=m;break e}}else if(k.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===So&&ny(E)===k.type){n(h,k.sibling),m=o(k,v.props),m.ref=os(h,k,v),m.return=h,h=m;break e}n(h,k);break}else t(h,k);k=k.sibling}v.type===Ki?(m=ci(v.props.children,h.mode,b,v.key),m.return=h,h=m):(b=Bc(v.type,v.key,v.props,null,h.mode,b),b.ref=os(h,m,v),b.return=h,h=b)}return a(h);case Yi:e:{for(k=v.key;m!==null;){if(m.key===k)if(m.tag===4&&m.stateNode.containerInfo===v.containerInfo&&m.stateNode.implementation===v.implementation){n(h,m.sibling),m=o(m,v.children||[]),m.return=h,h=m;break e}else{n(h,m);break}else t(h,m);m=m.sibling}m=Pf(v,h.mode,b),m.return=h,h=m}return a(h);case So:return k=v._init,C(h,m,k(v._payload),b)}if(Cs(v))return g(h,m,v,b);if(Ja(v))return S(h,m,v,b);uc(h,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,m!==null&&m.tag===6?(n(h,m.sibling),m=o(m,v),m.return=h,h=m):(n(h,m),m=Ef(v,h.mode,b),m.return=h,h=m),a(h)):n(h,m)}return C}var wa=nS(!0),rS=nS(!1),su=_o(null),lu=null,ta=null,jh=null;function Nh(){jh=ta=lu=null}function Fh(e){var t=su.current;mt(su),e._currentValue=t}function Cp(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function ca(e,t){lu=e,jh=ta=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(yn=!0),e.firstContext=null)}function nr(e){var t=e._currentValue;if(jh!==e)if(e={context:e,memoizedValue:t,next:null},ta===null){if(lu===null)throw Error(he(308));ta=e,lu.dependencies={lanes:0,firstContext:e}}else ta=ta.next=e;return t}var oi=null;function Bh(e){oi===null?oi=[e]:oi.push(e)}function oS(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Bh(t)):(n.next=o.next,o.next=n),t.interleaved=n,ao(e,r)}function ao(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var bo=!1;function zh(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function iS(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function eo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Oo(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Ge&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,ao(e,n)}return o=r.interleaved,o===null?(t.next=t,Bh(r)):(t.next=o.next,o.next=t),r.interleaved=t,ao(e,n)}function $c(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Eh(e,n)}}function ry(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=a:i=i.next=a,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function cu(e,t,n,r){var o=e.updateQueue;bo=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var l=s,c=l.next;l.next=null,a===null?i=c:a.next=c,a=l;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==a&&(s===null?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(i!==null){var d=o.baseState;a=0,u=c=l=null,s=i;do{var f=s.lane,y=s.eventTime;if((r&f)===f){u!==null&&(u=u.next={eventTime:y,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var g=e,S=s;switch(f=t,y=n,S.tag){case 1:if(g=S.payload,typeof g=="function"){d=g.call(y,d,f);break e}d=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=S.payload,f=typeof g=="function"?g.call(y,d,f):g,f==null)break e;d=kt({},d,f);break e;case 2:bo=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,f=o.effects,f===null?o.effects=[s]:f.push(s))}else y={eventTime:y,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(c=u=y,l=d):u=u.next=y,a|=f;if(s=s.next,s===null){if(s=o.shared.pending,s===null)break;f=s,s=f.next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}while(!0);if(u===null&&(l=d),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=u,t=o.shared.interleaved,t!==null){o=t;do a|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);gi|=a,e.lanes=a,e.memoizedState=d}}function oy(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Sf.transition;Sf.transition={};try{e(!1),t()}finally{rt=n,Sf.transition=r}}function wS(){return rr().memoizedState}function oE(e,t,n){var r=Ao(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},CS(e))kS(t,n);else if(n=oS(e,t,n,r),n!==null){var o=dn();yr(n,e,r,o),ES(n,t,r)}}function iE(e,t,n){var r=Ao(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(CS(e))kS(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,s=i(a,n);if(o.hasEagerState=!0,o.eagerState=s,vr(s,a)){var l=t.interleaved;l===null?(o.next=o,Bh(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=oS(e,t,o,r),n!==null&&(o=dn(),yr(n,e,r,o),ES(n,t,r))}}function CS(e){var t=e.alternate;return e===Ct||t!==null&&t===Ct}function kS(e,t){js=du=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ES(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Eh(e,n)}}var fu={readContext:nr,useCallback:rn,useContext:rn,useEffect:rn,useImperativeHandle:rn,useInsertionEffect:rn,useLayoutEffect:rn,useMemo:rn,useReducer:rn,useRef:rn,useState:rn,useDebugValue:rn,useDeferredValue:rn,useTransition:rn,useMutableSource:rn,useSyncExternalStore:rn,useId:rn,unstable_isNewReconciler:!1},aE={readContext:nr,useCallback:function(e,t){return Ir().memoizedState=[e,t===void 0?null:t],e},useContext:nr,useEffect:ay,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Lc(4194308,4,yS.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Lc(4194308,4,e,t)},useInsertionEffect:function(e,t){return Lc(4,2,e,t)},useMemo:function(e,t){var n=Ir();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ir();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=oE.bind(null,Ct,e),[r.memoizedState,e]},useRef:function(e){var t=Ir();return e={current:e},t.memoizedState=e},useState:iy,useDebugValue:Gh,useDeferredValue:function(e){return Ir().memoizedState=e},useTransition:function(){var e=iy(!1),t=e[0];return e=rE.bind(null,e[1]),Ir().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Ct,o=Ir();if(bt){if(n===void 0)throw Error(he(407));n=n()}else{if(n=t(),Gt===null)throw Error(he(349));mi&30||cS(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,ay(dS.bind(null,r,i,e),[e]),r.flags|=2048,ul(9,uS.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Ir(),t=Gt.identifierPrefix;if(bt){var n=Jr,r=Zr;n=(r&~(1<<32-gr(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ll++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[Lr]=t,e[il]=r,LS(e,t,!1,!1),t.stateNode=e;e:{switch(a=ip(n,r),n){case"dialog":ht("cancel",e),ht("close",e),o=r;break;case"iframe":case"object":case"embed":ht("load",e),o=r;break;case"video":case"audio":for(o=0;oEa&&(t.flags|=128,r=!0,is(i,!1),t.lanes=4194304)}else{if(!r)if(e=uu(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),is(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!bt)return on(t),null}else 2*Tt()-i.renderingStartTime>Ea&&n!==1073741824&&(t.flags|=128,r=!0,is(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(n=i.last,n!==null?n.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Tt(),t.sibling=null,n=wt.current,ft(wt,r?n&1|2:n&1),t):(on(t),null);case 22:case 23:return em(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Mn&1073741824&&(on(t),t.subtreeFlags&6&&(t.flags|=8192)):on(t),null;case 24:return null;case 25:return null}throw Error(he(156,t.tag))}function hE(e,t){switch(Ah(t),t.tag){case 1:return xn(t.type)&&ru(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ca(),mt(vn),mt(ln),Wh(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Vh(t),null;case 13:if(mt(wt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(he(340));ba()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return mt(wt),null;case 4:return Ca(),null;case 10:return Fh(t.type._context),null;case 22:case 23:return em(),null;case 24:return null;default:return null}}var fc=!1,sn=!1,mE=typeof WeakSet=="function"?WeakSet:Set,be=null;function na(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Dt(e,t,r)}else n.current=null}function Op(e,t,n){try{n()}catch(r){Dt(e,t,r)}}var yy=!1;function gE(e,t){if(mp=Jc,e=Vx(),Oh(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var a=0,s=-1,l=-1,c=0,u=0,d=e,f=null;t:for(;;){for(var y;d!==n||o!==0&&d.nodeType!==3||(s=a+o),d!==i||r!==0&&d.nodeType!==3||(l=a+r),d.nodeType===3&&(a+=d.nodeValue.length),(y=d.firstChild)!==null;)f=d,d=y;for(;;){if(d===e)break t;if(f===n&&++c===o&&(s=a),f===i&&++u===r&&(l=a),(y=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=y}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(gp={focusedElem:e,selectionRange:n},Jc=!1,be=t;be!==null;)if(t=be,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,be=e;else for(;be!==null;){t=be;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var S=g.memoizedProps,C=g.memoizedState,h=t.stateNode,m=h.getSnapshotBeforeUpdate(t.elementType===t.type?S:fr(t.type,S),C);h.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(he(163))}}catch(b){Dt(t,t.return,b)}if(e=t.sibling,e!==null){e.return=t.return,be=e;break}be=t.return}return g=yy,yy=!1,g}function Ns(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Op(t,n,i)}o=o.next}while(o!==r)}}function Ku(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function $p(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function FS(e){var t=e.alternate;t!==null&&(e.alternate=null,FS(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Lr],delete t[il],delete t[xp],delete t[Zk],delete t[Jk])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function BS(e){return e.tag===5||e.tag===3||e.tag===4}function vy(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||BS(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ap(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=nu));else if(r!==4&&(e=e.child,e!==null))for(Ap(e,t,n),e=e.sibling;e!==null;)Ap(e,t,n),e=e.sibling}function Lp(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Lp(e,t,n),e=e.sibling;e!==null;)Lp(e,t,n),e=e.sibling}var Zt=null,pr=!1;function yo(e,t,n){for(n=n.child;n!==null;)zS(e,t,n),n=n.sibling}function zS(e,t,n){if(Br&&typeof Br.onCommitFiberUnmount=="function")try{Br.onCommitFiberUnmount(Bu,n)}catch{}switch(n.tag){case 5:sn||na(n,t);case 6:var r=Zt,o=pr;Zt=null,yo(e,t,n),Zt=r,pr=o,Zt!==null&&(pr?(e=Zt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Zt.removeChild(n.stateNode));break;case 18:Zt!==null&&(pr?(e=Zt,n=n.stateNode,e.nodeType===8?yf(e.parentNode,n):e.nodeType===1&&yf(e,n),el(e)):yf(Zt,n.stateNode));break;case 4:r=Zt,o=pr,Zt=n.stateNode.containerInfo,pr=!0,yo(e,t,n),Zt=r,pr=o;break;case 0:case 11:case 14:case 15:if(!sn&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&Op(n,t,a),o=o.next}while(o!==r)}yo(e,t,n);break;case 1:if(!sn&&(na(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Dt(n,t,s)}yo(e,t,n);break;case 21:yo(e,t,n);break;case 22:n.mode&1?(sn=(r=sn)||n.memoizedState!==null,yo(e,t,n),sn=r):yo(e,t,n);break;default:yo(e,t,n)}}function xy(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new mE),t.forEach(function(r){var o=EE.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function ur(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=a),r&=~i}if(r=o,r=Tt()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*vE(r/1960))-r,10e?16:e,Eo===null)var r=!1;else{if(e=Eo,Eo=null,mu=0,Ge&6)throw Error(he(331));var o=Ge;for(Ge|=4,be=e.current;be!==null;){var i=be,a=i.child;if(be.flags&16){var s=i.deletions;if(s!==null){for(var l=0;lTt()-Zh?li(e,0):qh|=n),Sn(e,t)}function GS(e,t){t===0&&(e.mode&1?(t=rc,rc<<=1,!(rc&130023424)&&(rc=4194304)):t=1);var n=dn();e=ao(e,t),e!==null&&(Rl(e,t,n),Sn(e,n))}function kE(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),GS(e,n)}function EE(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(he(314))}r!==null&&r.delete(t),GS(e,n)}var QS;QS=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||vn.current)yn=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return yn=!1,fE(e,t,n);yn=!!(e.flags&131072)}else yn=!1,bt&&t.flags&1048576&&Jx(t,au,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;jc(e,t),e=t.pendingProps;var o=Sa(t,ln.current);ca(t,n),o=Hh(null,t,r,e,o,n);var i=Yh();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,xn(r)?(i=!0,ou(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,zh(t),o.updater=Yu,t.stateNode=o,o._reactInternals=t,Ep(t,r,e,n),t=Rp(null,t,r,!0,i,n)):(t.tag=0,bt&&i&&$h(t),un(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(jc(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=ME(r),e=fr(r,e),o){case 0:t=Mp(null,t,r,e,n);break e;case 1:t=hy(null,t,r,e,n);break e;case 11:t=fy(null,t,r,e,n);break e;case 14:t=py(null,t,r,fr(r.type,e),n);break e}throw Error(he(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:fr(r,o),Mp(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:fr(r,o),hy(e,t,r,o,n);case 3:e:{if(OS(t),e===null)throw Error(he(387));r=t.pendingProps,i=t.memoizedState,o=i.element,iS(e,t),cu(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=ka(Error(he(423)),t),t=my(e,t,r,n,o);break e}else if(r!==o){o=ka(Error(he(424)),t),t=my(e,t,r,n,o);break e}else for($n=Io(t.stateNode.containerInfo.firstChild),An=t,bt=!0,mr=null,n=rS(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ba(),r===o){t=so(e,t,n);break e}un(e,t,r,n)}t=t.child}return t;case 5:return aS(t),e===null&&wp(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,yp(r,o)?a=null:i!==null&&yp(r,i)&&(t.flags|=32),IS(e,t),un(e,t,a,n),t.child;case 6:return e===null&&wp(t),null;case 13:return $S(e,t,n);case 4:return _h(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=wa(t,null,r,n):un(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:fr(r,o),fy(e,t,r,o,n);case 7:return un(e,t,t.pendingProps,n),t.child;case 8:return un(e,t,t.pendingProps.children,n),t.child;case 12:return un(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,ft(su,r._currentValue),r._currentValue=a,i!==null)if(vr(i.value,a)){if(i.children===o.children&&!vn.current){t=so(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){a=i.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=eo(-1,n&-n),l.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),Cp(i.return,n,t),s.lanes|=n;break}l=l.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(he(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),Cp(a,n,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}un(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,ca(t,n),o=nr(o),r=r(o),t.flags|=1,un(e,t,r,n),t.child;case 14:return r=t.type,o=fr(r,t.pendingProps),o=fr(r.type,o),py(e,t,r,o,n);case 15:return DS(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:fr(r,o),jc(e,t),t.tag=1,xn(r)?(e=!0,ou(t)):e=!1,ca(t,n),PS(t,r,o),Ep(t,r,o,n),Rp(null,t,r,!0,e,n);case 19:return AS(e,t,n);case 22:return TS(e,t,n)}throw Error(he(156,t.tag))};function XS(e,t){return Cx(e,t)}function PE(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Zn(e,t,n,r){return new PE(e,t,n,r)}function nm(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ME(e){if(typeof e=="function")return nm(e)?1:0;if(e!=null){if(e=e.$$typeof,e===bh)return 11;if(e===wh)return 14}return 2}function Lo(e,t){var n=e.alternate;return n===null?(n=Zn(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Bc(e,t,n,r,o,i){var a=2;if(r=e,typeof e=="function")nm(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Ki:return ci(n.children,o,i,t);case Sh:a=8,o|=8;break;case Qf:return e=Zn(12,n,t,o|2),e.elementType=Qf,e.lanes=i,e;case Xf:return e=Zn(13,n,t,o),e.elementType=Xf,e.lanes=i,e;case qf:return e=Zn(19,n,t,o),e.elementType=qf,e.lanes=i,e;case ax:return Qu(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ox:a=10;break e;case ix:a=9;break e;case bh:a=11;break e;case wh:a=14;break e;case So:a=16,r=null;break e}throw Error(he(130,e==null?e:typeof e,""))}return t=Zn(a,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function ci(e,t,n,r){return e=Zn(7,e,r,t),e.lanes=n,e}function Qu(e,t,n,r){return e=Zn(22,e,r,t),e.elementType=ax,e.lanes=n,e.stateNode={isHidden:!1},e}function Ef(e,t,n){return e=Zn(6,e,null,t),e.lanes=n,e}function Pf(e,t,n){return t=Zn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function RE(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=af(0),this.expirationTimes=af(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=af(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function rm(e,t,n,r,o,i,a,s,l){return e=new RE(e,t,n,s,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Zn(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},zh(i),e}function DE(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(eb)}catch(e){console.error(e)}}eb(),ex.exports=_n;var ed=ex.exports;const Ps=fo(ed),AE=V0({__proto__:null,default:Ps},[ed]);var tb,My=ed;tb=My.createRoot,My.hydrateRoot;const LE="/timetrekah-frontend/logo.png",fl={black:"#000",white:"#fff"},ji={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Ni={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Fi={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Bi={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},zi={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},ss={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},jE={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"};function lo(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}const er="$$material";function _(){return _=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?Jt(Wa,--kn):0,Pa--,Ft===10&&(Pa=1,nd--),Ft}function Ln(){return Ft=kn2||hl(Ft)>3?"":" "}function JE(e,t){for(;--t&&Ln()&&!(Ft<48||Ft>102||Ft>57&&Ft<65||Ft>70&&Ft<97););return Ol(e,zc()+(t<6&&_r()==32&&Ln()==32))}function _p(e){for(;Ln();)switch(Ft){case e:return kn;case 34:case 39:e!==34&&e!==39&&_p(Ft);break;case 40:e===41&&_p(e);break;case 92:Ln();break}return kn}function eP(e,t){for(;Ln()&&e+Ft!==57;)if(e+Ft===84&&_r()===47)break;return"/*"+Ol(t,kn-1)+"*"+td(e===47?e:Ln())}function tP(e){for(;!hl(_r());)Ln();return Ol(e,kn)}function nP(e){return lb(Vc("",null,null,null,[""],e=sb(e),0,[0],e))}function Vc(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,f=0,y=0,g=0,S=1,C=1,h=1,m=0,v="",b=o,E=i,k=r,M=v;C;)switch(g=m,m=Ln()){case 40:if(g!=108&&Jt(M,d-1)==58){zp(M+=et(_c(m),"&","&\f"),"&\f")!=-1&&(h=-1);break}case 34:case 39:case 91:M+=_c(m);break;case 9:case 10:case 13:case 32:M+=ZE(g);break;case 92:M+=JE(zc()-1,7);continue;case 47:switch(_r()){case 42:case 47:mc(rP(eP(Ln(),zc()),t,n),l);break;default:M+="/"}break;case 123*S:s[c++]=Or(M)*h;case 125*S:case 59:case 0:switch(m){case 0:case 125:C=0;case 59+u:h==-1&&(M=et(M,/\f/g,"")),y>0&&Or(M)-d&&mc(y>32?Dy(M+";",r,n,d-1):Dy(et(M," ","")+";",r,n,d-2),l);break;case 59:M+=";";default:if(mc(k=Ry(M,t,n,c,u,o,s,v,b=[],E=[],d),i),m===123)if(u===0)Vc(M,t,k,k,b,i,d,s,E);else switch(f===99&&Jt(M,3)===110?100:f){case 100:case 108:case 109:case 115:Vc(e,k,k,r&&mc(Ry(e,k,k,0,0,o,s,v,o,b=[],d),E),o,E,d,s,r?b:E);break;default:Vc(M,k,k,k,[""],E,0,s,E)}}c=u=y=0,S=h=1,v=M="",d=a;break;case 58:d=1+Or(M),y=g;default:if(S<1){if(m==123)--S;else if(m==125&&S++==0&&qE()==125)continue}switch(M+=td(m),m*S){case 38:h=u>0?1:(M+="\f",-1);break;case 44:s[c++]=(Or(M)-1)*h,h=1;break;case 64:_r()===45&&(M+=_c(Ln())),f=_r(),u=d=Or(v=M+=tP(zc())),m++;break;case 45:g===45&&Or(M)==2&&(S=0)}}return i}function Ry(e,t,n,r,o,i,a,s,l,c,u){for(var d=o-1,f=o===0?i:[""],y=cm(f),g=0,S=0,C=0;g0?f[h]+" "+m:et(m,/&\f/g,f[h])))&&(l[C++]=v);return rd(e,t,n,o===0?sm:s,l,c,u)}function rP(e,t,n){return rd(e,t,n,rb,td(XE()),pl(e,2,-2),0)}function Dy(e,t,n,r){return rd(e,t,n,lm,pl(e,0,r),pl(e,r+1,-1),r)}function da(e,t){for(var n="",r=cm(e),o=0;o6)switch(Jt(e,t+1)){case 109:if(Jt(e,t+4)!==45)break;case 102:return et(e,/(.+:)(.+)-([^]+)/,"$1"+Je+"$2-$3$1"+vu+(Jt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~zp(e,"stretch")?cb(et(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Jt(e,t+1)!==115)break;case 6444:switch(Jt(e,Or(e)-3-(~zp(e,"!important")&&10))){case 107:return et(e,":",":"+Je)+e;case 101:return et(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Je+(Jt(e,14)===45?"inline-":"")+"box$3$1"+Je+"$2$3$1"+an+"$2box$3")+e}break;case 5936:switch(Jt(e,t+11)){case 114:return Je+e+an+et(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Je+e+an+et(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Je+e+an+et(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Je+e+an+e+e}return e}var fP=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case lm:t.return=cb(t.value,t.length);break;case ob:return da([ls(t,{value:et(t.value,"@","@"+Je)})],o);case sm:if(t.length)return QE(t.props,function(i){switch(GE(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return da([ls(t,{props:[et(i,/:(read-\w+)/,":"+vu+"$1")]})],o);case"::placeholder":return da([ls(t,{props:[et(i,/:(plac\w+)/,":"+Je+"input-$1")]}),ls(t,{props:[et(i,/:(plac\w+)/,":"+vu+"$1")]}),ls(t,{props:[et(i,/:(plac\w+)/,an+"input-$1")]})],o)}return""})}},pP=[fP],hP=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(S){var C=S.getAttribute("data-emotion");C.indexOf(" ")!==-1&&(document.head.appendChild(S),S.setAttribute("data-s",""))})}var o=t.stylisPlugins||pP,i={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(S){for(var C=S.getAttribute("data-emotion").split(" "),h=1;h=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 PP={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},MP=!1,RP=/[A-Z]|^ms/g,DP=/_EMO_([^_]+?)_([^]*?)_EMO_/g,gb=function(t){return t.charCodeAt(1)===45},Iy=function(t){return t!=null&&typeof t!="boolean"},Mf=nb(function(e){return gb(e)?e:e.replace(RP,"-$&").toLowerCase()}),Oy=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(DP,function(r,o,i){return $r={name:o,styles:i,next:$r},o})}return PP[t]!==1&&!gb(t)&&typeof n=="number"&&n!==0?n+"px":n},TP="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function ml(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 $r={name:o.name,styles:o.styles,next:$r},o.name;var i=n;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)$r={name:a.name,styles:a.styles,next:$r},a=a.next;var s=i.styles+";";return s}return IP(e,t,n)}case"function":{if(e!==void 0){var l=$r,c=n(e);return $r=l,ml(e,t,c)}break}}var u=n;if(t==null)return u;var d=t[u];return d!==void 0?d:u}function IP(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o96?LP:jP},jy=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(a){return t.__emotion_forwardProp(a)&&i(a)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},NP=!1,FP=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return hb(n,r,o),$P(function(){return mb(n,r,o)}),null},BP=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,a;n!==void 0&&(i=n.label,a=n.target);var s=jy(t,n,r),l=s||Ly(o),c=!l("as");return function(){var u=arguments,d=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&d.push("label:"+i+";"),u[0]==null||u[0].raw===void 0)d.push.apply(d,u);else{d.push(u[0][0]);for(var f=u.length,y=1;yt(YP(o)?n:o):t;return x.jsx(AP,{styles:r})}/** + * @mui/styled-engine v6.2.1 + * + * @license MIT + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */function kb(e,t){return Vp(e,t)}function KP(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const Ny=[];function Fy(e){return Ny[0]=e,hd(Ny)}function jr(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 Eb(e){if(p.isValidElement(e)||!jr(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Eb(e[n])}),t}function Qt(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return jr(e)&&jr(t)&&Object.keys(t).forEach(o=>{p.isValidElement(t[o])?r[o]=t[o]:jr(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&jr(e[o])?r[o]=Qt(e[o],t[o],n):n.clone?r[o]=jr(t[o])?Eb(t[o]):t[o]:r[o]=t[o]}),r}const GP=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 QP(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,i=GP(t),a=Object.keys(i);function s(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n})`}function l(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-r/100}${n})`}function c(f,y){const g=a.indexOf(y);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n}) and (max-width:${(g!==-1&&typeof t[a[g]]=="number"?t[a[g]]:y)-r/100}${n})`}function u(f){return a.indexOf(f)+1r.startsWith("@container")).sort((r,o)=>{var a,s;const i=/min-width:\s*([0-9.]+)/;return+(((a=r.match(i))==null?void 0:a[1])||0)-+(((s=o.match(i))==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 qP(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function ZP(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,o]=n,i=Number.isNaN(+r)?r||0:+r;return e.containerQueries(o).up(i)}function JP(e){const t=(i,a)=>i.replace("@media",a?`@container ${a}`:"@container");function n(i,a){i.up=(...s)=>t(e.breakpoints.up(...s),a),i.down=(...s)=>t(e.breakpoints.down(...s),a),i.between=(...s)=>t(e.breakpoints.between(...s),a),i.only=(...s)=>t(e.breakpoints.only(...s),a),i.not=(...s)=>{const l=t(e.breakpoints.not(...s),a);return l.includes("not all and")?l.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):l}}const r={},o=i=>(n(r,i),r);return n(o),{...e,containerQueries:o}}const eM={borderRadius:4};function zs(e,t){return t?Qt(e,t,{clone:!1}):e}const gd={xs:0,sm:600,md:900,lg:1200,xl:1536},By={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${gd[e]}px)`},tM={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:gd[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function xr(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||By;return t.reduce((a,s,l)=>(a[i.up(i.keys[l])]=n(t[l]),a),{})}if(typeof t=="object"){const i=r.breakpoints||By;return Object.keys(t).reduce((a,s)=>{if(qP(i.keys,s)){const l=ZP(r.containerQueries?r:tM,s);l&&(a[l]=n(t[s],s))}else if(Object.keys(i.values||gd).includes(s)){const l=i.up(s);a[l]=n(t[s],s)}else{const l=s;a[l]=t[l]}return a},{})}return n(t)}function Pb(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function Mb(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function nM(e,...t){const n=Pb(e),r=[n,...t].reduce((o,i)=>Qt(o,i),{});return Mb(Object.keys(n),r)}function rM(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((o,i)=>{i{e[o]!=null&&(n[o]=!0)}),n}function Rf({values:e,breakpoints:t,base:n}){const r=n||rM(e,t),o=Object.keys(r);if(o.length===0)return e;let i;return o.reduce((a,s,l)=>(Array.isArray(e)?(a[s]=e[l]!=null?e[l]:e[i],i=l):typeof e=="object"?(a[s]=e[s]!=null?e[s]:e[i],i=s):a[s]=e,a),{})}function ce(e){if(typeof e!="string")throw new Error(lo(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Ma(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 xu(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Ma(e,n)||r,t&&(o=t(o,r,e)),o}function $t(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=a=>{if(a[t]==null)return null;const s=a[t],l=a.theme,c=Ma(l,r)||{};return xr(a,s,d=>{let f=xu(c,o,d);return d===f&&typeof d=="string"&&(f=xu(c,o,`${t}${d==="default"?"":ce(d)}`,d)),n===!1?f:{[n]:f}})};return i.propTypes={},i.filterProps=[t],i}function oM(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const iM={m:"margin",p:"padding"},aM={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},zy={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},sM=oM(e=>{if(e.length>2)if(zy[e])e=zy[e];else return[e];const[t,n]=e.split(""),r=iM[t],o=aM[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),hm=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],mm=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...hm,...mm];function Al(e,t,n,r){const o=Ma(e,t,!0)??n;return typeof o=="number"||typeof o=="string"?i=>typeof i=="string"?i:typeof o=="string"?`calc(${i} * ${o})`:o*i:Array.isArray(o)?i=>{if(typeof i=="string")return i;const a=Math.abs(i),s=o[a];return i>=0?s:typeof s=="number"?-s:`-${s}`}:typeof o=="function"?o:()=>{}}function yd(e){return Al(e,"spacing",8)}function vi(e,t){return typeof t=="string"||t==null?t:e(t)}function lM(e,t){return n=>e.reduce((r,o)=>(r[o]=vi(t,n),r),{})}function cM(e,t,n,r){if(!t.includes(n))return null;const o=sM(n),i=lM(o,r),a=e[n];return xr(e,a,i)}function Rb(e,t){const n=yd(e.theme);return Object.keys(e).map(r=>cM(e,t,r,n)).reduce(zs,{})}function Mt(e){return Rb(e,hm)}Mt.propTypes={};Mt.filterProps=hm;function Rt(e){return Rb(e,mm)}Rt.propTypes={};Rt.filterProps=mm;function Db(e=8,t=yd({spacing:e})){if(e.mui)return e;const n=(...r)=>(r.length===0?[1]:r).map(i=>{const a=t(i);return typeof a=="number"?`${a}px`:a}).join(" ");return n.mui=!0,n}function vd(...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]?zs(o,t[i](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function qn(e){return typeof e!="number"?e:`${e}px solid`}function sr(e,t){return $t({prop:e,themeKey:"borders",transform:t})}const uM=sr("border",qn),dM=sr("borderTop",qn),fM=sr("borderRight",qn),pM=sr("borderBottom",qn),hM=sr("borderLeft",qn),mM=sr("borderColor"),gM=sr("borderTopColor"),yM=sr("borderRightColor"),vM=sr("borderBottomColor"),xM=sr("borderLeftColor"),SM=sr("outline",qn),bM=sr("outlineColor"),xd=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Al(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:vi(t,r)});return xr(e,e.borderRadius,n)}return null};xd.propTypes={};xd.filterProps=["borderRadius"];vd(uM,dM,fM,pM,hM,mM,gM,yM,vM,xM,xd,SM,bM);const Sd=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Al(e.theme,"spacing",8),n=r=>({gap:vi(t,r)});return xr(e,e.gap,n)}return null};Sd.propTypes={};Sd.filterProps=["gap"];const bd=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Al(e.theme,"spacing",8),n=r=>({columnGap:vi(t,r)});return xr(e,e.columnGap,n)}return null};bd.propTypes={};bd.filterProps=["columnGap"];const wd=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Al(e.theme,"spacing",8),n=r=>({rowGap:vi(t,r)});return xr(e,e.rowGap,n)}return null};wd.propTypes={};wd.filterProps=["rowGap"];const wM=$t({prop:"gridColumn"}),CM=$t({prop:"gridRow"}),kM=$t({prop:"gridAutoFlow"}),EM=$t({prop:"gridAutoColumns"}),PM=$t({prop:"gridAutoRows"}),MM=$t({prop:"gridTemplateColumns"}),RM=$t({prop:"gridTemplateRows"}),DM=$t({prop:"gridTemplateAreas"}),TM=$t({prop:"gridArea"});vd(Sd,bd,wd,wM,CM,kM,EM,PM,MM,RM,DM,TM);function fa(e,t){return t==="grey"?t:e}const IM=$t({prop:"color",themeKey:"palette",transform:fa}),OM=$t({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:fa}),$M=$t({prop:"backgroundColor",themeKey:"palette",transform:fa});vd(IM,OM,$M);function Tn(e){return e<=1&&e!==0?`${e*100}%`:e}const AM=$t({prop:"width",transform:Tn}),gm=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var o,i,a,s,l;const r=((a=(i=(o=e.theme)==null?void 0:o.breakpoints)==null?void 0:i.values)==null?void 0:a[n])||gd[n];return r?((l=(s=e.theme)==null?void 0:s.breakpoints)==null?void 0:l.unit)!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:Tn(n)}};return xr(e,e.maxWidth,t)}return null};gm.filterProps=["maxWidth"];const LM=$t({prop:"minWidth",transform:Tn}),jM=$t({prop:"height",transform:Tn}),NM=$t({prop:"maxHeight",transform:Tn}),FM=$t({prop:"minHeight",transform:Tn});$t({prop:"size",cssProperty:"width",transform:Tn});$t({prop:"size",cssProperty:"height",transform:Tn});const BM=$t({prop:"boxSizing"});vd(AM,gm,LM,jM,NM,FM,BM);const Ll={border:{themeKey:"borders",transform:qn},borderTop:{themeKey:"borders",transform:qn},borderRight:{themeKey:"borders",transform:qn},borderBottom:{themeKey:"borders",transform:qn},borderLeft:{themeKey:"borders",transform:qn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:qn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:xd},color:{themeKey:"palette",transform:fa},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:fa},backgroundColor:{themeKey:"palette",transform:fa},p:{style:Rt},pt:{style:Rt},pr:{style:Rt},pb:{style:Rt},pl:{style:Rt},px:{style:Rt},py:{style:Rt},padding:{style:Rt},paddingTop:{style:Rt},paddingRight:{style:Rt},paddingBottom:{style:Rt},paddingLeft:{style:Rt},paddingX:{style:Rt},paddingY:{style:Rt},paddingInline:{style:Rt},paddingInlineStart:{style:Rt},paddingInlineEnd:{style:Rt},paddingBlock:{style:Rt},paddingBlockStart:{style:Rt},paddingBlockEnd:{style:Rt},m:{style:Mt},mt:{style:Mt},mr:{style:Mt},mb:{style:Mt},ml:{style:Mt},mx:{style:Mt},my:{style:Mt},margin:{style:Mt},marginTop:{style:Mt},marginRight:{style:Mt},marginBottom:{style:Mt},marginLeft:{style:Mt},marginX:{style:Mt},marginY:{style:Mt},marginInline:{style:Mt},marginInlineStart:{style:Mt},marginInlineEnd:{style:Mt},marginBlock:{style:Mt},marginBlockStart:{style:Mt},marginBlockEnd:{style:Mt},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:Sd},rowGap:{style:wd},columnGap:{style:bd},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Tn},maxWidth:{style:gm},minWidth:{transform:Tn},height:{transform:Tn},maxHeight:{transform:Tn},minHeight:{transform:Tn},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 zM(...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 _M(e,t){return typeof e=="function"?e(t):e}function VM(){function e(n,r,o,i){const a={[n]:r,theme:o},s=i[n];if(!s)return{[n]:r};const{cssProperty:l=n,themeKey:c,transform:u,style:d}=s;if(r==null)return null;if(c==="typography"&&r==="inherit")return{[n]:r};const f=Ma(o,c)||{};return d?d(a):xr(a,r,g=>{let S=xu(f,u,g);return g===S&&typeof g=="string"&&(S=xu(f,u,`${n}${g==="default"?"":ce(g)}`,g)),l===!1?S:{[l]:S}})}function t(n){const{sx:r,theme:o={}}=n||{};if(!r)return null;const i=o.unstable_sxConfig??Ll;function a(s){let l=s;if(typeof s=="function")l=s(o);else if(typeof s!="object")return s;if(!l)return null;const c=Pb(o.breakpoints),u=Object.keys(c);let d=c;return Object.keys(l).forEach(f=>{const y=_M(l[f],o);if(y!=null)if(typeof y=="object")if(i[f])d=zs(d,e(f,y,o,i));else{const g=xr({theme:o},y,S=>({[f]:S}));zM(g,y)?d[f]=t({sx:y,theme:o}):d=zs(d,g)}else d=zs(d,e(f,y,o,i))}),XP(o,Mb(u,d))}return Array.isArray(r)?r.map(a):a(r)}return t}const Fo=VM();Fo.filterProps=["sx"];function WM(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 Ua(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={},...a}=e,s=QP(n),l=Db(o);let c=Qt({breakpoints:s,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:l,shape:{...eM,...i}},a);return c=JP(c),c.applyStyles=WM,c=t.reduce((u,d)=>Qt(u,d),c),c.unstable_sxConfig={...Ll,...a==null?void 0:a.unstable_sxConfig},c.unstable_sx=function(d){return Fo({sx:d,theme:this})},c}function UM(e){return Object.keys(e).length===0}function ym(e=null){const t=p.useContext(md);return!t||UM(t)?e:t}const HM=Ua();function jl(e=HM){return ym(e)}function YM({styles:e,themeId:t,defaultTheme:n={}}){const r=jl(n),o=typeof e=="function"?e(t&&r[t]||r):e;return x.jsx(Cb,{styles:o})}const KM=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 Cd(e){const{sx:t,...n}=e,{systemProps:r,otherProps:o}=KM(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...a)=>{const s=t(...a);return jr(s)?{...r,...s}:r}:i={...r,...t},{...o,sx:i}}const _y=e=>e,GM=()=>{let e=_y;return{configure(t){e=t},generate(t){return e(t)},reset(){e=_y}}},Tb=GM();function Ib(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;ts!=="theme"&&s!=="sx"&&s!=="as"})(Fo);return p.forwardRef(function(l,c){const u=jl(n),{className:d,component:f="div",...y}=Cd(l);return x.jsx(i,{as:f,ref:c,className:pe(d,o?o(r):r),theme:t&&u[t]||u,...y})})}const XM={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 ge(e,t,n="Mui"){const r=XM[t];return r?`${n}-${r}`:`${Tb.generate(e)}-${t}`}function me(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=ge(e,o,n)}),r}function Ob(e){const{variants:t,...n}=e,r={variants:t,style:Fy(n),isProcessed:!0};return r.style===n||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=Fy(o.style))}),r}const qM=Ua();function Wc(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function ZM(e){return e?(t,n)=>n[e]:null}function JM(e,t,n){e.theme=tR(e.theme)?n:e.theme[t]||e.theme}function Uc(e,t){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(r=>Uc(e,r));if(Array.isArray(n==null?void 0:n.variants)){let r;if(n.isProcessed)r=n.style;else{const{variants:o,...i}=n;r=i}return $b(e,n.variants,[r])}return n!=null&&n.isProcessed?n.style:n}function $b(e,t,n=[]){var o;let r;e:for(let i=0;i{KP(s,E=>E.filter(k=>k!==Fo));const{name:c,slot:u,skipVariantsResolver:d,skipSx:f,overridesResolver:y=ZM(rR(u)),...g}=l,S=d!==void 0?d:u&&u!=="Root"&&u!=="root"||!1,C=f||!1;let h=Wc;u==="Root"||u==="root"?h=r:u?h=o:nR(s)&&(h=void 0);const m=kb(s,{shouldForwardProp:h,label:eR(),...g}),v=E=>{if(typeof E=="function"&&E.__emotion_real!==E)return function(M){return Uc(M,E)};if(jr(E)){const k=Ob(E);return k.variants?function(P){return Uc(P,k)}:k.style}return E},b=(...E)=>{const k=[],M=E.map(v),P=[];if(k.push(i),c&&y&&P.push(function(A){var I,N;const O=(N=(I=A.theme.components)==null?void 0:I[c])==null?void 0:N.styleOverrides;if(!O)return null;const T={};for(const D in O)T[D]=Uc(A,O[D]);return y(A,T)}),c&&!S&&P.push(function(A){var T,I;const j=A.theme,O=(I=(T=j==null?void 0:j.components)==null?void 0:T[c])==null?void 0:I.variants;return O?$b(A,O):null}),C||P.push(Fo),Array.isArray(M[0])){const R=M.shift(),A=new Array(k.length).fill(""),j=new Array(P.length).fill("");let O;O=[...A,...R,...j],O.raw=[...A,...R.raw,...j],k.unshift(O)}const $=[...k,...M,...P],w=m(...$);return s.muiName&&(w.muiName=s.muiName),w};return m.withConfig&&(b.withConfig=m.withConfig),b}}function eR(e,t){return void 0}function tR(e){for(const t in e)return!1;return!0}function nR(e){return typeof e=="string"&&e.charCodeAt(0)>96}function rR(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const vm=Ab();function gl(e,t){const n={...t};for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){const o=r;if(o==="components"||o==="slots")n[o]={...e[o],...n[o]};else if(o==="componentsProps"||o==="slotProps"){const i=e[o],a=t[o];if(!a)n[o]=i||{};else if(!i)n[o]=a;else{n[o]={...a};for(const s in i)if(Object.prototype.hasOwnProperty.call(i,s)){const l=s;n[o][l]=gl(i[l],a[l])}}}else n[o]===void 0&&(n[o]=e[o])}return n}function Lb(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:gl(t.components[n].defaultProps,r)}function kd({props:e,name:t,defaultTheme:n,themeId:r}){let o=jl(n);return r&&(o=o[r]||o),Lb({theme:o,name:t,props:e})}const Ut=typeof window<"u"?p.useLayoutEffect:p.useEffect;function oR(e,t,n,r,o){const[i,a]=p.useState(()=>o&&n?n(e).matches:r?r(e).matches:t);return Ut(()=>{if(!n)return;const s=n(e),l=()=>{a(s.matches)};return l(),s.addEventListener("change",l),()=>{s.removeEventListener("change",l)}},[e,n]),i}const iR={...Gs},jb=iR.useSyncExternalStore;function aR(e,t,n,r,o){const i=p.useCallback(()=>t,[t]),a=p.useMemo(()=>{if(o&&n)return()=>n(e).matches;if(r!==null){const{matches:u}=r(e);return()=>u}return i},[i,e,r,o,n]),[s,l]=p.useMemo(()=>{if(n===null)return[i,()=>()=>{}];const u=n(e);return[()=>u.matches,d=>(u.addEventListener("change",d),()=>{u.removeEventListener("change",d)})]},[i,n,e]);return jb(l,s,a)}function sR(e={}){const{themeId:t}=e;return function(r,o={}){let i=ym();i&&t&&(i=i[t]||i);const a=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:s=!1,matchMedia:l=a?window.matchMedia:null,ssrMatchMedia:c=null,noSsr:u=!1}=Lb({name:"MuiUseMediaQuery",props:o,theme:i});let d=typeof r=="function"?r(i):r;return d=d.replace(/^@media( ?)/m,""),(jb!==void 0?aR:oR)(d,s,l,c,u)}}function lR(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function xm(e,t=0,n=1){return lR(e,t,n)}function cR(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)),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 Bo(e){if(e.type)return e;if(e.charAt(0)==="#")return Bo(cR(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(lo(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(lo(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const uR=e=>{const t=Bo(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},Ms=(e,t)=>{try{return uR(e)}catch{return e}};function Ed(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 Nb(e){e=Bo(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(c,u=(c+n/30)%12)=>o-i*Math.max(Math.min(u-3,9-u,1),-1);let s="rgb";const l=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(s+="a",l.push(t[3])),Ed({type:s,values:l})}function Wp(e){e=Bo(e);let t=e.type==="hsl"||e.type==="hsla"?Bo(Nb(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 dR(e,t){const n=Wp(e),r=Wp(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function ze(e,t){return e=Bo(e),t=xm(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Ed(e)}function gc(e,t,n){try{return ze(e,t)}catch{return e}}function Ra(e,t){if(e=Bo(e),t=xm(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 Ed(e)}function lt(e,t,n){try{return Ra(e,t)}catch{return e}}function Da(e,t){if(e=Bo(e),t=xm(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 Ed(e)}function ct(e,t,n){try{return Da(e,t)}catch{return e}}function Fb(e,t=.15){return Wp(e)>.5?Ra(e,t):Da(e,t)}function yc(e,t,n){try{return Fb(e,t)}catch{return e}}const Bb=J.oneOfType([J.func,J.object]);function Vy(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function Sm(e,t=166){let n;function r(...o){const i=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(i,t)}return r.clear=()=>{clearTimeout(n)},r}function _s(e,t){var n,r,o;return p.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 Wt(e){return e&&e.ownerDocument||document}function Sr(e){return Wt(e).defaultView||window}function Up(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let Wy=0;function fR(e){const[t,n]=p.useState(e),r=e||t;return p.useEffect(()=>{t==null&&(Wy+=1,n(`mui-${Wy}`))},[t]),r}const pR={...Gs},Uy=pR.useId;function Wo(e){if(Uy!==void 0){const t=Uy();return e??t}return fR(e)}function co({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=p.useRef(e!==void 0),[i,a]=p.useState(t),s=o?e:i,l=p.useCallback(c=>{o||a(c)},[]);return[s,l]}function Se(e){const t=p.useRef(e);return Ut(()=>{t.current=e}),p.useRef((...n)=>(0,t.current)(...n)).current}function Ye(...e){return p.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{Up(n,t)})},e)}const Hy={};function zb(e,t){const n=p.useRef(Hy);return n.current===Hy&&(n.current=e(t)),n}const hR=[];function mR(e){p.useEffect(e,hR)}class bm{constructor(){Za(this,"currentId",null);Za(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});Za(this,"disposeEffect",()=>this.clear)}static create(){return new bm}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function wm(){const e=zb(bm.create).current;return mR(e.disposeEffect),e}function Su(e){try{return e.matches(":focus-visible")}catch{}return!1}function _b(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}const gR={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function ye(e,t,n=void 0){const r={};for(const o in e){const i=e[o];let a="",s=!0;for(let l=0;lr.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function Yy(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 Wb(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const y=pe(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),g={...n==null?void 0:n.style,...o==null?void 0:o.style,...r==null?void 0:r.style},S={...n,...o,...r};return y.length>0&&(S.className=y),Object.keys(g).length>0&&(S.style=g),{props:S,internalRef:void 0}}const a=bu({...o,...r}),s=Yy(r),l=Yy(o),c=t(a),u=pe(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),d={...c==null?void 0:c.style,...n==null?void 0:n.style,...o==null?void 0:o.style,...r==null?void 0:r.style},f={...c,...n,...l,...s};return u.length>0&&(f.className=u),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:c.ref}}function Pd(e,t,n){return typeof e=="function"?e(t,n):e}function Qe(e){var d;const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:o=!1,...i}=e,a=o?{}:Pd(n,r),{props:s,internalRef:l}=Wb({...i,externalSlotProps:a}),c=Ye(l,a==null?void 0:a.ref,(d=e.additionalProps)==null?void 0:d.ref);return Vb(t,{...s,ref:c},r)}function Pi(e){var t;return parseInt(p.version,10)>=19?((t=e==null?void 0:e.props)==null?void 0:t.ref)||null:(e==null?void 0:e.ref)||null}const Ub=p.createContext(null);function Cm(){return p.useContext(Ub)}const vR=typeof Symbol=="function"&&Symbol.for,xR=vR?Symbol.for("mui.nested"):"__THEME_NESTED__";function SR(e,t){return typeof t=="function"?t(e):{...e,...t}}function bR(e){const{children:t,theme:n}=e,r=Cm(),o=p.useMemo(()=>{const i=r===null?{...n}:SR(r,n);return i!=null&&(i[xR]=r!==null),i},[n,r]);return x.jsx(Ub.Provider,{value:o,children:t})}const Hb=p.createContext();function wR({value:e,...t}){return x.jsx(Hb.Provider,{value:e??!0,...t})}const lr=()=>p.useContext(Hb)??!1,Yb=p.createContext(void 0);function CR({value:e,children:t}){return x.jsx(Yb.Provider,{value:e,children:t})}function kR(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?gl(o.defaultProps,r):!o.styleOverrides&&!o.variants?gl(o,r):r}function ER({props:e,name:t}){const n=p.useContext(Yb);return kR({props:e,name:t,theme:{components:n}})}const Ky={};function Gy(e,t,n,r=!1){return p.useMemo(()=>{const o=e&&t[e]||t;if(typeof n=="function"){const i=n(o),a=e?{...t,[e]:i}:i;return r?()=>a:a}return e?{...t,[e]:n}:{...t,...n}},[e,t,n,r])}function Kb(e){const{children:t,theme:n,themeId:r}=e,o=ym(Ky),i=Cm()||Ky,a=Gy(r,o,n),s=Gy(r,i,n,!0),l=(r?a[r]:a).direction==="rtl";return x.jsx(bR,{theme:s,children:x.jsx(md.Provider,{value:a,children:x.jsx(wR,{value:l,children:x.jsx(CR,{value:r?a[r].components:a.components,children:t})})})})}const Qy={theme:void 0};function PR(e){let t,n;return function(o){let i=t;return(i===void 0||o.theme!==n)&&(Qy.theme=o.theme,i=Ob(e(Qy)),t=i,n=o.theme),i}}const km="mode",Em="color-scheme",MR="data-color-scheme";function RR(e){const{defaultMode:t="system",defaultLightColorScheme:n="light",defaultDarkColorScheme:r="dark",modeStorageKey:o=km,colorSchemeStorageKey:i=Em,attribute:a=MR,colorSchemeNode:s="document.documentElement",nonce:l}=e||{};let c="",u=a;if(a==="class"&&(u=".%s"),a==="data"&&(u="[data-%s]"),u.startsWith(".")){const f=u.substring(1);c+=`${s}.classList.remove('${f}'.replace('%s', light), '${f}'.replace('%s', dark)); + ${s}.classList.add('${f}'.replace('%s', colorScheme));`}const d=u.match(/\[([^\]]+)\]/);if(d){const[f,y]=d[1].split("=");y||(c+=`${s}.removeAttribute('${f}'.replace('%s', light)); + ${s}.removeAttribute('${f}'.replace('%s', dark));`),c+=` + ${s}.setAttribute('${f}'.replace('%s', colorScheme), ${y?`${y}.replace('%s', colorScheme)`:'""'});`}else c+=`${s}.setAttribute('${u}', colorScheme);`;return x.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?l:"",dangerouslySetInnerHTML:{__html:`(function() { +try { + let colorScheme = ''; + const mode = localStorage.getItem('${o}') || '${t}'; + const dark = localStorage.getItem('${i}-dark') || '${r}'; + const light = localStorage.getItem('${i}-light') || '${n}'; + if (mode === 'system') { + // handle system mode + const mql = window.matchMedia('(prefers-color-scheme: dark)'); + if (mql.matches) { + colorScheme = dark + } else { + colorScheme = light + } + } + if (mode === 'light') { + colorScheme = light; + } + if (mode === 'dark') { + colorScheme = dark; + } + if (colorScheme) { + ${c} + } +} catch(e){}})();`}},"mui-color-scheme-init")}function Xy(e){if(typeof window<"u"&&typeof window.matchMedia=="function"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function Gb(e,t){if(e.mode==="light"||e.mode==="system"&&e.systemMode==="light")return t("light");if(e.mode==="dark"||e.mode==="system"&&e.systemMode==="dark")return t("dark")}function DR(e){return Gb(e,t=>{if(t==="light")return e.lightColorScheme;if(t==="dark")return e.darkColorScheme})}function Df(e,t){if(typeof window>"u")return;let n;try{n=localStorage.getItem(e)||void 0,n||localStorage.setItem(e,t)}catch{}return n||t}function TR(e){const{defaultMode:t="light",defaultLightColorScheme:n,defaultDarkColorScheme:r,supportedColorSchemes:o=[],modeStorageKey:i=km,colorSchemeStorageKey:a=Em,storageWindow:s=typeof window>"u"?void 0:window,noSsr:l=!1}=e,c=o.join(","),u=o.length>1,[d,f]=p.useState(()=>{const b=Df(i,t),E=Df(`${a}-light`,n),k=Df(`${a}-dark`,r);return{mode:b,systemMode:Xy(b),lightColorScheme:E,darkColorScheme:k}}),[y,g]=p.useState(l||!u);p.useEffect(()=>{g(!0)},[]);const S=DR(d),C=p.useCallback(b=>{f(E=>{if(b===E.mode)return E;const k=b??t;try{localStorage.setItem(i,k)}catch{}return{...E,mode:k,systemMode:Xy(k)}})},[i,t]),h=p.useCallback(b=>{b?typeof b=="string"?b&&!c.includes(b)?console.error(`\`${b}\` does not exist in \`theme.colorSchemes\`.`):f(E=>{const k={...E};return Gb(E,M=>{try{localStorage.setItem(`${a}-${M}`,b)}catch{}M==="light"&&(k.lightColorScheme=b),M==="dark"&&(k.darkColorScheme=b)}),k}):f(E=>{const k={...E},M=b.light===null?n:b.light,P=b.dark===null?r:b.dark;if(M)if(!c.includes(M))console.error(`\`${M}\` does not exist in \`theme.colorSchemes\`.`);else{k.lightColorScheme=M;try{localStorage.setItem(`${a}-light`,M)}catch{}}if(P)if(!c.includes(P))console.error(`\`${P}\` does not exist in \`theme.colorSchemes\`.`);else{k.darkColorScheme=P;try{localStorage.setItem(`${a}-dark`,P)}catch{}}return k}):f(E=>{try{localStorage.setItem(`${a}-light`,n),localStorage.setItem(`${a}-dark`,r)}catch{}return{...E,lightColorScheme:n,darkColorScheme:r}})},[c,a,n,r]),m=p.useCallback(b=>{d.mode==="system"&&f(E=>{const k=b!=null&&b.matches?"dark":"light";return E.systemMode===k?E:{...E,systemMode:k}})},[d.mode]),v=p.useRef(m);return v.current=m,p.useEffect(()=>{if(typeof window.matchMedia!="function"||!u)return;const b=(...k)=>v.current(...k),E=window.matchMedia("(prefers-color-scheme: dark)");return E.addListener(b),b(E),()=>{E.removeListener(b)}},[u]),p.useEffect(()=>{if(s&&u){const b=E=>{const k=E.newValue;typeof E.key=="string"&&E.key.startsWith(a)&&(!k||c.match(k))&&(E.key.endsWith("light")&&h({light:k}),E.key.endsWith("dark")&&h({dark:k})),E.key===i&&(!k||["light","dark","system"].includes(k))&&C(k||t)};return s.addEventListener("storage",b),()=>{s.removeEventListener("storage",b)}}},[h,C,i,a,c,t,s,u]),{...d,mode:y?d.mode:void 0,systemMode:y?d.systemMode:void 0,colorScheme:y?S:void 0,setMode:C,setColorScheme:h}}const IR="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function OR(e){const{themeId:t,theme:n={},modeStorageKey:r=km,colorSchemeStorageKey:o=Em,disableTransitionOnChange:i=!1,defaultColorScheme:a,resolveTheme:s}=e,l={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},c=p.createContext(void 0),u=()=>p.useContext(c)||l,d={},f={};function y(h){var tt,Pe,_e,ut;const{children:m,theme:v,modeStorageKey:b=r,colorSchemeStorageKey:E=o,disableTransitionOnChange:k=i,storageWindow:M=typeof window>"u"?void 0:window,documentNode:P=typeof document>"u"?void 0:document,colorSchemeNode:$=typeof document>"u"?void 0:document.documentElement,disableNestedContext:w=!1,disableStyleSheetGeneration:R=!1,defaultMode:A="system",noSsr:j}=h,O=p.useRef(!1),T=Cm(),I=p.useContext(c),N=!!I&&!w,D=p.useMemo(()=>v||(typeof n=="function"?n():n),[v]),L=D[t],z=L||D,{colorSchemes:V=d,components:Y=f,cssVarPrefix:se}=z,X=Object.keys(V).filter(je=>!!V[je]).join(","),H=p.useMemo(()=>X.split(","),[X]),le=typeof a=="string"?a:a.light,ae=typeof a=="string"?a:a.dark,te=V[le]&&V[ae]?A:((Pe=(tt=V[z.defaultColorScheme])==null?void 0:tt.palette)==null?void 0:Pe.mode)||((_e=z.palette)==null?void 0:_e.mode),{mode:Z,setMode:re,systemMode:ie,lightColorScheme:W,darkColorScheme:F,colorScheme:K,setColorScheme:Q}=TR({supportedColorSchemes:H,defaultLightColorScheme:le,defaultDarkColorScheme:ae,modeStorageKey:b,colorSchemeStorageKey:E,defaultMode:te,storageWindow:M,noSsr:j});let ne=Z,ue=K;N&&(ne=I.mode,ue=I.colorScheme);const ee=p.useMemo(()=>{var At;const je=ue||z.defaultColorScheme,Oe=((At=z.generateThemeVars)==null?void 0:At.call(z))||z.vars,pt={...z,components:Y,colorSchemes:V,cssVarPrefix:se,vars:Oe};if(typeof pt.generateSpacing=="function"&&(pt.spacing=pt.generateSpacing()),je){const Ne=V[je];Ne&&typeof Ne=="object"&&Object.keys(Ne).forEach(st=>{Ne[st]&&typeof Ne[st]=="object"?pt[st]={...pt[st],...Ne[st]}:pt[st]=Ne[st]})}return s?s(pt):pt},[z,ue,Y,V,se]),fe=z.colorSchemeSelector;p.useEffect(()=>{if(ue&&$&&fe&&fe!=="media"){const je=fe;let Oe=fe;if(je==="class"&&(Oe=".%s"),je==="data"&&(Oe="[data-%s]"),je!=null&&je.startsWith("data-")&&!je.includes("%s")&&(Oe=`[${je}="%s"]`),Oe.startsWith("."))$.classList.remove(...H.map(pt=>Oe.substring(1).replace("%s",pt))),$.classList.add(Oe.substring(1).replace("%s",ue));else{const pt=Oe.replace("%s",ue).match(/\[([^\]]+)\]/);if(pt){const[At,Ne]=pt[1].split("=");Ne||H.forEach(st=>{$.removeAttribute(At.replace(ue,st))}),$.setAttribute(At,Ne?Ne.replace(/"|'/g,""):"")}else $.setAttribute(Oe,ue)}}},[ue,fe,$,H]),p.useEffect(()=>{let je;if(k&&O.current&&P){const Oe=P.createElement("style");Oe.appendChild(P.createTextNode(IR)),P.head.appendChild(Oe),window.getComputedStyle(P.body),je=setTimeout(()=>{P.head.removeChild(Oe)},1)}return()=>{clearTimeout(je)}},[ue,k,P]),p.useEffect(()=>(O.current=!0,()=>{O.current=!1}),[]);const ve=p.useMemo(()=>({allColorSchemes:H,colorScheme:ue,darkColorScheme:F,lightColorScheme:W,mode:ne,setColorScheme:Q,setMode:re,systemMode:ie}),[H,ue,F,W,ne,Q,re,ie,ee.colorSchemeSelector]);let Le=!0;(R||z.cssVariables===!1||N&&(T==null?void 0:T.cssVarPrefix)===se)&&(Le=!1);const xe=x.jsxs(p.Fragment,{children:[x.jsx(Kb,{themeId:L?t:void 0,theme:ee,children:m}),Le&&x.jsx(Cb,{styles:((ut=ee.generateStyleSheets)==null?void 0:ut.call(ee))||[]})]});return N?xe:x.jsx(c.Provider,{value:ve,children:xe})}const g=typeof a=="string"?a:a.light,S=typeof a=="string"?a:a.dark;return{CssVarsProvider:y,useColorScheme:u,getInitColorSchemeScript:h=>RR({colorSchemeStorageKey:o,defaultLightColorScheme:g,defaultDarkColorScheme:S,modeStorageKey:r,...h})}}function $R(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 qy=(e,t,n,r=[])=>{let o=e;t.forEach((i,a)=>{a===t.length-1?Array.isArray(o)?o[Number(i)]=n:o&&typeof o=="object"&&(o[i]=n):o&&typeof o=="object"&&(o[i]||(o[i]=r.includes(i)?[]:{}),o=o[i])})},AR=(e,t,n)=>{function r(o,i=[],a=[]){Object.entries(o).forEach(([s,l])=>{(!n||n&&!n([...i,s]))&&l!=null&&(typeof l=="object"&&Object.keys(l).length>0?r(l,[...i,s],Array.isArray(l)?[...a,s]:a):t([...i,s],l,a))})}r(e)},LR=(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 Tf(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},i={},a={};return AR(e,(s,l,c)=>{if((typeof l=="string"||typeof l=="number")&&(!r||!r(s,l))){const u=`--${n?`${n}-`:""}${s.join("-")}`,d=LR(s,l);Object.assign(o,{[u]:d}),qy(i,s,`var(${u})`,c),qy(a,s,`var(${u}, ${d})`,c)}},s=>s[0]==="vars"),{css:o,vars:i,varsWithDefaults:a}}function jR(e,t={}){const{getSelector:n=C,disableCssColorScheme:r,colorSchemeSelector:o}=t,{colorSchemes:i={},components:a,defaultColorScheme:s="light",...l}=e,{vars:c,css:u,varsWithDefaults:d}=Tf(l,t);let f=d;const y={},{[s]:g,...S}=i;if(Object.entries(S||{}).forEach(([v,b])=>{const{vars:E,css:k,varsWithDefaults:M}=Tf(b,t);f=Qt(f,M),y[v]={css:k,vars:E}}),g){const{css:v,vars:b,varsWithDefaults:E}=Tf(g,t);f=Qt(f,E),y[s]={css:v,vars:b}}function C(v,b){var k,M;let E=o;if(o==="class"&&(E=".%s"),o==="data"&&(E="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(E=`[${o}="%s"]`),v){if(E==="media")return e.defaultColorScheme===v?":root":{[`@media (prefers-color-scheme: ${((M=(k=i[v])==null?void 0:k.palette)==null?void 0:M.mode)||v})`]:{":root":b}};if(E)return e.defaultColorScheme===v?`:root, ${E.replace("%s",String(v))}`:E.replace("%s",String(v))}return":root"}return{vars:f,generateThemeVars:()=>{let v={...c};return Object.entries(y).forEach(([,{vars:b}])=>{v=Qt(v,b)}),v},generateStyleSheets:()=>{var P,$;const v=[],b=e.defaultColorScheme||"light";function E(w,R){Object.keys(R).length&&v.push(typeof w=="string"?{[w]:{...R}}:w)}E(n(void 0,{...u}),u);const{[b]:k,...M}=y;if(k){const{css:w}=k,R=($=(P=i[b])==null?void 0:P.palette)==null?void 0:$.mode,A=!r&&R?{colorScheme:R,...w}:{...w};E(n(b,{...A}),A)}return Object.entries(M).forEach(([w,{css:R}])=>{var O,T;const A=(T=(O=i[w])==null?void 0:O.palette)==null?void 0:T.mode,j=!r&&A?{colorScheme:A,...R}:{...R};E(n(w,{...j}),j)}),v}}}function NR(e){return function(n){return e==="media"?`@media (prefers-color-scheme: ${n})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}const FR=Ua(),BR=vm("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${ce(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),zR=e=>kd({props:e,name:"MuiContainer",defaultTheme:FR}),_R=(e,t)=>{const n=l=>ge(t,l),{classes:r,fixed:o,disableGutters:i,maxWidth:a}=e,s={root:["root",a&&`maxWidth${ce(String(a))}`,o&&"fixed",i&&"disableGutters"]};return ye(s,n,r)};function VR(e={}){const{createStyledComponent:t=BR,useThemeProps:n=zR,componentName:r="MuiContainer"}=e,o=t(({theme:a,ownerState:s})=>({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",...!s.disableGutters&&{paddingLeft:a.spacing(2),paddingRight:a.spacing(2),[a.breakpoints.up("sm")]:{paddingLeft:a.spacing(3),paddingRight:a.spacing(3)}}}),({theme:a,ownerState:s})=>s.fixed&&Object.keys(a.breakpoints.values).reduce((l,c)=>{const u=c,d=a.breakpoints.values[u];return d!==0&&(l[a.breakpoints.up(u)]={maxWidth:`${d}${a.breakpoints.unit}`}),l},{}),({theme:a,ownerState:s})=>({...s.maxWidth==="xs"&&{[a.breakpoints.up("xs")]:{maxWidth:Math.max(a.breakpoints.values.xs,444)}},...s.maxWidth&&s.maxWidth!=="xs"&&{[a.breakpoints.up(s.maxWidth)]:{maxWidth:`${a.breakpoints.values[s.maxWidth]}${a.breakpoints.unit}`}}}));return p.forwardRef(function(s,l){const c=n(s),{className:u,component:d="div",disableGutters:f=!1,fixed:y=!1,maxWidth:g="lg",classes:S,...C}=c,h={...c,component:d,disableGutters:f,fixed:y,maxWidth:g},m=_R(h,r);return x.jsx(o,{as:d,ownerState:h,className:pe(m.root,u),ref:l,...C})})}const WR=(e,t)=>e.filter(n=>t.includes(n)),Ha=(e,t,n)=>{const r=e.keys[0];Array.isArray(t)?t.forEach((o,i)=>{n((a,s)=>{i<=e.keys.length-1&&(i===0?Object.assign(a,s):a[e.up(e.keys[i])]=s)},o)}):t&&typeof t=="object"?(Object.keys(t).length>e.keys.length?e.keys:WR(e.keys,Object.keys(t))).forEach(i=>{if(e.keys.includes(i)){const a=t[i];a!==void 0&&n((s,l)=>{r===i?Object.assign(s,l):s[e.up(i)]=l},a)}}):(typeof t=="number"||typeof t=="string")&&n((o,i)=>{Object.assign(o,i)},t)};function wu(e){return`--Grid-${e}Spacing`}function Md(e){return`--Grid-parent-${e}Spacing`}const Zy="--Grid-columns",pa="--Grid-parent-columns",UR=({theme:e,ownerState:t})=>{const n={};return Ha(e.breakpoints,t.size,(r,o)=>{let i={};o==="grow"&&(i={flexBasis:0,flexGrow:1,maxWidth:"100%"}),o==="auto"&&(i={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),typeof o=="number"&&(i={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${o} / var(${pa}) - (var(${pa}) - ${o}) * (var(${Md("column")}) / var(${pa})))`}),r(n,i)}),n},HR=({theme:e,ownerState:t})=>{const n={};return Ha(e.breakpoints,t.offset,(r,o)=>{let i={};o==="auto"&&(i={marginLeft:"auto"}),typeof o=="number"&&(i={marginLeft:o===0?"0px":`calc(100% * ${o} / var(${pa}) + var(${Md("column")}) * ${o} / var(${pa}))`}),r(n,i)}),n},YR=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={[Zy]:12};return Ha(e.breakpoints,t.columns,(r,o)=>{const i=o??12;r(n,{[Zy]:i,"> *":{[pa]:i}})}),n},KR=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Ha(e.breakpoints,t.rowSpacing,(r,o)=>{var a;const i=typeof o=="string"?o:(a=e.spacing)==null?void 0:a.call(e,o);r(n,{[wu("row")]:i,"> *":{[Md("row")]:i}})}),n},GR=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Ha(e.breakpoints,t.columnSpacing,(r,o)=>{var a;const i=typeof o=="string"?o:(a=e.spacing)==null?void 0:a.call(e,o);r(n,{[wu("column")]:i,"> *":{[Md("column")]:i}})}),n},QR=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Ha(e.breakpoints,t.direction,(r,o)=>{r(n,{flexDirection:o})}),n},XR=({ownerState:e})=>({minWidth:0,boxSizing:"border-box",...e.container&&{display:"flex",flexWrap:"wrap",...e.wrap&&e.wrap!=="wrap"&&{flexWrap:e.wrap},gap:`var(${wu("row")}) var(${wu("column")})`}}),qR=e=>{const t=[];return Object.entries(e).forEach(([n,r])=>{r!==!1&&r!==void 0&&t.push(`grid-${n}-${String(r)}`)}),t},ZR=(e,t="xs")=>{function n(r){return r===void 0?!1:typeof r=="string"&&!Number.isNaN(Number(r))||typeof r=="number"&&r>0}if(n(e))return[`spacing-${t}-${String(e)}`];if(typeof e=="object"&&!Array.isArray(e)){const r=[];return Object.entries(e).forEach(([o,i])=>{n(i)&&r.push(`spacing-${o}-${String(i)}`)}),r}return[]},JR=e=>e===void 0?[]:typeof e=="object"?Object.entries(e).map(([t,n])=>`direction-${t}-${n}`):[`direction-xs-${String(e)}`],eD=Ua(),tD=vm("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>t.root});function nD(e){return kd({props:e,name:"MuiGrid",defaultTheme:eD})}function rD(e={}){const{createStyledComponent:t=tD,useThemeProps:n=nD,useTheme:r=jl,componentName:o="MuiGrid"}=e,i=(c,u)=>{const{container:d,direction:f,spacing:y,wrap:g,size:S}=c,C={root:["root",d&&"container",g!=="wrap"&&`wrap-xs-${String(g)}`,...JR(f),...qR(S),...d?ZR(y,u.breakpoints.keys[0]):[]]};return ye(C,h=>ge(o,h),{})};function a(c,u,d=()=>!0){const f={};return c===null||(Array.isArray(c)?c.forEach((y,g)=>{y!==null&&d(y)&&u.keys[g]&&(f[u.keys[g]]=y)}):typeof c=="object"?Object.keys(c).forEach(y=>{const g=c[y];g!=null&&d(g)&&(f[y]=g)}):f[u.keys[0]]=c),f}const s=t(YR,GR,KR,UR,QR,XR,HR),l=p.forwardRef(function(u,d){const f=r(),y=n(u),g=Cd(y),{className:S,children:C,columns:h=12,container:m=!1,component:v="div",direction:b="row",wrap:E="wrap",size:k={},offset:M={},spacing:P=0,rowSpacing:$=P,columnSpacing:w=P,unstable_level:R=0,...A}=g,j=a(k,f.breakpoints,V=>V!==!1),O=a(M,f.breakpoints),T=u.columns??(R?void 0:h),I=u.spacing??(R?void 0:P),N=u.rowSpacing??u.spacing??(R?void 0:$),D=u.columnSpacing??u.spacing??(R?void 0:w),L={...g,level:R,columns:T,container:m,direction:b,wrap:E,spacing:I,rowSpacing:N,columnSpacing:D,size:j,offset:O},z=i(L,f);return x.jsx(s,{ref:d,as:v,ownerState:L,className:pe(z.root,S),...A,children:p.Children.map(C,V=>{var Y;return p.isValidElement(V)&&_s(V,["Grid"])&&m&&V.props.container?p.cloneElement(V,{unstable_level:((Y=V.props)==null?void 0:Y.unstable_level)??R+1}):V})})});return l.muiName="Grid",l}const oD=Ua(),iD=vm("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function aD(e){return kd({props:e,name:"MuiStack",defaultTheme:oD})}function sD(e,t){const n=p.Children.toArray(e).filter(Boolean);return n.reduce((r,o,i)=>(r.push(o),i({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],cD=({ownerState:e,theme:t})=>{let n={display:"flex",flexDirection:"column",...xr({theme:t},Rf({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r}))};if(e.spacing){const r=yd(t),o=Object.keys(t.breakpoints.values).reduce((l,c)=>((typeof e.spacing=="object"&&e.spacing[c]!=null||typeof e.direction=="object"&&e.direction[c]!=null)&&(l[c]=!0),l),{}),i=Rf({values:e.direction,base:o}),a=Rf({values:e.spacing,base:o});typeof i=="object"&&Object.keys(i).forEach((l,c,u)=>{if(!i[l]){const f=c>0?i[u[c-1]]:"column";i[l]=f}}),n=Qt(n,xr({theme:t},a,(l,c)=>e.useFlexGap?{gap:vi(r,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${lD(c?i[c]:e.direction)}`]:vi(r,l)}}))}return n=nM(t.breakpoints,n),n};function uD(e={}){const{createStyledComponent:t=iD,useThemeProps:n=aD,componentName:r="MuiStack"}=e,o=()=>ye({root:["root"]},l=>ge(r,l),{}),i=t(cD);return p.forwardRef(function(l,c){const u=n(l),d=Cd(u),{component:f="div",direction:y="column",spacing:g=0,divider:S,children:C,className:h,useFlexGap:m=!1,...v}=d,b={direction:y,spacing:g,useFlexGap:m},E=o();return x.jsx(i,{as:f,ownerState:b,ref:c,className:pe(E.root,h),...v,children:S?sD(C,S):C})})}function Qb(){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:fl.white,default:fl.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 dD=Qb();function Xb(){return{text:{primary:fl.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:fl.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 Jy=Xb();function ev(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=Da(e.main,o):t==="dark"&&(e.dark=Ra(e.main,i)))}function fD(e="light"){return e==="dark"?{main:Fi[200],light:Fi[50],dark:Fi[400]}:{main:Fi[700],light:Fi[400],dark:Fi[800]}}function pD(e="light"){return e==="dark"?{main:Ni[200],light:Ni[50],dark:Ni[400]}:{main:Ni[500],light:Ni[300],dark:Ni[700]}}function hD(e="light"){return e==="dark"?{main:ji[500],light:ji[300],dark:ji[700]}:{main:ji[700],light:ji[400],dark:ji[800]}}function mD(e="light"){return e==="dark"?{main:Bi[400],light:Bi[300],dark:Bi[700]}:{main:Bi[700],light:Bi[500],dark:Bi[900]}}function gD(e="light"){return e==="dark"?{main:zi[400],light:zi[300],dark:zi[700]}:{main:zi[800],light:zi[500],dark:zi[900]}}function yD(e="light"){return e==="dark"?{main:ss[400],light:ss[300],dark:ss[700]}:{main:"#ed6c02",light:ss[500],dark:ss[900]}}function Pm(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,...o}=e,i=e.primary||fD(t),a=e.secondary||pD(t),s=e.error||hD(t),l=e.info||mD(t),c=e.success||gD(t),u=e.warning||yD(t);function d(S){return dR(S,Jy.text.primary)>=n?Jy.text.primary:dD.text.primary}const f=({color:S,name:C,mainShade:h=500,lightShade:m=300,darkShade:v=700})=>{if(S={...S},!S.main&&S[h]&&(S.main=S[h]),!S.hasOwnProperty("main"))throw new Error(lo(11,C?` (${C})`:"",h));if(typeof S.main!="string")throw new Error(lo(12,C?` (${C})`:"",JSON.stringify(S.main)));return ev(S,"light",m,r),ev(S,"dark",v,r),S.contrastText||(S.contrastText=d(S.main)),S};let y;return t==="light"?y=Qb():t==="dark"&&(y=Xb()),Qt({common:{...fl},mode:t,primary:f({color:i,name:"primary"}),secondary:f({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:s,name:"error"}),warning:f({color:u,name:"warning"}),info:f({color:l,name:"info"}),success:f({color:c,name:"success"}),grey:jE,contrastThreshold:n,getContrastText:d,augmentColor:f,tonalOffset:r,...y},o)}function vD(e){const t={};return Object.entries(e).forEach(r=>{const[o,i]=r;typeof i=="object"&&(t[o]=`${i.fontStyle?`${i.fontStyle} `:""}${i.fontVariant?`${i.fontVariant} `:""}${i.fontWeight?`${i.fontWeight} `:""}${i.fontStretch?`${i.fontStretch} `:""}${i.fontSize||""}${i.lineHeight?`/${i.lineHeight} `:""}${i.fontFamily||""}`)}),t}function xD(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function SD(e){return Math.round(e*1e5)/1e5}const tv={textTransform:"uppercase"},nv='"Roboto", "Helvetica", "Arial", sans-serif';function qb(e,t){const{fontFamily:n=nv,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:i=400,fontWeightMedium:a=500,fontWeightBold:s=700,htmlFontSize:l=16,allVariants:c,pxToRem:u,...d}=typeof t=="function"?t(e):t,f=r/14,y=u||(C=>`${C/l*f}rem`),g=(C,h,m,v,b)=>({fontFamily:n,fontWeight:C,fontSize:y(h),lineHeight:m,...n===nv?{letterSpacing:`${SD(v/h)}em`}:{},...b,...c}),S={h1:g(o,96,1.167,-1.5),h2:g(o,60,1.2,-.5),h3:g(i,48,1.167,0),h4:g(i,34,1.235,.25),h5:g(i,24,1.334,0),h6:g(a,20,1.6,.15),subtitle1:g(i,16,1.75,.15),subtitle2:g(a,14,1.57,.1),body1:g(i,16,1.5,.15),body2:g(i,14,1.43,.15),button:g(a,14,1.75,.4,tv),caption:g(i,12,1.66,.4),overline:g(i,12,2.66,1,tv),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Qt({htmlFontSize:l,pxToRem:y,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:a,fontWeightBold:s,...S},d,{clone:!1})}const bD=.2,wD=.14,CD=.12;function xt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${bD})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${wD})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${CD})`].join(",")}const kD=["none",xt(0,2,1,-1,0,1,1,0,0,1,3,0),xt(0,3,1,-2,0,2,2,0,0,1,5,0),xt(0,3,3,-2,0,3,4,0,0,1,8,0),xt(0,2,4,-1,0,4,5,0,0,1,10,0),xt(0,3,5,-1,0,5,8,0,0,1,14,0),xt(0,3,5,-1,0,6,10,0,0,1,18,0),xt(0,4,5,-2,0,7,10,1,0,2,16,1),xt(0,5,5,-3,0,8,10,1,0,3,14,2),xt(0,5,6,-3,0,9,12,1,0,3,16,2),xt(0,6,6,-3,0,10,14,1,0,4,18,3),xt(0,6,7,-4,0,11,15,1,0,4,20,3),xt(0,7,8,-4,0,12,17,2,0,5,22,4),xt(0,7,8,-4,0,13,19,2,0,5,24,4),xt(0,7,9,-4,0,14,21,2,0,5,26,4),xt(0,8,9,-5,0,15,22,2,0,6,28,5),xt(0,8,10,-5,0,16,24,2,0,6,30,5),xt(0,8,11,-5,0,17,26,2,0,6,32,5),xt(0,9,11,-5,0,18,28,2,0,7,34,6),xt(0,9,12,-6,0,19,29,2,0,7,36,6),xt(0,10,13,-6,0,20,31,3,0,8,38,7),xt(0,10,13,-6,0,21,33,3,0,8,40,7),xt(0,10,14,-6,0,22,35,3,0,8,42,7),xt(0,11,14,-7,0,23,36,3,0,9,44,8),xt(0,11,15,-7,0,24,38,3,0,9,46,8)],ED={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)"},PD={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function rv(e){return`${Math.round(e)}ms`}function MD(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function RD(e){const t={...ED,...e.easing},n={...PD,...e.duration};return{getAutoHeightDuration:MD,create:(o=["all"],i={})=>{const{duration:a=n.standard,easing:s=t.easeInOut,delay:l=0,...c}=i;return(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof a=="string"?a:rv(a)} ${s} ${typeof l=="string"?l:rv(l)}`).join(",")},...e,easing:t,duration:n}}const DD={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function TD(e){return jr(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function Zb(e={}){const t={...e};function n(r){const o=Object.entries(r);for(let i=0;iQt(y,g),f),f.unstable_sxConfig={...Ll,...c==null?void 0:c.unstable_sxConfig},f.unstable_sx=function(g){return Fo({sx:g,theme:this})},f.toRuntimeSource=Zb,f}function Yp(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 ID=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=Yp(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function Jb(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function ew(e){return e==="dark"?ID:[]}function OD(e){const{palette:t={mode:"light"},opacity:n,overlays:r,...o}=e,i=Pm(t);return{palette:i,opacity:{...Jb(i.mode),...n},overlays:r||ew(i.mode),...o}}function $D(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const AD=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],LD=e=>(t,n)=>{const r=e.rootSelector||":root",o=e.colorSchemeSelector;let i=o;if(o==="class"&&(i=".%s"),o==="data"&&(i="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(i=`[${o}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const a={};return AD(e.cssVarPrefix).forEach(s=>{a[s]=n[s],delete n[s]}),i==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:a}}:i?{[i.replace("%s",t)]:a,[`${r}, ${i.replace("%s",t)}`]:n}:{[r]:{...n,...a}}}if(i&&i!=="media")return`${r}, ${i.replace("%s",String(t))}`}else if(t){if(i==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(i)return i.replace("%s",String(t))}return r};function jD(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function oe(e,t,n){!e[t]&&n&&(e[t]=n)}function Rs(e){return typeof e!="string"||!e.startsWith("hsl")?e:Nb(e)}function Gr(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Ms(Rs(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(). +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 ND(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Rr=e=>{try{return e()}catch{}},FD=(e="mui")=>$R(e);function If(e,t,n,r){if(!t)return;t=t===!0?{}:t;const o=r==="dark"?"dark":"light";if(!n){e[r]=OD({...t,palette:{mode:o,...t==null?void 0:t.palette}});return}const{palette:i,...a}=Hp({...n,palette:{mode:o,...t==null?void 0:t.palette}});return e[r]={...t,palette:i,opacity:{...Jb(o),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||ew(o)},a}function BD(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",shouldSkipGeneratingVar:a=$D,colorSchemeSelector:s=n.light&&n.dark?"media":void 0,rootSelector:l=":root",...c}=e,u=Object.keys(n)[0],d=r||(n.light&&u!=="light"?"light":u),f=FD(i),{[d]:y,light:g,dark:S,...C}=n,h={...C};let m=y;if((d==="dark"&&!("dark"in n)||d==="light"&&!("light"in n))&&(m=!0),!m)throw new Error(lo(21,d));const v=If(h,m,c,d);g&&!h.light&&If(h,g,void 0,"light"),S&&!h.dark&&If(h,S,void 0,"dark");let b={defaultColorScheme:d,...v,cssVarPrefix:i,colorSchemeSelector:s,rootSelector:l,getCssVar:f,colorSchemes:h,font:{...vD(v.typography),...v.font},spacing:ND(c.spacing)};Object.keys(b.colorSchemes).forEach($=>{const w=b.colorSchemes[$].palette,R=A=>{const j=A.split("-"),O=j[1],T=j[2];return f(A,w[O][T])};if(w.mode==="light"&&(oe(w.common,"background","#fff"),oe(w.common,"onBackground","#000")),w.mode==="dark"&&(oe(w.common,"background","#000"),oe(w.common,"onBackground","#fff")),jD(w,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),w.mode==="light"){oe(w.Alert,"errorColor",lt(w.error.light,.6)),oe(w.Alert,"infoColor",lt(w.info.light,.6)),oe(w.Alert,"successColor",lt(w.success.light,.6)),oe(w.Alert,"warningColor",lt(w.warning.light,.6)),oe(w.Alert,"errorFilledBg",R("palette-error-main")),oe(w.Alert,"infoFilledBg",R("palette-info-main")),oe(w.Alert,"successFilledBg",R("palette-success-main")),oe(w.Alert,"warningFilledBg",R("palette-warning-main")),oe(w.Alert,"errorFilledColor",Rr(()=>w.getContrastText(w.error.main))),oe(w.Alert,"infoFilledColor",Rr(()=>w.getContrastText(w.info.main))),oe(w.Alert,"successFilledColor",Rr(()=>w.getContrastText(w.success.main))),oe(w.Alert,"warningFilledColor",Rr(()=>w.getContrastText(w.warning.main))),oe(w.Alert,"errorStandardBg",ct(w.error.light,.9)),oe(w.Alert,"infoStandardBg",ct(w.info.light,.9)),oe(w.Alert,"successStandardBg",ct(w.success.light,.9)),oe(w.Alert,"warningStandardBg",ct(w.warning.light,.9)),oe(w.Alert,"errorIconColor",R("palette-error-main")),oe(w.Alert,"infoIconColor",R("palette-info-main")),oe(w.Alert,"successIconColor",R("palette-success-main")),oe(w.Alert,"warningIconColor",R("palette-warning-main")),oe(w.AppBar,"defaultBg",R("palette-grey-100")),oe(w.Avatar,"defaultBg",R("palette-grey-400")),oe(w.Button,"inheritContainedBg",R("palette-grey-300")),oe(w.Button,"inheritContainedHoverBg",R("palette-grey-A100")),oe(w.Chip,"defaultBorder",R("palette-grey-400")),oe(w.Chip,"defaultAvatarColor",R("palette-grey-700")),oe(w.Chip,"defaultIconColor",R("palette-grey-700")),oe(w.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),oe(w.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),oe(w.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),oe(w.LinearProgress,"primaryBg",ct(w.primary.main,.62)),oe(w.LinearProgress,"secondaryBg",ct(w.secondary.main,.62)),oe(w.LinearProgress,"errorBg",ct(w.error.main,.62)),oe(w.LinearProgress,"infoBg",ct(w.info.main,.62)),oe(w.LinearProgress,"successBg",ct(w.success.main,.62)),oe(w.LinearProgress,"warningBg",ct(w.warning.main,.62)),oe(w.Skeleton,"bg",`rgba(${R("palette-text-primaryChannel")} / 0.11)`),oe(w.Slider,"primaryTrack",ct(w.primary.main,.62)),oe(w.Slider,"secondaryTrack",ct(w.secondary.main,.62)),oe(w.Slider,"errorTrack",ct(w.error.main,.62)),oe(w.Slider,"infoTrack",ct(w.info.main,.62)),oe(w.Slider,"successTrack",ct(w.success.main,.62)),oe(w.Slider,"warningTrack",ct(w.warning.main,.62));const A=yc(w.background.default,.8);oe(w.SnackbarContent,"bg",A),oe(w.SnackbarContent,"color",Rr(()=>w.getContrastText(A))),oe(w.SpeedDialAction,"fabHoverBg",yc(w.background.paper,.15)),oe(w.StepConnector,"border",R("palette-grey-400")),oe(w.StepContent,"border",R("palette-grey-400")),oe(w.Switch,"defaultColor",R("palette-common-white")),oe(w.Switch,"defaultDisabledColor",R("palette-grey-100")),oe(w.Switch,"primaryDisabledColor",ct(w.primary.main,.62)),oe(w.Switch,"secondaryDisabledColor",ct(w.secondary.main,.62)),oe(w.Switch,"errorDisabledColor",ct(w.error.main,.62)),oe(w.Switch,"infoDisabledColor",ct(w.info.main,.62)),oe(w.Switch,"successDisabledColor",ct(w.success.main,.62)),oe(w.Switch,"warningDisabledColor",ct(w.warning.main,.62)),oe(w.TableCell,"border",ct(gc(w.divider,1),.88)),oe(w.Tooltip,"bg",gc(w.grey[700],.92))}if(w.mode==="dark"){oe(w.Alert,"errorColor",ct(w.error.light,.6)),oe(w.Alert,"infoColor",ct(w.info.light,.6)),oe(w.Alert,"successColor",ct(w.success.light,.6)),oe(w.Alert,"warningColor",ct(w.warning.light,.6)),oe(w.Alert,"errorFilledBg",R("palette-error-dark")),oe(w.Alert,"infoFilledBg",R("palette-info-dark")),oe(w.Alert,"successFilledBg",R("palette-success-dark")),oe(w.Alert,"warningFilledBg",R("palette-warning-dark")),oe(w.Alert,"errorFilledColor",Rr(()=>w.getContrastText(w.error.dark))),oe(w.Alert,"infoFilledColor",Rr(()=>w.getContrastText(w.info.dark))),oe(w.Alert,"successFilledColor",Rr(()=>w.getContrastText(w.success.dark))),oe(w.Alert,"warningFilledColor",Rr(()=>w.getContrastText(w.warning.dark))),oe(w.Alert,"errorStandardBg",lt(w.error.light,.9)),oe(w.Alert,"infoStandardBg",lt(w.info.light,.9)),oe(w.Alert,"successStandardBg",lt(w.success.light,.9)),oe(w.Alert,"warningStandardBg",lt(w.warning.light,.9)),oe(w.Alert,"errorIconColor",R("palette-error-main")),oe(w.Alert,"infoIconColor",R("palette-info-main")),oe(w.Alert,"successIconColor",R("palette-success-main")),oe(w.Alert,"warningIconColor",R("palette-warning-main")),oe(w.AppBar,"defaultBg",R("palette-grey-900")),oe(w.AppBar,"darkBg",R("palette-background-paper")),oe(w.AppBar,"darkColor",R("palette-text-primary")),oe(w.Avatar,"defaultBg",R("palette-grey-600")),oe(w.Button,"inheritContainedBg",R("palette-grey-800")),oe(w.Button,"inheritContainedHoverBg",R("palette-grey-700")),oe(w.Chip,"defaultBorder",R("palette-grey-700")),oe(w.Chip,"defaultAvatarColor",R("palette-grey-300")),oe(w.Chip,"defaultIconColor",R("palette-grey-300")),oe(w.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),oe(w.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),oe(w.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),oe(w.LinearProgress,"primaryBg",lt(w.primary.main,.5)),oe(w.LinearProgress,"secondaryBg",lt(w.secondary.main,.5)),oe(w.LinearProgress,"errorBg",lt(w.error.main,.5)),oe(w.LinearProgress,"infoBg",lt(w.info.main,.5)),oe(w.LinearProgress,"successBg",lt(w.success.main,.5)),oe(w.LinearProgress,"warningBg",lt(w.warning.main,.5)),oe(w.Skeleton,"bg",`rgba(${R("palette-text-primaryChannel")} / 0.13)`),oe(w.Slider,"primaryTrack",lt(w.primary.main,.5)),oe(w.Slider,"secondaryTrack",lt(w.secondary.main,.5)),oe(w.Slider,"errorTrack",lt(w.error.main,.5)),oe(w.Slider,"infoTrack",lt(w.info.main,.5)),oe(w.Slider,"successTrack",lt(w.success.main,.5)),oe(w.Slider,"warningTrack",lt(w.warning.main,.5));const A=yc(w.background.default,.98);oe(w.SnackbarContent,"bg",A),oe(w.SnackbarContent,"color",Rr(()=>w.getContrastText(A))),oe(w.SpeedDialAction,"fabHoverBg",yc(w.background.paper,.15)),oe(w.StepConnector,"border",R("palette-grey-600")),oe(w.StepContent,"border",R("palette-grey-600")),oe(w.Switch,"defaultColor",R("palette-grey-300")),oe(w.Switch,"defaultDisabledColor",R("palette-grey-600")),oe(w.Switch,"primaryDisabledColor",lt(w.primary.main,.55)),oe(w.Switch,"secondaryDisabledColor",lt(w.secondary.main,.55)),oe(w.Switch,"errorDisabledColor",lt(w.error.main,.55)),oe(w.Switch,"infoDisabledColor",lt(w.info.main,.55)),oe(w.Switch,"successDisabledColor",lt(w.success.main,.55)),oe(w.Switch,"warningDisabledColor",lt(w.warning.main,.55)),oe(w.TableCell,"border",lt(gc(w.divider,1),.68)),oe(w.Tooltip,"bg",gc(w.grey[700],.92))}Gr(w.background,"default"),Gr(w.background,"paper"),Gr(w.common,"background"),Gr(w.common,"onBackground"),Gr(w,"divider"),Object.keys(w).forEach(A=>{const j=w[A];A!=="tonalOffset"&&j&&typeof j=="object"&&(j.main&&oe(w[A],"mainChannel",Ms(Rs(j.main))),j.light&&oe(w[A],"lightChannel",Ms(Rs(j.light))),j.dark&&oe(w[A],"darkChannel",Ms(Rs(j.dark))),j.contrastText&&oe(w[A],"contrastTextChannel",Ms(Rs(j.contrastText))),A==="text"&&(Gr(w[A],"primary"),Gr(w[A],"secondary")),A==="action"&&(j.active&&Gr(w[A],"active"),j.selected&&Gr(w[A],"selected")))})}),b=t.reduce(($,w)=>Qt($,w),b);const E={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:a,getSelector:LD(b)},{vars:k,generateThemeVars:M,generateStyleSheets:P}=jR(b,E);return b.vars=k,Object.entries(b.colorSchemes[b.defaultColorScheme]).forEach(([$,w])=>{b[$]=w}),b.generateThemeVars=M,b.generateStyleSheets=P,b.generateSpacing=function(){return Db(c.spacing,yd(this))},b.getColorSchemeSelector=NR(s),b.spacing=b.generateSpacing(),b.shouldSkipGeneratingVar=a,b.unstable_sxConfig={...Ll,...c==null?void 0:c.unstable_sxConfig},b.unstable_sx=function(w){return Fo({sx:w,theme:this})},b.toRuntimeSource=Zb,b}function ov(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Pm({...n===!0?{}:n.palette,mode:t})})}function Rd(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:o=n?void 0:{light:!0},defaultColorScheme:i=n==null?void 0:n.mode,...a}=e,s=i||"light",l=o==null?void 0:o[s],c={...o,...n?{[s]:{...typeof l!="boolean"&&l,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return Hp(e,...t);let u=n;"palette"in e||c[s]&&(c[s]!==!0?u=c[s].palette:s==="dark"&&(u={mode:"dark"}));const d=Hp({...e,palette:u},...t);return d.defaultColorScheme=s,d.colorSchemes=c,d.palette.mode==="light"&&(d.colorSchemes.light={...c.light!==!0&&c.light,palette:d.palette},ov(d,"dark",c.dark)),d.palette.mode==="dark"&&(d.colorSchemes.dark={...c.dark!==!0&&c.dark,palette:d.palette},ov(d,"light",c.light)),d}return!n&&!("light"in c)&&s==="light"&&(c.light=!0),BD({...a,colorSchemes:c,defaultColorScheme:s,...typeof r!="boolean"&&r},...t)}const Dd=Rd();function Cr(){const e=jl(Dd);return e[er]||e}function gt({props:e,name:t}){return kd({props:e,name:t,defaultTheme:Dd,themeId:er})}function tw(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Un=e=>tw(e)&&e!=="classes",G=Ab({themeId:er,defaultTheme:Dd,rootShouldForwardProp:Un});function iv({theme:e,...t}){const n=er in e?e[er]:void 0;return x.jsx(Kb,{...t,themeId:n?er:void 0,theme:n||e})}const vc={attribute:"data-mui-color-scheme",colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:zD,useColorScheme:Hz,getInitColorSchemeScript:Yz}=OR({themeId:er,theme:()=>Rd({cssVariables:!0}),colorSchemeStorageKey:vc.colorSchemeStorageKey,modeStorageKey:vc.modeStorageKey,defaultColorScheme:{light:vc.defaultLightColorScheme,dark:vc.defaultDarkColorScheme},resolveTheme:e=>{const t={...e,typography:qb(e.palette,e.typography)};return t.unstable_sx=function(r){return Fo({sx:r,theme:this})},t}}),_D=zD;function VD({theme:e,...t}){return typeof e=="function"?x.jsx(iv,{theme:e,...t}):"colorSchemes"in(er in e?e[er]:e)?x.jsx(_D,{theme:e,...t}):x.jsx(iv,{theme:e,...t})}function WD(e){return x.jsx(YM,{...e,defaultTheme:Dd,themeId:er})}function Mm(e){return function(n){return x.jsx(WD,{styles:typeof e=="function"?r=>e({theme:r,...n}):e})}}function UD(){return Cd}const Be=PR;function Ie(e){return ER(e)}function HD(e){return ge("MuiSvgIcon",e)}me("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const YD=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${ce(t)}`,`fontSize${ce(n)}`]};return ye(o,HD,r)},KD=G("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${ce(n.color)}`],t[`fontSize${ce(n.fontSize)}`]]}})(Be(({theme:e})=>{var t,n,r,o,i,a,s,l,c,u,d,f,y,g;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(o=(t=e.transitions)==null?void 0:t.create)==null?void 0:o.call(t,"fill",{duration:(r=(n=(e.vars??e).transitions)==null?void 0:n.duration)==null?void 0:r.shorter}),variants:[{props:S=>!S.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((a=(i=e.typography)==null?void 0:i.pxToRem)==null?void 0:a.call(i,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((l=(s=e.typography)==null?void 0:s.pxToRem)==null?void 0:l.call(s,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((u=(c=e.typography)==null?void 0:c.pxToRem)==null?void 0:u.call(c,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,S])=>S&&S.main).map(([S])=>{var C,h;return{props:{color:S},style:{color:(h=(C=(e.vars??e).palette)==null?void 0:C[S])==null?void 0:h.main}}}),{props:{color:"action"},style:{color:(f=(d=(e.vars??e).palette)==null?void 0:d.action)==null?void 0:f.active}},{props:{color:"disabled"},style:{color:(g=(y=(e.vars??e).palette)==null?void 0:y.action)==null?void 0:g.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),Cu=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:a="inherit",component:s="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:d,viewBox:f="0 0 24 24",...y}=r,g=p.isValidElement(o)&&o.type==="svg",S={...r,color:a,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:f,hasSvgAsChild:g},C={};u||(C.viewBox=f);const h=YD(S);return x.jsxs(KD,{as:s,className:pe(h.root,i),focusable:"false",color:c,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:n,...C,...y,...g&&o.props,ownerState:S,children:[g?o.props.children:o,d?x.jsx("title",{children:d}):null]})});Cu&&(Cu.muiName="SvgIcon");function Ht(e,t){function n(r,o){return x.jsx(Cu,{"data-testid":`${t}Icon`,ref:o,...r,children:e})}return n.muiName=Cu.muiName,p.memo(p.forwardRef(n))}function Ae(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function Kp(e,t){return Kp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Kp(e,t)}function Rm(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Kp(e,t)}function GD(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function QD(e,t){e.classList?e.classList.add(t):GD(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function av(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function XD(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=av(e.className,t):e.setAttribute("class",av(e.className&&e.className.baseVal||"",t))}const sv={disabled:!1},ku=_t.createContext(null);var nw=function(t){return t.scrollTop},Ds="unmounted",Jo="exited",ei="entering",Hi="entered",Gp="exiting",cr=function(e){Rm(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var a=o,s=a&&!a.isMounting?r.enter:r.appear,l;return i.appearStatus=null,r.in?s?(l=Jo,i.appearStatus=ei):l=Hi:r.unmountOnExit||r.mountOnEnter?l=Ds:l=Jo,i.state={status:l},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var a=o.in;return a&&i.status===Ds?{status:Jo}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var a=this.state.status;this.props.in?a!==ei&&a!==Hi&&(i=ei):(a===ei||a===Hi)&&(i=Gp)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,a,s;return i=a=s=o,o!=null&&typeof o!="number"&&(i=o.exit,a=o.enter,s=o.appear!==void 0?o.appear:a),{exit:i,enter:a,appear:s}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===ei){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:Ps.findDOMNode(this);a&&nw(a)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Jo&&this.setState({status:Ds})},n.performEnter=function(o){var i=this,a=this.props.enter,s=this.context?this.context.isMounting:o,l=this.props.nodeRef?[s]:[Ps.findDOMNode(this),s],c=l[0],u=l[1],d=this.getTimeouts(),f=s?d.appear:d.enter;if(!o&&!a||sv.disabled){this.safeSetState({status:Hi},function(){i.props.onEntered(c)});return}this.props.onEnter(c,u),this.safeSetState({status:ei},function(){i.props.onEntering(c,u),i.onTransitionEnd(f,function(){i.safeSetState({status:Hi},function(){i.props.onEntered(c,u)})})})},n.performExit=function(){var o=this,i=this.props.exit,a=this.getTimeouts(),s=this.props.nodeRef?void 0:Ps.findDOMNode(this);if(!i||sv.disabled){this.safeSetState({status:Jo},function(){o.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:Gp},function(){o.props.onExiting(s),o.onTransitionEnd(a.exit,function(){o.safeSetState({status:Jo},function(){o.props.onExited(s)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,a=!0;return this.nextCallback=function(s){a&&(a=!1,i.nextCallback=null,o(s))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:Ps.findDOMNode(this),s=o==null&&!this.props.addEndListener;if(!a||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[a,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===Ds)return null;var i=this.props,a=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var s=Ae(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return _t.createElement(ku.Provider,{value:null},typeof a=="function"?a(o,s):_t.cloneElement(_t.Children.only(a),s))},t}(_t.Component);cr.contextType=ku;cr.propTypes={};function _i(){}cr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:_i,onEntering:_i,onEntered:_i,onExit:_i,onExiting:_i,onExited:_i};cr.UNMOUNTED=Ds;cr.EXITED=Jo;cr.ENTERING=ei;cr.ENTERED=Hi;cr.EXITING=Gp;var qD=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return QD(t,r)})},Of=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return XD(t,r)})},Dm=function(e){Rm(t,e);function t(){for(var r,o=arguments.length,i=new Array(o),a=0;ae.scrollTop;function Ta(e,t){const{timeout:n,easing:r,style:o={}}=e;return{duration:o.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:o.transitionTimingFunction??(typeof r=="object"?r[t.mode]:r),delay:o.transitionDelay}}function oT(e){return ge("MuiPaper",e)}me("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const iT=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,i={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return ye(i,oT,o)},aT=G("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(Be(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),br=p.forwardRef(function(t,n){var y;const r=Ie({props:t,name:"MuiPaper"}),o=Cr(),{className:i,component:a="div",elevation:s=1,square:l=!1,variant:c="elevation",...u}=r,d={...r,component:a,elevation:s,square:l,variant:c},f=iT(d);return x.jsx(aT,{as:a,ownerState:d,className:pe(f.root,i),ref:n,...u,style:{...c==="elevation"&&{"--Paper-shadow":(o.vars||o).shadows[s],...o.vars&&{"--Paper-overlay":(y=o.vars.overlays)==null?void 0:y[s]},...!o.vars&&o.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${ze("#fff",Yp(s))}, ${ze("#fff",Yp(s))})`}},...u.style}})});function In(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:i,internalForwardedProps:a,...s}=t,{component:l,slots:c={[e]:void 0},slotProps:u={[e]:void 0},...d}=i,f=c[e]||r,y=Pd(u[e],o),{props:{component:g,...S},internalRef:C}=Wb({className:n,...s,externalForwardedProps:e==="root"?d:void 0,externalSlotProps:y}),h=Ye(C,y==null?void 0:y.ref,t.ref),m=e==="root"?g||l:g,v=Vb(f,{...e==="root"&&!l&&!c[e]&&a,...e!=="root"&&!c[e]&&a,...S,...m&&{as:m},ref:h},o);return[f,v]}class Eu{constructor(){Za(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 Eu}static use(){const t=zb(Eu.create).current,[n,r]=p.useState(!1);return t.shouldMount=n,t.setShouldMount=r,p.useEffect(t.mountEffect,[n]),t}mount(){return this.mounted||(this.mounted=lT(),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 sT(){return Eu.use()}function lT(){let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n}function cT(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:s,onExited:l,timeout:c}=e,[u,d]=p.useState(!1),f=pe(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),y={width:a,height:a,top:-(a/2)+i,left:-(a/2)+o},g=pe(n.child,u&&n.childLeaving,r&&n.childPulsate);return!s&&!u&&d(!0),p.useEffect(()=>{if(!s&&l!=null){const S=setTimeout(l,c);return()=>{clearTimeout(S)}}},[l,s,c]),x.jsx("span",{className:f,style:y,children:x.jsx("span",{className:g})})}const Gn=me("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Qp=550,uT=80,dT=$l` + 0% { + transform: scale(0); + opacity: 0.1; + } + + 100% { + transform: scale(1); + opacity: 0.3; + } +`,fT=$l` + 0% { + opacity: 1; + } + + 100% { + opacity: 0; + } +`,pT=$l` + 0% { + transform: scale(1); + } + + 50% { + transform: scale(0.92); + } + + 100% { + transform: scale(1); + } +`,hT=G("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),mT=G(cT,{name:"MuiTouchRipple",slot:"Ripple"})` + opacity: 0; + position: absolute; + + &.${Gn.rippleVisible} { + opacity: 0.3; + transform: scale(1); + animation-name: ${dT}; + animation-duration: ${Qp}ms; + animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut}; + } + + &.${Gn.ripplePulsate} { + animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms; + } + + & .${Gn.child} { + opacity: 1; + display: block; + width: 100%; + height: 100%; + border-radius: 50%; + background-color: currentColor; + } + + & .${Gn.childLeaving} { + opacity: 0; + animation-name: ${fT}; + animation-duration: ${Qp}ms; + animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut}; + } + + & .${Gn.childPulsate} { + position: absolute; + /* @noflip */ + left: 0px; + top: 0; + animation-name: ${pT}; + animation-duration: 2500ms; + animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut}; + animation-iteration-count: infinite; + animation-delay: 200ms; + } +`,gT=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a,...s}=r,[l,c]=p.useState([]),u=p.useRef(0),d=p.useRef(null);p.useEffect(()=>{d.current&&(d.current(),d.current=null)},[l]);const f=p.useRef(!1),y=wm(),g=p.useRef(null),S=p.useRef(null),C=p.useCallback(b=>{const{pulsate:E,rippleX:k,rippleY:M,rippleSize:P,cb:$}=b;c(w=>[...w,x.jsx(mT,{classes:{ripple:pe(i.ripple,Gn.ripple),rippleVisible:pe(i.rippleVisible,Gn.rippleVisible),ripplePulsate:pe(i.ripplePulsate,Gn.ripplePulsate),child:pe(i.child,Gn.child),childLeaving:pe(i.childLeaving,Gn.childLeaving),childPulsate:pe(i.childPulsate,Gn.childPulsate)},timeout:Qp,pulsate:E,rippleX:k,rippleY:M,rippleSize:P},u.current)]),u.current+=1,d.current=$},[i]),h=p.useCallback((b={},E={},k=()=>{})=>{const{pulsate:M=!1,center:P=o||E.pulsate,fakeElement:$=!1}=E;if((b==null?void 0:b.type)==="mousedown"&&f.current){f.current=!1;return}(b==null?void 0:b.type)==="touchstart"&&(f.current=!0);const w=$?null:S.current,R=w?w.getBoundingClientRect():{width:0,height:0,left:0,top:0};let A,j,O;if(P||b===void 0||b.clientX===0&&b.clientY===0||!b.clientX&&!b.touches)A=Math.round(R.width/2),j=Math.round(R.height/2);else{const{clientX:T,clientY:I}=b.touches&&b.touches.length>0?b.touches[0]:b;A=Math.round(T-R.left),j=Math.round(I-R.top)}if(P)O=Math.sqrt((2*R.width**2+R.height**2)/3),O%2===0&&(O+=1);else{const T=Math.max(Math.abs((w?w.clientWidth:0)-A),A)*2+2,I=Math.max(Math.abs((w?w.clientHeight:0)-j),j)*2+2;O=Math.sqrt(T**2+I**2)}b!=null&&b.touches?g.current===null&&(g.current=()=>{C({pulsate:M,rippleX:A,rippleY:j,rippleSize:O,cb:k})},y.start(uT,()=>{g.current&&(g.current(),g.current=null)})):C({pulsate:M,rippleX:A,rippleY:j,rippleSize:O,cb:k})},[o,C,y]),m=p.useCallback(()=>{h({},{pulsate:!0})},[h]),v=p.useCallback((b,E)=>{if(y.clear(),(b==null?void 0:b.type)==="touchend"&&g.current){g.current(),g.current=null,y.start(0,()=>{v(b,E)});return}g.current=null,c(k=>k.length>0?k.slice(1):k),d.current=E},[y]);return p.useImperativeHandle(n,()=>({pulsate:m,start:h,stop:v}),[m,h,v]),x.jsx(hT,{className:pe(Gn.root,i.root,a),ref:S,...s,children:x.jsx(Nl,{component:null,exit:!0,children:l})})});function yT(e){return ge("MuiButtonBase",e)}const vT=me("MuiButtonBase",["root","disabled","focusVisible"]),xT=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=ye({root:["root",t&&"disabled",n&&"focusVisible"]},yT,o);return n&&r&&(a.root+=` ${r}`),a},ST=G("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${vT.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Ia=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:a,className:s,component:l="button",disabled:c=!1,disableRipple:u=!1,disableTouchRipple:d=!1,focusRipple:f=!1,focusVisibleClassName:y,LinkComponent:g="a",onBlur:S,onClick:C,onContextMenu:h,onDragLeave:m,onFocus:v,onFocusVisible:b,onKeyDown:E,onKeyUp:k,onMouseDown:M,onMouseLeave:P,onMouseUp:$,onTouchEnd:w,onTouchMove:R,onTouchStart:A,tabIndex:j=0,TouchRippleProps:O,touchRippleRef:T,type:I,...N}=r,D=p.useRef(null),L=sT(),z=Ye(L.ref,T),[V,Y]=p.useState(!1);c&&V&&Y(!1),p.useImperativeHandle(o,()=>({focusVisible:()=>{Y(!0),D.current.focus()}}),[]);const se=L.shouldMount&&!u&&!c;p.useEffect(()=>{V&&f&&!u&&L.pulsate()},[u,f,V,L]);const X=Qr(L,"start",M,d),H=Qr(L,"stop",h,d),le=Qr(L,"stop",m,d),ae=Qr(L,"stop",$,d),te=Qr(L,"stop",xe=>{V&&xe.preventDefault(),P&&P(xe)},d),Z=Qr(L,"start",A,d),re=Qr(L,"stop",w,d),ie=Qr(L,"stop",R,d),W=Qr(L,"stop",xe=>{Su(xe.target)||Y(!1),S&&S(xe)},!1),F=Se(xe=>{D.current||(D.current=xe.currentTarget),Su(xe.target)&&(Y(!0),b&&b(xe)),v&&v(xe)}),K=()=>{const xe=D.current;return l&&l!=="button"&&!(xe.tagName==="A"&&xe.href)},Q=Se(xe=>{f&&!xe.repeat&&V&&xe.key===" "&&L.stop(xe,()=>{L.start(xe)}),xe.target===xe.currentTarget&&K()&&xe.key===" "&&xe.preventDefault(),E&&E(xe),xe.target===xe.currentTarget&&K()&&xe.key==="Enter"&&!c&&(xe.preventDefault(),C&&C(xe))}),ne=Se(xe=>{f&&xe.key===" "&&V&&!xe.defaultPrevented&&L.stop(xe,()=>{L.pulsate(xe)}),k&&k(xe),C&&xe.target===xe.currentTarget&&K()&&xe.key===" "&&!xe.defaultPrevented&&C(xe)});let ue=l;ue==="button"&&(N.href||N.to)&&(ue=g);const ee={};ue==="button"?(ee.type=I===void 0?"button":I,ee.disabled=c):(!N.href&&!N.to&&(ee.role="button"),c&&(ee["aria-disabled"]=c));const fe=Ye(n,D),ve={...r,centerRipple:i,component:l,disabled:c,disableRipple:u,disableTouchRipple:d,focusRipple:f,tabIndex:j,focusVisible:V},Le=xT(ve);return x.jsxs(ST,{as:ue,className:pe(Le.root,s),ownerState:ve,onBlur:W,onClick:C,onContextMenu:H,onFocus:F,onKeyDown:Q,onKeyUp:ne,onMouseDown:X,onMouseLeave:te,onMouseUp:ae,onDragLeave:le,onTouchEnd:re,onTouchMove:ie,onTouchStart:Z,ref:fe,tabIndex:c?-1:j,type:I,...ee,...N,children:[a,se?x.jsx(gT,{ref:z,center:i,...O}):null]})});function Qr(e,t,n,r=!1){return Se(o=>(n&&n(o),r||e[t](o),!0))}function bT(e){return typeof e.main=="string"}function wT(e,t=[]){if(!bT(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function Kt(e=[]){return([,t])=>t&&wT(t,e)}function CT(e){return ge("MuiAlert",e)}const lv=me("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function kT(e){return ge("MuiIconButton",e)}const ET=me("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),PT=e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e,a={root:["root",n&&"disabled",r!=="default"&&`color${ce(r)}`,o&&`edge${ce(o)}`,`size${ce(i)}`]};return ye(a,kT,t)},MT=G(Ia,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${ce(n.color)}`],n.edge&&t[`edge${ce(n.edge)}`],t[`size${ce(n.size)}`]]}})(Be(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:ze(e.palette.action.active,e.palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),Be(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(Kt()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(Kt()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ze((e.vars||e).palette[t].main,e.palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${ET.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}}))),Wr=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiIconButton"}),{edge:o=!1,children:i,className:a,color:s="default",disabled:l=!1,disableFocusRipple:c=!1,size:u="medium",...d}=r,f={...r,edge:o,color:s,disabled:l,disableFocusRipple:c,size:u},y=PT(f);return x.jsx(MT,{className:pe(y.root,a),centerRipple:!0,focusRipple:!c,disabled:l,ref:n,...d,ownerState:f,children:i})}),RT=Ht(x.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),DT=Ht(x.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),TT=Ht(x.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.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"}),"ErrorOutline"),IT=Ht(x.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),OT=Ht(x.jsx("path",{d:"M19 6.41L17.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"),$T=e=>{const{variant:t,color:n,severity:r,classes:o}=e,i={root:["root",`color${ce(n||r)}`,`${t}${ce(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return ye(i,CT,o)},AT=G(br,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${ce(n.color||n.severity)}`]]}})(Be(({theme:e})=>{const t=e.palette.mode==="light"?Ra:Da,n=e.palette.mode==="light"?Da:Ra;return{...e.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(Kt(["light"])).map(([r])=>({props:{colorSeverity:r,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${r}StandardBg`]:n(e.palette[r].light,.9),[`& .${lv.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(Kt(["light"])).map(([r])=>({props:{colorSeverity:r,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),border:`1px solid ${(e.vars||e).palette[r].light}`,[`& .${lv.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(Kt(["dark"])).map(([r])=>({props:{colorSeverity:r,variant:"filled"},style:{fontWeight:e.typography.fontWeightMedium,...e.vars?{color:e.vars.palette.Alert[`${r}FilledColor`],backgroundColor:e.vars.palette.Alert[`${r}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[r].dark:e.palette[r].main,color:e.palette.getContrastText(e.palette[r].main)}}}))]}})),LT=G("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),jT=G("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),cv=G("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),uv={success:x.jsx(RT,{fontSize:"inherit"}),warning:x.jsx(DT,{fontSize:"inherit"}),error:x.jsx(TT,{fontSize:"inherit"}),info:x.jsx(IT,{fontSize:"inherit"})},Fl=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiAlert"}),{action:o,children:i,className:a,closeText:s="Close",color:l,components:c={},componentsProps:u={},icon:d,iconMapping:f=uv,onClose:y,role:g="alert",severity:S="success",slotProps:C={},slots:h={},variant:m="standard",...v}=r,b={...r,color:l,severity:S,variant:m,colorSeverity:l||S},E=$T(b),k={slots:{closeButton:c.CloseButton,closeIcon:c.CloseIcon,...h},slotProps:{...u,...C}},[M,P]=In("closeButton",{elementType:Wr,externalForwardedProps:k,ownerState:b}),[$,w]=In("closeIcon",{elementType:OT,externalForwardedProps:k,ownerState:b});return x.jsxs(AT,{role:g,elevation:0,ownerState:b,className:pe(E.root,a),ref:n,...v,children:[d!==!1?x.jsx(LT,{ownerState:b,className:E.icon,children:d||f[S]||uv[S]}):null,x.jsx(jT,{ownerState:b,className:E.message,children:i}),o!=null?x.jsx(cv,{ownerState:b,className:E.action,children:o}):null,o==null&&y?x.jsx(cv,{ownerState:b,className:E.action,children:x.jsx(M,{size:"small","aria-label":s,title:s,color:"inherit",onClick:y,...P,children:x.jsx($,{fontSize:"small",...w})})}):null]})});function NT(e){return ge("MuiTypography",e)}me("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const FT={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},BT=UD(),zT=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e,s={root:["root",i,e.align!=="inherit"&&`align${ce(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return ye(s,NT,a)},_T=G("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${ce(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(Be(({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(Kt()).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${ce(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}}]}})),dv={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Fe=p.forwardRef(function(t,n){const{color:r,...o}=Ie({props:t,name:"MuiTypography"}),i=!FT[r],a=BT({...o,...i&&{color:r}}),{align:s="inherit",className:l,component:c,gutterBottom:u=!1,noWrap:d=!1,paragraph:f=!1,variant:y="body1",variantMapping:g=dv,...S}=a,C={...a,align:s,color:r,className:l,component:c,gutterBottom:u,noWrap:d,paragraph:f,variant:y,variantMapping:g},h=c||(f?"p":g[y]||dv[y])||"span",m=zT(C);return x.jsx(_T,{as:h,ref:n,className:pe(m.root,l),...S,ownerState:C,style:{...s!=="inherit"&&{"--Typography-textAlign":s},...S.style}})});function VT(e){return ge("MuiAppBar",e)}me("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const WT=e=>{const{color:t,position:n,classes:r}=e,o={root:["root",`color${ce(t)}`,`position${ce(n)}`]};return ye(o,VT,r)},fv=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,UT=G(br,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${ce(n.position)}`],t[`color${ce(n.color)}`]]}})(Be(({theme:e})=>({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0,variants:[{props:{position:"fixed"},style:{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}}},{props:{position:"absolute"},style:{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"sticky"},style:{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"static"},style:{position:"static"}},{props:{position:"relative"},style:{position:"relative"}},{props:{color:"inherit"},style:{"--AppBar-color":"inherit"}},{props:{color:"default"},style:{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[100],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[100]),...e.applyStyles("dark",{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[900],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[900])})}},...Object.entries(e.palette).filter(Kt(["contrastText"])).map(([t])=>({props:{color:t},style:{"--AppBar-background":(e.vars??e).palette[t].main,"--AppBar-color":(e.vars??e).palette[t].contrastText}})),{props:t=>t.enableColorOnDark===!0&&!["inherit","transparent"].includes(t.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)"}},{props:t=>t.enableColorOnDark===!1&&!["inherit","transparent"].includes(t.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...e.applyStyles("dark",{backgroundColor:e.vars?fv(e.vars.palette.AppBar.darkBg,"var(--AppBar-background)"):null,color:e.vars?fv(e.vars.palette.AppBar.darkColor,"var(--AppBar-color)"):null})}},{props:{color:"transparent"},style:{"--AppBar-background":"transparent","--AppBar-color":"inherit",backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...e.applyStyles("dark",{backgroundImage:"none"})}}]}))),HT=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiAppBar"}),{className:o,color:i="primary",enableColorOnDark:a=!1,position:s="fixed",...l}=r,c={...r,color:i,position:s,enableColorOnDark:a},u=WT(c);return x.jsx(UT,{square:!0,component:"header",ownerState:c,elevation:4,className:pe(u.root,o,s==="fixed"&&"mui-fixed"),ref:n,...l})});var bn="top",or="bottom",ir="right",wn="left",Om="auto",Bl=[bn,or,ir,wn],Oa="start",yl="end",YT="clippingParents",rw="viewport",cs="popper",KT="reference",pv=Bl.reduce(function(e,t){return e.concat([t+"-"+Oa,t+"-"+yl])},[]),ow=[].concat(Bl,[Om]).reduce(function(e,t){return e.concat([t,t+"-"+Oa,t+"-"+yl])},[]),GT="beforeRead",QT="read",XT="afterRead",qT="beforeMain",ZT="main",JT="afterMain",e2="beforeWrite",t2="write",n2="afterWrite",r2=[GT,QT,XT,qT,ZT,JT,e2,t2,n2];function Ur(e){return e?(e.nodeName||"").toLowerCase():null}function Fn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function xi(e){var t=Fn(e).Element;return e instanceof t||e instanceof Element}function tr(e){var t=Fn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function $m(e){if(typeof ShadowRoot>"u")return!1;var t=Fn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function o2(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];!tr(i)||!Ur(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(a){var s=o[a];s===!1?i.removeAttribute(a):i.setAttribute(a,s===!0?"":s)}))})}function i2(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=a.reduce(function(l,c){return l[c]="",l},{});!tr(o)||!Ur(o)||(Object.assign(o.style,s),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}const a2={name:"applyStyles",enabled:!0,phase:"write",fn:o2,effect:i2,requires:["computeStyles"]};function Vr(e){return e.split("-")[0]}var ui=Math.max,Pu=Math.min,$a=Math.round;function Xp(){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 iw(){return!/^((?!chrome|android).)*safari/i.test(Xp())}function Aa(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&tr(e)&&(o=e.offsetWidth>0&&$a(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&$a(r.height)/e.offsetHeight||1);var a=xi(e)?Fn(e):window,s=a.visualViewport,l=!iw()&&n,c=(r.left+(l&&s?s.offsetLeft:0))/o,u=(r.top+(l&&s?s.offsetTop:0))/i,d=r.width/o,f=r.height/i;return{width:d,height:f,top:u,right:c+d,bottom:u+f,left:c,x:c,y:u}}function Am(e){var t=Aa(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 aw(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&$m(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function uo(e){return Fn(e).getComputedStyle(e)}function s2(e){return["table","td","th"].indexOf(Ur(e))>=0}function Uo(e){return((xi(e)?e.ownerDocument:e.document)||window.document).documentElement}function Td(e){return Ur(e)==="html"?e:e.assignedSlot||e.parentNode||($m(e)?e.host:null)||Uo(e)}function hv(e){return!tr(e)||uo(e).position==="fixed"?null:e.offsetParent}function l2(e){var t=/firefox/i.test(Xp()),n=/Trident/i.test(Xp());if(n&&tr(e)){var r=uo(e);if(r.position==="fixed")return null}var o=Td(e);for($m(o)&&(o=o.host);tr(o)&&["html","body"].indexOf(Ur(o))<0;){var i=uo(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 zl(e){for(var t=Fn(e),n=hv(e);n&&s2(n)&&uo(n).position==="static";)n=hv(n);return n&&(Ur(n)==="html"||Ur(n)==="body"&&uo(n).position==="static")?t:n||l2(e)||t}function Lm(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Vs(e,t,n){return ui(e,Pu(t,n))}function c2(e,t,n){var r=Vs(e,t,n);return r>n?n:r}function sw(){return{top:0,right:0,bottom:0,left:0}}function lw(e){return Object.assign({},sw(),e)}function cw(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var u2=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,lw(typeof t!="number"?t:cw(t,Bl))};function d2(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=Vr(n.placement),l=Lm(s),c=[wn,ir].indexOf(s)>=0,u=c?"height":"width";if(!(!i||!a)){var d=u2(o.padding,n),f=Am(i),y=l==="y"?bn:wn,g=l==="y"?or:ir,S=n.rects.reference[u]+n.rects.reference[l]-a[l]-n.rects.popper[u],C=a[l]-n.rects.reference[l],h=zl(i),m=h?l==="y"?h.clientHeight||0:h.clientWidth||0:0,v=S/2-C/2,b=d[y],E=m-f[u]-d[g],k=m/2-f[u]/2+v,M=Vs(b,k,E),P=l;n.modifiersData[r]=(t={},t[P]=M,t.centerOffset=M-k,t)}}function f2(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)||aw(t.elements.popper,o)&&(t.elements.arrow=o))}const p2={name:"arrow",enabled:!0,phase:"main",fn:d2,effect:f2,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function La(e){return e.split("-")[1]}var h2={top:"auto",right:"auto",bottom:"auto",left:"auto"};function m2(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:$a(n*o)/o||0,y:$a(r*o)/o||0}}function mv(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=a.x,y=f===void 0?0:f,g=a.y,S=g===void 0?0:g,C=typeof u=="function"?u({x:y,y:S}):{x:y,y:S};y=C.x,S=C.y;var h=a.hasOwnProperty("x"),m=a.hasOwnProperty("y"),v=wn,b=bn,E=window;if(c){var k=zl(n),M="clientHeight",P="clientWidth";if(k===Fn(n)&&(k=Uo(n),uo(k).position!=="static"&&s==="absolute"&&(M="scrollHeight",P="scrollWidth")),k=k,o===bn||(o===wn||o===ir)&&i===yl){b=or;var $=d&&k===E&&E.visualViewport?E.visualViewport.height:k[M];S-=$-r.height,S*=l?1:-1}if(o===wn||(o===bn||o===or)&&i===yl){v=ir;var w=d&&k===E&&E.visualViewport?E.visualViewport.width:k[P];y-=w-r.width,y*=l?1:-1}}var R=Object.assign({position:s},c&&h2),A=u===!0?m2({x:y,y:S},Fn(n)):{x:y,y:S};if(y=A.x,S=A.y,l){var j;return Object.assign({},R,(j={},j[b]=m?"0":"",j[v]=h?"0":"",j.transform=(E.devicePixelRatio||1)<=1?"translate("+y+"px, "+S+"px)":"translate3d("+y+"px, "+S+"px, 0)",j))}return Object.assign({},R,(t={},t[b]=m?S+"px":"",t[v]=h?y+"px":"",t.transform="",t))}function g2(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,a=i===void 0?!0:i,s=n.roundOffsets,l=s===void 0?!0:s,c={placement:Vr(t.placement),variation:La(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,mv(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,mv(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const y2={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:g2,data:{}};var xc={passive:!0};function v2(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,a=r.resize,s=a===void 0?!0:a,l=Fn(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(u){u.addEventListener("scroll",n.update,xc)}),s&&l.addEventListener("resize",n.update,xc),function(){i&&c.forEach(function(u){u.removeEventListener("scroll",n.update,xc)}),s&&l.removeEventListener("resize",n.update,xc)}}const x2={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:v2,data:{}};var S2={left:"right",right:"left",bottom:"top",top:"bottom"};function Hc(e){return e.replace(/left|right|bottom|top/g,function(t){return S2[t]})}var b2={start:"end",end:"start"};function gv(e){return e.replace(/start|end/g,function(t){return b2[t]})}function jm(e){var t=Fn(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Nm(e){return Aa(Uo(e)).left+jm(e).scrollLeft}function w2(e,t){var n=Fn(e),r=Uo(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;var c=iw();(c||!c&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s+Nm(e),y:l}}function C2(e){var t,n=Uo(e),r=jm(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=ui(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=ui(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+Nm(e),l=-r.scrollTop;return uo(o||n).direction==="rtl"&&(s+=ui(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}function Fm(e){var t=uo(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function uw(e){return["html","body","#document"].indexOf(Ur(e))>=0?e.ownerDocument.body:tr(e)&&Fm(e)?e:uw(Td(e))}function Ws(e,t){var n;t===void 0&&(t=[]);var r=uw(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=Fn(r),a=o?[i].concat(i.visualViewport||[],Fm(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(Ws(Td(a)))}function qp(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function k2(e,t){var n=Aa(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 yv(e,t,n){return t===rw?qp(w2(e,n)):xi(t)?k2(t,n):qp(C2(Uo(e)))}function E2(e){var t=Ws(Td(e)),n=["absolute","fixed"].indexOf(uo(e).position)>=0,r=n&&tr(e)?zl(e):e;return xi(r)?t.filter(function(o){return xi(o)&&aw(o,r)&&Ur(o)!=="body"}):[]}function P2(e,t,n,r){var o=t==="clippingParents"?E2(e):[].concat(t),i=[].concat(o,[n]),a=i[0],s=i.reduce(function(l,c){var u=yv(e,c,r);return l.top=ui(u.top,l.top),l.right=Pu(u.right,l.right),l.bottom=Pu(u.bottom,l.bottom),l.left=ui(u.left,l.left),l},yv(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function dw(e){var t=e.reference,n=e.element,r=e.placement,o=r?Vr(r):null,i=r?La(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(o){case bn:l={x:a,y:t.y-n.height};break;case or:l={x:a,y:t.y+t.height};break;case ir:l={x:t.x+t.width,y:s};break;case wn:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var c=o?Lm(o):null;if(c!=null){var u=c==="y"?"height":"width";switch(i){case Oa:l[c]=l[c]-(t[u]/2-n[u]/2);break;case yl:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function vl(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,a=i===void 0?e.strategy:i,s=n.boundary,l=s===void 0?YT:s,c=n.rootBoundary,u=c===void 0?rw:c,d=n.elementContext,f=d===void 0?cs:d,y=n.altBoundary,g=y===void 0?!1:y,S=n.padding,C=S===void 0?0:S,h=lw(typeof C!="number"?C:cw(C,Bl)),m=f===cs?KT:cs,v=e.rects.popper,b=e.elements[g?m:f],E=P2(xi(b)?b:b.contextElement||Uo(e.elements.popper),l,u,a),k=Aa(e.elements.reference),M=dw({reference:k,element:v,strategy:"absolute",placement:o}),P=qp(Object.assign({},v,M)),$=f===cs?P:k,w={top:E.top-$.top+h.top,bottom:$.bottom-E.bottom+h.bottom,left:E.left-$.left+h.left,right:$.right-E.right+h.right},R=e.modifiersData.offset;if(f===cs&&R){var A=R[o];Object.keys(w).forEach(function(j){var O=[ir,or].indexOf(j)>=0?1:-1,T=[bn,or].indexOf(j)>=0?"y":"x";w[j]+=A[T]*O})}return w}function M2(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?ow:l,u=La(r),d=u?s?pv:pv.filter(function(g){return La(g)===u}):Bl,f=d.filter(function(g){return c.indexOf(g)>=0});f.length===0&&(f=d);var y=f.reduce(function(g,S){return g[S]=vl(e,{placement:S,boundary:o,rootBoundary:i,padding:a})[Vr(S)],g},{});return Object.keys(y).sort(function(g,S){return y[g]-y[S]})}function R2(e){if(Vr(e)===Om)return[];var t=Hc(e);return[gv(e),t,gv(t)]}function D2(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,s=a===void 0?!0:a,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,y=n.flipVariations,g=y===void 0?!0:y,S=n.allowedAutoPlacements,C=t.options.placement,h=Vr(C),m=h===C,v=l||(m||!g?[Hc(C)]:R2(C)),b=[C].concat(v).reduce(function(X,H){return X.concat(Vr(H)===Om?M2(t,{placement:H,boundary:u,rootBoundary:d,padding:c,flipVariations:g,allowedAutoPlacements:S}):H)},[]),E=t.rects.reference,k=t.rects.popper,M=new Map,P=!0,$=b[0],w=0;w=0,T=O?"width":"height",I=vl(t,{placement:R,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),N=O?j?ir:wn:j?or:bn;E[T]>k[T]&&(N=Hc(N));var D=Hc(N),L=[];if(i&&L.push(I[A]<=0),s&&L.push(I[N]<=0,I[D]<=0),L.every(function(X){return X})){$=R,P=!1;break}M.set(R,L)}if(P)for(var z=g?3:1,V=function(H){var le=b.find(function(ae){var te=M.get(ae);if(te)return te.slice(0,H).every(function(Z){return Z})});if(le)return $=le,"break"},Y=z;Y>0;Y--){var se=V(Y);if(se==="break")break}t.placement!==$&&(t.modifiersData[r]._skip=!0,t.placement=$,t.reset=!0)}}const T2={name:"flip",enabled:!0,phase:"main",fn:D2,requiresIfExists:["offset"],data:{_skip:!1}};function vv(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 xv(e){return[bn,ir,or,wn].some(function(t){return e[t]>=0})}function I2(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=vl(t,{elementContext:"reference"}),s=vl(t,{altBoundary:!0}),l=vv(a,r),c=vv(s,o,i),u=xv(l),d=xv(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}const O2={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:I2};function $2(e,t,n){var r=Vr(e),o=[wn,bn].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[wn,ir].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function A2(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,a=ow.reduce(function(u,d){return u[d]=$2(d,t.rects,i),u},{}),s=a[t.placement],l=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}const L2={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:A2};function j2(e){var t=e.state,n=e.name;t.modifiersData[n]=dw({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const N2={name:"popperOffsets",enabled:!0,phase:"read",fn:j2,data:{}};function F2(e){return e==="x"?"y":"x"}function B2(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,s=a===void 0?!1:a,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,y=f===void 0?!0:f,g=n.tetherOffset,S=g===void 0?0:g,C=vl(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),h=Vr(t.placement),m=La(t.placement),v=!m,b=Lm(h),E=F2(b),k=t.modifiersData.popperOffsets,M=t.rects.reference,P=t.rects.popper,$=typeof S=="function"?S(Object.assign({},t.rects,{placement:t.placement})):S,w=typeof $=="number"?{mainAxis:$,altAxis:$}:Object.assign({mainAxis:0,altAxis:0},$),R=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,A={x:0,y:0};if(k){if(i){var j,O=b==="y"?bn:wn,T=b==="y"?or:ir,I=b==="y"?"height":"width",N=k[b],D=N+C[O],L=N-C[T],z=y?-P[I]/2:0,V=m===Oa?M[I]:P[I],Y=m===Oa?-P[I]:-M[I],se=t.elements.arrow,X=y&&se?Am(se):{width:0,height:0},H=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:sw(),le=H[O],ae=H[T],te=Vs(0,M[I],X[I]),Z=v?M[I]/2-z-te-le-w.mainAxis:V-te-le-w.mainAxis,re=v?-M[I]/2+z+te+ae+w.mainAxis:Y+te+ae+w.mainAxis,ie=t.elements.arrow&&zl(t.elements.arrow),W=ie?b==="y"?ie.clientTop||0:ie.clientLeft||0:0,F=(j=R==null?void 0:R[b])!=null?j:0,K=N+Z-F-W,Q=N+re-F,ne=Vs(y?Pu(D,K):D,N,y?ui(L,Q):L);k[b]=ne,A[b]=ne-N}if(s){var ue,ee=b==="x"?bn:wn,fe=b==="x"?or:ir,ve=k[E],Le=E==="y"?"height":"width",xe=ve+C[ee],tt=ve-C[fe],Pe=[bn,wn].indexOf(h)!==-1,_e=(ue=R==null?void 0:R[E])!=null?ue:0,ut=Pe?xe:ve-M[Le]-P[Le]-_e+w.altAxis,je=Pe?ve+M[Le]+P[Le]-_e-w.altAxis:tt,Oe=y&&Pe?c2(ut,ve,je):Vs(y?ut:xe,ve,y?je:tt);k[E]=Oe,A[E]=Oe-ve}t.modifiersData[r]=A}}const z2={name:"preventOverflow",enabled:!0,phase:"main",fn:B2,requiresIfExists:["offset"]};function _2(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function V2(e){return e===Fn(e)||!tr(e)?jm(e):_2(e)}function W2(e){var t=e.getBoundingClientRect(),n=$a(t.width)/e.offsetWidth||1,r=$a(t.height)/e.offsetHeight||1;return n!==1||r!==1}function U2(e,t,n){n===void 0&&(n=!1);var r=tr(t),o=tr(t)&&W2(t),i=Uo(t),a=Aa(e,o,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Ur(t)!=="body"||Fm(i))&&(s=V2(t)),tr(t)?(l=Aa(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=Nm(i))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function H2(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&o(l)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function Y2(e){var t=H2(e);return r2.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function K2(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function G2(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 Sv={placement:"bottom",modifiers:[],strategy:"absolute"};function bv(){for(var e=arguments.length,t=new Array(e),n=0;n{i||s(Z2(o)||document.body)},[o,i]),Ut(()=>{if(a&&!i)return Up(n,a),()=>{Up(n,null)}},[n,a,i]),i){if(p.isValidElement(r)){const c={ref:l};return p.cloneElement(r,c)}return r}return a&&ed.createPortal(r,a)});function J2(e){return ge("MuiPopper",e)}me("MuiPopper",["root"]);function eI(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 Zp(e){return typeof e=="function"?e():e}function tI(e){return e.nodeType!==void 0}const nI=e=>{const{classes:t}=e;return ye({root:["root"]},J2,t)},rI={},oI=p.forwardRef(function(t,n){const{anchorEl:r,children:o,direction:i,disablePortal:a,modifiers:s,open:l,placement:c,popperOptions:u,popperRef:d,slotProps:f={},slots:y={},TransitionProps:g,ownerState:S,...C}=t,h=p.useRef(null),m=Ye(h,n),v=p.useRef(null),b=Ye(v,d),E=p.useRef(b);Ut(()=>{E.current=b},[b]),p.useImperativeHandle(d,()=>v.current,[]);const k=eI(c,i),[M,P]=p.useState(k),[$,w]=p.useState(Zp(r));p.useEffect(()=>{v.current&&v.current.forceUpdate()}),p.useEffect(()=>{r&&w(Zp(r))},[r]),Ut(()=>{if(!$||!l)return;const T=D=>{P(D.placement)};let I=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:D})=>{T(D)}}];s!=null&&(I=I.concat(s)),u&&u.modifiers!=null&&(I=I.concat(u.modifiers));const N=q2($,h.current,{placement:k,...u,modifiers:I});return E.current(N),()=>{N.destroy(),E.current(null)}},[$,a,s,l,u,k]);const R={placement:M};g!==null&&(R.TransitionProps=g);const A=nI(t),j=y.root??"div",O=Qe({elementType:j,externalSlotProps:f.root,externalForwardedProps:C,additionalProps:{role:"tooltip",ref:m},ownerState:t,className:A.root});return x.jsx(j,{...O,children:typeof o=="function"?o(R):o})}),iI=p.forwardRef(function(t,n){const{anchorEl:r,children:o,container:i,direction:a="ltr",disablePortal:s=!1,keepMounted:l=!1,modifiers:c,open:u,placement:d="bottom",popperOptions:f=rI,popperRef:y,style:g,transition:S=!1,slotProps:C={},slots:h={},...m}=t,[v,b]=p.useState(!0),E=()=>{b(!1)},k=()=>{b(!0)};if(!l&&!u&&(!S||v))return null;let M;if(i)M=i;else if(r){const w=Zp(r);M=w&&tI(w)?Wt(w).body:Wt(null).body}const P=!u&&l&&(!S||v)?"none":void 0,$=S?{in:u,onEnter:E,onExited:k}:void 0;return x.jsx(fw,{disablePortal:s,container:M,children:x.jsx(oI,{anchorEl:r,direction:a,disablePortal:s,modifiers:c,ref:n,open:S?!v:u,placement:d,popperOptions:f,popperRef:y,slotProps:C,slots:h,...m,style:{position:"fixed",top:0,left:0,display:P,...g},TransitionProps:$,children:o})})}),aI=G(iI,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),sI=p.forwardRef(function(t,n){const r=lr(),o=Ie({props:t,name:"MuiPopper"}),{anchorEl:i,component:a,components:s,componentsProps:l,container:c,disablePortal:u,keepMounted:d,modifiers:f,open:y,placement:g,popperOptions:S,popperRef:C,transition:h,slots:m,slotProps:v,...b}=o,E=(m==null?void 0:m.root)??(s==null?void 0:s.Root),k={anchorEl:i,container:c,disablePortal:u,keepMounted:d,modifiers:f,open:y,placement:g,popperOptions:S,popperRef:C,transition:h,...b};return x.jsx(aI,{as:a,direction:r?"rtl":"ltr",slots:{root:E},slotProps:v??l,...k,ref:n})}),lI=Ht(x.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 cI(e){return ge("MuiChip",e)}const Ve=me("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"]),uI=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:i,onDelete:a,clickable:s,variant:l}=e,c={root:["root",l,n&&"disabled",`size${ce(r)}`,`color${ce(o)}`,s&&"clickable",s&&`clickableColor${ce(o)}`,a&&"deletable",a&&`deletableColor${ce(o)}`,`${l}${ce(o)}`],label:["label",`label${ce(r)}`],avatar:["avatar",`avatar${ce(r)}`,`avatarColor${ce(o)}`],icon:["icon",`icon${ce(r)}`,`iconColor${ce(i)}`],deleteIcon:["deleteIcon",`deleteIcon${ce(r)}`,`deleteIconColor${ce(o)}`,`deleteIcon${ce(l)}Color${ce(o)}`]};return ye(c,cI,t)},dI=G("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:i,onDelete:a,size:s,variant:l}=n;return[{[`& .${Ve.avatar}`]:t.avatar},{[`& .${Ve.avatar}`]:t[`avatar${ce(s)}`]},{[`& .${Ve.avatar}`]:t[`avatarColor${ce(r)}`]},{[`& .${Ve.icon}`]:t.icon},{[`& .${Ve.icon}`]:t[`icon${ce(s)}`]},{[`& .${Ve.icon}`]:t[`iconColor${ce(o)}`]},{[`& .${Ve.deleteIcon}`]:t.deleteIcon},{[`& .${Ve.deleteIcon}`]:t[`deleteIcon${ce(s)}`]},{[`& .${Ve.deleteIcon}`]:t[`deleteIconColor${ce(r)}`]},{[`& .${Ve.deleteIcon}`]:t[`deleteIcon${ce(l)}Color${ce(r)}`]},t.root,t[`size${ce(s)}`],t[`color${ce(r)}`],i&&t.clickable,i&&r!=="default"&&t[`clickableColor${ce(r)})`],a&&t.deletable,a&&r!=="default"&&t[`deletableColor${ce(r)}`],t[l],t[`${l}${ce(r)}`]]}})(Be(({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,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",[`&.${Ve.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Ve.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${Ve.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Ve.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Ve.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Ve.icon}`]:{marginLeft:5,marginRight:-6},[`& .${Ve.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:ze(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:ze(e.palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${Ve.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${Ve.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(Kt(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText,[`& .${Ve.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[n].contrastTextChannel} / 0.7)`:ze(e.palette[n].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].contrastText}}}})),{props:n=>n.iconColor===n.color,style:{[`& .${Ve.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${Ve.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${Ve.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ze(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}},...Object.entries(e.palette).filter(Kt(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${Ve.focusVisible}`]:{background:(e.vars||e).palette[n].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:ze(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${Ve.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ze(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(Kt(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${Ve.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]}`,[`&.${Ve.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Ve.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Ve.avatar}`]:{marginLeft:4},[`& .${Ve.avatarSmall}`]:{marginLeft:2},[`& .${Ve.icon}`]:{marginLeft:4},[`& .${Ve.iconSmall}`]:{marginLeft:2},[`& .${Ve.deleteIcon}`]:{marginRight:5},[`& .${Ve.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(Kt()).map(([n])=>({props:{variant:"outlined",color:n},style:{color:(e.vars||e).palette[n].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[n].mainChannel} / 0.7)`:ze(e.palette[n].main,.7)}`,[`&.${Ve.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ze(e.palette[n].main,e.palette.action.hoverOpacity)},[`&.${Ve.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.focusOpacity})`:ze(e.palette[n].main,e.palette.action.focusOpacity)},[`& .${Ve.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[n].mainChannel} / 0.7)`:ze(e.palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),fI=G("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${ce(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 wv(e){return e.key==="Backspace"||e.key==="Delete"}const pI=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiChip"}),{avatar:o,className:i,clickable:a,color:s="default",component:l,deleteIcon:c,disabled:u=!1,icon:d,label:f,onClick:y,onDelete:g,onKeyDown:S,onKeyUp:C,size:h="medium",variant:m="filled",tabIndex:v,skipFocusWhenDisabled:b=!1,...E}=r,k=p.useRef(null),M=Ye(k,n),P=L=>{L.stopPropagation(),g&&g(L)},$=L=>{L.currentTarget===L.target&&wv(L)&&L.preventDefault(),S&&S(L)},w=L=>{L.currentTarget===L.target&&g&&wv(L)&&g(L),C&&C(L)},R=a!==!1&&y?!0:a,A=R||g?Ia:l||"div",j={...r,component:A,disabled:u,size:h,color:s,iconColor:p.isValidElement(d)&&d.props.color||s,onDelete:!!g,clickable:R,variant:m},O=uI(j),T=A===Ia?{component:l||"div",focusVisibleClassName:O.focusVisible,...g&&{disableRipple:!0}}:{};let I=null;g&&(I=c&&p.isValidElement(c)?p.cloneElement(c,{className:pe(c.props.className,O.deleteIcon),onClick:P}):x.jsx(lI,{className:pe(O.deleteIcon),onClick:P}));let N=null;o&&p.isValidElement(o)&&(N=p.cloneElement(o,{className:pe(O.avatar,o.props.className)}));let D=null;return d&&p.isValidElement(d)&&(D=p.cloneElement(d,{className:pe(O.icon,d.props.className)})),x.jsxs(dI,{as:A,className:pe(O.root,i),disabled:R&&u?!0:void 0,onClick:y,onKeyDown:$,onKeyUp:w,ref:M,tabIndex:b&&u?-1:v,ownerState:j,...T,...E,children:[N||D,x.jsx(fI,{className:pe(O.label),ownerState:j,children:f}),I]})});function Sc(e){return parseInt(e,10)||0}const hI={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function mI(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const gI=p.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:i=1,style:a,value:s,...l}=t,{current:c}=p.useRef(s!=null),u=p.useRef(null),d=Ye(n,u),f=p.useRef(null),y=p.useRef(null),g=p.useCallback(()=>{const h=u.current,v=Sr(h).getComputedStyle(h);if(v.width==="0px")return{outerHeightStyle:0,overflowing:!1};const b=y.current;b.style.width=v.width,b.value=h.value||t.placeholder||"x",b.value.slice(-1)===` +`&&(b.value+=" ");const E=v.boxSizing,k=Sc(v.paddingBottom)+Sc(v.paddingTop),M=Sc(v.borderBottomWidth)+Sc(v.borderTopWidth),P=b.scrollHeight;b.value="x";const $=b.scrollHeight;let w=P;i&&(w=Math.max(Number(i)*$,w)),o&&(w=Math.min(Number(o)*$,w)),w=Math.max(w,$);const R=w+(E==="border-box"?k+M:0),A=Math.abs(w-P)<=1;return{outerHeightStyle:R,overflowing:A}},[o,i,t.placeholder]),S=p.useCallback(()=>{const h=g();if(mI(h))return;const m=h.outerHeightStyle,v=u.current;f.current!==m&&(f.current=m,v.style.height=`${m}px`),v.style.overflow=h.overflowing?"hidden":""},[g]);Ut(()=>{const h=()=>{S()};let m;const v=Sm(h),b=u.current,E=Sr(b);E.addEventListener("resize",v);let k;return typeof ResizeObserver<"u"&&(k=new ResizeObserver(h),k.observe(b)),()=>{v.clear(),cancelAnimationFrame(m),E.removeEventListener("resize",v),k&&k.disconnect()}},[g,S]),Ut(()=>{S()});const C=h=>{c||S(),r&&r(h)};return x.jsxs(p.Fragment,{children:[x.jsx("textarea",{value:s,onChange:C,ref:d,rows:i,style:a,...l}),x.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:y,tabIndex:-1,style:{...hI.shadow,...a,paddingTop:0,paddingBottom:0}})]})});function xl(e){return typeof e=="string"}function Ya({props:e,states:t,muiFormControl:n}){return t.reduce((r,o)=>(r[o]=e[o],n&&typeof e[o]>"u"&&(r[o]=n[o]),r),{})}const Id=p.createContext(void 0);function kr(){return p.useContext(Id)}function Cv(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Mu(e,t=!1){return e&&(Cv(e.value)&&e.value!==""||t&&Cv(e.defaultValue)&&e.defaultValue!=="")}function yI(e){return e.startAdornment}function vI(e){return ge("MuiInputBase",e)}const ja=me("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var kv;const Od=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${ce(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},$d=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},xI=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:s,fullWidth:l,hiddenLabel:c,multiline:u,readOnly:d,size:f,startAdornment:y,type:g}=e,S={root:["root",`color${ce(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",f&&f!=="medium"&&`size${ce(f)}`,u&&"multiline",y&&"adornedStart",i&&"adornedEnd",c&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled",g==="search"&&"inputTypeSearch",u&&"inputMultiline",f==="small"&&"inputSizeSmall",c&&"inputHiddenLabel",y&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]};return ye(S,vI,t)},Ad=G("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Od})(Be(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${ja.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:n})=>t.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),Ld=G("input",{name:"MuiInputBase",slot:"Input",overridesResolver:$d})(Be(({theme:e})=>{const t=e.palette.mode==="light",n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},o=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${ja.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${ja.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:i})=>!i.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:i})=>i.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),Ev=Mm({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),Bm=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,className:s,color:l,components:c={},componentsProps:u={},defaultValue:d,disabled:f,disableInjectingGlobalStyles:y,endAdornment:g,error:S,fullWidth:C=!1,id:h,inputComponent:m="input",inputProps:v={},inputRef:b,margin:E,maxRows:k,minRows:M,multiline:P=!1,name:$,onBlur:w,onChange:R,onClick:A,onFocus:j,onKeyDown:O,onKeyUp:T,placeholder:I,readOnly:N,renderSuffix:D,rows:L,size:z,slotProps:V={},slots:Y={},startAdornment:se,type:X="text",value:H,...le}=r,ae=v.value!=null?v.value:H,{current:te}=p.useRef(ae!=null),Z=p.useRef(),re=p.useCallback(Ne=>{},[]),ie=Ye(Z,b,v.ref,re),[W,F]=p.useState(!1),K=kr(),Q=Ya({props:r,muiFormControl:K,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Q.focused=K?K.focused:W,p.useEffect(()=>{!K&&f&&W&&(F(!1),w&&w())},[K,f,W,w]);const ne=K&&K.onFilled,ue=K&&K.onEmpty,ee=p.useCallback(Ne=>{Mu(Ne)?ne&&ne():ue&&ue()},[ne,ue]);Ut(()=>{te&&ee({value:ae})},[ae,ee,te]);const fe=Ne=>{j&&j(Ne),v.onFocus&&v.onFocus(Ne),K&&K.onFocus?K.onFocus(Ne):F(!0)},ve=Ne=>{w&&w(Ne),v.onBlur&&v.onBlur(Ne),K&&K.onBlur?K.onBlur(Ne):F(!1)},Le=(Ne,...st)=>{if(!te){const Hn=Ne.target||Z.current;if(Hn==null)throw new Error(lo(1));ee({value:Hn.value})}v.onChange&&v.onChange(Ne,...st),R&&R(Ne,...st)};p.useEffect(()=>{ee(Z.current)},[]);const xe=Ne=>{Z.current&&Ne.currentTarget===Ne.target&&Z.current.focus(),A&&A(Ne)};let tt=m,Pe=v;P&&tt==="input"&&(L?Pe={type:void 0,minRows:L,maxRows:L,...Pe}:Pe={type:void 0,maxRows:k,minRows:M,...Pe},tt=gI);const _e=Ne=>{ee(Ne.animationName==="mui-auto-fill-cancel"?Z.current:{value:"x"})};p.useEffect(()=>{K&&K.setAdornedStart(!!se)},[K,se]);const ut={...r,color:Q.color||"primary",disabled:Q.disabled,endAdornment:g,error:Q.error,focused:Q.focused,formControl:K,fullWidth:C,hiddenLabel:Q.hiddenLabel,multiline:P,size:Q.size,startAdornment:se,type:X},je=xI(ut),Oe=Y.root||c.Root||Ad,pt=V.root||u.root||{},At=Y.input||c.Input||Ld;return Pe={...Pe,...V.input??u.input},x.jsxs(p.Fragment,{children:[!y&&typeof Ev=="function"&&(kv||(kv=x.jsx(Ev,{}))),x.jsxs(Oe,{...pt,ref:n,onClick:xe,...le,...!xl(Oe)&&{ownerState:{...ut,...pt.ownerState}},className:pe(je.root,pt.className,s,N&&"MuiInputBase-readOnly"),children:[se,x.jsx(Id.Provider,{value:null,children:x.jsx(At,{"aria-invalid":Q.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:d,disabled:Q.disabled,id:h,onAnimationStart:_e,name:$,placeholder:I,readOnly:N,required:Q.required,rows:L,value:ae,onKeyDown:O,onKeyUp:T,type:X,...Pe,...!xl(At)&&{as:tt,ownerState:{...ut,...Pe.ownerState}},ref:ie,className:pe(je.input,Pe.className,N&&"MuiInputBase-readOnly"),onBlur:ve,onChange:Le,onFocus:fe})}),g,D?D({...Q,startAdornment:se}):null]})]})});function SI(e){return ge("MuiInput",e)}const us={...ja,...me("MuiInput",["root","underline","input"])};function bI(e){return ge("MuiOutlinedInput",e)}const Dr={...ja,...me("MuiOutlinedInput",["root","notchedOutline","input"])};function wI(e){return ge("MuiFilledInput",e)}const Ko={...ja,...me("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},CI=Ht(x.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),kI={entering:{opacity:1},entered:{opacity:1}},Ka=p.forwardRef(function(t,n){const r=Cr(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:s,easing:l,in:c,onEnter:u,onEntered:d,onEntering:f,onExit:y,onExited:g,onExiting:S,style:C,timeout:h=o,TransitionComponent:m=cr,...v}=t,b=p.useRef(null),E=Ye(b,Pi(s),n),k=O=>T=>{if(O){const I=b.current;T===void 0?O(I):O(I,T)}},M=k(f),P=k((O,T)=>{Im(O);const I=Ta({style:C,timeout:h,easing:l},{mode:"enter"});O.style.webkitTransition=r.transitions.create("opacity",I),O.style.transition=r.transitions.create("opacity",I),u&&u(O,T)}),$=k(d),w=k(S),R=k(O=>{const T=Ta({style:C,timeout:h,easing:l},{mode:"exit"});O.style.webkitTransition=r.transitions.create("opacity",T),O.style.transition=r.transitions.create("opacity",T),y&&y(O)}),A=k(g),j=O=>{i&&i(b.current,O)};return x.jsx(m,{appear:a,in:c,nodeRef:b,onEnter:P,onEntered:$,onEntering:M,onExit:R,onExited:A,onExiting:w,addEndListener:j,timeout:h,...v,children:(O,T)=>p.cloneElement(s,{style:{opacity:0,visibility:O==="exited"&&!c?"hidden":void 0,...kI[O],...C,...s.props.style},ref:E,...T})})});function EI(e){return ge("MuiBackdrop",e)}me("MuiBackdrop",["root","invisible"]);const PI=e=>{const{ownerState:t,...n}=e;return n},MI=e=>{const{classes:t,invisible:n}=e;return ye({root:["root",n&&"invisible"]},EI,t)},RI=G("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),pw=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiBackdrop"}),{children:o,className:i,component:a="div",invisible:s=!1,open:l,components:c={},componentsProps:u={},slotProps:d={},slots:f={},TransitionComponent:y,transitionDuration:g,...S}=r,C={...r,component:a,invisible:s},h=MI(C),m={transition:y,root:c.Root,...f},v={...u,...d},b={slots:m,slotProps:v},[E,k]=In("root",{elementType:RI,externalForwardedProps:b,className:pe(h.root,i),ownerState:C}),[M,P]=In("transition",{elementType:Ka,externalForwardedProps:b,ownerState:C}),$=PI(P);return x.jsx(M,{in:l,timeout:g,...S,...$,children:x.jsx(E,{"aria-hidden":!0,...k,classes:h,ref:n,children:o})})}),DI=me("MuiBox",["root"]),TI=Rd(),Ot=QM({themeId:er,defaultTheme:TI,defaultClassName:DI.root,generateClassName:Tb.generate});function II(e){return ge("MuiButton",e)}const Vi=me("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"]),OI=p.createContext({}),$I=p.createContext(void 0),AI=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e,s={root:["root",i,`${i}${ce(t)}`,`size${ce(o)}`,`${i}Size${ce(o)}`,`color${ce(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${ce(o)}`],endIcon:["icon","endIcon",`iconSize${ce(o)}`]},l=ye(s,II,a);return{...a,...l}},hw=[{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}}}],LI=G(Ia,{shouldForwardProp:e=>Un(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${ce(n.color)}`],t[`size${ce(n.size)}`],t[`${n.variant}Size${ce(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(Be(({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"},[`&.${Vi.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]},[`&.${Vi.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${Vi.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)",[`&.${Vi.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(Kt()).map(([r])=>({props:{color:r},style:{"--variant-textColor":(e.vars||e).palette[r].main,"--variant-outlinedColor":(e.vars||e).palette[r].main,"--variant-outlinedBorder":e.vars?`rgba(${e.vars.palette[r].mainChannel} / 0.5)`:ze(e.palette[r].main,.5),"--variant-containedColor":(e.vars||e).palette[r].contrastText,"--variant-containedBg":(e.vars||e).palette[r].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[r].dark,"--variant-textBg":e.vars?`rgba(${e.vars.palette[r].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ze(e.palette[r].main,e.palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[r].main,"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette[r].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ze(e.palette[r].main,e.palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:ze(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:ze(e.palette.text.primary,e.palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Vi.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Vi.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}}]}})),jI=G("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${ce(n.size)}`]]}})({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},...hw]}),NI=G("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${ce(n.size)}`]]}})({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},...hw]}),it=p.forwardRef(function(t,n){const r=p.useContext(OI),o=p.useContext($I),i=gl(r,t),a=Ie({props:i,name:"MuiButton"}),{children:s,color:l="primary",component:c="button",className:u,disabled:d=!1,disableElevation:f=!1,disableFocusRipple:y=!1,endIcon:g,focusVisibleClassName:S,fullWidth:C=!1,size:h="medium",startIcon:m,type:v,variant:b="text",...E}=a,k={...a,color:l,component:c,disabled:d,disableElevation:f,disableFocusRipple:y,fullWidth:C,size:h,type:v,variant:b},M=AI(k),P=m&&x.jsx(jI,{className:M.startIcon,ownerState:k,children:m}),$=g&&x.jsx(NI,{className:M.endIcon,ownerState:k,children:g}),w=o||"";return x.jsxs(LI,{ownerState:k,className:pe(r.className,M.root,u,w),component:c,disabled:d,focusRipple:!y,focusVisibleClassName:pe(M.focusVisible,S),ref:n,type:v,...E,classes:M,children:[P,s,$]})});function FI(e){return ge("MuiCard",e)}me("MuiCard",["root"]);const BI=e=>{const{classes:t}=e;return ye({root:["root"]},FI,t)},zI=G(br,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})({overflow:"hidden"}),Sl=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiCard"}),{className:o,raised:i=!1,...a}=r,s={...r,raised:i},l=BI(s);return x.jsx(zI,{className:pe(l.root,o),elevation:i?8:void 0,ref:n,ownerState:s,...a})});function _I(e){return ge("MuiCardContent",e)}me("MuiCardContent",["root"]);const VI=e=>{const{classes:t}=e;return ye({root:["root"]},_I,t)},WI=G("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:16,"&:last-child":{paddingBottom:24}}),mw=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiCardContent"}),{className:o,component:i="div",...a}=r,s={...r,component:i},l=VI(s);return x.jsx(WI,{as:i,className:pe(l.root,o),ownerState:s,ref:n,...a})});function UI(e){return ge("MuiCardMedia",e)}me("MuiCardMedia",["root","media","img"]);const HI=e=>{const{classes:t,isMediaComponent:n,isImageComponent:r}=e;return ye({root:["root",n&&"media",r&&"img"]},UI,t)},YI=G("div",{name:"MuiCardMedia",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{isMediaComponent:r,isImageComponent:o}=n;return[t.root,r&&t.media,o&&t.img]}})({display:"block",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center",variants:[{props:{isMediaComponent:!0},style:{width:"100%"}},{props:{isImageComponent:!0},style:{objectFit:"cover"}}]}),KI=["video","audio","picture","iframe","img"],GI=["picture","img"],QI=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiCardMedia"}),{children:o,className:i,component:a="div",image:s,src:l,style:c,...u}=r,d=KI.includes(a),f=!d&&s?{backgroundImage:`url("${s}")`,...c}:c,y={...r,component:a,isMediaComponent:d,isImageComponent:GI.includes(a)},g=HI(y);return x.jsx(YI,{className:pe(g.root,i),as:a,role:!d&&s?"img":void 0,ref:n,style:f,ownerState:y,src:d?s||l:void 0,...u,children:o})});function XI(e){return ge("MuiCircularProgress",e)}me("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const vo=44,Jp=$l` + 0% { + transform: rotate(0deg); + } + + 100% { + transform: rotate(360deg); + } +`,eh=$l` + 0% { + stroke-dasharray: 1px, 200px; + stroke-dashoffset: 0; + } + + 50% { + stroke-dasharray: 100px, 200px; + stroke-dashoffset: -15px; + } + + 100% { + stroke-dasharray: 100px, 200px; + stroke-dashoffset: -125px; + } +`,qI=typeof Jp!="string"?pm` + animation: ${Jp} 1.4s linear infinite; + `:null,ZI=typeof eh!="string"?pm` + animation: ${eh} 1.4s ease-in-out infinite; + `:null,JI=e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,i={root:["root",n,`color${ce(r)}`],svg:["svg"],circle:["circle",`circle${ce(n)}`,o&&"circleDisableShrink"]};return ye(i,XI,t)},eO=G("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${ce(n.color)}`]]}})(Be(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:qI||{animation:`${Jp} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Kt()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),tO=G("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),nO=G("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${ce(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(Be(({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:ZI||{animation:`${eh} 1.4s ease-in-out infinite`}}]}))),_l=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiCircularProgress"}),{className:o,color:i="primary",disableShrink:a=!1,size:s=40,style:l,thickness:c=3.6,value:u=0,variant:d="indeterminate",...f}=r,y={...r,color:i,disableShrink:a,size:s,thickness:c,value:u,variant:d},g=JI(y),S={},C={},h={};if(d==="determinate"){const m=2*Math.PI*((vo-c)/2);S.strokeDasharray=m.toFixed(3),h["aria-valuenow"]=Math.round(u),S.strokeDashoffset=`${((100-u)/100*m).toFixed(3)}px`,C.transform="rotate(-90deg)"}return x.jsx(eO,{className:pe(g.root,o),style:{width:s,height:s,...C,...l},ownerState:y,ref:n,role:"progressbar",...h,...f,children:x.jsx(tO,{className:g.svg,ownerState:y,viewBox:`${vo/2} ${vo/2} ${vo} ${vo}`,children:x.jsx(nO,{className:g.circle,style:S,ownerState:y,cx:vo,cy:vo,r:(vo-c)/2,fill:"none",strokeWidth:c})})})});function Pv(e){return e.substring(2).toLowerCase()}function rO(e,t){return t.documentElement.clientWidth(setTimeout(()=>{l.current=!0},0),()=>{l.current=!1}),[]);const u=Ye(Pi(t),s),d=Se(g=>{const S=c.current;c.current=!1;const C=Wt(s.current);if(!l.current||!s.current||"clientX"in g&&rO(g,C))return;if(a.current){a.current=!1;return}let h;g.composedPath?h=g.composedPath().includes(s.current):h=!C.documentElement.contains(g.target)||s.current.contains(g.target),!h&&(n||!S)&&o(g)}),f=g=>S=>{c.current=!0;const C=t.props[g];C&&C(S)},y={ref:u};return i!==!1&&(y[i]=f(i)),p.useEffect(()=>{if(i!==!1){const g=Pv(i),S=Wt(s.current),C=()=>{a.current=!0};return S.addEventListener(g,d),S.addEventListener("touchmove",C),()=>{S.removeEventListener(g,d),S.removeEventListener("touchmove",C)}}},[d,i]),r!==!1&&(y[r]=f(r)),p.useEffect(()=>{if(r!==!1){const g=Pv(r),S=Wt(s.current);return S.addEventListener(g,d),()=>{S.removeEventListener(g,d)}}},[d,r]),p.cloneElement(t,y)}const jd=VR({createStyledComponent:G("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${ce(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>Ie({props:e,name:"MuiContainer"})}),th=typeof Mm({})=="function",iO=(e,t)=>({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...t&&!e.vars&&{colorScheme:e.palette.mode}}),aO=e=>({color:(e.vars||e).palette.text.primary,...e.typography.body1,backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),gw=(e,t=!1)=>{var i,a;const n={};t&&e.colorSchemes&&typeof e.getColorSchemeSelector=="function"&&Object.entries(e.colorSchemes).forEach(([s,l])=>{var u,d;const c=e.getColorSchemeSelector(s);c.startsWith("@")?n[c]={":root":{colorScheme:(u=l.palette)==null?void 0:u.mode}}:n[c.replace(/\s*&/,"")]={colorScheme:(d=l.palette)==null?void 0:d.mode}});let r={html:iO(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:{margin:0,...aO(e),"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}},...n};const o=(a=(i=e.components)==null?void 0:i.MuiCssBaseline)==null?void 0:a.styleOverrides;return o&&(r=[r,o]),r},Yc="mui-ecs",sO=e=>{const t=gw(e,!1),n=Array.isArray(t)?t[0]:t;return!e.vars&&n&&(n.html[`:root:has(${Yc})`]={colorScheme:e.palette.mode}),e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([r,o])=>{var a,s;const i=e.getColorSchemeSelector(r);i.startsWith("@")?n[i]={[`:root:not(:has(.${Yc}))`]:{colorScheme:(a=o.palette)==null?void 0:a.mode}}:n[i.replace(/\s*&/,"")]={[`&:not(:has(.${Yc}))`]:{colorScheme:(s=o.palette)==null?void 0:s.mode}}}),t},lO=Mm(th?({theme:e,enableColorScheme:t})=>gw(e,t):({theme:e})=>sO(e));function yw(e){const t=Ie({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return x.jsxs(p.Fragment,{children:[th&&x.jsx(lO,{enableColorScheme:r}),!th&&!r&&x.jsx("span",{className:Yc,style:{display:"none"}}),n]})}function cO(e){const t=Wt(e);return t.body===e?Sr(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Us(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Mv(e){return parseInt(Sr(e).getComputedStyle(e).paddingRight,10)||0}function uO(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function Rv(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,a=>{const s=!i.includes(a),l=!uO(a);s&&l&&Us(a,o)})}function $f(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function dO(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(cO(r)){const a=_b(Sr(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${Mv(r)+a}px`;const s=Wt(r).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${Mv(l)+a}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=Wt(r).body;else{const a=r.parentElement,s=Sr(r);i=(a==null?void 0:a.nodeName)==="HTML"&&s.getComputedStyle(a).overflowY==="scroll"?a:r}n.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{n.forEach(({value:i,el:a,property:s})=>{i?a.style.setProperty(s,i):a.style.removeProperty(s)})}}function fO(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class pO{constructor(){this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&Us(t.modalRef,!1);const o=fO(n);Rv(n,t.mount,t.modalRef,o,!0);const i=$f(this.containers,a=>a.container===n);return i!==-1?(this.containers[i].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=$f(this.containers,i=>i.modals.includes(t)),o=this.containers[r];o.restore||(o.restore=dO(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=$f(this.containers,a=>a.modals.includes(t)),i=this.containers[o];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(r,1),i.modals.length===0)i.restore&&i.restore(),t.modalRef&&Us(t.modalRef,n),Rv(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(o,1);else{const a=i.modals[i.modals.length-1];a.modalRef&&Us(a.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const hO=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function mO(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function gO(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function yO(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||gO(e))}function vO(e){const t=[],n=[];return Array.from(e.querySelectorAll(hO)).forEach((r,o)=>{const i=mO(r);i===-1||!yO(r)||(i===0?t.push(r):n.push({documentOrder:o,tabIndex:i,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function xO(){return!0}function vw(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=vO,isEnabled:a=xO,open:s}=e,l=p.useRef(!1),c=p.useRef(null),u=p.useRef(null),d=p.useRef(null),f=p.useRef(null),y=p.useRef(!1),g=p.useRef(null),S=Ye(Pi(t),g),C=p.useRef(null);p.useEffect(()=>{!s||!g.current||(y.current=!n)},[n,s]),p.useEffect(()=>{if(!s||!g.current)return;const v=Wt(g.current);return g.current.contains(v.activeElement)||(g.current.hasAttribute("tabIndex")||g.current.setAttribute("tabIndex","-1"),y.current&&g.current.focus()),()=>{o||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}},[s]),p.useEffect(()=>{if(!s||!g.current)return;const v=Wt(g.current),b=M=>{C.current=M,!(r||!a()||M.key!=="Tab")&&v.activeElement===g.current&&M.shiftKey&&(l.current=!0,u.current&&u.current.focus())},E=()=>{var $,w;const M=g.current;if(M===null)return;if(!v.hasFocus()||!a()||l.current){l.current=!1;return}if(M.contains(v.activeElement)||r&&v.activeElement!==c.current&&v.activeElement!==u.current)return;if(v.activeElement!==f.current)f.current=null;else if(f.current!==null)return;if(!y.current)return;let P=[];if((v.activeElement===c.current||v.activeElement===u.current)&&(P=i(g.current)),P.length>0){const R=!!(($=C.current)!=null&&$.shiftKey&&((w=C.current)==null?void 0:w.key)==="Tab"),A=P[0],j=P[P.length-1];typeof A!="string"&&typeof j!="string"&&(R?j.focus():A.focus())}else M.focus()};v.addEventListener("focusin",E),v.addEventListener("keydown",b,!0);const k=setInterval(()=>{v.activeElement&&v.activeElement.tagName==="BODY"&&E()},50);return()=>{clearInterval(k),v.removeEventListener("focusin",E),v.removeEventListener("keydown",b,!0)}},[n,r,o,a,s,i]);const h=v=>{d.current===null&&(d.current=v.relatedTarget),y.current=!0,f.current=v.target;const b=t.props.onFocus;b&&b(v)},m=v=>{d.current===null&&(d.current=v.relatedTarget),y.current=!0};return x.jsxs(p.Fragment,{children:[x.jsx("div",{tabIndex:s?0:-1,onFocus:m,ref:c,"data-testid":"sentinelStart"}),p.cloneElement(t,{ref:S,onFocus:h}),x.jsx("div",{tabIndex:s?0:-1,onFocus:m,ref:u,"data-testid":"sentinelEnd"})]})}function SO(e){return typeof e=="function"?e():e}function bO(e){return e?e.props.hasOwnProperty("in"):!1}const Dv=()=>{},bc=new pO;function wO(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:o=!1,onTransitionEnter:i,onTransitionExited:a,children:s,onClose:l,open:c,rootRef:u}=e,d=p.useRef({}),f=p.useRef(null),y=p.useRef(null),g=Ye(y,u),[S,C]=p.useState(!c),h=bO(s);let m=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(m=!1);const v=()=>Wt(f.current),b=()=>(d.current.modalRef=y.current,d.current.mount=f.current,d.current),E=()=>{bc.mount(b(),{disableScrollLock:r}),y.current&&(y.current.scrollTop=0)},k=Se(()=>{const T=SO(t)||v().body;bc.add(b(),T),y.current&&E()}),M=()=>bc.isTopModal(b()),P=Se(T=>{f.current=T,T&&(c&&M()?E():y.current&&Us(y.current,m))}),$=p.useCallback(()=>{bc.remove(b(),m)},[m]);p.useEffect(()=>()=>{$()},[$]),p.useEffect(()=>{c?k():(!h||!o)&&$()},[c,$,h,o,k]);const w=T=>I=>{var N;(N=T.onKeyDown)==null||N.call(T,I),!(I.key!=="Escape"||I.which===229||!M())&&(n||(I.stopPropagation(),l&&l(I,"escapeKeyDown")))},R=T=>I=>{var N;(N=T.onClick)==null||N.call(T,I),I.target===I.currentTarget&&l&&l(I,"backdropClick")};return{getRootProps:(T={})=>{const I=bu(e);delete I.onTransitionEnter,delete I.onTransitionExited;const N={...I,...T};return{role:"presentation",...N,onKeyDown:w(N),ref:g}},getBackdropProps:(T={})=>{const I=T;return{"aria-hidden":!0,...I,onClick:R(I),open:c}},getTransitionProps:()=>{const T=()=>{C(!1),i&&i()},I=()=>{C(!0),a&&a(),o&&$()};return{onEnter:Vy(T,(s==null?void 0:s.props.onEnter)??Dv),onExited:Vy(I,(s==null?void 0:s.props.onExited)??Dv)}},rootRef:g,portalRef:P,isTopModal:M,exited:S,hasTransition:h}}function CO(e){return ge("MuiModal",e)}me("MuiModal",["root","hidden","backdrop"]);const kO=e=>{const{open:t,exited:n,classes:r}=e;return ye({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},CO,r)},EO=G("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(Be(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),PO=G(pw,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),zm=p.forwardRef(function(t,n){const r=Ie({name:"MuiModal",props:t}),{BackdropComponent:o=PO,BackdropProps:i,classes:a,className:s,closeAfterTransition:l=!1,children:c,container:u,component:d,components:f={},componentsProps:y={},disableAutoFocus:g=!1,disableEnforceFocus:S=!1,disableEscapeKeyDown:C=!1,disablePortal:h=!1,disableRestoreFocus:m=!1,disableScrollLock:v=!1,hideBackdrop:b=!1,keepMounted:E=!1,onBackdropClick:k,onClose:M,onTransitionEnter:P,onTransitionExited:$,open:w,slotProps:R={},slots:A={},theme:j,...O}=r,T={...r,closeAfterTransition:l,disableAutoFocus:g,disableEnforceFocus:S,disableEscapeKeyDown:C,disablePortal:h,disableRestoreFocus:m,disableScrollLock:v,hideBackdrop:b,keepMounted:E},{getRootProps:I,getBackdropProps:N,getTransitionProps:D,portalRef:L,isTopModal:z,exited:V,hasTransition:Y}=wO({...T,rootRef:n}),se={...T,exited:V},X=kO(se),H={};if(c.props.tabIndex===void 0&&(H.tabIndex="-1"),Y){const{onEnter:W,onExited:F}=D();H.onEnter=W,H.onExited=F}const le={...O,slots:{root:f.Root,backdrop:f.Backdrop,...A},slotProps:{...y,...R}},[ae,te]=In("root",{elementType:EO,externalForwardedProps:le,getSlotProps:I,additionalProps:{ref:n,as:d},ownerState:se,className:pe(s,X==null?void 0:X.root,!se.open&&se.exited&&(X==null?void 0:X.hidden))}),[Z,re]=In("backdrop",{elementType:o,externalForwardedProps:le,additionalProps:i,getSlotProps:W=>N({...W,onClick:F=>{k&&k(F),W!=null&&W.onClick&&W.onClick(F)}}),className:pe(i==null?void 0:i.className,X==null?void 0:X.backdrop),ownerState:se}),ie=Ye(i==null?void 0:i.ref,re.ref);return!E&&!w&&(!Y||V)?null:x.jsx(fw,{ref:L,container:u,disablePortal:h,children:x.jsxs(ae,{...te,children:[!b&&o?x.jsx(Z,{...re,ref:ie}):null,x.jsx(vw,{disableEnforceFocus:S,disableAutoFocus:g,disableRestoreFocus:m,isEnabled:z,open:w,children:p.cloneElement(c,H)})]})})});function MO(e){return ge("MuiDialog",e)}const Hs=me("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),xw=p.createContext({}),RO=G(pw,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),DO=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:i}=e,a={root:["root"],container:["container",`scroll${ce(n)}`],paper:["paper",`paperScroll${ce(n)}`,`paperWidth${ce(String(r))}`,o&&"paperFullWidth",i&&"paperFullScreen"]};return ye(a,MO,t)},TO=G(zm,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),IO=G("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${ce(n.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),OO=G(br,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${ce(n.scroll)}`],t[`paperWidth${ce(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(Be(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:t})=>!t.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${Hs.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(t=>t!=="xs").map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${Hs.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+32*2)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:t})=>t.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:t})=>t.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${Hs.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),_m=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiDialog"}),o=Cr(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":s,"aria-modal":l=!0,BackdropComponent:c,BackdropProps:u,children:d,className:f,disableEscapeKeyDown:y=!1,fullScreen:g=!1,fullWidth:S=!1,maxWidth:C="sm",onBackdropClick:h,onClick:m,onClose:v,open:b,PaperComponent:E=br,PaperProps:k={},scroll:M="paper",TransitionComponent:P=Ka,transitionDuration:$=i,TransitionProps:w,...R}=r,A={...r,disableEscapeKeyDown:y,fullScreen:g,fullWidth:S,maxWidth:C,scroll:M},j=DO(A),O=p.useRef(),T=L=>{O.current=L.target===L.currentTarget},I=L=>{m&&m(L),O.current&&(O.current=null,h&&h(L),v&&v(L,"backdropClick"))},N=Wo(s),D=p.useMemo(()=>({titleId:N}),[N]);return x.jsx(TO,{className:pe(j.root,f),closeAfterTransition:!0,components:{Backdrop:RO},componentsProps:{backdrop:{transitionDuration:$,as:c,...u}},disableEscapeKeyDown:y,onClose:v,open:b,ref:n,onClick:I,ownerState:A,...R,children:x.jsx(P,{appear:!0,in:b,timeout:$,role:"presentation",...w,children:x.jsx(IO,{className:pe(j.container),onMouseDown:T,ownerState:A,children:x.jsx(OO,{as:E,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":N,"aria-modal":l,...k,className:pe(j.paper,k.className),ownerState:A,children:x.jsx(xw.Provider,{value:D,children:d})})})})})});function $O(e){return ge("MuiDialogActions",e)}me("MuiDialogActions",["root","spacing"]);const AO=e=>{const{classes:t,disableSpacing:n}=e;return ye({root:["root",!n&&"spacing"]},$O,t)},LO=G("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}}}]}),Vm=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:i=!1,...a}=r,s={...r,disableSpacing:i},l=AO(s);return x.jsx(LO,{className:pe(l.root,o),ownerState:s,ref:n,...a})});function jO(e){return ge("MuiDialogContent",e)}me("MuiDialogContent",["root","dividers"]);function NO(e){return ge("MuiDialogTitle",e)}const FO=me("MuiDialogTitle",["root"]),BO=e=>{const{classes:t,dividers:n}=e;return ye({root:["root",n&&"dividers"]},jO,t)},zO=G("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(Be(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:t})=>t.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>!t.dividers,style:{[`.${FO.root} + &`]:{paddingTop:0}}}]}))),Wm=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiDialogContent"}),{className:o,dividers:i=!1,...a}=r,s={...r,dividers:i},l=BO(s);return x.jsx(zO,{className:pe(l.root,o),ownerState:s,ref:n,...a})}),_O=e=>{const{classes:t}=e;return ye({root:["root"]},NO,t)},VO=G(Fe,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),Sw=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiDialogTitle"}),{className:o,id:i,...a}=r,s=r,l=_O(s),{titleId:c=i}=p.useContext(xw);return x.jsx(VO,{component:"h2",className:pe(l.root,o),ownerState:s,ref:n,variant:"h6",id:i??c,...a})}),Tv=me("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);function WO(e,t,n){const r=t.getBoundingClientRect(),o=n&&n.getBoundingClientRect(),i=Sr(t);let a;if(t.fakeTransform)a=t.fakeTransform;else{const c=i.getComputedStyle(t);a=c.getPropertyValue("-webkit-transform")||c.getPropertyValue("transform")}let s=0,l=0;if(a&&a!=="none"&&typeof a=="string"){const c=a.split("(")[1].split(")")[0].split(",");s=parseInt(c[4],10),l=parseInt(c[5],10)}return e==="left"?o?`translateX(${o.right+s-r.left}px)`:`translateX(${i.innerWidth+s-r.left}px)`:e==="right"?o?`translateX(-${r.right-o.left-s}px)`:`translateX(-${r.left+r.width-s}px)`:e==="up"?o?`translateY(${o.bottom+l-r.top}px)`:`translateY(${i.innerHeight+l-r.top}px)`:o?`translateY(-${r.top-o.top+r.height-l}px)`:`translateY(-${r.top+r.height-l}px)`}function UO(e){return typeof e=="function"?e():e}function wc(e,t,n){const r=UO(n),o=WO(e,t,r);o&&(t.style.webkitTransform=o,t.style.transform=o)}const HO=p.forwardRef(function(t,n){const r=Cr(),o={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:s=!0,children:l,container:c,direction:u="down",easing:d=o,in:f,onEnter:y,onEntered:g,onEntering:S,onExit:C,onExited:h,onExiting:m,style:v,timeout:b=i,TransitionComponent:E=cr,...k}=t,M=p.useRef(null),P=Ye(Pi(l),M,n),$=D=>L=>{D&&(L===void 0?D(M.current):D(M.current,L))},w=$((D,L)=>{wc(u,D,c),Im(D),y&&y(D,L)}),R=$((D,L)=>{const z=Ta({timeout:b,style:v,easing:d},{mode:"enter"});D.style.webkitTransition=r.transitions.create("-webkit-transform",{...z}),D.style.transition=r.transitions.create("transform",{...z}),D.style.webkitTransform="none",D.style.transform="none",S&&S(D,L)}),A=$(g),j=$(m),O=$(D=>{const L=Ta({timeout:b,style:v,easing:d},{mode:"exit"});D.style.webkitTransition=r.transitions.create("-webkit-transform",L),D.style.transition=r.transitions.create("transform",L),wc(u,D,c),C&&C(D)}),T=$(D=>{D.style.webkitTransition="",D.style.transition="",h&&h(D)}),I=D=>{a&&a(M.current,D)},N=p.useCallback(()=>{M.current&&wc(u,M.current,c)},[u,c]);return p.useEffect(()=>{if(f||u==="down"||u==="right")return;const D=Sm(()=>{M.current&&wc(u,M.current,c)}),L=Sr(M.current);return L.addEventListener("resize",D),()=>{D.clear(),L.removeEventListener("resize",D)}},[u,f,c]),p.useEffect(()=>{f||N()},[f,N]),x.jsx(E,{nodeRef:M,onEnter:w,onEntered:A,onEntering:R,onExit:O,onExited:T,onExiting:j,addEndListener:I,appear:s,in:f,timeout:b,...k,children:(D,L)=>p.cloneElement(l,{ref:P,style:{visibility:D==="exited"&&!f?"hidden":void 0,...v,...l.props.style},...L})})});function YO(e){return ge("MuiDrawer",e)}me("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const bw=(e,t)=>{const{ownerState:n}=e;return[t.root,(n.variant==="permanent"||n.variant==="persistent")&&t.docked,t.modal]},KO=e=>{const{classes:t,anchor:n,variant:r}=e,o={root:["root"],docked:[(r==="permanent"||r==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${ce(n)}`,r!=="temporary"&&`paperAnchorDocked${ce(n)}`]};return ye(o,YO,t)},GO=G(zm,{name:"MuiDrawer",slot:"Root",overridesResolver:bw})(Be(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer}))),Iv=G("div",{shouldForwardProp:Un,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:bw})({flex:"0 0 auto"}),QO=G(br,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${ce(n.anchor)}`],n.variant!=="temporary"&&t[`paperAnchorDocked${ce(n.anchor)}`]]}})(Be(({theme:e})=>({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0,variants:[{props:{anchor:"left"},style:{left:0}},{props:{anchor:"top"},style:{top:0,left:0,right:0,height:"auto",maxHeight:"100%"}},{props:{anchor:"right"},style:{right:0}},{props:{anchor:"bottom"},style:{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"}},{props:({ownerState:t})=>t.anchor==="left"&&t.variant!=="temporary",style:{borderRight:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="top"&&t.variant!=="temporary",style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="right"&&t.variant!=="temporary",style:{borderLeft:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="bottom"&&t.variant!=="temporary",style:{borderTop:`1px solid ${(e.vars||e).palette.divider}`}}]}))),ww={left:"right",right:"left",top:"down",bottom:"up"};function XO(e){return["left","right"].includes(e)}function qO({direction:e},t){return e==="rtl"&&XO(t)?ww[t]:t}const ZO=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiDrawer"}),o=Cr(),i=lr(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{anchor:s="left",BackdropProps:l,children:c,className:u,elevation:d=16,hideBackdrop:f=!1,ModalProps:{BackdropProps:y,...g}={},onClose:S,open:C=!1,PaperProps:h={},SlideProps:m,TransitionComponent:v=HO,transitionDuration:b=a,variant:E="temporary",...k}=r,M=p.useRef(!1);p.useEffect(()=>{M.current=!0},[]);const P=qO({direction:i?"rtl":"ltr"},s),w={...r,anchor:s,elevation:d,open:C,variant:E,...k},R=KO(w),A=x.jsx(QO,{elevation:E==="temporary"?d:0,square:!0,...h,className:pe(R.paper,h.className),ownerState:w,children:c});if(E==="permanent")return x.jsx(Iv,{className:pe(R.root,R.docked,u),ownerState:w,ref:n,...k,children:A});const j=x.jsx(v,{in:C,direction:ww[P],timeout:b,appear:M.current,...m,children:A});return E==="persistent"?x.jsx(Iv,{className:pe(R.root,R.docked,u),ownerState:w,ref:n,...k,children:j}):x.jsx(GO,{BackdropProps:{...l,...y,transitionDuration:b},className:pe(R.root,R.modal,u),open:C,ownerState:w,onClose:S,hideBackdrop:f,ref:n,...k,...g,children:j})}),JO=e=>{const{classes:t,disableUnderline:n,startAdornment:r,endAdornment:o,size:i,hiddenLabel:a,multiline:s}=e,l={root:["root",!n&&"underline",r&&"adornedStart",o&&"adornedEnd",i==="small"&&`size${ce(i)}`,a&&"hiddenLabel",s&&"multiline"],input:["input"]},c=ye(l,wI,t);return{...t,...c}},e$=G(Ad,{shouldForwardProp:e=>Un(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Od(e,t),!n.disableUnderline&&t.underline]}})(Be(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:o,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${Ko.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${Ko.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:i},variants:[{props:({ownerState:a})=>!a.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Ko.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ko.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Ko.disabled}, .${Ko.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Ko.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Kt()).map(([a])=>{var s;return{props:{disableUnderline:!1,color:a},style:{"&::after":{borderBottom:`2px solid ${(s=(e.vars||e).palette[a])==null?void 0:s.main}`}}}}),{props:({ownerState:a})=>a.startAdornment,style:{paddingLeft:12}},{props:({ownerState:a})=>a.endAdornment,style:{paddingRight:12}},{props:({ownerState:a})=>a.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:a,size:s})=>a.multiline&&s==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel&&a.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),t$=G(Ld,{name:"MuiFilledInput",slot:"Input",overridesResolver:$d})(Be(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),Ru=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiFilledInput"}),{disableUnderline:o=!1,components:i={},componentsProps:a,fullWidth:s=!1,hiddenLabel:l,inputComponent:c="input",multiline:u=!1,slotProps:d,slots:f={},type:y="text",...g}=r,S={...r,disableUnderline:o,fullWidth:s,inputComponent:c,multiline:u,type:y},C=JO(r),h={root:{ownerState:S},input:{ownerState:S}},m=d??a?Qt(h,d??a):h,v=f.root??i.Root??e$,b=f.input??i.Input??t$;return x.jsx(Bm,{slots:{root:v,input:b},slotProps:m,fullWidth:s,inputComponent:c,multiline:u,ref:n,type:y,...g,classes:C})});Ru&&(Ru.muiName="Input");function n$(e){return ge("MuiFormControl",e)}me("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const r$=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${ce(n)}`,r&&"fullWidth"]};return ye(o,n$,t)},o$=G("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${ce(n.margin)}`],n.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),to=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiFormControl"}),{children:o,className:i,color:a="primary",component:s="div",disabled:l=!1,error:c=!1,focused:u,fullWidth:d=!1,hiddenLabel:f=!1,margin:y="none",required:g=!1,size:S="medium",variant:C="outlined",...h}=r,m={...r,color:a,component:s,disabled:l,error:c,fullWidth:d,hiddenLabel:f,margin:y,required:g,size:S,variant:C},v=r$(m),[b,E]=p.useState(()=>{let j=!1;return o&&p.Children.forEach(o,O=>{if(!_s(O,["Input","Select"]))return;const T=_s(O,["Select"])?O.props.input:O;T&&yI(T.props)&&(j=!0)}),j}),[k,M]=p.useState(()=>{let j=!1;return o&&p.Children.forEach(o,O=>{_s(O,["Input","Select"])&&(Mu(O.props,!0)||Mu(O.props.inputProps,!0))&&(j=!0)}),j}),[P,$]=p.useState(!1);l&&P&&$(!1);const w=u!==void 0&&!l?u:P;let R;p.useRef(!1);const A=p.useMemo(()=>({adornedStart:b,setAdornedStart:E,color:a,disabled:l,error:c,filled:k,focused:w,fullWidth:d,hiddenLabel:f,size:S,onBlur:()=>{$(!1)},onEmpty:()=>{M(!1)},onFilled:()=>{M(!0)},onFocus:()=>{$(!0)},registerEffect:R,required:g,variant:C}),[b,a,l,c,k,w,d,f,R,g,S,C]);return x.jsx(Id.Provider,{value:A,children:x.jsx(o$,{as:s,ownerState:m,className:pe(v.root,i),ref:n,...h,children:o})})});function i$(e){return ge("MuiFormHelperText",e)}const Ov=me("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var $v;const a$=e=>{const{classes:t,contained:n,size:r,disabled:o,error:i,filled:a,focused:s,required:l}=e,c={root:["root",o&&"disabled",i&&"error",r&&`size${ce(r)}`,n&&"contained",s&&"focused",a&&"filled",l&&"required"]};return ye(c,i$,t)},s$=G("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${ce(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(Be(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${Ov.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Ov.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),Cw=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiFormHelperText"}),{children:o,className:i,component:a="p",disabled:s,error:l,filled:c,focused:u,margin:d,required:f,variant:y,...g}=r,S=kr(),C=Ya({props:r,muiFormControl:S,states:["variant","size","disabled","error","filled","focused","required"]}),h={...r,component:a,contained:C.variant==="filled"||C.variant==="outlined",variant:C.variant,size:C.size,disabled:C.disabled,error:C.error,filled:C.filled,focused:C.focused,required:C.required};delete h.ownerState;const m=a$(h);return x.jsx(s$,{as:a,className:pe(m.root,i),ref:n,...g,ownerState:h,children:o===" "?$v||($v=x.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):o})});function l$(e){return ge("MuiFormLabel",e)}const Ys=me("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),c$=e=>{const{classes:t,color:n,focused:r,disabled:o,error:i,filled:a,required:s}=e,l={root:["root",`color${ce(n)}`,o&&"disabled",i&&"error",a&&"filled",r&&"focused",s&&"required"],asterisk:["asterisk",i&&"error"]};return ye(l,l$,t)},u$=G("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(Be(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(Kt()).map(([t])=>({props:{color:t},style:{[`&.${Ys.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${Ys.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Ys.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),d$=G("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(Be(({theme:e})=>({[`&.${Ys.error}`]:{color:(e.vars||e).palette.error.main}}))),ha=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiFormLabel"}),{children:o,className:i,color:a,component:s="label",disabled:l,error:c,filled:u,focused:d,required:f,...y}=r,g=kr(),S=Ya({props:r,muiFormControl:g,states:["color","required","focused","disabled","error","filled"]}),C={...r,color:S.color||"primary",component:s,disabled:S.disabled,error:S.error,filled:S.filled,focused:S.focused,required:S.required},h=c$(C);return x.jsxs(u$,{as:s,ownerState:C,className:pe(h.root,i),ref:n,...y,children:[o,S.required&&x.jsxs(d$,{ownerState:C,"aria-hidden":!0,className:h.asterisk,children:[" ","*"]})]})}),di=rD({createStyledComponent:G("div",{name:"MuiGrid2",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.container&&t.container]}}),componentName:"MuiGrid2",useThemeProps:e=>Ie({props:e,name:"MuiGrid2"}),useTheme:Cr});function nh(e){return`scale(${e}, ${e**2})`}const f$={entering:{opacity:1,transform:nh(1)},entered:{opacity:1,transform:"none"}},Af=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),bl=p.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:i,easing:a,in:s,onEnter:l,onEntered:c,onEntering:u,onExit:d,onExited:f,onExiting:y,style:g,timeout:S="auto",TransitionComponent:C=cr,...h}=t,m=wm(),v=p.useRef(),b=Cr(),E=p.useRef(null),k=Ye(E,Pi(i),n),M=T=>I=>{if(T){const N=E.current;I===void 0?T(N):T(N,I)}},P=M(u),$=M((T,I)=>{Im(T);const{duration:N,delay:D,easing:L}=Ta({style:g,timeout:S,easing:a},{mode:"enter"});let z;S==="auto"?(z=b.transitions.getAutoHeightDuration(T.clientHeight),v.current=z):z=N,T.style.transition=[b.transitions.create("opacity",{duration:z,delay:D}),b.transitions.create("transform",{duration:Af?z:z*.666,delay:D,easing:L})].join(","),l&&l(T,I)}),w=M(c),R=M(y),A=M(T=>{const{duration:I,delay:N,easing:D}=Ta({style:g,timeout:S,easing:a},{mode:"exit"});let L;S==="auto"?(L=b.transitions.getAutoHeightDuration(T.clientHeight),v.current=L):L=I,T.style.transition=[b.transitions.create("opacity",{duration:L,delay:N}),b.transitions.create("transform",{duration:Af?L:L*.666,delay:Af?N:N||L*.333,easing:D})].join(","),T.style.opacity=0,T.style.transform=nh(.75),d&&d(T)}),j=M(f),O=T=>{S==="auto"&&m.start(v.current||0,T),r&&r(E.current,T)};return x.jsx(C,{appear:o,in:s,nodeRef:E,onEnter:$,onEntered:w,onEntering:P,onExit:A,onExited:j,onExiting:R,addEndListener:O,timeout:S==="auto"?null:S,...h,children:(T,I)=>p.cloneElement(i,{style:{opacity:0,transform:nh(.75),visibility:T==="exited"&&!s?"hidden":void 0,...f$[T],...g,...i.props.style},ref:k,...I})})});bl&&(bl.muiSupportAuto=!0);const Nd=sR({themeId:er}),p$=e=>{const{classes:t,disableUnderline:n}=e,o=ye({root:["root",!n&&"underline"],input:["input"]},SI,t);return{...t,...o}},h$=G(Ad,{shouldForwardProp:e=>Un(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Od(e,t),!n.disableUnderline&&t.underline]}})(Be(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),{position:"relative",variants:[{props:({ownerState:r})=>r.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:r})=>!r.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${us.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${us.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${us.disabled}, .${us.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${us.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Kt()).map(([r])=>({props:{color:r,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}}))]}})),m$=G(Ld,{name:"MuiInput",slot:"Input",overridesResolver:$d})({}),Du=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiInput"}),{disableUnderline:o=!1,components:i={},componentsProps:a,fullWidth:s=!1,inputComponent:l="input",multiline:c=!1,slotProps:u,slots:d={},type:f="text",...y}=r,g=p$(r),C={root:{ownerState:{disableUnderline:o}}},h=u??a?Qt(u??a,C):C,m=d.root??i.Root??h$,v=d.input??i.Input??m$;return x.jsx(Bm,{slots:{root:m,input:v},slotProps:h,fullWidth:s,inputComponent:l,multiline:c,ref:n,type:f,...y,classes:g})});Du&&(Du.muiName="Input");function g$(e){return ge("MuiInputAdornment",e)}const Av=me("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var Lv;const y$=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${ce(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},v$=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:a}=e,s={root:["root",n&&"disablePointerEvents",o&&`position${ce(o)}`,a,r&&"hiddenLabel",i&&`size${ce(i)}`]};return ye(s,g$,t)},x$=G("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:y$})(Be(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${Av.positionStart}&:not(.${Av.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),kw=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiInputAdornment"}),{children:o,className:i,component:a="div",disablePointerEvents:s=!1,disableTypography:l=!1,position:c,variant:u,...d}=r,f=kr()||{};let y=u;u&&f.variant,f&&!y&&(y=f.variant);const g={...r,hiddenLabel:f.hiddenLabel,size:f.size,disablePointerEvents:s,position:c,variant:y},S=v$(g);return x.jsx(Id.Provider,{value:null,children:x.jsx(x$,{as:a,ownerState:g,className:pe(S.root,i),ref:n,...d,children:typeof o=="string"&&!l?x.jsx(Fe,{color:"textSecondary",children:o}):x.jsxs(p.Fragment,{children:[c==="start"?Lv||(Lv=x.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):null,o]})})})});function S$(e){return ge("MuiInputLabel",e)}me("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const b$=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:i,variant:a,required:s}=e,l={root:["root",n&&"formControl",!i&&"animated",o&&"shrink",r&&r!=="normal"&&`size${ce(r)}`,a],asterisk:[s&&"asterisk"]},c=ye(l,S$,t);return{...t,...c}},w$=G(ha,{shouldForwardProp:e=>Un(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Ys.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(Be(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="filled"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:n,size:r})=>t==="filled"&&n.shrink&&r==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="outlined"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),Fd=p.forwardRef(function(t,n){const r=Ie({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,margin:i,shrink:a,variant:s,className:l,...c}=r,u=kr();let d=a;typeof d>"u"&&u&&(d=u.filled||u.focused||u.adornedStart);const f=Ya({props:r,muiFormControl:u,states:["size","variant","required","focused"]}),y={...r,disableAnimation:o,formControl:u,shrink:d,size:f.size,variant:f.variant,required:f.required,focused:f.focused},g=b$(y);return x.jsx(w$,{"data-shrink":d,ref:n,className:pe(g.root,l),...c,ownerState:y,classes:g})});function C$(e){return ge("MuiLink",e)}const k$=me("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),E$=({theme:e,ownerState:t})=>{const n=t.color,r=Ma(e,`palette.${n}`,!1)||t.color,o=Ma(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:ze(r,.4)},jv={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},P$=e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e,i={root:["root",`underline${ce(o)}`,n==="button"&&"button",r&&"focusVisible"]};return ye(i,C$,t)},M$=G(Fe,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${ce(n.underline)}`],n.component==="button"&&t.button]}})(Be(({theme:e})=>({variants:[{props:{underline:"none"},style:{textDecoration:"none"}},{props:{underline:"hover"},style:{textDecoration:"none","&:hover":{textDecoration:"underline"}}},{props:{underline:"always"},style:{textDecoration:"underline","&:hover":{textDecorationColor:"inherit"}}},{props:({underline:t,ownerState:n})=>t==="always"&&n.color!=="inherit",style:{textDecorationColor:"var(--Link-underlineColor)"}},...Object.entries(e.palette).filter(Kt()).map(([t])=>({props:{underline:"always",color:t},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.4)`:ze(e.palette[t].main,.4)}})),{props:{underline:"always",color:"textPrimary"},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:ze(e.palette.text.primary,.4)}},{props:{underline:"always",color:"textSecondary"},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette.text.secondaryChannel} / 0.4)`:ze(e.palette.text.secondary,.4)}},{props:{underline:"always",color:"textDisabled"},style:{"--Link-underlineColor":(e.vars||e).palette.text.disabled}},{props:{component:"button"},style:{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${k$.focusVisible}`]:{outline:"auto"}}}]}))),Um=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiLink"}),o=Cr(),{className:i,color:a="primary",component:s="a",onBlur:l,onFocus:c,TypographyClasses:u,underline:d="always",variant:f="inherit",sx:y,...g}=r,[S,C]=p.useState(!1),h=E=>{Su(E.target)||C(!1),l&&l(E)},m=E=>{Su(E.target)&&C(!0),c&&c(E)},v={...r,color:a,component:s,focusVisible:S,underline:d,variant:f},b=P$(v);return x.jsx(M$,{color:a,className:pe(b.root,i),classes:u,component:s,onBlur:h,onFocus:m,ref:n,ownerState:v,variant:f,...g,sx:[...jv[a]===void 0?[{color:a}]:[],...Array.isArray(y)?y:[y]],style:{...g.style,...d==="always"&&a!=="inherit"&&!jv[a]&&{"--Link-underlineColor":E$({theme:o,ownerState:v})}}})}),fi=p.createContext({});function R$(e){return ge("MuiList",e)}me("MuiList",["root","padding","dense","subheader"]);const D$=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return ye({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},R$,t)},T$=G("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}}]}),Ew=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiList"}),{children:o,className:i,component:a="ul",dense:s=!1,disablePadding:l=!1,subheader:c,...u}=r,d=p.useMemo(()=>({dense:s}),[s]),f={...r,component:a,dense:s,disablePadding:l},y=D$(f);return x.jsx(fi.Provider,{value:d,children:x.jsxs(T$,{as:a,className:pe(y.root,i),ref:n,ownerState:f,...u,children:[c,o]})})});function I$(e){return ge("MuiListItem",e)}me("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);const O$=me("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function $$(e){return ge("MuiListItemSecondaryAction",e)}me("MuiListItemSecondaryAction",["root","disableGutters"]);const A$=e=>{const{disableGutters:t,classes:n}=e;return ye({root:["root",t&&"disableGutters"]},$$,n)},L$=G("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}}]}),Pw=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiListItemSecondaryAction"}),{className:o,...i}=r,a=p.useContext(fi),s={...r,disableGutters:a.disableGutters},l=A$(s);return x.jsx(L$,{className:pe(l.root,o),ownerState:s,ref:n,...i})});Pw.muiName="ListItemSecondaryAction";const j$=(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]},N$=e=>{const{alignItems:t,classes:n,dense:r,disableGutters:o,disablePadding:i,divider:a,hasSecondaryAction:s}=e;return ye({root:["root",r&&"dense",!o&&"gutters",!i&&"padding",a&&"divider",t==="flex-start"&&"alignItemsFlexStart",s&&"secondaryAction"],container:["container"]},I$,n)},F$=G("div",{name:"MuiListItem",slot:"Root",overridesResolver:j$})(Be(({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:{[`& > .${O$.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}}]}))),B$=G("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),z$=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiListItem"}),{alignItems:o="center",children:i,className:a,component:s,components:l={},componentsProps:c={},ContainerComponent:u="li",ContainerProps:{className:d,...f}={},dense:y=!1,disableGutters:g=!1,disablePadding:S=!1,divider:C=!1,secondaryAction:h,slotProps:m={},slots:v={},...b}=r,E=p.useContext(fi),k=p.useMemo(()=>({dense:y||E.dense||!1,alignItems:o,disableGutters:g}),[o,E.dense,y,g]),M=p.useRef(null),P=p.Children.toArray(i),$=P.length&&_s(P[P.length-1],["ListItemSecondaryAction"]),w={...r,alignItems:o,dense:k.dense,disableGutters:g,disablePadding:S,divider:C,hasSecondaryAction:$},R=N$(w),A=Ye(M,n),j=v.root||l.Root||F$,O=m.root||c.root||{},T={className:pe(R.root,O.className,a),...b};let I=s||"li";return $?(I=!T.component&&!s?"div":I,u==="li"&&(I==="li"?I="div":T.component==="li"&&(T.component="div")),x.jsx(fi.Provider,{value:k,children:x.jsxs(B$,{as:u,className:pe(R.container,d),ref:A,ownerState:w,...f,children:[x.jsx(j,{...O,...!xl(j)&&{as:I,ownerState:{...w,...O.ownerState}},...T,children:P}),P.pop()]})})):x.jsx(fi.Provider,{value:k,children:x.jsxs(j,{...O,as:I,ref:A,...!xl(j)&&{ownerState:{...w,...O.ownerState}},...T,children:[P,h&&x.jsx(Pw,{children:h})]})})}),Nv=me("MuiListItemIcon",["root","alignItemsFlexStart"]),Fv=me("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function Lf(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Bv(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Mw(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(""))}function ds(e,t,n,r,o,i){let a=!1,s=o(e,t,t?n:!1);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const l=r?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!Mw(s,i)||l)s=o(e,s,n);else return s.focus(),!0}return!1}const _$=p.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:i=!1,children:a,className:s,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:u,variant:d="selectedMenu",...f}=t,y=p.useRef(null),g=p.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Ut(()=>{o&&y.current.focus()},[o]),p.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(v,{direction:b})=>{const E=!y.current.style.width;if(v.clientHeight{const b=y.current,E=v.key;if(v.ctrlKey||v.metaKey||v.altKey){u&&u(v);return}const M=Wt(b).activeElement;if(E==="ArrowDown")v.preventDefault(),ds(b,M,c,l,Lf);else if(E==="ArrowUp")v.preventDefault(),ds(b,M,c,l,Bv);else if(E==="Home")v.preventDefault(),ds(b,null,c,l,Lf);else if(E==="End")v.preventDefault(),ds(b,null,c,l,Bv);else if(E.length===1){const P=g.current,$=E.toLowerCase(),w=performance.now();P.keys.length>0&&(w-P.lastTime>500?(P.keys=[],P.repeating=!0,P.previousKeyMatched=!0):P.repeating&&$!==P.keys[0]&&(P.repeating=!1)),P.lastTime=w,P.keys.push($);const R=M&&!P.repeating&&Mw(M,P);P.previousKeyMatched&&(R||ds(b,M,!1,l,Lf,P))?v.preventDefault():P.previousKeyMatched=!1}u&&u(v)},C=Ye(y,n);let h=-1;p.Children.forEach(a,(v,b)=>{if(!p.isValidElement(v)){h===b&&(h+=1,h>=a.length&&(h=-1));return}v.props.disabled||(d==="selectedMenu"&&v.props.selected||h===-1)&&(h=b),h===b&&(v.props.disabled||v.props.muiSkipListHighlight||v.type.muiSkipListHighlight)&&(h+=1,h>=a.length&&(h=-1))});const m=p.Children.map(a,(v,b)=>{if(b===h){const E={};return i&&(E.autoFocus=!0),v.props.tabIndex===void 0&&d==="selectedMenu"&&(E.tabIndex=0),p.cloneElement(v,E)}return v});return x.jsx(Ew,{role:"menu",ref:C,className:s,onKeyDown:S,tabIndex:o?0:-1,...f,children:m})});function V$(e){return ge("MuiPopover",e)}me("MuiPopover",["root","paper"]);function zv(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function _v(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function Vv(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function jf(e){return typeof e=="function"?e():e}const W$=e=>{const{classes:t}=e;return ye({root:["root"],paper:["paper"]},V$,t)},U$=G(zm,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Rw=G(br,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),H$=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiPopover"}),{action:o,anchorEl:i,anchorOrigin:a={vertical:"top",horizontal:"left"},anchorPosition:s,anchorReference:l="anchorEl",children:c,className:u,container:d,elevation:f=8,marginThreshold:y=16,open:g,PaperProps:S={},slots:C={},slotProps:h={},transformOrigin:m={vertical:"top",horizontal:"left"},TransitionComponent:v=bl,transitionDuration:b="auto",TransitionProps:{onEntering:E,...k}={},disableScrollLock:M=!1,...P}=r,$=(h==null?void 0:h.paper)??S,w=p.useRef(),R={...r,anchorOrigin:a,anchorReference:l,elevation:f,marginThreshold:y,externalPaperSlotProps:$,transformOrigin:m,TransitionComponent:v,transitionDuration:b,TransitionProps:k},A=W$(R),j=p.useCallback(()=>{if(l==="anchorPosition")return s;const re=jf(i),W=(re&&re.nodeType===1?re:Wt(w.current).body).getBoundingClientRect();return{top:W.top+zv(W,a.vertical),left:W.left+_v(W,a.horizontal)}},[i,a.horizontal,a.vertical,s,l]),O=p.useCallback(re=>({vertical:zv(re,m.vertical),horizontal:_v(re,m.horizontal)}),[m.horizontal,m.vertical]),T=p.useCallback(re=>{const ie={width:re.offsetWidth,height:re.offsetHeight},W=O(ie);if(l==="none")return{top:null,left:null,transformOrigin:Vv(W)};const F=j();let K=F.top-W.vertical,Q=F.left-W.horizontal;const ne=K+ie.height,ue=Q+ie.width,ee=Sr(jf(i)),fe=ee.innerHeight-y,ve=ee.innerWidth-y;if(y!==null&&Kfe){const Le=ne-fe;K-=Le,W.vertical+=Le}if(y!==null&&Qve){const Le=ue-ve;Q-=Le,W.horizontal+=Le}return{top:`${Math.round(K)}px`,left:`${Math.round(Q)}px`,transformOrigin:Vv(W)}},[i,l,j,O,y]),[I,N]=p.useState(g),D=p.useCallback(()=>{const re=w.current;if(!re)return;const ie=T(re);ie.top!==null&&re.style.setProperty("top",ie.top),ie.left!==null&&(re.style.left=ie.left),re.style.transformOrigin=ie.transformOrigin,N(!0)},[T]);p.useEffect(()=>(M&&window.addEventListener("scroll",D),()=>window.removeEventListener("scroll",D)),[i,M,D]);const L=(re,ie)=>{E&&E(re,ie),D()},z=()=>{N(!1)};p.useEffect(()=>{g&&D()}),p.useImperativeHandle(o,()=>g?{updatePosition:()=>{D()}}:null,[g,D]),p.useEffect(()=>{if(!g)return;const re=Sm(()=>{D()}),ie=Sr(i);return ie.addEventListener("resize",re),()=>{re.clear(),ie.removeEventListener("resize",re)}},[i,g,D]);let V=b;b==="auto"&&!v.muiSupportAuto&&(V=void 0);const Y=d||(i?Wt(jf(i)).body:void 0),se={slots:C,slotProps:{...h,paper:$}},[X,H]=In("paper",{elementType:Rw,externalForwardedProps:se,additionalProps:{elevation:f,className:pe(A.paper,$==null?void 0:$.className),style:I?$.style:{...$.style,opacity:0}},ownerState:R}),[le,{slotProps:ae,...te}]=In("root",{elementType:U$,externalForwardedProps:se,additionalProps:{slotProps:{backdrop:{invisible:!0}},container:Y,open:g},ownerState:R,className:pe(A.root,u)}),Z=Ye(w,H.ref);return x.jsx(le,{...te,...!xl(le)&&{slotProps:ae,disableScrollLock:M},...P,ref:n,children:x.jsx(v,{appear:!0,in:g,onEntering:L,onExited:z,timeout:V,...k,children:x.jsx(X,{...H,ref:Z,children:c})})})});function Y$(e){return ge("MuiMenu",e)}me("MuiMenu",["root","paper","list"]);const K$={vertical:"top",horizontal:"right"},G$={vertical:"top",horizontal:"left"},Q$=e=>{const{classes:t}=e;return ye({root:["root"],paper:["paper"],list:["list"]},Y$,t)},X$=G(H$,{shouldForwardProp:e=>Un(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),q$=G(Rw,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Z$=G(_$,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Dw=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiMenu"}),{autoFocus:o=!0,children:i,className:a,disableAutoFocusItem:s=!1,MenuListProps:l={},onClose:c,open:u,PaperProps:d={},PopoverClasses:f,transitionDuration:y="auto",TransitionProps:{onEntering:g,...S}={},variant:C="selectedMenu",slots:h={},slotProps:m={},...v}=r,b=lr(),E={...r,autoFocus:o,disableAutoFocusItem:s,MenuListProps:l,onEntering:g,PaperProps:d,transitionDuration:y,TransitionProps:S,variant:C},k=Q$(E),M=o&&!s&&u,P=p.useRef(null),$=(I,N)=>{P.current&&P.current.adjustStyleForScrollbar(I,{direction:b?"rtl":"ltr"}),g&&g(I,N)},w=I=>{I.key==="Tab"&&(I.preventDefault(),c&&c(I,"tabKeyDown"))};let R=-1;p.Children.map(i,(I,N)=>{p.isValidElement(I)&&(I.props.disabled||(C==="selectedMenu"&&I.props.selected||R===-1)&&(R=N))});const A=h.paper??q$,j=m.paper??d,O=Qe({elementType:h.root,externalSlotProps:m.root,ownerState:E,className:[k.root,a]}),T=Qe({elementType:A,externalSlotProps:j,ownerState:E,className:k.paper});return x.jsx(X$,{onClose:c,anchorOrigin:{vertical:"bottom",horizontal:b?"right":"left"},transformOrigin:b?K$:G$,slots:{paper:A,root:h.root},slotProps:{root:O,paper:T},open:u,ref:n,transitionDuration:y,TransitionProps:{onEntering:$,...S},ownerState:E,...v,classes:f,children:x.jsx(Z$,{onKeyDown:w,actions:P,autoFocus:o&&(R===-1||s),autoFocusItem:M,variant:C,...l,className:pe(k.list,l.className),children:i})})});function J$(e){return ge("MuiMenuItem",e)}const fs=me("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),eA=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},tA=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e,l=ye({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},J$,a);return{...a,...l}},nA=G(Ia,{shouldForwardProp:e=>Un(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:eA})(Be(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${fs.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ze(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${fs.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ze(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${fs.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:ze(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ze(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${fs.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${fs.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Tv.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Tv.inset}`]:{marginLeft:52},[`& .${Fv.root}`]:{marginTop:0,marginBottom:0},[`& .${Fv.inset}`]:{paddingLeft:36},[`& .${Nv.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${Nv.root} svg`]:{fontSize:"1.25rem"}}}]}))),Tu=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:i="li",dense:a=!1,divider:s=!1,disableGutters:l=!1,focusVisibleClassName:c,role:u="menuitem",tabIndex:d,className:f,...y}=r,g=p.useContext(fi),S=p.useMemo(()=>({dense:a||g.dense||!1,disableGutters:l}),[g.dense,a,l]),C=p.useRef(null);Ut(()=>{o&&C.current&&C.current.focus()},[o]);const h={...r,dense:S.dense,divider:s,disableGutters:l},m=tA(r),v=Ye(C,n);let b;return r.disabled||(b=d!==void 0?d:-1),x.jsx(fi.Provider,{value:S,children:x.jsx(nA,{ref:v,role:u,tabIndex:b,component:i,focusVisibleClassName:pe(m.focusVisible,c),className:pe(m.root,f),...y,ownerState:h,classes:m})})});function rA(e){return ge("MuiNativeSelect",e)}const Hm=me("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),oA=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e,s={select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${ce(n)}`,i&&"iconOpen",r&&"disabled"]};return ye(s,rA,t)},Tw=G("select")(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${Hm.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),iA=G(Tw,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Un,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Hm.multiple}`]:t.multiple}]}})({}),Iw=G("svg")(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${Hm.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),aA=G(Iw,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ce(n.variant)}`],n.open&&t.iconOpen]}})({}),sA=p.forwardRef(function(t,n){const{className:r,disabled:o,error:i,IconComponent:a,inputRef:s,variant:l="standard",...c}=t,u={...t,disabled:o,variant:l,error:i},d=oA(u);return x.jsxs(p.Fragment,{children:[x.jsx(iA,{ownerState:u,className:pe(d.select,r),disabled:o,ref:s||n,...c}),t.multiple?null:x.jsx(aA,{as:a,ownerState:u,className:d.icon})]})});var Wv;const lA=G("fieldset",{shouldForwardProp:Un})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),cA=G("legend",{shouldForwardProp:Un})(Be(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function uA(e){const{children:t,classes:n,className:r,label:o,notched:i,...a}=e,s=o!=null&&o!=="",l={...e,notched:i,withLabel:s};return x.jsx(lA,{"aria-hidden":!0,className:r,ownerState:l,...a,children:x.jsx(cA,{ownerState:l,children:s?x.jsx("span",{children:o}):Wv||(Wv=x.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}const dA=e=>{const{classes:t}=e,r=ye({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},bI,t);return{...t,...r}},fA=G(Ad,{shouldForwardProp:e=>Un(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Od})(Be(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Dr.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Dr.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${Dr.focused} .${Dr.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(Kt()).map(([n])=>({props:{color:n},style:{[`&.${Dr.focused} .${Dr.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${Dr.error} .${Dr.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Dr.disabled} .${Dr.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:14}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:14}},{props:({ownerState:n})=>n.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:n,size:r})=>n.multiline&&r==="small",style:{padding:"8.5px 14px"}}]}})),pA=G(uA,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(Be(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}})),hA=G(Ld,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:$d})(Be(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),Iu=p.forwardRef(function(t,n){var r;const o=Ie({props:t,name:"MuiOutlinedInput"}),{components:i={},fullWidth:a=!1,inputComponent:s="input",label:l,multiline:c=!1,notched:u,slots:d={},type:f="text",...y}=o,g=dA(o),S=kr(),C=Ya({props:o,muiFormControl:S,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),h={...o,color:C.color||"primary",disabled:C.disabled,error:C.error,focused:C.focused,formControl:S,fullWidth:a,hiddenLabel:C.hiddenLabel,multiline:c,size:C.size,type:f},m=d.root??i.Root??fA,v=d.input??i.Input??hA;return x.jsx(Bm,{slots:{root:m,input:v},renderSuffix:b=>x.jsx(pA,{ownerState:h,className:g.notchedOutline,label:l!=null&&l!==""&&C.required?r||(r=x.jsxs(p.Fragment,{children:[l," ","*"]})):l,notched:typeof u<"u"?u:!!(b.startAdornment||b.filled||b.focused)}),fullWidth:a,inputComponent:s,multiline:c,ref:n,type:f,...y,classes:{...g,notchedOutline:null}})});Iu&&(Iu.muiName="Input");function mA(e){return ge("MuiSelect",e)}const ps=me("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var Uv;const gA=G(Tw,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${ps.select}`]:t.select},{[`&.${ps.select}`]:t[n.variant]},{[`&.${ps.error}`]:t.error},{[`&.${ps.multiple}`]:t.multiple}]}})({[`&.${ps.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),yA=G(Iw,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ce(n.variant)}`],n.open&&t.iconOpen]}})({}),vA=G("input",{shouldForwardProp:e=>tw(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Hv(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function xA(e){return e==null||typeof e=="string"&&!e.trim()}const SA=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e,s={select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${ce(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return ye(s,mA,t)},bA=p.forwardRef(function(t,n){var go;const{"aria-describedby":r,"aria-label":o,autoFocus:i,autoWidth:a,children:s,className:l,defaultOpen:c,defaultValue:u,disabled:d,displayEmpty:f,error:y=!1,IconComponent:g,inputRef:S,labelId:C,MenuProps:h={},multiple:m,name:v,onBlur:b,onChange:E,onClose:k,onFocus:M,onOpen:P,open:$,readOnly:w,renderValue:R,required:A,SelectDisplayProps:j={},tabIndex:O,type:T,value:I,variant:N="standard",...D}=t,[L,z]=co({controlled:I,default:u,name:"Select"}),[V,Y]=co({controlled:$,default:c,name:"Select"}),se=p.useRef(null),X=p.useRef(null),[H,le]=p.useState(null),{current:ae}=p.useRef($!=null),[te,Z]=p.useState(),re=Ye(n,S),ie=p.useCallback(Me=>{X.current=Me,Me&&le(Me)},[]),W=H==null?void 0:H.parentNode;p.useImperativeHandle(re,()=>({focus:()=>{X.current.focus()},node:se.current,value:L}),[L]),p.useEffect(()=>{c&&V&&H&&!ae&&(Z(a?null:W.clientWidth),X.current.focus())},[H,a]),p.useEffect(()=>{i&&X.current.focus()},[i]),p.useEffect(()=>{if(!C)return;const Me=Wt(X.current).getElementById(C);if(Me){const qe=()=>{getSelection().isCollapsed&&X.current.focus()};return Me.addEventListener("click",qe),()=>{Me.removeEventListener("click",qe)}}},[C]);const F=(Me,qe)=>{Me?P&&P(qe):k&&k(qe),ae||(Z(a?null:W.clientWidth),Y(Me))},K=Me=>{Me.button===0&&(Me.preventDefault(),X.current.focus(),F(!0,Me))},Q=Me=>{F(!1,Me)},ne=p.Children.toArray(s),ue=Me=>{const qe=ne.find(vt=>vt.props.value===Me.target.value);qe!==void 0&&(z(qe.props.value),E&&E(Me,qe))},ee=Me=>qe=>{let vt;if(qe.currentTarget.hasAttribute("tabindex")){if(m){vt=Array.isArray(L)?L.slice():[];const En=L.indexOf(Me.props.value);En===-1?vt.push(Me.props.value):vt.splice(En,1)}else vt=Me.props.value;if(Me.props.onClick&&Me.props.onClick(qe),L!==vt&&(z(vt),E)){const En=qe.nativeEvent||qe,nt=new En.constructor(En.type,En);Object.defineProperty(nt,"target",{writable:!0,value:{value:vt,name:v}}),E(nt,Me)}m||F(!1,qe)}},fe=Me=>{w||[" ","ArrowUp","ArrowDown","Enter"].includes(Me.key)&&(Me.preventDefault(),F(!0,Me))},ve=H!==null&&V,Le=Me=>{!ve&&b&&(Object.defineProperty(Me,"target",{writable:!0,value:{value:L,name:v}}),b(Me))};delete D["aria-invalid"];let xe,tt;const Pe=[];let _e=!1;(Mu({value:L})||f)&&(R?xe=R(L):_e=!0);const ut=ne.map(Me=>{if(!p.isValidElement(Me))return null;let qe;if(m){if(!Array.isArray(L))throw new Error(lo(2));qe=L.some(vt=>Hv(vt,Me.props.value)),qe&&_e&&Pe.push(Me.props.children)}else qe=Hv(L,Me.props.value),qe&&_e&&(tt=Me.props.children);return p.cloneElement(Me,{"aria-selected":qe?"true":"false",onClick:ee(Me),onKeyUp:vt=>{vt.key===" "&&vt.preventDefault(),Me.props.onKeyUp&&Me.props.onKeyUp(vt)},role:"option",selected:qe,value:void 0,"data-value":Me.props.value})});_e&&(m?Pe.length===0?xe=null:xe=Pe.reduce((Me,qe,vt)=>(Me.push(qe),vt{const{classes:t}=e;return t},Ym={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Un(e)&&e!=="variant",slot:"Root"},CA=G(Du,Ym)(""),kA=G(Iu,Ym)(""),EA=G(Ru,Ym)(""),Bd=p.forwardRef(function(t,n){const r=Ie({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:i,classes:a={},className:s,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:u=CI,id:d,input:f,inputProps:y,label:g,labelId:S,MenuProps:C,multiple:h=!1,native:m=!1,onClose:v,onOpen:b,open:E,renderValue:k,SelectDisplayProps:M,variant:P="outlined",...$}=r,w=m?sA:bA,R=kr(),A=Ya({props:r,muiFormControl:R,states:["variant","error"]}),j=A.variant||P,O={...r,variant:j,classes:a},T=wA(O),{root:I,...N}=T,D=f||{standard:x.jsx(CA,{ownerState:O}),outlined:x.jsx(kA,{label:g,ownerState:O}),filled:x.jsx(EA,{ownerState:O})}[j],L=Ye(n,Pi(D));return x.jsx(p.Fragment,{children:p.cloneElement(D,{inputComponent:w,inputProps:{children:i,error:A.error,IconComponent:u,variant:j,type:void 0,multiple:h,...m?{id:d}:{autoWidth:o,defaultOpen:l,displayEmpty:c,labelId:S,MenuProps:C,onClose:v,onOpen:b,open:E,renderValue:k,SelectDisplayProps:{id:d,...M}},...y,classes:y?Qt(N,y.classes):N,...f?f.props.inputProps:{}},...(h&&m||c)&&j==="outlined"?{notched:!0}:{},ref:L,className:pe(D.props.className,s,T.root),...!f&&{variant:j},...$})})});Bd.muiName="Select";function PA(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:o,resumeHideDuration:i}=e,a=wm();p.useEffect(()=>{if(!o)return;function h(m){m.defaultPrevented||m.key==="Escape"&&(r==null||r(m,"escapeKeyDown"))}return document.addEventListener("keydown",h),()=>{document.removeEventListener("keydown",h)}},[o,r]);const s=Se((h,m)=>{r==null||r(h,m)}),l=Se(h=>{!r||h==null||a.start(h,()=>{s(null,"timeout")})});p.useEffect(()=>(o&&l(t),a.clear),[o,t,l,a]);const c=h=>{r==null||r(h,"clickaway")},u=a.clear,d=p.useCallback(()=>{t!=null&&l(i??t*.5)},[t,i,l]),f=h=>m=>{const v=h.onBlur;v==null||v(m),d()},y=h=>m=>{const v=h.onFocus;v==null||v(m),u()},g=h=>m=>{const v=h.onMouseEnter;v==null||v(m),u()},S=h=>m=>{const v=h.onMouseLeave;v==null||v(m),d()};return p.useEffect(()=>{if(!n&&o)return window.addEventListener("focus",d),window.addEventListener("blur",u),()=>{window.removeEventListener("focus",d),window.removeEventListener("blur",u)}},[n,o,d,u]),{getRootProps:(h={})=>{const m={...bu(e),...bu(h)};return{role:"presentation",...h,...m,onBlur:f(m),onFocus:y(m),onMouseEnter:g(m),onMouseLeave:S(m)}},onClickAway:c}}function MA(e){return ge("MuiSnackbarContent",e)}me("MuiSnackbarContent",["root","message","action"]);const RA=e=>{const{classes:t}=e;return ye({root:["root"],action:["action"],message:["message"]},MA,t)},DA=G(br,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})(Be(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98,n=Fb(e.palette.background.default,t);return{...e.typography.body2,color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(n),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:n,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),TA=G("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),IA=G("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),OA=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiSnackbarContent"}),{action:o,className:i,message:a,role:s="alert",...l}=r,c=r,u=RA(c);return x.jsxs(DA,{role:s,square:!0,elevation:6,className:pe(u.root,i),ownerState:c,ref:n,...l,children:[x.jsx(TA,{className:u.message,ownerState:c,children:a}),o?x.jsx(IA,{className:u.action,ownerState:c,children:o}):null]})});function $A(e){return ge("MuiSnackbar",e)}me("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const AA=e=>{const{classes:t,anchorOrigin:n}=e,r={root:["root",`anchorOrigin${ce(n.vertical)}${ce(n.horizontal)}`]};return ye(r,$A,t)},Yv=G("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${ce(n.anchorOrigin.vertical)}${ce(n.anchorOrigin.horizontal)}`]]}})(Be(({theme:e})=>({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center",variants:[{props:({ownerState:t})=>t.anchorOrigin.vertical==="top",style:{top:8,[e.breakpoints.up("sm")]:{top:24}}},{props:({ownerState:t})=>t.anchorOrigin.vertical!=="top",style:{bottom:8,[e.breakpoints.up("sm")]:{bottom:24}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="left",style:{justifyContent:"flex-start",[e.breakpoints.up("sm")]:{left:24,right:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="right",style:{justifyContent:"flex-end",[e.breakpoints.up("sm")]:{right:24,left:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="center",style:{[e.breakpoints.up("sm")]:{left:"50%",right:"auto",transform:"translateX(-50%)"}}}]}))),Vl=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiSnackbar"}),o=Cr(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{action:a,anchorOrigin:{vertical:s,horizontal:l}={vertical:"bottom",horizontal:"left"},autoHideDuration:c=null,children:u,className:d,ClickAwayListenerProps:f,ContentProps:y,disableWindowBlurListener:g=!1,message:S,onBlur:C,onClose:h,onFocus:m,onMouseEnter:v,onMouseLeave:b,open:E,resumeHideDuration:k,TransitionComponent:M=bl,transitionDuration:P=i,TransitionProps:{onEnter:$,onExited:w,...R}={},...A}=r,j={...r,anchorOrigin:{vertical:s,horizontal:l},autoHideDuration:c,disableWindowBlurListener:g,TransitionComponent:M,transitionDuration:P},O=AA(j),{getRootProps:T,onClickAway:I}=PA({...j}),[N,D]=p.useState(!0),L=Qe({elementType:Yv,getSlotProps:T,externalForwardedProps:A,ownerState:j,additionalProps:{ref:n},className:[O.root,d]}),z=Y=>{D(!0),w&&w(Y)},V=(Y,se)=>{D(!1),$&&$(Y,se)};return!E&&N?null:x.jsx(oO,{onClickAway:I,...f,children:x.jsx(Yv,{...L,children:x.jsx(M,{appear:!0,in:E,timeout:P,direction:s==="top"?"down":"up",onEnter:V,onExited:z,...R,children:u||x.jsx(OA,{message:S,action:a,...y})})})})}),Mi=uD({createStyledComponent:G("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Ie({props:e,name:"MuiStack"})}),Ow=p.createContext();function LA(e){return ge("MuiTable",e)}me("MuiTable",["root","stickyHeader"]);const jA=e=>{const{classes:t,stickyHeader:n}=e;return ye({root:["root",n&&"stickyHeader"]},LA,t)},NA=G("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(Be(({theme:e})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...e.typography.body2,padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:t})=>t.stickyHeader,style:{borderCollapse:"separate"}}]}))),Kv="table",FA=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiTable"}),{className:o,component:i=Kv,padding:a="normal",size:s="medium",stickyHeader:l=!1,...c}=r,u={...r,component:i,padding:a,size:s,stickyHeader:l},d=jA(u),f=p.useMemo(()=>({padding:a,size:s,stickyHeader:l}),[a,s,l]);return x.jsx(Ow.Provider,{value:f,children:x.jsx(NA,{as:i,role:i===Kv?null:"table",ref:n,className:pe(d.root,o),ownerState:u,...c})})}),zd=p.createContext();function BA(e){return ge("MuiTableBody",e)}me("MuiTableBody",["root"]);const zA=e=>{const{classes:t}=e;return ye({root:["root"]},BA,t)},_A=G("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),VA={variant:"body"},Gv="tbody",WA=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiTableBody"}),{className:o,component:i=Gv,...a}=r,s={...r,component:i},l=zA(s);return x.jsx(zd.Provider,{value:VA,children:x.jsx(_A,{className:pe(l.root,o),as:i,ref:n,role:i===Gv?null:"rowgroup",ownerState:s,...a})})});function UA(e){return ge("MuiTableCell",e)}const HA=me("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),YA=e=>{const{classes:t,variant:n,align:r,padding:o,size:i,stickyHeader:a}=e,s={root:["root",n,a&&"stickyHeader",r!=="inherit"&&`align${ce(r)}`,o!=="normal"&&`padding${ce(o)}`,`size${ce(i)}`]};return ye(s,UA,t)},KA=G("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${ce(n.size)}`],n.padding!=="normal"&&t[`padding${ce(n.padding)}`],n.align!=="inherit"&&t[`align${ce(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(Be(({theme:e})=>({...e.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid + ${e.palette.mode==="light"?Da(ze(e.palette.divider,1),.88):Ra(ze(e.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(e.vars||e).palette.text.primary}},{props:{variant:"footer"},style:{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${HA.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:t})=>t.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}}]}))),Pn=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiTableCell"}),{align:o="inherit",className:i,component:a,padding:s,scope:l,size:c,sortDirection:u,variant:d,...f}=r,y=p.useContext(Ow),g=p.useContext(zd),S=g&&g.variant==="head";let C;a?C=a:C=S?"th":"td";let h=l;C==="td"?h=void 0:!h&&S&&(h="col");const m=d||g&&g.variant,v={...r,align:o,component:C,padding:s||(y&&y.padding?y.padding:"normal"),size:c||(y&&y.size?y.size:"medium"),sortDirection:u,stickyHeader:m==="head"&&y&&y.stickyHeader,variant:m},b=YA(v);let E=null;return u&&(E=u==="asc"?"ascending":"descending"),x.jsx(KA,{as:C,ref:n,className:pe(b.root,i),"aria-sort":E,scope:h,ownerState:v,...f})});function GA(e){return ge("MuiTableContainer",e)}me("MuiTableContainer",["root"]);const QA=e=>{const{classes:t}=e;return ye({root:["root"]},GA,t)},XA=G("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),qA=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiTableContainer"}),{className:o,component:i="div",...a}=r,s={...r,component:i},l=QA(s);return x.jsx(XA,{ref:n,as:i,className:pe(l.root,o),ownerState:s,...a})});function ZA(e){return ge("MuiTableHead",e)}me("MuiTableHead",["root"]);const JA=e=>{const{classes:t}=e;return ye({root:["root"]},ZA,t)},eL=G("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),tL={variant:"head"},Qv="thead",nL=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiTableHead"}),{className:o,component:i=Qv,...a}=r,s={...r,component:i},l=JA(s);return x.jsx(zd.Provider,{value:tL,children:x.jsx(eL,{as:i,className:pe(l.root,o),ref:n,role:i===Qv?null:"rowgroup",ownerState:s,...a})})});function rL(e){return ge("MuiToolbar",e)}me("MuiToolbar",["root","gutters","regular","dense"]);const oL=e=>{const{classes:t,disableGutters:n,variant:r}=e;return ye({root:["root",!n&&"gutters",r]},rL,t)},iL=G("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(Be(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:e.mixins.toolbar}]}))),aL=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiToolbar"}),{className:o,component:i="div",disableGutters:a=!1,variant:s="regular",...l}=r,c={...r,component:i,disableGutters:a,variant:s},u=oL(c);return x.jsx(iL,{as:i,className:pe(u.root,o),ref:n,ownerState:c,...l})});function sL(e){return ge("MuiTableRow",e)}const Xv=me("MuiTableRow",["root","selected","hover","head","footer"]),lL=e=>{const{classes:t,selected:n,hover:r,head:o,footer:i}=e;return ye({root:["root",n&&"selected",r&&"hover",o&&"head",i&&"footer"]},sL,t)},cL=G("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(Be(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${Xv.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Xv.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ze(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:ze(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),qv="tr",Nf=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiTableRow"}),{className:o,component:i=qv,hover:a=!1,selected:s=!1,...l}=r,c=p.useContext(zd),u={...r,component:i,hover:a,selected:s,head:c&&c.variant==="head",footer:c&&c.variant==="footer"},d=lL(u);return x.jsx(cL,{as:i,ref:n,className:pe(d.root,o),role:i===qv?null:"row",ownerState:u,...l})});function uL(e){return ge("MuiTextField",e)}me("MuiTextField",["root"]);const dL={standard:Du,filled:Ru,outlined:Iu},fL=e=>{const{classes:t}=e;return ye({root:["root"]},uL,t)},pL=G(to,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Cn=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:i=!1,children:a,className:s,color:l="primary",defaultValue:c,disabled:u=!1,error:d=!1,FormHelperTextProps:f,fullWidth:y=!1,helperText:g,id:S,InputLabelProps:C,inputProps:h,InputProps:m,inputRef:v,label:b,maxRows:E,minRows:k,multiline:M=!1,name:P,onBlur:$,onChange:w,onFocus:R,placeholder:A,required:j=!1,rows:O,select:T=!1,SelectProps:I,slots:N={},slotProps:D={},type:L,value:z,variant:V="outlined",...Y}=r,se={...r,autoFocus:i,color:l,disabled:u,error:d,fullWidth:y,multiline:M,required:j,select:T,variant:V},X=fL(se),H=Wo(S),le=g&&H?`${H}-helper-text`:void 0,ae=b&&H?`${H}-label`:void 0,te=dL[V],Z={slots:N,slotProps:{input:m,inputLabel:C,htmlInput:h,formHelperText:f,select:I,...D}},re={},ie=Z.slotProps.inputLabel;V==="outlined"&&(ie&&typeof ie.shrink<"u"&&(re.notched=ie.shrink),re.label=b),T&&((!I||!I.native)&&(re.id=void 0),re["aria-describedby"]=void 0);const[W,F]=In("input",{elementType:te,externalForwardedProps:Z,additionalProps:re,ownerState:se}),[K,Q]=In("inputLabel",{elementType:Fd,externalForwardedProps:Z,ownerState:se}),[ne,ue]=In("htmlInput",{elementType:"input",externalForwardedProps:Z,ownerState:se}),[ee,fe]=In("formHelperText",{elementType:Cw,externalForwardedProps:Z,ownerState:se}),[ve,Le]=In("select",{elementType:Bd,externalForwardedProps:Z,ownerState:se}),xe=x.jsx(W,{"aria-describedby":le,autoComplete:o,autoFocus:i,defaultValue:c,fullWidth:y,multiline:M,name:P,rows:O,maxRows:E,minRows:k,type:L,value:z,id:H,inputRef:v,onBlur:$,onChange:w,onFocus:R,placeholder:A,inputProps:ue,slots:{input:N.htmlInput?ne:void 0},...F});return x.jsxs(pL,{className:pe(X.root,s),disabled:u,error:d,fullWidth:y,ref:n,required:j,color:l,variant:V,ownerState:se,...Y,children:[b!=null&&b!==""&&x.jsx(K,{htmlFor:H,id:ae,...Q,children:b}),T?x.jsx(ve,{"aria-describedby":le,id:H,labelId:ae,value:z,input:xe,...Le,children:a}):xe,g&&x.jsx(ee,{id:le,...fe,children:g})]})}),nn=p.createContext();var $w={exports:{}},Aw={};/** + * @license React + * use-sync-external-store-shim.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Na=p;function hL(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var mL=typeof Object.is=="function"?Object.is:hL,gL=Na.useState,yL=Na.useEffect,vL=Na.useLayoutEffect,xL=Na.useDebugValue;function SL(e,t){var n=t(),r=gL({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return vL(function(){o.value=n,o.getSnapshot=t,Ff(o)&&i({inst:o})},[e,n,t]),yL(function(){return Ff(o)&&i({inst:o}),e(function(){Ff(o)&&i({inst:o})})},[e]),xL(n),n}function Ff(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!mL(e,n)}catch{return!0}}function bL(e,t){return t()}var wL=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?bL:SL;Aw.useSyncExternalStore=Na.useSyncExternalStore!==void 0?Na.useSyncExternalStore:wL;$w.exports=Aw;var Lw=$w.exports;const Po=()=>{},It=Po(),ma=Object,Te=e=>e===It,On=e=>typeof e=="function",jn=(e,t)=>({...e,...t}),CL=e=>On(e.then),Cc=new WeakMap;let kL=0;const wl=e=>{const t=typeof e,n=e&&e.constructor,r=n==Date;let o,i;if(ma(e)===e&&!r&&n!=RegExp){if(o=Cc.get(e),o)return o;if(o=++kL+"~",Cc.set(e,o),n==Array){for(o="@",i=0;i_d&&typeof window.requestAnimationFrame!=Km,Gm=(e,t)=>{const n=Nr.get(e);return[()=>!Te(t)&&e.get(t)||Bf,r=>{if(!Te(t)){const o=e.get(t);t in kc||(kc[t]=o),n[5](t,jn(o,r),o||Bf)}},n[6],()=>!Te(t)&&t in kc?kc[t]:!Te(t)&&e.get(t)||Bf]};let oh=!0;const PL=()=>oh,[ih,ah]=_d&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[Po,Po],ML=()=>{const e=rh&&document.visibilityState;return Te(e)||e!=="hidden"},RL=e=>(rh&&document.addEventListener("visibilitychange",e),ih("focus",e),()=>{rh&&document.removeEventListener("visibilitychange",e),ah("focus",e)}),DL=e=>{const t=()=>{oh=!0,e()},n=()=>{oh=!1};return ih("online",t),ih("offline",n),()=>{ah("online",t),ah("offline",n)}},IL={isOnline:PL,isVisible:ML},OL={initFocus:RL,initReconnect:DL},Cl=!_t.useId,Si=!_d||"Deno"in window,jw=e=>EL()?window.requestAnimationFrame(e):setTimeout(e,1),no=Si?p.useEffect:p.useLayoutEffect,zf=typeof navigator<"u"&&navigator.connection,Zv=!Si&&zf&&(["slow-2g","2g"].includes(zf.effectiveType)||zf.saveData),Wl=e=>{if(On(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?wl(e):"",[e,t]};let $L=0;const Fa=()=>++$L,Nw=0,Fw=1,Bw=2,AL=3;var Fr={__proto__:null,ERROR_REVALIDATE_EVENT:AL,FOCUS_EVENT:Nw,MUTATE_EVENT:Bw,RECONNECT_EVENT:Fw};async function Qm(...e){const[t,n,r,o]=e,i=jn({populateCache:!0,throwOnError:!0},typeof o=="boolean"?{revalidate:o}:o||{});let a=i.populateCache;const s=i.rollbackOnError;let l=i.optimisticData;const c=f=>typeof s=="function"?s(f):s!==!1,u=i.throwOnError;if(On(n)){const f=n,y=[],g=t.keys();for(const S of g)!/^\$(inf|sub)\$/.test(S)&&f(t.get(S)._k)&&y.push(S);return Promise.all(y.map(d))}return d(n);async function d(f){const[y]=Wl(f);if(!y)return;const[g,S]=Gm(t,y),[C,h,m,v]=Nr.get(t),b=()=>{const j=C[y];return(On(i.revalidate)?i.revalidate(g().data,f):i.revalidate!==!1)&&(delete m[y],delete v[y],j&&j[0])?j[0](Bw).then(()=>g().data):g().data};if(e.length<3)return b();let E=r,k;const M=Fa();h[y]=[M,0];const P=!Te(l),$=g(),w=$.data,R=$._c,A=Te(R)?w:R;if(P&&(l=On(l)?l(A,w):l,S({data:l,_c:A})),On(E))try{E=E(A)}catch(j){k=j}if(E&&CL(E))if(E=await E.catch(j=>{k=j}),M!==h[y][0]){if(k)throw k;return E}else k&&P&&c(k)&&(a=!0,S({data:A,_c:It}));if(a&&!k)if(On(a)){const j=a(E,A);S({data:j,error:It,_c:It})}else S({data:E,error:It,_c:It});if(h[y][1]=Fa(),Promise.resolve(b()).then(()=>{S({_c:It})}),k){if(u)throw k;return}return E}}const Jv=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},zw=(e,t)=>{if(!Nr.has(e)){const n=jn(OL,t),r={},o=Qm.bind(It,e);let i=Po;const a={},s=(u,d)=>{const f=a[u]||[];return a[u]=f,f.push(d),()=>f.splice(f.indexOf(d),1)},l=(u,d,f)=>{e.set(u,d);const y=a[u];if(y)for(const g of y)g(d,f)},c=()=>{if(!Nr.has(e)&&(Nr.set(e,[r,{},{},{},o,l,s]),!Si)){const u=n.initFocus(setTimeout.bind(It,Jv.bind(It,r,Nw))),d=n.initReconnect(setTimeout.bind(It,Jv.bind(It,r,Fw)));i=()=>{u&&u(),d&&d(),Nr.delete(e)}}};return c(),[e,o,c,i]}return[e,Nr.get(e)[4]]},LL=(e,t,n,r,o)=>{const i=n.errorRetryCount,a=o.retryCount,s=~~((Math.random()+.5)*(1<<(a<8?a:8)))*n.errorRetryInterval;!Te(i)&&a>i||setTimeout(r,s,o)},jL=(e,t)=>wl(e)==wl(t),[Xm,qm]=zw(new Map),Vd=jn({onLoadingSlow:Po,onSuccess:Po,onError:Po,onErrorRetry:LL,onDiscarded:Po,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:Zv?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:Zv?5e3:3e3,compare:jL,isPaused:()=>!1,cache:Xm,mutate:qm,fallback:{}},IL),_w=(e,t)=>{const n=jn(e,t);if(t){const{use:r,fallback:o}=e,{use:i,fallback:a}=t;r&&i&&(n.use=r.concat(i)),o&&a&&(n.fallback=jn(o,a))}return n},sh=p.createContext({}),Zm=e=>{const{value:t}=e,n=p.useContext(sh),r=On(t),o=p.useMemo(()=>r?t(n):t,[r,n,t]),i=p.useMemo(()=>r?o:_w(n,o),[r,n,o]),a=o&&o.provider,s=p.useRef(It);a&&!s.current&&(s.current=zw(a(i.cache||Xm),o));const l=s.current;return l&&(i.cache=l[0],i.mutate=l[1]),no(()=>{if(l)return l[2]&&l[2](),l[3]},[]),p.createElement(sh.Provider,jn(e,{value:i}))},NL="$inf$",Vw=_d&&window.__SWR_DEVTOOLS_USE__,FL=Vw?window.__SWR_DEVTOOLS_USE__:[],BL=()=>{Vw&&(window.__SWR_DEVTOOLS_REACT__=_t)},Ww=e=>On(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],Uw=()=>jn(Vd,p.useContext(sh)),zL=e=>(t,n,r)=>e(t,n&&((...i)=>{const[a]=Wl(t),[,,,s]=Nr.get(Xm);if(a.startsWith(NL))return n(...i);const l=s[a];return Te(l)?n(...i):(delete s[a],l)}),r),_L=FL.concat(zL),Hw=e=>function(...n){const r=Uw(),[o,i,a]=Ww(n),s=_w(r,a);let l=e;const{use:c}=s,u=(c||[]).concat(_L);for(let d=u.length;d--;)l=u[d](l);return l(o,i||s.fetcher||null,s)},Yw=(e,t,n)=>{const r=t[e]||(t[e]=[]);return r.push(n),()=>{const o=r.indexOf(n);o>=0&&(r[o]=r[r.length-1],r.pop())}},VL=(e,t)=>(...n)=>{const[r,o,i]=Ww(n),a=(i.use||[]).concat(t);return e(r,o,{...i,use:a})};BL();const e0=_t.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e)}),_f={dedupe:!0},WL=(e,t,n)=>{const{cache:r,compare:o,suspense:i,fallbackData:a,revalidateOnMount:s,revalidateIfStale:l,refreshInterval:c,refreshWhenHidden:u,refreshWhenOffline:d,keepPreviousData:f}=n,[y,g,S,C]=Nr.get(r),[h,m]=Wl(e),v=p.useRef(!1),b=p.useRef(!1),E=p.useRef(h),k=p.useRef(t),M=p.useRef(n),P=()=>M.current,$=()=>P().isVisible()&&P().isOnline(),[w,R,A,j]=Gm(r,h),O=p.useRef({}).current,T=Te(a)?n.fallback[h]:a,I=(W,F)=>{for(const K in O){const Q=K;if(Q==="data"){if(!o(W[Q],F[Q])&&(!Te(W[Q])||!o(H,F[Q])))return!1}else if(F[Q]!==W[Q])return!1}return!0},N=p.useMemo(()=>{const W=!h||!t?!1:Te(s)?P().isPaused()||i?!1:Te(l)?!0:l:s,F=fe=>{const ve=jn(fe);return delete ve._k,W?{isValidating:!0,isLoading:!0,...ve}:ve},K=w(),Q=j(),ne=F(K),ue=K===Q?ne:F(Q);let ee=ne;return[()=>{const fe=F(w());return I(fe,ee)?(ee.data=fe.data,ee.isLoading=fe.isLoading,ee.isValidating=fe.isValidating,ee.error=fe.error,ee):(ee=fe,fe)},()=>ue]},[r,h]),D=Lw.useSyncExternalStore(p.useCallback(W=>A(h,(F,K)=>{I(K,F)||W()}),[r,h]),N[0],N[1]),L=!v.current,z=y[h]&&y[h].length>0,V=D.data,Y=Te(V)?T:V,se=D.error,X=p.useRef(Y),H=f?Te(V)?X.current:V:Y,le=z&&!Te(se)?!1:L&&!Te(s)?s:P().isPaused()?!1:i?Te(Y)?!1:l:Te(Y)||l,ae=!!(h&&t&&L&&le),te=Te(D.isValidating)?ae:D.isValidating,Z=Te(D.isLoading)?ae:D.isLoading,re=p.useCallback(async W=>{const F=k.current;if(!h||!F||b.current||P().isPaused())return!1;let K,Q,ne=!0;const ue=W||{},ee=!S[h]||!ue.dedupe,fe=()=>Cl?!b.current&&h===E.current&&v.current:h===E.current,ve={isValidating:!1,isLoading:!1},Le=()=>{R(ve)},xe=()=>{const Pe=S[h];Pe&&Pe[1]===Q&&delete S[h]},tt={isValidating:!0};Te(w().data)&&(tt.isLoading=!0);try{if(ee&&(R(tt),n.loadingTimeout&&Te(w().data)&&setTimeout(()=>{ne&&fe()&&P().onLoadingSlow(h,n)},n.loadingTimeout),S[h]=[F(m),Fa()]),[K,Q]=S[h],K=await K,ee&&setTimeout(xe,n.dedupingInterval),!S[h]||S[h][1]!==Q)return ee&&fe()&&P().onDiscarded(h),!1;ve.error=It;const Pe=g[h];if(!Te(Pe)&&(Q<=Pe[0]||Q<=Pe[1]||Pe[1]===0))return Le(),ee&&fe()&&P().onDiscarded(h),!1;const _e=w().data;ve.data=o(_e,K)?_e:K,ee&&fe()&&P().onSuccess(K,h,n)}catch(Pe){xe();const _e=P(),{shouldRetryOnError:ut}=_e;_e.isPaused()||(ve.error=Pe,ee&&fe()&&(_e.onError(Pe,h,_e),(ut===!0||On(ut)&&ut(Pe))&&(!P().revalidateOnFocus||!P().revalidateOnReconnect||$())&&_e.onErrorRetry(Pe,h,_e,je=>{const Oe=y[h];Oe&&Oe[0]&&Oe[0](Fr.ERROR_REVALIDATE_EVENT,je)},{retryCount:(ue.retryCount||0)+1,dedupe:!0})))}return ne=!1,Le(),!0},[h,r]),ie=p.useCallback((...W)=>Qm(r,E.current,...W),[]);if(no(()=>{k.current=t,M.current=n,Te(V)||(X.current=V)}),no(()=>{if(!h)return;const W=re.bind(It,_f);let F=0;const Q=Yw(h,y,(ne,ue={})=>{if(ne==Fr.FOCUS_EVENT){const ee=Date.now();P().revalidateOnFocus&&ee>F&&$()&&(F=ee+P().focusThrottleInterval,W())}else if(ne==Fr.RECONNECT_EVENT)P().revalidateOnReconnect&&$()&&W();else{if(ne==Fr.MUTATE_EVENT)return re();if(ne==Fr.ERROR_REVALIDATE_EVENT)return re(ue)}});return b.current=!1,E.current=h,v.current=!0,R({_k:m}),le&&(Te(Y)||Si?W():jw(W)),()=>{b.current=!0,Q()}},[h]),no(()=>{let W;function F(){const Q=On(c)?c(w().data):c;Q&&W!==-1&&(W=setTimeout(K,Q))}function K(){!w().error&&(u||P().isVisible())&&(d||P().isOnline())?re(_f).then(F):F()}return F(),()=>{W&&(clearTimeout(W),W=-1)}},[c,u,d,h]),p.useDebugValue(H),i&&Te(Y)&&h){if(!Cl&&Si)throw new Error("Fallback data is required when using suspense in SSR.");k.current=t,M.current=n,b.current=!1;const W=C[h];if(!Te(W)){const F=ie(W);e0(F)}if(Te(se)){const F=re(_f);Te(H)||(F.status="fulfilled",F.value=!0),e0(F)}else throw se}return{mutate:ie,get data(){return O.data=!0,H},get error(){return O.error=!0,se},get isValidating(){return O.isValidating=!0,te},get isLoading(){return O.isLoading=!0,Z}}},UL=ma.defineProperty(Zm,"defaultValue",{value:Vd}),Bn=Hw(WL),Ri="https://timetrekah.goodflame.ru",HL=async e=>{const t=await fetch(Ri+e,{credentials:"include"});if(!t.ok){const n=new Error("An error occurred while fetching the data.");throw n.info=await t.json(),n.status=t.status,n}return t.json()},zn=e=>async t=>{const n=await fetch(Ri+t,{headers:{Authorization:`Token ${e}`},credentials:"include"});if(!n.ok){const r=new Error("An error occurred while fetching the data.");throw r.info=await n.json(),r.status=n.status,r}return n.json()},Kw=e=>async(t,{arg:n})=>{const r=await fetch(Ri+t+n+"/",{method:"DELETE",headers:{Authorization:`Token ${e}`},credentials:"include"});if(!r.ok){const o=new Error("An error occurred while fetching the data.");throw o.info=await r.json(),o.status=r.status,o}},Gw=e=>async(t,{arg:n})=>{console.log(n);const r=await fetch(Ri+t+n.id+"/",{method:"PUT",body:JSON.stringify(n),headers:{"Content-Type":"application/json",Authorization:`Token ${e}`},credentials:"include"});if(!r.ok){const o=new Error("An error occurred while fetching the data.");throw o.info=await r.json(),o.status=r.status,o}return r.json()},Qw=async(e,{arg:t})=>{const n=await fetch(Ri+e,{method:"POST",body:JSON.stringify(t),headers:{"Content-Type":"application/json"},credentials:"include"});if(!n.ok){const r=new Error("An error occurred while fetching the data.");throw r.info=await n.json(),r.status=n.status,r}return n.json()},Jm=e=>async(t,{arg:n})=>{const r=await fetch(Ri+t,{method:"POST",body:JSON.stringify(n),headers:{"Content-Type":"application/json",Authorization:`Token ${e}`},credentials:"include"});if(!r.ok){const o=new Error("An error occurred while fetching the data.");throw o.info=await r.json(),o.status=r.status,o}return r.json()},Xw=e=>async(t,{arg:n})=>{const r=await fetch(Ri+t,{method:"POST",body:n,headers:{Authorization:`Token ${e}`},credentials:"include"});if(!r.ok){const o=new Error("An error occurred while fetching the data.");throw o.info=await r.json(),o.status=r.status,o}return r.json()};_t.use;ma.defineProperty(Zm,"defaultValue",{value:Vd});const Wd=()=>{const{token:e}=p.useContext(nn),{data:t,error:n,isLoading:r,mutate:o}=Bn(e?"/auth/users/me":null,zn(e),{shouldRetryOnError:!1,revalidateOnFocus:!1});return{user:t,error:n,isLoading:r}};function YL(){p.useState(0);const{user:e}=Wd();return p.useContext(nn),x.jsx(Mi,{justifyContent:"center",justifyItems:"center",alignContent:"center",alignItems:"center",paddingX:4,paddingTop:12,children:x.jsxs(Fe,{variant:"h1",children:["Welcome, ",e.username]})})}/** + * @remix-run/router v1.20.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function St(){return St=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Ba(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function GL(){return Math.random().toString(36).substr(2,8)}function n0(e,t){return{usr:e.state,key:e.key,idx:t}}function kl(e,t,n,r){return n===void 0&&(n=null),St({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Ho(t):t,{state:n,key:t&&t.key||r||GL()})}function bi(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Ho(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function QL(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,s=Nt.Pop,l=null,c=u();c==null&&(c=0,a.replaceState(St({},a.state,{idx:c}),""));function u(){return(a.state||{idx:null}).idx}function d(){s=Nt.Pop;let C=u(),h=C==null?null:C-c;c=C,l&&l({action:s,location:S.location,delta:h})}function f(C,h){s=Nt.Push;let m=kl(S.location,C,h);c=u()+1;let v=n0(m,c),b=S.createHref(m);try{a.pushState(v,"",b)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;o.location.assign(b)}i&&l&&l({action:s,location:S.location,delta:1})}function y(C,h){s=Nt.Replace;let m=kl(S.location,C,h);c=u();let v=n0(m,c),b=S.createHref(m);a.replaceState(v,"",b),i&&l&&l({action:s,location:S.location,delta:0})}function g(C){let h=o.location.origin!=="null"?o.location.origin:o.location.href,m=typeof C=="string"?C:bi(C);return m=m.replace(/ $/,"%20"),He(h,"No window.location.(origin|href) available to create URL for href: "+m),new URL(m,h)}let S={get action(){return s},get location(){return e(o,a)},listen(C){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(t0,d),l=C,()=>{o.removeEventListener(t0,d),l=null}},createHref(C){return t(o,C)},createURL:g,encodeLocation(C){let h=g(C);return{pathname:h.pathname,search:h.search,hash:h.hash}},push:f,replace:y,go(C){return a.go(C)}};return S}var at;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(at||(at={}));const XL=new Set(["lazy","caseSensitive","path","id","index","children"]);function qL(e){return e.index===!0}function Ou(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((o,i)=>{let a=[...n,String(i)],s=typeof o.id=="string"?o.id:a.join("-");if(He(o.index!==!0||!o.children,"Cannot specify children on an index route"),He(!r[s],'Found a route id collision on id "'+s+`". Route id's must be globally unique within Data Router usages`),qL(o)){let l=St({},o,t(o),{id:s});return r[s]=l,l}else{let l=St({},o,t(o),{id:s,children:void 0});return r[s]=l,o.children&&(l.children=Ou(o.children,t,a,r)),l}})}function ti(e,t,n){return n===void 0&&(n="/"),Kc(e,t,n,!1)}function Kc(e,t,n,r){let o=typeof t=="string"?Ho(t):t,i=Ga(o.pathname||"/",n);if(i==null)return null;let a=qw(e);JL(a);let s=null;for(let l=0;s==null&&l{let l={relativePath:s===void 0?i.path||"":s,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};l.relativePath.startsWith("/")&&(He(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let c=ro([r,l.relativePath]),u=n.concat(l);i.children&&i.children.length>0&&(He(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),qw(i.children,t,u,c)),!(i.path==null&&!i.index)&&t.push({path:c,score:aj(c,i.index),routesMeta:u})};return e.forEach((i,a)=>{var s;if(i.path===""||!((s=i.path)!=null&&s.includes("?")))o(i,a);else for(let l of Zw(i.path))o(i,a,l)}),t}function Zw(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let a=Zw(r.join("/")),s=[];return s.push(...a.map(l=>l===""?i:[i,l].join("/"))),o&&s.push(...a),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function JL(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:sj(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const ej=/^:[\w-]+$/,tj=3,nj=2,rj=1,oj=10,ij=-2,r0=e=>e==="*";function aj(e,t){let n=e.split("/"),r=n.length;return n.some(r0)&&(r+=ij),t&&(r+=nj),n.filter(o=>!r0(o)).reduce((o,i)=>o+(ej.test(i)?tj:i===""?rj:oj),r)}function sj(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function lj(e,t,n){n===void 0&&(n=!1);let{routesMeta:r}=e,o={},i="/",a=[];for(let s=0;s{let{paramName:f,isOptional:y}=u;if(f==="*"){let S=s[d]||"";a=i.slice(0,i.length-S.length).replace(/(.)\/+$/,"$1")}const g=s[d];return y&&!g?c[f]=void 0:c[f]=(g||"").replace(/%2F/g,"/"),c},{}),pathname:i,pathnameBase:a,pattern:e}}function cj(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Ba(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,s,l)=>(r.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function uj(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Ba(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Ga(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function dj(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?Ho(e):e;return{pathname:n?n.startsWith("/")?n:fj(n,t):t,search:hj(r),hash:mj(o)}}function fj(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function Vf(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function Jw(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function eg(e,t){let n=Jw(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function tg(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=Ho(e):(o=St({},e),He(!o.pathname||!o.pathname.includes("?"),Vf("?","pathname","search",o)),He(!o.pathname||!o.pathname.includes("#"),Vf("#","pathname","hash",o)),He(!o.search||!o.search.includes("#"),Vf("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,s;if(a==null)s=n;else{let d=t.length-1;if(!r&&a.startsWith("..")){let f=a.split("/");for(;f[0]==="..";)f.shift(),d-=1;o.pathname=f.join("/")}s=d>=0?t[d]:"/"}let l=dj(o,s),c=a&&a!=="/"&&a.endsWith("/"),u=(i||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}const ro=e=>e.join("/").replace(/\/\/+/g,"/"),pj=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),hj=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,mj=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class $u{constructor(t,n,r,o){o===void 0&&(o=!1),this.status=t,this.statusText=n||"",this.internal=o,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function Ud(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const e1=["post","put","patch","delete"],gj=new Set(e1),yj=["get",...e1],vj=new Set(yj),xj=new Set([301,302,303,307,308]),Sj=new Set([307,308]),Wf={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},bj={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},hs={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},ng=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,wj=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),t1="remix-router-transitions";function Cj(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;He(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let o;if(e.mapRouteProperties)o=e.mapRouteProperties;else if(e.detectErrorBoundary){let B=e.detectErrorBoundary;o=U=>({hasErrorBoundary:B(U)})}else o=wj;let i={},a=Ou(e.routes,o,void 0,i),s,l=e.basename||"/",c=e.dataStrategy||Mj,u=e.patchRoutesOnNavigation,d=St({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),f=null,y=new Set,g=null,S=null,C=null,h=e.hydrationData!=null,m=ti(a,e.history.location,l),v=null;if(m==null&&!u){let B=mn(404,{pathname:e.history.location.pathname}),{matches:U,route:q}=m0(a);m=U,v={[q.id]:B}}m&&!e.hydrationData&&Gl(m,a,e.history.location.pathname).active&&(m=null);let b;if(m)if(m.some(B=>B.route.lazy))b=!1;else if(!m.some(B=>B.route.loader))b=!0;else if(d.v7_partialHydration){let B=e.hydrationData?e.hydrationData.loaderData:null,U=e.hydrationData?e.hydrationData.errors:null;if(U){let q=m.findIndex(de=>U[de.route.id]!==void 0);b=m.slice(0,q+1).every(de=>!ch(de.route,B,U))}else b=m.every(q=>!ch(q.route,B,U))}else b=e.hydrationData!=null;else if(b=!1,m=[],d.v7_partialHydration){let B=Gl(null,a,e.history.location.pathname);B.active&&B.matches&&(m=B.matches)}let E,k={historyAction:e.history.action,location:e.history.location,matches:m,initialized:b,navigation:Wf,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||v,fetchers:new Map,blockers:new Map},M=Nt.Pop,P=!1,$,w=!1,R=new Map,A=null,j=!1,O=!1,T=[],I=new Set,N=new Map,D=0,L=-1,z=new Map,V=new Set,Y=new Map,se=new Map,X=new Set,H=new Map,le=new Map,ae;function te(){if(f=e.history.listen(B=>{let{action:U,location:q,delta:de}=B;if(ae){ae(),ae=void 0;return}Ba(le.size===0||de!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let we=nt({currentLocation:k.location,nextLocation:q,historyAction:U});if(we&&de!=null){let Re=new Promise($e=>{ae=$e});e.history.go(de*-1),En(we,{state:"blocked",location:q,proceed(){En(we,{state:"proceeding",proceed:void 0,reset:void 0,location:q}),Re.then(()=>e.history.go(de))},reset(){let $e=new Map(k.blockers);$e.set(we,hs),ie({blockers:$e})}});return}return Q(U,q)}),n){_j(t,R);let B=()=>Vj(t,R);t.addEventListener("pagehide",B),A=()=>t.removeEventListener("pagehide",B)}return k.initialized||Q(Nt.Pop,k.location,{initialHydration:!0}),E}function Z(){f&&f(),A&&A(),y.clear(),$&&$.abort(),k.fetchers.forEach((B,U)=>At(U)),k.blockers.forEach((B,U)=>vt(U))}function re(B){return y.add(B),()=>y.delete(B)}function ie(B,U){U===void 0&&(U={}),k=St({},k,B);let q=[],de=[];d.v7_fetcherPersist&&k.fetchers.forEach((we,Re)=>{we.state==="idle"&&(X.has(Re)?de.push(Re):q.push(Re))}),[...y].forEach(we=>we(k,{deletedFetchers:de,viewTransitionOpts:U.viewTransitionOpts,flushSync:U.flushSync===!0})),d.v7_fetcherPersist&&(q.forEach(we=>k.fetchers.delete(we)),de.forEach(we=>At(we)))}function W(B,U,q){var de,we;let{flushSync:Re}=q===void 0?{}:q,$e=k.actionData!=null&&k.navigation.formMethod!=null&&hr(k.navigation.formMethod)&&k.navigation.state==="loading"&&((de=B.state)==null?void 0:de._isRedirect)!==!0,ke;U.actionData?Object.keys(U.actionData).length>0?ke=U.actionData:ke=null:$e?ke=k.actionData:ke=null;let Ee=U.loaderData?p0(k.loaderData,U.loaderData,U.matches||[],U.errors):k.loaderData,Ce=k.blockers;Ce.size>0&&(Ce=new Map(Ce),Ce.forEach((Ke,qt)=>Ce.set(qt,hs)));let De=P===!0||k.navigation.formMethod!=null&&hr(k.navigation.formMethod)&&((we=B.state)==null?void 0:we._isRedirect)!==!0;s&&(a=s,s=void 0),j||M===Nt.Pop||(M===Nt.Push?e.history.push(B,B.state):M===Nt.Replace&&e.history.replace(B,B.state));let Ue;if(M===Nt.Pop){let Ke=R.get(k.location.pathname);Ke&&Ke.has(B.pathname)?Ue={currentLocation:k.location,nextLocation:B}:R.has(B.pathname)&&(Ue={currentLocation:B,nextLocation:k.location})}else if(w){let Ke=R.get(k.location.pathname);Ke?Ke.add(B.pathname):(Ke=new Set([B.pathname]),R.set(k.location.pathname,Ke)),Ue={currentLocation:k.location,nextLocation:B}}ie(St({},U,{actionData:ke,loaderData:Ee,historyAction:M,location:B,initialized:!0,navigation:Wf,revalidation:"idle",restoreScrollPosition:yg(B,U.matches||k.matches),preventScrollReset:De,blockers:Ce}),{viewTransitionOpts:Ue,flushSync:Re===!0}),M=Nt.Pop,P=!1,w=!1,j=!1,O=!1,T=[]}async function F(B,U){if(typeof B=="number"){e.history.go(B);return}let q=lh(k.location,k.matches,l,d.v7_prependBasename,B,d.v7_relativeSplatPath,U==null?void 0:U.fromRouteId,U==null?void 0:U.relative),{path:de,submission:we,error:Re}=i0(d.v7_normalizeFormMethod,!1,q,U),$e=k.location,ke=kl(k.location,de,U&&U.state);ke=St({},ke,e.history.encodeLocation(ke));let Ee=U&&U.replace!=null?U.replace:void 0,Ce=Nt.Push;Ee===!0?Ce=Nt.Replace:Ee===!1||we!=null&&hr(we.formMethod)&&we.formAction===k.location.pathname+k.location.search&&(Ce=Nt.Replace);let De=U&&"preventScrollReset"in U?U.preventScrollReset===!0:void 0,Ue=(U&&U.flushSync)===!0,Ke=nt({currentLocation:$e,nextLocation:ke,historyAction:Ce});if(Ke){En(Ke,{state:"blocked",location:ke,proceed(){En(Ke,{state:"proceeding",proceed:void 0,reset:void 0,location:ke}),F(B,U)},reset(){let qt=new Map(k.blockers);qt.set(Ke,hs),ie({blockers:qt})}});return}return await Q(Ce,ke,{submission:we,pendingError:Re,preventScrollReset:De,replace:U&&U.replace,enableViewTransition:U&&U.viewTransition,flushSync:Ue})}function K(){if(ut(),ie({revalidation:"loading"}),k.navigation.state!=="submitting"){if(k.navigation.state==="idle"){Q(k.historyAction,k.location,{startUninterruptedRevalidation:!0});return}Q(M||k.historyAction,k.navigation.location,{overrideNavigation:k.navigation,enableViewTransition:w===!0})}}async function Q(B,U,q){$&&$.abort(),$=null,M=B,j=(q&&q.startUninterruptedRevalidation)===!0,rC(k.location,k.matches),P=(q&&q.preventScrollReset)===!0,w=(q&&q.enableViewTransition)===!0;let de=s||a,we=q&&q.overrideNavigation,Re=ti(de,U,l),$e=(q&&q.flushSync)===!0,ke=Gl(Re,de,U.pathname);if(ke.active&&ke.matches&&(Re=ke.matches),!Re){let{error:dt,notFoundMatches:Ze,route:Et}=hn(U.pathname);W(U,{matches:Ze,loaderData:{},errors:{[Et.id]:dt}},{flushSync:$e});return}if(k.initialized&&!O&&$j(k.location,U)&&!(q&&q.submission&&hr(q.submission.formMethod))){W(U,{matches:Re},{flushSync:$e});return}$=new AbortController;let Ee=Wi(e.history,U,$.signal,q&&q.submission),Ce;if(q&&q.pendingError)Ce=[ni(Re).route.id,{type:at.error,error:q.pendingError}];else if(q&&q.submission&&hr(q.submission.formMethod)){let dt=await ne(Ee,U,q.submission,Re,ke.active,{replace:q.replace,flushSync:$e});if(dt.shortCircuited)return;if(dt.pendingActionResult){let[Ze,Et]=dt.pendingActionResult;if(Rn(Et)&&Ud(Et.error)&&Et.error.status===404){$=null,W(U,{matches:dt.matches,loaderData:{},errors:{[Ze]:Et.error}});return}}Re=dt.matches||Re,Ce=dt.pendingActionResult,we=Uf(U,q.submission),$e=!1,ke.active=!1,Ee=Wi(e.history,Ee.url,Ee.signal)}let{shortCircuited:De,matches:Ue,loaderData:Ke,errors:qt}=await ue(Ee,U,Re,ke.active,we,q&&q.submission,q&&q.fetcherSubmission,q&&q.replace,q&&q.initialHydration===!0,$e,Ce);De||($=null,W(U,St({matches:Ue||Re},h0(Ce),{loaderData:Ke,errors:qt})))}async function ne(B,U,q,de,we,Re){Re===void 0&&(Re={}),ut();let $e=Bj(U,q);if(ie({navigation:$e},{flushSync:Re.flushSync===!0}),we){let Ce=await Ql(de,U.pathname,B.signal);if(Ce.type==="aborted")return{shortCircuited:!0};if(Ce.type==="error"){let De=ni(Ce.partialMatches).route.id;return{matches:Ce.partialMatches,pendingActionResult:[De,{type:at.error,error:Ce.error}]}}else if(Ce.matches)de=Ce.matches;else{let{notFoundMatches:De,error:Ue,route:Ke}=hn(U.pathname);return{matches:De,pendingActionResult:[Ke.id,{type:at.error,error:Ue}]}}}let ke,Ee=Ts(de,U);if(!Ee.route.action&&!Ee.route.lazy)ke={type:at.error,error:mn(405,{method:B.method,pathname:U.pathname,routeId:Ee.route.id})};else if(ke=(await Pe("action",k,B,[Ee],de,null))[Ee.route.id],B.signal.aborted)return{shortCircuited:!0};if(si(ke)){let Ce;return Re&&Re.replace!=null?Ce=Re.replace:Ce=u0(ke.response.headers.get("Location"),new URL(B.url),l)===k.location.pathname+k.location.search,await tt(B,ke,!0,{submission:q,replace:Ce}),{shortCircuited:!0}}if(Mo(ke))throw mn(400,{type:"defer-action"});if(Rn(ke)){let Ce=ni(de,Ee.route.id);return(Re&&Re.replace)!==!0&&(M=Nt.Push),{matches:de,pendingActionResult:[Ce.route.id,ke]}}return{matches:de,pendingActionResult:[Ee.route.id,ke]}}async function ue(B,U,q,de,we,Re,$e,ke,Ee,Ce,De){let Ue=we||Uf(U,Re),Ke=Re||$e||y0(Ue),qt=!j&&(!d.v7_partialHydration||!Ee);if(de){if(qt){let Pt=ee(De);ie(St({navigation:Ue},Pt!==void 0?{actionData:Pt}:{}),{flushSync:Ce})}let Xe=await Ql(q,U.pathname,B.signal);if(Xe.type==="aborted")return{shortCircuited:!0};if(Xe.type==="error"){let Pt=ni(Xe.partialMatches).route.id;return{matches:Xe.partialMatches,loaderData:{},errors:{[Pt]:Xe.error}}}else if(Xe.matches)q=Xe.matches;else{let{error:Pt,notFoundMatches:$i,route:qa}=hn(U.pathname);return{matches:$i,loaderData:{},errors:{[qa.id]:Pt}}}}let dt=s||a,[Ze,Et]=s0(e.history,k,q,Ke,U,d.v7_partialHydration&&Ee===!0,d.v7_skipActionErrorRevalidation,O,T,I,X,Y,V,dt,l,De);if(Yr(Xe=>!(q&&q.some(Pt=>Pt.route.id===Xe))||Ze&&Ze.some(Pt=>Pt.route.id===Xe)),L=++D,Ze.length===0&&Et.length===0){let Xe=go();return W(U,St({matches:q,loaderData:{},errors:De&&Rn(De[1])?{[De[0]]:De[1].error}:null},h0(De),Xe?{fetchers:new Map(k.fetchers)}:{}),{flushSync:Ce}),{shortCircuited:!0}}if(qt){let Xe={};if(!de){Xe.navigation=Ue;let Pt=ee(De);Pt!==void 0&&(Xe.actionData=Pt)}Et.length>0&&(Xe.fetchers=fe(Et)),ie(Xe,{flushSync:Ce})}Et.forEach(Xe=>{st(Xe.key),Xe.controller&&N.set(Xe.key,Xe.controller)});let Oi=()=>Et.forEach(Xe=>st(Xe.key));$&&$.signal.addEventListener("abort",Oi);let{loaderResults:Qa,fetcherResults:Kr}=await _e(k,q,Ze,Et,B);if(B.signal.aborted)return{shortCircuited:!0};$&&$.signal.removeEventListener("abort",Oi),Et.forEach(Xe=>N.delete(Xe.key));let Pr=Ec(Qa);if(Pr)return await tt(B,Pr.result,!0,{replace:ke}),{shortCircuited:!0};if(Pr=Ec(Kr),Pr)return V.add(Pr.key),await tt(B,Pr.result,!0,{replace:ke}),{shortCircuited:!0};let{loaderData:Jd,errors:Xa}=f0(k,q,Qa,De,Et,Kr,H);H.forEach((Xe,Pt)=>{Xe.subscribe($i=>{($i||Xe.done)&&H.delete(Pt)})}),d.v7_partialHydration&&Ee&&k.errors&&(Xa=St({},k.errors,Xa));let Yo=go(),Xl=Me(L),ql=Yo||Xl||Et.length>0;return St({matches:q,loaderData:Jd,errors:Xa},ql?{fetchers:new Map(k.fetchers)}:{})}function ee(B){if(B&&!Rn(B[1]))return{[B[0]]:B[1].data};if(k.actionData)return Object.keys(k.actionData).length===0?null:k.actionData}function fe(B){return B.forEach(U=>{let q=k.fetchers.get(U.key),de=ms(void 0,q?q.data:void 0);k.fetchers.set(U.key,de)}),new Map(k.fetchers)}function ve(B,U,q,de){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");st(B);let we=(de&&de.flushSync)===!0,Re=s||a,$e=lh(k.location,k.matches,l,d.v7_prependBasename,q,d.v7_relativeSplatPath,U,de==null?void 0:de.relative),ke=ti(Re,$e,l),Ee=Gl(ke,Re,$e);if(Ee.active&&Ee.matches&&(ke=Ee.matches),!ke){Oe(B,U,mn(404,{pathname:$e}),{flushSync:we});return}let{path:Ce,submission:De,error:Ue}=i0(d.v7_normalizeFormMethod,!0,$e,de);if(Ue){Oe(B,U,Ue,{flushSync:we});return}let Ke=Ts(ke,Ce),qt=(de&&de.preventScrollReset)===!0;if(De&&hr(De.formMethod)){Le(B,U,Ce,Ke,ke,Ee.active,we,qt,De);return}Y.set(B,{routeId:U,path:Ce}),xe(B,U,Ce,Ke,ke,Ee.active,we,qt,De)}async function Le(B,U,q,de,we,Re,$e,ke,Ee){ut(),Y.delete(B);function Ce(Lt){if(!Lt.route.action&&!Lt.route.lazy){let Ai=mn(405,{method:Ee.formMethod,pathname:q,routeId:U});return Oe(B,U,Ai,{flushSync:$e}),!0}return!1}if(!Re&&Ce(de))return;let De=k.fetchers.get(B);je(B,zj(Ee,De),{flushSync:$e});let Ue=new AbortController,Ke=Wi(e.history,q,Ue.signal,Ee);if(Re){let Lt=await Ql(we,q,Ke.signal);if(Lt.type==="aborted")return;if(Lt.type==="error"){Oe(B,U,Lt.error,{flushSync:$e});return}else if(Lt.matches){if(we=Lt.matches,de=Ts(we,q),Ce(de))return}else{Oe(B,U,mn(404,{pathname:q}),{flushSync:$e});return}}N.set(B,Ue);let qt=D,Ze=(await Pe("action",k,Ke,[de],we,B))[de.route.id];if(Ke.signal.aborted){N.get(B)===Ue&&N.delete(B);return}if(d.v7_fetcherPersist&&X.has(B)){if(si(Ze)||Rn(Ze)){je(B,xo(void 0));return}}else{if(si(Ze))if(N.delete(B),L>qt){je(B,xo(void 0));return}else return V.add(B),je(B,ms(Ee)),tt(Ke,Ze,!1,{fetcherSubmission:Ee,preventScrollReset:ke});if(Rn(Ze)){Oe(B,U,Ze.error);return}}if(Mo(Ze))throw mn(400,{type:"defer-action"});let Et=k.navigation.location||k.location,Oi=Wi(e.history,Et,Ue.signal),Qa=s||a,Kr=k.navigation.state!=="idle"?ti(Qa,k.navigation.location,l):k.matches;He(Kr,"Didn't find any matches after fetcher action");let Pr=++D;z.set(B,Pr);let Jd=ms(Ee,Ze.data);k.fetchers.set(B,Jd);let[Xa,Yo]=s0(e.history,k,Kr,Ee,Et,!1,d.v7_skipActionErrorRevalidation,O,T,I,X,Y,V,Qa,l,[de.route.id,Ze]);Yo.filter(Lt=>Lt.key!==B).forEach(Lt=>{let Ai=Lt.key,vg=k.fetchers.get(Ai),aC=ms(void 0,vg?vg.data:void 0);k.fetchers.set(Ai,aC),st(Ai),Lt.controller&&N.set(Ai,Lt.controller)}),ie({fetchers:new Map(k.fetchers)});let Xl=()=>Yo.forEach(Lt=>st(Lt.key));Ue.signal.addEventListener("abort",Xl);let{loaderResults:ql,fetcherResults:Xe}=await _e(k,Kr,Xa,Yo,Oi);if(Ue.signal.aborted)return;Ue.signal.removeEventListener("abort",Xl),z.delete(B),N.delete(B),Yo.forEach(Lt=>N.delete(Lt.key));let Pt=Ec(ql);if(Pt)return tt(Oi,Pt.result,!1,{preventScrollReset:ke});if(Pt=Ec(Xe),Pt)return V.add(Pt.key),tt(Oi,Pt.result,!1,{preventScrollReset:ke});let{loaderData:$i,errors:qa}=f0(k,Kr,ql,void 0,Yo,Xe,H);if(k.fetchers.has(B)){let Lt=xo(Ze.data);k.fetchers.set(B,Lt)}Me(Pr),k.navigation.state==="loading"&&Pr>L?(He(M,"Expected pending action"),$&&$.abort(),W(k.navigation.location,{matches:Kr,loaderData:$i,errors:qa,fetchers:new Map(k.fetchers)})):(ie({errors:qa,loaderData:p0(k.loaderData,$i,Kr,qa),fetchers:new Map(k.fetchers)}),O=!1)}async function xe(B,U,q,de,we,Re,$e,ke,Ee){let Ce=k.fetchers.get(B);je(B,ms(Ee,Ce?Ce.data:void 0),{flushSync:$e});let De=new AbortController,Ue=Wi(e.history,q,De.signal);if(Re){let Ze=await Ql(we,q,Ue.signal);if(Ze.type==="aborted")return;if(Ze.type==="error"){Oe(B,U,Ze.error,{flushSync:$e});return}else if(Ze.matches)we=Ze.matches,de=Ts(we,q);else{Oe(B,U,mn(404,{pathname:q}),{flushSync:$e});return}}N.set(B,De);let Ke=D,dt=(await Pe("loader",k,Ue,[de],we,B))[de.route.id];if(Mo(dt)&&(dt=await rg(dt,Ue.signal,!0)||dt),N.get(B)===De&&N.delete(B),!Ue.signal.aborted){if(X.has(B)){je(B,xo(void 0));return}if(si(dt))if(L>Ke){je(B,xo(void 0));return}else{V.add(B),await tt(Ue,dt,!1,{preventScrollReset:ke});return}if(Rn(dt)){Oe(B,U,dt.error);return}He(!Mo(dt),"Unhandled fetcher deferred data"),je(B,xo(dt.data))}}async function tt(B,U,q,de){let{submission:we,fetcherSubmission:Re,preventScrollReset:$e,replace:ke}=de===void 0?{}:de;U.response.headers.has("X-Remix-Revalidate")&&(O=!0);let Ee=U.response.headers.get("Location");He(Ee,"Expected a Location header on the redirect Response"),Ee=u0(Ee,new URL(B.url),l);let Ce=kl(k.location,Ee,{_isRedirect:!0});if(n){let Ze=!1;if(U.response.headers.has("X-Remix-Reload-Document"))Ze=!0;else if(ng.test(Ee)){const Et=e.history.createURL(Ee);Ze=Et.origin!==t.location.origin||Ga(Et.pathname,l)==null}if(Ze){ke?t.location.replace(Ee):t.location.assign(Ee);return}}$=null;let De=ke===!0||U.response.headers.has("X-Remix-Replace")?Nt.Replace:Nt.Push,{formMethod:Ue,formAction:Ke,formEncType:qt}=k.navigation;!we&&!Re&&Ue&&Ke&&qt&&(we=y0(k.navigation));let dt=we||Re;if(Sj.has(U.response.status)&&dt&&hr(dt.formMethod))await Q(De,Ce,{submission:St({},dt,{formAction:Ee}),preventScrollReset:$e||P,enableViewTransition:q?w:void 0});else{let Ze=Uf(Ce,we);await Q(De,Ce,{overrideNavigation:Ze,fetcherSubmission:Re,preventScrollReset:$e||P,enableViewTransition:q?w:void 0})}}async function Pe(B,U,q,de,we,Re){let $e,ke={};try{$e=await Rj(c,B,U,q,de,we,Re,i,o)}catch(Ee){return de.forEach(Ce=>{ke[Ce.route.id]={type:at.error,error:Ee}}),ke}for(let[Ee,Ce]of Object.entries($e))if(Aj(Ce)){let De=Ce.result;ke[Ee]={type:at.redirect,response:Ij(De,q,Ee,we,l,d.v7_relativeSplatPath)}}else ke[Ee]=await Tj(Ce);return ke}async function _e(B,U,q,de,we){let Re=B.matches,$e=Pe("loader",B,we,q,U,null),ke=Promise.all(de.map(async De=>{if(De.matches&&De.match&&De.controller){let Ke=(await Pe("loader",B,Wi(e.history,De.path,De.controller.signal),[De.match],De.matches,De.key))[De.match.route.id];return{[De.key]:Ke}}else return Promise.resolve({[De.key]:{type:at.error,error:mn(404,{pathname:De.path})}})})),Ee=await $e,Ce=(await ke).reduce((De,Ue)=>Object.assign(De,Ue),{});return await Promise.all([Nj(U,Ee,we.signal,Re,B.loaderData),Fj(U,Ce,de)]),{loaderResults:Ee,fetcherResults:Ce}}function ut(){O=!0,T.push(...Yr()),Y.forEach((B,U)=>{N.has(U)&&I.add(U),st(U)})}function je(B,U,q){q===void 0&&(q={}),k.fetchers.set(B,U),ie({fetchers:new Map(k.fetchers)},{flushSync:(q&&q.flushSync)===!0})}function Oe(B,U,q,de){de===void 0&&(de={});let we=ni(k.matches,U);At(B),ie({errors:{[we.route.id]:q},fetchers:new Map(k.fetchers)},{flushSync:(de&&de.flushSync)===!0})}function pt(B){return d.v7_fetcherPersist&&(se.set(B,(se.get(B)||0)+1),X.has(B)&&X.delete(B)),k.fetchers.get(B)||bj}function At(B){let U=k.fetchers.get(B);N.has(B)&&!(U&&U.state==="loading"&&z.has(B))&&st(B),Y.delete(B),z.delete(B),V.delete(B),X.delete(B),I.delete(B),k.fetchers.delete(B)}function Ne(B){if(d.v7_fetcherPersist){let U=(se.get(B)||0)-1;U<=0?(se.delete(B),X.add(B)):se.set(B,U)}else At(B);ie({fetchers:new Map(k.fetchers)})}function st(B){let U=N.get(B);U&&(U.abort(),N.delete(B))}function Hn(B){for(let U of B){let q=pt(U),de=xo(q.data);k.fetchers.set(U,de)}}function go(){let B=[],U=!1;for(let q of V){let de=k.fetchers.get(q);He(de,"Expected fetcher: "+q),de.state==="loading"&&(V.delete(q),B.push(q),U=!0)}return Hn(B),U}function Me(B){let U=[];for(let[q,de]of z)if(de0}function qe(B,U){let q=k.blockers.get(B)||hs;return le.get(B)!==U&&le.set(B,U),q}function vt(B){k.blockers.delete(B),le.delete(B)}function En(B,U){let q=k.blockers.get(B)||hs;He(q.state==="unblocked"&&U.state==="blocked"||q.state==="blocked"&&U.state==="blocked"||q.state==="blocked"&&U.state==="proceeding"||q.state==="blocked"&&U.state==="unblocked"||q.state==="proceeding"&&U.state==="unblocked","Invalid blocker state transition: "+q.state+" -> "+U.state);let de=new Map(k.blockers);de.set(B,U),ie({blockers:de})}function nt(B){let{currentLocation:U,nextLocation:q,historyAction:de}=B;if(le.size===0)return;le.size>1&&Ba(!1,"A router only supports one blocker at a time");let we=Array.from(le.entries()),[Re,$e]=we[we.length-1],ke=k.blockers.get(Re);if(!(ke&&ke.state==="proceeding")&&$e({currentLocation:U,nextLocation:q,historyAction:de}))return Re}function hn(B){let U=mn(404,{pathname:B}),q=s||a,{matches:de,route:we}=m0(q);return Yr(),{notFoundMatches:de,route:we,error:U}}function Yr(B){let U=[];return H.forEach((q,de)=>{(!B||B(de))&&(q.cancel(),U.push(de),H.delete(de))}),U}function Er(B,U,q){if(g=B,C=U,S=q||null,!h&&k.navigation===Wf){h=!0;let de=yg(k.location,k.matches);de!=null&&ie({restoreScrollPosition:de})}return()=>{g=null,C=null,S=null}}function gg(B,U){return S&&S(B,U.map(de=>ZL(de,k.loaderData)))||B.key}function rC(B,U){if(g&&C){let q=gg(B,U);g[q]=C()}}function yg(B,U){if(g){let q=gg(B,U),de=g[q];if(typeof de=="number")return de}return null}function Gl(B,U,q){if(u)if(B){if(Object.keys(B[0].params).length>0)return{active:!0,matches:Kc(U,q,l,!0)}}else return{active:!0,matches:Kc(U,q,l,!0)||[]};return{active:!1,matches:null}}async function Ql(B,U,q){if(!u)return{type:"success",matches:B};let de=B;for(;;){let we=s==null,Re=s||a,$e=i;try{await u({path:U,matches:de,patch:(Ce,De)=>{q.aborted||c0(Ce,De,Re,$e,o)}})}catch(Ce){return{type:"error",error:Ce,partialMatches:de}}finally{we&&!q.aborted&&(a=[...a])}if(q.aborted)return{type:"aborted"};let ke=ti(Re,U,l);if(ke)return{type:"success",matches:ke};let Ee=Kc(Re,U,l,!0);if(!Ee||de.length===Ee.length&&de.every((Ce,De)=>Ce.route.id===Ee[De].route.id))return{type:"success",matches:null};de=Ee}}function oC(B){i={},s=Ou(B,o,void 0,i)}function iC(B,U){let q=s==null;c0(B,U,s||a,i,o),q&&(a=[...a],ie({}))}return E={get basename(){return l},get future(){return d},get state(){return k},get routes(){return a},get window(){return t},initialize:te,subscribe:re,enableScrollRestoration:Er,navigate:F,fetch:ve,revalidate:K,createHref:B=>e.history.createHref(B),encodeLocation:B=>e.history.encodeLocation(B),getFetcher:pt,deleteFetcher:Ne,dispose:Z,getBlocker:qe,deleteBlocker:vt,patchRoutes:iC,_internalFetchControllers:N,_internalActiveDeferreds:H,_internalSetRoutes:oC},E}function kj(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function lh(e,t,n,r,o,i,a,s){let l,c;if(a){l=[];for(let d of t)if(l.push(d),d.route.id===a){c=d;break}}else l=t,c=t[t.length-1];let u=tg(o||".",eg(l,i),Ga(e.pathname,n)||e.pathname,s==="path");if(o==null&&(u.search=e.search,u.hash=e.hash),(o==null||o===""||o===".")&&c){let d=og(u.search);if(c.route.index&&!d)u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index";else if(!c.route.index&&d){let f=new URLSearchParams(u.search),y=f.getAll("index");f.delete("index"),y.filter(S=>S).forEach(S=>f.append("index",S));let g=f.toString();u.search=g?"?"+g:""}}return r&&n!=="/"&&(u.pathname=u.pathname==="/"?n:ro([n,u.pathname])),bi(u)}function i0(e,t,n,r){if(!r||!kj(r))return{path:n};if(r.formMethod&&!jj(r.formMethod))return{path:n,error:mn(405,{method:r.formMethod})};let o=()=>({path:n,error:mn(400,{type:"invalid-body"})}),i=r.formMethod||"get",a=e?i.toUpperCase():i.toLowerCase(),s=o1(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!hr(a))return o();let f=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((y,g)=>{let[S,C]=g;return""+y+S+"="+C+` +`},""):String(r.body);return{path:n,submission:{formMethod:a,formAction:s,formEncType:r.formEncType,formData:void 0,json:void 0,text:f}}}else if(r.formEncType==="application/json"){if(!hr(a))return o();try{let f=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:a,formAction:s,formEncType:r.formEncType,formData:void 0,json:f,text:void 0}}}catch{return o()}}}He(typeof FormData=="function","FormData is not available in this environment");let l,c;if(r.formData)l=uh(r.formData),c=r.formData;else if(r.body instanceof FormData)l=uh(r.body),c=r.body;else if(r.body instanceof URLSearchParams)l=r.body,c=d0(l);else if(r.body==null)l=new URLSearchParams,c=new FormData;else try{l=new URLSearchParams(r.body),c=d0(l)}catch{return o()}let u={formMethod:a,formAction:s,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:c,json:void 0,text:void 0};if(hr(u.formMethod))return{path:n,submission:u};let d=Ho(n);return t&&d.search&&og(d.search)&&l.append("index",""),d.search="?"+l,{path:bi(d),submission:u}}function a0(e,t,n){n===void 0&&(n=!1);let r=e.findIndex(o=>o.route.id===t);return r>=0?e.slice(0,n?r+1:r):e}function s0(e,t,n,r,o,i,a,s,l,c,u,d,f,y,g,S){let C=S?Rn(S[1])?S[1].error:S[1].data:void 0,h=e.createURL(t.location),m=e.createURL(o),v=n;i&&t.errors?v=a0(n,Object.keys(t.errors)[0],!0):S&&Rn(S[1])&&(v=a0(n,S[0]));let b=S?S[1].statusCode:void 0,E=a&&b&&b>=400,k=v.filter((P,$)=>{let{route:w}=P;if(w.lazy)return!0;if(w.loader==null)return!1;if(i)return ch(w,t.loaderData,t.errors);if(Ej(t.loaderData,t.matches[$],P)||l.some(j=>j===P.route.id))return!0;let R=t.matches[$],A=P;return l0(P,St({currentUrl:h,currentParams:R.params,nextUrl:m,nextParams:A.params},r,{actionResult:C,actionStatus:b,defaultShouldRevalidate:E?!1:s||h.pathname+h.search===m.pathname+m.search||h.search!==m.search||n1(R,A)}))}),M=[];return d.forEach((P,$)=>{if(i||!n.some(O=>O.route.id===P.routeId)||u.has($))return;let w=ti(y,P.path,g);if(!w){M.push({key:$,routeId:P.routeId,path:P.path,matches:null,match:null,controller:null});return}let R=t.fetchers.get($),A=Ts(w,P.path),j=!1;f.has($)?j=!1:c.has($)?(c.delete($),j=!0):R&&R.state!=="idle"&&R.data===void 0?j=s:j=l0(A,St({currentUrl:h,currentParams:t.matches[t.matches.length-1].params,nextUrl:m,nextParams:n[n.length-1].params},r,{actionResult:C,actionStatus:b,defaultShouldRevalidate:E?!1:s})),j&&M.push({key:$,routeId:P.routeId,path:P.path,matches:w,match:A,controller:new AbortController})}),[k,M]}function ch(e,t,n){if(e.lazy)return!0;if(!e.loader)return!1;let r=t!=null&&t[e.id]!==void 0,o=n!=null&&n[e.id]!==void 0;return!r&&o?!1:typeof e.loader=="function"&&e.loader.hydrate===!0?!0:!r&&!o}function Ej(e,t,n){let r=!t||n.route.id!==t.route.id,o=e[n.route.id]===void 0;return r||o}function n1(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function l0(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}function c0(e,t,n,r,o){var i;let a;if(e){let c=r[e];He(c,"No route found to patch children into: routeId = "+e),c.children||(c.children=[]),a=c.children}else a=n;let s=t.filter(c=>!a.some(u=>r1(c,u))),l=Ou(s,o,[e||"_","patch",String(((i=a)==null?void 0:i.length)||"0")],r);a.push(...l)}function r1(e,t){return"id"in e&&"id"in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children.every((n,r)=>{var o;return(o=t.children)==null?void 0:o.some(i=>r1(n,i))}):!1}async function Pj(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let o=n[e.id];He(o,"No route found in manifest");let i={};for(let a in r){let l=o[a]!==void 0&&a!=="hasErrorBoundary";Ba(!l,'Route "'+o.id+'" has a static property "'+a+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+a+'" will be ignored.')),!l&&!XL.has(a)&&(i[a]=r[a])}Object.assign(o,i),Object.assign(o,St({},t(o),{lazy:void 0}))}async function Mj(e){let{matches:t}=e,n=t.filter(o=>o.shouldLoad);return(await Promise.all(n.map(o=>o.resolve()))).reduce((o,i,a)=>Object.assign(o,{[n[a].route.id]:i}),{})}async function Rj(e,t,n,r,o,i,a,s,l,c){let u=i.map(y=>y.route.lazy?Pj(y.route,l,s):void 0),d=i.map((y,g)=>{let S=u[g],C=o.some(m=>m.route.id===y.route.id);return St({},y,{shouldLoad:C,resolve:async m=>(m&&r.method==="GET"&&(y.route.lazy||y.route.loader)&&(C=!0),C?Dj(t,r,y,S,m,c):Promise.resolve({type:at.data,result:void 0}))})}),f=await e({matches:d,request:r,params:i[0].params,fetcherKey:a,context:c});try{await Promise.all(u)}catch{}return f}async function Dj(e,t,n,r,o,i){let a,s,l=c=>{let u,d=new Promise((g,S)=>u=S);s=()=>u(),t.signal.addEventListener("abort",s);let f=g=>typeof c!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+n.route.id+"]"))):c({request:t,params:n.params,context:i},...g!==void 0?[g]:[]),y=(async()=>{try{return{type:"data",result:await(o?o(S=>f(S)):f())}}catch(g){return{type:"error",result:g}}})();return Promise.race([y,d])};try{let c=n.route[e];if(r)if(c){let u,[d]=await Promise.all([l(c).catch(f=>{u=f}),r]);if(u!==void 0)throw u;a=d}else if(await r,c=n.route[e],c)a=await l(c);else if(e==="action"){let u=new URL(t.url),d=u.pathname+u.search;throw mn(405,{method:t.method,pathname:d,routeId:n.route.id})}else return{type:at.data,result:void 0};else if(c)a=await l(c);else{let u=new URL(t.url),d=u.pathname+u.search;throw mn(404,{pathname:d})}He(a.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(c){return{type:at.error,result:c}}finally{s&&t.signal.removeEventListener("abort",s)}return a}async function Tj(e){let{result:t,type:n}=e;if(i1(t)){let c;try{let u=t.headers.get("Content-Type");u&&/\bapplication\/json\b/.test(u)?t.body==null?c=null:c=await t.json():c=await t.text()}catch(u){return{type:at.error,error:u}}return n===at.error?{type:at.error,error:new $u(t.status,t.statusText,c),statusCode:t.status,headers:t.headers}:{type:at.data,data:c,statusCode:t.status,headers:t.headers}}if(n===at.error){if(g0(t)){var r;if(t.data instanceof Error){var o;return{type:at.error,error:t.data,statusCode:(o=t.init)==null?void 0:o.status}}t=new $u(((r=t.init)==null?void 0:r.status)||500,void 0,t.data)}return{type:at.error,error:t,statusCode:Ud(t)?t.status:void 0}}if(Lj(t)){var i,a;return{type:at.deferred,deferredData:t,statusCode:(i=t.init)==null?void 0:i.status,headers:((a=t.init)==null?void 0:a.headers)&&new Headers(t.init.headers)}}if(g0(t)){var s,l;return{type:at.data,data:t.data,statusCode:(s=t.init)==null?void 0:s.status,headers:(l=t.init)!=null&&l.headers?new Headers(t.init.headers):void 0}}return{type:at.data,data:t}}function Ij(e,t,n,r,o,i){let a=e.headers.get("Location");if(He(a,"Redirects returned/thrown from loaders/actions must have a Location header"),!ng.test(a)){let s=r.slice(0,r.findIndex(l=>l.route.id===n)+1);a=lh(new URL(t.url),s,o,!0,a,i),e.headers.set("Location",a)}return e}function u0(e,t,n){if(ng.test(e)){let r=e,o=r.startsWith("//")?new URL(t.protocol+r):new URL(r),i=Ga(o.pathname,n)!=null;if(o.origin===t.origin&&i)return o.pathname+o.search+o.hash}return e}function Wi(e,t,n,r){let o=e.createURL(o1(t)).toString(),i={signal:n};if(r&&hr(r.formMethod)){let{formMethod:a,formEncType:s}=r;i.method=a.toUpperCase(),s==="application/json"?(i.headers=new Headers({"Content-Type":s}),i.body=JSON.stringify(r.json)):s==="text/plain"?i.body=r.text:s==="application/x-www-form-urlencoded"&&r.formData?i.body=uh(r.formData):i.body=r.formData}return new Request(o,i)}function uh(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function d0(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function Oj(e,t,n,r,o){let i={},a=null,s,l=!1,c={},u=n&&Rn(n[1])?n[1].error:void 0;return e.forEach(d=>{if(!(d.route.id in t))return;let f=d.route.id,y=t[f];if(He(!si(y),"Cannot handle redirect results in processLoaderData"),Rn(y)){let g=y.error;u!==void 0&&(g=u,u=void 0),a=a||{};{let S=ni(e,f);a[S.route.id]==null&&(a[S.route.id]=g)}i[f]=void 0,l||(l=!0,s=Ud(y.error)?y.error.status:500),y.headers&&(c[f]=y.headers)}else Mo(y)?(r.set(f,y.deferredData),i[f]=y.deferredData.data,y.statusCode!=null&&y.statusCode!==200&&!l&&(s=y.statusCode),y.headers&&(c[f]=y.headers)):(i[f]=y.data,y.statusCode&&y.statusCode!==200&&!l&&(s=y.statusCode),y.headers&&(c[f]=y.headers))}),u!==void 0&&n&&(a={[n[0]]:u},i[n[0]]=void 0),{loaderData:i,errors:a,statusCode:s||200,loaderHeaders:c}}function f0(e,t,n,r,o,i,a){let{loaderData:s,errors:l}=Oj(t,n,r,a);return o.forEach(c=>{let{key:u,match:d,controller:f}=c,y=i[u];if(He(y,"Did not find corresponding fetcher result"),!(f&&f.signal.aborted))if(Rn(y)){let g=ni(e.matches,d==null?void 0:d.route.id);l&&l[g.route.id]||(l=St({},l,{[g.route.id]:y.error})),e.fetchers.delete(u)}else if(si(y))He(!1,"Unhandled fetcher revalidation redirect");else if(Mo(y))He(!1,"Unhandled fetcher deferred data");else{let g=xo(y.data);e.fetchers.set(u,g)}}),{loaderData:s,errors:l}}function p0(e,t,n,r){let o=St({},t);for(let i of n){let a=i.route.id;if(t.hasOwnProperty(a)?t[a]!==void 0&&(o[a]=t[a]):e[a]!==void 0&&i.route.loader&&(o[a]=e[a]),r&&r.hasOwnProperty(a))break}return o}function h0(e){return e?Rn(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function ni(e,t){return(t?e.slice(0,e.findIndex(r=>r.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function m0(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function mn(e,t){let{pathname:n,routeId:r,method:o,type:i,message:a}=t===void 0?{}:t,s="Unknown Server Error",l="Unknown @remix-run/router error";return e===400?(s="Bad Request",o&&n&&r?l="You made a "+o+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":i==="defer-action"?l="defer() is not supported in actions":i==="invalid-body"&&(l="Unable to encode submission body")):e===403?(s="Forbidden",l='Route "'+r+'" does not match URL "'+n+'"'):e===404?(s="Not Found",l='No route matches URL "'+n+'"'):e===405&&(s="Method Not Allowed",o&&n&&r?l="You made a "+o.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":o&&(l='Invalid request method "'+o.toUpperCase()+'"')),new $u(e||500,s,new Error(l),!0)}function Ec(e){let t=Object.entries(e);for(let n=t.length-1;n>=0;n--){let[r,o]=t[n];if(si(o))return{key:r,result:o}}}function o1(e){let t=typeof e=="string"?Ho(e):e;return bi(St({},t,{hash:""}))}function $j(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function Aj(e){return i1(e.result)&&xj.has(e.result.status)}function Mo(e){return e.type===at.deferred}function Rn(e){return e.type===at.error}function si(e){return(e&&e.type)===at.redirect}function g0(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function Lj(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function i1(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function jj(e){return vj.has(e.toLowerCase())}function hr(e){return gj.has(e.toLowerCase())}async function Nj(e,t,n,r,o){let i=Object.entries(t);for(let a=0;a(f==null?void 0:f.route.id)===s);if(!c)continue;let u=r.find(f=>f.route.id===c.route.id),d=u!=null&&!n1(u,c)&&(o&&o[c.route.id])!==void 0;Mo(l)&&d&&await rg(l,n,!1).then(f=>{f&&(t[s]=f)})}}async function Fj(e,t,n){for(let r=0;r(c==null?void 0:c.route.id)===i)&&Mo(s)&&(He(a,"Expected an AbortController for revalidating fetcher deferred result"),await rg(s,a.signal,!0).then(c=>{c&&(t[o]=c)}))}}async function rg(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:at.data,data:e.deferredData.unwrappedData}}catch(o){return{type:at.error,error:o}}return{type:at.data,data:e.deferredData.data}}}function og(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Ts(e,t){let n=typeof t=="string"?Ho(t).search:t.search;if(e[e.length-1].route.index&&og(n||""))return e[e.length-1];let r=Jw(e);return r[r.length-1]}function y0(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:i,json:a}=e;if(!(!t||!n||!r)){if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o};if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:i,json:void 0,text:void 0};if(a!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:a,text:void 0}}}function Uf(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function Bj(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function ms(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function zj(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function xo(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function _j(e,t){try{let n=e.sessionStorage.getItem(t1);if(n){let r=JSON.parse(n);for(let[o,i]of Object.entries(r||{}))i&&Array.isArray(i)&&t.set(o,new Set(i||[]))}}catch{}}function Vj(e,t){if(t.size>0){let n={};for(let[r,o]of t)n[r]=[...o];try{e.sessionStorage.setItem(t1,JSON.stringify(n))}catch(r){Ba(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** + * React Router v6.27.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function Au(){return Au=Object.assign?Object.assign.bind():function(e){for(var t=1;t{s.current=!0}),p.useCallback(function(c,u){if(u===void 0&&(u={}),!s.current)return;if(typeof c=="number"){r.go(c);return}let d=tg(c,JSON.parse(a),i,u.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:ro([t,d.pathname])),(u.replace?r.replace:r.push)(d,u.state,u)},[t,r,a,i,e])}const Hj=p.createContext(null);function Yj(e){let t=p.useContext(ho).outlet;return t&&p.createElement(Hj.Provider,{value:e},t)}function Kd(){let{matches:e}=p.useContext(ho),t=e[e.length-1];return t?t.params:{}}function c1(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=p.useContext(Di),{matches:o}=p.useContext(ho),{pathname:i}=Yd(),a=JSON.stringify(eg(o,r.v7_relativeSplatPath));return p.useMemo(()=>tg(e,JSON.parse(a),i,n==="path"),[e,a,i,n])}function Kj(e,t,n,r){Ul()||He(!1);let{navigator:o}=p.useContext(Di),{matches:i}=p.useContext(ho),a=i[i.length-1],s=a?a.params:{};a&&a.pathname;let l=a?a.pathnameBase:"/";a&&a.route;let c=Yd(),u;u=c;let d=u.pathname||"/",f=d;if(l!=="/"){let S=l.replace(/^\//,"").split("/");f="/"+d.replace(/^\//,"").split("/").slice(S.length).join("/")}let y=ti(e,{pathname:f});return Zj(y&&y.map(S=>Object.assign({},S,{params:Object.assign({},s,S.params),pathname:ro([l,o.encodeLocation?o.encodeLocation(S.pathname).pathname:S.pathname]),pathnameBase:S.pathnameBase==="/"?l:ro([l,o.encodeLocation?o.encodeLocation(S.pathnameBase).pathname:S.pathnameBase])})),i,n,r)}function Gj(){let e=nN(),t=Ud(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return p.createElement(p.Fragment,null,p.createElement("h2",null,"Unexpected Application Error!"),p.createElement("h3",{style:{fontStyle:"italic"}},t),n?p.createElement("pre",{style:o},n):null,null)}const Qj=p.createElement(Gj,null);class Xj extends p.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?p.createElement(ho.Provider,{value:this.props.routeContext},p.createElement(s1.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function qj(e){let{routeContext:t,match:n,children:r}=e,o=p.useContext(Hd);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),p.createElement(ho.Provider,{value:t},r)}function Zj(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,s=(o=n)==null?void 0:o.errors;if(s!=null){let u=a.findIndex(d=>d.route.id&&(s==null?void 0:s[d.route.id])!==void 0);u>=0||He(!1),a=a.slice(0,Math.min(a.length,u+1))}let l=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let u=0;u=0?a=a.slice(0,c+1):a=[a[0]];break}}}return a.reduceRight((u,d,f)=>{let y,g=!1,S=null,C=null;n&&(y=s&&d.route.id?s[d.route.id]:void 0,S=d.route.errorElement||Qj,l&&(c<0&&f===0?(oN("route-fallback"),g=!0,C=null):c===f&&(g=!0,C=d.route.hydrateFallbackElement||null)));let h=t.concat(a.slice(0,f+1)),m=()=>{let v;return y?v=S:g?v=C:d.route.Component?v=p.createElement(d.route.Component,null):d.route.element?v=d.route.element:v=u,p.createElement(qj,{match:d,routeContext:{outlet:u,matches:h,isDataRoute:n!=null},children:v})};return n&&(d.route.ErrorBoundary||d.route.errorElement||f===0)?p.createElement(Xj,{location:n.location,revalidation:n.revalidation,component:S,error:y,children:m(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):m()},null)}var u1=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(u1||{}),Lu=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Lu||{});function Jj(e){let t=p.useContext(Hd);return t||He(!1),t}function eN(e){let t=p.useContext(a1);return t||He(!1),t}function tN(e){let t=p.useContext(ho);return t||He(!1),t}function d1(e){let t=tN(),n=t.matches[t.matches.length-1];return n.route.id||He(!1),n.route.id}function nN(){var e;let t=p.useContext(s1),n=eN(Lu.UseRouteError),r=d1(Lu.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function rN(){let{router:e}=Jj(u1.UseNavigateStable),t=d1(Lu.UseNavigateStable),n=p.useRef(!1);return l1(()=>{n.current=!0}),p.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,Au({fromRouteId:t},i)))},[e,t])}const v0={};function oN(e,t,n){v0[e]||(v0[e]=!0)}function iN(e){return Yj(e.context)}function aN(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Nt.Pop,navigator:i,static:a=!1,future:s}=e;Ul()&&He(!1);let l=t.replace(/^\/*/,"/"),c=p.useMemo(()=>({basename:l,navigator:i,static:a,future:Au({v7_relativeSplatPath:!1},s)}),[l,s,i,a]);typeof r=="string"&&(r=Ho(r));let{pathname:u="/",search:d="",hash:f="",state:y=null,key:g="default"}=r,S=p.useMemo(()=>{let C=Ga(u,l);return C==null?null:{location:{pathname:C,search:d,hash:f,state:y,key:g},navigationType:o}},[l,u,d,f,y,g,o]);return S==null?null:p.createElement(Di.Provider,{value:c},p.createElement(ig.Provider,{children:n,value:S}))}new Promise(()=>{});function sN(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:p.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:p.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:p.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** + * React Router DOM v6.27.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function El(){return El=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function cN(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function uN(e,t){return e.button===0&&(!t||t==="_self")&&!cN(e)}const dN=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],fN="6";try{window.__reactRouterVersion=fN}catch{}function pN(e,t){return Cj({basename:t==null?void 0:t.basename,future:El({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:KL({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||hN(),routes:e,mapRouteProperties:sN,dataStrategy:t==null?void 0:t.dataStrategy,patchRoutesOnNavigation:t==null?void 0:t.patchRoutesOnNavigation,window:t==null?void 0:t.window}).initialize()}function hN(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=El({},t,{errors:mN(t.errors)})),t}function mN(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,o]of t)if(o&&o.__type==="RouteErrorResponse")n[r]=new $u(o.status,o.statusText,o.data,o.internal===!0);else if(o&&o.__type==="Error"){if(o.__subType){let i=window[o.__subType];if(typeof i=="function")try{let a=new i(o.message);a.stack="",n[r]=a}catch{}}if(n[r]==null){let i=new Error(o.message);i.stack="",n[r]=i}}else n[r]=o;return n}const gN=p.createContext({isTransitioning:!1}),yN=p.createContext(new Map),vN="startTransition",x0=Gs[vN],xN="flushSync",S0=AE[xN];function SN(e){x0?x0(e):e()}function gs(e){S0?S0(e):e()}class bN{constructor(){this.status="pending",this.promise=new Promise((t,n)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function wN(e){let{fallbackElement:t,router:n,future:r}=e,[o,i]=p.useState(n.state),[a,s]=p.useState(),[l,c]=p.useState({isTransitioning:!1}),[u,d]=p.useState(),[f,y]=p.useState(),[g,S]=p.useState(),C=p.useRef(new Map),{v7_startTransition:h}=r||{},m=p.useCallback(P=>{h?SN(P):P()},[h]),v=p.useCallback((P,$)=>{let{deletedFetchers:w,flushSync:R,viewTransitionOpts:A}=$;w.forEach(O=>C.current.delete(O)),P.fetchers.forEach((O,T)=>{O.data!==void 0&&C.current.set(T,O.data)});let j=n.window==null||n.window.document==null||typeof n.window.document.startViewTransition!="function";if(!A||j){R?gs(()=>i(P)):m(()=>i(P));return}if(R){gs(()=>{f&&(u&&u.resolve(),f.skipTransition()),c({isTransitioning:!0,flushSync:!0,currentLocation:A.currentLocation,nextLocation:A.nextLocation})});let O=n.window.document.startViewTransition(()=>{gs(()=>i(P))});O.finished.finally(()=>{gs(()=>{d(void 0),y(void 0),s(void 0),c({isTransitioning:!1})})}),gs(()=>y(O));return}f?(u&&u.resolve(),f.skipTransition(),S({state:P,currentLocation:A.currentLocation,nextLocation:A.nextLocation})):(s(P),c({isTransitioning:!0,flushSync:!1,currentLocation:A.currentLocation,nextLocation:A.nextLocation}))},[n.window,f,u,C,m]);p.useLayoutEffect(()=>n.subscribe(v),[n,v]),p.useEffect(()=>{l.isTransitioning&&!l.flushSync&&d(new bN)},[l]),p.useEffect(()=>{if(u&&a&&n.window){let P=a,$=u.promise,w=n.window.document.startViewTransition(async()=>{m(()=>i(P)),await $});w.finished.finally(()=>{d(void 0),y(void 0),s(void 0),c({isTransitioning:!1})}),y(w)}},[m,a,u,n.window]),p.useEffect(()=>{u&&a&&o.location.key===a.location.key&&u.resolve()},[u,f,o.location,a]),p.useEffect(()=>{!l.isTransitioning&&g&&(s(g.state),c({isTransitioning:!0,flushSync:!1,currentLocation:g.currentLocation,nextLocation:g.nextLocation}),S(void 0))},[l.isTransitioning,g]),p.useEffect(()=>{},[]);let b=p.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:P=>n.navigate(P),push:(P,$,w)=>n.navigate(P,{state:$,preventScrollReset:w==null?void 0:w.preventScrollReset}),replace:(P,$,w)=>n.navigate(P,{replace:!0,state:$,preventScrollReset:w==null?void 0:w.preventScrollReset})}),[n]),E=n.basename||"/",k=p.useMemo(()=>({router:n,navigator:b,static:!1,basename:E}),[n,b,E]),M=p.useMemo(()=>({v7_relativeSplatPath:n.future.v7_relativeSplatPath}),[n.future.v7_relativeSplatPath]);return p.createElement(p.Fragment,null,p.createElement(Hd.Provider,{value:k},p.createElement(a1.Provider,{value:o},p.createElement(yN.Provider,{value:C.current},p.createElement(gN.Provider,{value:l},p.createElement(aN,{basename:E,location:o.location,navigationType:o.historyAction,navigator:b,future:M},o.initialized||n.future.v7_partialHydration?p.createElement(CN,{routes:n.routes,future:n.future,state:o}):t))))),null)}const CN=p.memo(kN);function kN(e){let{routes:t,future:n,state:r}=e;return Kj(t,void 0,r,n)}const EN=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",PN=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Kn=p.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:a,state:s,target:l,to:c,preventScrollReset:u,viewTransition:d}=t,f=lN(t,dN),{basename:y}=p.useContext(Di),g,S=!1;if(typeof c=="string"&&PN.test(c)&&(g=c,EN))try{let v=new URL(window.location.href),b=c.startsWith("//")?new URL(v.protocol+c):new URL(c),E=Ga(b.pathname,y);b.origin===v.origin&&E!=null?c=E+b.search+b.hash:S=!0}catch{}let C=Wj(c,{relative:o}),h=MN(c,{replace:a,state:s,target:l,preventScrollReset:u,relative:o,viewTransition:d});function m(v){r&&r(v),v.defaultPrevented||h(v)}return p.createElement("a",El({},f,{href:g||C,onClick:S||i?r:m,ref:n,target:l}))});var b0;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(b0||(b0={}));var w0;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(w0||(w0={}));function MN(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:a,viewTransition:s}=t===void 0?{}:t,l=cn(),c=Yd(),u=c1(e,{relative:a});return p.useCallback(d=>{if(uN(d,n)){d.preventDefault();let f=r!==void 0?r:bi(c)===bi(u);l(e,{replace:f,state:o,preventScrollReset:i,relative:a,viewTransition:s})}},[c,l,u,r,o,n,e,i,a,s])}var Hf={exports:{}},C0;function f1(){return C0||(C0=1,function(e,t){(function(n,r){e.exports=r()})(Ci,function(){var n=1e3,r=6e4,o=36e5,i="millisecond",a="second",s="minute",l="hour",c="day",u="week",d="month",f="quarter",y="year",g="date",S="Invalid Date",C=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(O){var T=["th","st","nd","rd"],I=O%100;return"["+O+(T[(I-20)%10]||T[I]||T[0])+"]"}},v=function(O,T,I){var N=String(O);return!N||N.length>=T?O:""+Array(T+1-N.length).join(I)+O},b={s:v,z:function(O){var T=-O.utcOffset(),I=Math.abs(T),N=Math.floor(I/60),D=I%60;return(T<=0?"+":"-")+v(N,2,"0")+":"+v(D,2,"0")},m:function O(T,I){if(T.date()1)return O(z[0])}else{var V=T.name;k[V]=T,D=V}return!N&&D&&(E=D),D||!N&&E},w=function(O,T){if(P(O))return O.clone();var I=typeof T=="object"?T:{};return I.date=O,I.args=arguments,new A(I)},R=b;R.l=$,R.i=P,R.w=function(O,T){return w(O,{locale:T.$L,utc:T.$u,x:T.$x,$offset:T.$offset})};var A=function(){function O(I){this.$L=$(I.locale,null,!0),this.parse(I),this.$x=this.$x||I.x||{},this[M]=!0}var T=O.prototype;return T.parse=function(I){this.$d=function(N){var D=N.date,L=N.utc;if(D===null)return new Date(NaN);if(R.u(D))return new Date;if(D instanceof Date)return new Date(D);if(typeof D=="string"&&!/Z$/i.test(D)){var z=D.match(C);if(z){var V=z[2]-1||0,Y=(z[7]||"0").substring(0,3);return L?new Date(Date.UTC(z[1],V,z[3]||1,z[4]||0,z[5]||0,z[6]||0,Y)):new Date(z[1],V,z[3]||1,z[4]||0,z[5]||0,z[6]||0,Y)}}return new Date(D)}(I),this.init()},T.init=function(){var I=this.$d;this.$y=I.getFullYear(),this.$M=I.getMonth(),this.$D=I.getDate(),this.$W=I.getDay(),this.$H=I.getHours(),this.$m=I.getMinutes(),this.$s=I.getSeconds(),this.$ms=I.getMilliseconds()},T.$utils=function(){return R},T.isValid=function(){return this.$d.toString()!==S},T.isSame=function(I,N){var D=w(I);return this.startOf(N)<=D&&D<=this.endOf(N)},T.isAfter=function(I,N){return w(I)25){var u=a(this).startOf(r).add(1,r).date(c),d=a(this).endOf(n);if(u.isBefore(d))return 1}var f=a(this).startOf(r).date(c).startOf(n).subtract(1,"millisecond"),y=this.diff(f,n,!0);return y<0?a(this).startOf("week").week():Math.ceil(y)},s.weeks=function(l){return l===void 0&&(l=null),this.week(l)}}})})(p1);var DN=p1.exports;const TN=fo(DN);var h1={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Ci,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d/,i=/\d\d/,a=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,l={},c=function(C){return(C=+C)+(C>68?1900:2e3)},u=function(C){return function(h){this[C]=+h}},d=[/[+-]\d\d:?(\d\d)?|Z/,function(C){(this.zone||(this.zone={})).offset=function(h){if(!h||h==="Z")return 0;var m=h.match(/([+-]|\d\d)/g),v=60*m[1]+(+m[2]||0);return v===0?0:m[0]==="+"?-v:v}(C)}],f=function(C){var h=l[C];return h&&(h.indexOf?h:h.s.concat(h.f))},y=function(C,h){var m,v=l.meridiem;if(v){for(var b=1;b<=24;b+=1)if(C.indexOf(v(b,0,h))>-1){m=b>12;break}}else m=C===(h?"pm":"PM");return m},g={A:[s,function(C){this.afternoon=y(C,!1)}],a:[s,function(C){this.afternoon=y(C,!0)}],Q:[o,function(C){this.month=3*(C-1)+1}],S:[o,function(C){this.milliseconds=100*+C}],SS:[i,function(C){this.milliseconds=10*+C}],SSS:[/\d{3}/,function(C){this.milliseconds=+C}],s:[a,u("seconds")],ss:[a,u("seconds")],m:[a,u("minutes")],mm:[a,u("minutes")],H:[a,u("hours")],h:[a,u("hours")],HH:[a,u("hours")],hh:[a,u("hours")],D:[a,u("day")],DD:[i,u("day")],Do:[s,function(C){var h=l.ordinal,m=C.match(/\d+/);if(this.day=m[0],h)for(var v=1;v<=31;v+=1)h(v).replace(/\[|\]/g,"")===C&&(this.day=v)}],w:[a,u("week")],ww:[i,u("week")],M:[a,u("month")],MM:[i,u("month")],MMM:[s,function(C){var h=f("months"),m=(f("monthsShort")||h.map(function(v){return v.slice(0,3)})).indexOf(C)+1;if(m<1)throw new Error;this.month=m%12||m}],MMMM:[s,function(C){var h=f("months").indexOf(C)+1;if(h<1)throw new Error;this.month=h%12||h}],Y:[/[+-]?\d+/,u("year")],YY:[i,function(C){this.year=c(C)}],YYYY:[/\d{4}/,u("year")],Z:d,ZZ:d};function S(C){var h,m;h=C,m=l&&l.formats;for(var v=(C=h.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(w,R,A){var j=A&&A.toUpperCase();return R||m[A]||n[A]||m[j].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(O,T,I){return T||I.slice(1)})})).match(r),b=v.length,E=0;E-1)return new Date((D==="X"?1e3:1)*N);var V=S(D)(N),Y=V.year,se=V.month,X=V.day,H=V.hours,le=V.minutes,ae=V.seconds,te=V.milliseconds,Z=V.zone,re=V.week,ie=new Date,W=X||(Y||se?1:ie.getDate()),F=Y||ie.getFullYear(),K=0;Y&&!se||(K=se>0?se-1:ie.getMonth());var Q,ne=H||0,ue=le||0,ee=ae||0,fe=te||0;return Z?new Date(Date.UTC(F,K,W,ne,ue,ee,fe+60*Z.offset*1e3)):L?new Date(Date.UTC(F,K,W,ne,ue,ee,fe)):(Q=new Date(F,K,W,ne,ue,ee,fe),re&&(Q=z(Q).week(re).toDate()),Q)}catch{return new Date("")}}(k,$,M,m),this.init(),j&&j!==!0&&(this.$L=this.locale(j).$L),A&&k!=this.format($)&&(this.$d=new Date("")),l={}}else if($ instanceof Array)for(var O=$.length,T=1;T<=O;T+=1){P[1]=$[T-1];var I=m.apply(this,P);if(I.isValid()){this.$d=I.$d,this.$L=I.$L,this.init();break}T===O&&(this.$d=new Date(""))}else b.call(this,E)}}})})(h1);var IN=h1.exports;const ON=fo(IN);var m1={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Ci,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(r,o,i){var a=o.prototype,s=a.format;i.en.formats=n,a.format=function(l){l===void 0&&(l="YYYY-MM-DDTHH:mm:ssZ");var c=this.$locale().formats,u=function(d,f){return d.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(y,g,S){var C=S&&S.toUpperCase();return g||f[S]||n[S]||f[C].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(h,m,v){return m||v.slice(1)})})}(l,c===void 0?{}:c);return s.call(this,u)}}})})(m1);var $N=m1.exports;const AN=fo($N);var g1={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Ci,function(){return function(n,r,o){r.prototype.isBetween=function(i,a,s,l){var c=o(i),u=o(a),d=(l=l||"()")[0]==="(",f=l[1]===")";return(d?this.isAfter(c,s):!this.isBefore(c,s))&&(f?this.isBefore(u,s):!this.isAfter(u,s))||(d?this.isBefore(c,s):!this.isAfter(c,s))&&(f?this.isAfter(u,s):!this.isBefore(u,s))}}})})(g1);var LN=g1.exports;const jN=fo(LN);var y1={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Ci,function(){return function(n,r){var o=r.prototype,i=o.format;o.format=function(a){var s=this,l=this.$locale();if(!this.isValid())return i.bind(this)(a);var c=this.$utils(),u=(a||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(d){switch(d){case"Q":return Math.ceil((s.$M+1)/3);case"Do":return l.ordinal(s.$D);case"gggg":return s.weekYear();case"GGGG":return s.isoWeekYear();case"wo":return l.ordinal(s.week(),"W");case"w":case"ww":return c.s(s.week(),d==="w"?1:2,"0");case"W":case"WW":return c.s(s.isoWeek(),d==="W"?1:2,"0");case"k":case"kk":return c.s(String(s.$H===0?24:s.$H),d==="k"?1:2,"0");case"X":return Math.floor(s.$d.getTime()/1e3);case"x":return s.$d.getTime();case"z":return"["+s.offsetName()+"]";case"zzz":return"["+s.offsetName("long")+"]";default:return d}});return i.bind(this)(u)}}})})(y1);var NN=y1.exports;const FN=fo(NN);jt.extend(AN);jt.extend(TN);jt.extend(jN);jt.extend(FN);const BN={YY:"year",YYYY:{sectionType:"year",contentType:"digit",maxLength:4},M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMM:{sectionType:"month",contentType:"letter"},MMMM:{sectionType:"month",contentType:"letter"},D:{sectionType:"day",contentType:"digit",maxLength:2},DD:"day",Do:{sectionType:"day",contentType:"digit-with-letter"},d:{sectionType:"weekDay",contentType:"digit",maxLength:2},dd:{sectionType:"weekDay",contentType:"letter"},ddd:{sectionType:"weekDay",contentType:"letter"},dddd:{sectionType:"weekDay",contentType:"letter"},A:"meridiem",a:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},zN={year:"YYYY",month:"MMMM",monthShort:"MMM",dayOfMonth:"D",dayOfMonthFull:"Do",weekday:"dddd",weekdayShort:"dd",hours24h:"HH",hours12h:"hh",meridiem:"A",minutes:"mm",seconds:"ss",fullDate:"ll",keyboardDate:"L",shortDate:"MMM D",normalDate:"D MMMM",normalDateWithWeekday:"ddd, MMM D",fullTime:"LT",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",keyboardDateTime:"L LT",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"},Yf=["Missing UTC plugin","To be able to use UTC or timezones, you have to enable the `utc` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-utc"].join(` +`),k0=["Missing timezone plugin","To be able to use timezones, you have to enable both the `utc` and the `timezone` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-timezone"].join(` +`),_N=(e,t)=>t?(...n)=>e(...n).locale(t):e;class VN{constructor({locale:t,formats:n}={}){this.isMUIAdapter=!0,this.isTimezoneCompatible=!0,this.lib="dayjs",this.dayjs=void 0,this.locale=void 0,this.formats=void 0,this.escapedCharacters={start:"[",end:"]"},this.formatTokenMap=BN,this.setLocaleToValue=r=>{const o=this.getCurrentLocaleCode();return o===r.locale()?r:r.locale(o)},this.hasUTCPlugin=()=>typeof jt.utc<"u",this.hasTimezonePlugin=()=>typeof jt.tz<"u",this.isSame=(r,o,i)=>{const a=this.setTimezone(o,this.getTimezone(r));return r.format(i)===a.format(i)},this.cleanTimezone=r=>{switch(r){case"default":return;case"system":return jt.tz.guess();default:return r}},this.createSystemDate=r=>{if(this.hasUTCPlugin()&&this.hasTimezonePlugin()){const o=jt.tz.guess();return o!=="UTC"?jt.tz(r,o):jt(r)}return jt(r)},this.createUTCDate=r=>{if(!this.hasUTCPlugin())throw new Error(Yf);return jt.utc(r)},this.createTZDate=(r,o)=>{if(!this.hasUTCPlugin())throw new Error(Yf);if(!this.hasTimezonePlugin())throw new Error(k0);const i=r!==void 0&&!r.endsWith("Z");return jt(r).tz(this.cleanTimezone(o),i)},this.getLocaleFormats=()=>{const r=jt.Ls,o=this.locale||"en";let i=r[o];return i===void 0&&(i=r.en),i.formats},this.adjustOffset=r=>{if(!this.hasTimezonePlugin())return r;const o=this.getTimezone(r);if(o!=="UTC"){const i=r.tz(this.cleanTimezone(o),!0);if(i.$offset===(r.$offset??0))return r;r.$offset=i.$offset}return r},this.date=(r,o="default")=>{if(r===null)return null;let i;return o==="UTC"?i=this.createUTCDate(r):o==="system"||o==="default"&&!this.hasTimezonePlugin()?i=this.createSystemDate(r):i=this.createTZDate(r,o),this.locale===void 0?i:i.locale(this.locale)},this.getInvalidDate=()=>jt(new Date("Invalid date")),this.getTimezone=r=>{var o;if(this.hasTimezonePlugin()){const i=(o=r.$x)==null?void 0:o.$timezone;if(i)return i}return this.hasUTCPlugin()&&r.isUTC()?"UTC":"system"},this.setTimezone=(r,o)=>{if(this.getTimezone(r)===o)return r;if(o==="UTC"){if(!this.hasUTCPlugin())throw new Error(Yf);return r.utc()}if(o==="system")return r.local();if(!this.hasTimezonePlugin()){if(o==="default")return r;throw new Error(k0)}return jt.tz(r,this.cleanTimezone(o))},this.toJsDate=r=>r.toDate(),this.parse=(r,o)=>r===""?null:this.dayjs(r,o,this.locale,!0),this.getCurrentLocaleCode=()=>this.locale||"en",this.is12HourCycleInCurrentLocale=()=>/A|a/.test(this.getLocaleFormats().LT||""),this.expandFormat=r=>{const o=this.getLocaleFormats(),i=a=>a.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(s,l,c)=>l||c.slice(1));return r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(a,s,l)=>{const c=l&&l.toUpperCase();return s||o[l]||i(o[c])})},this.isValid=r=>r==null?!1:r.isValid(),this.format=(r,o)=>this.formatByString(r,this.formats[o]),this.formatByString=(r,o)=>this.dayjs(r).format(o),this.formatNumber=r=>r,this.isEqual=(r,o)=>r===null&&o===null?!0:r===null||o===null?!1:r.toDate().getTime()===o.toDate().getTime(),this.isSameYear=(r,o)=>this.isSame(r,o,"YYYY"),this.isSameMonth=(r,o)=>this.isSame(r,o,"YYYY-MM"),this.isSameDay=(r,o)=>this.isSame(r,o,"YYYY-MM-DD"),this.isSameHour=(r,o)=>r.isSame(o,"hour"),this.isAfter=(r,o)=>r>o,this.isAfterYear=(r,o)=>this.hasUTCPlugin()?!this.isSameYear(r,o)&&r.utc()>o.utc():r.isAfter(o,"year"),this.isAfterDay=(r,o)=>this.hasUTCPlugin()?!this.isSameDay(r,o)&&r.utc()>o.utc():r.isAfter(o,"day"),this.isBefore=(r,o)=>rthis.hasUTCPlugin()?!this.isSameYear(r,o)&&r.utc()this.hasUTCPlugin()?!this.isSameDay(r,o)&&r.utc()r>=o&&r<=i,this.startOfYear=r=>this.adjustOffset(r.startOf("year")),this.startOfMonth=r=>this.adjustOffset(r.startOf("month")),this.startOfWeek=r=>this.adjustOffset(this.setLocaleToValue(r).startOf("week")),this.startOfDay=r=>this.adjustOffset(r.startOf("day")),this.endOfYear=r=>this.adjustOffset(r.endOf("year")),this.endOfMonth=r=>this.adjustOffset(r.endOf("month")),this.endOfWeek=r=>this.adjustOffset(this.setLocaleToValue(r).endOf("week")),this.endOfDay=r=>this.adjustOffset(r.endOf("day")),this.addYears=(r,o)=>this.adjustOffset(o<0?r.subtract(Math.abs(o),"year"):r.add(o,"year")),this.addMonths=(r,o)=>this.adjustOffset(o<0?r.subtract(Math.abs(o),"month"):r.add(o,"month")),this.addWeeks=(r,o)=>this.adjustOffset(o<0?r.subtract(Math.abs(o),"week"):r.add(o,"week")),this.addDays=(r,o)=>this.adjustOffset(o<0?r.subtract(Math.abs(o),"day"):r.add(o,"day")),this.addHours=(r,o)=>this.adjustOffset(o<0?r.subtract(Math.abs(o),"hour"):r.add(o,"hour")),this.addMinutes=(r,o)=>this.adjustOffset(o<0?r.subtract(Math.abs(o),"minute"):r.add(o,"minute")),this.addSeconds=(r,o)=>this.adjustOffset(o<0?r.subtract(Math.abs(o),"second"):r.add(o,"second")),this.getYear=r=>r.year(),this.getMonth=r=>r.month(),this.getDate=r=>r.date(),this.getHours=r=>r.hour(),this.getMinutes=r=>r.minute(),this.getSeconds=r=>r.second(),this.getMilliseconds=r=>r.millisecond(),this.setYear=(r,o)=>this.adjustOffset(r.set("year",o)),this.setMonth=(r,o)=>this.adjustOffset(r.set("month",o)),this.setDate=(r,o)=>this.adjustOffset(r.set("date",o)),this.setHours=(r,o)=>this.adjustOffset(r.set("hour",o)),this.setMinutes=(r,o)=>this.adjustOffset(r.set("minute",o)),this.setSeconds=(r,o)=>this.adjustOffset(r.set("second",o)),this.setMilliseconds=(r,o)=>this.adjustOffset(r.set("millisecond",o)),this.getDaysInMonth=r=>r.daysInMonth(),this.getWeekArray=r=>{const o=this.startOfWeek(this.startOfMonth(r)),i=this.endOfWeek(this.endOfMonth(r));let a=0,s=o;const l=[];for(;sr.week(),this.getYearRange=([r,o])=>{const i=this.startOfYear(r),a=this.endOfYear(o),s=[];let l=i;for(;this.isBefore(l,a);)s.push(l),l=this.addYears(l,1);return s},this.dayjs=_N(jt,t),this.locale=t,this.formats=_({},zN,n),jt.extend(ON)}getDayOfWeek(t){return t.day()+1}}const E0=_t.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e)}),Kf={dedupe:!0},WN=(e,t,n)=>{const{cache:r,compare:o,suspense:i,fallbackData:a,revalidateOnMount:s,revalidateIfStale:l,refreshInterval:c,refreshWhenHidden:u,refreshWhenOffline:d,keepPreviousData:f}=n,[y,g,S,C]=Nr.get(r),[h,m]=Wl(e),v=p.useRef(!1),b=p.useRef(!1),E=p.useRef(h),k=p.useRef(t),M=p.useRef(n),P=()=>M.current,$=()=>P().isVisible()&&P().isOnline(),[w,R,A,j]=Gm(r,h),O=p.useRef({}).current,T=Te(a)?n.fallback[h]:a,I=(W,F)=>{for(const K in O){const Q=K;if(Q==="data"){if(!o(W[Q],F[Q])&&(!Te(W[Q])||!o(H,F[Q])))return!1}else if(F[Q]!==W[Q])return!1}return!0},N=p.useMemo(()=>{const W=!h||!t?!1:Te(s)?P().isPaused()||i?!1:Te(l)?!0:l:s,F=fe=>{const ve=jn(fe);return delete ve._k,W?{isValidating:!0,isLoading:!0,...ve}:ve},K=w(),Q=j(),ne=F(K),ue=K===Q?ne:F(Q);let ee=ne;return[()=>{const fe=F(w());return I(fe,ee)?(ee.data=fe.data,ee.isLoading=fe.isLoading,ee.isValidating=fe.isValidating,ee.error=fe.error,ee):(ee=fe,fe)},()=>ue]},[r,h]),D=Lw.useSyncExternalStore(p.useCallback(W=>A(h,(F,K)=>{I(K,F)||W()}),[r,h]),N[0],N[1]),L=!v.current,z=y[h]&&y[h].length>0,V=D.data,Y=Te(V)?T:V,se=D.error,X=p.useRef(Y),H=f?Te(V)?X.current:V:Y,le=z&&!Te(se)?!1:L&&!Te(s)?s:P().isPaused()?!1:i?Te(Y)?!1:l:Te(Y)||l,ae=!!(h&&t&&L&&le),te=Te(D.isValidating)?ae:D.isValidating,Z=Te(D.isLoading)?ae:D.isLoading,re=p.useCallback(async W=>{const F=k.current;if(!h||!F||b.current||P().isPaused())return!1;let K,Q,ne=!0;const ue=W||{},ee=!S[h]||!ue.dedupe,fe=()=>Cl?!b.current&&h===E.current&&v.current:h===E.current,ve={isValidating:!1,isLoading:!1},Le=()=>{R(ve)},xe=()=>{const Pe=S[h];Pe&&Pe[1]===Q&&delete S[h]},tt={isValidating:!0};Te(w().data)&&(tt.isLoading=!0);try{if(ee&&(R(tt),n.loadingTimeout&&Te(w().data)&&setTimeout(()=>{ne&&fe()&&P().onLoadingSlow(h,n)},n.loadingTimeout),S[h]=[F(m),Fa()]),[K,Q]=S[h],K=await K,ee&&setTimeout(xe,n.dedupingInterval),!S[h]||S[h][1]!==Q)return ee&&fe()&&P().onDiscarded(h),!1;ve.error=It;const Pe=g[h];if(!Te(Pe)&&(Q<=Pe[0]||Q<=Pe[1]||Pe[1]===0))return Le(),ee&&fe()&&P().onDiscarded(h),!1;const _e=w().data;ve.data=o(_e,K)?_e:K,ee&&fe()&&P().onSuccess(K,h,n)}catch(Pe){xe();const _e=P(),{shouldRetryOnError:ut}=_e;_e.isPaused()||(ve.error=Pe,ee&&fe()&&(_e.onError(Pe,h,_e),(ut===!0||On(ut)&&ut(Pe))&&(!P().revalidateOnFocus||!P().revalidateOnReconnect||$())&&_e.onErrorRetry(Pe,h,_e,je=>{const Oe=y[h];Oe&&Oe[0]&&Oe[0](Fr.ERROR_REVALIDATE_EVENT,je)},{retryCount:(ue.retryCount||0)+1,dedupe:!0})))}return ne=!1,Le(),!0},[h,r]),ie=p.useCallback((...W)=>Qm(r,E.current,...W),[]);if(no(()=>{k.current=t,M.current=n,Te(V)||(X.current=V)}),no(()=>{if(!h)return;const W=re.bind(It,Kf);let F=0;const Q=Yw(h,y,(ne,ue={})=>{if(ne==Fr.FOCUS_EVENT){const ee=Date.now();P().revalidateOnFocus&&ee>F&&$()&&(F=ee+P().focusThrottleInterval,W())}else if(ne==Fr.RECONNECT_EVENT)P().revalidateOnReconnect&&$()&&W();else{if(ne==Fr.MUTATE_EVENT)return re();if(ne==Fr.ERROR_REVALIDATE_EVENT)return re(ue)}});return b.current=!1,E.current=h,v.current=!0,R({_k:m}),le&&(Te(Y)||Si?W():jw(W)),()=>{b.current=!0,Q()}},[h]),no(()=>{let W;function F(){const Q=On(c)?c(w().data):c;Q&&W!==-1&&(W=setTimeout(K,Q))}function K(){!w().error&&(u||P().isVisible())&&(d||P().isOnline())?re(Kf).then(F):F()}return F(),()=>{W&&(clearTimeout(W),W=-1)}},[c,u,d,h]),p.useDebugValue(H),i&&Te(Y)&&h){if(!Cl&&Si)throw new Error("Fallback data is required when using suspense in SSR.");k.current=t,M.current=n,b.current=!1;const W=C[h];if(!Te(W)){const F=ie(W);E0(F)}if(Te(se)){const F=re(Kf);Te(H)||(F.status="fulfilled",F.value=!0),E0(F)}else throw se}return{mutate:ie,get data(){return O.data=!0,H},get error(){return O.error=!0,se},get isValidating(){return O.isValidating=!0,te},get isLoading(){return O.isLoading=!0,Z}}};ma.defineProperty(Zm,"defaultValue",{value:Vd});const UN=Hw(WN),P0=Cl?e=>{e()}:_t.startTransition,HN=e=>{const[,t]=p.useState({}),n=p.useRef(!1),r=p.useRef(e),o=p.useRef({data:!1,error:!1,isValidating:!1}),i=p.useCallback(a=>{let s=!1;const l=r.current;for(const c in a){const u=c;l[u]!==a[u]&&(l[u]=a[u],o.current[u]&&(s=!0))}s&&!n.current&&t({})},[]);return no(()=>(n.current=!1,()=>{n.current=!0})),[r,o.current,i]},YN=()=>(e,t,n={})=>{const{mutate:r}=Uw(),o=p.useRef(e),i=p.useRef(t),a=p.useRef(n),s=p.useRef(0),[l,c,u]=HN({data:It,error:It,isMutating:!1}),d=l.current,f=p.useCallback(async(g,S)=>{const[C,h]=Wl(o.current);if(!i.current)throw new Error("Can’t trigger the mutation: missing fetcher.");if(!C)throw new Error("Can’t trigger the mutation: missing key.");const m=jn(jn({populateCache:!1,throwOnError:!0},a.current),S),v=Fa();s.current=v,u({isMutating:!0});try{const b=await r(C,i.current(h,{arg:g}),jn(m,{throwOnError:!0}));return s.current<=v&&(P0(()=>u({data:b,isMutating:!1,error:void 0})),m.onSuccess==null||m.onSuccess.call(m,b,C,m)),b}catch(b){if(s.current<=v&&(P0(()=>u({error:b,isMutating:!1})),m.onError==null||m.onError.call(m,b,C,m),m.throwOnError))throw b}},[]),y=p.useCallback(()=>{s.current=Fa(),u({data:It,error:It,isMutating:!1})},[]);return no(()=>{o.current=e,i.current=t,a.current=n}),{trigger:f,reset:y,get data(){return c.data=!0,d.data},get error(){return c.error=!0,d.error},get isMutating(){return c.isMutating=!0,d.isMutating}}},wr=VL(UN,YN),KN=()=>{const[e,t]=p.useState(localStorage.getItem("token")),{trigger:n}=wr("/auth/token/logout",Jm(e));return{token:e,login:i=>{t(i),localStorage.setItem("token",i)},logout:()=>{localStorage.removeItem("token"),t(null),qm("/auth/users/me",null),n()}}},ag=()=>x.jsx("img",{src:LE,alt:"logo",className:"logo",style:{width:"100%",height:"100%"}}),GN=G(Sl)(({theme:e})=>({display:"flex",flexDirection:"column",alignSelf:"center",width:"100%",padding:e.spacing(4),gap:e.spacing(2),boxShadow:"hsla(220, 30%, 5%, 0.05) 0px 5px 15px 0px, hsla(220, 25%, 10%, 0.05) 0px 15px 35px -5px",[e.breakpoints.up("sm")]:{width:"450px"},...e.applyStyles("dark",{boxShadow:"hsla(220, 30%, 5%, 0.5) 0px 5px 15px 0px, hsla(220, 25%, 10%, 0.08) 0px 15px 35px -5px"})})),QN=G(Mi)(({theme:e})=>({padding:e.spacing(2),[e.breakpoints.up("sm")]:{padding:e.spacing(4)},"&::before":{content:'""',display:"block",position:"absolute",zIndex:-1,inset:0,backgroundImage:"radial-gradient(ellipse at 50% 50%, hsl(210, 100%, 97%), hsl(0, 0%, 100%))",backgroundRepeat:"no-repeat",...e.applyStyles("dark",{backgroundImage:"radial-gradient(at 50% 50%, hsla(210, 100%, 16%, 0.5), hsl(220, 30%, 5%))"})}})),XN=e=>{const[t,n]=p.useState(""),{trigger:r,error:o}=wr("/auth/token/login",Qw),i=cn(),{login:a}=p.useContext(nn);p.useEffect(()=>{o&&n(o.info?o.info.non_field_errors:i("/error"))},[o]);const s=async l=>{l.preventDefault();const c=new FormData(l.currentTarget),u=c.get("username"),d=c.get("password"),f=await r({username:u,password:d});await a(f.auth_token),i("/")};return x.jsxs(x.Fragment,{children:[x.jsx(yw,{enableColorScheme:!0}),x.jsx(QN,{direction:"column",justifyContent:"space-between",children:x.jsxs(GN,{variant:"outlined",children:[x.jsx(Ot,{sx:{display:"flex",justifyContent:"center"},children:x.jsx(ag,{})}),x.jsx(Fe,{component:"h1",variant:"h4",sx:{width:"100%",fontSize:"clamp(2rem, 10vw, 2.15rem)"},children:"Sign in"}),x.jsxs(Ot,{component:"form",onSubmit:s,sx:{display:"flex",flexDirection:"column",gap:2},children:[x.jsxs(to,{children:[x.jsx(ha,{htmlFor:"name",children:"Username"}),x.jsx(Cn,{autoComplete:"username",name:"username",required:!0,fullWidth:!0,id:"username",placeholder:"Jon Snow"})]}),x.jsxs(to,{children:[x.jsx(ha,{htmlFor:"password",children:"Password"}),x.jsx(Cn,{required:!0,fullWidth:!0,name:"password",placeholder:"••••••",type:"password",id:"password",autoComplete:"new-password",variant:"outlined"})]}),t&&x.jsx("div",{style:{color:"red"},children:t}),x.jsx(it,{type:"submit",fullWidth:!0,variant:"contained",children:"Sign in"}),x.jsxs(Fe,{sx:{textAlign:"center"},children:["Don't have an account?"," ",x.jsx("span",{children:x.jsx(Um,{variant:"body2",sx:{alignSelf:"center",cursor:"pointer"},onClick:()=>i("/register"),children:"Sign up"})})]})]})]})})]})},Hl=Ht(x.jsx("path",{d:"M16.59 7.58 10 14.17l-3.59-3.58L5 12l5 5 8-8zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"CheckCircleOutline"),qN=G(Sl)(({theme:e})=>({display:"flex",flexDirection:"column",alignSelf:"center",width:"100%",padding:e.spacing(4),gap:e.spacing(2),boxShadow:"hsla(220, 30%, 5%, 0.05) 0px 5px 15px 0px, hsla(220, 25%, 10%, 0.05) 0px 15px 35px -5px",[e.breakpoints.up("sm")]:{width:"450px"},...e.applyStyles("dark",{boxShadow:"hsla(220, 30%, 5%, 0.5) 0px 5px 15px 0px, hsla(220, 25%, 10%, 0.08) 0px 15px 35px -5px"})})),ZN=G(Mi)(({theme:e})=>({padding:e.spacing(2),[e.breakpoints.up("sm")]:{padding:e.spacing(4)},"&::before":{content:'""',display:"block",position:"absolute",zIndex:-1,inset:0,backgroundImage:"radial-gradient(ellipse at 50% 50%, hsl(210, 100%, 97%), hsl(0, 0%, 100%))",backgroundRepeat:"no-repeat",...e.applyStyles("dark",{backgroundImage:"radial-gradient(at 50% 50%, hsla(210, 100%, 16%, 0.5), hsl(220, 30%, 5%))"})}})),JN=e=>{const[t,n]=p.useState(!1),[r,o]=p.useState(""),[i,a]=p.useState(!1),[s,l]=p.useState(""),[c,u]=p.useState(!1),[d,f]=p.useState(""),[y,g]=p.useState(!1),S=cn(),{trigger:C,error:h}=wr("/auth/users/",Qw),m=(M,P)=>{M(P.join(", "))},v={username:M=>{m(f,M),u(!0)},password:M=>{m(l,M),a(!0)},email:M=>{m(o,M),n(!0)}};p.useEffect(()=>{h&&Object.entries(h.info).forEach(([M,P])=>{v[M](P)})},[h]);const b=()=>{const M=document.getElementById("email"),P=document.getElementById("password"),$=document.getElementById("username");let w=!0;return!M.value||!/\S+@\S+\.\S+/.test(M.value)?(n(!0),o("Please enter a valid email address."),w=!1):(n(!1),o("")),!P.value||P.value.length<8?(a(!0),l("Password must be at least 8 characters long."),w=!1):(a(!1),l("")),!$.value||$.value.length<1?(u(!0),f("Username is required."),w=!1):(u(!1),f("")),w},E=async M=>{if(M.preventDefault(),c||t||i)return;const P=new FormData(M.currentTarget),$=P.get("username"),w=P.get("email"),R=P.get("password");await C({username:$,email:w,password:R}),g(!0)},k=()=>{g(!1),S("/login")};return x.jsxs(x.Fragment,{children:[x.jsx(Vl,{open:y,autoHideDuration:2e3,onClose:k,children:x.jsx(Fl,{onClose:k,severity:"success",sx:{backgroundColor:"#4caf50",color:"white"},iconMapping:{success:x.jsx(Hl,{fontSize:"inherit"})},children:"Nice account you got here! Redirecting now..."})}),x.jsx(yw,{enableColorScheme:!0}),x.jsx(ZN,{direction:"column",justifyContent:"space-between",children:x.jsxs(qN,{variant:"outlined",children:[x.jsx(Ot,{sx:{display:"flex",justifyContent:"center"},children:x.jsx(ag,{})}),x.jsx(Fe,{component:"h1",variant:"h4",sx:{width:"100%",fontSize:"clamp(2rem, 10vw, 2.15rem)"},children:"Sign up"}),x.jsxs(Ot,{component:"form",onSubmit:E,sx:{display:"flex",flexDirection:"column",gap:2},children:[x.jsxs(to,{children:[x.jsx(ha,{htmlFor:"name",children:"Username"}),x.jsx(Cn,{autoComplete:"username",name:"username",required:!0,fullWidth:!0,id:"username",placeholder:"Jon Snow",error:c,helperText:d,color:c?"error":"primary"})]}),x.jsxs(to,{children:[x.jsx(ha,{htmlFor:"email",children:"Email"}),x.jsx(Cn,{required:!0,fullWidth:!0,id:"email",placeholder:"your@email.com",name:"email",autoComplete:"email",variant:"outlined",error:t,helperText:r,color:i?"error":"primary"})]}),x.jsxs(to,{children:[x.jsx(ha,{htmlFor:"password",children:"Password"}),x.jsx(Cn,{required:!0,fullWidth:!0,name:"password",placeholder:"••••••",type:"password",id:"password",autoComplete:"new-password",variant:"outlined",error:i,helperText:s,color:i?"error":"primary"})]}),x.jsx(it,{type:"submit",fullWidth:!0,variant:"contained",onClick:b,children:"Sign up"}),x.jsxs(Fe,{sx:{textAlign:"center"},children:["Already have an account?"," ",x.jsx("span",{children:x.jsx(Um,{variant:"body2",sx:{alignSelf:"center",cursor:"pointer"},onClick:()=>S("/login"),children:"Sign in"})})]})]})]})})]})},M0=()=>{const e=cn(),t=()=>{e("/")};return x.jsxs(Ot,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",height:"60vh",textAlign:"center",padding:"20px",borderRadius:"8px",margin:"0 20px"},children:[x.jsx(Fe,{variant:"h3",gutterBottom:!0,sx:{fontWeight:"bold",color:"#DC143C"},children:"Oops! An Error Occurred"}),x.jsx(Fe,{variant:"h6",gutterBottom:!0,sx:{color:"#555"},children:"Maybe it was you or maybe something is wrong"}),x.jsx(it,{variant:"contained",color:"primary",onClick:t,sx:{marginTop:"20px",padding:"10px 20px",fontSize:"16px",boxShadow:"0 2px 10px rgba(0, 0, 0, 0.2)","&:hover":{boxShadow:"0 4px 20px rgba(0, 0, 0, 0.3)"}},children:"Go to Main Page"})]})},Tr=({Component:e,...t})=>{const{token:n}=p.useContext(nn),{user:r,error:o,isLoading:i}=Wd(),a=cn();return p.useEffect(()=>{!i&&!r&&a("/login")},[n,r,i]),i||!r?x.jsx(_l,{}):x.jsx(e,{})},R0=({Component:e,...t})=>{const{token:n}=p.useContext(nn),{user:r,error:o,isLoading:i}=Wd(),a=cn();return p.useEffect(()=>{!i&&r&&a("/")},[n,r,i]),i?x.jsx(_l,{}):x.jsx(e,{})},v1=e=>e/(1e3*60*60*24),Ti=()=>x.jsx(Mi,{direction:"column",justifyContent:"center",justifyItems:"center",alignContent:"center",alignItems:"center",height:"100vh",children:x.jsx(_l,{})}),eF=()=>{const e=cn(),t=Nd("(max-width:600px)"),{token:n}=p.useContext(nn),{data:r,isLoading:o,error:i}=Bn("/activities",zn(n)),{data:a,isLoading:s,error:l}=Bn("/titles",zn(n)),c=p.useMemo(()=>!r||!a?[]:r.map(d=>({...d,titles:a.filter(f=>f.activity===d.id).map(f=>({...f,start_date:new Date(f.start_date).toLocaleDateString(),end_date:f.end_date?new Date(f.end_date).toLocaleDateString():"No date",time_spent:f.end_date?v1(new Date(f.end_date)-new Date(f.start_date)):"Not finished"}))})),[a,r]);return o||s?x.jsx(Ti,{}):x.jsx(Mi,{direction:"column",justifyContent:"center",justifyItems:"center",alignContent:"center",alignItems:"center",children:t?c.map(u=>x.jsx(Ot,{sx:{width:"100%",marginBottom:2},children:x.jsxs(br,{elevation:3,sx:{padding:2},children:[x.jsx(Fe,{variant:"h6",color:"primary",children:u.name}),u.titles.map(d=>x.jsxs(Ot,{sx:{marginBottom:1,padding:1,border:"1px solid #ccc"},children:[x.jsxs(Fe,{variant:"body1",children:[x.jsx("strong",{children:"Name:"})," ",d.name]}),x.jsxs(Fe,{variant:"body2",children:[x.jsx("strong",{children:"Description:"})," ",d.description]}),x.jsx("img",{src:d.image,width:"100%",style:{maxHeight:"300px",objectFit:"cover"}}),x.jsxs(Fe,{variant:"body2",children:[x.jsx("strong",{children:"Start date:"})," ",d.start_date]}),x.jsxs(Fe,{variant:"body2",children:[x.jsx("strong",{children:"End date:"})," ",d.end_date]}),x.jsxs(Fe,{variant:"body2",children:[x.jsx("strong",{children:"Days Spent:"})," ",d.time_spent]})]},d.id))]})},u.id)):x.jsx(Ot,{display:"flex",children:x.jsx(qA,{component:br,children:x.jsxs(FA,{sx:{minWidth:650},children:[x.jsx(nL,{children:x.jsxs(Nf,{children:[x.jsx(Pn,{align:"center",children:"Name"}),x.jsx(Pn,{align:"center",children:"Description"}),x.jsx(Pn,{align:"center",children:"Image"}),x.jsx(Pn,{align:"center",children:"Start date"}),x.jsx(Pn,{align:"center",children:"End date"}),x.jsx(Pn,{align:"center",children:"Days Spent"})]})}),x.jsx(WA,{children:c.map(u=>x.jsxs(_t.Fragment,{children:[x.jsx(Nf,{sx:{"&:last-child td, &:last-child th":{border:0}},style:{backgroundColor:"black"},onClick:()=>e(`/activities/${u.id}`),children:x.jsx(Pn,{colSpan:7,align:"center",style:{fontWeight:"bold",color:"white"},children:u.name})},u.id),u.titles.map(d=>x.jsxs(Nf,{sx:{"&:last-child td, &:last-child th":{border:0}},children:[x.jsx(Pn,{align:"center",onClick:()=>e(`/titles/${d.id}`),children:x.jsx(Fe,{variant:"body2",style:{fontWeight:"bold",cursor:"pointer"},children:d.name})}),x.jsx(Pn,{align:"center",children:d.description}),x.jsx(Pn,{align:"center",children:x.jsx("img",{src:d.image,width:"180px"})}),x.jsx(Pn,{align:"center",children:d.start_date}),x.jsx(Pn,{align:"center",children:d.end_date}),x.jsx(Pn,{align:"center",children:d.time_spent})]},d.id))]},u.id))})]})})})})},tF=()=>{const[e,t]=p.useState(""),[n,r]=p.useState(""),[o,i]=p.useState(null),[a,s]=p.useState(""),[l,c]=p.useState(""),[u,d]=p.useState(!1),f=cn(),{token:y}=p.useContext(nn),{trigger:g,error:S}=wr("/activities/",Jm(y)),C=async v=>{v.preventDefault();const E=await g({name:e,description:n});i(E.id),d(!0)},h={name:v=>{s(v)},description:v=>{c(setPasswordErrorMessage,v)}},m=()=>{d(!1),f(`/activities/${o}`)};return p.useEffect(()=>{S&&Object.entries(S.info).forEach(([v,b])=>{h[v](b)})},[S]),x.jsxs(x.Fragment,{children:[x.jsx(Vl,{open:u,autoHideDuration:2e3,onClose:m,children:x.jsx(Fl,{onClose:m,severity:"success",sx:{backgroundColor:"#4caf50",color:"white"},iconMapping:{success:x.jsx(Hl,{fontSize:"inherit"})},children:"Activity is successfully created! Redirecting..."})}),x.jsx(Fe,{variant:"h4",gutterBottom:!0,children:"Create Activity"}),x.jsxs("form",{onSubmit:C,children:[x.jsx(Cn,{label:"Activity Name",variant:"outlined",fullWidth:!0,margin:"normal",value:e,onChange:v=>t(v.target.value),error:!!a,helperText:a,required:!0}),x.jsx(Cn,{label:"Description",variant:"outlined",fullWidth:!0,margin:"normal",multiline:!0,rows:4,value:n,onChange:v=>r(v.target.value),error:!!l,helperText:l}),x.jsx(Ot,{display:"flex",justifyContent:"flex-end",children:x.jsx(it,{type:"submit",variant:"contained",color:"primary",children:"Create Activity"})})]})]})},nF=()=>x.jsx(jd,{maxWidth:"sm",children:x.jsx(tF,{})}),rF=["localeText"],dh=p.createContext(null),x1=function(t){const{localeText:n}=t,r=Ae(t,rF),{utils:o,localeText:i}=p.useContext(dh)??{utils:void 0,localeText:void 0},a=gt({props:r,name:"MuiLocalizationProvider"}),{children:s,dateAdapter:l,dateFormats:c,dateLibInstance:u,adapterLocale:d,localeText:f}=a,y=p.useMemo(()=>_({},f,i,n),[f,i,n]),g=p.useMemo(()=>{if(!l)return o||null;const h=new l({locale:d,formats:c,instance:u});if(!h.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(` +`));return h},[l,d,c,u,o]),S=p.useMemo(()=>g?{minDate:g.date("1900-01-01T00:00:00.000"),maxDate:g.date("2099-12-31T00:00:00.000")}:null,[g]),C=p.useMemo(()=>({utils:g,defaultDates:S,localeText:y}),[S,g,y]);return x.jsx(dh.Provider,{value:C,children:s})},oF=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:_({},e)}}}}),S1=e=>{const{utils:t,formatKey:n,contextTranslation:r,propsTranslation:o}=e;return i=>{const a=i!==null&&t.isValid(i)?t.format(i,n):null;return(o??r)(i,t,a)}},b1={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"},iF=b1;oF(b1);const Ii=()=>{const e=p.useContext(dh);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(` +`));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(` +`));const t=p.useMemo(()=>_({},iF,e.localeText),[e.localeText]);return p.useMemo(()=>_({},e,{localeText:t}),[e,t])},yt=()=>Ii().utils,Yl=()=>Ii().defaultDates,Gd=e=>{const t=yt(),n=p.useRef();return n.current===void 0&&(n.current=t.date(void 0,e)),n.current},mo=()=>Ii().localeText,aF=Ht(x.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),sF=Ht(x.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),lF=Ht(x.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),cF=Ht(x.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");Ht(x.jsxs(p.Fragment,{children:[x.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"}),x.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock");Ht(x.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");Ht(x.jsxs(p.Fragment,{children:[x.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"}),x.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time");const uF=Ht(x.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 dF(e){return ge("MuiPickersArrowSwitcher",e)}me("MuiPickersArrowSwitcher",["root","spacer","button","previousIconButton","nextIconButton","leftArrowIcon","rightArrowIcon"]);const fF=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel","labelId"],pF=["ownerState"],hF=["ownerState"],mF=G("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),gF=G("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),D0=G(Wr,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})({variants:[{props:{hidden:!0},style:{visibility:"hidden"}}]}),yF=e=>{const{classes:t}=e;return ye({root:["root"],spacer:["spacer"],button:["button"],previousIconButton:["previousIconButton"],nextIconButton:["nextIconButton"],leftArrowIcon:["leftArrowIcon"],rightArrowIcon:["rightArrowIcon"]},dF,t)},vF=p.forwardRef(function(t,n){const r=lr(),o=gt({props:t,name:"MuiPickersArrowSwitcher"}),{children:i,className:a,slots:s,slotProps:l,isNextDisabled:c,isNextHidden:u,onGoToNext:d,nextLabel:f,isPreviousDisabled:y,isPreviousHidden:g,onGoToPrevious:S,previousLabel:C,labelId:h}=o,m=Ae(o,fF),v=o,b=yF(v),E={isDisabled:c,isHidden:u,goTo:d,label:f},k={isDisabled:y,isHidden:g,goTo:S,label:C},M=(s==null?void 0:s.previousIconButton)??D0,P=Qe({elementType:M,externalSlotProps:l==null?void 0:l.previousIconButton,additionalProps:{size:"medium",title:k.label,"aria-label":k.label,disabled:k.isDisabled,edge:"end",onClick:k.goTo},ownerState:_({},v,{hidden:k.isHidden}),className:pe(b.button,b.previousIconButton)}),$=(s==null?void 0:s.nextIconButton)??D0,w=Qe({elementType:$,externalSlotProps:l==null?void 0:l.nextIconButton,additionalProps:{size:"medium",title:E.label,"aria-label":E.label,disabled:E.isDisabled,edge:"start",onClick:E.goTo},ownerState:_({},v,{hidden:E.isHidden}),className:pe(b.button,b.nextIconButton)}),R=(s==null?void 0:s.leftArrowIcon)??sF,A=Qe({elementType:R,externalSlotProps:l==null?void 0:l.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:v,className:b.leftArrowIcon}),j=Ae(A,pF),O=(s==null?void 0:s.rightArrowIcon)??lF,T=Qe({elementType:O,externalSlotProps:l==null?void 0:l.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:v,className:b.rightArrowIcon}),I=Ae(T,hF);return x.jsxs(mF,_({ref:n,className:pe(b.root,a),ownerState:v},m,{children:[x.jsx(M,_({},P,{children:r?x.jsx(O,_({},I)):x.jsx(R,_({},j))})),i?x.jsx(Fe,{variant:"subtitle1",component:"span",id:h,children:i}):x.jsx(gF,{className:b.spacer,ownerState:v}),x.jsx($,_({},w,{children:r?x.jsx(R,_({},j)):x.jsx(O,_({},I))}))]}))}),ys=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),xF=({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}},SF=["hours","minutes","seconds"],bF=e=>SF.includes(e),T0=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),wF=(e,t)=>(n,r)=>e?t.isAfter(n,r):T0(n,t)>T0(r,t);function w1({onChange:e,onViewChange:t,openTo:n,view:r,views:o,autoFocus:i,focusedView:a,onFocusedViewChange:s}){const l=p.useRef(n),c=p.useRef(o),u=p.useRef(o.includes(n)?n:o[0]),[d,f]=co({name:"useViews",state:"view",controlled:r,default:u.current}),y=p.useRef(i?d:null),[g,S]=co({name:"useViews",state:"focusedView",controlled:a,default:y.current});p.useEffect(()=>{(l.current&&l.current!==n||c.current&&c.current.some(M=>!o.includes(M)))&&(f(o.includes(n)?n:o[0]),c.current=o,l.current=n)},[n,f,d,o]);const C=o.indexOf(d),h=o[C-1]??null,m=o[C+1]??null,v=Se((M,P)=>{S(P?M:$=>M===$?null:$),s==null||s(M,P)}),b=Se(M=>{v(M,!0),M!==d&&(f(M),t&&t(M))}),E=Se(()=>{m&&b(m)}),k=Se((M,P,$)=>{const w=P==="finish",R=$?o.indexOf($){const i=o.date(void 0,r),a=o.startOfMonth(t&&o.isBefore(i,n)?i:n);return!o.isAfter(a,e)},[t,n,e,o,r])}function kF(e,{disablePast:t,minDate:n,timezone:r}){const o=yt();return p.useMemo(()=>{const i=o.date(void 0,r),a=o.startOfMonth(t&&o.isAfter(i,n)?i:n);return!o.isBefore(a,e)},[t,n,e,o,r])}const Pl=36,Qd=2,Xd=320,EF=280,sg=336,PF=G("div")({overflow:"hidden",width:Xd,maxHeight:sg,display:"flex",flexDirection:"column",margin:"0 auto"}),ju=(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},Ks=({date:e,disableFuture:t,disablePast:n,maxDate:r,minDate:o,isDateDisabled:i,utils:a,timezone:s})=>{const l=ju(a,a.date(void 0,s),e);n&&a.isBefore(o,l)&&(o=l),t&&a.isAfter(r,l)&&(r=l);let c=e,u=e;for(a.isBefore(e,o)&&(c=o,u=null),a.isAfter(e,r)&&(u&&(u=r),c=null);c||u;){if(c&&a.isAfter(c,r)&&(c=null),u&&a.isBefore(u,o)&&(u=null),c){if(!i(c))return c;c=a.addDays(c,1)}if(u){if(!i(u))return u;u=a.addDays(u,-1)}}return null},MF=(e,t)=>t==null||!e.isValid(t)?null:t,ar=(e,t,n)=>t==null||!e.isValid(t)?n:t,RF=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),lg=(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},C1=(e,t,n)=>n==="date"?e.startOfDay(e.date(void 0,t)):e.date(void 0,t),DF=["year","month","day"],I0=e=>DF.includes(e),cg=(e,{format:t,views:n},r)=>{if(t!=null)return t;const o=e.formats;return ys(n,["year"])?o.year:ys(n,["month"])?o.month:ys(n,["day"])?o.dayOfMonth:ys(n,["month","year"])?`${o.month} ${o.year}`:ys(n,["day","month"])?`${o.month} ${o.dayOfMonth}`:r?/en/.test(e.getCurrentLocaleCode())?o.normalDateWithWeekday:o.normalDate:o.keyboardDate},TF=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(r=>e.addDays(n,r))},ug=({timezone:e,value:t,defaultValue:n,referenceDate:r,onChange:o,valueManager:i})=>{const a=yt(),s=p.useRef(n),l=t??s.current??i.emptyValue,c=p.useMemo(()=>i.getTimezone(a,l),[a,i,l]),u=Se(g=>c==null?g:i.setTimezone(a,c,g));let d;e?d=e:c?d=c:r?d=a.getTimezone(r):d="default";const f=p.useMemo(()=>i.setTimezone(a,d,l),[i,a,d,l]),y=Se((g,...S)=>{const C=u(g);o==null||o(C,...S)});return{value:f,handleValueChange:y,timezone:d}},dg=({name:e,timezone:t,value:n,defaultValue:r,referenceDate:o,onChange:i,valueManager:a})=>{const[s,l]=co({name:e,state:"value",controlled:n,default:r??a.emptyValue}),c=Se((u,...d)=>{l(u),i==null||i(u,...d)});return ug({timezone:t,value:s,defaultValue:void 0,referenceDate:o,onChange:c,valueManager:a})},Ar={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},IF=e=>Math.max(...e.map(t=>Ar[t.type]??1)),vs=(e,t,n)=>{if(t===Ar.year)return e.startOfYear(n);if(t===Ar.month)return e.startOfMonth(n);if(t===Ar.day)return e.startOfDay(n);let r=n;return t{let i=o?o():vs(t,n,C1(t,r));e.minDate!=null&&t.isAfterDay(e.minDate,i)&&(i=vs(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,i)&&(i=vs(t,n,e.maxDate));const a=wF(e.disableIgnoringDatePartForTimeValidation??!1,t);return e.minTime!=null&&a(e.minTime,i)&&(i=vs(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:ju(t,i,e.minTime))),e.maxTime!=null&&a(i,e.maxTime)&&(i=vs(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:ju(t,i,e.maxTime))),i},k1=(e,t)=>{const n=e.formatTokenMap[t];if(n==null)throw new Error([`MUI X: The token "${t}" is not supported by the Date and Time Pickers.`,"Please try using another token or open an issue on https://github.com/mui/mui-x/issues/new/choose if you think it should be supported."].join(` +`));return typeof n=="string"?{type:n,contentType:n==="meridiem"?"letter":"digit",maxLength:void 0}:{type:n.sectionType,contentType:n.contentType,maxLength:n.maxLength}},$F=e=>{switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}},qd=(e,t)=>{const n=[],r=e.date(void 0,"default"),o=e.startOfWeek(r),i=e.endOfWeek(r);let a=o;for(;e.isBefore(a,i);)n.push(a),a=e.addDays(a,1);return n.map(s=>e.formatByString(s,t))},E1=(e,t,n,r)=>{switch(n){case"month":return lg(e,e.date(void 0,t)).map(o=>e.formatByString(o,r));case"weekDay":return qd(e,r);case"meridiem":{const o=e.date(void 0,t);return[e.startOfDay(o),e.endOfDay(o)].map(i=>e.formatByString(i,r))}default:return[]}},O0="s",AF=["0","1","2","3","4","5","6","7","8","9"],LF=e=>{const t=e.date(void 0);return e.formatByString(e.setSeconds(t,0),O0)==="0"?AF:Array.from({length:10}).map((r,o)=>e.formatByString(e.setSeconds(t,o),O0))},wi=(e,t)=>{if(t[0]==="0")return e;const n=[];let r="";for(let o=0;o-1&&(n.push(i.toString()),r="")}return n.join("")},fg=(e,t)=>t[0]==="0"?e:e.split("").map(n=>t[Number(n)]).join(""),$0=(e,t)=>{const n=wi(e,t);return n!==" "&&!Number.isNaN(Number(n))},P1=(e,t)=>{let n=e;for(n=Number(n).toString();n.length{if(o.type==="day"&&o.contentType==="digit-with-letter"){const a=e.setDate(n.longestMonth,t);return e.formatByString(a,o.format)}let i=t.toString();return o.hasLeadingZerosInInput&&(i=P1(i,o.maxLength)),fg(i,r)},jF=(e,t,n,r,o,i,a,s)=>{const l=$F(r),c=r==="Home",u=r==="End",d=n.value===""||c||u,f=()=>{const g=o[n.type]({currentDate:a,format:n.format,contentType:n.contentType}),S=v=>M1(e,v,g,i,n),C=n.type==="minutes"&&(s!=null&&s.minutesStep)?s.minutesStep:1;let m=parseInt(wi(n.value,i),10)+l*C;if(d){if(n.type==="year"&&!u&&!c)return e.formatByString(e.date(void 0,t),n.format);l>0||c?m=g.minimum:m=g.maximum}return m%C!==0&&((l<0||c)&&(m+=C-(C+m)%C),(l>0||u)&&(m-=m%C)),m>g.maximum?S(g.minimum+(m-g.maximum-1)%(g.maximum-g.minimum+1)):m{const g=E1(e,t,n.type,n.format);if(g.length===0)return n.value;if(d)return l>0||c?g[0]:g[g.length-1];const h=((g.indexOf(n.value)+l)%g.length+g.length)%g.length;return g[h]};return n.contentType==="digit"||n.contentType==="digit-with-letter"?f():y()},pg=(e,t,n)=>{let r=e.value||e.placeholder;const o=t==="non-input"?e.hasLeadingZerosInFormat:e.hasLeadingZerosInInput;return t==="non-input"&&e.hasLeadingZerosInInput&&!e.hasLeadingZerosInFormat&&(r=Number(wi(r,n)).toString()),["input-rtl","input-ltr"].includes(t)&&e.contentType==="digit"&&!o&&r.length===1&&(r=`${r}‎`),t==="input-rtl"&&(r=`⁨${r}⁩`),r},A0=(e,t,n,r)=>e.formatByString(e.parse(t,n),r),R1=(e,t)=>e.formatByString(e.date(void 0,"system"),t).length===4,D1=(e,t,n,r)=>{if(t!=="digit")return!1;const o=e.date(void 0,"default");switch(n){case"year":return R1(e,r)?e.formatByString(e.setYear(o,1),r)==="0001":e.formatByString(e.setYear(o,2001),r)==="01";case"month":return e.formatByString(e.startOfYear(o),r).length>1;case"day":return e.formatByString(e.startOfMonth(o),r).length>1;case"weekDay":return e.formatByString(e.startOfWeek(o),r).length>1;case"hours":return e.formatByString(e.setHours(o,1),r).length>1;case"minutes":return e.formatByString(e.setMinutes(o,1),r).length>1;case"seconds":return e.formatByString(e.setSeconds(o,1),r).length>1;default:throw new Error("Invalid section type")}},NF=(e,t,n)=>{const r=t.some(l=>l.type==="day"),o=[],i=[];for(let l=0;le.map(t=>`${t.startSeparator}${t.value||t.placeholder}${t.endSeparator}`).join(""),BF=(e,t,n)=>{const o=e.map(i=>{const a=pg(i,n?"input-rtl":"input-ltr",t);return`${i.startSeparator}${a}${i.endSeparator}`}).join("");return n?`⁦${o}⁩`:o},zF=(e,t,n)=>{const r=e.date(void 0,n),o=e.endOfYear(r),i=e.endOfDay(r),{maxDaysInMonth:a,longestMonth:s}=lg(e,r).reduce((l,c)=>{const u=e.getDaysInMonth(c);return u>l.maxDaysInMonth?{maxDaysInMonth:u,longestMonth:c}:l},{maxDaysInMonth:0,longestMonth:null});return{year:({format:l})=>({minimum:0,maximum:R1(e,l)?9999:99}),month:()=>({minimum:1,maximum:e.getMonth(o)+1}),day:({currentDate:l})=>({minimum:1,maximum:l!=null&&e.isValid(l)?e.getDaysInMonth(l):a,longestMonth:s}),weekDay:({format:l,contentType:c})=>{if(c==="digit"){const u=qd(e,l).map(Number);return{minimum:Math.min(...u),maximum:Math.max(...u)}}return{minimum:1,maximum:7}},hours:({format:l})=>{const c=e.getHours(i);return wi(e.formatByString(e.endOfDay(r),l),t)!==c.toString()?{minimum:1,maximum:Number(wi(e.formatByString(e.startOfDay(r),l),t))}:{minimum:0,maximum:c}},minutes:()=>({minimum:0,maximum:e.getMinutes(i)}),seconds:()=>({minimum:0,maximum:e.getSeconds(i)}),meridiem:()=>({minimum:0,maximum:1}),empty:()=>({minimum:0,maximum:0})}},_F=(e,t,n,r)=>{switch(t.type){case"year":return e.setYear(r,e.getYear(n));case"month":return e.setMonth(r,e.getMonth(n));case"weekDay":{const o=qd(e,t.format),i=e.formatByString(n,t.format),a=o.indexOf(i),l=o.indexOf(t.value)-a;return e.addDays(n,l)}case"day":return e.setDate(r,e.getDate(n));case"meridiem":{const o=e.getHours(n)<12,i=e.getHours(r);return o&&i>=12?e.addHours(r,-12):!o&&i<12?e.addHours(r,12):r}case"hours":return e.setHours(r,e.getHours(n));case"minutes":return e.setMinutes(r,e.getMinutes(n));case"seconds":return e.setSeconds(r,e.getSeconds(n));default:return r}},L0={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8,empty:9},j0=(e,t,n,r,o)=>[...n].sort((i,a)=>L0[i.type]-L0[a.type]).reduce((i,a)=>!o||a.modified?_F(e,a,t,i):i,r),VF=()=>navigator.userAgent.toLowerCase().includes("android"),WF=(e,t)=>{const n={};if(!t)return e.forEach((l,c)=>{const u=c===0?null:c-1,d=c===e.length-1?null:c+1;n[c]={leftIndex:u,rightIndex:d}}),{neighbors:n,startIndex:0,endIndex:e.length-1};const r={},o={};let i=0,a=0,s=e.length-1;for(;s>=0;){a=e.findIndex((l,c)=>{var u;return c>=i&&((u=l.endSeparator)==null?void 0:u.includes(" "))&&l.endSeparator!==" / "}),a===-1&&(a=e.length-1);for(let l=a;l>=i;l-=1)o[l]=s,r[s]=l,s-=1;i=a+1}return e.forEach((l,c)=>{const u=o[c],d=u===0?null:r[u-1],f=u===e.length-1?null:r[u+1];n[c]={leftIndex:d,rightIndex:f}}),{neighbors:n,startIndex:r[0],endIndex:r[e.length-1]}},fh=(e,t)=>{if(e==null)return null;if(e==="all")return"all";if(typeof e=="string"){const n=t.findIndex(r=>r.type===e);return n===-1?null:n}return e},UF=(e,t)=>{if(e.value)switch(e.type){case"month":{if(e.contentType==="digit")return t.format(t.setMonth(t.date(),Number(e.value)-1),"month");const n=t.parse(e.value,e.format);return n?t.format(n,"month"):void 0}case"day":return e.contentType==="digit"?t.format(t.setDate(t.startOfYear(t.date()),Number(e.value)),"dayOfMonthFull"):e.value;case"weekDay":return;default:return}},HF=(e,t)=>{if(e.value)switch(e.type){case"weekDay":return e.contentType==="letter"?void 0:Number(e.value);case"meridiem":{const n=t.parse(`01:00 ${e.value}`,`${t.formats.hours12h}:${t.formats.minutes} ${e.format}`);return n?t.getHours(n)>=12?1:0:void 0}case"day":return e.contentType==="digit-with-letter"?parseInt(e.value,10):Number(e.value);case"month":{if(e.contentType==="digit")return Number(e.value);const n=t.parse(e.value,e.format);return n?t.getMonth(n)+1:void 0}default:return e.contentType!=="letter"?Number(e.value):void 0}},YF=["value","referenceDate"],Hr={emptyValue:null,getTodayValue:C1,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,r=Ae(e,YF);return t!=null&&r.utils.isValid(t)?t:n??OF(r)},cleanValue:MF,areValuesEqual:RF,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)},KF={updateReferenceValue:(e,t,n)=>t==null||!e.isValid(t)?n:t,getSectionsFromValue:(e,t,n,r)=>!e.isValid(t)&&!!n?n:r(t),getV7HiddenInputValueFromSections:FF,getV6InputValueFromSections:BF,getActiveDateManager:(e,t)=>({date:t.value,referenceDate:t.referenceValue,getSections:n=>n,getNewValuesFromNewActiveDate:n=>({value:n,referenceValue:n==null||!e.isValid(n)?t.referenceValue:n})}),parseValueStr:(e,t,n)=>n(e.trim(),t)};function GF(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const QF=(e,t)=>n=>{(n.key==="Enter"||n.key===" ")&&(e(n),n.preventDefault(),n.stopPropagation())},Dn=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?Dn(t.shadowRoot):t:null},XF="@media (pointer: fine)";function qF(e){return ge("MuiPickersDay",e)}const Go=me("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),ZF=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],JF=e=>{const{selected:t,disableMargin:n,disableHighlightToday:r,today:o,disabled:i,outsideCurrentMonth:a,showDaysOutsideCurrentMonth:s,classes:l}=e,c=a&&!s;return ye({root:["root",t&&!c&&"selected",i&&"disabled",!n&&"dayWithMargin",!r&&o&&"today",a&&s&&"dayOutsideMonth",c&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},qF,l)},T1=({theme:e})=>_({},e.typography.caption,{width:Pl,height:Pl,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})`:ze(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:ze(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${Go.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${Go.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}},[`&.${Go.disabled}:not(.${Go.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${Go.disabled}&.${Go.selected}`]:{opacity:.6},variants:[{props:{disableMargin:!1},style:{margin:`0 ${Qd}px`}},{props:{outsideCurrentMonth:!0,showDaysOutsideCurrentMonth:!0},style:{color:(e.vars||e).palette.text.secondary}},{props:{disableHighlightToday:!1,today:!0},style:{[`&:not(.${Go.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}}]}),I1=(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]},e5=G(Ia,{name:"MuiPickersDay",slot:"Root",overridesResolver:I1})(T1),t5=G("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:I1})(({theme:e})=>_({},T1({theme:e}),{opacity:0,pointerEvents:"none"})),xs=()=>{},n5=p.forwardRef(function(t,n){const r=gt({props:t,name:"MuiPickersDay"}),{autoFocus:o=!1,className:i,day:a,disabled:s=!1,disableHighlightToday:l=!1,disableMargin:c=!1,isAnimating:u,onClick:d,onDaySelect:f,onFocus:y=xs,onBlur:g=xs,onKeyDown:S=xs,onMouseDown:C=xs,onMouseEnter:h=xs,outsideCurrentMonth:m,selected:v=!1,showDaysOutsideCurrentMonth:b=!1,children:E,today:k=!1}=r,M=Ae(r,ZF),P=_({},r,{autoFocus:o,disabled:s,disableHighlightToday:l,disableMargin:c,selected:v,showDaysOutsideCurrentMonth:b,today:k}),$=JF(P),w=yt(),R=p.useRef(null),A=Ye(R,n);Ut(()=>{o&&!s&&!u&&!m&&R.current.focus()},[o,s,u,m]);const j=T=>{C(T),m&&T.preventDefault()},O=T=>{s||f(a),m&&T.currentTarget.focus(),d&&d(T)};return m&&!b?x.jsx(t5,{className:pe($.root,$.hiddenDaySpacingFiller,i),ownerState:P,role:M.role}):x.jsx(e5,_({className:pe($.root,i),ref:A,centerRipple:!0,disabled:s,tabIndex:v?0:-1,onKeyDown:T=>S(T,a),onFocus:T=>y(T,a),onBlur:T=>g(T,a),onMouseEnter:T=>h(T,a),onClick:O,onMouseDown:j},M,{ownerState:P,children:E||w.format(a,"dayOfMonth")}))}),r5=p.memo(n5),Kl=({props:e,value:t,timezone:n,adapter:r})=>{if(t===null)return null;const{shouldDisableDate:o,shouldDisableMonth:i,shouldDisableYear:a,disablePast:s,disableFuture:l}=e,c=r.utils.date(void 0,n),u=ar(r.utils,e.minDate,r.defaultDates.minDate),d=ar(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!!(a&&a(t)):return"shouldDisableYear";case!!(l&&r.utils.isAfterDay(t,c)):return"disableFuture";case!!(s&&r.utils.isBeforeDay(t,c)):return"disablePast";case!!(u&&r.utils.isBeforeDay(t,u)):return"minDate";case!!(d&&r.utils.isAfterDay(t,d)):return"maxDate";default:return null}};Kl.valueManager=Hr;const O1=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],o5=["disablePast","disableFuture","minTime","maxTime","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],i5=["minDateTime","maxDateTime"],a5=[...O1,...o5,...i5],$1=e=>a5.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{});function A1(e){const{props:t,validator:n,value:r,timezone:o,onError:i}=e,a=Ii(),s=p.useRef(n.valueManager.defaultErrorState),l=n({adapter:a,value:r,timezone:o,props:t}),c=n.valueManager.hasError(l);p.useEffect(()=>{i&&!n.valueManager.isSameError(l,s.current)&&i(l,r),s.current=l},[n,i,l,r]);const u=Se(d=>n({adapter:a,value:d,timezone:o,props:t}));return{validationError:l,hasValidationError:c,getValidationErrorForNewValue:u}}const s5=({utils:e,format:t})=>{let n=10,r=t,o=e.expandFormat(t);for(;o!==r;)if(r=o,o=e.expandFormat(r),n-=1,n<0)throw new Error("MUI X: The format expansion seems to be in an infinite loop. Please open an issue with the format passed to the picker component.");return o},l5=({utils:e,expandedFormat:t})=>{const n=[],{start:r,end:o}=e.escapedCharacters,i=new RegExp(`(\\${r}[^\\${o}]*\\${o})+`,"g");let a=null;for(;a=i.exec(t);)n.push({start:a.index,end:i.lastIndex-1});return n},c5=(e,t,n,r)=>{switch(n.type){case"year":return t.fieldYearPlaceholder({digitAmount:e.formatByString(e.date(void 0,"default"),r).length,format:r});case"month":return t.fieldMonthPlaceholder({contentType:n.contentType,format:r});case"day":return t.fieldDayPlaceholder({format:r});case"weekDay":return t.fieldWeekDayPlaceholder({contentType:n.contentType,format:r});case"hours":return t.fieldHoursPlaceholder({format:r});case"minutes":return t.fieldMinutesPlaceholder({format:r});case"seconds":return t.fieldSecondsPlaceholder({format:r});case"meridiem":return t.fieldMeridiemPlaceholder({format:r});default:return r}},u5=({utils:e,date:t,shouldRespectLeadingZeros:n,localeText:r,localizedDigits:o,now:i,token:a,startSeparator:s})=>{if(a==="")throw new Error("MUI X: Should not call `commitToken` with an empty token");const l=k1(e,a),c=D1(e,l.contentType,l.type,a),u=n?c:l.contentType==="digit",d=t!=null&&e.isValid(t);let f=d?e.formatByString(t,a):"",y=null;if(u)if(c)y=f===""?e.formatByString(i,a).length:f.length;else{if(l.maxLength==null)throw new Error(`MUI X: The token ${a} should have a 'maxDigitNumber' property on it's adapter`);y=l.maxLength,d&&(f=fg(P1(wi(f,o),y),o))}return _({},l,{format:a,maxLength:y,value:f,placeholder:c5(e,r,l,a),hasLeadingZerosInFormat:c,hasLeadingZerosInInput:u,startSeparator:s,endSeparator:"",modified:!1})},d5=e=>{var y;const{utils:t,expandedFormat:n,escapedParts:r}=e,o=t.date(void 0),i=[];let a="";const s=Object.keys(t.formatTokenMap).sort((g,S)=>S.length-g.length),l=/^([a-zA-Z]+)/,c=new RegExp(`^(${s.join("|")})*$`),u=new RegExp(`^(${s.join("|")})`),d=g=>r.find(S=>S.start<=g&&S.end>=g);let f=0;for(;f0;){const m=u.exec(h)[1];h=h.slice(m.length),i.push(u5(_({},e,{now:o,token:m,startSeparator:a}))),a=""}f+=C.length}else{const h=n[f];S&&(g==null?void 0:g.start)===f||(g==null?void 0:g.end)===f||(i.length===0?a+=h:i[i.length-1].endSeparator+=h),f+=1}}return i.length===0&&a.length>0&&i.push({type:"empty",contentType:"letter",maxLength:null,format:"",value:"",placeholder:"",hasLeadingZerosInFormat:!1,hasLeadingZerosInInput:!1,startSeparator:a,endSeparator:"",modified:!1}),i},f5=({isRtl:e,formatDensity:t,sections:n})=>n.map(r=>{const o=i=>{let a=i;return e&&a!==null&&a.includes(" ")&&(a=`⁩${a}⁦`),t==="spacious"&&["/",".","-"].includes(a)&&(a=` ${a} `),a};return r.startSeparator=o(r.startSeparator),r.endSeparator=o(r.endSeparator),r}),N0=e=>{let t=s5(e);e.isRtl&&e.enableAccessibleFieldDOMStructure&&(t=t.split(" ").reverse().join(" "));const n=l5(_({},e,{expandedFormat:t})),r=d5(_({},e,{expandedFormat:t,escapedParts:n}));return f5(_({},e,{sections:r}))},p5=e=>{const t=yt(),n=mo(),r=Ii(),o=lr(),{valueManager:i,fieldValueManager:a,valueType:s,validator:l,internalProps:c,internalProps:{value:u,defaultValue:d,referenceDate:f,onChange:y,format:g,formatDensity:S="dense",selectedSections:C,onSelectedSectionsChange:h,shouldRespectLeadingZeros:m=!1,timezone:v,enableAccessibleFieldDOMStructure:b=!1}}=e,{timezone:E,value:k,handleValueChange:M}=ug({timezone:v,value:u,defaultValue:d,referenceDate:f,onChange:y,valueManager:i}),P=p.useMemo(()=>LF(t),[t]),$=p.useMemo(()=>zF(t,P,E),[t,P,E]),w=p.useCallback((H,le=null)=>a.getSectionsFromValue(t,H,le,ae=>N0({utils:t,localeText:n,localizedDigits:P,format:g,date:ae,formatDensity:S,shouldRespectLeadingZeros:m,enableAccessibleFieldDOMStructure:b,isRtl:o})),[a,g,n,P,o,m,t,S,b]),[R,A]=p.useState(()=>{const H=w(k),le={sections:H,value:k,referenceValue:i.emptyValue,tempValueStrAndroid:null},ae=IF(H),te=i.getInitialReferenceValue({referenceDate:f,value:k,utils:t,props:c,granularity:ae,timezone:E});return _({},le,{referenceValue:te})}),[j,O]=co({controlled:C,default:null,name:"useField",state:"selectedSections"}),T=H=>{O(H),h==null||h(H)},I=p.useMemo(()=>fh(j,R.sections),[j,R.sections]),N=I==="all"?0:I,D=({value:H,referenceValue:le,sections:ae})=>{if(A(Z=>_({},Z,{sections:ae,value:H,referenceValue:le,tempValueStrAndroid:null})),i.areValuesEqual(t,R.value,H))return;const te={validationError:l({adapter:r,value:H,timezone:E,props:c})};M(H,te)},L=(H,le)=>{const ae=[...R.sections];return ae[H]=_({},ae[H],{value:le,modified:!0}),ae},z=()=>{D({value:i.emptyValue,referenceValue:R.referenceValue,sections:w(i.emptyValue)})},V=()=>{if(N==null)return;const H=R.sections[N],le=a.getActiveDateManager(t,R,H),te=le.getSections(R.sections).filter(W=>W.value!=="").length===(H.value===""?0:1),Z=L(N,""),re=te?null:t.getInvalidDate(),ie=le.getNewValuesFromNewActiveDate(re);D(_({},ie,{sections:Z}))},Y=H=>{const le=(Z,re)=>{const ie=t.parse(Z,g);if(ie==null||!t.isValid(ie))return null;const W=N0({utils:t,localeText:n,localizedDigits:P,format:g,date:ie,formatDensity:S,shouldRespectLeadingZeros:m,enableAccessibleFieldDOMStructure:b,isRtl:o});return j0(t,ie,W,re,!1)},ae=a.parseValueStr(H,R.referenceValue,le),te=a.updateReferenceValue(t,ae,R.referenceValue);D({value:ae,referenceValue:te,sections:w(ae,R.sections)})},se=({activeSection:H,newSectionValue:le,shouldGoToNextSection:ae})=>{ae&&N_({},K,W,{sections:Z,tempValueStrAndroid:null}))},X=H=>A(le=>_({},le,{tempValueStrAndroid:H}));return p.useEffect(()=>{const H=w(R.value);A(le=>_({},le,{sections:H}))},[g,t.locale,o]),p.useEffect(()=>{let H;i.areValuesEqual(t,R.value,k)?H=i.getTimezone(t,R.value)!==i.getTimezone(t,k):H=!0,H&&A(le=>_({},le,{value:k,referenceValue:a.updateReferenceValue(t,k,le.referenceValue),sections:w(k)}))},[k]),{state:R,activeSectionIndex:N,parsedSelectedSections:I,setSelectedSections:T,clearValue:z,clearActiveSection:V,updateSectionValue:se,updateValueFromValueStr:Y,setTempAndroidValueStr:X,getSectionsFromValue:w,sectionsValueBoundaries:$,localizedDigits:P,timezone:E}},h5=5e3,Ui=e=>e.saveQuery!=null,m5=({sections:e,updateSectionValue:t,sectionsValueBoundaries:n,localizedDigits:r,setTempAndroidValueStr:o,timezone:i})=>{const a=yt(),[s,l]=p.useState(null),c=Se(()=>l(null));p.useEffect(()=>{var g;s!=null&&((g=e[s.sectionIndex])==null?void 0:g.type)!==s.sectionType&&c()},[e,s,c]),p.useEffect(()=>{if(s!=null){const g=setTimeout(()=>c(),h5);return()=>{clearTimeout(g)}}return()=>{}},[s,c]);const u=({keyPressed:g,sectionIndex:S},C,h)=>{const m=g.toLowerCase(),v=e[S];if(s!=null&&(!h||h(s.value))&&s.sectionIndex===S){const E=`${s.value}${m}`,k=C(E,v);if(!Ui(k))return l({sectionIndex:S,value:E,sectionType:v.type}),k}const b=C(m,v);return Ui(b)&&!b.saveQuery?(c(),null):(l({sectionIndex:S,value:m,sectionType:v.type}),Ui(b)?null:b)},d=g=>{const S=(m,v,b)=>{const E=v.filter(k=>k.toLowerCase().startsWith(b));return E.length===0?{saveQuery:!1}:{sectionValue:E[0],shouldGoToNextSection:E.length===1}},C=(m,v,b,E)=>{const k=M=>E1(a,i,v.type,M);if(v.contentType==="letter")return S(v.format,k(v.format),m);if(b&&E!=null&&k1(a,b).contentType==="letter"){const M=k(b),P=S(b,M,m);return Ui(P)?{saveQuery:!1}:_({},P,{sectionValue:E(P.sectionValue,M)})}return{saveQuery:!1}};return u(g,(m,v)=>{switch(v.type){case"month":{const b=E=>A0(a,E,a.formats.month,v.format);return C(m,v,a.formats.month,b)}case"weekDay":{const b=(E,k)=>k.indexOf(E).toString();return C(m,v,a.formats.weekday,b)}case"meridiem":return C(m,v);default:return{saveQuery:!1}}})},f=g=>{const S=(h,m)=>{const v=wi(h,r),b=Number(v),E=n[m.type]({currentDate:null,format:m.format,contentType:m.contentType});if(b>E.maximum)return{saveQuery:!1};if(bE.maximum||v.length===E.maximum.toString().length;return{sectionValue:M1(a,b,E,r,m),shouldGoToNextSection:k}};return u(g,(h,m)=>{if(m.contentType==="digit"||m.contentType==="digit-with-letter")return S(h,m);if(m.type==="month"){const v=D1(a,"digit","month","MM"),b=S(h,{type:m.type,format:"MM",hasLeadingZerosInFormat:v,hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(Ui(b))return b;const E=A0(a,b.sectionValue,"MM",m.format);return _({},b,{sectionValue:E})}if(m.type==="weekDay"){const v=S(h,m);if(Ui(v))return v;const b=qd(a,m.format)[Number(v.sectionValue)-1];return _({},v,{sectionValue:b})}return{saveQuery:!1}},h=>$0(h,r))};return{applyCharacterEditing:Se(g=>{const S=e[g.sectionIndex],h=$0(g.keyPressed,r)?f(_({},g,{keyPressed:fg(g.keyPressed,r)})):d(g);if(h==null){o(null);return}t({activeSection:S,newSectionValue:h.sectionValue,shouldGoToNextSection:h.shouldGoToNextSection})}),resetCharacterQuery:c}},g5=e=>{const{internalProps:{disabled:t,readOnly:n=!1},forwardedProps:{sectionListRef:r,onBlur:o,onClick:i,onFocus:a,onInput:s,onPaste:l,focused:c,autoFocus:u=!1},fieldValueManager:d,applyCharacterEditing:f,resetCharacterQuery:y,setSelectedSections:g,parsedSelectedSections:S,state:C,clearActiveSection:h,clearValue:m,updateSectionValue:v,updateValueFromValueStr:b,sectionOrder:E,areAllSectionsEmpty:k,sectionsValueBoundaries:M}=e,P=p.useRef(null),$=Ye(r,P),w=mo(),R=yt(),A=Wo(),[j,O]=p.useState(!1),T=p.useMemo(()=>({syncSelectionToDOM:()=>{if(!P.current)return;const F=document.getSelection();if(!F)return;if(S==null){F.rangeCount>0&&P.current.getRoot().contains(F.getRangeAt(0).startContainer)&&F.removeAllRanges(),j&&P.current.getRoot().blur();return}if(!P.current.getRoot().contains(Dn(document)))return;const K=new window.Range;let Q;S==="all"?Q=P.current.getRoot():C.sections[S].type==="empty"?Q=P.current.getSectionContainer(S):Q=P.current.getSectionContent(S),K.selectNodeContents(Q),Q.focus(),F.removeAllRanges(),F.addRange(K)},getActiveSectionIndexFromDOM:()=>{const F=Dn(document);return!F||!P.current||!P.current.getRoot().contains(F)?null:P.current.getSectionIndexFromDOMElement(F)},focusField:(F=0)=>{if(!P.current)return;const K=fh(F,C.sections);O(!0),P.current.getSectionContent(K).focus()},setSelectedSections:F=>{if(!P.current)return;const K=fh(F,C.sections);O((K==="all"?0:K)!==null),g(F)},isFieldFocused:()=>{const F=Dn(document);return!!P.current&&P.current.getRoot().contains(F)}}),[S,g,C.sections,j]),I=Se(F=>{if(!P.current)return;const K=C.sections[F];P.current.getSectionContent(F).innerHTML=K.value||K.placeholder,T.syncSelectionToDOM()}),N=Se((F,...K)=>{F.isDefaultPrevented()||!P.current||(O(!0),i==null||i(F,...K),S==="all"?setTimeout(()=>{const Q=document.getSelection().getRangeAt(0).startOffset;if(Q===0){g(E.startIndex);return}let ne=0,ue=0;for(;ue{if(s==null||s(F),!P.current||S!=="all")return;const Q=F.target.textContent??"";P.current.getRoot().innerHTML=C.sections.map(ne=>`${ne.startSeparator}${ne.value||ne.placeholder}${ne.endSeparator}`).join(""),T.syncSelectionToDOM(),Q.length===0||Q.charCodeAt(0)===10?(y(),m(),g("all")):Q.length>1?b(Q):f({keyPressed:Q,sectionIndex:0})}),L=Se(F=>{if(l==null||l(F),n||S!=="all"){F.preventDefault();return}const K=F.clipboardData.getData("text");F.preventDefault(),y(),b(K)}),z=Se((...F)=>{if(a==null||a(...F),j||!P.current)return;O(!0),P.current.getSectionIndexFromDOMElement(Dn(document))!=null||g(E.startIndex)}),V=Se((...F)=>{o==null||o(...F),setTimeout(()=>{if(!P.current)return;const K=Dn(document);!P.current.getRoot().contains(K)&&(O(!1),g(null))})}),Y=Se(F=>K=>{K.isDefaultPrevented()||g(F)}),se=Se(F=>{F.preventDefault()}),X=Se(F=>()=>{g(F)}),H=Se(F=>{if(F.preventDefault(),n||t||typeof S!="number")return;const K=C.sections[S],Q=F.clipboardData.getData("text"),ne=/^[a-zA-Z]+$/.test(Q),ue=/^[0-9]+$/.test(Q),ee=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(Q);K.contentType==="letter"&&ne||K.contentType==="digit"&&ue||K.contentType==="digit-with-letter"&&ee?(y(),v({activeSection:K,newSectionValue:Q,shouldGoToNextSection:!0})):!ne&&!ue&&(y(),b(Q))}),le=Se(F=>{F.preventDefault(),F.dataTransfer.dropEffect="none"}),ae=Se(F=>{if(!P.current)return;const K=F.target,Q=K.textContent??"",ne=P.current.getSectionIndexFromDOMElement(K),ue=C.sections[ne];if(n||!P.current){I(ne);return}if(Q.length===0){if(ue.value===""){I(ne);return}const ee=F.nativeEvent.inputType;if(ee==="insertParagraph"||ee==="insertLineBreak"){I(ne);return}y(),h();return}f({keyPressed:Q,sectionIndex:ne}),I(ne)});Ut(()=>{if(!(!j||!P.current)){if(S==="all")P.current.getRoot().focus();else if(typeof S=="number"){const F=P.current.getSectionContent(S);F&&F.focus()}}},[S,j]);const te=p.useMemo(()=>C.sections.reduce((F,K)=>(F[K.type]=M[K.type]({currentDate:null,contentType:K.contentType,format:K.format}),F),{}),[M,C.sections]),Z=S==="all",re=p.useMemo(()=>C.sections.map((F,K)=>{const Q=!Z&&!t&&!n;return{container:{"data-sectionindex":K,onClick:Y(K)},content:{tabIndex:Z||K>0?-1:0,contentEditable:!Z&&!t&&!n,role:"spinbutton",id:`${A}-${F.type}`,"aria-labelledby":`${A}-${F.type}`,"aria-readonly":n,"aria-valuenow":HF(F,R),"aria-valuemin":te[F.type].minimum,"aria-valuemax":te[F.type].maximum,"aria-valuetext":F.value?UF(F,R):w.empty,"aria-label":w[F.type],"aria-disabled":t,spellCheck:Q?!1:void 0,autoCapitalize:Q?"off":void 0,autoCorrect:Q?"off":void 0,[parseInt(p.version,10)>=17?"enterKeyHint":"enterkeyhint"]:Q?"next":void 0,children:F.value||F.placeholder,onInput:ae,onPaste:H,onFocus:X(K),onDragOver:le,onMouseUp:se,inputMode:F.contentType==="letter"?"text":"numeric"},before:{children:F.startSeparator},after:{children:F.endSeparator}}}),[C.sections,X,H,le,ae,Y,se,t,n,Z,w,R,te,A]),ie=Se(F=>{b(F.target.value)}),W=p.useMemo(()=>k?"":d.getV7HiddenInputValueFromSections(C.sections),[k,C.sections,d]);return p.useEffect(()=>{if(P.current==null)throw new Error(["MUI X: The `sectionListRef` prop has not been initialized by `PickersSectionList`","You probably tried to pass a component to the `textField` slot that contains an `` element instead of a `PickersSectionList`.","","If you want to keep using an `` HTML element for the editing, please remove the `enableAccessibleFieldDOMStructure` prop from your picker or field component:","","","","Learn more about the field accessible DOM structure on the MUI documentation: https://mui.com/x/react-date-pickers/fields/#fields-to-edit-a-single-element"].join(` +`));u&&P.current&&P.current.getSectionContent(E.startIndex).focus()},[]),{interactions:T,returnedValue:{autoFocus:u,readOnly:n,focused:c??j,sectionListRef:$,onBlur:V,onClick:N,onFocus:z,onInput:D,onPaste:L,enableAccessibleFieldDOMStructure:!0,elements:re,tabIndex:S===0?-1:0,contentEditable:Z,value:W,onChange:ie,areAllSectionsEmpty:k}}},oa=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),y5=(e,t,n)=>{let r=0,o=n?1:0;const i=[];for(let a=0;a{const t=lr(),n=p.useRef(),r=p.useRef(),{forwardedProps:{onFocus:o,onClick:i,onPaste:a,onBlur:s,inputRef:l,placeholder:c},internalProps:{readOnly:u=!1,disabled:d=!1},parsedSelectedSections:f,activeSectionIndex:y,state:g,fieldValueManager:S,valueManager:C,applyCharacterEditing:h,resetCharacterQuery:m,updateSectionValue:v,updateValueFromValueStr:b,clearActiveSection:E,clearValue:k,setTempAndroidValueStr:M,setSelectedSections:P,getSectionsFromValue:$,areAllSectionsEmpty:w,localizedDigits:R}=e,A=p.useRef(null),j=Ye(l,A),O=p.useMemo(()=>y5(g.sections,R,t),[g.sections,R,t]),T=p.useMemo(()=>({syncSelectionToDOM:()=>{if(!A.current)return;if(f==null){A.current.scrollLeft&&(A.current.scrollLeft=0);return}if(A.current!==Dn(document))return;const ae=A.current.scrollTop;if(f==="all")A.current.select();else{const te=O[f],Z=te.type==="empty"?te.startInInput-te.startSeparator.length:te.startInInput,re=te.type==="empty"?te.endInInput+te.endSeparator.length:te.endInInput;(Z!==A.current.selectionStart||re!==A.current.selectionEnd)&&A.current===Dn(document)&&A.current.setSelectionRange(Z,re),clearTimeout(r.current),r.current=setTimeout(()=>{A.current&&A.current===Dn(document)&&A.current.selectionStart===A.current.selectionEnd&&(A.current.selectionStart!==Z||A.current.selectionEnd!==re)&&T.syncSelectionToDOM()})}A.current.scrollTop=ae},getActiveSectionIndexFromDOM:()=>{const ae=A.current.selectionStart??0,te=A.current.selectionEnd??0;if(ae===0&&te===0)return null;const Z=ae<=O[0].startInInput?1:O.findIndex(re=>re.startInInput-re.startSeparator.length>ae);return Z===-1?O.length-1:Z-1},focusField:(ae=0)=>{var te;(te=A.current)==null||te.focus(),P(ae)},setSelectedSections:ae=>P(ae),isFieldFocused:()=>A.current===Dn(document)}),[A,f,O,P]),I=()=>{const ae=A.current.selectionStart??0;let te;ae<=O[0].startInInput||ae>=O[O.length-1].endInInput?te=1:te=O.findIndex(re=>re.startInInput-re.startSeparator.length>ae);const Z=te===-1?O.length-1:te-1;P(Z)},N=Se((...ae)=>{o==null||o(...ae);const te=A.current;clearTimeout(n.current),n.current=setTimeout(()=>{!te||te!==A.current||y==null&&(te.value.length&&Number(te.selectionEnd)-Number(te.selectionStart)===te.value.length?P("all"):I())})}),D=Se((ae,...te)=>{ae.isDefaultPrevented()||(i==null||i(ae,...te),I())}),L=Se(ae=>{if(a==null||a(ae),ae.preventDefault(),u||d)return;const te=ae.clipboardData.getData("text");if(typeof f=="number"){const Z=g.sections[f],re=/^[a-zA-Z]+$/.test(te),ie=/^[0-9]+$/.test(te),W=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(te);if(Z.contentType==="letter"&&re||Z.contentType==="digit"&&ie||Z.contentType==="digit-with-letter"&&W){m(),v({activeSection:Z,newSectionValue:te,shouldGoToNextSection:!0});return}if(re||ie)return}m(),b(te)}),z=Se((...ae)=>{s==null||s(...ae),P(null)}),V=Se(ae=>{if(u)return;const te=ae.target.value;if(te===""){m(),k();return}const Z=ae.nativeEvent.data,re=Z&&Z.length>1,ie=re?Z:te,W=oa(ie);if(y==null||re){b(re?Z:W);return}let F;if(f==="all"&&W.length===1)F=W;else{const K=oa(S.getV6InputValueFromSections(O,R,t));let Q=-1,ne=-1;for(let ve=0;veue.end)return;const fe=W.length-K.length+ue.end-oa(ue.endSeparator||"").length;F=W.slice(ue.start+oa(ue.startSeparator||"").length,fe)}if(F.length===0){VF()&&M(ie),m(),E();return}h({keyPressed:F,sectionIndex:y})}),Y=p.useMemo(()=>c!==void 0?c:S.getV6InputValueFromSections($(C.emptyValue),R,t),[c,S,$,C.emptyValue,R,t]),se=p.useMemo(()=>g.tempValueStrAndroid??S.getV6InputValueFromSections(g.sections,R,t),[g.sections,S,g.tempValueStrAndroid,R,t]);p.useEffect(()=>(A.current&&A.current===Dn(document)&&P("all"),()=>{clearTimeout(n.current),clearTimeout(r.current)}),[]);const X=p.useMemo(()=>y==null||g.sections[y].contentType==="letter"?"text":"numeric",[y,g.sections]),le=!(A.current&&A.current===Dn(document))&&w;return{interactions:T,returnedValue:{readOnly:u,onBlur:z,onClick:D,onFocus:N,onPaste:L,inputRef:j,enableAccessibleFieldDOMStructure:!1,placeholder:Y,inputMode:X,autoComplete:"off",value:le?"":se,onChange:V}}},x5=e=>{const t=yt(),{internalProps:n,internalProps:{unstableFieldRef:r,minutesStep:o,enableAccessibleFieldDOMStructure:i=!1,disabled:a=!1,readOnly:s=!1},forwardedProps:{onKeyDown:l,error:c,clearable:u,onClear:d},fieldValueManager:f,valueManager:y,validator:g}=e,S=lr(),C=p5(e),{state:h,activeSectionIndex:m,parsedSelectedSections:v,setSelectedSections:b,clearValue:E,clearActiveSection:k,updateSectionValue:M,setTempAndroidValueStr:P,sectionsValueBoundaries:$,localizedDigits:w,timezone:R}=C,A=m5({sections:h.sections,updateSectionValue:M,sectionsValueBoundaries:$,localizedDigits:w,setTempAndroidValueStr:P,timezone:R}),{resetCharacterQuery:j}=A,O=y.areValuesEqual(t,h.value,y.emptyValue),T=i?g5:v5,I=p.useMemo(()=>WF(h.sections,S&&!i),[h.sections,S,i]),{returnedValue:N,interactions:D}=T(_({},e,C,A,{areAllSectionsEmpty:O,sectionOrder:I})),L=Se(H=>{if(l==null||l(H),!a)switch(!0){case((H.ctrlKey||H.metaKey)&&String.fromCharCode(H.keyCode)==="A"&&!H.shiftKey&&!H.altKey):{H.preventDefault(),b("all");break}case H.key==="ArrowRight":{if(H.preventDefault(),v==null)b(I.startIndex);else if(v==="all")b(I.endIndex);else{const le=I.neighbors[v].rightIndex;le!==null&&b(le)}break}case H.key==="ArrowLeft":{if(H.preventDefault(),v==null)b(I.endIndex);else if(v==="all")b(I.startIndex);else{const le=I.neighbors[v].leftIndex;le!==null&&b(le)}break}case H.key==="Delete":{if(H.preventDefault(),s)break;v==null||v==="all"?E():k(),j();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(H.key):{if(H.preventDefault(),s||m==null)break;const le=h.sections[m],ae=f.getActiveDateManager(t,h,le),te=jF(t,R,le,H.key,$,w,ae.date,{minutesStep:o});M({activeSection:le,newSectionValue:te,shouldGoToNextSection:!1});break}}});Ut(()=>{D.syncSelectionToDOM()});const{hasValidationError:z}=A1({props:n,validator:g,timezone:R,value:h.value,onError:n.onError}),V=p.useMemo(()=>c!==void 0?c:z,[z,c]);p.useEffect(()=>{!V&&m==null&&j()},[h.referenceValue,m,V]),p.useEffect(()=>{h.tempValueStrAndroid!=null&&m!=null&&(j(),k())},[h.sections]),p.useImperativeHandle(r,()=>({getSections:()=>h.sections,getActiveSectionIndex:D.getActiveSectionIndexFromDOM,setSelectedSections:D.setSelectedSections,focusField:D.focusField,isFieldFocused:D.isFieldFocused}));const Y=Se((H,...le)=>{H.preventDefault(),d==null||d(H,...le),E(),D.isFieldFocused()?b(I.startIndex):D.focusField(0)}),se={onKeyDown:L,onClear:Y,error:V,clearable:!!(u&&!O&&!s&&!a)},X={disabled:a,readOnly:s};return _({},e.forwardedProps,se,X,N)},S5=["clearable","onClear","InputProps","sx","slots","slotProps"],b5=["ownerState"],w5=e=>{const t=mo(),{clearable:n,onClear:r,InputProps:o,sx:i,slots:a,slotProps:s}=e,l=Ae(e,S5),c=(a==null?void 0:a.clearButton)??Wr,u=Qe({elementType:c,externalSlotProps:s==null?void 0:s.clearButton,ownerState:{},className:"clearButton",additionalProps:{title:t.fieldClearLabel}}),d=Ae(u,b5),f=(a==null?void 0:a.clearIcon)??uF,y=Qe({elementType:f,externalSlotProps:s==null?void 0:s.clearIcon,ownerState:{}});return _({},l,{InputProps:_({},o,{endAdornment:x.jsxs(p.Fragment,{children:[n&&x.jsx(kw,{position:"end",sx:{marginRight:o!=null&&o.endAdornment?-1:-1.5},children:x.jsx(c,_({},d,{onClick:r,children:x.jsx(f,_({fontSize:"small"},y))}))}),o==null?void 0:o.endAdornment]})}),sx:[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(i)?i:[i]]})},C5=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef","enableAccessibleFieldDOMStructure","disabled","readOnly","dateSeparator"],k5=(e,t)=>p.useMemo(()=>{const n=_({},e),r={},o=i=>{n.hasOwnProperty(i)&&(r[i]=n[i],delete n[i])};return C5.forEach(o),O1.forEach(o),{forwardedProps:n,internalProps:r}},[e,t]),E5=p.createContext(null);function L1(e){const{contextValue:t,localeText:n,children:r}=e;return x.jsx(E5.Provider,{value:t,children:x.jsx(x1,{localeText:n,children:r})})}const P5=e=>{const t=yt(),n=Yl();return _({},e,{disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1,format:e.format??t.formats.keyboardDate,minDate:ar(t,e.minDate,n.minDate),maxDate:ar(t,e.maxDate,n.maxDate)})},M5=e=>{const t=P5(e),{forwardedProps:n,internalProps:r}=k5(t,"date");return x5({forwardedProps:n,internalProps:r,valueManager:Hr,fieldValueManager:KF,validator:Kl,valueType:"date"})};function R5(e){return ge("MuiPickersTextField",e)}me("MuiPickersTextField",["root","focused","disabled","error","required"]);function D5(e){return ge("MuiPickersInputBase",e)}const ga=me("MuiPickersInputBase",["root","focused","disabled","error","notchedOutline","sectionContent","sectionBefore","sectionAfter","adornedStart","adornedEnd","input"]);function T5(e){return ge("MuiPickersSectionList",e)}const Ss=me("MuiPickersSectionList",["root","section","sectionContent"]),I5=["slots","slotProps","elements","sectionListRef"],j1=G("div",{name:"MuiPickersSectionList",slot:"Root",overridesResolver:(e,t)=>t.root})({direction:"ltr /*! @noflip */",outline:"none"}),N1=G("span",{name:"MuiPickersSectionList",slot:"Section",overridesResolver:(e,t)=>t.section})({}),F1=G("span",{name:"MuiPickersSectionList",slot:"SectionSeparator",overridesResolver:(e,t)=>t.sectionSeparator})({whiteSpace:"pre"}),B1=G("span",{name:"MuiPickersSectionList",slot:"SectionContent",overridesResolver:(e,t)=>t.sectionContent})({outline:"none"}),O5=e=>{const{classes:t}=e;return ye({root:["root"],section:["section"],sectionContent:["sectionContent"]},T5,t)};function $5(e){const{slots:t,slotProps:n,element:r,classes:o}=e,i=(t==null?void 0:t.section)??N1,a=Qe({elementType:i,externalSlotProps:n==null?void 0:n.section,externalForwardedProps:r.container,className:o.section,ownerState:{}}),s=(t==null?void 0:t.sectionContent)??B1,l=Qe({elementType:s,externalSlotProps:n==null?void 0:n.sectionContent,externalForwardedProps:r.content,additionalProps:{suppressContentEditableWarning:!0},className:o.sectionContent,ownerState:{}}),c=(t==null?void 0:t.sectionSeparator)??F1,u=Qe({elementType:c,externalSlotProps:n==null?void 0:n.sectionSeparator,externalForwardedProps:r.before,ownerState:{position:"before"}}),d=Qe({elementType:c,externalSlotProps:n==null?void 0:n.sectionSeparator,externalForwardedProps:r.after,ownerState:{position:"after"}});return x.jsxs(i,_({},a,{children:[x.jsx(c,_({},u)),x.jsx(s,_({},l)),x.jsx(c,_({},d))]}))}const A5=p.forwardRef(function(t,n){const r=gt({props:t,name:"MuiPickersSectionList"}),{slots:o,slotProps:i,elements:a,sectionListRef:s}=r,l=Ae(r,I5),c=O5(r),u=p.useRef(null),d=Ye(n,u),f=S=>{if(!u.current)throw new Error(`MUI X: Cannot call sectionListRef.${S} before the mount of the component.`);return u.current};p.useImperativeHandle(s,()=>({getRoot(){return f("getRoot")},getSectionContainer(S){return f("getSectionContainer").querySelector(`.${Ss.section}[data-sectionindex="${S}"]`)},getSectionContent(S){return f("getSectionContent").querySelector(`.${Ss.section}[data-sectionindex="${S}"] .${Ss.sectionContent}`)},getSectionIndexFromDOMElement(S){const C=f("getSectionIndexFromDOMElement");if(S==null||!C.contains(S))return null;let h=null;return S.classList.contains(Ss.section)?h=S:S.classList.contains(Ss.sectionContent)&&(h=S.parentElement),h==null?null:Number(h.dataset.sectionindex)}}));const y=(o==null?void 0:o.root)??j1,g=Qe({elementType:y,externalSlotProps:i==null?void 0:i.root,externalForwardedProps:l,additionalProps:{ref:d,suppressContentEditableWarning:!0},className:c.root,ownerState:{}});return x.jsx(y,_({},g,{children:g.contentEditable?a.map(({content:S,before:C,after:h})=>`${C.children}${S.children}${h.children}`).join(""):x.jsx(p.Fragment,{children:a.map((S,C)=>x.jsx($5,{slots:o,slotProps:i,element:S,classes:c},C))})}))}),L5=["elements","areAllSectionsEmpty","defaultValue","label","value","onChange","id","autoFocus","endAdornment","startAdornment","renderSuffix","slots","slotProps","contentEditable","tabIndex","onInput","onPaste","onKeyDown","fullWidth","name","readOnly","inputProps","inputRef","sectionListRef"],j5=e=>Math.round(e*1e5)/1e5,Zd=G("div",{name:"MuiPickersInputBase",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>_({},e.typography.body1,{color:(e.vars||e).palette.text.primary,cursor:"text",padding:0,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",boxSizing:"border-box",letterSpacing:`${j5(.15/16)}em`,variants:[{props:{fullWidth:!0},style:{width:"100%"}}]})),hg=G(j1,{name:"MuiPickersInputBase",slot:"SectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})(({theme:e})=>({padding:"4px 0 5px",fontFamily:e.typography.fontFamily,fontSize:"inherit",lineHeight:"1.4375em",flexGrow:1,outline:"none",display:"flex",flexWrap:"nowrap",overflow:"hidden",letterSpacing:"inherit",width:"182px",variants:[{props:{isRtl:!0},style:{textAlign:"right /*! @noflip */"}},{props:{size:"small"},style:{paddingTop:1}},{props:{adornedStart:!1,focused:!1,filled:!1},style:{color:"currentColor",opacity:0}},{props:({adornedStart:t,focused:n,filled:r,label:o})=>!t&&!n&&!r&&o==null,style:e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:e.palette.mode==="light"?.42:.5}}]})),N5=G(N1,{name:"MuiPickersInputBase",slot:"Section",overridesResolver:(e,t)=>t.section})(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit",letterSpacing:"inherit",lineHeight:"1.4375em",display:"flex"})),F5=G(B1,{name:"MuiPickersInputBase",slot:"SectionContent",overridesResolver:(e,t)=>t.content})(({theme:e})=>({fontFamily:e.typography.fontFamily,lineHeight:"1.4375em",letterSpacing:"inherit",width:"fit-content",outline:"none"})),B5=G(F1,{name:"MuiPickersInputBase",slot:"Separator",overridesResolver:(e,t)=>t.separator})(()=>({whiteSpace:"pre",letterSpacing:"inherit"})),z5=G("input",{name:"MuiPickersInputBase",slot:"Input",overridesResolver:(e,t)=>t.hiddenInput})(_({},gR)),_5=e=>{const{focused:t,disabled:n,error:r,classes:o,fullWidth:i,readOnly:a,color:s,size:l,endAdornment:c,startAdornment:u}=e,d={root:["root",t&&!n&&"focused",n&&"disabled",a&&"readOnly",r&&"error",i&&"fullWidth",`color${ce(s)}`,l==="small"&&"inputSizeSmall",!!u&&"adornedStart",!!c&&"adornedEnd"],notchedOutline:["notchedOutline"],input:["input"],sectionsContainer:["sectionsContainer"],sectionContent:["sectionContent"],sectionBefore:["sectionBefore"],sectionAfter:["sectionAfter"]};return ye(d,D5,o)},mg=p.forwardRef(function(t,n){const r=gt({props:t,name:"MuiPickersInputBase"}),{elements:o,areAllSectionsEmpty:i,value:a,onChange:s,id:l,endAdornment:c,startAdornment:u,renderSuffix:d,slots:f,slotProps:y,contentEditable:g,tabIndex:S,onInput:C,onPaste:h,onKeyDown:m,name:v,readOnly:b,inputProps:E,inputRef:k,sectionListRef:M}=r,P=Ae(r,L5),$=p.useRef(null),w=Ye(n,$),R=Ye(E==null?void 0:E.ref,k),A=lr(),j=kr();if(!j)throw new Error("MUI X: PickersInputBase should always be used inside a PickersTextField component");const O=z=>{var V;if(j.disabled){z.stopPropagation();return}(V=j.onFocus)==null||V.call(j,z)};p.useEffect(()=>{j&&j.setAdornedStart(!!u)},[j,u]),p.useEffect(()=>{j&&(i?j.onEmpty():j.onFilled())},[j,i]);const T=_({},r,j,{isRtl:A}),I=_5(T),N=(f==null?void 0:f.root)||Zd,D=Qe({elementType:N,externalSlotProps:y==null?void 0:y.root,externalForwardedProps:P,additionalProps:{"aria-invalid":j.error,ref:w},className:I.root,ownerState:T}),L=(f==null?void 0:f.input)||hg;return x.jsxs(N,_({},D,{children:[u,x.jsx(A5,{sectionListRef:M,elements:o,contentEditable:g,tabIndex:S,className:I.sectionsContainer,onFocus:O,onBlur:j.onBlur,onInput:C,onPaste:h,onKeyDown:m,slots:{root:L,section:N5,sectionContent:F5,sectionSeparator:B5},slotProps:{root:{ownerState:T},sectionContent:{className:ga.sectionContent},sectionSeparator:({position:z})=>({className:z==="before"?ga.sectionBefore:ga.sectionAfter})}}),c,d?d(_({},j)):null,x.jsx(z5,_({name:v,className:I.input,value:a,onChange:s,id:l,"aria-hidden":"true",tabIndex:-1,readOnly:b,required:j.required,disabled:j.disabled},E,{ref:R}))]}))});function V5(e){return ge("MuiPickersOutlinedInput",e)}const dr=_({},ga,me("MuiPickersOutlinedInput",["root","notchedOutline","input"])),W5=["children","className","label","notched","shrink"],U5=G("fieldset",{name:"MuiPickersOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%",borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),F0=G("span")(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit"})),H5=G("legend")(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:{withLabel:!1},style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:{withLabel:!0},style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:{withLabel:!0,notched:!0},style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]}));function Y5(e){const{className:t,label:n}=e,r=Ae(e,W5),o=n!=null&&n!=="",i=_({},e,{withLabel:o});return x.jsx(U5,_({"aria-hidden":!0,className:t},r,{ownerState:i,children:x.jsx(H5,{ownerState:i,children:o?x.jsx(F0,{children:n}):x.jsx(F0,{className:"notranslate",children:"​"})})}))}const K5=["label","autoFocus","ownerState","notched"],G5=G(Zd,{name:"MuiPickersOutlinedInput",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{padding:"0 14px",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${dr.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${dr.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${dr.focused} .${dr.notchedOutline}`]:{borderStyle:"solid",borderWidth:2},[`&.${dr.disabled}`]:{[`& .${dr.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled},"*":{color:(e.vars||e).palette.action.disabled}},[`&.${dr.error} .${dr.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},variants:Object.keys((e.vars??e).palette).filter(n=>{var r;return((r=(e.vars??e).palette[n])==null?void 0:r.main)??!1}).map(n=>({props:{color:n},style:{[`&.${dr.focused}:not(.${dr.error}) .${dr.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}}))}}),Q5=G(hg,{name:"MuiPickersOutlinedInput",slot:"SectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})({padding:"16.5px 0",variants:[{props:{size:"small"},style:{padding:"8.5px 0"}}]}),X5=e=>{const{classes:t}=e,r=ye({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},V5,t);return _({},t,r)},z1=p.forwardRef(function(t,n){const r=gt({props:t,name:"MuiPickersOutlinedInput"}),{label:o,ownerState:i,notched:a}=r,s=Ae(r,K5),l=kr(),c=_({},r,i,l,{color:(l==null?void 0:l.color)||"primary"}),u=X5(c);return x.jsx(mg,_({slots:{root:G5,input:Q5},renderSuffix:d=>x.jsx(Y5,{shrink:!!(a||d.adornedStart||d.focused||d.filled),notched:!!(a||d.adornedStart||d.focused||d.filled),className:u.notchedOutline,label:o!=null&&o!==""&&(l!=null&&l.required)?x.jsxs(p.Fragment,{children:[o," ","*"]}):o,ownerState:c})},s,{label:o,classes:u,ref:n}))});z1.muiName="Input";function q5(e){return ge("MuiPickersFilledInput",e)}const Qo=_({},ga,me("MuiPickersFilledInput",["root","underline","input"])),Z5=["label","autoFocus","disableUnderline","ownerState"],J5=G(Zd,{name:"MuiPickersFilledInput",slot:"Root",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Wc(e)&&e!=="disableUnderline"})(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:o,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${Qo.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${Qo.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:i},variants:[...Object.keys((e.vars??e).palette).filter(a=>(e.vars??e).palette[a].main).map(a=>{var s;return{props:{color:a,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(s=(e.vars||e).palette[a])==null?void 0:s.main}`}}}}),{props:{disableUnderline:!1},style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Qo.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Qo.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Qo.disabled}, .${Qo.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Qo.disabled}:before`]:{borderBottomStyle:"dotted"}}},{props:({startAdornment:a})=>!!a,style:{paddingLeft:12}},{props:({endAdornment:a})=>!!a,style:{paddingRight:12}}]}}),eB=G(hg,{name:"MuiPickersFilledInput",slot:"sectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({startAdornment:e})=>!!e,style:{paddingLeft:0}},{props:({endAdornment:e})=>!!e,style:{paddingRight:0}},{props:{hiddenLabel:!0},style:{paddingTop:16,paddingBottom:17}},{props:{hiddenLabel:!0,size:"small"},style:{paddingTop:8,paddingBottom:9}}]}),tB=e=>{const{classes:t,disableUnderline:n}=e,o=ye({root:["root",!n&&"underline"],input:["input"]},q5,t);return _({},t,o)},_1=p.forwardRef(function(t,n){const r=gt({props:t,name:"MuiPickersFilledInput"}),{label:o,disableUnderline:i=!1,ownerState:a}=r,s=Ae(r,Z5),l=kr(),c=_({},r,a,l,{color:(l==null?void 0:l.color)||"primary"}),u=tB(c);return x.jsx(mg,_({slots:{root:J5,input:eB},slotProps:{root:{disableUnderline:i}}},s,{label:o,classes:u,ref:n}))});_1.muiName="Input";function nB(e){return ge("MuiPickersFilledInput",e)}const bs=_({},ga,me("MuiPickersInput",["root","input"])),rB=["label","autoFocus","disableUnderline","ownerState"],oB=G(Zd,{name:"MuiPickersInput",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),{"label + &":{marginTop:16},variants:[...Object.keys((e.vars??e).palette).filter(r=>(e.vars??e).palette[r].main).map(r=>({props:{color:r},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}})),{props:{disableUnderline:!1},style:{"&::after":{background:"red",left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${bs.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${bs.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${bs.disabled}, .${bs.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${bs.disabled}:before`]:{borderBottomStyle:"dotted"}}}]}}),iB=e=>{const{classes:t,disableUnderline:n}=e,o=ye({root:["root",!n&&"underline"],input:["input"]},nB,t);return _({},t,o)},V1=p.forwardRef(function(t,n){const r=gt({props:t,name:"MuiPickersInput"}),{label:o,disableUnderline:i=!1,ownerState:a}=r,s=Ae(r,rB),l=kr(),c=_({},r,a,l,{disableUnderline:i,color:(l==null?void 0:l.color)||"primary"}),u=iB(c);return x.jsx(mg,_({slots:{root:oB}},s,{label:o,classes:u,ref:n}))});V1.muiName="Input";const aB=["onFocus","onBlur","className","color","disabled","error","variant","required","InputProps","inputProps","inputRef","sectionListRef","elements","areAllSectionsEmpty","onClick","onKeyDown","onKeyUp","onPaste","onInput","endAdornment","startAdornment","tabIndex","contentEditable","focused","value","onChange","fullWidth","id","name","helperText","FormHelperTextProps","label","InputLabelProps"],sB={standard:V1,filled:_1,outlined:z1},lB=G(to,{name:"MuiPickersTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),cB=e=>{const{focused:t,disabled:n,classes:r,required:o}=e;return ye({root:["root",t&&!n&&"focused",n&&"disabled",o&&"required"]},R5,r)},uB=p.forwardRef(function(t,n){const r=gt({props:t,name:"MuiPickersTextField"}),{onFocus:o,onBlur:i,className:a,color:s="primary",disabled:l=!1,error:c=!1,variant:u="outlined",required:d=!1,InputProps:f,inputProps:y,inputRef:g,sectionListRef:S,elements:C,areAllSectionsEmpty:h,onClick:m,onKeyDown:v,onKeyUp:b,onPaste:E,onInput:k,endAdornment:M,startAdornment:P,tabIndex:$,contentEditable:w,focused:R,value:A,onChange:j,fullWidth:O,id:T,name:I,helperText:N,FormHelperTextProps:D,label:L,InputLabelProps:z}=r,V=Ae(r,aB),Y=p.useRef(null),se=Ye(n,Y),X=Wo(T),H=N&&X?`${X}-helper-text`:void 0,le=L&&X?`${X}-label`:void 0,ae=_({},r,{color:s,disabled:l,error:c,focused:R,required:d,variant:u}),te=cB(ae),Z=sB[u];return x.jsxs(lB,_({className:pe(te.root,a),ref:se,focused:R,onFocus:o,onBlur:i,disabled:l,variant:u,error:c,color:s,fullWidth:O,required:d,ownerState:ae},V,{children:[x.jsx(Fd,_({htmlFor:X,id:le},z,{children:L})),x.jsx(Z,_({elements:C,areAllSectionsEmpty:h,onClick:m,onKeyDown:v,onKeyUp:b,onInput:k,onPaste:E,endAdornment:M,startAdornment:P,tabIndex:$,contentEditable:w,value:A,onChange:j,id:X,fullWidth:O,inputProps:y,inputRef:g,sectionListRef:S,label:L,name:I,role:"group","aria-labelledby":le},f)),N&&x.jsx(Cw,_({id:H},D,{children:N}))]}))}),dB=["enableAccessibleFieldDOMStructure"],fB=["InputProps","readOnly"],pB=["onPaste","onKeyDown","inputMode","readOnly","InputProps","inputProps","inputRef"],hB=e=>{let{enableAccessibleFieldDOMStructure:t}=e,n=Ae(e,dB);if(t){const{InputProps:d,readOnly:f}=n,y=Ae(n,fB);return _({},y,{InputProps:_({},d??{},{readOnly:f})})}const{onPaste:r,onKeyDown:o,inputMode:i,readOnly:a,InputProps:s,inputProps:l,inputRef:c}=n,u=Ae(n,pB);return _({},u,{InputProps:_({},s??{},{readOnly:a}),inputProps:_({},l??{},{inputMode:i,onPaste:r,onKeyDown:o,ref:c})})},mB=["slots","slotProps","InputProps","inputProps"],W1=p.forwardRef(function(t,n){const r=gt({props:t,name:"MuiDateField"}),{slots:o,slotProps:i,InputProps:a,inputProps:s}=r,l=Ae(r,mB),c=r,u=(o==null?void 0:o.textField)??(t.enableAccessibleFieldDOMStructure?uB:Cn),d=Qe({elementType:u,externalSlotProps:i==null?void 0:i.textField,externalForwardedProps:l,additionalProps:{ref:n},ownerState:c});d.inputProps=_({},s,d.inputProps),d.InputProps=_({},a,d.InputProps);const f=M5(d),y=hB(f),g=w5(_({},y,{slots:o,slotProps:i}));return x.jsx(u,_({},g))}),U1=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:i,disablePast:a,timezone:s})=>{const l=Ii();return p.useCallback(c=>Kl({adapter:l,value:c,timezone:s,props:{shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:i,disablePast:a}})!==null,[l,e,t,n,r,o,i,a,s])},gB=(e,t,n)=>(r,o)=>{switch(o.type){case"changeMonth":return _({},r,{slideDirection:o.direction,currentMonth:o.newMonth,isMonthSwitchingAnimating:!e});case"changeMonthTimezone":{const i=o.newTimezone;if(n.getTimezone(r.currentMonth)===i)return r;let a=n.setTimezone(r.currentMonth,i);return n.getMonth(a)!==n.getMonth(r.currentMonth)&&(a=n.setMonth(a,n.getMonth(r.currentMonth))),_({},r,{currentMonth:a})}case"finishMonthSwitchingAnimation":return _({},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 _({},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")}},yB=e=>{const{value:t,referenceDate:n,disableFuture:r,disablePast:o,disableSwitchToMonthOnDayFocus:i=!1,maxDate:a,minDate:s,onMonthChange:l,reduceAnimations:c,shouldDisableDate:u,timezone:d}=e,f=yt(),y=p.useRef(gB(!!c,i,f)).current,g=p.useMemo(()=>Hr.getInitialReferenceValue({value:t,utils:f,timezone:d,props:e,referenceDate:n,granularity:Ar.day}),[n,d]),[S,C]=p.useReducer(y,{isMonthSwitchingAnimating:!1,focusedDay:g,currentMonth:f.startOfMonth(g),slideDirection:"left"});p.useEffect(()=>{C({type:"changeMonthTimezone",newTimezone:f.getTimezone(g)})},[g,f]);const h=p.useCallback(k=>{C(_({type:"changeMonth"},k)),l&&l(k.newMonth)},[l]),m=p.useCallback(k=>{const M=k;f.isSameMonth(M,S.currentMonth)||h({newMonth:f.startOfMonth(M),direction:f.isAfterDay(M,S.currentMonth)?"left":"right"})},[S.currentMonth,h,f]),v=U1({shouldDisableDate:u,minDate:s,maxDate:a,disableFuture:r,disablePast:o,timezone:d}),b=p.useCallback(()=>{C({type:"finishMonthSwitchingAnimation"})},[]),E=Se((k,M)=>{v(k)||C({type:"changeFocusedDay",focusedDay:k,withoutMonthSwitchingAnimation:M})});return{referenceDate:g,calendarState:S,changeMonth:m,changeFocusedDay:E,isDateDisabled:v,onMonthSwitchingAnimationEnd:b,handleChangeMonth:h}},vB=e=>ge("MuiPickersFadeTransitionGroup",e);me("MuiPickersFadeTransitionGroup",["root"]);const xB=e=>{const{classes:t}=e;return ye({root:["root"]},vB,t)},SB=G(Nl,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function H1(e){const t=gt({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:r,reduceAnimations:o,transKey:i}=t,a=xB(t),s=Cr();return o?n:x.jsx(SB,{className:pe(a.root,r),children:x.jsx(Ka,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:s.transitions.duration.enteringScreen,enter:s.transitions.duration.enteringScreen,exit:0},children:n},i)})}const bB=e=>ge("MuiPickersSlideTransition",e),Yn=me("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),wB=["children","className","reduceAnimations","slideDirection","transKey","classes"],CB=e=>{const{classes:t,slideDirection:n}=e,r={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return ye(r,bB,t)},kB=G(Nl,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${Yn["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${Yn["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${Yn.slideEnterActive}`]:t.slideEnterActive},{[`.${Yn.slideExit}`]:t.slideExit},{[`.${Yn["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${Yn["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},[`& .${Yn["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${Yn["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${Yn.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${Yn.slideExit}`]:{transform:"translate(0%)"},[`& .${Yn["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${Yn["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function EB(e){const t=gt({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:r,reduceAnimations:o,transKey:i}=t,a=Ae(t,wB),s=CB(t),l=Cr();if(o)return x.jsx("div",{className:pe(s.root,r),children:n});const c={exit:s.exit,enterActive:s.enterActive,enter:s.enter,exitActive:s.exitActive};return x.jsx(kB,{className:pe(s.root,r),childFactory:u=>p.cloneElement(u,{classNames:c}),role:"presentation",children:x.jsx(Dm,_({mountOnEnter:!0,unmountOnExit:!0,timeout:l.transitions.duration.complex,classNames:c},a,{children:n}),i)})}const PB=e=>ge("MuiDayCalendar",e);me("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const MB=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],RB=["ownerState"],DB=e=>{const{classes:t}=e;return ye({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},PB,t)},Y1=(Pl+Qd*2)*6,TB=G("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),IB=G("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),OB=G(Fe,{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})),$B=G(Fe,{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})),AB=G(Fe,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(e,t)=>t.weekNumber})(({theme:e})=>_({},e.typography.caption,{width:Pl,height:Pl,padding:0,margin:`0 ${Qd}px`,color:e.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),LB=G("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:Y1}),jB=G(EB,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:Y1}),NB=G("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),FB=G("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${Qd}px 0`,display:"flex",justifyContent:"center"});function BB(e){let{parentProps:t,day:n,focusableDay:r,selectedDays:o,isDateDisabled:i,currentMonthNumber:a,isViewFocused:s}=e,l=Ae(e,MB);const{disabled:c,disableHighlightToday:u,isMonthSwitchingAnimating:d,showDaysOutsideCurrentMonth:f,slots:y,slotProps:g,timezone:S}=t,C=yt(),h=Gd(S),m=r!==null&&C.isSameDay(n,r),v=o.some(A=>C.isSameDay(A,n)),b=C.isSameDay(n,h),E=(y==null?void 0:y.day)??r5,k=Qe({elementType:E,externalSlotProps:g==null?void 0:g.day,additionalProps:_({disableHighlightToday:u,showDaysOutsideCurrentMonth:f,role:"gridcell",isAnimating:d,"data-timestamp":C.toJsDate(n).valueOf()},l),ownerState:_({},t,{day:n,selected:v})}),M=Ae(k,RB),P=p.useMemo(()=>c||i(n),[c,i,n]),$=p.useMemo(()=>C.getMonth(n)!==a,[C,n,a]),w=p.useMemo(()=>{const A=C.startOfMonth(C.setMonth(n,a));return f?C.isSameDay(n,C.startOfWeek(A)):C.isSameDay(n,A)},[a,n,f,C]),R=p.useMemo(()=>{const A=C.endOfMonth(C.setMonth(n,a));return f?C.isSameDay(n,C.endOfWeek(A)):C.isSameDay(n,A)},[a,n,f,C]);return x.jsx(E,_({},M,{day:n,disabled:P,autoFocus:s&&m,today:b,outsideCurrentMonth:$,isFirstVisibleCell:w,isLastVisibleCell:R,selected:v,tabIndex:m?0:-1,"aria-selected":v,"aria-current":b?"date":void 0}))}function zB(e){const t=gt({props:e,name:"MuiDayCalendar"}),n=yt(),{onFocusedDayChange:r,className:o,currentMonth:i,selectedDays:a,focusedDay:s,loading:l,onSelectedDaysChange:c,onMonthSwitchingAnimationEnd:u,readOnly:d,reduceAnimations:f,renderLoading:y=()=>x.jsx("span",{children:"..."}),slideDirection:g,TransitionProps:S,disablePast:C,disableFuture:h,minDate:m,maxDate:v,shouldDisableDate:b,shouldDisableMonth:E,shouldDisableYear:k,dayOfWeekFormatter:M=ne=>n.format(ne,"weekdayShort").charAt(0).toUpperCase(),hasFocus:P,onFocusedViewChange:$,gridLabelId:w,displayWeekNumber:R,fixedWeekNumber:A,autoFocus:j,timezone:O}=t,T=Gd(O),I=DB(t),N=lr(),D=U1({shouldDisableDate:b,shouldDisableMonth:E,shouldDisableYear:k,minDate:m,maxDate:v,disablePast:C,disableFuture:h,timezone:O}),L=mo(),[z,V]=co({name:"DayCalendar",state:"hasFocus",controlled:P,default:j??!1}),[Y,se]=p.useState(()=>s||T),X=Se(ne=>{d||c(ne)}),H=ne=>{D(ne)||(r(ne),se(ne),$==null||$(!0),V(!0))},le=Se((ne,ue)=>{switch(ne.key){case"ArrowUp":H(n.addDays(ue,-7)),ne.preventDefault();break;case"ArrowDown":H(n.addDays(ue,7)),ne.preventDefault();break;case"ArrowLeft":{const ee=n.addDays(ue,N?1:-1),fe=n.addMonths(ue,N?1:-1),ve=Ks({utils:n,date:ee,minDate:N?ee:n.startOfMonth(fe),maxDate:N?n.endOfMonth(fe):ee,isDateDisabled:D,timezone:O});H(ve||ee),ne.preventDefault();break}case"ArrowRight":{const ee=n.addDays(ue,N?-1:1),fe=n.addMonths(ue,N?-1:1),ve=Ks({utils:n,date:ee,minDate:N?n.startOfMonth(fe):ee,maxDate:N?ee:n.endOfMonth(fe),isDateDisabled:D,timezone:O});H(ve||ee),ne.preventDefault();break}case"Home":H(n.startOfWeek(ue)),ne.preventDefault();break;case"End":H(n.endOfWeek(ue)),ne.preventDefault();break;case"PageUp":H(n.addMonths(ue,1)),ne.preventDefault();break;case"PageDown":H(n.addMonths(ue,-1)),ne.preventDefault();break}}),ae=Se((ne,ue)=>H(ue)),te=Se((ne,ue)=>{z&&n.isSameDay(Y,ue)&&($==null||$(!1))}),Z=n.getMonth(i),re=n.getYear(i),ie=p.useMemo(()=>a.filter(ne=>!!ne).map(ne=>n.startOfDay(ne)),[n,a]),W=`${re}-${Z}`,F=p.useMemo(()=>p.createRef(),[W]),K=p.useMemo(()=>{const ne=n.startOfMonth(i),ue=n.endOfMonth(i);return D(Y)||n.isAfterDay(Y,ue)||n.isBeforeDay(Y,ne)?Ks({utils:n,date:Y,minDate:ne,maxDate:ue,disablePast:C,disableFuture:h,isDateDisabled:D,timezone:O}):Y},[i,h,C,Y,D,n,O]),Q=p.useMemo(()=>{const ne=n.getWeekArray(i);let ue=n.addMonths(i,1);for(;A&&ne.length{ne.lengthx.jsx(OB,{variant:"caption",role:"columnheader","aria-label":n.format(ne,"weekday"),className:I.weekDayLabel,children:M(ne)},ue.toString()))]}),l?x.jsx(LB,{className:I.loadingContainer,children:y()}):x.jsx(jB,_({transKey:W,onExited:u,reduceAnimations:f,slideDirection:g,className:pe(o,I.slideTransition)},S,{nodeRef:F,children:x.jsx(NB,{ref:F,role:"rowgroup",className:I.monthContainer,children:Q.map((ne,ue)=>x.jsxs(FB,{role:"row",className:I.weekContainer,"aria-rowindex":ue+1,children:[R&&x.jsx(AB,{className:I.weekNumber,role:"rowheader","aria-label":L.calendarWeekNumberAriaLabelText(n.getWeekNumber(ne[0])),children:L.calendarWeekNumberText(n.getWeekNumber(ne[0]))}),ne.map((ee,fe)=>x.jsx(BB,{parentProps:t,day:ee,selectedDays:ie,focusableDay:K,onKeyDown:le,onFocus:ae,onBlur:te,onDaySelect:X,isDateDisabled:D,currentMonthNumber:Z,isViewFocused:z,"aria-colindex":fe+1},ee.toString()))]},`week-${ne[0]}`))})}))]})}function _B(e){return ge("MuiPickersMonth",e)}const Pc=me("MuiPickersMonth",["root","monthButton","disabled","selected"]),VB=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow","slots","slotProps"],WB=e=>{const{disabled:t,selected:n,classes:r}=e;return ye({root:["root"],monthButton:["monthButton",t&&"disabled",n&&"selected"]},_B,r)},UB=G("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%"}}]}),HB=G("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,t)=>[t.monthButton,{[`&.${Pc.disabled}`]:t.disabled},{[`&.${Pc.selected}`]:t.selected}]})(({theme:e})=>_({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})`:ze(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:ze(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${Pc.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${Pc.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),YB=p.memo(function(t){const n=gt({props:t,name:"MuiPickersMonth"}),{autoFocus:r,className:o,children:i,disabled:a,selected:s,value:l,tabIndex:c,onClick:u,onKeyDown:d,onFocus:f,onBlur:y,"aria-current":g,"aria-label":S,slots:C,slotProps:h}=n,m=Ae(n,VB),v=p.useRef(null),b=WB(n);Ut(()=>{var M;r&&((M=v.current)==null||M.focus())},[r]);const E=(C==null?void 0:C.monthButton)??HB,k=Qe({elementType:E,externalSlotProps:h==null?void 0:h.monthButton,additionalProps:{children:i,disabled:a,tabIndex:c,ref:v,type:"button",role:"radio","aria-current":g,"aria-checked":s,"aria-label":S,onClick:M=>u(M,l),onKeyDown:M=>d(M,l),onFocus:M=>f(M,l),onBlur:M=>y(M,l)},ownerState:n,className:b.monthButton});return x.jsx(UB,_({className:pe(b.root,o),ownerState:n},m,{children:x.jsx(E,_({},k))}))});function KB(e){return ge("MuiMonthCalendar",e)}me("MuiMonthCalendar",["root"]);const GB=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId","slots","slotProps"],QB=e=>{const{classes:t}=e;return ye({root:["root"]},KB,t)};function XB(e,t){const n=yt(),r=Yl(),o=gt({props:e,name:t});return _({disableFuture:!1,disablePast:!1},o,{minDate:ar(n,o.minDate,r.minDate),maxDate:ar(n,o.maxDate,r.maxDate)})}const qB=G("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:Xd,boxSizing:"border-box"}),ZB=p.forwardRef(function(t,n){const r=XB(t,"MuiMonthCalendar"),{className:o,value:i,defaultValue:a,referenceDate:s,disabled:l,disableFuture:c,disablePast:u,maxDate:d,minDate:f,onChange:y,shouldDisableMonth:g,readOnly:S,autoFocus:C=!1,onMonthFocus:h,hasFocus:m,onFocusedViewChange:v,monthsPerRow:b=3,timezone:E,gridLabelId:k,slots:M,slotProps:P}=r,$=Ae(r,GB),{value:w,handleValueChange:R,timezone:A}=dg({name:"MonthCalendar",timezone:E,value:i,defaultValue:a,referenceDate:s,onChange:y,valueManager:Hr}),j=Gd(A),O=lr(),T=yt(),I=p.useMemo(()=>Hr.getInitialReferenceValue({value:w,utils:T,props:r,timezone:A,referenceDate:s,granularity:Ar.month}),[]),N=r,D=QB(N),L=p.useMemo(()=>T.getMonth(j),[T,j]),z=p.useMemo(()=>w!=null?T.getMonth(w):null,[w,T]),[V,Y]=p.useState(()=>z||T.getMonth(I)),[se,X]=co({name:"MonthCalendar",state:"hasFocus",controlled:m,default:C??!1}),H=Se(W=>{X(W),v&&v(W)}),le=p.useCallback(W=>{const F=T.startOfMonth(u&&T.isAfter(j,f)?j:f),K=T.startOfMonth(c&&T.isBefore(j,d)?j:d),Q=T.startOfMonth(W);return T.isBefore(Q,F)||T.isAfter(Q,K)?!0:g?g(Q):!1},[c,u,d,f,j,g,T]),ae=Se((W,F)=>{if(S)return;const K=T.setMonth(w??I,F);R(K)}),te=Se(W=>{le(T.setMonth(w??I,W))||(Y(W),H(!0),h&&h(W))});p.useEffect(()=>{Y(W=>z!==null&&W!==z?z:W)},[z]);const Z=Se((W,F)=>{switch(W.key){case"ArrowUp":te((12+F-3)%12),W.preventDefault();break;case"ArrowDown":te((12+F+3)%12),W.preventDefault();break;case"ArrowLeft":te((12+F+(O?1:-1))%12),W.preventDefault();break;case"ArrowRight":te((12+F+(O?-1:1))%12),W.preventDefault();break}}),re=Se((W,F)=>{te(F)}),ie=Se((W,F)=>{V===F&&H(!1)});return x.jsx(qB,_({ref:n,className:pe(D.root,o),ownerState:N,role:"radiogroup","aria-labelledby":k},$,{children:lg(T,w??I).map(W=>{const F=T.getMonth(W),K=T.format(W,"monthShort"),Q=T.format(W,"month"),ne=F===z,ue=l||le(W);return x.jsx(YB,{selected:ne,value:F,onClick:ae,onKeyDown:Z,autoFocus:se&&F===V,disabled:ue,tabIndex:F===V&&!ue?0:-1,onFocus:re,onBlur:ie,"aria-current":L===F?"date":void 0,"aria-label":Q,monthsPerRow:b,slots:M,slotProps:P,children:K},K)})}))});function JB(e){return ge("MuiPickersYear",e)}const Mc=me("MuiPickersYear",["root","yearButton","selected","disabled"]),e4=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow","slots","slotProps"],t4=e=>{const{disabled:t,selected:n,classes:r}=e;return ye({root:["root"],yearButton:["yearButton",t&&"disabled",n&&"selected"]},JB,r)},n4=G("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%"}}]}),r4=G("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,t)=>[t.yearButton,{[`&.${Mc.disabled}`]:t.disabled},{[`&.${Mc.selected}`]:t.selected}]})(({theme:e})=>_({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})`:ze(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:ze(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${Mc.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${Mc.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),o4=p.memo(function(t){const n=gt({props:t,name:"MuiPickersYear"}),{autoFocus:r,className:o,children:i,disabled:a,selected:s,value:l,tabIndex:c,onClick:u,onKeyDown:d,onFocus:f,onBlur:y,"aria-current":g,slots:S,slotProps:C}=n,h=Ae(n,e4),m=p.useRef(null),v=t4(n);Ut(()=>{var k;r&&((k=m.current)==null||k.focus())},[r]);const b=(S==null?void 0:S.yearButton)??r4,E=Qe({elementType:b,externalSlotProps:C==null?void 0:C.yearButton,additionalProps:{children:i,disabled:a,tabIndex:c,ref:m,type:"button",role:"radio","aria-current":g,"aria-checked":s,onClick:k=>u(k,l),onKeyDown:k=>d(k,l),onFocus:k=>f(k,l),onBlur:k=>y(k,l)},ownerState:n,className:v.yearButton});return x.jsx(n4,_({className:pe(v.root,o),ownerState:n},h,{children:x.jsx(b,_({},E))}))});function i4(e){return ge("MuiYearCalendar",e)}me("MuiYearCalendar",["root"]);const a4=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsOrder","yearsPerRow","timezone","gridLabelId","slots","slotProps"],s4=e=>{const{classes:t}=e;return ye({root:["root"]},i4,t)};function l4(e,t){const n=yt(),r=Yl(),o=gt({props:e,name:t});return _({disablePast:!1,disableFuture:!1},o,{yearsPerRow:o.yearsPerRow??3,minDate:ar(n,o.minDate,r.minDate),maxDate:ar(n,o.maxDate,r.maxDate)})}const c4=G("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:Xd,maxHeight:EF,boxSizing:"border-box",position:"relative"}),u4=p.forwardRef(function(t,n){const r=l4(t,"MuiYearCalendar"),{autoFocus:o,className:i,value:a,defaultValue:s,referenceDate:l,disabled:c,disableFuture:u,disablePast:d,maxDate:f,minDate:y,onChange:g,readOnly:S,shouldDisableYear:C,onYearFocus:h,hasFocus:m,onFocusedViewChange:v,yearsOrder:b="asc",yearsPerRow:E,timezone:k,gridLabelId:M,slots:P,slotProps:$}=r,w=Ae(r,a4),{value:R,handleValueChange:A,timezone:j}=dg({name:"YearCalendar",timezone:k,value:a,defaultValue:s,referenceDate:l,onChange:g,valueManager:Hr}),O=Gd(j),T=lr(),I=yt(),N=p.useMemo(()=>Hr.getInitialReferenceValue({value:R,utils:I,props:r,timezone:j,referenceDate:l,granularity:Ar.year}),[]),D=r,L=s4(D),z=p.useMemo(()=>I.getYear(O),[I,O]),V=p.useMemo(()=>R!=null?I.getYear(R):null,[R,I]),[Y,se]=p.useState(()=>V||I.getYear(N)),[X,H]=co({name:"YearCalendar",state:"hasFocus",controlled:m,default:o??!1}),le=Se(ee=>{H(ee),v&&v(ee)}),ae=p.useCallback(ee=>{if(d&&I.isBeforeYear(ee,O)||u&&I.isAfterYear(ee,O)||y&&I.isBeforeYear(ee,y)||f&&I.isAfterYear(ee,f))return!0;if(!C)return!1;const fe=I.startOfYear(ee);return C(fe)},[u,d,f,y,O,C,I]),te=Se((ee,fe)=>{if(S)return;const ve=I.setYear(R??N,fe);A(ve)}),Z=Se(ee=>{ae(I.setYear(R??N,ee))||(se(ee),le(!0),h==null||h(ee))});p.useEffect(()=>{se(ee=>V!==null&&ee!==V?V:ee)},[V]);const re=b!=="desc"?E*1:E*-1,ie=T&&b==="asc"||!T&&b==="desc"?-1:1,W=Se((ee,fe)=>{switch(ee.key){case"ArrowUp":Z(fe-re),ee.preventDefault();break;case"ArrowDown":Z(fe+re),ee.preventDefault();break;case"ArrowLeft":Z(fe-ie),ee.preventDefault();break;case"ArrowRight":Z(fe+ie),ee.preventDefault();break}}),F=Se((ee,fe)=>{Z(fe)}),K=Se((ee,fe)=>{Y===fe&&le(!1)}),Q=p.useRef(null),ne=Ye(n,Q);p.useEffect(()=>{if(o||Q.current===null)return;const ee=Q.current.querySelector('[tabindex="0"]');if(!ee)return;const fe=ee.offsetHeight,ve=ee.offsetTop,Le=Q.current.clientHeight,xe=Q.current.scrollTop,tt=ve+fe;fe>Le||ve{const fe=I.getYear(ee),ve=fe===V,Le=c||ae(ee);return x.jsx(o4,{selected:ve,value:fe,onClick:te,onKeyDown:W,autoFocus:X&&fe===Y,disabled:Le,tabIndex:fe===Y&&!Le?0:-1,onFocus:F,onBlur:K,"aria-current":z===fe?"date":void 0,yearsPerRow:E,slots:P,slotProps:$,children:I.format(ee,"year")},I.format(ee,"year"))})}))}),d4=e=>ge("MuiPickersCalendarHeader",e),f4=me("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),p4=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone","format"],h4=["ownerState"],m4=e=>{const{classes:t}=e;return ye({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},d4,t)},g4=G("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}),y4=G("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>_({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),v4=G("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),x4=G(Wr,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})({marginRight:"auto",variants:[{props:{view:"year"},style:{[`.${f4.switchViewIcon}`]:{transform:"rotate(180deg)"}}}]}),S4=G(aF,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),b4=p.forwardRef(function(t,n){const r=mo(),o=yt(),i=gt({props:t,name:"MuiPickersCalendarHeader"}),{slots:a,slotProps:s,currentMonth:l,disabled:c,disableFuture:u,disablePast:d,maxDate:f,minDate:y,onMonthChange:g,onViewChange:S,view:C,reduceAnimations:h,views:m,labelId:v,className:b,timezone:E,format:k=`${o.formats.month} ${o.formats.year}`}=i,M=Ae(i,p4),P=i,$=m4(i),w=(a==null?void 0:a.switchViewButton)??x4,R=Qe({elementType:w,externalSlotProps:s==null?void 0:s.switchViewButton,additionalProps:{size:"small","aria-label":r.calendarViewSwitchingButtonAriaLabel(C)},ownerState:P,className:$.switchViewButton}),A=(a==null?void 0:a.switchViewIcon)??S4,j=Qe({elementType:A,externalSlotProps:s==null?void 0:s.switchViewIcon,ownerState:P,className:$.switchViewIcon}),O=Ae(j,h4),T=()=>g(o.addMonths(l,1),"left"),I=()=>g(o.addMonths(l,-1),"right"),N=CF(l,{disableFuture:u,maxDate:f,timezone:E}),D=kF(l,{disablePast:d,minDate:y,timezone:E}),L=()=>{if(!(m.length===1||!S||c))if(m.length===2)S(m.find(V=>V!==C)||m[0]);else{const V=m.indexOf(C)!==0?0:1;S(m[V])}};if(m.length===1&&m[0]==="year")return null;const z=o.formatByString(l,k);return x.jsxs(g4,_({},M,{ownerState:P,className:pe($.root,b),ref:n,children:[x.jsxs(y4,{role:"presentation",onClick:L,ownerState:P,"aria-live":"polite",className:$.labelContainer,children:[x.jsx(H1,{reduceAnimations:h,transKey:z,children:x.jsx(v4,{id:v,ownerState:P,className:$.label,children:z})}),m.length>1&&!c&&x.jsx(w,_({},R,{children:x.jsx(A,_({},O))}))]}),x.jsx(Ka,{in:C==="day",children:x.jsx(vF,{slots:a,slotProps:s,onGoToPrevious:I,isPreviousDisabled:D,previousLabel:r.previousMonth,onGoToNext:T,isNextDisabled:N,nextLabel:r.nextMonth})})]}))}),w4="@media (prefers-reduced-motion: reduce)",ya=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),B0=ya&&ya[1]?parseInt(ya[1],10):null,z0=ya&&ya[2]?parseInt(ya[2],10):null,C4=B0&&B0<10||z0&&z0<13||!1,K1=()=>Nd(w4,{defaultMatches:!1})||C4,k4=e=>ge("MuiDateCalendar",e);me("MuiDateCalendar",["root","viewTransitionContainer"]);const E4=["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"],P4=e=>{const{classes:t}=e;return ye({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},k4,t)};function M4(e,t){const n=yt(),r=Yl(),o=K1(),i=gt({props:e,name:t});return _({},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??(()=>x.jsx("span",{children:"..."})),minDate:ar(n,i.minDate,r.minDate),maxDate:ar(n,i.maxDate,r.maxDate)})}const R4=G(PF,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",height:sg}),D4=G(H1,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),T4=p.forwardRef(function(t,n){const r=yt(),o=Wo(),i=M4(t,"MuiDateCalendar"),{autoFocus:a,onViewChange:s,value:l,defaultValue:c,referenceDate:u,disableFuture:d,disablePast:f,onChange:y,onYearChange:g,onMonthChange:S,reduceAnimations:C,shouldDisableDate:h,shouldDisableMonth:m,shouldDisableYear:v,view:b,views:E,openTo:k,className:M,disabled:P,readOnly:$,minDate:w,maxDate:R,disableHighlightToday:A,focusedView:j,onFocusedViewChange:O,showDaysOutsideCurrentMonth:T,fixedWeekNumber:I,dayOfWeekFormatter:N,slots:D,slotProps:L,loading:z,renderLoading:V,displayWeekNumber:Y,yearsOrder:se,yearsPerRow:X,monthsPerRow:H,timezone:le}=i,ae=Ae(i,E4),{value:te,handleValueChange:Z,timezone:re}=dg({name:"DateCalendar",timezone:le,value:l,defaultValue:c,referenceDate:u,onChange:y,valueManager:Hr}),{view:ie,setView:W,focusedView:F,setFocusedView:K,goToNextView:Q,setValueAndGoToNextView:ne}=w1({view:b,views:E,openTo:k,onChange:Z,onViewChange:s,autoFocus:a,focusedView:j,onFocusedViewChange:O}),{referenceDate:ue,calendarState:ee,changeFocusedDay:fe,changeMonth:ve,handleChangeMonth:Le,isDateDisabled:xe,onMonthSwitchingAnimationEnd:tt}=yB({value:te,referenceDate:u,reduceAnimations:C,onMonthChange:S,minDate:w,maxDate:R,shouldDisableDate:h,disablePast:f,disableFuture:d,timezone:re}),Pe=P&&te||w,_e=P&&te||R,ut=`${o}-grid-label`,je=F!==null,Oe=(D==null?void 0:D.calendarHeader)??b4,pt=Qe({elementType:Oe,externalSlotProps:L==null?void 0:L.calendarHeader,additionalProps:{views:E,view:ie,currentMonth:ee.currentMonth,onViewChange:W,onMonthChange:(nt,hn)=>Le({newMonth:nt,direction:hn}),minDate:Pe,maxDate:_e,disabled:P,disablePast:f,disableFuture:d,reduceAnimations:C,timezone:re,labelId:ut},ownerState:i}),At=Se(nt=>{const hn=r.startOfMonth(nt),Yr=r.endOfMonth(nt),Er=xe(nt)?Ks({utils:r,date:nt,minDate:r.isBefore(w,hn)?hn:w,maxDate:r.isAfter(R,Yr)?Yr:R,disablePast:f,disableFuture:d,isDateDisabled:xe,timezone:re}):nt;Er?(ne(Er,"finish"),S==null||S(hn)):(Q(),ve(hn)),fe(Er,!0)}),Ne=Se(nt=>{const hn=r.startOfYear(nt),Yr=r.endOfYear(nt),Er=xe(nt)?Ks({utils:r,date:nt,minDate:r.isBefore(w,hn)?hn:w,maxDate:r.isAfter(R,Yr)?Yr:R,disablePast:f,disableFuture:d,isDateDisabled:xe,timezone:re}):nt;Er?(ne(Er,"finish"),g==null||g(Er)):(Q(),ve(hn)),fe(Er,!0)}),st=Se(nt=>Z(nt&&ju(r,nt,te??ue),"finish",ie));p.useEffect(()=>{te!=null&&r.isValid(te)&&ve(te)},[te]);const Hn=i,go=P4(Hn),Me={disablePast:f,disableFuture:d,maxDate:R,minDate:w},qe={disableHighlightToday:A,readOnly:$,disabled:P,timezone:re,gridLabelId:ut,slots:D,slotProps:L},vt=p.useRef(ie);p.useEffect(()=>{vt.current!==ie&&(F===vt.current&&K(ie,!0),vt.current=ie)},[F,K,ie]);const En=p.useMemo(()=>[te],[te]);return x.jsxs(R4,_({ref:n,className:pe(go.root,M),ownerState:Hn},ae,{children:[x.jsx(Oe,_({},pt,{slots:D,slotProps:L})),x.jsx(D4,{reduceAnimations:C,className:go.viewTransitionContainer,transKey:ie,ownerState:Hn,children:x.jsxs("div",{children:[ie==="year"&&x.jsx(u4,_({},Me,qe,{value:te,onChange:Ne,shouldDisableYear:v,hasFocus:je,onFocusedViewChange:nt=>K("year",nt),yearsOrder:se,yearsPerRow:X,referenceDate:ue})),ie==="month"&&x.jsx(ZB,_({},Me,qe,{hasFocus:je,className:M,value:te,onChange:At,shouldDisableMonth:m,onFocusedViewChange:nt=>K("month",nt),monthsPerRow:H,referenceDate:ue})),ie==="day"&&x.jsx(zB,_({},ee,Me,qe,{onMonthSwitchingAnimationEnd:tt,onFocusedDayChange:fe,reduceAnimations:C,selectedDays:En,onSelectedDaysChange:st,shouldDisableDate:h,shouldDisableMonth:m,shouldDisableYear:v,hasFocus:je,onFocusedViewChange:nt=>K("day",nt),showDaysOutsideCurrentMonth:T,fixedWeekNumber:I,dayOfWeekFormatter:N,displayWeekNumber:Y,loading:z,renderLoading:V}))]})})]}))});function I4(e){return ge("MuiPickersToolbar",e)}me("MuiPickersToolbar",["root","content"]);const O4=["children","className","toolbarTitle","hidden","titleId","isLandscape","classes","landscapeDirection"],$4=e=>{const{classes:t}=e;return ye({root:["root"],content:["content"]},I4,t)},A4=G("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"}}]})),L4=G("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"}}]}),j4=p.forwardRef(function(t,n){const r=gt({props:t,name:"MuiPickersToolbar"}),{children:o,className:i,toolbarTitle:a,hidden:s,titleId:l}=r,c=Ae(r,O4),u=r,d=$4(u);return s?null:x.jsxs(A4,_({ref:n,className:pe(d.root,i),ownerState:u},c,{children:[x.jsx(Fe,{color:"text.secondary",variant:"overline",id:l,children:a}),x.jsx(L4,{className:d.content,ownerState:u,children:o})]}))});function N4(e){return ge("MuiDatePickerToolbar",e)}me("MuiDatePickerToolbar",["root","title"]);const F4=["value","isLandscape","onChange","toolbarFormat","toolbarPlaceholder","views","className","onViewChange","view"],B4=e=>{const{classes:t}=e;return ye({root:["root"],title:["title"]},N4,t)},z4=G(j4,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),_4=G(Fe,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})({variants:[{props:{isLandscape:!0},style:{margin:"auto 16px auto auto"}}]}),V4=p.forwardRef(function(t,n){const r=gt({props:t,name:"MuiDatePickerToolbar"}),{value:o,isLandscape:i,toolbarFormat:a,toolbarPlaceholder:s="––",views:l,className:c}=r,u=Ae(r,F4),d=yt(),f=mo(),y=B4(r),g=p.useMemo(()=>{if(!o)return s;const C=cg(d,{format:a,views:l},!0);return d.formatByString(o,C)},[o,a,s,d,l]),S=r;return x.jsx(z4,_({ref:n,toolbarTitle:f.datePickerToolbarTitle,isLandscape:i,className:pe(y.root,c)},u,{children:x.jsx(_4,{variant:"h4",align:i?"left":"center",ownerState:S,className:y.title,children:g})}))});function G1(e,t){const n=yt(),r=Yl(),o=gt({props:e,name:t}),i=p.useMemo(()=>{var a;return((a=o.localeText)==null?void 0:a.toolbarTitle)==null?o.localeText:_({},o.localeText,{datePickerToolbarTitle:o.localeText.toolbarTitle})},[o.localeText]);return _({},o,{localeText:i},xF({views:o.views,openTo:o.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{disableFuture:o.disableFuture??!1,disablePast:o.disablePast??!1,minDate:ar(n,o.minDate,r.minDate),maxDate:ar(n,o.maxDate,r.maxDate),slots:_({toolbar:V4},o.slots)})}function W4(e){return ge("MuiPickersPopper",e)}me("MuiPickersPopper",["root","paper"]);const U4=["PaperComponent","popperPlacement","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],H4=e=>{const{classes:t}=e;return ye({root:["root"],paper:["paper"]},W4,t)},Y4=G(sI,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),K4=G(br,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(e,t)=>t.paper})({outline:0,transformOrigin:"top center",variants:[{props:({placement:e})=>["top","top-start","top-end"].includes(e),style:{transformOrigin:"bottom center"}}]});function G4(e,t){return t.documentElement.clientWidth{if(!e)return;function l(){i.current=!0}return document.addEventListener("mousedown",l,!0),document.addEventListener("touchstart",l,!0),()=>{document.removeEventListener("mousedown",l,!0),document.removeEventListener("touchstart",l,!0),i.current=!1}},[e]);const a=Se(l=>{if(!i.current)return;const c=r.current;r.current=!1;const u=Wt(o.current);if(!o.current||"clientX"in l&&G4(l,u))return;if(n.current){n.current=!1;return}let d;l.composedPath?d=l.composedPath().indexOf(o.current)>-1:d=!u.documentElement.contains(l.target)||o.current.contains(l.target),!d&&!c&&t(l)}),s=()=>{r.current=!0};return p.useEffect(()=>{if(e){const l=Wt(o.current),c=()=>{n.current=!0};return l.addEventListener("touchstart",a),l.addEventListener("touchmove",c),()=>{l.removeEventListener("touchstart",a),l.removeEventListener("touchmove",c)}}},[e,a]),p.useEffect(()=>{if(e){const l=Wt(o.current);return l.addEventListener("click",a),()=>{l.removeEventListener("click",a),r.current=!1}}},[e,a]),[o,s,s]}const X4=p.forwardRef((e,t)=>{const{PaperComponent:n,popperPlacement:r,ownerState:o,children:i,paperSlotProps:a,paperClasses:s,onPaperClick:l,onPaperTouchStart:c}=e,u=Ae(e,U4),d=_({},o,{placement:r}),f=Qe({elementType:n,externalSlotProps:a,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:s,ownerState:d});return x.jsx(n,_({},u,f,{onClick:y=>{var g;l(y),(g=f.onClick)==null||g.call(f,y)},onTouchStart:y=>{var g;c(y),(g=f.onTouchStart)==null||g.call(f,y)},ownerState:d,children:i}))});function q4(e){const t=gt({props:e,name:"MuiPickersPopper"}),{anchorEl:n,children:r,containerRef:o=null,shouldRestoreFocus:i,onBlur:a,onDismiss:s,open:l,role:c,placement:u,slots:d,slotProps:f,reduceAnimations:y}=t;p.useEffect(()=>{function T(I){l&&I.key==="Escape"&&s()}return document.addEventListener("keydown",T),()=>{document.removeEventListener("keydown",T)}},[s,l]);const g=p.useRef(null);p.useEffect(()=>{c==="tooltip"||i&&!i()||(l?g.current=Dn(document):g.current&&g.current instanceof HTMLElement&&setTimeout(()=>{g.current instanceof HTMLElement&&g.current.focus()}))},[l,c,i]);const[S,C,h]=Q4(l,a??s),m=p.useRef(null),v=Ye(m,o),b=Ye(v,S),E=t,k=H4(E),M=K1(),P=y??M,$=T=>{T.key==="Escape"&&(T.stopPropagation(),s())},w=(d==null?void 0:d.desktopTransition)??P?Ka:bl,R=(d==null?void 0:d.desktopTrapFocus)??vw,A=(d==null?void 0:d.desktopPaper)??K4,j=(d==null?void 0:d.popper)??Y4,O=Qe({elementType:j,externalSlotProps:f==null?void 0:f.popper,additionalProps:{transition:!0,role:c,open:l,anchorEl:n,placement:u,onKeyDown:$},className:k.root,ownerState:t});return x.jsx(j,_({},O,{children:({TransitionProps:T,placement:I})=>x.jsx(R,_({open:l,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:c==="tooltip",isEnabled:()=>!0},f==null?void 0:f.desktopTrapFocus,{children:x.jsx(w,_({},T,f==null?void 0:f.desktopTransition,{children:x.jsx(X4,{PaperComponent:A,ownerState:E,popperPlacement:I,ref:b,onPaperClick:C,onPaperTouchStart:h,paperClasses:k.paper,paperSlotProps:f==null?void 0:f.desktopPaper,children:r})}))}))}))}const Z4=({open:e,onOpen:t,onClose:n})=>{const r=p.useRef(typeof e=="boolean").current,[o,i]=p.useState(!1);p.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 a=p.useCallback(s=>{r||i(s),s&&t&&t(),!s&&n&&n()},[r,t,n]);return{isOpen:o,setIsOpen:a}},J4=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},ez=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:o,closeOnSelect:i}=e,a=!o&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromAction"?a&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastCommittedValue):t.name==="setValueFromView"&&t.selectionState==="finish"&&i?a?!0:n(r.lastCommittedValue):t.name==="setValueFromShortcut"?t.changeImportance==="accept"&&n(r.lastCommittedValue):!1},tz=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},nz=({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:o})=>{const{onAccept:i,onChange:a,value:s,defaultValue:l,closeOnSelect:c=r==="desktop",timezone:u,referenceDate:d}=e,{current:f}=p.useRef(l),{current:y}=p.useRef(s!==void 0),[g,S]=p.useState(u),C=yt(),h=Ii(),{isOpen:m,setIsOpen:v}=Z4(e),{timezone:b,value:E,handleValueChange:k}=ug({timezone:u,value:s,defaultValue:f,referenceDate:d,onChange:a,valueManager:t}),[M,P]=p.useState(()=>{let Z;return E!==void 0?Z=E:f!==void 0?Z=f:Z=t.emptyValue,{draft:Z,lastPublishedValue:Z,lastCommittedValue:Z,lastControlledValue:s,hasBeenModifiedSinceMount:!1}}),$=t.getTimezone(C,M.draft);g!==u&&(S(u),u&&$&&u!==$&&P(Z=>_({},Z,{draft:t.setTimezone(C,u,Z.draft)})));const{getValidationErrorForNewValue:w}=A1({props:e,validator:o,timezone:b,value:M.draft,onError:e.onError}),R=Se(Z=>{const re={action:Z,dateState:M,hasChanged:ne=>!t.areValuesEqual(C,Z.value,ne),isControlled:y,closeOnSelect:c},ie=J4(re),W=ez(re),F=tz(re);P(ne=>_({},ne,{draft:Z.value,lastPublishedValue:ie?Z.value:ne.lastPublishedValue,lastCommittedValue:W?Z.value:ne.lastCommittedValue,hasBeenModifiedSinceMount:!0}));let K=null;const Q=()=>(K||(K={validationError:Z.name==="setValueFromField"?Z.context.validationError:w(Z.value)},Z.name==="setValueFromShortcut"&&(K.shortcut=Z.shortcut)),K);ie&&k(Z.value,Q()),W&&i&&i(Z.value,Q()),F&&v(!1)});if(M.lastControlledValue!==s){const Z=t.areValuesEqual(C,M.draft,E);P(re=>_({},re,{lastControlledValue:s},Z?{}:{lastCommittedValue:E,lastPublishedValue:E,draft:E,hasBeenModifiedSinceMount:!0}))}const A=Se(()=>{R({value:t.emptyValue,name:"setValueFromAction",pickerAction:"clear"})}),j=Se(()=>{R({value:M.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),O=Se(()=>{R({value:M.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),T=Se(()=>{R({value:M.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),I=Se(()=>{R({value:t.getTodayValue(C,b,n),name:"setValueFromAction",pickerAction:"today"})}),N=Se(Z=>{Z.preventDefault(),v(!0)}),D=Se(Z=>{Z==null||Z.preventDefault(),v(!1)}),L=Se((Z,re="partial")=>R({name:"setValueFromView",value:Z,selectionState:re})),z=Se((Z,re,ie)=>R({name:"setValueFromShortcut",value:Z,changeImportance:re,shortcut:ie})),V=Se((Z,re)=>R({name:"setValueFromField",value:Z,context:re})),Y={onClear:A,onAccept:j,onDismiss:O,onCancel:T,onSetToday:I,onOpen:N,onClose:D},se={value:M.draft,onChange:V},X=p.useMemo(()=>t.cleanValue(C,M.draft),[C,t,M.draft]),H={value:X,onChange:L,onClose:D,open:m},ae=_({},Y,{value:X,onChange:L,onSelectShortcut:z,isValid:Z=>{const re=o({adapter:h,value:Z,timezone:b,props:e});return!t.hasError(re)}}),te=p.useMemo(()=>({onOpen:N,onClose:D,open:m}),[m,D,N]);return{open:m,fieldProps:se,viewProps:H,layoutProps:ae,actions:Y,contextValue:te}},rz=["className","sx"],oz=({props:e,propsFromPickerValue:t,additionalViewProps:n,autoFocusView:r,rendererInterceptor:o,fieldRef:i})=>{const{onChange:a,open:s,onClose:l}=t,{view:c,views:u,openTo:d,onViewChange:f,viewRenderers:y,timezone:g}=e,S=Ae(e,rz),{view:C,setView:h,defaultView:m,focusedView:v,setFocusedView:b,setValueAndGoToNextView:E}=w1({view:c,views:u,openTo:d,onChange:a,onViewChange:f,autoFocus:r}),{hasUIView:k,viewModeLookup:M}=p.useMemo(()=>u.reduce((O,T)=>{let I;return y[T]!=null?I="UI":I="field",O.viewModeLookup[T]=I,I==="UI"&&(O.hasUIView=!0),O},{hasUIView:!1,viewModeLookup:{}}),[y,u]),P=p.useMemo(()=>u.reduce((O,T)=>y[T]!=null&&bF(T)?O+1:O,0),[y,u]),$=M[C],w=Se(()=>$==="UI"),[R,A]=p.useState($==="UI"?C:null);return R!==C&&M[C]==="UI"&&A(C),Ut(()=>{$==="field"&&s&&(l(),setTimeout(()=>{var O,T;(O=i==null?void 0:i.current)==null||O.setSelectedSections(C),(T=i==null?void 0:i.current)==null||T.focusField(C)}))},[C]),Ut(()=>{if(!s)return;let O=C;$==="field"&&R!=null&&(O=R),O!==m&&M[O]==="UI"&&M[m]==="UI"&&(O=m),O!==C&&h(O),b(O,!0)},[s]),{hasUIView:k,shouldRestoreFocus:w,layoutProps:{views:u,view:R,onViewChange:h},renderCurrentView:()=>{if(R==null)return null;const O=y[R];if(O==null)return null;const T=_({},S,n,t,{views:u,timezone:g,onChange:E,view:R,onViewChange:h,focusedView:v,onFocusedViewChange:b,showViewSwitcher:P>1,timeViewsCount:P});return o?o(y,R,T):O(T)}}};function _0(){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 iz=(e,t)=>{const[n,r]=p.useState(_0);return Ut(()=>{const i=()=>{r(_0())};return window.addEventListener("orientationchange",i),()=>{window.removeEventListener("orientationchange",i)}},[]),GF(e,["hours","minutes","seconds"])?!1:(t||n)==="landscape"},az=({props:e,propsFromPickerValue:t,propsFromPickerViews:n,wrapperVariant:r})=>{const{orientation:o}=e,i=iz(n.views,o),a=lr();return{layoutProps:_({},n,t,{isLandscape:i,isRtl:a,wrapperVariant:r,disabled:e.disabled,readOnly:e.readOnly})}};function sz(e){const{props:t,pickerValueResponse:n}=e;return p.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 Q1=({props:e,valueManager:t,valueType:n,wrapperVariant:r,additionalViewProps:o,validator:i,autoFocusView:a,rendererInterceptor:s,fieldRef:l})=>{const c=nz({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:i}),u=oz({props:e,additionalViewProps:o,autoFocusView:a,fieldRef:l,propsFromPickerValue:c.viewProps,rendererInterceptor:s}),d=az({props:e,wrapperVariant:r,propsFromPickerValue:c.layoutProps,propsFromPickerViews:u.layoutProps}),f=sz({props:e,pickerValueResponse:c});return{open:c.open,actions:c.actions,fieldProps:c.fieldProps,renderCurrentView:u.renderCurrentView,hasUIView:u.hasUIView,shouldRestoreFocus:u.shouldRestoreFocus,layoutProps:d.layoutProps,contextValue:c.contextValue,ownerState:f}};function X1(e){return ge("MuiPickersLayout",e)}const Xo=me("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]),lz=["onAccept","onClear","onCancel","onSetToday","actions"];function cz(e){const{onAccept:t,onClear:n,onCancel:r,onSetToday:o,actions:i}=e,a=Ae(e,lz),s=mo();if(i==null||i.length===0)return null;const l=i==null?void 0:i.map(c=>{switch(c){case"clear":return x.jsx(it,{onClick:n,children:s.clearButtonLabel},c);case"cancel":return x.jsx(it,{onClick:r,children:s.cancelButtonLabel},c);case"accept":return x.jsx(it,{onClick:t,children:s.okButtonLabel},c);case"today":return x.jsx(it,{onClick:o,children:s.todayButtonLabel},c);default:return null}});return x.jsx(Vm,_({},a,{children:l}))}const uz=["items","changeImportance","isLandscape","onChange","isValid"],dz=["getValue"];function fz(e){const{items:t,changeImportance:n="accept",onChange:r,isValid:o}=e,i=Ae(e,uz);if(t==null||t.length===0)return null;const a=t.map(s=>{let{getValue:l}=s,c=Ae(s,dz);const u=l({isValid:o});return _({},c,{label:c.label,onClick:()=>{r(u,n,c)},disabled:!o(u)})});return x.jsx(Ew,_({dense:!0,sx:[{maxHeight:sg,maxWidth:200,overflow:"auto"},...Array.isArray(i.sx)?i.sx:[i.sx]]},i,{children:a.map(s=>x.jsx(z$,{children:x.jsx(pI,_({},s))},s.id??s.label))}))}function pz(e){return e.view!==null}const hz=e=>{const{classes:t,isLandscape:n}=e;return ye({root:["root",n&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},X1,t)},mz=e=>{const{wrapperVariant:t,onAccept:n,onClear:r,onCancel:o,onSetToday:i,view:a,views:s,onViewChange:l,value:c,onChange:u,onSelectShortcut:d,isValid:f,isLandscape:y,disabled:g,readOnly:S,children:C,slots:h,slotProps:m}=e,v=hz(e),b=(h==null?void 0:h.actionBar)??cz,E=Qe({elementType:b,externalSlotProps:m==null?void 0:m.actionBar,additionalProps:{onAccept:n,onClear:r,onCancel:o,onSetToday:i,actions:t==="desktop"?[]:["cancel","accept"]},className:v.actionBar,ownerState:_({},e,{wrapperVariant:t})}),k=x.jsx(b,_({},E)),M=h==null?void 0:h.toolbar,P=Qe({elementType:M,externalSlotProps:m==null?void 0:m.toolbar,additionalProps:{isLandscape:y,onChange:u,value:c,view:a,onViewChange:l,views:s,disabled:g,readOnly:S},className:v.toolbar,ownerState:_({},e,{wrapperVariant:t})}),$=pz(P)&&M?x.jsx(M,_({},P)):null,w=C,R=h==null?void 0:h.tabs,A=a&&R?x.jsx(R,_({view:a,onViewChange:l,className:v.tabs},m==null?void 0:m.tabs)):null,j=(h==null?void 0:h.shortcuts)??fz,O=Qe({elementType:j,externalSlotProps:m==null?void 0:m.shortcuts,additionalProps:{isValid:f,isLandscape:y,onChange:d},className:v.shortcuts,ownerState:{isValid:f,isLandscape:y,onChange:d,wrapperVariant:t}}),T=a&&j?x.jsx(j,_({},O)):null;return{toolbar:$,content:w,tabs:A,actionBar:k,shortcuts:T}},gz=e=>{const{isLandscape:t,classes:n}=e;return ye({root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]},X1,n)},yz=G("div",{name:"MuiPickersLayout",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${Xo.actionBar}`]:{gridColumn:"1 / 4",gridRow:3},variants:[{props:{isLandscape:!0},style:{[`& .${Xo.toolbar}`]:{gridColumn:1,gridRow:"2 / 3"},[`.${Xo.shortcuts}`]:{gridColumn:"2 / 4",gridRow:1}}},{props:{isLandscape:!0,isRtl:!0},style:{[`& .${Xo.toolbar}`]:{gridColumn:3}}},{props:{isLandscape:!1},style:{[`& .${Xo.toolbar}`]:{gridColumn:"2 / 4",gridRow:1},[`& .${Xo.shortcuts}`]:{gridColumn:1,gridRow:"2 / 3"}}},{props:{isLandscape:!1,isRtl:!0},style:{[`& .${Xo.shortcuts}`]:{gridColumn:3}}}]}),vz=G("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),q1=p.forwardRef(function(t,n){const r=gt({props:t,name:"MuiPickersLayout"}),{toolbar:o,content:i,tabs:a,actionBar:s,shortcuts:l}=mz(r),{sx:c,className:u,isLandscape:d,wrapperVariant:f}=r,y=gz(r);return x.jsxs(yz,{ref:n,sx:c,className:pe(y.root,u),ownerState:r,children:[d?l:o,d?o:l,x.jsx(vz,{className:y.contentWrapper,children:f==="desktop"?x.jsxs(p.Fragment,{children:[i,a]}):x.jsxs(p.Fragment,{children:[a,i]})}),s]})}),xz=["props","getOpenDialogAriaText"],Sz=["ownerState"],bz=["ownerState"],wz=e=>{var Q;let{props:t,getOpenDialogAriaText:n}=e,r=Ae(e,xz);const{slots:o,slotProps:i,className:a,sx:s,format:l,formatDensity:c,enableAccessibleFieldDOMStructure:u,selectedSections:d,onSelectedSectionsChange:f,timezone:y,name:g,label:S,inputRef:C,readOnly:h,disabled:m,autoFocus:v,localeText:b,reduceAnimations:E}=t,k=p.useRef(null),M=p.useRef(null),P=Wo(),$=((Q=i==null?void 0:i.toolbar)==null?void 0:Q.hidden)??!1,{open:w,actions:R,hasUIView:A,layoutProps:j,renderCurrentView:O,shouldRestoreFocus:T,fieldProps:I,contextValue:N,ownerState:D}=Q1(_({},r,{props:t,fieldRef:M,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),L=o.inputAdornment??kw,z=Qe({elementType:L,externalSlotProps:i==null?void 0:i.inputAdornment,additionalProps:{position:"end"},ownerState:t}),V=Ae(z,Sz),Y=o.openPickerButton??Wr,se=Qe({elementType:Y,externalSlotProps:i==null?void 0:i.openPickerButton,additionalProps:{disabled:m||h,onClick:w?R.onClose:R.onOpen,"aria-label":n(I.value),edge:V.position},ownerState:t}),X=Ae(se,bz),H=o.openPickerIcon,le=Qe({elementType:H,externalSlotProps:i==null?void 0:i.openPickerIcon,ownerState:D}),ae=o.field,te=Qe({elementType:ae,externalSlotProps:i==null?void 0:i.field,additionalProps:_({},I,$&&{id:P},{readOnly:h,disabled:m,className:a,sx:s,format:l,formatDensity:c,enableAccessibleFieldDOMStructure:u,selectedSections:d,onSelectedSectionsChange:f,timezone:y,label:S,name:g,autoFocus:v&&!t.open,focused:w?!0:void 0},C?{inputRef:C}:{}),ownerState:t});A&&(te.InputProps=_({},te.InputProps,{ref:k},!t.disableOpenPicker&&{[`${V.position}Adornment`]:x.jsx(L,_({},V,{children:x.jsx(Y,_({},X,{children:x.jsx(H,_({},le))}))}))}));const Z=_({textField:o.textField,clearIcon:o.clearIcon,clearButton:o.clearButton},te.slots),re=o.layout??q1;let ie=P;$&&(S?ie=`${P}-label`:ie=void 0);const W=_({},i,{toolbar:_({},i==null?void 0:i.toolbar,{titleId:P}),popper:_({"aria-labelledby":ie},i==null?void 0:i.popper)}),F=Ye(M,te.unstableFieldRef);return{renderPicker:()=>x.jsxs(L1,{contextValue:N,localeText:b,children:[x.jsx(ae,_({},te,{slots:Z,slotProps:W,unstableFieldRef:F})),x.jsx(q4,_({role:"dialog",placement:"bottom-start",anchorEl:k.current},R,{open:w,slots:o,slotProps:W,shouldRestoreFocus:T,reduceAnimations:E,children:x.jsx(re,_({},j,W==null?void 0:W.layout,{slots:o,slotProps:W,children:O()}))}))]})}},va=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:o,value:i,defaultValue:a,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:d,disablePast:f,minDate:y,maxDate:g,shouldDisableDate:S,shouldDisableMonth:C,shouldDisableYear:h,reduceAnimations:m,onMonthChange:v,monthsPerRow:b,onYearChange:E,yearsOrder:k,yearsPerRow:M,slots:P,slotProps:$,loading:w,renderLoading:R,disableHighlightToday:A,readOnly:j,disabled:O,showDaysOutsideCurrentMonth:T,dayOfWeekFormatter:I,sx:N,autoFocus:D,fixedWeekNumber:L,displayWeekNumber:z,timezone:V})=>x.jsx(T4,{view:e,onViewChange:t,views:n.filter(I0),focusedView:r&&I0(r)?r:null,onFocusedViewChange:o,value:i,defaultValue:a,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:d,disablePast:f,minDate:y,maxDate:g,shouldDisableDate:S,shouldDisableMonth:C,shouldDisableYear:h,reduceAnimations:m,onMonthChange:v,monthsPerRow:b,onYearChange:E,yearsOrder:k,yearsPerRow:M,slots:P,slotProps:$,loading:w,renderLoading:R,disableHighlightToday:A,readOnly:j,disabled:O,showDaysOutsideCurrentMonth:T,dayOfWeekFormatter:I,sx:N,autoFocus:D,fixedWeekNumber:L,displayWeekNumber:z,timezone:V}),Z1=p.forwardRef(function(t,n){var c,u;const r=mo(),o=yt(),i=G1(t,"MuiDesktopDatePicker"),a=_({day:va,month:va,year:va},i.viewRenderers),s=_({},i,{viewRenderers:a,format:cg(o,i,!1),yearsPerRow:i.yearsPerRow??4,slots:_({openPickerIcon:cF,field:W1},i.slots),slotProps:_({},i.slotProps,{field:d=>{var f;return _({},Pd((f=i.slotProps)==null?void 0:f.field,d),$1(i),{ref:n})},toolbar:_({hidden:!0},(c=i.slotProps)==null?void 0:c.toolbar)})}),{renderPicker:l}=wz({props:s,valueManager:Hr,valueType:"date",getOpenDialogAriaText:S1({utils:o,formatKey:"fullDate",contextTranslation:r.openDatePickerDialogue,propsTranslation:(u=s.localeText)==null?void 0:u.openDatePickerDialogue}),validator:Kl});return l()});Z1.propTypes={autoFocus:J.bool,className:J.string,closeOnSelect:J.bool,dayOfWeekFormatter:J.func,defaultValue:J.object,disabled:J.bool,disableFuture:J.bool,disableHighlightToday:J.bool,disableOpenPicker:J.bool,disablePast:J.bool,displayWeekNumber:J.bool,enableAccessibleFieldDOMStructure:J.any,fixedWeekNumber:J.number,format:J.string,formatDensity:J.oneOf(["dense","spacious"]),inputRef:Bb,label:J.node,loading:J.bool,localeText:J.object,maxDate:J.object,minDate:J.object,monthsPerRow:J.oneOf([3,4]),name:J.string,onAccept:J.func,onChange:J.func,onClose:J.func,onError:J.func,onMonthChange:J.func,onOpen:J.func,onSelectedSectionsChange:J.func,onViewChange:J.func,onYearChange:J.func,open:J.bool,openTo:J.oneOf(["day","month","year"]),orientation:J.oneOf(["landscape","portrait"]),readOnly:J.bool,reduceAnimations:J.bool,referenceDate:J.object,renderLoading:J.func,selectedSections:J.oneOfType([J.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),J.number]),shouldDisableDate:J.func,shouldDisableMonth:J.func,shouldDisableYear:J.func,showDaysOutsideCurrentMonth:J.bool,slotProps:J.object,slots:J.object,sx:J.oneOfType([J.arrayOf(J.oneOfType([J.func,J.object,J.bool])),J.func,J.object]),timezone:J.string,value:J.object,view:J.oneOf(["day","month","year"]),viewRenderers:J.shape({day:J.func,month:J.func,year:J.func}),views:J.arrayOf(J.oneOf(["day","month","year"]).isRequired),yearsOrder:J.oneOf(["asc","desc"]),yearsPerRow:J.oneOf([3,4])};const Cz=G(_m)({[`& .${Hs.container}`]:{outline:0},[`& .${Hs.paper}`]:{outline:0,minWidth:Xd}}),kz=G(Wm)({"&:first-of-type":{padding:0}});function Ez(e){const{children:t,onDismiss:n,open:r,slots:o,slotProps:i}=e,a=(o==null?void 0:o.dialog)??Cz,s=(o==null?void 0:o.mobileTransition)??Ka;return x.jsx(a,_({open:r,onClose:n},i==null?void 0:i.dialog,{TransitionComponent:s,TransitionProps:i==null?void 0:i.mobileTransition,PaperComponent:o==null?void 0:o.mobilePaper,PaperProps:i==null?void 0:i.mobilePaper,children:x.jsx(kz,{children:t})}))}const Pz=["props","getOpenDialogAriaText"],Mz=e=>{var V;let{props:t,getOpenDialogAriaText:n}=e,r=Ae(e,Pz);const{slots:o,slotProps:i,className:a,sx:s,format:l,formatDensity:c,enableAccessibleFieldDOMStructure:u,selectedSections:d,onSelectedSectionsChange:f,timezone:y,name:g,label:S,inputRef:C,readOnly:h,disabled:m,localeText:v}=t,b=p.useRef(null),E=Wo(),k=((V=i==null?void 0:i.toolbar)==null?void 0:V.hidden)??!1,{open:M,actions:P,layoutProps:$,renderCurrentView:w,fieldProps:R,contextValue:A}=Q1(_({},r,{props:t,fieldRef:b,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),j=o.field,O=Qe({elementType:j,externalSlotProps:i==null?void 0:i.field,additionalProps:_({},R,k&&{id:E},!(m||h)&&{onClick:P.onOpen,onKeyDown:QF(P.onOpen)},{readOnly:h??!0,disabled:m,className:a,sx:s,format:l,formatDensity:c,enableAccessibleFieldDOMStructure:u,selectedSections:d,onSelectedSectionsChange:f,timezone:y,label:S,name:g},C?{inputRef:C}:{}),ownerState:t});O.inputProps=_({},O.inputProps,{"aria-label":n(R.value)});const T=_({textField:o.textField},O.slots),I=o.layout??q1;let N=E;k&&(S?N=`${E}-label`:N=void 0);const D=_({},i,{toolbar:_({},i==null?void 0:i.toolbar,{titleId:E}),mobilePaper:_({"aria-labelledby":N},i==null?void 0:i.mobilePaper)}),L=Ye(b,O.unstableFieldRef);return{renderPicker:()=>x.jsxs(L1,{contextValue:A,localeText:v,children:[x.jsx(j,_({},O,{slots:T,slotProps:D,unstableFieldRef:L})),x.jsx(Ez,_({},P,{open:M,slots:o,slotProps:D,children:x.jsx(I,_({},$,D==null?void 0:D.layout,{slots:o,slotProps:D,children:w()}))}))]})}},J1=p.forwardRef(function(t,n){var c,u;const r=mo(),o=yt(),i=G1(t,"MuiMobileDatePicker"),a=_({day:va,month:va,year:va},i.viewRenderers),s=_({},i,{viewRenderers:a,format:cg(o,i,!1),slots:_({field:W1},i.slots),slotProps:_({},i.slotProps,{field:d=>{var f;return _({},Pd((f=i.slotProps)==null?void 0:f.field,d),$1(i),{ref:n})},toolbar:_({hidden:!1},(c=i.slotProps)==null?void 0:c.toolbar)})}),{renderPicker:l}=Mz({props:s,valueManager:Hr,valueType:"date",getOpenDialogAriaText:S1({utils:o,formatKey:"fullDate",contextTranslation:r.openDatePickerDialogue,propsTranslation:(u=s.localeText)==null?void 0:u.openDatePickerDialogue}),validator:Kl});return l()});J1.propTypes={autoFocus:J.bool,className:J.string,closeOnSelect:J.bool,dayOfWeekFormatter:J.func,defaultValue:J.object,disabled:J.bool,disableFuture:J.bool,disableHighlightToday:J.bool,disableOpenPicker:J.bool,disablePast:J.bool,displayWeekNumber:J.bool,enableAccessibleFieldDOMStructure:J.any,fixedWeekNumber:J.number,format:J.string,formatDensity:J.oneOf(["dense","spacious"]),inputRef:Bb,label:J.node,loading:J.bool,localeText:J.object,maxDate:J.object,minDate:J.object,monthsPerRow:J.oneOf([3,4]),name:J.string,onAccept:J.func,onChange:J.func,onClose:J.func,onError:J.func,onMonthChange:J.func,onOpen:J.func,onSelectedSectionsChange:J.func,onViewChange:J.func,onYearChange:J.func,open:J.bool,openTo:J.oneOf(["day","month","year"]),orientation:J.oneOf(["landscape","portrait"]),readOnly:J.bool,reduceAnimations:J.bool,referenceDate:J.object,renderLoading:J.func,selectedSections:J.oneOfType([J.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),J.number]),shouldDisableDate:J.func,shouldDisableMonth:J.func,shouldDisableYear:J.func,showDaysOutsideCurrentMonth:J.bool,slotProps:J.object,slots:J.object,sx:J.oneOfType([J.arrayOf(J.oneOfType([J.func,J.object,J.bool])),J.func,J.object]),timezone:J.string,value:J.object,view:J.oneOf(["day","month","year"]),viewRenderers:J.shape({day:J.func,month:J.func,year:J.func}),views:J.arrayOf(J.oneOf(["day","month","year"]).isRequired),yearsOrder:J.oneOf(["asc","desc"]),yearsPerRow:J.oneOf([3,4])};const Rz=["desktopModeMediaQuery"],Nu=p.forwardRef(function(t,n){const r=gt({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:o=XF}=r,i=Ae(r,Rz);return Nd(o,{defaultMatches:!0})?x.jsx(Z1,_({ref:n},i)):x.jsx(J1,_({ref:n},i))}),Dz=()=>{const[e,t]=p.useState(""),[n,r]=p.useState(""),[o,i]=p.useState(null),[a,s]=p.useState(null),[l,c]=p.useState(null),[u,d]=p.useState(""),[f,y]=p.useState(""),[g,S]=p.useState(""),[C,h]=p.useState(""),[m,v]=p.useState(""),[b,E]=p.useState(""),[k,M]=p.useState(null),[P,$]=p.useState(!1),w=cn(),{token:R}=p.useContext(nn),{trigger:A,error:j}=wr("/titles/",Jm(R)),{trigger:O,error:T}=wr("/images/",Xw(R)),{data:I,isLoading:N}=Bn("/activities/",zn(R)),D=async Y=>{const se=new FormData;se.append("file",Y);const X=await O(se);c(X),console.log(X)},L={name:Y=>{y(Y)},description:Y=>{S(setPasswordErrorMessage,Y)},start_date:Y=>{h(Y)},end_date:Y=>{v(Y)},activity:Y=>{E(Y)}},z=()=>{$(!1),w(`/titles/${k}`)};p.useEffect(()=>{j&&Object.entries(j.info).forEach(([Y,se])=>{L[Y](se)})},[j]);const V=async Y=>{Y.preventDefault();const se={name:e,description:n,start_date:o==null?void 0:o.format("YYYY-MM-DD"),end_date:a==null?void 0:a.format("YYYY-MM-DD"),activity:u};l&&(se.image=l.id);const X=await A(se);M(X.id),$(!0)};return N?x.jsx(_l,{}):x.jsxs(x.Fragment,{children:[x.jsx(Vl,{open:P,autoHideDuration:2e3,onClose:z,children:x.jsx(Fl,{onClose:z,severity:"success",sx:{backgroundColor:"#4caf50",color:"white"},iconMapping:{success:x.jsx(Hl,{fontSize:"inherit"})},children:"Title is successfully created! Redirecting..."})}),x.jsx(Fe,{variant:"h4",gutterBottom:!0,children:"Create Title"}),x.jsxs("form",{onSubmit:V,children:[x.jsx(Cn,{label:"Title Name",variant:"outlined",fullWidth:!0,margin:"normal",value:e,onChange:Y=>t(Y.target.value),error:!!f,helperText:f,required:!0}),x.jsx(Cn,{label:"Description",variant:"outlined",fullWidth:!0,margin:"normal",multiline:!0,rows:4,value:n,onChange:Y=>r(Y.target.value),error:!!g,helperText:g}),x.jsx(Nu,{label:"Start Date",value:o,onChange:Y=>i(Y),slotProps:{textField:{margin:"normal",fullWidth:!0,variant:"outlined",error:!!C,helperText:C},field:{clearable:!0},actionBar:{actions:["clear","cancel","accept"]}}}),x.jsx(Nu,{label:"End Date",value:a,onChange:Y=>s(Y),error:!!m,helperText:m,slotProps:{textField:{margin:"normal",fullWidth:!0,variant:"outlined",error:!!m,helperText:m},field:{clearable:!0},actionBar:{actions:["clear","cancel","accept"]}}}),x.jsxs(to,{fullWidth:!0,margin:"normal",error:!!b,children:[x.jsx(Fd,{id:"activity-select-label",children:"Activity"}),x.jsx(Bd,{label:"Activity",labelId:"activity-select-label",value:u,onChange:Y=>d(Y.target.value),required:!0,children:I.map(Y=>x.jsx(Tu,{value:Y.id,children:Y.name},Y.id))})]}),x.jsx("input",{accept:"image/*",style:{display:"none"},id:"image-upload",type:"file",onChange:Y=>D(Y.target.files[0])}),x.jsx("label",{htmlFor:"image-upload",children:x.jsx(it,{variant:"outlined",component:"span",fullWidth:!0,sx:{marginY:"16px"},children:"Upload Image"})}),l&&x.jsx(Ot,{display:"flex",justifyContent:"center",margin:"8px",children:x.jsx(Ot,{component:"img",sx:{height:233,width:350,maxWidth:{xs:350,md:250}},alt:"The house from the offer.",src:l.file})}),x.jsx(it,{type:"submit",variant:"contained",color:"primary",fullWidth:!0,children:"Create Title"})]})]})},Tz=()=>x.jsx(jd,{maxWidth:"sm",children:x.jsx(Dz,{})}),eC=Ht(x.jsx("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Edit"),tC=Ht(x.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete"),nC=({title:e,activity:t})=>{const[n,r]=p.useState(!1),{token:o}=p.useContext(nn),{trigger:i}=wr("/titles/",Kw(o)),a=cn(),s=()=>{r(!0)},l=()=>{r(!1)},c=async()=>{console.log(`Deleting title with id: ${e.id}`),await i(e.id),await qm(d=>typeof d=="string"&&d.startsWith("/titles/")),r(!1)},u=()=>{a(`/edit-title/${e.id}`)};return x.jsxs(x.Fragment,{children:[x.jsxs(_m,{open:n,onClose:l,children:[x.jsx(Sw,{children:"Confirm Delete"}),x.jsx(Wm,{children:x.jsx(Fe,{children:"Are you sure you want to delete this title?"})}),x.jsxs(Vm,{children:[x.jsx(it,{onClick:l,color:"primary",children:"Cancel"}),x.jsx(it,{onClick:c,color:"error",children:"Delete"})]})]}),x.jsxs(Sl,{sx:{display:"flex",justifyContent:"space-between"},children:[x.jsx(mw,{children:x.jsxs(di,{container:!0,children:[e.image&&x.jsx(di,{size:{xs:12,sm:6},children:x.jsx(Sl,{children:x.jsx(QI,{sx:{height:{xs:"300px",lg:"400px"},objectFit:"cover"},component:"img",image:e.image,alt:e.name})})}),x.jsx(di,{size:{xs:12,sm:6},children:x.jsxs(Ot,{sx:{marginLeft:e.image?2:0},children:[x.jsx(Fe,{variant:"h4",component:"h1",gutterBottom:!0,children:e.name}),x.jsx(Fe,{variant:"body1",component:"p",sx:{marginBottom:"16px"},children:e.description}),x.jsxs(Fe,{variant:"body2",color:"textSecondary",children:["Start Date: ",new Date(e.startDate).toLocaleDateString()]}),x.jsxs(Fe,{variant:"body2",color:"textSecondary",children:["End Date:"," ",e.endDate?new Date(e.endDate).toLocaleDateString():"Not finished yet"]}),e.endDate&&x.jsxs(Fe,{variant:"body2",color:"textSecondary",children:["Spent:"," ",v1(new Date(e.endDate)-new Date(e.startDate))," ","days"]}),t?x.jsx(Um,{component:Kn,to:`/activities/${t.id}`,variant:"body2",children:t.name}):x.jsx(_l,{size:"1rem"})]})})]})}),x.jsxs(Ot,{sx:{padding:1},display:"flex",alignItems:"flex-start",flexDirection:"column",children:[x.jsx(Wr,{onClick:d=>{d.stopPropagation(),u(t.id)},children:x.jsx(eC,{})}),x.jsx(Wr,{onClick:d=>{d.stopPropagation(),s(t.id)},children:x.jsx(tC,{})})]})]})]})},Iz=()=>{const[e,t]=p.useState(null),n=cn(),{token:r}=p.useContext(nn),o=Kd(),{data:i,isLoading:a,error:s}=Bn(`/titles/${o.id}`,zn(r)),{data:l}=Bn(e?`/activities/${e.activity}`:null,zn(r));return p.useEffect(()=>{i&&t({id:i.id,name:i.name,description:i.description,startDate:i.start_date,endDate:i.end_date,image:i.image,activity:i.activity})},[i]),p.useEffect(()=>{s&&(s.status===404?n("/activities"):n("/error"))},[s]),a||!e?x.jsx(Ti,{}):x.jsx(Mi,{justifyContent:"center",justifyItems:"center",alignContent:"center",paddingX:4,children:x.jsx(nC,{title:e,activity:l})})},Oz=Ht(x.jsx("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu"),$z=({onLogin:e,onLogout:t})=>{const[n,r]=p.useState(null),[o,i]=p.useState(!1),{login:a,logout:s}=p.useContext(nn),{user:l}=Wd(),c=cn(),u=Nd(g=>g.breakpoints.down("sm")),d=g=>{r(g.currentTarget)},f=()=>{r(null)},y=()=>{i(!o)};return x.jsxs(HT,{position:"static",color:"info",children:[x.jsxs(aL,{children:[x.jsxs(Ot,{flexGrow:1,display:"flex",alignItems:"center",children:[x.jsx(Ot,{component:Kn,to:"/",sx:{display:"flex",alignItems:"center",textDecoration:"none",borderRadius:"50%",overflow:"hidden",width:"50px",height:"50px"},children:x.jsx(ag,{})}),u?x.jsx(Wr,{color:"inherit",onClick:y,sx:{marginLeft:1},children:x.jsx(Oz,{})}):x.jsxs(x.Fragment,{children:[x.jsx(it,{sx:{marginLeft:1},color:"inherit",component:Kn,to:"/history",children:"History"}),x.jsx(it,{color:"inherit",component:Kn,to:"/table",children:"Table"}),x.jsx(it,{color:"inherit",component:Kn,to:"/activities",children:"Activities"}),x.jsx(it,{color:"inherit",onClick:d,children:"New"}),x.jsxs(Dw,{anchorEl:n,open:!!n,onClose:f,children:[x.jsx(Tu,{onClick:f,component:Kn,to:"/create-activity",children:"Activity"}),x.jsx(Tu,{onClick:f,component:Kn,to:"/create-title",children:"Title"})]})]})]}),l?x.jsxs(x.Fragment,{children:[x.jsx(Fe,{variant:"body1",sx:{marginLeft:"auto",marginRight:"16px",color:"white"},children:l.username}),x.jsx(it,{color:"inherit",onClick:s,children:"Logout"})]}):x.jsx(it,{color:"inherit",onClick:()=>c("/login"),children:"Login"})]}),u&&x.jsx(ZO,{anchor:"right",open:o,onClose:y,children:x.jsxs(Ot,{sx:{width:180},role:"presentation",onClick:y,onKeyDown:y,display:"flex",flexDirection:"column",gap:3,children:[x.jsx(it,{component:Kn,to:"/history",children:"History"}),x.jsx(it,{component:Kn,to:"/table",children:"Table"}),x.jsx(it,{component:Kn,to:"/activities",children:"Activities"}),x.jsx(it,{component:Kn,to:"/create-activity",children:"New activity"}),x.jsx(it,{component:Kn,to:"/create-title",children:"New title"})]})})]})},Az=()=>x.jsxs(x.Fragment,{children:[x.jsx($z,{isLoggedIn:!0,onLogin:()=>{console.log("login")},onLogout:()=>console.log("logout")}),x.jsx(Ot,{marginTop:4,children:x.jsx(iN,{})})]}),Lz=()=>{const[e,t]=p.useState(null),[n,r]=p.useState(null),o=cn(),{token:i}=p.useContext(nn),a=Kd(),{data:s,isLoading:l,error:c}=Bn(`/activities/${a.id}`,zn(i)),{data:u}=Bn(e?`/titles/?activity=${e.id}`:null,zn(i));return console.log(s),p.useEffect(()=>{s&&t({id:s.id,name:s.name,description:s.description})},[s]),p.useEffect(()=>{u&&r(u.map(d=>({id:d.id,name:d.name,description:d.description,startDate:d.start_date,endDate:d.end_date,image:d.image})))},[u]),p.useEffect(()=>{c&&o("/error")},[c]),l||!e?x.jsx(Ti,{}):(console.log(n),x.jsxs(Mi,{justifyContent:"center",justifyItems:"center",alignContent:"center",paddingX:4,children:[x.jsx(Fe,{variant:"h4",component:"h1",gutterBottom:!0,children:e.name}),x.jsx(Fe,{variant:"body1",component:"p",sx:{marginBottom:"16px"},children:e.description}),n&&x.jsx(di,{container:!0,spacing:2,marginTop:2,children:n.map(d=>x.jsx(di,{size:{xs:12,md:6},children:x.jsx(nC,{activity:e,title:d})},d.id))})]}))},jz=(e,t,n)=>{const r=n.map(o=>{console.log("sta",o.startDate,o.endDate);const i=new Date(o.startDate),a=o.endDate&&new Date(o.endDate);console.log("en",i,a);const s={start_date:{day:i.getDate(),month:i.getMonth()+1,year:i.getFullYear()},text:{headline:o.name,text:o.description},group:o.activityName};return a&&(s.end_date={day:a.getDate(),month:a.getMonth()+1,year:a.getFullYear()}),o.image&&(s.media={url:o.image}),s});return{title:{text:{headline:e,text:t}},events:r}},Nz=()=>{const{token:e}=p.useContext(nn),{data:t,isLoading:n}=Bn("/titles/",zn(e));return p.useLayoutEffect(()=>{if(t){const r=t.map(i=>({name:i.name,description:i.description,startDate:i.start_date,endDate:i.end_date,image:i.image,activityName:i.activity_name})),o=jz("Aboba","kakulya",r);console.log(o),new TL.Timeline("timeline-embed",o)}},[t]),n?x.jsx(Ti,{}):x.jsx(x.Fragment,{children:x.jsx("div",{id:"timeline-embed",style:{width:"100%",height:"600px"}})})},Fz=()=>{const{token:e}=p.useContext(nn),t=cn(),[n,r]=p.useState(!1),[o,i]=p.useState(null),{data:a,isLoading:s}=Bn("/activities/",zn(e)),{trigger:l}=wr("/activities/",Kw(e)),c=y=>{r(!0),i(y)},u=()=>{r(!1),i(null)},d=async()=>{console.log(`Deleting activity with id: ${o}`),await l(o),r(!1),i(null)},f=y=>{t(`/edit-activity/${y}`)};return s?x.jsx(Ti,{}):x.jsxs(x.Fragment,{children:[x.jsxs(_m,{open:n,onClose:u,children:[x.jsx(Sw,{children:"Confirm Delete"}),x.jsx(Wm,{children:x.jsx(Fe,{children:"Are you sure you want to delete this activity?"})}),x.jsxs(Vm,{children:[x.jsx(it,{onClick:u,color:"primary",children:"Cancel"}),x.jsx(it,{onClick:d,color:"error",children:"Delete"})]})]}),x.jsx(di,{container:!0,spacing:2,sx:{padding:2},children:a.map(y=>x.jsx(di,{size:{xs:12,sm:6,md:6},children:x.jsxs(Sl,{sx:{minHeight:{xs:"100px",sm:"180px"},cursor:"pointer",display:"flex",justifyContent:"space-between"},onClick:()=>t(`/activities/${y.id}`),children:[x.jsxs(mw,{children:[x.jsx(Fe,{variant:"h5",component:"div",children:y.name}),x.jsx(Fe,{variant:"body2",color:"text.secondary",children:y.description})]}),x.jsxs(Ot,{sx:{padding:1},display:"flex",alignItems:"flex-start",flexDirection:"column",children:[x.jsx(Wr,{onClick:g=>{g.stopPropagation(),f(y.id)},children:x.jsx(eC,{})}),x.jsx(Wr,{onClick:g=>{g.stopPropagation(),c(y.id)},children:x.jsx(tC,{})})]})]})},y.id))})]})},Bz=()=>{const[e,t]=p.useState(""),[n,r]=p.useState(""),i=Kd().id,[a,s]=p.useState(""),[l,c]=p.useState(""),[u,d]=p.useState(!1),f=cn(),{token:y}=p.useContext(nn),{data:g,isLoading:S}=Bn(`/activities/${i}`,zn(y)),{trigger:C,error:h}=wr("/activities/",Gw(y)),m=async E=>{E.preventDefault(),await C({id:i,name:e,description:n}),d(!0)},v={name:E=>{s(E)},description:E=>{c(setPasswordErrorMessage,E)}},b=()=>{d(!1),f(`/activities/${i}`)};return p.useEffect(()=>{h&&Object.entries(h.info).forEach(([E,k])=>{v[E](k)})},[h]),p.useEffect(()=>{g&&(t(g.name),r(g.description))},[g]),S?x.jsx(Ti,{}):x.jsxs(jd,{maxWidth:"sm",children:[x.jsx(Vl,{open:u,autoHideDuration:2e3,onClose:b,children:x.jsx(Fl,{onClose:b,severity:"success",sx:{backgroundColor:"#4caf50",color:"white"},iconMapping:{success:x.jsx(Hl,{fontSize:"inherit"})},children:"Activity is successfully updated! Redirecting..."})}),x.jsx(Fe,{variant:"h4",gutterBottom:!0,children:"Edit Activity"}),x.jsxs("form",{onSubmit:m,children:[x.jsx(Cn,{label:"Activity Name",variant:"outlined",fullWidth:!0,margin:"normal",value:e,onChange:E=>t(E.target.value),error:!!a,helperText:a,required:!0}),x.jsx(Cn,{label:"Description",variant:"outlined",fullWidth:!0,margin:"normal",multiline:!0,rows:4,value:n,onChange:E=>r(E.target.value),error:!!l,helperText:l}),x.jsx(Ot,{display:"flex",justifyContent:"flex-end",children:x.jsx(it,{type:"submit",variant:"contained",color:"primary",children:"Edit Activity"})})]})]})},zz=()=>{const[e,t]=p.useState(""),[n,r]=p.useState(""),[o,i]=p.useState(null),[a,s]=p.useState(null),[l,c]=p.useState(null),[u,d]=p.useState(""),[f,y]=p.useState(""),[g,S]=p.useState(""),[C,h]=p.useState(""),[m,v]=p.useState(""),[b,E]=p.useState(""),M=Kd().id,[P,$]=p.useState(!1),w=cn(),{token:R}=p.useContext(nn),{data:A,isLoading:j}=Bn(`/titles/${M}`,zn(R)),{trigger:O,error:T}=wr("/titles/",Gw(R)),{trigger:I,error:N}=wr("/images/",Xw(R)),{data:D,isLoading:L}=Bn("/activities/",zn(R)),z=async X=>{const H=new FormData;H.append("file",X);const le=await I(H);c(le),console.log(le)},V={name:X=>{y(X)},description:X=>{S(setPasswordErrorMessage,X)},start_date:X=>{h(X)},end_date:X=>{v(X)},activity:X=>{E(X)}},Y=()=>{$(!1),w(`/titles/${M}`)};p.useEffect(()=>{T&&Object.entries(T.info).forEach(([X,H])=>{V[X](H)})},[T]),p.useEffect(()=>{A&&(t(A.name),r(A.description),i(jt(A.start_date)),s(jt(A.end_date)),c(A.image),d(A.activity))},[A]);const se=async X=>{X.preventDefault();const H={id:M,name:e,description:n,start_date:o==null?void 0:o.format("YYYY-MM-DD"),end_date:a?a.format("YYYY-MM-DD"):null,activity:u};console.log("datatoo",H),l&&(H.image=l.id),await O(H),$(!0)};return j||L?x.jsx(Ti,{}):(console.log("sd",o),console.log("ed",a),x.jsxs(jd,{maxWidth:"sm",children:[x.jsx(Vl,{open:P,autoHideDuration:2e3,onClose:Y,children:x.jsx(Fl,{onClose:Y,severity:"success",sx:{backgroundColor:"#4caf50",color:"white"},iconMapping:{success:x.jsx(Hl,{fontSize:"inherit"})},children:"Title is successfully updated! Redirecting..."})}),x.jsx(Fe,{variant:"h4",gutterBottom:!0,children:"Edit Title"}),x.jsxs("form",{onSubmit:se,children:[x.jsx(Cn,{label:"Title Name",variant:"outlined",fullWidth:!0,margin:"normal",value:e,onChange:X=>t(X.target.value),error:!!f,helperText:f,required:!0}),x.jsx(Cn,{label:"Description",variant:"outlined",fullWidth:!0,margin:"normal",multiline:!0,rows:4,value:n,onChange:X=>r(X.target.value),error:!!g,helperText:g}),x.jsx(Nu,{label:"Start Date",value:o,onChange:X=>i(X),slotProps:{textField:{margin:"normal",fullWidth:!0,variant:"outlined",error:!!C,helperText:C},field:{clearable:!0},actionBar:{actions:["clear","cancel","accept"]}}}),x.jsx(Nu,{label:"End Date",value:a,onChange:X=>s(X),error:!!m,helperText:m,slotProps:{textField:{margin:"normal",fullWidth:!0,variant:"outlined",error:!!m,helperText:m},field:{clearable:!0},actionBar:{actions:["clear","cancel","accept"]}}}),x.jsxs(to,{fullWidth:!0,margin:"normal",error:!!b,children:[x.jsx(Fd,{id:"activity-select-label",children:"Activity"}),x.jsx(Bd,{label:"Activity",labelId:"activity-select-label",value:u,onChange:X=>d(X.target.value),required:!0,children:D.map(X=>x.jsx(Tu,{value:X.id,children:X.name},X.id))})]}),x.jsx("input",{accept:"image/*",style:{display:"none"},id:"image-upload",type:"file",onChange:X=>z(X.target.files[0])}),x.jsx("label",{htmlFor:"image-upload",children:x.jsx(it,{variant:"outlined",component:"span",fullWidth:!0,sx:{marginY:"16px"},children:"Upload Image"})}),l&&x.jsx(Ot,{display:"flex",justifyContent:"center",margin:"8px",children:x.jsx(Ot,{component:"img",sx:{height:233,width:350,maxWidth:{xs:350,md:250}},alt:"The house from the offer.",src:l.file})}),x.jsx(it,{type:"submit",variant:"contained",color:"primary",fullWidth:!0,children:"Update Title"})]})]}))},_z=()=>{const e=KN(),t=pN([{path:"/",element:x.jsx(Az,{}),children:[{path:"/",element:x.jsx(Tr,{Component:YL})},{path:"/register",element:x.jsx(R0,{Component:JN})},{path:"/login",element:x.jsx(R0,{Component:XN})},{path:"/table",element:x.jsx(Tr,{Component:eF})},{path:"/activities",element:x.jsx(Tr,{Component:Fz})},{path:"/titles/:id",element:x.jsx(Tr,{Component:Iz})},{path:"/activities/:id",element:x.jsx(Tr,{Component:Lz})},{path:"/create-activity",element:x.jsx(Tr,{Component:nF})},{path:"/create-title",element:x.jsx(Tr,{Component:Tz})},{path:"/edit-activity/:id",element:x.jsx(Tr,{Component:Bz})},{path:"/edit-title/:id",element:x.jsx(Tr,{Component:zz})},{path:"/history",element:x.jsx(Tr,{Component:Nz})},{path:"/error",element:x.jsx(M0,{})},{path:"*",element:x.jsx(M0,{})}]}],{basename:"/timetrekah-frontend/"});return x.jsx(nn.Provider,{value:e,children:x.jsx(wN,{router:t})})};var Vz={exports:{}};(function(e,t){(function(n,r){e.exports=r(f1())})(Ci,function(n){function r(l){return l&&typeof l=="object"&&"default"in l?l:{default:l}}var o=r(n),i={s:"ein paar Sekunden",m:["eine Minute","einer Minute"],mm:"%d Minuten",h:["eine Stunde","einer Stunde"],hh:"%d Stunden",d:["ein Tag","einem Tag"],dd:["%d Tage","%d Tagen"],M:["ein Monat","einem Monat"],MM:["%d Monate","%d Monaten"],y:["ein Jahr","einem Jahr"],yy:["%d Jahre","%d Jahren"]};function a(l,c,u){var d=i[u];return Array.isArray(d)&&(d=d[c?0:1]),d.replace("%d",l)}var s={name:"de",weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sept._Okt._Nov._Dez.".split("_"),ordinal:function(l){return l+"."},weekStart:1,yearStart:4,formats:{LTS:"HH:mm:ss",LT:"HH:mm",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},relativeTime:{future:"in %s",past:"vor %s",s:a,m:a,mm:a,h:a,hh:a,d:a,dd:a,M:a,MM:a,y:a,yy:a}};return o.default.locale(s,null,!0),s})})(Vz);const Wz=Rd();tb(document.getElementById("root")).render(x.jsx(p.StrictMode,{children:x.jsx(UL,{value:{fetcher:HL},children:x.jsx(VD,{theme:Wz,children:x.jsx(x1,{dateAdapter:VN,adapterLocale:"de",children:x.jsx(_z,{})})})})})); diff --git a/assets/index-CroRE31w.js b/assets/index-CroRE31w.js deleted file mode 100644 index e3696a9..0000000 --- a/assets/index-CroRE31w.js +++ /dev/null @@ -1,233 +0,0 @@ -var q1=Object.defineProperty;var Z1=(e,t,n)=>t in e?q1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Xa=(e,t,n)=>Z1(e,typeof t!="symbol"?t+"":t,n);function j0(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var bi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function so(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var N0={exports:{}},$u={},F0={exports:{}},Ve={};/** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Pl=Symbol.for("react.element"),J1=Symbol.for("react.portal"),eC=Symbol.for("react.fragment"),tC=Symbol.for("react.strict_mode"),nC=Symbol.for("react.profiler"),rC=Symbol.for("react.provider"),oC=Symbol.for("react.context"),iC=Symbol.for("react.forward_ref"),aC=Symbol.for("react.suspense"),sC=Symbol.for("react.memo"),lC=Symbol.for("react.lazy"),fg=Symbol.iterator;function cC(e){return e===null||typeof e!="object"?null:(e=fg&&e[fg]||e["@@iterator"],typeof e=="function"?e:null)}var B0={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_0=Object.assign,z0={};function Na(e,t,n){this.props=e,this.context=t,this.refs=z0,this.updater=n||B0}Na.prototype.isReactComponent={};Na.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Na.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function V0(){}V0.prototype=Na.prototype;function ih(e,t,n){this.props=e,this.context=t,this.refs=z0,this.updater=n||B0}var ah=ih.prototype=new V0;ah.constructor=ih;_0(ah,Na.prototype);ah.isPureReactComponent=!0;var pg=Array.isArray,W0=Object.prototype.hasOwnProperty,sh={current:null},U0={key:!0,ref:!0,__self:!0,__source:!0};function H0(e,t,n){var r,o={},i=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)W0.call(t,r)&&!U0.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1>>1,H=T[V];if(0>>1;Vo(Y,_))leo(ie,Y)?(T[V]=ie,T[le]=_,V=le):(T[V]=Y,T[se]=_,V=se);else if(leo(ie,_))T[V]=ie,T[le]=_,V=le;else break e}}return A}function o(T,A){var _=T.sortIndex-A.sortIndex;return _!==0?_:T.id-A.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],c=[],u=1,d=null,f=3,y=!1,g=!1,x=!1,C=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(T){for(var A=n(c);A!==null;){if(A.callback===null)r(c);else if(A.startTime<=T)r(c),A.sortIndex=A.expirationTime,t(l,A);else break;A=n(c)}}function S(T){if(x=!1,v(T),!g)if(n(l)!==null)g=!0,I(P);else{var A=n(c);A!==null&&N(S,A.startTime-T)}}function P(T,A){g=!1,x&&(x=!1,p(E),E=-1),y=!0;var _=f;try{for(v(A),d=n(l);d!==null&&(!(d.expirationTime>A)||T&&!R());){var V=d.callback;if(typeof V=="function"){d.callback=null,f=d.priorityLevel;var H=V(d.expirationTime<=A);A=e.unstable_now(),typeof H=="function"?d.callback=H:d===n(l)&&r(l),v(A)}else r(l);d=n(l)}if(d!==null)var ae=!0;else{var se=n(c);se!==null&&N(S,se.startTime-A),ae=!1}return ae}finally{d=null,f=_,y=!1}}var k=!1,M=null,E=-1,$=5,w=-1;function R(){return!(e.unstable_now()-w<$)}function L(){if(M!==null){var T=e.unstable_now();w=T;var A=!0;try{A=M(!0,T)}finally{A?j():(k=!1,M=null)}}else k=!1}var j;if(typeof m=="function")j=function(){m(L)};else if(typeof MessageChannel<"u"){var O=new MessageChannel,D=O.port2;O.port1.onmessage=L,j=function(){D.postMessage(null)}}else j=function(){C(L,0)};function I(T){M=T,k||(k=!0,j())}function N(T,A){E=C(function(){T(e.unstable_now())},A)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(T){T.callback=null},e.unstable_continueExecution=function(){g||y||(g=!0,I(P))},e.unstable_forceFrameRate=function(T){0>T||125V?(T.sortIndex=_,t(c,T),n(l)===null&&T===n(c)&&(x?(p(E),E=-1):x=!0,N(S,_-V))):(T.sortIndex=H,t(l,T),g||y||(g=!0,I(P))),T},e.unstable_shouldYield=R,e.unstable_wrapCallback=function(T){var A=f;return function(){var _=f;f=A;try{return T.apply(this,arguments)}finally{f=_}}}})(X0);Q0.exports=X0;var SC=Q0.exports;/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var bC=h,Ln=SC;function he(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Bf=Object.prototype.hasOwnProperty,wC=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,mg={},gg={};function CC(e){return Bf.call(gg,e)?!0:Bf.call(mg,e)?!1:wC.test(e)?gg[e]=!0:(mg[e]=!0,!1)}function kC(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function PC(e,t,n,r){if(t===null||typeof t>"u"||kC(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function dn(e,t,n,r,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var Jt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Jt[e]=new dn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Jt[t]=new dn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Jt[e]=new dn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Jt[e]=new dn(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Jt[e]=new dn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Jt[e]=new dn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Jt[e]=new dn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Jt[e]=new dn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Jt[e]=new dn(e,5,!1,e.toLowerCase(),null,!1,!1)});var ch=/[\-:]([a-z])/g;function uh(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(ch,uh);Jt[t]=new dn(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(ch,uh);Jt[t]=new dn(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(ch,uh);Jt[t]=new dn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Jt[e]=new dn(e,1,!1,e.toLowerCase(),null,!1,!1)});Jt.xlinkHref=new dn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Jt[e]=new dn(e,1,!1,e.toLowerCase(),null,!0,!0)});function dh(e,t,n,r){var o=Jt.hasOwnProperty(t)?Jt[t]:null;(o!==null?o.type!==0:r||!(2s||o[a]!==i[s]){var l=` -`+o[a].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{Kd=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ss(e):""}function EC(e){switch(e.tag){case 5:return Ss(e.type);case 16:return Ss("Lazy");case 13:return Ss("Suspense");case 19:return Ss("SuspenseList");case 0:case 2:case 15:return e=Gd(e.type,!1),e;case 11:return e=Gd(e.type.render,!1),e;case 1:return e=Gd(e.type,!0),e;default:return""}}function Wf(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Wi:return"Fragment";case Vi:return"Portal";case _f:return"Profiler";case fh:return"StrictMode";case zf:return"Suspense";case Vf:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case J0:return(e.displayName||"Context")+".Consumer";case Z0:return(e._context.displayName||"Context")+".Provider";case ph:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case hh:return t=e.displayName||null,t!==null?t:Wf(e.type)||"Memo";case yo:t=e._payload,e=e._init;try{return Wf(e(t))}catch{}}return null}function MC(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Wf(t);case 8:return t===fh?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Ao(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function tx(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function RC(e){var t=tx(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){r=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ql(e){e._valueTracker||(e._valueTracker=RC(e))}function nx(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=tx(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Hc(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Uf(e,t){var n=t.checked;return Ct({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function vg(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Ao(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function rx(e,t){t=t.checked,t!=null&&dh(e,"checked",t,!1)}function Hf(e,t){rx(e,t);var n=Ao(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Yf(e,t.type,n):t.hasOwnProperty("defaultValue")&&Yf(e,t.type,Ao(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function xg(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Yf(e,t,n){(t!=="number"||Hc(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var bs=Array.isArray;function ta(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Zl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Gs(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ts={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},TC=["Webkit","ms","Moz","O"];Object.keys(Ts).forEach(function(e){TC.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ts[t]=Ts[e]})});function sx(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ts.hasOwnProperty(e)&&Ts[e]?(""+t).trim():t+"px"}function lx(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=sx(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var DC=Ct({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Qf(e,t){if(t){if(DC[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(he(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(he(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(he(61))}if(t.style!=null&&typeof t.style!="object")throw Error(he(62))}}function Xf(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var qf=null;function mh(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Zf=null,na=null,ra=null;function wg(e){if(e=Rl(e)){if(typeof Zf!="function")throw Error(he(280));var t=e.stateNode;t&&(t=Fu(t),Zf(e.stateNode,e.type,t))}}function cx(e){na?ra?ra.push(e):ra=[e]:na=e}function ux(){if(na){var e=na,t=ra;if(ra=na=null,wg(e),t)for(e=0;e>>=0,e===0?32:31-(zC(e)/VC|0)|0}var Jl=64,ec=4194304;function ws(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Qc(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=n&268435455;if(a!==0){var s=a&~o;s!==0?r=ws(s):(i&=a,i!==0&&(r=ws(i)))}else a=n&~o,a!==0?r=ws(a):i!==0&&(r=ws(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function El(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-pr(t),e[t]=n}function YC(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Is),Ig=" ",Og=!1;function Dx(e,t){switch(e){case"keyup":return Sk.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ix(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ui=!1;function wk(e,t){switch(e){case"compositionend":return Ix(t);case"keypress":return t.which!==32?null:(Og=!0,Ig);case"textInput":return e=t.data,e===Ig&&Og?null:e;default:return null}}function Ck(e,t){if(Ui)return e==="compositionend"||!Ch&&Dx(e,t)?(e=Rx(),Rc=Sh=bo=null,Ui=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=jg(n)}}function Lx(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Lx(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function jx(){for(var e=window,t=Hc();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Hc(e.document)}return t}function kh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Ok(e){var t=jx(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Lx(n.ownerDocument.documentElement,n)){if(r!==null&&kh(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=Ng(n,i);var a=Ng(n,r);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Hi=null,op=null,$s=null,ip=!1;function Fg(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ip||Hi==null||Hi!==Hc(r)||(r=Hi,"selectionStart"in r&&kh(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),$s&&el($s,r)||($s=r,r=Zc(op,"onSelect"),0Gi||(e.current=dp[Gi],dp[Gi]=null,Gi--)}function dt(e,t){Gi++,dp[Gi]=e.current,e.current=t}var Lo={},sn=Bo(Lo),gn=Bo(!1),di=Lo;function ga(e,t){var n=e.type.contextTypes;if(!n)return Lo;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function yn(e){return e=e.childContextTypes,e!=null}function eu(){ht(gn),ht(sn)}function Hg(e,t,n){if(sn.current!==Lo)throw Error(he(168));dt(sn,t),dt(gn,n)}function Hx(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(he(108,MC(e)||"Unknown",o));return Ct({},n,r)}function tu(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Lo,di=sn.current,dt(sn,e),dt(gn,gn.current),!0}function Yg(e,t,n){var r=e.stateNode;if(!r)throw Error(he(169));n?(e=Hx(e,t,di),r.__reactInternalMemoizedMergedChildContext=e,ht(gn),ht(sn),dt(sn,e)):ht(gn),dt(gn,n)}var Gr=null,Bu=!1,cf=!1;function Yx(e){Gr===null?Gr=[e]:Gr.push(e)}function Uk(e){Bu=!0,Yx(e)}function _o(){if(!cf&&Gr!==null){cf=!0;var e=0,t=rt;try{var n=Gr;for(rt=1;e>=a,o-=a,Qr=1<<32-pr(t)+o|n<E?($=M,M=null):$=M.sibling;var w=f(p,M,v[E],S);if(w===null){M===null&&(M=$);break}e&&M&&w.alternate===null&&t(p,M),m=i(w,m,E),k===null?P=w:k.sibling=w,k=w,M=$}if(E===v.length)return n(p,M),St&&Qo(p,E),P;if(M===null){for(;EE?($=M,M=null):$=M.sibling;var R=f(p,M,w.value,S);if(R===null){M===null&&(M=$);break}e&&M&&R.alternate===null&&t(p,M),m=i(R,m,E),k===null?P=R:k.sibling=R,k=R,M=$}if(w.done)return n(p,M),St&&Qo(p,E),P;if(M===null){for(;!w.done;E++,w=v.next())w=d(p,w.value,S),w!==null&&(m=i(w,m,E),k===null?P=w:k.sibling=w,k=w);return St&&Qo(p,E),P}for(M=r(p,M);!w.done;E++,w=v.next())w=y(M,p,E,w.value,S),w!==null&&(e&&w.alternate!==null&&M.delete(w.key===null?E:w.key),m=i(w,m,E),k===null?P=w:k.sibling=w,k=w);return e&&M.forEach(function(L){return t(p,L)}),St&&Qo(p,E),P}function C(p,m,v,S){if(typeof v=="object"&&v!==null&&v.type===Wi&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case Xl:e:{for(var P=v.key,k=m;k!==null;){if(k.key===P){if(P=v.type,P===Wi){if(k.tag===7){n(p,k.sibling),m=o(k,v.props.children),m.return=p,p=m;break e}}else if(k.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===yo&&Qg(P)===k.type){n(p,k.sibling),m=o(k,v.props),m.ref=ns(p,k,v),m.return=p,p=m;break e}n(p,k);break}else t(p,k);k=k.sibling}v.type===Wi?(m=si(v.props.children,p.mode,S,v.key),m.return=p,p=m):(S=jc(v.type,v.key,v.props,null,p.mode,S),S.ref=ns(p,m,v),S.return=p,p=S)}return a(p);case Vi:e:{for(k=v.key;m!==null;){if(m.key===k)if(m.tag===4&&m.stateNode.containerInfo===v.containerInfo&&m.stateNode.implementation===v.implementation){n(p,m.sibling),m=o(m,v.children||[]),m.return=p,p=m;break e}else{n(p,m);break}else t(p,m);m=m.sibling}m=yf(v,p.mode,S),m.return=p,p=m}return a(p);case yo:return k=v._init,C(p,m,k(v._payload),S)}if(bs(v))return g(p,m,v,S);if(qa(v))return x(p,m,v,S);sc(p,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,m!==null&&m.tag===6?(n(p,m.sibling),m=o(m,v),m.return=p,p=m):(n(p,m),m=gf(v,p.mode,S),m.return=p,p=m),a(p)):n(p,m)}return C}var va=Xx(!0),qx=Xx(!1),ou=Bo(null),iu=null,qi=null,Rh=null;function Th(){Rh=qi=iu=null}function Dh(e){var t=ou.current;ht(ou),e._currentValue=t}function hp(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function ia(e,t){iu=e,Rh=qi=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(mn=!0),e.firstContext=null)}function Jn(e){var t=e._currentValue;if(Rh!==e)if(e={context:e,memoizedValue:t,next:null},qi===null){if(iu===null)throw Error(he(308));qi=e,iu.dependencies={lanes:0,firstContext:e}}else qi=qi.next=e;return t}var ni=null;function Ih(e){ni===null?ni=[e]:ni.push(e)}function Zx(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Ih(t)):(n.next=o.next,o.next=n),t.interleaved=n,no(e,r)}function no(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var vo=!1;function Oh(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Jx(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function qr(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function To(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Ge&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,no(e,n)}return o=r.interleaved,o===null?(t.next=t,Ih(r)):(t.next=o.next,o.next=t),r.interleaved=t,no(e,n)}function Dc(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,yh(e,n)}}function Xg(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=a:i=i.next=a,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function au(e,t,n,r){var o=e.updateQueue;vo=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var l=s,c=l.next;l.next=null,a===null?i=c:a.next=c,a=l;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==a&&(s===null?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(i!==null){var d=o.baseState;a=0,u=c=l=null,s=i;do{var f=s.lane,y=s.eventTime;if((r&f)===f){u!==null&&(u=u.next={eventTime:y,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var g=e,x=s;switch(f=t,y=n,x.tag){case 1:if(g=x.payload,typeof g=="function"){d=g.call(y,d,f);break e}d=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=x.payload,f=typeof g=="function"?g.call(y,d,f):g,f==null)break e;d=Ct({},d,f);break e;case 2:vo=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,f=o.effects,f===null?o.effects=[s]:f.push(s))}else y={eventTime:y,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(c=u=y,l=d):u=u.next=y,a|=f;if(s=s.next,s===null){if(s=o.shared.pending,s===null)break;f=s,s=f.next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}while(!0);if(u===null&&(l=d),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=u,t=o.shared.interleaved,t!==null){o=t;do a|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);hi|=a,e.lanes=a,e.memoizedState=d}}function qg(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=df.transition;df.transition={};try{e(!1),t()}finally{rt=n,df.transition=r}}function gS(){return er().memoizedState}function Gk(e,t,n){var r=Io(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},yS(e))vS(t,n);else if(n=Zx(e,t,n,r),n!==null){var o=cn();hr(n,e,r,o),xS(n,t,r)}}function Qk(e,t,n){var r=Io(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(yS(e))vS(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,s=i(a,n);if(o.hasEagerState=!0,o.eagerState=s,mr(s,a)){var l=t.interleaved;l===null?(o.next=o,Ih(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=Zx(e,t,o,r),n!==null&&(o=cn(),hr(n,e,r,o),xS(n,t,r))}}function yS(e){var t=e.alternate;return e===wt||t!==null&&t===wt}function vS(e,t){As=lu=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function xS(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,yh(e,n)}}var cu={readContext:Jn,useCallback:tn,useContext:tn,useEffect:tn,useImperativeHandle:tn,useInsertionEffect:tn,useLayoutEffect:tn,useMemo:tn,useReducer:tn,useRef:tn,useState:tn,useDebugValue:tn,useDeferredValue:tn,useTransition:tn,useMutableSource:tn,useSyncExternalStore:tn,useId:tn,unstable_isNewReconciler:!1},Xk={readContext:Jn,useCallback:function(e,t){return Er().memoizedState=[e,t===void 0?null:t],e},useContext:Jn,useEffect:Jg,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Oc(4194308,4,dS.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Oc(4194308,4,e,t)},useInsertionEffect:function(e,t){return Oc(4,2,e,t)},useMemo:function(e,t){var n=Er();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Er();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Gk.bind(null,wt,e),[r.memoizedState,e]},useRef:function(e){var t=Er();return e={current:e},t.memoizedState=e},useState:Zg,useDebugValue:_h,useDeferredValue:function(e){return Er().memoizedState=e},useTransition:function(){var e=Zg(!1),t=e[0];return e=Kk.bind(null,e[1]),Er().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=wt,o=Er();if(St){if(n===void 0)throw Error(he(407));n=n()}else{if(n=t(),Yt===null)throw Error(he(349));pi&30||rS(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Jg(iS.bind(null,r,i,e),[e]),r.flags|=2048,ll(9,oS.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Er(),t=Yt.identifierPrefix;if(St){var n=Xr,r=Qr;n=(r&~(1<<32-pr(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=al++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[Dr]=t,e[rl]=r,TS(e,t,!1,!1),t.stateNode=e;e:{switch(a=Xf(n,r),n){case"dialog":pt("cancel",e),pt("close",e),o=r;break;case"iframe":case"object":case"embed":pt("load",e),o=r;break;case"video":case"audio":for(o=0;oba&&(t.flags|=128,r=!0,rs(i,!1),t.lanes=4194304)}else{if(!r)if(e=su(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),rs(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!St)return nn(t),null}else 2*Dt()-i.renderingStartTime>ba&&n!==1073741824&&(t.flags|=128,r=!0,rs(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(n=i.last,n!==null?n.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Dt(),t.sibling=null,n=bt.current,dt(bt,r?n&1|2:n&1),t):(nn(t),null);case 22:case 23:return Yh(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Pn&1073741824&&(nn(t),t.subtreeFlags&6&&(t.flags|=8192)):nn(t),null;case 24:return null;case 25:return null}throw Error(he(156,t.tag))}function oP(e,t){switch(Eh(t),t.tag){case 1:return yn(t.type)&&eu(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return xa(),ht(gn),ht(sn),Lh(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Ah(t),null;case 13:if(ht(bt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(he(340));ya()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ht(bt),null;case 4:return xa(),null;case 10:return Dh(t.type._context),null;case 22:case 23:return Yh(),null;case 24:return null;default:return null}}var cc=!1,on=!1,iP=typeof WeakSet=="function"?WeakSet:Set,be=null;function Zi(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Rt(e,t,r)}else n.current=null}function Cp(e,t,n){try{n()}catch(r){Rt(e,t,r)}}var uy=!1;function aP(e,t){if(ap=Xc,e=jx(),kh(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var a=0,s=-1,l=-1,c=0,u=0,d=e,f=null;t:for(;;){for(var y;d!==n||o!==0&&d.nodeType!==3||(s=a+o),d!==i||r!==0&&d.nodeType!==3||(l=a+r),d.nodeType===3&&(a+=d.nodeValue.length),(y=d.firstChild)!==null;)f=d,d=y;for(;;){if(d===e)break t;if(f===n&&++c===o&&(s=a),f===i&&++u===r&&(l=a),(y=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=y}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(sp={focusedElem:e,selectionRange:n},Xc=!1,be=t;be!==null;)if(t=be,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,be=e;else for(;be!==null;){t=be;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var x=g.memoizedProps,C=g.memoizedState,p=t.stateNode,m=p.getSnapshotBeforeUpdate(t.elementType===t.type?x:cr(t.type,x),C);p.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(he(163))}}catch(S){Rt(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,be=e;break}be=t.return}return g=uy,uy=!1,g}function Ls(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Cp(t,n,i)}o=o.next}while(o!==r)}}function Vu(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function kp(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function OS(e){var t=e.alternate;t!==null&&(e.alternate=null,OS(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Dr],delete t[rl],delete t[up],delete t[Vk],delete t[Wk])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function $S(e){return e.tag===5||e.tag===3||e.tag===4}function dy(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||$S(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Pp(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Jc));else if(r!==4&&(e=e.child,e!==null))for(Pp(e,t,n),e=e.sibling;e!==null;)Pp(e,t,n),e=e.sibling}function Ep(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Ep(e,t,n),e=e.sibling;e!==null;)Ep(e,t,n),e=e.sibling}var Xt=null,ur=!1;function po(e,t,n){for(n=n.child;n!==null;)AS(e,t,n),n=n.sibling}function AS(e,t,n){if(Ar&&typeof Ar.onCommitFiberUnmount=="function")try{Ar.onCommitFiberUnmount(Au,n)}catch{}switch(n.tag){case 5:on||Zi(n,t);case 6:var r=Xt,o=ur;Xt=null,po(e,t,n),Xt=r,ur=o,Xt!==null&&(ur?(e=Xt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Xt.removeChild(n.stateNode));break;case 18:Xt!==null&&(ur?(e=Xt,n=n.stateNode,e.nodeType===8?lf(e.parentNode,n):e.nodeType===1&&lf(e,n),Zs(e)):lf(Xt,n.stateNode));break;case 4:r=Xt,o=ur,Xt=n.stateNode.containerInfo,ur=!0,po(e,t,n),Xt=r,ur=o;break;case 0:case 11:case 14:case 15:if(!on&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&Cp(n,t,a),o=o.next}while(o!==r)}po(e,t,n);break;case 1:if(!on&&(Zi(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Rt(n,t,s)}po(e,t,n);break;case 21:po(e,t,n);break;case 22:n.mode&1?(on=(r=on)||n.memoizedState!==null,po(e,t,n),on=r):po(e,t,n);break;default:po(e,t,n)}}function fy(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new iP),t.forEach(function(r){var o=mP.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function sr(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=a),r&=~i}if(r=o,r=Dt()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*lP(r/1960))-r,10e?16:e,wo===null)var r=!1;else{if(e=wo,wo=null,fu=0,Ge&6)throw Error(he(331));var o=Ge;for(Ge|=4,be=e.current;be!==null;){var i=be,a=i.child;if(be.flags&16){var s=i.deletions;if(s!==null){for(var l=0;lDt()-Uh?ai(e,0):Wh|=n),vn(e,t)}function VS(e,t){t===0&&(e.mode&1?(t=ec,ec<<=1,!(ec&130023424)&&(ec=4194304)):t=1);var n=cn();e=no(e,t),e!==null&&(El(e,t,n),vn(e,n))}function hP(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),VS(e,n)}function mP(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(he(314))}r!==null&&r.delete(t),VS(e,n)}var WS;WS=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||gn.current)mn=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return mn=!1,nP(e,t,n);mn=!!(e.flags&131072)}else mn=!1,St&&t.flags&1048576&&Kx(t,ru,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;$c(e,t),e=t.pendingProps;var o=ga(t,sn.current);ia(t,n),o=Nh(null,t,r,e,o,n);var i=Fh();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,yn(r)?(i=!0,tu(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Oh(t),o.updater=zu,t.stateNode=o,o._reactInternals=t,gp(t,r,e,n),t=xp(null,t,r,!0,i,n)):(t.tag=0,St&&i&&Ph(t),ln(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch($c(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=yP(r),e=cr(r,e),o){case 0:t=vp(null,t,r,e,n);break e;case 1:t=sy(null,t,r,e,n);break e;case 11:t=iy(null,t,r,e,n);break e;case 14:t=ay(null,t,r,cr(r.type,e),n);break e}throw Error(he(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:cr(r,o),vp(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:cr(r,o),sy(e,t,r,o,n);case 3:e:{if(ES(t),e===null)throw Error(he(387));r=t.pendingProps,i=t.memoizedState,o=i.element,Jx(e,t),au(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Sa(Error(he(423)),t),t=ly(e,t,r,n,o);break e}else if(r!==o){o=Sa(Error(he(424)),t),t=ly(e,t,r,n,o);break e}else for(In=Ro(t.stateNode.containerInfo.firstChild),On=t,St=!0,fr=null,n=qx(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ya(),r===o){t=ro(e,t,n);break e}ln(e,t,r,n)}t=t.child}return t;case 5:return eS(t),e===null&&pp(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,lp(r,o)?a=null:i!==null&&lp(r,i)&&(t.flags|=32),PS(e,t),ln(e,t,a,n),t.child;case 6:return e===null&&pp(t),null;case 13:return MS(e,t,n);case 4:return $h(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=va(t,null,r,n):ln(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:cr(r,o),iy(e,t,r,o,n);case 7:return ln(e,t,t.pendingProps,n),t.child;case 8:return ln(e,t,t.pendingProps.children,n),t.child;case 12:return ln(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,dt(ou,r._currentValue),r._currentValue=a,i!==null)if(mr(i.value,a)){if(i.children===o.children&&!gn.current){t=ro(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){a=i.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=qr(-1,n&-n),l.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),hp(i.return,n,t),s.lanes|=n;break}l=l.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(he(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),hp(a,n,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}ln(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,ia(t,n),o=Jn(o),r=r(o),t.flags|=1,ln(e,t,r,n),t.child;case 14:return r=t.type,o=cr(r,t.pendingProps),o=cr(r.type,o),ay(e,t,r,o,n);case 15:return CS(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:cr(r,o),$c(e,t),t.tag=1,yn(r)?(e=!0,tu(t)):e=!1,ia(t,n),SS(t,r,o),gp(t,r,o,n),xp(null,t,r,!0,e,n);case 19:return RS(e,t,n);case 22:return kS(e,t,n)}throw Error(he(156,t.tag))};function US(e,t){return yx(e,t)}function gP(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Qn(e,t,n,r){return new gP(e,t,n,r)}function Gh(e){return e=e.prototype,!(!e||!e.isReactComponent)}function yP(e){if(typeof e=="function")return Gh(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ph)return 11;if(e===hh)return 14}return 2}function Oo(e,t){var n=e.alternate;return n===null?(n=Qn(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function jc(e,t,n,r,o,i){var a=2;if(r=e,typeof e=="function")Gh(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Wi:return si(n.children,o,i,t);case fh:a=8,o|=8;break;case _f:return e=Qn(12,n,t,o|2),e.elementType=_f,e.lanes=i,e;case zf:return e=Qn(13,n,t,o),e.elementType=zf,e.lanes=i,e;case Vf:return e=Qn(19,n,t,o),e.elementType=Vf,e.lanes=i,e;case ex:return Uu(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Z0:a=10;break e;case J0:a=9;break e;case ph:a=11;break e;case hh:a=14;break e;case yo:a=16,r=null;break e}throw Error(he(130,e==null?e:typeof e,""))}return t=Qn(a,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function si(e,t,n,r){return e=Qn(7,e,r,t),e.lanes=n,e}function Uu(e,t,n,r){return e=Qn(22,e,r,t),e.elementType=ex,e.lanes=n,e.stateNode={isHidden:!1},e}function gf(e,t,n){return e=Qn(6,e,null,t),e.lanes=n,e}function yf(e,t,n){return t=Qn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function vP(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Xd(0),this.expirationTimes=Xd(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Xd(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Qh(e,t,n,r,o,i,a,s,l){return e=new vP(e,t,n,s,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Qn(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Oh(i),e}function xP(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(GS)}catch(e){console.error(e)}}GS(),G0.exports=Nn;var Qu=G0.exports;const ks=so(Qu),kP=j0({__proto__:null,default:ks},[Qu]);var QS,Sy=Qu;QS=Sy.createRoot,Sy.hydrateRoot;const PP="/timetrekah-frontend/logo.png",ul={black:"#000",white:"#fff"},Oi={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},$i={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Ai={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Li={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},ji={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},is={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},EP={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"};function oo(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}const qn="$$material";function z(){return z=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?qt(_a,--bn):0,wa--,jt===10&&(wa=1,qu--),jt}function $n(){return jt=bn2||fl(jt)>3?"":" "}function WP(e,t){for(;--t&&$n()&&!(jt<48||jt>102||jt>57&&jt<65||jt>70&&jt<97););return Dl(e,Nc()+(t<6&&jr()==32&&$n()==32))}function Op(e){for(;$n();)switch(jt){case e:return bn;case 34:case 39:e!==34&&e!==39&&Op(jt);break;case 40:e===41&&Op(e);break;case 92:$n();break}return bn}function UP(e,t){for(;$n()&&e+jt!==57;)if(e+jt===84&&jr()===47)break;return"/*"+Dl(t,bn-1)+"*"+Xu(e===47?e:$n())}function HP(e){for(;!fl(jr());)$n();return Dl(e,bn)}function YP(e){return nb(Bc("",null,null,null,[""],e=tb(e),0,[0],e))}function Bc(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,f=0,y=0,g=0,x=1,C=1,p=1,m=0,v="",S=o,P=i,k=r,M=v;C;)switch(g=m,m=$n()){case 40:if(g!=108&&qt(M,d-1)==58){Ip(M+=et(Fc(m),"&","&\f"),"&\f")!=-1&&(p=-1);break}case 34:case 39:case 91:M+=Fc(m);break;case 9:case 10:case 13:case 32:M+=VP(g);break;case 92:M+=WP(Nc()-1,7);continue;case 47:switch(jr()){case 42:case 47:fc(KP(UP($n(),Nc()),t,n),l);break;default:M+="/"}break;case 123*x:s[c++]=Mr(M)*p;case 125*x:case 59:case 0:switch(m){case 0:case 125:C=0;case 59+u:p==-1&&(M=et(M,/\f/g,"")),y>0&&Mr(M)-d&&fc(y>32?wy(M+";",r,n,d-1):wy(et(M," ","")+";",r,n,d-2),l);break;case 59:M+=";";default:if(fc(k=by(M,t,n,c,u,o,s,v,S=[],P=[],d),i),m===123)if(u===0)Bc(M,t,k,k,S,i,d,s,P);else switch(f===99&&qt(M,3)===110?100:f){case 100:case 108:case 109:case 115:Bc(e,k,k,r&&fc(by(e,k,k,0,0,o,s,v,o,S=[],d),P),o,P,d,s,r?S:P);break;default:Bc(M,k,k,k,[""],P,0,s,P)}}c=u=y=0,x=p=1,v=M="",d=a;break;case 58:d=1+Mr(M),y=g;default:if(x<1){if(m==123)--x;else if(m==125&&x++==0&&zP()==125)continue}switch(M+=Xu(m),m*x){case 38:p=u>0?1:(M+="\f",-1);break;case 44:s[c++]=(Mr(M)-1)*p,p=1;break;case 64:jr()===45&&(M+=Fc($n())),f=jr(),u=d=Mr(v=M+=HP(Nc())),m++;break;case 45:g===45&&Mr(M)==2&&(x=0)}}return i}function by(e,t,n,r,o,i,a,s,l,c,u){for(var d=o-1,f=o===0?i:[""],y=tm(f),g=0,x=0,C=0;g0?f[p]+" "+m:et(m,/&\f/g,f[p])))&&(l[C++]=v);return Zu(e,t,n,o===0?Jh:s,l,c,u)}function KP(e,t,n){return Zu(e,t,n,qS,Xu(_P()),dl(e,2,-2),0)}function wy(e,t,n,r){return Zu(e,t,n,em,dl(e,0,r),dl(e,r+1,-1),r)}function sa(e,t){for(var n="",r=tm(e),o=0;o6)switch(qt(e,t+1)){case 109:if(qt(e,t+4)!==45)break;case 102:return et(e,/(.+:)(.+)-([^]+)/,"$1"+Je+"$2-$3$1"+mu+(qt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Ip(e,"stretch")?rb(et(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(qt(e,t+1)!==115)break;case 6444:switch(qt(e,Mr(e)-3-(~Ip(e,"!important")&&10))){case 107:return et(e,":",":"+Je)+e;case 101:return et(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Je+(qt(e,14)===45?"inline-":"")+"box$3$1"+Je+"$2$3$1"+rn+"$2box$3")+e}break;case 5936:switch(qt(e,t+11)){case 114:return Je+e+rn+et(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Je+e+rn+et(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Je+e+rn+et(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Je+e+rn+e+e}return e}var nE=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case em:t.return=rb(t.value,t.length);break;case ZS:return sa([as(t,{value:et(t.value,"@","@"+Je)})],o);case Jh:if(t.length)return BP(t.props,function(i){switch(FP(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return sa([as(t,{props:[et(i,/:(read-\w+)/,":"+mu+"$1")]})],o);case"::placeholder":return sa([as(t,{props:[et(i,/:(plac\w+)/,":"+Je+"input-$1")]}),as(t,{props:[et(i,/:(plac\w+)/,":"+mu+"$1")]}),as(t,{props:[et(i,/:(plac\w+)/,rn+"input-$1")]})],o)}return""})}},rE=[nE],oE=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(x){var C=x.getAttribute("data-emotion");C.indexOf(" ")!==-1&&(document.head.appendChild(x),x.setAttribute("data-s",""))})}var o=t.stylisPlugins||rE,i={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(x){for(var C=x.getAttribute("data-emotion").split(" "),p=1;p=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 gE={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},yE=!1,vE=/[A-Z]|^ms/g,xE=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ub=function(t){return t.charCodeAt(1)===45},ky=function(t){return t!=null&&typeof t!="boolean"},vf=XS(function(e){return ub(e)?e:e.replace(vE,"-$&").toLowerCase()}),Py=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(xE,function(r,o,i){return Rr={name:o,styles:i,next:Rr},o})}return gE[t]!==1&&!ub(t)&&typeof n=="number"&&n!==0?n+"px":n},SE="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function pl(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 Rr={name:o.name,styles:o.styles,next:Rr},o.name;var i=n;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)Rr={name:a.name,styles:a.styles,next:Rr},a=a.next;var s=i.styles+";";return s}return bE(e,t,n)}case"function":{if(e!==void 0){var l=Rr,c=n(e);return Rr=l,pl(e,t,c)}break}}var u=n;if(t==null)return u;var d=t[u];return d!==void 0?d:u}function bE(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o96?PE:EE},Ty=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(a){return t.__emotion_forwardProp(a)&&i(a)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},ME=!1,RE=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return lb(n,r,o),CE(function(){return cb(n,r,o)}),null},TE=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,a;n!==void 0&&(i=n.label,a=n.target);var s=Ty(t,n,r),l=s||Ry(o),c=!l("as");return function(){var u=arguments,d=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&d.push("label:"+i+";"),u[0]==null||u[0].raw===void 0)d.push.apply(d,u);else{d.push(u[0][0]);for(var f=u.length,y=1;yt(jE(o)?n:o):t;return b.jsx(kE,{styles:r})}/** - * @mui/styled-engine v6.2.1 - * - * @license MIT - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */function vb(e,t){return $p(e,t)}function NE(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const Dy=[];function Iy(e){return Dy[0]=e,cd(Dy)}function Ir(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 xb(e){if(h.isValidElement(e)||!Ir(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=xb(e[n])}),t}function Kt(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return Ir(e)&&Ir(t)&&Object.keys(t).forEach(o=>{h.isValidElement(t[o])?r[o]=t[o]:Ir(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Ir(e[o])?r[o]=Kt(e[o],t[o],n):n.clone?r[o]=Ir(t[o])?xb(t[o]):t[o]:r[o]=t[o]}),r}const FE=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 BE(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,i=FE(t),a=Object.keys(i);function s(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n})`}function l(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-r/100}${n})`}function c(f,y){const g=a.indexOf(y);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n}) and (max-width:${(g!==-1&&typeof t[a[g]]=="number"?t[a[g]]:y)-r/100}${n})`}function u(f){return a.indexOf(f)+1r.startsWith("@container")).sort((r,o)=>{var a,s;const i=/min-width:\s*([0-9.]+)/;return+(((a=r.match(i))==null?void 0:a[1])||0)-+(((s=o.match(i))==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 zE(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function VE(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,o]=n,i=Number.isNaN(+r)?r||0:+r;return e.containerQueries(o).up(i)}function WE(e){const t=(i,a)=>i.replace("@media",a?`@container ${a}`:"@container");function n(i,a){i.up=(...s)=>t(e.breakpoints.up(...s),a),i.down=(...s)=>t(e.breakpoints.down(...s),a),i.between=(...s)=>t(e.breakpoints.between(...s),a),i.only=(...s)=>t(e.breakpoints.only(...s),a),i.not=(...s)=>{const l=t(e.breakpoints.not(...s),a);return l.includes("not all and")?l.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):l}}const r={},o=i=>(n(r,i),r);return n(o),{...e,containerQueries:o}}const UE={borderRadius:4};function Fs(e,t){return t?Kt(e,t,{clone:!1}):e}const dd={xs:0,sm:600,md:900,lg:1200,xl:1536},Oy={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${dd[e]}px)`},HE={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:dd[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function gr(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||Oy;return t.reduce((a,s,l)=>(a[i.up(i.keys[l])]=n(t[l]),a),{})}if(typeof t=="object"){const i=r.breakpoints||Oy;return Object.keys(t).reduce((a,s)=>{if(zE(i.keys,s)){const l=VE(r.containerQueries?r:HE,s);l&&(a[l]=n(t[s],s))}else if(Object.keys(i.values||dd).includes(s)){const l=i.up(s);a[l]=n(t[s],s)}else{const l=s;a[l]=t[l]}return a},{})}return n(t)}function Sb(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function bb(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function YE(e,...t){const n=Sb(e),r=[n,...t].reduce((o,i)=>Kt(o,i),{});return bb(Object.keys(n),r)}function KE(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((o,i)=>{i{e[o]!=null&&(n[o]=!0)}),n}function xf({values:e,breakpoints:t,base:n}){const r=n||KE(e,t),o=Object.keys(r);if(o.length===0)return e;let i;return o.reduce((a,s,l)=>(Array.isArray(e)?(a[s]=e[l]!=null?e[l]:e[i],i=l):typeof e=="object"?(a[s]=e[s]!=null?e[s]:e[i],i=s):a[s]=e,a),{})}function ce(e){if(typeof e!="string")throw new Error(oo(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Ca(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 gu(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Ca(e,n)||r,t&&(o=t(o,r,e)),o}function Ot(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=a=>{if(a[t]==null)return null;const s=a[t],l=a.theme,c=Ca(l,r)||{};return gr(a,s,d=>{let f=gu(c,o,d);return d===f&&typeof d=="string"&&(f=gu(c,o,`${t}${d==="default"?"":ce(d)}`,d)),n===!1?f:{[n]:f}})};return i.propTypes={},i.filterProps=[t],i}function GE(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const QE={m:"margin",p:"padding"},XE={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},$y={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},qE=GE(e=>{if(e.length>2)if($y[e])e=$y[e];else return[e];const[t,n]=e.split(""),r=QE[t],o=XE[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),am=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],sm=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...am,...sm];function Ol(e,t,n,r){const o=Ca(e,t,!0)??n;return typeof o=="number"||typeof o=="string"?i=>typeof i=="string"?i:typeof o=="string"?`calc(${i} * ${o})`:o*i:Array.isArray(o)?i=>{if(typeof i=="string")return i;const a=Math.abs(i),s=o[a];return i>=0?s:typeof s=="number"?-s:`-${s}`}:typeof o=="function"?o:()=>{}}function fd(e){return Ol(e,"spacing",8)}function gi(e,t){return typeof t=="string"||t==null?t:e(t)}function ZE(e,t){return n=>e.reduce((r,o)=>(r[o]=gi(t,n),r),{})}function JE(e,t,n,r){if(!t.includes(n))return null;const o=qE(n),i=ZE(o,r),a=e[n];return gr(e,a,i)}function wb(e,t){const n=fd(e.theme);return Object.keys(e).map(r=>JE(e,t,r,n)).reduce(Fs,{})}function Et(e){return wb(e,am)}Et.propTypes={};Et.filterProps=am;function Mt(e){return wb(e,sm)}Mt.propTypes={};Mt.filterProps=sm;function Cb(e=8,t=fd({spacing:e})){if(e.mui)return e;const n=(...r)=>(r.length===0?[1]:r).map(i=>{const a=t(i);return typeof a=="number"?`${a}px`:a}).join(" ");return n.mui=!0,n}function pd(...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]?Fs(o,t[i](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function Gn(e){return typeof e!="number"?e:`${e}px solid`}function or(e,t){return Ot({prop:e,themeKey:"borders",transform:t})}const eM=or("border",Gn),tM=or("borderTop",Gn),nM=or("borderRight",Gn),rM=or("borderBottom",Gn),oM=or("borderLeft",Gn),iM=or("borderColor"),aM=or("borderTopColor"),sM=or("borderRightColor"),lM=or("borderBottomColor"),cM=or("borderLeftColor"),uM=or("outline",Gn),dM=or("outlineColor"),hd=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Ol(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:gi(t,r)});return gr(e,e.borderRadius,n)}return null};hd.propTypes={};hd.filterProps=["borderRadius"];pd(eM,tM,nM,rM,oM,iM,aM,sM,lM,cM,hd,uM,dM);const md=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Ol(e.theme,"spacing",8),n=r=>({gap:gi(t,r)});return gr(e,e.gap,n)}return null};md.propTypes={};md.filterProps=["gap"];const gd=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Ol(e.theme,"spacing",8),n=r=>({columnGap:gi(t,r)});return gr(e,e.columnGap,n)}return null};gd.propTypes={};gd.filterProps=["columnGap"];const yd=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Ol(e.theme,"spacing",8),n=r=>({rowGap:gi(t,r)});return gr(e,e.rowGap,n)}return null};yd.propTypes={};yd.filterProps=["rowGap"];const fM=Ot({prop:"gridColumn"}),pM=Ot({prop:"gridRow"}),hM=Ot({prop:"gridAutoFlow"}),mM=Ot({prop:"gridAutoColumns"}),gM=Ot({prop:"gridAutoRows"}),yM=Ot({prop:"gridTemplateColumns"}),vM=Ot({prop:"gridTemplateRows"}),xM=Ot({prop:"gridTemplateAreas"}),SM=Ot({prop:"gridArea"});pd(md,gd,yd,fM,pM,hM,mM,gM,yM,vM,xM,SM);function la(e,t){return t==="grey"?t:e}const bM=Ot({prop:"color",themeKey:"palette",transform:la}),wM=Ot({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:la}),CM=Ot({prop:"backgroundColor",themeKey:"palette",transform:la});pd(bM,wM,CM);function Rn(e){return e<=1&&e!==0?`${e*100}%`:e}const kM=Ot({prop:"width",transform:Rn}),lm=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var o,i,a,s,l;const r=((a=(i=(o=e.theme)==null?void 0:o.breakpoints)==null?void 0:i.values)==null?void 0:a[n])||dd[n];return r?((l=(s=e.theme)==null?void 0:s.breakpoints)==null?void 0:l.unit)!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:Rn(n)}};return gr(e,e.maxWidth,t)}return null};lm.filterProps=["maxWidth"];const PM=Ot({prop:"minWidth",transform:Rn}),EM=Ot({prop:"height",transform:Rn}),MM=Ot({prop:"maxHeight",transform:Rn}),RM=Ot({prop:"minHeight",transform:Rn});Ot({prop:"size",cssProperty:"width",transform:Rn});Ot({prop:"size",cssProperty:"height",transform:Rn});const TM=Ot({prop:"boxSizing"});pd(kM,lm,PM,EM,MM,RM,TM);const $l={border:{themeKey:"borders",transform:Gn},borderTop:{themeKey:"borders",transform:Gn},borderRight:{themeKey:"borders",transform:Gn},borderBottom:{themeKey:"borders",transform:Gn},borderLeft:{themeKey:"borders",transform:Gn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Gn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:hd},color:{themeKey:"palette",transform:la},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:la},backgroundColor:{themeKey:"palette",transform:la},p:{style:Mt},pt:{style:Mt},pr:{style:Mt},pb:{style:Mt},pl:{style:Mt},px:{style:Mt},py:{style:Mt},padding:{style:Mt},paddingTop:{style:Mt},paddingRight:{style:Mt},paddingBottom:{style:Mt},paddingLeft:{style:Mt},paddingX:{style:Mt},paddingY:{style:Mt},paddingInline:{style:Mt},paddingInlineStart:{style:Mt},paddingInlineEnd:{style:Mt},paddingBlock:{style:Mt},paddingBlockStart:{style:Mt},paddingBlockEnd:{style:Mt},m:{style:Et},mt:{style:Et},mr:{style:Et},mb:{style:Et},ml:{style:Et},mx:{style:Et},my:{style:Et},margin:{style:Et},marginTop:{style:Et},marginRight:{style:Et},marginBottom:{style:Et},marginLeft:{style:Et},marginX:{style:Et},marginY:{style:Et},marginInline:{style:Et},marginInlineStart:{style:Et},marginInlineEnd:{style:Et},marginBlock:{style:Et},marginBlockStart:{style:Et},marginBlockEnd:{style:Et},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:md},rowGap:{style:yd},columnGap:{style:gd},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Rn},maxWidth:{style:lm},minWidth:{transform:Rn},height:{transform:Rn},maxHeight:{transform:Rn},minHeight:{transform:Rn},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 DM(...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 IM(e,t){return typeof e=="function"?e(t):e}function OM(){function e(n,r,o,i){const a={[n]:r,theme:o},s=i[n];if(!s)return{[n]:r};const{cssProperty:l=n,themeKey:c,transform:u,style:d}=s;if(r==null)return null;if(c==="typography"&&r==="inherit")return{[n]:r};const f=Ca(o,c)||{};return d?d(a):gr(a,r,g=>{let x=gu(f,u,g);return g===x&&typeof g=="string"&&(x=gu(f,u,`${n}${g==="default"?"":ce(g)}`,g)),l===!1?x:{[l]:x}})}function t(n){const{sx:r,theme:o={}}=n||{};if(!r)return null;const i=o.unstable_sxConfig??$l;function a(s){let l=s;if(typeof s=="function")l=s(o);else if(typeof s!="object")return s;if(!l)return null;const c=Sb(o.breakpoints),u=Object.keys(c);let d=c;return Object.keys(l).forEach(f=>{const y=IM(l[f],o);if(y!=null)if(typeof y=="object")if(i[f])d=Fs(d,e(f,y,o,i));else{const g=gr({theme:o},y,x=>({[f]:x}));DM(g,y)?d[f]=t({sx:y,theme:o}):d=Fs(d,g)}else d=Fs(d,e(f,y,o,i))}),_E(o,bb(u,d))}return Array.isArray(r)?r.map(a):a(r)}return t}const jo=OM();jo.filterProps=["sx"];function $M(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 za(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={},...a}=e,s=BE(n),l=Cb(o);let c=Kt({breakpoints:s,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:l,shape:{...UE,...i}},a);return c=WE(c),c.applyStyles=$M,c=t.reduce((u,d)=>Kt(u,d),c),c.unstable_sxConfig={...$l,...a==null?void 0:a.unstable_sxConfig},c.unstable_sx=function(d){return jo({sx:d,theme:this})},c}function AM(e){return Object.keys(e).length===0}function cm(e=null){const t=h.useContext(ud);return!t||AM(t)?e:t}const LM=za();function Al(e=LM){return cm(e)}function jM({styles:e,themeId:t,defaultTheme:n={}}){const r=Al(n),o=typeof e=="function"?e(t&&r[t]||r):e;return b.jsx(yb,{styles:o})}const NM=e=>{var r;const t={systemProps:{},otherProps:{}},n=((r=e==null?void 0:e.theme)==null?void 0:r.unstable_sxConfig)??$l;return Object.keys(e).forEach(o=>{n[o]?t.systemProps[o]=e[o]:t.otherProps[o]=e[o]}),t};function vd(e){const{sx:t,...n}=e,{systemProps:r,otherProps:o}=NM(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...a)=>{const s=t(...a);return Ir(s)?{...r,...s}:r}:i={...r,...t},{...o,sx:i}}const Ay=e=>e,FM=()=>{let e=Ay;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Ay}}},kb=FM();function Pb(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;ts!=="theme"&&s!=="sx"&&s!=="as"})(jo);return h.forwardRef(function(l,c){const u=Al(n),{className:d,component:f="div",...y}=vd(l);return b.jsx(i,{as:f,ref:c,className:pe(d,o?o(r):r),theme:t&&u[t]||u,...y})})}const _M={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 ye(e,t,n="Mui"){const r=_M[t];return r?`${n}-${r}`:`${kb.generate(e)}-${t}`}function me(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=ye(e,o,n)}),r}function Eb(e){const{variants:t,...n}=e,r={variants:t,style:Iy(n),isProcessed:!0};return r.style===n||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=Iy(o.style))}),r}const zM=za();function _c(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function VM(e){return e?(t,n)=>n[e]:null}function WM(e,t,n){e.theme=HM(e.theme)?n:e.theme[t]||e.theme}function zc(e,t){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(r=>zc(e,r));if(Array.isArray(n==null?void 0:n.variants)){let r;if(n.isProcessed)r=n.style;else{const{variants:o,...i}=n;r=i}return Mb(e,n.variants,[r])}return n!=null&&n.isProcessed?n.style:n}function Mb(e,t,n=[]){var o;let r;e:for(let i=0;i{NE(s,P=>P.filter(k=>k!==jo));const{name:c,slot:u,skipVariantsResolver:d,skipSx:f,overridesResolver:y=VM(KM(u)),...g}=l,x=d!==void 0?d:u&&u!=="Root"&&u!=="root"||!1,C=f||!1;let p=_c;u==="Root"||u==="root"?p=r:u?p=o:YM(s)&&(p=void 0);const m=vb(s,{shouldForwardProp:p,label:UM(),...g}),v=P=>{if(typeof P=="function"&&P.__emotion_real!==P)return function(M){return zc(M,P)};if(Ir(P)){const k=Eb(P);return k.variants?function(E){return zc(E,k)}:k.style}return P},S=(...P)=>{const k=[],M=P.map(v),E=[];if(k.push(i),c&&y&&E.push(function(L){var I,N;const O=(N=(I=L.theme.components)==null?void 0:I[c])==null?void 0:N.styleOverrides;if(!O)return null;const D={};for(const T in O)D[T]=zc(L,O[T]);return y(L,D)}),c&&!x&&E.push(function(L){var D,I;const j=L.theme,O=(I=(D=j==null?void 0:j.components)==null?void 0:D[c])==null?void 0:I.variants;return O?Mb(L,O):null}),C||E.push(jo),Array.isArray(M[0])){const R=M.shift(),L=new Array(k.length).fill(""),j=new Array(E.length).fill("");let O;O=[...L,...R,...j],O.raw=[...L,...R.raw,...j],k.unshift(O)}const $=[...k,...M,...E],w=m(...$);return s.muiName&&(w.muiName=s.muiName),w};return m.withConfig&&(S.withConfig=m.withConfig),S}}function UM(e,t){return void 0}function HM(e){for(const t in e)return!1;return!0}function YM(e){return typeof e=="string"&&e.charCodeAt(0)>96}function KM(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const um=Rb();function hl(e,t){const n={...t};for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){const o=r;if(o==="components"||o==="slots")n[o]={...e[o],...n[o]};else if(o==="componentsProps"||o==="slotProps"){const i=e[o],a=t[o];if(!a)n[o]=i||{};else if(!i)n[o]=a;else{n[o]={...a};for(const s in i)if(Object.prototype.hasOwnProperty.call(i,s)){const l=s;n[o][l]=hl(i[l],a[l])}}}else n[o]===void 0&&(n[o]=e[o])}return n}function Tb(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:hl(t.components[n].defaultProps,r)}function xd({props:e,name:t,defaultTheme:n,themeId:r}){let o=Al(n);return r&&(o=o[r]||o),Tb({theme:o,name:t,props:e})}const Vt=typeof window<"u"?h.useLayoutEffect:h.useEffect;function GM(e,t,n,r,o){const[i,a]=h.useState(()=>o&&n?n(e).matches:r?r(e).matches:t);return Vt(()=>{if(!n)return;const s=n(e),l=()=>{a(s.matches)};return l(),s.addEventListener("change",l),()=>{s.removeEventListener("change",l)}},[e,n]),i}const QM={...Ys},Db=QM.useSyncExternalStore;function XM(e,t,n,r,o){const i=h.useCallback(()=>t,[t]),a=h.useMemo(()=>{if(o&&n)return()=>n(e).matches;if(r!==null){const{matches:u}=r(e);return()=>u}return i},[i,e,r,o,n]),[s,l]=h.useMemo(()=>{if(n===null)return[i,()=>()=>{}];const u=n(e);return[()=>u.matches,d=>(u.addEventListener("change",d),()=>{u.removeEventListener("change",d)})]},[i,n,e]);return Db(l,s,a)}function qM(e={}){const{themeId:t}=e;return function(r,o={}){let i=cm();i&&t&&(i=i[t]||i);const a=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:s=!1,matchMedia:l=a?window.matchMedia:null,ssrMatchMedia:c=null,noSsr:u=!1}=Tb({name:"MuiUseMediaQuery",props:o,theme:i});let d=typeof r=="function"?r(i):r;return d=d.replace(/^@media( ?)/m,""),(Db!==void 0?XM:GM)(d,s,l,c,u)}}function ZM(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function dm(e,t=0,n=1){return ZM(e,t,n)}function JM(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)),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 No(e){if(e.type)return e;if(e.charAt(0)==="#")return No(JM(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(oo(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(oo(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const eR=e=>{const t=No(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},Ps=(e,t)=>{try{return eR(e)}catch{return e}};function Sd(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 Ib(e){e=No(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(c,u=(c+n/30)%12)=>o-i*Math.max(Math.min(u-3,9-u,1),-1);let s="rgb";const l=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(s+="a",l.push(t[3])),Sd({type:s,values:l})}function Ap(e){e=No(e);let t=e.type==="hsl"||e.type==="hsla"?No(Ib(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 tR(e,t){const n=Ap(e),r=Ap(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Be(e,t){return e=No(e),t=dm(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Sd(e)}function pc(e,t,n){try{return Be(e,t)}catch{return e}}function ka(e,t){if(e=No(e),t=dm(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 Sd(e)}function st(e,t,n){try{return ka(e,t)}catch{return e}}function Pa(e,t){if(e=No(e),t=dm(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 Sd(e)}function lt(e,t,n){try{return Pa(e,t)}catch{return e}}function Ob(e,t=.15){return Ap(e)>.5?ka(e,t):Pa(e,t)}function hc(e,t,n){try{return Ob(e,t)}catch{return e}}const $b=Z.oneOfType([Z.func,Z.object]);function Ly(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function fm(e,t=166){let n;function r(...o){const i=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(i,t)}return r.clear=()=>{clearTimeout(n)},r}function Bs(e,t){var n,r,o;return h.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 zt(e){return e&&e.ownerDocument||document}function yr(e){return zt(e).defaultView||window}function Lp(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let jy=0;function nR(e){const[t,n]=h.useState(e),r=e||t;return h.useEffect(()=>{t==null&&(jy+=1,n(`mui-${jy}`))},[t]),r}const rR={...Ys},Ny=rR.useId;function zo(e){if(Ny!==void 0){const t=Ny();return e??t}return nR(e)}function io({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=h.useRef(e!==void 0),[i,a]=h.useState(t),s=o?e:i,l=h.useCallback(c=>{o||a(c)},[]);return[s,l]}function Se(e){const t=h.useRef(e);return Vt(()=>{t.current=e}),h.useRef((...n)=>(0,t.current)(...n)).current}function He(...e){return h.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{Lp(n,t)})},e)}const Fy={};function Ab(e,t){const n=h.useRef(Fy);return n.current===Fy&&(n.current=e(t)),n}const oR=[];function iR(e){h.useEffect(e,oR)}class pm{constructor(){Xa(this,"currentId",null);Xa(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});Xa(this,"disposeEffect",()=>this.clear)}static create(){return new pm}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function hm(){const e=Ab(pm.create).current;return iR(e.disposeEffect),e}function yu(e){try{return e.matches(":focus-visible")}catch{}return!1}function Lb(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}const aR={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function ve(e,t,n=void 0){const r={};for(const o in e){const i=e[o];let a="",s=!0;for(let l=0;lr.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function By(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 Nb(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const y=pe(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),g={...n==null?void 0:n.style,...o==null?void 0:o.style,...r==null?void 0:r.style},x={...n,...o,...r};return y.length>0&&(x.className=y),Object.keys(g).length>0&&(x.style=g),{props:x,internalRef:void 0}}const a=vu({...o,...r}),s=By(r),l=By(o),c=t(a),u=pe(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),d={...c==null?void 0:c.style,...n==null?void 0:n.style,...o==null?void 0:o.style,...r==null?void 0:r.style},f={...c,...n,...l,...s};return u.length>0&&(f.className=u),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:c.ref}}function bd(e,t,n){return typeof e=="function"?e(t,n):e}function Qe(e){var d;const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:o=!1,...i}=e,a=o?{}:bd(n,r),{props:s,internalRef:l}=Nb({...i,externalSlotProps:a}),c=He(l,a==null?void 0:a.ref,(d=e.additionalProps)==null?void 0:d.ref);return jb(t,{...s,ref:c},r)}function ki(e){var t;return parseInt(h.version,10)>=19?((t=e==null?void 0:e.props)==null?void 0:t.ref)||null:(e==null?void 0:e.ref)||null}const Fb=h.createContext(null);function mm(){return h.useContext(Fb)}const lR=typeof Symbol=="function"&&Symbol.for,cR=lR?Symbol.for("mui.nested"):"__THEME_NESTED__";function uR(e,t){return typeof t=="function"?t(e):{...e,...t}}function dR(e){const{children:t,theme:n}=e,r=mm(),o=h.useMemo(()=>{const i=r===null?{...n}:uR(r,n);return i!=null&&(i[cR]=r!==null),i},[n,r]);return b.jsx(Fb.Provider,{value:o,children:t})}const Bb=h.createContext();function fR({value:e,...t}){return b.jsx(Bb.Provider,{value:e??!0,...t})}const ir=()=>h.useContext(Bb)??!1,_b=h.createContext(void 0);function pR({value:e,children:t}){return b.jsx(_b.Provider,{value:e,children:t})}function hR(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?hl(o.defaultProps,r):!o.styleOverrides&&!o.variants?hl(o,r):r}function mR({props:e,name:t}){const n=h.useContext(_b);return hR({props:e,name:t,theme:{components:n}})}const _y={};function zy(e,t,n,r=!1){return h.useMemo(()=>{const o=e&&t[e]||t;if(typeof n=="function"){const i=n(o),a=e?{...t,[e]:i}:i;return r?()=>a:a}return e?{...t,[e]:n}:{...t,...n}},[e,t,n,r])}function zb(e){const{children:t,theme:n,themeId:r}=e,o=cm(_y),i=mm()||_y,a=zy(r,o,n),s=zy(r,i,n,!0),l=(r?a[r]:a).direction==="rtl";return b.jsx(dR,{theme:s,children:b.jsx(ud.Provider,{value:a,children:b.jsx(fR,{value:l,children:b.jsx(pR,{value:r?a[r].components:a.components,children:t})})})})}const Vy={theme:void 0};function gR(e){let t,n;return function(o){let i=t;return(i===void 0||o.theme!==n)&&(Vy.theme=o.theme,i=Eb(e(Vy)),t=i,n=o.theme),i}}const gm="mode",ym="color-scheme",yR="data-color-scheme";function vR(e){const{defaultMode:t="system",defaultLightColorScheme:n="light",defaultDarkColorScheme:r="dark",modeStorageKey:o=gm,colorSchemeStorageKey:i=ym,attribute:a=yR,colorSchemeNode:s="document.documentElement",nonce:l}=e||{};let c="",u=a;if(a==="class"&&(u=".%s"),a==="data"&&(u="[data-%s]"),u.startsWith(".")){const f=u.substring(1);c+=`${s}.classList.remove('${f}'.replace('%s', light), '${f}'.replace('%s', dark)); - ${s}.classList.add('${f}'.replace('%s', colorScheme));`}const d=u.match(/\[([^\]]+)\]/);if(d){const[f,y]=d[1].split("=");y||(c+=`${s}.removeAttribute('${f}'.replace('%s', light)); - ${s}.removeAttribute('${f}'.replace('%s', dark));`),c+=` - ${s}.setAttribute('${f}'.replace('%s', colorScheme), ${y?`${y}.replace('%s', colorScheme)`:'""'});`}else c+=`${s}.setAttribute('${u}', colorScheme);`;return b.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?l:"",dangerouslySetInnerHTML:{__html:`(function() { -try { - let colorScheme = ''; - const mode = localStorage.getItem('${o}') || '${t}'; - const dark = localStorage.getItem('${i}-dark') || '${r}'; - const light = localStorage.getItem('${i}-light') || '${n}'; - if (mode === 'system') { - // handle system mode - const mql = window.matchMedia('(prefers-color-scheme: dark)'); - if (mql.matches) { - colorScheme = dark - } else { - colorScheme = light - } - } - if (mode === 'light') { - colorScheme = light; - } - if (mode === 'dark') { - colorScheme = dark; - } - if (colorScheme) { - ${c} - } -} catch(e){}})();`}},"mui-color-scheme-init")}function Wy(e){if(typeof window<"u"&&typeof window.matchMedia=="function"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function Vb(e,t){if(e.mode==="light"||e.mode==="system"&&e.systemMode==="light")return t("light");if(e.mode==="dark"||e.mode==="system"&&e.systemMode==="dark")return t("dark")}function xR(e){return Vb(e,t=>{if(t==="light")return e.lightColorScheme;if(t==="dark")return e.darkColorScheme})}function Sf(e,t){if(typeof window>"u")return;let n;try{n=localStorage.getItem(e)||void 0,n||localStorage.setItem(e,t)}catch{}return n||t}function SR(e){const{defaultMode:t="light",defaultLightColorScheme:n,defaultDarkColorScheme:r,supportedColorSchemes:o=[],modeStorageKey:i=gm,colorSchemeStorageKey:a=ym,storageWindow:s=typeof window>"u"?void 0:window,noSsr:l=!1}=e,c=o.join(","),u=o.length>1,[d,f]=h.useState(()=>{const S=Sf(i,t),P=Sf(`${a}-light`,n),k=Sf(`${a}-dark`,r);return{mode:S,systemMode:Wy(S),lightColorScheme:P,darkColorScheme:k}}),[y,g]=h.useState(l||!u);h.useEffect(()=>{g(!0)},[]);const x=xR(d),C=h.useCallback(S=>{f(P=>{if(S===P.mode)return P;const k=S??t;try{localStorage.setItem(i,k)}catch{}return{...P,mode:k,systemMode:Wy(k)}})},[i,t]),p=h.useCallback(S=>{S?typeof S=="string"?S&&!c.includes(S)?console.error(`\`${S}\` does not exist in \`theme.colorSchemes\`.`):f(P=>{const k={...P};return Vb(P,M=>{try{localStorage.setItem(`${a}-${M}`,S)}catch{}M==="light"&&(k.lightColorScheme=S),M==="dark"&&(k.darkColorScheme=S)}),k}):f(P=>{const k={...P},M=S.light===null?n:S.light,E=S.dark===null?r:S.dark;if(M)if(!c.includes(M))console.error(`\`${M}\` does not exist in \`theme.colorSchemes\`.`);else{k.lightColorScheme=M;try{localStorage.setItem(`${a}-light`,M)}catch{}}if(E)if(!c.includes(E))console.error(`\`${E}\` does not exist in \`theme.colorSchemes\`.`);else{k.darkColorScheme=E;try{localStorage.setItem(`${a}-dark`,E)}catch{}}return k}):f(P=>{try{localStorage.setItem(`${a}-light`,n),localStorage.setItem(`${a}-dark`,r)}catch{}return{...P,lightColorScheme:n,darkColorScheme:r}})},[c,a,n,r]),m=h.useCallback(S=>{d.mode==="system"&&f(P=>{const k=S!=null&&S.matches?"dark":"light";return P.systemMode===k?P:{...P,systemMode:k}})},[d.mode]),v=h.useRef(m);return v.current=m,h.useEffect(()=>{if(typeof window.matchMedia!="function"||!u)return;const S=(...k)=>v.current(...k),P=window.matchMedia("(prefers-color-scheme: dark)");return P.addListener(S),S(P),()=>{P.removeListener(S)}},[u]),h.useEffect(()=>{if(s&&u){const S=P=>{const k=P.newValue;typeof P.key=="string"&&P.key.startsWith(a)&&(!k||c.match(k))&&(P.key.endsWith("light")&&p({light:k}),P.key.endsWith("dark")&&p({dark:k})),P.key===i&&(!k||["light","dark","system"].includes(k))&&C(k||t)};return s.addEventListener("storage",S),()=>{s.removeEventListener("storage",S)}}},[p,C,i,a,c,t,s,u]),{...d,mode:y?d.mode:void 0,systemMode:y?d.systemMode:void 0,colorScheme:y?x:void 0,setMode:C,setColorScheme:p}}const bR="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function wR(e){const{themeId:t,theme:n={},modeStorageKey:r=gm,colorSchemeStorageKey:o=ym,disableTransitionOnChange:i=!1,defaultColorScheme:a,resolveTheme:s}=e,l={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},c=h.createContext(void 0),u=()=>h.useContext(c)||l,d={},f={};function y(p){var tt,Ee,_e,ct;const{children:m,theme:v,modeStorageKey:S=r,colorSchemeStorageKey:P=o,disableTransitionOnChange:k=i,storageWindow:M=typeof window>"u"?void 0:window,documentNode:E=typeof document>"u"?void 0:document,colorSchemeNode:$=typeof document>"u"?void 0:document.documentElement,disableNestedContext:w=!1,disableStyleSheetGeneration:R=!1,defaultMode:L="system",noSsr:j}=p,O=h.useRef(!1),D=mm(),I=h.useContext(c),N=!!I&&!w,T=h.useMemo(()=>v||(typeof n=="function"?n():n),[v]),A=T[t],_=A||T,{colorSchemes:V=d,components:H=f,cssVarPrefix:ae}=_,se=Object.keys(V).filter(je=>!!V[je]).join(","),Y=h.useMemo(()=>se.split(","),[se]),le=typeof a=="string"?a:a.light,ie=typeof a=="string"?a:a.dark,ee=V[le]&&V[ie]?L:((Ee=(tt=V[_.defaultColorScheme])==null?void 0:tt.palette)==null?void 0:Ee.mode)||((_e=_.palette)==null?void 0:_e.mode),{mode:q,setMode:ne,systemMode:oe,lightColorScheme:W,darkColorScheme:F,colorScheme:K,setColorScheme:Q}=SR({supportedColorSchemes:Y,defaultLightColorScheme:le,defaultDarkColorScheme:ie,modeStorageKey:S,colorSchemeStorageKey:P,defaultMode:ee,storageWindow:M,noSsr:j});let te=q,ue=K;N&&(te=I.mode,ue=I.colorScheme);const J=h.useMemo(()=>{var $t;const je=ue||_.defaultColorScheme,Oe=(($t=_.generateThemeVars)==null?void 0:$t.call(_))||_.vars,ft={..._,components:H,colorSchemes:V,cssVarPrefix:ae,vars:Oe};if(typeof ft.generateSpacing=="function"&&(ft.spacing=ft.generateSpacing()),je){const Ne=V[je];Ne&&typeof Ne=="object"&&Object.keys(Ne).forEach(at=>{Ne[at]&&typeof Ne[at]=="object"?ft[at]={...ft[at],...Ne[at]}:ft[at]=Ne[at]})}return s?s(ft):ft},[_,ue,H,V,ae]),fe=_.colorSchemeSelector;h.useEffect(()=>{if(ue&&$&&fe&&fe!=="media"){const je=fe;let Oe=fe;if(je==="class"&&(Oe=".%s"),je==="data"&&(Oe="[data-%s]"),je!=null&&je.startsWith("data-")&&!je.includes("%s")&&(Oe=`[${je}="%s"]`),Oe.startsWith("."))$.classList.remove(...Y.map(ft=>Oe.substring(1).replace("%s",ft))),$.classList.add(Oe.substring(1).replace("%s",ue));else{const ft=Oe.replace("%s",ue).match(/\[([^\]]+)\]/);if(ft){const[$t,Ne]=ft[1].split("=");Ne||Y.forEach(at=>{$.removeAttribute($t.replace(ue,at))}),$.setAttribute($t,Ne?Ne.replace(/"|'/g,""):"")}else $.setAttribute(Oe,ue)}}},[ue,fe,$,Y]),h.useEffect(()=>{let je;if(k&&O.current&&E){const Oe=E.createElement("style");Oe.appendChild(E.createTextNode(bR)),E.head.appendChild(Oe),window.getComputedStyle(E.body),je=setTimeout(()=>{E.head.removeChild(Oe)},1)}return()=>{clearTimeout(je)}},[ue,k,E]),h.useEffect(()=>(O.current=!0,()=>{O.current=!1}),[]);const ge=h.useMemo(()=>({allColorSchemes:Y,colorScheme:ue,darkColorScheme:F,lightColorScheme:W,mode:te,setColorScheme:Q,setMode:ne,systemMode:oe}),[Y,ue,F,W,te,Q,ne,oe,J.colorSchemeSelector]);let Le=!0;(R||_.cssVariables===!1||N&&(D==null?void 0:D.cssVarPrefix)===ae)&&(Le=!1);const xe=b.jsxs(h.Fragment,{children:[b.jsx(zb,{themeId:A?t:void 0,theme:J,children:m}),Le&&b.jsx(yb,{styles:((ct=J.generateStyleSheets)==null?void 0:ct.call(J))||[]})]});return N?xe:b.jsx(c.Provider,{value:ge,children:xe})}const g=typeof a=="string"?a:a.light,x=typeof a=="string"?a:a.dark;return{CssVarsProvider:y,useColorScheme:u,getInitColorSchemeScript:p=>vR({colorSchemeStorageKey:o,defaultLightColorScheme:g,defaultDarkColorScheme:x,modeStorageKey:r,...p})}}function CR(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 Uy=(e,t,n,r=[])=>{let o=e;t.forEach((i,a)=>{a===t.length-1?Array.isArray(o)?o[Number(i)]=n:o&&typeof o=="object"&&(o[i]=n):o&&typeof o=="object"&&(o[i]||(o[i]=r.includes(i)?[]:{}),o=o[i])})},kR=(e,t,n)=>{function r(o,i=[],a=[]){Object.entries(o).forEach(([s,l])=>{(!n||n&&!n([...i,s]))&&l!=null&&(typeof l=="object"&&Object.keys(l).length>0?r(l,[...i,s],Array.isArray(l)?[...a,s]:a):t([...i,s],l,a))})}r(e)},PR=(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 bf(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},i={},a={};return kR(e,(s,l,c)=>{if((typeof l=="string"||typeof l=="number")&&(!r||!r(s,l))){const u=`--${n?`${n}-`:""}${s.join("-")}`,d=PR(s,l);Object.assign(o,{[u]:d}),Uy(i,s,`var(${u})`,c),Uy(a,s,`var(${u}, ${d})`,c)}},s=>s[0]==="vars"),{css:o,vars:i,varsWithDefaults:a}}function ER(e,t={}){const{getSelector:n=C,disableCssColorScheme:r,colorSchemeSelector:o}=t,{colorSchemes:i={},components:a,defaultColorScheme:s="light",...l}=e,{vars:c,css:u,varsWithDefaults:d}=bf(l,t);let f=d;const y={},{[s]:g,...x}=i;if(Object.entries(x||{}).forEach(([v,S])=>{const{vars:P,css:k,varsWithDefaults:M}=bf(S,t);f=Kt(f,M),y[v]={css:k,vars:P}}),g){const{css:v,vars:S,varsWithDefaults:P}=bf(g,t);f=Kt(f,P),y[s]={css:v,vars:S}}function C(v,S){var k,M;let P=o;if(o==="class"&&(P=".%s"),o==="data"&&(P="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(P=`[${o}="%s"]`),v){if(P==="media")return e.defaultColorScheme===v?":root":{[`@media (prefers-color-scheme: ${((M=(k=i[v])==null?void 0:k.palette)==null?void 0:M.mode)||v})`]:{":root":S}};if(P)return e.defaultColorScheme===v?`:root, ${P.replace("%s",String(v))}`:P.replace("%s",String(v))}return":root"}return{vars:f,generateThemeVars:()=>{let v={...c};return Object.entries(y).forEach(([,{vars:S}])=>{v=Kt(v,S)}),v},generateStyleSheets:()=>{var E,$;const v=[],S=e.defaultColorScheme||"light";function P(w,R){Object.keys(R).length&&v.push(typeof w=="string"?{[w]:{...R}}:w)}P(n(void 0,{...u}),u);const{[S]:k,...M}=y;if(k){const{css:w}=k,R=($=(E=i[S])==null?void 0:E.palette)==null?void 0:$.mode,L=!r&&R?{colorScheme:R,...w}:{...w};P(n(S,{...L}),L)}return Object.entries(M).forEach(([w,{css:R}])=>{var O,D;const L=(D=(O=i[w])==null?void 0:O.palette)==null?void 0:D.mode,j=!r&&L?{colorScheme:L,...R}:{...R};P(n(w,{...j}),j)}),v}}}function MR(e){return function(n){return e==="media"?`@media (prefers-color-scheme: ${n})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}const RR=za(),TR=um("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${ce(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),DR=e=>xd({props:e,name:"MuiContainer",defaultTheme:RR}),IR=(e,t)=>{const n=l=>ye(t,l),{classes:r,fixed:o,disableGutters:i,maxWidth:a}=e,s={root:["root",a&&`maxWidth${ce(String(a))}`,o&&"fixed",i&&"disableGutters"]};return ve(s,n,r)};function OR(e={}){const{createStyledComponent:t=TR,useThemeProps:n=DR,componentName:r="MuiContainer"}=e,o=t(({theme:a,ownerState:s})=>({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",...!s.disableGutters&&{paddingLeft:a.spacing(2),paddingRight:a.spacing(2),[a.breakpoints.up("sm")]:{paddingLeft:a.spacing(3),paddingRight:a.spacing(3)}}}),({theme:a,ownerState:s})=>s.fixed&&Object.keys(a.breakpoints.values).reduce((l,c)=>{const u=c,d=a.breakpoints.values[u];return d!==0&&(l[a.breakpoints.up(u)]={maxWidth:`${d}${a.breakpoints.unit}`}),l},{}),({theme:a,ownerState:s})=>({...s.maxWidth==="xs"&&{[a.breakpoints.up("xs")]:{maxWidth:Math.max(a.breakpoints.values.xs,444)}},...s.maxWidth&&s.maxWidth!=="xs"&&{[a.breakpoints.up(s.maxWidth)]:{maxWidth:`${a.breakpoints.values[s.maxWidth]}${a.breakpoints.unit}`}}}));return h.forwardRef(function(s,l){const c=n(s),{className:u,component:d="div",disableGutters:f=!1,fixed:y=!1,maxWidth:g="lg",classes:x,...C}=c,p={...c,component:d,disableGutters:f,fixed:y,maxWidth:g},m=IR(p,r);return b.jsx(o,{as:d,ownerState:p,className:pe(m.root,u),ref:l,...C})})}const $R=(e,t)=>e.filter(n=>t.includes(n)),Va=(e,t,n)=>{const r=e.keys[0];Array.isArray(t)?t.forEach((o,i)=>{n((a,s)=>{i<=e.keys.length-1&&(i===0?Object.assign(a,s):a[e.up(e.keys[i])]=s)},o)}):t&&typeof t=="object"?(Object.keys(t).length>e.keys.length?e.keys:$R(e.keys,Object.keys(t))).forEach(i=>{if(e.keys.includes(i)){const a=t[i];a!==void 0&&n((s,l)=>{r===i?Object.assign(s,l):s[e.up(i)]=l},a)}}):(typeof t=="number"||typeof t=="string")&&n((o,i)=>{Object.assign(o,i)},t)};function xu(e){return`--Grid-${e}Spacing`}function wd(e){return`--Grid-parent-${e}Spacing`}const Hy="--Grid-columns",ca="--Grid-parent-columns",AR=({theme:e,ownerState:t})=>{const n={};return Va(e.breakpoints,t.size,(r,o)=>{let i={};o==="grow"&&(i={flexBasis:0,flexGrow:1,maxWidth:"100%"}),o==="auto"&&(i={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),typeof o=="number"&&(i={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${o} / var(${ca}) - (var(${ca}) - ${o}) * (var(${wd("column")}) / var(${ca})))`}),r(n,i)}),n},LR=({theme:e,ownerState:t})=>{const n={};return Va(e.breakpoints,t.offset,(r,o)=>{let i={};o==="auto"&&(i={marginLeft:"auto"}),typeof o=="number"&&(i={marginLeft:o===0?"0px":`calc(100% * ${o} / var(${ca}) + var(${wd("column")}) * ${o} / var(${ca}))`}),r(n,i)}),n},jR=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={[Hy]:12};return Va(e.breakpoints,t.columns,(r,o)=>{const i=o??12;r(n,{[Hy]:i,"> *":{[ca]:i}})}),n},NR=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Va(e.breakpoints,t.rowSpacing,(r,o)=>{var a;const i=typeof o=="string"?o:(a=e.spacing)==null?void 0:a.call(e,o);r(n,{[xu("row")]:i,"> *":{[wd("row")]:i}})}),n},FR=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Va(e.breakpoints,t.columnSpacing,(r,o)=>{var a;const i=typeof o=="string"?o:(a=e.spacing)==null?void 0:a.call(e,o);r(n,{[xu("column")]:i,"> *":{[wd("column")]:i}})}),n},BR=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Va(e.breakpoints,t.direction,(r,o)=>{r(n,{flexDirection:o})}),n},_R=({ownerState:e})=>({minWidth:0,boxSizing:"border-box",...e.container&&{display:"flex",flexWrap:"wrap",...e.wrap&&e.wrap!=="wrap"&&{flexWrap:e.wrap},gap:`var(${xu("row")}) var(${xu("column")})`}}),zR=e=>{const t=[];return Object.entries(e).forEach(([n,r])=>{r!==!1&&r!==void 0&&t.push(`grid-${n}-${String(r)}`)}),t},VR=(e,t="xs")=>{function n(r){return r===void 0?!1:typeof r=="string"&&!Number.isNaN(Number(r))||typeof r=="number"&&r>0}if(n(e))return[`spacing-${t}-${String(e)}`];if(typeof e=="object"&&!Array.isArray(e)){const r=[];return Object.entries(e).forEach(([o,i])=>{n(i)&&r.push(`spacing-${o}-${String(i)}`)}),r}return[]},WR=e=>e===void 0?[]:typeof e=="object"?Object.entries(e).map(([t,n])=>`direction-${t}-${n}`):[`direction-xs-${String(e)}`],UR=za(),HR=um("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>t.root});function YR(e){return xd({props:e,name:"MuiGrid",defaultTheme:UR})}function KR(e={}){const{createStyledComponent:t=HR,useThemeProps:n=YR,useTheme:r=Al,componentName:o="MuiGrid"}=e,i=(c,u)=>{const{container:d,direction:f,spacing:y,wrap:g,size:x}=c,C={root:["root",d&&"container",g!=="wrap"&&`wrap-xs-${String(g)}`,...WR(f),...zR(x),...d?VR(y,u.breakpoints.keys[0]):[]]};return ve(C,p=>ye(o,p),{})};function a(c,u,d=()=>!0){const f={};return c===null||(Array.isArray(c)?c.forEach((y,g)=>{y!==null&&d(y)&&u.keys[g]&&(f[u.keys[g]]=y)}):typeof c=="object"?Object.keys(c).forEach(y=>{const g=c[y];g!=null&&d(g)&&(f[y]=g)}):f[u.keys[0]]=c),f}const s=t(jR,FR,NR,AR,BR,_R,LR),l=h.forwardRef(function(u,d){const f=r(),y=n(u),g=vd(y),{className:x,children:C,columns:p=12,container:m=!1,component:v="div",direction:S="row",wrap:P="wrap",size:k={},offset:M={},spacing:E=0,rowSpacing:$=E,columnSpacing:w=E,unstable_level:R=0,...L}=g,j=a(k,f.breakpoints,V=>V!==!1),O=a(M,f.breakpoints),D=u.columns??(R?void 0:p),I=u.spacing??(R?void 0:E),N=u.rowSpacing??u.spacing??(R?void 0:$),T=u.columnSpacing??u.spacing??(R?void 0:w),A={...g,level:R,columns:D,container:m,direction:S,wrap:P,spacing:I,rowSpacing:N,columnSpacing:T,size:j,offset:O},_=i(A,f);return b.jsx(s,{ref:d,as:v,ownerState:A,className:pe(_.root,x),...L,children:h.Children.map(C,V=>{var H;return h.isValidElement(V)&&Bs(V,["Grid"])&&m&&V.props.container?h.cloneElement(V,{unstable_level:((H=V.props)==null?void 0:H.unstable_level)??R+1}):V})})});return l.muiName="Grid",l}const GR=za(),QR=um("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function XR(e){return xd({props:e,name:"MuiStack",defaultTheme:GR})}function qR(e,t){const n=h.Children.toArray(e).filter(Boolean);return n.reduce((r,o,i)=>(r.push(o),i({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],JR=({ownerState:e,theme:t})=>{let n={display:"flex",flexDirection:"column",...gr({theme:t},xf({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r}))};if(e.spacing){const r=fd(t),o=Object.keys(t.breakpoints.values).reduce((l,c)=>((typeof e.spacing=="object"&&e.spacing[c]!=null||typeof e.direction=="object"&&e.direction[c]!=null)&&(l[c]=!0),l),{}),i=xf({values:e.direction,base:o}),a=xf({values:e.spacing,base:o});typeof i=="object"&&Object.keys(i).forEach((l,c,u)=>{if(!i[l]){const f=c>0?i[u[c-1]]:"column";i[l]=f}}),n=Kt(n,gr({theme:t},a,(l,c)=>e.useFlexGap?{gap:gi(r,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${ZR(c?i[c]:e.direction)}`]:gi(r,l)}}))}return n=YE(t.breakpoints,n),n};function eT(e={}){const{createStyledComponent:t=QR,useThemeProps:n=XR,componentName:r="MuiStack"}=e,o=()=>ve({root:["root"]},l=>ye(r,l),{}),i=t(JR);return h.forwardRef(function(l,c){const u=n(l),d=vd(u),{component:f="div",direction:y="column",spacing:g=0,divider:x,children:C,className:p,useFlexGap:m=!1,...v}=d,S={direction:y,spacing:g,useFlexGap:m},P=o();return b.jsx(i,{as:f,ownerState:S,ref:c,className:pe(P.root,p),...v,children:x?qR(C,x):C})})}function Wb(){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:ul.white,default:ul.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 tT=Wb();function Ub(){return{text:{primary:ul.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:ul.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 Yy=Ub();function Ky(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=Pa(e.main,o):t==="dark"&&(e.dark=ka(e.main,i)))}function nT(e="light"){return e==="dark"?{main:Ai[200],light:Ai[50],dark:Ai[400]}:{main:Ai[700],light:Ai[400],dark:Ai[800]}}function rT(e="light"){return e==="dark"?{main:$i[200],light:$i[50],dark:$i[400]}:{main:$i[500],light:$i[300],dark:$i[700]}}function oT(e="light"){return e==="dark"?{main:Oi[500],light:Oi[300],dark:Oi[700]}:{main:Oi[700],light:Oi[400],dark:Oi[800]}}function iT(e="light"){return e==="dark"?{main:Li[400],light:Li[300],dark:Li[700]}:{main:Li[700],light:Li[500],dark:Li[900]}}function aT(e="light"){return e==="dark"?{main:ji[400],light:ji[300],dark:ji[700]}:{main:ji[800],light:ji[500],dark:ji[900]}}function sT(e="light"){return e==="dark"?{main:is[400],light:is[300],dark:is[700]}:{main:"#ed6c02",light:is[500],dark:is[900]}}function vm(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,...o}=e,i=e.primary||nT(t),a=e.secondary||rT(t),s=e.error||oT(t),l=e.info||iT(t),c=e.success||aT(t),u=e.warning||sT(t);function d(x){return tR(x,Yy.text.primary)>=n?Yy.text.primary:tT.text.primary}const f=({color:x,name:C,mainShade:p=500,lightShade:m=300,darkShade:v=700})=>{if(x={...x},!x.main&&x[p]&&(x.main=x[p]),!x.hasOwnProperty("main"))throw new Error(oo(11,C?` (${C})`:"",p));if(typeof x.main!="string")throw new Error(oo(12,C?` (${C})`:"",JSON.stringify(x.main)));return Ky(x,"light",m,r),Ky(x,"dark",v,r),x.contrastText||(x.contrastText=d(x.main)),x};let y;return t==="light"?y=Wb():t==="dark"&&(y=Ub()),Kt({common:{...ul},mode:t,primary:f({color:i,name:"primary"}),secondary:f({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:s,name:"error"}),warning:f({color:u,name:"warning"}),info:f({color:l,name:"info"}),success:f({color:c,name:"success"}),grey:EP,contrastThreshold:n,getContrastText:d,augmentColor:f,tonalOffset:r,...y},o)}function lT(e){const t={};return Object.entries(e).forEach(r=>{const[o,i]=r;typeof i=="object"&&(t[o]=`${i.fontStyle?`${i.fontStyle} `:""}${i.fontVariant?`${i.fontVariant} `:""}${i.fontWeight?`${i.fontWeight} `:""}${i.fontStretch?`${i.fontStretch} `:""}${i.fontSize||""}${i.lineHeight?`/${i.lineHeight} `:""}${i.fontFamily||""}`)}),t}function cT(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function uT(e){return Math.round(e*1e5)/1e5}const Gy={textTransform:"uppercase"},Qy='"Roboto", "Helvetica", "Arial", sans-serif';function Hb(e,t){const{fontFamily:n=Qy,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:i=400,fontWeightMedium:a=500,fontWeightBold:s=700,htmlFontSize:l=16,allVariants:c,pxToRem:u,...d}=typeof t=="function"?t(e):t,f=r/14,y=u||(C=>`${C/l*f}rem`),g=(C,p,m,v,S)=>({fontFamily:n,fontWeight:C,fontSize:y(p),lineHeight:m,...n===Qy?{letterSpacing:`${uT(v/p)}em`}:{},...S,...c}),x={h1:g(o,96,1.167,-1.5),h2:g(o,60,1.2,-.5),h3:g(i,48,1.167,0),h4:g(i,34,1.235,.25),h5:g(i,24,1.334,0),h6:g(a,20,1.6,.15),subtitle1:g(i,16,1.75,.15),subtitle2:g(a,14,1.57,.1),body1:g(i,16,1.5,.15),body2:g(i,14,1.43,.15),button:g(a,14,1.75,.4,Gy),caption:g(i,12,1.66,.4),overline:g(i,12,2.66,1,Gy),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Kt({htmlFontSize:l,pxToRem:y,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:a,fontWeightBold:s,...x},d,{clone:!1})}const dT=.2,fT=.14,pT=.12;function vt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${dT})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${fT})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${pT})`].join(",")}const hT=["none",vt(0,2,1,-1,0,1,1,0,0,1,3,0),vt(0,3,1,-2,0,2,2,0,0,1,5,0),vt(0,3,3,-2,0,3,4,0,0,1,8,0),vt(0,2,4,-1,0,4,5,0,0,1,10,0),vt(0,3,5,-1,0,5,8,0,0,1,14,0),vt(0,3,5,-1,0,6,10,0,0,1,18,0),vt(0,4,5,-2,0,7,10,1,0,2,16,1),vt(0,5,5,-3,0,8,10,1,0,3,14,2),vt(0,5,6,-3,0,9,12,1,0,3,16,2),vt(0,6,6,-3,0,10,14,1,0,4,18,3),vt(0,6,7,-4,0,11,15,1,0,4,20,3),vt(0,7,8,-4,0,12,17,2,0,5,22,4),vt(0,7,8,-4,0,13,19,2,0,5,24,4),vt(0,7,9,-4,0,14,21,2,0,5,26,4),vt(0,8,9,-5,0,15,22,2,0,6,28,5),vt(0,8,10,-5,0,16,24,2,0,6,30,5),vt(0,8,11,-5,0,17,26,2,0,6,32,5),vt(0,9,11,-5,0,18,28,2,0,7,34,6),vt(0,9,12,-6,0,19,29,2,0,7,36,6),vt(0,10,13,-6,0,20,31,3,0,8,38,7),vt(0,10,13,-6,0,21,33,3,0,8,40,7),vt(0,10,14,-6,0,22,35,3,0,8,42,7),vt(0,11,14,-7,0,23,36,3,0,9,44,8),vt(0,11,15,-7,0,24,38,3,0,9,46,8)],mT={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)"},gT={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Xy(e){return`${Math.round(e)}ms`}function yT(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function vT(e){const t={...mT,...e.easing},n={...gT,...e.duration};return{getAutoHeightDuration:yT,create:(o=["all"],i={})=>{const{duration:a=n.standard,easing:s=t.easeInOut,delay:l=0,...c}=i;return(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof a=="string"?a:Xy(a)} ${s} ${typeof l=="string"?l:Xy(l)}`).join(",")},...e,easing:t,duration:n}}const xT={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function ST(e){return Ir(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function Yb(e={}){const t={...e};function n(r){const o=Object.entries(r);for(let i=0;iKt(y,g),f),f.unstable_sxConfig={...$l,...c==null?void 0:c.unstable_sxConfig},f.unstable_sx=function(g){return jo({sx:g,theme:this})},f.toRuntimeSource=Yb,f}function Np(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 bT=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=Np(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function Kb(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function Gb(e){return e==="dark"?bT:[]}function wT(e){const{palette:t={mode:"light"},opacity:n,overlays:r,...o}=e,i=vm(t);return{palette:i,opacity:{...Kb(i.mode),...n},overlays:r||Gb(i.mode),...o}}function CT(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const kT=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],PT=e=>(t,n)=>{const r=e.rootSelector||":root",o=e.colorSchemeSelector;let i=o;if(o==="class"&&(i=".%s"),o==="data"&&(i="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(i=`[${o}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const a={};return kT(e.cssVarPrefix).forEach(s=>{a[s]=n[s],delete n[s]}),i==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:a}}:i?{[i.replace("%s",t)]:a,[`${r}, ${i.replace("%s",t)}`]:n}:{[r]:{...n,...a}}}if(i&&i!=="media")return`${r}, ${i.replace("%s",String(t))}`}else if(t){if(i==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(i)return i.replace("%s",String(t))}return r};function ET(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function re(e,t,n){!e[t]&&n&&(e[t]=n)}function Es(e){return typeof e!="string"||!e.startsWith("hsl")?e:Ib(e)}function Hr(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Ps(Es(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(). -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 MT(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const kr=e=>{try{return e()}catch{}},RT=(e="mui")=>CR(e);function wf(e,t,n,r){if(!t)return;t=t===!0?{}:t;const o=r==="dark"?"dark":"light";if(!n){e[r]=wT({...t,palette:{mode:o,...t==null?void 0:t.palette}});return}const{palette:i,...a}=jp({...n,palette:{mode:o,...t==null?void 0:t.palette}});return e[r]={...t,palette:i,opacity:{...Kb(o),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||Gb(o)},a}function TT(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",shouldSkipGeneratingVar:a=CT,colorSchemeSelector:s=n.light&&n.dark?"media":void 0,rootSelector:l=":root",...c}=e,u=Object.keys(n)[0],d=r||(n.light&&u!=="light"?"light":u),f=RT(i),{[d]:y,light:g,dark:x,...C}=n,p={...C};let m=y;if((d==="dark"&&!("dark"in n)||d==="light"&&!("light"in n))&&(m=!0),!m)throw new Error(oo(21,d));const v=wf(p,m,c,d);g&&!p.light&&wf(p,g,void 0,"light"),x&&!p.dark&&wf(p,x,void 0,"dark");let S={defaultColorScheme:d,...v,cssVarPrefix:i,colorSchemeSelector:s,rootSelector:l,getCssVar:f,colorSchemes:p,font:{...lT(v.typography),...v.font},spacing:MT(c.spacing)};Object.keys(S.colorSchemes).forEach($=>{const w=S.colorSchemes[$].palette,R=L=>{const j=L.split("-"),O=j[1],D=j[2];return f(L,w[O][D])};if(w.mode==="light"&&(re(w.common,"background","#fff"),re(w.common,"onBackground","#000")),w.mode==="dark"&&(re(w.common,"background","#000"),re(w.common,"onBackground","#fff")),ET(w,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),w.mode==="light"){re(w.Alert,"errorColor",st(w.error.light,.6)),re(w.Alert,"infoColor",st(w.info.light,.6)),re(w.Alert,"successColor",st(w.success.light,.6)),re(w.Alert,"warningColor",st(w.warning.light,.6)),re(w.Alert,"errorFilledBg",R("palette-error-main")),re(w.Alert,"infoFilledBg",R("palette-info-main")),re(w.Alert,"successFilledBg",R("palette-success-main")),re(w.Alert,"warningFilledBg",R("palette-warning-main")),re(w.Alert,"errorFilledColor",kr(()=>w.getContrastText(w.error.main))),re(w.Alert,"infoFilledColor",kr(()=>w.getContrastText(w.info.main))),re(w.Alert,"successFilledColor",kr(()=>w.getContrastText(w.success.main))),re(w.Alert,"warningFilledColor",kr(()=>w.getContrastText(w.warning.main))),re(w.Alert,"errorStandardBg",lt(w.error.light,.9)),re(w.Alert,"infoStandardBg",lt(w.info.light,.9)),re(w.Alert,"successStandardBg",lt(w.success.light,.9)),re(w.Alert,"warningStandardBg",lt(w.warning.light,.9)),re(w.Alert,"errorIconColor",R("palette-error-main")),re(w.Alert,"infoIconColor",R("palette-info-main")),re(w.Alert,"successIconColor",R("palette-success-main")),re(w.Alert,"warningIconColor",R("palette-warning-main")),re(w.AppBar,"defaultBg",R("palette-grey-100")),re(w.Avatar,"defaultBg",R("palette-grey-400")),re(w.Button,"inheritContainedBg",R("palette-grey-300")),re(w.Button,"inheritContainedHoverBg",R("palette-grey-A100")),re(w.Chip,"defaultBorder",R("palette-grey-400")),re(w.Chip,"defaultAvatarColor",R("palette-grey-700")),re(w.Chip,"defaultIconColor",R("palette-grey-700")),re(w.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),re(w.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),re(w.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),re(w.LinearProgress,"primaryBg",lt(w.primary.main,.62)),re(w.LinearProgress,"secondaryBg",lt(w.secondary.main,.62)),re(w.LinearProgress,"errorBg",lt(w.error.main,.62)),re(w.LinearProgress,"infoBg",lt(w.info.main,.62)),re(w.LinearProgress,"successBg",lt(w.success.main,.62)),re(w.LinearProgress,"warningBg",lt(w.warning.main,.62)),re(w.Skeleton,"bg",`rgba(${R("palette-text-primaryChannel")} / 0.11)`),re(w.Slider,"primaryTrack",lt(w.primary.main,.62)),re(w.Slider,"secondaryTrack",lt(w.secondary.main,.62)),re(w.Slider,"errorTrack",lt(w.error.main,.62)),re(w.Slider,"infoTrack",lt(w.info.main,.62)),re(w.Slider,"successTrack",lt(w.success.main,.62)),re(w.Slider,"warningTrack",lt(w.warning.main,.62));const L=hc(w.background.default,.8);re(w.SnackbarContent,"bg",L),re(w.SnackbarContent,"color",kr(()=>w.getContrastText(L))),re(w.SpeedDialAction,"fabHoverBg",hc(w.background.paper,.15)),re(w.StepConnector,"border",R("palette-grey-400")),re(w.StepContent,"border",R("palette-grey-400")),re(w.Switch,"defaultColor",R("palette-common-white")),re(w.Switch,"defaultDisabledColor",R("palette-grey-100")),re(w.Switch,"primaryDisabledColor",lt(w.primary.main,.62)),re(w.Switch,"secondaryDisabledColor",lt(w.secondary.main,.62)),re(w.Switch,"errorDisabledColor",lt(w.error.main,.62)),re(w.Switch,"infoDisabledColor",lt(w.info.main,.62)),re(w.Switch,"successDisabledColor",lt(w.success.main,.62)),re(w.Switch,"warningDisabledColor",lt(w.warning.main,.62)),re(w.TableCell,"border",lt(pc(w.divider,1),.88)),re(w.Tooltip,"bg",pc(w.grey[700],.92))}if(w.mode==="dark"){re(w.Alert,"errorColor",lt(w.error.light,.6)),re(w.Alert,"infoColor",lt(w.info.light,.6)),re(w.Alert,"successColor",lt(w.success.light,.6)),re(w.Alert,"warningColor",lt(w.warning.light,.6)),re(w.Alert,"errorFilledBg",R("palette-error-dark")),re(w.Alert,"infoFilledBg",R("palette-info-dark")),re(w.Alert,"successFilledBg",R("palette-success-dark")),re(w.Alert,"warningFilledBg",R("palette-warning-dark")),re(w.Alert,"errorFilledColor",kr(()=>w.getContrastText(w.error.dark))),re(w.Alert,"infoFilledColor",kr(()=>w.getContrastText(w.info.dark))),re(w.Alert,"successFilledColor",kr(()=>w.getContrastText(w.success.dark))),re(w.Alert,"warningFilledColor",kr(()=>w.getContrastText(w.warning.dark))),re(w.Alert,"errorStandardBg",st(w.error.light,.9)),re(w.Alert,"infoStandardBg",st(w.info.light,.9)),re(w.Alert,"successStandardBg",st(w.success.light,.9)),re(w.Alert,"warningStandardBg",st(w.warning.light,.9)),re(w.Alert,"errorIconColor",R("palette-error-main")),re(w.Alert,"infoIconColor",R("palette-info-main")),re(w.Alert,"successIconColor",R("palette-success-main")),re(w.Alert,"warningIconColor",R("palette-warning-main")),re(w.AppBar,"defaultBg",R("palette-grey-900")),re(w.AppBar,"darkBg",R("palette-background-paper")),re(w.AppBar,"darkColor",R("palette-text-primary")),re(w.Avatar,"defaultBg",R("palette-grey-600")),re(w.Button,"inheritContainedBg",R("palette-grey-800")),re(w.Button,"inheritContainedHoverBg",R("palette-grey-700")),re(w.Chip,"defaultBorder",R("palette-grey-700")),re(w.Chip,"defaultAvatarColor",R("palette-grey-300")),re(w.Chip,"defaultIconColor",R("palette-grey-300")),re(w.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),re(w.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),re(w.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),re(w.LinearProgress,"primaryBg",st(w.primary.main,.5)),re(w.LinearProgress,"secondaryBg",st(w.secondary.main,.5)),re(w.LinearProgress,"errorBg",st(w.error.main,.5)),re(w.LinearProgress,"infoBg",st(w.info.main,.5)),re(w.LinearProgress,"successBg",st(w.success.main,.5)),re(w.LinearProgress,"warningBg",st(w.warning.main,.5)),re(w.Skeleton,"bg",`rgba(${R("palette-text-primaryChannel")} / 0.13)`),re(w.Slider,"primaryTrack",st(w.primary.main,.5)),re(w.Slider,"secondaryTrack",st(w.secondary.main,.5)),re(w.Slider,"errorTrack",st(w.error.main,.5)),re(w.Slider,"infoTrack",st(w.info.main,.5)),re(w.Slider,"successTrack",st(w.success.main,.5)),re(w.Slider,"warningTrack",st(w.warning.main,.5));const L=hc(w.background.default,.98);re(w.SnackbarContent,"bg",L),re(w.SnackbarContent,"color",kr(()=>w.getContrastText(L))),re(w.SpeedDialAction,"fabHoverBg",hc(w.background.paper,.15)),re(w.StepConnector,"border",R("palette-grey-600")),re(w.StepContent,"border",R("palette-grey-600")),re(w.Switch,"defaultColor",R("palette-grey-300")),re(w.Switch,"defaultDisabledColor",R("palette-grey-600")),re(w.Switch,"primaryDisabledColor",st(w.primary.main,.55)),re(w.Switch,"secondaryDisabledColor",st(w.secondary.main,.55)),re(w.Switch,"errorDisabledColor",st(w.error.main,.55)),re(w.Switch,"infoDisabledColor",st(w.info.main,.55)),re(w.Switch,"successDisabledColor",st(w.success.main,.55)),re(w.Switch,"warningDisabledColor",st(w.warning.main,.55)),re(w.TableCell,"border",st(pc(w.divider,1),.68)),re(w.Tooltip,"bg",pc(w.grey[700],.92))}Hr(w.background,"default"),Hr(w.background,"paper"),Hr(w.common,"background"),Hr(w.common,"onBackground"),Hr(w,"divider"),Object.keys(w).forEach(L=>{const j=w[L];L!=="tonalOffset"&&j&&typeof j=="object"&&(j.main&&re(w[L],"mainChannel",Ps(Es(j.main))),j.light&&re(w[L],"lightChannel",Ps(Es(j.light))),j.dark&&re(w[L],"darkChannel",Ps(Es(j.dark))),j.contrastText&&re(w[L],"contrastTextChannel",Ps(Es(j.contrastText))),L==="text"&&(Hr(w[L],"primary"),Hr(w[L],"secondary")),L==="action"&&(j.active&&Hr(w[L],"active"),j.selected&&Hr(w[L],"selected")))})}),S=t.reduce(($,w)=>Kt($,w),S);const P={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:a,getSelector:PT(S)},{vars:k,generateThemeVars:M,generateStyleSheets:E}=ER(S,P);return S.vars=k,Object.entries(S.colorSchemes[S.defaultColorScheme]).forEach(([$,w])=>{S[$]=w}),S.generateThemeVars=M,S.generateStyleSheets=E,S.generateSpacing=function(){return Cb(c.spacing,fd(this))},S.getColorSchemeSelector=MR(s),S.spacing=S.generateSpacing(),S.shouldSkipGeneratingVar=a,S.unstable_sxConfig={...$l,...c==null?void 0:c.unstable_sxConfig},S.unstable_sx=function(w){return jo({sx:w,theme:this})},S.toRuntimeSource=Yb,S}function qy(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:vm({...n===!0?{}:n.palette,mode:t})})}function Cd(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:o=n?void 0:{light:!0},defaultColorScheme:i=n==null?void 0:n.mode,...a}=e,s=i||"light",l=o==null?void 0:o[s],c={...o,...n?{[s]:{...typeof l!="boolean"&&l,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return jp(e,...t);let u=n;"palette"in e||c[s]&&(c[s]!==!0?u=c[s].palette:s==="dark"&&(u={mode:"dark"}));const d=jp({...e,palette:u},...t);return d.defaultColorScheme=s,d.colorSchemes=c,d.palette.mode==="light"&&(d.colorSchemes.light={...c.light!==!0&&c.light,palette:d.palette},qy(d,"dark",c.dark)),d.palette.mode==="dark"&&(d.colorSchemes.dark={...c.dark!==!0&&c.dark,palette:d.palette},qy(d,"light",c.light)),d}return!n&&!("light"in c)&&s==="light"&&(c.light=!0),TT({...a,colorSchemes:c,defaultColorScheme:s,...typeof r!="boolean"&&r},...t)}const kd=Cd();function xr(){const e=Al(kd);return e[qn]||e}function mt({props:e,name:t}){return xd({props:e,name:t,defaultTheme:kd,themeId:qn})}function Qb(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const _n=e=>Qb(e)&&e!=="classes",G=Rb({themeId:qn,defaultTheme:kd,rootShouldForwardProp:_n});function Zy({theme:e,...t}){const n=qn in e?e[qn]:void 0;return b.jsx(zb,{...t,themeId:n?qn:void 0,theme:n||e})}const mc={attribute:"data-mui-color-scheme",colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:DT,useColorScheme:L_,getInitColorSchemeScript:j_}=wR({themeId:qn,theme:()=>Cd({cssVariables:!0}),colorSchemeStorageKey:mc.colorSchemeStorageKey,modeStorageKey:mc.modeStorageKey,defaultColorScheme:{light:mc.defaultLightColorScheme,dark:mc.defaultDarkColorScheme},resolveTheme:e=>{const t={...e,typography:Hb(e.palette,e.typography)};return t.unstable_sx=function(r){return jo({sx:r,theme:this})},t}}),IT=DT;function OT({theme:e,...t}){return typeof e=="function"?b.jsx(Zy,{theme:e,...t}):"colorSchemes"in(qn in e?e[qn]:e)?b.jsx(IT,{theme:e,...t}):b.jsx(Zy,{theme:e,...t})}function $T(e){return b.jsx(jM,{...e,defaultTheme:kd,themeId:qn})}function xm(e){return function(n){return b.jsx($T,{styles:typeof e=="function"?r=>e({theme:r,...n}):e})}}function AT(){return vd}const Fe=gR;function Ie(e){return mR(e)}function LT(e){return ye("MuiSvgIcon",e)}me("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const jT=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${ce(t)}`,`fontSize${ce(n)}`]};return ve(o,LT,r)},NT=G("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${ce(n.color)}`],t[`fontSize${ce(n.fontSize)}`]]}})(Fe(({theme:e})=>{var t,n,r,o,i,a,s,l,c,u,d,f,y,g;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(o=(t=e.transitions)==null?void 0:t.create)==null?void 0:o.call(t,"fill",{duration:(r=(n=(e.vars??e).transitions)==null?void 0:n.duration)==null?void 0:r.shorter}),variants:[{props:x=>!x.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((a=(i=e.typography)==null?void 0:i.pxToRem)==null?void 0:a.call(i,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((l=(s=e.typography)==null?void 0:s.pxToRem)==null?void 0:l.call(s,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((u=(c=e.typography)==null?void 0:c.pxToRem)==null?void 0:u.call(c,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,x])=>x&&x.main).map(([x])=>{var C,p;return{props:{color:x},style:{color:(p=(C=(e.vars??e).palette)==null?void 0:C[x])==null?void 0:p.main}}}),{props:{color:"action"},style:{color:(f=(d=(e.vars??e).palette)==null?void 0:d.action)==null?void 0:f.active}},{props:{color:"disabled"},style:{color:(g=(y=(e.vars??e).palette)==null?void 0:y.action)==null?void 0:g.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),Su=h.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:a="inherit",component:s="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:d,viewBox:f="0 0 24 24",...y}=r,g=h.isValidElement(o)&&o.type==="svg",x={...r,color:a,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:f,hasSvgAsChild:g},C={};u||(C.viewBox=f);const p=jT(x);return b.jsxs(NT,{as:s,className:pe(p.root,i),focusable:"false",color:c,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:n,...C,...y,...g&&o.props,ownerState:x,children:[g?o.props.children:o,d?b.jsx("title",{children:d}):null]})});Su&&(Su.muiName="SvgIcon");function en(e,t){function n(r,o){return b.jsx(Su,{"data-testid":`${t}Icon`,ref:o,...r,children:e})}return n.muiName=Su.muiName,h.memo(h.forwardRef(n))}function Ae(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function Fp(e,t){return Fp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Fp(e,t)}function Sm(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Fp(e,t)}function FT(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function BT(e,t){e.classList?e.classList.add(t):FT(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function Jy(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function _T(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=Jy(e.className,t):e.setAttribute("class",Jy(e.className&&e.className.baseVal||"",t))}const ev={disabled:!1},bu=Bt.createContext(null);var Xb=function(t){return t.scrollTop},Ms="unmounted",qo="exited",Zo="entering",zi="entered",Bp="exiting",ar=function(e){Sm(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var a=o,s=a&&!a.isMounting?r.enter:r.appear,l;return i.appearStatus=null,r.in?s?(l=qo,i.appearStatus=Zo):l=zi:r.unmountOnExit||r.mountOnEnter?l=Ms:l=qo,i.state={status:l},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var a=o.in;return a&&i.status===Ms?{status:qo}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var a=this.state.status;this.props.in?a!==Zo&&a!==zi&&(i=Zo):(a===Zo||a===zi)&&(i=Bp)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,a,s;return i=a=s=o,o!=null&&typeof o!="number"&&(i=o.exit,a=o.enter,s=o.appear!==void 0?o.appear:a),{exit:i,enter:a,appear:s}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===Zo){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:ks.findDOMNode(this);a&&Xb(a)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===qo&&this.setState({status:Ms})},n.performEnter=function(o){var i=this,a=this.props.enter,s=this.context?this.context.isMounting:o,l=this.props.nodeRef?[s]:[ks.findDOMNode(this),s],c=l[0],u=l[1],d=this.getTimeouts(),f=s?d.appear:d.enter;if(!o&&!a||ev.disabled){this.safeSetState({status:zi},function(){i.props.onEntered(c)});return}this.props.onEnter(c,u),this.safeSetState({status:Zo},function(){i.props.onEntering(c,u),i.onTransitionEnd(f,function(){i.safeSetState({status:zi},function(){i.props.onEntered(c,u)})})})},n.performExit=function(){var o=this,i=this.props.exit,a=this.getTimeouts(),s=this.props.nodeRef?void 0:ks.findDOMNode(this);if(!i||ev.disabled){this.safeSetState({status:qo},function(){o.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:Bp},function(){o.props.onExiting(s),o.onTransitionEnd(a.exit,function(){o.safeSetState({status:qo},function(){o.props.onExited(s)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,a=!0;return this.nextCallback=function(s){a&&(a=!1,i.nextCallback=null,o(s))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:ks.findDOMNode(this),s=o==null&&!this.props.addEndListener;if(!a||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[a,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===Ms)return null;var i=this.props,a=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var s=Ae(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Bt.createElement(bu.Provider,{value:null},typeof a=="function"?a(o,s):Bt.cloneElement(Bt.Children.only(a),s))},t}(Bt.Component);ar.contextType=bu;ar.propTypes={};function Ni(){}ar.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ni,onEntering:Ni,onEntered:Ni,onExit:Ni,onExiting:Ni,onExited:Ni};ar.UNMOUNTED=Ms;ar.EXITED=qo;ar.ENTERING=Zo;ar.ENTERED=zi;ar.EXITING=Bp;var zT=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return BT(t,r)})},Cf=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return _T(t,r)})},bm=function(e){Sm(t,e);function t(){for(var r,o=arguments.length,i=new Array(o),a=0;ae.scrollTop;function Ea(e,t){const{timeout:n,easing:r,style:o={}}=e;return{duration:o.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:o.transitionTimingFunction??(typeof r=="object"?r[t.mode]:r),delay:o.transitionDelay}}function GT(e){return ye("MuiPaper",e)}me("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const QT=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,i={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return ve(i,GT,o)},XT=G("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(Fe(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),vr=h.forwardRef(function(t,n){var y;const r=Ie({props:t,name:"MuiPaper"}),o=xr(),{className:i,component:a="div",elevation:s=1,square:l=!1,variant:c="elevation",...u}=r,d={...r,component:a,elevation:s,square:l,variant:c},f=QT(d);return b.jsx(XT,{as:a,ownerState:d,className:pe(f.root,i),ref:n,...u,style:{...c==="elevation"&&{"--Paper-shadow":(o.vars||o).shadows[s],...o.vars&&{"--Paper-overlay":(y=o.vars.overlays)==null?void 0:y[s]},...!o.vars&&o.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Be("#fff",Np(s))}, ${Be("#fff",Np(s))})`}},...u.style}})});function Tn(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:i,internalForwardedProps:a,...s}=t,{component:l,slots:c={[e]:void 0},slotProps:u={[e]:void 0},...d}=i,f=c[e]||r,y=bd(u[e],o),{props:{component:g,...x},internalRef:C}=Nb({className:n,...s,externalForwardedProps:e==="root"?d:void 0,externalSlotProps:y}),p=He(C,y==null?void 0:y.ref,t.ref),m=e==="root"?g||l:g,v=jb(f,{...e==="root"&&!l&&!c[e]&&a,...e!=="root"&&!c[e]&&a,...x,...m&&{as:m},ref:p},o);return[f,v]}class wu{constructor(){Xa(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 wu}static use(){const t=Ab(wu.create).current,[n,r]=h.useState(!1);return t.shouldMount=n,t.setShouldMount=r,h.useEffect(t.mountEffect,[n]),t}mount(){return this.mounted||(this.mounted=ZT(),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 qT(){return wu.use()}function ZT(){let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n}function JT(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:s,onExited:l,timeout:c}=e,[u,d]=h.useState(!1),f=pe(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),y={width:a,height:a,top:-(a/2)+i,left:-(a/2)+o},g=pe(n.child,u&&n.childLeaving,r&&n.childPulsate);return!s&&!u&&d(!0),h.useEffect(()=>{if(!s&&l!=null){const x=setTimeout(l,c);return()=>{clearTimeout(x)}}},[l,s,c]),b.jsx("span",{className:f,style:y,children:b.jsx("span",{className:g})})}const Hn=me("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),_p=550,eD=80,tD=Il` - 0% { - transform: scale(0); - opacity: 0.1; - } - - 100% { - transform: scale(1); - opacity: 0.3; - } -`,nD=Il` - 0% { - opacity: 1; - } - - 100% { - opacity: 0; - } -`,rD=Il` - 0% { - transform: scale(1); - } - - 50% { - transform: scale(0.92); - } - - 100% { - transform: scale(1); - } -`,oD=G("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),iD=G(JT,{name:"MuiTouchRipple",slot:"Ripple"})` - opacity: 0; - position: absolute; - - &.${Hn.rippleVisible} { - opacity: 0.3; - transform: scale(1); - animation-name: ${tD}; - animation-duration: ${_p}ms; - animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut}; - } - - &.${Hn.ripplePulsate} { - animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms; - } - - & .${Hn.child} { - opacity: 1; - display: block; - width: 100%; - height: 100%; - border-radius: 50%; - background-color: currentColor; - } - - & .${Hn.childLeaving} { - opacity: 0; - animation-name: ${nD}; - animation-duration: ${_p}ms; - animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut}; - } - - & .${Hn.childPulsate} { - position: absolute; - /* @noflip */ - left: 0px; - top: 0; - animation-name: ${rD}; - animation-duration: 2500ms; - animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut}; - animation-iteration-count: infinite; - animation-delay: 200ms; - } -`,aD=h.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a,...s}=r,[l,c]=h.useState([]),u=h.useRef(0),d=h.useRef(null);h.useEffect(()=>{d.current&&(d.current(),d.current=null)},[l]);const f=h.useRef(!1),y=hm(),g=h.useRef(null),x=h.useRef(null),C=h.useCallback(S=>{const{pulsate:P,rippleX:k,rippleY:M,rippleSize:E,cb:$}=S;c(w=>[...w,b.jsx(iD,{classes:{ripple:pe(i.ripple,Hn.ripple),rippleVisible:pe(i.rippleVisible,Hn.rippleVisible),ripplePulsate:pe(i.ripplePulsate,Hn.ripplePulsate),child:pe(i.child,Hn.child),childLeaving:pe(i.childLeaving,Hn.childLeaving),childPulsate:pe(i.childPulsate,Hn.childPulsate)},timeout:_p,pulsate:P,rippleX:k,rippleY:M,rippleSize:E},u.current)]),u.current+=1,d.current=$},[i]),p=h.useCallback((S={},P={},k=()=>{})=>{const{pulsate:M=!1,center:E=o||P.pulsate,fakeElement:$=!1}=P;if((S==null?void 0:S.type)==="mousedown"&&f.current){f.current=!1;return}(S==null?void 0:S.type)==="touchstart"&&(f.current=!0);const w=$?null:x.current,R=w?w.getBoundingClientRect():{width:0,height:0,left:0,top:0};let L,j,O;if(E||S===void 0||S.clientX===0&&S.clientY===0||!S.clientX&&!S.touches)L=Math.round(R.width/2),j=Math.round(R.height/2);else{const{clientX:D,clientY:I}=S.touches&&S.touches.length>0?S.touches[0]:S;L=Math.round(D-R.left),j=Math.round(I-R.top)}if(E)O=Math.sqrt((2*R.width**2+R.height**2)/3),O%2===0&&(O+=1);else{const D=Math.max(Math.abs((w?w.clientWidth:0)-L),L)*2+2,I=Math.max(Math.abs((w?w.clientHeight:0)-j),j)*2+2;O=Math.sqrt(D**2+I**2)}S!=null&&S.touches?g.current===null&&(g.current=()=>{C({pulsate:M,rippleX:L,rippleY:j,rippleSize:O,cb:k})},y.start(eD,()=>{g.current&&(g.current(),g.current=null)})):C({pulsate:M,rippleX:L,rippleY:j,rippleSize:O,cb:k})},[o,C,y]),m=h.useCallback(()=>{p({},{pulsate:!0})},[p]),v=h.useCallback((S,P)=>{if(y.clear(),(S==null?void 0:S.type)==="touchend"&&g.current){g.current(),g.current=null,y.start(0,()=>{v(S,P)});return}g.current=null,c(k=>k.length>0?k.slice(1):k),d.current=P},[y]);return h.useImperativeHandle(n,()=>({pulsate:m,start:p,stop:v}),[m,p,v]),b.jsx(oD,{className:pe(Hn.root,i.root,a),ref:x,...s,children:b.jsx(Ll,{component:null,exit:!0,children:l})})});function sD(e){return ye("MuiButtonBase",e)}const lD=me("MuiButtonBase",["root","disabled","focusVisible"]),cD=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=ve({root:["root",t&&"disabled",n&&"focusVisible"]},sD,o);return n&&r&&(a.root+=` ${r}`),a},uD=G("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${lD.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Ma=h.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:a,className:s,component:l="button",disabled:c=!1,disableRipple:u=!1,disableTouchRipple:d=!1,focusRipple:f=!1,focusVisibleClassName:y,LinkComponent:g="a",onBlur:x,onClick:C,onContextMenu:p,onDragLeave:m,onFocus:v,onFocusVisible:S,onKeyDown:P,onKeyUp:k,onMouseDown:M,onMouseLeave:E,onMouseUp:$,onTouchEnd:w,onTouchMove:R,onTouchStart:L,tabIndex:j=0,TouchRippleProps:O,touchRippleRef:D,type:I,...N}=r,T=h.useRef(null),A=qT(),_=He(A.ref,D),[V,H]=h.useState(!1);c&&V&&H(!1),h.useImperativeHandle(o,()=>({focusVisible:()=>{H(!0),T.current.focus()}}),[]);const ae=A.shouldMount&&!u&&!c;h.useEffect(()=>{V&&f&&!u&&A.pulsate()},[u,f,V,A]);const se=Yr(A,"start",M,d),Y=Yr(A,"stop",p,d),le=Yr(A,"stop",m,d),ie=Yr(A,"stop",$,d),ee=Yr(A,"stop",xe=>{V&&xe.preventDefault(),E&&E(xe)},d),q=Yr(A,"start",L,d),ne=Yr(A,"stop",w,d),oe=Yr(A,"stop",R,d),W=Yr(A,"stop",xe=>{yu(xe.target)||H(!1),x&&x(xe)},!1),F=Se(xe=>{T.current||(T.current=xe.currentTarget),yu(xe.target)&&(H(!0),S&&S(xe)),v&&v(xe)}),K=()=>{const xe=T.current;return l&&l!=="button"&&!(xe.tagName==="A"&&xe.href)},Q=Se(xe=>{f&&!xe.repeat&&V&&xe.key===" "&&A.stop(xe,()=>{A.start(xe)}),xe.target===xe.currentTarget&&K()&&xe.key===" "&&xe.preventDefault(),P&&P(xe),xe.target===xe.currentTarget&&K()&&xe.key==="Enter"&&!c&&(xe.preventDefault(),C&&C(xe))}),te=Se(xe=>{f&&xe.key===" "&&V&&!xe.defaultPrevented&&A.stop(xe,()=>{A.pulsate(xe)}),k&&k(xe),C&&xe.target===xe.currentTarget&&K()&&xe.key===" "&&!xe.defaultPrevented&&C(xe)});let ue=l;ue==="button"&&(N.href||N.to)&&(ue=g);const J={};ue==="button"?(J.type=I===void 0?"button":I,J.disabled=c):(!N.href&&!N.to&&(J.role="button"),c&&(J["aria-disabled"]=c));const fe=He(n,T),ge={...r,centerRipple:i,component:l,disabled:c,disableRipple:u,disableTouchRipple:d,focusRipple:f,tabIndex:j,focusVisible:V},Le=cD(ge);return b.jsxs(uD,{as:ue,className:pe(Le.root,s),ownerState:ge,onBlur:W,onClick:C,onContextMenu:Y,onFocus:F,onKeyDown:Q,onKeyUp:te,onMouseDown:se,onMouseLeave:ee,onMouseUp:ie,onDragLeave:le,onTouchEnd:ne,onTouchMove:oe,onTouchStart:q,ref:fe,tabIndex:c?-1:j,type:I,...J,...N,children:[a,ae?b.jsx(aD,{ref:_,center:i,...O}):null]})});function Yr(e,t,n,r=!1){return Se(o=>(n&&n(o),r||e[t](o),!0))}function dD(e){return typeof e.main=="string"}function fD(e,t=[]){if(!dD(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function Ht(e=[]){return([,t])=>t&&fD(t,e)}function pD(e){return ye("MuiAlert",e)}const tv=me("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function hD(e){return ye("MuiIconButton",e)}const mD=me("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),gD=e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e,a={root:["root",n&&"disabled",r!=="default"&&`color${ce(r)}`,o&&`edge${ce(o)}`,`size${ce(i)}`]};return ve(a,hD,t)},yD=G(Ma,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${ce(n.color)}`],n.edge&&t[`edge${ce(n.edge)}`],t[`size${ce(n.size)}`]]}})(Fe(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Be(e.palette.action.active,e.palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),Fe(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(Ht()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(Ht()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Be((e.vars||e).palette[t].main,e.palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${mD.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}}))),Wa=h.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiIconButton"}),{edge:o=!1,children:i,className:a,color:s="default",disabled:l=!1,disableFocusRipple:c=!1,size:u="medium",...d}=r,f={...r,edge:o,color:s,disabled:l,disableFocusRipple:c,size:u},y=gD(f);return b.jsx(yD,{className:pe(y.root,a),centerRipple:!0,focusRipple:!c,disabled:l,ref:n,...d,ownerState:f,children:i})}),vD=en(b.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),xD=en(b.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),SD=en(b.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.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"}),"ErrorOutline"),bD=en(b.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),wD=en(b.jsx("path",{d:"M19 6.41L17.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"),CD=e=>{const{variant:t,color:n,severity:r,classes:o}=e,i={root:["root",`color${ce(n||r)}`,`${t}${ce(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return ve(i,pD,o)},kD=G(vr,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${ce(n.color||n.severity)}`]]}})(Fe(({theme:e})=>{const t=e.palette.mode==="light"?ka:Pa,n=e.palette.mode==="light"?Pa:ka;return{...e.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(Ht(["light"])).map(([r])=>({props:{colorSeverity:r,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${r}StandardBg`]:n(e.palette[r].light,.9),[`& .${tv.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(Ht(["light"])).map(([r])=>({props:{colorSeverity:r,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),border:`1px solid ${(e.vars||e).palette[r].light}`,[`& .${tv.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(Ht(["dark"])).map(([r])=>({props:{colorSeverity:r,variant:"filled"},style:{fontWeight:e.typography.fontWeightMedium,...e.vars?{color:e.vars.palette.Alert[`${r}FilledColor`],backgroundColor:e.vars.palette.Alert[`${r}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[r].dark:e.palette[r].main,color:e.palette.getContrastText(e.palette[r].main)}}}))]}})),PD=G("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),ED=G("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),nv=G("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),rv={success:b.jsx(vD,{fontSize:"inherit"}),warning:b.jsx(xD,{fontSize:"inherit"}),error:b.jsx(SD,{fontSize:"inherit"}),info:b.jsx(bD,{fontSize:"inherit"})},km=h.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiAlert"}),{action:o,children:i,className:a,closeText:s="Close",color:l,components:c={},componentsProps:u={},icon:d,iconMapping:f=rv,onClose:y,role:g="alert",severity:x="success",slotProps:C={},slots:p={},variant:m="standard",...v}=r,S={...r,color:l,severity:x,variant:m,colorSeverity:l||x},P=CD(S),k={slots:{closeButton:c.CloseButton,closeIcon:c.CloseIcon,...p},slotProps:{...u,...C}},[M,E]=Tn("closeButton",{elementType:Wa,externalForwardedProps:k,ownerState:S}),[$,w]=Tn("closeIcon",{elementType:wD,externalForwardedProps:k,ownerState:S});return b.jsxs(kD,{role:g,elevation:0,ownerState:S,className:pe(P.root,a),ref:n,...v,children:[d!==!1?b.jsx(PD,{ownerState:S,className:P.icon,children:d||f[x]||rv[x]}):null,b.jsx(ED,{ownerState:S,className:P.message,children:i}),o!=null?b.jsx(nv,{ownerState:S,className:P.action,children:o}):null,o==null&&y?b.jsx(nv,{ownerState:S,className:P.action,children:b.jsx(M,{size:"small","aria-label":s,title:s,color:"inherit",onClick:y,...E,children:b.jsx($,{fontSize:"small",...w})})}):null]})});function MD(e){return ye("MuiTypography",e)}me("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const RD={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},TD=AT(),DD=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e,s={root:["root",i,e.align!=="inherit"&&`align${ce(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return ve(s,MD,a)},ID=G("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${ce(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(Fe(({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(Ht()).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${ce(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}}]}})),ov={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Ye=h.forwardRef(function(t,n){const{color:r,...o}=Ie({props:t,name:"MuiTypography"}),i=!RD[r],a=TD({...o,...i&&{color:r}}),{align:s="inherit",className:l,component:c,gutterBottom:u=!1,noWrap:d=!1,paragraph:f=!1,variant:y="body1",variantMapping:g=ov,...x}=a,C={...a,align:s,color:r,className:l,component:c,gutterBottom:u,noWrap:d,paragraph:f,variant:y,variantMapping:g},p=c||(f?"p":g[y]||ov[y])||"span",m=DD(C);return b.jsx(ID,{as:p,ref:n,className:pe(m.root,l),...x,ownerState:C,style:{...s!=="inherit"&&{"--Typography-textAlign":s},...x.style}})});function OD(e){return ye("MuiAppBar",e)}me("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const $D=e=>{const{color:t,position:n,classes:r}=e,o={root:["root",`color${ce(t)}`,`position${ce(n)}`]};return ve(o,OD,r)},iv=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,AD=G(vr,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${ce(n.position)}`],t[`color${ce(n.color)}`]]}})(Fe(({theme:e})=>({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0,variants:[{props:{position:"fixed"},style:{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}}},{props:{position:"absolute"},style:{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"sticky"},style:{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"static"},style:{position:"static"}},{props:{position:"relative"},style:{position:"relative"}},{props:{color:"inherit"},style:{"--AppBar-color":"inherit"}},{props:{color:"default"},style:{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[100],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[100]),...e.applyStyles("dark",{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[900],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[900])})}},...Object.entries(e.palette).filter(Ht(["contrastText"])).map(([t])=>({props:{color:t},style:{"--AppBar-background":(e.vars??e).palette[t].main,"--AppBar-color":(e.vars??e).palette[t].contrastText}})),{props:t=>t.enableColorOnDark===!0&&!["inherit","transparent"].includes(t.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)"}},{props:t=>t.enableColorOnDark===!1&&!["inherit","transparent"].includes(t.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...e.applyStyles("dark",{backgroundColor:e.vars?iv(e.vars.palette.AppBar.darkBg,"var(--AppBar-background)"):null,color:e.vars?iv(e.vars.palette.AppBar.darkColor,"var(--AppBar-color)"):null})}},{props:{color:"transparent"},style:{"--AppBar-background":"transparent","--AppBar-color":"inherit",backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...e.applyStyles("dark",{backgroundImage:"none"})}}]}))),LD=h.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiAppBar"}),{className:o,color:i="primary",enableColorOnDark:a=!1,position:s="fixed",...l}=r,c={...r,color:i,position:s,enableColorOnDark:a},u=$D(c);return b.jsx(AD,{square:!0,component:"header",ownerState:c,elevation:4,className:pe(u.root,o,s==="fixed"&&"mui-fixed"),ref:n,...l})});var xn="top",tr="bottom",nr="right",Sn="left",Pm="auto",jl=[xn,tr,nr,Sn],Ra="start",ml="end",jD="clippingParents",qb="viewport",ss="popper",ND="reference",av=jl.reduce(function(e,t){return e.concat([t+"-"+Ra,t+"-"+ml])},[]),Zb=[].concat(jl,[Pm]).reduce(function(e,t){return e.concat([t,t+"-"+Ra,t+"-"+ml])},[]),FD="beforeRead",BD="read",_D="afterRead",zD="beforeMain",VD="main",WD="afterMain",UD="beforeWrite",HD="write",YD="afterWrite",KD=[FD,BD,_D,zD,VD,WD,UD,HD,YD];function Br(e){return e?(e.nodeName||"").toLowerCase():null}function jn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function yi(e){var t=jn(e).Element;return e instanceof t||e instanceof Element}function Zn(e){var t=jn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Em(e){if(typeof ShadowRoot>"u")return!1;var t=jn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function GD(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];!Zn(i)||!Br(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(a){var s=o[a];s===!1?i.removeAttribute(a):i.setAttribute(a,s===!0?"":s)}))})}function QD(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=a.reduce(function(l,c){return l[c]="",l},{});!Zn(o)||!Br(o)||(Object.assign(o.style,s),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}const XD={name:"applyStyles",enabled:!0,phase:"write",fn:GD,effect:QD,requires:["computeStyles"]};function Nr(e){return e.split("-")[0]}var li=Math.max,Cu=Math.min,Ta=Math.round;function zp(){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 Jb(){return!/^((?!chrome|android).)*safari/i.test(zp())}function Da(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&Zn(e)&&(o=e.offsetWidth>0&&Ta(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Ta(r.height)/e.offsetHeight||1);var a=yi(e)?jn(e):window,s=a.visualViewport,l=!Jb()&&n,c=(r.left+(l&&s?s.offsetLeft:0))/o,u=(r.top+(l&&s?s.offsetTop:0))/i,d=r.width/o,f=r.height/i;return{width:d,height:f,top:u,right:c+d,bottom:u+f,left:c,x:c,y:u}}function Mm(e){var t=Da(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 ew(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Em(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ao(e){return jn(e).getComputedStyle(e)}function qD(e){return["table","td","th"].indexOf(Br(e))>=0}function Vo(e){return((yi(e)?e.ownerDocument:e.document)||window.document).documentElement}function Pd(e){return Br(e)==="html"?e:e.assignedSlot||e.parentNode||(Em(e)?e.host:null)||Vo(e)}function sv(e){return!Zn(e)||ao(e).position==="fixed"?null:e.offsetParent}function ZD(e){var t=/firefox/i.test(zp()),n=/Trident/i.test(zp());if(n&&Zn(e)){var r=ao(e);if(r.position==="fixed")return null}var o=Pd(e);for(Em(o)&&(o=o.host);Zn(o)&&["html","body"].indexOf(Br(o))<0;){var i=ao(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 Nl(e){for(var t=jn(e),n=sv(e);n&&qD(n)&&ao(n).position==="static";)n=sv(n);return n&&(Br(n)==="html"||Br(n)==="body"&&ao(n).position==="static")?t:n||ZD(e)||t}function Rm(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function _s(e,t,n){return li(e,Cu(t,n))}function JD(e,t,n){var r=_s(e,t,n);return r>n?n:r}function tw(){return{top:0,right:0,bottom:0,left:0}}function nw(e){return Object.assign({},tw(),e)}function rw(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var e2=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,nw(typeof t!="number"?t:rw(t,jl))};function t2(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=Nr(n.placement),l=Rm(s),c=[Sn,nr].indexOf(s)>=0,u=c?"height":"width";if(!(!i||!a)){var d=e2(o.padding,n),f=Mm(i),y=l==="y"?xn:Sn,g=l==="y"?tr:nr,x=n.rects.reference[u]+n.rects.reference[l]-a[l]-n.rects.popper[u],C=a[l]-n.rects.reference[l],p=Nl(i),m=p?l==="y"?p.clientHeight||0:p.clientWidth||0:0,v=x/2-C/2,S=d[y],P=m-f[u]-d[g],k=m/2-f[u]/2+v,M=_s(S,k,P),E=l;n.modifiersData[r]=(t={},t[E]=M,t.centerOffset=M-k,t)}}function n2(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)||ew(t.elements.popper,o)&&(t.elements.arrow=o))}const r2={name:"arrow",enabled:!0,phase:"main",fn:t2,effect:n2,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ia(e){return e.split("-")[1]}var o2={top:"auto",right:"auto",bottom:"auto",left:"auto"};function i2(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Ta(n*o)/o||0,y:Ta(r*o)/o||0}}function lv(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=a.x,y=f===void 0?0:f,g=a.y,x=g===void 0?0:g,C=typeof u=="function"?u({x:y,y:x}):{x:y,y:x};y=C.x,x=C.y;var p=a.hasOwnProperty("x"),m=a.hasOwnProperty("y"),v=Sn,S=xn,P=window;if(c){var k=Nl(n),M="clientHeight",E="clientWidth";if(k===jn(n)&&(k=Vo(n),ao(k).position!=="static"&&s==="absolute"&&(M="scrollHeight",E="scrollWidth")),k=k,o===xn||(o===Sn||o===nr)&&i===ml){S=tr;var $=d&&k===P&&P.visualViewport?P.visualViewport.height:k[M];x-=$-r.height,x*=l?1:-1}if(o===Sn||(o===xn||o===tr)&&i===ml){v=nr;var w=d&&k===P&&P.visualViewport?P.visualViewport.width:k[E];y-=w-r.width,y*=l?1:-1}}var R=Object.assign({position:s},c&&o2),L=u===!0?i2({x:y,y:x},jn(n)):{x:y,y:x};if(y=L.x,x=L.y,l){var j;return Object.assign({},R,(j={},j[S]=m?"0":"",j[v]=p?"0":"",j.transform=(P.devicePixelRatio||1)<=1?"translate("+y+"px, "+x+"px)":"translate3d("+y+"px, "+x+"px, 0)",j))}return Object.assign({},R,(t={},t[S]=m?x+"px":"",t[v]=p?y+"px":"",t.transform="",t))}function a2(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,a=i===void 0?!0:i,s=n.roundOffsets,l=s===void 0?!0:s,c={placement:Nr(t.placement),variation:Ia(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,lv(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,lv(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const s2={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:a2,data:{}};var gc={passive:!0};function l2(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,a=r.resize,s=a===void 0?!0:a,l=jn(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(u){u.addEventListener("scroll",n.update,gc)}),s&&l.addEventListener("resize",n.update,gc),function(){i&&c.forEach(function(u){u.removeEventListener("scroll",n.update,gc)}),s&&l.removeEventListener("resize",n.update,gc)}}const c2={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:l2,data:{}};var u2={left:"right",right:"left",bottom:"top",top:"bottom"};function Vc(e){return e.replace(/left|right|bottom|top/g,function(t){return u2[t]})}var d2={start:"end",end:"start"};function cv(e){return e.replace(/start|end/g,function(t){return d2[t]})}function Tm(e){var t=jn(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Dm(e){return Da(Vo(e)).left+Tm(e).scrollLeft}function f2(e,t){var n=jn(e),r=Vo(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;var c=Jb();(c||!c&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s+Dm(e),y:l}}function p2(e){var t,n=Vo(e),r=Tm(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=li(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=li(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+Dm(e),l=-r.scrollTop;return ao(o||n).direction==="rtl"&&(s+=li(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}function Im(e){var t=ao(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function ow(e){return["html","body","#document"].indexOf(Br(e))>=0?e.ownerDocument.body:Zn(e)&&Im(e)?e:ow(Pd(e))}function zs(e,t){var n;t===void 0&&(t=[]);var r=ow(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=jn(r),a=o?[i].concat(i.visualViewport||[],Im(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(zs(Pd(a)))}function Vp(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function h2(e,t){var n=Da(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 uv(e,t,n){return t===qb?Vp(f2(e,n)):yi(t)?h2(t,n):Vp(p2(Vo(e)))}function m2(e){var t=zs(Pd(e)),n=["absolute","fixed"].indexOf(ao(e).position)>=0,r=n&&Zn(e)?Nl(e):e;return yi(r)?t.filter(function(o){return yi(o)&&ew(o,r)&&Br(o)!=="body"}):[]}function g2(e,t,n,r){var o=t==="clippingParents"?m2(e):[].concat(t),i=[].concat(o,[n]),a=i[0],s=i.reduce(function(l,c){var u=uv(e,c,r);return l.top=li(u.top,l.top),l.right=Cu(u.right,l.right),l.bottom=Cu(u.bottom,l.bottom),l.left=li(u.left,l.left),l},uv(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function iw(e){var t=e.reference,n=e.element,r=e.placement,o=r?Nr(r):null,i=r?Ia(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(o){case xn:l={x:a,y:t.y-n.height};break;case tr:l={x:a,y:t.y+t.height};break;case nr:l={x:t.x+t.width,y:s};break;case Sn:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var c=o?Rm(o):null;if(c!=null){var u=c==="y"?"height":"width";switch(i){case Ra:l[c]=l[c]-(t[u]/2-n[u]/2);break;case ml:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function gl(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,a=i===void 0?e.strategy:i,s=n.boundary,l=s===void 0?jD:s,c=n.rootBoundary,u=c===void 0?qb:c,d=n.elementContext,f=d===void 0?ss:d,y=n.altBoundary,g=y===void 0?!1:y,x=n.padding,C=x===void 0?0:x,p=nw(typeof C!="number"?C:rw(C,jl)),m=f===ss?ND:ss,v=e.rects.popper,S=e.elements[g?m:f],P=g2(yi(S)?S:S.contextElement||Vo(e.elements.popper),l,u,a),k=Da(e.elements.reference),M=iw({reference:k,element:v,strategy:"absolute",placement:o}),E=Vp(Object.assign({},v,M)),$=f===ss?E:k,w={top:P.top-$.top+p.top,bottom:$.bottom-P.bottom+p.bottom,left:P.left-$.left+p.left,right:$.right-P.right+p.right},R=e.modifiersData.offset;if(f===ss&&R){var L=R[o];Object.keys(w).forEach(function(j){var O=[nr,tr].indexOf(j)>=0?1:-1,D=[xn,tr].indexOf(j)>=0?"y":"x";w[j]+=L[D]*O})}return w}function y2(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?Zb:l,u=Ia(r),d=u?s?av:av.filter(function(g){return Ia(g)===u}):jl,f=d.filter(function(g){return c.indexOf(g)>=0});f.length===0&&(f=d);var y=f.reduce(function(g,x){return g[x]=gl(e,{placement:x,boundary:o,rootBoundary:i,padding:a})[Nr(x)],g},{});return Object.keys(y).sort(function(g,x){return y[g]-y[x]})}function v2(e){if(Nr(e)===Pm)return[];var t=Vc(e);return[cv(e),t,cv(t)]}function x2(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,s=a===void 0?!0:a,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,y=n.flipVariations,g=y===void 0?!0:y,x=n.allowedAutoPlacements,C=t.options.placement,p=Nr(C),m=p===C,v=l||(m||!g?[Vc(C)]:v2(C)),S=[C].concat(v).reduce(function(se,Y){return se.concat(Nr(Y)===Pm?y2(t,{placement:Y,boundary:u,rootBoundary:d,padding:c,flipVariations:g,allowedAutoPlacements:x}):Y)},[]),P=t.rects.reference,k=t.rects.popper,M=new Map,E=!0,$=S[0],w=0;w=0,D=O?"width":"height",I=gl(t,{placement:R,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),N=O?j?nr:Sn:j?tr:xn;P[D]>k[D]&&(N=Vc(N));var T=Vc(N),A=[];if(i&&A.push(I[L]<=0),s&&A.push(I[N]<=0,I[T]<=0),A.every(function(se){return se})){$=R,E=!1;break}M.set(R,A)}if(E)for(var _=g?3:1,V=function(Y){var le=S.find(function(ie){var ee=M.get(ie);if(ee)return ee.slice(0,Y).every(function(q){return q})});if(le)return $=le,"break"},H=_;H>0;H--){var ae=V(H);if(ae==="break")break}t.placement!==$&&(t.modifiersData[r]._skip=!0,t.placement=$,t.reset=!0)}}const S2={name:"flip",enabled:!0,phase:"main",fn:x2,requiresIfExists:["offset"],data:{_skip:!1}};function dv(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 fv(e){return[xn,nr,tr,Sn].some(function(t){return e[t]>=0})}function b2(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=gl(t,{elementContext:"reference"}),s=gl(t,{altBoundary:!0}),l=dv(a,r),c=dv(s,o,i),u=fv(l),d=fv(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}const w2={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:b2};function C2(e,t,n){var r=Nr(e),o=[Sn,xn].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[Sn,nr].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function k2(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,a=Zb.reduce(function(u,d){return u[d]=C2(d,t.rects,i),u},{}),s=a[t.placement],l=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}const P2={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:k2};function E2(e){var t=e.state,n=e.name;t.modifiersData[n]=iw({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const M2={name:"popperOffsets",enabled:!0,phase:"read",fn:E2,data:{}};function R2(e){return e==="x"?"y":"x"}function T2(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,s=a===void 0?!1:a,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,y=f===void 0?!0:f,g=n.tetherOffset,x=g===void 0?0:g,C=gl(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),p=Nr(t.placement),m=Ia(t.placement),v=!m,S=Rm(p),P=R2(S),k=t.modifiersData.popperOffsets,M=t.rects.reference,E=t.rects.popper,$=typeof x=="function"?x(Object.assign({},t.rects,{placement:t.placement})):x,w=typeof $=="number"?{mainAxis:$,altAxis:$}:Object.assign({mainAxis:0,altAxis:0},$),R=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,L={x:0,y:0};if(k){if(i){var j,O=S==="y"?xn:Sn,D=S==="y"?tr:nr,I=S==="y"?"height":"width",N=k[S],T=N+C[O],A=N-C[D],_=y?-E[I]/2:0,V=m===Ra?M[I]:E[I],H=m===Ra?-E[I]:-M[I],ae=t.elements.arrow,se=y&&ae?Mm(ae):{width:0,height:0},Y=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:tw(),le=Y[O],ie=Y[D],ee=_s(0,M[I],se[I]),q=v?M[I]/2-_-ee-le-w.mainAxis:V-ee-le-w.mainAxis,ne=v?-M[I]/2+_+ee+ie+w.mainAxis:H+ee+ie+w.mainAxis,oe=t.elements.arrow&&Nl(t.elements.arrow),W=oe?S==="y"?oe.clientTop||0:oe.clientLeft||0:0,F=(j=R==null?void 0:R[S])!=null?j:0,K=N+q-F-W,Q=N+ne-F,te=_s(y?Cu(T,K):T,N,y?li(A,Q):A);k[S]=te,L[S]=te-N}if(s){var ue,J=S==="x"?xn:Sn,fe=S==="x"?tr:nr,ge=k[P],Le=P==="y"?"height":"width",xe=ge+C[J],tt=ge-C[fe],Ee=[xn,Sn].indexOf(p)!==-1,_e=(ue=R==null?void 0:R[P])!=null?ue:0,ct=Ee?xe:ge-M[Le]-E[Le]-_e+w.altAxis,je=Ee?ge+M[Le]+E[Le]-_e-w.altAxis:tt,Oe=y&&Ee?JD(ct,ge,je):_s(y?ct:xe,ge,y?je:tt);k[P]=Oe,L[P]=Oe-ge}t.modifiersData[r]=L}}const D2={name:"preventOverflow",enabled:!0,phase:"main",fn:T2,requiresIfExists:["offset"]};function I2(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function O2(e){return e===jn(e)||!Zn(e)?Tm(e):I2(e)}function $2(e){var t=e.getBoundingClientRect(),n=Ta(t.width)/e.offsetWidth||1,r=Ta(t.height)/e.offsetHeight||1;return n!==1||r!==1}function A2(e,t,n){n===void 0&&(n=!1);var r=Zn(t),o=Zn(t)&&$2(t),i=Vo(t),a=Da(e,o,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Br(t)!=="body"||Im(i))&&(s=O2(t)),Zn(t)?(l=Da(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=Dm(i))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function L2(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&o(l)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function j2(e){var t=L2(e);return KD.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function N2(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function F2(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 pv={placement:"bottom",modifiers:[],strategy:"absolute"};function hv(){for(var e=arguments.length,t=new Array(e),n=0;n{i||s(V2(o)||document.body)},[o,i]),Vt(()=>{if(a&&!i)return Lp(n,a),()=>{Lp(n,null)}},[n,a,i]),i){if(h.isValidElement(r)){const c={ref:l};return h.cloneElement(r,c)}return r}return a&&Qu.createPortal(r,a)});function W2(e){return ye("MuiPopper",e)}me("MuiPopper",["root"]);function U2(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 Wp(e){return typeof e=="function"?e():e}function H2(e){return e.nodeType!==void 0}const Y2=e=>{const{classes:t}=e;return ve({root:["root"]},W2,t)},K2={},G2=h.forwardRef(function(t,n){const{anchorEl:r,children:o,direction:i,disablePortal:a,modifiers:s,open:l,placement:c,popperOptions:u,popperRef:d,slotProps:f={},slots:y={},TransitionProps:g,ownerState:x,...C}=t,p=h.useRef(null),m=He(p,n),v=h.useRef(null),S=He(v,d),P=h.useRef(S);Vt(()=>{P.current=S},[S]),h.useImperativeHandle(d,()=>v.current,[]);const k=U2(c,i),[M,E]=h.useState(k),[$,w]=h.useState(Wp(r));h.useEffect(()=>{v.current&&v.current.forceUpdate()}),h.useEffect(()=>{r&&w(Wp(r))},[r]),Vt(()=>{if(!$||!l)return;const D=T=>{E(T.placement)};let I=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:T})=>{D(T)}}];s!=null&&(I=I.concat(s)),u&&u.modifiers!=null&&(I=I.concat(u.modifiers));const N=z2($,p.current,{placement:k,...u,modifiers:I});return P.current(N),()=>{N.destroy(),P.current(null)}},[$,a,s,l,u,k]);const R={placement:M};g!==null&&(R.TransitionProps=g);const L=Y2(t),j=y.root??"div",O=Qe({elementType:j,externalSlotProps:f.root,externalForwardedProps:C,additionalProps:{role:"tooltip",ref:m},ownerState:t,className:L.root});return b.jsx(j,{...O,children:typeof o=="function"?o(R):o})}),Q2=h.forwardRef(function(t,n){const{anchorEl:r,children:o,container:i,direction:a="ltr",disablePortal:s=!1,keepMounted:l=!1,modifiers:c,open:u,placement:d="bottom",popperOptions:f=K2,popperRef:y,style:g,transition:x=!1,slotProps:C={},slots:p={},...m}=t,[v,S]=h.useState(!0),P=()=>{S(!1)},k=()=>{S(!0)};if(!l&&!u&&(!x||v))return null;let M;if(i)M=i;else if(r){const w=Wp(r);M=w&&H2(w)?zt(w).body:zt(null).body}const E=!u&&l&&(!x||v)?"none":void 0,$=x?{in:u,onEnter:P,onExited:k}:void 0;return b.jsx(aw,{disablePortal:s,container:M,children:b.jsx(G2,{anchorEl:r,direction:a,disablePortal:s,modifiers:c,ref:n,open:x?!v:u,placement:d,popperOptions:f,popperRef:y,slotProps:C,slots:p,...m,style:{position:"fixed",top:0,left:0,display:E,...g},TransitionProps:$,children:o})})}),X2=G(Q2,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),q2=h.forwardRef(function(t,n){const r=ir(),o=Ie({props:t,name:"MuiPopper"}),{anchorEl:i,component:a,components:s,componentsProps:l,container:c,disablePortal:u,keepMounted:d,modifiers:f,open:y,placement:g,popperOptions:x,popperRef:C,transition:p,slots:m,slotProps:v,...S}=o,P=(m==null?void 0:m.root)??(s==null?void 0:s.Root),k={anchorEl:i,container:c,disablePortal:u,keepMounted:d,modifiers:f,open:y,placement:g,popperOptions:x,popperRef:C,transition:p,...S};return b.jsx(X2,{as:a,direction:r?"rtl":"ltr",slots:{root:P},slotProps:v??l,...k,ref:n})}),Z2=en(b.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function J2(e){return ye("MuiChip",e)}const ze=me("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"]),eI=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:i,onDelete:a,clickable:s,variant:l}=e,c={root:["root",l,n&&"disabled",`size${ce(r)}`,`color${ce(o)}`,s&&"clickable",s&&`clickableColor${ce(o)}`,a&&"deletable",a&&`deletableColor${ce(o)}`,`${l}${ce(o)}`],label:["label",`label${ce(r)}`],avatar:["avatar",`avatar${ce(r)}`,`avatarColor${ce(o)}`],icon:["icon",`icon${ce(r)}`,`iconColor${ce(i)}`],deleteIcon:["deleteIcon",`deleteIcon${ce(r)}`,`deleteIconColor${ce(o)}`,`deleteIcon${ce(l)}Color${ce(o)}`]};return ve(c,J2,t)},tI=G("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:i,onDelete:a,size:s,variant:l}=n;return[{[`& .${ze.avatar}`]:t.avatar},{[`& .${ze.avatar}`]:t[`avatar${ce(s)}`]},{[`& .${ze.avatar}`]:t[`avatarColor${ce(r)}`]},{[`& .${ze.icon}`]:t.icon},{[`& .${ze.icon}`]:t[`icon${ce(s)}`]},{[`& .${ze.icon}`]:t[`iconColor${ce(o)}`]},{[`& .${ze.deleteIcon}`]:t.deleteIcon},{[`& .${ze.deleteIcon}`]:t[`deleteIcon${ce(s)}`]},{[`& .${ze.deleteIcon}`]:t[`deleteIconColor${ce(r)}`]},{[`& .${ze.deleteIcon}`]:t[`deleteIcon${ce(l)}Color${ce(r)}`]},t.root,t[`size${ce(s)}`],t[`color${ce(r)}`],i&&t.clickable,i&&r!=="default"&&t[`clickableColor${ce(r)})`],a&&t.deletable,a&&r!=="default"&&t[`deletableColor${ce(r)}`],t[l],t[`${l}${ce(r)}`]]}})(Fe(({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,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",[`&.${ze.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${ze.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${ze.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${ze.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${ze.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${ze.icon}`]:{marginLeft:5,marginRight:-6},[`& .${ze.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:Be(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:Be(e.palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${ze.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${ze.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(Ht(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText,[`& .${ze.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[n].contrastTextChannel} / 0.7)`:Be(e.palette[n].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].contrastText}}}})),{props:n=>n.iconColor===n.color,style:{[`& .${ze.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${ze.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${ze.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Be(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}},...Object.entries(e.palette).filter(Ht(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${ze.focusVisible}`]:{background:(e.vars||e).palette[n].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Be(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${ze.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Be(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(Ht(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${ze.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]}`,[`&.${ze.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${ze.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${ze.avatar}`]:{marginLeft:4},[`& .${ze.avatarSmall}`]:{marginLeft:2},[`& .${ze.icon}`]:{marginLeft:4},[`& .${ze.iconSmall}`]:{marginLeft:2},[`& .${ze.deleteIcon}`]:{marginRight:5},[`& .${ze.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(Ht()).map(([n])=>({props:{variant:"outlined",color:n},style:{color:(e.vars||e).palette[n].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[n].mainChannel} / 0.7)`:Be(e.palette[n].main,.7)}`,[`&.${ze.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Be(e.palette[n].main,e.palette.action.hoverOpacity)},[`&.${ze.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Be(e.palette[n].main,e.palette.action.focusOpacity)},[`& .${ze.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[n].mainChannel} / 0.7)`:Be(e.palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),nI=G("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${ce(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 mv(e){return e.key==="Backspace"||e.key==="Delete"}const rI=h.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiChip"}),{avatar:o,className:i,clickable:a,color:s="default",component:l,deleteIcon:c,disabled:u=!1,icon:d,label:f,onClick:y,onDelete:g,onKeyDown:x,onKeyUp:C,size:p="medium",variant:m="filled",tabIndex:v,skipFocusWhenDisabled:S=!1,...P}=r,k=h.useRef(null),M=He(k,n),E=A=>{A.stopPropagation(),g&&g(A)},$=A=>{A.currentTarget===A.target&&mv(A)&&A.preventDefault(),x&&x(A)},w=A=>{A.currentTarget===A.target&&g&&mv(A)&&g(A),C&&C(A)},R=a!==!1&&y?!0:a,L=R||g?Ma:l||"div",j={...r,component:L,disabled:u,size:p,color:s,iconColor:h.isValidElement(d)&&d.props.color||s,onDelete:!!g,clickable:R,variant:m},O=eI(j),D=L===Ma?{component:l||"div",focusVisibleClassName:O.focusVisible,...g&&{disableRipple:!0}}:{};let I=null;g&&(I=c&&h.isValidElement(c)?h.cloneElement(c,{className:pe(c.props.className,O.deleteIcon),onClick:E}):b.jsx(Z2,{className:pe(O.deleteIcon),onClick:E}));let N=null;o&&h.isValidElement(o)&&(N=h.cloneElement(o,{className:pe(O.avatar,o.props.className)}));let T=null;return d&&h.isValidElement(d)&&(T=h.cloneElement(d,{className:pe(O.icon,d.props.className)})),b.jsxs(tI,{as:L,className:pe(O.root,i),disabled:R&&u?!0:void 0,onClick:y,onKeyDown:$,onKeyUp:w,ref:M,tabIndex:S&&u?-1:v,ownerState:j,...D,...P,children:[N||T,b.jsx(nI,{className:pe(O.label),ownerState:j,children:f}),I]})});function yc(e){return parseInt(e,10)||0}const oI={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function iI(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const aI=h.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:i=1,style:a,value:s,...l}=t,{current:c}=h.useRef(s!=null),u=h.useRef(null),d=He(n,u),f=h.useRef(null),y=h.useRef(null),g=h.useCallback(()=>{const p=u.current,v=yr(p).getComputedStyle(p);if(v.width==="0px")return{outerHeightStyle:0,overflowing:!1};const S=y.current;S.style.width=v.width,S.value=p.value||t.placeholder||"x",S.value.slice(-1)===` -`&&(S.value+=" ");const P=v.boxSizing,k=yc(v.paddingBottom)+yc(v.paddingTop),M=yc(v.borderBottomWidth)+yc(v.borderTopWidth),E=S.scrollHeight;S.value="x";const $=S.scrollHeight;let w=E;i&&(w=Math.max(Number(i)*$,w)),o&&(w=Math.min(Number(o)*$,w)),w=Math.max(w,$);const R=w+(P==="border-box"?k+M:0),L=Math.abs(w-E)<=1;return{outerHeightStyle:R,overflowing:L}},[o,i,t.placeholder]),x=h.useCallback(()=>{const p=g();if(iI(p))return;const m=p.outerHeightStyle,v=u.current;f.current!==m&&(f.current=m,v.style.height=`${m}px`),v.style.overflow=p.overflowing?"hidden":""},[g]);Vt(()=>{const p=()=>{x()};let m;const v=fm(p),S=u.current,P=yr(S);P.addEventListener("resize",v);let k;return typeof ResizeObserver<"u"&&(k=new ResizeObserver(p),k.observe(S)),()=>{v.clear(),cancelAnimationFrame(m),P.removeEventListener("resize",v),k&&k.disconnect()}},[g,x]),Vt(()=>{x()});const C=p=>{c||x(),r&&r(p)};return b.jsxs(h.Fragment,{children:[b.jsx("textarea",{value:s,onChange:C,ref:d,rows:i,style:a,...l}),b.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:y,tabIndex:-1,style:{...oI.shadow,...a,paddingTop:0,paddingBottom:0}})]})});function yl(e){return typeof e=="string"}function Ua({props:e,states:t,muiFormControl:n}){return t.reduce((r,o)=>(r[o]=e[o],n&&typeof e[o]>"u"&&(r[o]=n[o]),r),{})}const Ed=h.createContext(void 0);function Sr(){return h.useContext(Ed)}function gv(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function ku(e,t=!1){return e&&(gv(e.value)&&e.value!==""||t&&gv(e.defaultValue)&&e.defaultValue!=="")}function sI(e){return e.startAdornment}function lI(e){return ye("MuiInputBase",e)}const Oa=me("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var yv;const Md=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${ce(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Rd=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},cI=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:s,fullWidth:l,hiddenLabel:c,multiline:u,readOnly:d,size:f,startAdornment:y,type:g}=e,x={root:["root",`color${ce(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",f&&f!=="medium"&&`size${ce(f)}`,u&&"multiline",y&&"adornedStart",i&&"adornedEnd",c&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled",g==="search"&&"inputTypeSearch",u&&"inputMultiline",f==="small"&&"inputSizeSmall",c&&"inputHiddenLabel",y&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]};return ve(x,lI,t)},Td=G("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Md})(Fe(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Oa.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:n})=>t.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),Dd=G("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Rd})(Fe(({theme:e})=>{const t=e.palette.mode==="light",n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},o=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Oa.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${Oa.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:i})=>!i.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:i})=>i.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),vv=xm({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),Om=h.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,className:s,color:l,components:c={},componentsProps:u={},defaultValue:d,disabled:f,disableInjectingGlobalStyles:y,endAdornment:g,error:x,fullWidth:C=!1,id:p,inputComponent:m="input",inputProps:v={},inputRef:S,margin:P,maxRows:k,minRows:M,multiline:E=!1,name:$,onBlur:w,onChange:R,onClick:L,onFocus:j,onKeyDown:O,onKeyUp:D,placeholder:I,readOnly:N,renderSuffix:T,rows:A,size:_,slotProps:V={},slots:H={},startAdornment:ae,type:se="text",value:Y,...le}=r,ie=v.value!=null?v.value:Y,{current:ee}=h.useRef(ie!=null),q=h.useRef(),ne=h.useCallback(Ne=>{},[]),oe=He(q,S,v.ref,ne),[W,F]=h.useState(!1),K=Sr(),Q=Ua({props:r,muiFormControl:K,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Q.focused=K?K.focused:W,h.useEffect(()=>{!K&&f&&W&&(F(!1),w&&w())},[K,f,W,w]);const te=K&&K.onFilled,ue=K&&K.onEmpty,J=h.useCallback(Ne=>{ku(Ne)?te&&te():ue&&ue()},[te,ue]);Vt(()=>{ee&&J({value:ie})},[ie,J,ee]);const fe=Ne=>{j&&j(Ne),v.onFocus&&v.onFocus(Ne),K&&K.onFocus?K.onFocus(Ne):F(!0)},ge=Ne=>{w&&w(Ne),v.onBlur&&v.onBlur(Ne),K&&K.onBlur?K.onBlur(Ne):F(!1)},Le=(Ne,...at)=>{if(!ee){const Vn=Ne.target||q.current;if(Vn==null)throw new Error(oo(1));J({value:Vn.value})}v.onChange&&v.onChange(Ne,...at),R&&R(Ne,...at)};h.useEffect(()=>{J(q.current)},[]);const xe=Ne=>{q.current&&Ne.currentTarget===Ne.target&&q.current.focus(),L&&L(Ne)};let tt=m,Ee=v;E&&tt==="input"&&(A?Ee={type:void 0,minRows:A,maxRows:A,...Ee}:Ee={type:void 0,maxRows:k,minRows:M,...Ee},tt=aI);const _e=Ne=>{J(Ne.animationName==="mui-auto-fill-cancel"?q.current:{value:"x"})};h.useEffect(()=>{K&&K.setAdornedStart(!!ae)},[K,ae]);const ct={...r,color:Q.color||"primary",disabled:Q.disabled,endAdornment:g,error:Q.error,focused:Q.focused,formControl:K,fullWidth:C,hiddenLabel:Q.hiddenLabel,multiline:E,size:Q.size,startAdornment:ae,type:se},je=cI(ct),Oe=H.root||c.Root||Td,ft=V.root||u.root||{},$t=H.input||c.Input||Dd;return Ee={...Ee,...V.input??u.input},b.jsxs(h.Fragment,{children:[!y&&typeof vv=="function"&&(yv||(yv=b.jsx(vv,{}))),b.jsxs(Oe,{...ft,ref:n,onClick:xe,...le,...!yl(Oe)&&{ownerState:{...ct,...ft.ownerState}},className:pe(je.root,ft.className,s,N&&"MuiInputBase-readOnly"),children:[ae,b.jsx(Ed.Provider,{value:null,children:b.jsx($t,{"aria-invalid":Q.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:d,disabled:Q.disabled,id:p,onAnimationStart:_e,name:$,placeholder:I,readOnly:N,required:Q.required,rows:A,value:ie,onKeyDown:O,onKeyUp:D,type:se,...Ee,...!yl($t)&&{as:tt,ownerState:{...ct,...Ee.ownerState}},ref:oe,className:pe(je.input,Ee.className,N&&"MuiInputBase-readOnly"),onBlur:ge,onChange:Le,onFocus:fe})}),g,T?T({...Q,startAdornment:ae}):null]})]})});function uI(e){return ye("MuiInput",e)}const ls={...Oa,...me("MuiInput",["root","underline","input"])};function dI(e){return ye("MuiOutlinedInput",e)}const Pr={...Oa,...me("MuiOutlinedInput",["root","notchedOutline","input"])};function fI(e){return ye("MuiFilledInput",e)}const Ho={...Oa,...me("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},pI=en(b.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),hI={entering:{opacity:1},entered:{opacity:1}},Ha=h.forwardRef(function(t,n){const r=xr(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:s,easing:l,in:c,onEnter:u,onEntered:d,onEntering:f,onExit:y,onExited:g,onExiting:x,style:C,timeout:p=o,TransitionComponent:m=ar,...v}=t,S=h.useRef(null),P=He(S,ki(s),n),k=O=>D=>{if(O){const I=S.current;D===void 0?O(I):O(I,D)}},M=k(f),E=k((O,D)=>{Cm(O);const I=Ea({style:C,timeout:p,easing:l},{mode:"enter"});O.style.webkitTransition=r.transitions.create("opacity",I),O.style.transition=r.transitions.create("opacity",I),u&&u(O,D)}),$=k(d),w=k(x),R=k(O=>{const D=Ea({style:C,timeout:p,easing:l},{mode:"exit"});O.style.webkitTransition=r.transitions.create("opacity",D),O.style.transition=r.transitions.create("opacity",D),y&&y(O)}),L=k(g),j=O=>{i&&i(S.current,O)};return b.jsx(m,{appear:a,in:c,nodeRef:S,onEnter:E,onEntered:$,onEntering:M,onExit:R,onExited:L,onExiting:w,addEndListener:j,timeout:p,...v,children:(O,D)=>h.cloneElement(s,{style:{opacity:0,visibility:O==="exited"&&!c?"hidden":void 0,...hI[O],...C,...s.props.style},ref:P,...D})})});function mI(e){return ye("MuiBackdrop",e)}me("MuiBackdrop",["root","invisible"]);const gI=e=>{const{ownerState:t,...n}=e;return n},yI=e=>{const{classes:t,invisible:n}=e;return ve({root:["root",n&&"invisible"]},mI,t)},vI=G("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),sw=h.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiBackdrop"}),{children:o,className:i,component:a="div",invisible:s=!1,open:l,components:c={},componentsProps:u={},slotProps:d={},slots:f={},TransitionComponent:y,transitionDuration:g,...x}=r,C={...r,component:a,invisible:s},p=yI(C),m={transition:y,root:c.Root,...f},v={...u,...d},S={slots:m,slotProps:v},[P,k]=Tn("root",{elementType:vI,externalForwardedProps:S,className:pe(p.root,i),ownerState:C}),[M,E]=Tn("transition",{elementType:Ha,externalForwardedProps:S,ownerState:C}),$=gI(E);return b.jsx(M,{in:l,timeout:g,...x,...$,children:b.jsx(P,{"aria-hidden":!0,...k,classes:p,ref:n,children:o})})}),xI=me("MuiBox",["root"]),SI=Cd(),an=BM({themeId:qn,defaultTheme:SI,defaultClassName:xI.root,generateClassName:kb.generate});function bI(e){return ye("MuiButton",e)}const Fi=me("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"]),wI=h.createContext({}),CI=h.createContext(void 0),kI=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e,s={root:["root",i,`${i}${ce(t)}`,`size${ce(o)}`,`${i}Size${ce(o)}`,`color${ce(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${ce(o)}`],endIcon:["icon","endIcon",`iconSize${ce(o)}`]},l=ve(s,bI,a);return{...a,...l}},lw=[{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}}}],PI=G(Ma,{shouldForwardProp:e=>_n(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${ce(n.color)}`],t[`size${ce(n.size)}`],t[`${n.variant}Size${ce(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(Fe(({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"},[`&.${Fi.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]},[`&.${Fi.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${Fi.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)",[`&.${Fi.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(Ht()).map(([r])=>({props:{color:r},style:{"--variant-textColor":(e.vars||e).palette[r].main,"--variant-outlinedColor":(e.vars||e).palette[r].main,"--variant-outlinedBorder":e.vars?`rgba(${e.vars.palette[r].mainChannel} / 0.5)`:Be(e.palette[r].main,.5),"--variant-containedColor":(e.vars||e).palette[r].contrastText,"--variant-containedBg":(e.vars||e).palette[r].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[r].dark,"--variant-textBg":e.vars?`rgba(${e.vars.palette[r].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Be(e.palette[r].main,e.palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[r].main,"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette[r].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Be(e.palette[r].main,e.palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Be(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Be(e.palette.text.primary,e.palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Fi.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Fi.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}}]}})),EI=G("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${ce(n.size)}`]]}})({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},...lw]}),MI=G("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${ce(n.size)}`]]}})({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},...lw]}),Tt=h.forwardRef(function(t,n){const r=h.useContext(wI),o=h.useContext(CI),i=hl(r,t),a=Ie({props:i,name:"MuiButton"}),{children:s,color:l="primary",component:c="button",className:u,disabled:d=!1,disableElevation:f=!1,disableFocusRipple:y=!1,endIcon:g,focusVisibleClassName:x,fullWidth:C=!1,size:p="medium",startIcon:m,type:v,variant:S="text",...P}=a,k={...a,color:l,component:c,disabled:d,disableElevation:f,disableFocusRipple:y,fullWidth:C,size:p,type:v,variant:S},M=kI(k),E=m&&b.jsx(EI,{className:M.startIcon,ownerState:k,children:m}),$=g&&b.jsx(MI,{className:M.endIcon,ownerState:k,children:g}),w=o||"";return b.jsxs(PI,{ownerState:k,className:pe(r.className,M.root,u,w),component:c,disabled:d,focusRipple:!y,focusVisibleClassName:pe(M.focusVisible,x),ref:n,type:v,...P,classes:M,children:[E,s,$]})});function RI(e){return ye("MuiCard",e)}me("MuiCard",["root"]);const TI=e=>{const{classes:t}=e;return ve({root:["root"]},RI,t)},DI=G(vr,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})({overflow:"hidden"}),vl=h.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiCard"}),{className:o,raised:i=!1,...a}=r,s={...r,raised:i},l=TI(s);return b.jsx(DI,{className:pe(l.root,o),elevation:i?8:void 0,ref:n,ownerState:s,...a})});function II(e){return ye("MuiCardContent",e)}me("MuiCardContent",["root"]);const OI=e=>{const{classes:t}=e;return ve({root:["root"]},II,t)},$I=G("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:16,"&:last-child":{paddingBottom:24}}),cw=h.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiCardContent"}),{className:o,component:i="div",...a}=r,s={...r,component:i},l=OI(s);return b.jsx($I,{as:i,className:pe(l.root,o),ownerState:s,ref:n,...a})});function AI(e){return ye("MuiCardMedia",e)}me("MuiCardMedia",["root","media","img"]);const LI=e=>{const{classes:t,isMediaComponent:n,isImageComponent:r}=e;return ve({root:["root",n&&"media",r&&"img"]},AI,t)},jI=G("div",{name:"MuiCardMedia",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{isMediaComponent:r,isImageComponent:o}=n;return[t.root,r&&t.media,o&&t.img]}})({display:"block",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center",variants:[{props:{isMediaComponent:!0},style:{width:"100%"}},{props:{isImageComponent:!0},style:{objectFit:"cover"}}]}),NI=["video","audio","picture","iframe","img"],FI=["picture","img"],BI=h.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiCardMedia"}),{children:o,className:i,component:a="div",image:s,src:l,style:c,...u}=r,d=NI.includes(a),f=!d&&s?{backgroundImage:`url("${s}")`,...c}:c,y={...r,component:a,isMediaComponent:d,isImageComponent:FI.includes(a)},g=LI(y);return b.jsx(jI,{className:pe(g.root,i),as:a,role:!d&&s?"img":void 0,ref:n,style:f,ownerState:y,src:d?s||l:void 0,...u,children:o})});function _I(e){return ye("MuiCircularProgress",e)}me("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const ho=44,Up=Il` - 0% { - transform: rotate(0deg); - } - - 100% { - transform: rotate(360deg); - } -`,Hp=Il` - 0% { - stroke-dasharray: 1px, 200px; - stroke-dashoffset: 0; - } - - 50% { - stroke-dasharray: 100px, 200px; - stroke-dashoffset: -15px; - } - - 100% { - stroke-dasharray: 100px, 200px; - stroke-dashoffset: -125px; - } -`,zI=typeof Up!="string"?im` - animation: ${Up} 1.4s linear infinite; - `:null,VI=typeof Hp!="string"?im` - animation: ${Hp} 1.4s ease-in-out infinite; - `:null,WI=e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,i={root:["root",n,`color${ce(r)}`],svg:["svg"],circle:["circle",`circle${ce(n)}`,o&&"circleDisableShrink"]};return ve(i,_I,t)},UI=G("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${ce(n.color)}`]]}})(Fe(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:zI||{animation:`${Up} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Ht()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),HI=G("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),YI=G("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${ce(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(Fe(({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:VI||{animation:`${Hp} 1.4s ease-in-out infinite`}}]}))),Fl=h.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiCircularProgress"}),{className:o,color:i="primary",disableShrink:a=!1,size:s=40,style:l,thickness:c=3.6,value:u=0,variant:d="indeterminate",...f}=r,y={...r,color:i,disableShrink:a,size:s,thickness:c,value:u,variant:d},g=WI(y),x={},C={},p={};if(d==="determinate"){const m=2*Math.PI*((ho-c)/2);x.strokeDasharray=m.toFixed(3),p["aria-valuenow"]=Math.round(u),x.strokeDashoffset=`${((100-u)/100*m).toFixed(3)}px`,C.transform="rotate(-90deg)"}return b.jsx(UI,{className:pe(g.root,o),style:{width:s,height:s,...C,...l},ownerState:y,ref:n,role:"progressbar",...p,...f,children:b.jsx(HI,{className:g.svg,ownerState:y,viewBox:`${ho/2} ${ho/2} ${ho} ${ho}`,children:b.jsx(YI,{className:g.circle,style:x,ownerState:y,cx:ho,cy:ho,r:(ho-c)/2,fill:"none",strokeWidth:c})})})});function xv(e){return e.substring(2).toLowerCase()}function KI(e,t){return t.documentElement.clientWidth(setTimeout(()=>{l.current=!0},0),()=>{l.current=!1}),[]);const u=He(ki(t),s),d=Se(g=>{const x=c.current;c.current=!1;const C=zt(s.current);if(!l.current||!s.current||"clientX"in g&&KI(g,C))return;if(a.current){a.current=!1;return}let p;g.composedPath?p=g.composedPath().includes(s.current):p=!C.documentElement.contains(g.target)||s.current.contains(g.target),!p&&(n||!x)&&o(g)}),f=g=>x=>{c.current=!0;const C=t.props[g];C&&C(x)},y={ref:u};return i!==!1&&(y[i]=f(i)),h.useEffect(()=>{if(i!==!1){const g=xv(i),x=zt(s.current),C=()=>{a.current=!0};return x.addEventListener(g,d),x.addEventListener("touchmove",C),()=>{x.removeEventListener(g,d),x.removeEventListener("touchmove",C)}}},[d,i]),r!==!1&&(y[r]=f(r)),h.useEffect(()=>{if(r!==!1){const g=xv(r),x=zt(s.current);return x.addEventListener(g,d),()=>{x.removeEventListener(g,d)}}},[d,r]),h.cloneElement(t,y)}const uw=OR({createStyledComponent:G("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${ce(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>Ie({props:e,name:"MuiContainer"})}),Yp=typeof xm({})=="function",QI=(e,t)=>({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...t&&!e.vars&&{colorScheme:e.palette.mode}}),XI=e=>({color:(e.vars||e).palette.text.primary,...e.typography.body1,backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),dw=(e,t=!1)=>{var i,a;const n={};t&&e.colorSchemes&&typeof e.getColorSchemeSelector=="function"&&Object.entries(e.colorSchemes).forEach(([s,l])=>{var u,d;const c=e.getColorSchemeSelector(s);c.startsWith("@")?n[c]={":root":{colorScheme:(u=l.palette)==null?void 0:u.mode}}:n[c.replace(/\s*&/,"")]={colorScheme:(d=l.palette)==null?void 0:d.mode}});let r={html:QI(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:{margin:0,...XI(e),"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}},...n};const o=(a=(i=e.components)==null?void 0:i.MuiCssBaseline)==null?void 0:a.styleOverrides;return o&&(r=[r,o]),r},Wc="mui-ecs",qI=e=>{const t=dw(e,!1),n=Array.isArray(t)?t[0]:t;return!e.vars&&n&&(n.html[`:root:has(${Wc})`]={colorScheme:e.palette.mode}),e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([r,o])=>{var a,s;const i=e.getColorSchemeSelector(r);i.startsWith("@")?n[i]={[`:root:not(:has(.${Wc}))`]:{colorScheme:(a=o.palette)==null?void 0:a.mode}}:n[i.replace(/\s*&/,"")]={[`&:not(:has(.${Wc}))`]:{colorScheme:(s=o.palette)==null?void 0:s.mode}}}),t},ZI=xm(Yp?({theme:e,enableColorScheme:t})=>dw(e,t):({theme:e})=>qI(e));function fw(e){const t=Ie({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return b.jsxs(h.Fragment,{children:[Yp&&b.jsx(ZI,{enableColorScheme:r}),!Yp&&!r&&b.jsx("span",{className:Wc,style:{display:"none"}}),n]})}function JI(e){const t=zt(e);return t.body===e?yr(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Vs(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Sv(e){return parseInt(yr(e).getComputedStyle(e).paddingRight,10)||0}function eO(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function bv(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,a=>{const s=!i.includes(a),l=!eO(a);s&&l&&Vs(a,o)})}function kf(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function tO(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(JI(r)){const a=Lb(yr(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${Sv(r)+a}px`;const s=zt(r).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${Sv(l)+a}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=zt(r).body;else{const a=r.parentElement,s=yr(r);i=(a==null?void 0:a.nodeName)==="HTML"&&s.getComputedStyle(a).overflowY==="scroll"?a:r}n.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{n.forEach(({value:i,el:a,property:s})=>{i?a.style.setProperty(s,i):a.style.removeProperty(s)})}}function nO(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class rO{constructor(){this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&Vs(t.modalRef,!1);const o=nO(n);bv(n,t.mount,t.modalRef,o,!0);const i=kf(this.containers,a=>a.container===n);return i!==-1?(this.containers[i].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=kf(this.containers,i=>i.modals.includes(t)),o=this.containers[r];o.restore||(o.restore=tO(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=kf(this.containers,a=>a.modals.includes(t)),i=this.containers[o];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(r,1),i.modals.length===0)i.restore&&i.restore(),t.modalRef&&Vs(t.modalRef,n),bv(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(o,1);else{const a=i.modals[i.modals.length-1];a.modalRef&&Vs(a.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const oO=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function iO(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function aO(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function sO(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||aO(e))}function lO(e){const t=[],n=[];return Array.from(e.querySelectorAll(oO)).forEach((r,o)=>{const i=iO(r);i===-1||!sO(r)||(i===0?t.push(r):n.push({documentOrder:o,tabIndex:i,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function cO(){return!0}function pw(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=lO,isEnabled:a=cO,open:s}=e,l=h.useRef(!1),c=h.useRef(null),u=h.useRef(null),d=h.useRef(null),f=h.useRef(null),y=h.useRef(!1),g=h.useRef(null),x=He(ki(t),g),C=h.useRef(null);h.useEffect(()=>{!s||!g.current||(y.current=!n)},[n,s]),h.useEffect(()=>{if(!s||!g.current)return;const v=zt(g.current);return g.current.contains(v.activeElement)||(g.current.hasAttribute("tabIndex")||g.current.setAttribute("tabIndex","-1"),y.current&&g.current.focus()),()=>{o||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}},[s]),h.useEffect(()=>{if(!s||!g.current)return;const v=zt(g.current),S=M=>{C.current=M,!(r||!a()||M.key!=="Tab")&&v.activeElement===g.current&&M.shiftKey&&(l.current=!0,u.current&&u.current.focus())},P=()=>{var $,w;const M=g.current;if(M===null)return;if(!v.hasFocus()||!a()||l.current){l.current=!1;return}if(M.contains(v.activeElement)||r&&v.activeElement!==c.current&&v.activeElement!==u.current)return;if(v.activeElement!==f.current)f.current=null;else if(f.current!==null)return;if(!y.current)return;let E=[];if((v.activeElement===c.current||v.activeElement===u.current)&&(E=i(g.current)),E.length>0){const R=!!(($=C.current)!=null&&$.shiftKey&&((w=C.current)==null?void 0:w.key)==="Tab"),L=E[0],j=E[E.length-1];typeof L!="string"&&typeof j!="string"&&(R?j.focus():L.focus())}else M.focus()};v.addEventListener("focusin",P),v.addEventListener("keydown",S,!0);const k=setInterval(()=>{v.activeElement&&v.activeElement.tagName==="BODY"&&P()},50);return()=>{clearInterval(k),v.removeEventListener("focusin",P),v.removeEventListener("keydown",S,!0)}},[n,r,o,a,s,i]);const p=v=>{d.current===null&&(d.current=v.relatedTarget),y.current=!0,f.current=v.target;const S=t.props.onFocus;S&&S(v)},m=v=>{d.current===null&&(d.current=v.relatedTarget),y.current=!0};return b.jsxs(h.Fragment,{children:[b.jsx("div",{tabIndex:s?0:-1,onFocus:m,ref:c,"data-testid":"sentinelStart"}),h.cloneElement(t,{ref:x,onFocus:p}),b.jsx("div",{tabIndex:s?0:-1,onFocus:m,ref:u,"data-testid":"sentinelEnd"})]})}function uO(e){return typeof e=="function"?e():e}function dO(e){return e?e.props.hasOwnProperty("in"):!1}const wv=()=>{},vc=new rO;function fO(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:o=!1,onTransitionEnter:i,onTransitionExited:a,children:s,onClose:l,open:c,rootRef:u}=e,d=h.useRef({}),f=h.useRef(null),y=h.useRef(null),g=He(y,u),[x,C]=h.useState(!c),p=dO(s);let m=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(m=!1);const v=()=>zt(f.current),S=()=>(d.current.modalRef=y.current,d.current.mount=f.current,d.current),P=()=>{vc.mount(S(),{disableScrollLock:r}),y.current&&(y.current.scrollTop=0)},k=Se(()=>{const D=uO(t)||v().body;vc.add(S(),D),y.current&&P()}),M=()=>vc.isTopModal(S()),E=Se(D=>{f.current=D,D&&(c&&M()?P():y.current&&Vs(y.current,m))}),$=h.useCallback(()=>{vc.remove(S(),m)},[m]);h.useEffect(()=>()=>{$()},[$]),h.useEffect(()=>{c?k():(!p||!o)&&$()},[c,$,p,o,k]);const w=D=>I=>{var N;(N=D.onKeyDown)==null||N.call(D,I),!(I.key!=="Escape"||I.which===229||!M())&&(n||(I.stopPropagation(),l&&l(I,"escapeKeyDown")))},R=D=>I=>{var N;(N=D.onClick)==null||N.call(D,I),I.target===I.currentTarget&&l&&l(I,"backdropClick")};return{getRootProps:(D={})=>{const I=vu(e);delete I.onTransitionEnter,delete I.onTransitionExited;const N={...I,...D};return{role:"presentation",...N,onKeyDown:w(N),ref:g}},getBackdropProps:(D={})=>{const I=D;return{"aria-hidden":!0,...I,onClick:R(I),open:c}},getTransitionProps:()=>{const D=()=>{C(!1),i&&i()},I=()=>{C(!0),a&&a(),o&&$()};return{onEnter:Ly(D,(s==null?void 0:s.props.onEnter)??wv),onExited:Ly(I,(s==null?void 0:s.props.onExited)??wv)}},rootRef:g,portalRef:E,isTopModal:M,exited:x,hasTransition:p}}function pO(e){return ye("MuiModal",e)}me("MuiModal",["root","hidden","backdrop"]);const hO=e=>{const{open:t,exited:n,classes:r}=e;return ve({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},pO,r)},mO=G("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(Fe(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),gO=G(sw,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),$m=h.forwardRef(function(t,n){const r=Ie({name:"MuiModal",props:t}),{BackdropComponent:o=gO,BackdropProps:i,classes:a,className:s,closeAfterTransition:l=!1,children:c,container:u,component:d,components:f={},componentsProps:y={},disableAutoFocus:g=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:C=!1,disablePortal:p=!1,disableRestoreFocus:m=!1,disableScrollLock:v=!1,hideBackdrop:S=!1,keepMounted:P=!1,onBackdropClick:k,onClose:M,onTransitionEnter:E,onTransitionExited:$,open:w,slotProps:R={},slots:L={},theme:j,...O}=r,D={...r,closeAfterTransition:l,disableAutoFocus:g,disableEnforceFocus:x,disableEscapeKeyDown:C,disablePortal:p,disableRestoreFocus:m,disableScrollLock:v,hideBackdrop:S,keepMounted:P},{getRootProps:I,getBackdropProps:N,getTransitionProps:T,portalRef:A,isTopModal:_,exited:V,hasTransition:H}=fO({...D,rootRef:n}),ae={...D,exited:V},se=hO(ae),Y={};if(c.props.tabIndex===void 0&&(Y.tabIndex="-1"),H){const{onEnter:W,onExited:F}=T();Y.onEnter=W,Y.onExited=F}const le={...O,slots:{root:f.Root,backdrop:f.Backdrop,...L},slotProps:{...y,...R}},[ie,ee]=Tn("root",{elementType:mO,externalForwardedProps:le,getSlotProps:I,additionalProps:{ref:n,as:d},ownerState:ae,className:pe(s,se==null?void 0:se.root,!ae.open&&ae.exited&&(se==null?void 0:se.hidden))}),[q,ne]=Tn("backdrop",{elementType:o,externalForwardedProps:le,additionalProps:i,getSlotProps:W=>N({...W,onClick:F=>{k&&k(F),W!=null&&W.onClick&&W.onClick(F)}}),className:pe(i==null?void 0:i.className,se==null?void 0:se.backdrop),ownerState:ae}),oe=He(i==null?void 0:i.ref,ne.ref);return!P&&!w&&(!H||V)?null:b.jsx(aw,{ref:A,container:u,disablePortal:p,children:b.jsxs(ie,{...ee,children:[!S&&o?b.jsx(q,{...ne,ref:oe}):null,b.jsx(pw,{disableEnforceFocus:x,disableAutoFocus:g,disableRestoreFocus:m,isEnabled:_,open:w,children:h.cloneElement(c,Y)})]})})});function yO(e){return ye("MuiDialog",e)}const Ws=me("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),vO=h.createContext({}),xO=G(sw,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),SO=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:i}=e,a={root:["root"],container:["container",`scroll${ce(n)}`],paper:["paper",`paperScroll${ce(n)}`,`paperWidth${ce(String(r))}`,o&&"paperFullWidth",i&&"paperFullScreen"]};return ve(a,yO,t)},bO=G($m,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),wO=G("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${ce(n.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),CO=G(vr,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${ce(n.scroll)}`],t[`paperWidth${ce(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(Fe(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:t})=>!t.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${Ws.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(t=>t!=="xs").map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${Ws.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+32*2)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:t})=>t.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:t})=>t.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${Ws.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),kO=h.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiDialog"}),o=xr(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":s,"aria-modal":l=!0,BackdropComponent:c,BackdropProps:u,children:d,className:f,disableEscapeKeyDown:y=!1,fullScreen:g=!1,fullWidth:x=!1,maxWidth:C="sm",onBackdropClick:p,onClick:m,onClose:v,open:S,PaperComponent:P=vr,PaperProps:k={},scroll:M="paper",TransitionComponent:E=Ha,transitionDuration:$=i,TransitionProps:w,...R}=r,L={...r,disableEscapeKeyDown:y,fullScreen:g,fullWidth:x,maxWidth:C,scroll:M},j=SO(L),O=h.useRef(),D=A=>{O.current=A.target===A.currentTarget},I=A=>{m&&m(A),O.current&&(O.current=null,p&&p(A),v&&v(A,"backdropClick"))},N=zo(s),T=h.useMemo(()=>({titleId:N}),[N]);return b.jsx(bO,{className:pe(j.root,f),closeAfterTransition:!0,components:{Backdrop:xO},componentsProps:{backdrop:{transitionDuration:$,as:c,...u}},disableEscapeKeyDown:y,onClose:v,open:S,ref:n,onClick:I,ownerState:L,...R,children:b.jsx(E,{appear:!0,in:S,timeout:$,role:"presentation",...w,children:b.jsx(wO,{className:pe(j.container),onMouseDown:D,ownerState:L,children:b.jsx(CO,{as:P,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":N,"aria-modal":l,...k,className:pe(j.paper,k.className),ownerState:L,children:b.jsx(vO.Provider,{value:T,children:d})})})})})});function PO(e){return ye("MuiDialogActions",e)}me("MuiDialogActions",["root","spacing"]);const EO=e=>{const{classes:t,disableSpacing:n}=e;return ve({root:["root",!n&&"spacing"]},PO,t)},MO=G("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}}}]}),RO=h.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:i=!1,...a}=r,s={...r,disableSpacing:i},l=EO(s);return b.jsx(MO,{className:pe(l.root,o),ownerState:s,ref:n,...a})});function TO(e){return ye("MuiDialogContent",e)}me("MuiDialogContent",["root","dividers"]);const DO=me("MuiDialogTitle",["root"]),IO=e=>{const{classes:t,dividers:n}=e;return ve({root:["root",n&&"dividers"]},TO,t)},OO=G("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(Fe(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:t})=>t.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>!t.dividers,style:{[`.${DO.root} + &`]:{paddingTop:0}}}]}))),$O=h.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiDialogContent"}),{className:o,dividers:i=!1,...a}=r,s={...r,dividers:i},l=IO(s);return b.jsx(OO,{className:pe(l.root,o),ownerState:s,ref:n,...a})}),Cv=me("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);function AO(e,t,n){const r=t.getBoundingClientRect(),o=n&&n.getBoundingClientRect(),i=yr(t);let a;if(t.fakeTransform)a=t.fakeTransform;else{const c=i.getComputedStyle(t);a=c.getPropertyValue("-webkit-transform")||c.getPropertyValue("transform")}let s=0,l=0;if(a&&a!=="none"&&typeof a=="string"){const c=a.split("(")[1].split(")")[0].split(",");s=parseInt(c[4],10),l=parseInt(c[5],10)}return e==="left"?o?`translateX(${o.right+s-r.left}px)`:`translateX(${i.innerWidth+s-r.left}px)`:e==="right"?o?`translateX(-${r.right-o.left-s}px)`:`translateX(-${r.left+r.width-s}px)`:e==="up"?o?`translateY(${o.bottom+l-r.top}px)`:`translateY(${i.innerHeight+l-r.top}px)`:o?`translateY(-${r.top-o.top+r.height-l}px)`:`translateY(-${r.top+r.height-l}px)`}function LO(e){return typeof e=="function"?e():e}function xc(e,t,n){const r=LO(n),o=AO(e,t,r);o&&(t.style.webkitTransform=o,t.style.transform=o)}const jO=h.forwardRef(function(t,n){const r=xr(),o={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:s=!0,children:l,container:c,direction:u="down",easing:d=o,in:f,onEnter:y,onEntered:g,onEntering:x,onExit:C,onExited:p,onExiting:m,style:v,timeout:S=i,TransitionComponent:P=ar,...k}=t,M=h.useRef(null),E=He(ki(l),M,n),$=T=>A=>{T&&(A===void 0?T(M.current):T(M.current,A))},w=$((T,A)=>{xc(u,T,c),Cm(T),y&&y(T,A)}),R=$((T,A)=>{const _=Ea({timeout:S,style:v,easing:d},{mode:"enter"});T.style.webkitTransition=r.transitions.create("-webkit-transform",{..._}),T.style.transition=r.transitions.create("transform",{..._}),T.style.webkitTransform="none",T.style.transform="none",x&&x(T,A)}),L=$(g),j=$(m),O=$(T=>{const A=Ea({timeout:S,style:v,easing:d},{mode:"exit"});T.style.webkitTransition=r.transitions.create("-webkit-transform",A),T.style.transition=r.transitions.create("transform",A),xc(u,T,c),C&&C(T)}),D=$(T=>{T.style.webkitTransition="",T.style.transition="",p&&p(T)}),I=T=>{a&&a(M.current,T)},N=h.useCallback(()=>{M.current&&xc(u,M.current,c)},[u,c]);return h.useEffect(()=>{if(f||u==="down"||u==="right")return;const T=fm(()=>{M.current&&xc(u,M.current,c)}),A=yr(M.current);return A.addEventListener("resize",T),()=>{T.clear(),A.removeEventListener("resize",T)}},[u,f,c]),h.useEffect(()=>{f||N()},[f,N]),b.jsx(P,{nodeRef:M,onEnter:w,onEntered:L,onEntering:R,onExit:O,onExited:D,onExiting:j,addEndListener:I,appear:s,in:f,timeout:S,...k,children:(T,A)=>h.cloneElement(l,{ref:E,style:{visibility:T==="exited"&&!f?"hidden":void 0,...v,...l.props.style},...A})})});function NO(e){return ye("MuiDrawer",e)}me("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const hw=(e,t)=>{const{ownerState:n}=e;return[t.root,(n.variant==="permanent"||n.variant==="persistent")&&t.docked,t.modal]},FO=e=>{const{classes:t,anchor:n,variant:r}=e,o={root:["root"],docked:[(r==="permanent"||r==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${ce(n)}`,r!=="temporary"&&`paperAnchorDocked${ce(n)}`]};return ve(o,NO,t)},BO=G($m,{name:"MuiDrawer",slot:"Root",overridesResolver:hw})(Fe(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer}))),kv=G("div",{shouldForwardProp:_n,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:hw})({flex:"0 0 auto"}),_O=G(vr,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${ce(n.anchor)}`],n.variant!=="temporary"&&t[`paperAnchorDocked${ce(n.anchor)}`]]}})(Fe(({theme:e})=>({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0,variants:[{props:{anchor:"left"},style:{left:0}},{props:{anchor:"top"},style:{top:0,left:0,right:0,height:"auto",maxHeight:"100%"}},{props:{anchor:"right"},style:{right:0}},{props:{anchor:"bottom"},style:{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"}},{props:({ownerState:t})=>t.anchor==="left"&&t.variant!=="temporary",style:{borderRight:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="top"&&t.variant!=="temporary",style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="right"&&t.variant!=="temporary",style:{borderLeft:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="bottom"&&t.variant!=="temporary",style:{borderTop:`1px solid ${(e.vars||e).palette.divider}`}}]}))),mw={left:"right",right:"left",top:"down",bottom:"up"};function zO(e){return["left","right"].includes(e)}function VO({direction:e},t){return e==="rtl"&&zO(t)?mw[t]:t}const WO=h.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiDrawer"}),o=xr(),i=ir(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{anchor:s="left",BackdropProps:l,children:c,className:u,elevation:d=16,hideBackdrop:f=!1,ModalProps:{BackdropProps:y,...g}={},onClose:x,open:C=!1,PaperProps:p={},SlideProps:m,TransitionComponent:v=jO,transitionDuration:S=a,variant:P="temporary",...k}=r,M=h.useRef(!1);h.useEffect(()=>{M.current=!0},[]);const E=VO({direction:i?"rtl":"ltr"},s),w={...r,anchor:s,elevation:d,open:C,variant:P,...k},R=FO(w),L=b.jsx(_O,{elevation:P==="temporary"?d:0,square:!0,...p,className:pe(R.paper,p.className),ownerState:w,children:c});if(P==="permanent")return b.jsx(kv,{className:pe(R.root,R.docked,u),ownerState:w,ref:n,...k,children:L});const j=b.jsx(v,{in:C,direction:mw[E],timeout:S,appear:M.current,...m,children:L});return P==="persistent"?b.jsx(kv,{className:pe(R.root,R.docked,u),ownerState:w,ref:n,...k,children:j}):b.jsx(BO,{BackdropProps:{...l,...y,transitionDuration:S},className:pe(R.root,R.modal,u),open:C,ownerState:w,onClose:x,hideBackdrop:f,ref:n,...k,...g,children:j})}),UO=e=>{const{classes:t,disableUnderline:n,startAdornment:r,endAdornment:o,size:i,hiddenLabel:a,multiline:s}=e,l={root:["root",!n&&"underline",r&&"adornedStart",o&&"adornedEnd",i==="small"&&`size${ce(i)}`,a&&"hiddenLabel",s&&"multiline"],input:["input"]},c=ve(l,fI,t);return{...t,...c}},HO=G(Td,{shouldForwardProp:e=>_n(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Md(e,t),!n.disableUnderline&&t.underline]}})(Fe(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:o,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${Ho.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${Ho.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:i},variants:[{props:({ownerState:a})=>!a.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Ho.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ho.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Ho.disabled}, .${Ho.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Ho.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Ht()).map(([a])=>{var s;return{props:{disableUnderline:!1,color:a},style:{"&::after":{borderBottom:`2px solid ${(s=(e.vars||e).palette[a])==null?void 0:s.main}`}}}}),{props:({ownerState:a})=>a.startAdornment,style:{paddingLeft:12}},{props:({ownerState:a})=>a.endAdornment,style:{paddingRight:12}},{props:({ownerState:a})=>a.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:a,size:s})=>a.multiline&&s==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel&&a.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),YO=G(Dd,{name:"MuiFilledInput",slot:"Input",overridesResolver:Rd})(Fe(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),Pu=h.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiFilledInput"}),{disableUnderline:o=!1,components:i={},componentsProps:a,fullWidth:s=!1,hiddenLabel:l,inputComponent:c="input",multiline:u=!1,slotProps:d,slots:f={},type:y="text",...g}=r,x={...r,disableUnderline:o,fullWidth:s,inputComponent:c,multiline:u,type:y},C=UO(r),p={root:{ownerState:x},input:{ownerState:x}},m=d??a?Kt(p,d??a):p,v=f.root??i.Root??HO,S=f.input??i.Input??YO;return b.jsx(Om,{slots:{root:v,input:S},slotProps:m,fullWidth:s,inputComponent:c,multiline:u,ref:n,type:y,...g,classes:C})});Pu&&(Pu.muiName="Input");function KO(e){return ye("MuiFormControl",e)}me("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const GO=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${ce(n)}`,r&&"fullWidth"]};return ve(o,KO,t)},QO=G("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${ce(n.margin)}`],n.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),$o=h.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiFormControl"}),{children:o,className:i,color:a="primary",component:s="div",disabled:l=!1,error:c=!1,focused:u,fullWidth:d=!1,hiddenLabel:f=!1,margin:y="none",required:g=!1,size:x="medium",variant:C="outlined",...p}=r,m={...r,color:a,component:s,disabled:l,error:c,fullWidth:d,hiddenLabel:f,margin:y,required:g,size:x,variant:C},v=GO(m),[S,P]=h.useState(()=>{let j=!1;return o&&h.Children.forEach(o,O=>{if(!Bs(O,["Input","Select"]))return;const D=Bs(O,["Select"])?O.props.input:O;D&&sI(D.props)&&(j=!0)}),j}),[k,M]=h.useState(()=>{let j=!1;return o&&h.Children.forEach(o,O=>{Bs(O,["Input","Select"])&&(ku(O.props,!0)||ku(O.props.inputProps,!0))&&(j=!0)}),j}),[E,$]=h.useState(!1);l&&E&&$(!1);const w=u!==void 0&&!l?u:E;let R;h.useRef(!1);const L=h.useMemo(()=>({adornedStart:S,setAdornedStart:P,color:a,disabled:l,error:c,filled:k,focused:w,fullWidth:d,hiddenLabel:f,size:x,onBlur:()=>{$(!1)},onEmpty:()=>{M(!1)},onFilled:()=>{M(!0)},onFocus:()=>{$(!0)},registerEffect:R,required:g,variant:C}),[S,a,l,c,k,w,d,f,R,g,x,C]);return b.jsx(Ed.Provider,{value:L,children:b.jsx(QO,{as:s,ownerState:m,className:pe(v.root,i),ref:n,...p,children:o})})});function XO(e){return ye("MuiFormHelperText",e)}const Pv=me("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var Ev;const qO=e=>{const{classes:t,contained:n,size:r,disabled:o,error:i,filled:a,focused:s,required:l}=e,c={root:["root",o&&"disabled",i&&"error",r&&`size${ce(r)}`,n&&"contained",s&&"focused",a&&"filled",l&&"required"]};return ve(c,XO,t)},ZO=G("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${ce(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(Fe(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${Pv.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Pv.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),gw=h.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiFormHelperText"}),{children:o,className:i,component:a="p",disabled:s,error:l,filled:c,focused:u,margin:d,required:f,variant:y,...g}=r,x=Sr(),C=Ua({props:r,muiFormControl:x,states:["variant","size","disabled","error","filled","focused","required"]}),p={...r,component:a,contained:C.variant==="filled"||C.variant==="outlined",variant:C.variant,size:C.size,disabled:C.disabled,error:C.error,filled:C.filled,focused:C.focused,required:C.required};delete p.ownerState;const m=qO(p);return b.jsx(ZO,{as:a,className:pe(m.root,i),ref:n,...g,ownerState:p,children:o===" "?Ev||(Ev=b.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):o})});function JO(e){return ye("MuiFormLabel",e)}const Us=me("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),e$=e=>{const{classes:t,color:n,focused:r,disabled:o,error:i,filled:a,required:s}=e,l={root:["root",`color${ce(n)}`,o&&"disabled",i&&"error",a&&"filled",r&&"focused",s&&"required"],asterisk:["asterisk",i&&"error"]};return ve(l,JO,t)},t$=G("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(Fe(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(Ht()).map(([t])=>({props:{color:t},style:{[`&.${Us.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${Us.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Us.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),n$=G("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(Fe(({theme:e})=>({[`&.${Us.error}`]:{color:(e.vars||e).palette.error.main}}))),ua=h.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiFormLabel"}),{children:o,className:i,color:a,component:s="label",disabled:l,error:c,filled:u,focused:d,required:f,...y}=r,g=Sr(),x=Ua({props:r,muiFormControl:g,states:["color","required","focused","disabled","error","filled"]}),C={...r,color:x.color||"primary",component:s,disabled:x.disabled,error:x.error,filled:x.filled,focused:x.focused,required:x.required},p=e$(C);return b.jsxs(t$,{as:s,ownerState:C,className:pe(p.root,i),ref:n,...y,children:[o,x.required&&b.jsxs(n$,{ownerState:C,"aria-hidden":!0,className:p.asterisk,children:[" ","*"]})]})}),ci=KR({createStyledComponent:G("div",{name:"MuiGrid2",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.container&&t.container]}}),componentName:"MuiGrid2",useThemeProps:e=>Ie({props:e,name:"MuiGrid2"}),useTheme:xr});function Kp(e){return`scale(${e}, ${e**2})`}const r$={entering:{opacity:1,transform:Kp(1)},entered:{opacity:1,transform:"none"}},Pf=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),xl=h.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:i,easing:a,in:s,onEnter:l,onEntered:c,onEntering:u,onExit:d,onExited:f,onExiting:y,style:g,timeout:x="auto",TransitionComponent:C=ar,...p}=t,m=hm(),v=h.useRef(),S=xr(),P=h.useRef(null),k=He(P,ki(i),n),M=D=>I=>{if(D){const N=P.current;I===void 0?D(N):D(N,I)}},E=M(u),$=M((D,I)=>{Cm(D);const{duration:N,delay:T,easing:A}=Ea({style:g,timeout:x,easing:a},{mode:"enter"});let _;x==="auto"?(_=S.transitions.getAutoHeightDuration(D.clientHeight),v.current=_):_=N,D.style.transition=[S.transitions.create("opacity",{duration:_,delay:T}),S.transitions.create("transform",{duration:Pf?_:_*.666,delay:T,easing:A})].join(","),l&&l(D,I)}),w=M(c),R=M(y),L=M(D=>{const{duration:I,delay:N,easing:T}=Ea({style:g,timeout:x,easing:a},{mode:"exit"});let A;x==="auto"?(A=S.transitions.getAutoHeightDuration(D.clientHeight),v.current=A):A=I,D.style.transition=[S.transitions.create("opacity",{duration:A,delay:N}),S.transitions.create("transform",{duration:Pf?A:A*.666,delay:Pf?N:N||A*.333,easing:T})].join(","),D.style.opacity=0,D.style.transform=Kp(.75),d&&d(D)}),j=M(f),O=D=>{x==="auto"&&m.start(v.current||0,D),r&&r(P.current,D)};return b.jsx(C,{appear:o,in:s,nodeRef:P,onEnter:$,onEntered:w,onEntering:E,onExit:L,onExited:j,onExiting:R,addEndListener:O,timeout:x==="auto"?null:x,...p,children:(D,I)=>h.cloneElement(i,{style:{opacity:0,transform:Kp(.75),visibility:D==="exited"&&!s?"hidden":void 0,...r$[D],...g,...i.props.style},ref:k,...I})})});xl&&(xl.muiSupportAuto=!0);const Id=qM({themeId:qn}),o$=e=>{const{classes:t,disableUnderline:n}=e,o=ve({root:["root",!n&&"underline"],input:["input"]},uI,t);return{...t,...o}},i$=G(Td,{shouldForwardProp:e=>_n(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Md(e,t),!n.disableUnderline&&t.underline]}})(Fe(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),{position:"relative",variants:[{props:({ownerState:r})=>r.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:r})=>!r.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${ls.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ls.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${ls.disabled}, .${ls.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${ls.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Ht()).map(([r])=>({props:{color:r,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}}))]}})),a$=G(Dd,{name:"MuiInput",slot:"Input",overridesResolver:Rd})({}),Eu=h.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiInput"}),{disableUnderline:o=!1,components:i={},componentsProps:a,fullWidth:s=!1,inputComponent:l="input",multiline:c=!1,slotProps:u,slots:d={},type:f="text",...y}=r,g=o$(r),C={root:{ownerState:{disableUnderline:o}}},p=u??a?Kt(u??a,C):C,m=d.root??i.Root??i$,v=d.input??i.Input??a$;return b.jsx(Om,{slots:{root:m,input:v},slotProps:p,fullWidth:s,inputComponent:l,multiline:c,ref:n,type:f,...y,classes:g})});Eu&&(Eu.muiName="Input");function s$(e){return ye("MuiInputAdornment",e)}const Mv=me("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var Rv;const l$=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${ce(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},c$=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:a}=e,s={root:["root",n&&"disablePointerEvents",o&&`position${ce(o)}`,a,r&&"hiddenLabel",i&&`size${ce(i)}`]};return ve(s,s$,t)},u$=G("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:l$})(Fe(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${Mv.positionStart}&:not(.${Mv.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),yw=h.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiInputAdornment"}),{children:o,className:i,component:a="div",disablePointerEvents:s=!1,disableTypography:l=!1,position:c,variant:u,...d}=r,f=Sr()||{};let y=u;u&&f.variant,f&&!y&&(y=f.variant);const g={...r,hiddenLabel:f.hiddenLabel,size:f.size,disablePointerEvents:s,position:c,variant:y},x=c$(g);return b.jsx(Ed.Provider,{value:null,children:b.jsx(u$,{as:a,ownerState:g,className:pe(x.root,i),ref:n,...d,children:typeof o=="string"&&!l?b.jsx(Ye,{color:"textSecondary",children:o}):b.jsxs(h.Fragment,{children:[c==="start"?Rv||(Rv=b.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):null,o]})})})});function d$(e){return ye("MuiInputLabel",e)}me("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const f$=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:i,variant:a,required:s}=e,l={root:["root",n&&"formControl",!i&&"animated",o&&"shrink",r&&r!=="normal"&&`size${ce(r)}`,a],asterisk:[s&&"asterisk"]},c=ve(l,d$,t);return{...t,...c}},p$=G(ua,{shouldForwardProp:e=>_n(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Us.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(Fe(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="filled"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:n,size:r})=>t==="filled"&&n.shrink&&r==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="outlined"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),Am=h.forwardRef(function(t,n){const r=Ie({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,margin:i,shrink:a,variant:s,className:l,...c}=r,u=Sr();let d=a;typeof d>"u"&&u&&(d=u.filled||u.focused||u.adornedStart);const f=Ua({props:r,muiFormControl:u,states:["size","variant","required","focused"]}),y={...r,disableAnimation:o,formControl:u,shrink:d,size:f.size,variant:f.variant,required:f.required,focused:f.focused},g=f$(y);return b.jsx(p$,{"data-shrink":d,ref:n,className:pe(g.root,l),...c,ownerState:y,classes:g})});function h$(e){return ye("MuiLink",e)}const m$=me("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),g$=({theme:e,ownerState:t})=>{const n=t.color,r=Ca(e,`palette.${n}`,!1)||t.color,o=Ca(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:Be(r,.4)},Tv={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},y$=e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e,i={root:["root",`underline${ce(o)}`,n==="button"&&"button",r&&"focusVisible"]};return ve(i,h$,t)},v$=G(Ye,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${ce(n.underline)}`],n.component==="button"&&t.button]}})(Fe(({theme:e})=>({variants:[{props:{underline:"none"},style:{textDecoration:"none"}},{props:{underline:"hover"},style:{textDecoration:"none","&:hover":{textDecoration:"underline"}}},{props:{underline:"always"},style:{textDecoration:"underline","&:hover":{textDecorationColor:"inherit"}}},{props:({underline:t,ownerState:n})=>t==="always"&&n.color!=="inherit",style:{textDecorationColor:"var(--Link-underlineColor)"}},...Object.entries(e.palette).filter(Ht()).map(([t])=>({props:{underline:"always",color:t},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.4)`:Be(e.palette[t].main,.4)}})),{props:{underline:"always",color:"textPrimary"},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:Be(e.palette.text.primary,.4)}},{props:{underline:"always",color:"textSecondary"},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette.text.secondaryChannel} / 0.4)`:Be(e.palette.text.secondary,.4)}},{props:{underline:"always",color:"textDisabled"},style:{"--Link-underlineColor":(e.vars||e).palette.text.disabled}},{props:{component:"button"},style:{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${m$.focusVisible}`]:{outline:"auto"}}}]}))),Lm=h.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiLink"}),o=xr(),{className:i,color:a="primary",component:s="a",onBlur:l,onFocus:c,TypographyClasses:u,underline:d="always",variant:f="inherit",sx:y,...g}=r,[x,C]=h.useState(!1),p=P=>{yu(P.target)||C(!1),l&&l(P)},m=P=>{yu(P.target)&&C(!0),c&&c(P)},v={...r,color:a,component:s,focusVisible:x,underline:d,variant:f},S=y$(v);return b.jsx(v$,{color:a,className:pe(S.root,i),classes:u,component:s,onBlur:p,onFocus:m,ref:n,ownerState:v,variant:f,...g,sx:[...Tv[a]===void 0?[{color:a}]:[],...Array.isArray(y)?y:[y]],style:{...g.style,...d==="always"&&a!=="inherit"&&!Tv[a]&&{"--Link-underlineColor":g$({theme:o,ownerState:v})}}})}),ui=h.createContext({});function x$(e){return ye("MuiList",e)}me("MuiList",["root","padding","dense","subheader"]);const S$=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return ve({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},x$,t)},b$=G("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}}]}),vw=h.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiList"}),{children:o,className:i,component:a="ul",dense:s=!1,disablePadding:l=!1,subheader:c,...u}=r,d=h.useMemo(()=>({dense:s}),[s]),f={...r,component:a,dense:s,disablePadding:l},y=S$(f);return b.jsx(ui.Provider,{value:d,children:b.jsxs(b$,{as:a,className:pe(y.root,i),ref:n,ownerState:f,...u,children:[c,o]})})});function w$(e){return ye("MuiListItem",e)}me("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);const C$=me("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function k$(e){return ye("MuiListItemSecondaryAction",e)}me("MuiListItemSecondaryAction",["root","disableGutters"]);const P$=e=>{const{disableGutters:t,classes:n}=e;return ve({root:["root",t&&"disableGutters"]},k$,n)},E$=G("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}}]}),xw=h.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiListItemSecondaryAction"}),{className:o,...i}=r,a=h.useContext(ui),s={...r,disableGutters:a.disableGutters},l=P$(s);return b.jsx(E$,{className:pe(l.root,o),ownerState:s,ref:n,...i})});xw.muiName="ListItemSecondaryAction";const M$=(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]},R$=e=>{const{alignItems:t,classes:n,dense:r,disableGutters:o,disablePadding:i,divider:a,hasSecondaryAction:s}=e;return ve({root:["root",r&&"dense",!o&&"gutters",!i&&"padding",a&&"divider",t==="flex-start"&&"alignItemsFlexStart",s&&"secondaryAction"],container:["container"]},w$,n)},T$=G("div",{name:"MuiListItem",slot:"Root",overridesResolver:M$})(Fe(({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:{[`& > .${C$.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}}]}))),D$=G("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),I$=h.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiListItem"}),{alignItems:o="center",children:i,className:a,component:s,components:l={},componentsProps:c={},ContainerComponent:u="li",ContainerProps:{className:d,...f}={},dense:y=!1,disableGutters:g=!1,disablePadding:x=!1,divider:C=!1,secondaryAction:p,slotProps:m={},slots:v={},...S}=r,P=h.useContext(ui),k=h.useMemo(()=>({dense:y||P.dense||!1,alignItems:o,disableGutters:g}),[o,P.dense,y,g]),M=h.useRef(null),E=h.Children.toArray(i),$=E.length&&Bs(E[E.length-1],["ListItemSecondaryAction"]),w={...r,alignItems:o,dense:k.dense,disableGutters:g,disablePadding:x,divider:C,hasSecondaryAction:$},R=R$(w),L=He(M,n),j=v.root||l.Root||T$,O=m.root||c.root||{},D={className:pe(R.root,O.className,a),...S};let I=s||"li";return $?(I=!D.component&&!s?"div":I,u==="li"&&(I==="li"?I="div":D.component==="li"&&(D.component="div")),b.jsx(ui.Provider,{value:k,children:b.jsxs(D$,{as:u,className:pe(R.container,d),ref:L,ownerState:w,...f,children:[b.jsx(j,{...O,...!yl(j)&&{as:I,ownerState:{...w,...O.ownerState}},...D,children:E}),E.pop()]})})):b.jsx(ui.Provider,{value:k,children:b.jsxs(j,{...O,as:I,ref:L,...!yl(j)&&{ownerState:{...w,...O.ownerState}},...D,children:[E,p&&b.jsx(xw,{children:p})]})})}),Dv=me("MuiListItemIcon",["root","alignItemsFlexStart"]),Iv=me("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function Ef(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Ov(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Sw(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(""))}function cs(e,t,n,r,o,i){let a=!1,s=o(e,t,t?n:!1);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const l=r?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!Sw(s,i)||l)s=o(e,s,n);else return s.focus(),!0}return!1}const O$=h.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:i=!1,children:a,className:s,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:u,variant:d="selectedMenu",...f}=t,y=h.useRef(null),g=h.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Vt(()=>{o&&y.current.focus()},[o]),h.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(v,{direction:S})=>{const P=!y.current.style.width;if(v.clientHeight{const S=y.current,P=v.key;if(v.ctrlKey||v.metaKey||v.altKey){u&&u(v);return}const M=zt(S).activeElement;if(P==="ArrowDown")v.preventDefault(),cs(S,M,c,l,Ef);else if(P==="ArrowUp")v.preventDefault(),cs(S,M,c,l,Ov);else if(P==="Home")v.preventDefault(),cs(S,null,c,l,Ef);else if(P==="End")v.preventDefault(),cs(S,null,c,l,Ov);else if(P.length===1){const E=g.current,$=P.toLowerCase(),w=performance.now();E.keys.length>0&&(w-E.lastTime>500?(E.keys=[],E.repeating=!0,E.previousKeyMatched=!0):E.repeating&&$!==E.keys[0]&&(E.repeating=!1)),E.lastTime=w,E.keys.push($);const R=M&&!E.repeating&&Sw(M,E);E.previousKeyMatched&&(R||cs(S,M,!1,l,Ef,E))?v.preventDefault():E.previousKeyMatched=!1}u&&u(v)},C=He(y,n);let p=-1;h.Children.forEach(a,(v,S)=>{if(!h.isValidElement(v)){p===S&&(p+=1,p>=a.length&&(p=-1));return}v.props.disabled||(d==="selectedMenu"&&v.props.selected||p===-1)&&(p=S),p===S&&(v.props.disabled||v.props.muiSkipListHighlight||v.type.muiSkipListHighlight)&&(p+=1,p>=a.length&&(p=-1))});const m=h.Children.map(a,(v,S)=>{if(S===p){const P={};return i&&(P.autoFocus=!0),v.props.tabIndex===void 0&&d==="selectedMenu"&&(P.tabIndex=0),h.cloneElement(v,P)}return v});return b.jsx(vw,{role:"menu",ref:C,className:s,onKeyDown:x,tabIndex:o?0:-1,...f,children:m})});function $$(e){return ye("MuiPopover",e)}me("MuiPopover",["root","paper"]);function $v(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function Av(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function Lv(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Mf(e){return typeof e=="function"?e():e}const A$=e=>{const{classes:t}=e;return ve({root:["root"],paper:["paper"]},$$,t)},L$=G($m,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),bw=G(vr,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),j$=h.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiPopover"}),{action:o,anchorEl:i,anchorOrigin:a={vertical:"top",horizontal:"left"},anchorPosition:s,anchorReference:l="anchorEl",children:c,className:u,container:d,elevation:f=8,marginThreshold:y=16,open:g,PaperProps:x={},slots:C={},slotProps:p={},transformOrigin:m={vertical:"top",horizontal:"left"},TransitionComponent:v=xl,transitionDuration:S="auto",TransitionProps:{onEntering:P,...k}={},disableScrollLock:M=!1,...E}=r,$=(p==null?void 0:p.paper)??x,w=h.useRef(),R={...r,anchorOrigin:a,anchorReference:l,elevation:f,marginThreshold:y,externalPaperSlotProps:$,transformOrigin:m,TransitionComponent:v,transitionDuration:S,TransitionProps:k},L=A$(R),j=h.useCallback(()=>{if(l==="anchorPosition")return s;const ne=Mf(i),W=(ne&&ne.nodeType===1?ne:zt(w.current).body).getBoundingClientRect();return{top:W.top+$v(W,a.vertical),left:W.left+Av(W,a.horizontal)}},[i,a.horizontal,a.vertical,s,l]),O=h.useCallback(ne=>({vertical:$v(ne,m.vertical),horizontal:Av(ne,m.horizontal)}),[m.horizontal,m.vertical]),D=h.useCallback(ne=>{const oe={width:ne.offsetWidth,height:ne.offsetHeight},W=O(oe);if(l==="none")return{top:null,left:null,transformOrigin:Lv(W)};const F=j();let K=F.top-W.vertical,Q=F.left-W.horizontal;const te=K+oe.height,ue=Q+oe.width,J=yr(Mf(i)),fe=J.innerHeight-y,ge=J.innerWidth-y;if(y!==null&&Kfe){const Le=te-fe;K-=Le,W.vertical+=Le}if(y!==null&&Qge){const Le=ue-ge;Q-=Le,W.horizontal+=Le}return{top:`${Math.round(K)}px`,left:`${Math.round(Q)}px`,transformOrigin:Lv(W)}},[i,l,j,O,y]),[I,N]=h.useState(g),T=h.useCallback(()=>{const ne=w.current;if(!ne)return;const oe=D(ne);oe.top!==null&&ne.style.setProperty("top",oe.top),oe.left!==null&&(ne.style.left=oe.left),ne.style.transformOrigin=oe.transformOrigin,N(!0)},[D]);h.useEffect(()=>(M&&window.addEventListener("scroll",T),()=>window.removeEventListener("scroll",T)),[i,M,T]);const A=(ne,oe)=>{P&&P(ne,oe),T()},_=()=>{N(!1)};h.useEffect(()=>{g&&T()}),h.useImperativeHandle(o,()=>g?{updatePosition:()=>{T()}}:null,[g,T]),h.useEffect(()=>{if(!g)return;const ne=fm(()=>{T()}),oe=yr(i);return oe.addEventListener("resize",ne),()=>{ne.clear(),oe.removeEventListener("resize",ne)}},[i,g,T]);let V=S;S==="auto"&&!v.muiSupportAuto&&(V=void 0);const H=d||(i?zt(Mf(i)).body:void 0),ae={slots:C,slotProps:{...p,paper:$}},[se,Y]=Tn("paper",{elementType:bw,externalForwardedProps:ae,additionalProps:{elevation:f,className:pe(L.paper,$==null?void 0:$.className),style:I?$.style:{...$.style,opacity:0}},ownerState:R}),[le,{slotProps:ie,...ee}]=Tn("root",{elementType:L$,externalForwardedProps:ae,additionalProps:{slotProps:{backdrop:{invisible:!0}},container:H,open:g},ownerState:R,className:pe(L.root,u)}),q=He(w,Y.ref);return b.jsx(le,{...ee,...!yl(le)&&{slotProps:ie,disableScrollLock:M},...E,ref:n,children:b.jsx(v,{appear:!0,in:g,onEntering:A,onExited:_,timeout:V,...k,children:b.jsx(se,{...Y,ref:q,children:c})})})});function N$(e){return ye("MuiMenu",e)}me("MuiMenu",["root","paper","list"]);const F$={vertical:"top",horizontal:"right"},B$={vertical:"top",horizontal:"left"},_$=e=>{const{classes:t}=e;return ve({root:["root"],paper:["paper"],list:["list"]},N$,t)},z$=G(j$,{shouldForwardProp:e=>_n(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),V$=G(bw,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),W$=G(O$,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),ww=h.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiMenu"}),{autoFocus:o=!0,children:i,className:a,disableAutoFocusItem:s=!1,MenuListProps:l={},onClose:c,open:u,PaperProps:d={},PopoverClasses:f,transitionDuration:y="auto",TransitionProps:{onEntering:g,...x}={},variant:C="selectedMenu",slots:p={},slotProps:m={},...v}=r,S=ir(),P={...r,autoFocus:o,disableAutoFocusItem:s,MenuListProps:l,onEntering:g,PaperProps:d,transitionDuration:y,TransitionProps:x,variant:C},k=_$(P),M=o&&!s&&u,E=h.useRef(null),$=(I,N)=>{E.current&&E.current.adjustStyleForScrollbar(I,{direction:S?"rtl":"ltr"}),g&&g(I,N)},w=I=>{I.key==="Tab"&&(I.preventDefault(),c&&c(I,"tabKeyDown"))};let R=-1;h.Children.map(i,(I,N)=>{h.isValidElement(I)&&(I.props.disabled||(C==="selectedMenu"&&I.props.selected||R===-1)&&(R=N))});const L=p.paper??V$,j=m.paper??d,O=Qe({elementType:p.root,externalSlotProps:m.root,ownerState:P,className:[k.root,a]}),D=Qe({elementType:L,externalSlotProps:j,ownerState:P,className:k.paper});return b.jsx(z$,{onClose:c,anchorOrigin:{vertical:"bottom",horizontal:S?"right":"left"},transformOrigin:S?F$:B$,slots:{paper:L,root:p.root},slotProps:{root:O,paper:D},open:u,ref:n,transitionDuration:y,TransitionProps:{onEntering:$,...x},ownerState:P,...v,classes:f,children:b.jsx(W$,{onKeyDown:w,actions:E,autoFocus:o&&(R===-1||s),autoFocusItem:M,variant:C,...l,className:pe(k.list,l.className),children:i})})});function U$(e){return ye("MuiMenuItem",e)}const us=me("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),H$=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},Y$=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e,l=ve({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},U$,a);return{...a,...l}},K$=G(Ma,{shouldForwardProp:e=>_n(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:H$})(Fe(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${us.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Be(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${us.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Be(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${us.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Be(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Be(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${us.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${us.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Cv.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Cv.inset}`]:{marginLeft:52},[`& .${Iv.root}`]:{marginTop:0,marginBottom:0},[`& .${Iv.inset}`]:{paddingLeft:36},[`& .${Dv.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${Dv.root} svg`]:{fontSize:"1.25rem"}}}]}))),Gp=h.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:i="li",dense:a=!1,divider:s=!1,disableGutters:l=!1,focusVisibleClassName:c,role:u="menuitem",tabIndex:d,className:f,...y}=r,g=h.useContext(ui),x=h.useMemo(()=>({dense:a||g.dense||!1,disableGutters:l}),[g.dense,a,l]),C=h.useRef(null);Vt(()=>{o&&C.current&&C.current.focus()},[o]);const p={...r,dense:x.dense,divider:s,disableGutters:l},m=Y$(r),v=He(C,n);let S;return r.disabled||(S=d!==void 0?d:-1),b.jsx(ui.Provider,{value:x,children:b.jsx(K$,{ref:v,role:u,tabIndex:S,component:i,focusVisibleClassName:pe(m.focusVisible,c),className:pe(m.root,f),...y,ownerState:p,classes:m})})});function G$(e){return ye("MuiNativeSelect",e)}const jm=me("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Q$=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e,s={select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${ce(n)}`,i&&"iconOpen",r&&"disabled"]};return ve(s,G$,t)},Cw=G("select")(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${jm.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),X$=G(Cw,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:_n,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${jm.multiple}`]:t.multiple}]}})({}),kw=G("svg")(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${jm.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),q$=G(kw,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ce(n.variant)}`],n.open&&t.iconOpen]}})({}),Z$=h.forwardRef(function(t,n){const{className:r,disabled:o,error:i,IconComponent:a,inputRef:s,variant:l="standard",...c}=t,u={...t,disabled:o,variant:l,error:i},d=Q$(u);return b.jsxs(h.Fragment,{children:[b.jsx(X$,{ownerState:u,className:pe(d.select,r),disabled:o,ref:s||n,...c}),t.multiple?null:b.jsx(q$,{as:a,ownerState:u,className:d.icon})]})});var jv;const J$=G("fieldset",{shouldForwardProp:_n})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),eA=G("legend",{shouldForwardProp:_n})(Fe(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function tA(e){const{children:t,classes:n,className:r,label:o,notched:i,...a}=e,s=o!=null&&o!=="",l={...e,notched:i,withLabel:s};return b.jsx(J$,{"aria-hidden":!0,className:r,ownerState:l,...a,children:b.jsx(eA,{ownerState:l,children:s?b.jsx("span",{children:o}):jv||(jv=b.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}const nA=e=>{const{classes:t}=e,r=ve({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},dI,t);return{...t,...r}},rA=G(Td,{shouldForwardProp:e=>_n(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Md})(Fe(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Pr.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Pr.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${Pr.focused} .${Pr.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(Ht()).map(([n])=>({props:{color:n},style:{[`&.${Pr.focused} .${Pr.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${Pr.error} .${Pr.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Pr.disabled} .${Pr.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:14}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:14}},{props:({ownerState:n})=>n.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:n,size:r})=>n.multiline&&r==="small",style:{padding:"8.5px 14px"}}]}})),oA=G(tA,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(Fe(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}})),iA=G(Dd,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Rd})(Fe(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),Mu=h.forwardRef(function(t,n){var r;const o=Ie({props:t,name:"MuiOutlinedInput"}),{components:i={},fullWidth:a=!1,inputComponent:s="input",label:l,multiline:c=!1,notched:u,slots:d={},type:f="text",...y}=o,g=nA(o),x=Sr(),C=Ua({props:o,muiFormControl:x,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),p={...o,color:C.color||"primary",disabled:C.disabled,error:C.error,focused:C.focused,formControl:x,fullWidth:a,hiddenLabel:C.hiddenLabel,multiline:c,size:C.size,type:f},m=d.root??i.Root??rA,v=d.input??i.Input??iA;return b.jsx(Om,{slots:{root:m,input:v},renderSuffix:S=>b.jsx(oA,{ownerState:p,className:g.notchedOutline,label:l!=null&&l!==""&&C.required?r||(r=b.jsxs(h.Fragment,{children:[l," ","*"]})):l,notched:typeof u<"u"?u:!!(S.startAdornment||S.filled||S.focused)}),fullWidth:a,inputComponent:s,multiline:c,ref:n,type:f,...y,classes:{...g,notchedOutline:null}})});Mu&&(Mu.muiName="Input");function aA(e){return ye("MuiSelect",e)}const ds=me("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var Nv;const sA=G(Cw,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${ds.select}`]:t.select},{[`&.${ds.select}`]:t[n.variant]},{[`&.${ds.error}`]:t.error},{[`&.${ds.multiple}`]:t.multiple}]}})({[`&.${ds.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),lA=G(kw,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ce(n.variant)}`],n.open&&t.iconOpen]}})({}),cA=G("input",{shouldForwardProp:e=>Qb(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Fv(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function uA(e){return e==null||typeof e=="string"&&!e.trim()}const dA=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e,s={select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${ce(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return ve(s,aA,t)},fA=h.forwardRef(function(t,n){var fo;const{"aria-describedby":r,"aria-label":o,autoFocus:i,autoWidth:a,children:s,className:l,defaultOpen:c,defaultValue:u,disabled:d,displayEmpty:f,error:y=!1,IconComponent:g,inputRef:x,labelId:C,MenuProps:p={},multiple:m,name:v,onBlur:S,onChange:P,onClose:k,onFocus:M,onOpen:E,open:$,readOnly:w,renderValue:R,required:L,SelectDisplayProps:j={},tabIndex:O,type:D,value:I,variant:N="standard",...T}=t,[A,_]=io({controlled:I,default:u,name:"Select"}),[V,H]=io({controlled:$,default:c,name:"Select"}),ae=h.useRef(null),se=h.useRef(null),[Y,le]=h.useState(null),{current:ie}=h.useRef($!=null),[ee,q]=h.useState(),ne=He(n,x),oe=h.useCallback(Me=>{se.current=Me,Me&&le(Me)},[]),W=Y==null?void 0:Y.parentNode;h.useImperativeHandle(ne,()=>({focus:()=>{se.current.focus()},node:ae.current,value:A}),[A]),h.useEffect(()=>{c&&V&&Y&&!ie&&(q(a?null:W.clientWidth),se.current.focus())},[Y,a]),h.useEffect(()=>{i&&se.current.focus()},[i]),h.useEffect(()=>{if(!C)return;const Me=zt(se.current).getElementById(C);if(Me){const qe=()=>{getSelection().isCollapsed&&se.current.focus()};return Me.addEventListener("click",qe),()=>{Me.removeEventListener("click",qe)}}},[C]);const F=(Me,qe)=>{Me?E&&E(qe):k&&k(qe),ie||(q(a?null:W.clientWidth),H(Me))},K=Me=>{Me.button===0&&(Me.preventDefault(),se.current.focus(),F(!0,Me))},Q=Me=>{F(!1,Me)},te=h.Children.toArray(s),ue=Me=>{const qe=te.find(yt=>yt.props.value===Me.target.value);qe!==void 0&&(_(qe.props.value),P&&P(Me,qe))},J=Me=>qe=>{let yt;if(qe.currentTarget.hasAttribute("tabindex")){if(m){yt=Array.isArray(A)?A.slice():[];const Cn=A.indexOf(Me.props.value);Cn===-1?yt.push(Me.props.value):yt.splice(Cn,1)}else yt=Me.props.value;if(Me.props.onClick&&Me.props.onClick(qe),A!==yt&&(_(yt),P)){const Cn=qe.nativeEvent||qe,nt=new Cn.constructor(Cn.type,Cn);Object.defineProperty(nt,"target",{writable:!0,value:{value:yt,name:v}}),P(nt,Me)}m||F(!1,qe)}},fe=Me=>{w||[" ","ArrowUp","ArrowDown","Enter"].includes(Me.key)&&(Me.preventDefault(),F(!0,Me))},ge=Y!==null&&V,Le=Me=>{!ge&&S&&(Object.defineProperty(Me,"target",{writable:!0,value:{value:A,name:v}}),S(Me))};delete T["aria-invalid"];let xe,tt;const Ee=[];let _e=!1;(ku({value:A})||f)&&(R?xe=R(A):_e=!0);const ct=te.map(Me=>{if(!h.isValidElement(Me))return null;let qe;if(m){if(!Array.isArray(A))throw new Error(oo(2));qe=A.some(yt=>Fv(yt,Me.props.value)),qe&&_e&&Ee.push(Me.props.children)}else qe=Fv(A,Me.props.value),qe&&_e&&(tt=Me.props.children);return h.cloneElement(Me,{"aria-selected":qe?"true":"false",onClick:J(Me),onKeyUp:yt=>{yt.key===" "&&yt.preventDefault(),Me.props.onKeyUp&&Me.props.onKeyUp(yt)},role:"option",selected:qe,value:void 0,"data-value":Me.props.value})});_e&&(m?Ee.length===0?xe=null:xe=Ee.reduce((Me,qe,yt)=>(Me.push(qe),yt{const{classes:t}=e;return t},Nm={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>_n(e)&&e!=="variant",slot:"Root"},hA=G(Eu,Nm)(""),mA=G(Mu,Nm)(""),gA=G(Pu,Nm)(""),Fm=h.forwardRef(function(t,n){const r=Ie({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:i,classes:a={},className:s,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:u=pI,id:d,input:f,inputProps:y,label:g,labelId:x,MenuProps:C,multiple:p=!1,native:m=!1,onClose:v,onOpen:S,open:P,renderValue:k,SelectDisplayProps:M,variant:E="outlined",...$}=r,w=m?Z$:fA,R=Sr(),L=Ua({props:r,muiFormControl:R,states:["variant","error"]}),j=L.variant||E,O={...r,variant:j,classes:a},D=pA(O),{root:I,...N}=D,T=f||{standard:b.jsx(hA,{ownerState:O}),outlined:b.jsx(mA,{label:g,ownerState:O}),filled:b.jsx(gA,{ownerState:O})}[j],A=He(n,ki(T));return b.jsx(h.Fragment,{children:h.cloneElement(T,{inputComponent:w,inputProps:{children:i,error:L.error,IconComponent:u,variant:j,type:void 0,multiple:p,...m?{id:d}:{autoWidth:o,defaultOpen:l,displayEmpty:c,labelId:x,MenuProps:C,onClose:v,onOpen:S,open:P,renderValue:k,SelectDisplayProps:{id:d,...M}},...y,classes:y?Kt(N,y.classes):N,...f?f.props.inputProps:{}},...(p&&m||c)&&j==="outlined"?{notched:!0}:{},ref:A,className:pe(T.props.className,s,D.root),...!f&&{variant:j},...$})})});Fm.muiName="Select";function yA(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:o,resumeHideDuration:i}=e,a=hm();h.useEffect(()=>{if(!o)return;function p(m){m.defaultPrevented||m.key==="Escape"&&(r==null||r(m,"escapeKeyDown"))}return document.addEventListener("keydown",p),()=>{document.removeEventListener("keydown",p)}},[o,r]);const s=Se((p,m)=>{r==null||r(p,m)}),l=Se(p=>{!r||p==null||a.start(p,()=>{s(null,"timeout")})});h.useEffect(()=>(o&&l(t),a.clear),[o,t,l,a]);const c=p=>{r==null||r(p,"clickaway")},u=a.clear,d=h.useCallback(()=>{t!=null&&l(i??t*.5)},[t,i,l]),f=p=>m=>{const v=p.onBlur;v==null||v(m),d()},y=p=>m=>{const v=p.onFocus;v==null||v(m),u()},g=p=>m=>{const v=p.onMouseEnter;v==null||v(m),u()},x=p=>m=>{const v=p.onMouseLeave;v==null||v(m),d()};return h.useEffect(()=>{if(!n&&o)return window.addEventListener("focus",d),window.addEventListener("blur",u),()=>{window.removeEventListener("focus",d),window.removeEventListener("blur",u)}},[n,o,d,u]),{getRootProps:(p={})=>{const m={...vu(e),...vu(p)};return{role:"presentation",...p,...m,onBlur:f(m),onFocus:y(m),onMouseEnter:g(m),onMouseLeave:x(m)}},onClickAway:c}}function vA(e){return ye("MuiSnackbarContent",e)}me("MuiSnackbarContent",["root","message","action"]);const xA=e=>{const{classes:t}=e;return ve({root:["root"],action:["action"],message:["message"]},vA,t)},SA=G(vr,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})(Fe(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98,n=Ob(e.palette.background.default,t);return{...e.typography.body2,color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(n),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:n,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),bA=G("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),wA=G("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),CA=h.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiSnackbarContent"}),{action:o,className:i,message:a,role:s="alert",...l}=r,c=r,u=xA(c);return b.jsxs(SA,{role:s,square:!0,elevation:6,className:pe(u.root,i),ownerState:c,ref:n,...l,children:[b.jsx(bA,{className:u.message,ownerState:c,children:a}),o?b.jsx(wA,{className:u.action,ownerState:c,children:o}):null]})});function kA(e){return ye("MuiSnackbar",e)}me("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const PA=e=>{const{classes:t,anchorOrigin:n}=e,r={root:["root",`anchorOrigin${ce(n.vertical)}${ce(n.horizontal)}`]};return ve(r,kA,t)},Bv=G("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${ce(n.anchorOrigin.vertical)}${ce(n.anchorOrigin.horizontal)}`]]}})(Fe(({theme:e})=>({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center",variants:[{props:({ownerState:t})=>t.anchorOrigin.vertical==="top",style:{top:8,[e.breakpoints.up("sm")]:{top:24}}},{props:({ownerState:t})=>t.anchorOrigin.vertical!=="top",style:{bottom:8,[e.breakpoints.up("sm")]:{bottom:24}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="left",style:{justifyContent:"flex-start",[e.breakpoints.up("sm")]:{left:24,right:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="right",style:{justifyContent:"flex-end",[e.breakpoints.up("sm")]:{right:24,left:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="center",style:{[e.breakpoints.up("sm")]:{left:"50%",right:"auto",transform:"translateX(-50%)"}}}]}))),Bm=h.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiSnackbar"}),o=xr(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{action:a,anchorOrigin:{vertical:s,horizontal:l}={vertical:"bottom",horizontal:"left"},autoHideDuration:c=null,children:u,className:d,ClickAwayListenerProps:f,ContentProps:y,disableWindowBlurListener:g=!1,message:x,onBlur:C,onClose:p,onFocus:m,onMouseEnter:v,onMouseLeave:S,open:P,resumeHideDuration:k,TransitionComponent:M=xl,transitionDuration:E=i,TransitionProps:{onEnter:$,onExited:w,...R}={},...L}=r,j={...r,anchorOrigin:{vertical:s,horizontal:l},autoHideDuration:c,disableWindowBlurListener:g,TransitionComponent:M,transitionDuration:E},O=PA(j),{getRootProps:D,onClickAway:I}=yA({...j}),[N,T]=h.useState(!0),A=Qe({elementType:Bv,getSlotProps:D,externalForwardedProps:L,ownerState:j,additionalProps:{ref:n},className:[O.root,d]}),_=H=>{T(!0),w&&w(H)},V=(H,ae)=>{T(!1),$&&$(H,ae)};return!P&&N?null:b.jsx(GI,{onClickAway:I,...f,children:b.jsx(Bv,{...A,children:b.jsx(M,{appear:!0,in:P,timeout:E,direction:s==="top"?"down":"up",onEnter:V,onExited:_,...R,children:u||b.jsx(CA,{message:x,action:a,...y})})})})}),Pi=eT({createStyledComponent:G("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Ie({props:e,name:"MuiStack"})}),Pw=h.createContext();function EA(e){return ye("MuiTable",e)}me("MuiTable",["root","stickyHeader"]);const MA=e=>{const{classes:t,stickyHeader:n}=e;return ve({root:["root",n&&"stickyHeader"]},EA,t)},RA=G("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(Fe(({theme:e})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...e.typography.body2,padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:t})=>t.stickyHeader,style:{borderCollapse:"separate"}}]}))),_v="table",TA=h.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiTable"}),{className:o,component:i=_v,padding:a="normal",size:s="medium",stickyHeader:l=!1,...c}=r,u={...r,component:i,padding:a,size:s,stickyHeader:l},d=MA(u),f=h.useMemo(()=>({padding:a,size:s,stickyHeader:l}),[a,s,l]);return b.jsx(Pw.Provider,{value:f,children:b.jsx(RA,{as:i,role:i===_v?null:"table",ref:n,className:pe(d.root,o),ownerState:u,...c})})}),Od=h.createContext();function DA(e){return ye("MuiTableBody",e)}me("MuiTableBody",["root"]);const IA=e=>{const{classes:t}=e;return ve({root:["root"]},DA,t)},OA=G("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),$A={variant:"body"},zv="tbody",AA=h.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiTableBody"}),{className:o,component:i=zv,...a}=r,s={...r,component:i},l=IA(s);return b.jsx(Od.Provider,{value:$A,children:b.jsx(OA,{className:pe(l.root,o),as:i,ref:n,role:i===zv?null:"rowgroup",ownerState:s,...a})})});function LA(e){return ye("MuiTableCell",e)}const jA=me("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),NA=e=>{const{classes:t,variant:n,align:r,padding:o,size:i,stickyHeader:a}=e,s={root:["root",n,a&&"stickyHeader",r!=="inherit"&&`align${ce(r)}`,o!=="normal"&&`padding${ce(o)}`,`size${ce(i)}`]};return ve(s,LA,t)},FA=G("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${ce(n.size)}`],n.padding!=="normal"&&t[`padding${ce(n.padding)}`],n.align!=="inherit"&&t[`align${ce(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(Fe(({theme:e})=>({...e.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid - ${e.palette.mode==="light"?Pa(Be(e.palette.divider,1),.88):ka(Be(e.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(e.vars||e).palette.text.primary}},{props:{variant:"footer"},style:{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${jA.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:t})=>t.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}}]}))),kn=h.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiTableCell"}),{align:o="inherit",className:i,component:a,padding:s,scope:l,size:c,sortDirection:u,variant:d,...f}=r,y=h.useContext(Pw),g=h.useContext(Od),x=g&&g.variant==="head";let C;a?C=a:C=x?"th":"td";let p=l;C==="td"?p=void 0:!p&&x&&(p="col");const m=d||g&&g.variant,v={...r,align:o,component:C,padding:s||(y&&y.padding?y.padding:"normal"),size:c||(y&&y.size?y.size:"medium"),sortDirection:u,stickyHeader:m==="head"&&y&&y.stickyHeader,variant:m},S=NA(v);let P=null;return u&&(P=u==="asc"?"ascending":"descending"),b.jsx(FA,{as:C,ref:n,className:pe(S.root,i),"aria-sort":P,scope:p,ownerState:v,...f})});function BA(e){return ye("MuiTableContainer",e)}me("MuiTableContainer",["root"]);const _A=e=>{const{classes:t}=e;return ve({root:["root"]},BA,t)},zA=G("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),VA=h.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiTableContainer"}),{className:o,component:i="div",...a}=r,s={...r,component:i},l=_A(s);return b.jsx(zA,{ref:n,as:i,className:pe(l.root,o),ownerState:s,...a})});function WA(e){return ye("MuiTableHead",e)}me("MuiTableHead",["root"]);const UA=e=>{const{classes:t}=e;return ve({root:["root"]},WA,t)},HA=G("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),YA={variant:"head"},Vv="thead",KA=h.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiTableHead"}),{className:o,component:i=Vv,...a}=r,s={...r,component:i},l=UA(s);return b.jsx(Od.Provider,{value:YA,children:b.jsx(HA,{as:i,className:pe(l.root,o),ref:n,role:i===Vv?null:"rowgroup",ownerState:s,...a})})});function GA(e){return ye("MuiToolbar",e)}me("MuiToolbar",["root","gutters","regular","dense"]);const QA=e=>{const{classes:t,disableGutters:n,variant:r}=e;return ve({root:["root",!n&&"gutters",r]},GA,t)},XA=G("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(Fe(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:e.mixins.toolbar}]}))),qA=h.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiToolbar"}),{className:o,component:i="div",disableGutters:a=!1,variant:s="regular",...l}=r,c={...r,component:i,disableGutters:a,variant:s},u=QA(c);return b.jsx(XA,{as:i,className:pe(u.root,o),ref:n,ownerState:c,...l})});function ZA(e){return ye("MuiTableRow",e)}const Wv=me("MuiTableRow",["root","selected","hover","head","footer"]),JA=e=>{const{classes:t,selected:n,hover:r,head:o,footer:i}=e;return ve({root:["root",n&&"selected",r&&"hover",o&&"head",i&&"footer"]},ZA,t)},eL=G("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(Fe(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${Wv.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Wv.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Be(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Be(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),Uv="tr",Rf=h.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiTableRow"}),{className:o,component:i=Uv,hover:a=!1,selected:s=!1,...l}=r,c=h.useContext(Od),u={...r,component:i,hover:a,selected:s,head:c&&c.variant==="head",footer:c&&c.variant==="footer"},d=JA(u);return b.jsx(eL,{as:i,ref:n,className:pe(d.root,o),role:i===Uv?null:"row",ownerState:u,...l})});function tL(e){return ye("MuiTextField",e)}me("MuiTextField",["root"]);const nL={standard:Eu,filled:Pu,outlined:Mu},rL=e=>{const{classes:t}=e;return ve({root:["root"]},tL,t)},oL=G($o,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Fr=h.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:i=!1,children:a,className:s,color:l="primary",defaultValue:c,disabled:u=!1,error:d=!1,FormHelperTextProps:f,fullWidth:y=!1,helperText:g,id:x,InputLabelProps:C,inputProps:p,InputProps:m,inputRef:v,label:S,maxRows:P,minRows:k,multiline:M=!1,name:E,onBlur:$,onChange:w,onFocus:R,placeholder:L,required:j=!1,rows:O,select:D=!1,SelectProps:I,slots:N={},slotProps:T={},type:A,value:_,variant:V="outlined",...H}=r,ae={...r,autoFocus:i,color:l,disabled:u,error:d,fullWidth:y,multiline:M,required:j,select:D,variant:V},se=rL(ae),Y=zo(x),le=g&&Y?`${Y}-helper-text`:void 0,ie=S&&Y?`${Y}-label`:void 0,ee=nL[V],q={slots:N,slotProps:{input:m,inputLabel:C,htmlInput:p,formHelperText:f,select:I,...T}},ne={},oe=q.slotProps.inputLabel;V==="outlined"&&(oe&&typeof oe.shrink<"u"&&(ne.notched=oe.shrink),ne.label=S),D&&((!I||!I.native)&&(ne.id=void 0),ne["aria-describedby"]=void 0);const[W,F]=Tn("input",{elementType:ee,externalForwardedProps:q,additionalProps:ne,ownerState:ae}),[K,Q]=Tn("inputLabel",{elementType:Am,externalForwardedProps:q,ownerState:ae}),[te,ue]=Tn("htmlInput",{elementType:"input",externalForwardedProps:q,ownerState:ae}),[J,fe]=Tn("formHelperText",{elementType:gw,externalForwardedProps:q,ownerState:ae}),[ge,Le]=Tn("select",{elementType:Fm,externalForwardedProps:q,ownerState:ae}),xe=b.jsx(W,{"aria-describedby":le,autoComplete:o,autoFocus:i,defaultValue:c,fullWidth:y,multiline:M,name:E,rows:O,maxRows:P,minRows:k,type:A,value:_,id:Y,inputRef:v,onBlur:$,onChange:w,onFocus:R,placeholder:L,inputProps:ue,slots:{input:N.htmlInput?te:void 0},...F});return b.jsxs(oL,{className:pe(se.root,s),disabled:u,error:d,fullWidth:y,ref:n,required:j,color:l,variant:V,ownerState:ae,...H,children:[S!=null&&S!==""&&b.jsx(K,{htmlFor:Y,id:ie,...Q,children:S}),D?b.jsx(ge,{"aria-describedby":le,id:Y,labelId:ie,value:_,input:xe,...Le,children:a}):xe,g&&b.jsx(J,{id:le,...fe,children:g})]})}),wn=h.createContext();var Ew={exports:{}},Mw={};/** - * @license React - * use-sync-external-store-shim.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var $a=h;function iL(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var aL=typeof Object.is=="function"?Object.is:iL,sL=$a.useState,lL=$a.useEffect,cL=$a.useLayoutEffect,uL=$a.useDebugValue;function dL(e,t){var n=t(),r=sL({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return cL(function(){o.value=n,o.getSnapshot=t,Tf(o)&&i({inst:o})},[e,n,t]),lL(function(){return Tf(o)&&i({inst:o}),e(function(){Tf(o)&&i({inst:o})})},[e]),uL(n),n}function Tf(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!aL(e,n)}catch{return!0}}function fL(e,t){return t()}var pL=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?fL:dL;Mw.useSyncExternalStore=$a.useSyncExternalStore!==void 0?$a.useSyncExternalStore:pL;Ew.exports=Mw;var Rw=Ew.exports;const Co=()=>{},It=Co(),da=Object,De=e=>e===It,Dn=e=>typeof e=="function",An=(e,t)=>({...e,...t}),hL=e=>Dn(e.then),Sc=new WeakMap;let mL=0;const Sl=e=>{const t=typeof e,n=e&&e.constructor,r=n==Date;let o,i;if(da(e)===e&&!r&&n!=RegExp){if(o=Sc.get(e),o)return o;if(o=++mL+"~",Sc.set(e,o),n==Array){for(o="@",i=0;i$d&&typeof window.requestAnimationFrame!=_m,zm=(e,t)=>{const n=Or.get(e);return[()=>!De(t)&&e.get(t)||Df,r=>{if(!De(t)){const o=e.get(t);t in bc||(bc[t]=o),n[5](t,An(o,r),o||Df)}},n[6],()=>!De(t)&&t in bc?bc[t]:!De(t)&&e.get(t)||Df]};let Xp=!0;const yL=()=>Xp,[qp,Zp]=$d&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[Co,Co],vL=()=>{const e=Qp&&document.visibilityState;return De(e)||e!=="hidden"},xL=e=>(Qp&&document.addEventListener("visibilitychange",e),qp("focus",e),()=>{Qp&&document.removeEventListener("visibilitychange",e),Zp("focus",e)}),SL=e=>{const t=()=>{Xp=!0,e()},n=()=>{Xp=!1};return qp("online",t),qp("offline",n),()=>{Zp("online",t),Zp("offline",n)}},bL={isOnline:yL,isVisible:vL},wL={initFocus:xL,initReconnect:SL},bl=!Bt.useId,vi=!$d||"Deno"in window,Tw=e=>gL()?window.requestAnimationFrame(e):setTimeout(e,1),Zr=vi?h.useEffect:h.useLayoutEffect,If=typeof navigator<"u"&&navigator.connection,Hv=!vi&&If&&(["slow-2g","2g"].includes(If.effectiveType)||If.saveData),Bl=e=>{if(Dn(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?Sl(e):"",[e,t]};let CL=0;const Aa=()=>++CL,Dw=0,Iw=1,Ow=2,kL=3;var $r={__proto__:null,ERROR_REVALIDATE_EVENT:kL,FOCUS_EVENT:Dw,MUTATE_EVENT:Ow,RECONNECT_EVENT:Iw};async function Vm(...e){const[t,n,r,o]=e,i=An({populateCache:!0,throwOnError:!0},typeof o=="boolean"?{revalidate:o}:o||{});let a=i.populateCache;const s=i.rollbackOnError;let l=i.optimisticData;const c=f=>typeof s=="function"?s(f):s!==!1,u=i.throwOnError;if(Dn(n)){const f=n,y=[],g=t.keys();for(const x of g)!/^\$(inf|sub)\$/.test(x)&&f(t.get(x)._k)&&y.push(x);return Promise.all(y.map(d))}return d(n);async function d(f){const[y]=Bl(f);if(!y)return;const[g,x]=zm(t,y),[C,p,m,v]=Or.get(t),S=()=>{const j=C[y];return(Dn(i.revalidate)?i.revalidate(g().data,f):i.revalidate!==!1)&&(delete m[y],delete v[y],j&&j[0])?j[0](Ow).then(()=>g().data):g().data};if(e.length<3)return S();let P=r,k;const M=Aa();p[y]=[M,0];const E=!De(l),$=g(),w=$.data,R=$._c,L=De(R)?w:R;if(E&&(l=Dn(l)?l(L,w):l,x({data:l,_c:L})),Dn(P))try{P=P(L)}catch(j){k=j}if(P&&hL(P))if(P=await P.catch(j=>{k=j}),M!==p[y][0]){if(k)throw k;return P}else k&&E&&c(k)&&(a=!0,x({data:L,_c:It}));if(a&&!k)if(Dn(a)){const j=a(P,L);x({data:j,error:It,_c:It})}else x({data:P,error:It,_c:It});if(p[y][1]=Aa(),Promise.resolve(S()).then(()=>{x({_c:It})}),k){if(u)throw k;return}return P}}const Yv=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},$w=(e,t)=>{if(!Or.has(e)){const n=An(wL,t),r={},o=Vm.bind(It,e);let i=Co;const a={},s=(u,d)=>{const f=a[u]||[];return a[u]=f,f.push(d),()=>f.splice(f.indexOf(d),1)},l=(u,d,f)=>{e.set(u,d);const y=a[u];if(y)for(const g of y)g(d,f)},c=()=>{if(!Or.has(e)&&(Or.set(e,[r,{},{},{},o,l,s]),!vi)){const u=n.initFocus(setTimeout.bind(It,Yv.bind(It,r,Dw))),d=n.initReconnect(setTimeout.bind(It,Yv.bind(It,r,Iw)));i=()=>{u&&u(),d&&d(),Or.delete(e)}}};return c(),[e,o,c,i]}return[e,Or.get(e)[4]]},PL=(e,t,n,r,o)=>{const i=n.errorRetryCount,a=o.retryCount,s=~~((Math.random()+.5)*(1<<(a<8?a:8)))*n.errorRetryInterval;!De(i)&&a>i||setTimeout(r,s,o)},EL=(e,t)=>Sl(e)==Sl(t),[Wm,Aw]=$w(new Map),Ad=An({onLoadingSlow:Co,onSuccess:Co,onError:Co,onErrorRetry:PL,onDiscarded:Co,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:Hv?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:Hv?5e3:3e3,compare:EL,isPaused:()=>!1,cache:Wm,mutate:Aw,fallback:{}},bL),Lw=(e,t)=>{const n=An(e,t);if(t){const{use:r,fallback:o}=e,{use:i,fallback:a}=t;r&&i&&(n.use=r.concat(i)),o&&a&&(n.fallback=An(o,a))}return n},Jp=h.createContext({}),Um=e=>{const{value:t}=e,n=h.useContext(Jp),r=Dn(t),o=h.useMemo(()=>r?t(n):t,[r,n,t]),i=h.useMemo(()=>r?o:Lw(n,o),[r,n,o]),a=o&&o.provider,s=h.useRef(It);a&&!s.current&&(s.current=$w(a(i.cache||Wm),o));const l=s.current;return l&&(i.cache=l[0],i.mutate=l[1]),Zr(()=>{if(l)return l[2]&&l[2](),l[3]},[]),h.createElement(Jp.Provider,An(e,{value:i}))},ML="$inf$",jw=$d&&window.__SWR_DEVTOOLS_USE__,RL=jw?window.__SWR_DEVTOOLS_USE__:[],DL=()=>{jw&&(window.__SWR_DEVTOOLS_REACT__=Bt)},Nw=e=>Dn(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],Fw=()=>An(Ad,h.useContext(Jp)),IL=e=>(t,n,r)=>e(t,n&&((...i)=>{const[a]=Bl(t),[,,,s]=Or.get(Wm);if(a.startsWith(ML))return n(...i);const l=s[a];return De(l)?n(...i):(delete s[a],l)}),r),OL=RL.concat(IL),Bw=e=>function(...n){const r=Fw(),[o,i,a]=Nw(n),s=Lw(r,a);let l=e;const{use:c}=s,u=(c||[]).concat(OL);for(let d=u.length;d--;)l=u[d](l);return l(o,i||s.fetcher||null,s)},_w=(e,t,n)=>{const r=t[e]||(t[e]=[]);return r.push(n),()=>{const o=r.indexOf(n);o>=0&&(r[o]=r[r.length-1],r.pop())}},$L=(e,t)=>(...n)=>{const[r,o,i]=Nw(n),a=(i.use||[]).concat(t);return e(r,o,{...i,use:a})};DL();const Kv=Bt.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e)}),Of={dedupe:!0},AL=(e,t,n)=>{const{cache:r,compare:o,suspense:i,fallbackData:a,revalidateOnMount:s,revalidateIfStale:l,refreshInterval:c,refreshWhenHidden:u,refreshWhenOffline:d,keepPreviousData:f}=n,[y,g,x,C]=Or.get(r),[p,m]=Bl(e),v=h.useRef(!1),S=h.useRef(!1),P=h.useRef(p),k=h.useRef(t),M=h.useRef(n),E=()=>M.current,$=()=>E().isVisible()&&E().isOnline(),[w,R,L,j]=zm(r,p),O=h.useRef({}).current,D=De(a)?n.fallback[p]:a,I=(W,F)=>{for(const K in O){const Q=K;if(Q==="data"){if(!o(W[Q],F[Q])&&(!De(W[Q])||!o(Y,F[Q])))return!1}else if(F[Q]!==W[Q])return!1}return!0},N=h.useMemo(()=>{const W=!p||!t?!1:De(s)?E().isPaused()||i?!1:De(l)?!0:l:s,F=fe=>{const ge=An(fe);return delete ge._k,W?{isValidating:!0,isLoading:!0,...ge}:ge},K=w(),Q=j(),te=F(K),ue=K===Q?te:F(Q);let J=te;return[()=>{const fe=F(w());return I(fe,J)?(J.data=fe.data,J.isLoading=fe.isLoading,J.isValidating=fe.isValidating,J.error=fe.error,J):(J=fe,fe)},()=>ue]},[r,p]),T=Rw.useSyncExternalStore(h.useCallback(W=>L(p,(F,K)=>{I(K,F)||W()}),[r,p]),N[0],N[1]),A=!v.current,_=y[p]&&y[p].length>0,V=T.data,H=De(V)?D:V,ae=T.error,se=h.useRef(H),Y=f?De(V)?se.current:V:H,le=_&&!De(ae)?!1:A&&!De(s)?s:E().isPaused()?!1:i?De(H)?!1:l:De(H)||l,ie=!!(p&&t&&A&&le),ee=De(T.isValidating)?ie:T.isValidating,q=De(T.isLoading)?ie:T.isLoading,ne=h.useCallback(async W=>{const F=k.current;if(!p||!F||S.current||E().isPaused())return!1;let K,Q,te=!0;const ue=W||{},J=!x[p]||!ue.dedupe,fe=()=>bl?!S.current&&p===P.current&&v.current:p===P.current,ge={isValidating:!1,isLoading:!1},Le=()=>{R(ge)},xe=()=>{const Ee=x[p];Ee&&Ee[1]===Q&&delete x[p]},tt={isValidating:!0};De(w().data)&&(tt.isLoading=!0);try{if(J&&(R(tt),n.loadingTimeout&&De(w().data)&&setTimeout(()=>{te&&fe()&&E().onLoadingSlow(p,n)},n.loadingTimeout),x[p]=[F(m),Aa()]),[K,Q]=x[p],K=await K,J&&setTimeout(xe,n.dedupingInterval),!x[p]||x[p][1]!==Q)return J&&fe()&&E().onDiscarded(p),!1;ge.error=It;const Ee=g[p];if(!De(Ee)&&(Q<=Ee[0]||Q<=Ee[1]||Ee[1]===0))return Le(),J&&fe()&&E().onDiscarded(p),!1;const _e=w().data;ge.data=o(_e,K)?_e:K,J&&fe()&&E().onSuccess(K,p,n)}catch(Ee){xe();const _e=E(),{shouldRetryOnError:ct}=_e;_e.isPaused()||(ge.error=Ee,J&&fe()&&(_e.onError(Ee,p,_e),(ct===!0||Dn(ct)&&ct(Ee))&&(!E().revalidateOnFocus||!E().revalidateOnReconnect||$())&&_e.onErrorRetry(Ee,p,_e,je=>{const Oe=y[p];Oe&&Oe[0]&&Oe[0]($r.ERROR_REVALIDATE_EVENT,je)},{retryCount:(ue.retryCount||0)+1,dedupe:!0})))}return te=!1,Le(),!0},[p,r]),oe=h.useCallback((...W)=>Vm(r,P.current,...W),[]);if(Zr(()=>{k.current=t,M.current=n,De(V)||(se.current=V)}),Zr(()=>{if(!p)return;const W=ne.bind(It,Of);let F=0;const Q=_w(p,y,(te,ue={})=>{if(te==$r.FOCUS_EVENT){const J=Date.now();E().revalidateOnFocus&&J>F&&$()&&(F=J+E().focusThrottleInterval,W())}else if(te==$r.RECONNECT_EVENT)E().revalidateOnReconnect&&$()&&W();else{if(te==$r.MUTATE_EVENT)return ne();if(te==$r.ERROR_REVALIDATE_EVENT)return ne(ue)}});return S.current=!1,P.current=p,v.current=!0,R({_k:m}),le&&(De(H)||vi?W():Tw(W)),()=>{S.current=!0,Q()}},[p]),Zr(()=>{let W;function F(){const Q=Dn(c)?c(w().data):c;Q&&W!==-1&&(W=setTimeout(K,Q))}function K(){!w().error&&(u||E().isVisible())&&(d||E().isOnline())?ne(Of).then(F):F()}return F(),()=>{W&&(clearTimeout(W),W=-1)}},[c,u,d,p]),h.useDebugValue(Y),i&&De(H)&&p){if(!bl&&vi)throw new Error("Fallback data is required when using suspense in SSR.");k.current=t,M.current=n,S.current=!1;const W=C[p];if(!De(W)){const F=oe(W);Kv(F)}if(De(ae)){const F=ne(Of);De(Y)||(F.status="fulfilled",F.value=!0),Kv(F)}else throw ae}return{mutate:oe,get data(){return O.data=!0,Y},get error(){return O.error=!0,ae},get isValidating(){return O.isValidating=!0,ee},get isLoading(){return O.isLoading=!0,q}}},LL=da.defineProperty(Um,"defaultValue",{value:Ad}),_r=Bw(AL),_l="https://timetrekah.goodflame.ru",jL=async e=>{const t=await fetch(_l+e,{credentials:"include"});if(!t.ok){const n=new Error("An error occurred while fetching the data.");throw n.info=await t.json(),n.status=t.status,n}return t.json()},zr=e=>async t=>{const n=await fetch(_l+t,{headers:{Authorization:`Token ${e}`},credentials:"include"});if(!n.ok){const r=new Error("An error occurred while fetching the data.");throw r.info=await n.json(),r.status=n.status,r}return n.json()},zw=async(e,{arg:t})=>{const n=await fetch(_l+e,{method:"POST",body:JSON.stringify(t),headers:{"Content-Type":"application/json"},credentials:"include"});if(!n.ok){const r=new Error("An error occurred while fetching the data.");throw r.info=await n.json(),r.status=n.status,r}return n.json()},Hm=e=>async(t,{arg:n})=>{const r=await fetch(_l+t,{method:"POST",body:JSON.stringify(n),headers:{"Content-Type":"application/json",Authorization:`Token ${e}`},credentials:"include"});if(!r.ok){const o=new Error("An error occurred while fetching the data.");throw o.info=await r.json(),o.status=r.status,o}return r.json()},NL=e=>async(t,{arg:n})=>{const r=await fetch(_l+t,{method:"POST",body:n,headers:{Authorization:`Token ${e}`},credentials:"include"});if(!r.ok){const o=new Error("An error occurred while fetching the data.");throw o.info=await r.json(),o.status=r.status,o}return r.json()};Bt.use;da.defineProperty(Um,"defaultValue",{value:Ad});const Ld=()=>{const{token:e}=h.useContext(wn),{data:t,error:n,isLoading:r,mutate:o}=_r(e?"/auth/users/me":null,zr(e),{shouldRetryOnError:!1,revalidateOnFocus:!1});return{user:t,error:n,isLoading:r}};function FL(){h.useState(0);const{user:e}=Ld();return h.useContext(wn),b.jsx(Pi,{justifyContent:"center",justifyItems:"center",alignContent:"center",alignItems:"center",paddingX:4,paddingTop:12,children:b.jsxs(Ye,{variant:"h1",children:["Welcome, ",e.username]})})}/** - * @remix-run/router v1.20.0 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function xt(){return xt=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function La(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function _L(){return Math.random().toString(36).substr(2,8)}function Qv(e,t){return{usr:e.state,key:e.key,idx:t}}function wl(e,t,n,r){return n===void 0&&(n=null),xt({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Wo(t):t,{state:n,key:t&&t.key||r||_L()})}function xi(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Wo(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function zL(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,s=Lt.Pop,l=null,c=u();c==null&&(c=0,a.replaceState(xt({},a.state,{idx:c}),""));function u(){return(a.state||{idx:null}).idx}function d(){s=Lt.Pop;let C=u(),p=C==null?null:C-c;c=C,l&&l({action:s,location:x.location,delta:p})}function f(C,p){s=Lt.Push;let m=wl(x.location,C,p);c=u()+1;let v=Qv(m,c),S=x.createHref(m);try{a.pushState(v,"",S)}catch(P){if(P instanceof DOMException&&P.name==="DataCloneError")throw P;o.location.assign(S)}i&&l&&l({action:s,location:x.location,delta:1})}function y(C,p){s=Lt.Replace;let m=wl(x.location,C,p);c=u();let v=Qv(m,c),S=x.createHref(m);a.replaceState(v,"",S),i&&l&&l({action:s,location:x.location,delta:0})}function g(C){let p=o.location.origin!=="null"?o.location.origin:o.location.href,m=typeof C=="string"?C:xi(C);return m=m.replace(/ $/,"%20"),Ue(p,"No window.location.(origin|href) available to create URL for href: "+m),new URL(m,p)}let x={get action(){return s},get location(){return e(o,a)},listen(C){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(Gv,d),l=C,()=>{o.removeEventListener(Gv,d),l=null}},createHref(C){return t(o,C)},createURL:g,encodeLocation(C){let p=g(C);return{pathname:p.pathname,search:p.search,hash:p.hash}},push:f,replace:y,go(C){return a.go(C)}};return x}var it;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(it||(it={}));const VL=new Set(["lazy","caseSensitive","path","id","index","children"]);function WL(e){return e.index===!0}function Ru(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((o,i)=>{let a=[...n,String(i)],s=typeof o.id=="string"?o.id:a.join("-");if(Ue(o.index!==!0||!o.children,"Cannot specify children on an index route"),Ue(!r[s],'Found a route id collision on id "'+s+`". Route id's must be globally unique within Data Router usages`),WL(o)){let l=xt({},o,t(o),{id:s});return r[s]=l,l}else{let l=xt({},o,t(o),{id:s,children:void 0});return r[s]=l,o.children&&(l.children=Ru(o.children,t,a,r)),l}})}function Jo(e,t,n){return n===void 0&&(n="/"),Uc(e,t,n,!1)}function Uc(e,t,n,r){let o=typeof t=="string"?Wo(t):t,i=Ya(o.pathname||"/",n);if(i==null)return null;let a=Vw(e);HL(a);let s=null;for(let l=0;s==null&&l{let l={relativePath:s===void 0?i.path||"":s,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};l.relativePath.startsWith("/")&&(Ue(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let c=Jr([r,l.relativePath]),u=n.concat(l);i.children&&i.children.length>0&&(Ue(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),Vw(i.children,t,u,c)),!(i.path==null&&!i.index)&&t.push({path:c,score:ZL(c,i.index),routesMeta:u})};return e.forEach((i,a)=>{var s;if(i.path===""||!((s=i.path)!=null&&s.includes("?")))o(i,a);else for(let l of Ww(i.path))o(i,a,l)}),t}function Ww(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let a=Ww(r.join("/")),s=[];return s.push(...a.map(l=>l===""?i:[i,l].join("/"))),o&&s.push(...a),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function HL(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:JL(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const YL=/^:[\w-]+$/,KL=3,GL=2,QL=1,XL=10,qL=-2,Xv=e=>e==="*";function ZL(e,t){let n=e.split("/"),r=n.length;return n.some(Xv)&&(r+=qL),t&&(r+=GL),n.filter(o=>!Xv(o)).reduce((o,i)=>o+(YL.test(i)?KL:i===""?QL:XL),r)}function JL(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function ej(e,t,n){n===void 0&&(n=!1);let{routesMeta:r}=e,o={},i="/",a=[];for(let s=0;s{let{paramName:f,isOptional:y}=u;if(f==="*"){let x=s[d]||"";a=i.slice(0,i.length-x.length).replace(/(.)\/+$/,"$1")}const g=s[d];return y&&!g?c[f]=void 0:c[f]=(g||"").replace(/%2F/g,"/"),c},{}),pathname:i,pathnameBase:a,pattern:e}}function tj(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),La(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,s,l)=>(r.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function nj(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return La(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Ya(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function rj(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?Wo(e):e;return{pathname:n?n.startsWith("/")?n:oj(n,t):t,search:aj(r),hash:sj(o)}}function oj(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function $f(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function Uw(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Ym(e,t){let n=Uw(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Km(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=Wo(e):(o=xt({},e),Ue(!o.pathname||!o.pathname.includes("?"),$f("?","pathname","search",o)),Ue(!o.pathname||!o.pathname.includes("#"),$f("#","pathname","hash",o)),Ue(!o.search||!o.search.includes("#"),$f("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,s;if(a==null)s=n;else{let d=t.length-1;if(!r&&a.startsWith("..")){let f=a.split("/");for(;f[0]==="..";)f.shift(),d-=1;o.pathname=f.join("/")}s=d>=0?t[d]:"/"}let l=rj(o,s),c=a&&a!=="/"&&a.endsWith("/"),u=(i||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}const Jr=e=>e.join("/").replace(/\/\/+/g,"/"),ij=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),aj=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,sj=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class Tu{constructor(t,n,r,o){o===void 0&&(o=!1),this.status=t,this.statusText=n||"",this.internal=o,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function jd(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Hw=["post","put","patch","delete"],lj=new Set(Hw),cj=["get",...Hw],uj=new Set(cj),dj=new Set([301,302,303,307,308]),fj=new Set([307,308]),Af={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},pj={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},fs={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Gm=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,hj=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),Yw="remix-router-transitions";function mj(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;Ue(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let o;if(e.mapRouteProperties)o=e.mapRouteProperties;else if(e.detectErrorBoundary){let B=e.detectErrorBoundary;o=U=>({hasErrorBoundary:B(U)})}else o=hj;let i={},a=Ru(e.routes,o,void 0,i),s,l=e.basename||"/",c=e.dataStrategy||xj,u=e.patchRoutesOnNavigation,d=xt({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),f=null,y=new Set,g=null,x=null,C=null,p=e.hydrationData!=null,m=Jo(a,e.history.location,l),v=null;if(m==null&&!u){let B=pn(404,{pathname:e.history.location.pathname}),{matches:U,route:X}=l0(a);m=U,v={[X.id]:B}}m&&!e.hydrationData&&Hl(m,a,e.history.location.pathname).active&&(m=null);let S;if(m)if(m.some(B=>B.route.lazy))S=!1;else if(!m.some(B=>B.route.loader))S=!0;else if(d.v7_partialHydration){let B=e.hydrationData?e.hydrationData.loaderData:null,U=e.hydrationData?e.hydrationData.errors:null;if(U){let X=m.findIndex(de=>U[de.route.id]!==void 0);S=m.slice(0,X+1).every(de=>!th(de.route,B,U))}else S=m.every(X=>!th(X.route,B,U))}else S=e.hydrationData!=null;else if(S=!1,m=[],d.v7_partialHydration){let B=Hl(null,a,e.history.location.pathname);B.active&&B.matches&&(m=B.matches)}let P,k={historyAction:e.history.action,location:e.history.location,matches:m,initialized:S,navigation:Af,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||v,fetchers:new Map,blockers:new Map},M=Lt.Pop,E=!1,$,w=!1,R=new Map,L=null,j=!1,O=!1,D=[],I=new Set,N=new Map,T=0,A=-1,_=new Map,V=new Set,H=new Map,ae=new Map,se=new Set,Y=new Map,le=new Map,ie;function ee(){if(f=e.history.listen(B=>{let{action:U,location:X,delta:de}=B;if(ie){ie(),ie=void 0;return}La(le.size===0||de!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let we=nt({currentLocation:k.location,nextLocation:X,historyAction:U});if(we&&de!=null){let Re=new Promise($e=>{ie=$e});e.history.go(de*-1),Cn(we,{state:"blocked",location:X,proceed(){Cn(we,{state:"proceeding",proceed:void 0,reset:void 0,location:X}),Re.then(()=>e.history.go(de))},reset(){let $e=new Map(k.blockers);$e.set(we,fs),oe({blockers:$e})}});return}return Q(U,X)}),n){$j(t,R);let B=()=>Aj(t,R);t.addEventListener("pagehide",B),L=()=>t.removeEventListener("pagehide",B)}return k.initialized||Q(Lt.Pop,k.location,{initialHydration:!0}),P}function q(){f&&f(),L&&L(),y.clear(),$&&$.abort(),k.fetchers.forEach((B,U)=>$t(U)),k.blockers.forEach((B,U)=>yt(U))}function ne(B){return y.add(B),()=>y.delete(B)}function oe(B,U){U===void 0&&(U={}),k=xt({},k,B);let X=[],de=[];d.v7_fetcherPersist&&k.fetchers.forEach((we,Re)=>{we.state==="idle"&&(se.has(Re)?de.push(Re):X.push(Re))}),[...y].forEach(we=>we(k,{deletedFetchers:de,viewTransitionOpts:U.viewTransitionOpts,flushSync:U.flushSync===!0})),d.v7_fetcherPersist&&(X.forEach(we=>k.fetchers.delete(we)),de.forEach(we=>$t(we)))}function W(B,U,X){var de,we;let{flushSync:Re}=X===void 0?{}:X,$e=k.actionData!=null&&k.navigation.formMethod!=null&&dr(k.navigation.formMethod)&&k.navigation.state==="loading"&&((de=B.state)==null?void 0:de._isRedirect)!==!0,ke;U.actionData?Object.keys(U.actionData).length>0?ke=U.actionData:ke=null:$e?ke=k.actionData:ke=null;let Pe=U.loaderData?a0(k.loaderData,U.loaderData,U.matches||[],U.errors):k.loaderData,Ce=k.blockers;Ce.size>0&&(Ce=new Map(Ce),Ce.forEach((Ke,Qt)=>Ce.set(Qt,fs)));let Te=E===!0||k.navigation.formMethod!=null&&dr(k.navigation.formMethod)&&((we=B.state)==null?void 0:we._isRedirect)!==!0;s&&(a=s,s=void 0),j||M===Lt.Pop||(M===Lt.Push?e.history.push(B,B.state):M===Lt.Replace&&e.history.replace(B,B.state));let We;if(M===Lt.Pop){let Ke=R.get(k.location.pathname);Ke&&Ke.has(B.pathname)?We={currentLocation:k.location,nextLocation:B}:R.has(B.pathname)&&(We={currentLocation:B,nextLocation:k.location})}else if(w){let Ke=R.get(k.location.pathname);Ke?Ke.add(B.pathname):(Ke=new Set([B.pathname]),R.set(k.location.pathname,Ke)),We={currentLocation:k.location,nextLocation:B}}oe(xt({},U,{actionData:ke,loaderData:Pe,historyAction:M,location:B,initialized:!0,navigation:Af,revalidation:"idle",restoreScrollPosition:ug(B,U.matches||k.matches),preventScrollReset:Te,blockers:Ce}),{viewTransitionOpts:We,flushSync:Re===!0}),M=Lt.Pop,E=!1,w=!1,j=!1,O=!1,D=[]}async function F(B,U){if(typeof B=="number"){e.history.go(B);return}let X=eh(k.location,k.matches,l,d.v7_prependBasename,B,d.v7_relativeSplatPath,U==null?void 0:U.fromRouteId,U==null?void 0:U.relative),{path:de,submission:we,error:Re}=Zv(d.v7_normalizeFormMethod,!1,X,U),$e=k.location,ke=wl(k.location,de,U&&U.state);ke=xt({},ke,e.history.encodeLocation(ke));let Pe=U&&U.replace!=null?U.replace:void 0,Ce=Lt.Push;Pe===!0?Ce=Lt.Replace:Pe===!1||we!=null&&dr(we.formMethod)&&we.formAction===k.location.pathname+k.location.search&&(Ce=Lt.Replace);let Te=U&&"preventScrollReset"in U?U.preventScrollReset===!0:void 0,We=(U&&U.flushSync)===!0,Ke=nt({currentLocation:$e,nextLocation:ke,historyAction:Ce});if(Ke){Cn(Ke,{state:"blocked",location:ke,proceed(){Cn(Ke,{state:"proceeding",proceed:void 0,reset:void 0,location:ke}),F(B,U)},reset(){let Qt=new Map(k.blockers);Qt.set(Ke,fs),oe({blockers:Qt})}});return}return await Q(Ce,ke,{submission:we,pendingError:Re,preventScrollReset:Te,replace:U&&U.replace,enableViewTransition:U&&U.viewTransition,flushSync:We})}function K(){if(ct(),oe({revalidation:"loading"}),k.navigation.state!=="submitting"){if(k.navigation.state==="idle"){Q(k.historyAction,k.location,{startUninterruptedRevalidation:!0});return}Q(M||k.historyAction,k.navigation.location,{overrideNavigation:k.navigation,enableViewTransition:w===!0})}}async function Q(B,U,X){$&&$.abort(),$=null,M=B,j=(X&&X.startUninterruptedRevalidation)===!0,K1(k.location,k.matches),E=(X&&X.preventScrollReset)===!0,w=(X&&X.enableViewTransition)===!0;let de=s||a,we=X&&X.overrideNavigation,Re=Jo(de,U,l),$e=(X&&X.flushSync)===!0,ke=Hl(Re,de,U.pathname);if(ke.active&&ke.matches&&(Re=ke.matches),!Re){let{error:ut,notFoundMatches:Ze,route:kt}=fn(U.pathname);W(U,{matches:Ze,loaderData:{},errors:{[kt.id]:ut}},{flushSync:$e});return}if(k.initialized&&!O&&Pj(k.location,U)&&!(X&&X.submission&&dr(X.submission.formMethod))){W(U,{matches:Re},{flushSync:$e});return}$=new AbortController;let Pe=Bi(e.history,U,$.signal,X&&X.submission),Ce;if(X&&X.pendingError)Ce=[ei(Re).route.id,{type:it.error,error:X.pendingError}];else if(X&&X.submission&&dr(X.submission.formMethod)){let ut=await te(Pe,U,X.submission,Re,ke.active,{replace:X.replace,flushSync:$e});if(ut.shortCircuited)return;if(ut.pendingActionResult){let[Ze,kt]=ut.pendingActionResult;if(En(kt)&&jd(kt.error)&&kt.error.status===404){$=null,W(U,{matches:ut.matches,loaderData:{},errors:{[Ze]:kt.error}});return}}Re=ut.matches||Re,Ce=ut.pendingActionResult,we=Lf(U,X.submission),$e=!1,ke.active=!1,Pe=Bi(e.history,Pe.url,Pe.signal)}let{shortCircuited:Te,matches:We,loaderData:Ke,errors:Qt}=await ue(Pe,U,Re,ke.active,we,X&&X.submission,X&&X.fetcherSubmission,X&&X.replace,X&&X.initialHydration===!0,$e,Ce);Te||($=null,W(U,xt({matches:We||Re},s0(Ce),{loaderData:Ke,errors:Qt})))}async function te(B,U,X,de,we,Re){Re===void 0&&(Re={}),ct();let $e=Ij(U,X);if(oe({navigation:$e},{flushSync:Re.flushSync===!0}),we){let Ce=await Yl(de,U.pathname,B.signal);if(Ce.type==="aborted")return{shortCircuited:!0};if(Ce.type==="error"){let Te=ei(Ce.partialMatches).route.id;return{matches:Ce.partialMatches,pendingActionResult:[Te,{type:it.error,error:Ce.error}]}}else if(Ce.matches)de=Ce.matches;else{let{notFoundMatches:Te,error:We,route:Ke}=fn(U.pathname);return{matches:Te,pendingActionResult:[Ke.id,{type:it.error,error:We}]}}}let ke,Pe=Rs(de,U);if(!Pe.route.action&&!Pe.route.lazy)ke={type:it.error,error:pn(405,{method:B.method,pathname:U.pathname,routeId:Pe.route.id})};else if(ke=(await Ee("action",k,B,[Pe],de,null))[Pe.route.id],B.signal.aborted)return{shortCircuited:!0};if(ii(ke)){let Ce;return Re&&Re.replace!=null?Ce=Re.replace:Ce=r0(ke.response.headers.get("Location"),new URL(B.url),l)===k.location.pathname+k.location.search,await tt(B,ke,!0,{submission:X,replace:Ce}),{shortCircuited:!0}}if(ko(ke))throw pn(400,{type:"defer-action"});if(En(ke)){let Ce=ei(de,Pe.route.id);return(Re&&Re.replace)!==!0&&(M=Lt.Push),{matches:de,pendingActionResult:[Ce.route.id,ke]}}return{matches:de,pendingActionResult:[Pe.route.id,ke]}}async function ue(B,U,X,de,we,Re,$e,ke,Pe,Ce,Te){let We=we||Lf(U,Re),Ke=Re||$e||u0(We),Qt=!j&&(!d.v7_partialHydration||!Pe);if(de){if(Qt){let Pt=J(Te);oe(xt({navigation:We},Pt!==void 0?{actionData:Pt}:{}),{flushSync:Ce})}let Xe=await Yl(X,U.pathname,B.signal);if(Xe.type==="aborted")return{shortCircuited:!0};if(Xe.type==="error"){let Pt=ei(Xe.partialMatches).route.id;return{matches:Xe.partialMatches,loaderData:{},errors:{[Pt]:Xe.error}}}else if(Xe.matches)X=Xe.matches;else{let{error:Pt,notFoundMatches:Ti,route:Qa}=fn(U.pathname);return{matches:Ti,loaderData:{},errors:{[Qa.id]:Pt}}}}let ut=s||a,[Ze,kt]=e0(e.history,k,X,Ke,U,d.v7_partialHydration&&Pe===!0,d.v7_skipActionErrorRevalidation,O,D,I,se,H,V,ut,l,Te);if(Wr(Xe=>!(X&&X.some(Pt=>Pt.route.id===Xe))||Ze&&Ze.some(Pt=>Pt.route.id===Xe)),A=++T,Ze.length===0&&kt.length===0){let Xe=fo();return W(U,xt({matches:X,loaderData:{},errors:Te&&En(Te[1])?{[Te[0]]:Te[1].error}:null},s0(Te),Xe?{fetchers:new Map(k.fetchers)}:{}),{flushSync:Ce}),{shortCircuited:!0}}if(Qt){let Xe={};if(!de){Xe.navigation=We;let Pt=J(Te);Pt!==void 0&&(Xe.actionData=Pt)}kt.length>0&&(Xe.fetchers=fe(kt)),oe(Xe,{flushSync:Ce})}kt.forEach(Xe=>{at(Xe.key),Xe.controller&&N.set(Xe.key,Xe.controller)});let Ri=()=>kt.forEach(Xe=>at(Xe.key));$&&$.signal.addEventListener("abort",Ri);let{loaderResults:Ka,fetcherResults:Ur}=await _e(k,X,Ze,kt,B);if(B.signal.aborted)return{shortCircuited:!0};$&&$.signal.removeEventListener("abort",Ri),kt.forEach(Xe=>N.delete(Xe.key));let wr=wc(Ka);if(wr)return await tt(B,wr.result,!0,{replace:ke}),{shortCircuited:!0};if(wr=wc(Ur),wr)return V.add(wr.key),await tt(B,wr.result,!0,{replace:ke}),{shortCircuited:!0};let{loaderData:Ud,errors:Ga}=i0(k,X,Ka,Te,kt,Ur,Y);Y.forEach((Xe,Pt)=>{Xe.subscribe(Ti=>{(Ti||Xe.done)&&Y.delete(Pt)})}),d.v7_partialHydration&&Pe&&k.errors&&(Ga=xt({},k.errors,Ga));let Uo=fo(),Kl=Me(A),Gl=Uo||Kl||kt.length>0;return xt({matches:X,loaderData:Ud,errors:Ga},Gl?{fetchers:new Map(k.fetchers)}:{})}function J(B){if(B&&!En(B[1]))return{[B[0]]:B[1].data};if(k.actionData)return Object.keys(k.actionData).length===0?null:k.actionData}function fe(B){return B.forEach(U=>{let X=k.fetchers.get(U.key),de=ps(void 0,X?X.data:void 0);k.fetchers.set(U.key,de)}),new Map(k.fetchers)}function ge(B,U,X,de){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");at(B);let we=(de&&de.flushSync)===!0,Re=s||a,$e=eh(k.location,k.matches,l,d.v7_prependBasename,X,d.v7_relativeSplatPath,U,de==null?void 0:de.relative),ke=Jo(Re,$e,l),Pe=Hl(ke,Re,$e);if(Pe.active&&Pe.matches&&(ke=Pe.matches),!ke){Oe(B,U,pn(404,{pathname:$e}),{flushSync:we});return}let{path:Ce,submission:Te,error:We}=Zv(d.v7_normalizeFormMethod,!0,$e,de);if(We){Oe(B,U,We,{flushSync:we});return}let Ke=Rs(ke,Ce),Qt=(de&&de.preventScrollReset)===!0;if(Te&&dr(Te.formMethod)){Le(B,U,Ce,Ke,ke,Pe.active,we,Qt,Te);return}H.set(B,{routeId:U,path:Ce}),xe(B,U,Ce,Ke,ke,Pe.active,we,Qt,Te)}async function Le(B,U,X,de,we,Re,$e,ke,Pe){ct(),H.delete(B);function Ce(At){if(!At.route.action&&!At.route.lazy){let Di=pn(405,{method:Pe.formMethod,pathname:X,routeId:U});return Oe(B,U,Di,{flushSync:$e}),!0}return!1}if(!Re&&Ce(de))return;let Te=k.fetchers.get(B);je(B,Oj(Pe,Te),{flushSync:$e});let We=new AbortController,Ke=Bi(e.history,X,We.signal,Pe);if(Re){let At=await Yl(we,X,Ke.signal);if(At.type==="aborted")return;if(At.type==="error"){Oe(B,U,At.error,{flushSync:$e});return}else if(At.matches){if(we=At.matches,de=Rs(we,X),Ce(de))return}else{Oe(B,U,pn(404,{pathname:X}),{flushSync:$e});return}}N.set(B,We);let Qt=T,Ze=(await Ee("action",k,Ke,[de],we,B))[de.route.id];if(Ke.signal.aborted){N.get(B)===We&&N.delete(B);return}if(d.v7_fetcherPersist&&se.has(B)){if(ii(Ze)||En(Ze)){je(B,go(void 0));return}}else{if(ii(Ze))if(N.delete(B),A>Qt){je(B,go(void 0));return}else return V.add(B),je(B,ps(Pe)),tt(Ke,Ze,!1,{fetcherSubmission:Pe,preventScrollReset:ke});if(En(Ze)){Oe(B,U,Ze.error);return}}if(ko(Ze))throw pn(400,{type:"defer-action"});let kt=k.navigation.location||k.location,Ri=Bi(e.history,kt,We.signal),Ka=s||a,Ur=k.navigation.state!=="idle"?Jo(Ka,k.navigation.location,l):k.matches;Ue(Ur,"Didn't find any matches after fetcher action");let wr=++T;_.set(B,wr);let Ud=ps(Pe,Ze.data);k.fetchers.set(B,Ud);let[Ga,Uo]=e0(e.history,k,Ur,Pe,kt,!1,d.v7_skipActionErrorRevalidation,O,D,I,se,H,V,Ka,l,[de.route.id,Ze]);Uo.filter(At=>At.key!==B).forEach(At=>{let Di=At.key,dg=k.fetchers.get(Di),X1=ps(void 0,dg?dg.data:void 0);k.fetchers.set(Di,X1),at(Di),At.controller&&N.set(Di,At.controller)}),oe({fetchers:new Map(k.fetchers)});let Kl=()=>Uo.forEach(At=>at(At.key));We.signal.addEventListener("abort",Kl);let{loaderResults:Gl,fetcherResults:Xe}=await _e(k,Ur,Ga,Uo,Ri);if(We.signal.aborted)return;We.signal.removeEventListener("abort",Kl),_.delete(B),N.delete(B),Uo.forEach(At=>N.delete(At.key));let Pt=wc(Gl);if(Pt)return tt(Ri,Pt.result,!1,{preventScrollReset:ke});if(Pt=wc(Xe),Pt)return V.add(Pt.key),tt(Ri,Pt.result,!1,{preventScrollReset:ke});let{loaderData:Ti,errors:Qa}=i0(k,Ur,Gl,void 0,Uo,Xe,Y);if(k.fetchers.has(B)){let At=go(Ze.data);k.fetchers.set(B,At)}Me(wr),k.navigation.state==="loading"&&wr>A?(Ue(M,"Expected pending action"),$&&$.abort(),W(k.navigation.location,{matches:Ur,loaderData:Ti,errors:Qa,fetchers:new Map(k.fetchers)})):(oe({errors:Qa,loaderData:a0(k.loaderData,Ti,Ur,Qa),fetchers:new Map(k.fetchers)}),O=!1)}async function xe(B,U,X,de,we,Re,$e,ke,Pe){let Ce=k.fetchers.get(B);je(B,ps(Pe,Ce?Ce.data:void 0),{flushSync:$e});let Te=new AbortController,We=Bi(e.history,X,Te.signal);if(Re){let Ze=await Yl(we,X,We.signal);if(Ze.type==="aborted")return;if(Ze.type==="error"){Oe(B,U,Ze.error,{flushSync:$e});return}else if(Ze.matches)we=Ze.matches,de=Rs(we,X);else{Oe(B,U,pn(404,{pathname:X}),{flushSync:$e});return}}N.set(B,Te);let Ke=T,ut=(await Ee("loader",k,We,[de],we,B))[de.route.id];if(ko(ut)&&(ut=await Qm(ut,We.signal,!0)||ut),N.get(B)===Te&&N.delete(B),!We.signal.aborted){if(se.has(B)){je(B,go(void 0));return}if(ii(ut))if(A>Ke){je(B,go(void 0));return}else{V.add(B),await tt(We,ut,!1,{preventScrollReset:ke});return}if(En(ut)){Oe(B,U,ut.error);return}Ue(!ko(ut),"Unhandled fetcher deferred data"),je(B,go(ut.data))}}async function tt(B,U,X,de){let{submission:we,fetcherSubmission:Re,preventScrollReset:$e,replace:ke}=de===void 0?{}:de;U.response.headers.has("X-Remix-Revalidate")&&(O=!0);let Pe=U.response.headers.get("Location");Ue(Pe,"Expected a Location header on the redirect Response"),Pe=r0(Pe,new URL(B.url),l);let Ce=wl(k.location,Pe,{_isRedirect:!0});if(n){let Ze=!1;if(U.response.headers.has("X-Remix-Reload-Document"))Ze=!0;else if(Gm.test(Pe)){const kt=e.history.createURL(Pe);Ze=kt.origin!==t.location.origin||Ya(kt.pathname,l)==null}if(Ze){ke?t.location.replace(Pe):t.location.assign(Pe);return}}$=null;let Te=ke===!0||U.response.headers.has("X-Remix-Replace")?Lt.Replace:Lt.Push,{formMethod:We,formAction:Ke,formEncType:Qt}=k.navigation;!we&&!Re&&We&&Ke&&Qt&&(we=u0(k.navigation));let ut=we||Re;if(fj.has(U.response.status)&&ut&&dr(ut.formMethod))await Q(Te,Ce,{submission:xt({},ut,{formAction:Pe}),preventScrollReset:$e||E,enableViewTransition:X?w:void 0});else{let Ze=Lf(Ce,we);await Q(Te,Ce,{overrideNavigation:Ze,fetcherSubmission:Re,preventScrollReset:$e||E,enableViewTransition:X?w:void 0})}}async function Ee(B,U,X,de,we,Re){let $e,ke={};try{$e=await Sj(c,B,U,X,de,we,Re,i,o)}catch(Pe){return de.forEach(Ce=>{ke[Ce.route.id]={type:it.error,error:Pe}}),ke}for(let[Pe,Ce]of Object.entries($e))if(Ej(Ce)){let Te=Ce.result;ke[Pe]={type:it.redirect,response:Cj(Te,X,Pe,we,l,d.v7_relativeSplatPath)}}else ke[Pe]=await wj(Ce);return ke}async function _e(B,U,X,de,we){let Re=B.matches,$e=Ee("loader",B,we,X,U,null),ke=Promise.all(de.map(async Te=>{if(Te.matches&&Te.match&&Te.controller){let Ke=(await Ee("loader",B,Bi(e.history,Te.path,Te.controller.signal),[Te.match],Te.matches,Te.key))[Te.match.route.id];return{[Te.key]:Ke}}else return Promise.resolve({[Te.key]:{type:it.error,error:pn(404,{pathname:Te.path})}})})),Pe=await $e,Ce=(await ke).reduce((Te,We)=>Object.assign(Te,We),{});return await Promise.all([Tj(U,Pe,we.signal,Re,B.loaderData),Dj(U,Ce,de)]),{loaderResults:Pe,fetcherResults:Ce}}function ct(){O=!0,D.push(...Wr()),H.forEach((B,U)=>{N.has(U)&&I.add(U),at(U)})}function je(B,U,X){X===void 0&&(X={}),k.fetchers.set(B,U),oe({fetchers:new Map(k.fetchers)},{flushSync:(X&&X.flushSync)===!0})}function Oe(B,U,X,de){de===void 0&&(de={});let we=ei(k.matches,U);$t(B),oe({errors:{[we.route.id]:X},fetchers:new Map(k.fetchers)},{flushSync:(de&&de.flushSync)===!0})}function ft(B){return d.v7_fetcherPersist&&(ae.set(B,(ae.get(B)||0)+1),se.has(B)&&se.delete(B)),k.fetchers.get(B)||pj}function $t(B){let U=k.fetchers.get(B);N.has(B)&&!(U&&U.state==="loading"&&_.has(B))&&at(B),H.delete(B),_.delete(B),V.delete(B),se.delete(B),I.delete(B),k.fetchers.delete(B)}function Ne(B){if(d.v7_fetcherPersist){let U=(ae.get(B)||0)-1;U<=0?(ae.delete(B),se.add(B)):ae.set(B,U)}else $t(B);oe({fetchers:new Map(k.fetchers)})}function at(B){let U=N.get(B);U&&(U.abort(),N.delete(B))}function Vn(B){for(let U of B){let X=ft(U),de=go(X.data);k.fetchers.set(U,de)}}function fo(){let B=[],U=!1;for(let X of V){let de=k.fetchers.get(X);Ue(de,"Expected fetcher: "+X),de.state==="loading"&&(V.delete(X),B.push(X),U=!0)}return Vn(B),U}function Me(B){let U=[];for(let[X,de]of _)if(de0}function qe(B,U){let X=k.blockers.get(B)||fs;return le.get(B)!==U&&le.set(B,U),X}function yt(B){k.blockers.delete(B),le.delete(B)}function Cn(B,U){let X=k.blockers.get(B)||fs;Ue(X.state==="unblocked"&&U.state==="blocked"||X.state==="blocked"&&U.state==="blocked"||X.state==="blocked"&&U.state==="proceeding"||X.state==="blocked"&&U.state==="unblocked"||X.state==="proceeding"&&U.state==="unblocked","Invalid blocker state transition: "+X.state+" -> "+U.state);let de=new Map(k.blockers);de.set(B,U),oe({blockers:de})}function nt(B){let{currentLocation:U,nextLocation:X,historyAction:de}=B;if(le.size===0)return;le.size>1&&La(!1,"A router only supports one blocker at a time");let we=Array.from(le.entries()),[Re,$e]=we[we.length-1],ke=k.blockers.get(Re);if(!(ke&&ke.state==="proceeding")&&$e({currentLocation:U,nextLocation:X,historyAction:de}))return Re}function fn(B){let U=pn(404,{pathname:B}),X=s||a,{matches:de,route:we}=l0(X);return Wr(),{notFoundMatches:de,route:we,error:U}}function Wr(B){let U=[];return Y.forEach((X,de)=>{(!B||B(de))&&(X.cancel(),U.push(de),Y.delete(de))}),U}function br(B,U,X){if(g=B,C=U,x=X||null,!p&&k.navigation===Af){p=!0;let de=ug(k.location,k.matches);de!=null&&oe({restoreScrollPosition:de})}return()=>{g=null,C=null,x=null}}function cg(B,U){return x&&x(B,U.map(de=>UL(de,k.loaderData)))||B.key}function K1(B,U){if(g&&C){let X=cg(B,U);g[X]=C()}}function ug(B,U){if(g){let X=cg(B,U),de=g[X];if(typeof de=="number")return de}return null}function Hl(B,U,X){if(u)if(B){if(Object.keys(B[0].params).length>0)return{active:!0,matches:Uc(U,X,l,!0)}}else return{active:!0,matches:Uc(U,X,l,!0)||[]};return{active:!1,matches:null}}async function Yl(B,U,X){if(!u)return{type:"success",matches:B};let de=B;for(;;){let we=s==null,Re=s||a,$e=i;try{await u({path:U,matches:de,patch:(Ce,Te)=>{X.aborted||n0(Ce,Te,Re,$e,o)}})}catch(Ce){return{type:"error",error:Ce,partialMatches:de}}finally{we&&!X.aborted&&(a=[...a])}if(X.aborted)return{type:"aborted"};let ke=Jo(Re,U,l);if(ke)return{type:"success",matches:ke};let Pe=Uc(Re,U,l,!0);if(!Pe||de.length===Pe.length&&de.every((Ce,Te)=>Ce.route.id===Pe[Te].route.id))return{type:"success",matches:null};de=Pe}}function G1(B){i={},s=Ru(B,o,void 0,i)}function Q1(B,U){let X=s==null;n0(B,U,s||a,i,o),X&&(a=[...a],oe({}))}return P={get basename(){return l},get future(){return d},get state(){return k},get routes(){return a},get window(){return t},initialize:ee,subscribe:ne,enableScrollRestoration:br,navigate:F,fetch:ge,revalidate:K,createHref:B=>e.history.createHref(B),encodeLocation:B=>e.history.encodeLocation(B),getFetcher:ft,deleteFetcher:Ne,dispose:q,getBlocker:qe,deleteBlocker:yt,patchRoutes:Q1,_internalFetchControllers:N,_internalActiveDeferreds:Y,_internalSetRoutes:G1},P}function gj(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function eh(e,t,n,r,o,i,a,s){let l,c;if(a){l=[];for(let d of t)if(l.push(d),d.route.id===a){c=d;break}}else l=t,c=t[t.length-1];let u=Km(o||".",Ym(l,i),Ya(e.pathname,n)||e.pathname,s==="path");if(o==null&&(u.search=e.search,u.hash=e.hash),(o==null||o===""||o===".")&&c){let d=Xm(u.search);if(c.route.index&&!d)u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index";else if(!c.route.index&&d){let f=new URLSearchParams(u.search),y=f.getAll("index");f.delete("index"),y.filter(x=>x).forEach(x=>f.append("index",x));let g=f.toString();u.search=g?"?"+g:""}}return r&&n!=="/"&&(u.pathname=u.pathname==="/"?n:Jr([n,u.pathname])),xi(u)}function Zv(e,t,n,r){if(!r||!gj(r))return{path:n};if(r.formMethod&&!Rj(r.formMethod))return{path:n,error:pn(405,{method:r.formMethod})};let o=()=>({path:n,error:pn(400,{type:"invalid-body"})}),i=r.formMethod||"get",a=e?i.toUpperCase():i.toLowerCase(),s=Qw(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!dr(a))return o();let f=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((y,g)=>{let[x,C]=g;return""+y+x+"="+C+` -`},""):String(r.body);return{path:n,submission:{formMethod:a,formAction:s,formEncType:r.formEncType,formData:void 0,json:void 0,text:f}}}else if(r.formEncType==="application/json"){if(!dr(a))return o();try{let f=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:a,formAction:s,formEncType:r.formEncType,formData:void 0,json:f,text:void 0}}}catch{return o()}}}Ue(typeof FormData=="function","FormData is not available in this environment");let l,c;if(r.formData)l=nh(r.formData),c=r.formData;else if(r.body instanceof FormData)l=nh(r.body),c=r.body;else if(r.body instanceof URLSearchParams)l=r.body,c=o0(l);else if(r.body==null)l=new URLSearchParams,c=new FormData;else try{l=new URLSearchParams(r.body),c=o0(l)}catch{return o()}let u={formMethod:a,formAction:s,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:c,json:void 0,text:void 0};if(dr(u.formMethod))return{path:n,submission:u};let d=Wo(n);return t&&d.search&&Xm(d.search)&&l.append("index",""),d.search="?"+l,{path:xi(d),submission:u}}function Jv(e,t,n){n===void 0&&(n=!1);let r=e.findIndex(o=>o.route.id===t);return r>=0?e.slice(0,n?r+1:r):e}function e0(e,t,n,r,o,i,a,s,l,c,u,d,f,y,g,x){let C=x?En(x[1])?x[1].error:x[1].data:void 0,p=e.createURL(t.location),m=e.createURL(o),v=n;i&&t.errors?v=Jv(n,Object.keys(t.errors)[0],!0):x&&En(x[1])&&(v=Jv(n,x[0]));let S=x?x[1].statusCode:void 0,P=a&&S&&S>=400,k=v.filter((E,$)=>{let{route:w}=E;if(w.lazy)return!0;if(w.loader==null)return!1;if(i)return th(w,t.loaderData,t.errors);if(yj(t.loaderData,t.matches[$],E)||l.some(j=>j===E.route.id))return!0;let R=t.matches[$],L=E;return t0(E,xt({currentUrl:p,currentParams:R.params,nextUrl:m,nextParams:L.params},r,{actionResult:C,actionStatus:S,defaultShouldRevalidate:P?!1:s||p.pathname+p.search===m.pathname+m.search||p.search!==m.search||Kw(R,L)}))}),M=[];return d.forEach((E,$)=>{if(i||!n.some(O=>O.route.id===E.routeId)||u.has($))return;let w=Jo(y,E.path,g);if(!w){M.push({key:$,routeId:E.routeId,path:E.path,matches:null,match:null,controller:null});return}let R=t.fetchers.get($),L=Rs(w,E.path),j=!1;f.has($)?j=!1:c.has($)?(c.delete($),j=!0):R&&R.state!=="idle"&&R.data===void 0?j=s:j=t0(L,xt({currentUrl:p,currentParams:t.matches[t.matches.length-1].params,nextUrl:m,nextParams:n[n.length-1].params},r,{actionResult:C,actionStatus:S,defaultShouldRevalidate:P?!1:s})),j&&M.push({key:$,routeId:E.routeId,path:E.path,matches:w,match:L,controller:new AbortController})}),[k,M]}function th(e,t,n){if(e.lazy)return!0;if(!e.loader)return!1;let r=t!=null&&t[e.id]!==void 0,o=n!=null&&n[e.id]!==void 0;return!r&&o?!1:typeof e.loader=="function"&&e.loader.hydrate===!0?!0:!r&&!o}function yj(e,t,n){let r=!t||n.route.id!==t.route.id,o=e[n.route.id]===void 0;return r||o}function Kw(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function t0(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}function n0(e,t,n,r,o){var i;let a;if(e){let c=r[e];Ue(c,"No route found to patch children into: routeId = "+e),c.children||(c.children=[]),a=c.children}else a=n;let s=t.filter(c=>!a.some(u=>Gw(c,u))),l=Ru(s,o,[e||"_","patch",String(((i=a)==null?void 0:i.length)||"0")],r);a.push(...l)}function Gw(e,t){return"id"in e&&"id"in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children.every((n,r)=>{var o;return(o=t.children)==null?void 0:o.some(i=>Gw(n,i))}):!1}async function vj(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let o=n[e.id];Ue(o,"No route found in manifest");let i={};for(let a in r){let l=o[a]!==void 0&&a!=="hasErrorBoundary";La(!l,'Route "'+o.id+'" has a static property "'+a+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+a+'" will be ignored.')),!l&&!VL.has(a)&&(i[a]=r[a])}Object.assign(o,i),Object.assign(o,xt({},t(o),{lazy:void 0}))}async function xj(e){let{matches:t}=e,n=t.filter(o=>o.shouldLoad);return(await Promise.all(n.map(o=>o.resolve()))).reduce((o,i,a)=>Object.assign(o,{[n[a].route.id]:i}),{})}async function Sj(e,t,n,r,o,i,a,s,l,c){let u=i.map(y=>y.route.lazy?vj(y.route,l,s):void 0),d=i.map((y,g)=>{let x=u[g],C=o.some(m=>m.route.id===y.route.id);return xt({},y,{shouldLoad:C,resolve:async m=>(m&&r.method==="GET"&&(y.route.lazy||y.route.loader)&&(C=!0),C?bj(t,r,y,x,m,c):Promise.resolve({type:it.data,result:void 0}))})}),f=await e({matches:d,request:r,params:i[0].params,fetcherKey:a,context:c});try{await Promise.all(u)}catch{}return f}async function bj(e,t,n,r,o,i){let a,s,l=c=>{let u,d=new Promise((g,x)=>u=x);s=()=>u(),t.signal.addEventListener("abort",s);let f=g=>typeof c!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+n.route.id+"]"))):c({request:t,params:n.params,context:i},...g!==void 0?[g]:[]),y=(async()=>{try{return{type:"data",result:await(o?o(x=>f(x)):f())}}catch(g){return{type:"error",result:g}}})();return Promise.race([y,d])};try{let c=n.route[e];if(r)if(c){let u,[d]=await Promise.all([l(c).catch(f=>{u=f}),r]);if(u!==void 0)throw u;a=d}else if(await r,c=n.route[e],c)a=await l(c);else if(e==="action"){let u=new URL(t.url),d=u.pathname+u.search;throw pn(405,{method:t.method,pathname:d,routeId:n.route.id})}else return{type:it.data,result:void 0};else if(c)a=await l(c);else{let u=new URL(t.url),d=u.pathname+u.search;throw pn(404,{pathname:d})}Ue(a.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(c){return{type:it.error,result:c}}finally{s&&t.signal.removeEventListener("abort",s)}return a}async function wj(e){let{result:t,type:n}=e;if(Xw(t)){let c;try{let u=t.headers.get("Content-Type");u&&/\bapplication\/json\b/.test(u)?t.body==null?c=null:c=await t.json():c=await t.text()}catch(u){return{type:it.error,error:u}}return n===it.error?{type:it.error,error:new Tu(t.status,t.statusText,c),statusCode:t.status,headers:t.headers}:{type:it.data,data:c,statusCode:t.status,headers:t.headers}}if(n===it.error){if(c0(t)){var r;if(t.data instanceof Error){var o;return{type:it.error,error:t.data,statusCode:(o=t.init)==null?void 0:o.status}}t=new Tu(((r=t.init)==null?void 0:r.status)||500,void 0,t.data)}return{type:it.error,error:t,statusCode:jd(t)?t.status:void 0}}if(Mj(t)){var i,a;return{type:it.deferred,deferredData:t,statusCode:(i=t.init)==null?void 0:i.status,headers:((a=t.init)==null?void 0:a.headers)&&new Headers(t.init.headers)}}if(c0(t)){var s,l;return{type:it.data,data:t.data,statusCode:(s=t.init)==null?void 0:s.status,headers:(l=t.init)!=null&&l.headers?new Headers(t.init.headers):void 0}}return{type:it.data,data:t}}function Cj(e,t,n,r,o,i){let a=e.headers.get("Location");if(Ue(a,"Redirects returned/thrown from loaders/actions must have a Location header"),!Gm.test(a)){let s=r.slice(0,r.findIndex(l=>l.route.id===n)+1);a=eh(new URL(t.url),s,o,!0,a,i),e.headers.set("Location",a)}return e}function r0(e,t,n){if(Gm.test(e)){let r=e,o=r.startsWith("//")?new URL(t.protocol+r):new URL(r),i=Ya(o.pathname,n)!=null;if(o.origin===t.origin&&i)return o.pathname+o.search+o.hash}return e}function Bi(e,t,n,r){let o=e.createURL(Qw(t)).toString(),i={signal:n};if(r&&dr(r.formMethod)){let{formMethod:a,formEncType:s}=r;i.method=a.toUpperCase(),s==="application/json"?(i.headers=new Headers({"Content-Type":s}),i.body=JSON.stringify(r.json)):s==="text/plain"?i.body=r.text:s==="application/x-www-form-urlencoded"&&r.formData?i.body=nh(r.formData):i.body=r.formData}return new Request(o,i)}function nh(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function o0(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function kj(e,t,n,r,o){let i={},a=null,s,l=!1,c={},u=n&&En(n[1])?n[1].error:void 0;return e.forEach(d=>{if(!(d.route.id in t))return;let f=d.route.id,y=t[f];if(Ue(!ii(y),"Cannot handle redirect results in processLoaderData"),En(y)){let g=y.error;u!==void 0&&(g=u,u=void 0),a=a||{};{let x=ei(e,f);a[x.route.id]==null&&(a[x.route.id]=g)}i[f]=void 0,l||(l=!0,s=jd(y.error)?y.error.status:500),y.headers&&(c[f]=y.headers)}else ko(y)?(r.set(f,y.deferredData),i[f]=y.deferredData.data,y.statusCode!=null&&y.statusCode!==200&&!l&&(s=y.statusCode),y.headers&&(c[f]=y.headers)):(i[f]=y.data,y.statusCode&&y.statusCode!==200&&!l&&(s=y.statusCode),y.headers&&(c[f]=y.headers))}),u!==void 0&&n&&(a={[n[0]]:u},i[n[0]]=void 0),{loaderData:i,errors:a,statusCode:s||200,loaderHeaders:c}}function i0(e,t,n,r,o,i,a){let{loaderData:s,errors:l}=kj(t,n,r,a);return o.forEach(c=>{let{key:u,match:d,controller:f}=c,y=i[u];if(Ue(y,"Did not find corresponding fetcher result"),!(f&&f.signal.aborted))if(En(y)){let g=ei(e.matches,d==null?void 0:d.route.id);l&&l[g.route.id]||(l=xt({},l,{[g.route.id]:y.error})),e.fetchers.delete(u)}else if(ii(y))Ue(!1,"Unhandled fetcher revalidation redirect");else if(ko(y))Ue(!1,"Unhandled fetcher deferred data");else{let g=go(y.data);e.fetchers.set(u,g)}}),{loaderData:s,errors:l}}function a0(e,t,n,r){let o=xt({},t);for(let i of n){let a=i.route.id;if(t.hasOwnProperty(a)?t[a]!==void 0&&(o[a]=t[a]):e[a]!==void 0&&i.route.loader&&(o[a]=e[a]),r&&r.hasOwnProperty(a))break}return o}function s0(e){return e?En(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function ei(e,t){return(t?e.slice(0,e.findIndex(r=>r.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function l0(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function pn(e,t){let{pathname:n,routeId:r,method:o,type:i,message:a}=t===void 0?{}:t,s="Unknown Server Error",l="Unknown @remix-run/router error";return e===400?(s="Bad Request",o&&n&&r?l="You made a "+o+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":i==="defer-action"?l="defer() is not supported in actions":i==="invalid-body"&&(l="Unable to encode submission body")):e===403?(s="Forbidden",l='Route "'+r+'" does not match URL "'+n+'"'):e===404?(s="Not Found",l='No route matches URL "'+n+'"'):e===405&&(s="Method Not Allowed",o&&n&&r?l="You made a "+o.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":o&&(l='Invalid request method "'+o.toUpperCase()+'"')),new Tu(e||500,s,new Error(l),!0)}function wc(e){let t=Object.entries(e);for(let n=t.length-1;n>=0;n--){let[r,o]=t[n];if(ii(o))return{key:r,result:o}}}function Qw(e){let t=typeof e=="string"?Wo(e):e;return xi(xt({},t,{hash:""}))}function Pj(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function Ej(e){return Xw(e.result)&&dj.has(e.result.status)}function ko(e){return e.type===it.deferred}function En(e){return e.type===it.error}function ii(e){return(e&&e.type)===it.redirect}function c0(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function Mj(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function Xw(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function Rj(e){return uj.has(e.toLowerCase())}function dr(e){return lj.has(e.toLowerCase())}async function Tj(e,t,n,r,o){let i=Object.entries(t);for(let a=0;a(f==null?void 0:f.route.id)===s);if(!c)continue;let u=r.find(f=>f.route.id===c.route.id),d=u!=null&&!Kw(u,c)&&(o&&o[c.route.id])!==void 0;ko(l)&&d&&await Qm(l,n,!1).then(f=>{f&&(t[s]=f)})}}async function Dj(e,t,n){for(let r=0;r(c==null?void 0:c.route.id)===i)&&ko(s)&&(Ue(a,"Expected an AbortController for revalidating fetcher deferred result"),await Qm(s,a.signal,!0).then(c=>{c&&(t[o]=c)}))}}async function Qm(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:it.data,data:e.deferredData.unwrappedData}}catch(o){return{type:it.error,error:o}}return{type:it.data,data:e.deferredData.data}}}function Xm(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Rs(e,t){let n=typeof t=="string"?Wo(t).search:t.search;if(e[e.length-1].route.index&&Xm(n||""))return e[e.length-1];let r=Uw(e);return r[r.length-1]}function u0(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:i,json:a}=e;if(!(!t||!n||!r)){if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o};if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:i,json:void 0,text:void 0};if(a!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:a,text:void 0}}}function Lf(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function Ij(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function ps(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function Oj(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function go(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function $j(e,t){try{let n=e.sessionStorage.getItem(Yw);if(n){let r=JSON.parse(n);for(let[o,i]of Object.entries(r||{}))i&&Array.isArray(i)&&t.set(o,new Set(i||[]))}}catch{}}function Aj(e,t){if(t.size>0){let n={};for(let[r,o]of t)n[r]=[...o];try{e.sessionStorage.setItem(Yw,JSON.stringify(n))}catch(r){La(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** - * React Router v6.27.0 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function Du(){return Du=Object.assign?Object.assign.bind():function(e){for(var t=1;t{s.current=!0}),h.useCallback(function(c,u){if(u===void 0&&(u={}),!s.current)return;if(typeof c=="number"){r.go(c);return}let d=Km(c,JSON.parse(a),i,u.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:Jr([t,d.pathname])),(u.replace?r.replace:r.push)(d,u.state,u)},[t,r,a,i,e])}const Nj=h.createContext(null);function Fj(e){let t=h.useContext(co).outlet;return t&&h.createElement(Nj.Provider,{value:e},t)}function e1(){let{matches:e}=h.useContext(co),t=e[e.length-1];return t?t.params:{}}function t1(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=h.useContext(Ei),{matches:o}=h.useContext(co),{pathname:i}=Fd(),a=JSON.stringify(Ym(o,r.v7_relativeSplatPath));return h.useMemo(()=>Km(e,JSON.parse(a),i,n==="path"),[e,a,i,n])}function Bj(e,t,n,r){zl()||Ue(!1);let{navigator:o}=h.useContext(Ei),{matches:i}=h.useContext(co),a=i[i.length-1],s=a?a.params:{};a&&a.pathname;let l=a?a.pathnameBase:"/";a&&a.route;let c=Fd(),u;u=c;let d=u.pathname||"/",f=d;if(l!=="/"){let x=l.replace(/^\//,"").split("/");f="/"+d.replace(/^\//,"").split("/").slice(x.length).join("/")}let y=Jo(e,{pathname:f});return Uj(y&&y.map(x=>Object.assign({},x,{params:Object.assign({},s,x.params),pathname:Jr([l,o.encodeLocation?o.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?l:Jr([l,o.encodeLocation?o.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),i,n,r)}function _j(){let e=Gj(),t=jd(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return h.createElement(h.Fragment,null,h.createElement("h2",null,"Unexpected Application Error!"),h.createElement("h3",{style:{fontStyle:"italic"}},t),n?h.createElement("pre",{style:o},n):null,null)}const zj=h.createElement(_j,null);class Vj extends h.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?h.createElement(co.Provider,{value:this.props.routeContext},h.createElement(Zw.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Wj(e){let{routeContext:t,match:n,children:r}=e,o=h.useContext(Nd);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),h.createElement(co.Provider,{value:t},r)}function Uj(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,s=(o=n)==null?void 0:o.errors;if(s!=null){let u=a.findIndex(d=>d.route.id&&(s==null?void 0:s[d.route.id])!==void 0);u>=0||Ue(!1),a=a.slice(0,Math.min(a.length,u+1))}let l=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let u=0;u=0?a=a.slice(0,c+1):a=[a[0]];break}}}return a.reduceRight((u,d,f)=>{let y,g=!1,x=null,C=null;n&&(y=s&&d.route.id?s[d.route.id]:void 0,x=d.route.errorElement||zj,l&&(c<0&&f===0?(Xj("route-fallback"),g=!0,C=null):c===f&&(g=!0,C=d.route.hydrateFallbackElement||null)));let p=t.concat(a.slice(0,f+1)),m=()=>{let v;return y?v=x:g?v=C:d.route.Component?v=h.createElement(d.route.Component,null):d.route.element?v=d.route.element:v=u,h.createElement(Wj,{match:d,routeContext:{outlet:u,matches:p,isDataRoute:n!=null},children:v})};return n&&(d.route.ErrorBoundary||d.route.errorElement||f===0)?h.createElement(Vj,{location:n.location,revalidation:n.revalidation,component:x,error:y,children:m(),routeContext:{outlet:null,matches:p,isDataRoute:!0}}):m()},null)}var n1=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(n1||{}),Iu=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Iu||{});function Hj(e){let t=h.useContext(Nd);return t||Ue(!1),t}function Yj(e){let t=h.useContext(qw);return t||Ue(!1),t}function Kj(e){let t=h.useContext(co);return t||Ue(!1),t}function r1(e){let t=Kj(),n=t.matches[t.matches.length-1];return n.route.id||Ue(!1),n.route.id}function Gj(){var e;let t=h.useContext(Zw),n=Yj(Iu.UseRouteError),r=r1(Iu.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function Qj(){let{router:e}=Hj(n1.UseNavigateStable),t=r1(Iu.UseNavigateStable),n=h.useRef(!1);return Jw(()=>{n.current=!0}),h.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,Du({fromRouteId:t},i)))},[e,t])}const d0={};function Xj(e,t,n){d0[e]||(d0[e]=!0)}function qj(e){return Fj(e.context)}function Zj(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Lt.Pop,navigator:i,static:a=!1,future:s}=e;zl()&&Ue(!1);let l=t.replace(/^\/*/,"/"),c=h.useMemo(()=>({basename:l,navigator:i,static:a,future:Du({v7_relativeSplatPath:!1},s)}),[l,s,i,a]);typeof r=="string"&&(r=Wo(r));let{pathname:u="/",search:d="",hash:f="",state:y=null,key:g="default"}=r,x=h.useMemo(()=>{let C=Ya(u,l);return C==null?null:{location:{pathname:C,search:d,hash:f,state:y,key:g},navigationType:o}},[l,u,d,f,y,g,o]);return x==null?null:h.createElement(Ei.Provider,{value:c},h.createElement(qm.Provider,{children:n,value:x}))}new Promise(()=>{});function Jj(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:h.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:h.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:h.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** - * React Router DOM v6.27.0 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function Cl(){return Cl=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function tN(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function nN(e,t){return e.button===0&&(!t||t==="_self")&&!tN(e)}const rN=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],oN="6";try{window.__reactRouterVersion=oN}catch{}function iN(e,t){return mj({basename:t==null?void 0:t.basename,future:Cl({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:BL({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||aN(),routes:e,mapRouteProperties:Jj,dataStrategy:t==null?void 0:t.dataStrategy,patchRoutesOnNavigation:t==null?void 0:t.patchRoutesOnNavigation,window:t==null?void 0:t.window}).initialize()}function aN(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=Cl({},t,{errors:sN(t.errors)})),t}function sN(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,o]of t)if(o&&o.__type==="RouteErrorResponse")n[r]=new Tu(o.status,o.statusText,o.data,o.internal===!0);else if(o&&o.__type==="Error"){if(o.__subType){let i=window[o.__subType];if(typeof i=="function")try{let a=new i(o.message);a.stack="",n[r]=a}catch{}}if(n[r]==null){let i=new Error(o.message);i.stack="",n[r]=i}}else n[r]=o;return n}const lN=h.createContext({isTransitioning:!1}),cN=h.createContext(new Map),uN="startTransition",f0=Ys[uN],dN="flushSync",p0=kP[dN];function fN(e){f0?f0(e):e()}function hs(e){p0?p0(e):e()}class pN{constructor(){this.status="pending",this.promise=new Promise((t,n)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function hN(e){let{fallbackElement:t,router:n,future:r}=e,[o,i]=h.useState(n.state),[a,s]=h.useState(),[l,c]=h.useState({isTransitioning:!1}),[u,d]=h.useState(),[f,y]=h.useState(),[g,x]=h.useState(),C=h.useRef(new Map),{v7_startTransition:p}=r||{},m=h.useCallback(E=>{p?fN(E):E()},[p]),v=h.useCallback((E,$)=>{let{deletedFetchers:w,flushSync:R,viewTransitionOpts:L}=$;w.forEach(O=>C.current.delete(O)),E.fetchers.forEach((O,D)=>{O.data!==void 0&&C.current.set(D,O.data)});let j=n.window==null||n.window.document==null||typeof n.window.document.startViewTransition!="function";if(!L||j){R?hs(()=>i(E)):m(()=>i(E));return}if(R){hs(()=>{f&&(u&&u.resolve(),f.skipTransition()),c({isTransitioning:!0,flushSync:!0,currentLocation:L.currentLocation,nextLocation:L.nextLocation})});let O=n.window.document.startViewTransition(()=>{hs(()=>i(E))});O.finished.finally(()=>{hs(()=>{d(void 0),y(void 0),s(void 0),c({isTransitioning:!1})})}),hs(()=>y(O));return}f?(u&&u.resolve(),f.skipTransition(),x({state:E,currentLocation:L.currentLocation,nextLocation:L.nextLocation})):(s(E),c({isTransitioning:!0,flushSync:!1,currentLocation:L.currentLocation,nextLocation:L.nextLocation}))},[n.window,f,u,C,m]);h.useLayoutEffect(()=>n.subscribe(v),[n,v]),h.useEffect(()=>{l.isTransitioning&&!l.flushSync&&d(new pN)},[l]),h.useEffect(()=>{if(u&&a&&n.window){let E=a,$=u.promise,w=n.window.document.startViewTransition(async()=>{m(()=>i(E)),await $});w.finished.finally(()=>{d(void 0),y(void 0),s(void 0),c({isTransitioning:!1})}),y(w)}},[m,a,u,n.window]),h.useEffect(()=>{u&&a&&o.location.key===a.location.key&&u.resolve()},[u,f,o.location,a]),h.useEffect(()=>{!l.isTransitioning&&g&&(s(g.state),c({isTransitioning:!0,flushSync:!1,currentLocation:g.currentLocation,nextLocation:g.nextLocation}),x(void 0))},[l.isTransitioning,g]),h.useEffect(()=>{},[]);let S=h.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:E=>n.navigate(E),push:(E,$,w)=>n.navigate(E,{state:$,preventScrollReset:w==null?void 0:w.preventScrollReset}),replace:(E,$,w)=>n.navigate(E,{replace:!0,state:$,preventScrollReset:w==null?void 0:w.preventScrollReset})}),[n]),P=n.basename||"/",k=h.useMemo(()=>({router:n,navigator:S,static:!1,basename:P}),[n,S,P]),M=h.useMemo(()=>({v7_relativeSplatPath:n.future.v7_relativeSplatPath}),[n.future.v7_relativeSplatPath]);return h.createElement(h.Fragment,null,h.createElement(Nd.Provider,{value:k},h.createElement(qw.Provider,{value:o},h.createElement(cN.Provider,{value:C.current},h.createElement(lN.Provider,{value:l},h.createElement(Zj,{basename:P,location:o.location,navigationType:o.historyAction,navigator:S,future:M},o.initialized||n.future.v7_partialHydration?h.createElement(mN,{routes:n.routes,future:n.future,state:o}):t))))),null)}const mN=h.memo(gN);function gN(e){let{routes:t,future:n,state:r}=e;return Bj(t,void 0,r,n)}const yN=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",vN=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Un=h.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:a,state:s,target:l,to:c,preventScrollReset:u,viewTransition:d}=t,f=eN(t,rN),{basename:y}=h.useContext(Ei),g,x=!1;if(typeof c=="string"&&vN.test(c)&&(g=c,yN))try{let v=new URL(window.location.href),S=c.startsWith("//")?new URL(v.protocol+c):new URL(c),P=Ya(S.pathname,y);S.origin===v.origin&&P!=null?c=P+S.search+S.hash:x=!0}catch{}let C=Lj(c,{relative:o}),p=xN(c,{replace:a,state:s,target:l,preventScrollReset:u,relative:o,viewTransition:d});function m(v){r&&r(v),v.defaultPrevented||p(v)}return h.createElement("a",Cl({},f,{href:g||C,onClick:x||i?r:m,ref:n,target:l}))});var h0;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(h0||(h0={}));var m0;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(m0||(m0={}));function xN(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:a,viewTransition:s}=t===void 0?{}:t,l=zn(),c=Fd(),u=t1(e,{relative:a});return h.useCallback(d=>{if(nN(d,n)){d.preventDefault();let f=r!==void 0?r:xi(c)===xi(u);l(e,{replace:f,state:o,preventScrollReset:i,relative:a,viewTransition:s})}},[c,l,u,r,o,n,e,i,a,s])}var jf={exports:{}},g0;function o1(){return g0||(g0=1,function(e,t){(function(n,r){e.exports=r()})(bi,function(){var n=1e3,r=6e4,o=36e5,i="millisecond",a="second",s="minute",l="hour",c="day",u="week",d="month",f="quarter",y="year",g="date",x="Invalid Date",C=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,p=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(O){var D=["th","st","nd","rd"],I=O%100;return"["+O+(D[(I-20)%10]||D[I]||D[0])+"]"}},v=function(O,D,I){var N=String(O);return!N||N.length>=D?O:""+Array(D+1-N.length).join(I)+O},S={s:v,z:function(O){var D=-O.utcOffset(),I=Math.abs(D),N=Math.floor(I/60),T=I%60;return(D<=0?"+":"-")+v(N,2,"0")+":"+v(T,2,"0")},m:function O(D,I){if(D.date()1)return O(_[0])}else{var V=D.name;k[V]=D,T=V}return!N&&T&&(P=T),T||!N&&P},w=function(O,D){if(E(O))return O.clone();var I=typeof D=="object"?D:{};return I.date=O,I.args=arguments,new L(I)},R=S;R.l=$,R.i=E,R.w=function(O,D){return w(O,{locale:D.$L,utc:D.$u,x:D.$x,$offset:D.$offset})};var L=function(){function O(I){this.$L=$(I.locale,null,!0),this.parse(I),this.$x=this.$x||I.x||{},this[M]=!0}var D=O.prototype;return D.parse=function(I){this.$d=function(N){var T=N.date,A=N.utc;if(T===null)return new Date(NaN);if(R.u(T))return new Date;if(T instanceof Date)return new Date(T);if(typeof T=="string"&&!/Z$/i.test(T)){var _=T.match(C);if(_){var V=_[2]-1||0,H=(_[7]||"0").substring(0,3);return A?new Date(Date.UTC(_[1],V,_[3]||1,_[4]||0,_[5]||0,_[6]||0,H)):new Date(_[1],V,_[3]||1,_[4]||0,_[5]||0,_[6]||0,H)}}return new Date(T)}(I),this.init()},D.init=function(){var I=this.$d;this.$y=I.getFullYear(),this.$M=I.getMonth(),this.$D=I.getDate(),this.$W=I.getDay(),this.$H=I.getHours(),this.$m=I.getMinutes(),this.$s=I.getSeconds(),this.$ms=I.getMilliseconds()},D.$utils=function(){return R},D.isValid=function(){return this.$d.toString()!==x},D.isSame=function(I,N){var T=w(I);return this.startOf(N)<=T&&T<=this.endOf(N)},D.isAfter=function(I,N){return w(I)25){var u=a(this).startOf(r).add(1,r).date(c),d=a(this).endOf(n);if(u.isBefore(d))return 1}var f=a(this).startOf(r).date(c).startOf(n).subtract(1,"millisecond"),y=this.diff(f,n,!0);return y<0?a(this).startOf("week").week():Math.ceil(y)},s.weeks=function(l){return l===void 0&&(l=null),this.week(l)}}})})(i1);var bN=i1.exports;const wN=so(bN);var a1={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(bi,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d/,i=/\d\d/,a=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,l={},c=function(C){return(C=+C)+(C>68?1900:2e3)},u=function(C){return function(p){this[C]=+p}},d=[/[+-]\d\d:?(\d\d)?|Z/,function(C){(this.zone||(this.zone={})).offset=function(p){if(!p||p==="Z")return 0;var m=p.match(/([+-]|\d\d)/g),v=60*m[1]+(+m[2]||0);return v===0?0:m[0]==="+"?-v:v}(C)}],f=function(C){var p=l[C];return p&&(p.indexOf?p:p.s.concat(p.f))},y=function(C,p){var m,v=l.meridiem;if(v){for(var S=1;S<=24;S+=1)if(C.indexOf(v(S,0,p))>-1){m=S>12;break}}else m=C===(p?"pm":"PM");return m},g={A:[s,function(C){this.afternoon=y(C,!1)}],a:[s,function(C){this.afternoon=y(C,!0)}],Q:[o,function(C){this.month=3*(C-1)+1}],S:[o,function(C){this.milliseconds=100*+C}],SS:[i,function(C){this.milliseconds=10*+C}],SSS:[/\d{3}/,function(C){this.milliseconds=+C}],s:[a,u("seconds")],ss:[a,u("seconds")],m:[a,u("minutes")],mm:[a,u("minutes")],H:[a,u("hours")],h:[a,u("hours")],HH:[a,u("hours")],hh:[a,u("hours")],D:[a,u("day")],DD:[i,u("day")],Do:[s,function(C){var p=l.ordinal,m=C.match(/\d+/);if(this.day=m[0],p)for(var v=1;v<=31;v+=1)p(v).replace(/\[|\]/g,"")===C&&(this.day=v)}],w:[a,u("week")],ww:[i,u("week")],M:[a,u("month")],MM:[i,u("month")],MMM:[s,function(C){var p=f("months"),m=(f("monthsShort")||p.map(function(v){return v.slice(0,3)})).indexOf(C)+1;if(m<1)throw new Error;this.month=m%12||m}],MMMM:[s,function(C){var p=f("months").indexOf(C)+1;if(p<1)throw new Error;this.month=p%12||p}],Y:[/[+-]?\d+/,u("year")],YY:[i,function(C){this.year=c(C)}],YYYY:[/\d{4}/,u("year")],Z:d,ZZ:d};function x(C){var p,m;p=C,m=l&&l.formats;for(var v=(C=p.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(w,R,L){var j=L&&L.toUpperCase();return R||m[L]||n[L]||m[j].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(O,D,I){return D||I.slice(1)})})).match(r),S=v.length,P=0;P-1)return new Date((T==="X"?1e3:1)*N);var V=x(T)(N),H=V.year,ae=V.month,se=V.day,Y=V.hours,le=V.minutes,ie=V.seconds,ee=V.milliseconds,q=V.zone,ne=V.week,oe=new Date,W=se||(H||ae?1:oe.getDate()),F=H||oe.getFullYear(),K=0;H&&!ae||(K=ae>0?ae-1:oe.getMonth());var Q,te=Y||0,ue=le||0,J=ie||0,fe=ee||0;return q?new Date(Date.UTC(F,K,W,te,ue,J,fe+60*q.offset*1e3)):A?new Date(Date.UTC(F,K,W,te,ue,J,fe)):(Q=new Date(F,K,W,te,ue,J,fe),ne&&(Q=_(Q).week(ne).toDate()),Q)}catch{return new Date("")}}(k,$,M,m),this.init(),j&&j!==!0&&(this.$L=this.locale(j).$L),L&&k!=this.format($)&&(this.$d=new Date("")),l={}}else if($ instanceof Array)for(var O=$.length,D=1;D<=O;D+=1){E[1]=$[D-1];var I=m.apply(this,E);if(I.isValid()){this.$d=I.$d,this.$L=I.$L,this.init();break}D===O&&(this.$d=new Date(""))}else S.call(this,P)}}})})(a1);var CN=a1.exports;const kN=so(CN);var s1={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(bi,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(r,o,i){var a=o.prototype,s=a.format;i.en.formats=n,a.format=function(l){l===void 0&&(l="YYYY-MM-DDTHH:mm:ssZ");var c=this.$locale().formats,u=function(d,f){return d.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(y,g,x){var C=x&&x.toUpperCase();return g||f[x]||n[x]||f[C].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(p,m,v){return m||v.slice(1)})})}(l,c===void 0?{}:c);return s.call(this,u)}}})})(s1);var PN=s1.exports;const EN=so(PN);var l1={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(bi,function(){return function(n,r,o){r.prototype.isBetween=function(i,a,s,l){var c=o(i),u=o(a),d=(l=l||"()")[0]==="(",f=l[1]===")";return(d?this.isAfter(c,s):!this.isBefore(c,s))&&(f?this.isBefore(u,s):!this.isAfter(u,s))||(d?this.isBefore(c,s):!this.isAfter(c,s))&&(f?this.isAfter(u,s):!this.isBefore(u,s))}}})})(l1);var MN=l1.exports;const RN=so(MN);var c1={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(bi,function(){return function(n,r){var o=r.prototype,i=o.format;o.format=function(a){var s=this,l=this.$locale();if(!this.isValid())return i.bind(this)(a);var c=this.$utils(),u=(a||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(d){switch(d){case"Q":return Math.ceil((s.$M+1)/3);case"Do":return l.ordinal(s.$D);case"gggg":return s.weekYear();case"GGGG":return s.isoWeekYear();case"wo":return l.ordinal(s.week(),"W");case"w":case"ww":return c.s(s.week(),d==="w"?1:2,"0");case"W":case"WW":return c.s(s.isoWeek(),d==="W"?1:2,"0");case"k":case"kk":return c.s(String(s.$H===0?24:s.$H),d==="k"?1:2,"0");case"X":return Math.floor(s.$d.getTime()/1e3);case"x":return s.$d.getTime();case"z":return"["+s.offsetName()+"]";case"zzz":return"["+s.offsetName("long")+"]";default:return d}});return i.bind(this)(u)}}})})(c1);var TN=c1.exports;const DN=so(TN);Wt.extend(EN);Wt.extend(wN);Wt.extend(RN);Wt.extend(DN);const IN={YY:"year",YYYY:{sectionType:"year",contentType:"digit",maxLength:4},M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMM:{sectionType:"month",contentType:"letter"},MMMM:{sectionType:"month",contentType:"letter"},D:{sectionType:"day",contentType:"digit",maxLength:2},DD:"day",Do:{sectionType:"day",contentType:"digit-with-letter"},d:{sectionType:"weekDay",contentType:"digit",maxLength:2},dd:{sectionType:"weekDay",contentType:"letter"},ddd:{sectionType:"weekDay",contentType:"letter"},dddd:{sectionType:"weekDay",contentType:"letter"},A:"meridiem",a:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},ON={year:"YYYY",month:"MMMM",monthShort:"MMM",dayOfMonth:"D",dayOfMonthFull:"Do",weekday:"dddd",weekdayShort:"dd",hours24h:"HH",hours12h:"hh",meridiem:"A",minutes:"mm",seconds:"ss",fullDate:"ll",keyboardDate:"L",shortDate:"MMM D",normalDate:"D MMMM",normalDateWithWeekday:"ddd, MMM D",fullTime:"LT",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",keyboardDateTime:"L LT",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"},Nf=["Missing UTC plugin","To be able to use UTC or timezones, you have to enable the `utc` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-utc"].join(` -`),y0=["Missing timezone plugin","To be able to use timezones, you have to enable both the `utc` and the `timezone` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-timezone"].join(` -`),$N=(e,t)=>t?(...n)=>e(...n).locale(t):e;class AN{constructor({locale:t,formats:n}={}){this.isMUIAdapter=!0,this.isTimezoneCompatible=!0,this.lib="dayjs",this.dayjs=void 0,this.locale=void 0,this.formats=void 0,this.escapedCharacters={start:"[",end:"]"},this.formatTokenMap=IN,this.setLocaleToValue=r=>{const o=this.getCurrentLocaleCode();return o===r.locale()?r:r.locale(o)},this.hasUTCPlugin=()=>typeof Wt.utc<"u",this.hasTimezonePlugin=()=>typeof Wt.tz<"u",this.isSame=(r,o,i)=>{const a=this.setTimezone(o,this.getTimezone(r));return r.format(i)===a.format(i)},this.cleanTimezone=r=>{switch(r){case"default":return;case"system":return Wt.tz.guess();default:return r}},this.createSystemDate=r=>{if(this.hasUTCPlugin()&&this.hasTimezonePlugin()){const o=Wt.tz.guess();return o!=="UTC"?Wt.tz(r,o):Wt(r)}return Wt(r)},this.createUTCDate=r=>{if(!this.hasUTCPlugin())throw new Error(Nf);return Wt.utc(r)},this.createTZDate=(r,o)=>{if(!this.hasUTCPlugin())throw new Error(Nf);if(!this.hasTimezonePlugin())throw new Error(y0);const i=r!==void 0&&!r.endsWith("Z");return Wt(r).tz(this.cleanTimezone(o),i)},this.getLocaleFormats=()=>{const r=Wt.Ls,o=this.locale||"en";let i=r[o];return i===void 0&&(i=r.en),i.formats},this.adjustOffset=r=>{if(!this.hasTimezonePlugin())return r;const o=this.getTimezone(r);if(o!=="UTC"){const i=r.tz(this.cleanTimezone(o),!0);if(i.$offset===(r.$offset??0))return r;r.$offset=i.$offset}return r},this.date=(r,o="default")=>{if(r===null)return null;let i;return o==="UTC"?i=this.createUTCDate(r):o==="system"||o==="default"&&!this.hasTimezonePlugin()?i=this.createSystemDate(r):i=this.createTZDate(r,o),this.locale===void 0?i:i.locale(this.locale)},this.getInvalidDate=()=>Wt(new Date("Invalid date")),this.getTimezone=r=>{var o;if(this.hasTimezonePlugin()){const i=(o=r.$x)==null?void 0:o.$timezone;if(i)return i}return this.hasUTCPlugin()&&r.isUTC()?"UTC":"system"},this.setTimezone=(r,o)=>{if(this.getTimezone(r)===o)return r;if(o==="UTC"){if(!this.hasUTCPlugin())throw new Error(Nf);return r.utc()}if(o==="system")return r.local();if(!this.hasTimezonePlugin()){if(o==="default")return r;throw new Error(y0)}return Wt.tz(r,this.cleanTimezone(o))},this.toJsDate=r=>r.toDate(),this.parse=(r,o)=>r===""?null:this.dayjs(r,o,this.locale,!0),this.getCurrentLocaleCode=()=>this.locale||"en",this.is12HourCycleInCurrentLocale=()=>/A|a/.test(this.getLocaleFormats().LT||""),this.expandFormat=r=>{const o=this.getLocaleFormats(),i=a=>a.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(s,l,c)=>l||c.slice(1));return r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(a,s,l)=>{const c=l&&l.toUpperCase();return s||o[l]||i(o[c])})},this.isValid=r=>r==null?!1:r.isValid(),this.format=(r,o)=>this.formatByString(r,this.formats[o]),this.formatByString=(r,o)=>this.dayjs(r).format(o),this.formatNumber=r=>r,this.isEqual=(r,o)=>r===null&&o===null?!0:r===null||o===null?!1:r.toDate().getTime()===o.toDate().getTime(),this.isSameYear=(r,o)=>this.isSame(r,o,"YYYY"),this.isSameMonth=(r,o)=>this.isSame(r,o,"YYYY-MM"),this.isSameDay=(r,o)=>this.isSame(r,o,"YYYY-MM-DD"),this.isSameHour=(r,o)=>r.isSame(o,"hour"),this.isAfter=(r,o)=>r>o,this.isAfterYear=(r,o)=>this.hasUTCPlugin()?!this.isSameYear(r,o)&&r.utc()>o.utc():r.isAfter(o,"year"),this.isAfterDay=(r,o)=>this.hasUTCPlugin()?!this.isSameDay(r,o)&&r.utc()>o.utc():r.isAfter(o,"day"),this.isBefore=(r,o)=>rthis.hasUTCPlugin()?!this.isSameYear(r,o)&&r.utc()this.hasUTCPlugin()?!this.isSameDay(r,o)&&r.utc()r>=o&&r<=i,this.startOfYear=r=>this.adjustOffset(r.startOf("year")),this.startOfMonth=r=>this.adjustOffset(r.startOf("month")),this.startOfWeek=r=>this.adjustOffset(this.setLocaleToValue(r).startOf("week")),this.startOfDay=r=>this.adjustOffset(r.startOf("day")),this.endOfYear=r=>this.adjustOffset(r.endOf("year")),this.endOfMonth=r=>this.adjustOffset(r.endOf("month")),this.endOfWeek=r=>this.adjustOffset(this.setLocaleToValue(r).endOf("week")),this.endOfDay=r=>this.adjustOffset(r.endOf("day")),this.addYears=(r,o)=>this.adjustOffset(o<0?r.subtract(Math.abs(o),"year"):r.add(o,"year")),this.addMonths=(r,o)=>this.adjustOffset(o<0?r.subtract(Math.abs(o),"month"):r.add(o,"month")),this.addWeeks=(r,o)=>this.adjustOffset(o<0?r.subtract(Math.abs(o),"week"):r.add(o,"week")),this.addDays=(r,o)=>this.adjustOffset(o<0?r.subtract(Math.abs(o),"day"):r.add(o,"day")),this.addHours=(r,o)=>this.adjustOffset(o<0?r.subtract(Math.abs(o),"hour"):r.add(o,"hour")),this.addMinutes=(r,o)=>this.adjustOffset(o<0?r.subtract(Math.abs(o),"minute"):r.add(o,"minute")),this.addSeconds=(r,o)=>this.adjustOffset(o<0?r.subtract(Math.abs(o),"second"):r.add(o,"second")),this.getYear=r=>r.year(),this.getMonth=r=>r.month(),this.getDate=r=>r.date(),this.getHours=r=>r.hour(),this.getMinutes=r=>r.minute(),this.getSeconds=r=>r.second(),this.getMilliseconds=r=>r.millisecond(),this.setYear=(r,o)=>this.adjustOffset(r.set("year",o)),this.setMonth=(r,o)=>this.adjustOffset(r.set("month",o)),this.setDate=(r,o)=>this.adjustOffset(r.set("date",o)),this.setHours=(r,o)=>this.adjustOffset(r.set("hour",o)),this.setMinutes=(r,o)=>this.adjustOffset(r.set("minute",o)),this.setSeconds=(r,o)=>this.adjustOffset(r.set("second",o)),this.setMilliseconds=(r,o)=>this.adjustOffset(r.set("millisecond",o)),this.getDaysInMonth=r=>r.daysInMonth(),this.getWeekArray=r=>{const o=this.startOfWeek(this.startOfMonth(r)),i=this.endOfWeek(this.endOfMonth(r));let a=0,s=o;const l=[];for(;sr.week(),this.getYearRange=([r,o])=>{const i=this.startOfYear(r),a=this.endOfYear(o),s=[];let l=i;for(;this.isBefore(l,a);)s.push(l),l=this.addYears(l,1);return s},this.dayjs=$N(Wt,t),this.locale=t,this.formats=z({},ON,n),Wt.extend(kN)}getDayOfWeek(t){return t.day()+1}}const v0=Bt.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e)}),Ff={dedupe:!0},LN=(e,t,n)=>{const{cache:r,compare:o,suspense:i,fallbackData:a,revalidateOnMount:s,revalidateIfStale:l,refreshInterval:c,refreshWhenHidden:u,refreshWhenOffline:d,keepPreviousData:f}=n,[y,g,x,C]=Or.get(r),[p,m]=Bl(e),v=h.useRef(!1),S=h.useRef(!1),P=h.useRef(p),k=h.useRef(t),M=h.useRef(n),E=()=>M.current,$=()=>E().isVisible()&&E().isOnline(),[w,R,L,j]=zm(r,p),O=h.useRef({}).current,D=De(a)?n.fallback[p]:a,I=(W,F)=>{for(const K in O){const Q=K;if(Q==="data"){if(!o(W[Q],F[Q])&&(!De(W[Q])||!o(Y,F[Q])))return!1}else if(F[Q]!==W[Q])return!1}return!0},N=h.useMemo(()=>{const W=!p||!t?!1:De(s)?E().isPaused()||i?!1:De(l)?!0:l:s,F=fe=>{const ge=An(fe);return delete ge._k,W?{isValidating:!0,isLoading:!0,...ge}:ge},K=w(),Q=j(),te=F(K),ue=K===Q?te:F(Q);let J=te;return[()=>{const fe=F(w());return I(fe,J)?(J.data=fe.data,J.isLoading=fe.isLoading,J.isValidating=fe.isValidating,J.error=fe.error,J):(J=fe,fe)},()=>ue]},[r,p]),T=Rw.useSyncExternalStore(h.useCallback(W=>L(p,(F,K)=>{I(K,F)||W()}),[r,p]),N[0],N[1]),A=!v.current,_=y[p]&&y[p].length>0,V=T.data,H=De(V)?D:V,ae=T.error,se=h.useRef(H),Y=f?De(V)?se.current:V:H,le=_&&!De(ae)?!1:A&&!De(s)?s:E().isPaused()?!1:i?De(H)?!1:l:De(H)||l,ie=!!(p&&t&&A&&le),ee=De(T.isValidating)?ie:T.isValidating,q=De(T.isLoading)?ie:T.isLoading,ne=h.useCallback(async W=>{const F=k.current;if(!p||!F||S.current||E().isPaused())return!1;let K,Q,te=!0;const ue=W||{},J=!x[p]||!ue.dedupe,fe=()=>bl?!S.current&&p===P.current&&v.current:p===P.current,ge={isValidating:!1,isLoading:!1},Le=()=>{R(ge)},xe=()=>{const Ee=x[p];Ee&&Ee[1]===Q&&delete x[p]},tt={isValidating:!0};De(w().data)&&(tt.isLoading=!0);try{if(J&&(R(tt),n.loadingTimeout&&De(w().data)&&setTimeout(()=>{te&&fe()&&E().onLoadingSlow(p,n)},n.loadingTimeout),x[p]=[F(m),Aa()]),[K,Q]=x[p],K=await K,J&&setTimeout(xe,n.dedupingInterval),!x[p]||x[p][1]!==Q)return J&&fe()&&E().onDiscarded(p),!1;ge.error=It;const Ee=g[p];if(!De(Ee)&&(Q<=Ee[0]||Q<=Ee[1]||Ee[1]===0))return Le(),J&&fe()&&E().onDiscarded(p),!1;const _e=w().data;ge.data=o(_e,K)?_e:K,J&&fe()&&E().onSuccess(K,p,n)}catch(Ee){xe();const _e=E(),{shouldRetryOnError:ct}=_e;_e.isPaused()||(ge.error=Ee,J&&fe()&&(_e.onError(Ee,p,_e),(ct===!0||Dn(ct)&&ct(Ee))&&(!E().revalidateOnFocus||!E().revalidateOnReconnect||$())&&_e.onErrorRetry(Ee,p,_e,je=>{const Oe=y[p];Oe&&Oe[0]&&Oe[0]($r.ERROR_REVALIDATE_EVENT,je)},{retryCount:(ue.retryCount||0)+1,dedupe:!0})))}return te=!1,Le(),!0},[p,r]),oe=h.useCallback((...W)=>Vm(r,P.current,...W),[]);if(Zr(()=>{k.current=t,M.current=n,De(V)||(se.current=V)}),Zr(()=>{if(!p)return;const W=ne.bind(It,Ff);let F=0;const Q=_w(p,y,(te,ue={})=>{if(te==$r.FOCUS_EVENT){const J=Date.now();E().revalidateOnFocus&&J>F&&$()&&(F=J+E().focusThrottleInterval,W())}else if(te==$r.RECONNECT_EVENT)E().revalidateOnReconnect&&$()&&W();else{if(te==$r.MUTATE_EVENT)return ne();if(te==$r.ERROR_REVALIDATE_EVENT)return ne(ue)}});return S.current=!1,P.current=p,v.current=!0,R({_k:m}),le&&(De(H)||vi?W():Tw(W)),()=>{S.current=!0,Q()}},[p]),Zr(()=>{let W;function F(){const Q=Dn(c)?c(w().data):c;Q&&W!==-1&&(W=setTimeout(K,Q))}function K(){!w().error&&(u||E().isVisible())&&(d||E().isOnline())?ne(Ff).then(F):F()}return F(),()=>{W&&(clearTimeout(W),W=-1)}},[c,u,d,p]),h.useDebugValue(Y),i&&De(H)&&p){if(!bl&&vi)throw new Error("Fallback data is required when using suspense in SSR.");k.current=t,M.current=n,S.current=!1;const W=C[p];if(!De(W)){const F=oe(W);v0(F)}if(De(ae)){const F=ne(Ff);De(Y)||(F.status="fulfilled",F.value=!0),v0(F)}else throw ae}return{mutate:oe,get data(){return O.data=!0,Y},get error(){return O.error=!0,ae},get isValidating(){return O.isValidating=!0,ee},get isLoading(){return O.isLoading=!0,q}}};da.defineProperty(Um,"defaultValue",{value:Ad});const jN=Bw(LN),x0=bl?e=>{e()}:Bt.startTransition,NN=e=>{const[,t]=h.useState({}),n=h.useRef(!1),r=h.useRef(e),o=h.useRef({data:!1,error:!1,isValidating:!1}),i=h.useCallback(a=>{let s=!1;const l=r.current;for(const c in a){const u=c;l[u]!==a[u]&&(l[u]=a[u],o.current[u]&&(s=!0))}s&&!n.current&&t({})},[]);return Zr(()=>(n.current=!1,()=>{n.current=!0})),[r,o.current,i]},FN=()=>(e,t,n={})=>{const{mutate:r}=Fw(),o=h.useRef(e),i=h.useRef(t),a=h.useRef(n),s=h.useRef(0),[l,c,u]=NN({data:It,error:It,isMutating:!1}),d=l.current,f=h.useCallback(async(g,x)=>{const[C,p]=Bl(o.current);if(!i.current)throw new Error("Can’t trigger the mutation: missing fetcher.");if(!C)throw new Error("Can’t trigger the mutation: missing key.");const m=An(An({populateCache:!1,throwOnError:!0},a.current),x),v=Aa();s.current=v,u({isMutating:!0});try{const S=await r(C,i.current(p,{arg:g}),An(m,{throwOnError:!0}));return s.current<=v&&(x0(()=>u({data:S,isMutating:!1,error:void 0})),m.onSuccess==null||m.onSuccess.call(m,S,C,m)),S}catch(S){if(s.current<=v&&(x0(()=>u({error:S,isMutating:!1})),m.onError==null||m.onError.call(m,S,C,m),m.throwOnError))throw S}},[]),y=h.useCallback(()=>{s.current=Aa(),u({data:It,error:It,isMutating:!1})},[]);return Zr(()=>{o.current=e,i.current=t,a.current=n}),{trigger:f,reset:y,get data(){return c.data=!0,d.data},get error(){return c.error=!0,d.error},get isMutating(){return c.isMutating=!0,d.isMutating}}},ja=$L(jN,FN),BN=()=>{const[e,t]=h.useState(localStorage.getItem("token")),{trigger:n}=ja("/auth/token/logout",Hm(e));return{token:e,login:i=>{t(i),localStorage.setItem("token",i)},logout:()=>{localStorage.removeItem("token"),t(null),Aw("/auth/users/me",null),n()}}},Zm=()=>b.jsx("img",{src:PP,alt:"logo",className:"logo",style:{width:"100%",height:"100%"}}),_N=G(vl)(({theme:e})=>({display:"flex",flexDirection:"column",alignSelf:"center",width:"100%",padding:e.spacing(4),gap:e.spacing(2),boxShadow:"hsla(220, 30%, 5%, 0.05) 0px 5px 15px 0px, hsla(220, 25%, 10%, 0.05) 0px 15px 35px -5px",[e.breakpoints.up("sm")]:{width:"450px"},...e.applyStyles("dark",{boxShadow:"hsla(220, 30%, 5%, 0.5) 0px 5px 15px 0px, hsla(220, 25%, 10%, 0.08) 0px 15px 35px -5px"})})),zN=G(Pi)(({theme:e})=>({padding:e.spacing(2),[e.breakpoints.up("sm")]:{padding:e.spacing(4)},"&::before":{content:'""',display:"block",position:"absolute",zIndex:-1,inset:0,backgroundImage:"radial-gradient(ellipse at 50% 50%, hsl(210, 100%, 97%), hsl(0, 0%, 100%))",backgroundRepeat:"no-repeat",...e.applyStyles("dark",{backgroundImage:"radial-gradient(at 50% 50%, hsla(210, 100%, 16%, 0.5), hsl(220, 30%, 5%))"})}})),VN=e=>{const[t,n]=h.useState(""),{trigger:r,error:o}=ja("/auth/token/login",zw),i=zn(),{login:a}=h.useContext(wn);h.useEffect(()=>{o&&n(o.info?o.info.non_field_errors:i("/error"))},[o]);const s=async l=>{l.preventDefault();const c=new FormData(l.currentTarget),u=c.get("username"),d=c.get("password"),f=await r({username:u,password:d});await a(f.auth_token),i("/")};return b.jsxs(b.Fragment,{children:[b.jsx(fw,{enableColorScheme:!0}),b.jsx(zN,{direction:"column",justifyContent:"space-between",children:b.jsxs(_N,{variant:"outlined",children:[b.jsx(an,{sx:{display:"flex",justifyContent:"center"},children:b.jsx(Zm,{})}),b.jsx(Ye,{component:"h1",variant:"h4",sx:{width:"100%",fontSize:"clamp(2rem, 10vw, 2.15rem)"},children:"Sign in"}),b.jsxs(an,{component:"form",onSubmit:s,sx:{display:"flex",flexDirection:"column",gap:2},children:[b.jsxs($o,{children:[b.jsx(ua,{htmlFor:"name",children:"Username"}),b.jsx(Fr,{autoComplete:"username",name:"username",required:!0,fullWidth:!0,id:"username",placeholder:"Jon Snow"})]}),b.jsxs($o,{children:[b.jsx(ua,{htmlFor:"password",children:"Password"}),b.jsx(Fr,{required:!0,fullWidth:!0,name:"password",placeholder:"••••••",type:"password",id:"password",autoComplete:"new-password",variant:"outlined"})]}),t&&b.jsx("div",{style:{color:"red"},children:t}),b.jsx(Tt,{type:"submit",fullWidth:!0,variant:"contained",children:"Sign in"}),b.jsxs(Ye,{sx:{textAlign:"center"},children:["Don't have an account?"," ",b.jsx("span",{children:b.jsx(Lm,{variant:"body2",sx:{alignSelf:"center",cursor:"pointer"},onClick:()=>i("/register"),children:"Sign up"})})]})]})]})})]})},Jm=en(b.jsx("path",{d:"M16.59 7.58 10 14.17l-3.59-3.58L5 12l5 5 8-8zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"CheckCircleOutline"),WN=G(vl)(({theme:e})=>({display:"flex",flexDirection:"column",alignSelf:"center",width:"100%",padding:e.spacing(4),gap:e.spacing(2),boxShadow:"hsla(220, 30%, 5%, 0.05) 0px 5px 15px 0px, hsla(220, 25%, 10%, 0.05) 0px 15px 35px -5px",[e.breakpoints.up("sm")]:{width:"450px"},...e.applyStyles("dark",{boxShadow:"hsla(220, 30%, 5%, 0.5) 0px 5px 15px 0px, hsla(220, 25%, 10%, 0.08) 0px 15px 35px -5px"})})),UN=G(Pi)(({theme:e})=>({padding:e.spacing(2),[e.breakpoints.up("sm")]:{padding:e.spacing(4)},"&::before":{content:'""',display:"block",position:"absolute",zIndex:-1,inset:0,backgroundImage:"radial-gradient(ellipse at 50% 50%, hsl(210, 100%, 97%), hsl(0, 0%, 100%))",backgroundRepeat:"no-repeat",...e.applyStyles("dark",{backgroundImage:"radial-gradient(at 50% 50%, hsla(210, 100%, 16%, 0.5), hsl(220, 30%, 5%))"})}})),HN=e=>{const[t,n]=h.useState(!1),[r,o]=h.useState(""),[i,a]=h.useState(!1),[s,l]=h.useState(""),[c,u]=h.useState(!1),[d,f]=h.useState(""),[y,g]=h.useState(!1),x=zn(),{trigger:C,error:p}=ja("/auth/users/",zw),m=(M,E)=>{M(E.join(", "))},v={username:M=>{m(f,M),u(!0)},password:M=>{m(l,M),a(!0)},email:M=>{m(o,M),n(!0)}};h.useEffect(()=>{p&&Object.entries(p.info).forEach(([M,E])=>{v[M](E)})},[p]);const S=()=>{const M=document.getElementById("email"),E=document.getElementById("password"),$=document.getElementById("username");let w=!0;return!M.value||!/\S+@\S+\.\S+/.test(M.value)?(n(!0),o("Please enter a valid email address."),w=!1):(n(!1),o("")),!E.value||E.value.length<8?(a(!0),l("Password must be at least 8 characters long."),w=!1):(a(!1),l("")),!$.value||$.value.length<1?(u(!0),f("Username is required."),w=!1):(u(!1),f("")),w},P=async M=>{if(M.preventDefault(),c||t||i)return;const E=new FormData(M.currentTarget),$=E.get("username"),w=E.get("email"),R=E.get("password");await C({username:$,email:w,password:R}),g(!0)},k=()=>{g(!1),x("/login")};return b.jsxs(b.Fragment,{children:[b.jsx(Bm,{open:y,autoHideDuration:2e3,onClose:k,children:b.jsx(km,{onClose:k,severity:"success",sx:{backgroundColor:"#4caf50",color:"white"},iconMapping:{success:b.jsx(Jm,{fontSize:"inherit"})},children:"Nice account you got here! Redirecting now..."})}),b.jsx(fw,{enableColorScheme:!0}),b.jsx(UN,{direction:"column",justifyContent:"space-between",children:b.jsxs(WN,{variant:"outlined",children:[b.jsx(an,{sx:{display:"flex",justifyContent:"center"},children:b.jsx(Zm,{})}),b.jsx(Ye,{component:"h1",variant:"h4",sx:{width:"100%",fontSize:"clamp(2rem, 10vw, 2.15rem)"},children:"Sign up"}),b.jsxs(an,{component:"form",onSubmit:P,sx:{display:"flex",flexDirection:"column",gap:2},children:[b.jsxs($o,{children:[b.jsx(ua,{htmlFor:"name",children:"Username"}),b.jsx(Fr,{autoComplete:"username",name:"username",required:!0,fullWidth:!0,id:"username",placeholder:"Jon Snow",error:c,helperText:d,color:c?"error":"primary"})]}),b.jsxs($o,{children:[b.jsx(ua,{htmlFor:"email",children:"Email"}),b.jsx(Fr,{required:!0,fullWidth:!0,id:"email",placeholder:"your@email.com",name:"email",autoComplete:"email",variant:"outlined",error:t,helperText:r,color:i?"error":"primary"})]}),b.jsxs($o,{children:[b.jsx(ua,{htmlFor:"password",children:"Password"}),b.jsx(Fr,{required:!0,fullWidth:!0,name:"password",placeholder:"••••••",type:"password",id:"password",autoComplete:"new-password",variant:"outlined",error:i,helperText:s,color:i?"error":"primary"})]}),b.jsx(Tt,{type:"submit",fullWidth:!0,variant:"contained",onClick:S,children:"Sign up"}),b.jsxs(Ye,{sx:{textAlign:"center"},children:["Already have an account?"," ",b.jsx("span",{children:b.jsx(Lm,{variant:"body2",sx:{alignSelf:"center",cursor:"pointer"},onClick:()=>x("/login"),children:"Sign in"})})]})]})]})})]})},S0=()=>{const e=zn(),t=()=>{e("/")};return b.jsxs(an,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",height:"60vh",textAlign:"center",padding:"20px",borderRadius:"8px",margin:"0 20px"},children:[b.jsx(Ye,{variant:"h3",gutterBottom:!0,sx:{fontWeight:"bold",color:"#DC143C"},children:"Oops! An Error Occurred"}),b.jsx(Ye,{variant:"h6",gutterBottom:!0,sx:{color:"#555"},children:"Maybe it was you or maybe something is wrong"}),b.jsx(Tt,{variant:"contained",color:"primary",onClick:t,sx:{marginTop:"20px",padding:"10px 20px",fontSize:"16px",boxShadow:"0 2px 10px rgba(0, 0, 0, 0.2)","&:hover":{boxShadow:"0 4px 20px rgba(0, 0, 0, 0.3)"}},children:"Go to Main Page"})]})},mo=({Component:e,...t})=>{const{token:n}=h.useContext(wn),{user:r,error:o,isLoading:i}=Ld(),a=zn();return h.useEffect(()=>{!i&&!r&&a("/login")},[n,r,i]),i||!r?b.jsx(Fl,{}):b.jsx(e,{})},b0=({Component:e,...t})=>{const{token:n}=h.useContext(wn),{user:r,error:o,isLoading:i}=Ld(),a=zn();return h.useEffect(()=>{!i&&r&&a("/")},[n,r,i]),i?b.jsx(Fl,{}):b.jsx(e,{})},u1=e=>e/(1e3*60*60*24),Vl=()=>b.jsx(Pi,{direction:"column",justifyContent:"center",justifyItems:"center",alignContent:"center",alignItems:"center",height:"100vh",children:b.jsx(Fl,{})}),YN=()=>{const e=zn(),t=Id("(max-width:600px)"),{token:n}=h.useContext(wn),{data:r,isLoading:o,error:i}=_r("/activities",zr(n)),{data:a,isLoading:s,error:l}=_r("/titles",zr(n)),c=h.useMemo(()=>!r||!a?[]:r.map(d=>({...d,titles:a.filter(f=>f.activity===d.id).map(f=>({...f,start_date:new Date(f.start_date).toLocaleDateString(),end_date:f.end_date?new Date(f.end_date).toLocaleDateString():"No date",time_spent:f.end_date?u1(new Date(f.end_date)-new Date(f.start_date)):"Not finished"}))})),[a,r]);return o||s?b.jsx(Vl,{}):b.jsx(Pi,{direction:"column",justifyContent:"center",justifyItems:"center",alignContent:"center",alignItems:"center",children:t?c.map(u=>b.jsx(an,{sx:{width:"100%",marginBottom:2},children:b.jsxs(vr,{elevation:3,sx:{padding:2},children:[b.jsx(Ye,{variant:"h6",color:"primary",children:u.name}),u.titles.map(d=>b.jsxs(an,{sx:{marginBottom:1,padding:1,border:"1px solid #ccc"},children:[b.jsxs(Ye,{variant:"body1",children:[b.jsx("strong",{children:"Name:"})," ",d.name]}),b.jsxs(Ye,{variant:"body2",children:[b.jsx("strong",{children:"Description:"})," ",d.description]}),b.jsx("img",{src:d.image,width:"100%",style:{maxHeight:"300px",objectFit:"cover"}}),b.jsxs(Ye,{variant:"body2",children:[b.jsx("strong",{children:"Start date:"})," ",d.start_date]}),b.jsxs(Ye,{variant:"body2",children:[b.jsx("strong",{children:"End date:"})," ",d.end_date]}),b.jsxs(Ye,{variant:"body2",children:[b.jsx("strong",{children:"Days Spent:"})," ",d.time_spent]})]},d.id))]})},u.id)):b.jsx(an,{display:"flex",children:b.jsx(VA,{component:vr,children:b.jsxs(TA,{sx:{minWidth:650},children:[b.jsx(KA,{children:b.jsxs(Rf,{children:[b.jsx(kn,{align:"center",children:"Name"}),b.jsx(kn,{align:"center",children:"Description"}),b.jsx(kn,{align:"center",children:"Image"}),b.jsx(kn,{align:"center",children:"Start date"}),b.jsx(kn,{align:"center",children:"End date"}),b.jsx(kn,{align:"center",children:"Days Spent"})]})}),b.jsx(AA,{children:c.map(u=>b.jsxs(Bt.Fragment,{children:[b.jsx(Rf,{sx:{"&:last-child td, &:last-child th":{border:0}},style:{backgroundColor:"black"},onClick:()=>e(`/activities/${u.id}`),children:b.jsx(kn,{colSpan:7,align:"center",style:{fontWeight:"bold",color:"white"},children:u.name})},u.id),u.titles.map(d=>b.jsxs(Rf,{sx:{"&:last-child td, &:last-child th":{border:0}},children:[b.jsx(kn,{align:"center",onClick:()=>e(`/titles/${d.id}`),children:b.jsx(Ye,{variant:"body2",style:{fontWeight:"bold",cursor:"pointer"},children:d.name})}),b.jsx(kn,{align:"center",children:d.description}),b.jsx(kn,{align:"center",children:b.jsx("img",{src:d.image,width:"180px"})}),b.jsx(kn,{align:"center",children:d.start_date}),b.jsx(kn,{align:"center",children:d.end_date}),b.jsx(kn,{align:"center",children:d.time_spent})]},d.id))]},u.id))})]})})})})},KN=()=>{const[e,t]=h.useState(""),[n,r]=h.useState(""),[o,i]=h.useState(null),[a,s]=h.useState(""),[l,c]=h.useState(""),[u,d]=h.useState(!1),f=zn(),{token:y}=h.useContext(wn),{trigger:g,error:x}=ja("/activities/",Hm(y)),C=async v=>{v.preventDefault();const P=await g({name:e,description:n});i(P.id),d(!0)},p={name:v=>{s(v)},description:v=>{c(setPasswordErrorMessage,v)}},m=()=>{d(!1),f(`/activities/${o}`)};return h.useEffect(()=>{x&&Object.entries(x.info).forEach(([v,S])=>{p[v](S)})},[x]),b.jsxs(b.Fragment,{children:[b.jsx(Bm,{open:u,autoHideDuration:2e3,onClose:m,children:b.jsx(km,{onClose:m,severity:"success",sx:{backgroundColor:"#4caf50",color:"white"},iconMapping:{success:b.jsx(Jm,{fontSize:"inherit"})},children:"Activity is successfully created! Redirecting..."})}),b.jsx(Ye,{variant:"h4",gutterBottom:!0,children:"Create Activity"}),b.jsxs("form",{onSubmit:C,children:[b.jsx(Fr,{label:"Activity Name",variant:"outlined",fullWidth:!0,margin:"normal",value:e,onChange:v=>t(v.target.value),error:!!a,helperText:a,required:!0}),b.jsx(Fr,{label:"Description",variant:"outlined",fullWidth:!0,margin:"normal",multiline:!0,rows:4,value:n,onChange:v=>r(v.target.value),error:!!l,helperText:l}),b.jsx(an,{display:"flex",justifyContent:"flex-end",children:b.jsx(Tt,{type:"submit",variant:"contained",color:"primary",children:"Create Activity"})})]})]})},GN=()=>b.jsx(uw,{maxWidth:"sm",children:b.jsx(KN,{})}),QN=["localeText"],rh=h.createContext(null),d1=function(t){const{localeText:n}=t,r=Ae(t,QN),{utils:o,localeText:i}=h.useContext(rh)??{utils:void 0,localeText:void 0},a=mt({props:r,name:"MuiLocalizationProvider"}),{children:s,dateAdapter:l,dateFormats:c,dateLibInstance:u,adapterLocale:d,localeText:f}=a,y=h.useMemo(()=>z({},f,i,n),[f,i,n]),g=h.useMemo(()=>{if(!l)return o||null;const p=new l({locale:d,formats:c,instance:u});if(!p.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(` -`));return p},[l,d,c,u,o]),x=h.useMemo(()=>g?{minDate:g.date("1900-01-01T00:00:00.000"),maxDate:g.date("2099-12-31T00:00:00.000")}:null,[g]),C=h.useMemo(()=>({utils:g,defaultDates:x,localeText:y}),[x,g,y]);return b.jsx(rh.Provider,{value:C,children:s})},XN=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:z({},e)}}}}),f1=e=>{const{utils:t,formatKey:n,contextTranslation:r,propsTranslation:o}=e;return i=>{const a=i!==null&&t.isValid(i)?t.format(i,n):null;return(o??r)(i,t,a)}},p1={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"},qN=p1;XN(p1);const Mi=()=>{const e=h.useContext(rh);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(` -`));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(` -`));const t=h.useMemo(()=>z({},qN,e.localeText),[e.localeText]);return h.useMemo(()=>z({},e,{localeText:t}),[e,t])},gt=()=>Mi().utils,Wl=()=>Mi().defaultDates,Bd=e=>{const t=gt(),n=h.useRef();return n.current===void 0&&(n.current=t.date(void 0,e)),n.current},uo=()=>Mi().localeText,ZN=en(b.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),JN=en(b.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),eF=en(b.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),tF=en(b.jsx("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar");en(b.jsxs(h.Fragment,{children:[b.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),b.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock");en(b.jsx("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange");en(b.jsxs(h.Fragment,{children:[b.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),b.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time");const nF=en(b.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear");function rF(e){return ye("MuiPickersArrowSwitcher",e)}me("MuiPickersArrowSwitcher",["root","spacer","button","previousIconButton","nextIconButton","leftArrowIcon","rightArrowIcon"]);const oF=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel","labelId"],iF=["ownerState"],aF=["ownerState"],sF=G("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),lF=G("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),w0=G(Wa,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})({variants:[{props:{hidden:!0},style:{visibility:"hidden"}}]}),cF=e=>{const{classes:t}=e;return ve({root:["root"],spacer:["spacer"],button:["button"],previousIconButton:["previousIconButton"],nextIconButton:["nextIconButton"],leftArrowIcon:["leftArrowIcon"],rightArrowIcon:["rightArrowIcon"]},rF,t)},uF=h.forwardRef(function(t,n){const r=ir(),o=mt({props:t,name:"MuiPickersArrowSwitcher"}),{children:i,className:a,slots:s,slotProps:l,isNextDisabled:c,isNextHidden:u,onGoToNext:d,nextLabel:f,isPreviousDisabled:y,isPreviousHidden:g,onGoToPrevious:x,previousLabel:C,labelId:p}=o,m=Ae(o,oF),v=o,S=cF(v),P={isDisabled:c,isHidden:u,goTo:d,label:f},k={isDisabled:y,isHidden:g,goTo:x,label:C},M=(s==null?void 0:s.previousIconButton)??w0,E=Qe({elementType:M,externalSlotProps:l==null?void 0:l.previousIconButton,additionalProps:{size:"medium",title:k.label,"aria-label":k.label,disabled:k.isDisabled,edge:"end",onClick:k.goTo},ownerState:z({},v,{hidden:k.isHidden}),className:pe(S.button,S.previousIconButton)}),$=(s==null?void 0:s.nextIconButton)??w0,w=Qe({elementType:$,externalSlotProps:l==null?void 0:l.nextIconButton,additionalProps:{size:"medium",title:P.label,"aria-label":P.label,disabled:P.isDisabled,edge:"start",onClick:P.goTo},ownerState:z({},v,{hidden:P.isHidden}),className:pe(S.button,S.nextIconButton)}),R=(s==null?void 0:s.leftArrowIcon)??JN,L=Qe({elementType:R,externalSlotProps:l==null?void 0:l.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:v,className:S.leftArrowIcon}),j=Ae(L,iF),O=(s==null?void 0:s.rightArrowIcon)??eF,D=Qe({elementType:O,externalSlotProps:l==null?void 0:l.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:v,className:S.rightArrowIcon}),I=Ae(D,aF);return b.jsxs(sF,z({ref:n,className:pe(S.root,a),ownerState:v},m,{children:[b.jsx(M,z({},E,{children:r?b.jsx(O,z({},I)):b.jsx(R,z({},j))})),i?b.jsx(Ye,{variant:"subtitle1",component:"span",id:p,children:i}):b.jsx(lF,{className:S.spacer,ownerState:v}),b.jsx($,z({},w,{children:r?b.jsx(R,z({},j)):b.jsx(O,z({},I))}))]}))}),ms=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),dF=({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}},fF=["hours","minutes","seconds"],pF=e=>fF.includes(e),C0=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),hF=(e,t)=>(n,r)=>e?t.isAfter(n,r):C0(n,t)>C0(r,t);function h1({onChange:e,onViewChange:t,openTo:n,view:r,views:o,autoFocus:i,focusedView:a,onFocusedViewChange:s}){const l=h.useRef(n),c=h.useRef(o),u=h.useRef(o.includes(n)?n:o[0]),[d,f]=io({name:"useViews",state:"view",controlled:r,default:u.current}),y=h.useRef(i?d:null),[g,x]=io({name:"useViews",state:"focusedView",controlled:a,default:y.current});h.useEffect(()=>{(l.current&&l.current!==n||c.current&&c.current.some(M=>!o.includes(M)))&&(f(o.includes(n)?n:o[0]),c.current=o,l.current=n)},[n,f,d,o]);const C=o.indexOf(d),p=o[C-1]??null,m=o[C+1]??null,v=Se((M,E)=>{x(E?M:$=>M===$?null:$),s==null||s(M,E)}),S=Se(M=>{v(M,!0),M!==d&&(f(M),t&&t(M))}),P=Se(()=>{m&&S(m)}),k=Se((M,E,$)=>{const w=E==="finish",R=$?o.indexOf($){const i=o.date(void 0,r),a=o.startOfMonth(t&&o.isBefore(i,n)?i:n);return!o.isAfter(a,e)},[t,n,e,o,r])}function gF(e,{disablePast:t,minDate:n,timezone:r}){const o=gt();return h.useMemo(()=>{const i=o.date(void 0,r),a=o.startOfMonth(t&&o.isAfter(i,n)?i:n);return!o.isBefore(a,e)},[t,n,e,o,r])}const kl=36,_d=2,zd=320,yF=280,eg=336,vF=G("div")({overflow:"hidden",width:zd,maxHeight:eg,display:"flex",flexDirection:"column",margin:"0 auto"}),Ou=(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},Hs=({date:e,disableFuture:t,disablePast:n,maxDate:r,minDate:o,isDateDisabled:i,utils:a,timezone:s})=>{const l=Ou(a,a.date(void 0,s),e);n&&a.isBefore(o,l)&&(o=l),t&&a.isAfter(r,l)&&(r=l);let c=e,u=e;for(a.isBefore(e,o)&&(c=o,u=null),a.isAfter(e,r)&&(u&&(u=r),c=null);c||u;){if(c&&a.isAfter(c,r)&&(c=null),u&&a.isBefore(u,o)&&(u=null),c){if(!i(c))return c;c=a.addDays(c,1)}if(u){if(!i(u))return u;u=a.addDays(u,-1)}}return null},xF=(e,t)=>t==null||!e.isValid(t)?null:t,rr=(e,t,n)=>t==null||!e.isValid(t)?n:t,SF=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),tg=(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},m1=(e,t,n)=>n==="date"?e.startOfDay(e.date(void 0,t)):e.date(void 0,t),bF=["year","month","day"],k0=e=>bF.includes(e),ng=(e,{format:t,views:n},r)=>{if(t!=null)return t;const o=e.formats;return ms(n,["year"])?o.year:ms(n,["month"])?o.month:ms(n,["day"])?o.dayOfMonth:ms(n,["month","year"])?`${o.month} ${o.year}`:ms(n,["day","month"])?`${o.month} ${o.dayOfMonth}`:r?/en/.test(e.getCurrentLocaleCode())?o.normalDateWithWeekday:o.normalDate:o.keyboardDate},wF=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(r=>e.addDays(n,r))},rg=({timezone:e,value:t,defaultValue:n,referenceDate:r,onChange:o,valueManager:i})=>{const a=gt(),s=h.useRef(n),l=t??s.current??i.emptyValue,c=h.useMemo(()=>i.getTimezone(a,l),[a,i,l]),u=Se(g=>c==null?g:i.setTimezone(a,c,g));let d;e?d=e:c?d=c:r?d=a.getTimezone(r):d="default";const f=h.useMemo(()=>i.setTimezone(a,d,l),[i,a,d,l]),y=Se((g,...x)=>{const C=u(g);o==null||o(C,...x)});return{value:f,handleValueChange:y,timezone:d}},og=({name:e,timezone:t,value:n,defaultValue:r,referenceDate:o,onChange:i,valueManager:a})=>{const[s,l]=io({name:e,state:"value",controlled:n,default:r??a.emptyValue}),c=Se((u,...d)=>{l(u),i==null||i(u,...d)});return rg({timezone:t,value:s,defaultValue:void 0,referenceDate:o,onChange:c,valueManager:a})},Tr={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},CF=e=>Math.max(...e.map(t=>Tr[t.type]??1)),gs=(e,t,n)=>{if(t===Tr.year)return e.startOfYear(n);if(t===Tr.month)return e.startOfMonth(n);if(t===Tr.day)return e.startOfDay(n);let r=n;return t{let i=o?o():gs(t,n,m1(t,r));e.minDate!=null&&t.isAfterDay(e.minDate,i)&&(i=gs(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,i)&&(i=gs(t,n,e.maxDate));const a=hF(e.disableIgnoringDatePartForTimeValidation??!1,t);return e.minTime!=null&&a(e.minTime,i)&&(i=gs(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:Ou(t,i,e.minTime))),e.maxTime!=null&&a(i,e.maxTime)&&(i=gs(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:Ou(t,i,e.maxTime))),i},g1=(e,t)=>{const n=e.formatTokenMap[t];if(n==null)throw new Error([`MUI X: The token "${t}" is not supported by the Date and Time Pickers.`,"Please try using another token or open an issue on https://github.com/mui/mui-x/issues/new/choose if you think it should be supported."].join(` -`));return typeof n=="string"?{type:n,contentType:n==="meridiem"?"letter":"digit",maxLength:void 0}:{type:n.sectionType,contentType:n.contentType,maxLength:n.maxLength}},PF=e=>{switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}},Vd=(e,t)=>{const n=[],r=e.date(void 0,"default"),o=e.startOfWeek(r),i=e.endOfWeek(r);let a=o;for(;e.isBefore(a,i);)n.push(a),a=e.addDays(a,1);return n.map(s=>e.formatByString(s,t))},y1=(e,t,n,r)=>{switch(n){case"month":return tg(e,e.date(void 0,t)).map(o=>e.formatByString(o,r));case"weekDay":return Vd(e,r);case"meridiem":{const o=e.date(void 0,t);return[e.startOfDay(o),e.endOfDay(o)].map(i=>e.formatByString(i,r))}default:return[]}},P0="s",EF=["0","1","2","3","4","5","6","7","8","9"],MF=e=>{const t=e.date(void 0);return e.formatByString(e.setSeconds(t,0),P0)==="0"?EF:Array.from({length:10}).map((r,o)=>e.formatByString(e.setSeconds(t,o),P0))},Si=(e,t)=>{if(t[0]==="0")return e;const n=[];let r="";for(let o=0;o-1&&(n.push(i.toString()),r="")}return n.join("")},ig=(e,t)=>t[0]==="0"?e:e.split("").map(n=>t[Number(n)]).join(""),E0=(e,t)=>{const n=Si(e,t);return n!==" "&&!Number.isNaN(Number(n))},v1=(e,t)=>{let n=e;for(n=Number(n).toString();n.length{if(o.type==="day"&&o.contentType==="digit-with-letter"){const a=e.setDate(n.longestMonth,t);return e.formatByString(a,o.format)}let i=t.toString();return o.hasLeadingZerosInInput&&(i=v1(i,o.maxLength)),ig(i,r)},RF=(e,t,n,r,o,i,a,s)=>{const l=PF(r),c=r==="Home",u=r==="End",d=n.value===""||c||u,f=()=>{const g=o[n.type]({currentDate:a,format:n.format,contentType:n.contentType}),x=v=>x1(e,v,g,i,n),C=n.type==="minutes"&&(s!=null&&s.minutesStep)?s.minutesStep:1;let m=parseInt(Si(n.value,i),10)+l*C;if(d){if(n.type==="year"&&!u&&!c)return e.formatByString(e.date(void 0,t),n.format);l>0||c?m=g.minimum:m=g.maximum}return m%C!==0&&((l<0||c)&&(m+=C-(C+m)%C),(l>0||u)&&(m-=m%C)),m>g.maximum?x(g.minimum+(m-g.maximum-1)%(g.maximum-g.minimum+1)):m{const g=y1(e,t,n.type,n.format);if(g.length===0)return n.value;if(d)return l>0||c?g[0]:g[g.length-1];const p=((g.indexOf(n.value)+l)%g.length+g.length)%g.length;return g[p]};return n.contentType==="digit"||n.contentType==="digit-with-letter"?f():y()},ag=(e,t,n)=>{let r=e.value||e.placeholder;const o=t==="non-input"?e.hasLeadingZerosInFormat:e.hasLeadingZerosInInput;return t==="non-input"&&e.hasLeadingZerosInInput&&!e.hasLeadingZerosInFormat&&(r=Number(Si(r,n)).toString()),["input-rtl","input-ltr"].includes(t)&&e.contentType==="digit"&&!o&&r.length===1&&(r=`${r}‎`),t==="input-rtl"&&(r=`⁨${r}⁩`),r},M0=(e,t,n,r)=>e.formatByString(e.parse(t,n),r),S1=(e,t)=>e.formatByString(e.date(void 0,"system"),t).length===4,b1=(e,t,n,r)=>{if(t!=="digit")return!1;const o=e.date(void 0,"default");switch(n){case"year":return S1(e,r)?e.formatByString(e.setYear(o,1),r)==="0001":e.formatByString(e.setYear(o,2001),r)==="01";case"month":return e.formatByString(e.startOfYear(o),r).length>1;case"day":return e.formatByString(e.startOfMonth(o),r).length>1;case"weekDay":return e.formatByString(e.startOfWeek(o),r).length>1;case"hours":return e.formatByString(e.setHours(o,1),r).length>1;case"minutes":return e.formatByString(e.setMinutes(o,1),r).length>1;case"seconds":return e.formatByString(e.setSeconds(o,1),r).length>1;default:throw new Error("Invalid section type")}},TF=(e,t,n)=>{const r=t.some(l=>l.type==="day"),o=[],i=[];for(let l=0;le.map(t=>`${t.startSeparator}${t.value||t.placeholder}${t.endSeparator}`).join(""),IF=(e,t,n)=>{const o=e.map(i=>{const a=ag(i,n?"input-rtl":"input-ltr",t);return`${i.startSeparator}${a}${i.endSeparator}`}).join("");return n?`⁦${o}⁩`:o},OF=(e,t,n)=>{const r=e.date(void 0,n),o=e.endOfYear(r),i=e.endOfDay(r),{maxDaysInMonth:a,longestMonth:s}=tg(e,r).reduce((l,c)=>{const u=e.getDaysInMonth(c);return u>l.maxDaysInMonth?{maxDaysInMonth:u,longestMonth:c}:l},{maxDaysInMonth:0,longestMonth:null});return{year:({format:l})=>({minimum:0,maximum:S1(e,l)?9999:99}),month:()=>({minimum:1,maximum:e.getMonth(o)+1}),day:({currentDate:l})=>({minimum:1,maximum:l!=null&&e.isValid(l)?e.getDaysInMonth(l):a,longestMonth:s}),weekDay:({format:l,contentType:c})=>{if(c==="digit"){const u=Vd(e,l).map(Number);return{minimum:Math.min(...u),maximum:Math.max(...u)}}return{minimum:1,maximum:7}},hours:({format:l})=>{const c=e.getHours(i);return Si(e.formatByString(e.endOfDay(r),l),t)!==c.toString()?{minimum:1,maximum:Number(Si(e.formatByString(e.startOfDay(r),l),t))}:{minimum:0,maximum:c}},minutes:()=>({minimum:0,maximum:e.getMinutes(i)}),seconds:()=>({minimum:0,maximum:e.getSeconds(i)}),meridiem:()=>({minimum:0,maximum:1}),empty:()=>({minimum:0,maximum:0})}},$F=(e,t,n,r)=>{switch(t.type){case"year":return e.setYear(r,e.getYear(n));case"month":return e.setMonth(r,e.getMonth(n));case"weekDay":{const o=Vd(e,t.format),i=e.formatByString(n,t.format),a=o.indexOf(i),l=o.indexOf(t.value)-a;return e.addDays(n,l)}case"day":return e.setDate(r,e.getDate(n));case"meridiem":{const o=e.getHours(n)<12,i=e.getHours(r);return o&&i>=12?e.addHours(r,-12):!o&&i<12?e.addHours(r,12):r}case"hours":return e.setHours(r,e.getHours(n));case"minutes":return e.setMinutes(r,e.getMinutes(n));case"seconds":return e.setSeconds(r,e.getSeconds(n));default:return r}},R0={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8,empty:9},T0=(e,t,n,r,o)=>[...n].sort((i,a)=>R0[i.type]-R0[a.type]).reduce((i,a)=>!o||a.modified?$F(e,a,t,i):i,r),AF=()=>navigator.userAgent.toLowerCase().includes("android"),LF=(e,t)=>{const n={};if(!t)return e.forEach((l,c)=>{const u=c===0?null:c-1,d=c===e.length-1?null:c+1;n[c]={leftIndex:u,rightIndex:d}}),{neighbors:n,startIndex:0,endIndex:e.length-1};const r={},o={};let i=0,a=0,s=e.length-1;for(;s>=0;){a=e.findIndex((l,c)=>{var u;return c>=i&&((u=l.endSeparator)==null?void 0:u.includes(" "))&&l.endSeparator!==" / "}),a===-1&&(a=e.length-1);for(let l=a;l>=i;l-=1)o[l]=s,r[s]=l,s-=1;i=a+1}return e.forEach((l,c)=>{const u=o[c],d=u===0?null:r[u-1],f=u===e.length-1?null:r[u+1];n[c]={leftIndex:d,rightIndex:f}}),{neighbors:n,startIndex:r[0],endIndex:r[e.length-1]}},oh=(e,t)=>{if(e==null)return null;if(e==="all")return"all";if(typeof e=="string"){const n=t.findIndex(r=>r.type===e);return n===-1?null:n}return e},jF=(e,t)=>{if(e.value)switch(e.type){case"month":{if(e.contentType==="digit")return t.format(t.setMonth(t.date(),Number(e.value)-1),"month");const n=t.parse(e.value,e.format);return n?t.format(n,"month"):void 0}case"day":return e.contentType==="digit"?t.format(t.setDate(t.startOfYear(t.date()),Number(e.value)),"dayOfMonthFull"):e.value;case"weekDay":return;default:return}},NF=(e,t)=>{if(e.value)switch(e.type){case"weekDay":return e.contentType==="letter"?void 0:Number(e.value);case"meridiem":{const n=t.parse(`01:00 ${e.value}`,`${t.formats.hours12h}:${t.formats.minutes} ${e.format}`);return n?t.getHours(n)>=12?1:0:void 0}case"day":return e.contentType==="digit-with-letter"?parseInt(e.value,10):Number(e.value);case"month":{if(e.contentType==="digit")return Number(e.value);const n=t.parse(e.value,e.format);return n?t.getMonth(n)+1:void 0}default:return e.contentType!=="letter"?Number(e.value):void 0}},FF=["value","referenceDate"],Vr={emptyValue:null,getTodayValue:m1,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,r=Ae(e,FF);return t!=null&&r.utils.isValid(t)?t:n??kF(r)},cleanValue:xF,areValuesEqual:SF,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)},BF={updateReferenceValue:(e,t,n)=>t==null||!e.isValid(t)?n:t,getSectionsFromValue:(e,t,n,r)=>!e.isValid(t)&&!!n?n:r(t),getV7HiddenInputValueFromSections:DF,getV6InputValueFromSections:IF,getActiveDateManager:(e,t)=>({date:t.value,referenceDate:t.referenceValue,getSections:n=>n,getNewValuesFromNewActiveDate:n=>({value:n,referenceValue:n==null||!e.isValid(n)?t.referenceValue:n})}),parseValueStr:(e,t,n)=>n(e.trim(),t)};function _F(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const zF=(e,t)=>n=>{(n.key==="Enter"||n.key===" ")&&(e(n),n.preventDefault(),n.stopPropagation())},Mn=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?Mn(t.shadowRoot):t:null},VF="@media (pointer: fine)";function WF(e){return ye("MuiPickersDay",e)}const Yo=me("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),UF=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],HF=e=>{const{selected:t,disableMargin:n,disableHighlightToday:r,today:o,disabled:i,outsideCurrentMonth:a,showDaysOutsideCurrentMonth:s,classes:l}=e,c=a&&!s;return ve({root:["root",t&&!c&&"selected",i&&"disabled",!n&&"dayWithMargin",!r&&o&&"today",a&&s&&"dayOutsideMonth",c&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},WF,l)},w1=({theme:e})=>z({},e.typography.caption,{width:kl,height:kl,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})`:Be(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:Be(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${Yo.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${Yo.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}},[`&.${Yo.disabled}:not(.${Yo.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${Yo.disabled}&.${Yo.selected}`]:{opacity:.6},variants:[{props:{disableMargin:!1},style:{margin:`0 ${_d}px`}},{props:{outsideCurrentMonth:!0,showDaysOutsideCurrentMonth:!0},style:{color:(e.vars||e).palette.text.secondary}},{props:{disableHighlightToday:!1,today:!0},style:{[`&:not(.${Yo.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}}]}),C1=(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]},YF=G(Ma,{name:"MuiPickersDay",slot:"Root",overridesResolver:C1})(w1),KF=G("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:C1})(({theme:e})=>z({},w1({theme:e}),{opacity:0,pointerEvents:"none"})),ys=()=>{},GF=h.forwardRef(function(t,n){const r=mt({props:t,name:"MuiPickersDay"}),{autoFocus:o=!1,className:i,day:a,disabled:s=!1,disableHighlightToday:l=!1,disableMargin:c=!1,isAnimating:u,onClick:d,onDaySelect:f,onFocus:y=ys,onBlur:g=ys,onKeyDown:x=ys,onMouseDown:C=ys,onMouseEnter:p=ys,outsideCurrentMonth:m,selected:v=!1,showDaysOutsideCurrentMonth:S=!1,children:P,today:k=!1}=r,M=Ae(r,UF),E=z({},r,{autoFocus:o,disabled:s,disableHighlightToday:l,disableMargin:c,selected:v,showDaysOutsideCurrentMonth:S,today:k}),$=HF(E),w=gt(),R=h.useRef(null),L=He(R,n);Vt(()=>{o&&!s&&!u&&!m&&R.current.focus()},[o,s,u,m]);const j=D=>{C(D),m&&D.preventDefault()},O=D=>{s||f(a),m&&D.currentTarget.focus(),d&&d(D)};return m&&!S?b.jsx(KF,{className:pe($.root,$.hiddenDaySpacingFiller,i),ownerState:E,role:M.role}):b.jsx(YF,z({className:pe($.root,i),ref:L,centerRipple:!0,disabled:s,tabIndex:v?0:-1,onKeyDown:D=>x(D,a),onFocus:D=>y(D,a),onBlur:D=>g(D,a),onMouseEnter:D=>p(D,a),onClick:O,onMouseDown:j},M,{ownerState:E,children:P||w.format(a,"dayOfMonth")}))}),QF=h.memo(GF),Ul=({props:e,value:t,timezone:n,adapter:r})=>{if(t===null)return null;const{shouldDisableDate:o,shouldDisableMonth:i,shouldDisableYear:a,disablePast:s,disableFuture:l}=e,c=r.utils.date(void 0,n),u=rr(r.utils,e.minDate,r.defaultDates.minDate),d=rr(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!!(a&&a(t)):return"shouldDisableYear";case!!(l&&r.utils.isAfterDay(t,c)):return"disableFuture";case!!(s&&r.utils.isBeforeDay(t,c)):return"disablePast";case!!(u&&r.utils.isBeforeDay(t,u)):return"minDate";case!!(d&&r.utils.isAfterDay(t,d)):return"maxDate";default:return null}};Ul.valueManager=Vr;const k1=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],XF=["disablePast","disableFuture","minTime","maxTime","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],qF=["minDateTime","maxDateTime"],ZF=[...k1,...XF,...qF],P1=e=>ZF.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{});function E1(e){const{props:t,validator:n,value:r,timezone:o,onError:i}=e,a=Mi(),s=h.useRef(n.valueManager.defaultErrorState),l=n({adapter:a,value:r,timezone:o,props:t}),c=n.valueManager.hasError(l);h.useEffect(()=>{i&&!n.valueManager.isSameError(l,s.current)&&i(l,r),s.current=l},[n,i,l,r]);const u=Se(d=>n({adapter:a,value:d,timezone:o,props:t}));return{validationError:l,hasValidationError:c,getValidationErrorForNewValue:u}}const JF=({utils:e,format:t})=>{let n=10,r=t,o=e.expandFormat(t);for(;o!==r;)if(r=o,o=e.expandFormat(r),n-=1,n<0)throw new Error("MUI X: The format expansion seems to be in an infinite loop. Please open an issue with the format passed to the picker component.");return o},e5=({utils:e,expandedFormat:t})=>{const n=[],{start:r,end:o}=e.escapedCharacters,i=new RegExp(`(\\${r}[^\\${o}]*\\${o})+`,"g");let a=null;for(;a=i.exec(t);)n.push({start:a.index,end:i.lastIndex-1});return n},t5=(e,t,n,r)=>{switch(n.type){case"year":return t.fieldYearPlaceholder({digitAmount:e.formatByString(e.date(void 0,"default"),r).length,format:r});case"month":return t.fieldMonthPlaceholder({contentType:n.contentType,format:r});case"day":return t.fieldDayPlaceholder({format:r});case"weekDay":return t.fieldWeekDayPlaceholder({contentType:n.contentType,format:r});case"hours":return t.fieldHoursPlaceholder({format:r});case"minutes":return t.fieldMinutesPlaceholder({format:r});case"seconds":return t.fieldSecondsPlaceholder({format:r});case"meridiem":return t.fieldMeridiemPlaceholder({format:r});default:return r}},n5=({utils:e,date:t,shouldRespectLeadingZeros:n,localeText:r,localizedDigits:o,now:i,token:a,startSeparator:s})=>{if(a==="")throw new Error("MUI X: Should not call `commitToken` with an empty token");const l=g1(e,a),c=b1(e,l.contentType,l.type,a),u=n?c:l.contentType==="digit",d=t!=null&&e.isValid(t);let f=d?e.formatByString(t,a):"",y=null;if(u)if(c)y=f===""?e.formatByString(i,a).length:f.length;else{if(l.maxLength==null)throw new Error(`MUI X: The token ${a} should have a 'maxDigitNumber' property on it's adapter`);y=l.maxLength,d&&(f=ig(v1(Si(f,o),y),o))}return z({},l,{format:a,maxLength:y,value:f,placeholder:t5(e,r,l,a),hasLeadingZerosInFormat:c,hasLeadingZerosInInput:u,startSeparator:s,endSeparator:"",modified:!1})},r5=e=>{var y;const{utils:t,expandedFormat:n,escapedParts:r}=e,o=t.date(void 0),i=[];let a="";const s=Object.keys(t.formatTokenMap).sort((g,x)=>x.length-g.length),l=/^([a-zA-Z]+)/,c=new RegExp(`^(${s.join("|")})*$`),u=new RegExp(`^(${s.join("|")})`),d=g=>r.find(x=>x.start<=g&&x.end>=g);let f=0;for(;f0;){const m=u.exec(p)[1];p=p.slice(m.length),i.push(n5(z({},e,{now:o,token:m,startSeparator:a}))),a=""}f+=C.length}else{const p=n[f];x&&(g==null?void 0:g.start)===f||(g==null?void 0:g.end)===f||(i.length===0?a+=p:i[i.length-1].endSeparator+=p),f+=1}}return i.length===0&&a.length>0&&i.push({type:"empty",contentType:"letter",maxLength:null,format:"",value:"",placeholder:"",hasLeadingZerosInFormat:!1,hasLeadingZerosInInput:!1,startSeparator:a,endSeparator:"",modified:!1}),i},o5=({isRtl:e,formatDensity:t,sections:n})=>n.map(r=>{const o=i=>{let a=i;return e&&a!==null&&a.includes(" ")&&(a=`⁩${a}⁦`),t==="spacious"&&["/",".","-"].includes(a)&&(a=` ${a} `),a};return r.startSeparator=o(r.startSeparator),r.endSeparator=o(r.endSeparator),r}),D0=e=>{let t=JF(e);e.isRtl&&e.enableAccessibleFieldDOMStructure&&(t=t.split(" ").reverse().join(" "));const n=e5(z({},e,{expandedFormat:t})),r=r5(z({},e,{expandedFormat:t,escapedParts:n}));return o5(z({},e,{sections:r}))},i5=e=>{const t=gt(),n=uo(),r=Mi(),o=ir(),{valueManager:i,fieldValueManager:a,valueType:s,validator:l,internalProps:c,internalProps:{value:u,defaultValue:d,referenceDate:f,onChange:y,format:g,formatDensity:x="dense",selectedSections:C,onSelectedSectionsChange:p,shouldRespectLeadingZeros:m=!1,timezone:v,enableAccessibleFieldDOMStructure:S=!1}}=e,{timezone:P,value:k,handleValueChange:M}=rg({timezone:v,value:u,defaultValue:d,referenceDate:f,onChange:y,valueManager:i}),E=h.useMemo(()=>MF(t),[t]),$=h.useMemo(()=>OF(t,E,P),[t,E,P]),w=h.useCallback((Y,le=null)=>a.getSectionsFromValue(t,Y,le,ie=>D0({utils:t,localeText:n,localizedDigits:E,format:g,date:ie,formatDensity:x,shouldRespectLeadingZeros:m,enableAccessibleFieldDOMStructure:S,isRtl:o})),[a,g,n,E,o,m,t,x,S]),[R,L]=h.useState(()=>{const Y=w(k),le={sections:Y,value:k,referenceValue:i.emptyValue,tempValueStrAndroid:null},ie=CF(Y),ee=i.getInitialReferenceValue({referenceDate:f,value:k,utils:t,props:c,granularity:ie,timezone:P});return z({},le,{referenceValue:ee})}),[j,O]=io({controlled:C,default:null,name:"useField",state:"selectedSections"}),D=Y=>{O(Y),p==null||p(Y)},I=h.useMemo(()=>oh(j,R.sections),[j,R.sections]),N=I==="all"?0:I,T=({value:Y,referenceValue:le,sections:ie})=>{if(L(q=>z({},q,{sections:ie,value:Y,referenceValue:le,tempValueStrAndroid:null})),i.areValuesEqual(t,R.value,Y))return;const ee={validationError:l({adapter:r,value:Y,timezone:P,props:c})};M(Y,ee)},A=(Y,le)=>{const ie=[...R.sections];return ie[Y]=z({},ie[Y],{value:le,modified:!0}),ie},_=()=>{T({value:i.emptyValue,referenceValue:R.referenceValue,sections:w(i.emptyValue)})},V=()=>{if(N==null)return;const Y=R.sections[N],le=a.getActiveDateManager(t,R,Y),ee=le.getSections(R.sections).filter(W=>W.value!=="").length===(Y.value===""?0:1),q=A(N,""),ne=ee?null:t.getInvalidDate(),oe=le.getNewValuesFromNewActiveDate(ne);T(z({},oe,{sections:q}))},H=Y=>{const le=(q,ne)=>{const oe=t.parse(q,g);if(oe==null||!t.isValid(oe))return null;const W=D0({utils:t,localeText:n,localizedDigits:E,format:g,date:oe,formatDensity:x,shouldRespectLeadingZeros:m,enableAccessibleFieldDOMStructure:S,isRtl:o});return T0(t,oe,W,ne,!1)},ie=a.parseValueStr(Y,R.referenceValue,le),ee=a.updateReferenceValue(t,ie,R.referenceValue);T({value:ie,referenceValue:ee,sections:w(ie,R.sections)})},ae=({activeSection:Y,newSectionValue:le,shouldGoToNextSection:ie})=>{ie&&Nz({},K,W,{sections:q,tempValueStrAndroid:null}))},se=Y=>L(le=>z({},le,{tempValueStrAndroid:Y}));return h.useEffect(()=>{const Y=w(R.value);L(le=>z({},le,{sections:Y}))},[g,t.locale,o]),h.useEffect(()=>{let Y;i.areValuesEqual(t,R.value,k)?Y=i.getTimezone(t,R.value)!==i.getTimezone(t,k):Y=!0,Y&&L(le=>z({},le,{value:k,referenceValue:a.updateReferenceValue(t,k,le.referenceValue),sections:w(k)}))},[k]),{state:R,activeSectionIndex:N,parsedSelectedSections:I,setSelectedSections:D,clearValue:_,clearActiveSection:V,updateSectionValue:ae,updateValueFromValueStr:H,setTempAndroidValueStr:se,getSectionsFromValue:w,sectionsValueBoundaries:$,localizedDigits:E,timezone:P}},a5=5e3,_i=e=>e.saveQuery!=null,s5=({sections:e,updateSectionValue:t,sectionsValueBoundaries:n,localizedDigits:r,setTempAndroidValueStr:o,timezone:i})=>{const a=gt(),[s,l]=h.useState(null),c=Se(()=>l(null));h.useEffect(()=>{var g;s!=null&&((g=e[s.sectionIndex])==null?void 0:g.type)!==s.sectionType&&c()},[e,s,c]),h.useEffect(()=>{if(s!=null){const g=setTimeout(()=>c(),a5);return()=>{clearTimeout(g)}}return()=>{}},[s,c]);const u=({keyPressed:g,sectionIndex:x},C,p)=>{const m=g.toLowerCase(),v=e[x];if(s!=null&&(!p||p(s.value))&&s.sectionIndex===x){const P=`${s.value}${m}`,k=C(P,v);if(!_i(k))return l({sectionIndex:x,value:P,sectionType:v.type}),k}const S=C(m,v);return _i(S)&&!S.saveQuery?(c(),null):(l({sectionIndex:x,value:m,sectionType:v.type}),_i(S)?null:S)},d=g=>{const x=(m,v,S)=>{const P=v.filter(k=>k.toLowerCase().startsWith(S));return P.length===0?{saveQuery:!1}:{sectionValue:P[0],shouldGoToNextSection:P.length===1}},C=(m,v,S,P)=>{const k=M=>y1(a,i,v.type,M);if(v.contentType==="letter")return x(v.format,k(v.format),m);if(S&&P!=null&&g1(a,S).contentType==="letter"){const M=k(S),E=x(S,M,m);return _i(E)?{saveQuery:!1}:z({},E,{sectionValue:P(E.sectionValue,M)})}return{saveQuery:!1}};return u(g,(m,v)=>{switch(v.type){case"month":{const S=P=>M0(a,P,a.formats.month,v.format);return C(m,v,a.formats.month,S)}case"weekDay":{const S=(P,k)=>k.indexOf(P).toString();return C(m,v,a.formats.weekday,S)}case"meridiem":return C(m,v);default:return{saveQuery:!1}}})},f=g=>{const x=(p,m)=>{const v=Si(p,r),S=Number(v),P=n[m.type]({currentDate:null,format:m.format,contentType:m.contentType});if(S>P.maximum)return{saveQuery:!1};if(SP.maximum||v.length===P.maximum.toString().length;return{sectionValue:x1(a,S,P,r,m),shouldGoToNextSection:k}};return u(g,(p,m)=>{if(m.contentType==="digit"||m.contentType==="digit-with-letter")return x(p,m);if(m.type==="month"){const v=b1(a,"digit","month","MM"),S=x(p,{type:m.type,format:"MM",hasLeadingZerosInFormat:v,hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(_i(S))return S;const P=M0(a,S.sectionValue,"MM",m.format);return z({},S,{sectionValue:P})}if(m.type==="weekDay"){const v=x(p,m);if(_i(v))return v;const S=Vd(a,m.format)[Number(v.sectionValue)-1];return z({},v,{sectionValue:S})}return{saveQuery:!1}},p=>E0(p,r))};return{applyCharacterEditing:Se(g=>{const x=e[g.sectionIndex],p=E0(g.keyPressed,r)?f(z({},g,{keyPressed:ig(g.keyPressed,r)})):d(g);if(p==null){o(null);return}t({activeSection:x,newSectionValue:p.sectionValue,shouldGoToNextSection:p.shouldGoToNextSection})}),resetCharacterQuery:c}},l5=e=>{const{internalProps:{disabled:t,readOnly:n=!1},forwardedProps:{sectionListRef:r,onBlur:o,onClick:i,onFocus:a,onInput:s,onPaste:l,focused:c,autoFocus:u=!1},fieldValueManager:d,applyCharacterEditing:f,resetCharacterQuery:y,setSelectedSections:g,parsedSelectedSections:x,state:C,clearActiveSection:p,clearValue:m,updateSectionValue:v,updateValueFromValueStr:S,sectionOrder:P,areAllSectionsEmpty:k,sectionsValueBoundaries:M}=e,E=h.useRef(null),$=He(r,E),w=uo(),R=gt(),L=zo(),[j,O]=h.useState(!1),D=h.useMemo(()=>({syncSelectionToDOM:()=>{if(!E.current)return;const F=document.getSelection();if(!F)return;if(x==null){F.rangeCount>0&&E.current.getRoot().contains(F.getRangeAt(0).startContainer)&&F.removeAllRanges(),j&&E.current.getRoot().blur();return}if(!E.current.getRoot().contains(Mn(document)))return;const K=new window.Range;let Q;x==="all"?Q=E.current.getRoot():C.sections[x].type==="empty"?Q=E.current.getSectionContainer(x):Q=E.current.getSectionContent(x),K.selectNodeContents(Q),Q.focus(),F.removeAllRanges(),F.addRange(K)},getActiveSectionIndexFromDOM:()=>{const F=Mn(document);return!F||!E.current||!E.current.getRoot().contains(F)?null:E.current.getSectionIndexFromDOMElement(F)},focusField:(F=0)=>{if(!E.current)return;const K=oh(F,C.sections);O(!0),E.current.getSectionContent(K).focus()},setSelectedSections:F=>{if(!E.current)return;const K=oh(F,C.sections);O((K==="all"?0:K)!==null),g(F)},isFieldFocused:()=>{const F=Mn(document);return!!E.current&&E.current.getRoot().contains(F)}}),[x,g,C.sections,j]),I=Se(F=>{if(!E.current)return;const K=C.sections[F];E.current.getSectionContent(F).innerHTML=K.value||K.placeholder,D.syncSelectionToDOM()}),N=Se((F,...K)=>{F.isDefaultPrevented()||!E.current||(O(!0),i==null||i(F,...K),x==="all"?setTimeout(()=>{const Q=document.getSelection().getRangeAt(0).startOffset;if(Q===0){g(P.startIndex);return}let te=0,ue=0;for(;ue{if(s==null||s(F),!E.current||x!=="all")return;const Q=F.target.textContent??"";E.current.getRoot().innerHTML=C.sections.map(te=>`${te.startSeparator}${te.value||te.placeholder}${te.endSeparator}`).join(""),D.syncSelectionToDOM(),Q.length===0||Q.charCodeAt(0)===10?(y(),m(),g("all")):Q.length>1?S(Q):f({keyPressed:Q,sectionIndex:0})}),A=Se(F=>{if(l==null||l(F),n||x!=="all"){F.preventDefault();return}const K=F.clipboardData.getData("text");F.preventDefault(),y(),S(K)}),_=Se((...F)=>{if(a==null||a(...F),j||!E.current)return;O(!0),E.current.getSectionIndexFromDOMElement(Mn(document))!=null||g(P.startIndex)}),V=Se((...F)=>{o==null||o(...F),setTimeout(()=>{if(!E.current)return;const K=Mn(document);!E.current.getRoot().contains(K)&&(O(!1),g(null))})}),H=Se(F=>K=>{K.isDefaultPrevented()||g(F)}),ae=Se(F=>{F.preventDefault()}),se=Se(F=>()=>{g(F)}),Y=Se(F=>{if(F.preventDefault(),n||t||typeof x!="number")return;const K=C.sections[x],Q=F.clipboardData.getData("text"),te=/^[a-zA-Z]+$/.test(Q),ue=/^[0-9]+$/.test(Q),J=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(Q);K.contentType==="letter"&&te||K.contentType==="digit"&&ue||K.contentType==="digit-with-letter"&&J?(y(),v({activeSection:K,newSectionValue:Q,shouldGoToNextSection:!0})):!te&&!ue&&(y(),S(Q))}),le=Se(F=>{F.preventDefault(),F.dataTransfer.dropEffect="none"}),ie=Se(F=>{if(!E.current)return;const K=F.target,Q=K.textContent??"",te=E.current.getSectionIndexFromDOMElement(K),ue=C.sections[te];if(n||!E.current){I(te);return}if(Q.length===0){if(ue.value===""){I(te);return}const J=F.nativeEvent.inputType;if(J==="insertParagraph"||J==="insertLineBreak"){I(te);return}y(),p();return}f({keyPressed:Q,sectionIndex:te}),I(te)});Vt(()=>{if(!(!j||!E.current)){if(x==="all")E.current.getRoot().focus();else if(typeof x=="number"){const F=E.current.getSectionContent(x);F&&F.focus()}}},[x,j]);const ee=h.useMemo(()=>C.sections.reduce((F,K)=>(F[K.type]=M[K.type]({currentDate:null,contentType:K.contentType,format:K.format}),F),{}),[M,C.sections]),q=x==="all",ne=h.useMemo(()=>C.sections.map((F,K)=>{const Q=!q&&!t&&!n;return{container:{"data-sectionindex":K,onClick:H(K)},content:{tabIndex:q||K>0?-1:0,contentEditable:!q&&!t&&!n,role:"spinbutton",id:`${L}-${F.type}`,"aria-labelledby":`${L}-${F.type}`,"aria-readonly":n,"aria-valuenow":NF(F,R),"aria-valuemin":ee[F.type].minimum,"aria-valuemax":ee[F.type].maximum,"aria-valuetext":F.value?jF(F,R):w.empty,"aria-label":w[F.type],"aria-disabled":t,spellCheck:Q?!1:void 0,autoCapitalize:Q?"off":void 0,autoCorrect:Q?"off":void 0,[parseInt(h.version,10)>=17?"enterKeyHint":"enterkeyhint"]:Q?"next":void 0,children:F.value||F.placeholder,onInput:ie,onPaste:Y,onFocus:se(K),onDragOver:le,onMouseUp:ae,inputMode:F.contentType==="letter"?"text":"numeric"},before:{children:F.startSeparator},after:{children:F.endSeparator}}}),[C.sections,se,Y,le,ie,H,ae,t,n,q,w,R,ee,L]),oe=Se(F=>{S(F.target.value)}),W=h.useMemo(()=>k?"":d.getV7HiddenInputValueFromSections(C.sections),[k,C.sections,d]);return h.useEffect(()=>{if(E.current==null)throw new Error(["MUI X: The `sectionListRef` prop has not been initialized by `PickersSectionList`","You probably tried to pass a component to the `textField` slot that contains an `` element instead of a `PickersSectionList`.","","If you want to keep using an `` HTML element for the editing, please remove the `enableAccessibleFieldDOMStructure` prop from your picker or field component:","","","","Learn more about the field accessible DOM structure on the MUI documentation: https://mui.com/x/react-date-pickers/fields/#fields-to-edit-a-single-element"].join(` -`));u&&E.current&&E.current.getSectionContent(P.startIndex).focus()},[]),{interactions:D,returnedValue:{autoFocus:u,readOnly:n,focused:c??j,sectionListRef:$,onBlur:V,onClick:N,onFocus:_,onInput:T,onPaste:A,enableAccessibleFieldDOMStructure:!0,elements:ne,tabIndex:x===0?-1:0,contentEditable:q,value:W,onChange:oe,areAllSectionsEmpty:k}}},ea=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),c5=(e,t,n)=>{let r=0,o=n?1:0;const i=[];for(let a=0;a{const t=ir(),n=h.useRef(),r=h.useRef(),{forwardedProps:{onFocus:o,onClick:i,onPaste:a,onBlur:s,inputRef:l,placeholder:c},internalProps:{readOnly:u=!1,disabled:d=!1},parsedSelectedSections:f,activeSectionIndex:y,state:g,fieldValueManager:x,valueManager:C,applyCharacterEditing:p,resetCharacterQuery:m,updateSectionValue:v,updateValueFromValueStr:S,clearActiveSection:P,clearValue:k,setTempAndroidValueStr:M,setSelectedSections:E,getSectionsFromValue:$,areAllSectionsEmpty:w,localizedDigits:R}=e,L=h.useRef(null),j=He(l,L),O=h.useMemo(()=>c5(g.sections,R,t),[g.sections,R,t]),D=h.useMemo(()=>({syncSelectionToDOM:()=>{if(!L.current)return;if(f==null){L.current.scrollLeft&&(L.current.scrollLeft=0);return}if(L.current!==Mn(document))return;const ie=L.current.scrollTop;if(f==="all")L.current.select();else{const ee=O[f],q=ee.type==="empty"?ee.startInInput-ee.startSeparator.length:ee.startInInput,ne=ee.type==="empty"?ee.endInInput+ee.endSeparator.length:ee.endInInput;(q!==L.current.selectionStart||ne!==L.current.selectionEnd)&&L.current===Mn(document)&&L.current.setSelectionRange(q,ne),clearTimeout(r.current),r.current=setTimeout(()=>{L.current&&L.current===Mn(document)&&L.current.selectionStart===L.current.selectionEnd&&(L.current.selectionStart!==q||L.current.selectionEnd!==ne)&&D.syncSelectionToDOM()})}L.current.scrollTop=ie},getActiveSectionIndexFromDOM:()=>{const ie=L.current.selectionStart??0,ee=L.current.selectionEnd??0;if(ie===0&&ee===0)return null;const q=ie<=O[0].startInInput?1:O.findIndex(ne=>ne.startInInput-ne.startSeparator.length>ie);return q===-1?O.length-1:q-1},focusField:(ie=0)=>{var ee;(ee=L.current)==null||ee.focus(),E(ie)},setSelectedSections:ie=>E(ie),isFieldFocused:()=>L.current===Mn(document)}),[L,f,O,E]),I=()=>{const ie=L.current.selectionStart??0;let ee;ie<=O[0].startInInput||ie>=O[O.length-1].endInInput?ee=1:ee=O.findIndex(ne=>ne.startInInput-ne.startSeparator.length>ie);const q=ee===-1?O.length-1:ee-1;E(q)},N=Se((...ie)=>{o==null||o(...ie);const ee=L.current;clearTimeout(n.current),n.current=setTimeout(()=>{!ee||ee!==L.current||y==null&&(ee.value.length&&Number(ee.selectionEnd)-Number(ee.selectionStart)===ee.value.length?E("all"):I())})}),T=Se((ie,...ee)=>{ie.isDefaultPrevented()||(i==null||i(ie,...ee),I())}),A=Se(ie=>{if(a==null||a(ie),ie.preventDefault(),u||d)return;const ee=ie.clipboardData.getData("text");if(typeof f=="number"){const q=g.sections[f],ne=/^[a-zA-Z]+$/.test(ee),oe=/^[0-9]+$/.test(ee),W=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(ee);if(q.contentType==="letter"&&ne||q.contentType==="digit"&&oe||q.contentType==="digit-with-letter"&&W){m(),v({activeSection:q,newSectionValue:ee,shouldGoToNextSection:!0});return}if(ne||oe)return}m(),S(ee)}),_=Se((...ie)=>{s==null||s(...ie),E(null)}),V=Se(ie=>{if(u)return;const ee=ie.target.value;if(ee===""){m(),k();return}const q=ie.nativeEvent.data,ne=q&&q.length>1,oe=ne?q:ee,W=ea(oe);if(y==null||ne){S(ne?q:W);return}let F;if(f==="all"&&W.length===1)F=W;else{const K=ea(x.getV6InputValueFromSections(O,R,t));let Q=-1,te=-1;for(let ge=0;geue.end)return;const fe=W.length-K.length+ue.end-ea(ue.endSeparator||"").length;F=W.slice(ue.start+ea(ue.startSeparator||"").length,fe)}if(F.length===0){AF()&&M(oe),m(),P();return}p({keyPressed:F,sectionIndex:y})}),H=h.useMemo(()=>c!==void 0?c:x.getV6InputValueFromSections($(C.emptyValue),R,t),[c,x,$,C.emptyValue,R,t]),ae=h.useMemo(()=>g.tempValueStrAndroid??x.getV6InputValueFromSections(g.sections,R,t),[g.sections,x,g.tempValueStrAndroid,R,t]);h.useEffect(()=>(L.current&&L.current===Mn(document)&&E("all"),()=>{clearTimeout(n.current),clearTimeout(r.current)}),[]);const se=h.useMemo(()=>y==null||g.sections[y].contentType==="letter"?"text":"numeric",[y,g.sections]),le=!(L.current&&L.current===Mn(document))&&w;return{interactions:D,returnedValue:{readOnly:u,onBlur:_,onClick:T,onFocus:N,onPaste:A,inputRef:j,enableAccessibleFieldDOMStructure:!1,placeholder:H,inputMode:se,autoComplete:"off",value:le?"":ae,onChange:V}}},d5=e=>{const t=gt(),{internalProps:n,internalProps:{unstableFieldRef:r,minutesStep:o,enableAccessibleFieldDOMStructure:i=!1,disabled:a=!1,readOnly:s=!1},forwardedProps:{onKeyDown:l,error:c,clearable:u,onClear:d},fieldValueManager:f,valueManager:y,validator:g}=e,x=ir(),C=i5(e),{state:p,activeSectionIndex:m,parsedSelectedSections:v,setSelectedSections:S,clearValue:P,clearActiveSection:k,updateSectionValue:M,setTempAndroidValueStr:E,sectionsValueBoundaries:$,localizedDigits:w,timezone:R}=C,L=s5({sections:p.sections,updateSectionValue:M,sectionsValueBoundaries:$,localizedDigits:w,setTempAndroidValueStr:E,timezone:R}),{resetCharacterQuery:j}=L,O=y.areValuesEqual(t,p.value,y.emptyValue),D=i?l5:u5,I=h.useMemo(()=>LF(p.sections,x&&!i),[p.sections,x,i]),{returnedValue:N,interactions:T}=D(z({},e,C,L,{areAllSectionsEmpty:O,sectionOrder:I})),A=Se(Y=>{if(l==null||l(Y),!a)switch(!0){case((Y.ctrlKey||Y.metaKey)&&String.fromCharCode(Y.keyCode)==="A"&&!Y.shiftKey&&!Y.altKey):{Y.preventDefault(),S("all");break}case Y.key==="ArrowRight":{if(Y.preventDefault(),v==null)S(I.startIndex);else if(v==="all")S(I.endIndex);else{const le=I.neighbors[v].rightIndex;le!==null&&S(le)}break}case Y.key==="ArrowLeft":{if(Y.preventDefault(),v==null)S(I.endIndex);else if(v==="all")S(I.startIndex);else{const le=I.neighbors[v].leftIndex;le!==null&&S(le)}break}case Y.key==="Delete":{if(Y.preventDefault(),s)break;v==null||v==="all"?P():k(),j();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(Y.key):{if(Y.preventDefault(),s||m==null)break;const le=p.sections[m],ie=f.getActiveDateManager(t,p,le),ee=RF(t,R,le,Y.key,$,w,ie.date,{minutesStep:o});M({activeSection:le,newSectionValue:ee,shouldGoToNextSection:!1});break}}});Vt(()=>{T.syncSelectionToDOM()});const{hasValidationError:_}=E1({props:n,validator:g,timezone:R,value:p.value,onError:n.onError}),V=h.useMemo(()=>c!==void 0?c:_,[_,c]);h.useEffect(()=>{!V&&m==null&&j()},[p.referenceValue,m,V]),h.useEffect(()=>{p.tempValueStrAndroid!=null&&m!=null&&(j(),k())},[p.sections]),h.useImperativeHandle(r,()=>({getSections:()=>p.sections,getActiveSectionIndex:T.getActiveSectionIndexFromDOM,setSelectedSections:T.setSelectedSections,focusField:T.focusField,isFieldFocused:T.isFieldFocused}));const H=Se((Y,...le)=>{Y.preventDefault(),d==null||d(Y,...le),P(),T.isFieldFocused()?S(I.startIndex):T.focusField(0)}),ae={onKeyDown:A,onClear:H,error:V,clearable:!!(u&&!O&&!s&&!a)},se={disabled:a,readOnly:s};return z({},e.forwardedProps,ae,se,N)},f5=["clearable","onClear","InputProps","sx","slots","slotProps"],p5=["ownerState"],h5=e=>{const t=uo(),{clearable:n,onClear:r,InputProps:o,sx:i,slots:a,slotProps:s}=e,l=Ae(e,f5),c=(a==null?void 0:a.clearButton)??Wa,u=Qe({elementType:c,externalSlotProps:s==null?void 0:s.clearButton,ownerState:{},className:"clearButton",additionalProps:{title:t.fieldClearLabel}}),d=Ae(u,p5),f=(a==null?void 0:a.clearIcon)??nF,y=Qe({elementType:f,externalSlotProps:s==null?void 0:s.clearIcon,ownerState:{}});return z({},l,{InputProps:z({},o,{endAdornment:b.jsxs(h.Fragment,{children:[n&&b.jsx(yw,{position:"end",sx:{marginRight:o!=null&&o.endAdornment?-1:-1.5},children:b.jsx(c,z({},d,{onClick:r,children:b.jsx(f,z({fontSize:"small"},y))}))}),o==null?void 0:o.endAdornment]})}),sx:[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(i)?i:[i]]})},m5=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef","enableAccessibleFieldDOMStructure","disabled","readOnly","dateSeparator"],g5=(e,t)=>h.useMemo(()=>{const n=z({},e),r={},o=i=>{n.hasOwnProperty(i)&&(r[i]=n[i],delete n[i])};return m5.forEach(o),k1.forEach(o),{forwardedProps:n,internalProps:r}},[e,t]),y5=h.createContext(null);function M1(e){const{contextValue:t,localeText:n,children:r}=e;return b.jsx(y5.Provider,{value:t,children:b.jsx(d1,{localeText:n,children:r})})}const v5=e=>{const t=gt(),n=Wl();return z({},e,{disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1,format:e.format??t.formats.keyboardDate,minDate:rr(t,e.minDate,n.minDate),maxDate:rr(t,e.maxDate,n.maxDate)})},x5=e=>{const t=v5(e),{forwardedProps:n,internalProps:r}=g5(t,"date");return d5({forwardedProps:n,internalProps:r,valueManager:Vr,fieldValueManager:BF,validator:Ul,valueType:"date"})};function S5(e){return ye("MuiPickersTextField",e)}me("MuiPickersTextField",["root","focused","disabled","error","required"]);function b5(e){return ye("MuiPickersInputBase",e)}const fa=me("MuiPickersInputBase",["root","focused","disabled","error","notchedOutline","sectionContent","sectionBefore","sectionAfter","adornedStart","adornedEnd","input"]);function w5(e){return ye("MuiPickersSectionList",e)}const vs=me("MuiPickersSectionList",["root","section","sectionContent"]),C5=["slots","slotProps","elements","sectionListRef"],R1=G("div",{name:"MuiPickersSectionList",slot:"Root",overridesResolver:(e,t)=>t.root})({direction:"ltr /*! @noflip */",outline:"none"}),T1=G("span",{name:"MuiPickersSectionList",slot:"Section",overridesResolver:(e,t)=>t.section})({}),D1=G("span",{name:"MuiPickersSectionList",slot:"SectionSeparator",overridesResolver:(e,t)=>t.sectionSeparator})({whiteSpace:"pre"}),I1=G("span",{name:"MuiPickersSectionList",slot:"SectionContent",overridesResolver:(e,t)=>t.sectionContent})({outline:"none"}),k5=e=>{const{classes:t}=e;return ve({root:["root"],section:["section"],sectionContent:["sectionContent"]},w5,t)};function P5(e){const{slots:t,slotProps:n,element:r,classes:o}=e,i=(t==null?void 0:t.section)??T1,a=Qe({elementType:i,externalSlotProps:n==null?void 0:n.section,externalForwardedProps:r.container,className:o.section,ownerState:{}}),s=(t==null?void 0:t.sectionContent)??I1,l=Qe({elementType:s,externalSlotProps:n==null?void 0:n.sectionContent,externalForwardedProps:r.content,additionalProps:{suppressContentEditableWarning:!0},className:o.sectionContent,ownerState:{}}),c=(t==null?void 0:t.sectionSeparator)??D1,u=Qe({elementType:c,externalSlotProps:n==null?void 0:n.sectionSeparator,externalForwardedProps:r.before,ownerState:{position:"before"}}),d=Qe({elementType:c,externalSlotProps:n==null?void 0:n.sectionSeparator,externalForwardedProps:r.after,ownerState:{position:"after"}});return b.jsxs(i,z({},a,{children:[b.jsx(c,z({},u)),b.jsx(s,z({},l)),b.jsx(c,z({},d))]}))}const E5=h.forwardRef(function(t,n){const r=mt({props:t,name:"MuiPickersSectionList"}),{slots:o,slotProps:i,elements:a,sectionListRef:s}=r,l=Ae(r,C5),c=k5(r),u=h.useRef(null),d=He(n,u),f=x=>{if(!u.current)throw new Error(`MUI X: Cannot call sectionListRef.${x} before the mount of the component.`);return u.current};h.useImperativeHandle(s,()=>({getRoot(){return f("getRoot")},getSectionContainer(x){return f("getSectionContainer").querySelector(`.${vs.section}[data-sectionindex="${x}"]`)},getSectionContent(x){return f("getSectionContent").querySelector(`.${vs.section}[data-sectionindex="${x}"] .${vs.sectionContent}`)},getSectionIndexFromDOMElement(x){const C=f("getSectionIndexFromDOMElement");if(x==null||!C.contains(x))return null;let p=null;return x.classList.contains(vs.section)?p=x:x.classList.contains(vs.sectionContent)&&(p=x.parentElement),p==null?null:Number(p.dataset.sectionindex)}}));const y=(o==null?void 0:o.root)??R1,g=Qe({elementType:y,externalSlotProps:i==null?void 0:i.root,externalForwardedProps:l,additionalProps:{ref:d,suppressContentEditableWarning:!0},className:c.root,ownerState:{}});return b.jsx(y,z({},g,{children:g.contentEditable?a.map(({content:x,before:C,after:p})=>`${C.children}${x.children}${p.children}`).join(""):b.jsx(h.Fragment,{children:a.map((x,C)=>b.jsx(P5,{slots:o,slotProps:i,element:x,classes:c},C))})}))}),M5=["elements","areAllSectionsEmpty","defaultValue","label","value","onChange","id","autoFocus","endAdornment","startAdornment","renderSuffix","slots","slotProps","contentEditable","tabIndex","onInput","onPaste","onKeyDown","fullWidth","name","readOnly","inputProps","inputRef","sectionListRef"],R5=e=>Math.round(e*1e5)/1e5,Wd=G("div",{name:"MuiPickersInputBase",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>z({},e.typography.body1,{color:(e.vars||e).palette.text.primary,cursor:"text",padding:0,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",boxSizing:"border-box",letterSpacing:`${R5(.15/16)}em`,variants:[{props:{fullWidth:!0},style:{width:"100%"}}]})),sg=G(R1,{name:"MuiPickersInputBase",slot:"SectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})(({theme:e})=>({padding:"4px 0 5px",fontFamily:e.typography.fontFamily,fontSize:"inherit",lineHeight:"1.4375em",flexGrow:1,outline:"none",display:"flex",flexWrap:"nowrap",overflow:"hidden",letterSpacing:"inherit",width:"182px",variants:[{props:{isRtl:!0},style:{textAlign:"right /*! @noflip */"}},{props:{size:"small"},style:{paddingTop:1}},{props:{adornedStart:!1,focused:!1,filled:!1},style:{color:"currentColor",opacity:0}},{props:({adornedStart:t,focused:n,filled:r,label:o})=>!t&&!n&&!r&&o==null,style:e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:e.palette.mode==="light"?.42:.5}}]})),T5=G(T1,{name:"MuiPickersInputBase",slot:"Section",overridesResolver:(e,t)=>t.section})(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit",letterSpacing:"inherit",lineHeight:"1.4375em",display:"flex"})),D5=G(I1,{name:"MuiPickersInputBase",slot:"SectionContent",overridesResolver:(e,t)=>t.content})(({theme:e})=>({fontFamily:e.typography.fontFamily,lineHeight:"1.4375em",letterSpacing:"inherit",width:"fit-content",outline:"none"})),I5=G(D1,{name:"MuiPickersInputBase",slot:"Separator",overridesResolver:(e,t)=>t.separator})(()=>({whiteSpace:"pre",letterSpacing:"inherit"})),O5=G("input",{name:"MuiPickersInputBase",slot:"Input",overridesResolver:(e,t)=>t.hiddenInput})(z({},aR)),$5=e=>{const{focused:t,disabled:n,error:r,classes:o,fullWidth:i,readOnly:a,color:s,size:l,endAdornment:c,startAdornment:u}=e,d={root:["root",t&&!n&&"focused",n&&"disabled",a&&"readOnly",r&&"error",i&&"fullWidth",`color${ce(s)}`,l==="small"&&"inputSizeSmall",!!u&&"adornedStart",!!c&&"adornedEnd"],notchedOutline:["notchedOutline"],input:["input"],sectionsContainer:["sectionsContainer"],sectionContent:["sectionContent"],sectionBefore:["sectionBefore"],sectionAfter:["sectionAfter"]};return ve(d,b5,o)},lg=h.forwardRef(function(t,n){const r=mt({props:t,name:"MuiPickersInputBase"}),{elements:o,areAllSectionsEmpty:i,value:a,onChange:s,id:l,endAdornment:c,startAdornment:u,renderSuffix:d,slots:f,slotProps:y,contentEditable:g,tabIndex:x,onInput:C,onPaste:p,onKeyDown:m,name:v,readOnly:S,inputProps:P,inputRef:k,sectionListRef:M}=r,E=Ae(r,M5),$=h.useRef(null),w=He(n,$),R=He(P==null?void 0:P.ref,k),L=ir(),j=Sr();if(!j)throw new Error("MUI X: PickersInputBase should always be used inside a PickersTextField component");const O=_=>{var V;if(j.disabled){_.stopPropagation();return}(V=j.onFocus)==null||V.call(j,_)};h.useEffect(()=>{j&&j.setAdornedStart(!!u)},[j,u]),h.useEffect(()=>{j&&(i?j.onEmpty():j.onFilled())},[j,i]);const D=z({},r,j,{isRtl:L}),I=$5(D),N=(f==null?void 0:f.root)||Wd,T=Qe({elementType:N,externalSlotProps:y==null?void 0:y.root,externalForwardedProps:E,additionalProps:{"aria-invalid":j.error,ref:w},className:I.root,ownerState:D}),A=(f==null?void 0:f.input)||sg;return b.jsxs(N,z({},T,{children:[u,b.jsx(E5,{sectionListRef:M,elements:o,contentEditable:g,tabIndex:x,className:I.sectionsContainer,onFocus:O,onBlur:j.onBlur,onInput:C,onPaste:p,onKeyDown:m,slots:{root:A,section:T5,sectionContent:D5,sectionSeparator:I5},slotProps:{root:{ownerState:D},sectionContent:{className:fa.sectionContent},sectionSeparator:({position:_})=>({className:_==="before"?fa.sectionBefore:fa.sectionAfter})}}),c,d?d(z({},j)):null,b.jsx(O5,z({name:v,className:I.input,value:a,onChange:s,id:l,"aria-hidden":"true",tabIndex:-1,readOnly:S,required:j.required,disabled:j.disabled},P,{ref:R}))]}))});function A5(e){return ye("MuiPickersOutlinedInput",e)}const lr=z({},fa,me("MuiPickersOutlinedInput",["root","notchedOutline","input"])),L5=["children","className","label","notched","shrink"],j5=G("fieldset",{name:"MuiPickersOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%",borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),I0=G("span")(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit"})),N5=G("legend")(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:{withLabel:!1},style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:{withLabel:!0},style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:{withLabel:!0,notched:!0},style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]}));function F5(e){const{className:t,label:n}=e,r=Ae(e,L5),o=n!=null&&n!=="",i=z({},e,{withLabel:o});return b.jsx(j5,z({"aria-hidden":!0,className:t},r,{ownerState:i,children:b.jsx(N5,{ownerState:i,children:o?b.jsx(I0,{children:n}):b.jsx(I0,{className:"notranslate",children:"​"})})}))}const B5=["label","autoFocus","ownerState","notched"],_5=G(Wd,{name:"MuiPickersOutlinedInput",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{padding:"0 14px",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${lr.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${lr.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${lr.focused} .${lr.notchedOutline}`]:{borderStyle:"solid",borderWidth:2},[`&.${lr.disabled}`]:{[`& .${lr.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled},"*":{color:(e.vars||e).palette.action.disabled}},[`&.${lr.error} .${lr.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},variants:Object.keys((e.vars??e).palette).filter(n=>{var r;return((r=(e.vars??e).palette[n])==null?void 0:r.main)??!1}).map(n=>({props:{color:n},style:{[`&.${lr.focused}:not(.${lr.error}) .${lr.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}}))}}),z5=G(sg,{name:"MuiPickersOutlinedInput",slot:"SectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})({padding:"16.5px 0",variants:[{props:{size:"small"},style:{padding:"8.5px 0"}}]}),V5=e=>{const{classes:t}=e,r=ve({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},A5,t);return z({},t,r)},O1=h.forwardRef(function(t,n){const r=mt({props:t,name:"MuiPickersOutlinedInput"}),{label:o,ownerState:i,notched:a}=r,s=Ae(r,B5),l=Sr(),c=z({},r,i,l,{color:(l==null?void 0:l.color)||"primary"}),u=V5(c);return b.jsx(lg,z({slots:{root:_5,input:z5},renderSuffix:d=>b.jsx(F5,{shrink:!!(a||d.adornedStart||d.focused||d.filled),notched:!!(a||d.adornedStart||d.focused||d.filled),className:u.notchedOutline,label:o!=null&&o!==""&&(l!=null&&l.required)?b.jsxs(h.Fragment,{children:[o," ","*"]}):o,ownerState:c})},s,{label:o,classes:u,ref:n}))});O1.muiName="Input";function W5(e){return ye("MuiPickersFilledInput",e)}const Ko=z({},fa,me("MuiPickersFilledInput",["root","underline","input"])),U5=["label","autoFocus","disableUnderline","ownerState"],H5=G(Wd,{name:"MuiPickersFilledInput",slot:"Root",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>_c(e)&&e!=="disableUnderline"})(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:o,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${Ko.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${Ko.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:i},variants:[...Object.keys((e.vars??e).palette).filter(a=>(e.vars??e).palette[a].main).map(a=>{var s;return{props:{color:a,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(s=(e.vars||e).palette[a])==null?void 0:s.main}`}}}}),{props:{disableUnderline:!1},style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Ko.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ko.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Ko.disabled}, .${Ko.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Ko.disabled}:before`]:{borderBottomStyle:"dotted"}}},{props:({startAdornment:a})=>!!a,style:{paddingLeft:12}},{props:({endAdornment:a})=>!!a,style:{paddingRight:12}}]}}),Y5=G(sg,{name:"MuiPickersFilledInput",slot:"sectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({startAdornment:e})=>!!e,style:{paddingLeft:0}},{props:({endAdornment:e})=>!!e,style:{paddingRight:0}},{props:{hiddenLabel:!0},style:{paddingTop:16,paddingBottom:17}},{props:{hiddenLabel:!0,size:"small"},style:{paddingTop:8,paddingBottom:9}}]}),K5=e=>{const{classes:t,disableUnderline:n}=e,o=ve({root:["root",!n&&"underline"],input:["input"]},W5,t);return z({},t,o)},$1=h.forwardRef(function(t,n){const r=mt({props:t,name:"MuiPickersFilledInput"}),{label:o,disableUnderline:i=!1,ownerState:a}=r,s=Ae(r,U5),l=Sr(),c=z({},r,a,l,{color:(l==null?void 0:l.color)||"primary"}),u=K5(c);return b.jsx(lg,z({slots:{root:H5,input:Y5},slotProps:{root:{disableUnderline:i}}},s,{label:o,classes:u,ref:n}))});$1.muiName="Input";function G5(e){return ye("MuiPickersFilledInput",e)}const xs=z({},fa,me("MuiPickersInput",["root","input"])),Q5=["label","autoFocus","disableUnderline","ownerState"],X5=G(Wd,{name:"MuiPickersInput",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),{"label + &":{marginTop:16},variants:[...Object.keys((e.vars??e).palette).filter(r=>(e.vars??e).palette[r].main).map(r=>({props:{color:r},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}})),{props:{disableUnderline:!1},style:{"&::after":{background:"red",left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${xs.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${xs.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${xs.disabled}, .${xs.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${xs.disabled}:before`]:{borderBottomStyle:"dotted"}}}]}}),q5=e=>{const{classes:t,disableUnderline:n}=e,o=ve({root:["root",!n&&"underline"],input:["input"]},G5,t);return z({},t,o)},A1=h.forwardRef(function(t,n){const r=mt({props:t,name:"MuiPickersInput"}),{label:o,disableUnderline:i=!1,ownerState:a}=r,s=Ae(r,Q5),l=Sr(),c=z({},r,a,l,{disableUnderline:i,color:(l==null?void 0:l.color)||"primary"}),u=q5(c);return b.jsx(lg,z({slots:{root:X5}},s,{label:o,classes:u,ref:n}))});A1.muiName="Input";const Z5=["onFocus","onBlur","className","color","disabled","error","variant","required","InputProps","inputProps","inputRef","sectionListRef","elements","areAllSectionsEmpty","onClick","onKeyDown","onKeyUp","onPaste","onInput","endAdornment","startAdornment","tabIndex","contentEditable","focused","value","onChange","fullWidth","id","name","helperText","FormHelperTextProps","label","InputLabelProps"],J5={standard:A1,filled:$1,outlined:O1},eB=G($o,{name:"MuiPickersTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),tB=e=>{const{focused:t,disabled:n,classes:r,required:o}=e;return ve({root:["root",t&&!n&&"focused",n&&"disabled",o&&"required"]},S5,r)},nB=h.forwardRef(function(t,n){const r=mt({props:t,name:"MuiPickersTextField"}),{onFocus:o,onBlur:i,className:a,color:s="primary",disabled:l=!1,error:c=!1,variant:u="outlined",required:d=!1,InputProps:f,inputProps:y,inputRef:g,sectionListRef:x,elements:C,areAllSectionsEmpty:p,onClick:m,onKeyDown:v,onKeyUp:S,onPaste:P,onInput:k,endAdornment:M,startAdornment:E,tabIndex:$,contentEditable:w,focused:R,value:L,onChange:j,fullWidth:O,id:D,name:I,helperText:N,FormHelperTextProps:T,label:A,InputLabelProps:_}=r,V=Ae(r,Z5),H=h.useRef(null),ae=He(n,H),se=zo(D),Y=N&&se?`${se}-helper-text`:void 0,le=A&&se?`${se}-label`:void 0,ie=z({},r,{color:s,disabled:l,error:c,focused:R,required:d,variant:u}),ee=tB(ie),q=J5[u];return b.jsxs(eB,z({className:pe(ee.root,a),ref:ae,focused:R,onFocus:o,onBlur:i,disabled:l,variant:u,error:c,color:s,fullWidth:O,required:d,ownerState:ie},V,{children:[b.jsx(Am,z({htmlFor:se,id:le},_,{children:A})),b.jsx(q,z({elements:C,areAllSectionsEmpty:p,onClick:m,onKeyDown:v,onKeyUp:S,onInput:k,onPaste:P,endAdornment:M,startAdornment:E,tabIndex:$,contentEditable:w,value:L,onChange:j,id:se,fullWidth:O,inputProps:y,inputRef:g,sectionListRef:x,label:A,name:I,role:"group","aria-labelledby":le},f)),N&&b.jsx(gw,z({id:Y},T,{children:N}))]}))}),rB=["enableAccessibleFieldDOMStructure"],oB=["InputProps","readOnly"],iB=["onPaste","onKeyDown","inputMode","readOnly","InputProps","inputProps","inputRef"],aB=e=>{let{enableAccessibleFieldDOMStructure:t}=e,n=Ae(e,rB);if(t){const{InputProps:d,readOnly:f}=n,y=Ae(n,oB);return z({},y,{InputProps:z({},d??{},{readOnly:f})})}const{onPaste:r,onKeyDown:o,inputMode:i,readOnly:a,InputProps:s,inputProps:l,inputRef:c}=n,u=Ae(n,iB);return z({},u,{InputProps:z({},s??{},{readOnly:a}),inputProps:z({},l??{},{inputMode:i,onPaste:r,onKeyDown:o,ref:c})})},sB=["slots","slotProps","InputProps","inputProps"],L1=h.forwardRef(function(t,n){const r=mt({props:t,name:"MuiDateField"}),{slots:o,slotProps:i,InputProps:a,inputProps:s}=r,l=Ae(r,sB),c=r,u=(o==null?void 0:o.textField)??(t.enableAccessibleFieldDOMStructure?nB:Fr),d=Qe({elementType:u,externalSlotProps:i==null?void 0:i.textField,externalForwardedProps:l,additionalProps:{ref:n},ownerState:c});d.inputProps=z({},s,d.inputProps),d.InputProps=z({},a,d.InputProps);const f=x5(d),y=aB(f),g=h5(z({},y,{slots:o,slotProps:i}));return b.jsx(u,z({},g))}),j1=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:i,disablePast:a,timezone:s})=>{const l=Mi();return h.useCallback(c=>Ul({adapter:l,value:c,timezone:s,props:{shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:i,disablePast:a}})!==null,[l,e,t,n,r,o,i,a,s])},lB=(e,t,n)=>(r,o)=>{switch(o.type){case"changeMonth":return z({},r,{slideDirection:o.direction,currentMonth:o.newMonth,isMonthSwitchingAnimating:!e});case"changeMonthTimezone":{const i=o.newTimezone;if(n.getTimezone(r.currentMonth)===i)return r;let a=n.setTimezone(r.currentMonth,i);return n.getMonth(a)!==n.getMonth(r.currentMonth)&&(a=n.setMonth(a,n.getMonth(r.currentMonth))),z({},r,{currentMonth:a})}case"finishMonthSwitchingAnimation":return z({},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 z({},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")}},cB=e=>{const{value:t,referenceDate:n,disableFuture:r,disablePast:o,disableSwitchToMonthOnDayFocus:i=!1,maxDate:a,minDate:s,onMonthChange:l,reduceAnimations:c,shouldDisableDate:u,timezone:d}=e,f=gt(),y=h.useRef(lB(!!c,i,f)).current,g=h.useMemo(()=>Vr.getInitialReferenceValue({value:t,utils:f,timezone:d,props:e,referenceDate:n,granularity:Tr.day}),[n,d]),[x,C]=h.useReducer(y,{isMonthSwitchingAnimating:!1,focusedDay:g,currentMonth:f.startOfMonth(g),slideDirection:"left"});h.useEffect(()=>{C({type:"changeMonthTimezone",newTimezone:f.getTimezone(g)})},[g,f]);const p=h.useCallback(k=>{C(z({type:"changeMonth"},k)),l&&l(k.newMonth)},[l]),m=h.useCallback(k=>{const M=k;f.isSameMonth(M,x.currentMonth)||p({newMonth:f.startOfMonth(M),direction:f.isAfterDay(M,x.currentMonth)?"left":"right"})},[x.currentMonth,p,f]),v=j1({shouldDisableDate:u,minDate:s,maxDate:a,disableFuture:r,disablePast:o,timezone:d}),S=h.useCallback(()=>{C({type:"finishMonthSwitchingAnimation"})},[]),P=Se((k,M)=>{v(k)||C({type:"changeFocusedDay",focusedDay:k,withoutMonthSwitchingAnimation:M})});return{referenceDate:g,calendarState:x,changeMonth:m,changeFocusedDay:P,isDateDisabled:v,onMonthSwitchingAnimationEnd:S,handleChangeMonth:p}},uB=e=>ye("MuiPickersFadeTransitionGroup",e);me("MuiPickersFadeTransitionGroup",["root"]);const dB=e=>{const{classes:t}=e;return ve({root:["root"]},uB,t)},fB=G(Ll,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function N1(e){const t=mt({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:r,reduceAnimations:o,transKey:i}=t,a=dB(t),s=xr();return o?n:b.jsx(fB,{className:pe(a.root,r),children:b.jsx(Ha,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:s.transitions.duration.enteringScreen,enter:s.transitions.duration.enteringScreen,exit:0},children:n},i)})}const pB=e=>ye("MuiPickersSlideTransition",e),Wn=me("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),hB=["children","className","reduceAnimations","slideDirection","transKey","classes"],mB=e=>{const{classes:t,slideDirection:n}=e,r={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return ve(r,pB,t)},gB=G(Ll,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${Wn["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${Wn["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${Wn.slideEnterActive}`]:t.slideEnterActive},{[`.${Wn.slideExit}`]:t.slideExit},{[`.${Wn["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${Wn["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},[`& .${Wn["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${Wn["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${Wn.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${Wn.slideExit}`]:{transform:"translate(0%)"},[`& .${Wn["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${Wn["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function yB(e){const t=mt({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:r,reduceAnimations:o,transKey:i}=t,a=Ae(t,hB),s=mB(t),l=xr();if(o)return b.jsx("div",{className:pe(s.root,r),children:n});const c={exit:s.exit,enterActive:s.enterActive,enter:s.enter,exitActive:s.exitActive};return b.jsx(gB,{className:pe(s.root,r),childFactory:u=>h.cloneElement(u,{classNames:c}),role:"presentation",children:b.jsx(bm,z({mountOnEnter:!0,unmountOnExit:!0,timeout:l.transitions.duration.complex,classNames:c},a,{children:n}),i)})}const vB=e=>ye("MuiDayCalendar",e);me("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const xB=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],SB=["ownerState"],bB=e=>{const{classes:t}=e;return ve({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},vB,t)},F1=(kl+_d*2)*6,wB=G("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),CB=G("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),kB=G(Ye,{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})),PB=G(Ye,{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})),EB=G(Ye,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(e,t)=>t.weekNumber})(({theme:e})=>z({},e.typography.caption,{width:kl,height:kl,padding:0,margin:`0 ${_d}px`,color:e.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),MB=G("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:F1}),RB=G(yB,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:F1}),TB=G("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),DB=G("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${_d}px 0`,display:"flex",justifyContent:"center"});function IB(e){let{parentProps:t,day:n,focusableDay:r,selectedDays:o,isDateDisabled:i,currentMonthNumber:a,isViewFocused:s}=e,l=Ae(e,xB);const{disabled:c,disableHighlightToday:u,isMonthSwitchingAnimating:d,showDaysOutsideCurrentMonth:f,slots:y,slotProps:g,timezone:x}=t,C=gt(),p=Bd(x),m=r!==null&&C.isSameDay(n,r),v=o.some(L=>C.isSameDay(L,n)),S=C.isSameDay(n,p),P=(y==null?void 0:y.day)??QF,k=Qe({elementType:P,externalSlotProps:g==null?void 0:g.day,additionalProps:z({disableHighlightToday:u,showDaysOutsideCurrentMonth:f,role:"gridcell",isAnimating:d,"data-timestamp":C.toJsDate(n).valueOf()},l),ownerState:z({},t,{day:n,selected:v})}),M=Ae(k,SB),E=h.useMemo(()=>c||i(n),[c,i,n]),$=h.useMemo(()=>C.getMonth(n)!==a,[C,n,a]),w=h.useMemo(()=>{const L=C.startOfMonth(C.setMonth(n,a));return f?C.isSameDay(n,C.startOfWeek(L)):C.isSameDay(n,L)},[a,n,f,C]),R=h.useMemo(()=>{const L=C.endOfMonth(C.setMonth(n,a));return f?C.isSameDay(n,C.endOfWeek(L)):C.isSameDay(n,L)},[a,n,f,C]);return b.jsx(P,z({},M,{day:n,disabled:E,autoFocus:s&&m,today:S,outsideCurrentMonth:$,isFirstVisibleCell:w,isLastVisibleCell:R,selected:v,tabIndex:m?0:-1,"aria-selected":v,"aria-current":S?"date":void 0}))}function OB(e){const t=mt({props:e,name:"MuiDayCalendar"}),n=gt(),{onFocusedDayChange:r,className:o,currentMonth:i,selectedDays:a,focusedDay:s,loading:l,onSelectedDaysChange:c,onMonthSwitchingAnimationEnd:u,readOnly:d,reduceAnimations:f,renderLoading:y=()=>b.jsx("span",{children:"..."}),slideDirection:g,TransitionProps:x,disablePast:C,disableFuture:p,minDate:m,maxDate:v,shouldDisableDate:S,shouldDisableMonth:P,shouldDisableYear:k,dayOfWeekFormatter:M=te=>n.format(te,"weekdayShort").charAt(0).toUpperCase(),hasFocus:E,onFocusedViewChange:$,gridLabelId:w,displayWeekNumber:R,fixedWeekNumber:L,autoFocus:j,timezone:O}=t,D=Bd(O),I=bB(t),N=ir(),T=j1({shouldDisableDate:S,shouldDisableMonth:P,shouldDisableYear:k,minDate:m,maxDate:v,disablePast:C,disableFuture:p,timezone:O}),A=uo(),[_,V]=io({name:"DayCalendar",state:"hasFocus",controlled:E,default:j??!1}),[H,ae]=h.useState(()=>s||D),se=Se(te=>{d||c(te)}),Y=te=>{T(te)||(r(te),ae(te),$==null||$(!0),V(!0))},le=Se((te,ue)=>{switch(te.key){case"ArrowUp":Y(n.addDays(ue,-7)),te.preventDefault();break;case"ArrowDown":Y(n.addDays(ue,7)),te.preventDefault();break;case"ArrowLeft":{const J=n.addDays(ue,N?1:-1),fe=n.addMonths(ue,N?1:-1),ge=Hs({utils:n,date:J,minDate:N?J:n.startOfMonth(fe),maxDate:N?n.endOfMonth(fe):J,isDateDisabled:T,timezone:O});Y(ge||J),te.preventDefault();break}case"ArrowRight":{const J=n.addDays(ue,N?-1:1),fe=n.addMonths(ue,N?-1:1),ge=Hs({utils:n,date:J,minDate:N?n.startOfMonth(fe):J,maxDate:N?J:n.endOfMonth(fe),isDateDisabled:T,timezone:O});Y(ge||J),te.preventDefault();break}case"Home":Y(n.startOfWeek(ue)),te.preventDefault();break;case"End":Y(n.endOfWeek(ue)),te.preventDefault();break;case"PageUp":Y(n.addMonths(ue,1)),te.preventDefault();break;case"PageDown":Y(n.addMonths(ue,-1)),te.preventDefault();break}}),ie=Se((te,ue)=>Y(ue)),ee=Se((te,ue)=>{_&&n.isSameDay(H,ue)&&($==null||$(!1))}),q=n.getMonth(i),ne=n.getYear(i),oe=h.useMemo(()=>a.filter(te=>!!te).map(te=>n.startOfDay(te)),[n,a]),W=`${ne}-${q}`,F=h.useMemo(()=>h.createRef(),[W]),K=h.useMemo(()=>{const te=n.startOfMonth(i),ue=n.endOfMonth(i);return T(H)||n.isAfterDay(H,ue)||n.isBeforeDay(H,te)?Hs({utils:n,date:H,minDate:te,maxDate:ue,disablePast:C,disableFuture:p,isDateDisabled:T,timezone:O}):H},[i,p,C,H,T,n,O]),Q=h.useMemo(()=>{const te=n.getWeekArray(i);let ue=n.addMonths(i,1);for(;L&&te.length{te.lengthb.jsx(kB,{variant:"caption",role:"columnheader","aria-label":n.format(te,"weekday"),className:I.weekDayLabel,children:M(te)},ue.toString()))]}),l?b.jsx(MB,{className:I.loadingContainer,children:y()}):b.jsx(RB,z({transKey:W,onExited:u,reduceAnimations:f,slideDirection:g,className:pe(o,I.slideTransition)},x,{nodeRef:F,children:b.jsx(TB,{ref:F,role:"rowgroup",className:I.monthContainer,children:Q.map((te,ue)=>b.jsxs(DB,{role:"row",className:I.weekContainer,"aria-rowindex":ue+1,children:[R&&b.jsx(EB,{className:I.weekNumber,role:"rowheader","aria-label":A.calendarWeekNumberAriaLabelText(n.getWeekNumber(te[0])),children:A.calendarWeekNumberText(n.getWeekNumber(te[0]))}),te.map((J,fe)=>b.jsx(IB,{parentProps:t,day:J,selectedDays:oe,focusableDay:K,onKeyDown:le,onFocus:ie,onBlur:ee,onDaySelect:se,isDateDisabled:T,currentMonthNumber:q,isViewFocused:_,"aria-colindex":fe+1},J.toString()))]},`week-${te[0]}`))})}))]})}function $B(e){return ye("MuiPickersMonth",e)}const Cc=me("MuiPickersMonth",["root","monthButton","disabled","selected"]),AB=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow","slots","slotProps"],LB=e=>{const{disabled:t,selected:n,classes:r}=e;return ve({root:["root"],monthButton:["monthButton",t&&"disabled",n&&"selected"]},$B,r)},jB=G("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%"}}]}),NB=G("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,t)=>[t.monthButton,{[`&.${Cc.disabled}`]:t.disabled},{[`&.${Cc.selected}`]:t.selected}]})(({theme:e})=>z({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})`:Be(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Be(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${Cc.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${Cc.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),FB=h.memo(function(t){const n=mt({props:t,name:"MuiPickersMonth"}),{autoFocus:r,className:o,children:i,disabled:a,selected:s,value:l,tabIndex:c,onClick:u,onKeyDown:d,onFocus:f,onBlur:y,"aria-current":g,"aria-label":x,slots:C,slotProps:p}=n,m=Ae(n,AB),v=h.useRef(null),S=LB(n);Vt(()=>{var M;r&&((M=v.current)==null||M.focus())},[r]);const P=(C==null?void 0:C.monthButton)??NB,k=Qe({elementType:P,externalSlotProps:p==null?void 0:p.monthButton,additionalProps:{children:i,disabled:a,tabIndex:c,ref:v,type:"button",role:"radio","aria-current":g,"aria-checked":s,"aria-label":x,onClick:M=>u(M,l),onKeyDown:M=>d(M,l),onFocus:M=>f(M,l),onBlur:M=>y(M,l)},ownerState:n,className:S.monthButton});return b.jsx(jB,z({className:pe(S.root,o),ownerState:n},m,{children:b.jsx(P,z({},k))}))});function BB(e){return ye("MuiMonthCalendar",e)}me("MuiMonthCalendar",["root"]);const _B=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId","slots","slotProps"],zB=e=>{const{classes:t}=e;return ve({root:["root"]},BB,t)};function VB(e,t){const n=gt(),r=Wl(),o=mt({props:e,name:t});return z({disableFuture:!1,disablePast:!1},o,{minDate:rr(n,o.minDate,r.minDate),maxDate:rr(n,o.maxDate,r.maxDate)})}const WB=G("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:zd,boxSizing:"border-box"}),UB=h.forwardRef(function(t,n){const r=VB(t,"MuiMonthCalendar"),{className:o,value:i,defaultValue:a,referenceDate:s,disabled:l,disableFuture:c,disablePast:u,maxDate:d,minDate:f,onChange:y,shouldDisableMonth:g,readOnly:x,autoFocus:C=!1,onMonthFocus:p,hasFocus:m,onFocusedViewChange:v,monthsPerRow:S=3,timezone:P,gridLabelId:k,slots:M,slotProps:E}=r,$=Ae(r,_B),{value:w,handleValueChange:R,timezone:L}=og({name:"MonthCalendar",timezone:P,value:i,defaultValue:a,referenceDate:s,onChange:y,valueManager:Vr}),j=Bd(L),O=ir(),D=gt(),I=h.useMemo(()=>Vr.getInitialReferenceValue({value:w,utils:D,props:r,timezone:L,referenceDate:s,granularity:Tr.month}),[]),N=r,T=zB(N),A=h.useMemo(()=>D.getMonth(j),[D,j]),_=h.useMemo(()=>w!=null?D.getMonth(w):null,[w,D]),[V,H]=h.useState(()=>_||D.getMonth(I)),[ae,se]=io({name:"MonthCalendar",state:"hasFocus",controlled:m,default:C??!1}),Y=Se(W=>{se(W),v&&v(W)}),le=h.useCallback(W=>{const F=D.startOfMonth(u&&D.isAfter(j,f)?j:f),K=D.startOfMonth(c&&D.isBefore(j,d)?j:d),Q=D.startOfMonth(W);return D.isBefore(Q,F)||D.isAfter(Q,K)?!0:g?g(Q):!1},[c,u,d,f,j,g,D]),ie=Se((W,F)=>{if(x)return;const K=D.setMonth(w??I,F);R(K)}),ee=Se(W=>{le(D.setMonth(w??I,W))||(H(W),Y(!0),p&&p(W))});h.useEffect(()=>{H(W=>_!==null&&W!==_?_:W)},[_]);const q=Se((W,F)=>{switch(W.key){case"ArrowUp":ee((12+F-3)%12),W.preventDefault();break;case"ArrowDown":ee((12+F+3)%12),W.preventDefault();break;case"ArrowLeft":ee((12+F+(O?1:-1))%12),W.preventDefault();break;case"ArrowRight":ee((12+F+(O?-1:1))%12),W.preventDefault();break}}),ne=Se((W,F)=>{ee(F)}),oe=Se((W,F)=>{V===F&&Y(!1)});return b.jsx(WB,z({ref:n,className:pe(T.root,o),ownerState:N,role:"radiogroup","aria-labelledby":k},$,{children:tg(D,w??I).map(W=>{const F=D.getMonth(W),K=D.format(W,"monthShort"),Q=D.format(W,"month"),te=F===_,ue=l||le(W);return b.jsx(FB,{selected:te,value:F,onClick:ie,onKeyDown:q,autoFocus:ae&&F===V,disabled:ue,tabIndex:F===V&&!ue?0:-1,onFocus:ne,onBlur:oe,"aria-current":A===F?"date":void 0,"aria-label":Q,monthsPerRow:S,slots:M,slotProps:E,children:K},K)})}))});function HB(e){return ye("MuiPickersYear",e)}const kc=me("MuiPickersYear",["root","yearButton","selected","disabled"]),YB=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow","slots","slotProps"],KB=e=>{const{disabled:t,selected:n,classes:r}=e;return ve({root:["root"],yearButton:["yearButton",t&&"disabled",n&&"selected"]},HB,r)},GB=G("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%"}}]}),QB=G("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,t)=>[t.yearButton,{[`&.${kc.disabled}`]:t.disabled},{[`&.${kc.selected}`]:t.selected}]})(({theme:e})=>z({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})`:Be(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Be(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${kc.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${kc.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),XB=h.memo(function(t){const n=mt({props:t,name:"MuiPickersYear"}),{autoFocus:r,className:o,children:i,disabled:a,selected:s,value:l,tabIndex:c,onClick:u,onKeyDown:d,onFocus:f,onBlur:y,"aria-current":g,slots:x,slotProps:C}=n,p=Ae(n,YB),m=h.useRef(null),v=KB(n);Vt(()=>{var k;r&&((k=m.current)==null||k.focus())},[r]);const S=(x==null?void 0:x.yearButton)??QB,P=Qe({elementType:S,externalSlotProps:C==null?void 0:C.yearButton,additionalProps:{children:i,disabled:a,tabIndex:c,ref:m,type:"button",role:"radio","aria-current":g,"aria-checked":s,onClick:k=>u(k,l),onKeyDown:k=>d(k,l),onFocus:k=>f(k,l),onBlur:k=>y(k,l)},ownerState:n,className:v.yearButton});return b.jsx(GB,z({className:pe(v.root,o),ownerState:n},p,{children:b.jsx(S,z({},P))}))});function qB(e){return ye("MuiYearCalendar",e)}me("MuiYearCalendar",["root"]);const ZB=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsOrder","yearsPerRow","timezone","gridLabelId","slots","slotProps"],JB=e=>{const{classes:t}=e;return ve({root:["root"]},qB,t)};function e4(e,t){const n=gt(),r=Wl(),o=mt({props:e,name:t});return z({disablePast:!1,disableFuture:!1},o,{yearsPerRow:o.yearsPerRow??3,minDate:rr(n,o.minDate,r.minDate),maxDate:rr(n,o.maxDate,r.maxDate)})}const t4=G("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:zd,maxHeight:yF,boxSizing:"border-box",position:"relative"}),n4=h.forwardRef(function(t,n){const r=e4(t,"MuiYearCalendar"),{autoFocus:o,className:i,value:a,defaultValue:s,referenceDate:l,disabled:c,disableFuture:u,disablePast:d,maxDate:f,minDate:y,onChange:g,readOnly:x,shouldDisableYear:C,onYearFocus:p,hasFocus:m,onFocusedViewChange:v,yearsOrder:S="asc",yearsPerRow:P,timezone:k,gridLabelId:M,slots:E,slotProps:$}=r,w=Ae(r,ZB),{value:R,handleValueChange:L,timezone:j}=og({name:"YearCalendar",timezone:k,value:a,defaultValue:s,referenceDate:l,onChange:g,valueManager:Vr}),O=Bd(j),D=ir(),I=gt(),N=h.useMemo(()=>Vr.getInitialReferenceValue({value:R,utils:I,props:r,timezone:j,referenceDate:l,granularity:Tr.year}),[]),T=r,A=JB(T),_=h.useMemo(()=>I.getYear(O),[I,O]),V=h.useMemo(()=>R!=null?I.getYear(R):null,[R,I]),[H,ae]=h.useState(()=>V||I.getYear(N)),[se,Y]=io({name:"YearCalendar",state:"hasFocus",controlled:m,default:o??!1}),le=Se(J=>{Y(J),v&&v(J)}),ie=h.useCallback(J=>{if(d&&I.isBeforeYear(J,O)||u&&I.isAfterYear(J,O)||y&&I.isBeforeYear(J,y)||f&&I.isAfterYear(J,f))return!0;if(!C)return!1;const fe=I.startOfYear(J);return C(fe)},[u,d,f,y,O,C,I]),ee=Se((J,fe)=>{if(x)return;const ge=I.setYear(R??N,fe);L(ge)}),q=Se(J=>{ie(I.setYear(R??N,J))||(ae(J),le(!0),p==null||p(J))});h.useEffect(()=>{ae(J=>V!==null&&J!==V?V:J)},[V]);const ne=S!=="desc"?P*1:P*-1,oe=D&&S==="asc"||!D&&S==="desc"?-1:1,W=Se((J,fe)=>{switch(J.key){case"ArrowUp":q(fe-ne),J.preventDefault();break;case"ArrowDown":q(fe+ne),J.preventDefault();break;case"ArrowLeft":q(fe-oe),J.preventDefault();break;case"ArrowRight":q(fe+oe),J.preventDefault();break}}),F=Se((J,fe)=>{q(fe)}),K=Se((J,fe)=>{H===fe&&le(!1)}),Q=h.useRef(null),te=He(n,Q);h.useEffect(()=>{if(o||Q.current===null)return;const J=Q.current.querySelector('[tabindex="0"]');if(!J)return;const fe=J.offsetHeight,ge=J.offsetTop,Le=Q.current.clientHeight,xe=Q.current.scrollTop,tt=ge+fe;fe>Le||ge{const fe=I.getYear(J),ge=fe===V,Le=c||ie(J);return b.jsx(XB,{selected:ge,value:fe,onClick:ee,onKeyDown:W,autoFocus:se&&fe===H,disabled:Le,tabIndex:fe===H&&!Le?0:-1,onFocus:F,onBlur:K,"aria-current":_===fe?"date":void 0,yearsPerRow:P,slots:E,slotProps:$,children:I.format(J,"year")},I.format(J,"year"))})}))}),r4=e=>ye("MuiPickersCalendarHeader",e),o4=me("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),i4=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone","format"],a4=["ownerState"],s4=e=>{const{classes:t}=e;return ve({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},r4,t)},l4=G("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}),c4=G("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>z({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),u4=G("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),d4=G(Wa,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})({marginRight:"auto",variants:[{props:{view:"year"},style:{[`.${o4.switchViewIcon}`]:{transform:"rotate(180deg)"}}}]}),f4=G(ZN,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),p4=h.forwardRef(function(t,n){const r=uo(),o=gt(),i=mt({props:t,name:"MuiPickersCalendarHeader"}),{slots:a,slotProps:s,currentMonth:l,disabled:c,disableFuture:u,disablePast:d,maxDate:f,minDate:y,onMonthChange:g,onViewChange:x,view:C,reduceAnimations:p,views:m,labelId:v,className:S,timezone:P,format:k=`${o.formats.month} ${o.formats.year}`}=i,M=Ae(i,i4),E=i,$=s4(i),w=(a==null?void 0:a.switchViewButton)??d4,R=Qe({elementType:w,externalSlotProps:s==null?void 0:s.switchViewButton,additionalProps:{size:"small","aria-label":r.calendarViewSwitchingButtonAriaLabel(C)},ownerState:E,className:$.switchViewButton}),L=(a==null?void 0:a.switchViewIcon)??f4,j=Qe({elementType:L,externalSlotProps:s==null?void 0:s.switchViewIcon,ownerState:E,className:$.switchViewIcon}),O=Ae(j,a4),D=()=>g(o.addMonths(l,1),"left"),I=()=>g(o.addMonths(l,-1),"right"),N=mF(l,{disableFuture:u,maxDate:f,timezone:P}),T=gF(l,{disablePast:d,minDate:y,timezone:P}),A=()=>{if(!(m.length===1||!x||c))if(m.length===2)x(m.find(V=>V!==C)||m[0]);else{const V=m.indexOf(C)!==0?0:1;x(m[V])}};if(m.length===1&&m[0]==="year")return null;const _=o.formatByString(l,k);return b.jsxs(l4,z({},M,{ownerState:E,className:pe($.root,S),ref:n,children:[b.jsxs(c4,{role:"presentation",onClick:A,ownerState:E,"aria-live":"polite",className:$.labelContainer,children:[b.jsx(N1,{reduceAnimations:p,transKey:_,children:b.jsx(u4,{id:v,ownerState:E,className:$.label,children:_})}),m.length>1&&!c&&b.jsx(w,z({},R,{children:b.jsx(L,z({},O))}))]}),b.jsx(Ha,{in:C==="day",children:b.jsx(uF,{slots:a,slotProps:s,onGoToPrevious:I,isPreviousDisabled:T,previousLabel:r.previousMonth,onGoToNext:D,isNextDisabled:N,nextLabel:r.nextMonth})})]}))}),h4="@media (prefers-reduced-motion: reduce)",pa=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),O0=pa&&pa[1]?parseInt(pa[1],10):null,$0=pa&&pa[2]?parseInt(pa[2],10):null,m4=O0&&O0<10||$0&&$0<13||!1,B1=()=>Id(h4,{defaultMatches:!1})||m4,g4=e=>ye("MuiDateCalendar",e);me("MuiDateCalendar",["root","viewTransitionContainer"]);const y4=["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"],v4=e=>{const{classes:t}=e;return ve({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},g4,t)};function x4(e,t){const n=gt(),r=Wl(),o=B1(),i=mt({props:e,name:t});return z({},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??(()=>b.jsx("span",{children:"..."})),minDate:rr(n,i.minDate,r.minDate),maxDate:rr(n,i.maxDate,r.maxDate)})}const S4=G(vF,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",height:eg}),b4=G(N1,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),w4=h.forwardRef(function(t,n){const r=gt(),o=zo(),i=x4(t,"MuiDateCalendar"),{autoFocus:a,onViewChange:s,value:l,defaultValue:c,referenceDate:u,disableFuture:d,disablePast:f,onChange:y,onYearChange:g,onMonthChange:x,reduceAnimations:C,shouldDisableDate:p,shouldDisableMonth:m,shouldDisableYear:v,view:S,views:P,openTo:k,className:M,disabled:E,readOnly:$,minDate:w,maxDate:R,disableHighlightToday:L,focusedView:j,onFocusedViewChange:O,showDaysOutsideCurrentMonth:D,fixedWeekNumber:I,dayOfWeekFormatter:N,slots:T,slotProps:A,loading:_,renderLoading:V,displayWeekNumber:H,yearsOrder:ae,yearsPerRow:se,monthsPerRow:Y,timezone:le}=i,ie=Ae(i,y4),{value:ee,handleValueChange:q,timezone:ne}=og({name:"DateCalendar",timezone:le,value:l,defaultValue:c,referenceDate:u,onChange:y,valueManager:Vr}),{view:oe,setView:W,focusedView:F,setFocusedView:K,goToNextView:Q,setValueAndGoToNextView:te}=h1({view:S,views:P,openTo:k,onChange:q,onViewChange:s,autoFocus:a,focusedView:j,onFocusedViewChange:O}),{referenceDate:ue,calendarState:J,changeFocusedDay:fe,changeMonth:ge,handleChangeMonth:Le,isDateDisabled:xe,onMonthSwitchingAnimationEnd:tt}=cB({value:ee,referenceDate:u,reduceAnimations:C,onMonthChange:x,minDate:w,maxDate:R,shouldDisableDate:p,disablePast:f,disableFuture:d,timezone:ne}),Ee=E&&ee||w,_e=E&&ee||R,ct=`${o}-grid-label`,je=F!==null,Oe=(T==null?void 0:T.calendarHeader)??p4,ft=Qe({elementType:Oe,externalSlotProps:A==null?void 0:A.calendarHeader,additionalProps:{views:P,view:oe,currentMonth:J.currentMonth,onViewChange:W,onMonthChange:(nt,fn)=>Le({newMonth:nt,direction:fn}),minDate:Ee,maxDate:_e,disabled:E,disablePast:f,disableFuture:d,reduceAnimations:C,timezone:ne,labelId:ct},ownerState:i}),$t=Se(nt=>{const fn=r.startOfMonth(nt),Wr=r.endOfMonth(nt),br=xe(nt)?Hs({utils:r,date:nt,minDate:r.isBefore(w,fn)?fn:w,maxDate:r.isAfter(R,Wr)?Wr:R,disablePast:f,disableFuture:d,isDateDisabled:xe,timezone:ne}):nt;br?(te(br,"finish"),x==null||x(fn)):(Q(),ge(fn)),fe(br,!0)}),Ne=Se(nt=>{const fn=r.startOfYear(nt),Wr=r.endOfYear(nt),br=xe(nt)?Hs({utils:r,date:nt,minDate:r.isBefore(w,fn)?fn:w,maxDate:r.isAfter(R,Wr)?Wr:R,disablePast:f,disableFuture:d,isDateDisabled:xe,timezone:ne}):nt;br?(te(br,"finish"),g==null||g(br)):(Q(),ge(fn)),fe(br,!0)}),at=Se(nt=>q(nt&&Ou(r,nt,ee??ue),"finish",oe));h.useEffect(()=>{ee!=null&&r.isValid(ee)&&ge(ee)},[ee]);const Vn=i,fo=v4(Vn),Me={disablePast:f,disableFuture:d,maxDate:R,minDate:w},qe={disableHighlightToday:L,readOnly:$,disabled:E,timezone:ne,gridLabelId:ct,slots:T,slotProps:A},yt=h.useRef(oe);h.useEffect(()=>{yt.current!==oe&&(F===yt.current&&K(oe,!0),yt.current=oe)},[F,K,oe]);const Cn=h.useMemo(()=>[ee],[ee]);return b.jsxs(S4,z({ref:n,className:pe(fo.root,M),ownerState:Vn},ie,{children:[b.jsx(Oe,z({},ft,{slots:T,slotProps:A})),b.jsx(b4,{reduceAnimations:C,className:fo.viewTransitionContainer,transKey:oe,ownerState:Vn,children:b.jsxs("div",{children:[oe==="year"&&b.jsx(n4,z({},Me,qe,{value:ee,onChange:Ne,shouldDisableYear:v,hasFocus:je,onFocusedViewChange:nt=>K("year",nt),yearsOrder:ae,yearsPerRow:se,referenceDate:ue})),oe==="month"&&b.jsx(UB,z({},Me,qe,{hasFocus:je,className:M,value:ee,onChange:$t,shouldDisableMonth:m,onFocusedViewChange:nt=>K("month",nt),monthsPerRow:Y,referenceDate:ue})),oe==="day"&&b.jsx(OB,z({},J,Me,qe,{onMonthSwitchingAnimationEnd:tt,onFocusedDayChange:fe,reduceAnimations:C,selectedDays:Cn,onSelectedDaysChange:at,shouldDisableDate:p,shouldDisableMonth:m,shouldDisableYear:v,hasFocus:je,onFocusedViewChange:nt=>K("day",nt),showDaysOutsideCurrentMonth:D,fixedWeekNumber:I,dayOfWeekFormatter:N,displayWeekNumber:H,loading:_,renderLoading:V}))]})})]}))});function C4(e){return ye("MuiPickersToolbar",e)}me("MuiPickersToolbar",["root","content"]);const k4=["children","className","toolbarTitle","hidden","titleId","isLandscape","classes","landscapeDirection"],P4=e=>{const{classes:t}=e;return ve({root:["root"],content:["content"]},C4,t)},E4=G("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"}}]})),M4=G("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"}}]}),R4=h.forwardRef(function(t,n){const r=mt({props:t,name:"MuiPickersToolbar"}),{children:o,className:i,toolbarTitle:a,hidden:s,titleId:l}=r,c=Ae(r,k4),u=r,d=P4(u);return s?null:b.jsxs(E4,z({ref:n,className:pe(d.root,i),ownerState:u},c,{children:[b.jsx(Ye,{color:"text.secondary",variant:"overline",id:l,children:a}),b.jsx(M4,{className:d.content,ownerState:u,children:o})]}))});function T4(e){return ye("MuiDatePickerToolbar",e)}me("MuiDatePickerToolbar",["root","title"]);const D4=["value","isLandscape","onChange","toolbarFormat","toolbarPlaceholder","views","className","onViewChange","view"],I4=e=>{const{classes:t}=e;return ve({root:["root"],title:["title"]},T4,t)},O4=G(R4,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),$4=G(Ye,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})({variants:[{props:{isLandscape:!0},style:{margin:"auto 16px auto auto"}}]}),A4=h.forwardRef(function(t,n){const r=mt({props:t,name:"MuiDatePickerToolbar"}),{value:o,isLandscape:i,toolbarFormat:a,toolbarPlaceholder:s="––",views:l,className:c}=r,u=Ae(r,D4),d=gt(),f=uo(),y=I4(r),g=h.useMemo(()=>{if(!o)return s;const C=ng(d,{format:a,views:l},!0);return d.formatByString(o,C)},[o,a,s,d,l]),x=r;return b.jsx(O4,z({ref:n,toolbarTitle:f.datePickerToolbarTitle,isLandscape:i,className:pe(y.root,c)},u,{children:b.jsx($4,{variant:"h4",align:i?"left":"center",ownerState:x,className:y.title,children:g})}))});function _1(e,t){const n=gt(),r=Wl(),o=mt({props:e,name:t}),i=h.useMemo(()=>{var a;return((a=o.localeText)==null?void 0:a.toolbarTitle)==null?o.localeText:z({},o.localeText,{datePickerToolbarTitle:o.localeText.toolbarTitle})},[o.localeText]);return z({},o,{localeText:i},dF({views:o.views,openTo:o.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{disableFuture:o.disableFuture??!1,disablePast:o.disablePast??!1,minDate:rr(n,o.minDate,r.minDate),maxDate:rr(n,o.maxDate,r.maxDate),slots:z({toolbar:A4},o.slots)})}function L4(e){return ye("MuiPickersPopper",e)}me("MuiPickersPopper",["root","paper"]);const j4=["PaperComponent","popperPlacement","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],N4=e=>{const{classes:t}=e;return ve({root:["root"],paper:["paper"]},L4,t)},F4=G(q2,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),B4=G(vr,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(e,t)=>t.paper})({outline:0,transformOrigin:"top center",variants:[{props:({placement:e})=>["top","top-start","top-end"].includes(e),style:{transformOrigin:"bottom center"}}]});function _4(e,t){return t.documentElement.clientWidth{if(!e)return;function l(){i.current=!0}return document.addEventListener("mousedown",l,!0),document.addEventListener("touchstart",l,!0),()=>{document.removeEventListener("mousedown",l,!0),document.removeEventListener("touchstart",l,!0),i.current=!1}},[e]);const a=Se(l=>{if(!i.current)return;const c=r.current;r.current=!1;const u=zt(o.current);if(!o.current||"clientX"in l&&_4(l,u))return;if(n.current){n.current=!1;return}let d;l.composedPath?d=l.composedPath().indexOf(o.current)>-1:d=!u.documentElement.contains(l.target)||o.current.contains(l.target),!d&&!c&&t(l)}),s=()=>{r.current=!0};return h.useEffect(()=>{if(e){const l=zt(o.current),c=()=>{n.current=!0};return l.addEventListener("touchstart",a),l.addEventListener("touchmove",c),()=>{l.removeEventListener("touchstart",a),l.removeEventListener("touchmove",c)}}},[e,a]),h.useEffect(()=>{if(e){const l=zt(o.current);return l.addEventListener("click",a),()=>{l.removeEventListener("click",a),r.current=!1}}},[e,a]),[o,s,s]}const V4=h.forwardRef((e,t)=>{const{PaperComponent:n,popperPlacement:r,ownerState:o,children:i,paperSlotProps:a,paperClasses:s,onPaperClick:l,onPaperTouchStart:c}=e,u=Ae(e,j4),d=z({},o,{placement:r}),f=Qe({elementType:n,externalSlotProps:a,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:s,ownerState:d});return b.jsx(n,z({},u,f,{onClick:y=>{var g;l(y),(g=f.onClick)==null||g.call(f,y)},onTouchStart:y=>{var g;c(y),(g=f.onTouchStart)==null||g.call(f,y)},ownerState:d,children:i}))});function W4(e){const t=mt({props:e,name:"MuiPickersPopper"}),{anchorEl:n,children:r,containerRef:o=null,shouldRestoreFocus:i,onBlur:a,onDismiss:s,open:l,role:c,placement:u,slots:d,slotProps:f,reduceAnimations:y}=t;h.useEffect(()=>{function D(I){l&&I.key==="Escape"&&s()}return document.addEventListener("keydown",D),()=>{document.removeEventListener("keydown",D)}},[s,l]);const g=h.useRef(null);h.useEffect(()=>{c==="tooltip"||i&&!i()||(l?g.current=Mn(document):g.current&&g.current instanceof HTMLElement&&setTimeout(()=>{g.current instanceof HTMLElement&&g.current.focus()}))},[l,c,i]);const[x,C,p]=z4(l,a??s),m=h.useRef(null),v=He(m,o),S=He(v,x),P=t,k=N4(P),M=B1(),E=y??M,$=D=>{D.key==="Escape"&&(D.stopPropagation(),s())},w=(d==null?void 0:d.desktopTransition)??E?Ha:xl,R=(d==null?void 0:d.desktopTrapFocus)??pw,L=(d==null?void 0:d.desktopPaper)??B4,j=(d==null?void 0:d.popper)??F4,O=Qe({elementType:j,externalSlotProps:f==null?void 0:f.popper,additionalProps:{transition:!0,role:c,open:l,anchorEl:n,placement:u,onKeyDown:$},className:k.root,ownerState:t});return b.jsx(j,z({},O,{children:({TransitionProps:D,placement:I})=>b.jsx(R,z({open:l,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:c==="tooltip",isEnabled:()=>!0},f==null?void 0:f.desktopTrapFocus,{children:b.jsx(w,z({},D,f==null?void 0:f.desktopTransition,{children:b.jsx(V4,{PaperComponent:L,ownerState:P,popperPlacement:I,ref:S,onPaperClick:C,onPaperTouchStart:p,paperClasses:k.paper,paperSlotProps:f==null?void 0:f.desktopPaper,children:r})}))}))}))}const U4=({open:e,onOpen:t,onClose:n})=>{const r=h.useRef(typeof e=="boolean").current,[o,i]=h.useState(!1);h.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 a=h.useCallback(s=>{r||i(s),s&&t&&t(),!s&&n&&n()},[r,t,n]);return{isOpen:o,setIsOpen:a}},H4=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},Y4=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:o,closeOnSelect:i}=e,a=!o&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromAction"?a&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastCommittedValue):t.name==="setValueFromView"&&t.selectionState==="finish"&&i?a?!0:n(r.lastCommittedValue):t.name==="setValueFromShortcut"?t.changeImportance==="accept"&&n(r.lastCommittedValue):!1},K4=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},G4=({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:o})=>{const{onAccept:i,onChange:a,value:s,defaultValue:l,closeOnSelect:c=r==="desktop",timezone:u,referenceDate:d}=e,{current:f}=h.useRef(l),{current:y}=h.useRef(s!==void 0),[g,x]=h.useState(u),C=gt(),p=Mi(),{isOpen:m,setIsOpen:v}=U4(e),{timezone:S,value:P,handleValueChange:k}=rg({timezone:u,value:s,defaultValue:f,referenceDate:d,onChange:a,valueManager:t}),[M,E]=h.useState(()=>{let q;return P!==void 0?q=P:f!==void 0?q=f:q=t.emptyValue,{draft:q,lastPublishedValue:q,lastCommittedValue:q,lastControlledValue:s,hasBeenModifiedSinceMount:!1}}),$=t.getTimezone(C,M.draft);g!==u&&(x(u),u&&$&&u!==$&&E(q=>z({},q,{draft:t.setTimezone(C,u,q.draft)})));const{getValidationErrorForNewValue:w}=E1({props:e,validator:o,timezone:S,value:M.draft,onError:e.onError}),R=Se(q=>{const ne={action:q,dateState:M,hasChanged:te=>!t.areValuesEqual(C,q.value,te),isControlled:y,closeOnSelect:c},oe=H4(ne),W=Y4(ne),F=K4(ne);E(te=>z({},te,{draft:q.value,lastPublishedValue:oe?q.value:te.lastPublishedValue,lastCommittedValue:W?q.value:te.lastCommittedValue,hasBeenModifiedSinceMount:!0}));let K=null;const Q=()=>(K||(K={validationError:q.name==="setValueFromField"?q.context.validationError:w(q.value)},q.name==="setValueFromShortcut"&&(K.shortcut=q.shortcut)),K);oe&&k(q.value,Q()),W&&i&&i(q.value,Q()),F&&v(!1)});if(M.lastControlledValue!==s){const q=t.areValuesEqual(C,M.draft,P);E(ne=>z({},ne,{lastControlledValue:s},q?{}:{lastCommittedValue:P,lastPublishedValue:P,draft:P,hasBeenModifiedSinceMount:!0}))}const L=Se(()=>{R({value:t.emptyValue,name:"setValueFromAction",pickerAction:"clear"})}),j=Se(()=>{R({value:M.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),O=Se(()=>{R({value:M.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),D=Se(()=>{R({value:M.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),I=Se(()=>{R({value:t.getTodayValue(C,S,n),name:"setValueFromAction",pickerAction:"today"})}),N=Se(q=>{q.preventDefault(),v(!0)}),T=Se(q=>{q==null||q.preventDefault(),v(!1)}),A=Se((q,ne="partial")=>R({name:"setValueFromView",value:q,selectionState:ne})),_=Se((q,ne,oe)=>R({name:"setValueFromShortcut",value:q,changeImportance:ne,shortcut:oe})),V=Se((q,ne)=>R({name:"setValueFromField",value:q,context:ne})),H={onClear:L,onAccept:j,onDismiss:O,onCancel:D,onSetToday:I,onOpen:N,onClose:T},ae={value:M.draft,onChange:V},se=h.useMemo(()=>t.cleanValue(C,M.draft),[C,t,M.draft]),Y={value:se,onChange:A,onClose:T,open:m},ie=z({},H,{value:se,onChange:A,onSelectShortcut:_,isValid:q=>{const ne=o({adapter:p,value:q,timezone:S,props:e});return!t.hasError(ne)}}),ee=h.useMemo(()=>({onOpen:N,onClose:T,open:m}),[m,T,N]);return{open:m,fieldProps:ae,viewProps:Y,layoutProps:ie,actions:H,contextValue:ee}},Q4=["className","sx"],X4=({props:e,propsFromPickerValue:t,additionalViewProps:n,autoFocusView:r,rendererInterceptor:o,fieldRef:i})=>{const{onChange:a,open:s,onClose:l}=t,{view:c,views:u,openTo:d,onViewChange:f,viewRenderers:y,timezone:g}=e,x=Ae(e,Q4),{view:C,setView:p,defaultView:m,focusedView:v,setFocusedView:S,setValueAndGoToNextView:P}=h1({view:c,views:u,openTo:d,onChange:a,onViewChange:f,autoFocus:r}),{hasUIView:k,viewModeLookup:M}=h.useMemo(()=>u.reduce((O,D)=>{let I;return y[D]!=null?I="UI":I="field",O.viewModeLookup[D]=I,I==="UI"&&(O.hasUIView=!0),O},{hasUIView:!1,viewModeLookup:{}}),[y,u]),E=h.useMemo(()=>u.reduce((O,D)=>y[D]!=null&&pF(D)?O+1:O,0),[y,u]),$=M[C],w=Se(()=>$==="UI"),[R,L]=h.useState($==="UI"?C:null);return R!==C&&M[C]==="UI"&&L(C),Vt(()=>{$==="field"&&s&&(l(),setTimeout(()=>{var O,D;(O=i==null?void 0:i.current)==null||O.setSelectedSections(C),(D=i==null?void 0:i.current)==null||D.focusField(C)}))},[C]),Vt(()=>{if(!s)return;let O=C;$==="field"&&R!=null&&(O=R),O!==m&&M[O]==="UI"&&M[m]==="UI"&&(O=m),O!==C&&p(O),S(O,!0)},[s]),{hasUIView:k,shouldRestoreFocus:w,layoutProps:{views:u,view:R,onViewChange:p},renderCurrentView:()=>{if(R==null)return null;const O=y[R];if(O==null)return null;const D=z({},x,n,t,{views:u,timezone:g,onChange:P,view:R,onViewChange:p,focusedView:v,onFocusedViewChange:S,showViewSwitcher:E>1,timeViewsCount:E});return o?o(y,R,D):O(D)}}};function A0(){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 q4=(e,t)=>{const[n,r]=h.useState(A0);return Vt(()=>{const i=()=>{r(A0())};return window.addEventListener("orientationchange",i),()=>{window.removeEventListener("orientationchange",i)}},[]),_F(e,["hours","minutes","seconds"])?!1:(t||n)==="landscape"},Z4=({props:e,propsFromPickerValue:t,propsFromPickerViews:n,wrapperVariant:r})=>{const{orientation:o}=e,i=q4(n.views,o),a=ir();return{layoutProps:z({},n,t,{isLandscape:i,isRtl:a,wrapperVariant:r,disabled:e.disabled,readOnly:e.readOnly})}};function J4(e){const{props:t,pickerValueResponse:n}=e;return h.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 z1=({props:e,valueManager:t,valueType:n,wrapperVariant:r,additionalViewProps:o,validator:i,autoFocusView:a,rendererInterceptor:s,fieldRef:l})=>{const c=G4({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:i}),u=X4({props:e,additionalViewProps:o,autoFocusView:a,fieldRef:l,propsFromPickerValue:c.viewProps,rendererInterceptor:s}),d=Z4({props:e,wrapperVariant:r,propsFromPickerValue:c.layoutProps,propsFromPickerViews:u.layoutProps}),f=J4({props:e,pickerValueResponse:c});return{open:c.open,actions:c.actions,fieldProps:c.fieldProps,renderCurrentView:u.renderCurrentView,hasUIView:u.hasUIView,shouldRestoreFocus:u.shouldRestoreFocus,layoutProps:d.layoutProps,contextValue:c.contextValue,ownerState:f}};function V1(e){return ye("MuiPickersLayout",e)}const Go=me("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]),e_=["onAccept","onClear","onCancel","onSetToday","actions"];function t_(e){const{onAccept:t,onClear:n,onCancel:r,onSetToday:o,actions:i}=e,a=Ae(e,e_),s=uo();if(i==null||i.length===0)return null;const l=i==null?void 0:i.map(c=>{switch(c){case"clear":return b.jsx(Tt,{onClick:n,children:s.clearButtonLabel},c);case"cancel":return b.jsx(Tt,{onClick:r,children:s.cancelButtonLabel},c);case"accept":return b.jsx(Tt,{onClick:t,children:s.okButtonLabel},c);case"today":return b.jsx(Tt,{onClick:o,children:s.todayButtonLabel},c);default:return null}});return b.jsx(RO,z({},a,{children:l}))}const n_=["items","changeImportance","isLandscape","onChange","isValid"],r_=["getValue"];function o_(e){const{items:t,changeImportance:n="accept",onChange:r,isValid:o}=e,i=Ae(e,n_);if(t==null||t.length===0)return null;const a=t.map(s=>{let{getValue:l}=s,c=Ae(s,r_);const u=l({isValid:o});return z({},c,{label:c.label,onClick:()=>{r(u,n,c)},disabled:!o(u)})});return b.jsx(vw,z({dense:!0,sx:[{maxHeight:eg,maxWidth:200,overflow:"auto"},...Array.isArray(i.sx)?i.sx:[i.sx]]},i,{children:a.map(s=>b.jsx(I$,{children:b.jsx(rI,z({},s))},s.id??s.label))}))}function i_(e){return e.view!==null}const a_=e=>{const{classes:t,isLandscape:n}=e;return ve({root:["root",n&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},V1,t)},s_=e=>{const{wrapperVariant:t,onAccept:n,onClear:r,onCancel:o,onSetToday:i,view:a,views:s,onViewChange:l,value:c,onChange:u,onSelectShortcut:d,isValid:f,isLandscape:y,disabled:g,readOnly:x,children:C,slots:p,slotProps:m}=e,v=a_(e),S=(p==null?void 0:p.actionBar)??t_,P=Qe({elementType:S,externalSlotProps:m==null?void 0:m.actionBar,additionalProps:{onAccept:n,onClear:r,onCancel:o,onSetToday:i,actions:t==="desktop"?[]:["cancel","accept"]},className:v.actionBar,ownerState:z({},e,{wrapperVariant:t})}),k=b.jsx(S,z({},P)),M=p==null?void 0:p.toolbar,E=Qe({elementType:M,externalSlotProps:m==null?void 0:m.toolbar,additionalProps:{isLandscape:y,onChange:u,value:c,view:a,onViewChange:l,views:s,disabled:g,readOnly:x},className:v.toolbar,ownerState:z({},e,{wrapperVariant:t})}),$=i_(E)&&M?b.jsx(M,z({},E)):null,w=C,R=p==null?void 0:p.tabs,L=a&&R?b.jsx(R,z({view:a,onViewChange:l,className:v.tabs},m==null?void 0:m.tabs)):null,j=(p==null?void 0:p.shortcuts)??o_,O=Qe({elementType:j,externalSlotProps:m==null?void 0:m.shortcuts,additionalProps:{isValid:f,isLandscape:y,onChange:d},className:v.shortcuts,ownerState:{isValid:f,isLandscape:y,onChange:d,wrapperVariant:t}}),D=a&&j?b.jsx(j,z({},O)):null;return{toolbar:$,content:w,tabs:L,actionBar:k,shortcuts:D}},l_=e=>{const{isLandscape:t,classes:n}=e;return ve({root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]},V1,n)},c_=G("div",{name:"MuiPickersLayout",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${Go.actionBar}`]:{gridColumn:"1 / 4",gridRow:3},variants:[{props:{isLandscape:!0},style:{[`& .${Go.toolbar}`]:{gridColumn:1,gridRow:"2 / 3"},[`.${Go.shortcuts}`]:{gridColumn:"2 / 4",gridRow:1}}},{props:{isLandscape:!0,isRtl:!0},style:{[`& .${Go.toolbar}`]:{gridColumn:3}}},{props:{isLandscape:!1},style:{[`& .${Go.toolbar}`]:{gridColumn:"2 / 4",gridRow:1},[`& .${Go.shortcuts}`]:{gridColumn:1,gridRow:"2 / 3"}}},{props:{isLandscape:!1,isRtl:!0},style:{[`& .${Go.shortcuts}`]:{gridColumn:3}}}]}),u_=G("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),W1=h.forwardRef(function(t,n){const r=mt({props:t,name:"MuiPickersLayout"}),{toolbar:o,content:i,tabs:a,actionBar:s,shortcuts:l}=s_(r),{sx:c,className:u,isLandscape:d,wrapperVariant:f}=r,y=l_(r);return b.jsxs(c_,{ref:n,sx:c,className:pe(y.root,u),ownerState:r,children:[d?l:o,d?o:l,b.jsx(u_,{className:y.contentWrapper,children:f==="desktop"?b.jsxs(h.Fragment,{children:[i,a]}):b.jsxs(h.Fragment,{children:[a,i]})}),s]})}),d_=["props","getOpenDialogAriaText"],f_=["ownerState"],p_=["ownerState"],h_=e=>{var Q;let{props:t,getOpenDialogAriaText:n}=e,r=Ae(e,d_);const{slots:o,slotProps:i,className:a,sx:s,format:l,formatDensity:c,enableAccessibleFieldDOMStructure:u,selectedSections:d,onSelectedSectionsChange:f,timezone:y,name:g,label:x,inputRef:C,readOnly:p,disabled:m,autoFocus:v,localeText:S,reduceAnimations:P}=t,k=h.useRef(null),M=h.useRef(null),E=zo(),$=((Q=i==null?void 0:i.toolbar)==null?void 0:Q.hidden)??!1,{open:w,actions:R,hasUIView:L,layoutProps:j,renderCurrentView:O,shouldRestoreFocus:D,fieldProps:I,contextValue:N,ownerState:T}=z1(z({},r,{props:t,fieldRef:M,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),A=o.inputAdornment??yw,_=Qe({elementType:A,externalSlotProps:i==null?void 0:i.inputAdornment,additionalProps:{position:"end"},ownerState:t}),V=Ae(_,f_),H=o.openPickerButton??Wa,ae=Qe({elementType:H,externalSlotProps:i==null?void 0:i.openPickerButton,additionalProps:{disabled:m||p,onClick:w?R.onClose:R.onOpen,"aria-label":n(I.value),edge:V.position},ownerState:t}),se=Ae(ae,p_),Y=o.openPickerIcon,le=Qe({elementType:Y,externalSlotProps:i==null?void 0:i.openPickerIcon,ownerState:T}),ie=o.field,ee=Qe({elementType:ie,externalSlotProps:i==null?void 0:i.field,additionalProps:z({},I,$&&{id:E},{readOnly:p,disabled:m,className:a,sx:s,format:l,formatDensity:c,enableAccessibleFieldDOMStructure:u,selectedSections:d,onSelectedSectionsChange:f,timezone:y,label:x,name:g,autoFocus:v&&!t.open,focused:w?!0:void 0},C?{inputRef:C}:{}),ownerState:t});L&&(ee.InputProps=z({},ee.InputProps,{ref:k},!t.disableOpenPicker&&{[`${V.position}Adornment`]:b.jsx(A,z({},V,{children:b.jsx(H,z({},se,{children:b.jsx(Y,z({},le))}))}))}));const q=z({textField:o.textField,clearIcon:o.clearIcon,clearButton:o.clearButton},ee.slots),ne=o.layout??W1;let oe=E;$&&(x?oe=`${E}-label`:oe=void 0);const W=z({},i,{toolbar:z({},i==null?void 0:i.toolbar,{titleId:E}),popper:z({"aria-labelledby":oe},i==null?void 0:i.popper)}),F=He(M,ee.unstableFieldRef);return{renderPicker:()=>b.jsxs(M1,{contextValue:N,localeText:S,children:[b.jsx(ie,z({},ee,{slots:q,slotProps:W,unstableFieldRef:F})),b.jsx(W4,z({role:"dialog",placement:"bottom-start",anchorEl:k.current},R,{open:w,slots:o,slotProps:W,shouldRestoreFocus:D,reduceAnimations:P,children:b.jsx(ne,z({},j,W==null?void 0:W.layout,{slots:o,slotProps:W,children:O()}))}))]})}},ha=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:o,value:i,defaultValue:a,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:d,disablePast:f,minDate:y,maxDate:g,shouldDisableDate:x,shouldDisableMonth:C,shouldDisableYear:p,reduceAnimations:m,onMonthChange:v,monthsPerRow:S,onYearChange:P,yearsOrder:k,yearsPerRow:M,slots:E,slotProps:$,loading:w,renderLoading:R,disableHighlightToday:L,readOnly:j,disabled:O,showDaysOutsideCurrentMonth:D,dayOfWeekFormatter:I,sx:N,autoFocus:T,fixedWeekNumber:A,displayWeekNumber:_,timezone:V})=>b.jsx(w4,{view:e,onViewChange:t,views:n.filter(k0),focusedView:r&&k0(r)?r:null,onFocusedViewChange:o,value:i,defaultValue:a,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:d,disablePast:f,minDate:y,maxDate:g,shouldDisableDate:x,shouldDisableMonth:C,shouldDisableYear:p,reduceAnimations:m,onMonthChange:v,monthsPerRow:S,onYearChange:P,yearsOrder:k,yearsPerRow:M,slots:E,slotProps:$,loading:w,renderLoading:R,disableHighlightToday:L,readOnly:j,disabled:O,showDaysOutsideCurrentMonth:D,dayOfWeekFormatter:I,sx:N,autoFocus:T,fixedWeekNumber:A,displayWeekNumber:_,timezone:V}),U1=h.forwardRef(function(t,n){var c,u;const r=uo(),o=gt(),i=_1(t,"MuiDesktopDatePicker"),a=z({day:ha,month:ha,year:ha},i.viewRenderers),s=z({},i,{viewRenderers:a,format:ng(o,i,!1),yearsPerRow:i.yearsPerRow??4,slots:z({openPickerIcon:tF,field:L1},i.slots),slotProps:z({},i.slotProps,{field:d=>{var f;return z({},bd((f=i.slotProps)==null?void 0:f.field,d),P1(i),{ref:n})},toolbar:z({hidden:!0},(c=i.slotProps)==null?void 0:c.toolbar)})}),{renderPicker:l}=h_({props:s,valueManager:Vr,valueType:"date",getOpenDialogAriaText:f1({utils:o,formatKey:"fullDate",contextTranslation:r.openDatePickerDialogue,propsTranslation:(u=s.localeText)==null?void 0:u.openDatePickerDialogue}),validator:Ul});return l()});U1.propTypes={autoFocus:Z.bool,className:Z.string,closeOnSelect:Z.bool,dayOfWeekFormatter:Z.func,defaultValue:Z.object,disabled:Z.bool,disableFuture:Z.bool,disableHighlightToday:Z.bool,disableOpenPicker:Z.bool,disablePast:Z.bool,displayWeekNumber:Z.bool,enableAccessibleFieldDOMStructure:Z.any,fixedWeekNumber:Z.number,format:Z.string,formatDensity:Z.oneOf(["dense","spacious"]),inputRef:$b,label:Z.node,loading:Z.bool,localeText:Z.object,maxDate:Z.object,minDate:Z.object,monthsPerRow:Z.oneOf([3,4]),name:Z.string,onAccept:Z.func,onChange:Z.func,onClose:Z.func,onError:Z.func,onMonthChange:Z.func,onOpen:Z.func,onSelectedSectionsChange:Z.func,onViewChange:Z.func,onYearChange:Z.func,open:Z.bool,openTo:Z.oneOf(["day","month","year"]),orientation:Z.oneOf(["landscape","portrait"]),readOnly:Z.bool,reduceAnimations:Z.bool,referenceDate:Z.object,renderLoading:Z.func,selectedSections:Z.oneOfType([Z.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),Z.number]),shouldDisableDate:Z.func,shouldDisableMonth:Z.func,shouldDisableYear:Z.func,showDaysOutsideCurrentMonth:Z.bool,slotProps:Z.object,slots:Z.object,sx:Z.oneOfType([Z.arrayOf(Z.oneOfType([Z.func,Z.object,Z.bool])),Z.func,Z.object]),timezone:Z.string,value:Z.object,view:Z.oneOf(["day","month","year"]),viewRenderers:Z.shape({day:Z.func,month:Z.func,year:Z.func}),views:Z.arrayOf(Z.oneOf(["day","month","year"]).isRequired),yearsOrder:Z.oneOf(["asc","desc"]),yearsPerRow:Z.oneOf([3,4])};const m_=G(kO)({[`& .${Ws.container}`]:{outline:0},[`& .${Ws.paper}`]:{outline:0,minWidth:zd}}),g_=G($O)({"&:first-of-type":{padding:0}});function y_(e){const{children:t,onDismiss:n,open:r,slots:o,slotProps:i}=e,a=(o==null?void 0:o.dialog)??m_,s=(o==null?void 0:o.mobileTransition)??Ha;return b.jsx(a,z({open:r,onClose:n},i==null?void 0:i.dialog,{TransitionComponent:s,TransitionProps:i==null?void 0:i.mobileTransition,PaperComponent:o==null?void 0:o.mobilePaper,PaperProps:i==null?void 0:i.mobilePaper,children:b.jsx(g_,{children:t})}))}const v_=["props","getOpenDialogAriaText"],x_=e=>{var V;let{props:t,getOpenDialogAriaText:n}=e,r=Ae(e,v_);const{slots:o,slotProps:i,className:a,sx:s,format:l,formatDensity:c,enableAccessibleFieldDOMStructure:u,selectedSections:d,onSelectedSectionsChange:f,timezone:y,name:g,label:x,inputRef:C,readOnly:p,disabled:m,localeText:v}=t,S=h.useRef(null),P=zo(),k=((V=i==null?void 0:i.toolbar)==null?void 0:V.hidden)??!1,{open:M,actions:E,layoutProps:$,renderCurrentView:w,fieldProps:R,contextValue:L}=z1(z({},r,{props:t,fieldRef:S,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),j=o.field,O=Qe({elementType:j,externalSlotProps:i==null?void 0:i.field,additionalProps:z({},R,k&&{id:P},!(m||p)&&{onClick:E.onOpen,onKeyDown:zF(E.onOpen)},{readOnly:p??!0,disabled:m,className:a,sx:s,format:l,formatDensity:c,enableAccessibleFieldDOMStructure:u,selectedSections:d,onSelectedSectionsChange:f,timezone:y,label:x,name:g},C?{inputRef:C}:{}),ownerState:t});O.inputProps=z({},O.inputProps,{"aria-label":n(R.value)});const D=z({textField:o.textField},O.slots),I=o.layout??W1;let N=P;k&&(x?N=`${P}-label`:N=void 0);const T=z({},i,{toolbar:z({},i==null?void 0:i.toolbar,{titleId:P}),mobilePaper:z({"aria-labelledby":N},i==null?void 0:i.mobilePaper)}),A=He(S,O.unstableFieldRef);return{renderPicker:()=>b.jsxs(M1,{contextValue:L,localeText:v,children:[b.jsx(j,z({},O,{slots:D,slotProps:T,unstableFieldRef:A})),b.jsx(y_,z({},E,{open:M,slots:o,slotProps:T,children:b.jsx(I,z({},$,T==null?void 0:T.layout,{slots:o,slotProps:T,children:w()}))}))]})}},H1=h.forwardRef(function(t,n){var c,u;const r=uo(),o=gt(),i=_1(t,"MuiMobileDatePicker"),a=z({day:ha,month:ha,year:ha},i.viewRenderers),s=z({},i,{viewRenderers:a,format:ng(o,i,!1),slots:z({field:L1},i.slots),slotProps:z({},i.slotProps,{field:d=>{var f;return z({},bd((f=i.slotProps)==null?void 0:f.field,d),P1(i),{ref:n})},toolbar:z({hidden:!1},(c=i.slotProps)==null?void 0:c.toolbar)})}),{renderPicker:l}=x_({props:s,valueManager:Vr,valueType:"date",getOpenDialogAriaText:f1({utils:o,formatKey:"fullDate",contextTranslation:r.openDatePickerDialogue,propsTranslation:(u=s.localeText)==null?void 0:u.openDatePickerDialogue}),validator:Ul});return l()});H1.propTypes={autoFocus:Z.bool,className:Z.string,closeOnSelect:Z.bool,dayOfWeekFormatter:Z.func,defaultValue:Z.object,disabled:Z.bool,disableFuture:Z.bool,disableHighlightToday:Z.bool,disableOpenPicker:Z.bool,disablePast:Z.bool,displayWeekNumber:Z.bool,enableAccessibleFieldDOMStructure:Z.any,fixedWeekNumber:Z.number,format:Z.string,formatDensity:Z.oneOf(["dense","spacious"]),inputRef:$b,label:Z.node,loading:Z.bool,localeText:Z.object,maxDate:Z.object,minDate:Z.object,monthsPerRow:Z.oneOf([3,4]),name:Z.string,onAccept:Z.func,onChange:Z.func,onClose:Z.func,onError:Z.func,onMonthChange:Z.func,onOpen:Z.func,onSelectedSectionsChange:Z.func,onViewChange:Z.func,onYearChange:Z.func,open:Z.bool,openTo:Z.oneOf(["day","month","year"]),orientation:Z.oneOf(["landscape","portrait"]),readOnly:Z.bool,reduceAnimations:Z.bool,referenceDate:Z.object,renderLoading:Z.func,selectedSections:Z.oneOfType([Z.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),Z.number]),shouldDisableDate:Z.func,shouldDisableMonth:Z.func,shouldDisableYear:Z.func,showDaysOutsideCurrentMonth:Z.bool,slotProps:Z.object,slots:Z.object,sx:Z.oneOfType([Z.arrayOf(Z.oneOfType([Z.func,Z.object,Z.bool])),Z.func,Z.object]),timezone:Z.string,value:Z.object,view:Z.oneOf(["day","month","year"]),viewRenderers:Z.shape({day:Z.func,month:Z.func,year:Z.func}),views:Z.arrayOf(Z.oneOf(["day","month","year"]).isRequired),yearsOrder:Z.oneOf(["asc","desc"]),yearsPerRow:Z.oneOf([3,4])};const S_=["desktopModeMediaQuery"],L0=h.forwardRef(function(t,n){const r=mt({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:o=VF}=r,i=Ae(r,S_);return Id(o,{defaultMatches:!0})?b.jsx(U1,z({ref:n},i)):b.jsx(H1,z({ref:n},i))}),b_=()=>{const[e,t]=h.useState(""),[n,r]=h.useState(""),[o,i]=h.useState(null),[a,s]=h.useState(null),[l,c]=h.useState(null),[u,d]=h.useState(""),[f,y]=h.useState(""),[g,x]=h.useState(""),[C,p]=h.useState(""),[m,v]=h.useState(""),[S,P]=h.useState(""),[k,M]=h.useState(null),[E,$]=h.useState(!1),w=zn(),{token:R}=h.useContext(wn),{trigger:L,error:j}=ja("/titles/",Hm(R)),{trigger:O,error:D}=ja("/images/",NL(R)),{data:I,isLoading:N}=_r("/activities/",zr(R)),T=async H=>{const ae=new FormData;ae.append("file",H);const se=await O(ae);c(se),console.log(se)},A={name:H=>{y(H)},description:H=>{x(setPasswordErrorMessage,H)},start_date:H=>{p(H)},end_date:H=>{v(H)},activity:H=>{P(H)}},_=()=>{$(!1),w(`/titles/${k}`)};h.useEffect(()=>{j&&Object.entries(j.info).forEach(([H,ae])=>{A[H](ae)})},[j]);const V=async H=>{H.preventDefault();const ae={name:e,description:n,start_date:o==null?void 0:o.format("YYYY-MM-DD"),end_date:a==null?void 0:a.format("YYYY-MM-DD"),activity:u};l&&(ae.image=l.id);const se=await L(ae);M(se.id),$(!0)};return N?b.jsx(Fl,{}):b.jsxs(b.Fragment,{children:[b.jsx(Bm,{open:E,autoHideDuration:2e3,onClose:_,children:b.jsx(km,{onClose:_,severity:"success",sx:{backgroundColor:"#4caf50",color:"white"},iconMapping:{success:b.jsx(Jm,{fontSize:"inherit"})},children:"Title is successfully created! Redirecting..."})}),b.jsx(Ye,{variant:"h4",gutterBottom:!0,children:"Create Title"}),b.jsxs("form",{onSubmit:V,children:[b.jsx(Fr,{label:"Title Name",variant:"outlined",fullWidth:!0,margin:"normal",value:e,onChange:H=>t(H.target.value),error:!!f,helperText:f}),b.jsx(Fr,{label:"Description",variant:"outlined",fullWidth:!0,margin:"normal",multiline:!0,rows:4,value:n,onChange:H=>r(H.target.value),error:!!g,helperText:g}),b.jsx(L0,{label:"Start Date",value:o,onChange:H=>i(H),slotProps:{textField:{margin:"normal",fullWidth:!0,variant:"outlined",error:!!C,helperText:C}}}),b.jsx(L0,{label:"End Date",value:a,onChange:H=>s(H),error:!!m,helperText:m,slotProps:{textField:{margin:"normal",fullWidth:!0,variant:"outlined",error:!!m,helperText:m}}}),b.jsxs($o,{fullWidth:!0,margin:"normal",error:!!S,children:[b.jsx(Am,{id:"activity-select-label",children:"Activity"}),b.jsx(Fm,{label:"Activity",labelId:"activity-select-label",value:u,onChange:H=>d(H.target.value),required:!0,children:I.map(H=>b.jsx(Gp,{value:H.id,children:H.name},H.id))})]}),b.jsx("input",{accept:"image/*",style:{display:"none"},id:"image-upload",type:"file",onChange:H=>T(H.target.files[0])}),b.jsx("label",{htmlFor:"image-upload",children:b.jsx(Tt,{variant:"outlined",component:"span",fullWidth:!0,sx:{marginY:"16px"},children:"Upload Image"})}),l&&b.jsx(an,{display:"flex",justifyContent:"center",margin:"8px",children:b.jsx(an,{component:"img",sx:{height:233,width:350,maxWidth:{xs:350,md:250}},alt:"The house from the offer.",src:l.file})}),b.jsx(Tt,{type:"submit",variant:"contained",color:"primary",fullWidth:!0,children:"Create Title"})]})]})},w_=()=>b.jsx(uw,{maxWidth:"sm",children:b.jsx(b_,{})}),Y1=({title:e,activity:t})=>b.jsx(vl,{children:b.jsx(cw,{children:b.jsxs(ci,{container:!0,children:[e.image&&b.jsx(ci,{size:{xs:12,sm:6},children:b.jsx(vl,{children:b.jsx(BI,{sx:{height:{xs:"300px",lg:"400px"},objectFit:"cover"},component:"img",image:e.image,alt:e.name})})}),b.jsx(ci,{size:{xs:12,sm:6},children:b.jsxs(an,{sx:{marginLeft:e.image?2:0},children:[b.jsx(Ye,{variant:"h4",component:"h1",gutterBottom:!0,children:e.name}),b.jsx(Ye,{variant:"body1",component:"p",sx:{marginBottom:"16px"},children:e.description}),b.jsxs(Ye,{variant:"body2",color:"textSecondary",children:["Start Date: ",new Date(e.startDate).toLocaleDateString()]}),b.jsxs(Ye,{variant:"body2",color:"textSecondary",children:["End Date:"," ",e.endDate?new Date(e.endDate).toLocaleDateString():"Not finished yet"]}),e.endDate&&b.jsxs(Ye,{variant:"body2",color:"textSecondary",children:["Spent:"," ",u1(new Date(e.endDate)-new Date(e.startDate))," ","days"]}),b.jsx(Lm,{component:Un,to:`/activities/${e.activity}`,variant:"body2",children:t?t.name:b.jsx(Fl,{size:"1rem"})})]})})]})})}),C_=()=>{const[e,t]=h.useState(null),n=zn(),{token:r}=h.useContext(wn),o=e1(),{data:i,isLoading:a,error:s}=_r(`/titles/${o.id}`,zr(r)),{data:l}=_r(e?`/activities/${e.activity}`:null,zr(r));return h.useEffect(()=>{i&&t({name:i.name,description:i.description,startDate:i.start_date,endDate:i.end_date,image:i.image,activity:i.activity})},[i]),h.useEffect(()=>{s&&n("/error")},[s]),a||!e?b.jsx(Vl,{}):b.jsx(Pi,{justifyContent:"center",justifyItems:"center",alignContent:"center",paddingX:4,children:b.jsx(Y1,{title:e,activity:l})})},k_=en(b.jsx("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu"),P_=({onLogin:e,onLogout:t})=>{const[n,r]=h.useState(null),[o,i]=h.useState(!1),{login:a,logout:s}=h.useContext(wn),{user:l}=Ld(),c=zn(),u=Id(g=>g.breakpoints.down("sm")),d=g=>{r(g.currentTarget)},f=()=>{r(null)},y=()=>{i(!o)};return b.jsxs(LD,{position:"static",color:"info",children:[b.jsxs(qA,{children:[b.jsxs(an,{flexGrow:1,display:"flex",alignItems:"center",children:[b.jsx(an,{component:Un,to:"/",sx:{display:"flex",alignItems:"center",textDecoration:"none",borderRadius:"50%",overflow:"hidden",width:"50px",height:"50px"},children:b.jsx(Zm,{})}),u?b.jsx(Wa,{color:"inherit",onClick:y,sx:{marginLeft:1},children:b.jsx(k_,{})}):b.jsxs(b.Fragment,{children:[b.jsx(Tt,{sx:{marginLeft:1},color:"inherit",component:Un,to:"/history",children:"History"}),b.jsx(Tt,{color:"inherit",component:Un,to:"/table",children:"Table"}),b.jsx(Tt,{color:"inherit",component:Un,to:"/activities",children:"Activities"}),b.jsx(Tt,{color:"inherit",onClick:d,children:"New"}),b.jsxs(ww,{anchorEl:n,open:!!n,onClose:f,children:[b.jsx(Gp,{onClick:f,component:Un,to:"/create-activity",children:"Activity"}),b.jsx(Gp,{onClick:f,component:Un,to:"/create-title",children:"Title"})]})]})]}),l?b.jsxs(b.Fragment,{children:[b.jsx(Ye,{variant:"body1",sx:{marginLeft:"auto",marginRight:"16px",color:"white"},children:l.username}),b.jsx(Tt,{color:"inherit",onClick:s,children:"Logout"})]}):b.jsx(Tt,{color:"inherit",onClick:()=>c("/login"),children:"Login"})]}),u&&b.jsx(WO,{anchor:"right",open:o,onClose:y,children:b.jsxs(an,{sx:{width:180},role:"presentation",onClick:y,onKeyDown:y,display:"flex",flexDirection:"column",gap:3,children:[b.jsx(Tt,{component:Un,to:"/history",children:"History"}),b.jsx(Tt,{component:Un,to:"/table",children:"Table"}),b.jsx(Tt,{component:Un,to:"/activities",children:"Activities"}),b.jsx(Tt,{component:Un,to:"/create-activity",children:"New activity"}),b.jsx(Tt,{component:Un,to:"/create-title",children:"New title"})]})})]})},E_=()=>b.jsxs(b.Fragment,{children:[b.jsx(P_,{isLoggedIn:!0,onLogin:()=>{console.log("login")},onLogout:()=>console.log("logout")}),b.jsx(an,{marginTop:4,children:b.jsx(qj,{})})]}),M_=()=>{const[e,t]=h.useState(null),[n,r]=h.useState(null),o=zn(),{token:i}=h.useContext(wn),a=e1(),{data:s,isLoading:l,error:c}=_r(`/activities/${a.id}`,zr(i)),{data:u}=_r(e?`/titles?activity=${e.id}`:null,zr(i));return console.log(s),h.useEffect(()=>{s&&t({id:s.id,name:s.name,description:s.description})},[s]),h.useEffect(()=>{u&&r(u.map(d=>({id:d.id,name:d.name,description:d.description,startDate:d.start_date,endDate:d.end_date,image:d.image})))},[u]),h.useEffect(()=>{c&&o("/error")},[c]),l||!e?b.jsx(Vl,{}):(console.log(n),b.jsxs(Pi,{justifyContent:"center",justifyItems:"center",alignContent:"center",paddingX:4,children:[b.jsx(Ye,{variant:"h4",component:"h1",gutterBottom:!0,children:e.name}),b.jsx(Ye,{variant:"body1",component:"p",sx:{marginBottom:"16px"},children:e.description}),n&&b.jsx(ci,{container:!0,spacing:2,marginTop:2,children:n.map(d=>b.jsx(ci,{size:{xs:12,md:6},children:b.jsx(Y1,{activity:e,title:d})},d.id))})]}))},R_=(e,t,n)=>{const r=n.map(o=>{console.log("sta",o.startDate,o.endDate);const i=new Date(o.startDate),a=o.endDate&&new Date(o.endDate);console.log("en",i,a);const s={start_date:{day:i.getDate(),month:i.getMonth()+1,year:i.getFullYear()},text:{headline:o.name,text:o.description},group:o.activityName};return a&&(s.end_date={day:a.getDate(),month:a.getMonth()+1,year:a.getFullYear()}),o.image&&(s.media={url:o.image}),s});return{title:{text:{headline:e,text:t}},events:r}},T_=()=>{const{token:e}=h.useContext(wn),{data:t,isLoading:n}=_r("/titles/",zr(e));return h.useLayoutEffect(()=>{if(t){const r=t.map(i=>({name:i.name,description:i.description,startDate:i.start_date,endDate:i.end_date,image:i.image,activityName:i.activity_name})),o=R_("Aboba","kakulya",r);console.log(o),new TL.Timeline("timeline-embed",o)}},[t]),n?b.jsx(Vl,{}):b.jsx(b.Fragment,{children:b.jsx("div",{id:"timeline-embed",style:{width:"100%",height:"600px"}})})},D_=()=>{const{token:e}=h.useContext(wn),t=zn(),{data:n,isLoading:r}=_r("/activities/",zr(e));return r?b.jsx(Vl,{}):b.jsx(ci,{container:!0,spacing:2,sx:{padding:2},children:n.map(o=>b.jsx(ci,{size:{xs:12,sm:6,md:6},children:b.jsx(vl,{sx:{minHeight:{xs:"100px",sm:"180px"},cursor:"pointer"},onClick:()=>t(`/activities/${o.id}`),children:b.jsxs(cw,{children:[b.jsx(Ye,{variant:"h5",component:"div",children:o.name}),b.jsx(Ye,{variant:"body2",color:"text.secondary",children:o.description})]})})},o.id))})},I_=()=>{const e=BN(),t=iN([{path:"/",element:b.jsx(E_,{}),children:[{path:"/",element:b.jsx(mo,{Component:FL})},{path:"/register",element:b.jsx(b0,{Component:HN})},{path:"/login",element:b.jsx(b0,{Component:VN})},{path:"/table",element:b.jsx(mo,{Component:YN})},{path:"/activities",element:b.jsx(mo,{Component:D_})},{path:"/titles/:id",element:b.jsx(mo,{Component:C_})},{path:"/activities/:id",element:b.jsx(mo,{Component:M_})},{path:"/create-activity",element:b.jsx(mo,{Component:GN})},{path:"/create-title",element:b.jsx(mo,{Component:w_})},{path:"/history",element:b.jsx(mo,{Component:T_})},{path:"/error",element:b.jsx(S0,{})},{path:"*",element:b.jsx(S0,{})}]}],{basename:"/timetrekah-frontend/"});return b.jsx(wn.Provider,{value:e,children:b.jsx(hN,{router:t})})};var O_={exports:{}};(function(e,t){(function(n,r){e.exports=r(o1())})(bi,function(n){function r(l){return l&&typeof l=="object"&&"default"in l?l:{default:l}}var o=r(n),i={s:"ein paar Sekunden",m:["eine Minute","einer Minute"],mm:"%d Minuten",h:["eine Stunde","einer Stunde"],hh:"%d Stunden",d:["ein Tag","einem Tag"],dd:["%d Tage","%d Tagen"],M:["ein Monat","einem Monat"],MM:["%d Monate","%d Monaten"],y:["ein Jahr","einem Jahr"],yy:["%d Jahre","%d Jahren"]};function a(l,c,u){var d=i[u];return Array.isArray(d)&&(d=d[c?0:1]),d.replace("%d",l)}var s={name:"de",weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sept._Okt._Nov._Dez.".split("_"),ordinal:function(l){return l+"."},weekStart:1,yearStart:4,formats:{LTS:"HH:mm:ss",LT:"HH:mm",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},relativeTime:{future:"in %s",past:"vor %s",s:a,m:a,mm:a,h:a,hh:a,d:a,dd:a,M:a,MM:a,y:a,yy:a}};return o.default.locale(s,null,!0),s})})(O_);const $_=Cd();QS(document.getElementById("root")).render(b.jsx(h.StrictMode,{children:b.jsx(LL,{value:{fetcher:jL},children:b.jsx(OT,{theme:$_,children:b.jsx(d1,{dateAdapter:AN,adapterLocale:"de",children:b.jsx(I_,{})})})})})); diff --git a/index.html b/index.html index 8531722..baef007 100644 --- a/index.html +++ b/index.html @@ -8,7 +8,7 @@ - +