diff --git a/assets/PuzzleImg-CXfQmw24.jpeg b/assets/PuzzleImg-CXfQmw24.jpeg new file mode 100644 index 0000000..7137663 Binary files /dev/null and b/assets/PuzzleImg-CXfQmw24.jpeg differ diff --git a/assets/TimeSpent-BZl7BIY1.png b/assets/TimeSpent-BZl7BIY1.png new file mode 100644 index 0000000..68b2b13 Binary files /dev/null and b/assets/TimeSpent-BZl7BIY1.png differ diff --git a/assets/index-BRrYqPPY.js b/assets/index-BRrYqPPY.js new file mode 100644 index 0000000..2a4ffaa --- /dev/null +++ b/assets/index-BRrYqPPY.js @@ -0,0 +1,179 @@ +function dk(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 s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).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)}})();function _1(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Qr(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var L1={exports:{}},vc={},N1={exports:{}},me={};/** + * @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 La=Symbol.for("react.element"),fk=Symbol.for("react.portal"),pk=Symbol.for("react.fragment"),hk=Symbol.for("react.strict_mode"),mk=Symbol.for("react.profiler"),gk=Symbol.for("react.provider"),yk=Symbol.for("react.context"),vk=Symbol.for("react.forward_ref"),xk=Symbol.for("react.suspense"),bk=Symbol.for("react.memo"),wk=Symbol.for("react.lazy"),Yg=Symbol.iterator;function Ck(e){return e===null||typeof e!="object"?null:(e=Yg&&e[Yg]||e["@@iterator"],typeof e=="function"?e:null)}var j1={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},F1=Object.assign,z1={};function Gi(e,t,n){this.props=e,this.context=t,this.refs=z1,this.updater=n||j1}Gi.prototype.isReactComponent={};Gi.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")};Gi.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function D1(){}D1.prototype=Gi.prototype;function Eh(e,t,n){this.props=e,this.context=t,this.refs=z1,this.updater=n||j1}var Rh=Eh.prototype=new D1;Rh.constructor=Eh;F1(Rh,Gi.prototype);Rh.isPureReactComponent=!0;var Qg=Array.isArray,B1=Object.prototype.hasOwnProperty,Th={current:null},U1={key:!0,ref:!0,__self:!0,__source:!0};function W1(e,t,n){var r,o={},i=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)B1.call(t,r)&&!U1.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1>>1,X=I[K];if(0>>1;Ko(q,D))teo(ae,q)?(I[K]=ae,I[te]=D,K=te):(I[K]=q,I[Y]=D,K=Y);else if(teo(ae,D))I[K]=ae,I[te]=D,K=te;else break e}}return F}function o(I,F){var D=I.sortIndex-F.sortIndex;return D!==0?D:I.id-F.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],u=[],c=1,d=null,f=3,h=!1,p=!1,g=!1,w=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(I){for(var F=n(u);F!==null;){if(F.callback===null)r(u);else if(F.startTime<=I)r(u),F.sortIndex=F.expirationTime,t(l,F);else break;F=n(u)}}function x(I){if(g=!1,y(I),!p)if(n(l)!==null)p=!0,N(S);else{var F=n(u);F!==null&&z(x,F.startTime-I)}}function S(I,F){p=!1,g&&(g=!1,m(M),M=-1),h=!0;var D=f;try{for(y(F),d=n(l);d!==null&&(!(d.expirationTime>F)||I&&!T());){var K=d.callback;if(typeof K=="function"){d.callback=null,f=d.priorityLevel;var X=K(d.expirationTime<=F);F=e.unstable_now(),typeof X=="function"?d.callback=X:d===n(l)&&r(l),y(F)}else r(l);d=n(l)}if(d!==null)var re=!0;else{var Y=n(u);Y!==null&&z(x,Y.startTime-F),re=!1}return re}finally{d=null,f=D,h=!1}}var A=!1,P=null,M=-1,O=5,E=-1;function T(){return!(e.unstable_now()-EI||125K?(I.sortIndex=D,t(u,I),n(l)===null&&I===n(u)&&(g?(m(M),M=-1):g=!0,z(x,D-K))):(I.sortIndex=X,t(l,I),p||h||(p=!0,N(S))),I},e.unstable_shouldYield=T,e.unstable_wrapCallback=function(I){var F=f;return function(){var D=f;f=F;try{return I.apply(this,arguments)}finally{f=D}}}})(X1);K1.exports=X1;var Ok=K1.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 _k=k,Yt=Ok;function U(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"),tp=Object.prototype.hasOwnProperty,Lk=/^[: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]*$/,Zg={},Jg={};function Nk(e){return tp.call(Jg,e)?!0:tp.call(Zg,e)?!1:Lk.test(e)?Jg[e]=!0:(Zg[e]=!0,!1)}function jk(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 Fk(e,t,n,r){if(t===null||typeof t>"u"||jk(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 Pt(e,t,n,r,o,i,s){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=s}var dt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){dt[e]=new Pt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];dt[t]=new Pt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){dt[e]=new Pt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){dt[e]=new Pt(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){dt[e]=new Pt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){dt[e]=new Pt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){dt[e]=new Pt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){dt[e]=new Pt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){dt[e]=new Pt(e,5,!1,e.toLowerCase(),null,!1,!1)});var $h=/[\-:]([a-z])/g;function Oh(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($h,Oh);dt[t]=new Pt(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($h,Oh);dt[t]=new Pt(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($h,Oh);dt[t]=new Pt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){dt[e]=new Pt(e,1,!1,e.toLowerCase(),null,!1,!1)});dt.xlinkHref=new Pt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){dt[e]=new Pt(e,1,!1,e.toLowerCase(),null,!0,!0)});function _h(e,t,n,r){var o=dt.hasOwnProperty(t)?dt[t]:null;(o!==null?o.type!==0:r||!(2a||o[s]!==i[a]){var l=` +`+o[s].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{qd=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ms(e):""}function zk(e){switch(e.tag){case 5:return Ms(e.type);case 16:return Ms("Lazy");case 13:return Ms("Suspense");case 19:return Ms("SuspenseList");case 0:case 2:case 15:return e=Zd(e.type,!1),e;case 11:return e=Zd(e.type.render,!1),e;case 1:return e=Zd(e.type,!0),e;default:return""}}function ip(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 ei:return"Fragment";case Jo:return"Portal";case np:return"Profiler";case Lh:return"StrictMode";case rp:return"Suspense";case op:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case q1:return(e.displayName||"Context")+".Consumer";case Q1:return(e._context.displayName||"Context")+".Provider";case Nh:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case jh:return t=e.displayName||null,t!==null?t:ip(e.type)||"Memo";case Tr:t=e._payload,e=e._init;try{return ip(e(t))}catch{}}return null}function Dk(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 ip(t);case 8:return t===Lh?"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 Kr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function J1(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Bk(e){var t=J1(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(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function sl(e){e._valueTracker||(e._valueTracker=Bk(e))}function ex(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=J1(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function yu(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 sp(e,t){var n=t.checked;return ze({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function t0(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Kr(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 tx(e,t){t=t.checked,t!=null&&_h(e,"checked",t,!1)}function ap(e,t){tx(e,t);var n=Kr(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")?lp(e,t.type,n):t.hasOwnProperty("defaultValue")&&lp(e,t.type,Kr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function n0(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 lp(e,t,n){(t!=="number"||yu(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Es=Array.isArray;function pi(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=al.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Zs(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Os={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},Uk=["Webkit","ms","Moz","O"];Object.keys(Os).forEach(function(e){Uk.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Os[t]=Os[e]})});function ix(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Os.hasOwnProperty(e)&&Os[e]?(""+t).trim():t+"px"}function sx(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=ix(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Wk=ze({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 dp(e,t){if(t){if(Wk[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(U(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(U(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(U(61))}if(t.style!=null&&typeof t.style!="object")throw Error(U(62))}}function fp(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 pp=null;function Fh(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var hp=null,hi=null,mi=null;function i0(e){if(e=Fa(e)){if(typeof hp!="function")throw Error(U(280));var t=e.stateNode;t&&(t=Sc(t),hp(e.stateNode,e.type,t))}}function ax(e){hi?mi?mi.push(e):mi=[e]:hi=e}function lx(){if(hi){var e=hi,t=mi;if(mi=hi=null,i0(e),t)for(e=0;e>>=0,e===0?32:31-(e2(e)/t2|0)|0}var ll=64,ul=4194304;function Rs(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 wu(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~o;a!==0?r=Rs(a):(i&=s,i!==0&&(r=Rs(i)))}else s=n&~o,s!==0?r=Rs(s):i!==0&&(r=Rs(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 Na(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-_n(t),e[t]=n}function i2(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=Ls),h0=" ",m0=!1;function Ex(e,t){switch(e){case"keyup":return O2.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Rx(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ti=!1;function L2(e,t){switch(e){case"compositionend":return Rx(t);case"keypress":return t.which!==32?null:(m0=!0,h0);case"textInput":return e=t.data,e===h0&&m0?null:e;default:return null}}function N2(e,t){if(ti)return e==="compositionend"||!Gh&&Ex(e,t)?(e=Px(),Yl=Wh=_r=null,ti=!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=x0(n)}}function Ox(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ox(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function _x(){for(var e=window,t=yu();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=yu(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 V2(e){var t=_x(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Ox(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=b0(n,i);var s=b0(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.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,ni=null,bp=null,js=null,wp=!1;function w0(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;wp||ni==null||ni!==yu(r)||(r=ni,"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}),js&&oa(js,r)||(js=r,r=ku(bp,"onSelect"),0ii||(e.current=Mp[ii],Mp[ii]=null,ii--)}function Te(e,t){ii++,Mp[ii]=e.current,e.current=t}var Xr={},bt=Zr(Xr),Ot=Zr(!1),Mo=Xr;function Pi(e,t){var n=e.type.contextTypes;if(!n)return Xr;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 _t(e){return e=e.childContextTypes,e!=null}function Pu(){Oe(Ot),Oe(bt)}function E0(e,t,n){if(bt.current!==Xr)throw Error(U(168));Te(bt,t),Te(Ot,n)}function Wx(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(U(108,Dk(e)||"Unknown",o));return ze({},n,r)}function Mu(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Xr,Mo=bt.current,Te(bt,e),Te(Ot,Ot.current),!0}function R0(e,t,n){var r=e.stateNode;if(!r)throw Error(U(169));n?(e=Wx(e,t,Mo),r.__reactInternalMemoizedMergedChildContext=e,Oe(Ot),Oe(bt),Te(bt,e)):Oe(Ot),Te(Ot,n)}var lr=null,kc=!1,pf=!1;function Hx(e){lr===null?lr=[e]:lr.push(e)}function rA(e){kc=!0,Hx(e)}function Jr(){if(!pf&&lr!==null){pf=!0;var e=0,t=Se;try{var n=lr;for(Se=1;e>=s,o-=s,cr=1<<32-_n(t)+o|n<M?(O=P,P=null):O=P.sibling;var E=f(m,P,y[M],x);if(E===null){P===null&&(P=O);break}e&&P&&E.alternate===null&&t(m,P),v=i(E,v,M),A===null?S=E:A.sibling=E,A=E,P=O}if(M===y.length)return n(m,P),Ne&&so(m,M),S;if(P===null){for(;MM?(O=P,P=null):O=P.sibling;var T=f(m,P,E.value,x);if(T===null){P===null&&(P=O);break}e&&P&&T.alternate===null&&t(m,P),v=i(T,v,M),A===null?S=T:A.sibling=T,A=T,P=O}if(E.done)return n(m,P),Ne&&so(m,M),S;if(P===null){for(;!E.done;M++,E=y.next())E=d(m,E.value,x),E!==null&&(v=i(E,v,M),A===null?S=E:A.sibling=E,A=E);return Ne&&so(m,M),S}for(P=r(m,P);!E.done;M++,E=y.next())E=h(P,m,M,E.value,x),E!==null&&(e&&E.alternate!==null&&P.delete(E.key===null?M:E.key),v=i(E,v,M),A===null?S=E:A.sibling=E,A=E);return e&&P.forEach(function(_){return t(m,_)}),Ne&&so(m,M),S}function w(m,v,y,x){if(typeof y=="object"&&y!==null&&y.type===ei&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case il:e:{for(var S=y.key,A=v;A!==null;){if(A.key===S){if(S=y.type,S===ei){if(A.tag===7){n(m,A.sibling),v=o(A,y.props.children),v.return=m,m=v;break e}}else if(A.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===Tr&&$0(S)===A.type){n(m,A.sibling),v=o(A,y.props),v.ref=fs(m,A,y),v.return=m,m=v;break e}n(m,A);break}else t(m,A);A=A.sibling}y.type===ei?(v=ko(y.props.children,m.mode,x,y.key),v.return=m,m=v):(x=ru(y.type,y.key,y.props,null,m.mode,x),x.ref=fs(m,v,y),x.return=m,m=x)}return s(m);case Jo:e:{for(A=y.key;v!==null;){if(v.key===A)if(v.tag===4&&v.stateNode.containerInfo===y.containerInfo&&v.stateNode.implementation===y.implementation){n(m,v.sibling),v=o(v,y.children||[]),v.return=m,m=v;break e}else{n(m,v);break}else t(m,v);v=v.sibling}v=wf(y,m.mode,x),v.return=m,m=v}return s(m);case Tr:return A=y._init,w(m,v,A(y._payload),x)}if(Es(y))return p(m,v,y,x);if(as(y))return g(m,v,y,x);gl(m,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,v!==null&&v.tag===6?(n(m,v.sibling),v=o(v,y),v.return=m,m=v):(n(m,v),v=bf(y,m.mode,x),v.return=m,m=v),s(m)):n(m,v)}return w}var Ei=Xx(!0),Yx=Xx(!1),Tu=Zr(null),Iu=null,li=null,qh=null;function Zh(){qh=li=Iu=null}function Jh(e){var t=Tu.current;Oe(Tu),e._currentValue=t}function Tp(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 yi(e,t){Iu=e,qh=li=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(It=!0),e.firstContext=null)}function gn(e){var t=e._currentValue;if(qh!==e)if(e={context:e,memoizedValue:t,next:null},li===null){if(Iu===null)throw Error(U(308));li=e,Iu.dependencies={lanes:0,firstContext:e}}else li=li.next=e;return t}var ho=null;function em(e){ho===null?ho=[e]:ho.push(e)}function Qx(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,em(t)):(n.next=o.next,o.next=n),t.interleaved=n,yr(e,r)}function yr(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 Ir=!1;function tm(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function qx(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 hr(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ur(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ye&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,yr(e,n)}return o=r.interleaved,o===null?(t.next=t,em(r)):(t.next=o.next,o.next=t),r.interleaved=t,yr(e,n)}function ql(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,Dh(e,n)}}function O0(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 s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=s:i=i.next=s,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 $u(e,t,n,r){var o=e.updateQueue;Ir=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var l=a,u=l.next;l.next=null,s===null?i=u:s.next=u,s=l;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==s&&(a===null?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(i!==null){var d=o.baseState;s=0,c=u=l=null,a=i;do{var f=a.lane,h=a.eventTime;if((r&f)===f){c!==null&&(c=c.next={eventTime:h,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var p=e,g=a;switch(f=t,h=n,g.tag){case 1:if(p=g.payload,typeof p=="function"){d=p.call(h,d,f);break e}d=p;break e;case 3:p.flags=p.flags&-65537|128;case 0:if(p=g.payload,f=typeof p=="function"?p.call(h,d,f):p,f==null)break e;d=ze({},d,f);break e;case 2:Ir=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,f=o.effects,f===null?o.effects=[a]:f.push(a))}else h={eventTime:h,lane:f,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=h,l=d):c=c.next=h,s|=f;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;f=a,a=f.next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}while(!0);if(c===null&&(l=d),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=c,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);To|=s,e.lanes=s,e.memoizedState=d}}function _0(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=mf.transition;mf.transition={};try{e(!1),t()}finally{Se=n,mf.transition=r}}function hb(){return yn().memoizedState}function aA(e,t,n){var r=Hr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},mb(e))gb(t,n);else if(n=Qx(e,t,n,r),n!==null){var o=St();Ln(n,e,r,o),yb(n,t,r)}}function lA(e,t,n){var r=Hr(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(mb(e))gb(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,a=i(s,n);if(o.hasEagerState=!0,o.eagerState=a,jn(a,s)){var l=t.interleaved;l===null?(o.next=o,em(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=Qx(e,t,o,r),n!==null&&(o=St(),Ln(n,e,r,o),yb(n,t,r))}}function mb(e){var t=e.alternate;return e===Fe||t!==null&&t===Fe}function gb(e,t){Fs=_u=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function yb(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Dh(e,n)}}var Lu={readContext:gn,useCallback:pt,useContext:pt,useEffect:pt,useImperativeHandle:pt,useInsertionEffect:pt,useLayoutEffect:pt,useMemo:pt,useReducer:pt,useRef:pt,useState:pt,useDebugValue:pt,useDeferredValue:pt,useTransition:pt,useMutableSource:pt,useSyncExternalStore:pt,useId:pt,unstable_isNewReconciler:!1},uA={readContext:gn,useCallback:function(e,t){return Hn().memoizedState=[e,t===void 0?null:t],e},useContext:gn,useEffect:N0,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Jl(4194308,4,ub.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Jl(4194308,4,e,t)},useInsertionEffect:function(e,t){return Jl(4,2,e,t)},useMemo:function(e,t){var n=Hn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Hn();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=aA.bind(null,Fe,e),[r.memoizedState,e]},useRef:function(e){var t=Hn();return e={current:e},t.memoizedState=e},useState:L0,useDebugValue:um,useDeferredValue:function(e){return Hn().memoizedState=e},useTransition:function(){var e=L0(!1),t=e[0];return e=sA.bind(null,e[1]),Hn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Fe,o=Hn();if(Ne){if(n===void 0)throw Error(U(407));n=n()}else{if(n=t(),tt===null)throw Error(U(349));Ro&30||tb(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,N0(rb.bind(null,r,i,e),[e]),r.flags|=2048,fa(9,nb.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Hn(),t=tt.identifierPrefix;if(Ne){var n=dr,r=cr;n=(r&~(1<<32-_n(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ca++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Xn]=t,e[aa]=r,Mb(e,t,!1,!1),t.stateNode=e;e:{switch(s=fp(n,r),n){case"dialog":$e("cancel",e),$e("close",e),o=r;break;case"iframe":case"object":case"embed":$e("load",e),o=r;break;case"video":case"audio":for(o=0;oIi&&(t.flags|=128,r=!0,ps(i,!1),t.lanes=4194304)}else{if(!r)if(e=Ou(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ps(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!Ne)return ht(t),null}else 2*He()-i.renderingStartTime>Ii&&n!==1073741824&&(t.flags|=128,r=!0,ps(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=He(),t.sibling=null,n=je.current,Te(je,r?n&1|2:n&1),t):(ht(t),null);case 22:case 23:return mm(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Wt&1073741824&&(ht(t),t.subtreeFlags&6&&(t.flags|=8192)):ht(t),null;case 24:return null;case 25:return null}throw Error(U(156,t.tag))}function yA(e,t){switch(Yh(t),t.tag){case 1:return _t(t.type)&&Pu(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ri(),Oe(Ot),Oe(bt),om(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return rm(t),null;case 13:if(Oe(je),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(U(340));Mi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Oe(je),null;case 4:return Ri(),null;case 10:return Jh(t.type._context),null;case 22:case 23:return mm(),null;case 24:return null;default:return null}}var vl=!1,xt=!1,vA=typeof WeakSet=="function"?WeakSet:Set,Z=null;function ui(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ue(e,t,r)}else n.current=null}function zp(e,t,n){try{n()}catch(r){Ue(e,t,r)}}var K0=!1;function xA(e,t){if(Cp=Cu,e=_x(),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 s=0,a=-1,l=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var h;d!==n||o!==0&&d.nodeType!==3||(a=s+o),d!==i||r!==0&&d.nodeType!==3||(l=s+r),d.nodeType===3&&(s+=d.nodeValue.length),(h=d.firstChild)!==null;)f=d,d=h;for(;;){if(d===e)break t;if(f===n&&++u===o&&(a=s),f===i&&++c===r&&(l=s),(h=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=h}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Sp={focusedElem:e,selectionRange:n},Cu=!1,Z=t;Z!==null;)if(t=Z,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Z=e;else for(;Z!==null;){t=Z;try{var p=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(p!==null){var g=p.memoizedProps,w=p.memoizedState,m=t.stateNode,v=m.getSnapshotBeforeUpdate(t.elementType===t.type?g:Mn(t.type,g),w);m.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(U(163))}}catch(x){Ue(t,t.return,x)}if(e=t.sibling,e!==null){e.return=t.return,Z=e;break}Z=t.return}return p=K0,K0=!1,p}function zs(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&&zp(t,n,i)}o=o.next}while(o!==r)}}function Mc(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 Dp(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 Tb(e){var t=e.alternate;t!==null&&(e.alternate=null,Tb(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Xn],delete t[aa],delete t[Pp],delete t[tA],delete t[nA])),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 Ib(e){return e.tag===5||e.tag===3||e.tag===4}function X0(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ib(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 Bp(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=Au));else if(r!==4&&(e=e.child,e!==null))for(Bp(e,t,n),e=e.sibling;e!==null;)Bp(e,t,n),e=e.sibling}function Up(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(Up(e,t,n),e=e.sibling;e!==null;)Up(e,t,n),e=e.sibling}var lt=null,En=!1;function Pr(e,t,n){for(n=n.child;n!==null;)$b(e,t,n),n=n.sibling}function $b(e,t,n){if(Yn&&typeof Yn.onCommitFiberUnmount=="function")try{Yn.onCommitFiberUnmount(xc,n)}catch{}switch(n.tag){case 5:xt||ui(n,t);case 6:var r=lt,o=En;lt=null,Pr(e,t,n),lt=r,En=o,lt!==null&&(En?(e=lt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):lt.removeChild(n.stateNode));break;case 18:lt!==null&&(En?(e=lt,n=n.stateNode,e.nodeType===8?ff(e.parentNode,n):e.nodeType===1&&ff(e,n),na(e)):ff(lt,n.stateNode));break;case 4:r=lt,o=En,lt=n.stateNode.containerInfo,En=!0,Pr(e,t,n),lt=r,En=o;break;case 0:case 11:case 14:case 15:if(!xt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&zp(n,t,s),o=o.next}while(o!==r)}Pr(e,t,n);break;case 1:if(!xt&&(ui(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Ue(n,t,a)}Pr(e,t,n);break;case 21:Pr(e,t,n);break;case 22:n.mode&1?(xt=(r=xt)||n.memoizedState!==null,Pr(e,t,n),xt=r):Pr(e,t,n);break;default:Pr(e,t,n)}}function Y0(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new vA),t.forEach(function(r){var o=EA.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Pn(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=s),r&=~i}if(r=o,r=He()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*wA(r/1960))-r,10e?16:e,Lr===null)var r=!1;else{if(e=Lr,Lr=null,Fu=0,ye&6)throw Error(U(331));var o=ye;for(ye|=4,Z=e.current;Z!==null;){var i=Z,s=i.child;if(Z.flags&16){var a=i.deletions;if(a!==null){for(var l=0;lHe()-pm?So(e,0):fm|=n),Lt(e,t)}function Db(e,t){t===0&&(e.mode&1?(t=ul,ul<<=1,!(ul&130023424)&&(ul=4194304)):t=1);var n=St();e=yr(e,t),e!==null&&(Na(e,t,n),Lt(e,n))}function MA(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Db(e,n)}function EA(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(U(314))}r!==null&&r.delete(t),Db(e,n)}var Bb;Bb=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ot.current)It=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return It=!1,mA(e,t,n);It=!!(e.flags&131072)}else It=!1,Ne&&t.flags&1048576&&Vx(t,Ru,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;eu(e,t),e=t.pendingProps;var o=Pi(t,bt.current);yi(t,n),o=sm(null,t,r,e,o,n);var i=am();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,_t(r)?(i=!0,Mu(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,tm(t),o.updater=Pc,t.stateNode=o,o._reactInternals=t,$p(t,r,e,n),t=Lp(null,t,r,!0,i,n)):(t.tag=0,Ne&&i&&Xh(t),wt(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(eu(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=TA(r),e=Mn(r,e),o){case 0:t=_p(null,t,r,e,n);break e;case 1:t=H0(null,t,r,e,n);break e;case 11:t=U0(null,t,r,e,n);break e;case 14:t=W0(null,t,r,Mn(r.type,e),n);break e}throw Error(U(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Mn(r,o),_p(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Mn(r,o),H0(e,t,r,o,n);case 3:e:{if(kb(t),e===null)throw Error(U(387));r=t.pendingProps,i=t.memoizedState,o=i.element,qx(e,t),$u(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Ti(Error(U(423)),t),t=V0(e,t,r,n,o);break e}else if(r!==o){o=Ti(Error(U(424)),t),t=V0(e,t,r,n,o);break e}else for(Vt=Br(t.stateNode.containerInfo.firstChild),Gt=t,Ne=!0,Rn=null,n=Yx(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Mi(),r===o){t=vr(e,t,n);break e}wt(e,t,r,n)}t=t.child}return t;case 5:return Zx(t),e===null&&Rp(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,kp(r,o)?s=null:i!==null&&kp(r,i)&&(t.flags|=32),Sb(e,t),wt(e,t,s,n),t.child;case 6:return e===null&&Rp(t),null;case 13:return Ab(e,t,n);case 4:return nm(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ei(t,null,r,n):wt(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Mn(r,o),U0(e,t,r,o,n);case 7:return wt(e,t,t.pendingProps,n),t.child;case 8:return wt(e,t,t.pendingProps.children,n),t.child;case 12:return wt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,Te(Tu,r._currentValue),r._currentValue=s,i!==null)if(jn(i.value,s)){if(i.children===o.children&&!Ot.current){t=vr(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){s=i.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=hr(-1,n&-n),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),Tp(i.return,n,t),a.lanes|=n;break}l=l.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(U(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),Tp(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}wt(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,yi(t,n),o=gn(o),r=r(o),t.flags|=1,wt(e,t,r,n),t.child;case 14:return r=t.type,o=Mn(r,t.pendingProps),o=Mn(r.type,o),W0(e,t,r,o,n);case 15:return wb(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Mn(r,o),eu(e,t),t.tag=1,_t(r)?(e=!0,Mu(t)):e=!1,yi(t,n),vb(t,r,o),$p(t,r,o,n),Lp(null,t,r,!0,e,n);case 19:return Pb(e,t,n);case 22:return Cb(e,t,n)}throw Error(U(156,t.tag))};function Ub(e,t){return mx(e,t)}function RA(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 dn(e,t,n,r){return new RA(e,t,n,r)}function ym(e){return e=e.prototype,!(!e||!e.isReactComponent)}function TA(e){if(typeof e=="function")return ym(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Nh)return 11;if(e===jh)return 14}return 2}function Vr(e,t){var n=e.alternate;return n===null?(n=dn(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 ru(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")ym(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case ei:return ko(n.children,o,i,t);case Lh:s=8,o|=8;break;case np:return e=dn(12,n,t,o|2),e.elementType=np,e.lanes=i,e;case rp:return e=dn(13,n,t,o),e.elementType=rp,e.lanes=i,e;case op:return e=dn(19,n,t,o),e.elementType=op,e.lanes=i,e;case Z1:return Rc(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Q1:s=10;break e;case q1:s=9;break e;case Nh:s=11;break e;case jh:s=14;break e;case Tr:s=16,r=null;break e}throw Error(U(130,e==null?e:typeof e,""))}return t=dn(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function ko(e,t,n,r){return e=dn(7,e,r,t),e.lanes=n,e}function Rc(e,t,n,r){return e=dn(22,e,r,t),e.elementType=Z1,e.lanes=n,e.stateNode={isHidden:!1},e}function bf(e,t,n){return e=dn(6,e,null,t),e.lanes=n,e}function wf(e,t,n){return t=dn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function IA(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=ef(0),this.expirationTimes=ef(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ef(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function vm(e,t,n,r,o,i,s,a,l){return e=new IA(e,t,n,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=dn(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},tm(i),e}function $A(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Gb)}catch(e){console.error(e)}}Gb(),G1.exports=Zt;var _c=G1.exports;const wl=_1(_c);var Kb,ry=_c;Kb=ry.createRoot,ry.hydrateRoot;function H(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 b(){return b=Object.assign?Object.assign.bind():function(e){for(var t=1;t{r[o]=e[o].reduce((i,s)=>{if(s){const a=t(s);a!==""&&i.push(a),n&&n[s]&&i.push(n[s])}return i},[]).join(" ")}),r}var Da={},Yb={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Yb);var Qb=Yb.exports,Cf={exports:{}},oy;function qb(){return oy||(oy=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(n){for(var r=1;r0?ut(Yi,--Ft):0,$i--,Xe===10&&($i=1,Nc--),Xe}function Kt(){return Xe=Ft2||ma(Xe)>3?"":" "}function eP(e,t){for(;--t&&Kt()&&!(Xe<48||Xe>102||Xe>57&&Xe<65||Xe>70&&Xe<97););return Ba(e,ou()+(t<6&&qn()==32&&Kt()==32))}function Xp(e){for(;Kt();)switch(Xe){case e:return Ft;case 34:case 39:e!==34&&e!==39&&Xp(Xe);break;case 40:e===41&&Xp(e);break;case 92:Kt();break}return Ft}function tP(e,t){for(;Kt()&&e+Xe!==57;)if(e+Xe===84&&qn()===47)break;return"/*"+Ba(t,Ft-1)+"*"+Lc(e===47?e:Kt())}function nP(e){for(;!ma(qn());)Kt();return Ba(e,Ft)}function rP(e){return ow(su("",null,null,null,[""],e=rw(e),0,[0],e))}function su(e,t,n,r,o,i,s,a,l){for(var u=0,c=0,d=s,f=0,h=0,p=0,g=1,w=1,m=1,v=0,y="",x=o,S=i,A=r,P=y;w;)switch(p=v,v=Kt()){case 40:if(p!=108&&ut(P,d-1)==58){Kp(P+=we(iu(v),"&","&\f"),"&\f")!=-1&&(m=-1);break}case 34:case 39:case 91:P+=iu(v);break;case 9:case 10:case 13:case 32:P+=JA(p);break;case 92:P+=eP(ou()-1,7);continue;case 47:switch(qn()){case 42:case 47:Cl(oP(tP(Kt(),ou()),t,n),l);break;default:P+="/"}break;case 123*g:a[u++]=Gn(P)*m;case 125*g:case 59:case 0:switch(v){case 0:case 125:w=0;case 59+c:m==-1&&(P=we(P,/\f/g,"")),h>0&&Gn(P)-d&&Cl(h>32?ay(P+";",r,n,d-1):ay(we(P," ","")+";",r,n,d-2),l);break;case 59:P+=";";default:if(Cl(A=sy(P,t,n,u,c,o,a,y,x=[],S=[],d),i),v===123)if(c===0)su(P,t,A,A,x,i,d,a,S);else switch(f===99&&ut(P,3)===110?100:f){case 100:case 108:case 109:case 115:su(e,A,A,r&&Cl(sy(e,A,A,0,0,o,a,y,o,x=[],d),S),o,S,d,a,r?x:S);break;default:su(P,A,A,A,[""],S,0,a,S)}}u=c=h=0,g=m=1,y=P="",d=s;break;case 58:d=1+Gn(P),h=p;default:if(g<1){if(v==123)--g;else if(v==125&&g++==0&&ZA()==125)continue}switch(P+=Lc(v),v*g){case 38:m=c>0?1:(P+="\f",-1);break;case 44:a[u++]=(Gn(P)-1)*m,m=1;break;case 64:qn()===45&&(P+=iu(Kt())),f=qn(),c=d=Gn(y=P+=nP(ou())),v++;break;case 45:p===45&&Gn(P)==2&&(g=0)}}return i}function sy(e,t,n,r,o,i,s,a,l,u,c){for(var d=o-1,f=o===0?i:[""],h=km(f),p=0,g=0,w=0;p0?f[m]+" "+v:we(v,/&\f/g,f[m])))&&(l[w++]=y);return jc(e,t,n,o===0?Cm:a,l,u,c)}function oP(e,t,n){return jc(e,t,n,Jb,Lc(qA()),ha(e,2,-2),0)}function ay(e,t,n,r){return jc(e,t,n,Sm,ha(e,0,r),ha(e,r+1,-1),r)}function xi(e,t){for(var n="",r=km(e),o=0;o6)switch(ut(e,t+1)){case 109:if(ut(e,t+4)!==45)break;case 102:return we(e,/(.+:)(.+)-([^]+)/,"$1"+be+"$2-$3$1"+Bu+(ut(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Kp(e,"stretch")?iw(we(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ut(e,t+1)!==115)break;case 6444:switch(ut(e,Gn(e)-3-(~Kp(e,"!important")&&10))){case 107:return we(e,":",":"+be)+e;case 101:return we(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+be+(ut(e,14)===45?"inline-":"")+"box$3$1"+be+"$2$3$1"+gt+"$2box$3")+e}break;case 5936:switch(ut(e,t+11)){case 114:return be+e+gt+we(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return be+e+gt+we(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return be+e+gt+we(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return be+e+gt+e+e}return e}var pP=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case Sm:t.return=iw(t.value,t.length);break;case ew:return xi([ms(t,{value:we(t.value,"@","@"+be)})],o);case Cm:if(t.length)return QA(t.props,function(i){switch(YA(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return xi([ms(t,{props:[we(i,/:(read-\w+)/,":"+Bu+"$1")]})],o);case"::placeholder":return xi([ms(t,{props:[we(i,/:(plac\w+)/,":"+be+"input-$1")]}),ms(t,{props:[we(i,/:(plac\w+)/,":"+Bu+"$1")]}),ms(t,{props:[we(i,/:(plac\w+)/,gt+"input-$1")]})],o)}return""})}},hP=[pP],sw=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(g){var w=g.getAttribute("data-emotion");w.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var o=t.stylisPlugins||hP,i={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(g){for(var w=g.getAttribute("data-emotion").split(" "),m=1;m=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,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,EP=/[A-Z]|^ms/g,RP=/_EMO_([^_]+?)_([^]*?)_EMO_/g,pw=function(t){return t.charCodeAt(1)===45},uy=function(t){return t!=null&&typeof t!="boolean"},kf=Zb(function(e){return pw(e)?e:e.replace(EP,"-$&").toLowerCase()}),cy=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(RP,function(r,o,i){return Kn={name:o,styles:i,next:Kn},o})}return PP[t]!==1&&!pw(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 ga(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 Kn={name:o.name,styles:o.styles,next:Kn},o.name;var i=n;if(i.styles!==void 0){var s=i.next;if(s!==void 0)for(;s!==void 0;)Kn={name:s.name,styles:s.styles,next:Kn},s=s.next;var a=i.styles+";";return a}return IP(e,t,n)}case"function":{if(e!==void 0){var l=Kn,u=n(e);return Kn=l,ga(e,t,u)}break}}var c=n;if(t==null)return c;var d=t[c];return d!==void 0?d:c}function IP(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o96?NP:jP},hy=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(s){return t.__emotion_forwardProp(s)&&i(s)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},FP=!1,zP=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return dw(n,r,o),OP(function(){return fw(n,r,o)}),null},DP=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,s;n!==void 0&&(i=n.label,s=n.target);var a=hy(t,n,r),l=a||py(o),u=!l("as");return function(){var c=arguments,d=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&d.push("label:"+i+";"),c[0]==null||c[0].raw===void 0)d.push.apply(d,c);else{d.push(c[0][0]);for(var f=c.length,h=1;ht(WP(o)?n:o):t;return C.jsx(LP,{styles:r})}function Rm(e,t){return Yp(e,t)}const vw=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},HP=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:yw,StyledEngineProvider:UP,ThemeContext:Xc,css:Yc,default:Rm,internal_processStyles:vw,keyframes:Qi},Symbol.toStringTag,{value:"Module"})),xw=Qr(HP);function ur(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 bw(e){if(!ur(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=bw(e[n])}),t}function Xt(e,t,n={clone:!0}){const r=n.clone?b({},e):e;return ur(e)&&ur(t)&&Object.keys(t).forEach(o=>{ur(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&ur(e[o])?r[o]=Xt(e[o],t[o],n):n.clone?r[o]=ur(t[o])?bw(t[o]):t[o]:r[o]=t[o]}),r}const VP=Object.freeze(Object.defineProperty({__proto__:null,default:Xt,isPlainObject:ur},Symbol.toStringTag,{value:"Module"})),GP=Qr(VP);function $o(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n{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)=>b({},n,{[r.key]:r.val}),{})};function Aw(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=H(e,nM),i=rM(t),s=Object.keys(i);function a(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 u(f,h){const p=s.indexOf(h);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n}) and (max-width:${(p!==-1&&typeof t[s[p]]=="number"?t[s[p]]:h)-r/100}${n})`}function c(f){return s.indexOf(f)+1`@media (min-width:${$m[e]}px)`};function xr(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||yy;return t.reduce((s,a,l)=>(s[i.up(i.keys[l])]=n(t[l]),s),{})}if(typeof t=="object"){const i=r.breakpoints||yy;return Object.keys(t).reduce((s,a)=>{if(Object.keys(i.values||$m).indexOf(a)!==-1){const l=i.up(a);s[l]=n(t[a],a)}else{const l=a;s[l]=t[l]}return s},{})}return n(t)}function iM(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function sM(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function sd(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 Uu(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=sd(e,n)||r,t&&(o=t(o,r,e)),o}function Ve(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=s=>{if(s[t]==null)return null;const a=s[t],l=s.theme,u=sd(l,r)||{};return xr(s,a,d=>{let f=Uu(u,o,d);return d===f&&typeof d=="string"&&(f=Uu(u,o,`${t}${d==="default"?"":se(d)}`,d)),n===!1?f:{[n]:f}})};return i.propTypes={},i.filterProps=[t],i}function aM(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const lM={m:"margin",p:"padding"},uM={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},vy={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},cM=aM(e=>{if(e.length>2)if(vy[e])e=vy[e];else return[e];const[t,n]=e.split(""),r=lM[t],o=uM[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),Om=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],_m=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Om,..._m];function Ua(e,t,n,r){var o;const i=(o=sd(e,t,!1))!=null?o:n;return typeof i=="number"?s=>typeof s=="string"?s:i*s:Array.isArray(i)?s=>typeof s=="string"?s:i[s]:typeof i=="function"?i:()=>{}}function Pw(e){return Ua(e,"spacing",8)}function Wa(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function dM(e,t){return n=>e.reduce((r,o)=>(r[o]=Wa(t,n),r),{})}function fM(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=cM(n),i=dM(o,r),s=e[n];return xr(e,s,i)}function Mw(e,t){const n=Pw(e.theme);return Object.keys(e).map(r=>fM(e,t,r,n)).reduce(Us,{})}function De(e){return Mw(e,Om)}De.propTypes={};De.filterProps=Om;function Be(e){return Mw(e,_m)}Be.propTypes={};Be.filterProps=_m;function pM(e=8){if(e.mui)return e;const t=Pw({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(i=>{const s=t(i);return typeof s=="number"?`${s}px`:s}).join(" ");return n.mui=!0,n}function ad(...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]?Us(o,t[i](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function ln(e){return typeof e!="number"?e:`${e}px solid`}function Sn(e,t){return Ve({prop:e,themeKey:"borders",transform:t})}const hM=Sn("border",ln),mM=Sn("borderTop",ln),gM=Sn("borderRight",ln),yM=Sn("borderBottom",ln),vM=Sn("borderLeft",ln),xM=Sn("borderColor"),bM=Sn("borderTopColor"),wM=Sn("borderRightColor"),CM=Sn("borderBottomColor"),SM=Sn("borderLeftColor"),kM=Sn("outline",ln),AM=Sn("outlineColor"),ld=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Ua(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Wa(t,r)});return xr(e,e.borderRadius,n)}return null};ld.propTypes={};ld.filterProps=["borderRadius"];ad(hM,mM,gM,yM,vM,xM,bM,wM,CM,SM,ld,kM,AM);const ud=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Ua(e.theme,"spacing",8),n=r=>({gap:Wa(t,r)});return xr(e,e.gap,n)}return null};ud.propTypes={};ud.filterProps=["gap"];const cd=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Ua(e.theme,"spacing",8),n=r=>({columnGap:Wa(t,r)});return xr(e,e.columnGap,n)}return null};cd.propTypes={};cd.filterProps=["columnGap"];const dd=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Ua(e.theme,"spacing",8),n=r=>({rowGap:Wa(t,r)});return xr(e,e.rowGap,n)}return null};dd.propTypes={};dd.filterProps=["rowGap"];const PM=Ve({prop:"gridColumn"}),MM=Ve({prop:"gridRow"}),EM=Ve({prop:"gridAutoFlow"}),RM=Ve({prop:"gridAutoColumns"}),TM=Ve({prop:"gridAutoRows"}),IM=Ve({prop:"gridTemplateColumns"}),$M=Ve({prop:"gridTemplateRows"}),OM=Ve({prop:"gridTemplateAreas"}),_M=Ve({prop:"gridArea"});ad(ud,cd,dd,PM,MM,EM,RM,TM,IM,$M,OM,_M);function bi(e,t){return t==="grey"?t:e}const LM=Ve({prop:"color",themeKey:"palette",transform:bi}),NM=Ve({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:bi}),jM=Ve({prop:"backgroundColor",themeKey:"palette",transform:bi});ad(LM,NM,jM);function Ht(e){return e<=1&&e!==0?`${e*100}%`:e}const FM=Ve({prop:"width",transform:Ht}),Lm=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o;const i=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||$m[n];return i?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:Ht(n)}};return xr(e,e.maxWidth,t)}return null};Lm.filterProps=["maxWidth"];const zM=Ve({prop:"minWidth",transform:Ht}),DM=Ve({prop:"height",transform:Ht}),BM=Ve({prop:"maxHeight",transform:Ht}),UM=Ve({prop:"minHeight",transform:Ht});Ve({prop:"size",cssProperty:"width",transform:Ht});Ve({prop:"size",cssProperty:"height",transform:Ht});const WM=Ve({prop:"boxSizing"});ad(FM,Lm,zM,DM,BM,UM,WM);const Ha={border:{themeKey:"borders",transform:ln},borderTop:{themeKey:"borders",transform:ln},borderRight:{themeKey:"borders",transform:ln},borderBottom:{themeKey:"borders",transform:ln},borderLeft:{themeKey:"borders",transform:ln},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:ln},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:ld},color:{themeKey:"palette",transform:bi},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:bi},backgroundColor:{themeKey:"palette",transform:bi},p:{style:Be},pt:{style:Be},pr:{style:Be},pb:{style:Be},pl:{style:Be},px:{style:Be},py:{style:Be},padding:{style:Be},paddingTop:{style:Be},paddingRight:{style:Be},paddingBottom:{style:Be},paddingLeft:{style:Be},paddingX:{style:Be},paddingY:{style:Be},paddingInline:{style:Be},paddingInlineStart:{style:Be},paddingInlineEnd:{style:Be},paddingBlock:{style:Be},paddingBlockStart:{style:Be},paddingBlockEnd:{style:Be},m:{style:De},mt:{style:De},mr:{style:De},mb:{style:De},ml:{style:De},mx:{style:De},my:{style:De},margin:{style:De},marginTop:{style:De},marginRight:{style:De},marginBottom:{style:De},marginLeft:{style:De},marginX:{style:De},marginY:{style:De},marginInline:{style:De},marginInlineStart:{style:De},marginInlineEnd:{style:De},marginBlock:{style:De},marginBlockStart:{style:De},marginBlockEnd:{style:De},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:ud},rowGap:{style:dd},columnGap:{style:cd},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ht},maxWidth:{style:Lm},minWidth:{transform:Ht},height:{transform:Ht},maxHeight:{transform:Ht},minHeight:{transform:Ht},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function HM(...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 VM(e,t){return typeof e=="function"?e(t):e}function Ew(){function e(n,r,o,i){const s={[n]:r,theme:o},a=i[n];if(!a)return{[n]:r};const{cssProperty:l=n,themeKey:u,transform:c,style:d}=a;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const f=sd(o,u)||{};return d?d(s):xr(s,r,p=>{let g=Uu(f,c,p);return p===g&&typeof p=="string"&&(g=Uu(f,c,`${n}${p==="default"?"":se(p)}`,p)),l===!1?g:{[l]:g}})}function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const s=(r=i.unstable_sxConfig)!=null?r:Ha;function a(l){let u=l;if(typeof l=="function")u=l(i);else if(typeof l!="object")return l;if(!u)return null;const c=iM(i.breakpoints),d=Object.keys(c);let f=c;return Object.keys(u).forEach(h=>{const p=VM(u[h],i);if(p!=null)if(typeof p=="object")if(s[h])f=Us(f,e(h,p,i,s));else{const g=xr({theme:i},p,w=>({[h]:w}));HM(g,p)?f[h]=t({sx:p,theme:i}):f=Us(f,g)}else f=Us(f,e(h,p,i,s))}),sM(d,f)}return Array.isArray(o)?o.map(a):a(o)}return t}const qi=Ew();qi.filterProps=["sx"];function Rw(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const GM=["breakpoints","palette","spacing","shape"];function Va(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,s=H(e,GM),a=Aw(n),l=pM(o);let u=Xt({breakpoints:a,direction:"ltr",components:{},palette:b({mode:"light"},r),spacing:l,shape:b({},oM,i)},s);return u.applyStyles=Rw,u=t.reduce((c,d)=>Xt(c,d),u),u.unstable_sxConfig=b({},Ha,s==null?void 0:s.unstable_sxConfig),u.unstable_sx=function(d){return qi({sx:d,theme:this})},u}const KM=Object.freeze(Object.defineProperty({__proto__:null,default:Va,private_createBreakpoints:Aw,unstable_applyStyles:Rw},Symbol.toStringTag,{value:"Module"})),XM=Qr(KM),YM=["sx"],QM=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:Ha;return Object.keys(e).forEach(i=>{o[i]?r.systemProps[i]=e[i]:r.otherProps[i]=e[i]}),r};function Nm(e){const{sx:t}=e,n=H(e,YM),{systemProps:r,otherProps:o}=QM(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...s)=>{const a=t(...s);return ur(a)?b({},r,a):r}:i=b({},r,t),b({},o,{sx:i})}const qM=Object.freeze(Object.defineProperty({__proto__:null,default:qi,extendSxProp:Nm,unstable_createStyleFunctionSx:Ew,unstable_defaultSxConfig:Ha},Symbol.toStringTag,{value:"Module"})),ZM=Qr(qM);var Zi=Qb;Object.defineProperty(Da,"__esModule",{value:!0});var JM=Da.default=fE;Da.shouldForwardProp=au;Da.systemDefaultTheme=void 0;var rn=Zi(qb()),qp=Zi(jA()),xy=sE(xw),eE=GP;Zi(YP);Zi(tM);var tE=Zi(XM),nE=Zi(ZM);const rE=["ownerState"],oE=["variants"],iE=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Tw(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(Tw=function(r){return r?n:t})(e)}function sE(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=Tw(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(r,i,s):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function aE(e){return Object.keys(e).length===0}function lE(e){return typeof e=="string"&&e.charCodeAt(0)>96}function au(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const uE=Da.systemDefaultTheme=(0,tE.default)(),cE=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Sl({defaultTheme:e,theme:t,themeId:n}){return aE(t)?e:t[n]||t}function dE(e){return e?(t,n)=>n[e]:null}function lu(e,t){let{ownerState:n}=t,r=(0,qp.default)(t,rE);const o=typeof e=="function"?e((0,rn.default)({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(i=>lu(i,(0,rn.default)({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let a=(0,qp.default)(o,oE);return i.forEach(l=>{let u=!0;typeof l.props=="function"?u=l.props((0,rn.default)({ownerState:n},r,n)):Object.keys(l.props).forEach(c=>{(n==null?void 0:n[c])!==l.props[c]&&r[c]!==l.props[c]&&(u=!1)}),u&&(Array.isArray(a)||(a=[a]),a.push(typeof l.style=="function"?l.style((0,rn.default)({ownerState:n},r,n)):l.style))}),a}return o}function fE(e={}){const{themeId:t,defaultTheme:n=uE,rootShouldForwardProp:r=au,slotShouldForwardProp:o=au}=e,i=s=>(0,nE.default)((0,rn.default)({},s,{theme:Sl((0,rn.default)({},s,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(s,a={})=>{(0,xy.internal_processStyles)(s,S=>S.filter(A=>!(A!=null&&A.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:c,skipSx:d,overridesResolver:f=dE(cE(u))}=a,h=(0,qp.default)(a,iE),p=c!==void 0?c:u&&u!=="Root"&&u!=="root"||!1,g=d||!1;let w,m=au;u==="Root"||u==="root"?m=r:u?m=o:lE(s)&&(m=void 0);const v=(0,xy.default)(s,(0,rn.default)({shouldForwardProp:m,label:w},h)),y=S=>typeof S=="function"&&S.__emotion_real!==S||(0,eE.isPlainObject)(S)?A=>lu(S,(0,rn.default)({},A,{theme:Sl({theme:A.theme,defaultTheme:n,themeId:t})})):S,x=(S,...A)=>{let P=y(S);const M=A?A.map(y):[];l&&f&&M.push(T=>{const _=Sl((0,rn.default)({},T,{defaultTheme:n,themeId:t}));if(!_.components||!_.components[l]||!_.components[l].styleOverrides)return null;const $=_.components[l].styleOverrides,R={};return Object.entries($).forEach(([L,N])=>{R[L]=lu(N,(0,rn.default)({},T,{theme:_}))}),f(T,R)}),l&&!p&&M.push(T=>{var _;const $=Sl((0,rn.default)({},T,{defaultTheme:n,themeId:t})),R=$==null||(_=$.components)==null||(_=_[l])==null?void 0:_.variants;return lu({variants:R},(0,rn.default)({},T,{theme:$}))}),g||M.push(i);const O=M.length-A.length;if(Array.isArray(S)&&O>0){const T=new Array(O).fill("");P=[...S,...T],P.raw=[...S.raw,...T]}const E=v(P,...M);return s.muiName&&(E.muiName=s.muiName),E};return v.withConfig&&(x.withConfig=v.withConfig),x}}const by=e=>e,pE=()=>{let e=by;return{configure(t){e=t},generate(t){return e(t)},reset(){e=by}}},Iw=pE(),hE={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 de(e,t,n="Mui"){const r=hE[t];return r?`${n}-${r}`:`${Iw.generate(e)}-${t}`}function mE(e,t){return b({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var Ge={};const gE=Qr(KP);function yE(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const vE=Object.freeze(Object.defineProperty({__proto__:null,default:yE},Symbol.toStringTag,{value:"Module"})),xE=Qr(vE);var $w=Qb;Object.defineProperty(Ge,"__esModule",{value:!0});var go=Ge.alpha=Nw;Ge.blend=$E;Ge.colorChannel=void 0;var bE=Ge.darken=Fm;Ge.decomposeColor=vn;Ge.emphasize=jw;var wE=Ge.getContrastRatio=ME;Ge.getLuminance=Wu;Ge.hexToRgb=Ow;Ge.hslToRgb=Lw;var CE=Ge.lighten=zm;Ge.private_safeAlpha=EE;Ge.private_safeColorChannel=void 0;Ge.private_safeDarken=RE;Ge.private_safeEmphasize=IE;Ge.private_safeLighten=TE;Ge.recomposeColor=Ji;Ge.rgbToHex=PE;var wy=$w(gE),SE=$w(xE);function jm(e,t=0,n=1){return(0,SE.default)(e,t,n)}function Ow(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 kE(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function vn(e){if(e.type)return e;if(e.charAt(0)==="#")return vn(Ow(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error((0,wy.default)(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"].indexOf(o)===-1)throw new Error((0,wy.default)(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const _w=e=>{const t=vn(e);return t.values.slice(0,3).map((n,r)=>t.type.indexOf("hsl")!==-1&&r!==0?`${n}%`:n).join(" ")};Ge.colorChannel=_w;const AE=(e,t)=>{try{return _w(e)}catch{return e}};Ge.private_safeColorChannel=AE;function Ji(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function PE(e){if(e.indexOf("#")===0)return e;const{values:t}=vn(e);return`#${t.map((n,r)=>kE(r===3?Math.round(255*n):n)).join("")}`}function Lw(e){e=vn(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),s=(u,c=(u+n/30)%12)=>o-i*Math.max(Math.min(c-3,9-c,1),-1);let a="rgb";const l=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(a+="a",l.push(t[3])),Ji({type:a,values:l})}function Wu(e){e=vn(e);let t=e.type==="hsl"||e.type==="hsla"?vn(Lw(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 ME(e,t){const n=Wu(e),r=Wu(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Nw(e,t){return e=vn(e),t=jm(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Ji(e)}function EE(e,t,n){try{return Nw(e,t)}catch{return e}}function Fm(e,t){if(e=vn(e),t=jm(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Ji(e)}function RE(e,t,n){try{return Fm(e,t)}catch{return e}}function zm(e,t){if(e=vn(e),t=jm(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Ji(e)}function TE(e,t,n){try{return zm(e,t)}catch{return e}}function jw(e,t=.15){return Wu(e)>.5?Fm(e,t):zm(e,t)}function IE(e,t,n){try{return jw(e,t)}catch{return e}}function $E(e,t,n,r=1){const o=(l,u)=>Math.round((l**(1/r)*(1-n)+u**(1/r)*n)**r),i=vn(e),s=vn(t),a=[o(i.values[0],s.values[0]),o(i.values[1],s.values[1]),o(i.values[2],s.values[2])];return Ji({type:"rgb",values:a})}const ya={black:"#000",white:"#fff"},OE={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"},Wo={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"},Ho={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"},gs={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"},Vo={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"},Go={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"},Ko={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"},_E=["mode","contrastThreshold","tonalOffset"],Cy={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:ya.white,default:ya.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}},Af={text:{primary:ya.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:ya.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}};function Sy(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=CE(e.main,o):t==="dark"&&(e.dark=bE(e.main,i)))}function LE(e="light"){return e==="dark"?{main:Vo[200],light:Vo[50],dark:Vo[400]}:{main:Vo[700],light:Vo[400],dark:Vo[800]}}function NE(e="light"){return e==="dark"?{main:Wo[200],light:Wo[50],dark:Wo[400]}:{main:Wo[500],light:Wo[300],dark:Wo[700]}}function jE(e="light"){return e==="dark"?{main:Ho[500],light:Ho[300],dark:Ho[700]}:{main:Ho[700],light:Ho[400],dark:Ho[800]}}function FE(e="light"){return e==="dark"?{main:Go[400],light:Go[300],dark:Go[700]}:{main:Go[700],light:Go[500],dark:Go[900]}}function zE(e="light"){return e==="dark"?{main:Ko[400],light:Ko[300],dark:Ko[700]}:{main:Ko[800],light:Ko[500],dark:Ko[900]}}function DE(e="light"){return e==="dark"?{main:gs[400],light:gs[300],dark:gs[700]}:{main:"#ed6c02",light:gs[500],dark:gs[900]}}function BE(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=H(e,_E),i=e.primary||LE(t),s=e.secondary||NE(t),a=e.error||jE(t),l=e.info||FE(t),u=e.success||zE(t),c=e.warning||DE(t);function d(g){return wE(g,Af.text.primary)>=n?Af.text.primary:Cy.text.primary}const f=({color:g,name:w,mainShade:m=500,lightShade:v=300,darkShade:y=700})=>{if(g=b({},g),!g.main&&g[m]&&(g.main=g[m]),!g.hasOwnProperty("main"))throw new Error($o(11,w?` (${w})`:"",m));if(typeof g.main!="string")throw new Error($o(12,w?` (${w})`:"",JSON.stringify(g.main)));return Sy(g,"light",v,r),Sy(g,"dark",y,r),g.contrastText||(g.contrastText=d(g.main)),g},h={dark:Af,light:Cy};return Xt(b({common:b({},ya),mode:t,primary:f({color:i,name:"primary"}),secondary:f({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:a,name:"error"}),warning:f({color:c,name:"warning"}),info:f({color:l,name:"info"}),success:f({color:u,name:"success"}),grey:OE,contrastThreshold:n,getContrastText:d,augmentColor:f,tonalOffset:r},h[t]),o)}const UE=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function WE(e){return Math.round(e*1e5)/1e5}const ky={textTransform:"uppercase"},Ay='"Roboto", "Helvetica", "Arial", sans-serif';function HE(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=Ay,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:s=400,fontWeightMedium:a=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,f=H(n,UE),h=o/14,p=d||(m=>`${m/u*h}rem`),g=(m,v,y,x,S)=>b({fontFamily:r,fontWeight:m,fontSize:p(v),lineHeight:y},r===Ay?{letterSpacing:`${WE(x/v)}em`}:{},S,c),w={h1:g(i,96,1.167,-1.5),h2:g(i,60,1.2,-.5),h3:g(s,48,1.167,0),h4:g(s,34,1.235,.25),h5:g(s,24,1.334,0),h6:g(a,20,1.6,.15),subtitle1:g(s,16,1.75,.15),subtitle2:g(a,14,1.57,.1),body1:g(s,16,1.5,.15),body2:g(s,14,1.43,.15),button:g(a,14,1.75,.4,ky),caption:g(s,12,1.66,.4),overline:g(s,12,2.66,1,ky),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Xt(b({htmlFontSize:u,pxToRem:p,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:s,fontWeightMedium:a,fontWeightBold:l},w),f,{clone:!1})}const VE=.2,GE=.14,KE=.12;function _e(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${VE})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${GE})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${KE})`].join(",")}const XE=["none",_e(0,2,1,-1,0,1,1,0,0,1,3,0),_e(0,3,1,-2,0,2,2,0,0,1,5,0),_e(0,3,3,-2,0,3,4,0,0,1,8,0),_e(0,2,4,-1,0,4,5,0,0,1,10,0),_e(0,3,5,-1,0,5,8,0,0,1,14,0),_e(0,3,5,-1,0,6,10,0,0,1,18,0),_e(0,4,5,-2,0,7,10,1,0,2,16,1),_e(0,5,5,-3,0,8,10,1,0,3,14,2),_e(0,5,6,-3,0,9,12,1,0,3,16,2),_e(0,6,6,-3,0,10,14,1,0,4,18,3),_e(0,6,7,-4,0,11,15,1,0,4,20,3),_e(0,7,8,-4,0,12,17,2,0,5,22,4),_e(0,7,8,-4,0,13,19,2,0,5,24,4),_e(0,7,9,-4,0,14,21,2,0,5,26,4),_e(0,8,9,-5,0,15,22,2,0,6,28,5),_e(0,8,10,-5,0,16,24,2,0,6,30,5),_e(0,8,11,-5,0,17,26,2,0,6,32,5),_e(0,9,11,-5,0,18,28,2,0,7,34,6),_e(0,9,12,-6,0,19,29,2,0,7,36,6),_e(0,10,13,-6,0,20,31,3,0,8,38,7),_e(0,10,13,-6,0,21,33,3,0,8,40,7),_e(0,10,14,-6,0,22,35,3,0,8,42,7),_e(0,11,14,-7,0,23,36,3,0,9,44,8),_e(0,11,15,-7,0,24,38,3,0,9,46,8)],YE=["duration","easing","delay"],QE={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)"},qE={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Py(e){return`${Math.round(e)}ms`}function ZE(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function JE(e){const t=b({},QE,e.easing),n=b({},qE,e.duration);return b({getAutoHeightDuration:ZE,create:(o=["all"],i={})=>{const{duration:s=n.standard,easing:a=t.easeInOut,delay:l=0}=i;return H(i,YE),(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof s=="string"?s:Py(s)} ${a} ${typeof l=="string"?l:Py(l)}`).join(",")}},e,{easing:t,duration:n})}const eR={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},tR=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Fw(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,s=H(e,tR);if(e.vars)throw new Error($o(18));const a=BE(r),l=Va(e);let u=Xt(l,{mixins:mE(l.breakpoints,n),palette:a,shadows:XE.slice(),typography:HE(a,i),transitions:JE(o),zIndex:b({},eR)});return u=Xt(u,s),u=t.reduce((c,d)=>Xt(c,d),u),u.unstable_sxConfig=b({},Ha,s==null?void 0:s.unstable_sxConfig),u.unstable_sx=function(d){return qi({sx:d,theme:this})},u}const fd=Fw(),Ga="$$material";function zw(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Fn=e=>zw(e)&&e!=="classes",G=JM({themeId:Ga,defaultTheme:fd,rootShouldForwardProp:Fn});function Oi(e,t){const n=b({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=b({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},!i||!Object.keys(i)?n[r]=o:!o||!Object.keys(o)?n[r]=i:(n[r]=b({},i),Object.keys(o).forEach(s=>{n[r][s]=Oi(o[s],i[s])}))}else n[r]===void 0&&(n[r]=e[r])}),n}const nR=k.createContext(void 0);function rR(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?Oi(o.defaultProps,r):!o.styleOverrides&&!o.variants?Oi(o,r):r}function oR({props:e,name:t}){const n=k.useContext(nR);return rR({props:e,name:t,theme:{components:n}})}function ge(e){return oR(e)}const My=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function iR(e){return Object.keys(e).length===0}function sR(e=null){const t=k.useContext(Xc);return!t||iR(t)?e:t}const aR=Va();function pd(e=aR){return sR(e)}function lR({styles:e,themeId:t,defaultTheme:n={}}){const r=pd(n),o=typeof e=="function"?e(t&&r[t]||r):e;return C.jsx(yw,{styles:o})}const uR=["className","component"];function cR(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=Rm("div",{shouldForwardProp:a=>a!=="theme"&&a!=="sx"&&a!=="as"})(qi);return k.forwardRef(function(l,u){const c=pd(n),d=Nm(l),{className:f,component:h="div"}=d,p=H(d,uR);return C.jsx(i,b({as:h,ref:u,className:ne(f,o?o(r):r),theme:t&&c[t]||c},p))})}function fe(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=de(e,o,n)}),r}const dR=["ownerState"],fR=["variants"],pR=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function hR(e){return Object.keys(e).length===0}function mR(e){return typeof e=="string"&&e.charCodeAt(0)>96}function uu(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const gR=Va(),yR=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function kl({defaultTheme:e,theme:t,themeId:n}){return hR(t)?e:t[n]||t}function vR(e){return e?(t,n)=>n[e]:null}function cu(e,t){let{ownerState:n}=t,r=H(t,dR);const o=typeof e=="function"?e(b({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(i=>cu(i,b({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let a=H(o,fR);return i.forEach(l=>{let u=!0;typeof l.props=="function"?u=l.props(b({ownerState:n},r,n)):Object.keys(l.props).forEach(c=>{(n==null?void 0:n[c])!==l.props[c]&&r[c]!==l.props[c]&&(u=!1)}),u&&(Array.isArray(a)||(a=[a]),a.push(typeof l.style=="function"?l.style(b({ownerState:n},r,n)):l.style))}),a}return o}function xR(e={}){const{themeId:t,defaultTheme:n=gR,rootShouldForwardProp:r=uu,slotShouldForwardProp:o=uu}=e,i=s=>qi(b({},s,{theme:kl(b({},s,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(s,a={})=>{vw(s,S=>S.filter(A=>!(A!=null&&A.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:c,skipSx:d,overridesResolver:f=vR(yR(u))}=a,h=H(a,pR),p=c!==void 0?c:u&&u!=="Root"&&u!=="root"||!1,g=d||!1;let w,m=uu;u==="Root"||u==="root"?m=r:u?m=o:mR(s)&&(m=void 0);const v=Rm(s,b({shouldForwardProp:m,label:w},h)),y=S=>typeof S=="function"&&S.__emotion_real!==S||ur(S)?A=>cu(S,b({},A,{theme:kl({theme:A.theme,defaultTheme:n,themeId:t})})):S,x=(S,...A)=>{let P=y(S);const M=A?A.map(y):[];l&&f&&M.push(T=>{const _=kl(b({},T,{defaultTheme:n,themeId:t}));if(!_.components||!_.components[l]||!_.components[l].styleOverrides)return null;const $=_.components[l].styleOverrides,R={};return Object.entries($).forEach(([L,N])=>{R[L]=cu(N,b({},T,{theme:_}))}),f(T,R)}),l&&!p&&M.push(T=>{var _;const $=kl(b({},T,{defaultTheme:n,themeId:t})),R=$==null||(_=$.components)==null||(_=_[l])==null?void 0:_.variants;return cu({variants:R},b({},T,{theme:$}))}),g||M.push(i);const O=M.length-A.length;if(Array.isArray(S)&&O>0){const T=new Array(O).fill("");P=[...S,...T],P.raw=[...S.raw,...T]}const E=v(P,...M);return s.muiName&&(E.muiName=s.muiName),E};return v.withConfig&&(x.withConfig=v.withConfig),x}}const bR=xR();function wR(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:Oi(t.components[n].defaultProps,r)}function Dw({props:e,name:t,defaultTheme:n,themeId:r}){let o=pd(n);return r&&(o=o[r]||o),wR({theme:o,name:t,props:e})}const xn=typeof window<"u"?k.useLayoutEffect:k.useEffect;function Ey(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function Bw(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 Pf(e,t){var n,r;return k.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function kt(e){return e&&e.ownerDocument||document}function Yr(e){return kt(e).defaultView||window}function Zp(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let Ry=0;function CR(e){const[t,n]=k.useState(e),r=e||t;return k.useEffect(()=>{t==null&&(Ry+=1,n(`mui-${Ry}`))},[t]),r}const Ty=ep.useId;function Ka(e){if(Ty!==void 0){const t=Ty();return e??t}return CR(e)}function Jp({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=k.useRef(e!==void 0),[i,s]=k.useState(t),a=o?e:i,l=k.useCallback(u=>{o||s(u)},[]);return[a,l]}function di(e){const t=k.useRef(e);return xn(()=>{t.current=e}),k.useRef((...n)=>(0,t.current)(...n)).current}function rt(...e){return k.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{Zp(n,t)})},e)}const Iy={};function SR(e,t){const n=k.useRef(Iy);return n.current===Iy&&(n.current=e(t)),n}const kR=[];function AR(e){k.useEffect(e,kR)}class hd{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new hd}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function Uw(){const e=SR(hd.create).current;return AR(e.disposeEffect),e}let md=!0,eh=!1;const PR=new hd,MR={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function ER(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&MR[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function RR(e){e.metaKey||e.altKey||e.ctrlKey||(md=!0)}function Mf(){md=!1}function TR(){this.visibilityState==="hidden"&&eh&&(md=!0)}function IR(e){e.addEventListener("keydown",RR,!0),e.addEventListener("mousedown",Mf,!0),e.addEventListener("pointerdown",Mf,!0),e.addEventListener("touchstart",Mf,!0),e.addEventListener("visibilitychange",TR,!0)}function $R(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return md||ER(t)}function OR(){const e=k.useCallback(o=>{o!=null&&IR(o.ownerDocument)},[]),t=k.useRef(!1);function n(){return t.current?(eh=!0,PR.start(100,()=>{eh=!1}),t.current=!1,!0):!1}function r(o){return $R(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function Ww(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function Hu(e){return typeof e=="string"}function Hw(e,t,n){return e===void 0||Hu(e)?t:b({},t,{ownerState:b({},t.ownerState,n)})}function Vw(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function $y(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 Gw(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const h=ne(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),p=b({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),g=b({},n,o,r);return h.length>0&&(g.className=h),Object.keys(p).length>0&&(g.style=p),{props:g,internalRef:void 0}}const s=Vw(b({},o,r)),a=$y(r),l=$y(o),u=t(s),c=ne(u==null?void 0:u.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),d=b({},u==null?void 0:u.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),f=b({},u,n,l,a);return c.length>0&&(f.className=c),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:u.ref}}function Kw(e,t,n){return typeof e=="function"?e(t,n):e}const _R=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function nt(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,s=H(e,_R),a=i?{}:Kw(r,o),{props:l,internalRef:u}=Gw(b({},s,{externalSlotProps:a})),c=rt(u,a==null?void 0:a.ref,(t=e.additionalProps)==null?void 0:t.ref);return Hw(n,b({},l,{ref:c}),o)}const LR=k.createContext(),NR=()=>{const e=k.useContext(LR);return e??!1},jR=["className","component","disableGutters","fixed","maxWidth","classes"],FR=Va(),zR=bR("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${se(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),DR=e=>Dw({props:e,name:"MuiContainer",defaultTheme:FR}),BR=(e,t)=>{const n=l=>de(t,l),{classes:r,fixed:o,disableGutters:i,maxWidth:s}=e,a={root:["root",s&&`maxWidth${se(String(s))}`,o&&"fixed",i&&"disableGutters"]};return ce(a,n,r)};function UR(e={}){const{createStyledComponent:t=zR,useThemeProps:n=DR,componentName:r="MuiContainer"}=e,o=t(({theme:s,ownerState:a})=>b({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!a.disableGutters&&{paddingLeft:s.spacing(2),paddingRight:s.spacing(2),[s.breakpoints.up("sm")]:{paddingLeft:s.spacing(3),paddingRight:s.spacing(3)}}),({theme:s,ownerState:a})=>a.fixed&&Object.keys(s.breakpoints.values).reduce((l,u)=>{const c=u,d=s.breakpoints.values[c];return d!==0&&(l[s.breakpoints.up(c)]={maxWidth:`${d}${s.breakpoints.unit}`}),l},{}),({theme:s,ownerState:a})=>b({},a.maxWidth==="xs"&&{[s.breakpoints.up("xs")]:{maxWidth:Math.max(s.breakpoints.values.xs,444)}},a.maxWidth&&a.maxWidth!=="xs"&&{[s.breakpoints.up(a.maxWidth)]:{maxWidth:`${s.breakpoints.values[a.maxWidth]}${s.breakpoints.unit}`}}));return k.forwardRef(function(a,l){const u=n(a),{className:c,component:d="div",disableGutters:f=!1,fixed:h=!1,maxWidth:p="lg"}=u,g=H(u,jR),w=b({},u,{component:d,disableGutters:f,fixed:h,maxWidth:p}),m=BR(w,r);return C.jsx(o,b({as:d,ownerState:w,className:ne(m.root,c),ref:l},g))})}function eo(){const e=pd(fd);return e[Ga]||e}function WR(e){return de("MuiPaper",e)}fe("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 HR=["className","component","elevation","square","variant"],VR=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,i={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return ce(i,WR,o)},GR=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}`]]}})(({theme:e,ownerState:t})=>{var n;return b({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&b({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${go("#fff",My(t.elevation))}, ${go("#fff",My(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),Fo=k.forwardRef(function(t,n){const r=ge({props:t,name:"MuiPaper"}),{className:o,component:i="div",elevation:s=1,square:a=!1,variant:l="elevation"}=r,u=H(r,HR),c=b({},r,{component:i,elevation:s,square:a,variant:l}),d=VR(c);return C.jsx(GR,b({as:i,ownerState:c,className:ne(d.root,o),ref:n},u))});function KR(e){return de("MuiAppBar",e)}fe("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const XR=["className","color","enableColorOnDark","position"],YR=e=>{const{color:t,position:n,classes:r}=e,o={root:["root",`color${se(t)}`,`position${se(n)}`]};return ce(o,KR,r)},Al=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,QR=G(Fo,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${se(n.position)}`],t[`color${se(n.color)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return b({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&b({},t.color==="default"&&{backgroundColor:n,color:e.palette.getContrastText(n)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&b({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&b({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:Al(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:Al(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:Al(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:Al(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},!["inherit","transparent"].includes(t.color)&&{backgroundColor:"var(--AppBar-background)"},{color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),qR=k.forwardRef(function(t,n){const r=ge({props:t,name:"MuiAppBar"}),{className:o,color:i="primary",enableColorOnDark:s=!1,position:a="fixed"}=r,l=H(r,XR),u=b({},r,{color:i,position:a,enableColorOnDark:s}),c=YR(u);return C.jsx(QR,b({square:!0,component:"header",ownerState:u,elevation:4,className:ne(c.root,o,a==="fixed"&&"mui-fixed"),ref:n},l))});function es({props:e,name:t}){return Dw({props:e,name:t,defaultTheme:fd,themeId:Ga})}const ZR=fe("MuiBox",["root"]),JR=Fw(),Vu=cR({themeId:Ga,defaultTheme:JR,defaultClassName:ZR.root,generateClassName:Iw.generate});function eT(e){return de("MuiToolbar",e)}fe("MuiToolbar",["root","gutters","regular","dense"]);const tT=["className","component","disableGutters","variant"],nT=e=>{const{classes:t,disableGutters:n,variant:r}=e;return ce({root:["root",!n&&"gutters",r]},eT,t)},rT=G("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(({theme:e,ownerState:t})=>b({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),oT=k.forwardRef(function(t,n){const r=ge({props:t,name:"MuiToolbar"}),{className:o,component:i="div",disableGutters:s=!1,variant:a="regular"}=r,l=H(r,tT),u=b({},r,{component:i,disableGutters:s,variant:a}),c=nT(u);return C.jsx(rT,b({as:i,className:ne(c.root,o),ref:n,ownerState:u},l))});function iT(e){return de("MuiTypography",e)}fe("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const sT=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],aT=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:s}=e,a={root:["root",i,e.align!=="inherit"&&`align${se(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return ce(a,iT,s)},lT=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${se(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>b({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),Oy={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},uT={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},cT=e=>uT[e]||e,Le=k.forwardRef(function(t,n){const r=ge({props:t,name:"MuiTypography"}),o=cT(r.color),i=Nm(b({},r,{color:o})),{align:s="inherit",className:a,component:l,gutterBottom:u=!1,noWrap:c=!1,paragraph:d=!1,variant:f="body1",variantMapping:h=Oy}=i,p=H(i,sT),g=b({},i,{align:s,color:o,className:a,component:l,gutterBottom:u,noWrap:c,paragraph:d,variant:f,variantMapping:h}),w=l||(d?"p":h[f]||Oy[f])||"span",m=aT(g);return C.jsx(lT,b({as:w,ref:n,ownerState:g,className:ne(m.root,a)},p))});function dT(){return C.jsx(Vu,{sx:{flexGrow:0,justifyContent:"center"},children:C.jsx(qR,{position:"static",sx:{backgroundColor:"black",justifyContent:"center"},children:C.jsx(oT,{variant:"dense",sx:{justifyContent:"center",color:"black"},children:C.jsx(Le,{variant:"h12",component:"div",sx:{margin:"10px",color:"white",fontFamily:"poppins",fontSize:"50px"},children:"Free Insights"})})})})}function Xw(e){return C.jsx(lR,b({},e,{defaultTheme:fd,themeId:Ga}))}const fT=(e,t)=>b({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),pT=e=>b({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}}),hT=(e,t=!1)=>{var n;const r={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([s,a])=>{var l;r[e.getColorSchemeSelector(s).replace(/\s*&/,"")]={colorScheme:(l=a.palette)==null?void 0:l.mode}});let o=b({html:fT(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:b({margin:0},pT(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},r);const i=(n=e.components)==null||(n=n.MuiCssBaseline)==null?void 0:n.styleOverrides;return i&&(o=[o,i]),o};function mT(e){const t=ge({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return C.jsxs(k.Fragment,{children:[C.jsx(Xw,{styles:o=>hT(o,r)}),n]})}const gT=UR({createStyledComponent:G("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${se(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>ge({props:e,name:"MuiContainer"})});function yT(e){return de("MuiSvgIcon",e)}fe("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const vT=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],xT=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${se(t)}`,`fontSize${se(n)}`]};return ce(o,yT,r)},bT=G("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${se(n.color)}`],t[`fontSize${se(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,i,s,a,l,u,c,d,f,h,p;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((i=e.typography)==null||(s=i.pxToRem)==null?void 0:s.call(i,20))||"1.25rem",medium:((a=e.typography)==null||(l=a.pxToRem)==null?void 0:l.call(a,24))||"1.5rem",large:((u=e.typography)==null||(c=u.pxToRem)==null?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:(d=(f=(e.vars||e).palette)==null||(f=f[t.color])==null?void 0:f.main)!=null?d:{action:(h=(e.vars||e).palette)==null||(h=h.action)==null?void 0:h.active,disabled:(p=(e.vars||e).palette)==null||(p=p.action)==null?void 0:p.disabled,inherit:void 0}[t.color]}}),th=k.forwardRef(function(t,n){const r=ge({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:s="inherit",component:a="svg",fontSize:l="medium",htmlColor:u,inheritViewBox:c=!1,titleAccess:d,viewBox:f="0 0 24 24"}=r,h=H(r,vT),p=k.isValidElement(o)&&o.type==="svg",g=b({},r,{color:s,component:a,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:c,viewBox:f,hasSvgAsChild:p}),w={};c||(w.viewBox=f);const m=xT(g);return C.jsxs(bT,b({as:a,className:ne(m.root,i),focusable:"false",color:u,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:n},w,h,p&&o.props,{ownerState:g,children:[p?o.props.children:o,d?C.jsx("title",{children:d}):null]}))});th.muiName="SvgIcon";function Yw(e,t){function n(r,o){return C.jsx(th,b({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return n.muiName=th.muiName,k.memo(k.forwardRef(n))}var Ee={};/** + * @license React + * react-is.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 Dm=Symbol.for("react.element"),Bm=Symbol.for("react.portal"),gd=Symbol.for("react.fragment"),yd=Symbol.for("react.strict_mode"),vd=Symbol.for("react.profiler"),xd=Symbol.for("react.provider"),bd=Symbol.for("react.context"),wT=Symbol.for("react.server_context"),wd=Symbol.for("react.forward_ref"),Cd=Symbol.for("react.suspense"),Sd=Symbol.for("react.suspense_list"),kd=Symbol.for("react.memo"),Ad=Symbol.for("react.lazy"),CT=Symbol.for("react.offscreen"),Qw;Qw=Symbol.for("react.module.reference");function kn(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Dm:switch(e=e.type,e){case gd:case vd:case yd:case Cd:case Sd:return e;default:switch(e=e&&e.$$typeof,e){case wT:case bd:case wd:case Ad:case kd:case xd:return e;default:return t}}case Bm:return t}}}Ee.ContextConsumer=bd;Ee.ContextProvider=xd;Ee.Element=Dm;Ee.ForwardRef=wd;Ee.Fragment=gd;Ee.Lazy=Ad;Ee.Memo=kd;Ee.Portal=Bm;Ee.Profiler=vd;Ee.StrictMode=yd;Ee.Suspense=Cd;Ee.SuspenseList=Sd;Ee.isAsyncMode=function(){return!1};Ee.isConcurrentMode=function(){return!1};Ee.isContextConsumer=function(e){return kn(e)===bd};Ee.isContextProvider=function(e){return kn(e)===xd};Ee.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Dm};Ee.isForwardRef=function(e){return kn(e)===wd};Ee.isFragment=function(e){return kn(e)===gd};Ee.isLazy=function(e){return kn(e)===Ad};Ee.isMemo=function(e){return kn(e)===kd};Ee.isPortal=function(e){return kn(e)===Bm};Ee.isProfiler=function(e){return kn(e)===vd};Ee.isStrictMode=function(e){return kn(e)===yd};Ee.isSuspense=function(e){return kn(e)===Cd};Ee.isSuspenseList=function(e){return kn(e)===Sd};Ee.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===gd||e===vd||e===yd||e===Cd||e===Sd||e===CT||typeof e=="object"&&e!==null&&(e.$$typeof===Ad||e.$$typeof===kd||e.$$typeof===xd||e.$$typeof===bd||e.$$typeof===wd||e.$$typeof===Qw||e.getModuleId!==void 0)};Ee.typeOf=kn;function nh(e,t){return nh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},nh(e,t)}function qw(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,nh(e,t)}const _y={disabled:!1},Gu=$n.createContext(null);var ST=function(t){return t.scrollTop},Is="unmounted",lo="exited",uo="entering",Zo="entered",rh="exiting",nr=function(e){qw(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var s=o,a=s&&!s.isMounting?r.enter:r.appear,l;return i.appearStatus=null,r.in?a?(l=lo,i.appearStatus=uo):l=Zo:r.unmountOnExit||r.mountOnEnter?l=Is:l=lo,i.state={status:l},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var s=o.in;return s&&i.status===Is?{status:lo}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var s=this.state.status;this.props.in?s!==uo&&s!==Zo&&(i=uo):(s===uo||s===Zo)&&(i=rh)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,s,a;return i=s=a=o,o!=null&&typeof o!="number"&&(i=o.exit,s=o.enter,a=o.appear!==void 0?o.appear:s),{exit:i,enter:s,appear:a}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===uo){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:wl.findDOMNode(this);s&&ST(s)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===lo&&this.setState({status:Is})},n.performEnter=function(o){var i=this,s=this.props.enter,a=this.context?this.context.isMounting:o,l=this.props.nodeRef?[a]:[wl.findDOMNode(this),a],u=l[0],c=l[1],d=this.getTimeouts(),f=a?d.appear:d.enter;if(!o&&!s||_y.disabled){this.safeSetState({status:Zo},function(){i.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:uo},function(){i.props.onEntering(u,c),i.onTransitionEnd(f,function(){i.safeSetState({status:Zo},function(){i.props.onEntered(u,c)})})})},n.performExit=function(){var o=this,i=this.props.exit,s=this.getTimeouts(),a=this.props.nodeRef?void 0:wl.findDOMNode(this);if(!i||_y.disabled){this.safeSetState({status:lo},function(){o.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:rh},function(){o.props.onExiting(a),o.onTransitionEnd(s.exit,function(){o.safeSetState({status:lo},function(){o.props.onExited(a)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,s=!0;return this.nextCallback=function(a){s&&(s=!1,i.nextCallback=null,o(a))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var s=this.props.nodeRef?this.props.nodeRef.current:wl.findDOMNode(this),a=o==null&&!this.props.addEndListener;if(!s||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],u=l[0],c=l[1];this.props.addEndListener(u,c)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===Is)return null;var i=this.props,s=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var a=H(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return $n.createElement(Gu.Provider,{value:null},typeof s=="function"?s(o,a):$n.cloneElement($n.Children.only(s),a))},t}($n.Component);nr.contextType=Gu;nr.propTypes={};function Xo(){}nr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Xo,onEntering:Xo,onEntered:Xo,onExit:Xo,onExiting:Xo,onExited:Xo};nr.UNMOUNTED=Is;nr.EXITED=lo;nr.ENTERING=uo;nr.ENTERED=Zo;nr.EXITING=rh;function kT(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Um(e,t){var n=function(i){return t&&k.isValidElement(i)?t(i):i},r=Object.create(null);return e&&k.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function AT(e,t){e=e||{},t=t||{};function n(c){return c in t?t[c]:e[c]}var r=Object.create(null),o=[];for(var i in e)i in t?o.length&&(r[i]=o,o=[]):o.push(i);var s,a={};for(var l in t){if(r[l])for(s=0;se.scrollTop;function Ku(e,t){var n,r;const{timeout:o,easing:i,style:s={}}=e;return{duration:(n=s.transitionDuration)!=null?n:typeof o=="number"?o:o[t.mode]||0,easing:(r=s.transitionTimingFunction)!=null?r:typeof i=="object"?i[t.mode]:i,delay:s.transitionDelay}}const TT=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],IT=["component","slots","slotProps"],$T=["component"];function OT(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:i,getSlotOwnerState:s,internalForwardedProps:a}=t,l=H(t,TT),{component:u,slots:c={[e]:void 0},slotProps:d={[e]:void 0}}=i;H(i,IT);const f=c[e]||r,h=Kw(d[e],o),p=Gw(b({className:n},l,{externalForwardedProps:void 0,externalSlotProps:h})),{props:{component:g},internalRef:w}=p,m=H(p.props,$T),v=rt(w,h==null?void 0:h.ref,t.ref),y=s?s(m):{},x=b({},o,y),S=g,A=Hw(f,b({},e==="root",!c[e]&&a,m,S&&{as:S},{ref:v}),x);return Object.keys(y).forEach(P=>{delete A[P]}),[f,A]}function _T(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:s,in:a,onExited:l,timeout:u}=e,[c,d]=k.useState(!1),f=ne(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),h={width:s,height:s,top:-(s/2)+i,left:-(s/2)+o},p=ne(n.child,c&&n.childLeaving,r&&n.childPulsate);return!a&&!c&&d(!0),k.useEffect(()=>{if(!a&&l!=null){const g=setTimeout(l,u);return()=>{clearTimeout(g)}}},[l,a,u]),C.jsx("span",{className:f,style:h,children:C.jsx("span",{className:p})})}const on=fe("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),LT=["center","classes","className"];let Pd=e=>e,Ly,Ny,jy,Fy;const oh=550,NT=80,jT=Qi(Ly||(Ly=Pd` + 0% { + transform: scale(0); + opacity: 0.1; + } + + 100% { + transform: scale(1); + opacity: 0.3; + } +`)),FT=Qi(Ny||(Ny=Pd` + 0% { + opacity: 1; + } + + 100% { + opacity: 0; + } +`)),zT=Qi(jy||(jy=Pd` + 0% { + transform: scale(1); + } + + 50% { + transform: scale(0.92); + } + + 100% { + transform: scale(1); + } +`)),DT=G("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),BT=G(_T,{name:"MuiTouchRipple",slot:"Ripple"})(Fy||(Fy=Pd` + opacity: 0; + position: absolute; + + &.${0} { + opacity: 0.3; + transform: scale(1); + animation-name: ${0}; + animation-duration: ${0}ms; + animation-timing-function: ${0}; + } + + &.${0} { + animation-duration: ${0}ms; + } + + & .${0} { + opacity: 1; + display: block; + width: 100%; + height: 100%; + border-radius: 50%; + background-color: currentColor; + } + + & .${0} { + opacity: 0; + animation-name: ${0}; + animation-duration: ${0}ms; + animation-timing-function: ${0}; + } + + & .${0} { + position: absolute; + /* @noflip */ + left: 0px; + top: 0; + animation-name: ${0}; + animation-duration: 2500ms; + animation-timing-function: ${0}; + animation-iteration-count: infinite; + animation-delay: 200ms; + } +`),on.rippleVisible,jT,oh,({theme:e})=>e.transitions.easing.easeInOut,on.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,on.child,on.childLeaving,FT,oh,({theme:e})=>e.transitions.easing.easeInOut,on.childPulsate,zT,({theme:e})=>e.transitions.easing.easeInOut),UT=k.forwardRef(function(t,n){const r=ge({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:s}=r,a=H(r,LT),[l,u]=k.useState([]),c=k.useRef(0),d=k.useRef(null);k.useEffect(()=>{d.current&&(d.current(),d.current=null)},[l]);const f=k.useRef(!1),h=Uw(),p=k.useRef(null),g=k.useRef(null),w=k.useCallback(x=>{const{pulsate:S,rippleX:A,rippleY:P,rippleSize:M,cb:O}=x;u(E=>[...E,C.jsx(BT,{classes:{ripple:ne(i.ripple,on.ripple),rippleVisible:ne(i.rippleVisible,on.rippleVisible),ripplePulsate:ne(i.ripplePulsate,on.ripplePulsate),child:ne(i.child,on.child),childLeaving:ne(i.childLeaving,on.childLeaving),childPulsate:ne(i.childPulsate,on.childPulsate)},timeout:oh,pulsate:S,rippleX:A,rippleY:P,rippleSize:M},c.current)]),c.current+=1,d.current=O},[i]),m=k.useCallback((x={},S={},A=()=>{})=>{const{pulsate:P=!1,center:M=o||S.pulsate,fakeElement:O=!1}=S;if((x==null?void 0:x.type)==="mousedown"&&f.current){f.current=!1;return}(x==null?void 0:x.type)==="touchstart"&&(f.current=!0);const E=O?null:g.current,T=E?E.getBoundingClientRect():{width:0,height:0,left:0,top:0};let _,$,R;if(M||x===void 0||x.clientX===0&&x.clientY===0||!x.clientX&&!x.touches)_=Math.round(T.width/2),$=Math.round(T.height/2);else{const{clientX:L,clientY:N}=x.touches&&x.touches.length>0?x.touches[0]:x;_=Math.round(L-T.left),$=Math.round(N-T.top)}if(M)R=Math.sqrt((2*T.width**2+T.height**2)/3),R%2===0&&(R+=1);else{const L=Math.max(Math.abs((E?E.clientWidth:0)-_),_)*2+2,N=Math.max(Math.abs((E?E.clientHeight:0)-$),$)*2+2;R=Math.sqrt(L**2+N**2)}x!=null&&x.touches?p.current===null&&(p.current=()=>{w({pulsate:P,rippleX:_,rippleY:$,rippleSize:R,cb:A})},h.start(NT,()=>{p.current&&(p.current(),p.current=null)})):w({pulsate:P,rippleX:_,rippleY:$,rippleSize:R,cb:A})},[o,w,h]),v=k.useCallback(()=>{m({},{pulsate:!0})},[m]),y=k.useCallback((x,S)=>{if(h.clear(),(x==null?void 0:x.type)==="touchend"&&p.current){p.current(),p.current=null,h.start(0,()=>{y(x,S)});return}p.current=null,u(A=>A.length>0?A.slice(1):A),d.current=S},[h]);return k.useImperativeHandle(n,()=>({pulsate:v,start:m,stop:y}),[v,m,y]),C.jsx(DT,b({className:ne(on.root,i.root,s),ref:g},a,{children:C.jsx(Wm,{component:null,exit:!0,children:l})}))});function WT(e){return de("MuiButtonBase",e)}const HT=fe("MuiButtonBase",["root","disabled","focusVisible"]),VT=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],GT=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,s=ce({root:["root",t&&"disabled",n&&"focusVisible"]},WT,o);return n&&r&&(s.root+=` ${r}`),s},KT=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"},[`&.${HT.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Jw=k.forwardRef(function(t,n){const r=ge({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:s,className:a,component:l="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:d=!1,focusRipple:f=!1,LinkComponent:h="a",onBlur:p,onClick:g,onContextMenu:w,onDragLeave:m,onFocus:v,onFocusVisible:y,onKeyDown:x,onKeyUp:S,onMouseDown:A,onMouseLeave:P,onMouseUp:M,onTouchEnd:O,onTouchMove:E,onTouchStart:T,tabIndex:_=0,TouchRippleProps:$,touchRippleRef:R,type:L}=r,N=H(r,VT),z=k.useRef(null),I=k.useRef(null),F=rt(I,R),{isFocusVisibleRef:D,onFocus:K,onBlur:X,ref:re}=OR(),[Y,q]=k.useState(!1);u&&Y&&q(!1),k.useImperativeHandle(o,()=>({focusVisible:()=>{q(!0),z.current.focus()}}),[]);const[te,ae]=k.useState(!1);k.useEffect(()=>{ae(!0)},[]);const he=te&&!c&&!u;k.useEffect(()=>{Y&&f&&!c&&te&&I.current.pulsate()},[c,f,Y,te]);function B(ie,or,is=d){return di(ss=>(or&&or(ss),!is&&I.current&&I.current[ie](ss),!0))}const Q=B("start",A),V=B("stop",w),j=B("stop",m),ee=B("stop",M),J=B("stop",ie=>{Y&&ie.preventDefault(),P&&P(ie)}),le=B("start",T),xe=B("stop",O),Re=B("stop",E),We=B("stop",ie=>{X(ie),D.current===!1&&q(!1),p&&p(ie)},!1),ft=di(ie=>{z.current||(z.current=ie.currentTarget),K(ie),D.current===!0&&(q(!0),y&&y(ie)),v&&v(ie)}),Ke=()=>{const ie=z.current;return l&&l!=="button"&&!(ie.tagName==="A"&&ie.href)},Pe=k.useRef(!1),tn=di(ie=>{f&&!Pe.current&&Y&&I.current&&ie.key===" "&&(Pe.current=!0,I.current.stop(ie,()=>{I.current.start(ie)})),ie.target===ie.currentTarget&&Ke()&&ie.key===" "&&ie.preventDefault(),x&&x(ie),ie.target===ie.currentTarget&&Ke()&&ie.key==="Enter"&&!u&&(ie.preventDefault(),g&&g(ie))}),st=di(ie=>{f&&ie.key===" "&&I.current&&Y&&!ie.defaultPrevented&&(Pe.current=!1,I.current.stop(ie,()=>{I.current.pulsate(ie)})),S&&S(ie),g&&ie.target===ie.currentTarget&&Ke()&&ie.key===" "&&!ie.defaultPrevented&&g(ie)});let Me=l;Me==="button"&&(N.href||N.to)&&(Me=h);const zt={};Me==="button"?(zt.type=L===void 0?"button":L,zt.disabled=u):(!N.href&&!N.to&&(zt.role="button"),u&&(zt["aria-disabled"]=u));const An=rt(n,re,z),nn=b({},r,{centerRipple:i,component:l,disabled:u,disableRipple:c,disableTouchRipple:d,focusRipple:f,tabIndex:_,focusVisible:Y}),Ce=GT(nn);return C.jsxs(KT,b({as:Me,className:ne(Ce.root,a),ownerState:nn,onBlur:We,onClick:g,onContextMenu:V,onFocus:ft,onKeyDown:tn,onKeyUp:st,onMouseDown:Q,onMouseLeave:J,onMouseUp:ee,onDragLeave:j,onTouchEnd:xe,onTouchMove:Re,onTouchStart:le,ref:An,tabIndex:u?-1:_,type:L},zt,N,{children:[s,he?C.jsx(UT,b({ref:F,center:i},$)):null]}))});var Hm={};Object.defineProperty(Hm,"__esModule",{value:!0});var eC=Hm.default=void 0,XT=QT(k),YT=xw;function tC(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(tC=function(r){return r?n:t})(e)}function QT(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=tC(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(r,i,s):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function qT(e){return Object.keys(e).length===0}function ZT(e=null){const t=XT.useContext(YT.ThemeContext);return!t||qT(t)?e:t}eC=Hm.default=ZT;var Nt="top",bn="bottom",wn="right",jt="left",Vm="auto",Xa=[Nt,bn,wn,jt],_i="start",va="end",JT="clippingParents",nC="viewport",ys="popper",eI="reference",zy=Xa.reduce(function(e,t){return e.concat([t+"-"+_i,t+"-"+va])},[]),rC=[].concat(Xa,[Vm]).reduce(function(e,t){return e.concat([t,t+"-"+_i,t+"-"+va])},[]),tI="beforeRead",nI="read",rI="afterRead",oI="beforeMain",iI="main",sI="afterMain",aI="beforeWrite",lI="write",uI="afterWrite",cI=[tI,nI,rI,oI,iI,sI,aI,lI,uI];function er(e){return e?(e.nodeName||"").toLowerCase():null}function Qt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Oo(e){var t=Qt(e).Element;return e instanceof t||e instanceof Element}function mn(e){var t=Qt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Gm(e){if(typeof ShadowRoot>"u")return!1;var t=Qt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function dI(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];!mn(i)||!er(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(s){var a=o[s];a===!1?i.removeAttribute(s):i.setAttribute(s,a===!0?"":a)}))})}function fI(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=s.reduce(function(l,u){return l[u]="",l},{});!mn(o)||!er(o)||(Object.assign(o.style,a),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}const pI={name:"applyStyles",enabled:!0,phase:"write",fn:dI,effect:fI,requires:["computeStyles"]};function Zn(e){return e.split("-")[0]}var Ao=Math.max,Xu=Math.min,Li=Math.round;function ih(){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 oC(){return!/^((?!chrome|android).)*safari/i.test(ih())}function Ni(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&mn(e)&&(o=e.offsetWidth>0&&Li(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Li(r.height)/e.offsetHeight||1);var s=Oo(e)?Qt(e):window,a=s.visualViewport,l=!oC()&&n,u=(r.left+(l&&a?a.offsetLeft:0))/o,c=(r.top+(l&&a?a.offsetTop:0))/i,d=r.width/o,f=r.height/i;return{width:d,height:f,top:c,right:u+d,bottom:c+f,left:u,x:u,y:c}}function Km(e){var t=Ni(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 iC(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Gm(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function br(e){return Qt(e).getComputedStyle(e)}function hI(e){return["table","td","th"].indexOf(er(e))>=0}function to(e){return((Oo(e)?e.ownerDocument:e.document)||window.document).documentElement}function Md(e){return er(e)==="html"?e:e.assignedSlot||e.parentNode||(Gm(e)?e.host:null)||to(e)}function Dy(e){return!mn(e)||br(e).position==="fixed"?null:e.offsetParent}function mI(e){var t=/firefox/i.test(ih()),n=/Trident/i.test(ih());if(n&&mn(e)){var r=br(e);if(r.position==="fixed")return null}var o=Md(e);for(Gm(o)&&(o=o.host);mn(o)&&["html","body"].indexOf(er(o))<0;){var i=br(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 Ya(e){for(var t=Qt(e),n=Dy(e);n&&hI(n)&&br(n).position==="static";)n=Dy(n);return n&&(er(n)==="html"||er(n)==="body"&&br(n).position==="static")?t:n||mI(e)||t}function Xm(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ws(e,t,n){return Ao(e,Xu(t,n))}function gI(e,t,n){var r=Ws(e,t,n);return r>n?n:r}function sC(){return{top:0,right:0,bottom:0,left:0}}function aC(e){return Object.assign({},sC(),e)}function lC(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var yI=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,aC(typeof t!="number"?t:lC(t,Xa))};function vI(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,a=Zn(n.placement),l=Xm(a),u=[jt,wn].indexOf(a)>=0,c=u?"height":"width";if(!(!i||!s)){var d=yI(o.padding,n),f=Km(i),h=l==="y"?Nt:jt,p=l==="y"?bn:wn,g=n.rects.reference[c]+n.rects.reference[l]-s[l]-n.rects.popper[c],w=s[l]-n.rects.reference[l],m=Ya(i),v=m?l==="y"?m.clientHeight||0:m.clientWidth||0:0,y=g/2-w/2,x=d[h],S=v-f[c]-d[p],A=v/2-f[c]/2+y,P=Ws(x,A,S),M=l;n.modifiersData[r]=(t={},t[M]=P,t.centerOffset=P-A,t)}}function xI(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)||iC(t.elements.popper,o)&&(t.elements.arrow=o))}const bI={name:"arrow",enabled:!0,phase:"main",fn:vI,effect:xI,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ji(e){return e.split("-")[1]}var wI={top:"auto",right:"auto",bottom:"auto",left:"auto"};function CI(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Li(n*o)/o||0,y:Li(r*o)/o||0}}function By(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,s=e.offsets,a=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,f=s.x,h=f===void 0?0:f,p=s.y,g=p===void 0?0:p,w=typeof c=="function"?c({x:h,y:g}):{x:h,y:g};h=w.x,g=w.y;var m=s.hasOwnProperty("x"),v=s.hasOwnProperty("y"),y=jt,x=Nt,S=window;if(u){var A=Ya(n),P="clientHeight",M="clientWidth";if(A===Qt(n)&&(A=to(n),br(A).position!=="static"&&a==="absolute"&&(P="scrollHeight",M="scrollWidth")),A=A,o===Nt||(o===jt||o===wn)&&i===va){x=bn;var O=d&&A===S&&S.visualViewport?S.visualViewport.height:A[P];g-=O-r.height,g*=l?1:-1}if(o===jt||(o===Nt||o===bn)&&i===va){y=wn;var E=d&&A===S&&S.visualViewport?S.visualViewport.width:A[M];h-=E-r.width,h*=l?1:-1}}var T=Object.assign({position:a},u&&wI),_=c===!0?CI({x:h,y:g},Qt(n)):{x:h,y:g};if(h=_.x,g=_.y,l){var $;return Object.assign({},T,($={},$[x]=v?"0":"",$[y]=m?"0":"",$.transform=(S.devicePixelRatio||1)<=1?"translate("+h+"px, "+g+"px)":"translate3d("+h+"px, "+g+"px, 0)",$))}return Object.assign({},T,(t={},t[x]=v?g+"px":"",t[y]=m?h+"px":"",t.transform="",t))}function SI(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,s=i===void 0?!0:i,a=n.roundOffsets,l=a===void 0?!0:a,u={placement:Zn(t.placement),variation:ji(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,By(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,By(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const kI={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:SI,data:{}};var Pl={passive:!0};function AI(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,s=r.resize,a=s===void 0?!0:s,l=Qt(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(c){c.addEventListener("scroll",n.update,Pl)}),a&&l.addEventListener("resize",n.update,Pl),function(){i&&u.forEach(function(c){c.removeEventListener("scroll",n.update,Pl)}),a&&l.removeEventListener("resize",n.update,Pl)}}const PI={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:AI,data:{}};var MI={left:"right",right:"left",bottom:"top",top:"bottom"};function du(e){return e.replace(/left|right|bottom|top/g,function(t){return MI[t]})}var EI={start:"end",end:"start"};function Uy(e){return e.replace(/start|end/g,function(t){return EI[t]})}function Ym(e){var t=Qt(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Qm(e){return Ni(to(e)).left+Ym(e).scrollLeft}function RI(e,t){var n=Qt(e),r=to(e),o=n.visualViewport,i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;var u=oC();(u||!u&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a+Qm(e),y:l}}function TI(e){var t,n=to(e),r=Ym(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=Ao(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=Ao(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+Qm(e),l=-r.scrollTop;return br(o||n).direction==="rtl"&&(a+=Ao(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:a,y:l}}function qm(e){var t=br(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function uC(e){return["html","body","#document"].indexOf(er(e))>=0?e.ownerDocument.body:mn(e)&&qm(e)?e:uC(Md(e))}function Hs(e,t){var n;t===void 0&&(t=[]);var r=uC(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=Qt(r),s=o?[i].concat(i.visualViewport||[],qm(r)?r:[]):r,a=t.concat(s);return o?a:a.concat(Hs(Md(s)))}function sh(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function II(e,t){var n=Ni(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 Wy(e,t,n){return t===nC?sh(RI(e,n)):Oo(t)?II(t,n):sh(TI(to(e)))}function $I(e){var t=Hs(Md(e)),n=["absolute","fixed"].indexOf(br(e).position)>=0,r=n&&mn(e)?Ya(e):e;return Oo(r)?t.filter(function(o){return Oo(o)&&iC(o,r)&&er(o)!=="body"}):[]}function OI(e,t,n,r){var o=t==="clippingParents"?$I(e):[].concat(t),i=[].concat(o,[n]),s=i[0],a=i.reduce(function(l,u){var c=Wy(e,u,r);return l.top=Ao(c.top,l.top),l.right=Xu(c.right,l.right),l.bottom=Xu(c.bottom,l.bottom),l.left=Ao(c.left,l.left),l},Wy(e,s,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function cC(e){var t=e.reference,n=e.element,r=e.placement,o=r?Zn(r):null,i=r?ji(r):null,s=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,l;switch(o){case Nt:l={x:s,y:t.y-n.height};break;case bn:l={x:s,y:t.y+t.height};break;case wn:l={x:t.x+t.width,y:a};break;case jt:l={x:t.x-n.width,y:a};break;default:l={x:t.x,y:t.y}}var u=o?Xm(o):null;if(u!=null){var c=u==="y"?"height":"width";switch(i){case _i:l[u]=l[u]-(t[c]/2-n[c]/2);break;case va:l[u]=l[u]+(t[c]/2-n[c]/2);break}}return l}function xa(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,s=i===void 0?e.strategy:i,a=n.boundary,l=a===void 0?JT:a,u=n.rootBoundary,c=u===void 0?nC:u,d=n.elementContext,f=d===void 0?ys:d,h=n.altBoundary,p=h===void 0?!1:h,g=n.padding,w=g===void 0?0:g,m=aC(typeof w!="number"?w:lC(w,Xa)),v=f===ys?eI:ys,y=e.rects.popper,x=e.elements[p?v:f],S=OI(Oo(x)?x:x.contextElement||to(e.elements.popper),l,c,s),A=Ni(e.elements.reference),P=cC({reference:A,element:y,strategy:"absolute",placement:o}),M=sh(Object.assign({},y,P)),O=f===ys?M:A,E={top:S.top-O.top+m.top,bottom:O.bottom-S.bottom+m.bottom,left:S.left-O.left+m.left,right:O.right-S.right+m.right},T=e.modifiersData.offset;if(f===ys&&T){var _=T[o];Object.keys(E).forEach(function($){var R=[wn,bn].indexOf($)>=0?1:-1,L=[Nt,bn].indexOf($)>=0?"y":"x";E[$]+=_[L]*R})}return E}function _I(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?rC:l,c=ji(r),d=c?a?zy:zy.filter(function(p){return ji(p)===c}):Xa,f=d.filter(function(p){return u.indexOf(p)>=0});f.length===0&&(f=d);var h=f.reduce(function(p,g){return p[g]=xa(e,{placement:g,boundary:o,rootBoundary:i,padding:s})[Zn(g)],p},{});return Object.keys(h).sort(function(p,g){return h[p]-h[g]})}function LI(e){if(Zn(e)===Vm)return[];var t=du(e);return[Uy(e),t,Uy(t)]}function NI(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,a=s===void 0?!0:s,l=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,f=n.altBoundary,h=n.flipVariations,p=h===void 0?!0:h,g=n.allowedAutoPlacements,w=t.options.placement,m=Zn(w),v=m===w,y=l||(v||!p?[du(w)]:LI(w)),x=[w].concat(y).reduce(function(Y,q){return Y.concat(Zn(q)===Vm?_I(t,{placement:q,boundary:c,rootBoundary:d,padding:u,flipVariations:p,allowedAutoPlacements:g}):q)},[]),S=t.rects.reference,A=t.rects.popper,P=new Map,M=!0,O=x[0],E=0;E=0,L=R?"width":"height",N=xa(t,{placement:T,boundary:c,rootBoundary:d,altBoundary:f,padding:u}),z=R?$?wn:jt:$?bn:Nt;S[L]>A[L]&&(z=du(z));var I=du(z),F=[];if(i&&F.push(N[_]<=0),a&&F.push(N[z]<=0,N[I]<=0),F.every(function(Y){return Y})){O=T,M=!1;break}P.set(T,F)}if(M)for(var D=p?3:1,K=function(q){var te=x.find(function(ae){var he=P.get(ae);if(he)return he.slice(0,q).every(function(B){return B})});if(te)return O=te,"break"},X=D;X>0;X--){var re=K(X);if(re==="break")break}t.placement!==O&&(t.modifiersData[r]._skip=!0,t.placement=O,t.reset=!0)}}const jI={name:"flip",enabled:!0,phase:"main",fn:NI,requiresIfExists:["offset"],data:{_skip:!1}};function Hy(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 Vy(e){return[Nt,wn,bn,jt].some(function(t){return e[t]>=0})}function FI(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,s=xa(t,{elementContext:"reference"}),a=xa(t,{altBoundary:!0}),l=Hy(s,r),u=Hy(a,o,i),c=Vy(l),d=Vy(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}const zI={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:FI};function DI(e,t,n){var r=Zn(e),o=[jt,Nt].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=i[0],a=i[1];return s=s||0,a=(a||0)*o,[jt,wn].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}function BI(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,s=rC.reduce(function(c,d){return c[d]=DI(d,t.rects,i),c},{}),a=s[t.placement],l=a.x,u=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=s}const UI={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:BI};function WI(e){var t=e.state,n=e.name;t.modifiersData[n]=cC({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const HI={name:"popperOffsets",enabled:!0,phase:"read",fn:WI,data:{}};function VI(e){return e==="x"?"y":"x"}function GI(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,a=s===void 0?!1:s,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,f=n.tether,h=f===void 0?!0:f,p=n.tetherOffset,g=p===void 0?0:p,w=xa(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),m=Zn(t.placement),v=ji(t.placement),y=!v,x=Xm(m),S=VI(x),A=t.modifiersData.popperOffsets,P=t.rects.reference,M=t.rects.popper,O=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,E=typeof O=="number"?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),T=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,_={x:0,y:0};if(A){if(i){var $,R=x==="y"?Nt:jt,L=x==="y"?bn:wn,N=x==="y"?"height":"width",z=A[x],I=z+w[R],F=z-w[L],D=h?-M[N]/2:0,K=v===_i?P[N]:M[N],X=v===_i?-M[N]:-P[N],re=t.elements.arrow,Y=h&&re?Km(re):{width:0,height:0},q=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:sC(),te=q[R],ae=q[L],he=Ws(0,P[N],Y[N]),B=y?P[N]/2-D-he-te-E.mainAxis:K-he-te-E.mainAxis,Q=y?-P[N]/2+D+he+ae+E.mainAxis:X+he+ae+E.mainAxis,V=t.elements.arrow&&Ya(t.elements.arrow),j=V?x==="y"?V.clientTop||0:V.clientLeft||0:0,ee=($=T==null?void 0:T[x])!=null?$:0,J=z+B-ee-j,le=z+Q-ee,xe=Ws(h?Xu(I,J):I,z,h?Ao(F,le):F);A[x]=xe,_[x]=xe-z}if(a){var Re,We=x==="x"?Nt:jt,ft=x==="x"?bn:wn,Ke=A[S],Pe=S==="y"?"height":"width",tn=Ke+w[We],st=Ke-w[ft],Me=[Nt,jt].indexOf(m)!==-1,zt=(Re=T==null?void 0:T[S])!=null?Re:0,An=Me?tn:Ke-P[Pe]-M[Pe]-zt+E.altAxis,nn=Me?Ke+P[Pe]+M[Pe]-zt-E.altAxis:st,Ce=h&&Me?gI(An,Ke,nn):Ws(h?An:tn,Ke,h?nn:st);A[S]=Ce,_[S]=Ce-Ke}t.modifiersData[r]=_}}const KI={name:"preventOverflow",enabled:!0,phase:"main",fn:GI,requiresIfExists:["offset"]};function XI(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function YI(e){return e===Qt(e)||!mn(e)?Ym(e):XI(e)}function QI(e){var t=e.getBoundingClientRect(),n=Li(t.width)/e.offsetWidth||1,r=Li(t.height)/e.offsetHeight||1;return n!==1||r!==1}function qI(e,t,n){n===void 0&&(n=!1);var r=mn(t),o=mn(t)&&QI(t),i=to(t),s=Ni(e,o,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((er(t)!=="body"||qm(i))&&(a=YI(t)),mn(t)?(l=Ni(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=Qm(i))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function ZI(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(a){if(!n.has(a)){var l=t.get(a);l&&o(l)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function JI(e){var t=ZI(e);return cI.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function e$(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function t$(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 Gy={placement:"bottom",modifiers:[],strategy:"absolute"};function Ky(){for(var e=arguments.length,t=new Array(e),n=0;n{i||a(i$(o)||document.body)},[o,i]),xn(()=>{if(s&&!i)return Zp(n,s),()=>{Zp(n,null)}},[n,s,i]),i){if(k.isValidElement(r)){const u={ref:l};return k.cloneElement(r,u)}return C.jsx(k.Fragment,{children:r})}return C.jsx(k.Fragment,{children:s&&_c.createPortal(r,s)})});function s$(e){return de("MuiPopper",e)}fe("MuiPopper",["root"]);const a$=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],l$=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function u$(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 ah(e){return typeof e=="function"?e():e}function c$(e){return e.nodeType!==void 0}const d$=e=>{const{classes:t}=e;return ce({root:["root"]},s$,t)},f$={},p$=k.forwardRef(function(t,n){var r;const{anchorEl:o,children:i,direction:s,disablePortal:a,modifiers:l,open:u,placement:c,popperOptions:d,popperRef:f,slotProps:h={},slots:p={},TransitionProps:g}=t,w=H(t,a$),m=k.useRef(null),v=rt(m,n),y=k.useRef(null),x=rt(y,f),S=k.useRef(x);xn(()=>{S.current=x},[x]),k.useImperativeHandle(f,()=>y.current,[]);const A=u$(c,s),[P,M]=k.useState(A),[O,E]=k.useState(ah(o));k.useEffect(()=>{y.current&&y.current.forceUpdate()}),k.useEffect(()=>{o&&E(ah(o))},[o]),xn(()=>{if(!O||!u)return;const L=I=>{M(I.placement)};let N=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:I})=>{L(I)}}];l!=null&&(N=N.concat(l)),d&&d.modifiers!=null&&(N=N.concat(d.modifiers));const z=o$(O,m.current,b({placement:A},d,{modifiers:N}));return S.current(z),()=>{z.destroy(),S.current(null)}},[O,a,l,u,d,A]);const T={placement:P};g!==null&&(T.TransitionProps=g);const _=d$(t),$=(r=p.root)!=null?r:"div",R=nt({elementType:$,externalSlotProps:h.root,externalForwardedProps:w,additionalProps:{role:"tooltip",ref:v},ownerState:t,className:_.root});return C.jsx($,b({},R,{children:typeof i=="function"?i(T):i}))}),h$=k.forwardRef(function(t,n){const{anchorEl:r,children:o,container:i,direction:s="ltr",disablePortal:a=!1,keepMounted:l=!1,modifiers:u,open:c,placement:d="bottom",popperOptions:f=f$,popperRef:h,style:p,transition:g=!1,slotProps:w={},slots:m={}}=t,v=H(t,l$),[y,x]=k.useState(!0),S=()=>{x(!1)},A=()=>{x(!0)};if(!l&&!c&&(!g||y))return null;let P;if(i)P=i;else if(r){const E=ah(r);P=E&&c$(E)?kt(E).body:kt(null).body}const M=!c&&l&&(!g||y)?"none":void 0,O=g?{in:c,onEnter:S,onExited:A}:void 0;return C.jsx(dC,{disablePortal:a,container:P,children:C.jsx(p$,b({anchorEl:r,direction:s,disablePortal:a,modifiers:u,ref:n,open:g?!y:c,placement:d,popperOptions:f,popperRef:h,slotProps:w,slots:m},v,{style:b({position:"fixed",top:0,left:0,display:M},p),TransitionProps:O,children:o}))})}),m$=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],g$=G(h$,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),y$=k.forwardRef(function(t,n){var r;const o=eC(),i=ge({props:t,name:"MuiPopper"}),{anchorEl:s,component:a,components:l,componentsProps:u,container:c,disablePortal:d,keepMounted:f,modifiers:h,open:p,placement:g,popperOptions:w,popperRef:m,transition:v,slots:y,slotProps:x}=i,S=H(i,m$),A=(r=y==null?void 0:y.root)!=null?r:l==null?void 0:l.Root,P=b({anchorEl:s,container:c,disablePortal:d,keepMounted:f,modifiers:h,open:p,placement:g,popperOptions:w,popperRef:m,transition:v},S);return C.jsx(g$,b({as:a,direction:o==null?void 0:o.direction,slots:{root:A},slotProps:x??u},P,{ref:n}))}),v$=["onChange","maxRows","minRows","style","value"];function Ml(e){return parseInt(e,10)||0}const x$={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function b$(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const w$=k.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:i=1,style:s,value:a}=t,l=H(t,v$),{current:u}=k.useRef(a!=null),c=k.useRef(null),d=rt(n,c),f=k.useRef(null),h=k.useRef(null),p=k.useCallback(()=>{const m=c.current,y=Yr(m).getComputedStyle(m);if(y.width==="0px")return{outerHeightStyle:0,overflowing:!1};const x=h.current;x.style.width=y.width,x.value=m.value||t.placeholder||"x",x.value.slice(-1)===` +`&&(x.value+=" ");const S=y.boxSizing,A=Ml(y.paddingBottom)+Ml(y.paddingTop),P=Ml(y.borderBottomWidth)+Ml(y.borderTopWidth),M=x.scrollHeight;x.value="x";const O=x.scrollHeight;let E=M;i&&(E=Math.max(Number(i)*O,E)),o&&(E=Math.min(Number(o)*O,E)),E=Math.max(E,O);const T=E+(S==="border-box"?A+P:0),_=Math.abs(E-M)<=1;return{outerHeightStyle:T,overflowing:_}},[o,i,t.placeholder]),g=k.useCallback(()=>{const m=p();if(b$(m))return;const v=m.outerHeightStyle,y=c.current;f.current!==v&&(f.current=v,y.style.height=`${v}px`),y.style.overflow=m.overflowing?"hidden":""},[p]);xn(()=>{const m=()=>{g()};let v;const y=Bw(m),x=c.current,S=Yr(x);S.addEventListener("resize",y);let A;return typeof ResizeObserver<"u"&&(A=new ResizeObserver(m),A.observe(x)),()=>{y.clear(),cancelAnimationFrame(v),S.removeEventListener("resize",y),A&&A.disconnect()}},[p,g]),xn(()=>{g()});const w=m=>{u||g(),r&&r(m)};return C.jsxs(k.Fragment,{children:[C.jsx("textarea",b({value:a,onChange:w,ref:d,rows:i,style:s},l)),C.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:h,tabIndex:-1,style:b({},x$.shadow,s,{paddingTop:0,paddingBottom:0})})]})});function ts({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 Zm=k.createContext(void 0);function ns(){return k.useContext(Zm)}function Xy(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Yu(e,t=!1){return e&&(Xy(e.value)&&e.value!==""||t&&Xy(e.defaultValue)&&e.defaultValue!=="")}function C$(e){return e.startAdornment}function S$(e){return de("MuiInputBase",e)}const Fi=fe("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),k$=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],Ed=(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${se(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]},A$=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:s,formControl:a,fullWidth:l,hiddenLabel:u,multiline:c,readOnly:d,size:f,startAdornment:h,type:p}=e,g={root:["root",`color${se(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",s&&"focused",a&&"formControl",f&&f!=="medium"&&`size${se(f)}`,c&&"multiline",h&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled",p==="search"&&"inputTypeSearch",c&&"inputMultiline",f==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",h&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]};return ce(g,S$,t)},Td=G("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Ed})(({theme:e,ownerState:t})=>b({},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",[`&.${Fi.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&b({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),Id=G("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Rd})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=b({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return b({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%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Fi.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${Fi.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),P$=C.jsx(Xw,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),M$=k.forwardRef(function(t,n){var r;const o=ge({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:s,autoFocus:a,className:l,components:u={},componentsProps:c={},defaultValue:d,disabled:f,disableInjectingGlobalStyles:h,endAdornment:p,fullWidth:g=!1,id:w,inputComponent:m="input",inputProps:v={},inputRef:y,maxRows:x,minRows:S,multiline:A=!1,name:P,onBlur:M,onChange:O,onClick:E,onFocus:T,onKeyDown:_,onKeyUp:$,placeholder:R,readOnly:L,renderSuffix:N,rows:z,slotProps:I={},slots:F={},startAdornment:D,type:K="text",value:X}=o,re=H(o,k$),Y=v.value!=null?v.value:X,{current:q}=k.useRef(Y!=null),te=k.useRef(),ae=k.useCallback(Ce=>{},[]),he=rt(te,y,v.ref,ae),[B,Q]=k.useState(!1),V=ns(),j=ts({props:o,muiFormControl:V,states:["color","disabled","error","hiddenLabel","size","required","filled"]});j.focused=V?V.focused:B,k.useEffect(()=>{!V&&f&&B&&(Q(!1),M&&M())},[V,f,B,M]);const ee=V&&V.onFilled,J=V&&V.onEmpty,le=k.useCallback(Ce=>{Yu(Ce)?ee&&ee():J&&J()},[ee,J]);xn(()=>{q&&le({value:Y})},[Y,le,q]);const xe=Ce=>{if(j.disabled){Ce.stopPropagation();return}T&&T(Ce),v.onFocus&&v.onFocus(Ce),V&&V.onFocus?V.onFocus(Ce):Q(!0)},Re=Ce=>{M&&M(Ce),v.onBlur&&v.onBlur(Ce),V&&V.onBlur?V.onBlur(Ce):Q(!1)},We=(Ce,...ie)=>{if(!q){const or=Ce.target||te.current;if(or==null)throw new Error($o(1));le({value:or.value})}v.onChange&&v.onChange(Ce,...ie),O&&O(Ce,...ie)};k.useEffect(()=>{le(te.current)},[]);const ft=Ce=>{te.current&&Ce.currentTarget===Ce.target&&te.current.focus(),E&&E(Ce)};let Ke=m,Pe=v;A&&Ke==="input"&&(z?Pe=b({type:void 0,minRows:z,maxRows:z},Pe):Pe=b({type:void 0,maxRows:x,minRows:S},Pe),Ke=w$);const tn=Ce=>{le(Ce.animationName==="mui-auto-fill-cancel"?te.current:{value:"x"})};k.useEffect(()=>{V&&V.setAdornedStart(!!D)},[V,D]);const st=b({},o,{color:j.color||"primary",disabled:j.disabled,endAdornment:p,error:j.error,focused:j.focused,formControl:V,fullWidth:g,hiddenLabel:j.hiddenLabel,multiline:A,size:j.size,startAdornment:D,type:K}),Me=A$(st),zt=F.root||u.Root||Td,An=I.root||c.root||{},nn=F.input||u.Input||Id;return Pe=b({},Pe,(r=I.input)!=null?r:c.input),C.jsxs(k.Fragment,{children:[!h&&P$,C.jsxs(zt,b({},An,!Hu(zt)&&{ownerState:b({},st,An.ownerState)},{ref:n,onClick:ft},re,{className:ne(Me.root,An.className,l,L&&"MuiInputBase-readOnly"),children:[D,C.jsx(Zm.Provider,{value:null,children:C.jsx(nn,b({ownerState:st,"aria-invalid":j.error,"aria-describedby":i,autoComplete:s,autoFocus:a,defaultValue:d,disabled:j.disabled,id:w,onAnimationStart:tn,name:P,placeholder:R,readOnly:L,required:j.required,rows:z,value:Y,onKeyDown:_,onKeyUp:$,type:K},Pe,!Hu(nn)&&{as:Ke,ownerState:b({},st,Pe.ownerState)},{ref:he,className:ne(Me.input,Pe.className,L&&"MuiInputBase-readOnly"),onBlur:Re,onChange:We,onFocus:xe}))}),p,N?N(b({},j,{startAdornment:D})):null]}))]})}),Jm=M$;function E$(e){return de("MuiInput",e)}const vs=b({},Fi,fe("MuiInput",["root","underline","input"]));function R$(e){return de("MuiOutlinedInput",e)}const Mr=b({},Fi,fe("MuiOutlinedInput",["root","notchedOutline","input"]));function T$(e){return de("MuiFilledInput",e)}const ro=b({},Fi,fe("MuiFilledInput",["root","underline","input"])),I$=Yw(C.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),$$=Yw(C.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function O$(e){return de("MuiAvatar",e)}fe("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const _$=["alt","children","className","component","slots","slotProps","imgProps","sizes","src","srcSet","variant"],L$=e=>{const{classes:t,variant:n,colorDefault:r}=e;return ce({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},O$,t)},N$=G("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:b({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:b({backgroundColor:e.palette.grey[400]},e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})))}]})),j$=G("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),F$=G($$,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function z$({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[o,i]=k.useState(!1);return k.useEffect(()=>{if(!n&&!r)return;i(!1);let s=!0;const a=new Image;return a.onload=()=>{s&&i("loaded")},a.onerror=()=>{s&&i("error")},a.crossOrigin=e,a.referrerPolicy=t,a.src=n,r&&(a.srcset=r),()=>{s=!1}},[e,t,n,r]),o}const D$=k.forwardRef(function(t,n){const r=ge({props:t,name:"MuiAvatar"}),{alt:o,children:i,className:s,component:a="div",slots:l={},slotProps:u={},imgProps:c,sizes:d,src:f,srcSet:h,variant:p="circular"}=r,g=H(r,_$);let w=null;const m=z$(b({},c,{src:f,srcSet:h})),v=f||h,y=v&&m!=="error",x=b({},r,{colorDefault:!y,component:a,variant:p}),S=L$(x),[A,P]=OT("img",{className:S.img,elementType:j$,externalForwardedProps:{slots:l,slotProps:{img:b({},c,u.img)}},additionalProps:{alt:o,src:f,srcSet:h,sizes:d},ownerState:x});return y?w=C.jsx(A,b({},P)):i||i===0?w=i:v&&o?w=o[0]:w=C.jsx(F$,{ownerState:x,className:S.fallback}),C.jsx(N$,b({as:a,ownerState:x,className:ne(S.root,s),ref:n},g,{children:w}))}),B$=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],U$={entering:{opacity:1},entered:{opacity:1}},fC=k.forwardRef(function(t,n){const r=eo(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:s=!0,children:a,easing:l,in:u,onEnter:c,onEntered:d,onEntering:f,onExit:h,onExited:p,onExiting:g,style:w,timeout:m=o,TransitionComponent:v=nr}=t,y=H(t,B$),x=k.useRef(null),S=rt(x,a.ref,n),A=R=>L=>{if(R){const N=x.current;L===void 0?R(N):R(N,L)}},P=A(f),M=A((R,L)=>{Zw(R);const N=Ku({style:w,timeout:m,easing:l},{mode:"enter"});R.style.webkitTransition=r.transitions.create("opacity",N),R.style.transition=r.transitions.create("opacity",N),c&&c(R,L)}),O=A(d),E=A(g),T=A(R=>{const L=Ku({style:w,timeout:m,easing:l},{mode:"exit"});R.style.webkitTransition=r.transitions.create("opacity",L),R.style.transition=r.transitions.create("opacity",L),h&&h(R)}),_=A(p),$=R=>{i&&i(x.current,R)};return C.jsx(v,b({appear:s,in:u,nodeRef:x,onEnter:M,onEntered:O,onEntering:P,onExit:T,onExited:_,onExiting:E,addEndListener:$,timeout:m},y,{children:(R,L)=>k.cloneElement(a,b({style:b({opacity:0,visibility:R==="exited"&&!u?"hidden":void 0},U$[R],w,a.props.style),ref:S},L))}))});function W$(e){return de("MuiBackdrop",e)}fe("MuiBackdrop",["root","invisible"]);const H$=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],V$=e=>{const{classes:t,invisible:n}=e;return ce({root:["root",n&&"invisible"]},W$,t)},G$=G("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>b({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"},e.invisible&&{backgroundColor:"transparent"})),K$=k.forwardRef(function(t,n){var r,o,i;const s=ge({props:t,name:"MuiBackdrop"}),{children:a,className:l,component:u="div",components:c={},componentsProps:d={},invisible:f=!1,open:h,slotProps:p={},slots:g={},TransitionComponent:w=fC,transitionDuration:m}=s,v=H(s,H$),y=b({},s,{component:u,invisible:f}),x=V$(y),S=(r=p.root)!=null?r:d.root;return C.jsx(w,b({in:h,timeout:m},v,{children:C.jsx(G$,b({"aria-hidden":!0},S,{as:(o=(i=g.root)!=null?i:c.Root)!=null?o:u,className:ne(x.root,l,S==null?void 0:S.className),ownerState:b({},y,S==null?void 0:S.ownerState),classes:x,ref:n,children:a}))}))});function X$(e){return de("MuiButton",e)}const El=fe("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"]),pC=k.createContext({}),Y$=k.createContext(void 0),Q$=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],q$=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:s}=e,a={root:["root",i,`${i}${se(t)}`,`size${se(o)}`,`${i}Size${se(o)}`,`color${se(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${se(o)}`],endIcon:["icon","endIcon",`iconSize${se(o)}`]},l=ce(a,X$,s);return b({},s,l)},hC=e=>b({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),Z$=G(Jw,{shouldForwardProp:e=>Fn(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${se(n.color)}`],t[`size${se(n.size)}`],t[`${n.variant}Size${se(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const o=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],i=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return b({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":b({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:go(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:go(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:go(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":b({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${El.focusVisible}`]:b({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${El.disabled}`]:b({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${go(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${El.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${El.disabled}`]:{boxShadow:"none"}}),J$=G("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${se(n.size)}`]]}})(({ownerState:e})=>b({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},hC(e))),e5=G("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${se(n.size)}`]]}})(({ownerState:e})=>b({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},hC(e))),t5=k.forwardRef(function(t,n){const r=k.useContext(pC),o=k.useContext(Y$),i=Oi(r,t),s=ge({props:i,name:"MuiButton"}),{children:a,color:l="primary",component:u="button",className:c,disabled:d=!1,disableElevation:f=!1,disableFocusRipple:h=!1,endIcon:p,focusVisibleClassName:g,fullWidth:w=!1,size:m="medium",startIcon:v,type:y,variant:x="text"}=s,S=H(s,Q$),A=b({},s,{color:l,component:u,disabled:d,disableElevation:f,disableFocusRipple:h,fullWidth:w,size:m,type:y,variant:x}),P=q$(A),M=v&&C.jsx(J$,{className:P.startIcon,ownerState:A,children:v}),O=p&&C.jsx(e5,{className:P.endIcon,ownerState:A,children:p}),E=o||"";return C.jsxs(Z$,b({ownerState:A,className:ne(r.className,P.root,c,E),component:u,disabled:d,focusRipple:!h,focusVisibleClassName:ne(P.focusVisible,g),ref:n,type:y},S,{classes:P,children:[M,a,O]}))});function n5(e){return de("MuiCard",e)}fe("MuiCard",["root"]);const r5=["className","raised"],o5=e=>{const{classes:t}=e;return ce({root:["root"]},n5,t)},i5=G(Fo,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),mC=k.forwardRef(function(t,n){const r=ge({props:t,name:"MuiCard"}),{className:o,raised:i=!1}=r,s=H(r,r5),a=b({},r,{raised:i}),l=o5(a);return C.jsx(i5,b({className:ne(l.root,o),elevation:i?8:void 0,ref:n,ownerState:a},s))});function s5(e){return de("MuiCardActionArea",e)}const Ef=fe("MuiCardActionArea",["root","focusVisible","focusHighlight"]),a5=["children","className","focusVisibleClassName"],l5=e=>{const{classes:t}=e;return ce({root:["root"],focusHighlight:["focusHighlight"]},s5,t)},u5=G(Jw,{name:"MuiCardActionArea",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"block",textAlign:"inherit",borderRadius:"inherit",width:"100%",[`&:hover .${Ef.focusHighlight}`]:{opacity:(e.vars||e).palette.action.hoverOpacity,"@media (hover: none)":{opacity:0}},[`&.${Ef.focusVisible} .${Ef.focusHighlight}`]:{opacity:(e.vars||e).palette.action.focusOpacity}})),c5=G("span",{name:"MuiCardActionArea",slot:"FocusHighlight",overridesResolver:(e,t)=>t.focusHighlight})(({theme:e})=>({overflow:"hidden",pointerEvents:"none",position:"absolute",top:0,right:0,bottom:0,left:0,borderRadius:"inherit",opacity:0,backgroundColor:"currentcolor",transition:e.transitions.create("opacity",{duration:e.transitions.duration.short})})),d5=k.forwardRef(function(t,n){const r=ge({props:t,name:"MuiCardActionArea"}),{children:o,className:i,focusVisibleClassName:s}=r,a=H(r,a5),l=r,u=l5(l);return C.jsxs(u5,b({className:ne(u.root,i),focusVisibleClassName:ne(s,u.focusVisible),ref:n,ownerState:l},a,{children:[o,C.jsx(c5,{className:u.focusHighlight,ownerState:l})]}))});function f5(e){return de("MuiCardContent",e)}fe("MuiCardContent",["root"]);const p5=["className","component"],h5=e=>{const{classes:t}=e;return ce({root:["root"]},f5,t)},m5=G("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),gC=k.forwardRef(function(t,n){const r=ge({props:t,name:"MuiCardContent"}),{className:o,component:i="div"}=r,s=H(r,p5),a=b({},r,{component:i}),l=h5(a);return C.jsx(m5,b({as:i,className:ne(l.root,o),ownerState:a,ref:n},s))});function g5(e){return de("MuiCardMedia",e)}fe("MuiCardMedia",["root","media","img"]);const y5=["children","className","component","image","src","style"],v5=e=>{const{classes:t,isMediaComponent:n,isImageComponent:r}=e;return ce({root:["root",n&&"media",r&&"img"]},g5,t)},x5=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]}})(({ownerState:e})=>b({display:"block",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center"},e.isMediaComponent&&{width:"100%"},e.isImageComponent&&{objectFit:"cover"})),b5=["video","audio","picture","iframe","img"],w5=["picture","img"],C5=k.forwardRef(function(t,n){const r=ge({props:t,name:"MuiCardMedia"}),{children:o,className:i,component:s="div",image:a,src:l,style:u}=r,c=H(r,y5),d=b5.indexOf(s)!==-1,f=!d&&a?b({backgroundImage:`url("${a}")`},u):u,h=b({},r,{component:s,isMediaComponent:d,isImageComponent:w5.indexOf(s)!==-1}),p=v5(h);return C.jsx(x5,b({className:ne(p.root,i),as:s,role:!d&&a?"img":void 0,ref:n,style:f,ownerState:h,src:d?a||l:void 0},c,{children:o}))});function S5(e){return de("MuiCircularProgress",e)}fe("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const k5=["className","color","disableShrink","size","style","thickness","value","variant"];let $d=e=>e,Yy,Qy,qy,Zy;const Er=44,A5=Qi(Yy||(Yy=$d` + 0% { + transform: rotate(0deg); + } + + 100% { + transform: rotate(360deg); + } +`)),P5=Qi(Qy||(Qy=$d` + 0% { + stroke-dasharray: 1px, 200px; + stroke-dashoffset: 0; + } + + 50% { + stroke-dasharray: 100px, 200px; + stroke-dashoffset: -15px; + } + + 100% { + stroke-dasharray: 100px, 200px; + stroke-dashoffset: -125px; + } +`)),M5=e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,i={root:["root",n,`color${se(r)}`],svg:["svg"],circle:["circle",`circle${se(n)}`,o&&"circleDisableShrink"]};return ce(i,S5,t)},E5=G("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${se(n.color)}`]]}})(({ownerState:e,theme:t})=>b({display:"inline-block"},e.variant==="determinate"&&{transition:t.transitions.create("transform")},e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&Yc(qy||(qy=$d` + animation: ${0} 1.4s linear infinite; + `),A5)),R5=G("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),T5=G("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${se(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>b({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&Yc(Zy||(Zy=$d` + animation: ${0} 1.4s ease-in-out infinite; + `),P5)),yC=k.forwardRef(function(t,n){const r=ge({props:t,name:"MuiCircularProgress"}),{className:o,color:i="primary",disableShrink:s=!1,size:a=40,style:l,thickness:u=3.6,value:c=0,variant:d="indeterminate"}=r,f=H(r,k5),h=b({},r,{color:i,disableShrink:s,size:a,thickness:u,value:c,variant:d}),p=M5(h),g={},w={},m={};if(d==="determinate"){const v=2*Math.PI*((Er-u)/2);g.strokeDasharray=v.toFixed(3),m["aria-valuenow"]=Math.round(c),g.strokeDashoffset=`${((100-c)/100*v).toFixed(3)}px`,w.transform="rotate(-90deg)"}return C.jsx(E5,b({className:ne(p.root,o),style:b({width:a,height:a},w,l),ownerState:h,ref:n,role:"progressbar"},m,f,{children:C.jsx(R5,{className:p.svg,ownerState:h,viewBox:`${Er/2} ${Er/2} ${Er} ${Er}`,children:C.jsx(T5,{className:p.circle,style:g,ownerState:h,cx:Er,cy:Er,r:(Er-u)/2,fill:"none",strokeWidth:u})})}))});function I5(e){const t=kt(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 Jy(e){return parseInt(Yr(e).getComputedStyle(e).paddingRight,10)||0}function $5(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function ev(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,s=>{const a=i.indexOf(s)===-1,l=!$5(s);a&&l&&Vs(s,o)})}function Rf(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function O5(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(I5(r)){const s=Ww(kt(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${Jy(r)+s}px`;const a=kt(r).querySelectorAll(".mui-fixed");[].forEach.call(a,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${Jy(l)+s}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=kt(r).body;else{const s=r.parentElement,a=Yr(r);i=(s==null?void 0:s.nodeName)==="HTML"&&a.getComputedStyle(s).overflowY==="scroll"?s: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:s,property:a})=>{i?s.style.setProperty(a,i):s.style.removeProperty(a)})}}function _5(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class L5{constructor(){this.containers=void 0,this.modals=void 0,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=_5(n);ev(n,t.mount,t.modalRef,o,!0);const i=Rf(this.containers,s=>s.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=Rf(this.containers,i=>i.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=O5(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=Rf(this.containers,s=>s.modals.indexOf(t)!==-1),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),ev(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(o,1);else{const s=i.modals[i.modals.length-1];s.modalRef&&Vs(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const N5=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function j5(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 F5(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 z5(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||F5(e))}function D5(e){const t=[],n=[];return Array.from(e.querySelectorAll(N5)).forEach((r,o)=>{const i=j5(r);i===-1||!z5(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 B5(){return!0}function U5(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=D5,isEnabled:s=B5,open:a}=e,l=k.useRef(!1),u=k.useRef(null),c=k.useRef(null),d=k.useRef(null),f=k.useRef(null),h=k.useRef(!1),p=k.useRef(null),g=rt(t.ref,p),w=k.useRef(null);k.useEffect(()=>{!a||!p.current||(h.current=!n)},[n,a]),k.useEffect(()=>{if(!a||!p.current)return;const y=kt(p.current);return p.current.contains(y.activeElement)||(p.current.hasAttribute("tabIndex")||p.current.setAttribute("tabIndex","-1"),h.current&&p.current.focus()),()=>{o||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}},[a]),k.useEffect(()=>{if(!a||!p.current)return;const y=kt(p.current),x=P=>{w.current=P,!(r||!s()||P.key!=="Tab")&&y.activeElement===p.current&&P.shiftKey&&(l.current=!0,c.current&&c.current.focus())},S=()=>{const P=p.current;if(P===null)return;if(!y.hasFocus()||!s()||l.current){l.current=!1;return}if(P.contains(y.activeElement)||r&&y.activeElement!==u.current&&y.activeElement!==c.current)return;if(y.activeElement!==f.current)f.current=null;else if(f.current!==null)return;if(!h.current)return;let M=[];if((y.activeElement===u.current||y.activeElement===c.current)&&(M=i(p.current)),M.length>0){var O,E;const T=!!((O=w.current)!=null&&O.shiftKey&&((E=w.current)==null?void 0:E.key)==="Tab"),_=M[0],$=M[M.length-1];typeof _!="string"&&typeof $!="string"&&(T?$.focus():_.focus())}else P.focus()};y.addEventListener("focusin",S),y.addEventListener("keydown",x,!0);const A=setInterval(()=>{y.activeElement&&y.activeElement.tagName==="BODY"&&S()},50);return()=>{clearInterval(A),y.removeEventListener("focusin",S),y.removeEventListener("keydown",x,!0)}},[n,r,o,s,a,i]);const m=y=>{d.current===null&&(d.current=y.relatedTarget),h.current=!0,f.current=y.target;const x=t.props.onFocus;x&&x(y)},v=y=>{d.current===null&&(d.current=y.relatedTarget),h.current=!0};return C.jsxs(k.Fragment,{children:[C.jsx("div",{tabIndex:a?0:-1,onFocus:v,ref:u,"data-testid":"sentinelStart"}),k.cloneElement(t,{ref:g,onFocus:m}),C.jsx("div",{tabIndex:a?0:-1,onFocus:v,ref:c,"data-testid":"sentinelEnd"})]})}function W5(e){return typeof e=="function"?e():e}function H5(e){return e?e.props.hasOwnProperty("in"):!1}const V5=new L5;function G5(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=V5,closeAfterTransition:i=!1,onTransitionEnter:s,onTransitionExited:a,children:l,onClose:u,open:c,rootRef:d}=e,f=k.useRef({}),h=k.useRef(null),p=k.useRef(null),g=rt(p,d),[w,m]=k.useState(!c),v=H5(l);let y=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(y=!1);const x=()=>kt(h.current),S=()=>(f.current.modalRef=p.current,f.current.mount=h.current,f.current),A=()=>{o.mount(S(),{disableScrollLock:r}),p.current&&(p.current.scrollTop=0)},P=di(()=>{const N=W5(t)||x().body;o.add(S(),N),p.current&&A()}),M=k.useCallback(()=>o.isTopModal(S()),[o]),O=di(N=>{h.current=N,N&&(c&&M()?A():p.current&&Vs(p.current,y))}),E=k.useCallback(()=>{o.remove(S(),y)},[y,o]);k.useEffect(()=>()=>{E()},[E]),k.useEffect(()=>{c?P():(!v||!i)&&E()},[c,E,v,i,P]);const T=N=>z=>{var I;(I=N.onKeyDown)==null||I.call(N,z),!(z.key!=="Escape"||z.which===229||!M())&&(n||(z.stopPropagation(),u&&u(z,"escapeKeyDown")))},_=N=>z=>{var I;(I=N.onClick)==null||I.call(N,z),z.target===z.currentTarget&&u&&u(z,"backdropClick")};return{getRootProps:(N={})=>{const z=Vw(e);delete z.onTransitionEnter,delete z.onTransitionExited;const I=b({},z,N);return b({role:"presentation"},I,{onKeyDown:T(I),ref:g})},getBackdropProps:(N={})=>{const z=N;return b({"aria-hidden":!0},z,{onClick:_(z),open:c})},getTransitionProps:()=>{const N=()=>{m(!1),s&&s()},z=()=>{m(!0),a&&a(),i&&E()};return{onEnter:Ey(N,l==null?void 0:l.props.onEnter),onExited:Ey(z,l==null?void 0:l.props.onExited)}},rootRef:g,portalRef:O,isTopModal:M,exited:w,hasTransition:v}}function K5(e){return de("MuiModal",e)}fe("MuiModal",["root","hidden","backdrop"]);const X5=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],Y5=e=>{const{open:t,exited:n,classes:r}=e;return ce({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},K5,r)},Q5=G("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>b({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),q5=G(K$,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Z5=k.forwardRef(function(t,n){var r,o,i,s,a,l;const u=ge({name:"MuiModal",props:t}),{BackdropComponent:c=q5,BackdropProps:d,className:f,closeAfterTransition:h=!1,children:p,container:g,component:w,components:m={},componentsProps:v={},disableAutoFocus:y=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:S=!1,disablePortal:A=!1,disableRestoreFocus:P=!1,disableScrollLock:M=!1,hideBackdrop:O=!1,keepMounted:E=!1,onBackdropClick:T,open:_,slotProps:$,slots:R}=u,L=H(u,X5),N=b({},u,{closeAfterTransition:h,disableAutoFocus:y,disableEnforceFocus:x,disableEscapeKeyDown:S,disablePortal:A,disableRestoreFocus:P,disableScrollLock:M,hideBackdrop:O,keepMounted:E}),{getRootProps:z,getBackdropProps:I,getTransitionProps:F,portalRef:D,isTopModal:K,exited:X,hasTransition:re}=G5(b({},N,{rootRef:n})),Y=b({},N,{exited:X}),q=Y5(Y),te={};if(p.props.tabIndex===void 0&&(te.tabIndex="-1"),re){const{onEnter:ee,onExited:J}=F();te.onEnter=ee,te.onExited=J}const ae=(r=(o=R==null?void 0:R.root)!=null?o:m.Root)!=null?r:Q5,he=(i=(s=R==null?void 0:R.backdrop)!=null?s:m.Backdrop)!=null?i:c,B=(a=$==null?void 0:$.root)!=null?a:v.root,Q=(l=$==null?void 0:$.backdrop)!=null?l:v.backdrop,V=nt({elementType:ae,externalSlotProps:B,externalForwardedProps:L,getSlotProps:z,additionalProps:{ref:n,as:w},ownerState:Y,className:ne(f,B==null?void 0:B.className,q==null?void 0:q.root,!Y.open&&Y.exited&&(q==null?void 0:q.hidden))}),j=nt({elementType:he,externalSlotProps:Q,additionalProps:d,getSlotProps:ee=>I(b({},ee,{onClick:J=>{T&&T(J),ee!=null&&ee.onClick&&ee.onClick(J)}})),className:ne(Q==null?void 0:Q.className,d==null?void 0:d.className,q==null?void 0:q.backdrop),ownerState:Y});return!E&&!_&&(!re||X)?null:C.jsx(dC,{ref:D,container:g,disablePortal:A,children:C.jsxs(ae,b({},V,{children:[!O&&c?C.jsx(he,b({},j)):null,C.jsx(U5,{disableEnforceFocus:x,disableAutoFocus:y,disableRestoreFocus:P,isEnabled:K,open:_,children:k.cloneElement(p,te)})]}))})});function J5(e){return de("MuiDivider",e)}fe("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const e3=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],t3=e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:s,textAlign:a,variant:l}=e;return ce({root:["root",t&&"absolute",l,i&&"light",s==="vertical"&&"vertical",o&&"flexItem",n&&"withChildren",n&&s==="vertical"&&"withChildrenVertical",a==="right"&&s!=="vertical"&&"textAlignRight",a==="left"&&s!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",s==="vertical"&&"wrapperVertical"]},J5,r)},n3=G("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>b({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:go(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>b({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>b({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}),({theme:e,ownerState:t})=>b({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}),({ownerState:e})=>b({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),r3=G("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>b({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),vC=k.forwardRef(function(t,n){const r=ge({props:t,name:"MuiDivider"}),{absolute:o=!1,children:i,className:s,component:a=i?"div":"hr",flexItem:l=!1,light:u=!1,orientation:c="horizontal",role:d=a!=="hr"?"separator":void 0,textAlign:f="center",variant:h="fullWidth"}=r,p=H(r,e3),g=b({},r,{absolute:o,component:a,flexItem:l,light:u,orientation:c,role:d,textAlign:f,variant:h}),w=t3(g);return C.jsx(n3,b({as:a,className:ne(w.root,s),role:d,ref:n,ownerState:g},p,{children:i?C.jsx(r3,{className:w.wrapper,ownerState:g,children:i}):null}))});vC.muiSkipListHighlight=!0;const o3=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],i3=e=>{const{classes:t,disableUnderline:n}=e,o=ce({root:["root",!n&&"underline"],input:["input"]},T$,t);return b({},t,o)},s3=G(Td,{shouldForwardProp:e=>Fn(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Ed(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const r=e.palette.mode==="light",o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",s=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return b({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,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:s,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${ro.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${ro.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(n=(e.vars||e).palette[t.color||"primary"])==null?void 0:n.main}`,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"},[`&.${ro.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ro.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})`:o}`,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(.${ro.disabled}, .${ro.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${ro.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&b({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9}))}),a3=G(Id,{name:"MuiFilledInput",slot:"Input",overridesResolver:Rd})(({theme:e,ownerState:t})=>b({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"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),eg=k.forwardRef(function(t,n){var r,o,i,s;const a=ge({props:t,name:"MuiFilledInput"}),{components:l={},componentsProps:u,fullWidth:c=!1,inputComponent:d="input",multiline:f=!1,slotProps:h,slots:p={},type:g="text"}=a,w=H(a,o3),m=b({},a,{fullWidth:c,inputComponent:d,multiline:f,type:g}),v=i3(a),y={root:{ownerState:m},input:{ownerState:m}},x=h??u?Xt(y,h??u):y,S=(r=(o=p.root)!=null?o:l.Root)!=null?r:s3,A=(i=(s=p.input)!=null?s:l.Input)!=null?i:a3;return C.jsx(Jm,b({slots:{root:S,input:A},componentsProps:x,fullWidth:c,inputComponent:d,multiline:f,ref:n,type:g},w,{classes:v}))});eg.muiName="Input";function l3(e){return de("MuiFormControl",e)}fe("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const u3=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],c3=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${se(n)}`,r&&"fullWidth"]};return ce(o,l3,t)},d3=G("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>b({},t.root,t[`margin${se(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>b({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),f3=k.forwardRef(function(t,n){const r=ge({props:t,name:"MuiFormControl"}),{children:o,className:i,color:s="primary",component:a="div",disabled:l=!1,error:u=!1,focused:c,fullWidth:d=!1,hiddenLabel:f=!1,margin:h="none",required:p=!1,size:g="medium",variant:w="outlined"}=r,m=H(r,u3),v=b({},r,{color:s,component:a,disabled:l,error:u,fullWidth:d,hiddenLabel:f,margin:h,required:p,size:g,variant:w}),y=c3(v),[x,S]=k.useState(()=>{let $=!1;return o&&k.Children.forEach(o,R=>{if(!Pf(R,["Input","Select"]))return;const L=Pf(R,["Select"])?R.props.input:R;L&&C$(L.props)&&($=!0)}),$}),[A,P]=k.useState(()=>{let $=!1;return o&&k.Children.forEach(o,R=>{Pf(R,["Input","Select"])&&(Yu(R.props,!0)||Yu(R.props.inputProps,!0))&&($=!0)}),$}),[M,O]=k.useState(!1);l&&M&&O(!1);const E=c!==void 0&&!l?c:M;let T;const _=k.useMemo(()=>({adornedStart:x,setAdornedStart:S,color:s,disabled:l,error:u,filled:A,focused:E,fullWidth:d,hiddenLabel:f,size:g,onBlur:()=>{O(!1)},onEmpty:()=>{P(!1)},onFilled:()=>{P(!0)},onFocus:()=>{O(!0)},registerEffect:T,required:p,variant:w}),[x,s,l,u,A,E,d,f,T,p,g,w]);return C.jsx(Zm.Provider,{value:_,children:C.jsx(d3,b({as:a,ownerState:v,className:ne(y.root,i),ref:n},m,{children:o}))})});function p3(e){return de("MuiFormHelperText",e)}const tv=fe("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var nv;const h3=["children","className","component","disabled","error","filled","focused","margin","required","variant"],m3=e=>{const{classes:t,contained:n,size:r,disabled:o,error:i,filled:s,focused:a,required:l}=e,u={root:["root",o&&"disabled",i&&"error",r&&`size${se(r)}`,n&&"contained",a&&"focused",s&&"filled",l&&"required"]};return ce(u,p3,t)},g3=G("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${se(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>b({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${tv.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${tv.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),y3=k.forwardRef(function(t,n){const r=ge({props:t,name:"MuiFormHelperText"}),{children:o,className:i,component:s="p"}=r,a=H(r,h3),l=ns(),u=ts({props:r,muiFormControl:l,states:["variant","size","disabled","error","filled","focused","required"]}),c=b({},r,{component:s,contained:u.variant==="filled"||u.variant==="outlined",variant:u.variant,size:u.size,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),d=m3(c);return C.jsx(g3,b({as:s,ownerState:c,className:ne(d.root,i),ref:n},a,{children:o===" "?nv||(nv=C.jsx("span",{className:"notranslate",children:"​"})):o}))});function v3(e){return de("MuiFormLabel",e)}const Gs=fe("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),x3=["children","className","color","component","disabled","error","filled","focused","required"],b3=e=>{const{classes:t,color:n,focused:r,disabled:o,error:i,filled:s,required:a}=e,l={root:["root",`color${se(n)}`,o&&"disabled",i&&"error",s&&"filled",r&&"focused",a&&"required"],asterisk:["asterisk",i&&"error"]};return ce(l,v3,t)},w3=G("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>b({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>b({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${Gs.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Gs.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Gs.error}`]:{color:(e.vars||e).palette.error.main}})),C3=G("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Gs.error}`]:{color:(e.vars||e).palette.error.main}})),S3=k.forwardRef(function(t,n){const r=ge({props:t,name:"MuiFormLabel"}),{children:o,className:i,component:s="label"}=r,a=H(r,x3),l=ns(),u=ts({props:r,muiFormControl:l,states:["color","required","focused","disabled","error","filled"]}),c=b({},r,{color:u.color||"primary",component:s,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),d=b3(c);return C.jsxs(w3,b({as:s,ownerState:c,className:ne(d.root,i),ref:n},a,{children:[o,u.required&&C.jsxs(C3,{ownerState:c,"aria-hidden":!0,className:d.asterisk,children:[" ","*"]})]}))}),k3=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function lh(e){return`scale(${e}, ${e**2})`}const A3={entering:{opacity:1,transform:lh(1)},entered:{opacity:1,transform:"none"}},Tf=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),xC=k.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:i,easing:s,in:a,onEnter:l,onEntered:u,onEntering:c,onExit:d,onExited:f,onExiting:h,style:p,timeout:g="auto",TransitionComponent:w=nr}=t,m=H(t,k3),v=Uw(),y=k.useRef(),x=eo(),S=k.useRef(null),A=rt(S,i.ref,n),P=L=>N=>{if(L){const z=S.current;N===void 0?L(z):L(z,N)}},M=P(c),O=P((L,N)=>{Zw(L);const{duration:z,delay:I,easing:F}=Ku({style:p,timeout:g,easing:s},{mode:"enter"});let D;g==="auto"?(D=x.transitions.getAutoHeightDuration(L.clientHeight),y.current=D):D=z,L.style.transition=[x.transitions.create("opacity",{duration:D,delay:I}),x.transitions.create("transform",{duration:Tf?D:D*.666,delay:I,easing:F})].join(","),l&&l(L,N)}),E=P(u),T=P(h),_=P(L=>{const{duration:N,delay:z,easing:I}=Ku({style:p,timeout:g,easing:s},{mode:"exit"});let F;g==="auto"?(F=x.transitions.getAutoHeightDuration(L.clientHeight),y.current=F):F=N,L.style.transition=[x.transitions.create("opacity",{duration:F,delay:z}),x.transitions.create("transform",{duration:Tf?F:F*.666,delay:Tf?z:z||F*.333,easing:I})].join(","),L.style.opacity=0,L.style.transform=lh(.75),d&&d(L)}),$=P(f),R=L=>{g==="auto"&&v.start(y.current||0,L),r&&r(S.current,L)};return C.jsx(w,b({appear:o,in:a,nodeRef:S,onEnter:O,onEntered:E,onEntering:M,onExit:_,onExited:$,onExiting:T,addEndListener:R,timeout:g==="auto"?null:g},m,{children:(L,N)=>k.cloneElement(i,b({style:b({opacity:0,transform:lh(.75),visibility:L==="exited"&&!a?"hidden":void 0},A3[L],p,i.props.style),ref:A},N))}))});xC.muiSupportAuto=!0;const P3=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],M3=e=>{const{classes:t,disableUnderline:n}=e,o=ce({root:["root",!n&&"underline"],input:["input"]},E$,t);return b({},t,o)},E3=G(Td,{shouldForwardProp:e=>Fn(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Ed(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),b({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,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"},[`&.${vs.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${vs.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,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(.${vs.disabled}, .${vs.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${vs.disabled}:before`]:{borderBottomStyle:"dotted"}})}),R3=G(Id,{name:"MuiInput",slot:"Input",overridesResolver:Rd})({}),tg=k.forwardRef(function(t,n){var r,o,i,s;const a=ge({props:t,name:"MuiInput"}),{disableUnderline:l,components:u={},componentsProps:c,fullWidth:d=!1,inputComponent:f="input",multiline:h=!1,slotProps:p,slots:g={},type:w="text"}=a,m=H(a,P3),v=M3(a),x={root:{ownerState:{disableUnderline:l}}},S=p??c?Xt(p??c,x):x,A=(r=(o=g.root)!=null?o:u.Root)!=null?r:E3,P=(i=(s=g.input)!=null?s:u.Input)!=null?i:R3;return C.jsx(Jm,b({slots:{root:A,input:P},slotProps:S,fullWidth:d,inputComponent:f,multiline:h,ref:n,type:w},m,{classes:v}))});tg.muiName="Input";function T3(e){return de("MuiInputLabel",e)}fe("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const I3=["disableAnimation","margin","shrink","variant","className"],$3=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:i,variant:s,required:a}=e,l={root:["root",n&&"formControl",!i&&"animated",o&&"shrink",r&&r!=="normal"&&`size${se(r)}`,s],asterisk:[a&&"asterisk"]},u=ce(l,T3,t);return b({},t,u)},O3=G(S3,{shouldForwardProp:e=>Fn(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Gs.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]]}})(({theme:e,ownerState:t})=>b({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&b({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&b({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&b({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),_3=k.forwardRef(function(t,n){const r=ge({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:i,className:s}=r,a=H(r,I3),l=ns();let u=i;typeof u>"u"&&l&&(u=l.filled||l.focused||l.adornedStart);const c=ts({props:r,muiFormControl:l,states:["size","variant","required","focused"]}),d=b({},r,{disableAnimation:o,formControl:l,shrink:u,size:c.size,variant:c.variant,required:c.required,focused:c.focused}),f=$3(d);return C.jsx(O3,b({"data-shrink":u,ownerState:d,ref:n,className:ne(f.root,s)},a,{classes:f}))}),L3=k.createContext({});function N3(e){return de("MuiList",e)}fe("MuiList",["root","padding","dense","subheader"]);const j3=["children","className","component","dense","disablePadding","subheader"],F3=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return ce({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},N3,t)},z3=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]}})(({ownerState:e})=>b({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),D3=k.forwardRef(function(t,n){const r=ge({props:t,name:"MuiList"}),{children:o,className:i,component:s="ul",dense:a=!1,disablePadding:l=!1,subheader:u}=r,c=H(r,j3),d=k.useMemo(()=>({dense:a}),[a]),f=b({},r,{component:s,dense:a,disablePadding:l}),h=F3(f);return C.jsx(L3.Provider,{value:d,children:C.jsxs(z3,b({as:s,className:ne(h.root,i),ref:n,ownerState:f},c,{children:[u,o]}))})}),B3=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function If(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function rv(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function bC(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.indexOf(t.keys.join(""))===0}function xs(e,t,n,r,o,i){let s=!1,a=o(e,t,t?n:!1);for(;a;){if(a===e.firstChild){if(s)return!1;s=!0}const l=r?!1:a.disabled||a.getAttribute("aria-disabled")==="true";if(!a.hasAttribute("tabindex")||!bC(a,i)||l)a=o(e,a,n);else return a.focus(),!0}return!1}const U3=k.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:i=!1,children:s,className:a,disabledItemsFocusable:l=!1,disableListWrap:u=!1,onKeyDown:c,variant:d="selectedMenu"}=t,f=H(t,B3),h=k.useRef(null),p=k.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});xn(()=>{o&&h.current.focus()},[o]),k.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(y,{direction:x})=>{const S=!h.current.style.width;if(y.clientHeight{const x=h.current,S=y.key,A=kt(x).activeElement;if(S==="ArrowDown")y.preventDefault(),xs(x,A,u,l,If);else if(S==="ArrowUp")y.preventDefault(),xs(x,A,u,l,rv);else if(S==="Home")y.preventDefault(),xs(x,null,u,l,If);else if(S==="End")y.preventDefault(),xs(x,null,u,l,rv);else if(S.length===1){const P=p.current,M=S.toLowerCase(),O=performance.now();P.keys.length>0&&(O-P.lastTime>500?(P.keys=[],P.repeating=!0,P.previousKeyMatched=!0):P.repeating&&M!==P.keys[0]&&(P.repeating=!1)),P.lastTime=O,P.keys.push(M);const E=A&&!P.repeating&&bC(A,P);P.previousKeyMatched&&(E||xs(x,A,!1,l,If,P))?y.preventDefault():P.previousKeyMatched=!1}c&&c(y)},w=rt(h,n);let m=-1;k.Children.forEach(s,(y,x)=>{if(!k.isValidElement(y)){m===x&&(m+=1,m>=s.length&&(m=-1));return}y.props.disabled||(d==="selectedMenu"&&y.props.selected||m===-1)&&(m=x),m===x&&(y.props.disabled||y.props.muiSkipListHighlight||y.type.muiSkipListHighlight)&&(m+=1,m>=s.length&&(m=-1))});const v=k.Children.map(s,(y,x)=>{if(x===m){const S={};return i&&(S.autoFocus=!0),y.props.tabIndex===void 0&&d==="selectedMenu"&&(S.tabIndex=0),k.cloneElement(y,S)}return y});return C.jsx(D3,b({role:"menu",ref:w,className:a,onKeyDown:g,tabIndex:o?0:-1},f,{children:v}))});function W3(e){return de("MuiPopover",e)}fe("MuiPopover",["root","paper"]);const H3=["onEntering"],V3=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],G3=["slotProps"];function ov(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function iv(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function sv(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function $f(e){return typeof e=="function"?e():e}const K3=e=>{const{classes:t}=e;return ce({root:["root"],paper:["paper"]},W3,t)},X3=G(Z5,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),wC=G(Fo,{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}),Y3=k.forwardRef(function(t,n){var r,o,i;const s=ge({props:t,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:d="anchorEl",children:f,className:h,container:p,elevation:g=8,marginThreshold:w=16,open:m,PaperProps:v={},slots:y,slotProps:x,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:A=xC,transitionDuration:P="auto",TransitionProps:{onEntering:M}={},disableScrollLock:O=!1}=s,E=H(s.TransitionProps,H3),T=H(s,V3),_=(r=x==null?void 0:x.paper)!=null?r:v,$=k.useRef(),R=rt($,_.ref),L=b({},s,{anchorOrigin:u,anchorReference:d,elevation:g,marginThreshold:w,externalPaperSlotProps:_,transformOrigin:S,TransitionComponent:A,transitionDuration:P,TransitionProps:E}),N=K3(L),z=k.useCallback(()=>{if(d==="anchorPosition")return c;const ee=$f(l),le=(ee&&ee.nodeType===1?ee:kt($.current).body).getBoundingClientRect();return{top:le.top+ov(le,u.vertical),left:le.left+iv(le,u.horizontal)}},[l,u.horizontal,u.vertical,c,d]),I=k.useCallback(ee=>({vertical:ov(ee,S.vertical),horizontal:iv(ee,S.horizontal)}),[S.horizontal,S.vertical]),F=k.useCallback(ee=>{const J={width:ee.offsetWidth,height:ee.offsetHeight},le=I(J);if(d==="none")return{top:null,left:null,transformOrigin:sv(le)};const xe=z();let Re=xe.top-le.vertical,We=xe.left-le.horizontal;const ft=Re+J.height,Ke=We+J.width,Pe=Yr($f(l)),tn=Pe.innerHeight-w,st=Pe.innerWidth-w;if(w!==null&&Retn){const Me=ft-tn;Re-=Me,le.vertical+=Me}if(w!==null&&West){const Me=Ke-st;We-=Me,le.horizontal+=Me}return{top:`${Math.round(Re)}px`,left:`${Math.round(We)}px`,transformOrigin:sv(le)}},[l,d,z,I,w]),[D,K]=k.useState(m),X=k.useCallback(()=>{const ee=$.current;if(!ee)return;const J=F(ee);J.top!==null&&(ee.style.top=J.top),J.left!==null&&(ee.style.left=J.left),ee.style.transformOrigin=J.transformOrigin,K(!0)},[F]);k.useEffect(()=>(O&&window.addEventListener("scroll",X),()=>window.removeEventListener("scroll",X)),[l,O,X]);const re=(ee,J)=>{M&&M(ee,J),X()},Y=()=>{K(!1)};k.useEffect(()=>{m&&X()}),k.useImperativeHandle(a,()=>m?{updatePosition:()=>{X()}}:null,[m,X]),k.useEffect(()=>{if(!m)return;const ee=Bw(()=>{X()}),J=Yr(l);return J.addEventListener("resize",ee),()=>{ee.clear(),J.removeEventListener("resize",ee)}},[l,m,X]);let q=P;P==="auto"&&!A.muiSupportAuto&&(q=void 0);const te=p||(l?kt($f(l)).body:void 0),ae=(o=y==null?void 0:y.root)!=null?o:X3,he=(i=y==null?void 0:y.paper)!=null?i:wC,B=nt({elementType:he,externalSlotProps:b({},_,{style:D?_.style:b({},_.style,{opacity:0})}),additionalProps:{elevation:g,ref:R},ownerState:L,className:ne(N.paper,_==null?void 0:_.className)}),Q=nt({elementType:ae,externalSlotProps:(x==null?void 0:x.root)||{},externalForwardedProps:T,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:te,open:m},ownerState:L,className:ne(N.root,h)}),{slotProps:V}=Q,j=H(Q,G3);return C.jsx(ae,b({},j,!Hu(ae)&&{slotProps:V,disableScrollLock:O},{children:C.jsx(A,b({appear:!0,in:m,onEntering:re,onExited:Y,timeout:q},E,{children:C.jsx(he,b({},B,{children:f}))}))}))});function Q3(e){return de("MuiMenu",e)}fe("MuiMenu",["root","paper","list"]);const q3=["onEntering"],Z3=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],J3={vertical:"top",horizontal:"right"},eO={vertical:"top",horizontal:"left"},tO=e=>{const{classes:t}=e;return ce({root:["root"],paper:["paper"],list:["list"]},Q3,t)},nO=G(Y3,{shouldForwardProp:e=>Fn(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),rO=G(wC,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),oO=G(U3,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),iO=k.forwardRef(function(t,n){var r,o;const i=ge({props:t,name:"MuiMenu"}),{autoFocus:s=!0,children:a,className:l,disableAutoFocusItem:u=!1,MenuListProps:c={},onClose:d,open:f,PaperProps:h={},PopoverClasses:p,transitionDuration:g="auto",TransitionProps:{onEntering:w}={},variant:m="selectedMenu",slots:v={},slotProps:y={}}=i,x=H(i.TransitionProps,q3),S=H(i,Z3),A=NR(),P=b({},i,{autoFocus:s,disableAutoFocusItem:u,MenuListProps:c,onEntering:w,PaperProps:h,transitionDuration:g,TransitionProps:x,variant:m}),M=tO(P),O=s&&!u&&f,E=k.useRef(null),T=(I,F)=>{E.current&&E.current.adjustStyleForScrollbar(I,{direction:A?"rtl":"ltr"}),w&&w(I,F)},_=I=>{I.key==="Tab"&&(I.preventDefault(),d&&d(I,"tabKeyDown"))};let $=-1;k.Children.map(a,(I,F)=>{k.isValidElement(I)&&(I.props.disabled||(m==="selectedMenu"&&I.props.selected||$===-1)&&($=F))});const R=(r=v.paper)!=null?r:rO,L=(o=y.paper)!=null?o:h,N=nt({elementType:v.root,externalSlotProps:y.root,ownerState:P,className:[M.root,l]}),z=nt({elementType:R,externalSlotProps:L,ownerState:P,className:M.paper});return C.jsx(nO,b({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:A?"right":"left"},transformOrigin:A?J3:eO,slots:{paper:R,root:v.root},slotProps:{root:N,paper:z},open:f,ref:n,transitionDuration:g,TransitionProps:b({onEntering:T},x),ownerState:P},S,{classes:p,children:C.jsx(oO,b({onKeyDown:_,actions:E,autoFocus:s&&($===-1||u),autoFocusItem:O,variant:m},c,{className:ne(M.list,c.className),children:a}))}))});function sO(e){return de("MuiNativeSelect",e)}const ng=fe("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),aO=["className","disabled","error","IconComponent","inputRef","variant"],lO=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:s}=e,a={select:["select",n,r&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${se(n)}`,i&&"iconOpen",r&&"disabled"]};return ce(a,sO,t)},CC=({ownerState:e,theme:t})=>b({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":b({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${ng.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),uO=G("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Fn,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${ng.multiple}`]:t.multiple}]}})(CC),SC=({ownerState:e,theme:t})=>b({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${ng.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),cO=G("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${se(n.variant)}`],n.open&&t.iconOpen]}})(SC),dO=k.forwardRef(function(t,n){const{className:r,disabled:o,error:i,IconComponent:s,inputRef:a,variant:l="standard"}=t,u=H(t,aO),c=b({},t,{disabled:o,variant:l,error:i}),d=lO(c);return C.jsxs(k.Fragment,{children:[C.jsx(uO,b({ownerState:c,className:ne(d.select,r),disabled:o,ref:a||n},u)),t.multiple?null:C.jsx(cO,{as:s,ownerState:c,className:d.icon})]})});function kC(e){const{children:t,defer:n=!1,fallback:r=null}=e,[o,i]=k.useState(!1);return xn(()=>{n||i(!0)},[n]),k.useEffect(()=>{n&&i(!0)},[n]),C.jsx(k.Fragment,{children:o?t:r})}var av;const fO=["children","classes","className","label","notched"],pO=G("fieldset",{shouldForwardProp:Fn})({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%"}),hO=G("legend",{shouldForwardProp:Fn})(({ownerState:e,theme:t})=>b({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&b({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function mO(e){const{className:t,label:n,notched:r}=e,o=H(e,fO),i=n!=null&&n!=="",s=b({},e,{notched:r,withLabel:i});return C.jsx(pO,b({"aria-hidden":!0,className:t,ownerState:s},o,{children:C.jsx(hO,{ownerState:s,children:i?C.jsx("span",{children:n}):av||(av=C.jsx("span",{className:"notranslate",children:"​"}))})}))}const gO=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],yO=e=>{const{classes:t}=e,r=ce({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},R$,t);return b({},t,r)},vO=G(Td,{shouldForwardProp:e=>Fn(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Ed})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return b({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Mr.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Mr.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${Mr.focused} .${Mr.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Mr.error} .${Mr.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Mr.disabled} .${Mr.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&b({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),xO=G(mO,{name:"MuiOutlinedInput",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{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),bO=G(Id,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Rd})(({theme:e,ownerState:t})=>b({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"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),rg=k.forwardRef(function(t,n){var r,o,i,s,a;const l=ge({props:t,name:"MuiOutlinedInput"}),{components:u={},fullWidth:c=!1,inputComponent:d="input",label:f,multiline:h=!1,notched:p,slots:g={},type:w="text"}=l,m=H(l,gO),v=yO(l),y=ns(),x=ts({props:l,muiFormControl:y,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S=b({},l,{color:x.color||"primary",disabled:x.disabled,error:x.error,focused:x.focused,formControl:y,fullWidth:c,hiddenLabel:x.hiddenLabel,multiline:h,size:x.size,type:w}),A=(r=(o=g.root)!=null?o:u.Root)!=null?r:vO,P=(i=(s=g.input)!=null?s:u.Input)!=null?i:bO;return C.jsx(Jm,b({slots:{root:A,input:P},renderSuffix:M=>C.jsx(xO,{ownerState:S,className:v.notchedOutline,label:f!=null&&f!==""&&x.required?a||(a=C.jsxs(k.Fragment,{children:[f," ","*"]})):f,notched:typeof p<"u"?p:!!(M.startAdornment||M.filled||M.focused)}),fullWidth:c,inputComponent:d,multiline:h,ref:n,type:w},m,{classes:b({},v,{notchedOutline:null})}))});rg.muiName="Input";function wO(e){return de("MuiSelect",e)}const bs=fe("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var lv;const CO=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],SO=G("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${bs.select}`]:t.select},{[`&.${bs.select}`]:t[n.variant]},{[`&.${bs.error}`]:t.error},{[`&.${bs.multiple}`]:t.multiple}]}})(CC,{[`&.${bs.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),kO=G("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${se(n.variant)}`],n.open&&t.iconOpen]}})(SC),AO=G("input",{shouldForwardProp:e=>zw(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 uv(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function PO(e){return e==null||typeof e=="string"&&!e.trim()}const MO=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:s}=e,a={select:["select",n,r&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${se(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return ce(a,wO,t)},EO=k.forwardRef(function(t,n){var r;const{"aria-describedby":o,"aria-label":i,autoFocus:s,autoWidth:a,children:l,className:u,defaultOpen:c,defaultValue:d,disabled:f,displayEmpty:h,error:p=!1,IconComponent:g,inputRef:w,labelId:m,MenuProps:v={},multiple:y,name:x,onBlur:S,onChange:A,onClose:P,onFocus:M,onOpen:O,open:E,readOnly:T,renderValue:_,SelectDisplayProps:$={},tabIndex:R,value:L,variant:N="standard"}=t,z=H(t,CO),[I,F]=Jp({controlled:L,default:d,name:"Select"}),[D,K]=Jp({controlled:E,default:c,name:"Select"}),X=k.useRef(null),re=k.useRef(null),[Y,q]=k.useState(null),{current:te}=k.useRef(E!=null),[ae,he]=k.useState(),B=rt(n,w),Q=k.useCallback(oe=>{re.current=oe,oe&&q(oe)},[]),V=Y==null?void 0:Y.parentNode;k.useImperativeHandle(B,()=>({focus:()=>{re.current.focus()},node:X.current,value:I}),[I]),k.useEffect(()=>{c&&D&&Y&&!te&&(he(a?null:V.clientWidth),re.current.focus())},[Y,a]),k.useEffect(()=>{s&&re.current.focus()},[s]),k.useEffect(()=>{if(!m)return;const oe=kt(re.current).getElementById(m);if(oe){const Ie=()=>{getSelection().isCollapsed&&re.current.focus()};return oe.addEventListener("click",Ie),()=>{oe.removeEventListener("click",Ie)}}},[m]);const j=(oe,Ie)=>{oe?O&&O(Ie):P&&P(Ie),te||(he(a?null:V.clientWidth),K(oe))},ee=oe=>{oe.button===0&&(oe.preventDefault(),re.current.focus(),j(!0,oe))},J=oe=>{j(!1,oe)},le=k.Children.toArray(l),xe=oe=>{const Ie=le.find(at=>at.props.value===oe.target.value);Ie!==void 0&&(F(Ie.props.value),A&&A(oe,Ie))},Re=oe=>Ie=>{let at;if(Ie.currentTarget.hasAttribute("tabindex")){if(y){at=Array.isArray(I)?I.slice():[];const Bo=I.indexOf(oe.props.value);Bo===-1?at.push(oe.props.value):at.splice(Bo,1)}else at=oe.props.value;if(oe.props.onClick&&oe.props.onClick(Ie),I!==at&&(F(at),A)){const Bo=Ie.nativeEvent||Ie,Xg=new Bo.constructor(Bo.type,Bo);Object.defineProperty(Xg,"target",{writable:!0,value:{value:at,name:x}}),A(Xg,oe)}y||j(!1,Ie)}},We=oe=>{T||[" ","ArrowUp","ArrowDown","Enter"].indexOf(oe.key)!==-1&&(oe.preventDefault(),j(!0,oe))},ft=Y!==null&&D,Ke=oe=>{!ft&&S&&(Object.defineProperty(oe,"target",{writable:!0,value:{value:I,name:x}}),S(oe))};delete z["aria-invalid"];let Pe,tn;const st=[];let Me=!1;(Yu({value:I})||h)&&(_?Pe=_(I):Me=!0);const zt=le.map(oe=>{if(!k.isValidElement(oe))return null;let Ie;if(y){if(!Array.isArray(I))throw new Error($o(2));Ie=I.some(at=>uv(at,oe.props.value)),Ie&&Me&&st.push(oe.props.children)}else Ie=uv(I,oe.props.value),Ie&&Me&&(tn=oe.props.children);return k.cloneElement(oe,{"aria-selected":Ie?"true":"false",onClick:Re(oe),onKeyUp:at=>{at.key===" "&&at.preventDefault(),oe.props.onKeyUp&&oe.props.onKeyUp(at)},role:"option",selected:Ie,value:void 0,"data-value":oe.props.value})});Me&&(y?st.length===0?Pe=null:Pe=st.reduce((oe,Ie,at)=>(oe.push(Ie),at{const{classes:t}=e;return t},og={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Fn(e)&&e!=="variant",slot:"Root"},$O=G(tg,og)(""),OO=G(rg,og)(""),_O=G(eg,og)(""),AC=k.forwardRef(function(t,n){const r=ge({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:i,classes:s={},className:a,defaultOpen:l=!1,displayEmpty:u=!1,IconComponent:c=I$,id:d,input:f,inputProps:h,label:p,labelId:g,MenuProps:w,multiple:m=!1,native:v=!1,onClose:y,onOpen:x,open:S,renderValue:A,SelectDisplayProps:P,variant:M="outlined"}=r,O=H(r,RO),E=v?dO:EO,T=ns(),_=ts({props:r,muiFormControl:T,states:["variant","error"]}),$=_.variant||M,R=b({},r,{variant:$,classes:s}),L=IO(R),N=H(L,TO),z=f||{standard:C.jsx($O,{ownerState:R}),outlined:C.jsx(OO,{label:p,ownerState:R}),filled:C.jsx(_O,{ownerState:R})}[$],I=rt(n,z.ref);return C.jsx(k.Fragment,{children:k.cloneElement(z,b({inputComponent:E,inputProps:b({children:i,error:_.error,IconComponent:c,variant:$,type:void 0,multiple:m},v?{id:d}:{autoWidth:o,defaultOpen:l,displayEmpty:u,labelId:g,MenuProps:w,onClose:y,onOpen:x,open:S,renderValue:A,SelectDisplayProps:b({id:d},P)},h,{classes:h?Xt(N,h.classes):N},f?f.props.inputProps:{})},(m&&v||u)&&$==="outlined"?{notched:!0}:{},{ref:I,className:ne(z.props.className,a,L.root)},!f&&{variant:$},O))})});AC.muiName="Select";function LO(e){return de("MuiTextField",e)}fe("MuiTextField",["root"]);const NO=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],jO={standard:tg,filled:eg,outlined:rg},FO=e=>{const{classes:t}=e;return ce({root:["root"]},LO,t)},zO=G(f3,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),DO=k.forwardRef(function(t,n){const r=ge({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:i=!1,children:s,className:a,color:l="primary",defaultValue:u,disabled:c=!1,error:d=!1,FormHelperTextProps:f,fullWidth:h=!1,helperText:p,id:g,InputLabelProps:w,inputProps:m,InputProps:v,inputRef:y,label:x,maxRows:S,minRows:A,multiline:P=!1,name:M,onBlur:O,onChange:E,onFocus:T,placeholder:_,required:$=!1,rows:R,select:L=!1,SelectProps:N,type:z,value:I,variant:F="outlined"}=r,D=H(r,NO),K=b({},r,{autoFocus:i,color:l,disabled:c,error:d,fullWidth:h,multiline:P,required:$,select:L,variant:F}),X=FO(K),re={};F==="outlined"&&(w&&typeof w.shrink<"u"&&(re.notched=w.shrink),re.label=x),L&&((!N||!N.native)&&(re.id=void 0),re["aria-describedby"]=void 0);const Y=Ka(g),q=p&&Y?`${Y}-helper-text`:void 0,te=x&&Y?`${Y}-label`:void 0,ae=jO[F],he=C.jsx(ae,b({"aria-describedby":q,autoComplete:o,autoFocus:i,defaultValue:u,fullWidth:h,multiline:P,name:M,rows:R,maxRows:S,minRows:A,type:z,value:I,id:Y,inputRef:y,onBlur:O,onChange:E,onFocus:T,placeholder:_,inputProps:m},re,v));return C.jsxs(zO,b({className:ne(X.root,a),disabled:c,error:d,fullWidth:h,ref:n,required:$,color:l,variant:F,ownerState:K},D,{children:[x!=null&&x!==""&&C.jsx(_3,b({htmlFor:Y,id:te},w,{children:x})),L?C.jsx(AC,b({"aria-describedby":q,id:Y,labelId:te,value:I,input:he},N,{children:s})):he,p&&C.jsx(y3,b({id:q},f,{children:p}))]}))});function BO(e){return de("MuiLoadingButton",e)}const ir=fe("MuiLoadingButton",["root","loading","loadingIndicator","loadingIndicatorCenter","loadingIndicatorStart","loadingIndicatorEnd","endIconLoadingEnd","startIconLoadingStart"]),UO=["children","disabled","id","loading","loadingIndicator","loadingPosition","variant"],WO=e=>{const{loading:t,loadingPosition:n,classes:r}=e,o={root:["root",t&&"loading"],startIcon:[t&&`startIconLoading${se(n)}`],endIcon:[t&&`endIconLoading${se(n)}`],loadingIndicator:["loadingIndicator",t&&`loadingIndicator${se(n)}`]},i=ce(o,BO,r);return b({},r,i)},HO=e=>e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"&&e!=="classes",VO=G(t5,{shouldForwardProp:e=>HO(e)||e==="classes",name:"MuiLoadingButton",slot:"Root",overridesResolver:(e,t)=>[t.root,t.startIconLoadingStart&&{[`& .${ir.startIconLoadingStart}`]:t.startIconLoadingStart},t.endIconLoadingEnd&&{[`& .${ir.endIconLoadingEnd}`]:t.endIconLoadingEnd}]})(({ownerState:e,theme:t})=>b({[`& .${ir.startIconLoadingStart}, & .${ir.endIconLoadingEnd}`]:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0}},e.loadingPosition==="center"&&{transition:t.transitions.create(["background-color","box-shadow","border-color"],{duration:t.transitions.duration.short}),[`&.${ir.loading}`]:{color:"transparent"}},e.loadingPosition==="start"&&e.fullWidth&&{[`& .${ir.startIconLoadingStart}, & .${ir.endIconLoadingEnd}`]:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0,marginRight:-8}},e.loadingPosition==="end"&&e.fullWidth&&{[`& .${ir.startIconLoadingStart}, & .${ir.endIconLoadingEnd}`]:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0,marginLeft:-8}})),GO=G("span",{name:"MuiLoadingButton",slot:"LoadingIndicator",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.loadingIndicator,t[`loadingIndicator${se(n.loadingPosition)}`]]}})(({theme:e,ownerState:t})=>b({position:"absolute",visibility:"visible",display:"flex"},t.loadingPosition==="start"&&(t.variant==="outlined"||t.variant==="contained")&&{left:t.size==="small"?10:14},t.loadingPosition==="start"&&t.variant==="text"&&{left:6},t.loadingPosition==="center"&&{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled},t.loadingPosition==="end"&&(t.variant==="outlined"||t.variant==="contained")&&{right:t.size==="small"?10:14},t.loadingPosition==="end"&&t.variant==="text"&&{right:6},t.loadingPosition==="start"&&t.fullWidth&&{position:"relative",left:-10},t.loadingPosition==="end"&&t.fullWidth&&{position:"relative",right:-10})),KO=k.forwardRef(function(t,n){const r=k.useContext(pC),o=Oi(r,t),i=ge({props:o,name:"MuiLoadingButton"}),{children:s,disabled:a=!1,id:l,loading:u=!1,loadingIndicator:c,loadingPosition:d="center",variant:f="text"}=i,h=H(i,UO),p=Ka(l),g=c??C.jsx(yC,{"aria-labelledby":p,color:"inherit",size:16}),w=b({},i,{disabled:a,loading:u,loadingIndicator:g,loadingPosition:d,variant:f}),m=WO(w),v=u?C.jsx(GO,{className:m.loadingIndicator,ownerState:w,children:g}):null;return C.jsxs(VO,b({disabled:a||u,id:p,ref:n},h,{variant:f,classes:m,ownerState:w,children:[w.loadingPosition==="end"?s:v,w.loadingPosition==="end"?v:s]}))});let Qu="",PC=0,MC="",EC="",RC="",yt={},vt={},Un={},Wn={},wi=0,ig=0,sg=0,ag=0,lg=0,ug=0,cg=0,Dt=[],Bt=[],Ut=[],vo=[],qu={},Zu={};const XO=async e=>{try{await QO(e)}catch(o){return alert(o),!0}YO(),await qO(e);const t=(await ZO(e)).archives;for(let o=0;o{wi=0,yt={},vt={},Un={},Wn={},wi=0,ig=0,sg=0,ag=0,lg=0,ug=0,cg=0,Dt=[],Bt=[],Ut=[],vo=[],Zu={},qu={}},QO=async e=>{const t=await fetch("https://api.chess.com/pub/player/"+e).then(n=>n.json());if(t.code===0)throw new Error("Invalid Username");Qu=t.username,PC=t.followers,EC=t.league,RC=t.url,MC=(await fetch(t.country).then(r=>r.json())).name},qO=async e=>{const t=await fetch("https://api.chess.com/pub/player/"+e+"/stats").then(n=>n.json());try{Dt[0]=t.chess_rapid.record.win}catch{Dt[0]=0}try{Dt[1]=t.chess_rapid.record.loss}catch{Dt[1]=0}try{Dt[2]=t.chess_rapid.record.draw}catch{Dt[2]=0}try{Dt[3]=t.chess_rapid.last.rating}catch{Dt[3]=0}try{Dt[4]=t.chess_rapid.best.rating}catch{Dt[4]=0}try{Ut[0]=t.chess_blitz.record.win}catch{Ut[0]=0}try{Ut[1]=t.chess_blitz.record.loss}catch{Ut[1]=0}try{Ut[2]=t.chess_blitz.record.draw}catch{Ut[2]=0}try{Ut[3]=t.chess_blitz.last.rating}catch{Ut[3]=0}try{Ut[4]=t.chess_blitz.best.rating}catch{Ut[4]=0}try{Bt[0]=t.chess_bullet.record.win}catch{Bt[0]=0}try{Bt[1]=t.chess_bullet.record.loss}catch{Bt[1]=0}try{Bt[2]=t.chess_bullet.record.draw}catch{Bt[2]=0}try{Bt[3]=t.chess_bullet.last.rating}catch{Bt[3]=0}try{Bt[4]=t.chess_bullet.best.rating}catch{Bt[4]=0}try{vo[0]=t.puzzle_rush.best.total_attempts}catch{vo[0]=0}try{vo[1]=t.puzzle_rush.best.score}catch{vo[1]=0}},ZO=async e=>{if(e!=="")return await fetch("https://api.chess.com/pub/player/"+e+"/games/archives").then(t=>t.json())},JO=async(e,t)=>{const n=(await fetch(e).then(r=>r.json())).games;for(let r=0;r{let r=e[4].split(" ")[1].split("]").join("").trim().toLowerCase();r=r.split('"').join("").trim();const o=e[6].split(" ")[1].split("]").join("").trim();let i=e[10].split(" ")[1].split("]").join("").trim();if(i=i.split("https://www.chess.com/openings/").join(""),i=i.split('"').join(""),e[17].includes("Start")&&e[19].includes("End")){let a=e[17].split(" ")[1].split("]").join("").trim(),l=e[19].split(" ")[1].split("]").join("").trim();a=a.split('"').join(""),l=l.split('"').join(""),isNaN(cv(a,l))?wi=wi:wi+=cv(a,l)}let s;e[16].includes("Termination")?(s=e[16].split(" ")[4].split("]").join("").trim(),s=s.split('"').join("")):s="unknown",r===t.toLowerCase()?Rl(o,"1-0")?(ig++,yt[i]?yt[i][0]++:yt[i]=[1,0,0],Un[s]?Un[s][0]++:Un[s]=[1,0,0]):Rl(o,"1/2-1/2")?(ag++,yt[i]?yt[i][1]++:yt[i]=[0,1,0],Un[s]?Un[s][1]++:Un[s]=[0,1,0]):(sg++,yt[i]?yt[i][2]++:yt[i]=[0,0,1],Un[s]?Un[s][2]++:Un[s]=[0,0,1]):Rl(o,"0-1")?(lg++,vt[i]?vt[i][0]++:vt[i]=[1,0,0],Wn[s]?Wn[s][0]++:Wn[s]=[1,0,0]):Rl(o,"1/2-1/2")?(cg++,vt[i]?vt[i][1]++:vt[i]=[0,1,0],Wn[s]?Wn[s][1]++:Wn[s]=[0,1,0]):(ug++,vt[i]?vt[i][2]++:vt[i]=[0,0,1],Wn[s]?Wn[s][2]++:Wn[s]=[0,0,1])};function Rl(e,t){let n;return n=e.split('"').join("").trim().toLowerCase(),n==t}function cv(e,t){const n=e.split(":"),r=t.split(":"),o=parseInt(n[0])*3600+parseInt(n[1])*60+parseInt(n[2]);return parseInt(r[0])*3600+parseInt(r[1])*60+parseInt(r[2])-o}function t_(e){const t=Math.floor(e/86400);e%=24*3600;const n=Math.floor(e/3600);e%=3600;const r=Math.floor(e/60);return e%=60,{days:t,hours:n,minutes:r,seconds:e}}const Tl=e=>{let t="",n=0;for(const r in e)e[r][0]>n&&(n=e[r][0]+e[r][1]+e[r][2],t=r);return t},Od="DEFAULT_X_AXIS_KEY",dg="DEFAULT_Y_AXIS_KEY",n_={top:50,bottom:50,left:50,right:50},r_=(e,t,n)=>{const r=b({},n_,n);return k.useMemo(()=>({left:r.left,top:r.top,right:r.right,bottom:r.bottom,width:Math.max(0,e-r.left-r.right),height:Math.max(0,t-r.top-r.bottom)}),[e,t,r.top,r.bottom,r.left,r.right])},Qa=k.createContext({top:0,left:0,bottom:0,right:0,height:300,width:400,chartId:"",isPointInside:()=>!1}),TC=k.createContext({isInitialized:!1,data:{current:null}});function o_(e){const{width:t,height:n,margin:r,svgRef:o,children:i}=e,s=r_(t,n,r),a=Ka(),l=k.useCallback(({x:d,y:f},h)=>h&&h.closest("[data-drawing-container]")?!0:d>=s.left&&d<=s.left+s.width&&f>=s.top&&f<=s.top+s.height,[s]),u=k.useMemo(()=>b({chartId:a??""},s,{isPointInside:l}),[a,s,l]),c=k.useMemo(()=>({isInitialized:!0,data:o}),[o]);return C.jsx(TC.Provider,{value:c,children:C.jsx(Qa.Provider,{value:u,children:i})})}const i_=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];function s_(e,t,n=i_){return e.type==="pie"?b({},e,{data:e.data.map((r,o)=>b({color:n[o%n.length]},r))}):b({color:n[t%n.length]},e)}const a_=({series:e,colors:t,seriesFormatters:n,dataset:r})=>{const o={};e.forEach((s,a)=>{var c;const{id:l=`auto-generated-id-${a}`,type:u}=s;if(o[u]===void 0&&(o[u]={series:{},seriesOrder:[]}),((c=o[u])==null?void 0:c.series[l])!==void 0)throw new Error(`MUI X: series' id "${l}" is not unique.`);o[u].series[l]=b({id:l},s_(s,a,t)),o[u].seriesOrder.push(l)});const i={};return Object.keys(n).forEach(s=>{var l;const a=o[s];a!==void 0&&(i[s]=((l=n[s])==null?void 0:l.call(n,a,r))??o[s])}),i},l_=["#02B2AF","#2E96FF","#B800D8","#60009B","#2731C8","#03008D"],u_=["#02B2AF","#72CCFF","#DA00FF","#9001CB","#2E96FF","#3B48E0"],c_=e=>e==="dark"?u_:l_,IC=k.createContext({isInitialized:!1,data:{}}),qa=k.createContext({isInitialized:!1,data:{colorProcessors:{},seriesFormatters:{},xExtremumGetters:{},yExtremumGetters:{}}}),$C=e=>{const{axis:t}=e,n=Math.min(...t.data??[]),r=Math.max(...t.data??[]);return[n,r]},OC=e=>{const{series:t,axis:n,isDefaultAxis:r}=e;return Object.keys(t).filter(o=>{const i=t[o].yAxisId??t[o].yAxisKey;return i===n.id||r&&i===void 0}).reduce((o,i)=>{var l;const[s,a]=((l=t[i].stackedData)==null?void 0:l.reduce((u,c)=>[Math.min(...c,u[0]),Math.max(...c,u[1])],[1/0,-1/0]))??[1/0,-1/0];return[Math.min(s,o[0]),Math.max(a,o[1])]},[1/0,-1/0])},d_=e=>Object.keys(e.series).some(n=>e.series[n].layout==="horizontal")?OC(e):$C(e),f_=e=>Object.keys(e.series).some(n=>e.series[n].layout==="horizontal")?$C(e):OC(e);function qe(e){return function(){return e}}const dv=Math.abs,mt=Math.atan2,oo=Math.cos,p_=Math.max,Of=Math.min,Bn=Math.sin,fi=Math.sqrt,Mt=1e-12,ba=Math.PI,Ju=ba/2,fu=2*ba;function h_(e){return e>1?0:e<-1?ba:Math.acos(e)}function fv(e){return e>=1?Ju:e<=-1?-Ju:Math.asin(e)}const uh=Math.PI,ch=2*uh,co=1e-6,m_=ch-co;function _C(e){this._+=e[0];for(let t=1,n=e.length;t=0))throw new Error(`invalid digits: ${e}`);if(t>15)return _C;const n=10**t;return function(r){this._+=r[0];for(let o=1,i=r.length;oco)if(!(Math.abs(d*l-u*c)>co)||!i)this._append`L${this._x1=t},${this._y1=n}`;else{let h=r-s,p=o-a,g=l*l+u*u,w=h*h+p*p,m=Math.sqrt(g),v=Math.sqrt(f),y=i*Math.tan((uh-Math.acos((g+f-w)/(2*m*v)))/2),x=y/v,S=y/m;Math.abs(x-1)>co&&this._append`L${t+x*c},${n+x*d}`,this._append`A${i},${i},0,0,${+(d*h>c*p)},${this._x1=t+S*l},${this._y1=n+S*u}`}}arc(t,n,r,o,i,s){if(t=+t,n=+n,r=+r,s=!!s,r<0)throw new Error(`negative radius: ${r}`);let a=r*Math.cos(o),l=r*Math.sin(o),u=t+a,c=n+l,d=1^s,f=s?o-i:i-o;this._x1===null?this._append`M${u},${c}`:(Math.abs(this._x1-u)>co||Math.abs(this._y1-c)>co)&&this._append`L${u},${c}`,r&&(f<0&&(f=f%ch+ch),f>m_?this._append`A${r},${r},0,1,${d},${t-a},${n-l}A${r},${r},0,1,${d},${this._x1=u},${this._y1=c}`:f>co&&this._append`A${r},${r},0,${+(f>=uh)},${d},${this._x1=t+r*Math.cos(i)},${this._y1=n+r*Math.sin(i)}`)}rect(t,n,r,o){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+o}h${-r}Z`}toString(){return this._}}function v_(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new y_(t)}function x_(e){return e.innerRadius}function b_(e){return e.outerRadius}function w_(e){return e.startAngle}function C_(e){return e.endAngle}function S_(e){return e&&e.padAngle}function k_(e,t,n,r,o,i,s,a){var l=n-e,u=r-t,c=s-o,d=a-i,f=d*l-c*u;if(!(f*fR*R+L*L&&(M=E,O=T),{cx:M,cy:O,x01:-c,y01:-d,x11:M*(o/S-1),y11:O*(o/S-1)}}function LC(){var e=x_,t=b_,n=qe(0),r=null,o=w_,i=C_,s=S_,a=null,l=v_(u);function u(){var c,d,f=+e.apply(this,arguments),h=+t.apply(this,arguments),p=o.apply(this,arguments)-Ju,g=i.apply(this,arguments)-Ju,w=dv(g-p),m=g>p;if(a||(a=c=l()),hMt))a.moveTo(0,0);else if(w>fu-Mt)a.moveTo(h*oo(p),h*Bn(p)),a.arc(0,0,h,p,g,!m),f>Mt&&(a.moveTo(f*oo(g),f*Bn(g)),a.arc(0,0,f,g,p,m));else{var v=p,y=g,x=p,S=g,A=w,P=w,M=s.apply(this,arguments)/2,O=M>Mt&&(r?+r.apply(this,arguments):fi(f*f+h*h)),E=Of(dv(h-f)/2,+n.apply(this,arguments)),T=E,_=E,$,R;if(O>Mt){var L=fv(O/f*Bn(M)),N=fv(O/h*Bn(M));(A-=L*2)>Mt?(L*=m?1:-1,x+=L,S-=L):(A=0,x=S=(p+g)/2),(P-=N*2)>Mt?(N*=m?1:-1,v+=N,y-=N):(P=0,v=y=(p+g)/2)}var z=h*oo(v),I=h*Bn(v),F=f*oo(S),D=f*Bn(S);if(E>Mt){var K=h*oo(y),X=h*Bn(y),re=f*oo(x),Y=f*Bn(x),q;if(wMt?_>Mt?($=Il(re,Y,z,I,h,_,m),R=Il(K,X,F,D,h,_,m),a.moveTo($.cx+$.x01,$.cy+$.y01),_Mt)||!(A>Mt)?a.lineTo(F,D):T>Mt?($=Il(F,D,K,X,f,-T,m),R=Il(z,I,re,Y,f,-T,m),a.lineTo($.cx+$.x01,$.cy+$.y01),Te?1:t>=e?0:NaN}function P_(e){return e}function M_(){var e=P_,t=A_,n=null,r=qe(0),o=qe(fu),i=qe(0);function s(a){var l,u=(a=NC(a)).length,c,d,f=0,h=new Array(u),p=new Array(u),g=+r.apply(this,arguments),w=Math.min(fu,Math.max(-fu,o.apply(this,arguments)-g)),m,v=Math.min(Math.abs(w)/u,i.apply(this,arguments)),y=v*(w<0?-1:1),x;for(l=0;l0&&(f+=x);for(t!=null?h.sort(function(S,A){return t(p[S],p[A])}):n!=null&&h.sort(function(S,A){return n(a[S],a[A])}),l=0,d=f?(w-u*y)/f:0;l0?x*d:0)+y,p[c]={data:a[c],index:l,value:x,startAngle:g,endAngle:m,padAngle:v};return p}return s.value=function(a){return arguments.length?(e=typeof a=="function"?a:qe(+a),s):e},s.sortValues=function(a){return arguments.length?(t=a,n=null,s):t},s.sort=function(a){return arguments.length?(n=a,t=null,s):n},s.startAngle=function(a){return arguments.length?(r=typeof a=="function"?a:qe(+a),s):r},s.endAngle=function(a){return arguments.length?(o=typeof a=="function"?a:qe(+a),s):o},s.padAngle=function(a){return arguments.length?(i=typeof a=="function"?a:qe(+a),s):i},s}function zi(e,t){if((s=e.length)>1)for(var n=1,r,o,i=e[t[0]],s,a=i.length;n=0;)n[t]=t;return n}function E_(e,t){return e[t]}function R_(e){const t=[];return t.key=e,t}function jC(){var e=qe([]),t=Di,n=zi,r=E_;function o(i){var s=Array.from(e.apply(this,arguments),R_),a,l=s.length,u=-1,c;for(const d of i)for(a=0,++u;a0){for(var n,r,o=0,i=e[0].length,s;o0)for(var n,r=0,o,i,s,a,l,u=e[t[0]].length;r0?(o[0]=s,o[1]=s+=i):i<0?(o[1]=a,o[0]=a+=i):(o[0]=0,o[1]=i)}function $_(e,t){if((o=e.length)>0){for(var n=0,r=e[t[0]],o,i=r.length;n0)||!((i=(o=e[t[0]]).length)>0))){for(var n=0,r=1,o,i,s;ri&&(i=o,n=t);return n}function zC(e){var t=e.map(DC);return Di(e).sort(function(n,r){return t[n]-t[r]})}function DC(e){for(var t=0,n=-1,r=e.length,o;++n{const{series:t,seriesOrder:n,defaultStrategy:r}=e,o=[],i={};return n.forEach(s=>{const{stack:a,stackOrder:l,stackOffset:u}=t[s];a===void 0?o.push({ids:[s],stackingOrder:_f.none,stackingOffset:Lf.none}):i[a]===void 0?(i[a]=o.length,o.push({ids:[s],stackingOrder:_f[l??(r==null?void 0:r.stackOrder)??"none"],stackingOffset:Lf[u??(r==null?void 0:r.stackOffset)??"diverging"]})):(o[i[a]].ids.push(s),l!==void 0&&(o[i[a]].stackingOrder=_f[l]),u!==void 0&&(o[i[a]].stackingOffset=Lf[u]))}),o};function fg(e,t){const n={};return Object.keys(e).forEach(r=>{n[r]=b({},e[r],{valueFormatter:e[r].valueFormatter??t})}),n}const F_=(e,t)=>{const{seriesOrder:n,series:r}=e,o=BC(e),i=t??[];n.forEach(a=>{const l=r[a].data;if(l!==void 0)l.forEach((u,c)=>{i.length<=c?i.push({[a]:u}):i[c][a]=u});else if(t===void 0)throw new Error([`MUI X: bar series with id='${a}' has no data.`,"Either provide a data property to the series or use the dataset prop."].join(` +`))});const s={};return o.forEach(a=>{const{ids:l,stackingOffset:u,stackingOrder:c}=a,d=jC().keys(l.map(f=>{const h=r[f].dataKey;return r[f].data===void 0&&h!==void 0?h:f})).value((f,h)=>f[h]??0).order(c).offset(u)(i);l.forEach((f,h)=>{const p=r[f].dataKey;s[f]=b({layout:"vertical"},r[f],{data:p?t.map(g=>{const w=g[p];return typeof w!="number"?0:w}):r[f].data,stackedData:d[h].map(([g,w])=>[g,w])})})}),{seriesOrder:n,stackingGroups:o,series:fg(s,a=>a==null?"":a.toLocaleString())}},UC=(e,t,n)=>{const r=e.layout==="vertical",o=r?t==null?void 0:t.colorScale:n==null?void 0:n.colorScale,i=r?n==null?void 0:n.colorScale:t==null?void 0:t.colorScale,s=r?t==null?void 0:t.data:n==null?void 0:n.data;return i?a=>{const l=e.data[a],u=l===null?e.color:i(l);return u===null?e.color:u}:o&&s?a=>{const l=s[a],u=l===null?e.color:o(l);return u===null?e.color:u}:()=>e.color},z_={seriesType:"bar",seriesFormatter:F_,colorProcessor:UC,xExtremumGetter:d_,yExtremumGetter:f_},ec=(e,t)=>[Math.min(e[0],t[0]),Math.max(e[1],t[1])],D_=e=>{const{series:t,axis:n,isDefaultAxis:r}=e;return Object.keys(t).filter(o=>{const i=t[o].xAxisId??t[o].xAxisKey;return i===n.id||i===void 0&&r}).reduce((o,i)=>{const s=t[i].data.reduce((a,{x:l})=>ec(a,[l,l]),[1/0,-1/0]);return ec(o,s)},[1/0,-1/0])},B_=e=>{const{series:t,axis:n,isDefaultAxis:r}=e;return Object.keys(t).filter(o=>{const i=t[o].yAxisId??t[o].yAxisKey;return i===n.id||i===void 0&&r}).reduce((o,i)=>{const s=t[i].data.reduce((a,{y:l})=>ec(a,[l,l]),[1/0,-1/0]);return ec(o,s)},[1/0,-1/0])},U_=({series:e,seriesOrder:t})=>({series:fg(e,n=>`(${n.x}, ${n.y})`),seriesOrder:t}),W_=(e,t,n,r)=>{const o=r==null?void 0:r.colorScale,i=n==null?void 0:n.colorScale,s=t==null?void 0:t.colorScale;return o?a=>{var c,d;if(((c=r==null?void 0:r.data)==null?void 0:c[a])!==void 0){const f=o((d=r==null?void 0:r.data)==null?void 0:d[a]);if(f!==null)return f}const l=e.data[a],u=l===null?e.color:o(l.z);return u===null?e.color:u}:i?a=>{const l=e.data[a],u=l===null?e.color:i(l.y);return u===null?e.color:u}:s?a=>{const l=e.data[a],u=l===null?e.color:s(l.x);return u===null?e.color:u}:()=>e.color},H_={seriesType:"scatter",seriesFormatter:U_,colorProcessor:W_,xExtremumGetter:D_,yExtremumGetter:B_},V_=e=>{const{axis:t}=e,n=Math.min(...t.data??[]),r=Math.max(...t.data??[]);return[n,r]};function G_(e,t){return t.reduce((n,r)=>{const[o,i]=e(r);return[Math.min(o,i,n[0]),Math.max(o,i,n[1])]},[1/0,-1/0])}const K_=e=>{const{series:t,axis:n,isDefaultAxis:r}=e;return Object.keys(t).filter(o=>{const i=t[o].yAxisId??t[o].yAxisKey;return i===n.id||r&&i===void 0}).reduce((o,i)=>{const{area:s,stackedData:a}=t[i],u=s!==void 0&&n.scaleType!=="log"&&typeof t[i].baseline!="string"?h=>h:h=>[h[1],h[1]],c=G_(u,a),[d,f]=c;return[Math.min(d,o[0]),Math.max(f,o[1])]},[1/0,-1/0])},X_=(e,t)=>{const{seriesOrder:n,series:r}=e,o=BC(b({},e,{defaultStrategy:{stackOffset:"none"}})),i=t??[];n.forEach(a=>{const l=r[a].data;l!==void 0&&l.forEach((u,c)=>{i.length<=c?i.push({[a]:u}):i[c][a]=u})});const s={};return o.forEach(a=>{const{ids:l,stackingOrder:u,stackingOffset:c}=a,d=jC().keys(l.map(f=>{const h=r[f].dataKey;return r[f].data===void 0&&h!==void 0?h:f})).value((f,h)=>f[h]??0).order(u).offset(c)(i);l.forEach((f,h)=>{const p=r[f].dataKey;s[f]=b({},r[f],{data:p?t.map(g=>{const w=g[p];return typeof w!="number"?null:w}):r[f].data,stackedData:d[h].map(([g,w])=>[g,w])})})}),{seriesOrder:n,stackingGroups:o,series:fg(s,a=>a==null?"":a.toLocaleString())}},Y_=(e,t,n)=>{const r=n==null?void 0:n.colorScale,o=t==null?void 0:t.colorScale;return r?i=>{const s=e.data[i],a=s===null?e.color:r(s);return a===null?e.color:a}:o?i=>{var l;const s=(l=t.data)==null?void 0:l[i],a=s===null?e.color:o(s);return a===null?e.color:a}:()=>e.color},Q_={seriesType:"line",colorProcessor:Y_,seriesFormatter:X_,xExtremumGetter:V_,yExtremumGetter:K_};function Nn(e,t){return typeof e=="function"?e(t):e}const q_=(e="none")=>{if(typeof e=="function")return e;switch(e){case"none":return null;case"desc":return(t,n)=>n-t;case"asc":return(t,n)=>t-n;default:return null}},Z_=e=>{const{seriesOrder:t,series:n}=e,r={};return t.forEach(o=>{const i=M_().startAngle(2*Math.PI*(n[o].startAngle??0)/360).endAngle(2*Math.PI*(n[o].endAngle??360)/360).padAngle(2*Math.PI*(n[o].paddingAngle??0)/360).sortValues(q_(n[o].sortingValues??"none"))(n[o].data.map(s=>s.value));r[o]=b({valueFormatter:s=>s.value.toLocaleString()},n[o],{data:n[o].data.map((s,a)=>b({},s,{id:s.id??`auto-generated-pie-id-${o}-${a}`},i[a])).map((s,a)=>{var l,u;return b({},s,{formattedValue:((u=(l=n[o]).valueFormatter)==null?void 0:u.call(l,b({},s,{label:Nn(s.label,"arc")}),{dataIndex:a}))??s.value.toLocaleString()})})})}),{seriesOrder:t,series:r}},J_=e=>t=>e.data[t].color,e4={seriesType:"pie",colorProcessor:J_,seriesFormatter:Z_},t4=[z_,H_,Q_,e4];function n4(e){const t=e??t4,n={},r={},o={},i={};for(let s=0;s({isInitialized:!0,data:n4(n)}),[n]);return C.jsx(qa.Provider,{value:r,children:t})}function WC(e){const{isInitialized:t,data:n}=k.useContext(qa);if(!t)throw new Error(["MUI X: Could not find the plugin context.","It looks like you rendered your component outside of a ChartsContainer parent component."].join(` +`));return n.colorProcessors}function o4(e){const{isInitialized:t,data:n}=k.useContext(qa);if(!t)throw new Error(["MUI X: Could not find the plugin context.","It looks like you rendered your component outside of a ChartsContainer parent component."].join(` +`));return n.seriesFormatters}function i4(e){const{isInitialized:t,data:n}=k.useContext(qa);if(!t)throw new Error(["MUI X: Could not find the plugin context.","It looks like you rendered your component outside of a ChartsContainer parent component."].join(` +`));return n.xExtremumGetters}function s4(e){const{isInitialized:t,data:n}=k.useContext(qa);if(!t)throw new Error(["MUI X: Could not find the plugin context.","It looks like you rendered your component outside of a ChartsContainer parent component."].join(` +`));return n.yExtremumGetters}function a4(e){const{series:t,dataset:n,colors:r=c_,children:o}=e,i=o4(),s=eo(),a=k.useMemo(()=>({isInitialized:!0,data:a_({series:t,colors:typeof r=="function"?r(s.palette.mode):r,seriesFormatters:i,dataset:n})}),[t,r,s.palette.mode,i,n]);return C.jsx(IC.Provider,{value:a,children:o})}const rs=k.createContext({item:null,axis:{x:null,y:null},useVoronoiInteraction:!1,dispatch:()=>null}),l4=(e,t)=>{switch(t.type){case"enterItem":return b({},e,{item:t.data});case"exitChart":return e.item===null&&e.axis.x===null&&e.axis.y===null?e:b({},e,{axis:{x:null,y:null},item:null});case"updateVoronoiUsage":return b({},e,{useVoronoiInteraction:t.useVoronoiInteraction});case"leaveItem":return e.item===null||Object.keys(t.data).some(n=>t.data[n]!==e.item[n])?e:b({},e,{item:null});case"updateAxis":return t.data.x===e.axis.x&&t.data.y===e.axis.y?e:b({},e,{axis:t.data});default:return e}};function u4(e){const{children:t}=e,[n,r]=k.useReducer(l4,{item:null,axis:{x:null,y:null},useVoronoiInteraction:!1}),o=k.useMemo(()=>b({},n,{dispatch:r}),[n]);return C.jsx(rs.Provider,{value:o,children:t})}function pu(e,t){return e==null||t==null?NaN:et?1:e>=t?0:NaN}function c4(e,t){return e==null||t==null?NaN:te?1:t>=e?0:NaN}function pg(e){let t,n,r;e.length!==2?(t=pu,n=(a,l)=>pu(e(a),l),r=(a,l)=>e(a)-l):(t=e===pu||e===c4?e:d4,n=e,r=e);function o(a,l,u=0,c=a.length){if(u>>1;n(a[d],l)<0?u=d+1:c=d}while(u>>1;n(a[d],l)<=0?u=d+1:c=d}while(uu&&r(a[d-1],l)>-r(a[d],l)?d-1:d}return{left:o,center:s,right:i}}function d4(){return 0}function f4(e){return e===null?NaN:+e}const p4=pg(pu),HC=p4.right;pg(f4).center;class pv extends Map{constructor(t,n=g4){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,o]of t)this.set(r,o)}get(t){return super.get(hv(this,t))}has(t){return super.has(hv(this,t))}set(t,n){return super.set(h4(this,t),n)}delete(t){return super.delete(m4(this,t))}}function hv({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function h4({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function m4({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function g4(e){return e!==null&&typeof e=="object"?e.valueOf():e}const y4=Math.sqrt(50),v4=Math.sqrt(10),x4=Math.sqrt(2);function tc(e,t,n){const r=(t-e)/Math.max(0,n),o=Math.floor(Math.log10(r)),i=r/Math.pow(10,o),s=i>=y4?10:i>=v4?5:i>=x4?2:1;let a,l,u;return o<0?(u=Math.pow(10,-o)/s,a=Math.round(e*u),l=Math.round(t*u),a/ut&&--l,u=-u):(u=Math.pow(10,o)*s,a=Math.round(e/u),l=Math.round(t/u),a*ut&&--l),l0))return[];if(e===t)return[e];const r=t=o))return[];const a=i-o+1,l=new Array(a);if(r)if(s<0)for(let u=0;u>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?$l(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?$l(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=k4.exec(e))?new $t(t[1],t[2],t[3],1):(t=A4.exec(e))?new $t(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=P4.exec(e))?$l(t[1],t[2],t[3],t[4]):(t=M4.exec(e))?$l(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=E4.exec(e))?Cv(t[1],t[2]/100,t[3]/100,1):(t=R4.exec(e))?Cv(t[1],t[2]/100,t[3]/100,t[4]):gv.hasOwnProperty(e)?xv(gv[e]):e==="transparent"?new $t(NaN,NaN,NaN,0):null}function xv(e){return new $t(e>>16&255,e>>8&255,e&255,1)}function $l(e,t,n,r){return r<=0&&(e=t=n=NaN),new $t(e,t,n,r)}function $4(e){return e instanceof Za||(e=Bi(e)),e?(e=e.rgb(),new $t(e.r,e.g,e.b,e.opacity)):new $t}function hh(e,t,n,r){return arguments.length===1?$4(e):new $t(e,t,n,r??1)}function $t(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}mg($t,hh,GC(Za,{brighter(e){return e=e==null?rc:Math.pow(rc,e),new $t(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?wa:Math.pow(wa,e),new $t(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new $t(Po(this.r),Po(this.g),Po(this.b),oc(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:bv,formatHex:bv,formatHex8:O4,formatRgb:wv,toString:wv}));function bv(){return`#${xo(this.r)}${xo(this.g)}${xo(this.b)}`}function O4(){return`#${xo(this.r)}${xo(this.g)}${xo(this.b)}${xo((isNaN(this.opacity)?1:this.opacity)*255)}`}function wv(){const e=oc(this.opacity);return`${e===1?"rgb(":"rgba("}${Po(this.r)}, ${Po(this.g)}, ${Po(this.b)}${e===1?")":`, ${e})`}`}function oc(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Po(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function xo(e){return e=Po(e),(e<16?"0":"")+e.toString(16)}function Cv(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new In(e,t,n,r)}function KC(e){if(e instanceof In)return new In(e.h,e.s,e.l,e.opacity);if(e instanceof Za||(e=Bi(e)),!e)return new In;if(e instanceof In)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),s=NaN,a=i-o,l=(i+o)/2;return a?(t===i?s=(n-r)/a+(n0&&l<1?0:s,new In(s,a,l,e.opacity)}function _4(e,t,n,r){return arguments.length===1?KC(e):new In(e,t,n,r??1)}function In(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}mg(In,_4,GC(Za,{brighter(e){return e=e==null?rc:Math.pow(rc,e),new In(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?wa:Math.pow(wa,e),new In(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new $t(Nf(e>=240?e-240:e+120,o,r),Nf(e,o,r),Nf(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new In(Sv(this.h),Ol(this.s),Ol(this.l),oc(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=oc(this.opacity);return`${e===1?"hsl(":"hsla("}${Sv(this.h)}, ${Ol(this.s)*100}%, ${Ol(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Sv(e){return e=(e||0)%360,e<0?e+360:e}function Ol(e){return Math.max(0,Math.min(1,e||0))}function Nf(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const gg=e=>()=>e;function L4(e,t){return function(n){return e+n*t}}function N4(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function j4(e){return(e=+e)==1?XC:function(t,n){return n-t?N4(t,n,e):gg(isNaN(t)?n:t)}}function XC(e,t){var n=t-e;return n?L4(e,n):gg(isNaN(e)?t:e)}const kv=function e(t){var n=j4(t);function r(o,i){var s=n((o=hh(o)).r,(i=hh(i)).r),a=n(o.g,i.g),l=n(o.b,i.b),u=XC(o.opacity,i.opacity);return function(c){return o.r=s(c),o.g=a(c),o.b=l(c),o.opacity=u(c),o+""}}return r.gamma=e,r}(1);function F4(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),o;return function(i){for(o=0;on&&(i=t.slice(n,i),a[s]?a[s]+=i:a[++s]=i),(r=r[0])===(o=o[0])?a[s]?a[s]+=o:a[++s]=o:(a[++s]=null,l.push({i:s,x:Sa(r,o)})),n=jf.lastIndex;return nt&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function X4(e,t,n){var r=e[0],o=e[1],i=t[0],s=t[1];return o2?Y4:X4,l=u=null,d}function d(f){return f==null||isNaN(f=+f)?i:(l||(l=a(e.map(r),t,n)))(r(s(f)))}return d.invert=function(f){return s(o((u||(u=a(t,e.map(r),Sa)))(f)))},d.domain=function(f){return arguments.length?(e=Array.from(f,G4),c()):e.slice()},d.range=function(f){return arguments.length?(t=Array.from(f),c()):t.slice()},d.rangeRound=function(f){return t=Array.from(f),n=QC,c()},d.clamp=function(f){return arguments.length?(s=f?!0:fn,c()):s!==fn},d.interpolate=function(f){return arguments.length?(n=f,c()):n},d.unknown=function(f){return arguments.length?(i=f,d):i},function(f,h){return r=f,o=h,c()}}function qC(){return yg()(fn,fn)}function Q4(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function ic(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function Ui(e){return e=ic(Math.abs(e)),e?e[1]:NaN}function q4(e,t){return function(n,r){for(var o=n.length,i=[],s=0,a=e[0],l=0;o>0&&a>0&&(l+a+1>r&&(a=Math.max(1,r-l)),i.push(n.substring(o-=a,o+a)),!((l+=a+1)>r));)a=e[s=(s+1)%e.length];return i.reverse().join(t)}}function Z4(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var J4=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function ka(e){if(!(t=J4.exec(e)))throw new Error("invalid format: "+e);var t;return new vg({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}ka.prototype=vg.prototype;function vg(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}vg.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function eL(e){e:for(var t=e.length,n=1,r=-1,o;n0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(o+1):e}var ZC;function tL(e,t){var n=ic(e,t);if(!n)return e+"";var r=n[0],o=n[1],i=o-(ZC=Math.max(-8,Math.min(8,Math.floor(o/3)))*3)+1,s=r.length;return i===s?r:i>s?r+new Array(i-s+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+ic(e,Math.max(0,t+i-1))[0]}function Pv(e,t){var n=ic(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")}const Mv={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:Q4,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>Pv(e*100,t),r:Pv,s:tL,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Ev(e){return e}var Rv=Array.prototype.map,Tv=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function nL(e){var t=e.grouping===void 0||e.thousands===void 0?Ev:q4(Rv.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",o=e.decimal===void 0?".":e.decimal+"",i=e.numerals===void 0?Ev:Z4(Rv.call(e.numerals,String)),s=e.percent===void 0?"%":e.percent+"",a=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function u(d){d=ka(d);var f=d.fill,h=d.align,p=d.sign,g=d.symbol,w=d.zero,m=d.width,v=d.comma,y=d.precision,x=d.trim,S=d.type;S==="n"?(v=!0,S="g"):Mv[S]||(y===void 0&&(y=12),x=!0,S="g"),(w||f==="0"&&h==="=")&&(w=!0,f="0",h="=");var A=g==="$"?n:g==="#"&&/[boxX]/.test(S)?"0"+S.toLowerCase():"",P=g==="$"?r:/[%p]/.test(S)?s:"",M=Mv[S],O=/[defgprs%]/.test(S);y=y===void 0?6:/[gprs]/.test(S)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y));function E(T){var _=A,$=P,R,L,N;if(S==="c")$=M(T)+$,T="";else{T=+T;var z=T<0||1/T<0;if(T=isNaN(T)?l:M(Math.abs(T),y),x&&(T=eL(T)),z&&+T==0&&p!=="+"&&(z=!1),_=(z?p==="("?p:a:p==="-"||p==="("?"":p)+_,$=(S==="s"?Tv[8+ZC/3]:"")+$+(z&&p==="("?")":""),O){for(R=-1,L=T.length;++RN||N>57){$=(N===46?o+T.slice(R+1):T.slice(R))+$,T=T.slice(0,R);break}}}v&&!w&&(T=t(T,1/0));var I=_.length+T.length+$.length,F=I>1)+_+T+$+F.slice(I);break;default:T=F+_+T+$;break}return i(T)}return E.toString=function(){return d+""},E}function c(d,f){var h=u((d=ka(d),d.type="f",d)),p=Math.max(-8,Math.min(8,Math.floor(Ui(f)/3)))*3,g=Math.pow(10,-p),w=Tv[8+p/3];return function(m){return h(g*m)+w}}return{format:u,formatPrefix:c}}var _l,xg,JC;rL({thousands:",",grouping:[3],currency:["$",""]});function rL(e){return _l=nL(e),xg=_l.format,JC=_l.formatPrefix,_l}function oL(e){return Math.max(0,-Ui(Math.abs(e)))}function iL(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Ui(t)/3)))*3-Ui(Math.abs(e)))}function sL(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Ui(t)-Ui(e))+1}function aL(e,t,n,r){var o=ph(e,t,n),i;switch(r=ka(r??",f"),r.type){case"s":{var s=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(i=iL(o,s))&&(r.precision=i),JC(r,s)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(i=sL(o,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=i-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(i=oL(o))&&(r.precision=i-(r.type==="%")*2);break}}return xg(r)}function bg(e){var t=e.domain;return e.ticks=function(n){var r=t();return dh(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var o=t();return aL(o[0],o[o.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),o=0,i=r.length-1,s=r[o],a=r[i],l,u,c=10;for(a0;){if(u=fh(s,a,n),u===l)return r[o]=s,r[i]=a,t(r);if(u>0)s=Math.floor(s/u)*u,a=Math.ceil(a/u)*u;else if(u<0)s=Math.ceil(s*u)/u,a=Math.floor(a*u)/u;else break;l=u}return e},e}function eS(){var e=qC();return e.copy=function(){return Ld(e,eS())},no.apply(e,arguments),bg(e)}function tS(e,t){e=e.slice();var n=0,r=e.length-1,o=e[n],i=e[r],s;return iMath.pow(e,t)}function fL(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function Ov(e){return(t,n)=>-e(-t,n)}function pL(e){const t=e(Iv,$v),n=t.domain;let r=10,o,i;function s(){return o=fL(r),i=dL(r),n()[0]<0?(o=Ov(o),i=Ov(i),e(lL,uL)):e(Iv,$v),t}return t.base=function(a){return arguments.length?(r=+a,s()):r},t.domain=function(a){return arguments.length?(n(a),s()):n()},t.ticks=a=>{const l=n();let u=l[0],c=l[l.length-1];const d=c0){for(;f<=h;++f)for(p=1;pc)break;m.push(g)}}else for(;f<=h;++f)for(p=r-1;p>=1;--p)if(g=f>0?p/i(-f):p*i(f),!(gc)break;m.push(g)}m.length*2{if(a==null&&(a=10),l==null&&(l=r===10?"s":","),typeof l!="function"&&(!(r%1)&&(l=ka(l)).precision==null&&(l.trim=!0),l=xg(l)),a===1/0)return l;const u=Math.max(1,r*a/t.ticks().length);return c=>{let d=c/i(Math.round(o(c)));return d*rn(tS(n(),{floor:a=>i(Math.floor(o(a))),ceil:a=>i(Math.ceil(o(a)))})),t}function nS(){const e=pL(yg()).domain([1,10]);return e.copy=()=>Ld(e,nS()).base(e.base()),no.apply(e,arguments),e}function _v(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function hL(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function mL(e){return e<0?-e*e:e*e}function gL(e){var t=e(fn,fn),n=1;function r(){return n===1?e(fn,fn):n===.5?e(hL,mL):e(_v(n),_v(1/n))}return t.exponent=function(o){return arguments.length?(n=+o,r()):n},bg(t)}function wg(){var e=gL(yg());return e.copy=function(){return Ld(e,wg()).exponent(e.exponent())},no.apply(e,arguments),e}function yL(){return wg.apply(null,arguments).exponent(.5)}function rS(){var e=[.5],t=[0,1],n,r=1;function o(i){return i!=null&&i<=i?t[HC(e,i,0,r)]:n}return o.domain=function(i){return arguments.length?(e=Array.from(i),r=Math.min(e.length,t.length-1),o):e.slice()},o.range=function(i){return arguments.length?(t=Array.from(i),r=Math.min(e.length,t.length-1),o):t.slice()},o.invertExtent=function(i){var s=t.indexOf(i);return[e[s-1],e[s]]},o.unknown=function(i){return arguments.length?(n=i,o):n},o.copy=function(){return rS().domain(e).range(t).unknown(n)},no.apply(o,arguments)}const Ff=new Date,zf=new Date;function Je(e,t,n,r){function o(i){return e(i=arguments.length===0?new Date:new Date(+i)),i}return o.floor=i=>(e(i=new Date(+i)),i),o.ceil=i=>(e(i=new Date(i-1)),t(i,1),e(i),i),o.round=i=>{const s=o(i),a=o.ceil(i);return i-s(t(i=new Date(+i),s==null?1:Math.floor(s)),i),o.range=(i,s,a)=>{const l=[];if(i=o.ceil(i),a=a==null?1:Math.floor(a),!(i0))return l;let u;do l.push(u=new Date(+i)),t(i,a),e(i);while(uJe(s=>{if(s>=s)for(;e(s),!i(s);)s.setTime(s-1)},(s,a)=>{if(s>=s)if(a<0)for(;++a<=0;)for(;t(s,-1),!i(s););else for(;--a>=0;)for(;t(s,1),!i(s););}),n&&(o.count=(i,s)=>(Ff.setTime(+i),zf.setTime(+s),e(Ff),e(zf),Math.floor(n(Ff,zf))),o.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?o.filter(r?s=>r(s)%i===0:s=>o.count(0,s)%i===0):o)),o}const sc=Je(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);sc.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Je(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):sc);sc.range;const fr=1e3,pn=fr*60,pr=pn*60,wr=pr*24,Cg=wr*7,Lv=wr*30,Df=wr*365,bo=Je(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*fr)},(e,t)=>(t-e)/fr,e=>e.getUTCSeconds());bo.range;const Sg=Je(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*fr)},(e,t)=>{e.setTime(+e+t*pn)},(e,t)=>(t-e)/pn,e=>e.getMinutes());Sg.range;const kg=Je(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*pn)},(e,t)=>(t-e)/pn,e=>e.getUTCMinutes());kg.range;const Ag=Je(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*fr-e.getMinutes()*pn)},(e,t)=>{e.setTime(+e+t*pr)},(e,t)=>(t-e)/pr,e=>e.getHours());Ag.range;const Pg=Je(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*pr)},(e,t)=>(t-e)/pr,e=>e.getUTCHours());Pg.range;const Ja=Je(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*pn)/wr,e=>e.getDate()-1);Ja.range;const Nd=Je(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/wr,e=>e.getUTCDate()-1);Nd.range;const oS=Je(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/wr,e=>Math.floor(e/wr));oS.range;function zo(e){return Je(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*pn)/Cg)}const jd=zo(0),ac=zo(1),vL=zo(2),xL=zo(3),Wi=zo(4),bL=zo(5),wL=zo(6);jd.range;ac.range;vL.range;xL.range;Wi.range;bL.range;wL.range;function Do(e){return Je(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/Cg)}const Fd=Do(0),lc=Do(1),CL=Do(2),SL=Do(3),Hi=Do(4),kL=Do(5),AL=Do(6);Fd.range;lc.range;CL.range;SL.range;Hi.range;kL.range;AL.range;const Mg=Je(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());Mg.range;const Eg=Je(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());Eg.range;const Cr=Je(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());Cr.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Je(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});Cr.range;const Sr=Je(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Sr.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Je(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});Sr.range;function iS(e,t,n,r,o,i){const s=[[bo,1,fr],[bo,5,5*fr],[bo,15,15*fr],[bo,30,30*fr],[i,1,pn],[i,5,5*pn],[i,15,15*pn],[i,30,30*pn],[o,1,pr],[o,3,3*pr],[o,6,6*pr],[o,12,12*pr],[r,1,wr],[r,2,2*wr],[n,1,Cg],[t,1,Lv],[t,3,3*Lv],[e,1,Df]];function a(u,c,d){const f=cw).right(s,f);if(h===s.length)return e.every(ph(u/Df,c/Df,d));if(h===0)return sc.every(Math.max(ph(u,c,d),1));const[p,g]=s[f/s[h-1][2]53)return null;"w"in j||(j.w=1),"Z"in j?(J=Uf(ws(j.y,0,1)),le=J.getUTCDay(),J=le>4||le===0?lc.ceil(J):lc(J),J=Nd.offset(J,(j.V-1)*7),j.y=J.getUTCFullYear(),j.m=J.getUTCMonth(),j.d=J.getUTCDate()+(j.w+6)%7):(J=Bf(ws(j.y,0,1)),le=J.getDay(),J=le>4||le===0?ac.ceil(J):ac(J),J=Ja.offset(J,(j.V-1)*7),j.y=J.getFullYear(),j.m=J.getMonth(),j.d=J.getDate()+(j.w+6)%7)}else("W"in j||"U"in j)&&("w"in j||(j.w="u"in j?j.u%7:"W"in j?1:0),le="Z"in j?Uf(ws(j.y,0,1)).getUTCDay():Bf(ws(j.y,0,1)).getDay(),j.m=0,j.d="W"in j?(j.w+6)%7+j.W*7-(le+5)%7:j.w+j.U*7-(le+6)%7);return"Z"in j?(j.H+=j.Z/100|0,j.M+=j.Z%100,Uf(j)):Bf(j)}}function M(B,Q,V,j){for(var ee=0,J=Q.length,le=V.length,xe,Re;ee=le)return-1;if(xe=Q.charCodeAt(ee++),xe===37){if(xe=Q.charAt(ee++),Re=S[xe in Nv?Q.charAt(ee++):xe],!Re||(j=Re(B,V,j))<0)return-1}else if(xe!=V.charCodeAt(j++))return-1}return j}function O(B,Q,V){var j=u.exec(Q.slice(V));return j?(B.p=c.get(j[0].toLowerCase()),V+j[0].length):-1}function E(B,Q,V){var j=h.exec(Q.slice(V));return j?(B.w=p.get(j[0].toLowerCase()),V+j[0].length):-1}function T(B,Q,V){var j=d.exec(Q.slice(V));return j?(B.w=f.get(j[0].toLowerCase()),V+j[0].length):-1}function _(B,Q,V){var j=m.exec(Q.slice(V));return j?(B.m=v.get(j[0].toLowerCase()),V+j[0].length):-1}function $(B,Q,V){var j=g.exec(Q.slice(V));return j?(B.m=w.get(j[0].toLowerCase()),V+j[0].length):-1}function R(B,Q,V){return M(B,t,Q,V)}function L(B,Q,V){return M(B,n,Q,V)}function N(B,Q,V){return M(B,r,Q,V)}function z(B){return s[B.getDay()]}function I(B){return i[B.getDay()]}function F(B){return l[B.getMonth()]}function D(B){return a[B.getMonth()]}function K(B){return o[+(B.getHours()>=12)]}function X(B){return 1+~~(B.getMonth()/3)}function re(B){return s[B.getUTCDay()]}function Y(B){return i[B.getUTCDay()]}function q(B){return l[B.getUTCMonth()]}function te(B){return a[B.getUTCMonth()]}function ae(B){return o[+(B.getUTCHours()>=12)]}function he(B){return 1+~~(B.getUTCMonth()/3)}return{format:function(B){var Q=A(B+="",y);return Q.toString=function(){return B},Q},parse:function(B){var Q=P(B+="",!1);return Q.toString=function(){return B},Q},utcFormat:function(B){var Q=A(B+="",x);return Q.toString=function(){return B},Q},utcParse:function(B){var Q=P(B+="",!0);return Q.toString=function(){return B},Q}}}var Nv={"-":"",_:" ",0:"0"},it=/^\s*\d+/,IL=/^%/,$L=/[\\^$*+?|[\]().{}]/g;function ve(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",i=o.length;return r+(i[t.toLowerCase(),n]))}function _L(e,t,n){var r=it.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function LL(e,t,n){var r=it.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function NL(e,t,n){var r=it.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function jL(e,t,n){var r=it.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function FL(e,t,n){var r=it.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function jv(e,t,n){var r=it.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function Fv(e,t,n){var r=it.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function zL(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function DL(e,t,n){var r=it.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function BL(e,t,n){var r=it.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function zv(e,t,n){var r=it.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function UL(e,t,n){var r=it.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Dv(e,t,n){var r=it.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function WL(e,t,n){var r=it.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function HL(e,t,n){var r=it.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function VL(e,t,n){var r=it.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function GL(e,t,n){var r=it.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function KL(e,t,n){var r=IL.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function XL(e,t,n){var r=it.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function YL(e,t,n){var r=it.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function Bv(e,t){return ve(e.getDate(),t,2)}function QL(e,t){return ve(e.getHours(),t,2)}function qL(e,t){return ve(e.getHours()%12||12,t,2)}function ZL(e,t){return ve(1+Ja.count(Cr(e),e),t,3)}function sS(e,t){return ve(e.getMilliseconds(),t,3)}function JL(e,t){return sS(e,t)+"000"}function eN(e,t){return ve(e.getMonth()+1,t,2)}function tN(e,t){return ve(e.getMinutes(),t,2)}function nN(e,t){return ve(e.getSeconds(),t,2)}function rN(e){var t=e.getDay();return t===0?7:t}function oN(e,t){return ve(jd.count(Cr(e)-1,e),t,2)}function aS(e){var t=e.getDay();return t>=4||t===0?Wi(e):Wi.ceil(e)}function iN(e,t){return e=aS(e),ve(Wi.count(Cr(e),e)+(Cr(e).getDay()===4),t,2)}function sN(e){return e.getDay()}function aN(e,t){return ve(ac.count(Cr(e)-1,e),t,2)}function lN(e,t){return ve(e.getFullYear()%100,t,2)}function uN(e,t){return e=aS(e),ve(e.getFullYear()%100,t,2)}function cN(e,t){return ve(e.getFullYear()%1e4,t,4)}function dN(e,t){var n=e.getDay();return e=n>=4||n===0?Wi(e):Wi.ceil(e),ve(e.getFullYear()%1e4,t,4)}function fN(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+ve(t/60|0,"0",2)+ve(t%60,"0",2)}function Uv(e,t){return ve(e.getUTCDate(),t,2)}function pN(e,t){return ve(e.getUTCHours(),t,2)}function hN(e,t){return ve(e.getUTCHours()%12||12,t,2)}function mN(e,t){return ve(1+Nd.count(Sr(e),e),t,3)}function lS(e,t){return ve(e.getUTCMilliseconds(),t,3)}function gN(e,t){return lS(e,t)+"000"}function yN(e,t){return ve(e.getUTCMonth()+1,t,2)}function vN(e,t){return ve(e.getUTCMinutes(),t,2)}function xN(e,t){return ve(e.getUTCSeconds(),t,2)}function bN(e){var t=e.getUTCDay();return t===0?7:t}function wN(e,t){return ve(Fd.count(Sr(e)-1,e),t,2)}function uS(e){var t=e.getUTCDay();return t>=4||t===0?Hi(e):Hi.ceil(e)}function CN(e,t){return e=uS(e),ve(Hi.count(Sr(e),e)+(Sr(e).getUTCDay()===4),t,2)}function SN(e){return e.getUTCDay()}function kN(e,t){return ve(lc.count(Sr(e)-1,e),t,2)}function AN(e,t){return ve(e.getUTCFullYear()%100,t,2)}function PN(e,t){return e=uS(e),ve(e.getUTCFullYear()%100,t,2)}function MN(e,t){return ve(e.getUTCFullYear()%1e4,t,4)}function EN(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Hi(e):Hi.ceil(e),ve(e.getUTCFullYear()%1e4,t,4)}function RN(){return"+0000"}function Wv(){return"%"}function Hv(e){return+e}function Vv(e){return Math.floor(+e/1e3)}var Yo,cS,dS;TN({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function TN(e){return Yo=TL(e),cS=Yo.format,Yo.parse,dS=Yo.utcFormat,Yo.utcParse,Yo}function IN(e){return new Date(e)}function $N(e){return e instanceof Date?+e:+new Date(+e)}function Rg(e,t,n,r,o,i,s,a,l,u){var c=qC(),d=c.invert,f=c.domain,h=u(".%L"),p=u(":%S"),g=u("%I:%M"),w=u("%I %p"),m=u("%a %d"),v=u("%b %d"),y=u("%B"),x=u("%Y");function S(A){return(l(A)n),e.colors).unknown(e.unknownColor??null)}function hu(e){return e.type==="ordinal"?uc(e):NN(e)}function _o(e){return e.bandwidth!==void 0}function Tg(e){return typeof e=="number"&&!Number.isFinite(e)}function jN(e){const{tickMaxStep:t,tickMinStep:n,tickNumber:r,range:o,domain:i}=e,s=n===void 0?999:Math.floor(Math.abs(i[1]-i[0])/n),a=t===void 0?2:Math.ceil(Math.abs(i[1]-i[0])/t),l=r??Math.floor(Math.abs(o[1]-o[0])/50);return Math.min(s,Math.max(a,l))}const Wf={start:0,extremities:0,end:1,middle:.5};function cc(e){const{scale:t,tickNumber:n,valueFormatter:r,tickInterval:o,tickPlacement:i="extremities",tickLabelPlacement:s="middle"}=e;return k.useMemo(()=>{if(_o(t)){const u=t.domain();return t.bandwidth()>0?[...(typeof o=="function"&&u.filter(o)||typeof o=="object"&&o||u).map(f=>({value:f,formattedValue:(r==null?void 0:r(f,{location:"tick"}))??`${f}`,offset:t(f)-(t.step()-t.bandwidth())/2+Wf[i]*t.step(),labelOffset:s==="tick"?0:t.step()*(Wf[s]-Wf[i])})),...i==="extremities"?[{formattedValue:void 0,offset:t.range()[1],labelOffset:0}]:[]]:(typeof o=="function"&&u.filter(o)||typeof o=="object"&&o||u).map(d=>({value:d,formattedValue:(r==null?void 0:r(d,{location:"tick"}))??`${d}`,offset:t(d),labelOffset:0}))}return t.domain().some(Tg)?[]:(typeof o=="object"?o:t.ticks(n)).map(u=>({value:u,formattedValue:(r==null?void 0:r(u,{location:"tick"}))??t.tickFormat(n)(u),offset:t(u),labelOffset:0}))},[t,o,n,r,i,s])}function FN(e,t,n){switch(e){case"log":return nS(t,n);case"pow":return wg(t,n);case"sqrt":return yL(t,n);case"time":return fS(t,n);case"utc":return ON(t,n);default:return eS(t,n)}}const zN=(e,t,n,r,o,i)=>{var c;const s=r[t],a=((c=i[t])==null?void 0:c.series)??{},[l,u]=(s==null?void 0:s({series:a,axis:n,isDefaultAxis:o}))??[1/0,-1/0];return[Math.min(l,e[0]),Math.max(u,e[1])]},DN=(e,t,n,r)=>Object.keys(t).reduce((i,s)=>zN(i,s,e,t,n,r),[1/0,-1/0]),BN=(e,t,n)=>(e==null?void 0:e.map(r=>{const o=r.dataKey;if(o===void 0||r.data!==void 0)return r;if(t===void 0)throw Error(`MUI X: ${n}-axis uses \`dataKey\` but no \`dataset\` is provided.`);return b({},r,{data:t.map(i=>i[o])})}))??[],UN=(e,t,n)=>{const r=t==="x"?[e.left,e.left+e.width]:[e.top+e.height,e.top];return n?r.reverse():r},Hf=(e,t)=>{const n=e[1]-e[0],r=t[1]-t[0],o=e[0]-t[0]*n/r,i=e[1]+(100-t[1])*n/r;return[o,i]},Gv=e=>(e==null?void 0:e[0])instanceof Date;function Kv(e,t){const n=fS(e.data,t);return(r,{location:o})=>o==="tick"?n.tickFormat(e.tickNumber)(r):`${r.toLocaleString()}`}const WN=.2,HN=.1;function Xv({drawingArea:e,formattedSeries:t,axis:n,extremumGetters:r,dataset:o,axisDirection:i,zoomData:s}){const a=BN(n,o,i),l={};return a.forEach((u,c)=>{const d=c===0,[f,h]=DN(u,r,d,t),p=s==null?void 0:s.find(({axisId:E})=>E===u.id),g=p?[p.start,p.end]:[0,100],w=UN(e,i,u.reverse);if(yh(u)){const E=u.categoryGapRatio??WN,T=u.barGapRatio??HN,_=i==="x"?w:[w[1],w[0]],$=Hf(_,g);if(l[u.id]=b({categoryGapRatio:E,barGapRatio:T},u,{scale:hg(u.data,$).paddingInner(E).paddingOuter(E/2),tickNumber:u.data.length,colorScale:u.colorMap&&(u.colorMap.type==="ordinal"?uc(b({values:u.data},u.colorMap)):hu(u.colorMap))}),Gv(u.data)){const R=Kv(u,_);l[u.id].valueFormatter=u.valueFormatter??R}}if(hS(u)){const E=i==="x"?w:[...w].reverse(),T=Hf(E,g);if(l[u.id]=b({},u,{scale:C4(u.data,T),tickNumber:u.data.length,colorScale:u.colorMap&&(u.colorMap.type==="ordinal"?uc(b({values:u.data},u.colorMap)):hu(u.colorMap))}),Gv(u.data)){const _=Kv(u,E);l[u.id].valueFormatter=u.valueFormatter??_}}if(u.scaleType==="band"||u.scaleType==="point")return;const m=u.scaleType??"linear",v=[u.min??f,u.max??h],y=jN(b({},u,{range:w,domain:v})),x=y/((g[1]-g[0])/100),S=Hf(w,g),A=FN(m,v,S).nice(y),[P,M]=A.domain(),O=[u.min??P,u.max??M];l[u.id]=b({},u,{scaleType:m,scale:A.domain(O),tickNumber:x,colorScale:u.colorMap&&hu(u.colorMap)})}),{axis:l,axisIds:a.map(({id:u})=>u)}}function rr(){const{left:e,top:t,width:n,height:r,bottom:o,right:i,isPointInside:s}=k.useContext(Qa);return k.useMemo(()=>({left:e,top:t,width:n,height:r,bottom:o,right:i,isPointInside:s}),[r,e,t,n,o,i,s])}function Ar(){const{isInitialized:e,data:t}=k.useContext(IC);if(!e)throw new Error(["MUI X: Could not find the series ref context.","It looks like you rendered your component outside of a ChartsContainer parent component."].join(` +`));return t}function VN(){const e=Ar();return k.useMemo(()=>e.pie,[e.pie])}function GN(){const e=Ar();return k.useMemo(()=>e.bar,[e.bar])}const mS=k.createContext({isInitialized:!1,data:{xAxis:{},yAxis:{},xAxisIds:[],yAxisIds:[]}});function KN(e){const{xAxis:t,yAxis:n,dataset:r,children:o}=e,i=Ar(),s=rr(),a=i4(),l=s4(),u=k.useMemo(()=>Xv({drawingArea:s,formattedSeries:i,axis:t,extremumGetters:a,dataset:r,axisDirection:"x"}),[s,i,t,a,r]),c=k.useMemo(()=>Xv({drawingArea:s,formattedSeries:i,axis:n,extremumGetters:l,dataset:r,axisDirection:"y"}),[s,i,n,l,r]),d=k.useMemo(()=>({isInitialized:!0,data:{xAxis:u.axis,yAxis:c.axis,xAxisIds:u.axisIds,yAxisIds:c.axisIds}}),[u,c]);return C.jsx(mS.Provider,{value:d,children:o})}const zn=()=>{const{data:e}=k.useContext(mS);return e};function XN(e,t){const n=e.createSVGPoint();return n.x=t.clientX,n.y=t.clientY,n.matrixTransform(e.getScreenCTM().inverse())}function Ig(){const{isInitialized:e,data:t}=k.useContext(TC);if(!e)throw new Error(["MUI X: Could not find the svg ref context.","It looks like you rendered your component outside of a ChartsContainer parent component."].join(` +`));return t}function Qo(e){return e instanceof Date?e.getTime():e}const YN=e=>{const t=Ig(),n=rr(),{xAxis:r,yAxis:o,xAxisIds:i,yAxisIds:s}=zn(),{dispatch:a}=k.useContext(rs),l=i[0],u=s[0],c=k.useRef({isInChart:!1,x:-1,y:-1});k.useEffect(()=>{const d=t.current;if(d===null||e)return()=>{};function f(w,m){const{scale:v,data:y,reverse:x}=w;if(!_o(v)){const A=v.invert(m);if(y===void 0)return{value:A};const P=Qo(A),M=y==null?void 0:y.findIndex((O,E)=>{const T=Qo(O);return T>P&&(E===0||Math.abs(P-T)<=Math.abs(P-Qo(y[E-1])))||T<=P&&(E===y.length-1||Math.abs(Qo(A)-T)=0?y[M]:A,index:M}}const S=v.bandwidth()===0?Math.floor((m-Math.min(...v.range())+v.step()/2)/v.step()):Math.floor((m-Math.min(...v.range()))/v.step());if(S<0||S>=y.length)return null;if(x){const A=y.length-1-S;return{index:A,value:y[A]}}return{index:S,value:y[S]}}const h=()=>{c.current={isInChart:!1,x:-1,y:-1},a({type:"exitChart"})},p=w=>{const m="targetTouches"in w?w.targetTouches[0]:w,v=XN(d,m);if(c.current.x=v.x,c.current.y=v.y,!n.isPointInside(v,w.target)){c.current.isInChart&&(a({type:"exitChart"}),c.current.isInChart=!1);return}c.current.isInChart=!0;const y=f(r[l],v.x),x=f(o[u],v.y);a({type:"updateAxis",data:{x:y,y:x}})},g=w=>{const m=w.currentTarget;m&&m.hasPointerCapture(w.pointerId)&&m.releasePointerCapture(w.pointerId)};return d.addEventListener("pointerdown",g),d.addEventListener("pointermove",p),d.addEventListener("pointerout",h),d.addEventListener("pointercancel",h),d.addEventListener("pointerleave",h),()=>{d.removeEventListener("pointerdown",g),d.removeEventListener("pointermove",p),d.removeEventListener("pointerout",h),d.removeEventListener("pointercancel",h),d.removeEventListener("pointerleave",h)}},[t,a,u,o,l,r,e,n])},QN=["children","width","height","viewBox","disableAxisListener","className","title","desc"],qN=G("svg",{name:"MuiChartsSurface",slot:"Root"})(()=>({touchAction:"none"})),ZN=k.forwardRef(function(t,n){const{children:r,width:o,height:i,viewBox:s,disableAxisListener:a=!1,className:l,title:u,desc:c}=t,d=H(t,QN),f=b({width:o,height:i,x:0,y:0},s);return YN(a),C.jsxs(qN,b({width:o,height:i,viewBox:`${f.x} ${f.y} ${f.width} ${f.height}`,ref:n,className:l},d,{children:[C.jsx("title",{children:u}),C.jsx("desc",{children:c}),r]}))});function JN(){const{chartId:e}=k.useContext(Qa);return k.useMemo(()=>e,[e])}function Yv(e){return _o(e)?t=>(e(t)??0)+e.bandwidth()/2:t=>e(t)}const $g=k.createContext({zAxis:{},zAxisIds:[]});function ej(e){const{zAxis:t,dataset:n,children:r}=e,o=k.useMemo(()=>t==null?void 0:t.map(s=>{const a=s.dataKey;if(a===void 0||s.data!==void 0)return s;if(n===void 0)throw Error("MUI X: z-axis uses `dataKey` but no `dataset` is provided.");return b({},s,{data:n.map(l=>l[a])})}),[t,n]),i=k.useMemo(()=>{const s=(o==null?void 0:o.map((l,u)=>b({id:`defaultized-z-axis-${u}`},l)))??[],a={};return s.forEach(l=>{a[l.id]=b({},l,{colorScale:l.colorMap&&(l.colorMap.type==="ordinal"&&l.data?uc(b({values:l.data},l.colorMap)):hu(l.colorMap.type==="continuous"?b({min:l.min,max:l.max},l.colorMap):l.colorMap))})}),{zAxis:a,zAxisIds:s.map(({id:l})=>l)}},[o]);return C.jsx($g.Provider,{value:i,children:r})}function Qv(e){const{isReversed:t,gradientId:n,size:r,direction:o,scale:i,colorMap:s}=e;return C.jsx("linearGradient",{id:n,x1:"0",x2:"0",y1:"0",y2:"0",[`${o}${t?1:2}`]:`${r}px`,gradientUnits:"userSpaceOnUse",children:s.thresholds.map((a,l)=>{const u=i(a);if(u===void 0)return null;const c=t?1-u/r:u/r;return C.jsxs(k.Fragment,{children:[C.jsx("stop",{offset:c,stopColor:s.colors[l],stopOpacity:1}),C.jsx("stop",{offset:c,stopColor:s.colors[l+1],stopOpacity:1})]},a.toString()+l)})})}const tj=10;function qv(e){const{gradientUnits:t,isReversed:n,gradientId:r,size:o,direction:i,scale:s,colorScale:a,colorMap:l}=e,u=[l.min??0,l.max??100],c=u.map(s).filter(p=>p!==void 0);if(c.length!==2)return null;const d=typeof u[0]=="number"?Sa(u[0],u[1]):YC(u[0],u[1]),f=Math.round((Math.max(...c)-Math.min(...c))/tj),h=`${u[0]}-${u[1]}-`;return C.jsx("linearGradient",{id:r,x1:"0",x2:"0",y1:"0",y2:"0",[`${i}${n?1:2}`]:t==="objectBoundingBox"?1:`${o}px`,gradientUnits:t??"userSpaceOnUse",children:Array.from({length:f+1},(p,g)=>{const w=d(g/f);if(w===void 0)return null;const m=s(w);if(m===void 0)return null;const v=n?1-m/o:m/o,y=a(w);return y===null?null:C.jsx("stop",{offset:v,stopColor:y,stopOpacity:1},h+g)})})}function nj(){const{chartId:e}=k.useContext(Qa);return k.useCallback((t,n)=>`${e}-gradient-${n}-${t}`,[e])}function rj(){const{top:e,height:t,bottom:n,left:r,width:o,right:i}=rr(),s=e+t+n,a=r+o+i,l=nj(),{xAxisIds:u,xAxis:c,yAxisIds:d,yAxis:f}=zn();return C.jsxs("defs",{children:[d.filter(h=>f[h].colorMap!==void 0).map(h=>{const p=l(h,"y"),{colorMap:g,scale:w,colorScale:m,reverse:v}=f[h];return(g==null?void 0:g.type)==="piecewise"?C.jsx(Qv,{isReversed:!v,scale:w,colorMap:g,size:s,gradientId:p,direction:"y"},p):(g==null?void 0:g.type)==="continuous"?C.jsx(qv,{isReversed:!v,scale:w,colorScale:m,colorMap:g,size:s,gradientId:p,direction:"y"},p):null}),u.filter(h=>c[h].colorMap!==void 0).map(h=>{const p=l(h,"x"),{colorMap:g,scale:w,reverse:m,colorScale:v}=c[h];return(g==null?void 0:g.type)==="piecewise"?C.jsx(Qv,{isReversed:m,scale:w,colorMap:g,size:a,gradientId:p,direction:"x"},p):(g==null?void 0:g.type)==="continuous"?C.jsx(qv,{isReversed:m,scale:w,colorScale:v,colorMap:g,size:a,gradientId:p,direction:"x"},p):null})]})}const gS=k.createContext({isInitialized:!1,data:{highlightedItem:null,setHighlighted:()=>{},clearHighlighted:()=>{},isHighlighted:()=>!1,isFaded:()=>!1}}),oj=(e,t)=>n=>e?e.fade==="series"?n.seriesId===(t==null?void 0:t.seriesId)&&n.dataIndex!==(t==null?void 0:t.dataIndex):e.fade==="global"?n.seriesId!==(t==null?void 0:t.seriesId)||n.dataIndex!==(t==null?void 0:t.dataIndex):!1:!1,ij=(e,t)=>n=>e?e.highlight==="series"?n.seriesId===(t==null?void 0:t.seriesId):e.highlight==="item"?n.dataIndex===(t==null?void 0:t.dataIndex)&&n.seriesId===(t==null?void 0:t.seriesId):!1:!1,sj=["highlighted","faded"],aj=e=>{const t=e??{},{highlighted:n,faded:r}=t,o=H(t,sj);return b({highlight:n,fade:r},o)};function lj({children:e,highlightedItem:t,onHighlightChange:n}){const[r,o]=Jp({controlled:t,default:null,name:"HighlightedProvider",state:"highlightedItem"}),i=Ar(),s=k.useMemo(()=>{const u=new Map;return Object.keys(i).forEach(c=>{const d=i[c];Object.keys((d==null?void 0:d.series)??{}).forEach(f=>{const h=d==null?void 0:d.series[f];u.set(f,aj(h==null?void 0:h.highlightScope))})}),u},[i]),a=r&&r.seriesId?s.get(r.seriesId)??void 0:void 0,l=k.useMemo(()=>({isInitialized:!0,data:{highlightScope:a,highlightedItem:r,setHighlighted:u=>{o(u),n==null||n(u)},clearHighlighted:()=>{o(null),n==null||n(null)},isHighlighted:ij(a,r),isFaded:oj(a,r)}}),[r,a,o,n]);return C.jsx(gS.Provider,{value:l,children:e})}function zd(){const{isInitialized:e,data:t}=k.useContext(gS);if(!e)throw new Error(["MUI X: Could not find the highlighted ref context.","It looks like you rendered your component outside of a ChartsContainer parent component."].join(` +`));return t}function yS(e){const t=zd();if(!e)return{isHighlighted:!1,isFaded:!1};const n=t.isHighlighted(e),r=!n&&t.isFaded(e);return{isHighlighted:n,isFaded:r}}const Zv=(e,t)=>{const n=t==="x"?Od:dg;return[...(e==null?void 0:e.map((r,o)=>b({id:`defaultized-${t}-axis-${o}`},r)))??[],...e===void 0||e.findIndex(({id:r})=>r===n)===-1?[{id:n,scaleType:"linear"}]:[]]},uj=(e,t)=>{const n=k.useMemo(()=>Zv(e,"x"),[e]),r=k.useMemo(()=>Zv(t,"y"),[t]);return[n,r]};var Og=tl(),ue=e=>el(e,Og),_g=tl();ue.write=e=>el(e,_g);var Dd=tl();ue.onStart=e=>el(e,Dd);var Lg=tl();ue.onFrame=e=>el(e,Lg);var Ng=tl();ue.onFinish=e=>el(e,Ng);var Si=[];ue.setTimeout=(e,t)=>{const n=ue.now()+t,r=()=>{const i=Si.findIndex(s=>s.cancel==r);~i&&Si.splice(i,1),jr-=~i?1:0},o={time:n,handler:e,cancel:r};return Si.splice(vS(n),0,o),jr+=1,xS(),o};var vS=e=>~(~Si.findIndex(t=>t.time>e)||~Si.length);ue.cancel=e=>{Dd.delete(e),Lg.delete(e),Ng.delete(e),Og.delete(e),_g.delete(e)};ue.sync=e=>{vh=!0,ue.batchedUpdates(e),vh=!1};ue.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...o){t=o,ue.onStart(n)}return r.handler=e,r.cancel=()=>{Dd.delete(n),t=null},r};var jg=typeof window<"u"?window.requestAnimationFrame:()=>{};ue.use=e=>jg=e;ue.now=typeof performance<"u"?()=>performance.now():Date.now;ue.batchedUpdates=e=>e();ue.catch=console.error;ue.frameLoop="always";ue.advance=()=>{ue.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):wS()};var Nr=-1,jr=0,vh=!1;function el(e,t){vh?(t.delete(e),e(0)):(t.add(e),xS())}function xS(){Nr<0&&(Nr=0,ue.frameLoop!=="demand"&&jg(bS))}function cj(){Nr=-1}function bS(){~Nr&&(jg(bS),ue.batchedUpdates(wS))}function wS(){const e=Nr;Nr=ue.now();const t=vS(Nr);if(t&&(CS(Si.splice(0,t),n=>n.handler()),jr-=t),!jr){cj();return}Dd.flush(),Og.flush(e?Math.min(64,Nr-e):16.667),Lg.flush(),_g.flush(),Ng.flush()}function tl(){let e=new Set,t=e;return{add(n){jr+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return jr-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,jr-=t.size,CS(t,r=>r(n)&&e.add(r)),jr+=e.size,t=e)}}}function CS(e,t){e.forEach(n=>{try{t(n)}catch(r){ue.catch(r)}})}var dj=Object.defineProperty,fj=(e,t)=>{for(var n in t)dj(e,n,{get:t[n],enumerable:!0})},qt={};fj(qt,{assign:()=>hj,colors:()=>Gr,createStringInterpolator:()=>zg,skipAnimation:()=>kS,to:()=>SS,willAdvance:()=>Dg});function xh(){}var pj=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),W={arr:Array.isArray,obj:e=>!!e&&e.constructor.name==="Object",fun:e=>typeof e=="function",str:e=>typeof e=="string",num:e=>typeof e=="number",und:e=>e===void 0};function ar(e,t){if(W.arr(e)){if(!W.arr(t)||e.length!==t.length)return!1;for(let n=0;ne.forEach(t);function tr(e,t,n){if(W.arr(e)){for(let r=0;rW.und(e)?[]:W.arr(e)?e:[e];function Ks(e,t){if(e.size){const n=Array.from(e);e.clear(),pe(n,t)}}var $s=(e,...t)=>Ks(e,n=>n(...t)),Fg=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),zg,SS,Gr=null,kS=!1,Dg=xh,hj=e=>{e.to&&(SS=e.to),e.now&&(ue.now=e.now),e.colors!==void 0&&(Gr=e.colors),e.skipAnimation!=null&&(kS=e.skipAnimation),e.createStringInterpolator&&(zg=e.createStringInterpolator),e.requestAnimationFrame&&ue.use(e.requestAnimationFrame),e.batchedUpdates&&(ue.batchedUpdates=e.batchedUpdates),e.willAdvance&&(Dg=e.willAdvance),e.frameLoop&&(ue.frameLoop=e.frameLoop)},Xs=new Set,cn=[],Vf=[],dc=0,Bd={get idle(){return!Xs.size&&!cn.length},start(e){dc>e.priority?(Xs.add(e),ue.onStart(mj)):(AS(e),ue(bh))},advance:bh,sort(e){if(dc)ue.onFrame(()=>Bd.sort(e));else{const t=cn.indexOf(e);~t&&(cn.splice(t,1),PS(e))}},clear(){cn=[],Xs.clear()}};function mj(){Xs.forEach(AS),Xs.clear(),ue(bh)}function AS(e){cn.includes(e)||PS(e)}function PS(e){cn.splice(gj(cn,t=>t.priority>e.priority),0,e)}function bh(e){const t=Vf;for(let n=0;n0}function gj(e,t){const n=e.findIndex(t);return n<0?e.length:n}var yj=(e,t,n)=>Math.min(Math.max(n,e),t),vj={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},On="[-+]?\\d*\\.?\\d+",fc=On+"%";function Ud(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var xj=new RegExp("rgb"+Ud(On,On,On)),bj=new RegExp("rgba"+Ud(On,On,On,On)),wj=new RegExp("hsl"+Ud(On,fc,fc)),Cj=new RegExp("hsla"+Ud(On,fc,fc,On)),Sj=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,kj=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Aj=/^#([0-9a-fA-F]{6})$/,Pj=/^#([0-9a-fA-F]{8})$/;function Mj(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=Aj.exec(e))?parseInt(t[1]+"ff",16)>>>0:Gr&&Gr[e]!==void 0?Gr[e]:(t=xj.exec(e))?(qo(t[1])<<24|qo(t[2])<<16|qo(t[3])<<8|255)>>>0:(t=bj.exec(e))?(qo(t[1])<<24|qo(t[2])<<16|qo(t[3])<<8|t1(t[4]))>>>0:(t=Sj.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=Pj.exec(e))?parseInt(t[1],16)>>>0:(t=kj.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=wj.exec(e))?(Jv(e1(t[1]),Ll(t[2]),Ll(t[3]))|255)>>>0:(t=Cj.exec(e))?(Jv(e1(t[1]),Ll(t[2]),Ll(t[3]))|t1(t[4]))>>>0:null}function Gf(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Jv(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,i=Gf(o,r,e+1/3),s=Gf(o,r,e),a=Gf(o,r,e-1/3);return Math.round(i*255)<<24|Math.round(s*255)<<16|Math.round(a*255)<<8}function qo(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function e1(e){return(parseFloat(e)%360+360)%360/360}function t1(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function Ll(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function n1(e){let t=Mj(e);if(t===null)return e;t=t||0;const n=(t&4278190080)>>>24,r=(t&16711680)>>>16,o=(t&65280)>>>8,i=(t&255)/255;return`rgba(${n}, ${r}, ${o}, ${i})`}var Aa=(e,t,n)=>{if(W.fun(e))return e;if(W.arr(e))return Aa({range:e,output:t,extrapolate:n});if(W.str(e.output[0]))return zg(e);const r=e,o=r.output,i=r.range||[0,1],s=r.extrapolateLeft||r.extrapolate||"extend",a=r.extrapolateRight||r.extrapolate||"extend",l=r.easing||(u=>u);return u=>{const c=Rj(u,i);return Ej(u,i[c],i[c+1],o[c],o[c+1],l,s,a,r.map)}};function Ej(e,t,n,r,o,i,s,a,l){let u=l?l(e):e;if(un){if(a==="identity")return u;a==="clamp"&&(u=n)}return r===o?r:t===n?e<=t?r:o:(t===-1/0?u=-u:n===1/0?u=u-t:u=(u-t)/(n-t),u=i(u),r===-1/0?u=-u:o===1/0?u=u+r:u=u*(o-r)+r,u)}function Rj(e,t){for(var n=1;n=e);++n);return n-1}var Tj=(e,t="end")=>n=>{n=t==="end"?Math.min(n,.999):Math.max(n,.001);const r=n*e,o=t==="end"?Math.floor(r):Math.ceil(r);return yj(0,1,o/e)},pc=1.70158,Nl=pc*1.525,r1=pc+1,o1=2*Math.PI/3,i1=2*Math.PI/4.5,jl=e=>e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,Ij={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>e===0?0:Math.pow(2,10*e-10),easeOutExpo:e=>e===1?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>e===0?0:e===1?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>r1*e*e*e-pc*e*e,easeOutBack:e=>1+r1*Math.pow(e-1,3)+pc*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*((Nl+1)*2*e-Nl)/2:(Math.pow(2*e-2,2)*((Nl+1)*(e*2-2)+Nl)+2)/2,easeInElastic:e=>e===0?0:e===1?1:-Math.pow(2,10*e-10)*Math.sin((e*10-10.75)*o1),easeOutElastic:e=>e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e*10-.75)*o1)+1,easeInOutElastic:e=>e===0?0:e===1?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*i1))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*i1)/2+1,easeInBounce:e=>1-jl(1-e),easeOutBounce:jl,easeInOutBounce:e=>e<.5?(1-jl(1-2*e))/2:(1+jl(2*e-1))/2,steps:Tj},Pa=Symbol.for("FluidValue.get"),Vi=Symbol.for("FluidValue.observers"),un=e=>!!(e&&e[Pa]),Et=e=>e&&e[Pa]?e[Pa]():e,s1=e=>e[Vi]||null;function $j(e,t){e.eventObserved?e.eventObserved(t):e(t)}function Ma(e,t){const n=e[Vi];n&&n.forEach(r=>{$j(r,t)})}var MS=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");Oj(this,e)}},Oj=(e,t)=>ES(e,Pa,t);function os(e,t){if(e[Pa]){let n=e[Vi];n||ES(e,Vi,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function Ea(e,t){const n=e[Vi];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[Vi]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var ES=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),mu=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,_j=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,a1=new RegExp(`(${mu.source})(%|[a-z]+)`,"i"),Lj=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Wd=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,RS=e=>{const[t,n]=Nj(e);if(!t||Fg())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const o=window.getComputedStyle(document.documentElement).getPropertyValue(n);return o||e}else{if(n&&Wd.test(n))return RS(n);if(n)return n}return e},Nj=e=>{const t=Wd.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},Kf,jj=(e,t,n,r,o)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${o})`,TS=e=>{Kf||(Kf=Gr?new RegExp(`(${Object.keys(Gr).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(i=>Et(i).replace(Wd,RS).replace(_j,n1).replace(Kf,n1)),n=t.map(i=>i.match(mu).map(Number)),o=n[0].map((i,s)=>n.map(a=>{if(!(s in a))throw Error('The arity of each "output" value must be equal');return a[s]})).map(i=>Aa({...e,output:i}));return i=>{var l;const s=!a1.test(t[0])&&((l=t.find(u=>a1.test(u)))==null?void 0:l.replace(mu,""));let a=0;return t[0].replace(mu,()=>`${o[a++](i)}${s||""}`).replace(Lj,jj)}},Bg="react-spring: ",IS=e=>{const t=e;let n=!1;if(typeof t!="function")throw new TypeError(`${Bg}once requires a function parameter`);return(...r)=>{n||(t(...r),n=!0)}},Fj=IS(console.warn);function zj(){Fj(`${Bg}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var Dj=IS(console.warn);function Bj(){Dj(`${Bg}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function Hd(e){return W.str(e)&&(e[0]=="#"||/\d/.test(e)||!Fg()&&Wd.test(e)||e in(Gr||{}))}var wo=Fg()?k.useEffect:k.useLayoutEffect,Uj=()=>{const e=k.useRef(!1);return wo(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function $S(){const e=k.useState()[1],t=Uj();return()=>{t.current&&e(Math.random())}}function Wj(e,t){const[n]=k.useState(()=>({inputs:t,result:e()})),r=k.useRef(),o=r.current;let i=o;return i?t&&i.inputs&&Hj(t,i.inputs)||(i={inputs:t,result:e()}):i=n,k.useEffect(()=>{r.current=i,o==n&&(n.inputs=n.result=void 0)},[i]),i.result}function Hj(e,t){if(e.length!==t.length)return!1;for(let n=0;nk.useEffect(e,Vj),Vj=[];function Gj(e){const t=k.useRef();return k.useEffect(()=>{t.current=e}),t.current}var Ra=Symbol.for("Animated:node"),Kj=e=>!!e&&e[Ra]===e,Vn=e=>e&&e[Ra],Ug=(e,t)=>pj(e,Ra,t),Vd=e=>e&&e[Ra]&&e[Ra].getPayload(),_S=class{constructor(){Ug(this,this)}getPayload(){return this.payload||[]}},nl=class extends _S{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,W.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new nl(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return W.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value===e?!1:(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,W.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},Ta=class extends nl{constructor(e){super(0),this._string=null,this._toString=Aa({output:[e,e]})}static create(e){return new Ta(e)}getValue(){const e=this._string;return e??(this._string=this._toString(this._value))}setValue(e){if(W.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else if(super.setValue(e))this._string=null;else return!1;return!0}reset(e){e&&(this._toString=Aa({output:[this.getValue(),e]})),this._value=0,super.reset()}},hc={dependencies:null},Gd=class extends _S{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return tr(this.source,(n,r)=>{Kj(n)?t[r]=n.getValue(e):un(n)?t[r]=Et(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&pe(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return tr(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){hc.dependencies&&un(e)&&hc.dependencies.add(e);const t=Vd(e);t&&pe(t,n=>this.add(n))}},LS=class extends Gd{constructor(e){super(e)}static create(e){return new LS(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){const t=this.getPayload();return e.length==t.length?t.map((n,r)=>n.setValue(e[r])).some(Boolean):(super.setValue(e.map(Xj)),!0)}};function Xj(e){return(Hd(e)?Ta:nl).create(e)}function wh(e){const t=Vn(e);return t?t.constructor:W.arr(e)?LS:Hd(e)?Ta:nl}var l1=(e,t)=>{const n=!W.fun(e)||e.prototype&&e.prototype.isReactComponent;return k.forwardRef((r,o)=>{const i=k.useRef(null),s=n&&k.useCallback(p=>{i.current=qj(o,p)},[o]),[a,l]=Qj(r,t),u=$S(),c=()=>{const p=i.current;if(n&&!p)return;(p?t.applyAnimatedValues(p,a.getValue(!0)):!1)===!1&&u()},d=new Yj(c,l),f=k.useRef();wo(()=>(f.current=d,pe(l,p=>os(p,d)),()=>{f.current&&(pe(f.current.deps,p=>Ea(p,f.current)),ue.cancel(f.current.update))})),k.useEffect(c,[]),OS(()=>()=>{const p=f.current;pe(p.deps,g=>Ea(g,p))});const h=t.getComponentProps(a.getValue());return k.createElement(e,{...h,ref:s})})},Yj=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&ue.write(this.update)}};function Qj(e,t){const n=new Set;return hc.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new Gd(e),hc.dependencies=null,[e,n]}function qj(e,t){return e&&(W.fun(e)?e(t):e.current=t),t}var u1=Symbol.for("AnimatedComponent"),Zj=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=o=>new Gd(o),getComponentProps:r=o=>o}={})=>{const o={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},i=s=>{const a=c1(s)||"Anonymous";return W.str(s)?s=i[s]||(i[s]=l1(s,o)):s=s[u1]||(s[u1]=l1(s,o)),s.displayName=`Animated(${a})`,s};return tr(e,(s,a)=>{W.arr(e)&&(a=c1(s)),i[a]=i(s)}),{animated:i}},c1=e=>W.str(e)?e:e&&W.str(e.displayName)?e.displayName:W.fun(e)&&e.name||null;function Rt(e,...t){return W.fun(e)?e(...t):e}var Ys=(e,t)=>e===!0||!!(t&&e&&(W.fun(e)?e(t):Ct(e).includes(t))),NS=(e,t)=>W.obj(e)?t&&e[t]:e,jS=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,Jj=e=>e,Wg=(e,t=Jj)=>{let n=eF;e.default&&e.default!==!0&&(e=e.default,n=Object.keys(e));const r={};for(const o of n){const i=t(e[o],o);W.und(i)||(r[o]=i)}return r},eF=["config","onProps","onStart","onChange","onPause","onResume","onRest"],tF={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function nF(e){const t={};let n=0;if(tr(e,(r,o)=>{tF[o]||(t[o]=r,n++)}),n)return t}function Hg(e){const t=nF(e);if(t){const n={to:t};return tr(e,(r,o)=>o in t||(n[o]=r)),n}return{...e}}function Ia(e){return e=Et(e),W.arr(e)?e.map(Ia):Hd(e)?qt.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function rF(e){for(const t in e)return!0;return!1}function Ch(e){return W.fun(e)||W.arr(e)&&W.obj(e[0])}function d1(e,t){var n;(n=e.ref)==null||n.delete(e),t==null||t.delete(e)}function oF(e,t){var n;t&&e.ref!==t&&((n=e.ref)==null||n.delete(e),t.add(e),e.ref=t)}var iF={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},Sh={...iF.default,mass:1,damping:1,easing:Ij.linear,clamp:!1},sF=class{constructor(){this.velocity=0,Object.assign(this,Sh)}};function aF(e,t,n){n&&(n={...n},f1(n,t),t={...n,...t}),f1(e,t),Object.assign(e,t);for(const s in Sh)e[s]==null&&(e[s]=Sh[s]);let{frequency:r,damping:o}=e;const{mass:i}=e;return W.und(r)||(r<.01&&(r=.01),o<0&&(o=0),e.tension=Math.pow(2*Math.PI/r,2)*i,e.friction=4*Math.PI*o*i/r),e}function f1(e,t){if(!W.und(t.decay))e.duration=void 0;else{const n=!W.und(t.tension)||!W.und(t.friction);(n||!W.und(t.frequency)||!W.und(t.damping)||!W.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}var p1=[],lF=class{constructor(){this.changed=!1,this.values=p1,this.toValues=null,this.fromValues=p1,this.config=new sF,this.immediate=!1}};function FS(e,{key:t,props:n,defaultProps:r,state:o,actions:i}){return new Promise((s,a)=>{let l,u,c=Ys(n.cancel??(r==null?void 0:r.cancel),t);if(c)h();else{W.und(n.pause)||(o.paused=Ys(n.pause,t));let p=r==null?void 0:r.pause;p!==!0&&(p=o.paused||Ys(p,t)),l=Rt(n.delay||0,t),p?(o.resumeQueue.add(f),i.pause()):(i.resume(),f())}function d(){o.resumeQueue.add(f),o.timeouts.delete(u),u.cancel(),l=u.time-ue.now()}function f(){l>0&&!qt.skipAnimation?(o.delayed=!0,u=ue.setTimeout(h,l),o.pauseQueue.add(d),o.timeouts.add(u)):h()}function h(){o.delayed&&(o.delayed=!1),o.pauseQueue.delete(d),o.timeouts.delete(u),e<=(o.cancelId||0)&&(c=!0);try{i.start({...n,callId:e,cancel:c},s)}catch(p){a(p)}}})}var Vg=(e,t)=>t.length==1?t[0]:t.some(n=>n.cancelled)?ki(e.get()):t.every(n=>n.noop)?zS(e.get()):Tn(e.get(),t.every(n=>n.finished)),zS=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Tn=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),ki=e=>({value:e,cancelled:!0,finished:!1});function DS(e,t,n,r){const{callId:o,parentId:i,onRest:s}=t,{asyncTo:a,promise:l}=n;return!i&&e===a&&!t.reset?l:n.promise=(async()=>{n.asyncId=o,n.asyncTo=e;const u=Wg(t,(w,m)=>m==="onRest"?void 0:w);let c,d;const f=new Promise((w,m)=>(c=w,d=m)),h=w=>{const m=o<=(n.cancelId||0)&&ki(r)||o!==n.asyncId&&Tn(r,!1);if(m)throw w.result=m,d(w),w},p=(w,m)=>{const v=new h1,y=new m1;return(async()=>{if(qt.skipAnimation)throw $a(n),y.result=Tn(r,!1),d(y),y;h(v);const x=W.obj(w)?{...w}:{...m,to:w};x.parentId=o,tr(u,(A,P)=>{W.und(x[P])&&(x[P]=A)});const S=await r.start(x);return h(v),n.paused&&await new Promise(A=>{n.resumeQueue.add(A)}),S})()};let g;if(qt.skipAnimation)return $a(n),Tn(r,!1);try{let w;W.arr(e)?w=(async m=>{for(const v of m)await p(v)})(e):w=Promise.resolve(e(p,r.stop.bind(r))),await Promise.all([w.then(c),f]),g=Tn(r.get(),!0,!1)}catch(w){if(w instanceof h1)g=w.result;else if(w instanceof m1)g=w.result;else throw w}finally{o==n.asyncId&&(n.asyncId=i,n.asyncTo=i?a:void 0,n.promise=i?l:void 0)}return W.fun(s)&&ue.batchedUpdates(()=>{s(g,r,r.item)}),g})()}function $a(e,t){Ks(e.timeouts,n=>n.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var h1=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},m1=class extends Error{constructor(){super("SkipAnimationSignal")}},kh=e=>e instanceof Gg,uF=1,Gg=class extends MS{constructor(){super(...arguments),this.id=uF++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=Vn(this);return e&&e.getValue()}to(...e){return qt.to(this,e)}interpolate(...e){return zj(),qt.to(this,e)}toJSON(){return this.get()}observerAdded(e){e==1&&this._attach()}observerRemoved(e){e==0&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){Ma(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||Bd.sort(this),Ma(this,{type:"priority",parent:this,priority:e})}},Lo=Symbol.for("SpringPhase"),BS=1,Ah=2,Ph=4,Xf=e=>(e[Lo]&BS)>0,Rr=e=>(e[Lo]&Ah)>0,ks=e=>(e[Lo]&Ph)>0,g1=(e,t)=>t?e[Lo]|=Ah|BS:e[Lo]&=~Ah,y1=(e,t)=>t?e[Lo]|=Ph:e[Lo]&=~Ph,cF=class extends Gg{constructor(e,t){if(super(),this.animation=new lF,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!W.und(e)||!W.und(t)){const n=W.obj(e)?{...e}:{...t,from:e};W.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(Rr(this)||this._state.asyncTo)||ks(this)}get goal(){return Et(this.animation.to)}get velocity(){const e=Vn(this);return e instanceof nl?e.lastVelocity||0:e.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return Xf(this)}get isAnimating(){return Rr(this)}get isPaused(){return ks(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{toValues:o}=r;const{config:i}=r,s=Vd(r.to);!s&&un(r.to)&&(o=Ct(Et(r.to))),r.values.forEach((u,c)=>{if(u.done)return;const d=u.constructor==Ta?1:s?s[c].lastPosition:o[c];let f=r.immediate,h=d;if(!f){if(h=u.lastPosition,i.tension<=0){u.done=!0;return}let p=u.elapsedTime+=e;const g=r.fromValues[c],w=u.v0!=null?u.v0:u.v0=W.arr(i.velocity)?i.velocity[c]:i.velocity;let m;const v=i.precision||(g==d?.005:Math.min(1,Math.abs(d-g)*.001));if(W.und(i.duration))if(i.decay){const y=i.decay===!0?.998:i.decay,x=Math.exp(-(1-y)*p);h=g+w/(1-y)*(1-x),f=Math.abs(u.lastPosition-h)<=v,m=w*x}else{m=u.lastVelocity==null?w:u.lastVelocity;const y=i.restVelocity||v/10,x=i.clamp?0:i.bounce,S=!W.und(x),A=g==d?u.v0>0:gy,!(!P&&(f=Math.abs(d-h)<=v,f)));++T){S&&(M=h==d||h>d==A,M&&(m=-m*x,h=d));const _=-i.tension*1e-6*(h-d),$=-i.friction*.001*m,R=(_+$)/i.mass;m=m+R*O,h=h+m*O}}else{let y=1;i.duration>0&&(this._memoizedDuration!==i.duration&&(this._memoizedDuration=i.duration,u.durationProgress>0&&(u.elapsedTime=i.duration*u.durationProgress,p=u.elapsedTime+=e)),y=(i.progress||0)+p/this._memoizedDuration,y=y>1?1:y<0?0:y,u.durationProgress=y),h=g+i.easing(y)*(d-g),m=(h-u.lastPosition)/e,f=y==1}u.lastVelocity=m,Number.isNaN(h)&&(console.warn("Got NaN while animating:",this),f=!0)}s&&!s[c].done&&(f=!1),f?u.done=!0:t=!1,u.setValue(h,i.round)&&(n=!0)});const a=Vn(this),l=a.getValue();if(t){const u=Et(r.to);(l!==u||n)&&!i.decay?(a.setValue(u),this._onChange(u)):n&&i.decay&&this._onChange(l),this._stop()}else n&&this._onChange(l)}set(e){return ue.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(Rr(this)){const{to:e,config:t}=this.animation;ue.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return W.und(e)?(n=this.queue||[],this.queue=[]):n=[W.obj(e)?e:{...t,to:e}],Promise.all(n.map(r=>this._update(r))).then(r=>Vg(this,r))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),$a(this._state,e&&this._lastCallId),ue.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){e.type=="change"?this._start():e.type=="priority"&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:r}=e;n=W.obj(n)?n[t]:n,(n==null||Ch(n))&&(n=void 0),r=W.obj(r)?r[t]:r,r==null&&(r=void 0);const o={to:n,from:r};return Xf(this)||(e.reverse&&([n,r]=[r,n]),r=Et(r),W.und(r)?Vn(this)||this._set(n):this._set(r)),o}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,Wg(e,(s,a)=>/^on/.test(a)?NS(s,n):s)),x1(this,e,"onProps"),Ps(this,"onProps",e,this);const o=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const i=this._state;return FS(++this._lastCallId,{key:n,props:e,defaultProps:r,state:i,actions:{pause:()=>{ks(this)||(y1(this,!0),$s(i.pauseQueue),Ps(this,"onPause",Tn(this,As(this,this.animation.to)),this))},resume:()=>{ks(this)&&(y1(this,!1),Rr(this)&&this._resume(),$s(i.resumeQueue),Ps(this,"onResume",Tn(this,As(this,this.animation.to)),this))},start:this._merge.bind(this,o)}}).then(s=>{if(e.loop&&s.finished&&!(t&&s.noop)){const a=US(e);if(a)return this._update(a,!0)}return s})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(ki(this));const r=!W.und(e.to),o=!W.und(e.from);if(r||o)if(t.callId>this._lastToId)this._lastToId=t.callId;else return n(ki(this));const{key:i,defaultProps:s,animation:a}=this,{to:l,from:u}=a;let{to:c=l,from:d=u}=e;o&&!r&&(!t.default||W.und(c))&&(c=d),t.reverse&&([c,d]=[d,c]);const f=!ar(d,u);f&&(a.from=d),d=Et(d);const h=!ar(c,l);h&&this._focus(c);const p=Ch(t.to),{config:g}=a,{decay:w,velocity:m}=g;(r||o)&&(g.velocity=0),t.config&&!p&&aF(g,Rt(t.config,i),t.config!==s.config?Rt(s.config,i):void 0);let v=Vn(this);if(!v||W.und(c))return n(Tn(this,!0));const y=W.und(t.reset)?o&&!t.default:!W.und(d)&&Ys(t.reset,i),x=y?d:this.get(),S=Ia(c),A=W.num(S)||W.arr(S)||Hd(S),P=!p&&(!A||Ys(s.immediate||t.immediate,i));if(h){const T=wh(c);if(T!==v.constructor)if(P)v=this._set(S);else throw Error(`Cannot animate between ${v.constructor.name} and ${T.name}, as the "to" prop suggests`)}const M=v.constructor;let O=un(c),E=!1;if(!O){const T=y||!Xf(this)&&f;(h||T)&&(E=ar(Ia(x),S),O=!E),(!ar(a.immediate,P)&&!P||!ar(g.decay,w)||!ar(g.velocity,m))&&(O=!0)}if(E&&Rr(this)&&(a.changed&&!y?O=!0:O||this._stop(l)),!p&&((O||un(l))&&(a.values=v.getPayload(),a.toValues=un(c)?null:M==Ta?[1]:Ct(S)),a.immediate!=P&&(a.immediate=P,!P&&!y&&this._set(l)),O)){const{onRest:T}=a;pe(dF,$=>x1(this,t,$));const _=Tn(this,As(this,l));$s(this._pendingCalls,_),this._pendingCalls.add(n),a.changed&&ue.batchedUpdates(()=>{var $;a.changed=!y,T==null||T(_,this),y?Rt(s.onRest,_):($=a.onStart)==null||$.call(a,_,this)})}y&&this._set(x),p?n(DS(t.to,t,this._state,this)):O?this._start():Rr(this)&&!h?this._pendingCalls.add(n):n(zS(x))}_focus(e){const t=this.animation;e!==t.to&&(s1(this)&&this._detach(),t.to=e,s1(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;un(t)&&(os(t,this),kh(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;un(e)&&Ea(e,this)}_set(e,t=!0){const n=Et(e);if(!W.und(n)){const r=Vn(this);if(!r||!ar(n,r.getValue())){const o=wh(n);!r||r.constructor!=o?Ug(this,o.create(n)):r.setValue(n),r&&ue.batchedUpdates(()=>{this._onChange(n,t)})}}return Vn(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,Ps(this,"onStart",Tn(this,As(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),Rt(this.animation.onChange,e,this)),Rt(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;Vn(this).reset(Et(e.to)),e.immediate||(e.fromValues=e.values.map(t=>t.lastPosition)),Rr(this)||(g1(this,!0),ks(this)||this._resume())}_resume(){qt.skipAnimation?this.finish():Bd.start(this)}_stop(e,t){if(Rr(this)){g1(this,!1);const n=this.animation;pe(n.values,o=>{o.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),Ma(this,{type:"idle",parent:this});const r=t?ki(this.get()):Tn(this.get(),As(this,e??n.to));$s(this._pendingCalls,r),n.changed&&(n.changed=!1,Ps(this,"onRest",r,this))}}};function As(e,t){const n=Ia(t),r=Ia(e.get());return ar(r,n)}function US(e,t=e.loop,n=e.to){const r=Rt(t);if(r){const o=r!==!0&&Hg(r),i=(o||e).reverse,s=!o||o.reset;return mc({...e,loop:t,default:!1,pause:void 0,to:!i||Ch(n)?n:void 0,from:s?e.from:void 0,reset:s,...o})}}function mc(e){const{to:t,from:n}=e=Hg(e),r=new Set;return W.obj(t)&&v1(t,r),W.obj(n)&&v1(n,r),e.keys=r.size?Array.from(r):null,e}function v1(e,t){tr(e,(n,r)=>n!=null&&t.add(r))}var dF=["onStart","onRest","onChange","onPause","onResume"];function x1(e,t,n){e.animation[n]=t[n]!==jS(t,n)?NS(t[n],e.key):void 0}function Ps(e,t,...n){var r,o,i,s;(o=(r=e.animation)[t])==null||o.call(r,...n),(s=(i=e.defaultProps)[t])==null||s.call(i,...n)}var fF=["onStart","onChange","onRest"],pF=1,hF=class{constructor(e,t){this.id=pF++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(const t in e){const n=e[t];W.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(mc(e)),this}start(e){let{queue:t}=this;return e?t=Ct(e).map(mc):this.queue=[],this._flush?this._flush(this,t):(GS(this,t),mF(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;pe(Ct(t),r=>n[r].stop(!!e))}else $a(this._state,this._lastAsyncId),this.each(n=>n.stop(!!e));return this}pause(e){if(W.und(e))this.start({pause:!0});else{const t=this.springs;pe(Ct(e),n=>t[n].pause())}return this}resume(e){if(W.und(e))this.start({pause:!1});else{const t=this.springs;pe(Ct(e),n=>t[n].resume())}return this}each(e){tr(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,o=this._changed.size>0;(r&&!this._started||o&&!this._started)&&(this._started=!0,Ks(e,([a,l])=>{l.value=this.get(),a(l,this,this._item)}));const i=!r&&this._started,s=o||i&&n.size?this.get():null;o&&t.size&&Ks(t,([a,l])=>{l.value=s,a(l,this,this._item)}),i&&(this._started=!1,Ks(n,([a,l])=>{l.value=s,a(l,this,this._item)}))}eventObserved(e){if(e.type=="change")this._changed.add(e.parent),e.idle||this._active.add(e.parent);else if(e.type=="idle")this._active.delete(e.parent);else return;ue.onFrame(this._onFrame)}};function mF(e,t){return Promise.all(t.map(n=>WS(e,n))).then(n=>Vg(e,n))}async function WS(e,t,n){const{keys:r,to:o,from:i,loop:s,onRest:a,onResolve:l}=t,u=W.obj(t.default)&&t.default;s&&(t.loop=!1),o===!1&&(t.to=null),i===!1&&(t.from=null);const c=W.arr(o)||W.fun(o)?o:void 0;c?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):pe(fF,g=>{const w=t[g];if(W.fun(w)){const m=e._events[g];t[g]=({finished:v,cancelled:y})=>{const x=m.get(w);x?(v||(x.finished=!1),y&&(x.cancelled=!0)):m.set(w,{value:null,finished:v||!1,cancelled:y||!1})},u&&(u[g]=t[g])}});const d=e._state;t.pause===!d.paused?(d.paused=t.pause,$s(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const f=(r||Object.keys(e.springs)).map(g=>e.springs[g].start(t)),h=t.cancel===!0||jS(t,"cancel")===!0;(c||h&&d.asyncId)&&f.push(FS(++e._lastAsyncId,{props:t,state:d,actions:{pause:xh,resume:xh,start(g,w){h?($a(d,e._lastAsyncId),w(ki(e))):(g.onRest=a,w(DS(c,g,d,e)))}}})),d.paused&&await new Promise(g=>{d.resumeQueue.add(g)});const p=Vg(e,await Promise.all(f));if(s&&p.finished&&!(n&&p.noop)){const g=US(t,s,o);if(g)return GS(e,[g]),WS(e,g,!0)}return l&&ue.batchedUpdates(()=>l(p,e,e.item)),p}function gF(e,t){const n={...e.springs};return t&&pe(Ct(t),r=>{W.und(r.keys)&&(r=mc(r)),W.obj(r.to)||(r={...r,to:void 0}),VS(n,r,o=>HS(o))}),yF(e,n),n}function yF(e,t){tr(t,(n,r)=>{e.springs[r]||(e.springs[r]=n,os(n,e))})}function HS(e,t){const n=new cF;return n.key=e,t&&os(n,t),n}function VS(e,t,n){t.keys&&pe(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function GS(e,t){pe(t,n=>{VS(e.springs,n,r=>HS(r,e))})}var Kd=({children:e,...t})=>{const n=k.useContext(gc),r=t.pause||!!n.pause,o=t.immediate||!!n.immediate;t=Wj(()=>({pause:r,immediate:o}),[r,o]);const{Provider:i}=gc;return k.createElement(i,{value:t},e)},gc=vF(Kd,{});Kd.Provider=gc.Provider;Kd.Consumer=gc.Consumer;function vF(e,t){return Object.assign(e,k.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}var xF=()=>{const e=[],t=function(r){Bj();const o=[];return pe(e,(i,s)=>{if(W.und(r))o.push(i.start());else{const a=n(r,i,s);a&&o.push(i.start(a))}}),o};t.current=e,t.add=function(r){e.includes(r)||e.push(r)},t.delete=function(r){const o=e.indexOf(r);~o&&e.splice(o,1)},t.pause=function(){return pe(e,r=>r.pause(...arguments)),this},t.resume=function(){return pe(e,r=>r.resume(...arguments)),this},t.set=function(r){pe(e,(o,i)=>{const s=W.fun(r)?r(i,o):r;s&&o.set(s)})},t.start=function(r){const o=[];return pe(e,(i,s)=>{if(W.und(r))o.push(i.start());else{const a=this._getProps(r,i,s);a&&o.push(i.start(a))}}),o},t.stop=function(){return pe(e,r=>r.stop(...arguments)),this},t.update=function(r){return pe(e,(o,i)=>o.update(this._getProps(r,o,i))),this};const n=function(r,o,i){return W.fun(r)?r(i,o):r};return t._getProps=n,t};function Oa(e,t,n){const r=W.fun(t)&&t,{reset:o,sort:i,trail:s=0,expires:a=!0,exitBeforeEnter:l=!1,onDestroyed:u,ref:c,config:d}=r?r():t,f=k.useMemo(()=>r||arguments.length==3?xF():void 0,[]),h=Ct(e),p=[],g=k.useRef(null),w=o?null:g.current;wo(()=>{g.current=p}),OS(()=>(pe(p,R=>{f==null||f.add(R.ctrl),R.ctrl.ref=f}),()=>{pe(g.current,R=>{R.expired&&clearTimeout(R.expirationId),d1(R.ctrl,f),R.ctrl.stop(!0)})}));const m=wF(h,r?r():t,w),v=o&&g.current||[];wo(()=>pe(v,({ctrl:R,item:L,key:N})=>{d1(R,f),Rt(u,L,N)}));const y=[];if(w&&pe(w,(R,L)=>{R.expired?(clearTimeout(R.expirationId),v.push(R)):(L=y[L]=m.indexOf(R.key),~L&&(p[L]=R))}),pe(h,(R,L)=>{p[L]||(p[L]={key:m[L],item:R,phase:"mount",ctrl:new hF},p[L].ctrl.item=R)}),y.length){let R=-1;const{leave:L}=r?r():t;pe(y,(N,z)=>{const I=w[z];~N?(R=p.indexOf(I),p[R]={...I,item:h[N]}):L&&p.splice(++R,0,I)})}W.fun(i)&&p.sort((R,L)=>i(R.item,L.item));let x=-s;const S=$S(),A=Wg(t),P=new Map,M=k.useRef(new Map),O=k.useRef(!1);pe(p,(R,L)=>{const N=R.key,z=R.phase,I=r?r():t;let F,D;const K=Rt(I.delay||0,N);if(z=="mount")F=I.enter,D="enter";else{const q=m.indexOf(N)<0;if(z!="leave")if(q)F=I.leave,D="leave";else if(F=I.update)D="update";else return;else if(!q)F=I.enter,D="enter";else return}if(F=Rt(F,R.item,L),F=W.obj(F)?Hg(F):{to:F},!F.config){const q=d||A.config;F.config=Rt(q,R.item,L,D)}x+=s;const X={...A,delay:K+x,ref:c,immediate:I.immediate,reset:!1,...F};if(D=="enter"&&W.und(X.from)){const q=r?r():t,te=W.und(q.initial)||w?q.from:q.initial;X.from=Rt(te,R.item,L)}const{onResolve:re}=X;X.onResolve=q=>{Rt(re,q);const te=g.current,ae=te.find(he=>he.key===N);if(ae&&!(q.cancelled&&ae.phase!="update")&&ae.ctrl.idle){const he=te.every(B=>B.ctrl.idle);if(ae.phase=="leave"){const B=Rt(a,ae.item);if(B!==!1){const Q=B===!0?0:B;if(ae.expired=!0,!he&&Q>0){Q<=2147483647&&(ae.expirationId=setTimeout(S,Q));return}}}he&&te.some(B=>B.expired)&&(M.current.delete(ae),l&&(O.current=!0),S())}};const Y=gF(R.ctrl,X);D==="leave"&&l?M.current.set(R,{phase:D,springs:Y,payload:X}):P.set(R,{phase:D,springs:Y,payload:X})});const E=k.useContext(Kd),T=Gj(E),_=E!==T&&rF(E);wo(()=>{_&&pe(p,R=>{R.ctrl.start({default:E})})},[E]),pe(P,(R,L)=>{if(M.current.size){const N=p.findIndex(z=>z.key===L.key);p.splice(N,1)}}),wo(()=>{pe(M.current.size?M.current:P,({phase:R,payload:L},N)=>{const{ctrl:z}=N;N.phase=R,f==null||f.add(z),_&&R=="enter"&&z.start({default:E}),L&&(oF(z,L.ref),(z.ref||f)&&!O.current?z.update(L):(z.start(L),O.current&&(O.current=!1)))})},o?void 0:n);const $=R=>k.createElement(k.Fragment,null,p.map((L,N)=>{const{springs:z}=P.get(L)||L.ctrl,I=R({...z},L.item,L,N);return I&&I.type?k.createElement(I.type,{...I.props,key:W.str(L.key)||W.num(L.key)?L.key:L.ctrl.id,ref:I.ref}):I}));return f?[$,f]:$}var bF=1;function wF(e,{key:t,keys:n=t},r){if(n===null){const o=new Set;return e.map(i=>{const s=r&&r.find(a=>a.item===i&&a.phase!=="leave"&&!o.has(a));return s?(o.add(s),s.key):bF++})}return W.und(n)?e:W.fun(n)?e.map(n):Ct(n)}var KS=class extends Gg{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=Aa(...t);const n=this._get(),r=wh(n);Ug(this,r.create(n))}advance(e){const t=this._get(),n=this.get();ar(t,n)||(Vn(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&b1(this._active)&&Yf(this)}_get(){const e=W.arr(this.source)?this.source.map(Et):Ct(Et(this.source));return this.calc(...e)}_start(){this.idle&&!b1(this._active)&&(this.idle=!1,pe(Vd(this),e=>{e.done=!1}),qt.skipAnimation?(ue.batchedUpdates(()=>this.advance()),Yf(this)):Bd.start(this))}_attach(){let e=1;pe(Ct(this.source),t=>{un(t)&&os(t,this),kh(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){pe(Ct(this.source),e=>{un(e)&&Ea(e,this)}),this._active.clear(),Yf(this)}eventObserved(e){e.type=="change"?e.idle?this.advance():(this._active.add(e.parent),this._start()):e.type=="idle"?this._active.delete(e.parent):e.type=="priority"&&(this.priority=Ct(this.source).reduce((t,n)=>Math.max(t,(kh(n)?n.priority:0)+1),0))}};function CF(e){return e.idle!==!1}function b1(e){return!e.size||Array.from(e).every(CF)}function Yf(e){e.idle||(e.idle=!0,pe(Vd(e),t=>{t.done=!0}),Ma(e,{type:"idle",parent:e}))}var yc=(e,...t)=>new KS(e,t);qt.assign({createStringInterpolator:TS,to:(e,t)=>new KS(e,t)});var XS=/^--/;function SF(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!XS.test(e)&&!(Qs.hasOwnProperty(e)&&Qs[e])?t+"px":(""+t).trim()}var w1={};function kF(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",{style:r,children:o,scrollTop:i,scrollLeft:s,viewBox:a,...l}=t,u=Object.values(l),c=Object.keys(l).map(d=>n||e.hasAttribute(d)?d:w1[d]||(w1[d]=d.replace(/([A-Z])/g,f=>"-"+f.toLowerCase())));o!==void 0&&(e.textContent=o);for(const d in r)if(r.hasOwnProperty(d)){const f=SF(d,r[d]);XS.test(d)?e.style.setProperty(d,f):e.style[d]=f}c.forEach((d,f)=>{e.setAttribute(d,u[f])}),i!==void 0&&(e.scrollTop=i),s!==void 0&&(e.scrollLeft=s),a!==void 0&&e.setAttribute("viewBox",a)}var Qs={animationIterationCount:!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,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},AF=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),PF=["Webkit","Ms","Moz","O"];Qs=Object.keys(Qs).reduce((e,t)=>(PF.forEach(n=>e[AF(n,t)]=e[t]),e),Qs);var MF=/^(matrix|translate|scale|rotate|skew)/,EF=/^(translate)/,RF=/^(rotate|skew)/,Qf=(e,t)=>W.num(e)&&e!==0?e+t:e,gu=(e,t)=>W.arr(e)?e.every(n=>gu(n,t)):W.num(e)?e===t:parseFloat(e)===t,TF=class extends Gd{constructor({x:e,y:t,z:n,...r}){const o=[],i=[];(e||t||n)&&(o.push([e||0,t||0,n||0]),i.push(s=>[`translate3d(${s.map(a=>Qf(a,"px")).join(",")})`,gu(s,0)])),tr(r,(s,a)=>{if(a==="transform")o.push([s||""]),i.push(l=>[l,l===""]);else if(MF.test(a)){if(delete r[a],W.und(s))return;const l=EF.test(a)?"px":RF.test(a)?"deg":"";o.push(Ct(s)),i.push(a==="rotate3d"?([u,c,d,f])=>[`rotate3d(${u},${c},${d},${Qf(f,l)})`,gu(f,0)]:u=>[`${a}(${u.map(c=>Qf(c,l)).join(",")})`,gu(u,a.startsWith("scale")?1:0)])}}),o.length&&(r.transform=new IF(o,i)),super(r)}},IF=class extends MS{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return pe(this.inputs,(n,r)=>{const o=Et(n[0]),[i,s]=this.transforms[r](W.arr(o)?o:n.map(Et));e+=" "+i,t=t&&s}),t?"none":e}observerAdded(e){e==1&&pe(this.inputs,t=>pe(t,n=>un(n)&&os(n,this)))}observerRemoved(e){e==0&&pe(this.inputs,t=>pe(t,n=>un(n)&&Ea(n,this)))}eventObserved(e){e.type=="change"&&(this._value=null),Ma(this,e)}},$F=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"];qt.assign({batchedUpdates:_c.unstable_batchedUpdates,createStringInterpolator:TS,colors:vj});var OF=Zj($F,{applyAnimatedValues:kF,createAnimatedStyle:e=>new TF(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),rl=OF.animated;const _F=()=>{wo(()=>{var n;if(!window.matchMedia)return qt.assign({skipAnimation:!0}),()=>{};const e=window.matchMedia("(prefers-reduced-motion)"),t=r=>{qt.assign({skipAnimation:r.matches||void 0})};return t(e),(n=e.addEventListener)==null||n.call(e,"change",t),()=>{var r;(r=e.removeEventListener)==null||r.call(e,"change",t)}},[])},LF=["width","height","series","margin","xAxis","yAxis","zAxis","colors","dataset","sx","title","desc","disableAxisListener","highlightedItem","onHighlightChange","plugins","children"],NF=(e,t)=>{const{width:n,height:r,series:o,margin:i,xAxis:s,yAxis:a,zAxis:l,colors:u,dataset:c,sx:d,title:f,desc:h,disableAxisListener:p,highlightedItem:g,onHighlightChange:w,plugins:m,children:v}=e,y=H(e,LF),x=k.useRef(null),S=rt(t,x);_F();const[A,P]=uj(s,a),M={width:n,height:r,margin:i,svgRef:x},O={plugins:m},E={series:o,colors:u,dataset:c},T={xAxis:A,yAxis:P,dataset:c},_={zAxis:l,dataset:c},$={highlightedItem:g,onHighlightChange:w},R=b({},y,{width:n,height:r,ref:S,sx:d,title:f,desc:h,disableAxisListener:p});return{children:v,drawingProviderProps:M,seriesProviderProps:E,cartesianProviderProps:T,zAxisContextProps:_,highlightedProviderProps:$,chartsSurfaceProps:R,pluginProviderProps:O,xAxis:A,yAxis:P}},jF=k.forwardRef(function(t,n){const{children:r,drawingProviderProps:o,seriesProviderProps:i,cartesianProviderProps:s,zAxisContextProps:a,highlightedProviderProps:l,chartsSurfaceProps:u,pluginProviderProps:c}=NF(t,n);return C.jsx(o_,b({},o,{children:C.jsx(r4,b({},c,{children:C.jsx(a4,b({},i,{children:C.jsx(KN,b({},s,{children:C.jsx(ej,b({},a,{children:C.jsx(u4,{children:C.jsx(lj,b({},l,{children:C.jsxs(ZN,b({},u,{children:[C.jsx(rj,{}),r]}))}))})}))}))}))}))}))}),FF=G("div",{name:"MuiResponsiveChart",slot:"Container"})(({ownerState:e})=>({width:e.width??"100%",height:e.height??"100%",display:"flex",position:"relative",flexGrow:1,flexDirection:"column",alignItems:"center",justifyContent:"center",overflow:"hidden","&>svg":{width:"100%",height:"100%"}})),zF=(e,t)=>{const n=k.useRef(!1),r=k.useRef(null),[o,i]=k.useState(0),[s,a]=k.useState(0),l=k.useCallback(()=>{const u=r==null?void 0:r.current;if(!u)return;const d=Yr(u).getComputedStyle(u),f=Math.floor(parseFloat(d.height))||0,h=Math.floor(parseFloat(d.width))||0;i(h),a(f)},[]);return k.useEffect(()=>{n.current=!0},[]),xn(()=>{if(e!==void 0&&t!==void 0)return()=>{};l();const u=r.current;if(typeof ResizeObserver>"u")return()=>{};let c;const d=new ResizeObserver(()=>{c=requestAnimationFrame(()=>{l()})});return u&&d.observe(u),()=>{c&&window.cancelAnimationFrame(c),u&&d.unobserve(u)}},[l,t,e]),{containerRef:r,width:e??o,height:t??s}},DF=["width","height","margin","children","series","colors","dataset","desc","disableAxisListener","highlightedItem","onHighlightChange","plugins","sx","title","viewBox","xAxis","yAxis","zAxis"],BF=(e,t)=>{const{width:n,height:r,margin:o,children:i,series:s,colors:a,dataset:l,desc:u,disableAxisListener:c,highlightedItem:d,onHighlightChange:f,plugins:h,sx:p,title:g,viewBox:w,xAxis:m,yAxis:v,zAxis:y}=e,x=H(e,DF),{containerRef:S,width:A,height:P}=zF(n,r),M=b({},x,{ownerState:{width:n,height:r},ref:S});return{hasIntrinsicSize:A&&P,chartContainerProps:{margin:o,children:i,series:s,colors:a,dataset:l,desc:u,disableAxisListener:c,highlightedItem:d,onHighlightChange:f,plugins:h,sx:p,title:g,viewBox:w,xAxis:m,yAxis:v,zAxis:y,width:A,height:P,ref:t},resizableChartContainerProps:M}},YS=k.forwardRef(function(t,n){const{hasIntrinsicSize:r,chartContainerProps:o,resizableChartContainerProps:i}=BF(t,n);return C.jsx(FF,b({},i,{children:r?C.jsx(jF,b({},o)):null}))});function QS(e){return de("MuiChartsAxis",e)}const Fl=fe("MuiChartsAxis",["root","line","tickContainer","tick","tickLabel","label","directionX","directionY","top","bottom","left","right"]),qS=G("g",{name:"MuiChartsAxis",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({[`& .${Fl.tickLabel}`]:b({},e.typography.caption,{fill:(e.vars||e).palette.text.primary}),[`& .${Fl.label}`]:b({},e.typography.body1,{fill:(e.vars||e).palette.text.primary}),[`& .${Fl.line}`]:{stroke:(e.vars||e).palette.text.primary,shapeRendering:"crispEdges",strokeWidth:1},[`& .${Fl.tick}`]:{stroke:(e.vars||e).palette.text.primary,shapeRendering:"crispEdges"}}));function UF(){return typeof window>"u"}const io={widthCache:{},cacheCount:0},WF=2e3,HF={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},VF=["minWidth","maxWidth","width","minHeight","maxHeight","height","top","left","fontSize","padding","margin","paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom"],C1="mui_measurement_span";function ZS(e,t){return VF.indexOf(e)>=0&&t===+t?`${t}px`:t}function JS(e){return e.split("").reduce((r,o)=>o===o.toUpperCase()?[...r,"-",o.toLowerCase()]:[...r,o],[]).join("")}const GF=e=>Object.keys(e).sort().reduce((t,n)=>`${t}${JS(n)}:${ZS(n,e[n])};`,""),KF=(e,t={})=>{if(e==null||UF())return{width:0,height:0};const n=`${e}`,r=GF(t),o=`${n}-${r}`;if(io.widthCache[o])return io.widthCache[o];try{let i=document.getElementById(C1);i===null&&(i=document.createElement("span"),i.setAttribute("id",C1),i.setAttribute("aria-hidden","true"),document.body.appendChild(i));const s=b({},HF,t);Object.keys(s).map(u=>(i.style[JS(u)]=ZS(u,s[u]),u)),i.textContent=n;const a=i.getBoundingClientRect(),l={width:a.width,height:a.height};return io.widthCache[o]=l,io.cacheCount+1>WF?(io.cacheCount=0,io.widthCache={}):io.cacheCount+=1,l}catch{return{width:0,height:0}}};function Kg({style:e,needsComputation:t,text:n}){return n.split(` +`).map(r=>b({text:r},t?KF(r,e):{width:0,height:0}))}const XF=["x","y","style","text","ownerState"],YF=["angle","textAnchor","dominantBaseline"];function _a(e){const{x:t,y:n,style:r,text:o}=e,i=H(e,XF),s=r??{},{angle:a,textAnchor:l,dominantBaseline:u}=s,c=H(s,YF),d=k.useMemo(()=>Kg({style:c,needsComputation:o.includes(` +`),text:o}),[c,o]);let f;switch(u){case"hanging":f=0;break;case"central":f=(d.length-1)/2*-d[0].height;break;default:f=(d.length-1)*-d[0].height;break}const h=[];return a&&h.push(`rotate(${a}, ${t}, ${n})`),C.jsx("text",b({},i,{transform:h.length>0?h.join(" "):void 0,x:t,y:n,textAnchor:l,dominantBaseline:u,style:c,children:d.map((p,g)=>C.jsx("tspan",{x:t,dy:`${g===0?f:d[0].height}px`,dominantBaseline:u,children:p.text},g))}))}const S1=5;function QF(e,t,n=0){const r=Math.min(Math.abs(n)%180,Math.abs(Math.abs(n)%180-180)%180);if(r90-S1)return t;const o=r*Math.PI/180,i=Math.atan2(t,e);return o{e||n(!0)},[e]),k.useEffect(()=>{e&&n(!0)},[e]),t}const ZF=["scale","tickNumber","reverse"],JF=e=>{const{classes:t,position:n}=e;return ce({root:["root","directionX",n],line:["line"],tickContainer:["tickContainer"],tick:["tick"],tickLabel:["tickLabel"],label:["label"]},QS,t)};function ez(e,{tickLabelStyle:t,tickLabelInterval:n,reverse:r,isMounted:o}){const i=e.map(u=>{if(!o||u.formattedValue===void 0)return b({},u,{width:0,height:0});const c=Kg({style:t,needsComputation:!0,text:u.formattedValue});return b({},u,{width:Math.max(...c.map(d=>d.width)),height:Math.max(c.length*c[0].height)})});if(typeof n=="function")return i.map((u,c)=>b({},u,{skipLabel:!n(u.value,c)}));let s=0,a=0;const l=r?-1:1;return i.map((u,c)=>{const{width:d,offset:f,labelOffset:h,height:p}=u,g=QF(d,p,t==null?void 0:t.angle),w=f+h,m=1.2;return s=w-l*(m*g)/2,c>0&&l*s{const xe=ee??0,Re=F*(I+3),We=j>=R-1&&j<=R+N+1,ft=j+xe>=R-1&&j+xe<=R+N+1;return C.jsxs("g",{transform:`translate(${j}, 0)`,className:$.tickContainer,children:[!h&&We&&C.jsx(K,b({y2:F*I,className:$.tick},A==null?void 0:A.axisTick)),V!==void 0&&!J&&ft&&C.jsx(X,b({x:xe,y:Re},Y,{text:V.toString()}))]},le)}),g&&C.jsx("g",{className:$.label,children:C.jsx(re,b({},ae,he,{text:g}))})]})}const nz=["scale","tickNumber"],rz=e=>{const{classes:t,position:n}=e;return ce({root:["root","directionY",n],line:["line"],tickContainer:["tickContainer"],tick:["tick"],tickLabel:["tickLabel"],label:["label"]},QS,t)},oz={position:"left",disableLine:!1,disableTicks:!1,tickFontSize:12,labelFontSize:14,tickSize:6};function A1(e){const{yAxisIds:t,yAxis:n}=zn(),r=n[e.axisId??t[0]],{scale:o,tickNumber:i}=r,s=H(r,nz),a=es({props:b({},s,e),name:"MuiChartsYAxis"}),l=b({},oz,a),{position:u,disableLine:c,disableTicks:d,tickFontSize:f,label:h,labelFontSize:p,labelStyle:g,tickLabelStyle:w,tickSize:m,valueFormatter:v,slots:y,slotProps:x,tickPlacement:S,tickLabelPlacement:A,tickInterval:P,tickLabelInterval:M,sx:O}=l,E=eo(),T=E.direction==="rtl",_=rz(b({},l,{theme:E})),{left:$,top:R,width:L,height:N}=rr(),z=d?4:m,I=cc({scale:o,tickNumber:i,valueFormatter:v,tickPlacement:S,tickLabelPlacement:A,tickInterval:P}),F=u==="right"?1:-1,D={x:F*(f+z+10),y:R+N/2},K=(y==null?void 0:y.axisLine)??"line",X=(y==null?void 0:y.axisTick)??"line",re=(y==null?void 0:y.axisTickLabel)??_a,Y=(y==null?void 0:y.axisLabel)??_a,q=!T&&u==="right"||T&&u!=="right",te=nt({elementType:re,externalSlotProps:x==null?void 0:x.axisTickLabel,additionalProps:{style:b({fontSize:f,textAnchor:q?"start":"end",dominantBaseline:"central"},w)},className:_.tickLabel,ownerState:{}}),ae=nt({elementType:Y,externalSlotProps:x==null?void 0:x.axisLabel,additionalProps:{style:b({fontSize:p,angle:F*90,textAnchor:"middle",dominantBaseline:"auto"},g)},ownerState:{}}),he=nt({elementType:K,externalSlotProps:x==null?void 0:x.axisLine,additionalProps:{strokeLinecap:"square"},ownerState:{}}),B=o.domain(),Q=_o(o);return Q&&B.length===0||!Q&&B.some(Tg)?null:C.jsxs(qS,{transform:`translate(${u==="right"?$+L:$}, 0)`,className:_.root,sx:O,children:[!c&&C.jsx(K,b({y1:R,y2:R+N,className:_.line},he)),I.map(({formattedValue:V,offset:j,labelOffset:ee,value:J},le)=>{const xe=F*(z+2),Re=ee,We=typeof M=="function"&&!(M!=null&&M(J,le));return j>=R-1&&j<=N+R+1?C.jsxs("g",{transform:`translate(0, ${j})`,className:_.tickContainer,children:[!d&&C.jsx(X,b({x2:F*z,className:_.tick},x==null?void 0:x.axisTick)),V!==void 0&&!We&&C.jsx(re,b({x:xe,y:Re,text:V.toString()},te))]},le):null}),h&&C.jsx("g",{className:_.label,children:C.jsx(Y,b({},D,ae,{text:h}))})]})}const zl=(e,t)=>e==null?null:typeof e=="object"?e.axisId??t??null:e,Dl=(e,t,n)=>typeof e=="object"?b({},e,{slots:b({},t,e==null?void 0:e.slots),slotProps:b({},n,e==null?void 0:e.slotProps)}):{slots:t,slotProps:n};function ek(e){const{topAxis:t,leftAxis:n,rightAxis:r,bottomAxis:o,slots:i,slotProps:s}=e,{xAxis:a,xAxisIds:l,yAxis:u,yAxisIds:c}=zn(),d=zl(n===void 0?c[0]:n,c[0]),f=zl(o===void 0?l[0]:o,l[0]),h=zl(t,l[0]),p=zl(r,c[0]);if(h!==null&&!a[h])throw Error([`MUI X: id used for top axis "${h}" is not defined.`,`Available ids are: ${l.join(", ")}.`].join(` +`));if(d!==null&&!u[d])throw Error([`MUI X: id used for left axis "${d}" is not defined.`,`Available ids are: ${c.join(", ")}.`].join(` +`));if(p!==null&&!u[p])throw Error([`MUI X: id used for right axis "${p}" is not defined.`,`Available ids are: ${c.join(", ")}.`].join(` +`));if(f!==null&&!a[f])throw Error([`MUI X: id used for bottom axis "${f}" is not defined.`,`Available ids are: ${l.join(", ")}.`].join(` +`));const g=Dl(t,i,s),w=Dl(o,i,s),m=Dl(n,i,s),v=Dl(r,i,s);return C.jsxs(k.Fragment,{children:[h&&C.jsx(k1,b({},g,{position:"top",axisId:h})),f&&C.jsx(k1,b({},w,{position:"bottom",axisId:f})),d&&C.jsx(A1,b({},m,{position:"left",axisId:d})),p&&C.jsx(A1,b({},v,{position:"right",axisId:p}))]})}function iz(e){if(e===null)return{getBoundingClientRect:()=>({width:0,height:0,x:0,y:0,top:0,right:0,bottom:0,left:0,toJSON:()=>""})};const{x:t,y:n}=e,r={width:0,height:0,x:t,y:n,top:n,right:t,bottom:n,left:t};return{getBoundingClientRect:()=>b({},r,{toJSON:()=>JSON.stringify(r)})}}function sz(){const e=Ig(),[t,n]=k.useState(null);return k.useEffect(()=>{const r=e.current;if(r===null)return()=>{};const o=s=>{s.pointerType!=="mouse"&&n(null)},i=s=>{n({x:s.clientX,y:s.clientY,height:s.height,pointerType:s.pointerType})};return r.addEventListener("pointerdown",i),r.addEventListener("pointermove",i),r.addEventListener("pointerup",o),()=>{r.removeEventListener("pointerdown",i),r.removeEventListener("pointermove",i),r.removeEventListener("pointerup",o)}},[e]),t}function az(e,t){if(e==="item")return t!==null;const n=t.x!==null,r=t.y!==null;return n||r}function lz(e){return e instanceof Date?e.toUTCString():e.toLocaleString()}function uz(e){return de("MuiChartsTooltip",e)}const P1=fe("MuiChartsTooltip",["root","table","row","cell","mark","markCell","labelCell","valueCell"]),tk=G("div",{name:"MuiChartsTooltip",slot:"Container"})(({theme:e})=>({boxShadow:e.shadows[1],backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),borderRadius:e.shape.borderRadius})),nk=G("table",{name:"MuiChartsTooltip",slot:"Table"})(({theme:e})=>({borderSpacing:0,"& thead td":{borderBottom:`solid ${(e.vars||e).palette.divider} 1px`}})),Mh=G("tr",{name:"MuiChartsTooltip",slot:"Row"})(({theme:e})=>({"tr:first-of-type& td":{paddingTop:e.spacing(1)},"tr:last-of-type& td":{paddingBottom:e.spacing(1)}})),Co=G("td",{name:"MuiChartsTooltip",slot:"Cell"})(({theme:e})=>({verticalAlign:"middle",color:(e.vars||e).palette.text.secondary,[`&.${P1.labelCell}`]:{paddingLeft:e.spacing(1)},[`&.${P1.valueCell}`]:{paddingLeft:e.spacing(4),color:(e.vars||e).palette.text.primary},"td:first-of-type&":{paddingLeft:e.spacing(2)},"td:last-of-type&":{paddingRight:e.spacing(2)}})),rk=G("div",{name:"MuiChartsTooltip",slot:"Mark",shouldForwardProp:e=>uu(e)&&e!=="color"})(({theme:e,color:t})=>({width:e.spacing(1),height:e.spacing(1),borderRadius:"50%",boxShadow:e.shadows[1],backgroundColor:t,borderColor:(e.vars||e).palette.background.paper,border:`solid ${(e.vars||e).palette.background.paper} ${e.spacing(.25)}`,boxSizing:"content-box"}));function cz(e){var c;const{series:t,itemData:n,sx:r,classes:o,getColor:i}=e;if(n.dataIndex===void 0||!t.data[n.dataIndex])return null;const{displayedLabel:s,color:a}=t.type==="pie"?{color:i(n.dataIndex),displayedLabel:Nn(t.data[n.dataIndex].label,"tooltip")}:{color:i(n.dataIndex),displayedLabel:Nn(t.label,"tooltip")},l=t.type==="pie"?b({},t.data[n.dataIndex],{label:Nn(t.data[n.dataIndex].label,"tooltip")}):t.data[n.dataIndex],u=(c=t.valueFormatter)==null?void 0:c.call(t,l,{dataIndex:n.dataIndex});return C.jsx(tk,{sx:r,className:o.root,children:C.jsx(nk,{className:o.table,children:C.jsx("tbody",{children:C.jsxs(Mh,{className:o.row,children:[C.jsx(Co,{className:ne(o.markCell,o.cell),children:C.jsx(rk,{color:a,className:o.mark})}),C.jsx(Co,{className:ne(o.labelCell,o.cell),children:s}),C.jsx(Co,{className:ne(o.valueCell,o.cell),children:u})]})})})})}function dz(e){var x;const{content:t,itemData:n,sx:r,classes:o,contentProps:i}=e,s=Ar()[n.type].series[n.seriesId],{xAxis:a,yAxis:l,xAxisIds:u,yAxisIds:c}=zn(),{zAxis:d,zAxisIds:f}=k.useContext($g),h=WC(),p=s.xAxisId??s.xAxisKey??u[0],g=s.yAxisId??s.yAxisKey??c[0],w=s.zAxisId??s.zAxisKey??f[0],m=((x=h[s.type])==null?void 0:x.call(h,s,p&&a[p],g&&l[g],w&&d[w]))??(()=>""),v=t??cz,y=nt({elementType:v,externalSlotProps:i,additionalProps:{itemData:n,series:s,sx:r,classes:o,getColor:m},ownerState:{}});return C.jsx(v,b({},y))}let M1;class fz{constructor(){if(this.types=new Set,M1)throw new Error("You can only create one instance!");M1=this.types}addType(t){this.types.add(t)}getTypes(){return this.types}}const Xd=new fz;Xd.addType("bar");Xd.addType("line");Xd.addType("scatter");function ok(e){return Xd.getTypes().has(e)}function pz(e){return ok(e.type)}function hz(e){const{series:t,axis:n,dataIndex:r,axisValue:o,sx:i,classes:s}=e;if(r==null)return null;const a=n.valueFormatter??(l=>n.scaleType==="utc"?lz(l):l.toLocaleString());return C.jsx(tk,{sx:i,className:s.root,children:C.jsxs(nk,{className:s.table,children:[o!=null&&!n.hideTooltip&&C.jsx("thead",{children:C.jsx(Mh,{children:C.jsx(Co,{colSpan:3,children:C.jsx(Le,{children:a(o,{location:"tooltip"})})})})}),C.jsx("tbody",{children:t.filter(pz).map(({id:l,label:u,valueFormatter:c,data:d,getColor:f})=>{const h=c(d[r]??null,{dataIndex:r});if(h==null)return null;const p=Nn(u,"tooltip"),g=f(r);return C.jsxs(Mh,{className:s.row,children:[C.jsx(Co,{className:ne(s.markCell,s.cell),children:g&&C.jsx(rk,{color:g,className:s.mark})}),C.jsx(Co,{className:ne(s.labelCell,s.cell),children:p?C.jsx(Le,{children:p}):null}),C.jsx(Co,{className:ne(s.valueCell,s.cell),children:C.jsx(Le,{children:h})})]},l)})})]})})}function mz(e){const{content:t,contentProps:n,axisData:r,sx:o,classes:i}=e,s=(r.x&&r.x.index)!==void 0,a=s?r.x&&r.x.index:r.y&&r.y.index,l=s?r.x&&r.x.value:r.y&&r.y.value,{xAxisIds:u,xAxis:c,yAxisIds:d,yAxis:f}=zn(),{zAxisIds:h,zAxis:p}=k.useContext($g),g=Ar(),w=WC(),m=s?u[0]:d[0],v=k.useMemo(()=>{const A=[];return Object.keys(g).filter(ok).forEach(P=>{g[P].seriesOrder.forEach(M=>{var $;const O=g[P].series[M],E=O.xAxisId??O.xAxisKey,T=O.yAxisId??O.yAxisKey,_=s?E:T;if(_===void 0||_===m){const R=g[P].series[M],L=E??u[0],N=T??d[0],z=R.zAxisId??R.zAxisKey??h[0],I=(($=w[P])==null?void 0:$.call(w,R,c[L],f[N],z&&p[z]))??(()=>"");A.push(b({},R,{getColor:I}))}})}),A},[m,w,s,g,c,u,f,d,p,h]),y=k.useMemo(()=>s?c[m]:f[m],[m,s,c,f]),x=t??hz,S=nt({elementType:x,externalSlotProps:n,additionalProps:{axisData:r,series:v,axis:y,dataIndex:a,axisValue:l,sx:o,classes:i},ownerState:{}});return C.jsx(x,b({},S))}const gz=e=>{const{classes:t}=e;return ce({root:["root"],table:["table"],row:["row"],cell:["cell"],mark:["mark"],markCell:["markCell"],labelCell:["labelCell"],valueCell:["valueCell"]},uz,t)},yz=G(y$,{name:"MuiChartsTooltip",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({pointerEvents:"none",zIndex:e.zIndex.modal}));function ik(e){const t=es({props:e,name:"MuiChartsTooltip"}),{trigger:n="axis",itemContent:r,axisContent:o,slots:i,slotProps:s}=t,a=sz(),{item:l,axis:u}=k.useContext(rs),c=n==="item"?l:u,d=az(n,c),f=a!==null&&d,h=gz({classes:t.classes}),p=(i==null?void 0:i.popper)??yz,g=nt({elementType:p,externalSlotProps:s==null?void 0:s.popper,additionalProps:{open:f,placement:(a==null?void 0:a.pointerType)==="mouse"?"right-start":"top",anchorEl:iz(a),modifiers:[{name:"offset",options:{offset:[0,(a==null?void 0:a.pointerType)==="touch"?40-a.height:0]}}]},ownerState:{}});return n==="none"?null:C.jsx(kC,{children:f&&C.jsx(p,b({},g,{children:n==="item"?C.jsx(dz,{itemData:c,content:(i==null?void 0:i.itemContent)??r,contentProps:s==null?void 0:s.itemContent,sx:{mx:2},classes:h}):C.jsx(mz,{axisData:c,content:(i==null?void 0:i.axisContent)??o,contentProps:s==null?void 0:s.axisContent,sx:{mx:2},classes:h})}))})}const vz=e=>{const{seriesOrder:t,series:n}=e;return t.reduce((r,o)=>{const i=Nn(n[o].label,"legend");return i===void 0||r.push({color:n[o].color,label:i,id:o}),r},[])},xz=e=>{const{seriesOrder:t,series:n}=e;return t.reduce((r,o)=>{const i=Nn(n[o].label,"legend");return i===void 0||r.push({color:n[o].color,label:i,id:o}),r},[])},bz=e=>{const{seriesOrder:t,series:n}=e;return t.reduce((r,o)=>{const i=Nn(n[o].label,"legend");return i===void 0||r.push({color:n[o].color,label:i,id:o}),r},[])},wz=e=>{const{seriesOrder:t,series:n}=e;return t.reduce((r,o)=>(n[o].data.forEach(i=>{const s=Nn(i.label,"legend");s!==void 0&&r.push({color:i.color,label:s,id:i.id})}),r),[])},Cz={bar:vz,scatter:xz,line:bz,pie:wz};function Sz(e){return Object.keys(e).flatMap(t=>{const n=Cz[t];return n===void 0?[]:n(e[t])})}function kz(e){return de("MuiChartsLegend",e)}fe("MuiChartsLegend",["root","series","mark","label","column","row"]);const Az=["label"];function Pz(e,t,n,r,o,i,s){let a=0,l=0,u=0,c=0,d=0;const f=[0];return[e.map(p=>{let{label:g}=p,w=H(p,Az);const m=t(g,n),v=b({},w,{label:g,positionX:a,positionY:l,innerHeight:m.innerHeight,innerWidth:m.innerWidth,outerHeight:m.outerHeight,outerWidth:m.outerWidth,rowIndex:d});return r==="row"&&(a+m.innerWidth>o&&(a=0,l+=f[d],d+=1,f.length<=d&&f.push(0),v.positionX=a,v.positionY=l,v.rowIndex=d),u=Math.max(u,a+m.outerWidth),c=Math.max(c,l+m.outerHeight),f[d]=Math.max(f[d],m.outerHeight),a+=m.outerWidth),r==="column"&&(l+m.innerHeight>i&&(a=u+s,l=0,d=0,v.positionX=a,v.positionY=l,v.rowIndex=d),f.length<=d&&f.push(0),u=Math.max(u,a+m.outerWidth),c=Math.max(c,l+m.outerHeight),d+=1,l+=m.outerHeight),v}).map(p=>b({},p,{positionY:p.positionY+(r==="row"?f[p.rowIndex]/2:p.outerHeight/2)})),u,c]}const Mz=["rotate","dominantBaseline"],Ez=G("g",{name:"MuiChartsLegend",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Rz=e=>typeof e=="number"?{left:e,right:e,top:e,bottom:e}:b({left:0,right:0,top:0,bottom:0},e);function Tz(e){const{hidden:t,position:n,direction:r,itemsToDisplay:o,classes:i,itemMarkWidth:s=20,itemMarkHeight:a=20,markGap:l=5,itemGap:u=10,padding:c=10,labelStyle:d}=e,f=eo(),h=f.direction==="rtl",p=rr(),g=k.useMemo(()=>b({},f.typography.subtitle1,{color:"inherit",dominantBaseline:"central",textAnchor:"start",fill:(f.vars||f).palette.text.primary,lineHeight:1},d),[d,f]),w=k.useMemo(()=>Rz(c),[c]),m=k.useCallback((T,_={})=>{const $=H(_,Mz),R=Kg({style:$,needsComputation:!0,text:T}),L={innerWidth:s+l+Math.max(...R.map(N=>N.width)),innerHeight:Math.max(a,R.length*R[0].height)};return b({},L,{outerWidth:L.innerWidth+u,outerHeight:L.innerHeight+u})},[u,a,s,l]),v=p.left+p.width+p.right,y=p.top+p.height+p.bottom,x=v-w.left-w.right,S=y-w.top-w.bottom,[A,P,M]=k.useMemo(()=>Pz(o,m,g,r,x,S,u),[o,m,g,r,x,S,u]),O=k.useMemo(()=>{switch(n.horizontal){case"left":return w.left;case"right":return v-w.right-P;default:return(v-P)/2}},[n.horizontal,w.left,w.right,v,P]),E=k.useMemo(()=>{switch(n.vertical){case"top":return w.top;case"bottom":return y-w.bottom-M;default:return(y-M)/2}},[n.vertical,w.top,w.bottom,y,M]);return t?null:C.jsx(kC,{children:C.jsx(Ez,{className:i==null?void 0:i.root,children:A.map(({id:T,label:_,color:$,positionX:R,positionY:L})=>C.jsxs("g",{className:i==null?void 0:i.series,transform:`translate(${O+(h?P-R:R)} ${E+L})`,children:[C.jsx("rect",{className:i==null?void 0:i.mark,x:h?-s:0,y:-a/2,width:s,height:a,fill:$}),C.jsx(_a,{style:g,text:_,x:(h?-1:1)*(s+l),y:0})]},T))})})}const Iz=["drawingArea","seriesToDisplay"];function $z(e){const{seriesToDisplay:t}=e,n=H(e,Iz);return C.jsx(Tz,b({},n,{itemsToDisplay:t}))}const Oz=e=>{const{classes:t,direction:n}=e;return ce({root:["root",n],mark:["mark"],label:["label"],series:["series"]},kz,t)},_z={position:{horizontal:"middle",vertical:"top"},direction:"row"};function sk(e){const t=es({props:b({},_z,e),name:"MuiChartsLegend"}),{position:n,direction:r,hidden:o,slots:i,slotProps:s}=t,a=eo(),l=Oz(b({},t,{theme:a})),u=rr(),c=Ar(),d=Sz(c),f=(i==null?void 0:i.legend)??$z,h=nt({elementType:f,externalSlotProps:s==null?void 0:s.legend,additionalProps:{position:n,direction:r,classes:l,drawingArea:u,series:c,hidden:o,seriesToDisplay:d},ownerState:{}});return C.jsx(f,b({},h))}function fo(e,t){if(typeof e=="number")return e;if(e==="100%")return t;if(e.endsWith("%")){const n=Number.parseFloat(e.slice(0,e.length-1));if(!Number.isNaN(n))return n*t/100}if(e.endsWith("px")){const n=Number.parseFloat(e.slice(0,e.length-2));if(!Number.isNaN(n))return n}throw Error(`MUI X: Received an unknown value "${e}". It should be a number, or a string with a percentage value.`)}function Lz(e){return de("MuiChartsAxisHighlight",e)}fe("MuiChartsAxisHighlight",["root"]);const Nz=()=>ce({root:["root"]},Lz),Bl=G("path",{name:"MuiChartsAxisHighlight",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e,theme:t})=>b({pointerEvents:"none"},e.axisHighlight==="band"&&{fill:t.palette.mode==="light"?"gray":"white",fillOpacity:.1},e.axisHighlight==="line"&&{strokeDasharray:"5 2",stroke:t.palette.mode==="light"?"#000000":"#ffffff"}));function ak(e){const{x:t,y:n}=e,{xAxisIds:r,xAxis:o,yAxisIds:i,yAxis:s}=zn(),a=Nz(),l=r[0],u=i[0],c=o[l].scale,d=s[u].scale,{axis:f}=k.useContext(rs),h=Yv(c),p=Yv(d),g=f.x,w=f.y,m=t==="band"&&g!==null&&_o(c),v=n==="band"&&w!==null&&_o(d);return C.jsxs(k.Fragment,{children:[m&&c(g.value)!==void 0&&C.jsx(Bl,{d:`M ${c(g.value)-(c.step()-c.bandwidth())/2} ${d.range()[0]} l ${c.step()} 0 l 0 ${d.range()[1]-d.range()[0]} l ${-c.step()} 0 Z`,className:a.root,ownerState:{axisHighlight:"band"}}),v&&d(w.value)!==void 0&&C.jsx(Bl,{d:`M ${c.range()[0]} ${d(w.value)-(d.step()-d.bandwidth())/2} l 0 ${d.step()} l ${c.range()[1]-c.range()[0]} 0 l 0 ${-d.step()} Z`,className:a.root,ownerState:{axisHighlight:"band"}}),t==="line"&&f.x!==null&&C.jsx(Bl,{d:`M ${h(f.x.value)} ${d.range()[0]} L ${h(f.x.value)} ${d.range()[1]}`,className:a.root,ownerState:{axisHighlight:"line"}}),n==="line"&&f.y!==null&&C.jsx(Bl,{d:`M ${c.range()[0]} ${p(f.y.value)} L ${c.range()[1]} ${p(f.y.value)}`,className:a.root,ownerState:{axisHighlight:"line"}})]})}const lk=e=>{const{dispatch:t}=k.useContext(rs),{setHighlighted:n,clearHighlighted:r}=zd();return i=>({onPointerEnter:()=>{t({type:"enterItem",data:i}),n({seriesId:i.seriesId,dataIndex:i.dataIndex})},onPointerLeave:u=>{u.currentTarget.releasePointerCapture(u.pointerId),t({type:"leaveItem",data:i}),r()},onPointerDown:u=>{u.currentTarget.hasPointerCapture(u.pointerId)&&u.currentTarget.releasePointerCapture(u.pointerId)}})},jz=["classes","color","cornerRadius","dataIndex","endAngle","id","innerRadius","isFaded","isHighlighted","onClick","outerRadius","paddingAngle","startAngle","highlightScope"];function Fz(e){return de("MuiPieArc",e)}fe("MuiPieArc",["root","highlighted","faded"]);const zz=e=>{const{classes:t,id:n,isFaded:r,isHighlighted:o}=e,i={root:["root",`series-${n}`,o&&"highlighted",r&&"faded"]};return ce(i,Fz,t)},Dz=G(rl.path,{name:"MuiPieArc",slot:"Root",overridesResolver:(e,t)=>t.arc})(({theme:e})=>({stroke:(e.vars||e).palette.background.paper,strokeWidth:1,strokeLinejoin:"round"}));function Bz(e){const{classes:t,color:n,cornerRadius:r,dataIndex:o,endAngle:i,id:s,innerRadius:a,isFaded:l,isHighlighted:u,onClick:c,outerRadius:d,paddingAngle:f,startAngle:h}=e,p=H(e,jz),g={id:s,dataIndex:o,classes:t,color:n,isFaded:l,isHighlighted:u},w=zz(g),m=lk();return C.jsx(Dz,b({d:yc([h,i,f,a,d,r],(v,y,x,S,A,P)=>LC().cornerRadius(P)({padAngle:x,startAngle:v,endAngle:y,innerRadius:S,outerRadius:A})),visibility:yc([h,i],(v,y)=>v===y?"hidden":"visible"),onClick:c,cursor:c?"pointer":"unset",ownerState:g,className:w.root},p,m({type:"pie",seriesId:s,dataIndex:o})))}const Uz={keys:e=>e.id,from:({innerRadius:e,outerRadius:t,cornerRadius:n,startAngle:r,endAngle:o,paddingAngle:i,color:s,isFaded:a})=>({innerRadius:e,outerRadius:(e+t)/2,cornerRadius:n,startAngle:(r+o)/2,endAngle:(r+o)/2,paddingAngle:i,fill:s,opacity:a?.3:1}),leave:({innerRadius:e,startAngle:t,endAngle:n})=>({innerRadius:e,outerRadius:e,startAngle:(t+n)/2,endAngle:(t+n)/2}),enter:({innerRadius:e,outerRadius:t,startAngle:n,endAngle:r})=>({innerRadius:e,outerRadius:t,startAngle:n,endAngle:r}),update:({innerRadius:e,outerRadius:t,cornerRadius:n,startAngle:r,endAngle:o,paddingAngle:i,color:s,isFaded:a})=>({innerRadius:e,outerRadius:t,cornerRadius:n,startAngle:r,endAngle:o,paddingAngle:i,fill:s,opacity:a?.3:1}),config:{tension:120,friction:14,clamp:!0}},Wz={keys:e=>e.id,from:({innerRadius:e,outerRadius:t,arcLabelRadius:n,cornerRadius:r,startAngle:o,endAngle:i,paddingAngle:s})=>({innerRadius:e,outerRadius:(e+t)/2,cornerRadius:r,arcLabelRadius:n,startAngle:(o+i)/2,endAngle:(o+i)/2,paddingAngle:s,opacity:0}),leave:({innerRadius:e,startAngle:t,endAngle:n})=>({innerRadius:e,outerRadius:e,arcLabelRadius:e,startAngle:(t+n)/2,endAngle:(t+n)/2,opacity:0}),enter:({innerRadius:e,outerRadius:t,startAngle:n,endAngle:r,arcLabelRadius:o})=>({innerRadius:e,outerRadius:t,startAngle:n,endAngle:r,arcLabelRadius:o,opacity:1}),update:({innerRadius:e,outerRadius:t,cornerRadius:n,startAngle:r,endAngle:o,paddingAngle:i,arcLabelRadius:s})=>({innerRadius:e,outerRadius:t,cornerRadius:n,startAngle:r,endAngle:o,paddingAngle:i,arcLabelRadius:s,opacity:1}),config:{tension:120,friction:14,clamp:!0}};function uk(e){const{id:t,data:n,faded:r,highlighted:o,paddingAngle:i=0,innerRadius:s=0,arcLabelRadius:a,outerRadius:l,cornerRadius:u=0}=e,{isFaded:c,isHighlighted:d}=zd();return k.useMemo(()=>n.map((h,p)=>{const g={seriesId:t,dataIndex:p},w=d(g),m=!w&&c(g),v=b({additionalRadius:0},m&&r||w&&o||{}),y=Math.max(0,Math.PI*(v.paddingAngle??i)/180),x=Math.max(0,v.innerRadius??s),S=Math.max(0,v.outerRadius??l+v.additionalRadius),A=v.cornerRadius??u,P=v.arcLabelRadius??a??(x+S)/2;return b({},h,v,{isFaded:m,isHighlighted:w,paddingAngle:y,innerRadius:x,outerRadius:S,cornerRadius:A,arcLabelRadius:P})}),[u,s,l,i,a,n,r,o,c,d,t])}const Hz=["slots","slotProps","innerRadius","outerRadius","cornerRadius","paddingAngle","id","highlighted","faded","data","onItemClick","skipAnimation"],Vz=["startAngle","endAngle","paddingAngle","innerRadius","arcLabelRadius","outerRadius","cornerRadius"];function Gz(e){const{slots:t,slotProps:n,innerRadius:r=0,outerRadius:o,cornerRadius:i=0,paddingAngle:s=0,id:a,highlighted:l,faded:u={additionalRadius:-5},data:c,onItemClick:d,skipAnimation:f}=e,h=H(e,Hz),p=uk({innerRadius:r,outerRadius:o,cornerRadius:i,paddingAngle:s,id:a,highlighted:l,faded:u,data:c}),g=Oa(p,b({},Uz,{immediate:f})),{highlightScope:w}=zd();if(c.length===0)return null;const m=(t==null?void 0:t.pieArc)??Bz;return C.jsx("g",b({},h,{children:g((v,y,x,S)=>{let{startAngle:A,endAngle:P,paddingAngle:M,innerRadius:O,outerRadius:E,cornerRadius:T}=v,_=H(v,Vz);return C.jsx(m,b({startAngle:A,endAngle:P,paddingAngle:M,innerRadius:O,outerRadius:E,cornerRadius:T,style:_,id:a,color:y.color,dataIndex:S,highlightScope:w,isFaded:y.isFaded,isHighlighted:y.isHighlighted,onClick:d&&($=>{d($,{type:"pie",seriesId:a,dataIndex:S},y)})},n==null?void 0:n.pieArc))})}))}const Kz=["id","classes","color","startAngle","endAngle","paddingAngle","arcLabelRadius","innerRadius","outerRadius","cornerRadius","formattedArcLabel","isHighlighted","isFaded","style"];function Xz(e){return de("MuiPieArcLabel",e)}fe("MuiPieArcLabel",["root","highlighted","faded"]);const Yz=e=>{const{classes:t,id:n,isFaded:r,isHighlighted:o}=e,i={root:["root",`series-${n}`,o&&"highlighted",r&&"faded"]};return ce(i,Xz,t)},Qz=G(rl.text,{name:"MuiPieArcLabel",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({fill:(e.vars||e).palette.text.primary,textAnchor:"middle",dominantBaseline:"middle",pointerEvents:"none"})),E1=(e,t)=>(n,r,o,i,s)=>{if(!e)return 0;const[a,l]=LC().cornerRadius(s).centroid({padAngle:o,startAngle:n,endAngle:r,innerRadius:i,outerRadius:i});return t==="x"?a:l};function qz(e){const{id:t,classes:n,color:r,startAngle:o,endAngle:i,paddingAngle:s,arcLabelRadius:a,cornerRadius:l,formattedArcLabel:u,isHighlighted:c,isFaded:d,style:f}=e,h=H(e,Kz),g=Yz({id:t,classes:n,color:r,isFaded:d,isHighlighted:c});return C.jsx(Qz,b({className:g.root},h,{style:b({x:yc([o,i,s,a,l],E1(u,"x")),y:yc([o,i,s,a,l],E1(u,"y"))},f),children:u}))}const Zz=["arcLabel","arcLabelMinAngle","arcLabelRadius","cornerRadius","data","faded","highlighted","id","innerRadius","outerRadius","paddingAngle","skipAnimation","slotProps","slots"],Jz=["startAngle","endAngle","paddingAngle","innerRadius","outerRadius","arcLabelRadius","cornerRadius"],e6=180/Math.PI;function t6(e,t,n){var o;if(!e||(n.endAngle-n.startAngle)*e6{let{startAngle:S,endAngle:A,paddingAngle:P,innerRadius:M,outerRadius:O,arcLabelRadius:E,cornerRadius:T}=y,_=H(y,Jz);return C.jsx(v,b({startAngle:S,endAngle:A,paddingAngle:P,innerRadius:M,outerRadius:O,arcLabelRadius:E,cornerRadius:T,style:_,id:l,color:x.color,isFaded:x.isFaded,isHighlighted:x.isHighlighted,formattedArcLabel:t6(t,n,x)},h==null?void 0:h.pieArcLabel))})}))}function R1(e,t){const{height:n,width:r}=t,{cx:o,cy:i}=e,s=Math.min(r,n)/2,a=fo(o??"50%",r),l=fo(i??"50%",n);return{cx:a,cy:l,availableRadius:s}}function r6(e){const{skipAnimation:t,slots:n,slotProps:r,onItemClick:o}=e,i=VN(),{left:s,top:a,width:l,height:u}=k.useContext(Qa);if(i===void 0)return null;const{series:c,seriesOrder:d}=i;return C.jsxs("g",{children:[d.map(f=>{const{innerRadius:h,outerRadius:p,cornerRadius:g,paddingAngle:w,data:m,cx:v,cy:y,highlighted:x,faded:S}=c[f],{cx:A,cy:P,availableRadius:M}=R1({cx:v,cy:y},{width:l,height:u}),O=fo(p??M,M),E=fo(h??0,M);return C.jsx("g",{transform:`translate(${s+A}, ${a+P})`,children:C.jsx(Gz,{innerRadius:E,outerRadius:O,cornerRadius:g,paddingAngle:w,id:f,data:m,skipAnimation:t,highlighted:x,faded:S,onItemClick:o,slots:n,slotProps:r})},f)}),d.map(f=>{const{innerRadius:h,outerRadius:p,arcLabelRadius:g,cornerRadius:w,paddingAngle:m,arcLabel:v,arcLabelMinAngle:y,data:x,cx:S,cy:A}=c[f],{cx:P,cy:M,availableRadius:O}=R1({cx:S,cy:A},{width:l,height:u}),E=fo(p??O,O),T=fo(h??0,O),_=g===void 0?(E+T)/2:fo(g,O);return C.jsx("g",{transform:`translate(${s+P}, ${a+M})`,children:C.jsx(n6,{innerRadius:T,outerRadius:E??O,arcLabelRadius:_,cornerRadius:w,paddingAngle:m,id:f,data:x,skipAnimation:t,arcLabel:v,arcLabelMinAngle:y,slots:n,slotProps:r})},f)})]})}const o6=()=>eo().direction==="rtl",i6=["message"],s6=G("text")(({theme:e})=>b({},e.typography.body2,{stroke:"none",fill:e.palette.text.primary,shapeRendering:"crispEdges",textAnchor:"middle",dominantBaseline:"middle"}));function a6(e){const{message:t}=e,n=H(e,i6),{top:r,left:o,height:i,width:s}=rr();return C.jsx(s6,b({x:o+s/2,y:r+i/2},n,{children:t??"Loading data…"}))}const l6=["message"],u6=G("text")(({theme:e})=>b({},e.typography.body2,{stroke:"none",fill:e.palette.text.primary,shapeRendering:"crispEdges",textAnchor:"middle",dominantBaseline:"middle"}));function c6(e){const{message:t}=e,n=H(e,l6),{top:r,left:o,height:i,width:s}=rr();return C.jsx(u6,b({x:o+s/2,y:r+i/2},n,{children:t??"No data to display"}))}function d6(){const e=Ar();return Object.values(e).every(t=>{if(!t)return!0;const{series:n,seriesOrder:r}=t;return r.every(o=>n[o].data.length===0)})}function ck(e){var n,r,o,i;const t=d6();if(e.loading){const s=((n=e.slots)==null?void 0:n.loadingOverlay)??a6;return C.jsx(s,b({},(r=e.slotProps)==null?void 0:r.loadingOverlay))}if(t){const s=((o=e.slots)==null?void 0:o.noDataOverlay)??c6;return C.jsx(s,b({},(i=e.slotProps)==null?void 0:i.noDataOverlay))}return null}const f6=["xAxis","yAxis","series","width","height","margin","colors","sx","tooltip","axisHighlight","skipAnimation","legend","topAxis","leftAxis","rightAxis","bottomAxis","children","slots","slotProps","onItemClick","loading","highlightedItem","onHighlightChange","className"],p6={top:5,bottom:5,left:5,right:100},h6={top:5,bottom:5,left:100,right:5},m6=k.forwardRef(function(t,n){const{xAxis:r,yAxis:o,series:i,width:s,height:a,margin:l,colors:u,sx:c,tooltip:d={trigger:"item"},axisHighlight:f={x:"none",y:"none"},skipAnimation:h,legend:p,topAxis:g=null,leftAxis:w=null,rightAxis:m=null,bottomAxis:v=null,children:y,slots:x,slotProps:S,onItemClick:A,loading:P,highlightedItem:M,onHighlightChange:O,className:E}=t,T=H(t,f6),_=o6(),$=b({},_?h6:p6,l),R=b({direction:"column",position:{vertical:"middle",horizontal:_?"left":"right"}},p);return C.jsxs(YS,b({},T,{ref:n,series:i.map(L=>b({type:"pie"},L)),width:s,height:a,margin:$,xAxis:r??[{id:Od,scaleType:"point",data:[...new Array(Math.max(...i.map(L=>L.data.length)))].map((L,N)=>N)}],yAxis:o,colors:u,sx:c,disableAxisListener:(d==null?void 0:d.trigger)!=="axis"&&(f==null?void 0:f.x)==="none"&&(f==null?void 0:f.y)==="none",highlightedItem:M,onHighlightChange:O,className:E,children:[C.jsx(ek,{topAxis:g,leftAxis:w,rightAxis:m,bottomAxis:v,slots:x,slotProps:S}),C.jsx(r6,{slots:x,slotProps:S,onItemClick:A,skipAnimation:h}),C.jsx(ck,{loading:P,slots:x,slotProps:S}),C.jsx(sk,b({},R,{slots:x,slotProps:S})),C.jsx(ak,b({},f)),!P&&C.jsx(ik,b({},d,{slots:x,slotProps:S})),y]}))});function g6(e){const t=e.data;return C.jsx(m6,{sx:{margin:"10px",marginTop:"50px"},series:[{data:t,highlightScope:{faded:"global",highlighted:"item"},faded:{innerRadius:30,additionalRadius:-30,color:"gray"}}],height:400,width:600})}function Ul(e){const t=e.type,n=e.value,r=e.best,o=e.img;return C.jsx(mC,{sx:{minWidth:160,margin:"1rem"},children:C.jsxs(d5,{children:[C.jsx(C5,{component:"img",height:"50",image:o,alt:"green iguana"}),C.jsxs(gC,{children:[C.jsx(Le,{gutterBottom:!0,variant:"h5",component:"div",sx:{color:"black"},children:t}),C.jsx(Le,{variant:"body2",color:"inherit",children:t=="Puzzle"?`Solved:${n}`:`Rating:${n}`}),C.jsx(Le,{variant:"body3",color:"inherit",children:t=="Puzzle"?`Atempts:${r}`:`Best:${r}`})]})]})})}const y6="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBxASEhAQEhAQFRAQEA8QFRAQEhUNDxIQFRUWFhURExUYHSggGBolGxUVITEiJTUrLi4uFx8zODMsNygtLisBCgoKDg0OGhAQFysdHR8tLS0rLSstLSsuLS0tLS0tLTUtKy0tKy0tLS0tLSstLTAtLSstLS0tLS0rLSs3Ky0tMP/AABEIAKgBLAMBIgACEQEDEQH/xAAaAAEAAwEBAQAAAAAAAAAAAAAAAQIDBAUG/8QAOBAAAgECBAIIAwYHAQEAAAAAAAECAxEEEiExQVEFIjJhcYGRsRPB8EJSYqHR4RQjNHKCkvEzJP/EABkBAQEBAQEBAAAAAAAAAAAAAAABAgMEBf/EACgRAQEAAgICAQMCBwAAAAAAAAABAhEhMQMSQVFhcSIyE0JigZGx4f/aAAwDAQACEQMRAD8A6gAfJeMAAAAAAABnLci5MtzKvOy79kYRzV6l5dy0IM0aHTFQrMsVmL0K3ABlGiAQOiolsUuXlsUMZFLl4lC8BiRIANjMXAOaLQLFYFjc6UM5bmhnLcqxAAKoAAAAA1wtPNJclqz0zDB07R73r+huYtZAAQAAAAAAAAUlE4sS7u3BaefE7a07Jv6ueeJiKKJbMiWZlvAvmRD1KloE3sRlGUuC6EXGZFGCbF2yuUR3Ll7FMpKdixSQ1oWzIZkUBNicoylwXQqtCcyImVJvQvmRSQIZZSAANtAAAGmHp5pJcN34GZ34KnZX4y9uBLUdIAMIAAAAAAAAAFK1TKm/q4HNip3duC9zApmYuy7F2ZkplsqHYoWgTlRD0JrQsCl2MzL7CGc2OxXw433b0S+bOtRPK6ch2Hw6y89Dfjw9spKsm6xpU8RU62Z2e3WyLySN8LjJwlkqXttd7rk78UejQlFwTjtZeXceR0zO84pdpKztzb0X1zOuOXtfWz/jUvw9wpIhNlkrnn7YVBfKhlRNCQUzMXZfYTMqWWpOVE1sUIZplRSRZCIABtoAAF6NPM0vXwPURzYGnZZufsdRisgAIAAAAAAAABw46pdqPLV+J2VJ2TfI8lu+vMuKxIAsSsiNCiL3LFCsy1ysi0VM61WMVeTsvrYpi8QqcbvfgubPLp0p1m5zdoL7WyS5RLh4983iLI6KvSkpaU4+ds0n4Ir/AAVees5WW/Xl8lsQ8dGPUox7szV5PwRKwNWprOVv7nd+nA9U1jPjH89t9Mp4WUbqNWGvKpk9URHo2T1jUg3vo7/mivSGE+HZZr3T4W2sbS6IlupK/Jpr8xll1fbv7FqnxcRS7V3H8XXXrwPQwXSMJ6Pqy5PZ+DPP+NXpdpNx/F1o+UjRUadVNwtGpu4PRPwMesvc/vE09oHk4DHOL+HU8E3unyfcetc5Z43G6rNmmYFhY4srQLFYlrm4oZy3NLmcirEAAqhanC7S5+xU7cBT0cuei8CVHUlbQkAwgAAAAAAAAAVnKyb5AcmPqbR838jkJlK7bfHUg3FaR2JIjsSEGZmjMzOQEqSSbey1b7iDh6WrWgo/ef5L6RfHj7ZSEm65oJ16jb0gvyjy8WK9V1ZKnTVoLZbKy+0+4tV/l0Yx+1V1fPLy9vzO3ovDZIXfalq+5cEevLKSe3+HS0wuEjT21lxk93+iOgMHittu650yptXSdtdVezLzmkm27JatlMyWrdkk3c8fG4qVS9r/AA468r8E38kdfFhcvwuM27MNjnUm4ZVks997c2cvSGCcH8Sney1st4967jp6FpWjKf3nZeC/f2O6ZvPL0y/T0tuq8aolWhmS/mwWqX2kdHROKzLI+1Hbvj+xyTXwaqa7L1/xe68vkTXXwqykuy+t/i917luMs1PzDT3gAcWVZlS0ypi9oEMkhjHtYAA6NJhG7SXE9aMbJJbI5MBT3l5L5nYYtSgAIgAAAAAAAAcePqbR838jrk7a8jyqk7tvmWRYqADarKROcqDnaytmGUqjQs5Fcp4/SmtWMO6EfV/ue0eLjP6iP91P5HbxcW37NYox8s9dQ4LJHyer9z2c/ceBi4ydaSi7SbVne32VxPUwNKcYtTd3fTXNZeI8n7Zz8F6deUzrzUIuT2Xq3yNked02+pH+75MxhjMspEk3XDWrVat7ReVcIrTzfEyeIeRUlG3Wu2t29rM9fo6rH4aSaTitVs733POrSUq8cn3o6rZtbv65HomWrcdaka38PYoRyxjHkkv1NLXKl4Hk3u8sPN6ao9WMuUreT/4jmxsc1KjPirx+v9SekKFVZpSleLlz9NBV/p4f3v3kezHGSY/PLpJ09PB1bwg/wr1Ns5ydHf8AnDwfuzpPHlf1Vzq17jKIFhORXKUZqZy3LIsQTFXaS3ehB1YCnq5ctF4lo7KcbJJcCwBhAAAAAAAAAAhsDlx1TTLz1fgcRerPM2/qxQ3FAAVUgvEmxjTLNGhDRQdDQ8XplONSE+5Pzi/+HrXOTpOhmg3xh1vLj9dx08WX6lx7cPSTy1IVFs1GS77ftY9hO+q2evkeXTj8Wjl+3S1XNx5fXJG/RGJTXw3utu+PLyN+Tx7x/C2cPSR5GPeerGF+rHd7W4yfoelUnZNvZJvyR87ShOpJ23k23ySvd37h4fm/Qxa/w6nNxp3y85cFzZ6mDwMaeu8ub09Ea4PDqCyrzfFs6bGfJ5LnxOi5bZl4E2Mq01FNt2SVzlJplwdN1NIx73J+Wi936GPSPVhSp8Usz8fpszoJ1qrm+zHV8klsvrvEH8atf7Kd/wDFber9z142Y6n05rc4eth4ZYRjyil52NDSwseSzbCsCxWRW43oaGctxchll2QS4Hq0oZUly9zjwNO7zcvc7yZLQAEQAAAAAAAAObHVLK3GXsdJ5depmk3w2XgWDMAG2gAAaR2JKxkTmRnbKWZl8xWzJRBaBGVkrQkHj4inKhUU49l7crcYsnE0M386lfm0u1GXM9WrGMk4y1T+rnj1IToSzRd487aPukj14Z+3zz/tuVrSxsakXCbyt6Ztk/0OzC4aNNWXHdvdnnuNKrr/AOc3z7LZCwuIp9m7X4WpL0ZjLDfEuvtUsenVxMINZna/dfzOk+dxDrTtnhLS67LW50fHxMtEpLwjk/Nj+DqTmHq9avXjBXk7d3F+CPFxFadeWWKtFcOC75F/4K3WrVEu6+aT8/8ApWri7/y6MWk9LrtyN44yft5v1+FkMVUUI/Bp6/ekt2+X14Hf0fhfhx17UtX8kZ9H9HZOtJXlwW6j+532Zxzy/ljNXBGZDMjG0RMqWbuRlZmiCC2Vm2Dp3lf7vvwLCOyhTyxS9fE0AIAAAAAAAAAAA58ZUtG3GWnlxPPNcTUzSfJaLwMjcigAKoAAJAByrAjQzRoaxUKzLFZi9CpDRIMo46/RcJaxeV+sfQ5v4TEQ7Luvwy09GeygeieXKTXbftXjSrYpcJf6J/Ip/wDVL7y9IHty2KEvl/phcvs8mn0VJu85enWl6s9PC4aEF1V57t+ZcvAx/Eyy7TaQAEZgA5otAsVgWNzpQ76FPKrcd34nLhoXfctTuJQABAAAAAAAAAMMXUtHvei+Zuebi6maXctP1LBiADbQAAAAAvGJOVCOxJnTKMpXMXZmS8CcxK1KloEgnKhlRINaFMwzEMGdiyZOVFY7lyzkRlRDdixSQoZhmIBNi+VDKiQa0KvQjMTMth4XfctTN4HXh00u96m8WZGkNjMqLAA0oAAAAAAADLE1MsXzei8TzADU6WAANKAAAAANI7EgEZGZgGcgsWgASdkWABsZtCwBzRMS4BqKFJAFoiwAMI0AB0VWZ14anZd71/QA55DWxeOwBJEWABpQAAAAAAAH/9k=",v6="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAACoCAMAAABt9SM9AAAATlBMVEXxqyLzuEP92nnztj7wqBj813T+3X3ysjXzuELysC/xrCTwpxfxrSjysTPytDnyry31vUj70Wv5zGL3xFX4x1v6z2j5yV71vEf2wE/71G+n1p4iAAAGXElEQVR4nO2d6W7jMAyEndpxczTpfb3/i+6iuWxLlEgJHAag+H8R8VubnaEouesr47FzE0/dqjKerFPAxWMtrN46A2CsamEdrDPAxXM1LOsMgHGshXW0zgAYq1pYz9YZ4OJQC2tjnQEwNrWwPImsVS2snXUKuDjWwnIlsmphba0zwMW2GpZ1BsDoa2E5Elm7VS0sTx66Fpan8r6pheXKQ9fCss4AGH0tLEfl/QKpHJYvD10Hy5mHroPlzEPXwXLmoatgeRJZ16RLYXnz0FWwrDMARl8Ly1F5302ekDJY7jx0BSyX5b0Ulj8PXQHLOgNg9NO0S1g58tC7ad5FsBx66GJYHj10MSxHIutplngJLI8euhSWU5FVBstRed/OMy+AZZ0BMPpF5mJWbst7CSyfHroMlt/yXgDLUYv0eZm7GJZ1BsDog9yFrLx66CJYjkTWIUheCss6A2BswuRlrByLLDksVQ89kKH5q1Qcw+xlsHRF1pqKh2/V341HJH0ZLNXyfhwfqDB4tLaR9GWwNFc3/FCwxg8DWIHIksJSLe/DG/VcjQZ6JVLehbBUPfSwpmB9GjxYSw8thqVb3p/It9BigyQKQAJL10N/U7DWBg9W4KHFsFSXN3xQD9b7nZR3ESxdDz28UrAMuo2hh5bC0l30QL2Fb/dS3iWwlMvsIwFrtGgKhR5aCEvXQ5OSdL1X/d1oxMu7BJbuPjQlSccfg7cw4qFlsJQ3KihJOur+bDwoBmxYypZjR7yFX3fioWWwlBe4icMaLbqNcZElgKW86OE9DuvXoLxHPbQIlrIyJCTp+HI/IosPS3sfmpKkFg1lmgITlvY+9CEOy6LrR4ksPizlBRKS1KLrR5d3Lixty0FI0leDB4vw0AJY2sZ/H5WkJl0/urwzYakvmpCk91XembDUj+r0MVgmXb9EeWfC0p7ljkvScdjjd6UpD82GpT7sN3xG38L5trT2Ik6RBMGBpf4HfIiymj9mmPHMcMxICkt9iVt64/4SbxiTmBBZPFjqxn94ycPSXsMpaA/NhaW+uzJ8ZV9CkKFOiSwWLP1iMfzmYL2COjUZFHlYgFnu3FuI2jpMiiwWLP01RiXplBVq0yJd3hmw9LftqC7pNX5BrFIemgdL/w0gJOntwUJdjJAp73lYAOM/zOdHA1awDmCOVRYW4n916gD3ASzYxFGuvOdhoc9DByMPIJ/TZTw0Bxb6wFzYXwb5nI7xFuZgoZvgYX8Z9tNpD82BBVvqOZYjD8CNw5zIysKCb54v+8son5P10AxY8AnFhZgHjkjmy3sGFvw89ELMI4ezGKzSsODnoRdiHuVzusSYERsWbKmXmPeXkfNGjPKehoUffZ31l5Hnm7IeOgsLP4A+P2UB3DbMeugcLPzm+eyUBc7ndOQsNx8W/srIWX8Z53M4HjoHC7fWa0zfQuTvckRWEpbByYZJywE7IMljlYCFHySbthxwPqdjeegMLOBizzFpOWBn/lgiKwXLYAD9NtKGPYTC8dBpWAZXRt5aDtjTTczyTsOyuFPsesoCfK6Cy4qEZXCn2LXlAL7HgeWhk7CQqz3HreWAHY/klncSlsXx0UvLAepzuB46BcviyshLywHpczquh07AMrky8jLSBv47zPPQCVgWn104j7ShD4IxPXQCFnS55zi3HKA+pxOILAqWyZWRp1N08LNNAlZxWCZXRv7dNQY/bM/10DQs7HpPcWo5APdzTsEXWQQskysj/1oO8PPjbA9NwjL57MLwMI74++ok5T0Ky+he7sN2izekIlYxWI7u5eZ7aAqWdQbAEJX3GCzX93JLYTn+7IIYlqfPLgg8dByW008XlsGyzgAYMpEVgeWovMu/orP8F64/uyCE5enThUKRFcLy/dkFISy3ny4sgOVJZMlZLWA1Dy2AZZ0BMOTlfQHLkciSeugQVvPQfFieyrvUQwewmocWwLLOABgFImsOy1F5LxFZc1jNQ/NhefLQReV9Cqt5aAGs5qH5sDyJrEJWN1jNQwtgWWcAjBIPPYPlSGQVeegZrOah+bBaeRfAah5aAMs6A2AUl/cLrFbeBbAclfdCD32D1Ty0AFbz0AJYzUPzYTWRJYDlqEVa7KGvsKwzAEaFyDrBauVdAMuRyCr30GdYrbwLYDUPLYBlnQEw6sr7f1jNQwtgORJZleV9tfoH9BxK3B2uh+oAAAAASUVORK5CYII=",x6="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOEAAADhCAMAAAAJbSJIAAAAtFBMVEUAAAD/////twD+/v7/sgD/tQA5OTlVVVXi4uLPz8///vv//PT/0Hy8vLze3t4wMDD/2pj/8dpubm7/vi//5rv/47Kzs7PY2Njz8/P/9ub/y2n/68n/36UkJCRkZGSpqan19fVMTEyfn5+RkZH/1oqBgYH/xEuGhoYZGRn/6cT/uhj/yFx3d3f/8NX/z3VsbGxhYWEqKioPDw//wkT/2ZQ/Pz//vzZOTk7/xlS6urr/4KsbGxs8v6SlAAAIwUlEQVR4nN3da1vTTBAG4KbNQg+UM205tnJUREFAxdf//7/etKDOhibZzOwzu+l8U69LvM202ZmdbFqt4njcWvMWWyU/J0ScTXuTxGt0Q5NoXI394haxGVr1Nx5HAF5MQpAvGuFdBwWMRNiD+eIQrs2AwBiE60hfDMIHLDC88AMYGFz4DQ0MLvS8RItP+AsODCwEf41GIMTnaGDhhQIwrBC6lolBeKMBDCrs6gg/bi2JjxrALRVgUXQmvfM1sPBcy7I0Fn/UvYEKEU0Zd+Ebc3YHFOLKemfh3Nh7hAmVgOXCzNj5sOLC7DL+XHFhRvy+4sIsUTGfxXiEnaS36sJOsrvywln8wn69yMsTxOrGI+/T0a2pF3tHx5YRsgnnzTd4So1p1wtj0peBRQQsw70B23V5b8hbSkzO4xU+8YAZ8ZoKx9EKP6VMYLudfvpHTCbRCj9zL2F2EY/oRYxWyAdmn0Qq9N/Y8AMc8JM0S1Mq9P9l6ke4IxG2qdD/4I0f4b5AaH+Zegd6Ep5IPocn5Lt0FqtwQyBMD4kQ0Dn2I3wR3Cx+0CQdxSpkLtkWwm0qPItU2Bd80VhJ2vEP9CM85AvtJB3GKjwWCK0kvY9V+B//YwhPUj/CS7bQ7KGT1I/wiC98psJ4e217bGG6Q5IUsGTzJfSUpPF2hPm1k52kmF1EH0J+7aSQpF6E7NrJLu8xSepFyK6dzCU+Sb0I2bWTRpJ6EXJrJ5Uk9SLk1k4qSepDyK6d0i8KSepDyK2ddJLUh5BbO9lJehWx8ID5MdRJUh9CZu1k2ipJ6kPIrJ3MBhXipvc8CJm1E01SRK/bo5C7ogHvjPoTMmsnrST1IGTWTukxFT6sLwk/O21yIbd2skZpCv7uWe/iNLyQVzuZr06jblmMhZ1+uZBXO1lJWqHcFM1lyoW82sm4AhdGyZiNXMiqndyS9J9RsOQRA3m1Ex2icSLyJ97EQl7tVCdJX4nsNYFYyKqdrCkhRyJ3e1gsZNVOdZN0QWRuvYmFrNrJ9GsD2XtvYiGndmIk6Zw4DSPk1E7moD+ojvyQNPMiioW8+33qEu2vOzaR1cuRAkUze1X/DyalzSrmPJFUKJvZq4zUWvuwZjOlQsnMnhNxXzqrIRVuCybaXMJuG3NW4FKhZGbPKWiZxRrWkAoFM3tuQUeKWCWGVCiY2XMUXoYVSmb2HIWBr6FgZs8xQn8OBTN7bmHvbgT4LuXuOzlHekKFnLEwoZA/s+cW1tBUJ+E0T4VC/syeW9idcVazRijkz+w5hXmxLuFFACH6Eh7SS5iwHmeXAZG1Uzu30x+mxgfXTlY7J0yfBls7pQfyT6FUCK2drAcV+I+XyoTQ2sna6Oc/TiMTXgOFdsuRvzcjEyJrp9R+Up/96KUI2Edewm0PdwqxEFg7WTWF6MlLkRBYO1k9NtE0Sq9u0JMycbWTeYKfCFIYXVJy42ona0HaSdY1hR0ihNVO1sAU6Imvojili31Y7WQvSJPfmsKfVIgCWq0LyJEuJXFGkhRVO1mdfMh5J2WxS4So26E9LwV7TKEg7vDCXOtC+/jae/LTQQ3v3J0CdNhgYXyg3zTso5PKIte6UL1TLIJMD0jOTioRWkDgAHhRdOlFFByeVBS51gXsQZPiGFn/gGvfV9H8sBf3m11ZMA5+fbCTaNukjgfsOV7CL6Jq511wVrQTe8alv/+84RS3TpfwyC+QJbzJTWy5/iyni5gOIhDmLqJjJF9cPrFm2zOQJ9xlCV1G+k3bN5BZWQ4ZRKcbS7ofiZCTp4lLjl57B3KFp7PaY9ouezjZgjQWYeu07lV0OaTHbPgHCjo8Y7fDj/8KHVo6ph+VcP56mjrC20phegIAirp0p8PEGelQLJtbBFDYhzw9L32FCxVWb6WmxxEKs9i6mg7Hm8uDllmVG43mMwQI7SXf1+qsIu4UaOGoTt/RXGKAUGG3TrsDcqdAC2mSVm3hpAcgIFJ4VqMpl29dNEM4pY3VqkvouXWhIxyTj2FF9eu9daEjpH3VisEi760LFeE6/RiWP7Lgv3WhIjx33mcEtC5UhD2SpOXVL6B1oSIkXYDyJhSidaEh/E6TtLT6TXeaKbygwrLpN0jrQkNIGo7l1S9sQYoWkk5V6eQUpnWhILSmbr4WC80eGAgTXjlWv6DWhYLwl1v1i2pdKAhp9VvShEK1LhSEbtUvrHWBF9L9t+RHkdC0wXcKoNCqfguTFNe6wAtJq7R4UhrYusALaZI+FyUpsHUBF9KBlMKHTpCtC7jw3KUJhWxdwIUuTSho6wIuTKqrX9BempLQGtAsGMHAti7QwovqJhS4dYEWOjShwK0LtJA2oZaPYKBbF2DhWnUTCt26AAvp7OLyEQx46wIsrGxC4VsXYOGkqvrFty6wwt9VIxgKrQus8K6qCaXQusAKq0YwNFoXWGHFCIZK6wIrrGhCqbQuoEJrEur9CMb8rIuGCyuaUPOzLhouHJc2oRZnXTRcWD6CYQaNF5aPYLyeddFsYWn1+/YEc7OFo7Lq9+2si2YLeyVNKHP9+ofNFpadmvHnbYerI8zV93/Pumi2kO7J5HYszGAlhMPCdfe/sy6aLaSLNmtSiBzT2WyhNYRBexjk8LVmC+kgTfZtmr7P0aYLrQMJ5rfERaTGOju+2UK6bJv3MU6u9/ZeTvr2Q/yNFrZyb914jc6S32uscGpzlkTTha3KZ4RVhYjTbe7LhUky1hRCjgkblRKTm5GmEAG0Sqj3wF+toSKQefawgDg/FElTCDtwcbj8GejXFxlqCnGnTF0tIWa/tdtSFgLfUfuYf5Y9++Xb2+80heL3tJbF2uj1zvd2A5xN//w0RSH8QMKz6XgyT85Jb0rWFopC3TMlQwihSRqDEPdK+liEP1ddCHxheyRCP28uj1jIP8a9IULlw3kDCNmvGmiKUPn0YX0h85UtzREGWq7pCYNeQQ0h5wV0TRJ2A6231YRhP4J4YU/1PQoFARQOv4XGLQIk7PSWnv39PxjGBd18OpN7AAAAAElFTkSuQmCC",b6="/ChessInsights/assets/PuzzleImg-CXfQmw24.jpeg",w6="/ChessInsights/assets/TimeSpent-BZl7BIY1.png";function C6(e){let t=0,n;for(n=0;n>n*8&255;r+=`00${o.toString(16)}`.slice(-2)}return r}function S6(e){return e=e.toUpperCase(),{sx:{bgcolor:C6(e)},children:e.split(" ").length>1?`${e.split(" ")[0][0]}${e.split(" ")[1][0]}`:`${e.split(" ")[0][0]}`}}function k6(){return C.jsx(mC,{sx:{minWidth:900,backgroundColor:"#DEE2E6"},children:C.jsx(gC,{children:C.jsxs(Le,{sx:{display:"flex",flexDirection:"row",justifyContent:"space-between"},children:[C.jsxs(Le,{children:[C.jsxs(Le,{variant:"h5",component:"div",sx:{display:"flex",flexDirection:"row",padding:"10px"},children:[C.jsx(D$,{sx:{marginRight:"10px"},...S6(`${Qu}`)}),C.jsx(Le,{sx:{margin:"10px"},children:Qu.toUpperCase()})]}),C.jsxs(Le,{sx:{mb:1.5},color:"text.secondary",children:[EC.toUpperCase()," League"]}),C.jsxs(Le,{variant:"body2",children:[PC," Followers",C.jsx("br",{}),MC]}),C.jsx(Le,{children:C.jsx("a",{href:RC,style:{color:"inherit"},children:"View Profile"})})]}),C.jsxs(Le,{sx:{display:"grid",gridTemplateColumns:"1fr 1fr",margin:"10px",padding:"10px"},children:[C.jsx(Ul,{type:"Rapid",value:Dt[3],img:y6,best:Dt[4]}),C.jsx(Ul,{type:"Blitz",value:Ut[3],img:v6,best:Ut[4]}),C.jsx(Ul,{type:"Bullet",value:Bt[3],img:x6,best:Bt[4]}),C.jsx(Ul,{type:"Puzzle",value:vo[0],img:b6,best:vo[1]})]})]})})})}const qf=e=>{const t=e.data;return C.jsx(C.Fragment,{children:C.jsxs(Fo,{sx:{minWidth:"100%",margin:"10px",padding:"10px",borderRadius:"10px",textAlign:"center",color:"black",fontFamily:"poppins",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},children:[C.jsx("h2",{children:"Match History"}),C.jsx(g6,{data:t})]})})},A6=["id","dataIndex","classes","color","slots","slotProps","style","onClick"];function P6(e){return de("MuiBarElement",e)}fe("MuiBarElement",["root"]);const M6=e=>{const{classes:t,id:n}=e,r={root:["root",`series-${n}`]};return ce(r,P6,t)},E6=G(rl.rect,{name:"MuiBarElement",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>({stroke:"none",fill:e.isHighlighted?Bi(e.color).brighter(.5).formatHex():e.color,transition:"opacity 0.2s ease-in, fill 0.2s ease-in",opacity:e.isFaded&&.3||1}));function R6(e){const{id:t,dataIndex:n,classes:r,color:o,slots:i,slotProps:s,style:a,onClick:l}=e,u=H(e,A6),c=lk(),{isFaded:d,isHighlighted:f}=yS({seriesId:t,dataIndex:n}),h={id:t,dataIndex:n,classes:r,color:o,isFaded:d,isHighlighted:f},p=M6(h),g=(i==null?void 0:i.bar)??E6,w=nt({elementType:g,externalSlotProps:s==null?void 0:s.bar,externalForwardedProps:u,additionalProps:b({},c({type:"bar",seriesId:t,dataIndex:n}),{style:a,onClick:l,cursor:l?"pointer":"unset"}),className:p.root,ownerState:h});return C.jsx(g,b({},w))}const Wl=(e,{hasNegative:t,hasPositive:n,borderRadius:r,layout:o})=>{if(!r)return 0;const i=o==="vertical";return e==="top-left"&&(i&&n||!i&&t)||e==="top-right"&&(i&&n||!i&&n)||e==="bottom-right"&&(i&&t||!i&&n)||e==="bottom-left"&&(i&&t||!i&&t)?r:0},T6=["style","maskId"],I6=e=>`inset(0px round ${e.topLeft}px ${e.topRight}px ${e.bottomRight}px ${e.bottomLeft}px)`;function $6(e){var n,r;const t=e.ownerState;return C.jsx(rl.rect,{style:b({},e.style,{clipPath:(e.ownerState.layout==="vertical"?(n=e.style)==null?void 0:n.height:(r=e.style)==null?void 0:r.width).to(o=>I6({topLeft:Math.min(o,Wl("top-left",t)),topRight:Math.min(o,Wl("top-right",t)),bottomRight:Math.min(o,Wl("bottom-right",t)),bottomLeft:Math.min(o,Wl("bottom-left",t))}))})})}function O6(e){const{style:t,maskId:n}=e,r=H(e,T6);return!e.borderRadius||e.borderRadius<=0?null:C.jsx("clipPath",{id:n,children:C.jsx($6,{ownerState:r,style:t})})}function _6(e){return de("MuiBarLabel",e)}const Zf=fe("MuiBarLabel",["root","highlighted","faded"]),L6=e=>{const{classes:t,seriesId:n,isFaded:r,isHighlighted:o}=e,i={root:["root",`series-${n}`,o&&"highlighted",r&&"faded"]};return ce(i,_6,t)},N6=e=>{const{barLabel:t,value:n,dataIndex:r,seriesId:o,height:i,width:s}=e;return t==="value"?n?n==null?void 0:n.toString():null:t({seriesId:o,dataIndex:r,value:n},{bar:{height:i,width:s}})},j6=["seriesId","dataIndex","color","isFaded","isHighlighted","classes"],F6=G(rl.text,{name:"MuiBarLabel",slot:"Root",overridesResolver:(e,t)=>[{[`&.${Zf.faded}`]:t.faded},{[`&.${Zf.highlighted}`]:t.highlighted},t.root]})(({theme:e})=>{var t,n,r,o;return b({},(t=e==null?void 0:e.typography)==null?void 0:t.body2,{stroke:"none",fill:(o=(r=(n=e.vars||e)==null?void 0:n.palette)==null?void 0:r.text)==null?void 0:o.primary,transition:"opacity 0.2s ease-in, fill 0.2s ease-in",textAnchor:"middle",dominantBaseline:"central",pointerEvents:"none",opacity:1,[`&.${Zf.faded}`]:{opacity:.3}})});function z6(e){const t=es({props:e,name:"MuiBarLabel"}),n=H(t,j6);return C.jsx(F6,b({},n))}const D6=["seriesId","classes","color","style","dataIndex","barLabel","slots","slotProps","height","width","value"],B6=["ownerState"];function U6(e){const{seriesId:t,classes:n,color:r,style:o,dataIndex:i,barLabel:s,slots:a,slotProps:l,height:u,width:c,value:d}=e,f=H(e,D6),{isFaded:h,isHighlighted:p}=yS({seriesId:t,dataIndex:i}),g={seriesId:t,classes:n,color:r,isFaded:h,isHighlighted:p,dataIndex:i},w=L6(g),m=(a==null?void 0:a.barLabel)??z6,v=nt({elementType:m,externalSlotProps:l==null?void 0:l.barLabel,additionalProps:b({},f,{style:o,className:w.root}),ownerState:g}),{ownerState:y}=v,x=H(v,B6);if(!s)return null;const S=N6({barLabel:s,value:d,dataIndex:i,seriesId:t,height:u,width:c});return S?C.jsx(m,b({},x,y,{children:S})):null}const W6=["bars","skipAnimation"],H6=({layout:e,yOrigin:t,x:n,width:r,y:o,xOrigin:i,height:s})=>b({},e==="vertical"?{y:t,x:n+r/2,height:0,width:r}:{y:o+s/2,x:i,height:s,width:0}),T1=({x:e,width:t,y:n,height:r})=>({x:e+t/2,y:n+r/2,height:r,width:t});function V6(e){const{bars:t,skipAnimation:n}=e,r=H(e,W6),o=Oa(t,{keys:i=>`${i.seriesId}-${i.dataIndex}`,from:H6,leave:null,enter:T1,update:T1,immediate:n});return C.jsx(k.Fragment,{children:o((i,{seriesId:s,dataIndex:a,color:l,value:u,width:c,height:d})=>C.jsx(U6,b({seriesId:s,dataIndex:a,value:u,color:l,width:c,height:d},r,{style:i})))})}const Jf=(e,t)=>{const n=`${e}-axis`,r=`${e}Axis`;return t===(e==="x"?Od:dg)?`The first \`${r}\``:`The ${n} with id "${t}"`};function G6(e,t,n,r,o,i){const s=r[n],a=i[o],l=e?s:a,u=e?a:s,c=e?n:o,d=e?o:n,f=e?"x":"y",h=e?"y":"x";if(!yh(l))throw new Error(`MUI X: ${Jf(f,c)} should be of type "band" to display the bar series of id "${t}".`);if(l.data===void 0)throw new Error(`MUI X: ${Jf(f,c)} should have data property.`);if(yh(u)||hS(u))throw new Error(`MUI X: ${Jf(h,d)} should be a continuous type to display the bar series of id "${t}".`)}const K6=["skipAnimation","onItemClick","borderRadius","barLabel"];function X6({bandWidth:e,numberOfGroups:t,gapRatio:n}){if(n===0)return{barWidth:e/t,offset:0};const r=e/(t+(t-1)*n),o=n*r;return{barWidth:r,offset:o}}const Y6=()=>{const e=GN()??{series:{},stackingGroups:[],seriesOrder:[]},t=zn(),n=JN(),{series:r,stackingGroups:o}=e,{xAxis:i,yAxis:s,xAxisIds:a,yAxisIds:l}=t,u=a[0],c=l[0],d={};return{completedData:o.flatMap(({ids:h},p)=>h.flatMap(g=>{const w=r[g].xAxisId??r[g].xAxisKey??u,m=r[g].yAxisId??r[g].yAxisKey??c,v=i[w],y=s[m],x=r[g].layout==="vertical";G6(x,g,w,i,m,s);const S=x?v:y,A=v.scale,P=y.scale,M=UC(r[g],i[w],s[m]),O=S.scale.bandwidth(),{barWidth:E,offset:T}=X6({bandWidth:O,numberOfGroups:o.length,gapRatio:S.barGapRatio}),_=p*(E+T),{stackedData:$}=r[g];return $.map((R,L)=>{var X,re;const N=R.map(Y=>x?P(Y):A(Y)),z=Math.round(Math.min(...N)),I=Math.round(Math.max(...N)),F=r[g].stack,D={seriesId:g,dataIndex:L,layout:r[g].layout,x:x?A((X=i[w].data)==null?void 0:X[L])+_:z,y:x?z:P((re=s[m].data)==null?void 0:re[L])+_,xOrigin:A(0),yOrigin:P(0),height:x?I-z:E,width:x?E:I-z,color:M(L),value:r[g].data[L],maskId:`${n}_${F||g}_${p}_${L}`};d[D.maskId]||(d[D.maskId]={id:D.maskId,width:0,height:0,hasNegative:!1,hasPositive:!1,layout:D.layout,xOrigin:A(0),yOrigin:P(0),x:0,y:0});const K=d[D.maskId];return K.width=D.layout==="vertical"?D.width:K.width+D.width,K.height=D.layout==="vertical"?K.height+D.height:D.height,K.x=Math.min(K.x===0?1/0:K.x,D.x),K.y=Math.min(K.y===0?1/0:K.y,D.y),K.hasNegative=K.hasNegative||(D.value??0)<0,K.hasPositive=K.hasPositive||(D.value??0)>0,D})})),masksData:Object.values(d)}},Hl=({layout:e,yOrigin:t,x:n,width:r,y:o,xOrigin:i,height:s})=>b({},e==="vertical"?{y:t,x:n,height:0,width:r}:{y:o,x:i,height:s,width:0}),Vl=({x:e,width:t,y:n,height:r})=>({y:n,x:e,height:r,width:t});function Q6(e){const{completedData:t,masksData:n}=Y6(),{skipAnimation:r,onItemClick:o,borderRadius:i,barLabel:s}=e,a=H(e,K6),l=Oa(t,{keys:c=>`${c.seriesId}-${c.dataIndex}`,from:Hl,leave:Hl,enter:Vl,update:Vl,immediate:r}),u=Oa(n,{keys:c=>c.id,from:Hl,leave:Hl,enter:Vl,update:Vl,immediate:r});return C.jsxs(k.Fragment,{children:[u((c,{id:d,hasPositive:f,hasNegative:h,layout:p})=>C.jsx(O6,{maskId:d,borderRadius:i,hasNegative:h,hasPositive:f,layout:p,style:c})),l((c,{seriesId:d,dataIndex:f,color:h,maskId:p})=>{const g=C.jsx(R6,b({id:d,dataIndex:f,color:h},a,{onClick:o&&(w=>{o(w,{type:"bar",seriesId:d,dataIndex:f})}),style:c}));return!i||i<=0?g:C.jsx("g",{clipPath:`url(#${p})`,children:g})}),s&&C.jsx(V6,b({bars:t,skipAnimation:r,barLabel:s},a))]})}function q6(e){const{id:t,offset:n}=e,{left:r,top:o,width:i,height:s}=rr(),a=b({top:0,right:0,bottom:0,left:0},n);return C.jsx("clipPath",{id:t,children:C.jsx("rect",{x:r-a.left,y:o-a.top,width:i+a.left+a.right,height:s+a.top+a.bottom})})}function Z6(e){return de("MuiChartsGrid",e)}const I1=fe("MuiChartsGrid",["root","line","horizontalLine","verticalLine"]),J6=["vertical","horizontal"],eD=G("g",{name:"MuiChartsGrid",slot:"Root",overridesResolver:(e,t)=>[{[`&.${I1.verticalLine}`]:t.verticalLine},{[`&.${I1.horizontalLine}`]:t.horizontalLine},t.root]})({}),$1=G("line",{name:"MuiChartsGrid",slot:"Line",overridesResolver:(e,t)=>t.line})(({theme:e})=>({stroke:(e.vars||e).palette.divider,shapeRendering:"crispEdges",strokeWidth:1})),tD=({classes:e})=>ce({root:["root"],verticalLine:["line","verticalLine"],horizontalLine:["line","horizontalLine"]},Z6,e);function nD(e){const t=es({props:e,name:"MuiChartsGrid"}),{vertical:n,horizontal:r}=t,o=H(t,J6),{xAxis:i,xAxisIds:s,yAxis:a,yAxisIds:l}=zn(),u=tD(t),c=l[0],d=s[0],{scale:f,tickNumber:h,tickInterval:p}=i[d],{scale:g,tickNumber:w,tickInterval:m}=a[c],v=cc({scale:f,tickNumber:h,tickInterval:p}),y=cc({scale:g,tickNumber:w,tickInterval:m});return C.jsxs(eD,b({},o,{className:u.root,children:[n&&v.map(({formattedValue:x,offset:S})=>C.jsx($1,{y1:g.range()[0],y2:g.range()[1],x1:S,x2:S,className:u.verticalLine},`vertical-${x}`)),r&&y.map(({formattedValue:x,offset:S})=>C.jsx($1,{y1:S,y2:S,x1:f.range()[0],x2:f.range()[1],className:u.horizontalLine},`horizontal-${x}`))]}))}function rD(e){const{onAxisClick:t}=e,n=Ig(),r=Ar(),{axis:o}=k.useContext(rs),{xAxisIds:i,xAxis:s,yAxisIds:a,yAxis:l}=zn();return k.useEffect(()=>{const u=n.current;if(u===null||!t)return()=>{};const c=d=>{var m;d.preventDefault();const f=(o.x&&o.x.index)!==void 0,h=f?i[0]:a[0],p=f?o.x&&o.x.index:o.y&&o.y.index;if(p==null)return;const g={};Object.keys(r).filter(v=>["bar","line"].includes(v)).forEach(v=>{var y;(y=r[v])==null||y.seriesOrder.forEach(x=>{const S=r[v].series[x],A=S.xAxisId??S.xAxisKey,P=S.yAxisId??S.yAxisKey,M=f?A:P;(M===void 0||M===h)&&(g[x]=S.data[p])})});const w=(m=(f?s:l)[h].data)==null?void 0:m[p];t(d,{dataIndex:p,axisValue:w,seriesValues:g})};return u.addEventListener("click",c),()=>{u.removeEventListener("click",c)}},[o.x,o.y,t,r,n,s,i,l,a]),C.jsx(k.Fragment,{})}const oD=["xAxis","yAxis","series","width","height","margin","colors","dataset","sx","tooltip","onAxisClick","axisHighlight","legend","grid","topAxis","leftAxis","rightAxis","bottomAxis","children","slots","slotProps","skipAnimation","loading","layout","onItemClick","highlightedItem","onHighlightChange","borderRadius","barLabel","className"],iD=e=>{const{xAxis:t,yAxis:n,series:r,width:o,height:i,margin:s,colors:a,dataset:l,sx:u,tooltip:c,onAxisClick:d,axisHighlight:f,legend:h,grid:p,topAxis:g,leftAxis:w,rightAxis:m,bottomAxis:v,children:y,slots:x,slotProps:S,skipAnimation:A,loading:P,layout:M,onItemClick:O,highlightedItem:E,onHighlightChange:T,borderRadius:_,barLabel:$,className:R}=e,L=H(e,oD),z=`${Ka()}-clip-path`,I=M==="horizontal"||M===void 0&&r.some(V=>V.layout==="horizontal"),F={scaleType:"band",data:Array.from({length:Math.max(...r.map(V=>(V.data??l??[]).length))},(V,j)=>j)},D=b({},L,{series:r.map(V=>b({type:"bar"},V,{layout:I?"horizontal":"vertical"})),width:o,height:i,margin:s,colors:a,dataset:l,xAxis:t??(I?void 0:[b({id:Od},F)]),yAxis:n??(I?[b({id:dg},F)]:void 0),sx:u,highlightedItem:E,onHighlightChange:T,disableAxisListener:(c==null?void 0:c.trigger)!=="axis"&&(f==null?void 0:f.x)==="none"&&(f==null?void 0:f.y)==="none"&&!d,className:R}),K={onItemClick:O,slots:x,slotProps:S,skipAnimation:A,borderRadius:_,barLabel:$},X={onAxisClick:d},re={vertical:p==null?void 0:p.vertical,horizontal:p==null?void 0:p.horizontal},Y={clipPath:`url(#${z})`},q={id:z},te={slots:x,slotProps:S,loading:P},ae={topAxis:g,leftAxis:w,rightAxis:m,bottomAxis:v,slots:x,slotProps:S},he=b({},I?{y:"band"}:{x:"band"},f),B=b({},h,{slots:x,slotProps:S}),Q=b({},c,{slots:x,slotProps:S});return{chartContainerProps:D,barPlotProps:K,axisClickHandlerProps:X,gridProps:re,clipPathProps:q,clipPathGroupProps:Y,overlayProps:te,chartsAxisProps:ae,axisHighlightProps:he,legendProps:B,tooltipProps:Q,children:y}},sD=k.forwardRef(function(t,n){const{chartContainerProps:r,barPlotProps:o,axisClickHandlerProps:i,gridProps:s,clipPathProps:a,clipPathGroupProps:l,overlayProps:u,chartsAxisProps:c,axisHighlightProps:d,legendProps:f,tooltipProps:h,children:p}=iD(t);return C.jsxs(YS,b({ref:n},r,{children:[t.onAxisClick&&C.jsx(rD,b({},i)),t.grid&&C.jsx(nD,b({},s)),C.jsxs("g",b({},l,{children:[C.jsx(Q6,b({},o)),C.jsx(ck,b({},u)),C.jsx(ak,b({},d))]})),C.jsx(ek,b({},c)),C.jsx(sk,b({},f)),!t.loading&&C.jsx(ik,b({},h)),C.jsx(q6,b({},a)),p]}))});function O1(e){const t=e.dit,n=e.color,r={highlighted:"series",faded:"global"},o=()=>{console.log(t);for(const a in t)a!=""&&(i.push(a),s[0].data.push(t[a][0]),s[1].data.push(t[a][1]),s[2].data.push(t[a][2]))};let i=[],s=[{label:"Win",data:[]},{label:"Draw",data:[]},{label:"Loss",data:[]}].map(a=>({...a,highlightScope:r}));return o(),C.jsx(Fo,{sx:{padding:"10px",borderRadius:"10px",margin:"10px",width:"100%",textAlign:"center",elevation:5,boxShadow:"0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19)"},children:C.jsxs(Vu,{children:[C.jsx(sD,{height:300,series:s.slice(0,3).map(a=>({...a,data:a.data.slice(0,10)}))}),C.jsxs(Le,{variant:"subtitle1",sx:{marginTop:"10px",textAlign:"center"},children:["Top 10 Opening as ",n]}),C.jsx("br",{}),C.jsxs(Le,{variant:"subtitle1",sx:{textAlign:"start"},children:[C.jsxs("div",{style:{display:"flex"},children:[C.jsxs("h3",{style:{textAlign:"start"},children:["      ",C.jsx("u",{children:"Opening"})]}),C.jsx("h3",{style:{marginLeft:"auto",textAlign:"end",color:"green"},children:"Win%"})]}),C.jsx("br",{}),i.map((a,l)=>C.jsxs(C.Fragment,{children:[C.jsxs("div",{style:{display:"flex",flexDirection:"row"},children:[C.jsxs("div",{children:[l,"    ",a,":"]}),C.jsxs("div",{style:{marginLeft:"auto",textAlign:"end",color:"green"},children:[(s[0].data[l]/(s[0].data[l]+s[1].data[l]+s[2].data[l])*100).toFixed(2),"%"]})]},l),C.jsx(vC,{variant:"middle",flexItem:!0})]}))]})]})})}const aD=()=>C.jsx(C.Fragment,{children:C.jsxs(Fo,{sx:{padding:"10px",borderRadius:"10px",margin:"10px",width:"100%",textAlign:"center"},children:[C.jsx(Le,{variant:"h5",sx:{marginBottom:"10px",padding:"10px"},children:"Opening Analysis"}),C.jsxs(Le,{sx:{marginBottom:"10px",display:"flex",padding:"10px",flexDirection:"row"},children:[C.jsx(O1,{dit:qu,color:"White"}),C.jsx(O1,{dit:Zu,color:"Black"})]})]})}),lD=()=>{const e=[{id:0,value:ig+lg,label:"Wins"},{id:1,value:sg+ug,label:"Losses"},{id:2,value:ag+cg,label:"Draws"}],t=t_(wi);return C.jsxs("div",{className:"body",children:[C.jsxs("h1",{className:"heading",children:["Welcome ",Qu.toUpperCase()]}),C.jsxs("div",{className:"home",children:[C.jsx("div",{className:"header",children:C.jsx(k6,{})}),C.jsx("br",{}),C.jsx("br",{}),C.jsxs(Fo,{elevation:5,sx:{width:"300px",height:"400px",margin:"auto",padding:"10px",borderRadius:"10px",backgroundColor:"white",textAlign:"center",color:"black",fontFamily:"poppins"},children:[C.jsx("div",{children:C.jsx("img",{src:w6,style:{borderStyle:"solid",borderColor:"black",borderWidth:"1px",borderRadius:"10px"}})}),C.jsx("div",{children:"Time Spent Playing"}),C.jsx("br",{}),C.jsx("br",{}),C.jsx("div",{children:`${t.days} days ${t.hours} hours ${t.minutes} minutes ${t.seconds} seconds`})]}),C.jsx("br",{}),C.jsx("br",{}),C.jsxs("div",{className:"carousel",children:[C.jsx(qf,{data:e}),C.jsx(qf,{data:e}),C.jsx(qf,{data:e})]}),C.jsx("br",{}),C.jsx("br",{}),C.jsx(aD,{})]})]})};function uD(e){const t=e.condition,n=e.changed,[r,o]=k.useState(""),[i,s]=k.useState(!1);return C.jsxs(k.Fragment,{children:[C.jsx(mT,{}),C.jsx(gT,{maxWidth:"sm",children:C.jsxs(Vu,{sx:{bgcolor:"black",height:"75vh",padding:"1rem",margin:"1rem",textAlign:"center",color:"white",fontFamily:"poppins",borderRadius:"20px"},children:[C.jsx(Le,{variant:"h4",children:"Welcome To Chess Insights"}),C.jsx(Le,{variant:"h6",children:C.jsx(DO,{id:"outlined-basic",label:"Username",variant:"outlined",value:r,onChange:a=>o(a.target.value),sx:{margin:"3rem",fontFamily:"poppins",outlineColor:"white",backgroundColor:"white",borderRadius:"10px","& .MuiOutlinedInput-root":{"& fieldset":{borderColor:"white"},"&:hover fieldset":{borderColor:"black"},"&.Mui-focused fieldset":{borderColor:"blue"}},"& .MuiInputLabel-root":{marginTop:r?"0.5rem":"0rem","&.Mui-focused":{color:"black",marginTop:"0.5rem"}}}})}),C.jsxs(Le,{variant:"h12",children:[C.jsx(KO,{variant:"contained",loading:!1,sx:{backgroundColor:"white",color:"black",borderRadius:"10px",fontSize:"1rem"},children:C.jsx(Le,{onClick:()=>{r===""?alert("Please Enter Username"):(s(!0),XO(r).then(a=>{a&&(s(!1),t(!0),n(l=>l+1))}))},children:"View Insights"})}),C.jsx(Le,{sx:{margin:"2rem"},children:C.jsx(Vu,{sx:{height:40},children:C.jsx(fC,{in:i,style:{transitionDelay:i?"100ms":"0ms"},unmountOnExit:!0,children:C.jsx(yC,{})})})})]})]})})]})}const cD=e=>{const t=e.condition,n=e.changed;return $n.useState({}),C.jsx("div",{className:"hero",children:C.jsx(uD,{condition:t,changed:n})})};function dD(){const[e,t]=k.useState(!1),[n,r]=k.useState(0),o=k.useRef(null);return k.useEffect(()=>{n>0&&o.current.scrollIntoView({behavior:"smooth"})},[n]),C.jsxs(C.Fragment,{children:[C.jsx(dT,{}),C.jsx(cD,{condition:t,changed:r}),C.jsx("div",{ref:o,style:{height:"0px",overflow:"hidden"}}),e&&C.jsx(lD,{})]})}Kb(document.getElementById("root")).render(C.jsx(k.StrictMode,{children:C.jsx(dD,{})})); diff --git a/assets/index-D7zRJlfC.css b/assets/index-D7zRJlfC.css new file mode 100644 index 0000000..6f473c0 --- /dev/null +++ b/assets/index-D7zRJlfC.css @@ -0,0 +1 @@ +*{margin:0;padding:0;box-sizing:border-box}.hero{background-color:#272626ec;min-width:100%;min-height:100vh;display:flex;justify-content:center}.home{display:flex;margin:20px;padding:1rem;justify-content:center;align-items:center;flex-direction:column}.header{display:flex;flex-direction:row;justify-content:space-between;align-items:center}.heading{text-align:center;margin-top:20px;font-size:50px;font-family:poppins}.body{display:flex;flex-direction:column;margin:0;padding:0;box-sizing:border-box;background-color:#adb5bd}.carousel{display:flex;margin:"2rem";flex-wrap:nowrap;overflow:hidden;scroll-behavior:smooth;width:100%;height:100%} diff --git a/index.html b/index.html new file mode 100644 index 0000000..b9ee7dd --- /dev/null +++ b/index.html @@ -0,0 +1,14 @@ + + + + + + + Chess Insights + + + + +
+ + diff --git a/vite.svg b/vite.svg new file mode 100644 index 0000000..e7b8dfb --- /dev/null +++ b/vite.svg @@ -0,0 +1 @@ + \ No newline at end of file