From dcf4a87125b5ccfd2d108d94fc2003d6f53c63ba Mon Sep 17 00:00:00 2001 From: kacan98 <129729730+kacan98@users.noreply.github.com> Date: Tue, 16 Apr 2024 08:54:18 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20kacan98/?= =?UTF-8?q?buying-vs-renting@962efb1b51f4c8c43d787cac3eb8d6fce38f7c4e=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../{index-C9RixKia.js => index-BDy108xZ.js} | 24 +++++++++---------- i18n/cz/translation.json | 4 ++-- i18n/de/translation.json | 4 ++-- i18n/dk/translation.json | 4 ++-- i18n/en/translation.json | 4 ++-- i18n/ro/translation.json | 4 ++-- i18n/se/translation.json | 4 ++-- index.html | 2 +- 8 files changed, 25 insertions(+), 25 deletions(-) rename assets/{index-C9RixKia.js => index-BDy108xZ.js} (75%) diff --git a/assets/index-C9RixKia.js b/assets/index-BDy108xZ.js similarity index 75% rename from assets/index-C9RixKia.js rename to assets/index-BDy108xZ.js index d7ee370..bac4810 100644 --- a/assets/index-C9RixKia.js +++ b/assets/index-BDy108xZ.js @@ -6,7 +6,7 @@ function O$(e,t){for(var n=0;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),bh=Object.prototype.hasOwnProperty,nT=/^[: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]*$/,Qv={},Zv={};function rT(e){return bh.call(Zv,e)?!0:bh.call(Qv,e)?!1:nT.test(e)?Zv[e]=!0:(Qv[e]=!0,!1)}function oT(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 iT(e,t,n,r){if(t===null||typeof t>"u"||oT(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 Vt(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 bt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){bt[e]=new Vt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];bt[t]=new Vt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){bt[e]=new Vt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){bt[e]=new Vt(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){bt[e]=new Vt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){bt[e]=new Vt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){bt[e]=new Vt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){bt[e]=new Vt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){bt[e]=new Vt(e,5,!1,e.toLowerCase(),null,!1,!1)});var hm=/[\-:]([a-z])/g;function gm(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(hm,gm);bt[t]=new Vt(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(hm,gm);bt[t]=new Vt(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(hm,gm);bt[t]=new Vt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){bt[e]=new Vt(e,1,!1,e.toLowerCase(),null,!1,!1)});bt.xlinkHref=new Vt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){bt[e]=new Vt(e,1,!1,e.toLowerCase(),null,!0,!0)});function mm(e,t,n,r){var o=bt.hasOwnProperty(t)?bt[t]:null;(o!==null?o.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),bh=Object.prototype.hasOwnProperty,nT=/^[: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]*$/,Q0={},Z0={};function rT(e){return bh.call(Z0,e)?!0:bh.call(Q0,e)?!1:nT.test(e)?Z0[e]=!0:(Q0[e]=!0,!1)}function oT(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 iT(e,t,n,r){if(t===null||typeof t>"u"||oT(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 Vt(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 bt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){bt[e]=new Vt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];bt[t]=new Vt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){bt[e]=new Vt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){bt[e]=new Vt(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){bt[e]=new Vt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){bt[e]=new Vt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){bt[e]=new Vt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){bt[e]=new Vt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){bt[e]=new Vt(e,5,!1,e.toLowerCase(),null,!1,!1)});var hm=/[\-:]([a-z])/g;function gm(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(hm,gm);bt[t]=new Vt(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(hm,gm);bt[t]=new Vt(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(hm,gm);bt[t]=new Vt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){bt[e]=new Vt(e,1,!1,e.toLowerCase(),null,!1,!1)});bt.xlinkHref=new Vt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){bt[e]=new Vt(e,1,!1,e.toLowerCase(),null,!0,!0)});function mm(e,t,n,r){var o=bt.hasOwnProperty(t)?bt[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{fp=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ba(e):""}function sT(e){switch(e.tag){case 5:return ba(e.type);case 16:return ba("Lazy");case 13:return ba("Suspense");case 19:return ba("SuspenseList");case 0:case 2:case 15:return e=pp(e.type,!1),e;case 11:return e=pp(e.type.render,!1),e;case 1:return e=pp(e.type,!0),e;default:return""}}function kh(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 Ai:return"Fragment";case Oi:return"Portal";case wh:return"Profiler";case ym:return"StrictMode";case Sh:return"Suspense";case Ch:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Dw:return(e.displayName||"Context")+".Consumer";case jw:return(e._context.displayName||"Context")+".Provider";case vm:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case xm:return t=e.displayName||null,t!==null?t:kh(e.type)||"Memo";case Qr:t=e._payload,e=e._init;try{return kh(e(t))}catch{}}return null}function aT(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 kh(t);case 8:return t===ym?"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 bo(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function zw(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function lT(e){var t=zw(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 fu(e){e._valueTracker||(e._valueTracker=lT(e))}function Bw(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=zw(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function bc(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 Ph(e,t){var n=t.checked;return Ge({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function e0(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=bo(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 Uw(e,t){t=t.checked,t!=null&&mm(e,"checked",t,!1)}function Rh(e,t){Uw(e,t);var n=bo(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")?$h(e,t.type,n):t.hasOwnProperty("defaultValue")&&$h(e,t.type,bo(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function t0(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 $h(e,t,n){(t!=="number"||bc(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var wa=Array.isArray;function qi(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=pu.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Qa(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ma={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},uT=["Webkit","ms","Moz","O"];Object.keys(Ma).forEach(function(e){uT.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ma[t]=Ma[e]})});function Gw(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ma.hasOwnProperty(e)&&Ma[e]?(""+t).trim():t+"px"}function Kw(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Gw(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var cT=Ge({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 Eh(e,t){if(t){if(cT[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(q(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(q(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(q(61))}if(t.style!=null&&typeof t.style!="object")throw Error(q(62))}}function _h(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 Ih=null;function bm(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Oh=null,Xi=null,Qi=null;function o0(e){if(e=Wl(e)){if(typeof Oh!="function")throw Error(q(280));var t=e.stateNode;t&&(t=Md(t),Oh(e.stateNode,e.type,t))}}function Yw(e){Xi?Qi?Qi.push(e):Qi=[e]:Xi=e}function qw(){if(Xi){var e=Xi,t=Qi;if(Qi=Xi=null,o0(e),t)for(e=0;e>>=0,e===0?32:31-(wT(e)/ST|0)|0}var hu=64,gu=4194304;function Sa(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 kc(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=Sa(a):(i&=s,i!==0&&(r=Sa(i)))}else s=n&~o,s!==0?r=Sa(s):i!==0&&(r=Sa(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 Ul(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Zn(t),e[t]=n}function RT(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=_a),p0=" ",h0=!1;function gS(e,t){switch(e){case"keyup":return eM.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function mS(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ni=!1;function nM(e,t){switch(e){case"compositionend":return mS(t);case"keypress":return t.which!==32?null:(h0=!0,p0);case"textInput":return e=t.data,e===p0&&h0?null:e;default:return null}}function rM(e,t){if(Ni)return e==="compositionend"||!Tm&&gS(e,t)?(e=pS(),tc=Pm=no=null,Ni=!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=v0(n)}}function bS(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?bS(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function wS(){for(var e=window,t=bc();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=bc(e.document)}return t}function Mm(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 fM(e){var t=wS(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&bS(n.ownerDocument.documentElement,n)){if(r!==null&&Mm(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=x0(n,i);var s=x0(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,Li=null,Fh=null,Oa=null,zh=!1;function b0(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;zh||Li==null||Li!==bc(r)||(r=Li,"selectionStart"in r&&Mm(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}),Oa&&rl(Oa,r)||(Oa=r,r=$c(Fh,"onSelect"),0Fi||(e.current=Gh[Fi],Gh[Fi]=null,Fi--)}function De(e,t){Fi++,Gh[Fi]=e.current,e.current=t}var wo={},Et=Mo(wo),Xt=Mo(!1),ei=wo;function cs(e,t){var n=e.type.contextTypes;if(!n)return wo;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 Qt(e){return e=e.childContextTypes,e!=null}function Mc(){ze(Xt),ze(Et)}function $0(e,t,n){if(Et.current!==wo)throw Error(q(168));De(Et,t),De(Xt,n)}function ES(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(q(108,aT(e)||"Unknown",o));return Ge({},n,r)}function Ec(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||wo,ei=Et.current,De(Et,e),De(Xt,Xt.current),!0}function T0(e,t,n){var r=e.stateNode;if(!r)throw Error(q(169));n?(e=ES(e,t,ei),r.__reactInternalMemoizedMergedChildContext=e,ze(Xt),ze(Et),De(Et,e)):ze(Xt),De(Xt,n)}var Rr=null,Ed=!1,$p=!1;function _S(e){Rr===null?Rr=[e]:Rr.push(e)}function kM(e){Ed=!0,_S(e)}function Eo(){if(!$p&&Rr!==null){$p=!0;var e=0,t=Oe;try{var n=Rr;for(Oe=1;e>=s,o-=s,Mr=1<<32-Zn(t)+o|n<$?(M=R,R=null):M=R.sibling;var T=d(g,R,m[$],b);if(T===null){R===null&&(R=M);break}e&&R&&T.alternate===null&&t(g,R),v=i(T,v,$),P===null?S=T:P.sibling=T,P=T,R=M}if($===m.length)return n(g,R),Ve&&No(g,$),S;if(R===null){for(;$$?(M=R,R=null):M=R.sibling;var _=d(g,R,T.value,b);if(_===null){R===null&&(R=M);break}e&&R&&_.alternate===null&&t(g,R),v=i(_,v,$),P===null?S=_:P.sibling=_,P=_,R=M}if(T.done)return n(g,R),Ve&&No(g,$),S;if(R===null){for(;!T.done;$++,T=m.next())T=f(g,T.value,b),T!==null&&(v=i(T,v,$),P===null?S=T:P.sibling=T,P=T);return Ve&&No(g,$),S}for(R=r(g,R);!T.done;$++,T=m.next())T=h(R,g,$,T.value,b),T!==null&&(e&&T.alternate!==null&&R.delete(T.key===null?$:T.key),v=i(T,v,$),P===null?S=T:P.sibling=T,P=T);return e&&R.forEach(function(N){return t(g,N)}),Ve&&No(g,$),S}function x(g,v,m,b){if(typeof m=="object"&&m!==null&&m.type===Ai&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case du:e:{for(var S=m.key,P=v;P!==null;){if(P.key===S){if(S=m.type,S===Ai){if(P.tag===7){n(g,P.sibling),v=o(P,m.props.children),v.return=g,g=v;break e}}else if(P.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===Qr&&N0(S)===P.type){n(g,P.sibling),v=o(P,m.props),v.ref=ea(g,P,m),v.return=g,g=v;break e}n(g,P);break}else t(g,P);P=P.sibling}m.type===Ai?(v=Xo(m.props.children,g.mode,b,m.key),v.return=g,g=v):(b=uc(m.type,m.key,m.props,null,g.mode,b),b.ref=ea(g,v,m),b.return=g,g=b)}return s(g);case Oi:e:{for(P=m.key;v!==null;){if(v.key===P)if(v.tag===4&&v.stateNode.containerInfo===m.containerInfo&&v.stateNode.implementation===m.implementation){n(g,v.sibling),v=o(v,m.children||[]),v.return=g,g=v;break e}else{n(g,v);break}else t(g,v);v=v.sibling}v=Np(m,g.mode,b),v.return=g,g=v}return s(g);case Qr:return P=m._init,x(g,v,P(m._payload),b)}if(wa(m))return p(g,v,m,b);if(qs(m))return y(g,v,m,b);Su(g,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,v!==null&&v.tag===6?(n(g,v.sibling),v=o(v,m),v.return=g,g=v):(n(g,v),v=Ap(m,g.mode,b),v.return=g,g=v),s(g)):n(g,v)}return x}var fs=FS(!0),zS=FS(!1),Hl={},pr=Mo(Hl),al=Mo(Hl),ll=Mo(Hl);function Wo(e){if(e===Hl)throw Error(q(174));return e}function Dm(e,t){switch(De(ll,t),De(al,e),De(pr,Hl),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Mh(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Mh(t,e)}ze(pr),De(pr,t)}function ps(){ze(pr),ze(al),ze(ll)}function BS(e){Wo(ll.current);var t=Wo(pr.current),n=Mh(t,e.type);t!==n&&(De(al,e),De(pr,n))}function Fm(e){al.current===e&&(ze(pr),ze(al))}var We=Mo(0);function Lc(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Tp=[];function zm(){for(var e=0;en?n:4,e(!0);var r=Mp.transition;Mp.transition={};try{e(!1),t()}finally{Oe=n,Mp.transition=r}}function rC(){return On().memoizedState}function TM(e,t,n){var r=mo(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},oC(e))iC(t,n);else if(n=NS(e,t,n,r),n!==null){var o=jt();Jn(n,e,r,o),sC(n,t,r)}}function MM(e,t,n){var r=mo(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(oC(e))iC(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,er(a,s)){var l=t.interleaved;l===null?(o.next=o,Lm(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=NS(e,t,o,r),n!==null&&(o=jt(),Jn(n,e,r,o),sC(n,t,r))}}function oC(e){var t=e.alternate;return e===He||t!==null&&t===He}function iC(e,t){Aa=jc=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function sC(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Sm(e,n)}}var Dc={readContext:In,useCallback:kt,useContext:kt,useEffect:kt,useImperativeHandle:kt,useInsertionEffect:kt,useLayoutEffect:kt,useMemo:kt,useReducer:kt,useRef:kt,useState:kt,useDebugValue:kt,useDeferredValue:kt,useTransition:kt,useMutableSource:kt,useSyncExternalStore:kt,useId:kt,unstable_isNewReconciler:!1},EM={readContext:In,useCallback:function(e,t){return ir().memoizedState=[e,t===void 0?null:t],e},useContext:In,useEffect:j0,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ic(4194308,4,ZS.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ic(4194308,4,e,t)},useInsertionEffect:function(e,t){return ic(4,2,e,t)},useMemo:function(e,t){var n=ir();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ir();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=TM.bind(null,He,e),[r.memoizedState,e]},useRef:function(e){var t=ir();return e={current:e},t.memoizedState=e},useState:L0,useDebugValue:Hm,useDeferredValue:function(e){return ir().memoizedState=e},useTransition:function(){var e=L0(!1),t=e[0];return e=$M.bind(null,e[1]),ir().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=He,o=ir();if(Ve){if(n===void 0)throw Error(q(407));n=n()}else{if(n=t(),dt===null)throw Error(q(349));ni&30||WS(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,j0(GS.bind(null,r,i,e),[e]),r.flags|=2048,dl(9,HS.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=ir(),t=dt.identifierPrefix;if(Ve){var n=Er,r=Mr;n=(r&~(1<<32-Zn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ul++,0")&&(l=l.replace("",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{fp=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ba(e):""}function sT(e){switch(e.tag){case 5:return ba(e.type);case 16:return ba("Lazy");case 13:return ba("Suspense");case 19:return ba("SuspenseList");case 0:case 2:case 15:return e=pp(e.type,!1),e;case 11:return e=pp(e.type.render,!1),e;case 1:return e=pp(e.type,!0),e;default:return""}}function kh(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 Ai:return"Fragment";case Oi:return"Portal";case wh:return"Profiler";case ym:return"StrictMode";case Sh:return"Suspense";case Ch:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Dw:return(e.displayName||"Context")+".Consumer";case jw:return(e._context.displayName||"Context")+".Provider";case vm:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case xm:return t=e.displayName||null,t!==null?t:kh(e.type)||"Memo";case Qr:t=e._payload,e=e._init;try{return kh(e(t))}catch{}}return null}function aT(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 kh(t);case 8:return t===ym?"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 bo(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function zw(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function lT(e){var t=zw(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 fu(e){e._valueTracker||(e._valueTracker=lT(e))}function Bw(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=zw(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function bc(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 Ph(e,t){var n=t.checked;return Ge({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function ev(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=bo(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 Uw(e,t){t=t.checked,t!=null&&mm(e,"checked",t,!1)}function Rh(e,t){Uw(e,t);var n=bo(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")?$h(e,t.type,n):t.hasOwnProperty("defaultValue")&&$h(e,t.type,bo(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function tv(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 $h(e,t,n){(t!=="number"||bc(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var wa=Array.isArray;function qi(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=pu.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Qa(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ma={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},uT=["Webkit","ms","Moz","O"];Object.keys(Ma).forEach(function(e){uT.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ma[t]=Ma[e]})});function Gw(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ma.hasOwnProperty(e)&&Ma[e]?(""+t).trim():t+"px"}function Kw(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Gw(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var cT=Ge({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 Eh(e,t){if(t){if(cT[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(q(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(q(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(q(61))}if(t.style!=null&&typeof t.style!="object")throw Error(q(62))}}function _h(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 Ih=null;function bm(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Oh=null,Xi=null,Qi=null;function ov(e){if(e=Wl(e)){if(typeof Oh!="function")throw Error(q(280));var t=e.stateNode;t&&(t=Md(t),Oh(e.stateNode,e.type,t))}}function Yw(e){Xi?Qi?Qi.push(e):Qi=[e]:Xi=e}function qw(){if(Xi){var e=Xi,t=Qi;if(Qi=Xi=null,ov(e),t)for(e=0;e>>=0,e===0?32:31-(wT(e)/ST|0)|0}var hu=64,gu=4194304;function Sa(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 kc(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=Sa(a):(i&=s,i!==0&&(r=Sa(i)))}else s=n&~o,s!==0?r=Sa(s):i!==0&&(r=Sa(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 Ul(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Zn(t),e[t]=n}function RT(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=_a),pv=" ",hv=!1;function gS(e,t){switch(e){case"keyup":return eM.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function mS(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ni=!1;function nM(e,t){switch(e){case"compositionend":return mS(t);case"keypress":return t.which!==32?null:(hv=!0,pv);case"textInput":return e=t.data,e===pv&&hv?null:e;default:return null}}function rM(e,t){if(Ni)return e==="compositionend"||!Tm&&gS(e,t)?(e=pS(),tc=Pm=no=null,Ni=!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=vv(n)}}function bS(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?bS(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function wS(){for(var e=window,t=bc();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=bc(e.document)}return t}function Mm(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 fM(e){var t=wS(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&bS(n.ownerDocument.documentElement,n)){if(r!==null&&Mm(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=xv(n,i);var s=xv(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,Li=null,Fh=null,Oa=null,zh=!1;function bv(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;zh||Li==null||Li!==bc(r)||(r=Li,"selectionStart"in r&&Mm(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}),Oa&&rl(Oa,r)||(Oa=r,r=$c(Fh,"onSelect"),0Fi||(e.current=Gh[Fi],Gh[Fi]=null,Fi--)}function De(e,t){Fi++,Gh[Fi]=e.current,e.current=t}var wo={},Et=Mo(wo),Xt=Mo(!1),ei=wo;function cs(e,t){var n=e.type.contextTypes;if(!n)return wo;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 Qt(e){return e=e.childContextTypes,e!=null}function Mc(){ze(Xt),ze(Et)}function $v(e,t,n){if(Et.current!==wo)throw Error(q(168));De(Et,t),De(Xt,n)}function ES(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(q(108,aT(e)||"Unknown",o));return Ge({},n,r)}function Ec(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||wo,ei=Et.current,De(Et,e),De(Xt,Xt.current),!0}function Tv(e,t,n){var r=e.stateNode;if(!r)throw Error(q(169));n?(e=ES(e,t,ei),r.__reactInternalMemoizedMergedChildContext=e,ze(Xt),ze(Et),De(Et,e)):ze(Xt),De(Xt,n)}var Rr=null,Ed=!1,$p=!1;function _S(e){Rr===null?Rr=[e]:Rr.push(e)}function kM(e){Ed=!0,_S(e)}function Eo(){if(!$p&&Rr!==null){$p=!0;var e=0,t=Oe;try{var n=Rr;for(Oe=1;e>=s,o-=s,Mr=1<<32-Zn(t)+o|n<$?(M=R,R=null):M=R.sibling;var T=d(g,R,m[$],b);if(T===null){R===null&&(R=M);break}e&&R&&T.alternate===null&&t(g,R),v=i(T,v,$),P===null?S=T:P.sibling=T,P=T,R=M}if($===m.length)return n(g,R),Ve&&No(g,$),S;if(R===null){for(;$$?(M=R,R=null):M=R.sibling;var _=d(g,R,T.value,b);if(_===null){R===null&&(R=M);break}e&&R&&_.alternate===null&&t(g,R),v=i(_,v,$),P===null?S=_:P.sibling=_,P=_,R=M}if(T.done)return n(g,R),Ve&&No(g,$),S;if(R===null){for(;!T.done;$++,T=m.next())T=f(g,T.value,b),T!==null&&(v=i(T,v,$),P===null?S=T:P.sibling=T,P=T);return Ve&&No(g,$),S}for(R=r(g,R);!T.done;$++,T=m.next())T=h(R,g,$,T.value,b),T!==null&&(e&&T.alternate!==null&&R.delete(T.key===null?$:T.key),v=i(T,v,$),P===null?S=T:P.sibling=T,P=T);return e&&R.forEach(function(N){return t(g,N)}),Ve&&No(g,$),S}function x(g,v,m,b){if(typeof m=="object"&&m!==null&&m.type===Ai&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case du:e:{for(var S=m.key,P=v;P!==null;){if(P.key===S){if(S=m.type,S===Ai){if(P.tag===7){n(g,P.sibling),v=o(P,m.props.children),v.return=g,g=v;break e}}else if(P.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===Qr&&Nv(S)===P.type){n(g,P.sibling),v=o(P,m.props),v.ref=ea(g,P,m),v.return=g,g=v;break e}n(g,P);break}else t(g,P);P=P.sibling}m.type===Ai?(v=Xo(m.props.children,g.mode,b,m.key),v.return=g,g=v):(b=uc(m.type,m.key,m.props,null,g.mode,b),b.ref=ea(g,v,m),b.return=g,g=b)}return s(g);case Oi:e:{for(P=m.key;v!==null;){if(v.key===P)if(v.tag===4&&v.stateNode.containerInfo===m.containerInfo&&v.stateNode.implementation===m.implementation){n(g,v.sibling),v=o(v,m.children||[]),v.return=g,g=v;break e}else{n(g,v);break}else t(g,v);v=v.sibling}v=Np(m,g.mode,b),v.return=g,g=v}return s(g);case Qr:return P=m._init,x(g,v,P(m._payload),b)}if(wa(m))return p(g,v,m,b);if(qs(m))return y(g,v,m,b);Su(g,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,v!==null&&v.tag===6?(n(g,v.sibling),v=o(v,m),v.return=g,g=v):(n(g,v),v=Ap(m,g.mode,b),v.return=g,g=v),s(g)):n(g,v)}return x}var fs=FS(!0),zS=FS(!1),Hl={},pr=Mo(Hl),al=Mo(Hl),ll=Mo(Hl);function Wo(e){if(e===Hl)throw Error(q(174));return e}function Dm(e,t){switch(De(ll,t),De(al,e),De(pr,Hl),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Mh(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Mh(t,e)}ze(pr),De(pr,t)}function ps(){ze(pr),ze(al),ze(ll)}function BS(e){Wo(ll.current);var t=Wo(pr.current),n=Mh(t,e.type);t!==n&&(De(al,e),De(pr,n))}function Fm(e){al.current===e&&(ze(pr),ze(al))}var We=Mo(0);function Lc(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Tp=[];function zm(){for(var e=0;en?n:4,e(!0);var r=Mp.transition;Mp.transition={};try{e(!1),t()}finally{Oe=n,Mp.transition=r}}function rC(){return On().memoizedState}function TM(e,t,n){var r=mo(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},oC(e))iC(t,n);else if(n=NS(e,t,n,r),n!==null){var o=jt();Jn(n,e,r,o),sC(n,t,r)}}function MM(e,t,n){var r=mo(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(oC(e))iC(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,er(a,s)){var l=t.interleaved;l===null?(o.next=o,Lm(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=NS(e,t,o,r),n!==null&&(o=jt(),Jn(n,e,r,o),sC(n,t,r))}}function oC(e){var t=e.alternate;return e===He||t!==null&&t===He}function iC(e,t){Aa=jc=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function sC(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Sm(e,n)}}var Dc={readContext:In,useCallback:kt,useContext:kt,useEffect:kt,useImperativeHandle:kt,useInsertionEffect:kt,useLayoutEffect:kt,useMemo:kt,useReducer:kt,useRef:kt,useState:kt,useDebugValue:kt,useDeferredValue:kt,useTransition:kt,useMutableSource:kt,useSyncExternalStore:kt,useId:kt,unstable_isNewReconciler:!1},EM={readContext:In,useCallback:function(e,t){return ir().memoizedState=[e,t===void 0?null:t],e},useContext:In,useEffect:jv,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ic(4194308,4,ZS.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ic(4194308,4,e,t)},useInsertionEffect:function(e,t){return ic(4,2,e,t)},useMemo:function(e,t){var n=ir();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ir();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=TM.bind(null,He,e),[r.memoizedState,e]},useRef:function(e){var t=ir();return e={current:e},t.memoizedState=e},useState:Lv,useDebugValue:Hm,useDeferredValue:function(e){return ir().memoizedState=e},useTransition:function(){var e=Lv(!1),t=e[0];return e=$M.bind(null,e[1]),ir().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=He,o=ir();if(Ve){if(n===void 0)throw Error(q(407));n=n()}else{if(n=t(),dt===null)throw Error(q(349));ni&30||WS(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,jv(GS.bind(null,r,i,e),[e]),r.flags|=2048,dl(9,HS.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=ir(),t=dt.identifierPrefix;if(Ve){var n=Er,r=Mr;n=(r&~(1<<32-Zn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ul++,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[ur]=t,e[sl]=r,gC(e,t,!1,!1),t.stateNode=e;e:{switch(s=_h(n,r),n){case"dialog":Fe("cancel",e),Fe("close",e),o=r;break;case"iframe":case"object":case"embed":Fe("load",e),o=r;break;case"video":case"audio":for(o=0;ogs&&(t.flags|=128,r=!0,ta(i,!1),t.lanes=4194304)}else{if(!r)if(e=Lc(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ta(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!Ve)return Pt(t),null}else 2*Qe()-i.renderingStartTime>gs&&n!==1073741824&&(t.flags|=128,r=!0,ta(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=Qe(),t.sibling=null,n=We.current,De(We,r?n&1|2:n&1),t):(Pt(t),null);case 22:case 23:return Qm(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?sn&1073741824&&(Pt(t),t.subtreeFlags&6&&(t.flags|=8192)):Pt(t),null;case 24:return null;case 25:return null}throw Error(q(156,t.tag))}function DM(e,t){switch(_m(t),t.tag){case 1:return Qt(t.type)&&Mc(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ps(),ze(Xt),ze(Et),zm(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Fm(t),null;case 13:if(ze(We),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(q(340));ds()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ze(We),null;case 4:return ps(),null;case 10:return Nm(t.type._context),null;case 22:case 23:return Qm(),null;case 24:return null;default:return null}}var ku=!1,Mt=!1,FM=typeof WeakSet=="function"?WeakSet:Set,te=null;function Vi(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Xe(e,t,r)}else n.current=null}function og(e,t,n){try{n()}catch(r){Xe(e,t,r)}}var G0=!1;function zM(e,t){if(Bh=Pc,e=wS(),Mm(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,f=e,d=null;t:for(;;){for(var h;f!==n||o!==0&&f.nodeType!==3||(a=s+o),f!==i||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(h=f.firstChild)!==null;)d=f,f=h;for(;;){if(f===e)break t;if(d===n&&++u===o&&(a=s),d===i&&++c===r&&(l=s),(h=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=h}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Uh={focusedElem:e,selectionRange:n},Pc=!1,te=t;te!==null;)if(t=te,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,te=e;else for(;te!==null;){t=te;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 y=p.memoizedProps,x=p.memoizedState,g=t.stateNode,v=g.getSnapshotBeforeUpdate(t.elementType===t.type?y:Hn(t.type,y),x);g.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(q(163))}}catch(b){Xe(t,t.return,b)}if(e=t.sibling,e!==null){e.return=t.return,te=e;break}te=t.return}return p=G0,G0=!1,p}function Na(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&&og(t,n,i)}o=o.next}while(o!==r)}}function Od(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 ig(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 vC(e){var t=e.alternate;t!==null&&(e.alternate=null,vC(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ur],delete t[sl],delete t[Hh],delete t[SM],delete t[CM])),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 xC(e){return e.tag===5||e.tag===3||e.tag===4}function K0(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||xC(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 sg(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=Tc));else if(r!==4&&(e=e.child,e!==null))for(sg(e,t,n),e=e.sibling;e!==null;)sg(e,t,n),e=e.sibling}function ag(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(ag(e,t,n),e=e.sibling;e!==null;)ag(e,t,n),e=e.sibling}var mt=null,Gn=!1;function Yr(e,t,n){for(n=n.child;n!==null;)bC(e,t,n),n=n.sibling}function bC(e,t,n){if(fr&&typeof fr.onCommitFiberUnmount=="function")try{fr.onCommitFiberUnmount(Pd,n)}catch{}switch(n.tag){case 5:Mt||Vi(n,t);case 6:var r=mt,o=Gn;mt=null,Yr(e,t,n),mt=r,Gn=o,mt!==null&&(Gn?(e=mt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):mt.removeChild(n.stateNode));break;case 18:mt!==null&&(Gn?(e=mt,n=n.stateNode,e.nodeType===8?Rp(e.parentNode,n):e.nodeType===1&&Rp(e,n),tl(e)):Rp(mt,n.stateNode));break;case 4:r=mt,o=Gn,mt=n.stateNode.containerInfo,Gn=!0,Yr(e,t,n),mt=r,Gn=o;break;case 0:case 11:case 14:case 15:if(!Mt&&(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)&&og(n,t,s),o=o.next}while(o!==r)}Yr(e,t,n);break;case 1:if(!Mt&&(Vi(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Xe(n,t,a)}Yr(e,t,n);break;case 21:Yr(e,t,n);break;case 22:n.mode&1?(Mt=(r=Mt)||n.memoizedState!==null,Yr(e,t,n),Mt=r):Yr(e,t,n);break;default:Yr(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 FM),t.forEach(function(r){var o=qM.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Wn(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=s),r&=~i}if(r=o,r=Qe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*UM(r/1960))-r,10e?16:e,ro===null)var r=!1;else{if(e=ro,ro=null,Bc=0,Pe&6)throw Error(q(331));var o=Pe;for(Pe|=4,te=e.current;te!==null;){var i=te,s=i.child;if(te.flags&16){var a=i.deletions;if(a!==null){for(var l=0;lQe()-qm?qo(e,0):Ym|=n),Zt(e,t)}function TC(e,t){t===0&&(e.mode&1?(t=gu,gu<<=1,!(gu&130023424)&&(gu=4194304)):t=1);var n=jt();e=jr(e,t),e!==null&&(Ul(e,t,n),Zt(e,n))}function YM(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),TC(e,n)}function qM(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(q(314))}r!==null&&r.delete(t),TC(e,n)}var MC;MC=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Xt.current)Yt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Yt=!1,LM(e,t,n);Yt=!!(e.flags&131072)}else Yt=!1,Ve&&t.flags&1048576&&IS(t,Ic,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;sc(e,t),e=t.pendingProps;var o=cs(t,Et.current);Ji(t,n),o=Um(null,t,r,e,o,n);var i=Vm();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,Qt(r)?(i=!0,Ec(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,jm(t),o.updater=_d,t.stateNode=o,o._reactInternals=t,Qh(t,r,e,n),t=eg(null,t,r,!0,i,n)):(t.tag=0,Ve&&i&&Em(t),Nt(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(sc(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=QM(r),e=Hn(r,e),o){case 0:t=Jh(null,t,r,e,n);break e;case 1:t=V0(null,t,r,e,n);break e;case 11:t=B0(null,t,r,e,n);break e;case 14:t=U0(null,t,r,Hn(r.type,e),n);break e}throw Error(q(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Hn(r,o),Jh(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Hn(r,o),V0(e,t,r,o,n);case 3:e:{if(fC(t),e===null)throw Error(q(387));r=t.pendingProps,i=t.memoizedState,o=i.element,LS(e,t),Nc(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=hs(Error(q(423)),t),t=W0(e,t,r,n,o);break e}else if(r!==o){o=hs(Error(q(424)),t),t=W0(e,t,r,n,o);break e}else for(ln=po(t.stateNode.containerInfo.firstChild),cn=t,Ve=!0,Kn=null,n=zS(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ds(),r===o){t=Dr(e,t,n);break e}Nt(e,t,r,n)}t=t.child}return t;case 5:return BS(t),e===null&&Yh(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,Vh(r,o)?s=null:i!==null&&Vh(r,i)&&(t.flags|=32),dC(e,t),Nt(e,t,s,n),t.child;case 6:return e===null&&Yh(t),null;case 13:return pC(e,t,n);case 4:return Dm(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=fs(t,null,r,n):Nt(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Hn(r,o),B0(e,t,r,o,n);case 7:return Nt(e,t,t.pendingProps,n),t.child;case 8:return Nt(e,t,t.pendingProps.children,n),t.child;case 12:return Nt(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,De(Oc,r._currentValue),r._currentValue=s,i!==null)if(er(i.value,s)){if(i.children===o.children&&!Xt.current){t=Dr(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=Or(-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),qh(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(q(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),qh(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}Nt(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Ji(t,n),o=In(o),r=r(o),t.flags|=1,Nt(e,t,r,n),t.child;case 14:return r=t.type,o=Hn(r,t.pendingProps),o=Hn(r.type,o),U0(e,t,r,o,n);case 15:return uC(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Hn(r,o),sc(e,t),t.tag=1,Qt(r)?(e=!0,Ec(t)):e=!1,Ji(t,n),DS(t,r,o),Qh(t,r,o,n),eg(null,t,r,!0,e,n);case 19:return hC(e,t,n);case 22:return cC(e,t,n)}throw Error(q(156,t.tag))};function EC(e,t){return nS(e,t)}function XM(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 Tn(e,t,n,r){return new XM(e,t,n,r)}function Jm(e){return e=e.prototype,!(!e||!e.isReactComponent)}function QM(e){if(typeof e=="function")return Jm(e)?1:0;if(e!=null){if(e=e.$$typeof,e===vm)return 11;if(e===xm)return 14}return 2}function yo(e,t){var n=e.alternate;return n===null?(n=Tn(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 uc(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")Jm(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Ai:return Xo(n.children,o,i,t);case ym:s=8,o|=8;break;case wh:return e=Tn(12,n,t,o|2),e.elementType=wh,e.lanes=i,e;case Sh:return e=Tn(13,n,t,o),e.elementType=Sh,e.lanes=i,e;case Ch:return e=Tn(19,n,t,o),e.elementType=Ch,e.lanes=i,e;case Fw:return Nd(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case jw:s=10;break e;case Dw:s=9;break e;case vm:s=11;break e;case xm:s=14;break e;case Qr:s=16,r=null;break e}throw Error(q(130,e==null?e:typeof e,""))}return t=Tn(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Xo(e,t,n,r){return e=Tn(7,e,r,t),e.lanes=n,e}function Nd(e,t,n,r){return e=Tn(22,e,r,t),e.elementType=Fw,e.lanes=n,e.stateNode={isHidden:!1},e}function Ap(e,t,n){return e=Tn(6,e,null,t),e.lanes=n,e}function Np(e,t,n){return t=Tn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ZM(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=gp(0),this.expirationTimes=gp(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gp(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function ey(e,t,n,r,o,i,s,a,l){return e=new ZM(e,t,n,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Tn(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},jm(i),e}function JM(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(AC)}catch(e){console.error(e)}}AC(),Iw.exports=mn;var zd=Iw.exports;const $u=um(zd);var n1=zd;xh.createRoot=n1.createRoot,xh.hydrateRoot=n1.hydrateRoot;const oE={black:"#000",white:"#fff"},pl=oE,iE={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"},xi=iE,sE={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"},bi=sE,aE={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"},wi=aE,lE={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"},Si=lE,uE={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"},Ci=uE,cE={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"},ra=cE,dE={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"},fE=dE;function Fr(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n=0)&&(n[o]=e[o]);return n}function NC(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var hE=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,gE=NC(function(e){return hE.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function mE(e){if(e.sheet)return e.sheet;for(var t=0;t0?yt(js,--nn):0,ms--,tt===10&&(ms=1,Ud--),tt}function dn(){return tt=nn2||gl(tt)>3?"":" "}function ME(e,t){for(;--t&&dn()&&!(tt<48||tt>102||tt>57&&tt<65||tt>70&&tt<97););return Gl(e,cc()+(t<6&&hr()==32&&dn()==32))}function pg(e){for(;dn();)switch(tt){case e:return nn;case 34:case 39:e!==34&&e!==39&&pg(tt);break;case 40:e===41&&pg(e);break;case 92:dn();break}return nn}function EE(e,t){for(;dn()&&e+tt!==57;)if(e+tt===84&&hr()===47)break;return"/*"+Gl(t,nn-1)+"*"+Bd(e===47?e:dn())}function _E(e){for(;!gl(hr());)dn();return Gl(e,nn)}function IE(e){return BC(fc("",null,null,null,[""],e=zC(e),0,[0],e))}function fc(e,t,n,r,o,i,s,a,l){for(var u=0,c=0,f=s,d=0,h=0,p=0,y=1,x=1,g=1,v=0,m="",b=o,S=i,P=r,R=m;x;)switch(p=v,v=dn()){case 40:if(p!=108&&yt(R,f-1)==58){fg(R+=_e(dc(v),"&","&\f"),"&\f")!=-1&&(g=-1);break}case 34:case 39:case 91:R+=dc(v);break;case 9:case 10:case 13:case 32:R+=TE(p);break;case 92:R+=ME(cc()-1,7);continue;case 47:switch(hr()){case 42:case 47:Tu(OE(EE(dn(),cc()),t,n),l);break;default:R+="/"}break;case 123*y:a[u++]=ar(R)*g;case 125*y:case 59:case 0:switch(v){case 0:case 125:x=0;case 59+c:g==-1&&(R=_e(R,/\f/g,"")),h>0&&ar(R)-f&&Tu(h>32?o1(R+";",r,n,f-1):o1(_e(R," ","")+";",r,n,f-2),l);break;case 59:R+=";";default:if(Tu(P=r1(R,t,n,u,c,o,a,m,b=[],S=[],f),i),v===123)if(c===0)fc(R,t,P,P,b,i,f,a,S);else switch(d===99&&yt(R,3)===110?100:d){case 100:case 108:case 109:case 115:fc(e,P,P,r&&Tu(r1(e,P,P,0,0,o,a,m,o,b=[],f),S),o,S,f,a,r?b:S);break;default:fc(R,P,P,P,[""],S,0,a,S)}}u=c=h=0,y=g=1,m=R="",f=s;break;case 58:f=1+ar(R),h=p;default:if(y<1){if(v==123)--y;else if(v==125&&y++==0&&$E()==125)continue}switch(R+=Bd(v),v*y){case 38:g=c>0?1:(R+="\f",-1);break;case 44:a[u++]=(ar(R)-1)*g,g=1;break;case 64:hr()===45&&(R+=dc(dn())),d=hr(),c=f=ar(m=R+=_E(cc())),v++;break;case 45:p===45&&ar(R)==2&&(y=0)}}return i}function r1(e,t,n,r,o,i,s,a,l,u,c){for(var f=o-1,d=o===0?i:[""],h=sy(d),p=0,y=0,x=0;p0?d[g]+" "+v:_e(v,/&\f/g,d[g])))&&(l[x++]=m);return Vd(e,t,n,o===0?oy:a,l,u,c)}function OE(e,t,n){return Vd(e,t,n,LC,Bd(RE()),hl(e,2,-2),0)}function o1(e,t,n,r){return Vd(e,t,n,iy,hl(e,0,r),hl(e,r+1,-1),r)}function ts(e,t){for(var n="",r=sy(e),o=0;o6)switch(yt(e,t+1)){case 109:if(yt(e,t+4)!==45)break;case 102:return _e(e,/(.+:)(.+)-([^]+)/,"$1"+Ee+"$2-$3$1"+Wc+(yt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~fg(e,"stretch")?UC(_e(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(yt(e,t+1)!==115)break;case 6444:switch(yt(e,ar(e)-3-(~fg(e,"!important")&&10))){case 107:return _e(e,":",":"+Ee)+e;case 101:return _e(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ee+(yt(e,14)===45?"inline-":"")+"box$3$1"+Ee+"$2$3$1"+$t+"$2box$3")+e}break;case 5936:switch(yt(e,t+11)){case 114:return Ee+e+$t+_e(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ee+e+$t+_e(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ee+e+$t+_e(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ee+e+$t+e+e}return e}var UE=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case iy:t.return=UC(t.value,t.length);break;case jC:return ts([oa(t,{value:_e(t.value,"@","@"+Ee)})],o);case oy:if(t.length)return PE(t.props,function(i){switch(kE(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ts([oa(t,{props:[_e(i,/:(read-\w+)/,":"+Wc+"$1")]})],o);case"::placeholder":return ts([oa(t,{props:[_e(i,/:(plac\w+)/,":"+Ee+"input-$1")]}),oa(t,{props:[_e(i,/:(plac\w+)/,":"+Wc+"$1")]}),oa(t,{props:[_e(i,/:(plac\w+)/,$t+"input-$1")]})],o)}return""})}},VE=[UE],VC=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(y){var x=y.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var o=t.stylisPlugins||VE,i={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(y){for(var x=y.getAttribute("data-emotion").split(" "),g=1;g<\/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[ur]=t,e[sl]=r,gC(e,t,!1,!1),t.stateNode=e;e:{switch(s=_h(n,r),n){case"dialog":Fe("cancel",e),Fe("close",e),o=r;break;case"iframe":case"object":case"embed":Fe("load",e),o=r;break;case"video":case"audio":for(o=0;ogs&&(t.flags|=128,r=!0,ta(i,!1),t.lanes=4194304)}else{if(!r)if(e=Lc(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ta(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!Ve)return Pt(t),null}else 2*Qe()-i.renderingStartTime>gs&&n!==1073741824&&(t.flags|=128,r=!0,ta(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=Qe(),t.sibling=null,n=We.current,De(We,r?n&1|2:n&1),t):(Pt(t),null);case 22:case 23:return Qm(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?sn&1073741824&&(Pt(t),t.subtreeFlags&6&&(t.flags|=8192)):Pt(t),null;case 24:return null;case 25:return null}throw Error(q(156,t.tag))}function DM(e,t){switch(_m(t),t.tag){case 1:return Qt(t.type)&&Mc(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ps(),ze(Xt),ze(Et),zm(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Fm(t),null;case 13:if(ze(We),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(q(340));ds()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ze(We),null;case 4:return ps(),null;case 10:return Nm(t.type._context),null;case 22:case 23:return Qm(),null;case 24:return null;default:return null}}var ku=!1,Mt=!1,FM=typeof WeakSet=="function"?WeakSet:Set,te=null;function Vi(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Xe(e,t,r)}else n.current=null}function og(e,t,n){try{n()}catch(r){Xe(e,t,r)}}var Gv=!1;function zM(e,t){if(Bh=Pc,e=wS(),Mm(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,f=e,d=null;t:for(;;){for(var h;f!==n||o!==0&&f.nodeType!==3||(a=s+o),f!==i||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(h=f.firstChild)!==null;)d=f,f=h;for(;;){if(f===e)break t;if(d===n&&++u===o&&(a=s),d===i&&++c===r&&(l=s),(h=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=h}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Uh={focusedElem:e,selectionRange:n},Pc=!1,te=t;te!==null;)if(t=te,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,te=e;else for(;te!==null;){t=te;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 y=p.memoizedProps,x=p.memoizedState,g=t.stateNode,v=g.getSnapshotBeforeUpdate(t.elementType===t.type?y:Hn(t.type,y),x);g.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(q(163))}}catch(b){Xe(t,t.return,b)}if(e=t.sibling,e!==null){e.return=t.return,te=e;break}te=t.return}return p=Gv,Gv=!1,p}function Na(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&&og(t,n,i)}o=o.next}while(o!==r)}}function Od(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 ig(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 vC(e){var t=e.alternate;t!==null&&(e.alternate=null,vC(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ur],delete t[sl],delete t[Hh],delete t[SM],delete t[CM])),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 xC(e){return e.tag===5||e.tag===3||e.tag===4}function Kv(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||xC(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 sg(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=Tc));else if(r!==4&&(e=e.child,e!==null))for(sg(e,t,n),e=e.sibling;e!==null;)sg(e,t,n),e=e.sibling}function ag(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(ag(e,t,n),e=e.sibling;e!==null;)ag(e,t,n),e=e.sibling}var mt=null,Gn=!1;function Yr(e,t,n){for(n=n.child;n!==null;)bC(e,t,n),n=n.sibling}function bC(e,t,n){if(fr&&typeof fr.onCommitFiberUnmount=="function")try{fr.onCommitFiberUnmount(Pd,n)}catch{}switch(n.tag){case 5:Mt||Vi(n,t);case 6:var r=mt,o=Gn;mt=null,Yr(e,t,n),mt=r,Gn=o,mt!==null&&(Gn?(e=mt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):mt.removeChild(n.stateNode));break;case 18:mt!==null&&(Gn?(e=mt,n=n.stateNode,e.nodeType===8?Rp(e.parentNode,n):e.nodeType===1&&Rp(e,n),tl(e)):Rp(mt,n.stateNode));break;case 4:r=mt,o=Gn,mt=n.stateNode.containerInfo,Gn=!0,Yr(e,t,n),mt=r,Gn=o;break;case 0:case 11:case 14:case 15:if(!Mt&&(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)&&og(n,t,s),o=o.next}while(o!==r)}Yr(e,t,n);break;case 1:if(!Mt&&(Vi(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Xe(n,t,a)}Yr(e,t,n);break;case 21:Yr(e,t,n);break;case 22:n.mode&1?(Mt=(r=Mt)||n.memoizedState!==null,Yr(e,t,n),Mt=r):Yr(e,t,n);break;default:Yr(e,t,n)}}function Yv(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new FM),t.forEach(function(r){var o=qM.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Wn(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=s),r&=~i}if(r=o,r=Qe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*UM(r/1960))-r,10e?16:e,ro===null)var r=!1;else{if(e=ro,ro=null,Bc=0,Re&6)throw Error(q(331));var o=Re;for(Re|=4,te=e.current;te!==null;){var i=te,s=i.child;if(te.flags&16){var a=i.deletions;if(a!==null){for(var l=0;lQe()-qm?qo(e,0):Ym|=n),Zt(e,t)}function TC(e,t){t===0&&(e.mode&1?(t=gu,gu<<=1,!(gu&130023424)&&(gu=4194304)):t=1);var n=jt();e=jr(e,t),e!==null&&(Ul(e,t,n),Zt(e,n))}function YM(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),TC(e,n)}function qM(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(q(314))}r!==null&&r.delete(t),TC(e,n)}var MC;MC=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Xt.current)Yt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Yt=!1,LM(e,t,n);Yt=!!(e.flags&131072)}else Yt=!1,Ve&&t.flags&1048576&&IS(t,Ic,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;sc(e,t),e=t.pendingProps;var o=cs(t,Et.current);Ji(t,n),o=Um(null,t,r,e,o,n);var i=Vm();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,Qt(r)?(i=!0,Ec(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,jm(t),o.updater=_d,t.stateNode=o,o._reactInternals=t,Qh(t,r,e,n),t=eg(null,t,r,!0,i,n)):(t.tag=0,Ve&&i&&Em(t),Nt(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(sc(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=QM(r),e=Hn(r,e),o){case 0:t=Jh(null,t,r,e,n);break e;case 1:t=Vv(null,t,r,e,n);break e;case 11:t=Bv(null,t,r,e,n);break e;case 14:t=Uv(null,t,r,Hn(r.type,e),n);break e}throw Error(q(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Hn(r,o),Jh(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Hn(r,o),Vv(e,t,r,o,n);case 3:e:{if(fC(t),e===null)throw Error(q(387));r=t.pendingProps,i=t.memoizedState,o=i.element,LS(e,t),Nc(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=hs(Error(q(423)),t),t=Wv(e,t,r,n,o);break e}else if(r!==o){o=hs(Error(q(424)),t),t=Wv(e,t,r,n,o);break e}else for(ln=po(t.stateNode.containerInfo.firstChild),cn=t,Ve=!0,Kn=null,n=zS(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ds(),r===o){t=Dr(e,t,n);break e}Nt(e,t,r,n)}t=t.child}return t;case 5:return BS(t),e===null&&Yh(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,Vh(r,o)?s=null:i!==null&&Vh(r,i)&&(t.flags|=32),dC(e,t),Nt(e,t,s,n),t.child;case 6:return e===null&&Yh(t),null;case 13:return pC(e,t,n);case 4:return Dm(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=fs(t,null,r,n):Nt(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Hn(r,o),Bv(e,t,r,o,n);case 7:return Nt(e,t,t.pendingProps,n),t.child;case 8:return Nt(e,t,t.pendingProps.children,n),t.child;case 12:return Nt(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,De(Oc,r._currentValue),r._currentValue=s,i!==null)if(er(i.value,s)){if(i.children===o.children&&!Xt.current){t=Dr(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=Or(-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),qh(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(q(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),qh(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}Nt(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Ji(t,n),o=In(o),r=r(o),t.flags|=1,Nt(e,t,r,n),t.child;case 14:return r=t.type,o=Hn(r,t.pendingProps),o=Hn(r.type,o),Uv(e,t,r,o,n);case 15:return uC(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Hn(r,o),sc(e,t),t.tag=1,Qt(r)?(e=!0,Ec(t)):e=!1,Ji(t,n),DS(t,r,o),Qh(t,r,o,n),eg(null,t,r,!0,e,n);case 19:return hC(e,t,n);case 22:return cC(e,t,n)}throw Error(q(156,t.tag))};function EC(e,t){return nS(e,t)}function XM(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 Tn(e,t,n,r){return new XM(e,t,n,r)}function Jm(e){return e=e.prototype,!(!e||!e.isReactComponent)}function QM(e){if(typeof e=="function")return Jm(e)?1:0;if(e!=null){if(e=e.$$typeof,e===vm)return 11;if(e===xm)return 14}return 2}function yo(e,t){var n=e.alternate;return n===null?(n=Tn(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 uc(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")Jm(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Ai:return Xo(n.children,o,i,t);case ym:s=8,o|=8;break;case wh:return e=Tn(12,n,t,o|2),e.elementType=wh,e.lanes=i,e;case Sh:return e=Tn(13,n,t,o),e.elementType=Sh,e.lanes=i,e;case Ch:return e=Tn(19,n,t,o),e.elementType=Ch,e.lanes=i,e;case Fw:return Nd(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case jw:s=10;break e;case Dw:s=9;break e;case vm:s=11;break e;case xm:s=14;break e;case Qr:s=16,r=null;break e}throw Error(q(130,e==null?e:typeof e,""))}return t=Tn(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Xo(e,t,n,r){return e=Tn(7,e,r,t),e.lanes=n,e}function Nd(e,t,n,r){return e=Tn(22,e,r,t),e.elementType=Fw,e.lanes=n,e.stateNode={isHidden:!1},e}function Ap(e,t,n){return e=Tn(6,e,null,t),e.lanes=n,e}function Np(e,t,n){return t=Tn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ZM(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=gp(0),this.expirationTimes=gp(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gp(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function ey(e,t,n,r,o,i,s,a,l){return e=new ZM(e,t,n,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Tn(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},jm(i),e}function JM(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(AC)}catch(e){console.error(e)}}AC(),Iw.exports=mn;var zd=Iw.exports;const $u=um(zd);var n1=zd;xh.createRoot=n1.createRoot,xh.hydrateRoot=n1.hydrateRoot;const oE={black:"#000",white:"#fff"},pl=oE,iE={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"},xi=iE,sE={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"},bi=sE,aE={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"},wi=aE,lE={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"},Si=lE,uE={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"},Ci=uE,cE={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"},ra=cE,dE={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"},fE=dE;function Fr(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n=0)&&(n[o]=e[o]);return n}function NC(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var hE=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,gE=NC(function(e){return hE.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function mE(e){if(e.sheet)return e.sheet;for(var t=0;t0?yt(js,--nn):0,ms--,tt===10&&(ms=1,Ud--),tt}function dn(){return tt=nn2||gl(tt)>3?"":" "}function ME(e,t){for(;--t&&dn()&&!(tt<48||tt>102||tt>57&&tt<65||tt>70&&tt<97););return Gl(e,cc()+(t<6&&hr()==32&&dn()==32))}function pg(e){for(;dn();)switch(tt){case e:return nn;case 34:case 39:e!==34&&e!==39&&pg(tt);break;case 40:e===41&&pg(e);break;case 92:dn();break}return nn}function EE(e,t){for(;dn()&&e+tt!==57;)if(e+tt===84&&hr()===47)break;return"/*"+Gl(t,nn-1)+"*"+Bd(e===47?e:dn())}function _E(e){for(;!gl(hr());)dn();return Gl(e,nn)}function IE(e){return BC(fc("",null,null,null,[""],e=zC(e),0,[0],e))}function fc(e,t,n,r,o,i,s,a,l){for(var u=0,c=0,f=s,d=0,h=0,p=0,y=1,x=1,g=1,v=0,m="",b=o,S=i,P=r,R=m;x;)switch(p=v,v=dn()){case 40:if(p!=108&&yt(R,f-1)==58){fg(R+=_e(dc(v),"&","&\f"),"&\f")!=-1&&(g=-1);break}case 34:case 39:case 91:R+=dc(v);break;case 9:case 10:case 13:case 32:R+=TE(p);break;case 92:R+=ME(cc()-1,7);continue;case 47:switch(hr()){case 42:case 47:Tu(OE(EE(dn(),cc()),t,n),l);break;default:R+="/"}break;case 123*y:a[u++]=ar(R)*g;case 125*y:case 59:case 0:switch(v){case 0:case 125:x=0;case 59+c:g==-1&&(R=_e(R,/\f/g,"")),h>0&&ar(R)-f&&Tu(h>32?o1(R+";",r,n,f-1):o1(_e(R," ","")+";",r,n,f-2),l);break;case 59:R+=";";default:if(Tu(P=r1(R,t,n,u,c,o,a,m,b=[],S=[],f),i),v===123)if(c===0)fc(R,t,P,P,b,i,f,a,S);else switch(d===99&&yt(R,3)===110?100:d){case 100:case 108:case 109:case 115:fc(e,P,P,r&&Tu(r1(e,P,P,0,0,o,a,m,o,b=[],f),S),o,S,f,a,r?b:S);break;default:fc(R,P,P,P,[""],S,0,a,S)}}u=c=h=0,y=g=1,m=R="",f=s;break;case 58:f=1+ar(R),h=p;default:if(y<1){if(v==123)--y;else if(v==125&&y++==0&&$E()==125)continue}switch(R+=Bd(v),v*y){case 38:g=c>0?1:(R+="\f",-1);break;case 44:a[u++]=(ar(R)-1)*g,g=1;break;case 64:hr()===45&&(R+=dc(dn())),d=hr(),c=f=ar(m=R+=_E(cc())),v++;break;case 45:p===45&&ar(R)==2&&(y=0)}}return i}function r1(e,t,n,r,o,i,s,a,l,u,c){for(var f=o-1,d=o===0?i:[""],h=sy(d),p=0,y=0,x=0;p0?d[g]+" "+v:_e(v,/&\f/g,d[g])))&&(l[x++]=m);return Vd(e,t,n,o===0?oy:a,l,u,c)}function OE(e,t,n){return Vd(e,t,n,LC,Bd(RE()),hl(e,2,-2),0)}function o1(e,t,n,r){return Vd(e,t,n,iy,hl(e,0,r),hl(e,r+1,-1),r)}function ts(e,t){for(var n="",r=sy(e),o=0;o6)switch(yt(e,t+1)){case 109:if(yt(e,t+4)!==45)break;case 102:return _e(e,/(.+:)(.+)-([^]+)/,"$1"+Ee+"$2-$3$1"+Wc+(yt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~fg(e,"stretch")?UC(_e(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(yt(e,t+1)!==115)break;case 6444:switch(yt(e,ar(e)-3-(~fg(e,"!important")&&10))){case 107:return _e(e,":",":"+Ee)+e;case 101:return _e(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ee+(yt(e,14)===45?"inline-":"")+"box$3$1"+Ee+"$2$3$1"+$t+"$2box$3")+e}break;case 5936:switch(yt(e,t+11)){case 114:return Ee+e+$t+_e(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ee+e+$t+_e(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ee+e+$t+_e(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ee+e+$t+e+e}return e}var UE=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case iy:t.return=UC(t.value,t.length);break;case jC:return ts([oa(t,{value:_e(t.value,"@","@"+Ee)})],o);case oy:if(t.length)return PE(t.props,function(i){switch(kE(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ts([oa(t,{props:[_e(i,/:(read-\w+)/,":"+Wc+"$1")]})],o);case"::placeholder":return ts([oa(t,{props:[_e(i,/:(plac\w+)/,":"+Ee+"input-$1")]}),oa(t,{props:[_e(i,/:(plac\w+)/,":"+Wc+"$1")]}),oa(t,{props:[_e(i,/:(plac\w+)/,$t+"input-$1")]})],o)}return""})}},VE=[UE],VC=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(y){var x=y.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var o=t.stylisPlugins||VE,i={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(y){for(var x=y.getAttribute("data-emotion").split(" "),g=1;ge.transitions.easing.easeInOut,Sn.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Sn.child,Sn.childLeaving,P3,Cg,({theme:e})=>e.transitions.easing.easeInOut,Sn.childPulsate,R3,({theme:e})=>e.transitions.easing.easeInOut),M3=w.forwardRef(function(t,n){const r=ye({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:s}=r,a=W(r,S3),[l,u]=w.useState([]),c=w.useRef(0),f=w.useRef(null);w.useEffect(()=>{f.current&&(f.current(),f.current=null)},[l]);const d=w.useRef(!1),h=Hi(),p=w.useRef(null),y=w.useRef(null),x=w.useCallback(b=>{const{pulsate:S,rippleX:P,rippleY:R,rippleSize:$,cb:M}=b;u(T=>[...T,C.jsx(T3,{classes:{ripple:J(i.ripple,Sn.ripple),rippleVisible:J(i.rippleVisible,Sn.rippleVisible),ripplePulsate:J(i.ripplePulsate,Sn.ripplePulsate),child:J(i.child,Sn.child),childLeaving:J(i.childLeaving,Sn.childLeaving),childPulsate:J(i.childPulsate,Sn.childPulsate)},timeout:Cg,pulsate:S,rippleX:P,rippleY:R,rippleSize:$},c.current)]),c.current+=1,f.current=M},[i]),g=w.useCallback((b={},S={},P=()=>{})=>{const{pulsate:R=!1,center:$=o||S.pulsate,fakeElement:M=!1}=S;if((b==null?void 0:b.type)==="mousedown"&&d.current){d.current=!1;return}(b==null?void 0:b.type)==="touchstart"&&(d.current=!0);const T=M?null:y.current,_=T?T.getBoundingClientRect():{width:0,height:0,left:0,top:0};let N,I,O;if($||b===void 0||b.clientX===0&&b.clientY===0||!b.clientX&&!b.touches)N=Math.round(_.width/2),I=Math.round(_.height/2);else{const{clientX:L,clientY:A}=b.touches&&b.touches.length>0?b.touches[0]:b;N=Math.round(L-_.left),I=Math.round(A-_.top)}if($)O=Math.sqrt((2*_.width**2+_.height**2)/3),O%2===0&&(O+=1);else{const L=Math.max(Math.abs((T?T.clientWidth:0)-N),N)*2+2,A=Math.max(Math.abs((T?T.clientHeight:0)-I),I)*2+2;O=Math.sqrt(L**2+A**2)}b!=null&&b.touches?p.current===null&&(p.current=()=>{x({pulsate:R,rippleX:N,rippleY:I,rippleSize:O,cb:P})},h.start(C3,()=>{p.current&&(p.current(),p.current=null)})):x({pulsate:R,rippleX:N,rippleY:I,rippleSize:O,cb:P})},[o,x,h]),v=w.useCallback(()=>{g({},{pulsate:!0})},[g]),m=w.useCallback((b,S)=>{if(h.clear(),(b==null?void 0:b.type)==="touchend"&&p.current){p.current(),p.current=null,h.start(0,()=>{m(b,S)});return}p.current=null,u(P=>P.length>0?P.slice(1):P),f.current=S},[h]);return w.useImperativeHandle(n,()=>({pulsate:v,start:g,stop:m}),[v,g,m]),C.jsx($3,k({className:J(Sn.root,i.root,s),ref:y},a,{children:C.jsx(u3,{component:null,exit:!0,children:l})}))}),E3=M3;function _3(e){return ce("MuiButtonBase",e)}const I3=de("MuiButtonBase",["root","disabled","focusVisible"]),O3=["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"],A3=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,s=le({root:["root",t&&"disabled",n&&"focusVisible"]},_3,o);return n&&r&&(s.root+=` ${r}`),s},N3=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"},[`&.${I3.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),L3=w.forwardRef(function(t,n){const r=ye({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:s,className:a,component:l="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:f=!1,focusRipple:d=!1,LinkComponent:h="a",onBlur:p,onClick:y,onContextMenu:x,onDragLeave:g,onFocus:v,onFocusVisible:m,onKeyDown:b,onKeyUp:S,onMouseDown:P,onMouseLeave:R,onMouseUp:$,onTouchEnd:M,onTouchMove:T,onTouchStart:_,tabIndex:N=0,TouchRippleProps:I,touchRippleRef:O,type:L}=r,A=W(r,O3),j=w.useRef(null),E=w.useRef(null),D=Ze(E,O),{isFocusVisibleRef:F,onFocus:V,onBlur:H,ref:ue}=$2(),[ee,Q]=w.useState(!1);u&&ee&&Q(!1),w.useImperativeHandle(o,()=>({focusVisible:()=>{Q(!0),j.current.focus()}}),[]);const[re,ge]=w.useState(!1);w.useEffect(()=>{ge(!0)},[]);const he=re&&!c&&!u;w.useEffect(()=>{ee&&d&&!c&&re&&E.current.pulsate()},[c,d,ee,re]);function B(me,ot,wr=f){return oo(Bn=>(ot&&ot(Bn),!wr&&E.current&&E.current[me](Bn),!0))}const Z=B("start",P),K=B("stop",x),z=B("stop",g),oe=B("stop",$),ne=B("stop",me=>{ee&&me.preventDefault(),R&&R(me)}),U=B("start",_),X=B("stop",M),ie=B("stop",T),ve=B("stop",me=>{H(me),F.current===!1&&Q(!1),p&&p(me)},!1),Ie=oo(me=>{j.current||(j.current=me.currentTarget),V(me),F.current===!0&&(Q(!0),m&&m(me)),v&&v(me)}),pe=()=>{const me=j.current;return l&&l!=="button"&&!(me.tagName==="A"&&me.href)},ae=w.useRef(!1),Te=oo(me=>{d&&!ae.current&&ee&&E.current&&me.key===" "&&(ae.current=!0,E.current.stop(me,()=>{E.current.start(me)})),me.target===me.currentTarget&&pe()&&me.key===" "&&me.preventDefault(),b&&b(me),me.target===me.currentTarget&&pe()&&me.key==="Enter"&&!u&&(me.preventDefault(),y&&y(me))}),je=oo(me=>{d&&me.key===" "&&E.current&&ee&&!me.defaultPrevented&&(ae.current=!1,E.current.stop(me,()=>{E.current.pulsate(me)})),S&&S(me),y&&me.target===me.currentTarget&&pe()&&me.key===" "&&!me.defaultPrevented&&y(me)});let ke=l;ke==="button"&&(A.href||A.to)&&(ke=h);const ht={};ke==="button"?(ht.type=L===void 0?"button":L,ht.disabled=u):(!A.href&&!A.to&&(ht.role="button"),u&&(ht["aria-disabled"]=u));const Ct=Ze(n,ue,j),Ot=k({},r,{centerRipple:i,component:l,disabled:u,disableRipple:c,disableTouchRipple:f,focusRipple:d,tabIndex:N,focusVisible:ee}),Me=A3(Ot);return C.jsxs(N3,k({as:ke,className:J(Me.root,a),ownerState:Ot,onBlur:ve,onClick:y,onContextMenu:K,onFocus:Ie,onKeyDown:Te,onKeyUp:je,onMouseDown:Z,onMouseLeave:ne,onMouseUp:oe,onDragLeave:z,onTouchEnd:X,onTouchMove:ie,onTouchStart:U,ref:Ct,tabIndex:u?-1:N,type:L},ht,A,{children:[s,he?C.jsx(E3,k({ref:D,center:i},I)):null]}))}),eu=L3;function j3(e){return ce("MuiTypography",e)}de("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const D3=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],F3=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 le(a,j3,s)},z3=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})=>k({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})),D1={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},B3={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},U3=e=>B3[e]||e,V3=w.forwardRef(function(t,n){const r=ye({props:t,name:"MuiTypography"}),o=U3(r.color),i=zs(k({},r,{color:o})),{align:s="inherit",className:a,component:l,gutterBottom:u=!1,noWrap:c=!1,paragraph:f=!1,variant:d="body1",variantMapping:h=D1}=i,p=W(i,D3),y=k({},i,{align:s,color:o,className:a,component:l,gutterBottom:u,noWrap:c,paragraph:f,variant:d,variantMapping:h}),x=l||(f?"p":h[d]||D1[d])||"span",g=F3(y);return C.jsx(z3,k({as:x,ref:n,ownerState:y,className:J(g.root,a)},p))}),Re=V3,q2="base";function W3(e){return`${q2}--${e}`}function H3(e,t){return`${q2}-${e}-${t}`}function X2(e,t){const n=m2[t];return n?W3(n):H3(e,t)}function G3(e,t){const n={};return t.forEach(r=>{n[r]=X2(e,r)}),n}const K3=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Y3(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 q3(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 X3(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||q3(e))}function Q3(e){const t=[],n=[];return Array.from(e.querySelectorAll(K3)).forEach((r,o)=>{const i=Y3(r);i===-1||!X3(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 Z3(){return!0}function J3(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=Q3,isEnabled:s=Z3,open:a}=e,l=w.useRef(!1),u=w.useRef(null),c=w.useRef(null),f=w.useRef(null),d=w.useRef(null),h=w.useRef(!1),p=w.useRef(null),y=Ze(t.ref,p),x=w.useRef(null);w.useEffect(()=>{!a||!p.current||(h.current=!n)},[n,a]),w.useEffect(()=>{if(!a||!p.current)return;const m=Ft(p.current);return p.current.contains(m.activeElement)||(p.current.hasAttribute("tabIndex")||p.current.setAttribute("tabIndex","-1"),h.current&&p.current.focus()),()=>{o||(f.current&&f.current.focus&&(l.current=!0,f.current.focus()),f.current=null)}},[a]),w.useEffect(()=>{if(!a||!p.current)return;const m=Ft(p.current),b=R=>{x.current=R,!(r||!s()||R.key!=="Tab")&&m.activeElement===p.current&&R.shiftKey&&(l.current=!0,c.current&&c.current.focus())},S=()=>{const R=p.current;if(R===null)return;if(!m.hasFocus()||!s()||l.current){l.current=!1;return}if(R.contains(m.activeElement)||r&&m.activeElement!==u.current&&m.activeElement!==c.current)return;if(m.activeElement!==d.current)d.current=null;else if(d.current!==null)return;if(!h.current)return;let $=[];if((m.activeElement===u.current||m.activeElement===c.current)&&($=i(p.current)),$.length>0){var M,T;const _=!!((M=x.current)!=null&&M.shiftKey&&((T=x.current)==null?void 0:T.key)==="Tab"),N=$[0],I=$[$.length-1];typeof N!="string"&&typeof I!="string"&&(_?I.focus():N.focus())}else R.focus()};m.addEventListener("focusin",S),m.addEventListener("keydown",b,!0);const P=setInterval(()=>{m.activeElement&&m.activeElement.tagName==="BODY"&&S()},50);return()=>{clearInterval(P),m.removeEventListener("focusin",S),m.removeEventListener("keydown",b,!0)}},[n,r,o,s,a,i]);const g=m=>{f.current===null&&(f.current=m.relatedTarget),h.current=!0,d.current=m.target;const b=t.props.onFocus;b&&b(m)},v=m=>{f.current===null&&(f.current=m.relatedTarget),h.current=!0};return C.jsxs(w.Fragment,{children:[C.jsx("div",{tabIndex:a?0:-1,onFocus:v,ref:u,"data-testid":"sentinelStart"}),w.cloneElement(t,{ref:y,onFocus:g}),C.jsx("div",{tabIndex:a?0:-1,onFocus:v,ref:c,"data-testid":"sentinelEnd"})]})}function eN(e){return typeof e=="function"?e():e}const Q2=w.forwardRef(function(t,n){const{children:r,container:o,disablePortal:i=!1}=t,[s,a]=w.useState(null),l=Ze(w.isValidElement(r)?r.ref:null,n);if(zt(()=>{i||a(eN(o)||document.body)},[o,i]),zt(()=>{if(s&&!i)return yg(n,s),()=>{yg(n,null)}},[n,s,i]),i){if(w.isValidElement(r)){const u={ref:l};return w.cloneElement(r,u)}return C.jsx(w.Fragment,{children:r})}return C.jsx(w.Fragment,{children:s&&zd.createPortal(r,s)})});function tN(e){const t=Ft(e);return t.body===e?So(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function za(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function F1(e){return parseInt(So(e).getComputedStyle(e).paddingRight,10)||0}function nN(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 z1(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,s=>{const a=i.indexOf(s)===-1,l=!nN(s);a&&l&&za(s,o)})}function Up(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function rN(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(tN(r)){const s=T2(Ft(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${F1(r)+s}px`;const a=Ft(r).querySelectorAll(".mui-fixed");[].forEach.call(a,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${F1(l)+s}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=Ft(r).body;else{const s=r.parentElement,a=So(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 oN(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class iN{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&&za(t.modalRef,!1);const o=oN(n);z1(n,t.mount,t.modalRef,o,!0);const i=Up(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=Up(this.containers,i=>i.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=rN(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=Up(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&&za(t.modalRef,n),z1(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&&za(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function sN(e){return typeof e=="function"?e():e}function aN(e){return e?e.props.hasOwnProperty("in"):!1}const lN=new iN;function uN(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=lN,closeAfterTransition:i=!1,onTransitionEnter:s,onTransitionExited:a,children:l,onClose:u,open:c,rootRef:f}=e,d=w.useRef({}),h=w.useRef(null),p=w.useRef(null),y=Ze(p,f),[x,g]=w.useState(!c),v=aN(l);let m=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(m=!1);const b=()=>Ft(h.current),S=()=>(d.current.modalRef=p.current,d.current.mount=h.current,d.current),P=()=>{o.mount(S(),{disableScrollLock:r}),p.current&&(p.current.scrollTop=0)},R=oo(()=>{const A=sN(t)||b().body;o.add(S(),A),p.current&&P()}),$=w.useCallback(()=>o.isTopModal(S()),[o]),M=oo(A=>{h.current=A,A&&(c&&$()?P():p.current&&za(p.current,m))}),T=w.useCallback(()=>{o.remove(S(),m)},[m,o]);w.useEffect(()=>()=>{T()},[T]),w.useEffect(()=>{c?R():(!v||!i)&&T()},[c,T,v,i,R]);const _=A=>j=>{var E;(E=A.onKeyDown)==null||E.call(A,j),!(j.key!=="Escape"||j.which===229||!$())&&(n||(j.stopPropagation(),u&&u(j,"escapeKeyDown")))},N=A=>j=>{var E;(E=A.onClick)==null||E.call(A,j),j.target===j.currentTarget&&u&&u(j,"backdropClick")};return{getRootProps:(A={})=>{const j=Y2(e);delete j.onTransitionEnter,delete j.onTransitionExited;const E=k({},j,A);return k({role:"presentation"},E,{onKeyDown:_(E),ref:y})},getBackdropProps:(A={})=>{const j=A;return k({"aria-hidden":!0},j,{onClick:N(j),open:c})},getTransitionProps:()=>{const A=()=>{g(!1),s&&s()},j=()=>{g(!0),a&&a(),i&&T()};return{onEnter:mg(A,l==null?void 0:l.props.onEnter),onExited:mg(j,l==null?void 0:l.props.onExited)}},rootRef:y,portalRef:M,isTopModal:$,exited:x,hasTransition:v}}function Z2(e){const{children:t,defer:n=!1,fallback:r=null}=e,[o,i]=w.useState(!1);return zt(()=>{n||i(!0)},[n]),w.useEffect(()=>{n&&i(!0)},[n]),C.jsx(w.Fragment,{children:o?t:r})}var Jt="top",Nn="bottom",Ln="right",en="left",My="auto",tu=[Jt,Nn,Ln,en],vs="start",xl="end",cN="clippingParents",J2="viewport",ia="popper",dN="reference",B1=tu.reduce(function(e,t){return e.concat([t+"-"+vs,t+"-"+xl])},[]),ek=[].concat(tu,[My]).reduce(function(e,t){return e.concat([t,t+"-"+vs,t+"-"+xl])},[]),fN="beforeRead",pN="read",hN="afterRead",gN="beforeMain",mN="main",yN="afterMain",vN="beforeWrite",xN="write",bN="afterWrite",wN=[fN,pN,hN,gN,mN,yN,vN,xN,bN];function yr(e){return e?(e.nodeName||"").toLowerCase():null}function pn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ai(e){var t=pn(e).Element;return e instanceof t||e instanceof Element}function _n(e){var t=pn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Ey(e){if(typeof ShadowRoot>"u")return!1;var t=pn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function SN(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];!_n(i)||!yr(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 CN(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},{});!_n(o)||!yr(o)||(Object.assign(o.style,a),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}const kN={name:"applyStyles",enabled:!0,phase:"write",fn:SN,effect:CN,requires:["computeStyles"]};function gr(e){return e.split("-")[0]}var Zo=Math.max,qc=Math.min,xs=Math.round;function kg(){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 tk(){return!/^((?!chrome|android).)*safari/i.test(kg())}function bs(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&_n(e)&&(o=e.offsetWidth>0&&xs(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&xs(r.height)/e.offsetHeight||1);var s=ai(e)?pn(e):window,a=s.visualViewport,l=!tk()&&n,u=(r.left+(l&&a?a.offsetLeft:0))/o,c=(r.top+(l&&a?a.offsetTop:0))/i,f=r.width/o,d=r.height/i;return{width:f,height:d,top:c,right:u+f,bottom:c+d,left:u,x:u,y:c}}function _y(e){var t=bs(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 nk(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Ey(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 pn(e).getComputedStyle(e)}function PN(e){return["table","td","th"].indexOf(yr(e))>=0}function _o(e){return((ai(e)?e.ownerDocument:e.document)||window.document).documentElement}function kf(e){return yr(e)==="html"?e:e.assignedSlot||e.parentNode||(Ey(e)?e.host:null)||_o(e)}function U1(e){return!_n(e)||Br(e).position==="fixed"?null:e.offsetParent}function RN(e){var t=/firefox/i.test(kg()),n=/Trident/i.test(kg());if(n&&_n(e)){var r=Br(e);if(r.position==="fixed")return null}var o=kf(e);for(Ey(o)&&(o=o.host);_n(o)&&["html","body"].indexOf(yr(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 nu(e){for(var t=pn(e),n=U1(e);n&&PN(n)&&Br(n).position==="static";)n=U1(n);return n&&(yr(n)==="html"||yr(n)==="body"&&Br(n).position==="static")?t:n||RN(e)||t}function Iy(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ba(e,t,n){return Zo(e,qc(t,n))}function $N(e,t,n){var r=Ba(e,t,n);return r>n?n:r}function rk(){return{top:0,right:0,bottom:0,left:0}}function ok(e){return Object.assign({},rk(),e)}function ik(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var TN=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,ok(typeof t!="number"?t:ik(t,tu))};function MN(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,a=gr(n.placement),l=Iy(a),u=[en,Ln].indexOf(a)>=0,c=u?"height":"width";if(!(!i||!s)){var f=TN(o.padding,n),d=_y(i),h=l==="y"?Jt:en,p=l==="y"?Nn:Ln,y=n.rects.reference[c]+n.rects.reference[l]-s[l]-n.rects.popper[c],x=s[l]-n.rects.reference[l],g=nu(i),v=g?l==="y"?g.clientHeight||0:g.clientWidth||0:0,m=y/2-x/2,b=f[h],S=v-d[c]-f[p],P=v/2-d[c]/2+m,R=Ba(b,P,S),$=l;n.modifiersData[r]=(t={},t[$]=R,t.centerOffset=R-P,t)}}function EN(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)||nk(t.elements.popper,o)&&(t.elements.arrow=o))}const _N={name:"arrow",enabled:!0,phase:"main",fn:MN,effect:EN,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ws(e){return e.split("-")[1]}var IN={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ON(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:xs(n*o)/o||0,y:xs(r*o)/o||0}}function V1(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,f=e.isFixed,d=s.x,h=d===void 0?0:d,p=s.y,y=p===void 0?0:p,x=typeof c=="function"?c({x:h,y}):{x:h,y};h=x.x,y=x.y;var g=s.hasOwnProperty("x"),v=s.hasOwnProperty("y"),m=en,b=Jt,S=window;if(u){var P=nu(n),R="clientHeight",$="clientWidth";if(P===pn(n)&&(P=_o(n),Br(P).position!=="static"&&a==="absolute"&&(R="scrollHeight",$="scrollWidth")),P=P,o===Jt||(o===en||o===Ln)&&i===xl){b=Nn;var M=f&&P===S&&S.visualViewport?S.visualViewport.height:P[R];y-=M-r.height,y*=l?1:-1}if(o===en||(o===Jt||o===Nn)&&i===xl){m=Ln;var T=f&&P===S&&S.visualViewport?S.visualViewport.width:P[$];h-=T-r.width,h*=l?1:-1}}var _=Object.assign({position:a},u&&IN),N=c===!0?ON({x:h,y},pn(n)):{x:h,y};if(h=N.x,y=N.y,l){var I;return Object.assign({},_,(I={},I[b]=v?"0":"",I[m]=g?"0":"",I.transform=(S.devicePixelRatio||1)<=1?"translate("+h+"px, "+y+"px)":"translate3d("+h+"px, "+y+"px, 0)",I))}return Object.assign({},_,(t={},t[b]=v?y+"px":"",t[m]=g?h+"px":"",t.transform="",t))}function AN(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:gr(t.placement),variation:ws(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,V1(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,V1(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 NN={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:AN,data:{}};var Iu={passive:!0};function LN(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=pn(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(c){c.addEventListener("scroll",n.update,Iu)}),a&&l.addEventListener("resize",n.update,Iu),function(){i&&u.forEach(function(c){c.removeEventListener("scroll",n.update,Iu)}),a&&l.removeEventListener("resize",n.update,Iu)}}const jN={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:LN,data:{}};var DN={left:"right",right:"left",bottom:"top",top:"bottom"};function mc(e){return e.replace(/left|right|bottom|top/g,function(t){return DN[t]})}var FN={start:"end",end:"start"};function W1(e){return e.replace(/start|end/g,function(t){return FN[t]})}function Oy(e){var t=pn(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Ay(e){return bs(_o(e)).left+Oy(e).scrollLeft}function zN(e,t){var n=pn(e),r=_o(e),o=n.visualViewport,i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;var u=tk();(u||!u&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a+Ay(e),y:l}}function BN(e){var t,n=_o(e),r=Oy(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=Zo(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=Zo(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+Ay(e),l=-r.scrollTop;return Br(o||n).direction==="rtl"&&(a+=Zo(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:a,y:l}}function Ny(e){var t=Br(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function sk(e){return["html","body","#document"].indexOf(yr(e))>=0?e.ownerDocument.body:_n(e)&&Ny(e)?e:sk(kf(e))}function Ua(e,t){var n;t===void 0&&(t=[]);var r=sk(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=pn(r),s=o?[i].concat(i.visualViewport||[],Ny(r)?r:[]):r,a=t.concat(s);return o?a:a.concat(Ua(kf(s)))}function Pg(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function UN(e,t){var n=bs(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 H1(e,t,n){return t===J2?Pg(zN(e,n)):ai(t)?UN(t,n):Pg(BN(_o(e)))}function VN(e){var t=Ua(kf(e)),n=["absolute","fixed"].indexOf(Br(e).position)>=0,r=n&&_n(e)?nu(e):e;return ai(r)?t.filter(function(o){return ai(o)&&nk(o,r)&&yr(o)!=="body"}):[]}function WN(e,t,n,r){var o=t==="clippingParents"?VN(e):[].concat(t),i=[].concat(o,[n]),s=i[0],a=i.reduce(function(l,u){var c=H1(e,u,r);return l.top=Zo(c.top,l.top),l.right=qc(c.right,l.right),l.bottom=qc(c.bottom,l.bottom),l.left=Zo(c.left,l.left),l},H1(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 ak(e){var t=e.reference,n=e.element,r=e.placement,o=r?gr(r):null,i=r?ws(r):null,s=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,l;switch(o){case Jt:l={x:s,y:t.y-n.height};break;case Nn:l={x:s,y:t.y+t.height};break;case Ln:l={x:t.x+t.width,y:a};break;case en:l={x:t.x-n.width,y:a};break;default:l={x:t.x,y:t.y}}var u=o?Iy(o):null;if(u!=null){var c=u==="y"?"height":"width";switch(i){case vs:l[u]=l[u]-(t[c]/2-n[c]/2);break;case xl:l[u]=l[u]+(t[c]/2-n[c]/2);break}}return l}function bl(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?cN:a,u=n.rootBoundary,c=u===void 0?J2:u,f=n.elementContext,d=f===void 0?ia:f,h=n.altBoundary,p=h===void 0?!1:h,y=n.padding,x=y===void 0?0:y,g=ok(typeof x!="number"?x:ik(x,tu)),v=d===ia?dN:ia,m=e.rects.popper,b=e.elements[p?v:d],S=WN(ai(b)?b:b.contextElement||_o(e.elements.popper),l,c,s),P=bs(e.elements.reference),R=ak({reference:P,element:m,strategy:"absolute",placement:o}),$=Pg(Object.assign({},m,R)),M=d===ia?$:P,T={top:S.top-M.top+g.top,bottom:M.bottom-S.bottom+g.bottom,left:S.left-M.left+g.left,right:M.right-S.right+g.right},_=e.modifiersData.offset;if(d===ia&&_){var N=_[o];Object.keys(T).forEach(function(I){var O=[Ln,Nn].indexOf(I)>=0?1:-1,L=[Jt,Nn].indexOf(I)>=0?"y":"x";T[I]+=N[L]*O})}return T}function HN(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?ek:l,c=ws(r),f=c?a?B1:B1.filter(function(p){return ws(p)===c}):tu,d=f.filter(function(p){return u.indexOf(p)>=0});d.length===0&&(d=f);var h=d.reduce(function(p,y){return p[y]=bl(e,{placement:y,boundary:o,rootBoundary:i,padding:s})[gr(y)],p},{});return Object.keys(h).sort(function(p,y){return h[p]-h[y]})}function GN(e){if(gr(e)===My)return[];var t=mc(e);return[W1(e),t,W1(t)]}function KN(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,f=n.rootBoundary,d=n.altBoundary,h=n.flipVariations,p=h===void 0?!0:h,y=n.allowedAutoPlacements,x=t.options.placement,g=gr(x),v=g===x,m=l||(v||!p?[mc(x)]:GN(x)),b=[x].concat(m).reduce(function(ee,Q){return ee.concat(gr(Q)===My?HN(t,{placement:Q,boundary:c,rootBoundary:f,padding:u,flipVariations:p,allowedAutoPlacements:y}):Q)},[]),S=t.rects.reference,P=t.rects.popper,R=new Map,$=!0,M=b[0],T=0;T=0,L=O?"width":"height",A=bl(t,{placement:_,boundary:c,rootBoundary:f,altBoundary:d,padding:u}),j=O?I?Ln:en:I?Nn:Jt;S[L]>P[L]&&(j=mc(j));var E=mc(j),D=[];if(i&&D.push(A[N]<=0),a&&D.push(A[j]<=0,A[E]<=0),D.every(function(ee){return ee})){M=_,$=!1;break}R.set(_,D)}if($)for(var F=p?3:1,V=function(Q){var re=b.find(function(ge){var he=R.get(ge);if(he)return he.slice(0,Q).every(function(B){return B})});if(re)return M=re,"break"},H=F;H>0;H--){var ue=V(H);if(ue==="break")break}t.placement!==M&&(t.modifiersData[r]._skip=!0,t.placement=M,t.reset=!0)}}const YN={name:"flip",enabled:!0,phase:"main",fn:KN,requiresIfExists:["offset"],data:{_skip:!1}};function G1(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 K1(e){return[Jt,Ln,Nn,en].some(function(t){return e[t]>=0})}function qN(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,s=bl(t,{elementContext:"reference"}),a=bl(t,{altBoundary:!0}),l=G1(s,r),u=G1(a,o,i),c=K1(l),f=K1(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}const XN={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:qN};function QN(e,t,n){var r=gr(e),o=[en,Jt].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,[en,Ln].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}function ZN(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,s=ek.reduce(function(c,f){return c[f]=QN(f,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 JN={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:ZN};function e5(e){var t=e.state,n=e.name;t.modifiersData[n]=ak({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const t5={name:"popperOffsets",enabled:!0,phase:"read",fn:e5,data:{}};function n5(e){return e==="x"?"y":"x"}function r5(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,f=n.padding,d=n.tether,h=d===void 0?!0:d,p=n.tetherOffset,y=p===void 0?0:p,x=bl(t,{boundary:l,rootBoundary:u,padding:f,altBoundary:c}),g=gr(t.placement),v=ws(t.placement),m=!v,b=Iy(g),S=n5(b),P=t.modifiersData.popperOffsets,R=t.rects.reference,$=t.rects.popper,M=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,T=typeof M=="number"?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M),_=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,N={x:0,y:0};if(P){if(i){var I,O=b==="y"?Jt:en,L=b==="y"?Nn:Ln,A=b==="y"?"height":"width",j=P[b],E=j+x[O],D=j-x[L],F=h?-$[A]/2:0,V=v===vs?R[A]:$[A],H=v===vs?-$[A]:-R[A],ue=t.elements.arrow,ee=h&&ue?_y(ue):{width:0,height:0},Q=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:rk(),re=Q[O],ge=Q[L],he=Ba(0,R[A],ee[A]),B=m?R[A]/2-F-he-re-T.mainAxis:V-he-re-T.mainAxis,Z=m?-R[A]/2+F+he+ge+T.mainAxis:H+he+ge+T.mainAxis,K=t.elements.arrow&&nu(t.elements.arrow),z=K?b==="y"?K.clientTop||0:K.clientLeft||0:0,oe=(I=_==null?void 0:_[b])!=null?I:0,ne=j+B-oe-z,U=j+Z-oe,X=Ba(h?qc(E,ne):E,j,h?Zo(D,U):D);P[b]=X,N[b]=X-j}if(a){var ie,ve=b==="x"?Jt:en,Ie=b==="x"?Nn:Ln,pe=P[S],ae=S==="y"?"height":"width",Te=pe+x[ve],je=pe-x[Ie],ke=[Jt,en].indexOf(g)!==-1,ht=(ie=_==null?void 0:_[S])!=null?ie:0,Ct=ke?Te:pe-R[ae]-$[ae]-ht+T.altAxis,Ot=ke?pe+R[ae]+$[ae]-ht-T.altAxis:je,Me=h&&ke?$N(Ct,pe,Ot):Ba(h?Ct:Te,pe,h?Ot:je);P[S]=Me,N[S]=Me-pe}t.modifiersData[r]=N}}const o5={name:"preventOverflow",enabled:!0,phase:"main",fn:r5,requiresIfExists:["offset"]};function i5(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function s5(e){return e===pn(e)||!_n(e)?Oy(e):i5(e)}function a5(e){var t=e.getBoundingClientRect(),n=xs(t.width)/e.offsetWidth||1,r=xs(t.height)/e.offsetHeight||1;return n!==1||r!==1}function l5(e,t,n){n===void 0&&(n=!1);var r=_n(t),o=_n(t)&&a5(t),i=_o(t),s=bs(e,o,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((yr(t)!=="body"||Ny(i))&&(a=s5(t)),_n(t)?(l=bs(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=Ay(i))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function u5(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 c5(e){var t=u5(e);return wN.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function d5(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function f5(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 Y1={placement:"bottom",modifiers:[],strategy:"absolute"};function q1(){for(var e=arguments.length,t=new Array(e),n=0;nle({root:["root"]},y3(m5)),S5={},C5=w.forwardRef(function(t,n){var r;const{anchorEl:o,children:i,direction:s,disablePortal:a,modifiers:l,open:u,placement:c,popperOptions:f,popperRef:d,slotProps:h={},slots:p={},TransitionProps:y}=t,x=W(t,y5),g=w.useRef(null),v=Ze(g,n),m=w.useRef(null),b=Ze(m,d),S=w.useRef(b);zt(()=>{S.current=b},[b]),w.useImperativeHandle(d,()=>m.current,[]);const P=x5(c,s),[R,$]=w.useState(P),[M,T]=w.useState(Rg(o));w.useEffect(()=>{m.current&&m.current.forceUpdate()}),w.useEffect(()=>{o&&T(Rg(o))},[o]),zt(()=>{if(!M||!u)return;const L=E=>{$(E.placement)};let A=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:E})=>{L(E)}}];l!=null&&(A=A.concat(l)),f&&f.modifiers!=null&&(A=A.concat(f.modifiers));const j=g5(M,g.current,k({placement:P},f,{modifiers:A}));return S.current(j),()=>{j.destroy(),S.current(null)}},[M,a,l,u,f,P]);const _={placement:R};y!==null&&(_.TransitionProps=y);const N=w5(),I=(r=p.root)!=null?r:"div",O=wt({elementType:I,externalSlotProps:h.root,externalForwardedProps:x,additionalProps:{role:"tooltip",ref:v},ownerState:t,className:N.root});return C.jsx(I,k({},O,{children:typeof i=="function"?i(_):i}))}),uk=w.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:f="bottom",popperOptions:d=S5,popperRef:h,style:p,transition:y=!1,slotProps:x={},slots:g={}}=t,v=W(t,v5),[m,b]=w.useState(!0),S=()=>{b(!1)},P=()=>{b(!0)};if(!l&&!c&&(!y||m))return null;let R;if(i)R=i;else if(r){const T=Rg(r);R=T&&b5(T)?Ft(T).body:Ft(null).body}const $=!c&&l&&(!y||m)?"none":void 0,M=y?{in:c,onEnter:S,onExited:P}:void 0;return C.jsx(Q2,{disablePortal:a,container:R,children:C.jsx(C5,k({anchorEl:r,direction:s,disablePortal:a,modifiers:u,ref:n,open:y?!m:c,placement:f,popperOptions:d,popperRef:h,slotProps:x,slots:g},v,{style:k({position:"fixed",top:0,left:0,display:$},p),TransitionProps:M,children:o}))})}),k5=["onChange","maxRows","minRows","style","value"];function Ou(e){return parseInt(e,10)||0}const P5={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function R5(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const $5=w.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:i=1,style:s,value:a}=t,l=W(t,k5),{current:u}=w.useRef(a!=null),c=w.useRef(null),f=Ze(n,c),d=w.useRef(null),h=w.useCallback(()=>{const x=c.current,v=So(x).getComputedStyle(x);if(v.width==="0px")return{outerHeightStyle:0,overflowing:!1};const m=d.current;m.style.width=v.width,m.value=x.value||t.placeholder||"x",m.value.slice(-1)===` -`&&(m.value+=" ");const b=v.boxSizing,S=Ou(v.paddingBottom)+Ou(v.paddingTop),P=Ou(v.borderBottomWidth)+Ou(v.borderTopWidth),R=m.scrollHeight;m.value="x";const $=m.scrollHeight;let M=R;i&&(M=Math.max(Number(i)*$,M)),o&&(M=Math.min(Number(o)*$,M)),M=Math.max(M,$);const T=M+(b==="border-box"?S+P:0),_=Math.abs(M-R)<=1;return{outerHeightStyle:T,overflowing:_}},[o,i,t.placeholder]),p=w.useCallback(()=>{const x=h();if(R5(x))return;const g=c.current;g.style.height=`${x.outerHeightStyle}px`,g.style.overflow=x.overflowing?"hidden":""},[h]);zt(()=>{const x=()=>{p()};let g;const v=R2(x),m=c.current,b=So(m);b.addEventListener("resize",v);let S;return typeof ResizeObserver<"u"&&(S=new ResizeObserver(x),S.observe(m)),()=>{v.clear(),cancelAnimationFrame(g),b.removeEventListener("resize",v),S&&S.disconnect()}},[h,p]),zt(()=>{p()});const y=x=>{u||p(),r&&r(x)};return C.jsxs(w.Fragment,{children:[C.jsx("textarea",k({value:a,onChange:y,ref:f,rows:i,style:s},l)),C.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:d,tabIndex:-1,style:k({},P5.shadow,s,{paddingTop:0,paddingBottom:0})})]})});var Ly={};Object.defineProperty(Ly,"__esModule",{value:!0});var ck=Ly.default=void 0,T5=E5(w),M5=U2;function dk(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(dk=function(r){return r?n:t})(e)}function E5(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=dk(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 _5(e){return Object.keys(e).length===0}function I5(e=null){const t=T5.useContext(M5.ThemeContext);return!t||_5(t)?e:t}ck=Ly.default=I5;const O5=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],A5=G(uk,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),N5=w.forwardRef(function(t,n){var r;const o=ck(),i=ye({props:t,name:"MuiPopper"}),{anchorEl:s,component:a,components:l,componentsProps:u,container:c,disablePortal:f,keepMounted:d,modifiers:h,open:p,placement:y,popperOptions:x,popperRef:g,transition:v,slots:m,slotProps:b}=i,S=W(i,O5),P=(r=m==null?void 0:m.root)!=null?r:l==null?void 0:l.Root,R=k({anchorEl:s,container:c,disablePortal:f,keepMounted:d,modifiers:h,open:p,placement:y,popperOptions:x,popperRef:g,transition:v},S);return C.jsx(A5,k({as:a,direction:o==null?void 0:o.direction,slots:{root:P},slotProps:b??u},R,{ref:n}))}),fk=N5;function Io({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 L5=w.createContext(void 0),Pf=L5;function br(){return w.useContext(Pf)}function pk(e){return C.jsx(bI,k({},e,{defaultTheme:wf,themeId:ii}))}function X1(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Xc(e,t=!1){return e&&(X1(e.value)&&e.value!==""||t&&X1(e.defaultValue)&&e.defaultValue!=="")}function j5(e){return e.startAdornment}function D5(e){return ce("MuiInputBase",e)}const F5=de("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Ss=F5,z5=["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"],Rf=(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]},$f=(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]},B5=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:s,formControl:a,fullWidth:l,hiddenLabel:u,multiline:c,readOnly:f,size:d,startAdornment:h,type:p}=e,y={root:["root",`color${se(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",s&&"focused",a&&"formControl",d&&d!=="medium"&&`size${se(d)}`,c&&"multiline",h&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",f&&"readOnly"],input:["input",r&&"disabled",p==="search"&&"inputTypeSearch",c&&"inputMultiline",d==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",h&&"inputAdornedStart",i&&"inputAdornedEnd",f&&"readOnly"]};return le(y,D5,t)},Tf=G("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Rf})(({theme:e,ownerState:t})=>k({},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",[`&.${Ss.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&k({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),Mf=G("input",{name:"MuiInputBase",slot:"Input",overridesResolver:$f})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=k({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 k({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] + .${Ss.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},[`&.${Ss.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"})}),U5=C.jsx(pk,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),V5=w.forwardRef(function(t,n){var r;const o=ye({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:s,autoFocus:a,className:l,components:u={},componentsProps:c={},defaultValue:f,disabled:d,disableInjectingGlobalStyles:h,endAdornment:p,fullWidth:y=!1,id:x,inputComponent:g="input",inputProps:v={},inputRef:m,maxRows:b,minRows:S,multiline:P=!1,name:R,onBlur:$,onChange:M,onClick:T,onFocus:_,onKeyDown:N,onKeyUp:I,placeholder:O,readOnly:L,renderSuffix:A,rows:j,slotProps:E={},slots:D={},startAdornment:F,type:V="text",value:H}=o,ue=W(o,z5),ee=v.value!=null?v.value:H,{current:Q}=w.useRef(ee!=null),re=w.useRef(),ge=w.useCallback(Me=>{},[]),he=Ze(re,m,v.ref,ge),[B,Z]=w.useState(!1),K=br(),z=Io({props:o,muiFormControl:K,states:["color","disabled","error","hiddenLabel","size","required","filled"]});z.focused=K?K.focused:B,w.useEffect(()=>{!K&&d&&B&&(Z(!1),$&&$())},[K,d,B,$]);const oe=K&&K.onFilled,ne=K&&K.onEmpty,U=w.useCallback(Me=>{Xc(Me)?oe&&oe():ne&&ne()},[oe,ne]);zt(()=>{Q&&U({value:ee})},[ee,U,Q]);const X=Me=>{if(z.disabled){Me.stopPropagation();return}_&&_(Me),v.onFocus&&v.onFocus(Me),K&&K.onFocus?K.onFocus(Me):Z(!0)},ie=Me=>{$&&$(Me),v.onBlur&&v.onBlur(Me),K&&K.onBlur?K.onBlur(Me):Z(!1)},ve=(Me,...me)=>{if(!Q){const ot=Me.target||re.current;if(ot==null)throw new Error(Fr(1));U({value:ot.value})}v.onChange&&v.onChange(Me,...me),M&&M(Me,...me)};w.useEffect(()=>{U(re.current)},[]);const Ie=Me=>{re.current&&Me.currentTarget===Me.target&&re.current.focus(),T&&T(Me)};let pe=g,ae=v;P&&pe==="input"&&(j?ae=k({type:void 0,minRows:j,maxRows:j},ae):ae=k({type:void 0,maxRows:b,minRows:S},ae),pe=$5);const Te=Me=>{U(Me.animationName==="mui-auto-fill-cancel"?re.current:{value:"x"})};w.useEffect(()=>{K&&K.setAdornedStart(!!F)},[K,F]);const je=k({},o,{color:z.color||"primary",disabled:z.disabled,endAdornment:p,error:z.error,focused:z.focused,formControl:K,fullWidth:y,hiddenLabel:z.hiddenLabel,multiline:P,size:z.size,startAdornment:F,type:V}),ke=B5(je),ht=D.root||u.Root||Tf,Ct=E.root||c.root||{},Ot=D.input||u.Input||Mf;return ae=k({},ae,(r=E.input)!=null?r:c.input),C.jsxs(w.Fragment,{children:[!h&&U5,C.jsxs(ht,k({},Ct,!ys(ht)&&{ownerState:k({},je,Ct.ownerState)},{ref:n,onClick:Ie},ue,{className:J(ke.root,Ct.className,l,L&&"MuiInputBase-readOnly"),children:[F,C.jsx(Pf.Provider,{value:null,children:C.jsx(Ot,k({ownerState:je,"aria-invalid":z.error,"aria-describedby":i,autoComplete:s,autoFocus:a,defaultValue:f,disabled:z.disabled,id:x,onAnimationStart:Te,name:R,placeholder:O,readOnly:L,required:z.required,rows:j,value:ee,onKeyDown:N,onKeyUp:I,type:V},ae,!ys(Ot)&&{as:pe,ownerState:k({},je,ae.ownerState)},{ref:he,className:J(ke.input,ae.className,L&&"MuiInputBase-readOnly"),onBlur:ie,onChange:ve,onFocus:X}))}),p,A?A(k({},z,{startAdornment:F})):null]}))]})}),jy=V5;function W5(e){return ce("MuiInput",e)}const H5=k({},Ss,de("MuiInput",["root","underline","input"])),sa=H5;function G5(e){return ce("MuiOutlinedInput",e)}const K5=k({},Ss,de("MuiOutlinedInput",["root","notchedOutline","input"])),qr=K5;function Y5(e){return ce("MuiFilledInput",e)}const q5=k({},Ss,de("MuiFilledInput",["root","underline","input"])),Oo=q5,X5=xr(C.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),Q5=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Z5={entering:{opacity:1},entered:{opacity:1}},J5=w.forwardRef(function(t,n){const r=_t(),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:f,onEntering:d,onExit:h,onExited:p,onExiting:y,style:x,timeout:g=o,TransitionComponent:v=G2}=t,m=W(t,Q5),b=w.useRef(null),S=Ze(b,a.ref,n),P=O=>L=>{if(O){const A=b.current;L===void 0?O(A):O(A,L)}},R=P(d),$=P((O,L)=>{K2(O);const A=Yc({style:x,timeout:g,easing:l},{mode:"enter"});O.style.webkitTransition=r.transitions.create("opacity",A),O.style.transition=r.transitions.create("opacity",A),c&&c(O,L)}),M=P(f),T=P(y),_=P(O=>{const L=Yc({style:x,timeout:g,easing:l},{mode:"exit"});O.style.webkitTransition=r.transitions.create("opacity",L),O.style.transition=r.transitions.create("opacity",L),h&&h(O)}),N=P(p),I=O=>{i&&i(b.current,O)};return C.jsx(v,k({appear:s,in:u,nodeRef:b,onEnter:$,onEntered:M,onEntering:R,onExit:_,onExited:N,onExiting:T,addEndListener:I,timeout:g},m,{children:(O,L)=>w.cloneElement(a,k({style:k({opacity:0,visibility:O==="exited"&&!u?"hidden":void 0},Z5[O],x,a.props.style),ref:S},L))}))}),hk=J5;function eL(e){return ce("MuiBackdrop",e)}de("MuiBackdrop",["root","invisible"]);const tL=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],nL=e=>{const{classes:t,invisible:n}=e;return le({root:["root",n&&"invisible"]},eL,t)},rL=G("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>k({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"})),oL=w.forwardRef(function(t,n){var r,o,i;const s=ye({props:t,name:"MuiBackdrop"}),{children:a,className:l,component:u="div",components:c={},componentsProps:f={},invisible:d=!1,open:h,slotProps:p={},slots:y={},TransitionComponent:x=hk,transitionDuration:g}=s,v=W(s,tL),m=k({},s,{component:u,invisible:d}),b=nL(m),S=(r=p.root)!=null?r:f.root;return C.jsx(x,k({in:h,timeout:g},v,{children:C.jsx(rL,k({"aria-hidden":!0},S,{as:(o=(i=y.root)!=null?i:c.Root)!=null?o:u,className:J(b.root,l,S==null?void 0:S.className),ownerState:k({},m,S==null?void 0:S.ownerState),classes:b,ref:n,children:a}))}))}),gk=oL,iL=de("MuiBox",["root"]),sL=iL,aL=bf(),lL=g2({themeId:ii,defaultTheme:aL,defaultClassName:sL.root,generateClassName:vy.generate}),Ef=lL;function uL(e){return ce("MuiButton",e)}const cL=de("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"]),Au=cL,dL=w.createContext({}),fL=dL,pL=w.createContext(void 0),hL=pL,gL=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],mL=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=le(a,uL,s);return k({},s,l)},mk=e=>k({},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}}),yL=G(eu,{shouldForwardProp:e=>It(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 k({},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":k({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:at(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})`:at(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})`:at(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":k({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Au.focusVisible}`]:k({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Au.disabled}`]:k({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 ${at(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"},[`&.${Au.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Au.disabled}`]:{boxShadow:"none"}}),vL=G("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${se(n.size)}`]]}})(({ownerState:e})=>k({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},mk(e))),xL=G("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${se(n.size)}`]]}})(({ownerState:e})=>k({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},mk(e))),bL=w.forwardRef(function(t,n){const r=w.useContext(fL),o=w.useContext(hL),i=vf(r,t),s=ye({props:i,name:"MuiButton"}),{children:a,color:l="primary",component:u="button",className:c,disabled:f=!1,disableElevation:d=!1,disableFocusRipple:h=!1,endIcon:p,focusVisibleClassName:y,fullWidth:x=!1,size:g="medium",startIcon:v,type:m,variant:b="text"}=s,S=W(s,gL),P=k({},s,{color:l,component:u,disabled:f,disableElevation:d,disableFocusRipple:h,fullWidth:x,size:g,type:m,variant:b}),R=mL(P),$=v&&C.jsx(vL,{className:R.startIcon,ownerState:P,children:v}),M=p&&C.jsx(xL,{className:R.endIcon,ownerState:P,children:p}),T=o||"";return C.jsxs(yL,k({ownerState:P,className:J(r.className,R.root,c,T),component:u,disabled:f,focusRipple:!h,focusVisibleClassName:J(R.focusVisible,y),ref:n,type:m},S,{classes:R,children:[$,a,M]}))}),$g=bL;function wL(e){return ce("PrivateSwitchBase",e)}de("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const SL=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],CL=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,i={root:["root",n&&"checked",r&&"disabled",o&&`edge${se(o)}`],input:["input"]};return le(i,wL,t)},kL=G(eu)(({ownerState:e})=>k({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),PL=G("input",{shouldForwardProp:It})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),RL=w.forwardRef(function(t,n){const{autoFocus:r,checked:o,checkedIcon:i,className:s,defaultChecked:a,disabled:l,disableFocusRipple:u=!1,edge:c=!1,icon:f,id:d,inputProps:h,inputRef:p,name:y,onBlur:x,onChange:g,onFocus:v,readOnly:m,required:b=!1,tabIndex:S,type:P,value:R}=t,$=W(t,SL),[M,T]=yl({controlled:o,default:!!a,name:"SwitchBase",state:"checked"}),_=br(),N=D=>{v&&v(D),_&&_.onFocus&&_.onFocus(D)},I=D=>{x&&x(D),_&&_.onBlur&&_.onBlur(D)},O=D=>{if(D.nativeEvent.defaultPrevented)return;const F=D.target.checked;T(F),g&&g(D,F)};let L=l;_&&typeof L>"u"&&(L=_.disabled);const A=P==="checkbox"||P==="radio",j=k({},t,{checked:M,disabled:L,disableFocusRipple:u,edge:c}),E=CL(j);return C.jsxs(kL,k({component:"span",className:J(E.root,s),centerRipple:!0,focusRipple:!u,disabled:L,tabIndex:null,role:void 0,onFocus:N,onBlur:I,ownerState:j,ref:n},$,{children:[C.jsx(PL,k({autoFocus:r,checked:o,defaultChecked:a,className:E.input,disabled:L,id:A?d:void 0,name:y,onChange:O,readOnly:m,ref:p,required:b,ownerState:j,tabIndex:S,type:P},P==="checkbox"&&R===void 0?{}:{value:R},h)),M?i:f]}))}),yk=RL,$L=xr(C.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),TL=xr(C.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),ML=xr(C.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function EL(e){return ce("MuiCheckbox",e)}const _L=de("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Vp=_L,IL=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],OL=e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,i={root:["root",n&&"indeterminate",`color${se(r)}`,`size${se(o)}`]},s=le(i,EL,t);return k({},t,s)},AL=G(yk,{shouldForwardProp:e=>It(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${se(n.size)}`],n.color!=="default"&&t[`color${se(n.color)}`]]}})(({theme:e,ownerState:t})=>k({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:at(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${Vp.checked}, &.${Vp.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Vp.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),NL=C.jsx(TL,{}),LL=C.jsx($L,{}),jL=C.jsx(ML,{}),DL=w.forwardRef(function(t,n){var r,o;const i=ye({props:t,name:"MuiCheckbox"}),{checkedIcon:s=NL,color:a="primary",icon:l=LL,indeterminate:u=!1,indeterminateIcon:c=jL,inputProps:f,size:d="medium",className:h}=i,p=W(i,IL),y=u?c:l,x=u?c:s,g=k({},i,{color:a,indeterminate:u,size:d}),v=OL(g);return C.jsx(AL,k({type:"checkbox",inputProps:k({"data-indeterminate":u},f),icon:w.cloneElement(y,{fontSize:(r=y.props.fontSize)!=null?r:d}),checkedIcon:w.cloneElement(x,{fontSize:(o=x.props.fontSize)!=null?o:d}),ownerState:g,ref:n,className:J(v.root,h)},p,{classes:v}))}),FL=DL,zL=(e,t)=>k({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),BL=e=>k({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}}),UL=(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=k({html:zL(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:k({margin:0},BL(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 VL(e){const t=ye({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return C.jsxs(w.Fragment,{children:[C.jsx(pk,{styles:o=>UL(o,r)}),n]})}function WL(e){return ce("MuiModal",e)}de("MuiModal",["root","hidden","backdrop"]);const HL=["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"],GL=e=>{const{open:t,exited:n,classes:r}=e;return le({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},WL,r)},KL=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})=>k({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),YL=G(gk,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),qL=w.forwardRef(function(t,n){var r,o,i,s,a,l;const u=ye({name:"MuiModal",props:t}),{BackdropComponent:c=YL,BackdropProps:f,className:d,closeAfterTransition:h=!1,children:p,container:y,component:x,components:g={},componentsProps:v={},disableAutoFocus:m=!1,disableEnforceFocus:b=!1,disableEscapeKeyDown:S=!1,disablePortal:P=!1,disableRestoreFocus:R=!1,disableScrollLock:$=!1,hideBackdrop:M=!1,keepMounted:T=!1,onBackdropClick:_,open:N,slotProps:I,slots:O}=u,L=W(u,HL),A=k({},u,{closeAfterTransition:h,disableAutoFocus:m,disableEnforceFocus:b,disableEscapeKeyDown:S,disablePortal:P,disableRestoreFocus:R,disableScrollLock:$,hideBackdrop:M,keepMounted:T}),{getRootProps:j,getBackdropProps:E,getTransitionProps:D,portalRef:F,isTopModal:V,exited:H,hasTransition:ue}=uN(k({},A,{rootRef:n})),ee=k({},A,{exited:H}),Q=GL(ee),re={};if(p.props.tabIndex===void 0&&(re.tabIndex="-1"),ue){const{onEnter:oe,onExited:ne}=D();re.onEnter=oe,re.onExited=ne}const ge=(r=(o=O==null?void 0:O.root)!=null?o:g.Root)!=null?r:KL,he=(i=(s=O==null?void 0:O.backdrop)!=null?s:g.Backdrop)!=null?i:c,B=(a=I==null?void 0:I.root)!=null?a:v.root,Z=(l=I==null?void 0:I.backdrop)!=null?l:v.backdrop,K=wt({elementType:ge,externalSlotProps:B,externalForwardedProps:L,getSlotProps:j,additionalProps:{ref:n,as:x},ownerState:ee,className:J(d,B==null?void 0:B.className,Q==null?void 0:Q.root,!ee.open&&ee.exited&&(Q==null?void 0:Q.hidden))}),z=wt({elementType:he,externalSlotProps:Z,additionalProps:f,getSlotProps:oe=>E(k({},oe,{onClick:ne=>{_&&_(ne),oe!=null&&oe.onClick&&oe.onClick(ne)}})),className:J(Z==null?void 0:Z.className,f==null?void 0:f.className,Q==null?void 0:Q.backdrop),ownerState:ee});return!T&&!N&&(!ue||H)?null:C.jsx(Q2,{ref:F,container:y,disablePortal:P,children:C.jsxs(ge,k({},K,{children:[!M&&c?C.jsx(he,k({},z)):null,C.jsx(J3,{disableEnforceFocus:b,disableAutoFocus:m,disableRestoreFocus:R,isEnabled:V,open:N,children:w.cloneElement(p,re)})]}))})}),vk=qL;function XL(e){return ce("MuiDialog",e)}const QL=de("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),Wp=QL,ZL=w.createContext({}),xk=ZL,JL=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],e4=G(gk,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),t4=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:i}=e,s={root:["root"],container:["container",`scroll${se(n)}`],paper:["paper",`paperScroll${se(n)}`,`paperWidth${se(String(r))}`,o&&"paperFullWidth",i&&"paperFullScreen"]};return le(s,XL,t)},n4=G(vk,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),r4=G("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${se(n.scroll)}`]]}})(({ownerState:e})=>k({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),o4=G(Sf,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${se(n.scroll)}`],t[`paperWidth${se(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>k({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${Wp.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${Wp.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${Wp.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),i4=w.forwardRef(function(t,n){const r=ye({props:t,name:"MuiDialog"}),o=_t(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":a,BackdropComponent:l,BackdropProps:u,children:c,className:f,disableEscapeKeyDown:d=!1,fullScreen:h=!1,fullWidth:p=!1,maxWidth:y="sm",onBackdropClick:x,onClose:g,open:v,PaperComponent:m=Sf,PaperProps:b={},scroll:S="paper",TransitionComponent:P=hk,transitionDuration:R=i,TransitionProps:$}=r,M=W(r,JL),T=k({},r,{disableEscapeKeyDown:d,fullScreen:h,fullWidth:p,maxWidth:y,scroll:S}),_=t4(T),N=w.useRef(),I=j=>{N.current=j.target===j.currentTarget},O=j=>{N.current&&(N.current=null,x&&x(j),g&&g(j,"backdropClick"))},L=fi(a),A=w.useMemo(()=>({titleId:L}),[L]);return C.jsx(n4,k({className:J(_.root,f),closeAfterTransition:!0,components:{Backdrop:e4},componentsProps:{backdrop:k({transitionDuration:R,as:l},u)},disableEscapeKeyDown:d,onClose:g,open:v,ref:n,onClick:O,ownerState:T},M,{children:C.jsx(P,k({appear:!0,in:v,timeout:R,role:"presentation"},$,{children:C.jsx(r4,{className:J(_.container),onMouseDown:I,ownerState:T,children:C.jsx(o4,k({as:m,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":L},b,{className:J(_.paper,b.className),ownerState:T,children:C.jsx(xk.Provider,{value:A,children:c})}))})}))}))}),bk=i4;function s4(e){return ce("MuiDialogActions",e)}de("MuiDialogActions",["root","spacing"]);const a4=["className","disableSpacing"],l4=e=>{const{classes:t,disableSpacing:n}=e;return le({root:["root",!n&&"spacing"]},s4,t)},u4=G("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>k({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),c4=w.forwardRef(function(t,n){const r=ye({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:i=!1}=r,s=W(r,a4),a=k({},r,{disableSpacing:i}),l=l4(a);return C.jsx(u4,k({className:J(l.root,o),ownerState:a,ref:n},s))}),d4=c4;function f4(e){return ce("MuiDialogContent",e)}de("MuiDialogContent",["root","dividers"]);function p4(e){return ce("MuiDialogTitle",e)}const h4=de("MuiDialogTitle",["root"]),g4=h4,m4=["className","dividers"],y4=e=>{const{classes:t,dividers:n}=e;return le({root:["root",n&&"dividers"]},f4,t)},v4=G("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>k({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${g4.root} + &`]:{paddingTop:0}})),x4=w.forwardRef(function(t,n){const r=ye({props:t,name:"MuiDialogContent"}),{className:o,dividers:i=!1}=r,s=W(r,m4),a=k({},r,{dividers:i}),l=y4(a);return C.jsx(v4,k({className:J(l.root,o),ownerState:a,ref:n},s))}),b4=x4,w4=["className","id"],S4=e=>{const{classes:t}=e;return le({root:["root"]},p4,t)},C4=G(Re,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),k4=w.forwardRef(function(t,n){const r=ye({props:t,name:"MuiDialogTitle"}),{className:o,id:i}=r,s=W(r,w4),a=r,l=S4(a),{titleId:u=i}=w.useContext(xk);return C.jsx(C4,k({component:"h2",className:J(l.root,o),ownerState:a,ref:n,variant:"h6",id:i??u},s))}),wk=k4;function P4(e){return ce("MuiDivider",e)}de("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const R4=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],$4=e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:s,textAlign:a,variant:l}=e;return le({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"]},P4,r)},T4=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})=>k({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)`:at(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})=>k({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>k({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>k({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>k({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),M4=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})=>k({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)`})),Sk=w.forwardRef(function(t,n){const r=ye({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:f=a!=="hr"?"separator":void 0,textAlign:d="center",variant:h="fullWidth"}=r,p=W(r,R4),y=k({},r,{absolute:o,component:a,flexItem:l,light:u,orientation:c,role:f,textAlign:d,variant:h}),x=$4(y);return C.jsx(T4,k({as:a,className:J(x.root,s),role:f,ref:n,ownerState:y},p,{children:i?C.jsx(M4,{className:x.wrapper,ownerState:y,children:i}):null}))});Sk.muiSkipListHighlight=!0;const Q1=Sk,E4=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],_4=e=>{const{classes:t,disableUnderline:n}=e,o=le({root:["root",!n&&"underline"],input:["input"]},Y5,t);return k({},t,o)},I4=G(Tf,{shouldForwardProp:e=>It(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Rf(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 k({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}},[`&.${Oo.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${Oo.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"},[`&.${Oo.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Oo.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(.${Oo.disabled}, .${Oo.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Oo.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&k({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}))}),O4=G(Mf,{name:"MuiFilledInput",slot:"Input",overridesResolver:$f})(({theme:e,ownerState:t})=>k({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})),Ck=w.forwardRef(function(t,n){var r,o,i,s;const a=ye({props:t,name:"MuiFilledInput"}),{components:l={},componentsProps:u,fullWidth:c=!1,inputComponent:f="input",multiline:d=!1,slotProps:h,slots:p={},type:y="text"}=a,x=W(a,E4),g=k({},a,{fullWidth:c,inputComponent:f,multiline:d,type:y}),v=_4(a),m={root:{ownerState:g},input:{ownerState:g}},b=h??u?Dt(m,h??u):m,S=(r=(o=p.root)!=null?o:l.Root)!=null?r:I4,P=(i=(s=p.input)!=null?s:l.Input)!=null?i:O4;return C.jsx(jy,k({slots:{root:S,input:P},componentsProps:b,fullWidth:c,inputComponent:f,multiline:d,ref:n,type:y},x,{classes:v}))});Ck.muiName="Input";const kk=Ck;function A4(e){return ce("MuiFormControl",e)}de("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const N4=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],L4=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${se(n)}`,r&&"fullWidth"]};return le(o,A4,t)},j4=G("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>k({},t.root,t[`margin${se(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>k({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%"})),D4=w.forwardRef(function(t,n){const r=ye({props:t,name:"MuiFormControl"}),{children:o,className:i,color:s="primary",component:a="div",disabled:l=!1,error:u=!1,focused:c,fullWidth:f=!1,hiddenLabel:d=!1,margin:h="none",required:p=!1,size:y="medium",variant:x="outlined"}=r,g=W(r,N4),v=k({},r,{color:s,component:a,disabled:l,error:u,fullWidth:f,hiddenLabel:d,margin:h,required:p,size:y,variant:x}),m=L4(v),[b,S]=w.useState(()=>{let I=!1;return o&&w.Children.forEach(o,O=>{if(!Fa(O,["Input","Select"]))return;const L=Fa(O,["Select"])?O.props.input:O;L&&j5(L.props)&&(I=!0)}),I}),[P,R]=w.useState(()=>{let I=!1;return o&&w.Children.forEach(o,O=>{Fa(O,["Input","Select"])&&(Xc(O.props,!0)||Xc(O.props.inputProps,!0))&&(I=!0)}),I}),[$,M]=w.useState(!1);l&&$&&M(!1);const T=c!==void 0&&!l?c:$;let _;const N=w.useMemo(()=>({adornedStart:b,setAdornedStart:S,color:s,disabled:l,error:u,filled:P,focused:T,fullWidth:f,hiddenLabel:d,size:y,onBlur:()=>{M(!1)},onEmpty:()=>{R(!1)},onFilled:()=>{R(!0)},onFocus:()=>{M(!0)},registerEffect:_,required:p,variant:x}),[b,s,l,u,P,T,f,d,_,p,y,x]);return C.jsx(Pf.Provider,{value:N,children:C.jsx(j4,k({as:a,ownerState:v,className:J(m.root,i),ref:n},g,{children:o}))})}),F4=D4,z4=VO({createStyledComponent:G("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>ye({props:e,name:"MuiStack"})}),_f=z4;function B4(e){return ce("MuiFormControlLabel",e)}const U4=de("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),Ra=U4,V4=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],W4=e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:i}=e,s={root:["root",n&&"disabled",`labelPlacement${se(r)}`,o&&"error",i&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return le(s,B4,t)},H4=G("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Ra.label}`]:t.label},t.root,t[`labelPlacement${se(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>k({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Ra.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${Ra.label}`]:{[`&.${Ra.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),G4=G("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Ra.error}`]:{color:(e.vars||e).palette.error.main}})),K4=w.forwardRef(function(t,n){var r,o;const i=ye({props:t,name:"MuiFormControlLabel"}),{className:s,componentsProps:a={},control:l,disabled:u,disableTypography:c,label:f,labelPlacement:d="end",required:h,slotProps:p={}}=i,y=W(i,V4),x=br(),g=(r=u??l.props.disabled)!=null?r:x==null?void 0:x.disabled,v=h??l.props.required,m={disabled:g,required:v};["checked","name","onChange","value","inputRef"].forEach(M=>{typeof l.props[M]>"u"&&typeof i[M]<"u"&&(m[M]=i[M])});const b=Io({props:i,muiFormControl:x,states:["error"]}),S=k({},i,{disabled:g,labelPlacement:d,required:v,error:b.error}),P=W4(S),R=(o=p.typography)!=null?o:a.typography;let $=f;return $!=null&&$.type!==Re&&!c&&($=C.jsx(Re,k({component:"span"},R,{className:J(P.label,R==null?void 0:R.className),children:$}))),C.jsxs(H4,k({className:J(P.root,s),ownerState:S,ref:n},y,{children:[w.cloneElement(l,m),v?C.jsxs(_f,{display:"block",children:[$,C.jsxs(G4,{ownerState:S,"aria-hidden":!0,className:P.asterisk,children:[" ","*"]})]}):$]}))}),Pk=K4;function Y4(e){return ce("MuiFormGroup",e)}de("MuiFormGroup",["root","row","error"]);const q4=["className","row"],X4=e=>{const{classes:t,row:n,error:r}=e;return le({root:["root",n&&"row",r&&"error"]},Y4,t)},Q4=G("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})(({ownerState:e})=>k({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),Z4=w.forwardRef(function(t,n){const r=ye({props:t,name:"MuiFormGroup"}),{className:o,row:i=!1}=r,s=W(r,q4),a=br(),l=Io({props:r,muiFormControl:a,states:["error"]}),u=k({},r,{row:i,error:l.error}),c=X4(u);return C.jsx(Q4,k({className:J(c.root,o),ownerState:u,ref:n},s))}),J4=Z4;function ej(e){return ce("MuiFormHelperText",e)}const tj=de("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),Z1=tj;var J1;const nj=["children","className","component","disabled","error","filled","focused","margin","required","variant"],rj=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 le(u,ej,t)},oj=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})=>k({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${Z1.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Z1.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),ij=w.forwardRef(function(t,n){const r=ye({props:t,name:"MuiFormHelperText"}),{children:o,className:i,component:s="p"}=r,a=W(r,nj),l=br(),u=Io({props:r,muiFormControl:l,states:["variant","size","disabled","error","filled","focused","required"]}),c=k({},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}),f=rj(c);return C.jsx(oj,k({as:s,ownerState:c,className:J(f.root,i),ref:n},a,{children:o===" "?J1||(J1=C.jsx("span",{className:"notranslate",children:"​"})):o}))}),sj=ij;function aj(e){return ce("MuiFormLabel",e)}const lj=de("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Va=lj,uj=["children","className","color","component","disabled","error","filled","focused","required"],cj=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 le(l,aj,t)},dj=G("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>k({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>k({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${Va.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Va.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Va.error}`]:{color:(e.vars||e).palette.error.main}})),fj=G("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Va.error}`]:{color:(e.vars||e).palette.error.main}})),pj=w.forwardRef(function(t,n){const r=ye({props:t,name:"MuiFormLabel"}),{children:o,className:i,component:s="label"}=r,a=W(r,uj),l=br(),u=Io({props:r,muiFormControl:l,states:["color","required","focused","disabled","error","filled"]}),c=k({},r,{color:u.color||"primary",component:s,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),f=cj(c);return C.jsxs(dj,k({as:s,ownerState:c,className:J(f.root,i),ref:n},a,{children:[o,u.required&&C.jsxs(fj,{ownerState:c,"aria-hidden":!0,className:f.asterisk,children:[" ","*"]})]}))}),hj=pj,gj=w.createContext(),ex=gj;function mj(e){return ce("MuiGrid",e)}const yj=[0,1,2,3,4,5,6,7,8,9,10],vj=["column-reverse","column","row-reverse","row"],xj=["nowrap","wrap-reverse","wrap"],aa=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],wl=de("MuiGrid",["root","container","item","zeroMinWidth",...yj.map(e=>`spacing-xs-${e}`),...vj.map(e=>`direction-xs-${e}`),...xj.map(e=>`wrap-xs-${e}`),...aa.map(e=>`grid-xs-${e}`),...aa.map(e=>`grid-sm-${e}`),...aa.map(e=>`grid-md-${e}`),...aa.map(e=>`grid-lg-${e}`),...aa.map(e=>`grid-xl-${e}`)]),bj=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function rs(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function wj({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce((r,o)=>{let i={};if(t[o]&&(n=t[o]),!n)return r;if(n===!0)i={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(n==="auto")i={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const s=Qo({values:t.columns,breakpoints:e.breakpoints.values}),a=typeof s=="object"?s[o]:s;if(a==null)return r;const l=`${Math.round(n/a*1e8)/1e6}%`;let u={};if(t.container&&t.item&&t.columnSpacing!==0){const c=e.spacing(t.columnSpacing);if(c!=="0px"){const f=`calc(${l} + ${rs(c)})`;u={flexBasis:f,maxWidth:f}}}i=k({flexBasis:l,flexGrow:0,maxWidth:l},u)}return e.breakpoints.values[o]===0?Object.assign(r,i):r[e.breakpoints.up(o)]=i,r},{})}function Sj({theme:e,ownerState:t}){const n=Qo({values:t.direction,breakpoints:e.breakpoints.values});return rn({theme:e},n,r=>{const o={flexDirection:r};return r.indexOf("column")===0&&(o[`& > .${wl.item}`]={maxWidth:"none"}),o})}function Rk({breakpoints:e,values:t}){let n="";Object.keys(t).forEach(o=>{n===""&&t[o]!==0&&(n=o)});const r=Object.keys(e).sort((o,i)=>e[o]-e[i]);return r.slice(0,r.indexOf(n))}function Cj({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let o={};if(n&&r!==0){const i=Qo({values:r,breakpoints:e.breakpoints.values});let s;typeof i=="object"&&(s=Rk({breakpoints:e.breakpoints.values,values:i})),o=rn({theme:e},i,(a,l)=>{var u;const c=e.spacing(a);return c!=="0px"?{marginTop:`-${rs(c)}`,[`& > .${wl.item}`]:{paddingTop:rs(c)}}:(u=s)!=null&&u.includes(l)?{}:{marginTop:0,[`& > .${wl.item}`]:{paddingTop:0}}})}return o}function kj({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let o={};if(n&&r!==0){const i=Qo({values:r,breakpoints:e.breakpoints.values});let s;typeof i=="object"&&(s=Rk({breakpoints:e.breakpoints.values,values:i})),o=rn({theme:e},i,(a,l)=>{var u;const c=e.spacing(a);return c!=="0px"?{width:`calc(100% + ${rs(c)})`,marginLeft:`-${rs(c)}`,[`& > .${wl.item}`]:{paddingLeft:rs(c)}}:(u=s)!=null&&u.includes(l)?{}:{width:"100%",marginLeft:0,[`& > .${wl.item}`]:{paddingLeft:0}}})}return o}function Pj(e,t,n={}){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[n[`spacing-xs-${String(e)}`]];const r=[];return t.forEach(o=>{const i=e[o];Number(i)>0&&r.push(n[`spacing-${o}-${String(i)}`])}),r}const Rj=G("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:o,item:i,spacing:s,wrap:a,zeroMinWidth:l,breakpoints:u}=n;let c=[];r&&(c=Pj(s,u,t));const f=[];return u.forEach(d=>{const h=n[d];h&&f.push(t[`grid-${d}-${String(h)}`])}),[t.root,r&&t.container,i&&t.item,l&&t.zeroMinWidth,...c,o!=="row"&&t[`direction-xs-${String(o)}`],a!=="wrap"&&t[`wrap-xs-${String(a)}`],...f]}})(({ownerState:e})=>k({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},e.wrap!=="wrap"&&{flexWrap:e.wrap}),Sj,Cj,kj,wj);function $j(e,t){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[`spacing-xs-${String(e)}`];const n=[];return t.forEach(r=>{const o=e[r];if(Number(o)>0){const i=`spacing-${r}-${String(o)}`;n.push(i)}}),n}const Tj=e=>{const{classes:t,container:n,direction:r,item:o,spacing:i,wrap:s,zeroMinWidth:a,breakpoints:l}=e;let u=[];n&&(u=$j(i,l));const c=[];l.forEach(d=>{const h=e[d];h&&c.push(`grid-${d}-${String(h)}`)});const f={root:["root",n&&"container",o&&"item",a&&"zeroMinWidth",...u,r!=="row"&&`direction-xs-${String(r)}`,s!=="wrap"&&`wrap-xs-${String(s)}`,...c]};return le(f,mj,t)},Mj=w.forwardRef(function(t,n){const r=ye({props:t,name:"MuiGrid"}),{breakpoints:o}=_t(),i=zs(r),{className:s,columns:a,columnSpacing:l,component:u="div",container:c=!1,direction:f="row",item:d=!1,rowSpacing:h,spacing:p=0,wrap:y="wrap",zeroMinWidth:x=!1}=i,g=W(i,bj),v=h||p,m=l||p,b=w.useContext(ex),S=c?a||12:b,P={},R=k({},g);o.keys.forEach(T=>{g[T]!=null&&(P[T]=g[T],delete R[T])});const $=k({},i,{columns:S,container:c,direction:f,item:d,rowSpacing:v,columnSpacing:m,wrap:y,zeroMinWidth:x,spacing:p},P,{breakpoints:o.keys}),M=Tj($);return C.jsx(ex.Provider,{value:S,children:C.jsx(Rj,k({ownerState:$,className:J(M.root,s),as:u,ref:n},R))})}),$k=Mj,Ej=NO({createStyledComponent:G("div",{name:"MuiGrid2",slot:"Root",overridesResolver:(e,t)=>t.root}),componentName:"MuiGrid2",useThemeProps:e=>ye({props:e,name:"MuiGrid2"})}),Tr=Ej,_j=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Tg(e){return`scale(${e}, ${e**2})`}const Ij={entering:{opacity:1,transform:Tg(1)},entered:{opacity:1,transform:"none"}},Hp=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Tk=w.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:i,easing:s,in:a,onEnter:l,onEntered:u,onEntering:c,onExit:f,onExited:d,onExiting:h,style:p,timeout:y="auto",TransitionComponent:x=G2}=t,g=W(t,_j),v=Hi(),m=w.useRef(),b=_t(),S=w.useRef(null),P=Ze(S,i.ref,n),R=L=>A=>{if(L){const j=S.current;A===void 0?L(j):L(j,A)}},$=R(c),M=R((L,A)=>{K2(L);const{duration:j,delay:E,easing:D}=Yc({style:p,timeout:y,easing:s},{mode:"enter"});let F;y==="auto"?(F=b.transitions.getAutoHeightDuration(L.clientHeight),m.current=F):F=j,L.style.transition=[b.transitions.create("opacity",{duration:F,delay:E}),b.transitions.create("transform",{duration:Hp?F:F*.666,delay:E,easing:D})].join(","),l&&l(L,A)}),T=R(u),_=R(h),N=R(L=>{const{duration:A,delay:j,easing:E}=Yc({style:p,timeout:y,easing:s},{mode:"exit"});let D;y==="auto"?(D=b.transitions.getAutoHeightDuration(L.clientHeight),m.current=D):D=A,L.style.transition=[b.transitions.create("opacity",{duration:D,delay:j}),b.transitions.create("transform",{duration:Hp?D:D*.666,delay:Hp?j:j||D*.333,easing:E})].join(","),L.style.opacity=0,L.style.transform=Tg(.75),f&&f(L)}),I=R(d),O=L=>{y==="auto"&&v.start(m.current||0,L),r&&r(S.current,L)};return C.jsx(x,k({appear:o,in:a,nodeRef:S,onEnter:M,onEntered:T,onEntering:$,onExit:N,onExited:I,onExiting:_,addEndListener:O,timeout:y==="auto"?null:y},g,{children:(L,A)=>w.cloneElement(i,k({style:k({opacity:0,transform:Tg(.75),visibility:L==="exited"&&!a?"hidden":void 0},Ij[L],p,i.props.style),ref:P},A))}))});Tk.muiSupportAuto=!0;const Mg=Tk,Oj=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Aj=e=>{const{classes:t,disableUnderline:n}=e,o=le({root:["root",!n&&"underline"],input:["input"]},W5,t);return k({},t,o)},Nj=G(Tf,{shouldForwardProp:e=>It(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Rf(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})`),k({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"},[`&.${sa.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${sa.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(.${sa.disabled}, .${sa.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${sa.disabled}:before`]:{borderBottomStyle:"dotted"}})}),Lj=G(Mf,{name:"MuiInput",slot:"Input",overridesResolver:$f})({}),Mk=w.forwardRef(function(t,n){var r,o,i,s;const a=ye({props:t,name:"MuiInput"}),{disableUnderline:l,components:u={},componentsProps:c,fullWidth:f=!1,inputComponent:d="input",multiline:h=!1,slotProps:p,slots:y={},type:x="text"}=a,g=W(a,Oj),v=Aj(a),b={root:{ownerState:{disableUnderline:l}}},S=p??c?Dt(p??c,b):b,P=(r=(o=y.root)!=null?o:u.Root)!=null?r:Nj,R=(i=(s=y.input)!=null?s:u.Input)!=null?i:Lj;return C.jsx(jy,k({slots:{root:P,input:R},slotProps:S,fullWidth:f,inputComponent:d,multiline:h,ref:n,type:x},g,{classes:v}))});Mk.muiName="Input";const Ek=Mk;function jj(e){return ce("MuiInputAdornment",e)}const Dj=de("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),tx=Dj;var nx;const Fj=["children","className","component","disablePointerEvents","disableTypography","position","variant"],zj=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${se(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},Bj=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:s}=e,a={root:["root",n&&"disablePointerEvents",o&&`position${se(o)}`,s,r&&"hiddenLabel",i&&`size${se(i)}`]};return le(a,jj,t)},Uj=G("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:zj})(({theme:e,ownerState:t})=>k({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${tx.positionStart}&:not(.${tx.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),Vj=w.forwardRef(function(t,n){const r=ye({props:t,name:"MuiInputAdornment"}),{children:o,className:i,component:s="div",disablePointerEvents:a=!1,disableTypography:l=!1,position:u,variant:c}=r,f=W(r,Fj),d=br()||{};let h=c;c&&d.variant,d&&!h&&(h=d.variant);const p=k({},r,{hiddenLabel:d.hiddenLabel,size:d.size,disablePointerEvents:a,position:u,variant:h}),y=Bj(p);return C.jsx(Pf.Provider,{value:null,children:C.jsx(Uj,k({as:s,ownerState:p,className:J(y.root,i),ref:n},f,{children:typeof o=="string"&&!l?C.jsx(Re,{color:"text.secondary",children:o}):C.jsxs(w.Fragment,{children:[u==="start"?nx||(nx=C.jsx("span",{className:"notranslate",children:"​"})):null,o]})}))})}),Wj=Vj;function Hj(e){return ce("MuiInputLabel",e)}de("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const Gj=["disableAnimation","margin","shrink","variant","className"],Kj=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=le(l,Hj,t);return k({},t,u)},Yj=G(hj,{shouldForwardProp:e=>It(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Va.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})=>k({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"&&k({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&&k({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"&&k({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)"}))),qj=w.forwardRef(function(t,n){const r=ye({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:i,className:s}=r,a=W(r,Gj),l=br();let u=i;typeof u>"u"&&l&&(u=l.filled||l.focused||l.adornedStart);const c=Io({props:r,muiFormControl:l,states:["size","variant","required","focused"]}),f=k({},r,{disableAnimation:o,formControl:l,shrink:u,size:c.size,variant:c.variant,required:c.required,focused:c.focused}),d=Kj(f);return C.jsx(Yj,k({"data-shrink":u,ownerState:f,ref:n,className:J(d.root,s)},a,{classes:d}))}),Xj=qj,Qj=w.createContext({}),Ar=Qj;function Zj(e){return ce("MuiList",e)}de("MuiList",["root","padding","dense","subheader"]);const Jj=["children","className","component","dense","disablePadding","subheader"],eD=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return le({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},Zj,t)},tD=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})=>k({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),nD=w.forwardRef(function(t,n){const r=ye({props:t,name:"MuiList"}),{children:o,className:i,component:s="ul",dense:a=!1,disablePadding:l=!1,subheader:u}=r,c=W(r,Jj),f=w.useMemo(()=>({dense:a}),[a]),d=k({},r,{component:s,dense:a,disablePadding:l}),h=eD(d);return C.jsx(Ar.Provider,{value:f,children:C.jsxs(tD,k({as:s,className:J(h.root,i),ref:n,ownerState:d},c,{children:[u,o]}))})}),_k=nD;function rD(e){return ce("MuiListItem",e)}const oD=de("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),_i=oD;function iD(e){return ce("MuiListItemButton",e)}const sD=de("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),Ii=sD,aD=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],lD=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]},uD=e=>{const{alignItems:t,classes:n,dense:r,disabled:o,disableGutters:i,divider:s,selected:a}=e,u=le({root:["root",r&&"dense",!i&&"gutters",s&&"divider",o&&"disabled",t==="flex-start"&&"alignItemsFlexStart",a&&"selected"]},iD,n);return k({},n,u)},cD=G(eu,{shouldForwardProp:e=>It(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:lD})(({theme:e,ownerState:t})=>k({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Ii.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:at(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Ii.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:at(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Ii.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:at(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:at(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Ii.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Ii.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.alignItems==="flex-start"&&{alignItems:"flex-start"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.dense&&{paddingTop:4,paddingBottom:4})),dD=w.forwardRef(function(t,n){const r=ye({props:t,name:"MuiListItemButton"}),{alignItems:o="center",autoFocus:i=!1,component:s="div",children:a,dense:l=!1,disableGutters:u=!1,divider:c=!1,focusVisibleClassName:f,selected:d=!1,className:h}=r,p=W(r,aD),y=w.useContext(Ar),x=w.useMemo(()=>({dense:l||y.dense||!1,alignItems:o,disableGutters:u}),[o,y.dense,l,u]),g=w.useRef(null);zt(()=>{i&&g.current&&g.current.focus()},[i]);const v=k({},r,{alignItems:o,dense:x.dense,disableGutters:u,divider:c,selected:d}),m=uD(v),b=Ze(g,n);return C.jsx(Ar.Provider,{value:x,children:C.jsx(cD,k({ref:b,href:p.href||p.to,component:(p.href||p.to)&&s==="div"?"button":s,focusVisibleClassName:J(m.focusVisible,f),ownerState:v,className:J(m.root,h)},p,{classes:m,children:a}))})}),fD=dD;function pD(e){return ce("MuiListItemSecondaryAction",e)}de("MuiListItemSecondaryAction",["root","disableGutters"]);const hD=["className"],gD=e=>{const{disableGutters:t,classes:n}=e;return le({root:["root",t&&"disableGutters"]},pD,n)},mD=G("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>k({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),Ik=w.forwardRef(function(t,n){const r=ye({props:t,name:"MuiListItemSecondaryAction"}),{className:o}=r,i=W(r,hD),s=w.useContext(Ar),a=k({},r,{disableGutters:s.disableGutters}),l=gD(a);return C.jsx(mD,k({className:J(l.root,o),ownerState:a,ref:n},i))});Ik.muiName="ListItemSecondaryAction";const yD=Ik,vD=["className"],xD=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],bD=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]},wD=e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:i,disableGutters:s,disablePadding:a,divider:l,hasSecondaryAction:u,selected:c}=e;return le({root:["root",o&&"dense",!s&&"gutters",!a&&"padding",l&&"divider",i&&"disabled",n&&"button",t==="flex-start"&&"alignItemsFlexStart",u&&"secondaryAction",c&&"selected"],container:["container"]},rD,r)},SD=G("div",{name:"MuiListItem",slot:"Root",overridesResolver:bD})(({theme:e,ownerState:t})=>k({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&k({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${Ii.root}`]:{paddingRight:48}},{[`&.${_i.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${_i.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:at(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${_i.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:at(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${_i.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.alignItems==="flex-start"&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${_i.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:at(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:at(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),CD=G("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),kD=w.forwardRef(function(t,n){const r=ye({props:t,name:"MuiListItem"}),{alignItems:o="center",autoFocus:i=!1,button:s=!1,children:a,className:l,component:u,components:c={},componentsProps:f={},ContainerComponent:d="li",ContainerProps:{className:h}={},dense:p=!1,disabled:y=!1,disableGutters:x=!1,disablePadding:g=!1,divider:v=!1,focusVisibleClassName:m,secondaryAction:b,selected:S=!1,slotProps:P={},slots:R={}}=r,$=W(r.ContainerProps,vD),M=W(r,xD),T=w.useContext(Ar),_=w.useMemo(()=>({dense:p||T.dense||!1,alignItems:o,disableGutters:x}),[o,T.dense,p,x]),N=w.useRef(null);zt(()=>{i&&N.current&&N.current.focus()},[i]);const I=w.Children.toArray(a),O=I.length&&Fa(I[I.length-1],["ListItemSecondaryAction"]),L=k({},r,{alignItems:o,autoFocus:i,button:s,dense:_.dense,disabled:y,disableGutters:x,disablePadding:g,divider:v,hasSecondaryAction:O,selected:S}),A=wD(L),j=Ze(N,n),E=R.root||c.Root||SD,D=P.root||f.root||{},F=k({className:J(A.root,D.className,l),disabled:y},M);let V=u||"li";return s&&(F.component=u||"div",F.focusVisibleClassName=J(_i.focusVisible,m),V=eu),O?(V=!F.component&&!u?"div":V,d==="li"&&(V==="li"?V="div":F.component==="li"&&(F.component="div")),C.jsx(Ar.Provider,{value:_,children:C.jsxs(CD,k({as:d,className:J(A.container,h),ref:j,ownerState:L},$,{children:[C.jsx(E,k({},D,!ys(E)&&{as:V,ownerState:k({},L,D.ownerState)},F,{children:I})),I.pop()]}))})):C.jsx(Ar.Provider,{value:_,children:C.jsxs(E,k({},D,{as:V,ref:j},!ys(E)&&{ownerState:k({},L,D.ownerState)},F,{children:[I,b&&C.jsx(yD,{children:b})]}))})}),rx=kD;function PD(e){return ce("MuiListItemAvatar",e)}de("MuiListItemAvatar",["root","alignItemsFlexStart"]);const RD=["className"],$D=e=>{const{alignItems:t,classes:n}=e;return le({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},PD,n)},TD=G("div",{name:"MuiListItemAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({ownerState:e})=>k({minWidth:56,flexShrink:0},e.alignItems==="flex-start"&&{marginTop:8})),MD=w.forwardRef(function(t,n){const r=ye({props:t,name:"MuiListItemAvatar"}),{className:o}=r,i=W(r,RD),s=w.useContext(Ar),a=k({},r,{alignItems:s.alignItems}),l=$D(a);return C.jsx(TD,k({className:J(l.root,o),ownerState:a,ref:n},i))}),ED=MD;function _D(e){return ce("MuiListItemText",e)}const ID=de("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),ox=ID,OD=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],AD=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:i}=e;return le({root:["root",n&&"inset",i&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},_D,t)},ND=G("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${ox.primary}`]:t.primary},{[`& .${ox.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>k({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),LD=w.forwardRef(function(t,n){const r=ye({props:t,name:"MuiListItemText"}),{children:o,className:i,disableTypography:s=!1,inset:a=!1,primary:l,primaryTypographyProps:u,secondary:c,secondaryTypographyProps:f}=r,d=W(r,OD),{dense:h}=w.useContext(Ar);let p=l??o,y=c;const x=k({},r,{disableTypography:s,inset:a,primary:!!p,secondary:!!y,dense:h}),g=AD(x);return p!=null&&p.type!==Re&&!s&&(p=C.jsx(Re,k({variant:h?"body2":"body1",className:g.primary,component:u!=null&&u.variant?void 0:"span",display:"block"},u,{children:p}))),y!=null&&y.type!==Re&&!s&&(y=C.jsx(Re,k({variant:"body2",className:g.secondary,color:"text.secondary",display:"block"},f,{children:y}))),C.jsxs(ND,k({className:J(g.root,i),ownerState:x,ref:n},d,{children:[p,y]}))}),ix=LD,jD=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Gp(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function sx(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Ok(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 la(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")||!Ok(a,i)||l)a=o(e,a,n);else return a.focus(),!0}return!1}const DD=w.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:f="selectedMenu"}=t,d=W(t,jD),h=w.useRef(null),p=w.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});zt(()=>{o&&h.current.focus()},[o]),w.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(m,{direction:b})=>{const S=!h.current.style.width;if(m.clientHeight{const b=h.current,S=m.key,P=Ft(b).activeElement;if(S==="ArrowDown")m.preventDefault(),la(b,P,u,l,Gp);else if(S==="ArrowUp")m.preventDefault(),la(b,P,u,l,sx);else if(S==="Home")m.preventDefault(),la(b,null,u,l,Gp);else if(S==="End")m.preventDefault(),la(b,null,u,l,sx);else if(S.length===1){const R=p.current,$=S.toLowerCase(),M=performance.now();R.keys.length>0&&(M-R.lastTime>500?(R.keys=[],R.repeating=!0,R.previousKeyMatched=!0):R.repeating&&$!==R.keys[0]&&(R.repeating=!1)),R.lastTime=M,R.keys.push($);const T=P&&!R.repeating&&Ok(P,R);R.previousKeyMatched&&(T||la(b,P,!1,l,Gp,R))?m.preventDefault():R.previousKeyMatched=!1}c&&c(m)},x=Ze(h,n);let g=-1;w.Children.forEach(s,(m,b)=>{if(!w.isValidElement(m)){g===b&&(g+=1,g>=s.length&&(g=-1));return}m.props.disabled||(f==="selectedMenu"&&m.props.selected||g===-1)&&(g=b),g===b&&(m.props.disabled||m.props.muiSkipListHighlight||m.type.muiSkipListHighlight)&&(g+=1,g>=s.length&&(g=-1))});const v=w.Children.map(s,(m,b)=>{if(b===g){const S={};return i&&(S.autoFocus=!0),m.props.tabIndex===void 0&&f==="selectedMenu"&&(S.tabIndex=0),w.cloneElement(m,S)}return m});return C.jsx(_k,k({role:"menu",ref:x,className:a,onKeyDown:y,tabIndex:o?0:-1},d,{children:v}))}),FD=DD;function zD(e){return ce("MuiPopover",e)}de("MuiPopover",["root","paper"]);const BD=["onEntering"],UD=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],VD=["slotProps"];function ax(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function lx(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function ux(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Kp(e){return typeof e=="function"?e():e}const WD=e=>{const{classes:t}=e;return le({root:["root"],paper:["paper"]},zD,t)},HD=G(vk,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Ak=G(Sf,{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}),GD=w.forwardRef(function(t,n){var r,o,i;const s=ye({props:t,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:f="anchorEl",children:d,className:h,container:p,elevation:y=8,marginThreshold:x=16,open:g,PaperProps:v={},slots:m,slotProps:b,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:P=Mg,transitionDuration:R="auto",TransitionProps:{onEntering:$}={},disableScrollLock:M=!1}=s,T=W(s.TransitionProps,BD),_=W(s,UD),N=(r=b==null?void 0:b.paper)!=null?r:v,I=w.useRef(),O=Ze(I,N.ref),L=k({},s,{anchorOrigin:u,anchorReference:f,elevation:y,marginThreshold:x,externalPaperSlotProps:N,transformOrigin:S,TransitionComponent:P,transitionDuration:R,TransitionProps:T}),A=WD(L),j=w.useCallback(()=>{if(f==="anchorPosition")return c;const oe=Kp(l),U=(oe&&oe.nodeType===1?oe:Ft(I.current).body).getBoundingClientRect();return{top:U.top+ax(U,u.vertical),left:U.left+lx(U,u.horizontal)}},[l,u.horizontal,u.vertical,c,f]),E=w.useCallback(oe=>({vertical:ax(oe,S.vertical),horizontal:lx(oe,S.horizontal)}),[S.horizontal,S.vertical]),D=w.useCallback(oe=>{const ne={width:oe.offsetWidth,height:oe.offsetHeight},U=E(ne);if(f==="none")return{top:null,left:null,transformOrigin:ux(U)};const X=j();let ie=X.top-U.vertical,ve=X.left-U.horizontal;const Ie=ie+ne.height,pe=ve+ne.width,ae=So(Kp(l)),Te=ae.innerHeight-x,je=ae.innerWidth-x;if(x!==null&&ieTe){const ke=Ie-Te;ie-=ke,U.vertical+=ke}if(x!==null&&veje){const ke=pe-je;ve-=ke,U.horizontal+=ke}return{top:`${Math.round(ie)}px`,left:`${Math.round(ve)}px`,transformOrigin:ux(U)}},[l,f,j,E,x]),[F,V]=w.useState(g),H=w.useCallback(()=>{const oe=I.current;if(!oe)return;const ne=D(oe);ne.top!==null&&(oe.style.top=ne.top),ne.left!==null&&(oe.style.left=ne.left),oe.style.transformOrigin=ne.transformOrigin,V(!0)},[D]);w.useEffect(()=>(M&&window.addEventListener("scroll",H),()=>window.removeEventListener("scroll",H)),[l,M,H]);const ue=(oe,ne)=>{$&&$(oe,ne),H()},ee=()=>{V(!1)};w.useEffect(()=>{g&&H()}),w.useImperativeHandle(a,()=>g?{updatePosition:()=>{H()}}:null,[g,H]),w.useEffect(()=>{if(!g)return;const oe=R2(()=>{H()}),ne=So(l);return ne.addEventListener("resize",oe),()=>{oe.clear(),ne.removeEventListener("resize",oe)}},[l,g,H]);let Q=R;R==="auto"&&!P.muiSupportAuto&&(Q=void 0);const re=p||(l?Ft(Kp(l)).body:void 0),ge=(o=m==null?void 0:m.root)!=null?o:HD,he=(i=m==null?void 0:m.paper)!=null?i:Ak,B=wt({elementType:he,externalSlotProps:k({},N,{style:F?N.style:k({},N.style,{opacity:0})}),additionalProps:{elevation:y,ref:O},ownerState:L,className:J(A.paper,N==null?void 0:N.className)}),Z=wt({elementType:ge,externalSlotProps:(b==null?void 0:b.root)||{},externalForwardedProps:_,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:re,open:g},ownerState:L,className:J(A.root,h)}),{slotProps:K}=Z,z=W(Z,VD);return C.jsx(ge,k({},z,!ys(ge)&&{slotProps:K,disableScrollLock:M},{children:C.jsx(P,k({appear:!0,in:g,onEntering:ue,onExited:ee,timeout:Q},T,{children:C.jsx(he,k({},B,{children:d}))}))}))}),KD=GD;function YD(e){return ce("MuiMenu",e)}de("MuiMenu",["root","paper","list"]);const qD=["onEntering"],XD=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],QD={vertical:"top",horizontal:"right"},ZD={vertical:"top",horizontal:"left"},JD=e=>{const{classes:t}=e;return le({root:["root"],paper:["paper"],list:["list"]},YD,t)},eF=G(KD,{shouldForwardProp:e=>It(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),tF=G(Ak,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),nF=G(FD,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),rF=w.forwardRef(function(t,n){var r,o;const i=ye({props:t,name:"MuiMenu"}),{autoFocus:s=!0,children:a,className:l,disableAutoFocusItem:u=!1,MenuListProps:c={},onClose:f,open:d,PaperProps:h={},PopoverClasses:p,transitionDuration:y="auto",TransitionProps:{onEntering:x}={},variant:g="selectedMenu",slots:v={},slotProps:m={}}=i,b=W(i.TransitionProps,qD),S=W(i,XD),P=I2(),R=k({},i,{autoFocus:s,disableAutoFocusItem:u,MenuListProps:c,onEntering:x,PaperProps:h,transitionDuration:y,TransitionProps:b,variant:g}),$=JD(R),M=s&&!u&&d,T=w.useRef(null),_=(E,D)=>{T.current&&T.current.adjustStyleForScrollbar(E,{direction:P?"rtl":"ltr"}),x&&x(E,D)},N=E=>{E.key==="Tab"&&(E.preventDefault(),f&&f(E,"tabKeyDown"))};let I=-1;w.Children.map(a,(E,D)=>{w.isValidElement(E)&&(E.props.disabled||(g==="selectedMenu"&&E.props.selected||I===-1)&&(I=D))});const O=(r=v.paper)!=null?r:tF,L=(o=m.paper)!=null?o:h,A=wt({elementType:v.root,externalSlotProps:m.root,ownerState:R,className:[$.root,l]}),j=wt({elementType:O,externalSlotProps:L,ownerState:R,className:$.paper});return C.jsx(eF,k({onClose:f,anchorOrigin:{vertical:"bottom",horizontal:P?"right":"left"},transformOrigin:P?QD:ZD,slots:{paper:O,root:v.root},slotProps:{root:A,paper:j},open:d,ref:n,transitionDuration:y,TransitionProps:k({onEntering:_},b),ownerState:R},S,{classes:p,children:C.jsx(nF,k({onKeyDown:N,actions:T,autoFocus:s&&(I===-1||u),autoFocusItem:M,variant:g},c,{className:J($.list,c.className),children:a}))}))}),oF=rF;function iF(e){return ce("MuiNativeSelect",e)}const sF=de("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Dy=sF,aF=["className","disabled","error","IconComponent","inputRef","variant"],lF=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 le(a,iF,t)},Nk=({ownerState:e,theme:t})=>k({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":k({},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"},[`&.${Dy.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}}),uF=G("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:It,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Dy.multiple}`]:t.multiple}]}})(Nk),Lk=({ownerState:e,theme:t})=>k({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${Dy.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),cF=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]}})(Lk),dF=w.forwardRef(function(t,n){const{className:r,disabled:o,error:i,IconComponent:s,inputRef:a,variant:l="standard"}=t,u=W(t,aF),c=k({},t,{disabled:o,variant:l,error:i}),f=lF(c);return C.jsxs(w.Fragment,{children:[C.jsx(uF,k({ownerState:c,className:J(f.select,r),disabled:o,ref:a||n},u)),t.multiple?null:C.jsx(cF,{as:s,ownerState:c,className:f.icon})]})}),fF=dF;var cx;const pF=["children","classes","className","label","notched"],hF=G("fieldset",{shouldForwardProp:It})({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%"}),gF=G("legend",{shouldForwardProp:It})(({ownerState:e,theme:t})=>k({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&&k({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 mF(e){const{className:t,label:n,notched:r}=e,o=W(e,pF),i=n!=null&&n!=="",s=k({},e,{notched:r,withLabel:i});return C.jsx(hF,k({"aria-hidden":!0,className:t,ownerState:s},o,{children:C.jsx(gF,{ownerState:s,children:i?C.jsx("span",{children:n}):cx||(cx=C.jsx("span",{className:"notranslate",children:"​"}))})}))}const yF=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],vF=e=>{const{classes:t}=e,r=le({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},G5,t);return k({},t,r)},xF=G(Tf,{shouldForwardProp:e=>It(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Rf})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return k({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${qr.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${qr.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${qr.focused} .${qr.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${qr.error} .${qr.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${qr.disabled} .${qr.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&k({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),bF=G(mF,{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}}),wF=G(Mf,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:$f})(({theme:e,ownerState:t})=>k({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})),jk=w.forwardRef(function(t,n){var r,o,i,s,a;const l=ye({props:t,name:"MuiOutlinedInput"}),{components:u={},fullWidth:c=!1,inputComponent:f="input",label:d,multiline:h=!1,notched:p,slots:y={},type:x="text"}=l,g=W(l,yF),v=vF(l),m=br(),b=Io({props:l,muiFormControl:m,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S=k({},l,{color:b.color||"primary",disabled:b.disabled,error:b.error,focused:b.focused,formControl:m,fullWidth:c,hiddenLabel:b.hiddenLabel,multiline:h,size:b.size,type:x}),P=(r=(o=y.root)!=null?o:u.Root)!=null?r:xF,R=(i=(s=y.input)!=null?s:u.Input)!=null?i:wF;return C.jsx(jy,k({slots:{root:P,input:R},renderSuffix:$=>C.jsx(bF,{ownerState:S,className:v.notchedOutline,label:d!=null&&d!==""&&b.required?a||(a=C.jsxs(w.Fragment,{children:[d," ","*"]})):d,notched:typeof p<"u"?p:!!($.startAdornment||$.filled||$.focused)}),fullWidth:c,inputComponent:f,multiline:h,ref:n,type:x},g,{classes:k({},v,{notchedOutline:null})}))});jk.muiName="Input";const Dk=jk,SF=xr(C.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),CF=xr(C.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),kF=G("span",{shouldForwardProp:It})({position:"relative",display:"flex"}),PF=G(SF)({transform:"scale(1)"}),RF=G(CF)(({theme:e,ownerState:t})=>k({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest})},t.checked&&{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}));function Fk(e){const{checked:t=!1,classes:n={},fontSize:r}=e,o=k({},e,{checked:t});return C.jsxs(kF,{className:n.root,ownerState:o,children:[C.jsx(PF,{fontSize:r,className:n.background,ownerState:o}),C.jsx(RF,{fontSize:r,className:n.dot,ownerState:o})]})}const $F=w.createContext(void 0),zk=$F;function TF(){return w.useContext(zk)}function MF(e){return ce("MuiRadio",e)}const dx=de("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),EF=["checked","checkedIcon","color","icon","name","onChange","size","className"],_F=e=>{const{classes:t,color:n,size:r}=e,o={root:["root",`color${se(n)}`,r!=="medium"&&`size${se(r)}`]};return k({},t,le(o,MF,t))},IF=G(yk,{shouldForwardProp:e=>It(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size!=="medium"&&t[`size${se(n.size)}`],t[`color${se(n.color)}`]]}})(({theme:e,ownerState:t})=>k({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:at(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${dx.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${dx.disabled}`]:{color:(e.vars||e).palette.action.disabled}}));function OF(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const fx=C.jsx(Fk,{checked:!0}),px=C.jsx(Fk,{}),AF=w.forwardRef(function(t,n){var r,o;const i=ye({props:t,name:"MuiRadio"}),{checked:s,checkedIcon:a=fx,color:l="primary",icon:u=px,name:c,onChange:f,size:d="medium",className:h}=i,p=W(i,EF),y=k({},i,{color:l,size:d}),x=_F(y),g=TF();let v=s;const m=mg(f,g&&g.onChange);let b=c;return g&&(typeof v>"u"&&(v=OF(g.value,i.value)),typeof b>"u"&&(b=g.name)),C.jsx(IF,k({type:"radio",icon:w.cloneElement(u,{fontSize:(r=px.props.fontSize)!=null?r:d}),checkedIcon:w.cloneElement(a,{fontSize:(o=fx.props.fontSize)!=null?o:d}),ownerState:y,classes:x,name:b,checked:v,onChange:m,ref:n,className:J(x.root,h)},p))}),NF=AF;function LF(e){return ce("MuiRadioGroup",e)}de("MuiRadioGroup",["root","row","error"]);const jF=["actions","children","className","defaultValue","name","onChange","value"],DF=e=>{const{classes:t,row:n,error:r}=e;return le({root:["root",n&&"row",r&&"error"]},LF,t)},FF=w.forwardRef(function(t,n){const{actions:r,children:o,className:i,defaultValue:s,name:a,onChange:l,value:u}=t,c=W(t,jF),f=w.useRef(null),d=DF(t),[h,p]=yl({controlled:u,default:s,name:"RadioGroup"});w.useImperativeHandle(r,()=>({focus:()=>{let v=f.current.querySelector("input:not(:disabled):checked");v||(v=f.current.querySelector("input:not(:disabled)")),v&&v.focus()}}),[]);const y=Ze(n,f),x=fi(a),g=w.useMemo(()=>({name:x,onChange(v){p(v.target.value),l&&l(v,v.target.value)},value:h}),[x,l,p,h]);return C.jsx(zk.Provider,{value:g,children:C.jsx(J4,k({role:"radiogroup",ref:y,className:J(d.root,i)},c,{children:o}))})}),zF=FF;function BF(e){return ce("MuiSelect",e)}const ua=de("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var hx;const UF=["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"],VF=G("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${ua.select}`]:t.select},{[`&.${ua.select}`]:t[n.variant]},{[`&.${ua.error}`]:t.error},{[`&.${ua.multiple}`]:t.multiple}]}})(Nk,{[`&.${ua.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),WF=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]}})(Lk),HF=G("input",{shouldForwardProp:e=>W2(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 gx(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function GF(e){return e==null||typeof e=="string"&&!e.trim()}const KF=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 le(a,BF,t)},YF=w.forwardRef(function(t,n){var r;const{"aria-describedby":o,"aria-label":i,autoFocus:s,autoWidth:a,children:l,className:u,defaultOpen:c,defaultValue:f,disabled:d,displayEmpty:h,error:p=!1,IconComponent:y,inputRef:x,labelId:g,MenuProps:v={},multiple:m,name:b,onBlur:S,onChange:P,onClose:R,onFocus:$,onOpen:M,open:T,readOnly:_,renderValue:N,SelectDisplayProps:I={},tabIndex:O,value:L,variant:A="standard"}=t,j=W(t,UF),[E,D]=yl({controlled:L,default:f,name:"Select"}),[F,V]=yl({controlled:T,default:c,name:"Select"}),H=w.useRef(null),ue=w.useRef(null),[ee,Q]=w.useState(null),{current:re}=w.useRef(T!=null),[ge,he]=w.useState(),B=Ze(n,x),Z=w.useCallback(fe=>{ue.current=fe,fe&&Q(fe)},[]),K=ee==null?void 0:ee.parentNode;w.useImperativeHandle(B,()=>({focus:()=>{ue.current.focus()},node:H.current,value:E}),[E]),w.useEffect(()=>{c&&F&&ee&&!re&&(he(a?null:K.clientWidth),ue.current.focus())},[ee,a]),w.useEffect(()=>{s&&ue.current.focus()},[s]),w.useEffect(()=>{if(!g)return;const fe=Ft(ue.current).getElementById(g);if(fe){const Le=()=>{getSelection().isCollapsed&&ue.current.focus()};return fe.addEventListener("click",Le),()=>{fe.removeEventListener("click",Le)}}},[g]);const z=(fe,Le)=>{fe?M&&M(Le):R&&R(Le),re||(he(a?null:K.clientWidth),V(fe))},oe=fe=>{fe.button===0&&(fe.preventDefault(),ue.current.focus(),z(!0,fe))},ne=fe=>{z(!1,fe)},U=w.Children.toArray(l),X=fe=>{const Le=U.find(Ke=>Ke.props.value===fe.target.value);Le!==void 0&&(D(Le.props.value),P&&P(fe,Le))},ie=fe=>Le=>{let Ke;if(Le.currentTarget.hasAttribute("tabindex")){if(m){Ke=Array.isArray(E)?E.slice():[];const Un=E.indexOf(fe.props.value);Un===-1?Ke.push(fe.props.value):Ke.splice(Un,1)}else Ke=fe.props.value;if(fe.props.onClick&&fe.props.onClick(Le),E!==Ke&&(D(Ke),P)){const Un=Le.nativeEvent||Le,yi=new Un.constructor(Un.type,Un);Object.defineProperty(yi,"target",{writable:!0,value:{value:Ke,name:b}}),P(yi,fe)}m||z(!1,Le)}},ve=fe=>{_||[" ","ArrowUp","ArrowDown","Enter"].indexOf(fe.key)!==-1&&(fe.preventDefault(),z(!0,fe))},Ie=ee!==null&&F,pe=fe=>{!Ie&&S&&(Object.defineProperty(fe,"target",{writable:!0,value:{value:E,name:b}}),S(fe))};delete j["aria-invalid"];let ae,Te;const je=[];let ke=!1;(Xc({value:E})||h)&&(N?ae=N(E):ke=!0);const ht=U.map(fe=>{if(!w.isValidElement(fe))return null;let Le;if(m){if(!Array.isArray(E))throw new Error(Fr(2));Le=E.some(Ke=>gx(Ke,fe.props.value)),Le&&ke&&je.push(fe.props.children)}else Le=gx(E,fe.props.value),Le&&ke&&(Te=fe.props.children);return w.cloneElement(fe,{"aria-selected":Le?"true":"false",onClick:ie(fe),onKeyUp:Ke=>{Ke.key===" "&&Ke.preventDefault(),fe.props.onKeyUp&&fe.props.onKeyUp(Ke)},role:"option",selected:Le,value:void 0,"data-value":fe.props.value})});ke&&(m?je.length===0?ae=null:ae=je.reduce((fe,Le,Ke)=>(fe.push(Le),Ke{const{classes:t}=e;return t},Fy={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>It(e)&&e!=="variant",slot:"Root"},JF=G(Ek,Fy)(""),e6=G(Dk,Fy)(""),t6=G(kk,Fy)(""),Bk=w.forwardRef(function(t,n){const r=ye({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:i,classes:s={},className:a,defaultOpen:l=!1,displayEmpty:u=!1,IconComponent:c=X5,id:f,input:d,inputProps:h,label:p,labelId:y,MenuProps:x,multiple:g=!1,native:v=!1,onClose:m,onOpen:b,open:S,renderValue:P,SelectDisplayProps:R,variant:$="outlined"}=r,M=W(r,XF),T=v?fF:qF,_=br(),N=Io({props:r,muiFormControl:_,states:["variant","error"]}),I=N.variant||$,O=k({},r,{variant:I,classes:s}),L=ZF(O),A=W(L,QF),j=d||{standard:C.jsx(JF,{ownerState:O}),outlined:C.jsx(e6,{label:p,ownerState:O}),filled:C.jsx(t6,{ownerState:O})}[I],E=Ze(n,j.ref);return C.jsx(w.Fragment,{children:w.cloneElement(j,k({inputComponent:T,inputProps:k({children:i,error:N.error,IconComponent:c,variant:I,type:void 0,multiple:g},v?{id:f}:{autoWidth:o,defaultOpen:l,displayEmpty:u,labelId:y,MenuProps:x,onClose:m,onOpen:b,open:S,renderValue:P,SelectDisplayProps:k({id:f},R)},h,{classes:h?Dt(A,h.classes):A},d?d.props.inputProps:{})},(g&&v||u)&&I==="outlined"?{notched:!0}:{},{ref:E,className:J(j.props.className,a,L.root)},!d&&{variant:I},M))})});Bk.muiName="Select";const n6=Bk;function r6(e){return ce("MuiTooltip",e)}const o6=de("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),io=o6,i6=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function s6(e){return Math.round(e*1e5)/1e5}const a6=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e,s={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${se(i.split("-")[0])}`],arrow:["arrow"]};return le(s,r6,t)},l6=G(fk,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>k({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${io.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${io.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${io.arrow}`]:k({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${io.arrow}`]:k({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),u6=G("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${se(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>k({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:at(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${s6(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${io.popper}[data-popper-placement*="left"] &`]:k({transformOrigin:"right center"},t.isRtl?k({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):k({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${io.popper}[data-popper-placement*="right"] &`]:k({transformOrigin:"left center"},t.isRtl?k({marginRight:"14px"},t.touch&&{marginRight:"24px"}):k({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${io.popper}[data-popper-placement*="top"] &`]:k({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${io.popper}[data-popper-placement*="bottom"] &`]:k({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),c6=G("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:at(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let Nu=!1;const mx=new Ql;let ca={x:0,y:0};function Lu(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const d6=w.forwardRef(function(t,n){var r,o,i,s,a,l,u,c,f,d,h,p,y,x,g,v,m,b,S;const P=ye({props:t,name:"MuiTooltip"}),{arrow:R=!1,children:$,components:M={},componentsProps:T={},describeChild:_=!1,disableFocusListener:N=!1,disableHoverListener:I=!1,disableInteractive:O=!1,disableTouchListener:L=!1,enterDelay:A=100,enterNextDelay:j=0,enterTouchDelay:E=700,followCursor:D=!1,id:F,leaveDelay:V=0,leaveTouchDelay:H=1500,onClose:ue,onOpen:ee,open:Q,placement:re="bottom",PopperComponent:ge,PopperProps:he={},slotProps:B={},slots:Z={},title:K,TransitionComponent:z=Mg,TransitionProps:oe}=P,ne=W(P,i6),U=w.isValidElement($)?$:C.jsx("span",{children:$}),X=_t(),ie=I2(),[ve,Ie]=w.useState(),[pe,ae]=w.useState(null),Te=w.useRef(!1),je=O||D,ke=Hi(),ht=Hi(),Ct=Hi(),Ot=Hi(),[Me,me]=yl({controlled:Q,default:!1,name:"Tooltip",state:"open"});let ot=Me;const wr=fi(F),Bn=w.useRef(),fe=oo(()=>{Bn.current!==void 0&&(document.body.style.WebkitUserSelect=Bn.current,Bn.current=void 0),Ot.clear()});w.useEffect(()=>fe,[fe]);const Le=Se=>{mx.clear(),Nu=!0,me(!0),ee&&!ot&&ee(Se)},Ke=oo(Se=>{mx.start(800+V,()=>{Nu=!1}),me(!1),ue&&ot&&ue(Se),ke.start(X.transitions.duration.shortest,()=>{Te.current=!1})}),Un=Se=>{Te.current&&Se.type!=="touchstart"||(ve&&ve.removeAttribute("title"),ht.clear(),Ct.clear(),A||Nu&&j?ht.start(Nu?j:A,()=>{Le(Se)}):Le(Se))},yi=Se=>{ht.clear(),Ct.start(V,()=>{Ke(Se)})},{isFocusVisibleRef:Fv,onBlur:w$,onFocus:S$,ref:C$}=$2(),[,zv]=w.useState(!1),Bv=Se=>{w$(Se),Fv.current===!1&&(zv(!1),yi(Se))},Uv=Se=>{ve||Ie(Se.currentTarget),S$(Se),Fv.current===!0&&(zv(!0),Un(Se))},Vv=Se=>{Te.current=!0;const on=U.props;on.onTouchStart&&on.onTouchStart(Se)},k$=Se=>{Vv(Se),Ct.clear(),ke.clear(),fe(),Bn.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Ot.start(E,()=>{document.body.style.WebkitUserSelect=Bn.current,Un(Se)})},P$=Se=>{U.props.onTouchEnd&&U.props.onTouchEnd(Se),fe(),Ct.start(H,()=>{Ke(Se)})};w.useEffect(()=>{if(!ot)return;function Se(on){(on.key==="Escape"||on.key==="Esc")&&Ke(on)}return document.addEventListener("keydown",Se),()=>{document.removeEventListener("keydown",Se)}},[Ke,ot]);const R$=Ze(U.ref,C$,Ie,n);!K&&K!==0&&(ot=!1);const ap=w.useRef(),$$=Se=>{const on=U.props;on.onMouseMove&&on.onMouseMove(Se),ca={x:Se.clientX,y:Se.clientY},ap.current&&ap.current.update()},Gs={},lp=typeof K=="string";_?(Gs.title=!ot&&lp&&!I?K:null,Gs["aria-describedby"]=ot?wr:null):(Gs["aria-label"]=lp?K:null,Gs["aria-labelledby"]=ot&&!lp?wr:null);const Vn=k({},Gs,ne,U.props,{className:J(ne.className,U.props.className),onTouchStart:Vv,ref:R$},D?{onMouseMove:$$}:{}),Ks={};L||(Vn.onTouchStart=k$,Vn.onTouchEnd=P$),I||(Vn.onMouseOver=Lu(Un,Vn.onMouseOver),Vn.onMouseLeave=Lu(yi,Vn.onMouseLeave),je||(Ks.onMouseOver=Un,Ks.onMouseLeave=yi)),N||(Vn.onFocus=Lu(Uv,Vn.onFocus),Vn.onBlur=Lu(Bv,Vn.onBlur),je||(Ks.onFocus=Uv,Ks.onBlur=Bv));const T$=w.useMemo(()=>{var Se;let on=[{name:"arrow",enabled:!!pe,options:{element:pe,padding:4}}];return(Se=he.popperOptions)!=null&&Se.modifiers&&(on=on.concat(he.popperOptions.modifiers)),k({},he.popperOptions,{modifiers:on})},[pe,he]),Ys=k({},P,{isRtl:ie,arrow:R,disableInteractive:je,placement:re,PopperComponentProp:ge,touch:Te.current}),up=a6(Ys),Wv=(r=(o=Z.popper)!=null?o:M.Popper)!=null?r:l6,Hv=(i=(s=(a=Z.transition)!=null?a:M.Transition)!=null?s:z)!=null?i:Mg,Gv=(l=(u=Z.tooltip)!=null?u:M.Tooltip)!=null?l:u6,Kv=(c=(f=Z.arrow)!=null?f:M.Arrow)!=null?c:c6,M$=Pa(Wv,k({},he,(d=B.popper)!=null?d:T.popper,{className:J(up.popper,he==null?void 0:he.className,(h=(p=B.popper)!=null?p:T.popper)==null?void 0:h.className)}),Ys),E$=Pa(Hv,k({},oe,(y=B.transition)!=null?y:T.transition),Ys),_$=Pa(Gv,k({},(x=B.tooltip)!=null?x:T.tooltip,{className:J(up.tooltip,(g=(v=B.tooltip)!=null?v:T.tooltip)==null?void 0:g.className)}),Ys),I$=Pa(Kv,k({},(m=B.arrow)!=null?m:T.arrow,{className:J(up.arrow,(b=(S=B.arrow)!=null?S:T.arrow)==null?void 0:b.className)}),Ys);return C.jsxs(w.Fragment,{children:[w.cloneElement(U,Vn),C.jsx(Wv,k({as:ge??fk,placement:re,anchorEl:D?{getBoundingClientRect:()=>({top:ca.y,left:ca.x,right:ca.x,bottom:ca.y,width:0,height:0})}:ve,popperRef:ap,open:ve?ot:!1,id:wr,transition:!0},Ks,M$,{popperOptions:T$,children:({TransitionProps:Se})=>C.jsx(Hv,k({timeout:X.transitions.duration.shorter},Se,E$,{children:C.jsxs(Gv,k({},_$,{children:[K,R?C.jsx(Kv,k({},I$,{ref:ae})):null]}))}))}))]})}),f6=d6;function p6(e){return ce("MuiTextField",e)}de("MuiTextField",["root"]);const h6=["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"],g6={standard:Ek,filled:kk,outlined:Dk},m6=e=>{const{classes:t}=e;return le({root:["root"]},p6,t)},y6=G(F4,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),v6=w.forwardRef(function(t,n){const r=ye({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:i=!1,children:s,className:a,color:l="primary",defaultValue:u,disabled:c=!1,error:f=!1,FormHelperTextProps:d,fullWidth:h=!1,helperText:p,id:y,InputLabelProps:x,inputProps:g,InputProps:v,inputRef:m,label:b,maxRows:S,minRows:P,multiline:R=!1,name:$,onBlur:M,onChange:T,onFocus:_,placeholder:N,required:I=!1,rows:O,select:L=!1,SelectProps:A,type:j,value:E,variant:D="outlined"}=r,F=W(r,h6),V=k({},r,{autoFocus:i,color:l,disabled:c,error:f,fullWidth:h,multiline:R,required:I,select:L,variant:D}),H=m6(V),ue={};D==="outlined"&&(x&&typeof x.shrink<"u"&&(ue.notched=x.shrink),ue.label=b),L&&((!A||!A.native)&&(ue.id=void 0),ue["aria-describedby"]=void 0);const ee=fi(y),Q=p&&ee?`${ee}-helper-text`:void 0,re=b&&ee?`${ee}-label`:void 0,ge=g6[D],he=C.jsx(ge,k({"aria-describedby":Q,autoComplete:o,autoFocus:i,defaultValue:u,fullWidth:h,multiline:R,name:$,rows:O,maxRows:S,minRows:P,type:j,value:E,id:ee,inputRef:m,onBlur:M,onChange:T,onFocus:_,placeholder:N,inputProps:g},ue,v));return C.jsxs(y6,k({className:J(H.root,a),disabled:c,error:f,fullWidth:h,ref:n,required:I,color:l,variant:D,ownerState:V},F,{children:[b!=null&&b!==""&&C.jsx(Xj,k({htmlFor:ee,id:re},x,{children:b})),L?C.jsx(n6,k({"aria-describedby":Q,id:ee,labelId:re,value:E,input:he},A,{children:s})):he,p&&C.jsx(sj,k({id:Q},d,{children:p}))]}))}),Uk=v6;function x6(e){return ce("MuiToggleButton",e)}const b6=de("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]),Gi=b6,w6=w.createContext({}),Vk=w6,S6=w.createContext(void 0),Wk=S6;function C6(e,t){return t===void 0||e===void 0?!1:Array.isArray(t)?t.indexOf(e)>=0:e===t}const k6=["value"],P6=["children","className","color","disabled","disableFocusRipple","fullWidth","onChange","onClick","selected","size","value"],R6=e=>{const{classes:t,fullWidth:n,selected:r,disabled:o,size:i,color:s}=e,a={root:["root",r&&"selected",o&&"disabled",n&&"fullWidth",`size${se(i)}`,s]};return le(a,x6,t)},$6=G(eu,{name:"MuiToggleButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`size${se(n.size)}`]]}})(({theme:e,ownerState:t})=>{let n=t.color==="standard"?e.palette.text.primary:e.palette[t.color].main,r;return e.vars&&(n=t.color==="standard"?e.vars.palette.text.primary:e.vars.palette[t.color].main,r=t.color==="standard"?e.vars.palette.text.primaryChannel:e.vars.palette[t.color].mainChannel),k({},e.typography.button,{borderRadius:(e.vars||e).shape.borderRadius,padding:11,border:`1px solid ${(e.vars||e).palette.divider}`,color:(e.vars||e).palette.action.active},t.fullWidth&&{width:"100%"},{[`&.${Gi.disabled}`]:{color:(e.vars||e).palette.action.disabled,border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Eu(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Gi.selected}`]:{color:n,backgroundColor:e.vars?`rgba(${r} / ${e.vars.palette.action.selectedOpacity})`:Eu(n,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${r} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Eu(n,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${r} / ${e.vars.palette.action.selectedOpacity})`:Eu(n,e.palette.action.selectedOpacity)}}}},t.size==="small"&&{padding:7,fontSize:e.typography.pxToRem(13)},t.size==="large"&&{padding:15,fontSize:e.typography.pxToRem(15)})}),T6=w.forwardRef(function(t,n){const r=w.useContext(Vk),{value:o}=r,i=W(r,k6),s=w.useContext(Wk),a=vf(k({},i,{selected:C6(t.value,o)}),t),l=ye({props:a,name:"MuiToggleButton"}),{children:u,className:c,color:f="standard",disabled:d=!1,disableFocusRipple:h=!1,fullWidth:p=!1,onChange:y,onClick:x,selected:g,size:v="medium",value:m}=l,b=W(l,P6),S=k({},l,{color:f,disabled:d,disableFocusRipple:h,fullWidth:p,size:v}),P=R6(S),R=M=>{x&&(x(M,m),M.defaultPrevented)||y&&y(M,m)},$=s||"";return C.jsx($6,k({className:J(i.className,P.root,c,$),disabled:d,focusRipple:!h,ref:n,onClick:R,onChange:y,value:m,ownerState:S,"aria-pressed":g},b,{children:u}))}),Yp=T6;function M6(e){return ce("MuiToggleButtonGroup",e)}const E6=de("MuiToggleButtonGroup",["root","selected","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]),Ue=E6,_6=["children","className","color","disabled","exclusive","fullWidth","onChange","orientation","size","value"],I6=e=>{const{classes:t,orientation:n,fullWidth:r,disabled:o}=e,i={root:["root",n==="vertical"&&"vertical",r&&"fullWidth"],grouped:["grouped",`grouped${se(n)}`,o&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return le(i,M6,t)},O6=G("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Ue.grouped}`]:t.grouped},{[`& .${Ue.grouped}`]:t[`grouped${se(n.orientation)}`]},{[`& .${Ue.firstButton}`]:t.firstButton},{[`& .${Ue.lastButton}`]:t.lastButton},{[`& .${Ue.middleButton}`]:t.middleButton},t.root,n.orientation==="vertical"&&t.vertical,n.fullWidth&&t.fullWidth]}})(({ownerState:e,theme:t})=>k({display:"inline-flex",borderRadius:(t.vars||t).shape.borderRadius},e.orientation==="vertical"&&{flexDirection:"column"},e.fullWidth&&{width:"100%"},{[`& .${Ue.grouped}`]:k({},e.orientation==="horizontal"?{[`&.${Ue.selected} + .${Ue.grouped}.${Ue.selected}`]:{borderLeft:0,marginLeft:0}}:{[`&.${Ue.selected} + .${Ue.grouped}.${Ue.selected}`]:{borderTop:0,marginTop:0}})},e.orientation==="horizontal"?{[`& .${Ue.firstButton},& .${Ue.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${Ue.lastButton},& .${Ue.middleButton}`]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0}}:{[`& .${Ue.firstButton},& .${Ue.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${Ue.lastButton},& .${Ue.middleButton}`]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0}},e.orientation==="horizontal"?{[`& .${Ue.lastButton}.${Gi.disabled},& .${Ue.middleButton}.${Gi.disabled}`]:{borderLeft:"1px solid transparent"}}:{[`& .${Ue.lastButton}.${Gi.disabled},& .${Ue.middleButton}.${Gi.disabled}`]:{borderTop:"1px solid transparent"}})),A6=w.forwardRef(function(t,n){const r=ye({props:t,name:"MuiToggleButtonGroup"}),{children:o,className:i,color:s="standard",disabled:a=!1,exclusive:l=!1,fullWidth:u=!1,onChange:c,orientation:f="horizontal",size:d="medium",value:h}=r,p=W(r,_6),y=k({},r,{disabled:a,fullWidth:u,orientation:f,size:d}),x=I6(y),g=w.useCallback((R,$)=>{if(!c)return;const M=h&&h.indexOf($);let T;h&&M>=0?(T=h.slice(),T.splice(M,1)):T=h?h.concat($):[$],c(R,T)},[c,h]),v=w.useCallback((R,$)=>{c&&c(R,h===$?null:$)},[c,h]),m=w.useMemo(()=>({className:x.grouped,onChange:l?v:g,value:h,size:d,fullWidth:u,color:s,disabled:a}),[x.grouped,l,v,g,h,d,u,s,a]),b=uO(o),S=b.length,P=R=>{const $=R===0,M=R===S-1;return $&&M?"":$?x.firstButton:M?x.lastButton:x.middleButton};return C.jsx(O6,k({role:"group",className:J(x.root,i),ref:n,ownerState:y},p,{children:C.jsx(Vk.Provider,{value:m,children:b.map((R,$)=>C.jsx(Wk.Provider,{value:P($),children:R},$))})}))}),N6=A6,os=({children:e,image:t,title:n,description:r})=>C.jsxs(Sf,{children:[t&&C.jsx("img",{src:t,className:"logo",alt:""}),n&&C.jsx(Re,{variant:"h3",gutterBottom:!0,children:n}),r&&C.jsx(Re,{variant:"body1",gutterBottom:!0,children:r}),e]});function L6(){if(console&&console.warn){for(var e=arguments.length,t=new Array(e),n=0;n()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}};function vx(e,t,n){e.loadNamespaces(t,Hk(e,n))}function xx(e,t,n,r){typeof n=="string"&&(n=[n]),n.forEach(o=>{e.options.ns.indexOf(o)<0&&e.options.ns.push(o)}),e.loadLanguages(t,Hk(e,r))}function j6(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const r=t.languages[0],o=t.options?t.options.fallbackLng:!1,i=t.languages[t.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const s=(a,l)=>{const u=t.services.backendConnector.state[`${a}|${l}`];return u===-1||u===2};return n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!s(t.isLanguageChangingTo,e)?!1:!!(t.hasResourceBundle(r,e)||!t.services.backendConnector.backend||t.options.resources&&!t.options.partialBundledLanguages||s(r,e)&&(!o||s(i,e)))}function D6(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!t.languages||!t.languages.length?(Eg("i18n.languages were undefined or empty",t.languages),!0):t.options.ignoreJSONStructure!==void 0?t.hasLoadedNamespace(e,{lng:n.lng,precheck:(o,i)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&o.services.backendConnector.backend&&o.isLanguageChangingTo&&!i(o.isLanguageChangingTo,e))return!1}}):j6(e,t,n)}const F6=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,z6={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},B6=e=>z6[e],U6=e=>e.replace(F6,B6);let _g={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:U6};function V6(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};_g={..._g,...e}}function W6(){return _g}let Gk;function H6(e){Gk=e}function G6(){return Gk}const K6={type:"3rdParty",init(e){V6(e.options.react),H6(e)}},Kk=w.createContext();class Y6{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const q6=(e,t)=>{const n=w.useRef();return w.useEffect(()=>{n.current=t?n.current:e},[e,t]),n.current};function Yk(e,t,n,r){return e.getFixedT(t,n,r)}function X6(e,t,n,r){return w.useCallback(Yk(e,t,n,r),[e,t,n,r])}function zn(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:n}=t,{i18n:r,defaultNS:o}=w.useContext(Kk)||{},i=n||r||G6();if(i&&!i.reportNamespaces&&(i.reportNamespaces=new Y6),!i){Eg("You will need to pass in an i18next instance by using initReactI18next");const b=(P,R)=>typeof R=="string"?R:R&&typeof R=="object"&&typeof R.defaultValue=="string"?R.defaultValue:Array.isArray(P)?P[P.length-1]:P,S=[b,{},!1];return S.t=b,S.i18n={},S.ready=!1,S}i.options.react&&i.options.react.wait!==void 0&&Eg("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const s={...W6(),...i.options.react,...t},{useSuspense:a,keyPrefix:l}=s;let u=e||o||i.options&&i.options.defaultNS;u=typeof u=="string"?[u]:u||["translation"],i.reportNamespaces.addUsedNamespaces&&i.reportNamespaces.addUsedNamespaces(u);const c=(i.isInitialized||i.initializedStoreOnce)&&u.every(b=>D6(b,i,s)),f=X6(i,t.lng||null,s.nsMode==="fallback"?u:u[0],l),d=()=>f,h=()=>Yk(i,t.lng||null,s.nsMode==="fallback"?u:u[0],l),[p,y]=w.useState(d);let x=u.join();t.lng&&(x=`${t.lng}${x}`);const g=q6(x),v=w.useRef(!0);w.useEffect(()=>{const{bindI18n:b,bindI18nStore:S}=s;v.current=!0,!c&&!a&&(t.lng?xx(i,t.lng,u,()=>{v.current&&y(h)}):vx(i,u,()=>{v.current&&y(h)})),c&&g&&g!==x&&v.current&&y(h);function P(){v.current&&y(h)}return b&&i&&i.on(b,P),S&&i&&i.store.on(S,P),()=>{v.current=!1,b&&i&&b.split(" ").forEach(R=>i.off(R,P)),S&&i&&S.split(" ").forEach(R=>i.store.off(R,P))}},[i,x]),w.useEffect(()=>{v.current&&c&&y(d)},[i,l,c]);const m=[p,i,c];if(m.t=p,m.i18n=i,m.ready=c,c||!c&&!a)return m;throw new Promise(b=>{t.lng?xx(i,t.lng,u,()=>b()):vx(i,u,()=>b())})}function Q6(e){let{i18n:t,defaultNS:n,children:r}=e;const o=w.useMemo(()=>({i18n:t,defaultNS:n}),[t,n]);return w.createElement(Kk.Provider,{value:o},r)}function If({startAdornment:e,endAdornment:t}){const n=(r,o)=>C.jsx(Wj,{position:o,children:r});return{startAdornment:e?n(e,"start"):void 0,endAdornment:t?n(t,"end"):void 0}}function qk(){const{t:e}=zn();return(t=!1)=>If({endAdornment:`%${t?e(" per year"):""}`})}function Xk(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o=a?o=o+bx("0",s-a):o=(o.substring(0,s)||"0")+"."+o.substring(s),n+o}function wx(e,t,n){if(["","-"].indexOf(e)!==-1)return e;var r=(e.indexOf(".")!==-1||n)&&t,o=zy(e),i=o.beforeDecimal,s=o.afterDecimal,a=o.hasNegation,l=parseFloat("0."+(s||"0")),u=s.length<=t?"0."+s:l.toFixed(t),c=u.split("."),f=i;i&&Number(c[0])&&(f=i.split("").reverse().reduce(function(y,x,g){return y.length>g?(Number(y[0])+Number(x)).toString()+y.substring(1,y.length):x+y},c[0]));var d=Jk(c[1]||"",t,n),h=a?"-":"",p=r?".":"";return""+h+f+p+d}function Bo(e,t){if(e.value=e.value,e!==null){if(e.createTextRange){var n=e.createTextRange();return n.move("character",t),n.select(),!0}return e.selectionStart||e.selectionStart===0?(e.focus(),e.setSelectionRange(t,t),!0):(e.focus(),!1)}}var tP=Z6(function(e,t){for(var n=0,r=0,o=e.length,i=t.length;e[n]===t[n]&&nn&&o-r>n;)r++;return{from:{start:n,end:o-r},to:{start:n,end:i-r}}});function oz(e,t,n){return Math.min(Math.max(e,t),n)}function qp(e){return Math.max(e.selectionStart,e.selectionEnd)}function iz(){return typeof navigator<"u"&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}function sz(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function az(e){var t=e.currentValue,n=e.formattedValue,r=e.currentValueIndex,o=e.formattedValueIndex;return t[r]===n[o]}function lz(e,t,n,r,o,i,s){s===void 0&&(s=az);var a=o.findIndex(function(b){return b}),l=e.slice(0,a);!t&&!n.startsWith(l)&&(t=l,n=l+n,r=r+l.length);for(var u=n.length,c=e.length,f={},d=new Array(u),h=0;h0&&d[g]===-1;)g--;var m=g===-1||d[g]===-1?0:d[g]+1;return m>v?v:r-m=0&&!n[t];)t--;t===-1&&(t=n.indexOf(!0))}else{for(;t<=o&&!n[t];)t++;t>o&&(t=n.lastIndexOf(!0))}return t===-1&&(t=o),t}function uz(e){for(var t=Array.from({length:e.length+1}).map(function(){return!0}),n=0,r=t.length;nR.length-s.length||P_||f>e.length-s.length)&&(T=f),e=e.substring(0,T),e=pz(m?"-"+e:e,o),e=(e.match(hz(p,!0))||[]).join("");var N=e.indexOf(p);e=e.replace(new RegExp(Zk(p),"g"),function(j,E){return E===N?".":""});var I=zy(e,o),O=I.beforeDecimal,L=I.afterDecimal,A=I.addNegation;return u.end-u.starte.transitions.easing.easeInOut,Sn.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Sn.child,Sn.childLeaving,P3,Cg,({theme:e})=>e.transitions.easing.easeInOut,Sn.childPulsate,R3,({theme:e})=>e.transitions.easing.easeInOut),M3=w.forwardRef(function(t,n){const r=ye({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:s}=r,a=W(r,S3),[l,u]=w.useState([]),c=w.useRef(0),f=w.useRef(null);w.useEffect(()=>{f.current&&(f.current(),f.current=null)},[l]);const d=w.useRef(!1),h=Hi(),p=w.useRef(null),y=w.useRef(null),x=w.useCallback(b=>{const{pulsate:S,rippleX:P,rippleY:R,rippleSize:$,cb:M}=b;u(T=>[...T,C.jsx(T3,{classes:{ripple:J(i.ripple,Sn.ripple),rippleVisible:J(i.rippleVisible,Sn.rippleVisible),ripplePulsate:J(i.ripplePulsate,Sn.ripplePulsate),child:J(i.child,Sn.child),childLeaving:J(i.childLeaving,Sn.childLeaving),childPulsate:J(i.childPulsate,Sn.childPulsate)},timeout:Cg,pulsate:S,rippleX:P,rippleY:R,rippleSize:$},c.current)]),c.current+=1,f.current=M},[i]),g=w.useCallback((b={},S={},P=()=>{})=>{const{pulsate:R=!1,center:$=o||S.pulsate,fakeElement:M=!1}=S;if((b==null?void 0:b.type)==="mousedown"&&d.current){d.current=!1;return}(b==null?void 0:b.type)==="touchstart"&&(d.current=!0);const T=M?null:y.current,_=T?T.getBoundingClientRect():{width:0,height:0,left:0,top:0};let N,I,O;if($||b===void 0||b.clientX===0&&b.clientY===0||!b.clientX&&!b.touches)N=Math.round(_.width/2),I=Math.round(_.height/2);else{const{clientX:L,clientY:A}=b.touches&&b.touches.length>0?b.touches[0]:b;N=Math.round(L-_.left),I=Math.round(A-_.top)}if($)O=Math.sqrt((2*_.width**2+_.height**2)/3),O%2===0&&(O+=1);else{const L=Math.max(Math.abs((T?T.clientWidth:0)-N),N)*2+2,A=Math.max(Math.abs((T?T.clientHeight:0)-I),I)*2+2;O=Math.sqrt(L**2+A**2)}b!=null&&b.touches?p.current===null&&(p.current=()=>{x({pulsate:R,rippleX:N,rippleY:I,rippleSize:O,cb:P})},h.start(C3,()=>{p.current&&(p.current(),p.current=null)})):x({pulsate:R,rippleX:N,rippleY:I,rippleSize:O,cb:P})},[o,x,h]),v=w.useCallback(()=>{g({},{pulsate:!0})},[g]),m=w.useCallback((b,S)=>{if(h.clear(),(b==null?void 0:b.type)==="touchend"&&p.current){p.current(),p.current=null,h.start(0,()=>{m(b,S)});return}p.current=null,u(P=>P.length>0?P.slice(1):P),f.current=S},[h]);return w.useImperativeHandle(n,()=>({pulsate:v,start:g,stop:m}),[v,g,m]),C.jsx($3,k({className:J(Sn.root,i.root,s),ref:y},a,{children:C.jsx(u3,{component:null,exit:!0,children:l})}))}),E3=M3;function _3(e){return ce("MuiButtonBase",e)}const I3=de("MuiButtonBase",["root","disabled","focusVisible"]),O3=["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"],A3=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,s=le({root:["root",t&&"disabled",n&&"focusVisible"]},_3,o);return n&&r&&(s.root+=` ${r}`),s},N3=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"},[`&.${I3.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),L3=w.forwardRef(function(t,n){const r=ye({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:s,className:a,component:l="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:f=!1,focusRipple:d=!1,LinkComponent:h="a",onBlur:p,onClick:y,onContextMenu:x,onDragLeave:g,onFocus:v,onFocusVisible:m,onKeyDown:b,onKeyUp:S,onMouseDown:P,onMouseLeave:R,onMouseUp:$,onTouchEnd:M,onTouchMove:T,onTouchStart:_,tabIndex:N=0,TouchRippleProps:I,touchRippleRef:O,type:L}=r,A=W(r,O3),j=w.useRef(null),E=w.useRef(null),D=Ze(E,O),{isFocusVisibleRef:F,onFocus:V,onBlur:H,ref:ue}=$2(),[ee,Q]=w.useState(!1);u&&ee&&Q(!1),w.useImperativeHandle(o,()=>({focusVisible:()=>{Q(!0),j.current.focus()}}),[]);const[re,ge]=w.useState(!1);w.useEffect(()=>{ge(!0)},[]);const he=re&&!c&&!u;w.useEffect(()=>{ee&&d&&!c&&re&&E.current.pulsate()},[c,d,ee,re]);function B(me,ot,wr=f){return oo(Bn=>(ot&&ot(Bn),!wr&&E.current&&E.current[me](Bn),!0))}const Z=B("start",P),K=B("stop",x),z=B("stop",g),oe=B("stop",$),ne=B("stop",me=>{ee&&me.preventDefault(),R&&R(me)}),U=B("start",_),X=B("stop",M),ie=B("stop",T),ve=B("stop",me=>{H(me),F.current===!1&&Q(!1),p&&p(me)},!1),Ie=oo(me=>{j.current||(j.current=me.currentTarget),V(me),F.current===!0&&(Q(!0),m&&m(me)),v&&v(me)}),pe=()=>{const me=j.current;return l&&l!=="button"&&!(me.tagName==="A"&&me.href)},ae=w.useRef(!1),Te=oo(me=>{d&&!ae.current&&ee&&E.current&&me.key===" "&&(ae.current=!0,E.current.stop(me,()=>{E.current.start(me)})),me.target===me.currentTarget&&pe()&&me.key===" "&&me.preventDefault(),b&&b(me),me.target===me.currentTarget&&pe()&&me.key==="Enter"&&!u&&(me.preventDefault(),y&&y(me))}),je=oo(me=>{d&&me.key===" "&&E.current&&ee&&!me.defaultPrevented&&(ae.current=!1,E.current.stop(me,()=>{E.current.pulsate(me)})),S&&S(me),y&&me.target===me.currentTarget&&pe()&&me.key===" "&&!me.defaultPrevented&&y(me)});let ke=l;ke==="button"&&(A.href||A.to)&&(ke=h);const ht={};ke==="button"?(ht.type=L===void 0?"button":L,ht.disabled=u):(!A.href&&!A.to&&(ht.role="button"),u&&(ht["aria-disabled"]=u));const Ct=Ze(n,ue,j),Ot=k({},r,{centerRipple:i,component:l,disabled:u,disableRipple:c,disableTouchRipple:f,focusRipple:d,tabIndex:N,focusVisible:ee}),Me=A3(Ot);return C.jsxs(N3,k({as:ke,className:J(Me.root,a),ownerState:Ot,onBlur:ve,onClick:y,onContextMenu:K,onFocus:Ie,onKeyDown:Te,onKeyUp:je,onMouseDown:Z,onMouseLeave:ne,onMouseUp:oe,onDragLeave:z,onTouchEnd:X,onTouchMove:ie,onTouchStart:U,ref:Ct,tabIndex:u?-1:N,type:L},ht,A,{children:[s,he?C.jsx(E3,k({ref:D,center:i},I)):null]}))}),eu=L3;function j3(e){return ce("MuiTypography",e)}de("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const D3=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],F3=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 le(a,j3,s)},z3=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})=>k({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})),D1={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},B3={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},U3=e=>B3[e]||e,V3=w.forwardRef(function(t,n){const r=ye({props:t,name:"MuiTypography"}),o=U3(r.color),i=zs(k({},r,{color:o})),{align:s="inherit",className:a,component:l,gutterBottom:u=!1,noWrap:c=!1,paragraph:f=!1,variant:d="body1",variantMapping:h=D1}=i,p=W(i,D3),y=k({},i,{align:s,color:o,className:a,component:l,gutterBottom:u,noWrap:c,paragraph:f,variant:d,variantMapping:h}),x=l||(f?"p":h[d]||D1[d])||"span",g=F3(y);return C.jsx(z3,k({as:x,ref:n,ownerState:y,className:J(g.root,a)},p))}),Pe=V3,q2="base";function W3(e){return`${q2}--${e}`}function H3(e,t){return`${q2}-${e}-${t}`}function X2(e,t){const n=m2[t];return n?W3(n):H3(e,t)}function G3(e,t){const n={};return t.forEach(r=>{n[r]=X2(e,r)}),n}const K3=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Y3(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 q3(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 X3(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||q3(e))}function Q3(e){const t=[],n=[];return Array.from(e.querySelectorAll(K3)).forEach((r,o)=>{const i=Y3(r);i===-1||!X3(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 Z3(){return!0}function J3(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=Q3,isEnabled:s=Z3,open:a}=e,l=w.useRef(!1),u=w.useRef(null),c=w.useRef(null),f=w.useRef(null),d=w.useRef(null),h=w.useRef(!1),p=w.useRef(null),y=Ze(t.ref,p),x=w.useRef(null);w.useEffect(()=>{!a||!p.current||(h.current=!n)},[n,a]),w.useEffect(()=>{if(!a||!p.current)return;const m=Ft(p.current);return p.current.contains(m.activeElement)||(p.current.hasAttribute("tabIndex")||p.current.setAttribute("tabIndex","-1"),h.current&&p.current.focus()),()=>{o||(f.current&&f.current.focus&&(l.current=!0,f.current.focus()),f.current=null)}},[a]),w.useEffect(()=>{if(!a||!p.current)return;const m=Ft(p.current),b=R=>{x.current=R,!(r||!s()||R.key!=="Tab")&&m.activeElement===p.current&&R.shiftKey&&(l.current=!0,c.current&&c.current.focus())},S=()=>{const R=p.current;if(R===null)return;if(!m.hasFocus()||!s()||l.current){l.current=!1;return}if(R.contains(m.activeElement)||r&&m.activeElement!==u.current&&m.activeElement!==c.current)return;if(m.activeElement!==d.current)d.current=null;else if(d.current!==null)return;if(!h.current)return;let $=[];if((m.activeElement===u.current||m.activeElement===c.current)&&($=i(p.current)),$.length>0){var M,T;const _=!!((M=x.current)!=null&&M.shiftKey&&((T=x.current)==null?void 0:T.key)==="Tab"),N=$[0],I=$[$.length-1];typeof N!="string"&&typeof I!="string"&&(_?I.focus():N.focus())}else R.focus()};m.addEventListener("focusin",S),m.addEventListener("keydown",b,!0);const P=setInterval(()=>{m.activeElement&&m.activeElement.tagName==="BODY"&&S()},50);return()=>{clearInterval(P),m.removeEventListener("focusin",S),m.removeEventListener("keydown",b,!0)}},[n,r,o,s,a,i]);const g=m=>{f.current===null&&(f.current=m.relatedTarget),h.current=!0,d.current=m.target;const b=t.props.onFocus;b&&b(m)},v=m=>{f.current===null&&(f.current=m.relatedTarget),h.current=!0};return C.jsxs(w.Fragment,{children:[C.jsx("div",{tabIndex:a?0:-1,onFocus:v,ref:u,"data-testid":"sentinelStart"}),w.cloneElement(t,{ref:y,onFocus:g}),C.jsx("div",{tabIndex:a?0:-1,onFocus:v,ref:c,"data-testid":"sentinelEnd"})]})}function eN(e){return typeof e=="function"?e():e}const Q2=w.forwardRef(function(t,n){const{children:r,container:o,disablePortal:i=!1}=t,[s,a]=w.useState(null),l=Ze(w.isValidElement(r)?r.ref:null,n);if(zt(()=>{i||a(eN(o)||document.body)},[o,i]),zt(()=>{if(s&&!i)return yg(n,s),()=>{yg(n,null)}},[n,s,i]),i){if(w.isValidElement(r)){const u={ref:l};return w.cloneElement(r,u)}return C.jsx(w.Fragment,{children:r})}return C.jsx(w.Fragment,{children:s&&zd.createPortal(r,s)})});function tN(e){const t=Ft(e);return t.body===e?So(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function za(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function F1(e){return parseInt(So(e).getComputedStyle(e).paddingRight,10)||0}function nN(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 z1(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,s=>{const a=i.indexOf(s)===-1,l=!nN(s);a&&l&&za(s,o)})}function Up(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function rN(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(tN(r)){const s=T2(Ft(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${F1(r)+s}px`;const a=Ft(r).querySelectorAll(".mui-fixed");[].forEach.call(a,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${F1(l)+s}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=Ft(r).body;else{const s=r.parentElement,a=So(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 oN(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class iN{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&&za(t.modalRef,!1);const o=oN(n);z1(n,t.mount,t.modalRef,o,!0);const i=Up(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=Up(this.containers,i=>i.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=rN(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=Up(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&&za(t.modalRef,n),z1(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&&za(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function sN(e){return typeof e=="function"?e():e}function aN(e){return e?e.props.hasOwnProperty("in"):!1}const lN=new iN;function uN(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=lN,closeAfterTransition:i=!1,onTransitionEnter:s,onTransitionExited:a,children:l,onClose:u,open:c,rootRef:f}=e,d=w.useRef({}),h=w.useRef(null),p=w.useRef(null),y=Ze(p,f),[x,g]=w.useState(!c),v=aN(l);let m=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(m=!1);const b=()=>Ft(h.current),S=()=>(d.current.modalRef=p.current,d.current.mount=h.current,d.current),P=()=>{o.mount(S(),{disableScrollLock:r}),p.current&&(p.current.scrollTop=0)},R=oo(()=>{const A=sN(t)||b().body;o.add(S(),A),p.current&&P()}),$=w.useCallback(()=>o.isTopModal(S()),[o]),M=oo(A=>{h.current=A,A&&(c&&$()?P():p.current&&za(p.current,m))}),T=w.useCallback(()=>{o.remove(S(),m)},[m,o]);w.useEffect(()=>()=>{T()},[T]),w.useEffect(()=>{c?R():(!v||!i)&&T()},[c,T,v,i,R]);const _=A=>j=>{var E;(E=A.onKeyDown)==null||E.call(A,j),!(j.key!=="Escape"||j.which===229||!$())&&(n||(j.stopPropagation(),u&&u(j,"escapeKeyDown")))},N=A=>j=>{var E;(E=A.onClick)==null||E.call(A,j),j.target===j.currentTarget&&u&&u(j,"backdropClick")};return{getRootProps:(A={})=>{const j=Y2(e);delete j.onTransitionEnter,delete j.onTransitionExited;const E=k({},j,A);return k({role:"presentation"},E,{onKeyDown:_(E),ref:y})},getBackdropProps:(A={})=>{const j=A;return k({"aria-hidden":!0},j,{onClick:N(j),open:c})},getTransitionProps:()=>{const A=()=>{g(!1),s&&s()},j=()=>{g(!0),a&&a(),i&&T()};return{onEnter:mg(A,l==null?void 0:l.props.onEnter),onExited:mg(j,l==null?void 0:l.props.onExited)}},rootRef:y,portalRef:M,isTopModal:$,exited:x,hasTransition:v}}function Z2(e){const{children:t,defer:n=!1,fallback:r=null}=e,[o,i]=w.useState(!1);return zt(()=>{n||i(!0)},[n]),w.useEffect(()=>{n&&i(!0)},[n]),C.jsx(w.Fragment,{children:o?t:r})}var Jt="top",Nn="bottom",Ln="right",en="left",My="auto",tu=[Jt,Nn,Ln,en],vs="start",xl="end",cN="clippingParents",J2="viewport",ia="popper",dN="reference",B1=tu.reduce(function(e,t){return e.concat([t+"-"+vs,t+"-"+xl])},[]),ek=[].concat(tu,[My]).reduce(function(e,t){return e.concat([t,t+"-"+vs,t+"-"+xl])},[]),fN="beforeRead",pN="read",hN="afterRead",gN="beforeMain",mN="main",yN="afterMain",vN="beforeWrite",xN="write",bN="afterWrite",wN=[fN,pN,hN,gN,mN,yN,vN,xN,bN];function yr(e){return e?(e.nodeName||"").toLowerCase():null}function pn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ai(e){var t=pn(e).Element;return e instanceof t||e instanceof Element}function _n(e){var t=pn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Ey(e){if(typeof ShadowRoot>"u")return!1;var t=pn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function SN(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];!_n(i)||!yr(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 CN(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},{});!_n(o)||!yr(o)||(Object.assign(o.style,a),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}const kN={name:"applyStyles",enabled:!0,phase:"write",fn:SN,effect:CN,requires:["computeStyles"]};function gr(e){return e.split("-")[0]}var Zo=Math.max,qc=Math.min,xs=Math.round;function kg(){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 tk(){return!/^((?!chrome|android).)*safari/i.test(kg())}function bs(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&_n(e)&&(o=e.offsetWidth>0&&xs(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&xs(r.height)/e.offsetHeight||1);var s=ai(e)?pn(e):window,a=s.visualViewport,l=!tk()&&n,u=(r.left+(l&&a?a.offsetLeft:0))/o,c=(r.top+(l&&a?a.offsetTop:0))/i,f=r.width/o,d=r.height/i;return{width:f,height:d,top:c,right:u+f,bottom:c+d,left:u,x:u,y:c}}function _y(e){var t=bs(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 nk(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Ey(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 pn(e).getComputedStyle(e)}function PN(e){return["table","td","th"].indexOf(yr(e))>=0}function _o(e){return((ai(e)?e.ownerDocument:e.document)||window.document).documentElement}function kf(e){return yr(e)==="html"?e:e.assignedSlot||e.parentNode||(Ey(e)?e.host:null)||_o(e)}function U1(e){return!_n(e)||Br(e).position==="fixed"?null:e.offsetParent}function RN(e){var t=/firefox/i.test(kg()),n=/Trident/i.test(kg());if(n&&_n(e)){var r=Br(e);if(r.position==="fixed")return null}var o=kf(e);for(Ey(o)&&(o=o.host);_n(o)&&["html","body"].indexOf(yr(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 nu(e){for(var t=pn(e),n=U1(e);n&&PN(n)&&Br(n).position==="static";)n=U1(n);return n&&(yr(n)==="html"||yr(n)==="body"&&Br(n).position==="static")?t:n||RN(e)||t}function Iy(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ba(e,t,n){return Zo(e,qc(t,n))}function $N(e,t,n){var r=Ba(e,t,n);return r>n?n:r}function rk(){return{top:0,right:0,bottom:0,left:0}}function ok(e){return Object.assign({},rk(),e)}function ik(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var TN=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,ok(typeof t!="number"?t:ik(t,tu))};function MN(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,a=gr(n.placement),l=Iy(a),u=[en,Ln].indexOf(a)>=0,c=u?"height":"width";if(!(!i||!s)){var f=TN(o.padding,n),d=_y(i),h=l==="y"?Jt:en,p=l==="y"?Nn:Ln,y=n.rects.reference[c]+n.rects.reference[l]-s[l]-n.rects.popper[c],x=s[l]-n.rects.reference[l],g=nu(i),v=g?l==="y"?g.clientHeight||0:g.clientWidth||0:0,m=y/2-x/2,b=f[h],S=v-d[c]-f[p],P=v/2-d[c]/2+m,R=Ba(b,P,S),$=l;n.modifiersData[r]=(t={},t[$]=R,t.centerOffset=R-P,t)}}function EN(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)||nk(t.elements.popper,o)&&(t.elements.arrow=o))}const _N={name:"arrow",enabled:!0,phase:"main",fn:MN,effect:EN,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ws(e){return e.split("-")[1]}var IN={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ON(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:xs(n*o)/o||0,y:xs(r*o)/o||0}}function V1(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,f=e.isFixed,d=s.x,h=d===void 0?0:d,p=s.y,y=p===void 0?0:p,x=typeof c=="function"?c({x:h,y}):{x:h,y};h=x.x,y=x.y;var g=s.hasOwnProperty("x"),v=s.hasOwnProperty("y"),m=en,b=Jt,S=window;if(u){var P=nu(n),R="clientHeight",$="clientWidth";if(P===pn(n)&&(P=_o(n),Br(P).position!=="static"&&a==="absolute"&&(R="scrollHeight",$="scrollWidth")),P=P,o===Jt||(o===en||o===Ln)&&i===xl){b=Nn;var M=f&&P===S&&S.visualViewport?S.visualViewport.height:P[R];y-=M-r.height,y*=l?1:-1}if(o===en||(o===Jt||o===Nn)&&i===xl){m=Ln;var T=f&&P===S&&S.visualViewport?S.visualViewport.width:P[$];h-=T-r.width,h*=l?1:-1}}var _=Object.assign({position:a},u&&IN),N=c===!0?ON({x:h,y},pn(n)):{x:h,y};if(h=N.x,y=N.y,l){var I;return Object.assign({},_,(I={},I[b]=v?"0":"",I[m]=g?"0":"",I.transform=(S.devicePixelRatio||1)<=1?"translate("+h+"px, "+y+"px)":"translate3d("+h+"px, "+y+"px, 0)",I))}return Object.assign({},_,(t={},t[b]=v?y+"px":"",t[m]=g?h+"px":"",t.transform="",t))}function AN(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:gr(t.placement),variation:ws(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,V1(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,V1(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 NN={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:AN,data:{}};var Iu={passive:!0};function LN(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=pn(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(c){c.addEventListener("scroll",n.update,Iu)}),a&&l.addEventListener("resize",n.update,Iu),function(){i&&u.forEach(function(c){c.removeEventListener("scroll",n.update,Iu)}),a&&l.removeEventListener("resize",n.update,Iu)}}const jN={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:LN,data:{}};var DN={left:"right",right:"left",bottom:"top",top:"bottom"};function mc(e){return e.replace(/left|right|bottom|top/g,function(t){return DN[t]})}var FN={start:"end",end:"start"};function W1(e){return e.replace(/start|end/g,function(t){return FN[t]})}function Oy(e){var t=pn(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Ay(e){return bs(_o(e)).left+Oy(e).scrollLeft}function zN(e,t){var n=pn(e),r=_o(e),o=n.visualViewport,i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;var u=tk();(u||!u&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a+Ay(e),y:l}}function BN(e){var t,n=_o(e),r=Oy(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=Zo(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=Zo(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+Ay(e),l=-r.scrollTop;return Br(o||n).direction==="rtl"&&(a+=Zo(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:a,y:l}}function Ny(e){var t=Br(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function sk(e){return["html","body","#document"].indexOf(yr(e))>=0?e.ownerDocument.body:_n(e)&&Ny(e)?e:sk(kf(e))}function Ua(e,t){var n;t===void 0&&(t=[]);var r=sk(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=pn(r),s=o?[i].concat(i.visualViewport||[],Ny(r)?r:[]):r,a=t.concat(s);return o?a:a.concat(Ua(kf(s)))}function Pg(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function UN(e,t){var n=bs(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 H1(e,t,n){return t===J2?Pg(zN(e,n)):ai(t)?UN(t,n):Pg(BN(_o(e)))}function VN(e){var t=Ua(kf(e)),n=["absolute","fixed"].indexOf(Br(e).position)>=0,r=n&&_n(e)?nu(e):e;return ai(r)?t.filter(function(o){return ai(o)&&nk(o,r)&&yr(o)!=="body"}):[]}function WN(e,t,n,r){var o=t==="clippingParents"?VN(e):[].concat(t),i=[].concat(o,[n]),s=i[0],a=i.reduce(function(l,u){var c=H1(e,u,r);return l.top=Zo(c.top,l.top),l.right=qc(c.right,l.right),l.bottom=qc(c.bottom,l.bottom),l.left=Zo(c.left,l.left),l},H1(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 ak(e){var t=e.reference,n=e.element,r=e.placement,o=r?gr(r):null,i=r?ws(r):null,s=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,l;switch(o){case Jt:l={x:s,y:t.y-n.height};break;case Nn:l={x:s,y:t.y+t.height};break;case Ln:l={x:t.x+t.width,y:a};break;case en:l={x:t.x-n.width,y:a};break;default:l={x:t.x,y:t.y}}var u=o?Iy(o):null;if(u!=null){var c=u==="y"?"height":"width";switch(i){case vs:l[u]=l[u]-(t[c]/2-n[c]/2);break;case xl:l[u]=l[u]+(t[c]/2-n[c]/2);break}}return l}function bl(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?cN:a,u=n.rootBoundary,c=u===void 0?J2:u,f=n.elementContext,d=f===void 0?ia:f,h=n.altBoundary,p=h===void 0?!1:h,y=n.padding,x=y===void 0?0:y,g=ok(typeof x!="number"?x:ik(x,tu)),v=d===ia?dN:ia,m=e.rects.popper,b=e.elements[p?v:d],S=WN(ai(b)?b:b.contextElement||_o(e.elements.popper),l,c,s),P=bs(e.elements.reference),R=ak({reference:P,element:m,strategy:"absolute",placement:o}),$=Pg(Object.assign({},m,R)),M=d===ia?$:P,T={top:S.top-M.top+g.top,bottom:M.bottom-S.bottom+g.bottom,left:S.left-M.left+g.left,right:M.right-S.right+g.right},_=e.modifiersData.offset;if(d===ia&&_){var N=_[o];Object.keys(T).forEach(function(I){var O=[Ln,Nn].indexOf(I)>=0?1:-1,L=[Jt,Nn].indexOf(I)>=0?"y":"x";T[I]+=N[L]*O})}return T}function HN(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?ek:l,c=ws(r),f=c?a?B1:B1.filter(function(p){return ws(p)===c}):tu,d=f.filter(function(p){return u.indexOf(p)>=0});d.length===0&&(d=f);var h=d.reduce(function(p,y){return p[y]=bl(e,{placement:y,boundary:o,rootBoundary:i,padding:s})[gr(y)],p},{});return Object.keys(h).sort(function(p,y){return h[p]-h[y]})}function GN(e){if(gr(e)===My)return[];var t=mc(e);return[W1(e),t,W1(t)]}function KN(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,f=n.rootBoundary,d=n.altBoundary,h=n.flipVariations,p=h===void 0?!0:h,y=n.allowedAutoPlacements,x=t.options.placement,g=gr(x),v=g===x,m=l||(v||!p?[mc(x)]:GN(x)),b=[x].concat(m).reduce(function(ee,Q){return ee.concat(gr(Q)===My?HN(t,{placement:Q,boundary:c,rootBoundary:f,padding:u,flipVariations:p,allowedAutoPlacements:y}):Q)},[]),S=t.rects.reference,P=t.rects.popper,R=new Map,$=!0,M=b[0],T=0;T=0,L=O?"width":"height",A=bl(t,{placement:_,boundary:c,rootBoundary:f,altBoundary:d,padding:u}),j=O?I?Ln:en:I?Nn:Jt;S[L]>P[L]&&(j=mc(j));var E=mc(j),D=[];if(i&&D.push(A[N]<=0),a&&D.push(A[j]<=0,A[E]<=0),D.every(function(ee){return ee})){M=_,$=!1;break}R.set(_,D)}if($)for(var F=p?3:1,V=function(Q){var re=b.find(function(ge){var he=R.get(ge);if(he)return he.slice(0,Q).every(function(B){return B})});if(re)return M=re,"break"},H=F;H>0;H--){var ue=V(H);if(ue==="break")break}t.placement!==M&&(t.modifiersData[r]._skip=!0,t.placement=M,t.reset=!0)}}const YN={name:"flip",enabled:!0,phase:"main",fn:KN,requiresIfExists:["offset"],data:{_skip:!1}};function G1(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 K1(e){return[Jt,Ln,Nn,en].some(function(t){return e[t]>=0})}function qN(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,s=bl(t,{elementContext:"reference"}),a=bl(t,{altBoundary:!0}),l=G1(s,r),u=G1(a,o,i),c=K1(l),f=K1(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}const XN={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:qN};function QN(e,t,n){var r=gr(e),o=[en,Jt].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,[en,Ln].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}function ZN(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,s=ek.reduce(function(c,f){return c[f]=QN(f,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 JN={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:ZN};function e5(e){var t=e.state,n=e.name;t.modifiersData[n]=ak({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const t5={name:"popperOffsets",enabled:!0,phase:"read",fn:e5,data:{}};function n5(e){return e==="x"?"y":"x"}function r5(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,f=n.padding,d=n.tether,h=d===void 0?!0:d,p=n.tetherOffset,y=p===void 0?0:p,x=bl(t,{boundary:l,rootBoundary:u,padding:f,altBoundary:c}),g=gr(t.placement),v=ws(t.placement),m=!v,b=Iy(g),S=n5(b),P=t.modifiersData.popperOffsets,R=t.rects.reference,$=t.rects.popper,M=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,T=typeof M=="number"?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M),_=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,N={x:0,y:0};if(P){if(i){var I,O=b==="y"?Jt:en,L=b==="y"?Nn:Ln,A=b==="y"?"height":"width",j=P[b],E=j+x[O],D=j-x[L],F=h?-$[A]/2:0,V=v===vs?R[A]:$[A],H=v===vs?-$[A]:-R[A],ue=t.elements.arrow,ee=h&&ue?_y(ue):{width:0,height:0},Q=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:rk(),re=Q[O],ge=Q[L],he=Ba(0,R[A],ee[A]),B=m?R[A]/2-F-he-re-T.mainAxis:V-he-re-T.mainAxis,Z=m?-R[A]/2+F+he+ge+T.mainAxis:H+he+ge+T.mainAxis,K=t.elements.arrow&&nu(t.elements.arrow),z=K?b==="y"?K.clientTop||0:K.clientLeft||0:0,oe=(I=_==null?void 0:_[b])!=null?I:0,ne=j+B-oe-z,U=j+Z-oe,X=Ba(h?qc(E,ne):E,j,h?Zo(D,U):D);P[b]=X,N[b]=X-j}if(a){var ie,ve=b==="x"?Jt:en,Ie=b==="x"?Nn:Ln,pe=P[S],ae=S==="y"?"height":"width",Te=pe+x[ve],je=pe-x[Ie],ke=[Jt,en].indexOf(g)!==-1,ht=(ie=_==null?void 0:_[S])!=null?ie:0,Ct=ke?Te:pe-R[ae]-$[ae]-ht+T.altAxis,Ot=ke?pe+R[ae]+$[ae]-ht-T.altAxis:je,Me=h&&ke?$N(Ct,pe,Ot):Ba(h?Ct:Te,pe,h?Ot:je);P[S]=Me,N[S]=Me-pe}t.modifiersData[r]=N}}const o5={name:"preventOverflow",enabled:!0,phase:"main",fn:r5,requiresIfExists:["offset"]};function i5(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function s5(e){return e===pn(e)||!_n(e)?Oy(e):i5(e)}function a5(e){var t=e.getBoundingClientRect(),n=xs(t.width)/e.offsetWidth||1,r=xs(t.height)/e.offsetHeight||1;return n!==1||r!==1}function l5(e,t,n){n===void 0&&(n=!1);var r=_n(t),o=_n(t)&&a5(t),i=_o(t),s=bs(e,o,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((yr(t)!=="body"||Ny(i))&&(a=s5(t)),_n(t)?(l=bs(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=Ay(i))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function u5(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 c5(e){var t=u5(e);return wN.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function d5(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function f5(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 Y1={placement:"bottom",modifiers:[],strategy:"absolute"};function q1(){for(var e=arguments.length,t=new Array(e),n=0;nle({root:["root"]},y3(m5)),S5={},C5=w.forwardRef(function(t,n){var r;const{anchorEl:o,children:i,direction:s,disablePortal:a,modifiers:l,open:u,placement:c,popperOptions:f,popperRef:d,slotProps:h={},slots:p={},TransitionProps:y}=t,x=W(t,y5),g=w.useRef(null),v=Ze(g,n),m=w.useRef(null),b=Ze(m,d),S=w.useRef(b);zt(()=>{S.current=b},[b]),w.useImperativeHandle(d,()=>m.current,[]);const P=x5(c,s),[R,$]=w.useState(P),[M,T]=w.useState(Rg(o));w.useEffect(()=>{m.current&&m.current.forceUpdate()}),w.useEffect(()=>{o&&T(Rg(o))},[o]),zt(()=>{if(!M||!u)return;const L=E=>{$(E.placement)};let A=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:E})=>{L(E)}}];l!=null&&(A=A.concat(l)),f&&f.modifiers!=null&&(A=A.concat(f.modifiers));const j=g5(M,g.current,k({placement:P},f,{modifiers:A}));return S.current(j),()=>{j.destroy(),S.current(null)}},[M,a,l,u,f,P]);const _={placement:R};y!==null&&(_.TransitionProps=y);const N=w5(),I=(r=p.root)!=null?r:"div",O=wt({elementType:I,externalSlotProps:h.root,externalForwardedProps:x,additionalProps:{role:"tooltip",ref:v},ownerState:t,className:N.root});return C.jsx(I,k({},O,{children:typeof i=="function"?i(_):i}))}),uk=w.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:f="bottom",popperOptions:d=S5,popperRef:h,style:p,transition:y=!1,slotProps:x={},slots:g={}}=t,v=W(t,v5),[m,b]=w.useState(!0),S=()=>{b(!1)},P=()=>{b(!0)};if(!l&&!c&&(!y||m))return null;let R;if(i)R=i;else if(r){const T=Rg(r);R=T&&b5(T)?Ft(T).body:Ft(null).body}const $=!c&&l&&(!y||m)?"none":void 0,M=y?{in:c,onEnter:S,onExited:P}:void 0;return C.jsx(Q2,{disablePortal:a,container:R,children:C.jsx(C5,k({anchorEl:r,direction:s,disablePortal:a,modifiers:u,ref:n,open:y?!m:c,placement:f,popperOptions:d,popperRef:h,slotProps:x,slots:g},v,{style:k({position:"fixed",top:0,left:0,display:$},p),TransitionProps:M,children:o}))})}),k5=["onChange","maxRows","minRows","style","value"];function Ou(e){return parseInt(e,10)||0}const P5={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function R5(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const $5=w.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:i=1,style:s,value:a}=t,l=W(t,k5),{current:u}=w.useRef(a!=null),c=w.useRef(null),f=Ze(n,c),d=w.useRef(null),h=w.useCallback(()=>{const x=c.current,v=So(x).getComputedStyle(x);if(v.width==="0px")return{outerHeightStyle:0,overflowing:!1};const m=d.current;m.style.width=v.width,m.value=x.value||t.placeholder||"x",m.value.slice(-1)===` +`&&(m.value+=" ");const b=v.boxSizing,S=Ou(v.paddingBottom)+Ou(v.paddingTop),P=Ou(v.borderBottomWidth)+Ou(v.borderTopWidth),R=m.scrollHeight;m.value="x";const $=m.scrollHeight;let M=R;i&&(M=Math.max(Number(i)*$,M)),o&&(M=Math.min(Number(o)*$,M)),M=Math.max(M,$);const T=M+(b==="border-box"?S+P:0),_=Math.abs(M-R)<=1;return{outerHeightStyle:T,overflowing:_}},[o,i,t.placeholder]),p=w.useCallback(()=>{const x=h();if(R5(x))return;const g=c.current;g.style.height=`${x.outerHeightStyle}px`,g.style.overflow=x.overflowing?"hidden":""},[h]);zt(()=>{const x=()=>{p()};let g;const v=R2(x),m=c.current,b=So(m);b.addEventListener("resize",v);let S;return typeof ResizeObserver<"u"&&(S=new ResizeObserver(x),S.observe(m)),()=>{v.clear(),cancelAnimationFrame(g),b.removeEventListener("resize",v),S&&S.disconnect()}},[h,p]),zt(()=>{p()});const y=x=>{u||p(),r&&r(x)};return C.jsxs(w.Fragment,{children:[C.jsx("textarea",k({value:a,onChange:y,ref:f,rows:i,style:s},l)),C.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:d,tabIndex:-1,style:k({},P5.shadow,s,{paddingTop:0,paddingBottom:0})})]})});var Ly={};Object.defineProperty(Ly,"__esModule",{value:!0});var ck=Ly.default=void 0,T5=E5(w),M5=U2;function dk(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(dk=function(r){return r?n:t})(e)}function E5(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=dk(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 _5(e){return Object.keys(e).length===0}function I5(e=null){const t=T5.useContext(M5.ThemeContext);return!t||_5(t)?e:t}ck=Ly.default=I5;const O5=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],A5=G(uk,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),N5=w.forwardRef(function(t,n){var r;const o=ck(),i=ye({props:t,name:"MuiPopper"}),{anchorEl:s,component:a,components:l,componentsProps:u,container:c,disablePortal:f,keepMounted:d,modifiers:h,open:p,placement:y,popperOptions:x,popperRef:g,transition:v,slots:m,slotProps:b}=i,S=W(i,O5),P=(r=m==null?void 0:m.root)!=null?r:l==null?void 0:l.Root,R=k({anchorEl:s,container:c,disablePortal:f,keepMounted:d,modifiers:h,open:p,placement:y,popperOptions:x,popperRef:g,transition:v},S);return C.jsx(A5,k({as:a,direction:o==null?void 0:o.direction,slots:{root:P},slotProps:b??u},R,{ref:n}))}),fk=N5;function Io({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 L5=w.createContext(void 0),Pf=L5;function br(){return w.useContext(Pf)}function pk(e){return C.jsx(bI,k({},e,{defaultTheme:wf,themeId:ii}))}function X1(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Xc(e,t=!1){return e&&(X1(e.value)&&e.value!==""||t&&X1(e.defaultValue)&&e.defaultValue!=="")}function j5(e){return e.startAdornment}function D5(e){return ce("MuiInputBase",e)}const F5=de("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Ss=F5,z5=["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"],Rf=(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]},$f=(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]},B5=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:s,formControl:a,fullWidth:l,hiddenLabel:u,multiline:c,readOnly:f,size:d,startAdornment:h,type:p}=e,y={root:["root",`color${se(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",s&&"focused",a&&"formControl",d&&d!=="medium"&&`size${se(d)}`,c&&"multiline",h&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",f&&"readOnly"],input:["input",r&&"disabled",p==="search"&&"inputTypeSearch",c&&"inputMultiline",d==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",h&&"inputAdornedStart",i&&"inputAdornedEnd",f&&"readOnly"]};return le(y,D5,t)},Tf=G("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Rf})(({theme:e,ownerState:t})=>k({},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",[`&.${Ss.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&k({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),Mf=G("input",{name:"MuiInputBase",slot:"Input",overridesResolver:$f})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=k({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 k({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] + .${Ss.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},[`&.${Ss.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"})}),U5=C.jsx(pk,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),V5=w.forwardRef(function(t,n){var r;const o=ye({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:s,autoFocus:a,className:l,components:u={},componentsProps:c={},defaultValue:f,disabled:d,disableInjectingGlobalStyles:h,endAdornment:p,fullWidth:y=!1,id:x,inputComponent:g="input",inputProps:v={},inputRef:m,maxRows:b,minRows:S,multiline:P=!1,name:R,onBlur:$,onChange:M,onClick:T,onFocus:_,onKeyDown:N,onKeyUp:I,placeholder:O,readOnly:L,renderSuffix:A,rows:j,slotProps:E={},slots:D={},startAdornment:F,type:V="text",value:H}=o,ue=W(o,z5),ee=v.value!=null?v.value:H,{current:Q}=w.useRef(ee!=null),re=w.useRef(),ge=w.useCallback(Me=>{},[]),he=Ze(re,m,v.ref,ge),[B,Z]=w.useState(!1),K=br(),z=Io({props:o,muiFormControl:K,states:["color","disabled","error","hiddenLabel","size","required","filled"]});z.focused=K?K.focused:B,w.useEffect(()=>{!K&&d&&B&&(Z(!1),$&&$())},[K,d,B,$]);const oe=K&&K.onFilled,ne=K&&K.onEmpty,U=w.useCallback(Me=>{Xc(Me)?oe&&oe():ne&&ne()},[oe,ne]);zt(()=>{Q&&U({value:ee})},[ee,U,Q]);const X=Me=>{if(z.disabled){Me.stopPropagation();return}_&&_(Me),v.onFocus&&v.onFocus(Me),K&&K.onFocus?K.onFocus(Me):Z(!0)},ie=Me=>{$&&$(Me),v.onBlur&&v.onBlur(Me),K&&K.onBlur?K.onBlur(Me):Z(!1)},ve=(Me,...me)=>{if(!Q){const ot=Me.target||re.current;if(ot==null)throw new Error(Fr(1));U({value:ot.value})}v.onChange&&v.onChange(Me,...me),M&&M(Me,...me)};w.useEffect(()=>{U(re.current)},[]);const Ie=Me=>{re.current&&Me.currentTarget===Me.target&&re.current.focus(),T&&T(Me)};let pe=g,ae=v;P&&pe==="input"&&(j?ae=k({type:void 0,minRows:j,maxRows:j},ae):ae=k({type:void 0,maxRows:b,minRows:S},ae),pe=$5);const Te=Me=>{U(Me.animationName==="mui-auto-fill-cancel"?re.current:{value:"x"})};w.useEffect(()=>{K&&K.setAdornedStart(!!F)},[K,F]);const je=k({},o,{color:z.color||"primary",disabled:z.disabled,endAdornment:p,error:z.error,focused:z.focused,formControl:K,fullWidth:y,hiddenLabel:z.hiddenLabel,multiline:P,size:z.size,startAdornment:F,type:V}),ke=B5(je),ht=D.root||u.Root||Tf,Ct=E.root||c.root||{},Ot=D.input||u.Input||Mf;return ae=k({},ae,(r=E.input)!=null?r:c.input),C.jsxs(w.Fragment,{children:[!h&&U5,C.jsxs(ht,k({},Ct,!ys(ht)&&{ownerState:k({},je,Ct.ownerState)},{ref:n,onClick:Ie},ue,{className:J(ke.root,Ct.className,l,L&&"MuiInputBase-readOnly"),children:[F,C.jsx(Pf.Provider,{value:null,children:C.jsx(Ot,k({ownerState:je,"aria-invalid":z.error,"aria-describedby":i,autoComplete:s,autoFocus:a,defaultValue:f,disabled:z.disabled,id:x,onAnimationStart:Te,name:R,placeholder:O,readOnly:L,required:z.required,rows:j,value:ee,onKeyDown:N,onKeyUp:I,type:V},ae,!ys(Ot)&&{as:pe,ownerState:k({},je,ae.ownerState)},{ref:he,className:J(ke.input,ae.className,L&&"MuiInputBase-readOnly"),onBlur:ie,onChange:ve,onFocus:X}))}),p,A?A(k({},z,{startAdornment:F})):null]}))]})}),jy=V5;function W5(e){return ce("MuiInput",e)}const H5=k({},Ss,de("MuiInput",["root","underline","input"])),sa=H5;function G5(e){return ce("MuiOutlinedInput",e)}const K5=k({},Ss,de("MuiOutlinedInput",["root","notchedOutline","input"])),qr=K5;function Y5(e){return ce("MuiFilledInput",e)}const q5=k({},Ss,de("MuiFilledInput",["root","underline","input"])),Oo=q5,X5=xr(C.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),Q5=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Z5={entering:{opacity:1},entered:{opacity:1}},J5=w.forwardRef(function(t,n){const r=_t(),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:f,onEntering:d,onExit:h,onExited:p,onExiting:y,style:x,timeout:g=o,TransitionComponent:v=G2}=t,m=W(t,Q5),b=w.useRef(null),S=Ze(b,a.ref,n),P=O=>L=>{if(O){const A=b.current;L===void 0?O(A):O(A,L)}},R=P(d),$=P((O,L)=>{K2(O);const A=Yc({style:x,timeout:g,easing:l},{mode:"enter"});O.style.webkitTransition=r.transitions.create("opacity",A),O.style.transition=r.transitions.create("opacity",A),c&&c(O,L)}),M=P(f),T=P(y),_=P(O=>{const L=Yc({style:x,timeout:g,easing:l},{mode:"exit"});O.style.webkitTransition=r.transitions.create("opacity",L),O.style.transition=r.transitions.create("opacity",L),h&&h(O)}),N=P(p),I=O=>{i&&i(b.current,O)};return C.jsx(v,k({appear:s,in:u,nodeRef:b,onEnter:$,onEntered:M,onEntering:R,onExit:_,onExited:N,onExiting:T,addEndListener:I,timeout:g},m,{children:(O,L)=>w.cloneElement(a,k({style:k({opacity:0,visibility:O==="exited"&&!u?"hidden":void 0},Z5[O],x,a.props.style),ref:S},L))}))}),hk=J5;function eL(e){return ce("MuiBackdrop",e)}de("MuiBackdrop",["root","invisible"]);const tL=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],nL=e=>{const{classes:t,invisible:n}=e;return le({root:["root",n&&"invisible"]},eL,t)},rL=G("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>k({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"})),oL=w.forwardRef(function(t,n){var r,o,i;const s=ye({props:t,name:"MuiBackdrop"}),{children:a,className:l,component:u="div",components:c={},componentsProps:f={},invisible:d=!1,open:h,slotProps:p={},slots:y={},TransitionComponent:x=hk,transitionDuration:g}=s,v=W(s,tL),m=k({},s,{component:u,invisible:d}),b=nL(m),S=(r=p.root)!=null?r:f.root;return C.jsx(x,k({in:h,timeout:g},v,{children:C.jsx(rL,k({"aria-hidden":!0},S,{as:(o=(i=y.root)!=null?i:c.Root)!=null?o:u,className:J(b.root,l,S==null?void 0:S.className),ownerState:k({},m,S==null?void 0:S.ownerState),classes:b,ref:n,children:a}))}))}),gk=oL,iL=de("MuiBox",["root"]),sL=iL,aL=bf(),lL=g2({themeId:ii,defaultTheme:aL,defaultClassName:sL.root,generateClassName:vy.generate}),Ef=lL;function uL(e){return ce("MuiButton",e)}const cL=de("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"]),Au=cL,dL=w.createContext({}),fL=dL,pL=w.createContext(void 0),hL=pL,gL=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],mL=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=le(a,uL,s);return k({},s,l)},mk=e=>k({},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}}),yL=G(eu,{shouldForwardProp:e=>It(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 k({},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":k({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:at(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})`:at(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})`:at(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":k({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Au.focusVisible}`]:k({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Au.disabled}`]:k({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 ${at(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"},[`&.${Au.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Au.disabled}`]:{boxShadow:"none"}}),vL=G("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${se(n.size)}`]]}})(({ownerState:e})=>k({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},mk(e))),xL=G("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${se(n.size)}`]]}})(({ownerState:e})=>k({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},mk(e))),bL=w.forwardRef(function(t,n){const r=w.useContext(fL),o=w.useContext(hL),i=vf(r,t),s=ye({props:i,name:"MuiButton"}),{children:a,color:l="primary",component:u="button",className:c,disabled:f=!1,disableElevation:d=!1,disableFocusRipple:h=!1,endIcon:p,focusVisibleClassName:y,fullWidth:x=!1,size:g="medium",startIcon:v,type:m,variant:b="text"}=s,S=W(s,gL),P=k({},s,{color:l,component:u,disabled:f,disableElevation:d,disableFocusRipple:h,fullWidth:x,size:g,type:m,variant:b}),R=mL(P),$=v&&C.jsx(vL,{className:R.startIcon,ownerState:P,children:v}),M=p&&C.jsx(xL,{className:R.endIcon,ownerState:P,children:p}),T=o||"";return C.jsxs(yL,k({ownerState:P,className:J(r.className,R.root,c,T),component:u,disabled:f,focusRipple:!h,focusVisibleClassName:J(R.focusVisible,y),ref:n,type:m},S,{classes:R,children:[$,a,M]}))}),$g=bL;function wL(e){return ce("PrivateSwitchBase",e)}de("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const SL=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],CL=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,i={root:["root",n&&"checked",r&&"disabled",o&&`edge${se(o)}`],input:["input"]};return le(i,wL,t)},kL=G(eu)(({ownerState:e})=>k({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),PL=G("input",{shouldForwardProp:It})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),RL=w.forwardRef(function(t,n){const{autoFocus:r,checked:o,checkedIcon:i,className:s,defaultChecked:a,disabled:l,disableFocusRipple:u=!1,edge:c=!1,icon:f,id:d,inputProps:h,inputRef:p,name:y,onBlur:x,onChange:g,onFocus:v,readOnly:m,required:b=!1,tabIndex:S,type:P,value:R}=t,$=W(t,SL),[M,T]=yl({controlled:o,default:!!a,name:"SwitchBase",state:"checked"}),_=br(),N=D=>{v&&v(D),_&&_.onFocus&&_.onFocus(D)},I=D=>{x&&x(D),_&&_.onBlur&&_.onBlur(D)},O=D=>{if(D.nativeEvent.defaultPrevented)return;const F=D.target.checked;T(F),g&&g(D,F)};let L=l;_&&typeof L>"u"&&(L=_.disabled);const A=P==="checkbox"||P==="radio",j=k({},t,{checked:M,disabled:L,disableFocusRipple:u,edge:c}),E=CL(j);return C.jsxs(kL,k({component:"span",className:J(E.root,s),centerRipple:!0,focusRipple:!u,disabled:L,tabIndex:null,role:void 0,onFocus:N,onBlur:I,ownerState:j,ref:n},$,{children:[C.jsx(PL,k({autoFocus:r,checked:o,defaultChecked:a,className:E.input,disabled:L,id:A?d:void 0,name:y,onChange:O,readOnly:m,ref:p,required:b,ownerState:j,tabIndex:S,type:P},P==="checkbox"&&R===void 0?{}:{value:R},h)),M?i:f]}))}),yk=RL,$L=xr(C.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),TL=xr(C.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),ML=xr(C.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function EL(e){return ce("MuiCheckbox",e)}const _L=de("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Vp=_L,IL=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],OL=e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,i={root:["root",n&&"indeterminate",`color${se(r)}`,`size${se(o)}`]},s=le(i,EL,t);return k({},t,s)},AL=G(yk,{shouldForwardProp:e=>It(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${se(n.size)}`],n.color!=="default"&&t[`color${se(n.color)}`]]}})(({theme:e,ownerState:t})=>k({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:at(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${Vp.checked}, &.${Vp.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Vp.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),NL=C.jsx(TL,{}),LL=C.jsx($L,{}),jL=C.jsx(ML,{}),DL=w.forwardRef(function(t,n){var r,o;const i=ye({props:t,name:"MuiCheckbox"}),{checkedIcon:s=NL,color:a="primary",icon:l=LL,indeterminate:u=!1,indeterminateIcon:c=jL,inputProps:f,size:d="medium",className:h}=i,p=W(i,IL),y=u?c:l,x=u?c:s,g=k({},i,{color:a,indeterminate:u,size:d}),v=OL(g);return C.jsx(AL,k({type:"checkbox",inputProps:k({"data-indeterminate":u},f),icon:w.cloneElement(y,{fontSize:(r=y.props.fontSize)!=null?r:d}),checkedIcon:w.cloneElement(x,{fontSize:(o=x.props.fontSize)!=null?o:d}),ownerState:g,ref:n,className:J(v.root,h)},p,{classes:v}))}),FL=DL,zL=(e,t)=>k({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),BL=e=>k({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}}),UL=(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=k({html:zL(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:k({margin:0},BL(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 VL(e){const t=ye({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return C.jsxs(w.Fragment,{children:[C.jsx(pk,{styles:o=>UL(o,r)}),n]})}function WL(e){return ce("MuiModal",e)}de("MuiModal",["root","hidden","backdrop"]);const HL=["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"],GL=e=>{const{open:t,exited:n,classes:r}=e;return le({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},WL,r)},KL=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})=>k({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),YL=G(gk,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),qL=w.forwardRef(function(t,n){var r,o,i,s,a,l;const u=ye({name:"MuiModal",props:t}),{BackdropComponent:c=YL,BackdropProps:f,className:d,closeAfterTransition:h=!1,children:p,container:y,component:x,components:g={},componentsProps:v={},disableAutoFocus:m=!1,disableEnforceFocus:b=!1,disableEscapeKeyDown:S=!1,disablePortal:P=!1,disableRestoreFocus:R=!1,disableScrollLock:$=!1,hideBackdrop:M=!1,keepMounted:T=!1,onBackdropClick:_,open:N,slotProps:I,slots:O}=u,L=W(u,HL),A=k({},u,{closeAfterTransition:h,disableAutoFocus:m,disableEnforceFocus:b,disableEscapeKeyDown:S,disablePortal:P,disableRestoreFocus:R,disableScrollLock:$,hideBackdrop:M,keepMounted:T}),{getRootProps:j,getBackdropProps:E,getTransitionProps:D,portalRef:F,isTopModal:V,exited:H,hasTransition:ue}=uN(k({},A,{rootRef:n})),ee=k({},A,{exited:H}),Q=GL(ee),re={};if(p.props.tabIndex===void 0&&(re.tabIndex="-1"),ue){const{onEnter:oe,onExited:ne}=D();re.onEnter=oe,re.onExited=ne}const ge=(r=(o=O==null?void 0:O.root)!=null?o:g.Root)!=null?r:KL,he=(i=(s=O==null?void 0:O.backdrop)!=null?s:g.Backdrop)!=null?i:c,B=(a=I==null?void 0:I.root)!=null?a:v.root,Z=(l=I==null?void 0:I.backdrop)!=null?l:v.backdrop,K=wt({elementType:ge,externalSlotProps:B,externalForwardedProps:L,getSlotProps:j,additionalProps:{ref:n,as:x},ownerState:ee,className:J(d,B==null?void 0:B.className,Q==null?void 0:Q.root,!ee.open&&ee.exited&&(Q==null?void 0:Q.hidden))}),z=wt({elementType:he,externalSlotProps:Z,additionalProps:f,getSlotProps:oe=>E(k({},oe,{onClick:ne=>{_&&_(ne),oe!=null&&oe.onClick&&oe.onClick(ne)}})),className:J(Z==null?void 0:Z.className,f==null?void 0:f.className,Q==null?void 0:Q.backdrop),ownerState:ee});return!T&&!N&&(!ue||H)?null:C.jsx(Q2,{ref:F,container:y,disablePortal:P,children:C.jsxs(ge,k({},K,{children:[!M&&c?C.jsx(he,k({},z)):null,C.jsx(J3,{disableEnforceFocus:b,disableAutoFocus:m,disableRestoreFocus:R,isEnabled:V,open:N,children:w.cloneElement(p,re)})]}))})}),vk=qL;function XL(e){return ce("MuiDialog",e)}const QL=de("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),Wp=QL,ZL=w.createContext({}),xk=ZL,JL=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],e4=G(gk,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),t4=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:i}=e,s={root:["root"],container:["container",`scroll${se(n)}`],paper:["paper",`paperScroll${se(n)}`,`paperWidth${se(String(r))}`,o&&"paperFullWidth",i&&"paperFullScreen"]};return le(s,XL,t)},n4=G(vk,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),r4=G("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${se(n.scroll)}`]]}})(({ownerState:e})=>k({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),o4=G(Sf,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${se(n.scroll)}`],t[`paperWidth${se(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>k({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${Wp.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${Wp.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${Wp.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),i4=w.forwardRef(function(t,n){const r=ye({props:t,name:"MuiDialog"}),o=_t(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":a,BackdropComponent:l,BackdropProps:u,children:c,className:f,disableEscapeKeyDown:d=!1,fullScreen:h=!1,fullWidth:p=!1,maxWidth:y="sm",onBackdropClick:x,onClose:g,open:v,PaperComponent:m=Sf,PaperProps:b={},scroll:S="paper",TransitionComponent:P=hk,transitionDuration:R=i,TransitionProps:$}=r,M=W(r,JL),T=k({},r,{disableEscapeKeyDown:d,fullScreen:h,fullWidth:p,maxWidth:y,scroll:S}),_=t4(T),N=w.useRef(),I=j=>{N.current=j.target===j.currentTarget},O=j=>{N.current&&(N.current=null,x&&x(j),g&&g(j,"backdropClick"))},L=fi(a),A=w.useMemo(()=>({titleId:L}),[L]);return C.jsx(n4,k({className:J(_.root,f),closeAfterTransition:!0,components:{Backdrop:e4},componentsProps:{backdrop:k({transitionDuration:R,as:l},u)},disableEscapeKeyDown:d,onClose:g,open:v,ref:n,onClick:O,ownerState:T},M,{children:C.jsx(P,k({appear:!0,in:v,timeout:R,role:"presentation"},$,{children:C.jsx(r4,{className:J(_.container),onMouseDown:I,ownerState:T,children:C.jsx(o4,k({as:m,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":L},b,{className:J(_.paper,b.className),ownerState:T,children:C.jsx(xk.Provider,{value:A,children:c})}))})}))}))}),bk=i4;function s4(e){return ce("MuiDialogActions",e)}de("MuiDialogActions",["root","spacing"]);const a4=["className","disableSpacing"],l4=e=>{const{classes:t,disableSpacing:n}=e;return le({root:["root",!n&&"spacing"]},s4,t)},u4=G("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>k({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),c4=w.forwardRef(function(t,n){const r=ye({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:i=!1}=r,s=W(r,a4),a=k({},r,{disableSpacing:i}),l=l4(a);return C.jsx(u4,k({className:J(l.root,o),ownerState:a,ref:n},s))}),d4=c4;function f4(e){return ce("MuiDialogContent",e)}de("MuiDialogContent",["root","dividers"]);function p4(e){return ce("MuiDialogTitle",e)}const h4=de("MuiDialogTitle",["root"]),g4=h4,m4=["className","dividers"],y4=e=>{const{classes:t,dividers:n}=e;return le({root:["root",n&&"dividers"]},f4,t)},v4=G("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>k({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${g4.root} + &`]:{paddingTop:0}})),x4=w.forwardRef(function(t,n){const r=ye({props:t,name:"MuiDialogContent"}),{className:o,dividers:i=!1}=r,s=W(r,m4),a=k({},r,{dividers:i}),l=y4(a);return C.jsx(v4,k({className:J(l.root,o),ownerState:a,ref:n},s))}),b4=x4,w4=["className","id"],S4=e=>{const{classes:t}=e;return le({root:["root"]},p4,t)},C4=G(Pe,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),k4=w.forwardRef(function(t,n){const r=ye({props:t,name:"MuiDialogTitle"}),{className:o,id:i}=r,s=W(r,w4),a=r,l=S4(a),{titleId:u=i}=w.useContext(xk);return C.jsx(C4,k({component:"h2",className:J(l.root,o),ownerState:a,ref:n,variant:"h6",id:i??u},s))}),wk=k4;function P4(e){return ce("MuiDivider",e)}de("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const R4=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],$4=e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:s,textAlign:a,variant:l}=e;return le({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"]},P4,r)},T4=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})=>k({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)`:at(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})=>k({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>k({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>k({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>k({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),M4=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})=>k({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)`})),Sk=w.forwardRef(function(t,n){const r=ye({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:f=a!=="hr"?"separator":void 0,textAlign:d="center",variant:h="fullWidth"}=r,p=W(r,R4),y=k({},r,{absolute:o,component:a,flexItem:l,light:u,orientation:c,role:f,textAlign:d,variant:h}),x=$4(y);return C.jsx(T4,k({as:a,className:J(x.root,s),role:f,ref:n,ownerState:y},p,{children:i?C.jsx(M4,{className:x.wrapper,ownerState:y,children:i}):null}))});Sk.muiSkipListHighlight=!0;const Q1=Sk,E4=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],_4=e=>{const{classes:t,disableUnderline:n}=e,o=le({root:["root",!n&&"underline"],input:["input"]},Y5,t);return k({},t,o)},I4=G(Tf,{shouldForwardProp:e=>It(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Rf(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 k({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}},[`&.${Oo.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${Oo.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"},[`&.${Oo.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Oo.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(.${Oo.disabled}, .${Oo.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Oo.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&k({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}))}),O4=G(Mf,{name:"MuiFilledInput",slot:"Input",overridesResolver:$f})(({theme:e,ownerState:t})=>k({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})),Ck=w.forwardRef(function(t,n){var r,o,i,s;const a=ye({props:t,name:"MuiFilledInput"}),{components:l={},componentsProps:u,fullWidth:c=!1,inputComponent:f="input",multiline:d=!1,slotProps:h,slots:p={},type:y="text"}=a,x=W(a,E4),g=k({},a,{fullWidth:c,inputComponent:f,multiline:d,type:y}),v=_4(a),m={root:{ownerState:g},input:{ownerState:g}},b=h??u?Dt(m,h??u):m,S=(r=(o=p.root)!=null?o:l.Root)!=null?r:I4,P=(i=(s=p.input)!=null?s:l.Input)!=null?i:O4;return C.jsx(jy,k({slots:{root:S,input:P},componentsProps:b,fullWidth:c,inputComponent:f,multiline:d,ref:n,type:y},x,{classes:v}))});Ck.muiName="Input";const kk=Ck;function A4(e){return ce("MuiFormControl",e)}de("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const N4=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],L4=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${se(n)}`,r&&"fullWidth"]};return le(o,A4,t)},j4=G("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>k({},t.root,t[`margin${se(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>k({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%"})),D4=w.forwardRef(function(t,n){const r=ye({props:t,name:"MuiFormControl"}),{children:o,className:i,color:s="primary",component:a="div",disabled:l=!1,error:u=!1,focused:c,fullWidth:f=!1,hiddenLabel:d=!1,margin:h="none",required:p=!1,size:y="medium",variant:x="outlined"}=r,g=W(r,N4),v=k({},r,{color:s,component:a,disabled:l,error:u,fullWidth:f,hiddenLabel:d,margin:h,required:p,size:y,variant:x}),m=L4(v),[b,S]=w.useState(()=>{let I=!1;return o&&w.Children.forEach(o,O=>{if(!Fa(O,["Input","Select"]))return;const L=Fa(O,["Select"])?O.props.input:O;L&&j5(L.props)&&(I=!0)}),I}),[P,R]=w.useState(()=>{let I=!1;return o&&w.Children.forEach(o,O=>{Fa(O,["Input","Select"])&&(Xc(O.props,!0)||Xc(O.props.inputProps,!0))&&(I=!0)}),I}),[$,M]=w.useState(!1);l&&$&&M(!1);const T=c!==void 0&&!l?c:$;let _;const N=w.useMemo(()=>({adornedStart:b,setAdornedStart:S,color:s,disabled:l,error:u,filled:P,focused:T,fullWidth:f,hiddenLabel:d,size:y,onBlur:()=>{M(!1)},onEmpty:()=>{R(!1)},onFilled:()=>{R(!0)},onFocus:()=>{M(!0)},registerEffect:_,required:p,variant:x}),[b,s,l,u,P,T,f,d,_,p,y,x]);return C.jsx(Pf.Provider,{value:N,children:C.jsx(j4,k({as:a,ownerState:v,className:J(m.root,i),ref:n},g,{children:o}))})}),F4=D4,z4=VO({createStyledComponent:G("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>ye({props:e,name:"MuiStack"})}),_f=z4;function B4(e){return ce("MuiFormControlLabel",e)}const U4=de("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),Ra=U4,V4=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],W4=e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:i}=e,s={root:["root",n&&"disabled",`labelPlacement${se(r)}`,o&&"error",i&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return le(s,B4,t)},H4=G("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Ra.label}`]:t.label},t.root,t[`labelPlacement${se(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>k({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Ra.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${Ra.label}`]:{[`&.${Ra.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),G4=G("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Ra.error}`]:{color:(e.vars||e).palette.error.main}})),K4=w.forwardRef(function(t,n){var r,o;const i=ye({props:t,name:"MuiFormControlLabel"}),{className:s,componentsProps:a={},control:l,disabled:u,disableTypography:c,label:f,labelPlacement:d="end",required:h,slotProps:p={}}=i,y=W(i,V4),x=br(),g=(r=u??l.props.disabled)!=null?r:x==null?void 0:x.disabled,v=h??l.props.required,m={disabled:g,required:v};["checked","name","onChange","value","inputRef"].forEach(M=>{typeof l.props[M]>"u"&&typeof i[M]<"u"&&(m[M]=i[M])});const b=Io({props:i,muiFormControl:x,states:["error"]}),S=k({},i,{disabled:g,labelPlacement:d,required:v,error:b.error}),P=W4(S),R=(o=p.typography)!=null?o:a.typography;let $=f;return $!=null&&$.type!==Pe&&!c&&($=C.jsx(Pe,k({component:"span"},R,{className:J(P.label,R==null?void 0:R.className),children:$}))),C.jsxs(H4,k({className:J(P.root,s),ownerState:S,ref:n},y,{children:[w.cloneElement(l,m),v?C.jsxs(_f,{display:"block",children:[$,C.jsxs(G4,{ownerState:S,"aria-hidden":!0,className:P.asterisk,children:[" ","*"]})]}):$]}))}),Pk=K4;function Y4(e){return ce("MuiFormGroup",e)}de("MuiFormGroup",["root","row","error"]);const q4=["className","row"],X4=e=>{const{classes:t,row:n,error:r}=e;return le({root:["root",n&&"row",r&&"error"]},Y4,t)},Q4=G("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})(({ownerState:e})=>k({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),Z4=w.forwardRef(function(t,n){const r=ye({props:t,name:"MuiFormGroup"}),{className:o,row:i=!1}=r,s=W(r,q4),a=br(),l=Io({props:r,muiFormControl:a,states:["error"]}),u=k({},r,{row:i,error:l.error}),c=X4(u);return C.jsx(Q4,k({className:J(c.root,o),ownerState:u,ref:n},s))}),J4=Z4;function ej(e){return ce("MuiFormHelperText",e)}const tj=de("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),Z1=tj;var J1;const nj=["children","className","component","disabled","error","filled","focused","margin","required","variant"],rj=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 le(u,ej,t)},oj=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})=>k({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${Z1.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Z1.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),ij=w.forwardRef(function(t,n){const r=ye({props:t,name:"MuiFormHelperText"}),{children:o,className:i,component:s="p"}=r,a=W(r,nj),l=br(),u=Io({props:r,muiFormControl:l,states:["variant","size","disabled","error","filled","focused","required"]}),c=k({},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}),f=rj(c);return C.jsx(oj,k({as:s,ownerState:c,className:J(f.root,i),ref:n},a,{children:o===" "?J1||(J1=C.jsx("span",{className:"notranslate",children:"​"})):o}))}),sj=ij;function aj(e){return ce("MuiFormLabel",e)}const lj=de("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Va=lj,uj=["children","className","color","component","disabled","error","filled","focused","required"],cj=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 le(l,aj,t)},dj=G("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>k({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>k({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${Va.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Va.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Va.error}`]:{color:(e.vars||e).palette.error.main}})),fj=G("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Va.error}`]:{color:(e.vars||e).palette.error.main}})),pj=w.forwardRef(function(t,n){const r=ye({props:t,name:"MuiFormLabel"}),{children:o,className:i,component:s="label"}=r,a=W(r,uj),l=br(),u=Io({props:r,muiFormControl:l,states:["color","required","focused","disabled","error","filled"]}),c=k({},r,{color:u.color||"primary",component:s,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),f=cj(c);return C.jsxs(dj,k({as:s,ownerState:c,className:J(f.root,i),ref:n},a,{children:[o,u.required&&C.jsxs(fj,{ownerState:c,"aria-hidden":!0,className:f.asterisk,children:[" ","*"]})]}))}),hj=pj,gj=w.createContext(),ex=gj;function mj(e){return ce("MuiGrid",e)}const yj=[0,1,2,3,4,5,6,7,8,9,10],vj=["column-reverse","column","row-reverse","row"],xj=["nowrap","wrap-reverse","wrap"],aa=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],wl=de("MuiGrid",["root","container","item","zeroMinWidth",...yj.map(e=>`spacing-xs-${e}`),...vj.map(e=>`direction-xs-${e}`),...xj.map(e=>`wrap-xs-${e}`),...aa.map(e=>`grid-xs-${e}`),...aa.map(e=>`grid-sm-${e}`),...aa.map(e=>`grid-md-${e}`),...aa.map(e=>`grid-lg-${e}`),...aa.map(e=>`grid-xl-${e}`)]),bj=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function rs(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function wj({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce((r,o)=>{let i={};if(t[o]&&(n=t[o]),!n)return r;if(n===!0)i={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(n==="auto")i={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const s=Qo({values:t.columns,breakpoints:e.breakpoints.values}),a=typeof s=="object"?s[o]:s;if(a==null)return r;const l=`${Math.round(n/a*1e8)/1e6}%`;let u={};if(t.container&&t.item&&t.columnSpacing!==0){const c=e.spacing(t.columnSpacing);if(c!=="0px"){const f=`calc(${l} + ${rs(c)})`;u={flexBasis:f,maxWidth:f}}}i=k({flexBasis:l,flexGrow:0,maxWidth:l},u)}return e.breakpoints.values[o]===0?Object.assign(r,i):r[e.breakpoints.up(o)]=i,r},{})}function Sj({theme:e,ownerState:t}){const n=Qo({values:t.direction,breakpoints:e.breakpoints.values});return rn({theme:e},n,r=>{const o={flexDirection:r};return r.indexOf("column")===0&&(o[`& > .${wl.item}`]={maxWidth:"none"}),o})}function Rk({breakpoints:e,values:t}){let n="";Object.keys(t).forEach(o=>{n===""&&t[o]!==0&&(n=o)});const r=Object.keys(e).sort((o,i)=>e[o]-e[i]);return r.slice(0,r.indexOf(n))}function Cj({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let o={};if(n&&r!==0){const i=Qo({values:r,breakpoints:e.breakpoints.values});let s;typeof i=="object"&&(s=Rk({breakpoints:e.breakpoints.values,values:i})),o=rn({theme:e},i,(a,l)=>{var u;const c=e.spacing(a);return c!=="0px"?{marginTop:`-${rs(c)}`,[`& > .${wl.item}`]:{paddingTop:rs(c)}}:(u=s)!=null&&u.includes(l)?{}:{marginTop:0,[`& > .${wl.item}`]:{paddingTop:0}}})}return o}function kj({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let o={};if(n&&r!==0){const i=Qo({values:r,breakpoints:e.breakpoints.values});let s;typeof i=="object"&&(s=Rk({breakpoints:e.breakpoints.values,values:i})),o=rn({theme:e},i,(a,l)=>{var u;const c=e.spacing(a);return c!=="0px"?{width:`calc(100% + ${rs(c)})`,marginLeft:`-${rs(c)}`,[`& > .${wl.item}`]:{paddingLeft:rs(c)}}:(u=s)!=null&&u.includes(l)?{}:{width:"100%",marginLeft:0,[`& > .${wl.item}`]:{paddingLeft:0}}})}return o}function Pj(e,t,n={}){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[n[`spacing-xs-${String(e)}`]];const r=[];return t.forEach(o=>{const i=e[o];Number(i)>0&&r.push(n[`spacing-${o}-${String(i)}`])}),r}const Rj=G("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:o,item:i,spacing:s,wrap:a,zeroMinWidth:l,breakpoints:u}=n;let c=[];r&&(c=Pj(s,u,t));const f=[];return u.forEach(d=>{const h=n[d];h&&f.push(t[`grid-${d}-${String(h)}`])}),[t.root,r&&t.container,i&&t.item,l&&t.zeroMinWidth,...c,o!=="row"&&t[`direction-xs-${String(o)}`],a!=="wrap"&&t[`wrap-xs-${String(a)}`],...f]}})(({ownerState:e})=>k({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},e.wrap!=="wrap"&&{flexWrap:e.wrap}),Sj,Cj,kj,wj);function $j(e,t){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[`spacing-xs-${String(e)}`];const n=[];return t.forEach(r=>{const o=e[r];if(Number(o)>0){const i=`spacing-${r}-${String(o)}`;n.push(i)}}),n}const Tj=e=>{const{classes:t,container:n,direction:r,item:o,spacing:i,wrap:s,zeroMinWidth:a,breakpoints:l}=e;let u=[];n&&(u=$j(i,l));const c=[];l.forEach(d=>{const h=e[d];h&&c.push(`grid-${d}-${String(h)}`)});const f={root:["root",n&&"container",o&&"item",a&&"zeroMinWidth",...u,r!=="row"&&`direction-xs-${String(r)}`,s!=="wrap"&&`wrap-xs-${String(s)}`,...c]};return le(f,mj,t)},Mj=w.forwardRef(function(t,n){const r=ye({props:t,name:"MuiGrid"}),{breakpoints:o}=_t(),i=zs(r),{className:s,columns:a,columnSpacing:l,component:u="div",container:c=!1,direction:f="row",item:d=!1,rowSpacing:h,spacing:p=0,wrap:y="wrap",zeroMinWidth:x=!1}=i,g=W(i,bj),v=h||p,m=l||p,b=w.useContext(ex),S=c?a||12:b,P={},R=k({},g);o.keys.forEach(T=>{g[T]!=null&&(P[T]=g[T],delete R[T])});const $=k({},i,{columns:S,container:c,direction:f,item:d,rowSpacing:v,columnSpacing:m,wrap:y,zeroMinWidth:x,spacing:p},P,{breakpoints:o.keys}),M=Tj($);return C.jsx(ex.Provider,{value:S,children:C.jsx(Rj,k({ownerState:$,className:J(M.root,s),as:u,ref:n},R))})}),$k=Mj,Ej=NO({createStyledComponent:G("div",{name:"MuiGrid2",slot:"Root",overridesResolver:(e,t)=>t.root}),componentName:"MuiGrid2",useThemeProps:e=>ye({props:e,name:"MuiGrid2"})}),Tr=Ej,_j=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Tg(e){return`scale(${e}, ${e**2})`}const Ij={entering:{opacity:1,transform:Tg(1)},entered:{opacity:1,transform:"none"}},Hp=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Tk=w.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:i,easing:s,in:a,onEnter:l,onEntered:u,onEntering:c,onExit:f,onExited:d,onExiting:h,style:p,timeout:y="auto",TransitionComponent:x=G2}=t,g=W(t,_j),v=Hi(),m=w.useRef(),b=_t(),S=w.useRef(null),P=Ze(S,i.ref,n),R=L=>A=>{if(L){const j=S.current;A===void 0?L(j):L(j,A)}},$=R(c),M=R((L,A)=>{K2(L);const{duration:j,delay:E,easing:D}=Yc({style:p,timeout:y,easing:s},{mode:"enter"});let F;y==="auto"?(F=b.transitions.getAutoHeightDuration(L.clientHeight),m.current=F):F=j,L.style.transition=[b.transitions.create("opacity",{duration:F,delay:E}),b.transitions.create("transform",{duration:Hp?F:F*.666,delay:E,easing:D})].join(","),l&&l(L,A)}),T=R(u),_=R(h),N=R(L=>{const{duration:A,delay:j,easing:E}=Yc({style:p,timeout:y,easing:s},{mode:"exit"});let D;y==="auto"?(D=b.transitions.getAutoHeightDuration(L.clientHeight),m.current=D):D=A,L.style.transition=[b.transitions.create("opacity",{duration:D,delay:j}),b.transitions.create("transform",{duration:Hp?D:D*.666,delay:Hp?j:j||D*.333,easing:E})].join(","),L.style.opacity=0,L.style.transform=Tg(.75),f&&f(L)}),I=R(d),O=L=>{y==="auto"&&v.start(m.current||0,L),r&&r(S.current,L)};return C.jsx(x,k({appear:o,in:a,nodeRef:S,onEnter:M,onEntered:T,onEntering:$,onExit:N,onExited:I,onExiting:_,addEndListener:O,timeout:y==="auto"?null:y},g,{children:(L,A)=>w.cloneElement(i,k({style:k({opacity:0,transform:Tg(.75),visibility:L==="exited"&&!a?"hidden":void 0},Ij[L],p,i.props.style),ref:P},A))}))});Tk.muiSupportAuto=!0;const Mg=Tk,Oj=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Aj=e=>{const{classes:t,disableUnderline:n}=e,o=le({root:["root",!n&&"underline"],input:["input"]},W5,t);return k({},t,o)},Nj=G(Tf,{shouldForwardProp:e=>It(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Rf(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})`),k({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"},[`&.${sa.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${sa.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(.${sa.disabled}, .${sa.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${sa.disabled}:before`]:{borderBottomStyle:"dotted"}})}),Lj=G(Mf,{name:"MuiInput",slot:"Input",overridesResolver:$f})({}),Mk=w.forwardRef(function(t,n){var r,o,i,s;const a=ye({props:t,name:"MuiInput"}),{disableUnderline:l,components:u={},componentsProps:c,fullWidth:f=!1,inputComponent:d="input",multiline:h=!1,slotProps:p,slots:y={},type:x="text"}=a,g=W(a,Oj),v=Aj(a),b={root:{ownerState:{disableUnderline:l}}},S=p??c?Dt(p??c,b):b,P=(r=(o=y.root)!=null?o:u.Root)!=null?r:Nj,R=(i=(s=y.input)!=null?s:u.Input)!=null?i:Lj;return C.jsx(jy,k({slots:{root:P,input:R},slotProps:S,fullWidth:f,inputComponent:d,multiline:h,ref:n,type:x},g,{classes:v}))});Mk.muiName="Input";const Ek=Mk;function jj(e){return ce("MuiInputAdornment",e)}const Dj=de("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),tx=Dj;var nx;const Fj=["children","className","component","disablePointerEvents","disableTypography","position","variant"],zj=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${se(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},Bj=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:s}=e,a={root:["root",n&&"disablePointerEvents",o&&`position${se(o)}`,s,r&&"hiddenLabel",i&&`size${se(i)}`]};return le(a,jj,t)},Uj=G("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:zj})(({theme:e,ownerState:t})=>k({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${tx.positionStart}&:not(.${tx.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),Vj=w.forwardRef(function(t,n){const r=ye({props:t,name:"MuiInputAdornment"}),{children:o,className:i,component:s="div",disablePointerEvents:a=!1,disableTypography:l=!1,position:u,variant:c}=r,f=W(r,Fj),d=br()||{};let h=c;c&&d.variant,d&&!h&&(h=d.variant);const p=k({},r,{hiddenLabel:d.hiddenLabel,size:d.size,disablePointerEvents:a,position:u,variant:h}),y=Bj(p);return C.jsx(Pf.Provider,{value:null,children:C.jsx(Uj,k({as:s,ownerState:p,className:J(y.root,i),ref:n},f,{children:typeof o=="string"&&!l?C.jsx(Pe,{color:"text.secondary",children:o}):C.jsxs(w.Fragment,{children:[u==="start"?nx||(nx=C.jsx("span",{className:"notranslate",children:"​"})):null,o]})}))})}),Wj=Vj;function Hj(e){return ce("MuiInputLabel",e)}de("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const Gj=["disableAnimation","margin","shrink","variant","className"],Kj=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=le(l,Hj,t);return k({},t,u)},Yj=G(hj,{shouldForwardProp:e=>It(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Va.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})=>k({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"&&k({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&&k({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"&&k({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)"}))),qj=w.forwardRef(function(t,n){const r=ye({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:i,className:s}=r,a=W(r,Gj),l=br();let u=i;typeof u>"u"&&l&&(u=l.filled||l.focused||l.adornedStart);const c=Io({props:r,muiFormControl:l,states:["size","variant","required","focused"]}),f=k({},r,{disableAnimation:o,formControl:l,shrink:u,size:c.size,variant:c.variant,required:c.required,focused:c.focused}),d=Kj(f);return C.jsx(Yj,k({"data-shrink":u,ownerState:f,ref:n,className:J(d.root,s)},a,{classes:d}))}),Xj=qj,Qj=w.createContext({}),Ar=Qj;function Zj(e){return ce("MuiList",e)}de("MuiList",["root","padding","dense","subheader"]);const Jj=["children","className","component","dense","disablePadding","subheader"],eD=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return le({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},Zj,t)},tD=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})=>k({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),nD=w.forwardRef(function(t,n){const r=ye({props:t,name:"MuiList"}),{children:o,className:i,component:s="ul",dense:a=!1,disablePadding:l=!1,subheader:u}=r,c=W(r,Jj),f=w.useMemo(()=>({dense:a}),[a]),d=k({},r,{component:s,dense:a,disablePadding:l}),h=eD(d);return C.jsx(Ar.Provider,{value:f,children:C.jsxs(tD,k({as:s,className:J(h.root,i),ref:n,ownerState:d},c,{children:[u,o]}))})}),_k=nD;function rD(e){return ce("MuiListItem",e)}const oD=de("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),_i=oD;function iD(e){return ce("MuiListItemButton",e)}const sD=de("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),Ii=sD,aD=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],lD=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]},uD=e=>{const{alignItems:t,classes:n,dense:r,disabled:o,disableGutters:i,divider:s,selected:a}=e,u=le({root:["root",r&&"dense",!i&&"gutters",s&&"divider",o&&"disabled",t==="flex-start"&&"alignItemsFlexStart",a&&"selected"]},iD,n);return k({},n,u)},cD=G(eu,{shouldForwardProp:e=>It(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:lD})(({theme:e,ownerState:t})=>k({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Ii.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:at(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Ii.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:at(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Ii.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:at(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:at(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Ii.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Ii.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.alignItems==="flex-start"&&{alignItems:"flex-start"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.dense&&{paddingTop:4,paddingBottom:4})),dD=w.forwardRef(function(t,n){const r=ye({props:t,name:"MuiListItemButton"}),{alignItems:o="center",autoFocus:i=!1,component:s="div",children:a,dense:l=!1,disableGutters:u=!1,divider:c=!1,focusVisibleClassName:f,selected:d=!1,className:h}=r,p=W(r,aD),y=w.useContext(Ar),x=w.useMemo(()=>({dense:l||y.dense||!1,alignItems:o,disableGutters:u}),[o,y.dense,l,u]),g=w.useRef(null);zt(()=>{i&&g.current&&g.current.focus()},[i]);const v=k({},r,{alignItems:o,dense:x.dense,disableGutters:u,divider:c,selected:d}),m=uD(v),b=Ze(g,n);return C.jsx(Ar.Provider,{value:x,children:C.jsx(cD,k({ref:b,href:p.href||p.to,component:(p.href||p.to)&&s==="div"?"button":s,focusVisibleClassName:J(m.focusVisible,f),ownerState:v,className:J(m.root,h)},p,{classes:m,children:a}))})}),fD=dD;function pD(e){return ce("MuiListItemSecondaryAction",e)}de("MuiListItemSecondaryAction",["root","disableGutters"]);const hD=["className"],gD=e=>{const{disableGutters:t,classes:n}=e;return le({root:["root",t&&"disableGutters"]},pD,n)},mD=G("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>k({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),Ik=w.forwardRef(function(t,n){const r=ye({props:t,name:"MuiListItemSecondaryAction"}),{className:o}=r,i=W(r,hD),s=w.useContext(Ar),a=k({},r,{disableGutters:s.disableGutters}),l=gD(a);return C.jsx(mD,k({className:J(l.root,o),ownerState:a,ref:n},i))});Ik.muiName="ListItemSecondaryAction";const yD=Ik,vD=["className"],xD=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],bD=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]},wD=e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:i,disableGutters:s,disablePadding:a,divider:l,hasSecondaryAction:u,selected:c}=e;return le({root:["root",o&&"dense",!s&&"gutters",!a&&"padding",l&&"divider",i&&"disabled",n&&"button",t==="flex-start"&&"alignItemsFlexStart",u&&"secondaryAction",c&&"selected"],container:["container"]},rD,r)},SD=G("div",{name:"MuiListItem",slot:"Root",overridesResolver:bD})(({theme:e,ownerState:t})=>k({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&k({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${Ii.root}`]:{paddingRight:48}},{[`&.${_i.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${_i.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:at(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${_i.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:at(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${_i.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.alignItems==="flex-start"&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${_i.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:at(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:at(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),CD=G("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),kD=w.forwardRef(function(t,n){const r=ye({props:t,name:"MuiListItem"}),{alignItems:o="center",autoFocus:i=!1,button:s=!1,children:a,className:l,component:u,components:c={},componentsProps:f={},ContainerComponent:d="li",ContainerProps:{className:h}={},dense:p=!1,disabled:y=!1,disableGutters:x=!1,disablePadding:g=!1,divider:v=!1,focusVisibleClassName:m,secondaryAction:b,selected:S=!1,slotProps:P={},slots:R={}}=r,$=W(r.ContainerProps,vD),M=W(r,xD),T=w.useContext(Ar),_=w.useMemo(()=>({dense:p||T.dense||!1,alignItems:o,disableGutters:x}),[o,T.dense,p,x]),N=w.useRef(null);zt(()=>{i&&N.current&&N.current.focus()},[i]);const I=w.Children.toArray(a),O=I.length&&Fa(I[I.length-1],["ListItemSecondaryAction"]),L=k({},r,{alignItems:o,autoFocus:i,button:s,dense:_.dense,disabled:y,disableGutters:x,disablePadding:g,divider:v,hasSecondaryAction:O,selected:S}),A=wD(L),j=Ze(N,n),E=R.root||c.Root||SD,D=P.root||f.root||{},F=k({className:J(A.root,D.className,l),disabled:y},M);let V=u||"li";return s&&(F.component=u||"div",F.focusVisibleClassName=J(_i.focusVisible,m),V=eu),O?(V=!F.component&&!u?"div":V,d==="li"&&(V==="li"?V="div":F.component==="li"&&(F.component="div")),C.jsx(Ar.Provider,{value:_,children:C.jsxs(CD,k({as:d,className:J(A.container,h),ref:j,ownerState:L},$,{children:[C.jsx(E,k({},D,!ys(E)&&{as:V,ownerState:k({},L,D.ownerState)},F,{children:I})),I.pop()]}))})):C.jsx(Ar.Provider,{value:_,children:C.jsxs(E,k({},D,{as:V,ref:j},!ys(E)&&{ownerState:k({},L,D.ownerState)},F,{children:[I,b&&C.jsx(yD,{children:b})]}))})}),rx=kD;function PD(e){return ce("MuiListItemAvatar",e)}de("MuiListItemAvatar",["root","alignItemsFlexStart"]);const RD=["className"],$D=e=>{const{alignItems:t,classes:n}=e;return le({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},PD,n)},TD=G("div",{name:"MuiListItemAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({ownerState:e})=>k({minWidth:56,flexShrink:0},e.alignItems==="flex-start"&&{marginTop:8})),MD=w.forwardRef(function(t,n){const r=ye({props:t,name:"MuiListItemAvatar"}),{className:o}=r,i=W(r,RD),s=w.useContext(Ar),a=k({},r,{alignItems:s.alignItems}),l=$D(a);return C.jsx(TD,k({className:J(l.root,o),ownerState:a,ref:n},i))}),ED=MD;function _D(e){return ce("MuiListItemText",e)}const ID=de("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),ox=ID,OD=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],AD=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:i}=e;return le({root:["root",n&&"inset",i&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},_D,t)},ND=G("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${ox.primary}`]:t.primary},{[`& .${ox.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>k({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),LD=w.forwardRef(function(t,n){const r=ye({props:t,name:"MuiListItemText"}),{children:o,className:i,disableTypography:s=!1,inset:a=!1,primary:l,primaryTypographyProps:u,secondary:c,secondaryTypographyProps:f}=r,d=W(r,OD),{dense:h}=w.useContext(Ar);let p=l??o,y=c;const x=k({},r,{disableTypography:s,inset:a,primary:!!p,secondary:!!y,dense:h}),g=AD(x);return p!=null&&p.type!==Pe&&!s&&(p=C.jsx(Pe,k({variant:h?"body2":"body1",className:g.primary,component:u!=null&&u.variant?void 0:"span",display:"block"},u,{children:p}))),y!=null&&y.type!==Pe&&!s&&(y=C.jsx(Pe,k({variant:"body2",className:g.secondary,color:"text.secondary",display:"block"},f,{children:y}))),C.jsxs(ND,k({className:J(g.root,i),ownerState:x,ref:n},d,{children:[p,y]}))}),ix=LD,jD=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Gp(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function sx(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Ok(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 la(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")||!Ok(a,i)||l)a=o(e,a,n);else return a.focus(),!0}return!1}const DD=w.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:f="selectedMenu"}=t,d=W(t,jD),h=w.useRef(null),p=w.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});zt(()=>{o&&h.current.focus()},[o]),w.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(m,{direction:b})=>{const S=!h.current.style.width;if(m.clientHeight{const b=h.current,S=m.key,P=Ft(b).activeElement;if(S==="ArrowDown")m.preventDefault(),la(b,P,u,l,Gp);else if(S==="ArrowUp")m.preventDefault(),la(b,P,u,l,sx);else if(S==="Home")m.preventDefault(),la(b,null,u,l,Gp);else if(S==="End")m.preventDefault(),la(b,null,u,l,sx);else if(S.length===1){const R=p.current,$=S.toLowerCase(),M=performance.now();R.keys.length>0&&(M-R.lastTime>500?(R.keys=[],R.repeating=!0,R.previousKeyMatched=!0):R.repeating&&$!==R.keys[0]&&(R.repeating=!1)),R.lastTime=M,R.keys.push($);const T=P&&!R.repeating&&Ok(P,R);R.previousKeyMatched&&(T||la(b,P,!1,l,Gp,R))?m.preventDefault():R.previousKeyMatched=!1}c&&c(m)},x=Ze(h,n);let g=-1;w.Children.forEach(s,(m,b)=>{if(!w.isValidElement(m)){g===b&&(g+=1,g>=s.length&&(g=-1));return}m.props.disabled||(f==="selectedMenu"&&m.props.selected||g===-1)&&(g=b),g===b&&(m.props.disabled||m.props.muiSkipListHighlight||m.type.muiSkipListHighlight)&&(g+=1,g>=s.length&&(g=-1))});const v=w.Children.map(s,(m,b)=>{if(b===g){const S={};return i&&(S.autoFocus=!0),m.props.tabIndex===void 0&&f==="selectedMenu"&&(S.tabIndex=0),w.cloneElement(m,S)}return m});return C.jsx(_k,k({role:"menu",ref:x,className:a,onKeyDown:y,tabIndex:o?0:-1},d,{children:v}))}),FD=DD;function zD(e){return ce("MuiPopover",e)}de("MuiPopover",["root","paper"]);const BD=["onEntering"],UD=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],VD=["slotProps"];function ax(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function lx(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function ux(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Kp(e){return typeof e=="function"?e():e}const WD=e=>{const{classes:t}=e;return le({root:["root"],paper:["paper"]},zD,t)},HD=G(vk,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Ak=G(Sf,{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}),GD=w.forwardRef(function(t,n){var r,o,i;const s=ye({props:t,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:f="anchorEl",children:d,className:h,container:p,elevation:y=8,marginThreshold:x=16,open:g,PaperProps:v={},slots:m,slotProps:b,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:P=Mg,transitionDuration:R="auto",TransitionProps:{onEntering:$}={},disableScrollLock:M=!1}=s,T=W(s.TransitionProps,BD),_=W(s,UD),N=(r=b==null?void 0:b.paper)!=null?r:v,I=w.useRef(),O=Ze(I,N.ref),L=k({},s,{anchorOrigin:u,anchorReference:f,elevation:y,marginThreshold:x,externalPaperSlotProps:N,transformOrigin:S,TransitionComponent:P,transitionDuration:R,TransitionProps:T}),A=WD(L),j=w.useCallback(()=>{if(f==="anchorPosition")return c;const oe=Kp(l),U=(oe&&oe.nodeType===1?oe:Ft(I.current).body).getBoundingClientRect();return{top:U.top+ax(U,u.vertical),left:U.left+lx(U,u.horizontal)}},[l,u.horizontal,u.vertical,c,f]),E=w.useCallback(oe=>({vertical:ax(oe,S.vertical),horizontal:lx(oe,S.horizontal)}),[S.horizontal,S.vertical]),D=w.useCallback(oe=>{const ne={width:oe.offsetWidth,height:oe.offsetHeight},U=E(ne);if(f==="none")return{top:null,left:null,transformOrigin:ux(U)};const X=j();let ie=X.top-U.vertical,ve=X.left-U.horizontal;const Ie=ie+ne.height,pe=ve+ne.width,ae=So(Kp(l)),Te=ae.innerHeight-x,je=ae.innerWidth-x;if(x!==null&&ieTe){const ke=Ie-Te;ie-=ke,U.vertical+=ke}if(x!==null&&veje){const ke=pe-je;ve-=ke,U.horizontal+=ke}return{top:`${Math.round(ie)}px`,left:`${Math.round(ve)}px`,transformOrigin:ux(U)}},[l,f,j,E,x]),[F,V]=w.useState(g),H=w.useCallback(()=>{const oe=I.current;if(!oe)return;const ne=D(oe);ne.top!==null&&(oe.style.top=ne.top),ne.left!==null&&(oe.style.left=ne.left),oe.style.transformOrigin=ne.transformOrigin,V(!0)},[D]);w.useEffect(()=>(M&&window.addEventListener("scroll",H),()=>window.removeEventListener("scroll",H)),[l,M,H]);const ue=(oe,ne)=>{$&&$(oe,ne),H()},ee=()=>{V(!1)};w.useEffect(()=>{g&&H()}),w.useImperativeHandle(a,()=>g?{updatePosition:()=>{H()}}:null,[g,H]),w.useEffect(()=>{if(!g)return;const oe=R2(()=>{H()}),ne=So(l);return ne.addEventListener("resize",oe),()=>{oe.clear(),ne.removeEventListener("resize",oe)}},[l,g,H]);let Q=R;R==="auto"&&!P.muiSupportAuto&&(Q=void 0);const re=p||(l?Ft(Kp(l)).body:void 0),ge=(o=m==null?void 0:m.root)!=null?o:HD,he=(i=m==null?void 0:m.paper)!=null?i:Ak,B=wt({elementType:he,externalSlotProps:k({},N,{style:F?N.style:k({},N.style,{opacity:0})}),additionalProps:{elevation:y,ref:O},ownerState:L,className:J(A.paper,N==null?void 0:N.className)}),Z=wt({elementType:ge,externalSlotProps:(b==null?void 0:b.root)||{},externalForwardedProps:_,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:re,open:g},ownerState:L,className:J(A.root,h)}),{slotProps:K}=Z,z=W(Z,VD);return C.jsx(ge,k({},z,!ys(ge)&&{slotProps:K,disableScrollLock:M},{children:C.jsx(P,k({appear:!0,in:g,onEntering:ue,onExited:ee,timeout:Q},T,{children:C.jsx(he,k({},B,{children:d}))}))}))}),KD=GD;function YD(e){return ce("MuiMenu",e)}de("MuiMenu",["root","paper","list"]);const qD=["onEntering"],XD=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],QD={vertical:"top",horizontal:"right"},ZD={vertical:"top",horizontal:"left"},JD=e=>{const{classes:t}=e;return le({root:["root"],paper:["paper"],list:["list"]},YD,t)},eF=G(KD,{shouldForwardProp:e=>It(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),tF=G(Ak,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),nF=G(FD,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),rF=w.forwardRef(function(t,n){var r,o;const i=ye({props:t,name:"MuiMenu"}),{autoFocus:s=!0,children:a,className:l,disableAutoFocusItem:u=!1,MenuListProps:c={},onClose:f,open:d,PaperProps:h={},PopoverClasses:p,transitionDuration:y="auto",TransitionProps:{onEntering:x}={},variant:g="selectedMenu",slots:v={},slotProps:m={}}=i,b=W(i.TransitionProps,qD),S=W(i,XD),P=I2(),R=k({},i,{autoFocus:s,disableAutoFocusItem:u,MenuListProps:c,onEntering:x,PaperProps:h,transitionDuration:y,TransitionProps:b,variant:g}),$=JD(R),M=s&&!u&&d,T=w.useRef(null),_=(E,D)=>{T.current&&T.current.adjustStyleForScrollbar(E,{direction:P?"rtl":"ltr"}),x&&x(E,D)},N=E=>{E.key==="Tab"&&(E.preventDefault(),f&&f(E,"tabKeyDown"))};let I=-1;w.Children.map(a,(E,D)=>{w.isValidElement(E)&&(E.props.disabled||(g==="selectedMenu"&&E.props.selected||I===-1)&&(I=D))});const O=(r=v.paper)!=null?r:tF,L=(o=m.paper)!=null?o:h,A=wt({elementType:v.root,externalSlotProps:m.root,ownerState:R,className:[$.root,l]}),j=wt({elementType:O,externalSlotProps:L,ownerState:R,className:$.paper});return C.jsx(eF,k({onClose:f,anchorOrigin:{vertical:"bottom",horizontal:P?"right":"left"},transformOrigin:P?QD:ZD,slots:{paper:O,root:v.root},slotProps:{root:A,paper:j},open:d,ref:n,transitionDuration:y,TransitionProps:k({onEntering:_},b),ownerState:R},S,{classes:p,children:C.jsx(nF,k({onKeyDown:N,actions:T,autoFocus:s&&(I===-1||u),autoFocusItem:M,variant:g},c,{className:J($.list,c.className),children:a}))}))}),oF=rF;function iF(e){return ce("MuiNativeSelect",e)}const sF=de("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Dy=sF,aF=["className","disabled","error","IconComponent","inputRef","variant"],lF=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 le(a,iF,t)},Nk=({ownerState:e,theme:t})=>k({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":k({},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"},[`&.${Dy.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}}),uF=G("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:It,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Dy.multiple}`]:t.multiple}]}})(Nk),Lk=({ownerState:e,theme:t})=>k({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${Dy.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),cF=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]}})(Lk),dF=w.forwardRef(function(t,n){const{className:r,disabled:o,error:i,IconComponent:s,inputRef:a,variant:l="standard"}=t,u=W(t,aF),c=k({},t,{disabled:o,variant:l,error:i}),f=lF(c);return C.jsxs(w.Fragment,{children:[C.jsx(uF,k({ownerState:c,className:J(f.select,r),disabled:o,ref:a||n},u)),t.multiple?null:C.jsx(cF,{as:s,ownerState:c,className:f.icon})]})}),fF=dF;var cx;const pF=["children","classes","className","label","notched"],hF=G("fieldset",{shouldForwardProp:It})({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%"}),gF=G("legend",{shouldForwardProp:It})(({ownerState:e,theme:t})=>k({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&&k({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 mF(e){const{className:t,label:n,notched:r}=e,o=W(e,pF),i=n!=null&&n!=="",s=k({},e,{notched:r,withLabel:i});return C.jsx(hF,k({"aria-hidden":!0,className:t,ownerState:s},o,{children:C.jsx(gF,{ownerState:s,children:i?C.jsx("span",{children:n}):cx||(cx=C.jsx("span",{className:"notranslate",children:"​"}))})}))}const yF=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],vF=e=>{const{classes:t}=e,r=le({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},G5,t);return k({},t,r)},xF=G(Tf,{shouldForwardProp:e=>It(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Rf})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return k({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${qr.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${qr.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${qr.focused} .${qr.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${qr.error} .${qr.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${qr.disabled} .${qr.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&k({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),bF=G(mF,{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}}),wF=G(Mf,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:$f})(({theme:e,ownerState:t})=>k({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})),jk=w.forwardRef(function(t,n){var r,o,i,s,a;const l=ye({props:t,name:"MuiOutlinedInput"}),{components:u={},fullWidth:c=!1,inputComponent:f="input",label:d,multiline:h=!1,notched:p,slots:y={},type:x="text"}=l,g=W(l,yF),v=vF(l),m=br(),b=Io({props:l,muiFormControl:m,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S=k({},l,{color:b.color||"primary",disabled:b.disabled,error:b.error,focused:b.focused,formControl:m,fullWidth:c,hiddenLabel:b.hiddenLabel,multiline:h,size:b.size,type:x}),P=(r=(o=y.root)!=null?o:u.Root)!=null?r:xF,R=(i=(s=y.input)!=null?s:u.Input)!=null?i:wF;return C.jsx(jy,k({slots:{root:P,input:R},renderSuffix:$=>C.jsx(bF,{ownerState:S,className:v.notchedOutline,label:d!=null&&d!==""&&b.required?a||(a=C.jsxs(w.Fragment,{children:[d," ","*"]})):d,notched:typeof p<"u"?p:!!($.startAdornment||$.filled||$.focused)}),fullWidth:c,inputComponent:f,multiline:h,ref:n,type:x},g,{classes:k({},v,{notchedOutline:null})}))});jk.muiName="Input";const Dk=jk,SF=xr(C.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),CF=xr(C.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),kF=G("span",{shouldForwardProp:It})({position:"relative",display:"flex"}),PF=G(SF)({transform:"scale(1)"}),RF=G(CF)(({theme:e,ownerState:t})=>k({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest})},t.checked&&{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}));function Fk(e){const{checked:t=!1,classes:n={},fontSize:r}=e,o=k({},e,{checked:t});return C.jsxs(kF,{className:n.root,ownerState:o,children:[C.jsx(PF,{fontSize:r,className:n.background,ownerState:o}),C.jsx(RF,{fontSize:r,className:n.dot,ownerState:o})]})}const $F=w.createContext(void 0),zk=$F;function TF(){return w.useContext(zk)}function MF(e){return ce("MuiRadio",e)}const dx=de("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),EF=["checked","checkedIcon","color","icon","name","onChange","size","className"],_F=e=>{const{classes:t,color:n,size:r}=e,o={root:["root",`color${se(n)}`,r!=="medium"&&`size${se(r)}`]};return k({},t,le(o,MF,t))},IF=G(yk,{shouldForwardProp:e=>It(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size!=="medium"&&t[`size${se(n.size)}`],t[`color${se(n.color)}`]]}})(({theme:e,ownerState:t})=>k({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:at(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${dx.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${dx.disabled}`]:{color:(e.vars||e).palette.action.disabled}}));function OF(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const fx=C.jsx(Fk,{checked:!0}),px=C.jsx(Fk,{}),AF=w.forwardRef(function(t,n){var r,o;const i=ye({props:t,name:"MuiRadio"}),{checked:s,checkedIcon:a=fx,color:l="primary",icon:u=px,name:c,onChange:f,size:d="medium",className:h}=i,p=W(i,EF),y=k({},i,{color:l,size:d}),x=_F(y),g=TF();let v=s;const m=mg(f,g&&g.onChange);let b=c;return g&&(typeof v>"u"&&(v=OF(g.value,i.value)),typeof b>"u"&&(b=g.name)),C.jsx(IF,k({type:"radio",icon:w.cloneElement(u,{fontSize:(r=px.props.fontSize)!=null?r:d}),checkedIcon:w.cloneElement(a,{fontSize:(o=fx.props.fontSize)!=null?o:d}),ownerState:y,classes:x,name:b,checked:v,onChange:m,ref:n,className:J(x.root,h)},p))}),NF=AF;function LF(e){return ce("MuiRadioGroup",e)}de("MuiRadioGroup",["root","row","error"]);const jF=["actions","children","className","defaultValue","name","onChange","value"],DF=e=>{const{classes:t,row:n,error:r}=e;return le({root:["root",n&&"row",r&&"error"]},LF,t)},FF=w.forwardRef(function(t,n){const{actions:r,children:o,className:i,defaultValue:s,name:a,onChange:l,value:u}=t,c=W(t,jF),f=w.useRef(null),d=DF(t),[h,p]=yl({controlled:u,default:s,name:"RadioGroup"});w.useImperativeHandle(r,()=>({focus:()=>{let v=f.current.querySelector("input:not(:disabled):checked");v||(v=f.current.querySelector("input:not(:disabled)")),v&&v.focus()}}),[]);const y=Ze(n,f),x=fi(a),g=w.useMemo(()=>({name:x,onChange(v){p(v.target.value),l&&l(v,v.target.value)},value:h}),[x,l,p,h]);return C.jsx(zk.Provider,{value:g,children:C.jsx(J4,k({role:"radiogroup",ref:y,className:J(d.root,i)},c,{children:o}))})}),zF=FF;function BF(e){return ce("MuiSelect",e)}const ua=de("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var hx;const UF=["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"],VF=G("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${ua.select}`]:t.select},{[`&.${ua.select}`]:t[n.variant]},{[`&.${ua.error}`]:t.error},{[`&.${ua.multiple}`]:t.multiple}]}})(Nk,{[`&.${ua.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),WF=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]}})(Lk),HF=G("input",{shouldForwardProp:e=>W2(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 gx(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function GF(e){return e==null||typeof e=="string"&&!e.trim()}const KF=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 le(a,BF,t)},YF=w.forwardRef(function(t,n){var r;const{"aria-describedby":o,"aria-label":i,autoFocus:s,autoWidth:a,children:l,className:u,defaultOpen:c,defaultValue:f,disabled:d,displayEmpty:h,error:p=!1,IconComponent:y,inputRef:x,labelId:g,MenuProps:v={},multiple:m,name:b,onBlur:S,onChange:P,onClose:R,onFocus:$,onOpen:M,open:T,readOnly:_,renderValue:N,SelectDisplayProps:I={},tabIndex:O,value:L,variant:A="standard"}=t,j=W(t,UF),[E,D]=yl({controlled:L,default:f,name:"Select"}),[F,V]=yl({controlled:T,default:c,name:"Select"}),H=w.useRef(null),ue=w.useRef(null),[ee,Q]=w.useState(null),{current:re}=w.useRef(T!=null),[ge,he]=w.useState(),B=Ze(n,x),Z=w.useCallback(fe=>{ue.current=fe,fe&&Q(fe)},[]),K=ee==null?void 0:ee.parentNode;w.useImperativeHandle(B,()=>({focus:()=>{ue.current.focus()},node:H.current,value:E}),[E]),w.useEffect(()=>{c&&F&&ee&&!re&&(he(a?null:K.clientWidth),ue.current.focus())},[ee,a]),w.useEffect(()=>{s&&ue.current.focus()},[s]),w.useEffect(()=>{if(!g)return;const fe=Ft(ue.current).getElementById(g);if(fe){const Le=()=>{getSelection().isCollapsed&&ue.current.focus()};return fe.addEventListener("click",Le),()=>{fe.removeEventListener("click",Le)}}},[g]);const z=(fe,Le)=>{fe?M&&M(Le):R&&R(Le),re||(he(a?null:K.clientWidth),V(fe))},oe=fe=>{fe.button===0&&(fe.preventDefault(),ue.current.focus(),z(!0,fe))},ne=fe=>{z(!1,fe)},U=w.Children.toArray(l),X=fe=>{const Le=U.find(Ke=>Ke.props.value===fe.target.value);Le!==void 0&&(D(Le.props.value),P&&P(fe,Le))},ie=fe=>Le=>{let Ke;if(Le.currentTarget.hasAttribute("tabindex")){if(m){Ke=Array.isArray(E)?E.slice():[];const Un=E.indexOf(fe.props.value);Un===-1?Ke.push(fe.props.value):Ke.splice(Un,1)}else Ke=fe.props.value;if(fe.props.onClick&&fe.props.onClick(Le),E!==Ke&&(D(Ke),P)){const Un=Le.nativeEvent||Le,yi=new Un.constructor(Un.type,Un);Object.defineProperty(yi,"target",{writable:!0,value:{value:Ke,name:b}}),P(yi,fe)}m||z(!1,Le)}},ve=fe=>{_||[" ","ArrowUp","ArrowDown","Enter"].indexOf(fe.key)!==-1&&(fe.preventDefault(),z(!0,fe))},Ie=ee!==null&&F,pe=fe=>{!Ie&&S&&(Object.defineProperty(fe,"target",{writable:!0,value:{value:E,name:b}}),S(fe))};delete j["aria-invalid"];let ae,Te;const je=[];let ke=!1;(Xc({value:E})||h)&&(N?ae=N(E):ke=!0);const ht=U.map(fe=>{if(!w.isValidElement(fe))return null;let Le;if(m){if(!Array.isArray(E))throw new Error(Fr(2));Le=E.some(Ke=>gx(Ke,fe.props.value)),Le&&ke&&je.push(fe.props.children)}else Le=gx(E,fe.props.value),Le&&ke&&(Te=fe.props.children);return w.cloneElement(fe,{"aria-selected":Le?"true":"false",onClick:ie(fe),onKeyUp:Ke=>{Ke.key===" "&&Ke.preventDefault(),fe.props.onKeyUp&&fe.props.onKeyUp(Ke)},role:"option",selected:Le,value:void 0,"data-value":fe.props.value})});ke&&(m?je.length===0?ae=null:ae=je.reduce((fe,Le,Ke)=>(fe.push(Le),Ke{const{classes:t}=e;return t},Fy={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>It(e)&&e!=="variant",slot:"Root"},JF=G(Ek,Fy)(""),e6=G(Dk,Fy)(""),t6=G(kk,Fy)(""),Bk=w.forwardRef(function(t,n){const r=ye({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:i,classes:s={},className:a,defaultOpen:l=!1,displayEmpty:u=!1,IconComponent:c=X5,id:f,input:d,inputProps:h,label:p,labelId:y,MenuProps:x,multiple:g=!1,native:v=!1,onClose:m,onOpen:b,open:S,renderValue:P,SelectDisplayProps:R,variant:$="outlined"}=r,M=W(r,XF),T=v?fF:qF,_=br(),N=Io({props:r,muiFormControl:_,states:["variant","error"]}),I=N.variant||$,O=k({},r,{variant:I,classes:s}),L=ZF(O),A=W(L,QF),j=d||{standard:C.jsx(JF,{ownerState:O}),outlined:C.jsx(e6,{label:p,ownerState:O}),filled:C.jsx(t6,{ownerState:O})}[I],E=Ze(n,j.ref);return C.jsx(w.Fragment,{children:w.cloneElement(j,k({inputComponent:T,inputProps:k({children:i,error:N.error,IconComponent:c,variant:I,type:void 0,multiple:g},v?{id:f}:{autoWidth:o,defaultOpen:l,displayEmpty:u,labelId:y,MenuProps:x,onClose:m,onOpen:b,open:S,renderValue:P,SelectDisplayProps:k({id:f},R)},h,{classes:h?Dt(A,h.classes):A},d?d.props.inputProps:{})},(g&&v||u)&&I==="outlined"?{notched:!0}:{},{ref:E,className:J(j.props.className,a,L.root)},!d&&{variant:I},M))})});Bk.muiName="Select";const n6=Bk;function r6(e){return ce("MuiTooltip",e)}const o6=de("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),io=o6,i6=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function s6(e){return Math.round(e*1e5)/1e5}const a6=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e,s={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${se(i.split("-")[0])}`],arrow:["arrow"]};return le(s,r6,t)},l6=G(fk,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>k({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${io.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${io.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${io.arrow}`]:k({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${io.arrow}`]:k({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),u6=G("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${se(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>k({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:at(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${s6(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${io.popper}[data-popper-placement*="left"] &`]:k({transformOrigin:"right center"},t.isRtl?k({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):k({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${io.popper}[data-popper-placement*="right"] &`]:k({transformOrigin:"left center"},t.isRtl?k({marginRight:"14px"},t.touch&&{marginRight:"24px"}):k({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${io.popper}[data-popper-placement*="top"] &`]:k({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${io.popper}[data-popper-placement*="bottom"] &`]:k({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),c6=G("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:at(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let Nu=!1;const mx=new Ql;let ca={x:0,y:0};function Lu(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const d6=w.forwardRef(function(t,n){var r,o,i,s,a,l,u,c,f,d,h,p,y,x,g,v,m,b,S;const P=ye({props:t,name:"MuiTooltip"}),{arrow:R=!1,children:$,components:M={},componentsProps:T={},describeChild:_=!1,disableFocusListener:N=!1,disableHoverListener:I=!1,disableInteractive:O=!1,disableTouchListener:L=!1,enterDelay:A=100,enterNextDelay:j=0,enterTouchDelay:E=700,followCursor:D=!1,id:F,leaveDelay:V=0,leaveTouchDelay:H=1500,onClose:ue,onOpen:ee,open:Q,placement:re="bottom",PopperComponent:ge,PopperProps:he={},slotProps:B={},slots:Z={},title:K,TransitionComponent:z=Mg,TransitionProps:oe}=P,ne=W(P,i6),U=w.isValidElement($)?$:C.jsx("span",{children:$}),X=_t(),ie=I2(),[ve,Ie]=w.useState(),[pe,ae]=w.useState(null),Te=w.useRef(!1),je=O||D,ke=Hi(),ht=Hi(),Ct=Hi(),Ot=Hi(),[Me,me]=yl({controlled:Q,default:!1,name:"Tooltip",state:"open"});let ot=Me;const wr=fi(F),Bn=w.useRef(),fe=oo(()=>{Bn.current!==void 0&&(document.body.style.WebkitUserSelect=Bn.current,Bn.current=void 0),Ot.clear()});w.useEffect(()=>fe,[fe]);const Le=Se=>{mx.clear(),Nu=!0,me(!0),ee&&!ot&&ee(Se)},Ke=oo(Se=>{mx.start(800+V,()=>{Nu=!1}),me(!1),ue&&ot&&ue(Se),ke.start(X.transitions.duration.shortest,()=>{Te.current=!1})}),Un=Se=>{Te.current&&Se.type!=="touchstart"||(ve&&ve.removeAttribute("title"),ht.clear(),Ct.clear(),A||Nu&&j?ht.start(Nu?j:A,()=>{Le(Se)}):Le(Se))},yi=Se=>{ht.clear(),Ct.start(V,()=>{Ke(Se)})},{isFocusVisibleRef:F0,onBlur:w$,onFocus:S$,ref:C$}=$2(),[,z0]=w.useState(!1),B0=Se=>{w$(Se),F0.current===!1&&(z0(!1),yi(Se))},U0=Se=>{ve||Ie(Se.currentTarget),S$(Se),F0.current===!0&&(z0(!0),Un(Se))},V0=Se=>{Te.current=!0;const on=U.props;on.onTouchStart&&on.onTouchStart(Se)},k$=Se=>{V0(Se),Ct.clear(),ke.clear(),fe(),Bn.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Ot.start(E,()=>{document.body.style.WebkitUserSelect=Bn.current,Un(Se)})},P$=Se=>{U.props.onTouchEnd&&U.props.onTouchEnd(Se),fe(),Ct.start(H,()=>{Ke(Se)})};w.useEffect(()=>{if(!ot)return;function Se(on){(on.key==="Escape"||on.key==="Esc")&&Ke(on)}return document.addEventListener("keydown",Se),()=>{document.removeEventListener("keydown",Se)}},[Ke,ot]);const R$=Ze(U.ref,C$,Ie,n);!K&&K!==0&&(ot=!1);const ap=w.useRef(),$$=Se=>{const on=U.props;on.onMouseMove&&on.onMouseMove(Se),ca={x:Se.clientX,y:Se.clientY},ap.current&&ap.current.update()},Gs={},lp=typeof K=="string";_?(Gs.title=!ot&&lp&&!I?K:null,Gs["aria-describedby"]=ot?wr:null):(Gs["aria-label"]=lp?K:null,Gs["aria-labelledby"]=ot&&!lp?wr:null);const Vn=k({},Gs,ne,U.props,{className:J(ne.className,U.props.className),onTouchStart:V0,ref:R$},D?{onMouseMove:$$}:{}),Ks={};L||(Vn.onTouchStart=k$,Vn.onTouchEnd=P$),I||(Vn.onMouseOver=Lu(Un,Vn.onMouseOver),Vn.onMouseLeave=Lu(yi,Vn.onMouseLeave),je||(Ks.onMouseOver=Un,Ks.onMouseLeave=yi)),N||(Vn.onFocus=Lu(U0,Vn.onFocus),Vn.onBlur=Lu(B0,Vn.onBlur),je||(Ks.onFocus=U0,Ks.onBlur=B0));const T$=w.useMemo(()=>{var Se;let on=[{name:"arrow",enabled:!!pe,options:{element:pe,padding:4}}];return(Se=he.popperOptions)!=null&&Se.modifiers&&(on=on.concat(he.popperOptions.modifiers)),k({},he.popperOptions,{modifiers:on})},[pe,he]),Ys=k({},P,{isRtl:ie,arrow:R,disableInteractive:je,placement:re,PopperComponentProp:ge,touch:Te.current}),up=a6(Ys),W0=(r=(o=Z.popper)!=null?o:M.Popper)!=null?r:l6,H0=(i=(s=(a=Z.transition)!=null?a:M.Transition)!=null?s:z)!=null?i:Mg,G0=(l=(u=Z.tooltip)!=null?u:M.Tooltip)!=null?l:u6,K0=(c=(f=Z.arrow)!=null?f:M.Arrow)!=null?c:c6,M$=Pa(W0,k({},he,(d=B.popper)!=null?d:T.popper,{className:J(up.popper,he==null?void 0:he.className,(h=(p=B.popper)!=null?p:T.popper)==null?void 0:h.className)}),Ys),E$=Pa(H0,k({},oe,(y=B.transition)!=null?y:T.transition),Ys),_$=Pa(G0,k({},(x=B.tooltip)!=null?x:T.tooltip,{className:J(up.tooltip,(g=(v=B.tooltip)!=null?v:T.tooltip)==null?void 0:g.className)}),Ys),I$=Pa(K0,k({},(m=B.arrow)!=null?m:T.arrow,{className:J(up.arrow,(b=(S=B.arrow)!=null?S:T.arrow)==null?void 0:b.className)}),Ys);return C.jsxs(w.Fragment,{children:[w.cloneElement(U,Vn),C.jsx(W0,k({as:ge??fk,placement:re,anchorEl:D?{getBoundingClientRect:()=>({top:ca.y,left:ca.x,right:ca.x,bottom:ca.y,width:0,height:0})}:ve,popperRef:ap,open:ve?ot:!1,id:wr,transition:!0},Ks,M$,{popperOptions:T$,children:({TransitionProps:Se})=>C.jsx(H0,k({timeout:X.transitions.duration.shorter},Se,E$,{children:C.jsxs(G0,k({},_$,{children:[K,R?C.jsx(K0,k({},I$,{ref:ae})):null]}))}))}))]})}),f6=d6;function p6(e){return ce("MuiTextField",e)}de("MuiTextField",["root"]);const h6=["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"],g6={standard:Ek,filled:kk,outlined:Dk},m6=e=>{const{classes:t}=e;return le({root:["root"]},p6,t)},y6=G(F4,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),v6=w.forwardRef(function(t,n){const r=ye({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:i=!1,children:s,className:a,color:l="primary",defaultValue:u,disabled:c=!1,error:f=!1,FormHelperTextProps:d,fullWidth:h=!1,helperText:p,id:y,InputLabelProps:x,inputProps:g,InputProps:v,inputRef:m,label:b,maxRows:S,minRows:P,multiline:R=!1,name:$,onBlur:M,onChange:T,onFocus:_,placeholder:N,required:I=!1,rows:O,select:L=!1,SelectProps:A,type:j,value:E,variant:D="outlined"}=r,F=W(r,h6),V=k({},r,{autoFocus:i,color:l,disabled:c,error:f,fullWidth:h,multiline:R,required:I,select:L,variant:D}),H=m6(V),ue={};D==="outlined"&&(x&&typeof x.shrink<"u"&&(ue.notched=x.shrink),ue.label=b),L&&((!A||!A.native)&&(ue.id=void 0),ue["aria-describedby"]=void 0);const ee=fi(y),Q=p&&ee?`${ee}-helper-text`:void 0,re=b&&ee?`${ee}-label`:void 0,ge=g6[D],he=C.jsx(ge,k({"aria-describedby":Q,autoComplete:o,autoFocus:i,defaultValue:u,fullWidth:h,multiline:R,name:$,rows:O,maxRows:S,minRows:P,type:j,value:E,id:ee,inputRef:m,onBlur:M,onChange:T,onFocus:_,placeholder:N,inputProps:g},ue,v));return C.jsxs(y6,k({className:J(H.root,a),disabled:c,error:f,fullWidth:h,ref:n,required:I,color:l,variant:D,ownerState:V},F,{children:[b!=null&&b!==""&&C.jsx(Xj,k({htmlFor:ee,id:re},x,{children:b})),L?C.jsx(n6,k({"aria-describedby":Q,id:ee,labelId:re,value:E,input:he},A,{children:s})):he,p&&C.jsx(sj,k({id:Q},d,{children:p}))]}))}),Uk=v6;function x6(e){return ce("MuiToggleButton",e)}const b6=de("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]),Gi=b6,w6=w.createContext({}),Vk=w6,S6=w.createContext(void 0),Wk=S6;function C6(e,t){return t===void 0||e===void 0?!1:Array.isArray(t)?t.indexOf(e)>=0:e===t}const k6=["value"],P6=["children","className","color","disabled","disableFocusRipple","fullWidth","onChange","onClick","selected","size","value"],R6=e=>{const{classes:t,fullWidth:n,selected:r,disabled:o,size:i,color:s}=e,a={root:["root",r&&"selected",o&&"disabled",n&&"fullWidth",`size${se(i)}`,s]};return le(a,x6,t)},$6=G(eu,{name:"MuiToggleButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`size${se(n.size)}`]]}})(({theme:e,ownerState:t})=>{let n=t.color==="standard"?e.palette.text.primary:e.palette[t.color].main,r;return e.vars&&(n=t.color==="standard"?e.vars.palette.text.primary:e.vars.palette[t.color].main,r=t.color==="standard"?e.vars.palette.text.primaryChannel:e.vars.palette[t.color].mainChannel),k({},e.typography.button,{borderRadius:(e.vars||e).shape.borderRadius,padding:11,border:`1px solid ${(e.vars||e).palette.divider}`,color:(e.vars||e).palette.action.active},t.fullWidth&&{width:"100%"},{[`&.${Gi.disabled}`]:{color:(e.vars||e).palette.action.disabled,border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Eu(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Gi.selected}`]:{color:n,backgroundColor:e.vars?`rgba(${r} / ${e.vars.palette.action.selectedOpacity})`:Eu(n,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${r} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Eu(n,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${r} / ${e.vars.palette.action.selectedOpacity})`:Eu(n,e.palette.action.selectedOpacity)}}}},t.size==="small"&&{padding:7,fontSize:e.typography.pxToRem(13)},t.size==="large"&&{padding:15,fontSize:e.typography.pxToRem(15)})}),T6=w.forwardRef(function(t,n){const r=w.useContext(Vk),{value:o}=r,i=W(r,k6),s=w.useContext(Wk),a=vf(k({},i,{selected:C6(t.value,o)}),t),l=ye({props:a,name:"MuiToggleButton"}),{children:u,className:c,color:f="standard",disabled:d=!1,disableFocusRipple:h=!1,fullWidth:p=!1,onChange:y,onClick:x,selected:g,size:v="medium",value:m}=l,b=W(l,P6),S=k({},l,{color:f,disabled:d,disableFocusRipple:h,fullWidth:p,size:v}),P=R6(S),R=M=>{x&&(x(M,m),M.defaultPrevented)||y&&y(M,m)},$=s||"";return C.jsx($6,k({className:J(i.className,P.root,c,$),disabled:d,focusRipple:!h,ref:n,onClick:R,onChange:y,value:m,ownerState:S,"aria-pressed":g},b,{children:u}))}),Yp=T6;function M6(e){return ce("MuiToggleButtonGroup",e)}const E6=de("MuiToggleButtonGroup",["root","selected","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]),Ue=E6,_6=["children","className","color","disabled","exclusive","fullWidth","onChange","orientation","size","value"],I6=e=>{const{classes:t,orientation:n,fullWidth:r,disabled:o}=e,i={root:["root",n==="vertical"&&"vertical",r&&"fullWidth"],grouped:["grouped",`grouped${se(n)}`,o&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return le(i,M6,t)},O6=G("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Ue.grouped}`]:t.grouped},{[`& .${Ue.grouped}`]:t[`grouped${se(n.orientation)}`]},{[`& .${Ue.firstButton}`]:t.firstButton},{[`& .${Ue.lastButton}`]:t.lastButton},{[`& .${Ue.middleButton}`]:t.middleButton},t.root,n.orientation==="vertical"&&t.vertical,n.fullWidth&&t.fullWidth]}})(({ownerState:e,theme:t})=>k({display:"inline-flex",borderRadius:(t.vars||t).shape.borderRadius},e.orientation==="vertical"&&{flexDirection:"column"},e.fullWidth&&{width:"100%"},{[`& .${Ue.grouped}`]:k({},e.orientation==="horizontal"?{[`&.${Ue.selected} + .${Ue.grouped}.${Ue.selected}`]:{borderLeft:0,marginLeft:0}}:{[`&.${Ue.selected} + .${Ue.grouped}.${Ue.selected}`]:{borderTop:0,marginTop:0}})},e.orientation==="horizontal"?{[`& .${Ue.firstButton},& .${Ue.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${Ue.lastButton},& .${Ue.middleButton}`]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0}}:{[`& .${Ue.firstButton},& .${Ue.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${Ue.lastButton},& .${Ue.middleButton}`]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0}},e.orientation==="horizontal"?{[`& .${Ue.lastButton}.${Gi.disabled},& .${Ue.middleButton}.${Gi.disabled}`]:{borderLeft:"1px solid transparent"}}:{[`& .${Ue.lastButton}.${Gi.disabled},& .${Ue.middleButton}.${Gi.disabled}`]:{borderTop:"1px solid transparent"}})),A6=w.forwardRef(function(t,n){const r=ye({props:t,name:"MuiToggleButtonGroup"}),{children:o,className:i,color:s="standard",disabled:a=!1,exclusive:l=!1,fullWidth:u=!1,onChange:c,orientation:f="horizontal",size:d="medium",value:h}=r,p=W(r,_6),y=k({},r,{disabled:a,fullWidth:u,orientation:f,size:d}),x=I6(y),g=w.useCallback((R,$)=>{if(!c)return;const M=h&&h.indexOf($);let T;h&&M>=0?(T=h.slice(),T.splice(M,1)):T=h?h.concat($):[$],c(R,T)},[c,h]),v=w.useCallback((R,$)=>{c&&c(R,h===$?null:$)},[c,h]),m=w.useMemo(()=>({className:x.grouped,onChange:l?v:g,value:h,size:d,fullWidth:u,color:s,disabled:a}),[x.grouped,l,v,g,h,d,u,s,a]),b=uO(o),S=b.length,P=R=>{const $=R===0,M=R===S-1;return $&&M?"":$?x.firstButton:M?x.lastButton:x.middleButton};return C.jsx(O6,k({role:"group",className:J(x.root,i),ref:n,ownerState:y},p,{children:C.jsx(Vk.Provider,{value:m,children:b.map((R,$)=>C.jsx(Wk.Provider,{value:P($),children:R},$))})}))}),N6=A6,os=({children:e,image:t,title:n,description:r})=>C.jsxs(Sf,{children:[t&&C.jsx("img",{src:t,className:"logo",alt:""}),n&&C.jsx(Pe,{variant:"h3",gutterBottom:!0,children:n}),r&&C.jsx(Pe,{variant:"body1",gutterBottom:!0,children:r}),e]});function L6(){if(console&&console.warn){for(var e=arguments.length,t=new Array(e),n=0;n()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}};function vx(e,t,n){e.loadNamespaces(t,Hk(e,n))}function xx(e,t,n,r){typeof n=="string"&&(n=[n]),n.forEach(o=>{e.options.ns.indexOf(o)<0&&e.options.ns.push(o)}),e.loadLanguages(t,Hk(e,r))}function j6(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const r=t.languages[0],o=t.options?t.options.fallbackLng:!1,i=t.languages[t.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const s=(a,l)=>{const u=t.services.backendConnector.state[`${a}|${l}`];return u===-1||u===2};return n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!s(t.isLanguageChangingTo,e)?!1:!!(t.hasResourceBundle(r,e)||!t.services.backendConnector.backend||t.options.resources&&!t.options.partialBundledLanguages||s(r,e)&&(!o||s(i,e)))}function D6(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!t.languages||!t.languages.length?(Eg("i18n.languages were undefined or empty",t.languages),!0):t.options.ignoreJSONStructure!==void 0?t.hasLoadedNamespace(e,{lng:n.lng,precheck:(o,i)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&o.services.backendConnector.backend&&o.isLanguageChangingTo&&!i(o.isLanguageChangingTo,e))return!1}}):j6(e,t,n)}const F6=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,z6={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},B6=e=>z6[e],U6=e=>e.replace(F6,B6);let _g={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:U6};function V6(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};_g={..._g,...e}}function W6(){return _g}let Gk;function H6(e){Gk=e}function G6(){return Gk}const K6={type:"3rdParty",init(e){V6(e.options.react),H6(e)}},Kk=w.createContext();class Y6{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const q6=(e,t)=>{const n=w.useRef();return w.useEffect(()=>{n.current=t?n.current:e},[e,t]),n.current};function Yk(e,t,n,r){return e.getFixedT(t,n,r)}function X6(e,t,n,r){return w.useCallback(Yk(e,t,n,r),[e,t,n,r])}function zn(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:n}=t,{i18n:r,defaultNS:o}=w.useContext(Kk)||{},i=n||r||G6();if(i&&!i.reportNamespaces&&(i.reportNamespaces=new Y6),!i){Eg("You will need to pass in an i18next instance by using initReactI18next");const b=(P,R)=>typeof R=="string"?R:R&&typeof R=="object"&&typeof R.defaultValue=="string"?R.defaultValue:Array.isArray(P)?P[P.length-1]:P,S=[b,{},!1];return S.t=b,S.i18n={},S.ready=!1,S}i.options.react&&i.options.react.wait!==void 0&&Eg("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const s={...W6(),...i.options.react,...t},{useSuspense:a,keyPrefix:l}=s;let u=e||o||i.options&&i.options.defaultNS;u=typeof u=="string"?[u]:u||["translation"],i.reportNamespaces.addUsedNamespaces&&i.reportNamespaces.addUsedNamespaces(u);const c=(i.isInitialized||i.initializedStoreOnce)&&u.every(b=>D6(b,i,s)),f=X6(i,t.lng||null,s.nsMode==="fallback"?u:u[0],l),d=()=>f,h=()=>Yk(i,t.lng||null,s.nsMode==="fallback"?u:u[0],l),[p,y]=w.useState(d);let x=u.join();t.lng&&(x=`${t.lng}${x}`);const g=q6(x),v=w.useRef(!0);w.useEffect(()=>{const{bindI18n:b,bindI18nStore:S}=s;v.current=!0,!c&&!a&&(t.lng?xx(i,t.lng,u,()=>{v.current&&y(h)}):vx(i,u,()=>{v.current&&y(h)})),c&&g&&g!==x&&v.current&&y(h);function P(){v.current&&y(h)}return b&&i&&i.on(b,P),S&&i&&i.store.on(S,P),()=>{v.current=!1,b&&i&&b.split(" ").forEach(R=>i.off(R,P)),S&&i&&S.split(" ").forEach(R=>i.store.off(R,P))}},[i,x]),w.useEffect(()=>{v.current&&c&&y(d)},[i,l,c]);const m=[p,i,c];if(m.t=p,m.i18n=i,m.ready=c,c||!c&&!a)return m;throw new Promise(b=>{t.lng?xx(i,t.lng,u,()=>b()):vx(i,u,()=>b())})}function Q6(e){let{i18n:t,defaultNS:n,children:r}=e;const o=w.useMemo(()=>({i18n:t,defaultNS:n}),[t,n]);return w.createElement(Kk.Provider,{value:o},r)}function If({startAdornment:e,endAdornment:t}){const n=(r,o)=>C.jsx(Wj,{position:o,children:r});return{startAdornment:e?n(e,"start"):void 0,endAdornment:t?n(t,"end"):void 0}}function qk(){const{t:e}=zn();return(t=!1)=>If({endAdornment:`%${t?e(" per year"):""}`})}function Xk(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o=a?o=o+bx("0",s-a):o=(o.substring(0,s)||"0")+"."+o.substring(s),n+o}function wx(e,t,n){if(["","-"].indexOf(e)!==-1)return e;var r=(e.indexOf(".")!==-1||n)&&t,o=zy(e),i=o.beforeDecimal,s=o.afterDecimal,a=o.hasNegation,l=parseFloat("0."+(s||"0")),u=s.length<=t?"0."+s:l.toFixed(t),c=u.split("."),f=i;i&&Number(c[0])&&(f=i.split("").reverse().reduce(function(y,x,g){return y.length>g?(Number(y[0])+Number(x)).toString()+y.substring(1,y.length):x+y},c[0]));var d=Jk(c[1]||"",t,n),h=a?"-":"",p=r?".":"";return""+h+f+p+d}function Bo(e,t){if(e.value=e.value,e!==null){if(e.createTextRange){var n=e.createTextRange();return n.move("character",t),n.select(),!0}return e.selectionStart||e.selectionStart===0?(e.focus(),e.setSelectionRange(t,t),!0):(e.focus(),!1)}}var tP=Z6(function(e,t){for(var n=0,r=0,o=e.length,i=t.length;e[n]===t[n]&&nn&&o-r>n;)r++;return{from:{start:n,end:o-r},to:{start:n,end:i-r}}});function oz(e,t,n){return Math.min(Math.max(e,t),n)}function qp(e){return Math.max(e.selectionStart,e.selectionEnd)}function iz(){return typeof navigator<"u"&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}function sz(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function az(e){var t=e.currentValue,n=e.formattedValue,r=e.currentValueIndex,o=e.formattedValueIndex;return t[r]===n[o]}function lz(e,t,n,r,o,i,s){s===void 0&&(s=az);var a=o.findIndex(function(b){return b}),l=e.slice(0,a);!t&&!n.startsWith(l)&&(t=l,n=l+n,r=r+l.length);for(var u=n.length,c=e.length,f={},d=new Array(u),h=0;h0&&d[g]===-1;)g--;var m=g===-1||d[g]===-1?0:d[g]+1;return m>v?v:r-m=0&&!n[t];)t--;t===-1&&(t=n.indexOf(!0))}else{for(;t<=o&&!n[t];)t++;t>o&&(t=n.lastIndexOf(!0))}return t===-1&&(t=o),t}function uz(e){for(var t=Array.from({length:e.length+1}).map(function(){return!0}),n=0,r=t.length;nR.length-s.length||P_||f>e.length-s.length)&&(T=f),e=e.substring(0,T),e=pz(m?"-"+e:e,o),e=(e.match(hz(p,!0))||[]).join("");var N=e.indexOf(p);e=e.replace(new RegExp(Zk(p),"g"),function(j,E){return E===N?".":""});var I=zy(e,o),O=I.beforeDecimal,L=I.afterDecimal,A=I.addNegation;return u.end-u.start{throw new Error("uSES not initialized!")};function By(e=Co){return function(){return un.useContext(e)}}var iP=By(),sP=Ez,_z=e=>{sP=e},Iz=(e,t)=>e===t;function Oz(e=Co){const t=e===Co?iP:By(e),n=(r,o={})=>{const{equalityFn:i=Iz,devModeChecks:s={}}=typeof o=="function"?{equalityFn:o}:o,{store:a,subscription:l,getServerState:u,stabilityCheck:c,identityFunctionCheck:f}=t();un.useRef(!0);const d=un.useCallback({[r.name](p){return r(p)}}[r.name],[r,c,s.stabilityCheck]),h=sP(l.addNestedSub,a.getState,u||a.getState,d,i);return un.useDebugValue(h),h};return Object.assign(n,{withTypes:()=>n}),n}var rt=Oz();function Az(e){e()}function Nz(){let e=null,t=null;return{clear(){e=null,t=null},notify(){Az(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=e;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const o=t={callback:n,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){!r||e===null||(r=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}var Rx={notify(){},get:()=>[]};function Lz(e,t){let n,r=Rx,o=0,i=!1;function s(y){c();const x=r.subscribe(y);let g=!1;return()=>{g||(g=!0,x(),f())}}function a(){r.notify()}function l(){p.onStateChange&&p.onStateChange()}function u(){return i}function c(){o++,n||(n=t?t.addNestedSub(l):e.subscribe(l),r=Nz())}function f(){o--,n&&o===0&&(n(),n=void 0,r.clear(),r=Rx)}function d(){i||(i=!0,c())}function h(){i&&(i=!1,f())}const p={addNestedSub:s,notifyNestedSubs:a,handleChangeWrapper:l,isSubscribed:u,trySubscribe:d,tryUnsubscribe:h,getListeners:()=>r};return p}var jz=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Dz=jz?un.useLayoutEffect:un.useEffect;function Fz({store:e,context:t,children:n,serverState:r,stabilityCheck:o="once",identityFunctionCheck:i="once"}){const s=un.useMemo(()=>{const u=Lz(e);return{store:e,subscription:u,getServerState:r?()=>r:void 0,stabilityCheck:o,identityFunctionCheck:i}},[e,r,o,i]),a=un.useMemo(()=>e.getState(),[e]);Dz(()=>{const{subscription:u}=s;return u.onStateChange=u.notifyNestedSubs,u.trySubscribe(),a!==e.getState()&&u.notifyNestedSubs(),()=>{u.tryUnsubscribe(),u.onStateChange=void 0}},[s,a]);const l=t||Co;return un.createElement(l.Provider,{value:s},n)}var zz=Fz;function aP(e=Co){const t=e===Co?iP:By(e),n=()=>{const{store:r}=t();return r};return Object.assign(n,{withTypes:()=>n}),n}var Bz=aP();function Uz(e=Co){const t=e===Co?Bz:aP(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var Uy=Uz();_z(Tz.useSyncExternalStoreWithSelector);const lP=[{abbreviation:"ARS",prefix:"$",suffix:"",locale:"es-AR"},{abbreviation:"BRL",prefix:"R$",suffix:"",locale:"pt-BR"},{abbreviation:"CHF",prefix:"",suffix:"Fr",locale:"de-CH"},{abbreviation:"CNY",prefix:"¥",suffix:"",locale:"zh-CN"},{abbreviation:"CZK",prefix:"",suffix:"Kč",locale:"cs-CZ"},{abbreviation:"DKK",prefix:"",suffix:"kr",locale:"da-DK"},{abbreviation:"EUR",prefix:"",suffix:"€",locale:"de-DE"},{abbreviation:"GBP",prefix:"£",suffix:"",locale:"en-GB"},{abbreviation:"HUF",prefix:"",suffix:"Ft",locale:"hu-HU"},{abbreviation:"INR",prefix:"₹",suffix:"",locale:"en-IN"},{abbreviation:"JPY",prefix:"¥",suffix:"",locale:"ja-JP"},{abbreviation:"KRW",prefix:"₩",suffix:"",locale:"ko-KR"},{abbreviation:"NOK",prefix:"",suffix:"kr",locale:"nb-NO"},{abbreviation:"PLN",prefix:"",suffix:"zł",locale:"pl-PL"},{abbreviation:"RUB",prefix:"",suffix:"₽",locale:"ru-RU"},{abbreviation:"SEK",prefix:"",suffix:"kr",locale:"sv-SE"},{abbreviation:"TRY",prefix:"",suffix:"₺",locale:"tr-TR"},{abbreviation:"TWD",prefix:"NT$",suffix:"",locale:"zh-TW"},{abbreviation:"USD",prefix:"$",suffix:"",locale:"en-US"},{abbreviation:"ZAR",prefix:"R",suffix:"",locale:"en-ZA"}],Vz=w.forwardRef(function(t,n){const{onChange:r,currency:o,...i}=t,{prefix:s,suffix:a}=lP.find(l=>l.abbreviation.startsWith(o.slice(0,2)))||{prefix:"",suffix:""};return C.jsx(bz,{...i,getInputRef:n,onValueChange:l=>{r({target:{name:t.name,value:l.value}})},thousandSeparator:!0,valueIsNumericString:!0,prefix:s,suffix:a})});function Wz(e){const t=rt(n=>n.settings.currency);return C.jsx(Uk,{variant:"outlined",...e,InputProps:{inputComponent:Vz,inputProps:{currency:t}}})}function uP(e){const{formatAsCurrency:t,...n}=e,r={placeholder:"0",variant:"outlined",size:"medium",...n};return t?C.jsx(Wz,{...r}):C.jsx(Uk,{...r,type:"number"})}function Ki({inputs:e}){return C.jsx(Ef,{component:"form",sx:{"& .MuiTextField-root":{m:1,width:"25ch"}},noValidate:!0,autoComplete:"off",children:e.map((t,n)=>C.jsx(uP,{...t},n))})}function gt(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var Hz=typeof Symbol=="function"&&Symbol.observable||"@@observable",$x=Hz,Xp=()=>Math.random().toString(36).substring(7).split("").join("."),Gz={INIT:`@@redux/INIT${Xp()}`,REPLACE:`@@redux/REPLACE${Xp()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Xp()}`},Qc=Gz;function Vy(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function cP(e,t,n){if(typeof e!="function")throw new Error(gt(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(gt(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(gt(1));return n(cP)(e,t)}let r=e,o=t,i=new Map,s=i,a=0,l=!1;function u(){s===i&&(s=new Map,i.forEach((x,g)=>{s.set(g,x)}))}function c(){if(l)throw new Error(gt(3));return o}function f(x){if(typeof x!="function")throw new Error(gt(4));if(l)throw new Error(gt(5));let g=!0;u();const v=a++;return s.set(v,x),function(){if(g){if(l)throw new Error(gt(6));g=!1,u(),s.delete(v),i=null}}}function d(x){if(!Vy(x))throw new Error(gt(7));if(typeof x.type>"u")throw new Error(gt(8));if(typeof x.type!="string")throw new Error(gt(17));if(l)throw new Error(gt(9));try{l=!0,o=r(o,x)}finally{l=!1}return(i=s).forEach(v=>{v()}),x}function h(x){if(typeof x!="function")throw new Error(gt(10));r=x,d({type:Qc.REPLACE})}function p(){const x=f;return{subscribe(g){if(typeof g!="object"||g===null)throw new Error(gt(11));function v(){const b=g;b.next&&b.next(c())}return v(),{unsubscribe:x(v)}},[$x](){return this}}}return d({type:Qc.INIT}),{dispatch:d,subscribe:f,getState:c,replaceReducer:h,[$x]:p}}function Kz(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:Qc.INIT})>"u")throw new Error(gt(12));if(typeof n(void 0,{type:Qc.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(gt(13))})}function Wy(e){const t=Object.keys(e),n={};for(let i=0;i"u")throw a&&a.type,new Error(gt(14));u[f]=p,l=l||p!==h}return l=l||r.length!==Object.keys(s).length,l?u:s}}function Zc(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function Yz(...e){return t=>(n,r)=>{const o=t(n,r);let i=()=>{throw new Error(gt(15))};const s={getState:o.getState,dispatch:(l,...u)=>i(l,...u)},a=e.map(l=>l(s));return i=Zc(...a)(o.dispatch),{...o,dispatch:i}}}function qz(e){return Vy(e)&&"type"in e&&typeof e.type=="string"}var dP=Symbol.for("immer-nothing"),Tx=Symbol.for("immer-draftable"),hn=Symbol.for("immer-state");function qn(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Cs=Object.getPrototypeOf;function ko(e){return!!e&&!!e[hn]}function Ur(e){var t;return e?fP(e)||Array.isArray(e)||!!e[Tx]||!!((t=e.constructor)!=null&&t[Tx])||Nf(e)||Lf(e):!1}var Xz=Object.prototype.constructor.toString();function fP(e){if(!e||typeof e!="object")return!1;const t=Cs(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===Xz}function Jc(e,t){Af(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function Af(e){const t=e[hn];return t?t.type_:Array.isArray(e)?1:Nf(e)?2:Lf(e)?3:0}function Ig(e,t){return Af(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function pP(e,t,n){const r=Af(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function Qz(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Nf(e){return e instanceof Map}function Lf(e){return e instanceof Set}function Fo(e){return e.copy_||e.base_}function Og(e,t){if(Nf(e))return new Map(e);if(Lf(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&fP(e))return Cs(e)?{...e}:Object.assign(Object.create(null),e);const n=Object.getOwnPropertyDescriptors(e);delete n[hn];let r=Reflect.ownKeys(n);for(let o=0;o1&&(e.set=e.add=e.clear=e.delete=Zz),Object.freeze(e),t&&Object.entries(e).forEach(([n,r])=>Hy(r,!0))),e}function Zz(){qn(2)}function jf(e){return Object.isFrozen(e)}var Jz={};function li(e){const t=Jz[e];return t||qn(0,e),t}var kl;function hP(){return kl}function e8(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Mx(e,t){t&&(li("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Ag(e){Ng(e),e.drafts_.forEach(t8),e.drafts_=null}function Ng(e){e===kl&&(kl=e.parent_)}function Ex(e){return kl=e8(kl,e)}function t8(e){const t=e[hn];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function _x(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[hn].modified_&&(Ag(t),qn(4)),Ur(e)&&(e=ed(t,e),t.parent_||td(t,e)),t.patches_&&li("Patches").generateReplacementPatches_(n[hn].base_,e,t.patches_,t.inversePatches_)):e=ed(t,n,[]),Ag(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==dP?e:void 0}function ed(e,t,n){if(jf(t))return t;const r=t[hn];if(!r)return Jc(t,(o,i)=>Ix(e,r,t,o,i,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return td(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const o=r.copy_;let i=o,s=!1;r.type_===3&&(i=new Set(o),o.clear(),s=!0),Jc(i,(a,l)=>Ix(e,r,o,a,l,n,s)),td(e,o,!1),n&&e.patches_&&li("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function Ix(e,t,n,r,o,i,s){if(ko(o)){const a=i&&t&&t.type_!==3&&!Ig(t.assigned_,r)?i.concat(r):void 0,l=ed(e,o,a);if(pP(n,r,l),ko(l))e.canAutoFreeze_=!1;else return}else s&&n.add(o);if(Ur(o)&&!jf(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;ed(e,o),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,r)&&td(e,o)}}function td(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Hy(t,n)}function n8(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:hP(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=r,i=Gy;n&&(o=[r],i=Pl);const{revoke:s,proxy:a}=Proxy.revocable(o,i);return r.draft_=a,r.revoke_=s,a}var Gy={get(e,t){if(t===hn)return e;const n=Fo(e);if(!Ig(n,t))return r8(e,n,t);const r=n[t];return e.finalized_||!Ur(r)?r:r===Qp(e.base_,t)?(Zp(e),e.copy_[t]=jg(r,e)):r},has(e,t){return t in Fo(e)},ownKeys(e){return Reflect.ownKeys(Fo(e))},set(e,t,n){const r=gP(Fo(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const o=Qp(Fo(e),t),i=o==null?void 0:o[hn];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(Qz(n,o)&&(n!==void 0||Ig(e.base_,t)))return!0;Zp(e),Lg(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return Qp(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,Zp(e),Lg(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Fo(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){qn(11)},getPrototypeOf(e){return Cs(e.base_)},setPrototypeOf(){qn(12)}},Pl={};Jc(Gy,(e,t)=>{Pl[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Pl.deleteProperty=function(e,t){return Pl.set.call(this,e,t,void 0)};Pl.set=function(e,t,n){return Gy.set.call(this,e[0],t,n,e[0])};function Qp(e,t){const n=e[hn];return(n?Fo(n):e)[t]}function r8(e,t,n){var o;const r=gP(t,n);return r?"value"in r?r.value:(o=r.get)==null?void 0:o.call(e.draft_):void 0}function gP(e,t){if(!(t in e))return;let n=Cs(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Cs(n)}}function Lg(e){e.modified_||(e.modified_=!0,e.parent_&&Lg(e.parent_))}function Zp(e){e.copy_||(e.copy_=Og(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var o8=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const i=n;n=t;const s=this;return function(l=i,...u){return s.produce(l,c=>n.call(this,c,...u))}}typeof n!="function"&&qn(6),r!==void 0&&typeof r!="function"&&qn(7);let o;if(Ur(t)){const i=Ex(this),s=jg(t,void 0);let a=!0;try{o=n(s),a=!1}finally{a?Ag(i):Ng(i)}return Mx(i,r),_x(o,i)}else if(!t||typeof t!="object"){if(o=n(t),o===void 0&&(o=t),o===dP&&(o=void 0),this.autoFreeze_&&Hy(o,!0),r){const i=[],s=[];li("Patches").generateReplacementPatches_(t,o,i,s),r(i,s)}return o}else qn(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(s,...a)=>this.produceWithPatches(s,l=>t(l,...a));let r,o;return[this.produce(t,n,(s,a)=>{r=s,o=a}),r,o]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){Ur(e)||qn(8),ko(e)&&(e=mP(e));const t=Ex(this),n=jg(e,void 0);return n[hn].isManual_=!0,Ng(t),n}finishDraft(e,t){const n=e&&e[hn];(!n||!n.isManual_)&&qn(9);const{scope_:r}=n;return Mx(r,t),_x(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const o=t[n];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}n>-1&&(t=t.slice(n+1));const r=li("Patches").applyPatches_;return ko(e)?r(e,t):this.produce(e,o=>r(o,t))}};function jg(e,t){const n=Nf(e)?li("MapSet").proxyMap_(e,t):Lf(e)?li("MapSet").proxySet_(e,t):n8(e,t);return(t?t.scope_:hP()).drafts_.push(n),n}function mP(e){return ko(e)||qn(10,e),yP(e)}function yP(e){if(!Ur(e)||jf(e))return e;const t=e[hn];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Og(e,t.scope_.immer_.useStrictShallowCopy_)}else n=Og(e,!0);return Jc(n,(r,o)=>{pP(n,r,yP(o))}),t&&(t.finalized_=!1),n}var gn=new o8,vP=gn.produce;gn.produceWithPatches.bind(gn);gn.setAutoFreeze.bind(gn);gn.setUseStrictShallowCopy.bind(gn);gn.applyPatches.bind(gn);gn.createDraft.bind(gn);gn.finishDraft.bind(gn);function i8(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function s8(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function a8(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var Ox=e=>Array.isArray(e)?e:[e];function l8(e){const t=Array.isArray(e[0])?e[0]:e;return a8(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function u8(e,t){const n=[],{length:r}=e;for(let o=0;o{n=ju(),s.resetResultsCount()},s.resultsCount=()=>i,s.resetResultsCount=()=>{i=0},s}function xP(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...o)=>{let i=0,s=0,a,l={},u=o.pop();typeof u=="object"&&(l=u,u=o.pop()),i8(u,`createSelector expects an output function after the inputs, but received: [${typeof u}]`);const c={...n,...l},{memoize:f,memoizeOptions:d=[],argsMemoize:h=Ky,argsMemoizeOptions:p=[],devModeChecks:y={}}=c,x=Ox(d),g=Ox(p),v=l8(o),m=f(function(){return i++,u.apply(null,arguments)},...x),b=h(function(){s++;const P=u8(v,arguments);return a=m.apply(null,P),a},...g);return Object.assign(b,{resultFunc:u,memoizedResultFunc:m,dependencies:v,dependencyRecomputations:()=>s,resetDependencyRecomputations:()=>{s=0},lastResult:()=>a,recomputations:()=>i,resetRecomputations:()=>{i=0},memoize:f,argsMemoize:h})};return Object.assign(r,{withTypes:()=>r}),r}var p8=xP(Ky),h8=Object.assign((e,t=p8)=>{s8(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),r=n.map(i=>e[i]);return t(r,(...i)=>i.reduce((s,a,l)=>(s[n[l]]=a,s),{}))},{withTypes:()=>h8});function bP(e){return({dispatch:n,getState:r})=>o=>i=>typeof i=="function"?i(n,r,e):o(i)}var g8=bP(),m8=bP,y8=(...e)=>{const t=xP(...e),n=Object.assign((...r)=>{const o=t(...r),i=(s,...a)=>o(ko(s)?mP(s):s,...a);return Object.assign(i,o),i},{withTypes:()=>n});return n};y8(Ky);var v8=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Zc:Zc.apply(null,arguments)};function ks(e,t){function n(...r){if(t){let o=t(...r);if(!o)throw new Error(tn(0));return{type:e,payload:o.payload,..."meta"in o&&{meta:o.meta},..."error"in o&&{error:o.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>qz(r)&&r.type===e,n}var wP=class $a extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,$a.prototype)}static get[Symbol.species](){return $a}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new $a(...t[0].concat(this)):new $a(...t.concat(this))}};function Nx(e){return Ur(e)?vP(e,()=>{}):e}function Lx(e,t,n){if(e.has(t)){let o=e.get(t);return n.update&&(o=n.update(o,t,e),e.set(t,o)),o}if(!n.insert)throw new Error(tn(10));const r=n.insert(t,e);return e.set(t,r),r}function x8(e){return typeof e=="boolean"}var b8=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:o=!0,actionCreatorCheck:i=!0}=t??{};let s=new wP;return n&&(x8(n)?s.push(g8):s.push(m8(n.extraArgument))),s},w8="RTK_autoBatch",SP=e=>t=>{setTimeout(t,e)},S8=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:SP(10),C8=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let o=!0,i=!1,s=!1;const a=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?S8:e.type==="callback"?e.queueNotification:SP(e.timeout),u=()=>{s=!1,i&&(i=!1,a.forEach(c=>c()))};return Object.assign({},r,{subscribe(c){const f=()=>o&&c(),d=r.subscribe(f);return a.add(c),()=>{d(),a.delete(c)}},dispatch(c){var f;try{return o=!((f=c==null?void 0:c.meta)!=null&&f[w8]),i=!o,i&&(s||(s=!0,l(u))),r.dispatch(c)}finally{o=!0}}})},k8=e=>function(n){const{autoBatch:r=!0}=n??{};let o=new wP(e);return r&&o.push(C8(typeof r=="object"?r:void 0)),o},P8=!0;function R8(e){const t=b8(),{reducer:n=void 0,middleware:r,devTools:o=!0,preloadedState:i=void 0,enhancers:s=void 0}=e||{};let a;if(typeof n=="function")a=n;else if(Vy(n))a=Wy(n);else throw new Error(tn(1));let l;typeof r=="function"?l=r(t):l=t();let u=Zc;o&&(u=v8({trace:!P8,...typeof o=="object"&&o}));const c=Yz(...l),f=k8(c);let d=typeof s=="function"?s(f):f();const h=u(...d);return cP(a,i,h)}function CP(e){const t={},n=[];let r;const o={addCase(i,s){const a=typeof i=="string"?i:i.type;if(!a)throw new Error(tn(28));if(a in t)throw new Error(tn(29));return t[a]=s,o},addMatcher(i,s){return n.push({matcher:i,reducer:s}),o},addDefaultCase(i){return r=i,o}};return e(o),[t,n,r]}function $8(e){return typeof e=="function"}function T8(e,t){let[n,r,o]=CP(t),i;if($8(e))i=()=>Nx(e());else{const a=Nx(e);i=()=>a}function s(a=i(),l){let u=[n[l.type],...r.filter(({matcher:c})=>c(l)).map(({reducer:c})=>c)];return u.filter(c=>!!c).length===0&&(u=[o]),u.reduce((c,f)=>{if(f)if(ko(c)){const h=f(c,l);return h===void 0?c:h}else{if(Ur(c))return vP(c,d=>f(d,l));{const d=f(c,l);if(d===void 0){if(c===null)return c;throw new Error(tn(9))}return d}}return c},a)}return s.getInitialState=i,s}var M8="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",E8=(e=21)=>{let t="",n=e;for(;n--;)t+=M8[Math.random()*64|0];return t},_8=Symbol.for("rtk-slice-createasyncthunk");function I8(e,t){return`${e}/${t}`}function O8({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[_8];return function(o){const{name:i,reducerPath:s=i}=o;if(!i)throw new Error(tn(11));typeof process<"u";const a=(typeof o.reducers=="function"?o.reducers(N8()):o.reducers)||{},l=Object.keys(a),u={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},c={addCase(m,b){const S=typeof m=="string"?m:m.type;if(!S)throw new Error(tn(12));if(S in u.sliceCaseReducersByType)throw new Error(tn(13));return u.sliceCaseReducersByType[S]=b,c},addMatcher(m,b){return u.sliceMatchers.push({matcher:m,reducer:b}),c},exposeAction(m,b){return u.actionCreators[m]=b,c},exposeCaseReducer(m,b){return u.sliceCaseReducersByName[m]=b,c}};l.forEach(m=>{const b=a[m],S={reducerName:m,type:I8(i,m),createNotation:typeof o.reducers=="function"};j8(b)?F8(S,b,c,t):L8(S,b,c)});function f(){const[m={},b=[],S=void 0]=typeof o.extraReducers=="function"?CP(o.extraReducers):[o.extraReducers],P={...m,...u.sliceCaseReducersByType};return T8(o.initialState,R=>{for(let $ in P)R.addCase($,P[$]);for(let $ of u.sliceMatchers)R.addMatcher($.matcher,$.reducer);for(let $ of b)R.addMatcher($.matcher,$.reducer);S&&R.addDefaultCase(S)})}const d=m=>m,h=new Map;let p;function y(m,b){return p||(p=f()),p(m,b)}function x(){return p||(p=f()),p.getInitialState()}function g(m,b=!1){function S(R){let $=R[m];return typeof $>"u"&&b&&($=x()),$}function P(R=d){const $=Lx(h,b,{insert:()=>new WeakMap});return Lx($,R,{insert:()=>{const M={};for(const[T,_]of Object.entries(o.selectors??{}))M[T]=A8(_,R,x,b);return M}})}return{reducerPath:m,getSelectors:P,get selectors(){return P(S)},selectSlice:S}}const v={name:i,reducer:y,actions:u.actionCreators,caseReducers:u.sliceCaseReducersByName,getInitialState:x,...g(s),injectInto(m,{reducerPath:b,...S}={}){const P=b??s;return m.inject({reducerPath:P,reducer:y},S),{...v,...g(P,!0)}}};return v}}function A8(e,t,n,r){function o(i,...s){let a=t(i);return typeof a>"u"&&r&&(a=n()),e(a,...s)}return o.unwrapped=e,o}var Df=O8();function N8(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function L8({type:e,reducerName:t,createNotation:n},r,o){let i,s;if("reducer"in r){if(n&&!D8(r))throw new Error(tn(17));i=r.reducer,s=r.prepare}else i=r;o.addCase(e,i).exposeCaseReducer(t,i).exposeAction(t,s?ks(e,s):ks(e))}function j8(e){return e._reducerDefinitionType==="asyncThunk"}function D8(e){return e._reducerDefinitionType==="reducerWithPrepare"}function F8({type:e,reducerName:t},n,r,o){if(!o)throw new Error(tn(18));const{payloadCreator:i,fulfilled:s,pending:a,rejected:l,settled:u,options:c}=n,f=o(e,i,c);r.exposeAction(t,f),s&&r.addCase(f.fulfilled,s),a&&r.addCase(f.pending,a),l&&r.addCase(f.rejected,l),u&&r.addMatcher(f.settled,u),r.exposeCaseReducer(t,{fulfilled:s||Du,pending:a||Du,rejected:l||Du,settled:u||Du})}function Du(){}var z8=(e,t)=>{if(typeof e!="function")throw new Error(tn(32))},Yy="listenerMiddleware",B8=e=>{let{type:t,actionCreator:n,matcher:r,predicate:o,effect:i}=e;if(t)o=ks(t).match;else if(n)t=n.type,o=n.match;else if(r)o=r;else if(!o)throw new Error(tn(21));return z8(i),{predicate:o,type:t,effect:i}},U8=Object.assign(e=>{const{type:t,predicate:n,effect:r}=B8(e);return{id:E8(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(tn(22))}}},{withTypes:()=>U8}),V8=Object.assign(ks(`${Yy}/add`),{withTypes:()=>V8});ks(`${Yy}/removeAll`);var W8=Object.assign(ks(`${Yy}/remove`),{withTypes:()=>W8});function tn(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}const H8={propertyPrice:1e6,depositPercentage:10,yearlyOwnershipCost:2500,loanTerm:30,interestRate:4.5,buyingCostsPercentage:1,sellingCostsPercentage:1,propertyValueGrowthPercentage:3},qy=Df({name:"buying",initialState:H8,reducers:{setBuyingValue:(e,t)=>{e[t.payload.key]=t.payload.value}}}),{setBuyingValue:G8}=qy.actions;qy.reducer;const K8={monthlyRent:1500,initialInvestment:3e3,yearlyRentGrowth:3,investDifference:!0,alternativeInvestmentReturnPercentage:7},Xy=Df({name:"renting",initialState:K8,reducers:{setRentingValue:(e,t)=>{e[t.payload.key]=t.payload.value},toggleInvestDifference:(e,t)=>{e.investDifference=t.payload}}}),{setRentingValue:Y8,toggleInvestDifference:q8}=Xy.actions;Xy.reducer;const X8={yearsStaying:5},Qy=Df({name:"futurePredictions",initialState:X8,reducers:{setFuturePredictionsValue:(e,t)=>{e[t.payload.key]=t.payload.value}}}),{setFuturePredictionsValue:Q8}=Qy.actions;Qy.reducer;const Z8={buying:G8,renting:Y8,futurePredictions:Q8};function Zy(e){const t=rt(o=>o.calculator[e]),n=o=>i=>{const s=Z8[e],a=parseFloat(i.target.value||"0");r(s({key:o,value:a}))},r=Uy();return{stateSlice:t,createStateUpdateFc:n,dispatch:r}}function J8({initialPropertyValue:e,depositPercentage:t,loanTerm:n,interestRate:r}){const o=e*(t/100),i=e-o,s=nB({initialPropertyValue:e,deposit:o,loanTerm:n,interestRate:r});return{loanAmount:i,mortgagePerMonth:s,deposit:o}}function kP({yearsStaying:e,yearlyOwnershipCost:t,propertyValueGrowthPercentage:n,loanAmount:r,mortgagePerMonth:o,interestRate:i,initialPropertyValue:s}){let a=r,l=0,u=0,c=0,f=s,d=0,h=0,p=0;const y=[];for(;p0&&(x=a*(i/100/12),g=o-x,a-=g,u+=x,c+=g,l+=o),h+=t/12;const v=f*(n/100/12);d+=v,f+=v;const m={interestPaid:x,principalPaid:g,increaseInPropertyValue:v,ownershipCost:t/12,buyingCosts:0,sellingCosts:0};y.push(m),p++}return a<0&&(a=0),{remainingBalance:a,totalMortgagePaid:l,totalInterestPaid:u,totalPrincipalPaid:c,totalPropertyValueIncrease:d,totalOwnershipCosts:h,monthValueChanges:y,endPropertyValue:f}}function eB({initialPropertyValue:e,endPropertyValue:t,buyingCostsPercentage:n,sellingCostsPercentage:r,monthValueChanges:o}){const i=e*(n/100),s=t*(r/100);return o.length>0&&(o[0].buyingCosts=i,o[o.length-1].sellingCosts=s),{buyingCost:i,sellingCost:s}}function tB(e){if(e.loanTerm===0||e.yearsStaying===0)return{totalInterestPaid:0,remainingBalance:0,totalPropertyValueIncrease:0,totalOwnershipCosts:0,monthValueChanges:[],yearValueChanges:[],yearValueChangeTotals:[],buyingCost:0,sellingCost:0,totalCosts:0,totalBuying:0,totalMortgagePaid:0,totalPrincipalPaid:0,mortgagePerMonth:0,deposit:0,initialPropertyValue:e.initialPropertyValue};const{loanAmount:t,mortgagePerMonth:n,deposit:r}=J8(e),{remainingBalance:o,totalMortgagePaid:i,totalInterestPaid:s,totalPropertyValueIncrease:a,totalOwnershipCosts:l,monthValueChanges:u,endPropertyValue:c,totalPrincipalPaid:f}=kP({...e,loanAmount:t,mortgagePerMonth:n}),{buyingCost:d,sellingCost:h}=eB({...e,endPropertyValue:c,monthValueChanges:u}),p=d+r+i+o+l+h,y=a+e.initialPropertyValue-p,x=u.reduce((m,b,S)=>(S%12===0?m.push(structuredClone(b)):(m[m.length-1].interestPaid+=b.interestPaid,m[m.length-1].principalPaid+=b.principalPaid,m[m.length-1].increaseInPropertyValue+=b.increaseInPropertyValue,m[m.length-1].ownershipCost+=b.ownershipCost,m[m.length-1].buyingCosts+=b.buyingCosts,m[m.length-1].sellingCosts+=b.sellingCosts),m),[]);let g=0;const v=x.reduce((m,b)=>{let S=0;return S-=b.interestPaid,S+=b.increaseInPropertyValue,S-=b.ownershipCost,S-=b.buyingCosts,S-=b.sellingCosts,g+=S,m.push(g),m},[]);return{totalInterestPaid:s,remainingBalance:o,totalPropertyValueIncrease:a,totalOwnershipCosts:l,monthValueChanges:u,yearValueChanges:x,yearValueChangeTotals:v,buyingCost:d,sellingCost:h,totalCosts:p,totalMortgagePaid:i,totalPrincipalPaid:f,mortgagePerMonth:n,deposit:r,initialPropertyValue:e.initialPropertyValue,totalBuying:y}}function PP({deposit:e,initialPropertyValue:t}){return t-e}function nB({initialPropertyValue:e,deposit:t,loanTerm:n,interestRate:r}){const o=PP({deposit:t,initialPropertyValue:e}),i=r/100/12,s=n*12;return o*(i/(1-Math.pow(1+i,-s)))}const Ps="DEFAULT_X_AXIS_KEY",jx="DEFAULT_Y_AXIS_KEY",rB={top:50,bottom:50,left:50,right:50},oB=(e,t,n)=>{const r=k({},rB,n);return w.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])},tr=w.createContext({top:0,left:0,bottom:0,right:0,height:300,width:400,chartId:""}),Ff=w.createContext({current:null});function iB(e){const{width:t,height:n,margin:r,svgRef:o,children:i}=e,s=oB(t,n,r),a=fi(),l=w.useMemo(()=>k({chartId:a??""},s),[a,s]);return C.jsx(Ff.Provider,{value:o,children:C.jsx(tr.Provider,{value:l,children:i})})}function yc(e,t){return e==null||t==null?NaN:et?1:e>=t?0:NaN}function sB(e,t){return e==null||t==null?NaN:te?1:t>=e?0:NaN}function Jy(e){let t,n,r;e.length!==2?(t=yc,n=(a,l)=>yc(e(a),l),r=(a,l)=>e(a)-l):(t=e===yc||e===sB?e:aB,n=e,r=e);function o(a,l,u=0,c=a.length){if(u>>1;n(a[f],l)<0?u=f+1:c=f}while(u>>1;n(a[f],l)<=0?u=f+1:c=f}while(uu&&r(a[f-1],l)>-r(a[f],l)?f-1:f}return{left:o,center:s,right:i}}function aB(){return 0}function lB(e){return e===null?NaN:+e}const uB=Jy(yc),cB=uB.right;Jy(lB).center;class Dx extends Map{constructor(t,n=pB){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(Fx(this,t))}has(t){return super.has(Fx(this,t))}set(t,n){return super.set(dB(this,t),n)}delete(t){return super.delete(fB(this,t))}}function Fx({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function dB({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function fB({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function pB(e){return e!==null&&typeof e=="object"?e.valueOf():e}const hB=Math.sqrt(50),gB=Math.sqrt(10),mB=Math.sqrt(2);function nd(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>=hB?10:i>=gB?5:i>=mB?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?Fu(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Fu(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=xB.exec(e))?new qt(t[1],t[2],t[3],1):(t=bB.exec(e))?new qt(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=wB.exec(e))?Fu(t[1],t[2],t[3],t[4]):(t=SB.exec(e))?Fu(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=CB.exec(e))?Yx(t[1],t[2]/100,t[3]/100,1):(t=kB.exec(e))?Yx(t[1],t[2]/100,t[3]/100,t[4]):Ux.hasOwnProperty(e)?Hx(Ux[e]):e==="transparent"?new qt(NaN,NaN,NaN,0):null}function Hx(e){return new qt(e>>16&255,e>>8&255,e&255,1)}function Fu(e,t,n,r){return r<=0&&(e=t=n=NaN),new qt(e,t,n,r)}function $B(e){return e instanceof ou||(e=Po(e)),e?(e=e.rgb(),new qt(e.r,e.g,e.b,e.opacity)):new qt}function Bg(e,t,n,r){return arguments.length===1?$B(e):new qt(e,t,n,r??1)}function qt(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}ev(qt,Bg,TP(ou,{brighter(e){return e=e==null?od:Math.pow(od,e),new qt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Rl:Math.pow(Rl,e),new qt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new qt(Jo(this.r),Jo(this.g),Jo(this.b),id(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:Gx,formatHex:Gx,formatHex8:TB,formatRgb:Kx,toString:Kx}));function Gx(){return`#${Go(this.r)}${Go(this.g)}${Go(this.b)}`}function TB(){return`#${Go(this.r)}${Go(this.g)}${Go(this.b)}${Go((isNaN(this.opacity)?1:this.opacity)*255)}`}function Kx(){const e=id(this.opacity);return`${e===1?"rgb(":"rgba("}${Jo(this.r)}, ${Jo(this.g)}, ${Jo(this.b)}${e===1?")":`, ${e})`}`}function id(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Jo(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Go(e){return e=Jo(e),(e<16?"0":"")+e.toString(16)}function Yx(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Xn(e,t,n,r)}function MP(e){if(e instanceof Xn)return new Xn(e.h,e.s,e.l,e.opacity);if(e instanceof ou||(e=Po(e)),!e)return new Xn;if(e instanceof Xn)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 Xn(s,a,l,e.opacity)}function MB(e,t,n,r){return arguments.length===1?MP(e):new Xn(e,t,n,r??1)}function Xn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}ev(Xn,MB,TP(ou,{brighter(e){return e=e==null?od:Math.pow(od,e),new Xn(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Rl:Math.pow(Rl,e),new Xn(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 qt(Jp(e>=240?e-240:e+120,o,r),Jp(e,o,r),Jp(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new Xn(qx(this.h),zu(this.s),zu(this.l),id(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=id(this.opacity);return`${e===1?"hsl(":"hsla("}${qx(this.h)}, ${zu(this.s)*100}%, ${zu(this.l)*100}%${e===1?")":`, ${e})`}`}}));function qx(e){return e=(e||0)%360,e<0?e+360:e}function zu(e){return Math.max(0,Math.min(1,e||0))}function Jp(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 tv=e=>()=>e;function EB(e,t){return function(n){return e+n*t}}function _B(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 IB(e){return(e=+e)==1?EP:function(t,n){return n-t?_B(t,n,e):tv(isNaN(t)?n:t)}}function EP(e,t){var n=t-e;return n?EB(e,n):tv(isNaN(e)?t:e)}const Xx=function e(t){var n=IB(t);function r(o,i){var s=n((o=Bg(o)).r,(i=Bg(i)).r),a=n(o.g,i.g),l=n(o.b,i.b),u=EP(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 OB(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:sd(r,o)})),n=eh.lastIndex;return nt&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function WB(e,t,n){var r=e[0],o=e[1],i=t[0],s=t[1];return o2?HB:WB,l=u=null,f}function f(d){return d==null||isNaN(d=+d)?i:(l||(l=a(e.map(r),t,n)))(r(s(d)))}return f.invert=function(d){return s(o((u||(u=a(t,e.map(r),sd)))(d)))},f.domain=function(d){return arguments.length?(e=Array.from(d,UB),c()):e.slice()},f.range=function(d){return arguments.length?(t=Array.from(d),c()):t.slice()},f.rangeRound=function(d){return t=Array.from(d),n=zB,c()},f.clamp=function(d){return arguments.length?(s=d?!0:cr,c()):s!==cr},f.interpolate=function(d){return arguments.length?(n=d,c()):n},f.unknown=function(d){return arguments.length?(i=d,f):i},function(d,h){return r=d,o=h,c()}}function IP(){return rv()(cr,cr)}function GB(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function ad(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 Rs(e){return e=ad(Math.abs(e)),e?e[1]:NaN}function KB(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 YB(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var qB=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Tl(e){if(!(t=qB.exec(e)))throw new Error("invalid format: "+e);var t;return new ov({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]})}Tl.prototype=ov.prototype;function ov(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+""}ov.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 XB(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 OP;function QB(e,t){var n=ad(e,t);if(!n)return e+"";var r=n[0],o=n[1],i=o-(OP=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")+ad(e,Math.max(0,t+i-1))[0]}function Zx(e,t){var n=ad(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 Jx={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:GB,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)=>Zx(e*100,t),r:Zx,s:QB,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function eb(e){return e}var tb=Array.prototype.map,nb=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function ZB(e){var t=e.grouping===void 0||e.thousands===void 0?eb:KB(tb.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?eb:YB(tb.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(f){f=Tl(f);var d=f.fill,h=f.align,p=f.sign,y=f.symbol,x=f.zero,g=f.width,v=f.comma,m=f.precision,b=f.trim,S=f.type;S==="n"?(v=!0,S="g"):Jx[S]||(m===void 0&&(m=12),b=!0,S="g"),(x||d==="0"&&h==="=")&&(x=!0,d="0",h="=");var P=y==="$"?n:y==="#"&&/[boxX]/.test(S)?"0"+S.toLowerCase():"",R=y==="$"?r:/[%p]/.test(S)?s:"",$=Jx[S],M=/[defgprs%]/.test(S);m=m===void 0?6:/[gprs]/.test(S)?Math.max(1,Math.min(21,m)):Math.max(0,Math.min(20,m));function T(_){var N=P,I=R,O,L,A;if(S==="c")I=$(_)+I,_="";else{_=+_;var j=_<0||1/_<0;if(_=isNaN(_)?l:$(Math.abs(_),m),b&&(_=XB(_)),j&&+_==0&&p!=="+"&&(j=!1),N=(j?p==="("?p:a:p==="-"||p==="("?"":p)+N,I=(S==="s"?nb[8+OP/3]:"")+I+(j&&p==="("?")":""),M){for(O=-1,L=_.length;++OA||A>57){I=(A===46?o+_.slice(O+1):_.slice(O))+I,_=_.slice(0,O);break}}}v&&!x&&(_=t(_,1/0));var E=N.length+_.length+I.length,D=E>1)+N+_+I+D.slice(E);break;default:_=D+N+_+I;break}return i(_)}return T.toString=function(){return f+""},T}function c(f,d){var h=u((f=Tl(f),f.type="f",f)),p=Math.max(-8,Math.min(8,Math.floor(Rs(d)/3)))*3,y=Math.pow(10,-p),x=nb[8+p/3];return function(g){return h(y*g)+x}}return{format:u,formatPrefix:c}}var Bu,iv,AP;JB({thousands:",",grouping:[3],currency:["$",""]});function JB(e){return Bu=ZB(e),iv=Bu.format,AP=Bu.formatPrefix,Bu}function e9(e){return Math.max(0,-Rs(Math.abs(e)))}function t9(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Rs(t)/3)))*3-Rs(Math.abs(e)))}function n9(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Rs(t)-Rs(e))+1}function r9(e,t,n,r){var o=zg(e,t,n),i;switch(r=Tl(r??",f"),r.type){case"s":{var s=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(i=t9(o,s))&&(r.precision=i),AP(r,s)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(i=n9(o,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=i-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(i=e9(o))&&(r.precision=i-(r.type==="%")*2);break}}return iv(r)}function NP(e){var t=e.domain;return e.ticks=function(n){var r=t();return Dg(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var o=t();return r9(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=Fg(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 LP(){var e=IP();return e.copy=function(){return zf(e,LP())},pi.apply(e,arguments),NP(e)}function jP(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 l9(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 ib(e){return(t,n)=>-e(-t,n)}function u9(e){const t=e(rb,ob),n=t.domain;let r=10,o,i;function s(){return o=l9(r),i=a9(r),n()[0]<0?(o=ib(o),i=ib(i),e(o9,i9)):e(rb,ob),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 f=c0){for(;d<=h;++d)for(p=1;pc)break;g.push(y)}}else for(;d<=h;++d)for(p=r-1;p>=1;--p)if(y=d>0?p/i(-d):p*i(d),!(yc)break;g.push(y)}g.length*2{if(a==null&&(a=10),l==null&&(l=r===10?"s":","),typeof l!="function"&&(!(r%1)&&(l=Tl(l)).precision==null&&(l.trim=!0),l=iv(l)),a===1/0)return l;const u=Math.max(1,r*a/t.ticks().length);return c=>{let f=c/i(Math.round(o(c)));return f*rn(jP(n(),{floor:a=>i(Math.floor(o(a))),ceil:a=>i(Math.ceil(o(a)))})),t}function DP(){const e=u9(rv()).domain([1,10]);return e.copy=()=>zf(e,DP()).base(e.base()),pi.apply(e,arguments),e}function sb(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function c9(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function d9(e){return e<0?-e*e:e*e}function f9(e){var t=e(cr,cr),n=1;function r(){return n===1?e(cr,cr):n===.5?e(c9,d9):e(sb(n),sb(1/n))}return t.exponent=function(o){return arguments.length?(n=+o,r()):n},NP(t)}function sv(){var e=f9(rv());return e.copy=function(){return zf(e,sv()).exponent(e.exponent())},pi.apply(e,arguments),e}function p9(){return sv.apply(null,arguments).exponent(.5)}const th=new Date,nh=new Date;function lt(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(ult(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)=>(th.setTime(+i),nh.setTime(+s),e(th),e(nh),Math.floor(n(th,nh))),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 ld=lt(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);ld.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?lt(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):ld);ld.range;const _r=1e3,Mn=_r*60,Ir=Mn*60,Vr=Ir*24,av=Vr*7,ab=Vr*30,rh=Vr*365,Ko=lt(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*_r)},(e,t)=>(t-e)/_r,e=>e.getUTCSeconds());Ko.range;const lv=lt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*_r)},(e,t)=>{e.setTime(+e+t*Mn)},(e,t)=>(t-e)/Mn,e=>e.getMinutes());lv.range;const uv=lt(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Mn)},(e,t)=>(t-e)/Mn,e=>e.getUTCMinutes());uv.range;const cv=lt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*_r-e.getMinutes()*Mn)},(e,t)=>{e.setTime(+e+t*Ir)},(e,t)=>(t-e)/Ir,e=>e.getHours());cv.range;const dv=lt(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Ir)},(e,t)=>(t-e)/Ir,e=>e.getUTCHours());dv.range;const iu=lt(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Mn)/Vr,e=>e.getDate()-1);iu.range;const Bf=lt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Vr,e=>e.getUTCDate()-1);Bf.range;const FP=lt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Vr,e=>Math.floor(e/Vr));FP.range;function hi(e){return lt(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())*Mn)/av)}const Uf=hi(0),ud=hi(1),h9=hi(2),g9=hi(3),$s=hi(4),m9=hi(5),y9=hi(6);Uf.range;ud.range;h9.range;g9.range;$s.range;m9.range;y9.range;function gi(e){return lt(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)/av)}const Vf=gi(0),cd=gi(1),v9=gi(2),x9=gi(3),Ts=gi(4),b9=gi(5),w9=gi(6);Vf.range;cd.range;v9.range;x9.range;Ts.range;b9.range;w9.range;const fv=lt(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());fv.range;const pv=lt(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());pv.range;const Wr=lt(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());Wr.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:lt(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)});Wr.range;const Hr=lt(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());Hr.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:lt(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)});Hr.range;function zP(e,t,n,r,o,i){const s=[[Ko,1,_r],[Ko,5,5*_r],[Ko,15,15*_r],[Ko,30,30*_r],[i,1,Mn],[i,5,5*Mn],[i,15,15*Mn],[i,30,30*Mn],[o,1,Ir],[o,3,3*Ir],[o,6,6*Ir],[o,12,12*Ir],[r,1,Vr],[r,2,2*Vr],[n,1,av],[t,1,ab],[t,3,3*ab],[e,1,rh]];function a(u,c,f){const d=cx).right(s,d);if(h===s.length)return e.every(zg(u/rh,c/rh,f));if(h===0)return ld.every(Math.max(zg(u,c,f),1));const[p,y]=s[d/s[h-1][2]53)return null;"w"in z||(z.w=1),"Z"in z?(ne=ih(da(z.y,0,1)),U=ne.getUTCDay(),ne=U>4||U===0?cd.ceil(ne):cd(ne),ne=Bf.offset(ne,(z.V-1)*7),z.y=ne.getUTCFullYear(),z.m=ne.getUTCMonth(),z.d=ne.getUTCDate()+(z.w+6)%7):(ne=oh(da(z.y,0,1)),U=ne.getDay(),ne=U>4||U===0?ud.ceil(ne):ud(ne),ne=iu.offset(ne,(z.V-1)*7),z.y=ne.getFullYear(),z.m=ne.getMonth(),z.d=ne.getDate()+(z.w+6)%7)}else("W"in z||"U"in z)&&("w"in z||(z.w="u"in z?z.u%7:"W"in z?1:0),U="Z"in z?ih(da(z.y,0,1)).getUTCDay():oh(da(z.y,0,1)).getDay(),z.m=0,z.d="W"in z?(z.w+6)%7+z.W*7-(U+5)%7:z.w+z.U*7-(U+6)%7);return"Z"in z?(z.H+=z.Z/100|0,z.M+=z.Z%100,ih(z)):oh(z)}}function $(B,Z,K,z){for(var oe=0,ne=Z.length,U=K.length,X,ie;oe=U)return-1;if(X=Z.charCodeAt(oe++),X===37){if(X=Z.charAt(oe++),ie=S[X in lb?Z.charAt(oe++):X],!ie||(z=ie(B,K,z))<0)return-1}else if(X!=K.charCodeAt(z++))return-1}return z}function M(B,Z,K){var z=u.exec(Z.slice(K));return z?(B.p=c.get(z[0].toLowerCase()),K+z[0].length):-1}function T(B,Z,K){var z=h.exec(Z.slice(K));return z?(B.w=p.get(z[0].toLowerCase()),K+z[0].length):-1}function _(B,Z,K){var z=f.exec(Z.slice(K));return z?(B.w=d.get(z[0].toLowerCase()),K+z[0].length):-1}function N(B,Z,K){var z=g.exec(Z.slice(K));return z?(B.m=v.get(z[0].toLowerCase()),K+z[0].length):-1}function I(B,Z,K){var z=y.exec(Z.slice(K));return z?(B.m=x.get(z[0].toLowerCase()),K+z[0].length):-1}function O(B,Z,K){return $(B,t,Z,K)}function L(B,Z,K){return $(B,n,Z,K)}function A(B,Z,K){return $(B,r,Z,K)}function j(B){return s[B.getDay()]}function E(B){return i[B.getDay()]}function D(B){return l[B.getMonth()]}function F(B){return a[B.getMonth()]}function V(B){return o[+(B.getHours()>=12)]}function H(B){return 1+~~(B.getMonth()/3)}function ue(B){return s[B.getUTCDay()]}function ee(B){return i[B.getUTCDay()]}function Q(B){return l[B.getUTCMonth()]}function re(B){return a[B.getUTCMonth()]}function ge(B){return o[+(B.getUTCHours()>=12)]}function he(B){return 1+~~(B.getUTCMonth()/3)}return{format:function(B){var Z=P(B+="",m);return Z.toString=function(){return B},Z},parse:function(B){var Z=R(B+="",!1);return Z.toString=function(){return B},Z},utcFormat:function(B){var Z=P(B+="",b);return Z.toString=function(){return B},Z},utcParse:function(B){var Z=R(B+="",!0);return Z.toString=function(){return B},Z}}}var lb={"-":"",_:" ",0:"0"},pt=/^\s*\d+/,$9=/^%/,T9=/[\\^$*+?|[\]().{}]/g;function $e(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",i=o.length;return r+(i[t.toLowerCase(),n]))}function E9(e,t,n){var r=pt.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function _9(e,t,n){var r=pt.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function I9(e,t,n){var r=pt.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function O9(e,t,n){var r=pt.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function A9(e,t,n){var r=pt.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function ub(e,t,n){var r=pt.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function cb(e,t,n){var r=pt.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function N9(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 L9(e,t,n){var r=pt.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function j9(e,t,n){var r=pt.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function db(e,t,n){var r=pt.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function D9(e,t,n){var r=pt.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function fb(e,t,n){var r=pt.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function F9(e,t,n){var r=pt.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function z9(e,t,n){var r=pt.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function B9(e,t,n){var r=pt.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function U9(e,t,n){var r=pt.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function V9(e,t,n){var r=$9.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function W9(e,t,n){var r=pt.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function H9(e,t,n){var r=pt.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function pb(e,t){return $e(e.getDate(),t,2)}function G9(e,t){return $e(e.getHours(),t,2)}function K9(e,t){return $e(e.getHours()%12||12,t,2)}function Y9(e,t){return $e(1+iu.count(Wr(e),e),t,3)}function BP(e,t){return $e(e.getMilliseconds(),t,3)}function q9(e,t){return BP(e,t)+"000"}function X9(e,t){return $e(e.getMonth()+1,t,2)}function Q9(e,t){return $e(e.getMinutes(),t,2)}function Z9(e,t){return $e(e.getSeconds(),t,2)}function J9(e){var t=e.getDay();return t===0?7:t}function e7(e,t){return $e(Uf.count(Wr(e)-1,e),t,2)}function UP(e){var t=e.getDay();return t>=4||t===0?$s(e):$s.ceil(e)}function t7(e,t){return e=UP(e),$e($s.count(Wr(e),e)+(Wr(e).getDay()===4),t,2)}function n7(e){return e.getDay()}function r7(e,t){return $e(ud.count(Wr(e)-1,e),t,2)}function o7(e,t){return $e(e.getFullYear()%100,t,2)}function i7(e,t){return e=UP(e),$e(e.getFullYear()%100,t,2)}function s7(e,t){return $e(e.getFullYear()%1e4,t,4)}function a7(e,t){var n=e.getDay();return e=n>=4||n===0?$s(e):$s.ceil(e),$e(e.getFullYear()%1e4,t,4)}function l7(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+$e(t/60|0,"0",2)+$e(t%60,"0",2)}function hb(e,t){return $e(e.getUTCDate(),t,2)}function u7(e,t){return $e(e.getUTCHours(),t,2)}function c7(e,t){return $e(e.getUTCHours()%12||12,t,2)}function d7(e,t){return $e(1+Bf.count(Hr(e),e),t,3)}function VP(e,t){return $e(e.getUTCMilliseconds(),t,3)}function f7(e,t){return VP(e,t)+"000"}function p7(e,t){return $e(e.getUTCMonth()+1,t,2)}function h7(e,t){return $e(e.getUTCMinutes(),t,2)}function g7(e,t){return $e(e.getUTCSeconds(),t,2)}function m7(e){var t=e.getUTCDay();return t===0?7:t}function y7(e,t){return $e(Vf.count(Hr(e)-1,e),t,2)}function WP(e){var t=e.getUTCDay();return t>=4||t===0?Ts(e):Ts.ceil(e)}function v7(e,t){return e=WP(e),$e(Ts.count(Hr(e),e)+(Hr(e).getUTCDay()===4),t,2)}function x7(e){return e.getUTCDay()}function b7(e,t){return $e(cd.count(Hr(e)-1,e),t,2)}function w7(e,t){return $e(e.getUTCFullYear()%100,t,2)}function S7(e,t){return e=WP(e),$e(e.getUTCFullYear()%100,t,2)}function C7(e,t){return $e(e.getUTCFullYear()%1e4,t,4)}function k7(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Ts(e):Ts.ceil(e),$e(e.getUTCFullYear()%1e4,t,4)}function P7(){return"+0000"}function gb(){return"%"}function mb(e){return+e}function yb(e){return Math.floor(+e/1e3)}var Pi,HP,GP;R7({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 R7(e){return Pi=R9(e),HP=Pi.format,Pi.parse,GP=Pi.utcFormat,Pi.utcParse,Pi}function $7(e){return new Date(e)}function T7(e){return e instanceof Date?+e:+new Date(+e)}function hv(e,t,n,r,o,i,s,a,l,u){var c=IP(),f=c.invert,d=c.domain,h=u(".%L"),p=u(":%S"),y=u("%I:%M"),x=u("%I %p"),g=u("%a %d"),v=u("%b %d"),m=u("%B"),b=u("%Y");function S(P){return(l(P){const{axis:t}=e,n=Math.min(...t.data??[]),r=Math.max(...t.data??[]);return[n,r]},YP=e=>{const{series:t,axis:n,isDefaultAxis:r}=e;return Object.keys(t).filter(o=>t[o].yAxisKey===n.id||r&&t[o].yAxisKey===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]===null?[]:[u[0]]),Math.max(...c,...u[1]===null?[]:[u[1]])],t[i].stackedData[0]))??[null,null];return[o[0]===null?s:Math.min(s,o[0]),o[1]===null?a:Math.max(a,o[1])]},[null,null])},_7=e=>Object.keys(e.series).some(n=>e.series[n].layout==="horizontal")?YP(e):KP(e),I7=e=>Object.keys(e.series).some(n=>e.series[n].layout==="horizontal")?KP(e):YP(e),dd=(e,t)=>e[0]===null||e[1]===null?t:t[0]===null||t[1]===null?e:[Math.min(e[0],t[0]),Math.max(e[1],t[1])],O7=e=>{const{series:t,axis:n,isDefaultAxis:r}=e;return Object.keys(t).filter(o=>t[o].xAxisKey===n.id||t[o].xAxisKey===void 0&&r).reduce((o,i)=>{const s=t[i].data.reduce((a,{x:l})=>dd(a,[l,l]),[null,null]);return dd(o,s)},[null,null])},A7=e=>{const{series:t,axis:n,isDefaultAxis:r}=e;return Object.keys(t).filter(o=>t[o].yAxisKey===n.id||t[o].yAxisKey===void 0&&r).reduce((o,i)=>{const s=t[i].data.reduce((a,{y:l})=>dd(a,[l,l]),[null,null]);return dd(o,s)},[null,null])},N7=e=>{const{axis:t}=e,n=Math.min(...t.data??[]),r=Math.max(...t.data??[]);return[n,r]};function L7(e,t){return t.length===0?[null,null]:t.reduce((n,r)=>{const[o,i]=e(r);return n[0]===null?[Math.min(o,i),Math.max(o,i)]:[Math.min(o,i,n[0]),Math.max(o,i,n[1])]},e(t[0]))}const j7=e=>{const{series:t,axis:n,isDefaultAxis:r}=e;return Object.keys(t).filter(o=>t[o].yAxisKey===n.id||r&&t[o].yAxisKey===void 0).reduce((o,i)=>{const{area:s,stackedData:a}=t[i],c=L7(s!==void 0?h=>h:h=>[h[1],h[1]],a);if(o[0]===null)return c;if(c[0]===null)return o;const[f,d]=c;return[Math.min(f,o[0]),Math.max(d,o[1])]},[null,null])};function vb(e){return e.scaleType==="band"}function xb(e){return e.scaleType==="point"}function bb(e,t,n){switch(e){case"log":return DP(t,n);case"pow":return sv(t,n);case"sqrt":return p9(t,n);case"time":return M7(t,n);case"utc":return E7(t,n);default:return LP(t,n)}}function we(e){return function(){return e}}const wb=Math.abs,Rt=Math.atan2,kr=Math.cos,D7=Math.max,sh=Math.min,Wt=Math.sin,vt=Math.sqrt,Tt=1e-12,Ro=Math.PI,fd=Ro/2,vo=2*Ro;function F7(e){return e>1?0:e<-1?Ro:Math.acos(e)}function Sb(e){return e>=1?fd:e<=-1?-fd:Math.asin(e)}const Wg=Math.PI,Hg=2*Wg,zo=1e-6,z7=Hg-zo;function qP(e){this._+=e[0];for(let t=1,n=e.length;t=0))throw new Error(`invalid digits: ${e}`);if(t>15)return qP;const n=10**t;return function(r){this._+=r[0];for(let o=1,i=r.length;ozo)if(!(Math.abs(f*l-u*c)>zo)||!i)this._append`L${this._x1=t},${this._y1=n}`;else{let h=r-s,p=o-a,y=l*l+u*u,x=h*h+p*p,g=Math.sqrt(y),v=Math.sqrt(d),m=i*Math.tan((Wg-Math.acos((y+d-x)/(2*g*v)))/2),b=m/v,S=m/g;Math.abs(b-1)>zo&&this._append`L${t+b*c},${n+b*f}`,this._append`A${i},${i},0,0,${+(f*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,f=1^s,d=s?o-i:i-o;this._x1===null?this._append`M${u},${c}`:(Math.abs(this._x1-u)>zo||Math.abs(this._y1-c)>zo)&&this._append`L${u},${c}`,r&&(d<0&&(d=d%Hg+Hg),d>z7?this._append`A${r},${r},0,1,${f},${t-a},${n-l}A${r},${r},0,1,${f},${this._x1=u},${this._y1=c}`:d>zo&&this._append`A${r},${r},0,${+(d>=Wg)},${f},${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 Wf(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 U7(t)}function V7(e){return e.innerRadius}function W7(e){return e.outerRadius}function H7(e){return e.startAngle}function G7(e){return e.endAngle}function K7(e){return e&&e.padAngle}function Y7(e,t,n,r,o,i,s,a){var l=n-e,u=r-t,c=s-o,f=a-i,d=f*l-c*u;if(!(d*dO*O+L*L&&($=T,M=_),{cx:$,cy:M,x01:-c,y01:-f,x11:$*(o/S-1),y11:M*(o/S-1)}}function XP(){var e=V7,t=W7,n=we(0),r=null,o=H7,i=G7,s=K7,a=null,l=Wf(u);function u(){var c,f,d=+e.apply(this,arguments),h=+t.apply(this,arguments),p=o.apply(this,arguments)-fd,y=i.apply(this,arguments)-fd,x=wb(y-p),g=y>p;if(a||(a=c=l()),hTt))a.moveTo(0,0);else if(x>vo-Tt)a.moveTo(h*kr(p),h*Wt(p)),a.arc(0,0,h,p,y,!g),d>Tt&&(a.moveTo(d*kr(y),d*Wt(y)),a.arc(0,0,d,y,p,g));else{var v=p,m=y,b=p,S=y,P=x,R=x,$=s.apply(this,arguments)/2,M=$>Tt&&(r?+r.apply(this,arguments):vt(d*d+h*h)),T=sh(wb(h-d)/2,+n.apply(this,arguments)),_=T,N=T,I,O;if(M>Tt){var L=Sb(M/d*Wt($)),A=Sb(M/h*Wt($));(P-=L*2)>Tt?(L*=g?1:-1,b+=L,S-=L):(P=0,b=S=(p+y)/2),(R-=A*2)>Tt?(A*=g?1:-1,v+=A,m-=A):(R=0,v=m=(p+y)/2)}var j=h*kr(v),E=h*Wt(v),D=d*kr(S),F=d*Wt(S);if(T>Tt){var V=h*kr(m),H=h*Wt(m),ue=d*kr(b),ee=d*Wt(b),Q;if(xTt?N>Tt?(I=Uu(ue,ee,j,E,h,N,g),O=Uu(V,H,D,F,h,N,g),a.moveTo(I.cx+I.x01,I.cy+I.y01),NTt)||!(P>Tt)?a.lineTo(D,F):_>Tt?(I=Uu(D,F,V,H,d,-_,g),O=Uu(j,E,ue,ee,d,-_,g),a.lineTo(I.cx+I.x01,I.cy+I.y01),_=h;--p)a.point(m[p],b[p]);a.lineEnd(),a.areaEnd()}g&&(m[d]=+e(x,d,f),b[d]=+t(x,d,f),a.point(r?+r(x,d,f):m[d],n?+n(x,d,f):b[d]))}if(v)return a=null,v+""||null}function c(){return eR().defined(o).curve(s).context(i)}return u.x=function(f){return arguments.length?(e=typeof f=="function"?f:we(+f),r=null,u):e},u.x0=function(f){return arguments.length?(e=typeof f=="function"?f:we(+f),u):e},u.x1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:we(+f),u):r},u.y=function(f){return arguments.length?(t=typeof f=="function"?f:we(+f),n=null,u):t},u.y0=function(f){return arguments.length?(t=typeof f=="function"?f:we(+f),u):t},u.y1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:we(+f),u):n},u.lineX0=u.lineY0=function(){return c().x(e).y(t)},u.lineY1=function(){return c().x(e).y(n)},u.lineX1=function(){return c().x(r).y(t)},u.defined=function(f){return arguments.length?(o=typeof f=="function"?f:we(!!f),u):o},u.curve=function(f){return arguments.length?(s=f,i!=null&&(a=s(i)),u):s},u.context=function(f){return arguments.length?(f==null?i=a=null:a=s(i=f),u):i},u}function X7(e,t){return te?1:t>=e?0:NaN}function Q7(e){return e}function Z7(){var e=Q7,t=X7,n=null,r=we(0),o=we(vo),i=we(0);function s(a){var l,u=(a=Hf(a)).length,c,f,d=0,h=new Array(u),p=new Array(u),y=+r.apply(this,arguments),x=Math.min(vo,Math.max(-vo,o.apply(this,arguments)-y)),g,v=Math.min(Math.abs(x)/u,i.apply(this,arguments)),m=v*(x<0?-1:1),b;for(l=0;l0&&(d+=b);for(t!=null?h.sort(function(S,P){return t(p[S],p[P])}):n!=null&&h.sort(function(S,P){return n(a[S],a[P])}),l=0,f=d?(x-u*m)/d:0;l0?b*f:0)+m,p[c]={data:a[c],index:l,value:b,startAngle:y,endAngle:g,padAngle:v};return p}return s.value=function(a){return arguments.length?(e=typeof a=="function"?a:we(+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:we(+a),s):r},s.endAngle=function(a){return arguments.length?(o=typeof a=="function"?a:we(+a),s):o},s.padAngle=function(a){return arguments.length?(i=typeof a=="function"?a:we(+a),s):i},s}const tR={draw(e,t){const n=vt(t/Ro);e.moveTo(n,0),e.arc(0,0,n,0,vo)}},J7={draw(e,t){const n=vt(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},nR=vt(1/3),eU=nR*2,tU={draw(e,t){const n=vt(t/eU),r=n*nR;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},nU={draw(e,t){const n=vt(t),r=-n/2;e.rect(r,r,n,n)}},rU=.8908130915292852,rR=Wt(Ro/10)/Wt(7*Ro/10),oU=Wt(vo/10)*rR,iU=-kr(vo/10)*rR,sU={draw(e,t){const n=vt(t*rU),r=oU*n,o=iU*n;e.moveTo(0,-n),e.lineTo(r,o);for(let i=1;i<5;++i){const s=vo*i/5,a=kr(s),l=Wt(s);e.lineTo(l*n,-a*n),e.lineTo(a*r-l*o,l*r+a*o)}e.closePath()}},ah=vt(3),aU={draw(e,t){const n=-vt(t/(ah*3));e.moveTo(0,n*2),e.lineTo(-ah*n,-n),e.lineTo(ah*n,-n),e.closePath()}},xn=-.5,bn=vt(3)/2,Gg=1/vt(12),lU=(Gg/2+1)*3,uU={draw(e,t){const n=vt(t/lU),r=n/2,o=n*Gg,i=r,s=n*Gg+n,a=-i,l=s;e.moveTo(r,o),e.lineTo(i,s),e.lineTo(a,l),e.lineTo(xn*r-bn*o,bn*r+xn*o),e.lineTo(xn*i-bn*s,bn*i+xn*s),e.lineTo(xn*a-bn*l,bn*a+xn*l),e.lineTo(xn*r+bn*o,xn*o-bn*r),e.lineTo(xn*i+bn*s,xn*s-bn*i),e.lineTo(xn*a+bn*l,xn*l-bn*a),e.closePath()}},cU=[tR,J7,tU,nU,sU,aU,uU];function dU(e,t){let n=null,r=Wf(o);e=typeof e=="function"?e:we(e||tR),t=typeof t=="function"?t:we(t===void 0?64:+t);function o(){let i;if(n||(n=i=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),i)return n=null,i+""||null}return o.type=function(i){return arguments.length?(e=typeof i=="function"?i:we(i),o):e},o.size=function(i){return arguments.length?(t=typeof i=="function"?i:we(+i),o):t},o.context=function(i){return arguments.length?(n=i??null,o):n},o}function Cb(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function mv(e,t){this._context=e,this._k=(1-t)/6}mv.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Cb(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:Cb(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};(function e(t){function n(r){return new mv(r,t)}return n.tension=function(r){return e(+r)},n})(0);function fU(e,t,n){var r=e._x1,o=e._y1,i=e._x2,s=e._y2;if(e._l01_a>Tt){var a=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*a-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,o=(o*a-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>Tt){var u=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,c=3*e._l23_a*(e._l23_a+e._l12_a);i=(i*u+e._x1*e._l23_2a-t*e._l12_2a)/c,s=(s*u+e._y1*e._l23_2a-n*e._l12_2a)/c}e._context.bezierCurveTo(r,o,i,s,e._x2,e._y2)}function oR(e,t){this._context=e,this._alpha=t}oR.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:fU(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const pU=function e(t){function n(r){return t?new oR(r,t):new mv(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function kb(e){return e<0?-1:1}function Pb(e,t,n){var r=e._x1-e._x0,o=t-e._x1,i=(e._y1-e._y0)/(r||o<0&&-0),s=(n-e._y1)/(o||r<0&&-0),a=(i*o+s*r)/(r+o);return(kb(i)+kb(s))*Math.min(Math.abs(i),Math.abs(s),.5*Math.abs(a))||0}function Rb(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function lh(e,t,n){var r=e._x0,o=e._y0,i=e._x1,s=e._y1,a=(i-r)/3;e._context.bezierCurveTo(r+a,o+a*t,i-a,s-a*n,i,s)}function pd(e){this._context=e}pd.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:lh(this,this._t0,Rb(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,lh(this,Rb(this,n=Pb(this,e,t)),n);break;default:lh(this,this._t0,n=Pb(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function iR(e){this._context=new sR(e)}(iR.prototype=Object.create(pd.prototype)).point=function(e,t){pd.prototype.point.call(this,t,e)};function sR(e){this._context=e}sR.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,o,i){this._context.bezierCurveTo(t,e,r,n,i,o)}};function $b(e){return new pd(e)}function hU(e){return new iR(e)}function aR(e){this._context=e}aR.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=Tb(e),o=Tb(t),i=0,s=1;s=0;--t)o[t]=(s[t]-o[t+1])/i[t];for(i[n-1]=(e[n]+o[n-1])/2,t=0;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function mU(e){return new Gf(e,.5)}function yU(e){return new Gf(e,0)}function vU(e){return new Gf(e,1)}function Ms(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 xU(e,t){return e[t]}function bU(e){const t=[];return t.key=e,t}function lR(){var e=we([]),t=Es,n=Ms,r=xU;function o(i){var s=Array.from(e.apply(this,arguments),bU),a,l=s.length,u=-1,c;for(const f 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 CU(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 cR(e){var t=e.map(dR);return Es(e).sort(function(n,r){return t[n]-t[r]})}function dR(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:uh.none,stackingOffset:ch.none}):i[a]===void 0?(i[a]=o.length,o.push({ids:[s],stackingOrder:uh[l??(r==null?void 0:r.stackOrder)??"none"],stackingOffset:ch[u??(r==null?void 0:r.stackOffset)??"diverging"]})):(o[i[a]].ids.push(s),l!==void 0&&(o[i[a]].stackingOrder=uh[l]),u!==void 0&&(o[i[a]].stackingOffset=ch[u]))}),o};function yv(e,t){const n={};return Object.keys(e).forEach(r=>{n[r]=k({},e[r],{valueFormatter:e[r].valueFormatter??t})}),n}const MU=(e,t)=>{const{seriesOrder:n,series:r}=e,o=fR(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 Charts: 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,f=lR().keys(l.map(d=>{const h=r[d].dataKey;return r[d].data===void 0&&h!==void 0?h:d})).value((d,h)=>d[h]??0).order(c).offset(u)(i);l.forEach((d,h)=>{const p=r[d].dataKey;s[d]=k({layout:"vertical"},r[d],{data:p?t.map(y=>{const x=y[p];return typeof x!="number"?0:x}):r[d].data,stackedData:f[h].map(([y,x])=>[y,x])})})}),{seriesOrder:n,stackingGroups:o,series:yv(s,a=>a==null?"":a.toLocaleString())}},EU=MU,_U=({series:e,seriesOrder:t})=>({series:yv(e,n=>`(${n.x}, ${n.y})`),seriesOrder:t}),IU=_U,OU=(e,t)=>{const{seriesOrder:n,series:r}=e,o=fR(k({},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,f=lR().keys(l.map(d=>{const h=r[d].dataKey;return r[d].data===void 0&&h!==void 0?h:d})).value((d,h)=>d[h]??0).order(u).offset(c)(i);l.forEach((d,h)=>{const p=r[d].dataKey;s[d]=k({},r[d],{data:p?t.map(y=>{const x=y[p];return typeof x!="number"?null:x}):r[d].data,stackedData:f[h].map(([y,x])=>[y,x])})})}),{seriesOrder:n,stackingGroups:o,series:yv(s,a=>a==null?"":a.toLocaleString())}},AU=OU,NU=(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}},LU=e=>{const{seriesOrder:t,series:n}=e,r={};return t.forEach(o=>{const i=Z7().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(NU(n[o].sortingValues??"none"))(n[o].data.map(s=>s.value));r[o]=k({valueFormatter:s=>s.value.toLocaleString()},n[o],{data:n[o].data.map((s,a)=>k({},s,{id:s.id??`auto-generated-pie-id-${o}-${a}`},i[a])).map(s=>{var a,l;return k({},s,{formattedValue:((l=(a=n[o]).valueFormatter)==null?void 0:l.call(a,s))??s.value.toLocaleString()})})})}),{seriesOrder:t,series:r}},jU=LU,DU=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];function FU(e,t,n=DU){return e.type==="pie"?k({},e,{data:e.data.map((r,o)=>k({color:n[o%n.length]},r))}):k({color:n[t%n.length]},e)}const zU=["#02B2AF","#2E96FF","#B800D8","#60009B","#2731C8","#03008D"],BU=["#02B2AF","#72CCFF","#DA00FF","#9001CB","#2E96FF","#3B48E0"],UU=e=>e==="dark"?BU:zU,nr=w.createContext({}),Vu={bar:EU,scatter:IU,line:AU,pie:jU},VU=(e,t,n)=>{const r={};e.forEach((i,s)=>{var u;const{id:a=`auto-generated-id-${s}`,type:l}=i;if(r[l]===void 0&&(r[l]={series:{},seriesOrder:[]}),((u=r[l])==null?void 0:u.series[a])!==void 0)throw new Error(`MUI X Charts: series' id "${a}" is not unique.`);r[l].series[a]=k({id:a},FU(i,s,t)),r[l].seriesOrder.push(a)});const o={};return Object.keys(Vu).forEach(i=>{var s;r[i]!==void 0&&(o[i]=((s=Vu[i])==null?void 0:s.call(Vu,r[i],n))??r[i])}),o};function WU(e){const{series:t,dataset:n,colors:r=UU,children:o}=e,i=_t(),s=w.useMemo(()=>VU(t,typeof r=="function"?r(i.palette.mode):r,n),[t,r,i.palette.mode,n]);return C.jsx(nr.Provider,{value:s,children:o})}function Ml(e){return e.bandwidth!==void 0}function Mb(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 dh={start:0,extremities:0,end:1,middle:.5};function hd(e){const{scale:t,tickNumber:n,valueFormatter:r,tickInterval:o,tickPlacement:i="extremities",tickLabelPlacement:s="middle"}=e;return w.useMemo(()=>{if(Ml(t)){const l=t.domain();return t.bandwidth()>0?[...l.map(c=>({value:c,formattedValue:(r==null?void 0:r(c,{location:"tick"}))??`${c}`,offset:t(c)-(t.step()-t.bandwidth())/2+dh[i]*t.step(),labelOffset:s==="tick"?0:t.step()*(dh[s]-dh[i])})),...i==="extremities"?[{formattedValue:void 0,offset:t.range()[1],labelOffset:0}]:[]]:(typeof o=="function"&&l.filter(o)||typeof o=="object"&&o||l).map(c=>({value:c,formattedValue:(r==null?void 0:r(c,{location:"tick"}))??`${c}`,offset:t(c),labelOffset:0}))}return(typeof o=="object"?o:t.ticks(n)).map(l=>({value:l,formattedValue:(r==null?void 0:r(l,{location:"tick"}))??t.tickFormat(n)(l),offset:t(l),labelOffset:0}))},[t,o,n,r,i,s])}const Eb=.2,HU=.1,GU={bar:_7,scatter:O7,line:N7},KU={bar:I7,scatter:A7,line:j7},Bt=w.createContext({xAxis:{},yAxis:{},xAxisIds:[],yAxisIds:[]});function YU(e){const{xAxis:t,yAxis:n,dataset:r,children:o}=e,i=w.useContext(nr),s=w.useContext(tr),a=w.useMemo(()=>t==null?void 0:t.map(c=>{const f=c.dataKey;if(f===void 0||c.data!==void 0)return c;if(r===void 0)throw Error("MUI X Charts: x-axis uses `dataKey` but no `dataset` is provided.");return k({},c,{data:r.map(d=>d[f])})}),[t,r]),l=w.useMemo(()=>n==null?void 0:n.map(c=>{const f=c.dataKey;if(f===void 0||c.data!==void 0)return c;if(r===void 0)throw Error("MUI X Charts: y-axis uses `dataKey` but no `dataset` is provided.");return k({},c,{data:r.map(d=>d[f])})}),[n,r]),u=w.useMemo(()=>{const c=(x,g,v,m,b)=>{var _;const S=m[g],P=((_=i[g])==null?void 0:_.series)??{},[R,$]=S({series:P,axis:v,isDefaultAxis:b}),[M,T]=x;return M===null||T===null?[R,$]:R===null||$===null?[M,T]:[Math.min(R,M),Math.max($,T)]},f=(x,g,v)=>Object.keys(g).reduce((b,S)=>c(b,S,x,g,v),[null,null]),d=[...(a==null?void 0:a.map((x,g)=>k({id:`defaultized-x-axis-${g}`},x)))??[],...a===void 0||a.findIndex(({id:x})=>x===Ps)===-1?[{id:Ps,scaleType:"linear"}]:[]],h={};d.forEach((x,g)=>{const v=g===0,[m,b]=f(x,GU,v),S=x.reverse?[s.left+s.width,s.left]:[s.left,s.left+s.width];if(vb(x)){const N=x.categoryGapRatio??Eb,I=x.barGapRatio??HU;h[x.id]=k({categoryGapRatio:N,barGapRatio:I},x,{scale:rd(x.data,S).paddingInner(N).paddingOuter(N/2),tickNumber:x.data.length})}if(xb(x)&&(h[x.id]=k({},x,{scale:Bx(x.data,S),tickNumber:x.data.length})),x.scaleType==="band"||x.scaleType==="point")return;const P=x.scaleType??"linear",R=[x.min??m,x.max??b],$=Mb(k({},x,{range:S,domain:R})),M=bb(P,R,S).nice($),T=M.domain(),_=[x.min??T[0],x.max??T[1]];h[x.id]=k({},x,{scaleType:P,scale:M.domain(_),tickNumber:$})});const p=[...(l==null?void 0:l.map((x,g)=>k({id:`defaultized-y-axis-${g}`},x)))??[],...l===void 0||l.findIndex(({id:x})=>x===jx)===-1?[{id:jx,scaleType:"linear"}]:[]],y={};return p.forEach((x,g)=>{const v=g===0,[m,b]=f(x,KU,v),S=x.reverse?[s.top,s.top+s.height]:[s.top+s.height,s.top];if(vb(x)){const N=x.categoryGapRatio??Eb;y[x.id]=k({categoryGapRatio:N,barGapRatio:0},x,{scale:rd(x.data,[S[1],S[0]]).paddingInner(N).paddingOuter(N/2),tickNumber:x.data.length})}if(xb(x)&&(y[x.id]=k({},x,{scale:Bx(x.data,[S[1],S[0]]),tickNumber:x.data.length})),x.scaleType==="band"||x.scaleType==="point")return;const P=x.scaleType??"linear",R=[x.min??m,x.max??b],$=Mb(k({},x,{range:S,domain:R})),M=bb(P,R,S).nice($),T=M.domain(),_=[x.min??T[0],x.max??T[1]];y[x.id]=k({},x,{scaleType:P,scale:M.domain(_),tickNumber:$})}),{xAxis:h,yAxis:y,xAxisIds:d.map(({id:x})=>x),yAxisIds:p.map(({id:x})=>x)}},[s.height,s.left,s.top,s.width,i,a,l]);return C.jsx(Bt.Provider,{value:u,children:o})}function _s(e){return Ml(e)?t=>e(t)+e.bandwidth()/2:t=>e(t)}function qU(e){const{id:t,offset:n}=e,{left:r,top:o,width:i,height:s}=w.useContext(tr),a=k({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 XU(){return typeof window>"u"}const Ao={widthCache:{},cacheCount:0},QU=2e3,ZU={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},JU=["minWidth","maxWidth","width","minHeight","maxHeight","height","top","left","fontSize","padding","margin","paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom"],_b="mui_measurement_span";function pR(e,t){return JU.indexOf(e)>=0&&t===+t?`${t}px`:t}function hR(e){return e.split("").reduce((r,o)=>o===o.toUpperCase()?[...r,"-",o.toLowerCase()]:[...r,o],[]).join("")}const eV=e=>Object.keys(e).sort().reduce((t,n)=>`${t}${hR(n)}:${pR(n,e[n])};`,""),tV=(e,t={})=>{if(e==null||XU())return{width:0,height:0};const n=`${e}`,r=eV(t),o=`${n}-${r}`;if(Ao.widthCache[o])return Ao.widthCache[o];try{let i=document.getElementById(_b);i===null&&(i=document.createElement("span"),i.setAttribute("id",_b),i.setAttribute("aria-hidden","true"),document.body.appendChild(i));const s=k({},ZU,t);Object.keys(s).map(u=>(i.style[hR(u)]=pR(u,s[u]),u)),i.textContent=n;const a=i.getBoundingClientRect(),l={width:a.width,height:a.height};return Ao.widthCache[o]=l,Ao.cacheCount+1>QU?(Ao.cacheCount=0,Ao.widthCache={}):Ao.cacheCount+=1,l}catch{return{width:0,height:0}}};function vv({style:e,needsComputation:t,text:n}){return n.split(` -`).map(r=>k({text:r},t?tV(r,e):{width:0,height:0}))}const nV=["x","y","style","text","ownerState"],rV=["angle","textAnchor","dominantBaseline"];function El(e){const{x:t,y:n,style:r,text:o}=e,i=W(e,nV),s=r??{},{angle:a,textAnchor:l,dominantBaseline:u}=s,c=W(s,rV),f=w.useMemo(()=>vv({style:c,needsComputation:o.includes(` -`),text:o}),[c,o]);let d;switch(u){case"hanging":d=0;break;case"central":d=(f.length-1)/2*-f[0].height;break;default:d=(f.length-1)*-f[0].height;break}const h=[];return a&&h.push(`rotate(${a}, ${t}, ${n})`),h.length&&(i.transform=h.join(" ")),C.jsx("text",k({},i,{x:t,y:n,textAnchor:l,dominantBaseline:u,style:c,children:f.map((p,y)=>C.jsx("tspan",{x:t,dy:`${y===0?d:f[0].height}px`,dominantBaseline:u,children:p.text},y))}))}function gR(e){return ce("MuiChartsAxis",e)}const Wu=de("MuiChartsAxis",["root","line","tickContainer","tick","tickLabel","label","directionX","directionY","top","bottom","left","right"]),mR=G("g",{name:"MuiChartsAxis",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({[`& .${Wu.tickLabel}`]:k({},e.typography.caption,{fill:(e.vars||e).palette.text.primary}),[`& .${Wu.label}`]:k({},e.typography.body1,{fill:(e.vars||e).palette.text.primary}),[`& .${Wu.line}`]:{stroke:(e.vars||e).palette.text.primary,shapeRendering:"crispEdges",strokeWidth:1},[`& .${Wu.tick}`]:{stroke:(e.vars||e).palette.text.primary,shapeRendering:"crispEdges"}})),Ib=5;function oV(e,t,n=0){const r=Math.min(Math.abs(n)%180,Math.abs(Math.abs(n)%180-180)%180);if(r90-Ib)return t;const o=r*Math.PI/180,i=Math.atan2(t,e);return o{e||n(!0)},[e]),w.useEffect(()=>{e&&n(!0)},[e]),t}const sV=["scale","tickNumber","reverse"],aV=e=>{const{classes:t,position:n}=e;return le({root:["root","directionX",n],line:["line"],tickContainer:["tickContainer"],tick:["tick"],tickLabel:["tickLabel"],label:["label"]},gR,t)};function lV(e,{tickLabelStyle:t,tickLabelInterval:n,reverse:r,isMounted:o}){const i=e.map(u=>{if(!o||u.formattedValue===void 0)return k({},u,{width:0,height:0});const c=vv({style:t,needsComputation:!0,text:u.formattedValue});return k({},u,{width:Math.max(...c.map(f=>f.width)),height:Math.max(c.length*c[0].height)})});if(typeof n=="function")return i.map((u,c)=>k({},u,{skipLabel:!n(u.value,c)}));let s=0,a=0;const l=r?-1:1;return i.map((u,c)=>{const{width:f,offset:d,labelOffset:h,height:p}=u,y=oV(f,p,t==null?void 0:t.angle),x=d+h,g=1.2;return s=x-l*(g*y)/2,c>0&&l*s{const oe=Z??0,ne=E*(j+3);return C.jsxs("g",{transform:`translate(${B}, 0)`,className:N.tickContainer,children:[!h&&C.jsx(F,k({y2:E*j,className:N.tick},P==null?void 0:P.axisTick)),he!==void 0&&!K&&C.jsx(V,k({x:oe,y:ne},ue,{text:he.toString()}))]},z)}),y&&C.jsx("g",{className:N.label,children:C.jsx(H,k({},re,ge,{text:y}))})]})}const uV=["scale","tickNumber"],cV=e=>{const{classes:t,position:n}=e;return le({root:["root","directionY",n],line:["line"],tickContainer:["tickContainer"],tick:["tick"],tickLabel:["tickLabel"],label:["label"]},gR,t)},Nb={position:"left",disableLine:!1,disableTicks:!1,tickFontSize:12,labelFontSize:14,tickSize:6};function Lb(e){const t=ye({props:k({},Nb,e),name:"MuiChartsYAxis"}),{yAxisIds:n}=w.useContext(Bt),r=w.useContext(Bt),o=t.axisId??n[0],{yAxis:{[o]:{scale:i,tickNumber:s}}}=r,a=W(r.yAxis[o],uV),l=k({},Nb,a,t),{position:u,disableLine:c,disableTicks:f,tickFontSize:d,label:h,labelFontSize:p,labelStyle:y,tickLabelStyle:x,tickSize:g,valueFormatter:v,slots:m,slotProps:b,tickPlacement:S,tickLabelPlacement:P,tickInterval:R,tickLabelInterval:$}=l,M=_t(),T=cV(k({},l,{theme:M})),{left:_,top:N,width:I,height:O}=w.useContext(tr),L=f?4:g,A=hd({scale:i,tickNumber:s,valueFormatter:v,tickPlacement:S,tickLabelPlacement:P,tickInterval:R}),j=u==="right"?1:-1,E={x:j*(d+L+10),y:N+O/2},D=(m==null?void 0:m.axisLine)??"line",F=(m==null?void 0:m.axisTick)??"line",V=(m==null?void 0:m.axisTickLabel)??El,H=(m==null?void 0:m.axisLabel)??El,ue=wt({elementType:V,externalSlotProps:b==null?void 0:b.axisTickLabel,additionalProps:{style:k({fontSize:d,textAnchor:u==="right"?"start":"end",dominantBaseline:"central"},x),className:T.tickLabel},ownerState:{}}),ee=wt({elementType:H,externalSlotProps:b==null?void 0:b.axisLabel,additionalProps:{style:k({fontSize:p,angle:j*90,textAnchor:"middle",dominantBaseline:"auto"},y)},ownerState:{}});return C.jsxs(mR,{transform:`translate(${u==="right"?_+I:_}, 0)`,className:T.root,children:[!c&&C.jsx(D,k({y1:i.range()[0],y2:i.range()[1],className:T.line},b==null?void 0:b.axisLine)),A.map(({formattedValue:Q,offset:re,labelOffset:ge,value:he},B)=>{const Z=j*(L+2),K=ge,z=typeof $=="function"&&!($!=null&&$(he,B));return C.jsxs("g",{transform:`translate(0, ${re})`,className:T.tickContainer,children:[!f&&C.jsx(F,k({x2:j*L,className:T.tick},b==null?void 0:b.axisTick)),Q!==void 0&&!z&&C.jsx(V,k({x:Z,y:K,text:Q.toString()},ue))]},B)}),h&&C.jsx("g",{className:T.label,children:C.jsx(H,k({},E,ee,{text:h}))})]})}const Hu=e=>e==null?null:typeof e=="object"?e.axisId??null:e,Gu=(e,t,n)=>typeof e=="object"?k({},e,{slots:k({},t,e==null?void 0:e.slots),slotProps:k({},n,e==null?void 0:e.slotProps)}):{slots:t,slotProps:n};function yR(e){const{topAxis:t,leftAxis:n,rightAxis:r,bottomAxis:o,slots:i,slotProps:s}=e,{xAxis:a,xAxisIds:l,yAxis:u,yAxisIds:c}=w.useContext(Bt),f=Hu(n===void 0?c[0]:n),d=Hu(o===void 0?l[0]:o),h=Hu(t),p=Hu(r);if(h!==null&&!a[h])throw Error([`MUI X Charts: id used for top axis "${h}" is not defined.`,`Available ids are: ${l.join(", ")}.`].join(` + */var ru=w;function wz(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Sz=typeof Object.is=="function"?Object.is:wz,Cz=ru.useSyncExternalStore,kz=ru.useRef,Pz=ru.useEffect,Rz=ru.useMemo,$z=ru.useDebugValue;oP.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var i=kz(null);if(i.current===null){var s={hasValue:!1,value:null};i.current=s}else s=i.current;i=Rz(function(){function l(h){if(!u){if(u=!0,c=h,h=r(h),o!==void 0&&s.hasValue){var p=s.value;if(o(p,h))return f=p}return f=h}if(p=f,Sz(c,h))return p;var y=r(h);return o!==void 0&&o(p,y)?p:(c=h,f=y)}var u=!1,c,f,d=n===void 0?null:n;return[function(){return l(t())},d===null?void 0:function(){return l(d())}]},[t,n,r,o]);var a=Cz(e,i[0],i[1]);return Pz(function(){s.hasValue=!0,s.value=a},[a]),$z(a),a};rP.exports=oP;var Tz=rP.exports,un="default"in qa?ct:qa,kx=Symbol.for("react-redux-context"),Px=typeof globalThis<"u"?globalThis:{};function Mz(){if(!un.createContext)return{};const e=Px[kx]??(Px[kx]=new Map);let t=e.get(un.createContext);return t||(t=un.createContext(null),e.set(un.createContext,t)),t}var Co=Mz(),Ez=()=>{throw new Error("uSES not initialized!")};function By(e=Co){return function(){return un.useContext(e)}}var iP=By(),sP=Ez,_z=e=>{sP=e},Iz=(e,t)=>e===t;function Oz(e=Co){const t=e===Co?iP:By(e),n=(r,o={})=>{const{equalityFn:i=Iz,devModeChecks:s={}}=typeof o=="function"?{equalityFn:o}:o,{store:a,subscription:l,getServerState:u,stabilityCheck:c,identityFunctionCheck:f}=t();un.useRef(!0);const d=un.useCallback({[r.name](p){return r(p)}}[r.name],[r,c,s.stabilityCheck]),h=sP(l.addNestedSub,a.getState,u||a.getState,d,i);return un.useDebugValue(h),h};return Object.assign(n,{withTypes:()=>n}),n}var rt=Oz();function Az(e){e()}function Nz(){let e=null,t=null;return{clear(){e=null,t=null},notify(){Az(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=e;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const o=t={callback:n,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){!r||e===null||(r=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}var Rx={notify(){},get:()=>[]};function Lz(e,t){let n,r=Rx,o=0,i=!1;function s(y){c();const x=r.subscribe(y);let g=!1;return()=>{g||(g=!0,x(),f())}}function a(){r.notify()}function l(){p.onStateChange&&p.onStateChange()}function u(){return i}function c(){o++,n||(n=t?t.addNestedSub(l):e.subscribe(l),r=Nz())}function f(){o--,n&&o===0&&(n(),n=void 0,r.clear(),r=Rx)}function d(){i||(i=!0,c())}function h(){i&&(i=!1,f())}const p={addNestedSub:s,notifyNestedSubs:a,handleChangeWrapper:l,isSubscribed:u,trySubscribe:d,tryUnsubscribe:h,getListeners:()=>r};return p}var jz=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Dz=jz?un.useLayoutEffect:un.useEffect;function Fz({store:e,context:t,children:n,serverState:r,stabilityCheck:o="once",identityFunctionCheck:i="once"}){const s=un.useMemo(()=>{const u=Lz(e);return{store:e,subscription:u,getServerState:r?()=>r:void 0,stabilityCheck:o,identityFunctionCheck:i}},[e,r,o,i]),a=un.useMemo(()=>e.getState(),[e]);Dz(()=>{const{subscription:u}=s;return u.onStateChange=u.notifyNestedSubs,u.trySubscribe(),a!==e.getState()&&u.notifyNestedSubs(),()=>{u.tryUnsubscribe(),u.onStateChange=void 0}},[s,a]);const l=t||Co;return un.createElement(l.Provider,{value:s},n)}var zz=Fz;function aP(e=Co){const t=e===Co?iP:By(e),n=()=>{const{store:r}=t();return r};return Object.assign(n,{withTypes:()=>n}),n}var Bz=aP();function Uz(e=Co){const t=e===Co?Bz:aP(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var Uy=Uz();_z(Tz.useSyncExternalStoreWithSelector);const lP=[{abbreviation:"ARS",prefix:"$",suffix:"",locale:"es-AR"},{abbreviation:"BRL",prefix:"R$",suffix:"",locale:"pt-BR"},{abbreviation:"CHF",prefix:"",suffix:"Fr",locale:"de-CH"},{abbreviation:"CNY",prefix:"¥",suffix:"",locale:"zh-CN"},{abbreviation:"CZK",prefix:"",suffix:"Kč",locale:"cs-CZ"},{abbreviation:"DKK",prefix:"",suffix:"kr",locale:"da-DK"},{abbreviation:"EUR",prefix:"",suffix:"€",locale:"de-DE"},{abbreviation:"GBP",prefix:"£",suffix:"",locale:"en-GB"},{abbreviation:"HUF",prefix:"",suffix:"Ft",locale:"hu-HU"},{abbreviation:"INR",prefix:"₹",suffix:"",locale:"en-IN"},{abbreviation:"JPY",prefix:"¥",suffix:"",locale:"ja-JP"},{abbreviation:"KRW",prefix:"₩",suffix:"",locale:"ko-KR"},{abbreviation:"NOK",prefix:"",suffix:"kr",locale:"nb-NO"},{abbreviation:"PLN",prefix:"",suffix:"zł",locale:"pl-PL"},{abbreviation:"RUB",prefix:"",suffix:"₽",locale:"ru-RU"},{abbreviation:"SEK",prefix:"",suffix:"kr",locale:"sv-SE"},{abbreviation:"TRY",prefix:"",suffix:"₺",locale:"tr-TR"},{abbreviation:"TWD",prefix:"NT$",suffix:"",locale:"zh-TW"},{abbreviation:"USD",prefix:"$",suffix:"",locale:"en-US"},{abbreviation:"ZAR",prefix:"R",suffix:"",locale:"en-ZA"}],Vz=w.forwardRef(function(t,n){const{onChange:r,currency:o,...i}=t,{prefix:s,suffix:a}=lP.find(l=>l.abbreviation.startsWith(o.slice(0,2)))||{prefix:"",suffix:""};return C.jsx(bz,{...i,getInputRef:n,onValueChange:l=>{r({target:{name:t.name,value:l.value}})},thousandSeparator:!0,valueIsNumericString:!0,prefix:s,suffix:a})});function Wz(e){const t=rt(n=>n.settings.currency);return C.jsx(Uk,{variant:"outlined",...e,InputProps:{inputComponent:Vz,inputProps:{currency:t}}})}function uP(e){const{formatAsCurrency:t,...n}=e,r={placeholder:"0",variant:"outlined",size:"medium",...n};return t?C.jsx(Wz,{...r}):C.jsx(Uk,{...r,type:"number"})}function Ki({inputs:e}){return C.jsx(Ef,{component:"form",sx:{"& .MuiTextField-root":{m:1,width:"25ch"}},noValidate:!0,autoComplete:"off",children:e.map((t,n)=>C.jsx(uP,{...t},n))})}function gt(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var Hz=typeof Symbol=="function"&&Symbol.observable||"@@observable",$x=Hz,Xp=()=>Math.random().toString(36).substring(7).split("").join("."),Gz={INIT:`@@redux/INIT${Xp()}`,REPLACE:`@@redux/REPLACE${Xp()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Xp()}`},Qc=Gz;function Vy(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function cP(e,t,n){if(typeof e!="function")throw new Error(gt(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(gt(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(gt(1));return n(cP)(e,t)}let r=e,o=t,i=new Map,s=i,a=0,l=!1;function u(){s===i&&(s=new Map,i.forEach((x,g)=>{s.set(g,x)}))}function c(){if(l)throw new Error(gt(3));return o}function f(x){if(typeof x!="function")throw new Error(gt(4));if(l)throw new Error(gt(5));let g=!0;u();const v=a++;return s.set(v,x),function(){if(g){if(l)throw new Error(gt(6));g=!1,u(),s.delete(v),i=null}}}function d(x){if(!Vy(x))throw new Error(gt(7));if(typeof x.type>"u")throw new Error(gt(8));if(typeof x.type!="string")throw new Error(gt(17));if(l)throw new Error(gt(9));try{l=!0,o=r(o,x)}finally{l=!1}return(i=s).forEach(v=>{v()}),x}function h(x){if(typeof x!="function")throw new Error(gt(10));r=x,d({type:Qc.REPLACE})}function p(){const x=f;return{subscribe(g){if(typeof g!="object"||g===null)throw new Error(gt(11));function v(){const b=g;b.next&&b.next(c())}return v(),{unsubscribe:x(v)}},[$x](){return this}}}return d({type:Qc.INIT}),{dispatch:d,subscribe:f,getState:c,replaceReducer:h,[$x]:p}}function Kz(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:Qc.INIT})>"u")throw new Error(gt(12));if(typeof n(void 0,{type:Qc.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(gt(13))})}function Wy(e){const t=Object.keys(e),n={};for(let i=0;i"u")throw a&&a.type,new Error(gt(14));u[f]=p,l=l||p!==h}return l=l||r.length!==Object.keys(s).length,l?u:s}}function Zc(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function Yz(...e){return t=>(n,r)=>{const o=t(n,r);let i=()=>{throw new Error(gt(15))};const s={getState:o.getState,dispatch:(l,...u)=>i(l,...u)},a=e.map(l=>l(s));return i=Zc(...a)(o.dispatch),{...o,dispatch:i}}}function qz(e){return Vy(e)&&"type"in e&&typeof e.type=="string"}var dP=Symbol.for("immer-nothing"),Tx=Symbol.for("immer-draftable"),hn=Symbol.for("immer-state");function qn(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Cs=Object.getPrototypeOf;function ko(e){return!!e&&!!e[hn]}function Ur(e){var t;return e?fP(e)||Array.isArray(e)||!!e[Tx]||!!((t=e.constructor)!=null&&t[Tx])||Nf(e)||Lf(e):!1}var Xz=Object.prototype.constructor.toString();function fP(e){if(!e||typeof e!="object")return!1;const t=Cs(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===Xz}function Jc(e,t){Af(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function Af(e){const t=e[hn];return t?t.type_:Array.isArray(e)?1:Nf(e)?2:Lf(e)?3:0}function Ig(e,t){return Af(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function pP(e,t,n){const r=Af(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function Qz(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Nf(e){return e instanceof Map}function Lf(e){return e instanceof Set}function Fo(e){return e.copy_||e.base_}function Og(e,t){if(Nf(e))return new Map(e);if(Lf(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&fP(e))return Cs(e)?{...e}:Object.assign(Object.create(null),e);const n=Object.getOwnPropertyDescriptors(e);delete n[hn];let r=Reflect.ownKeys(n);for(let o=0;o1&&(e.set=e.add=e.clear=e.delete=Zz),Object.freeze(e),t&&Object.entries(e).forEach(([n,r])=>Hy(r,!0))),e}function Zz(){qn(2)}function jf(e){return Object.isFrozen(e)}var Jz={};function li(e){const t=Jz[e];return t||qn(0,e),t}var kl;function hP(){return kl}function e8(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Mx(e,t){t&&(li("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Ag(e){Ng(e),e.drafts_.forEach(t8),e.drafts_=null}function Ng(e){e===kl&&(kl=e.parent_)}function Ex(e){return kl=e8(kl,e)}function t8(e){const t=e[hn];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function _x(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[hn].modified_&&(Ag(t),qn(4)),Ur(e)&&(e=ed(t,e),t.parent_||td(t,e)),t.patches_&&li("Patches").generateReplacementPatches_(n[hn].base_,e,t.patches_,t.inversePatches_)):e=ed(t,n,[]),Ag(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==dP?e:void 0}function ed(e,t,n){if(jf(t))return t;const r=t[hn];if(!r)return Jc(t,(o,i)=>Ix(e,r,t,o,i,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return td(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const o=r.copy_;let i=o,s=!1;r.type_===3&&(i=new Set(o),o.clear(),s=!0),Jc(i,(a,l)=>Ix(e,r,o,a,l,n,s)),td(e,o,!1),n&&e.patches_&&li("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function Ix(e,t,n,r,o,i,s){if(ko(o)){const a=i&&t&&t.type_!==3&&!Ig(t.assigned_,r)?i.concat(r):void 0,l=ed(e,o,a);if(pP(n,r,l),ko(l))e.canAutoFreeze_=!1;else return}else s&&n.add(o);if(Ur(o)&&!jf(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;ed(e,o),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,r)&&td(e,o)}}function td(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Hy(t,n)}function n8(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:hP(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=r,i=Gy;n&&(o=[r],i=Pl);const{revoke:s,proxy:a}=Proxy.revocable(o,i);return r.draft_=a,r.revoke_=s,a}var Gy={get(e,t){if(t===hn)return e;const n=Fo(e);if(!Ig(n,t))return r8(e,n,t);const r=n[t];return e.finalized_||!Ur(r)?r:r===Qp(e.base_,t)?(Zp(e),e.copy_[t]=jg(r,e)):r},has(e,t){return t in Fo(e)},ownKeys(e){return Reflect.ownKeys(Fo(e))},set(e,t,n){const r=gP(Fo(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const o=Qp(Fo(e),t),i=o==null?void 0:o[hn];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(Qz(n,o)&&(n!==void 0||Ig(e.base_,t)))return!0;Zp(e),Lg(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return Qp(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,Zp(e),Lg(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Fo(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){qn(11)},getPrototypeOf(e){return Cs(e.base_)},setPrototypeOf(){qn(12)}},Pl={};Jc(Gy,(e,t)=>{Pl[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Pl.deleteProperty=function(e,t){return Pl.set.call(this,e,t,void 0)};Pl.set=function(e,t,n){return Gy.set.call(this,e[0],t,n,e[0])};function Qp(e,t){const n=e[hn];return(n?Fo(n):e)[t]}function r8(e,t,n){var o;const r=gP(t,n);return r?"value"in r?r.value:(o=r.get)==null?void 0:o.call(e.draft_):void 0}function gP(e,t){if(!(t in e))return;let n=Cs(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Cs(n)}}function Lg(e){e.modified_||(e.modified_=!0,e.parent_&&Lg(e.parent_))}function Zp(e){e.copy_||(e.copy_=Og(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var o8=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const i=n;n=t;const s=this;return function(l=i,...u){return s.produce(l,c=>n.call(this,c,...u))}}typeof n!="function"&&qn(6),r!==void 0&&typeof r!="function"&&qn(7);let o;if(Ur(t)){const i=Ex(this),s=jg(t,void 0);let a=!0;try{o=n(s),a=!1}finally{a?Ag(i):Ng(i)}return Mx(i,r),_x(o,i)}else if(!t||typeof t!="object"){if(o=n(t),o===void 0&&(o=t),o===dP&&(o=void 0),this.autoFreeze_&&Hy(o,!0),r){const i=[],s=[];li("Patches").generateReplacementPatches_(t,o,i,s),r(i,s)}return o}else qn(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(s,...a)=>this.produceWithPatches(s,l=>t(l,...a));let r,o;return[this.produce(t,n,(s,a)=>{r=s,o=a}),r,o]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){Ur(e)||qn(8),ko(e)&&(e=mP(e));const t=Ex(this),n=jg(e,void 0);return n[hn].isManual_=!0,Ng(t),n}finishDraft(e,t){const n=e&&e[hn];(!n||!n.isManual_)&&qn(9);const{scope_:r}=n;return Mx(r,t),_x(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const o=t[n];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}n>-1&&(t=t.slice(n+1));const r=li("Patches").applyPatches_;return ko(e)?r(e,t):this.produce(e,o=>r(o,t))}};function jg(e,t){const n=Nf(e)?li("MapSet").proxyMap_(e,t):Lf(e)?li("MapSet").proxySet_(e,t):n8(e,t);return(t?t.scope_:hP()).drafts_.push(n),n}function mP(e){return ko(e)||qn(10,e),yP(e)}function yP(e){if(!Ur(e)||jf(e))return e;const t=e[hn];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Og(e,t.scope_.immer_.useStrictShallowCopy_)}else n=Og(e,!0);return Jc(n,(r,o)=>{pP(n,r,yP(o))}),t&&(t.finalized_=!1),n}var gn=new o8,vP=gn.produce;gn.produceWithPatches.bind(gn);gn.setAutoFreeze.bind(gn);gn.setUseStrictShallowCopy.bind(gn);gn.applyPatches.bind(gn);gn.createDraft.bind(gn);gn.finishDraft.bind(gn);function i8(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function s8(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function a8(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var Ox=e=>Array.isArray(e)?e:[e];function l8(e){const t=Array.isArray(e[0])?e[0]:e;return a8(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function u8(e,t){const n=[],{length:r}=e;for(let o=0;o{n=ju(),s.resetResultsCount()},s.resultsCount=()=>i,s.resetResultsCount=()=>{i=0},s}function xP(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...o)=>{let i=0,s=0,a,l={},u=o.pop();typeof u=="object"&&(l=u,u=o.pop()),i8(u,`createSelector expects an output function after the inputs, but received: [${typeof u}]`);const c={...n,...l},{memoize:f,memoizeOptions:d=[],argsMemoize:h=Ky,argsMemoizeOptions:p=[],devModeChecks:y={}}=c,x=Ox(d),g=Ox(p),v=l8(o),m=f(function(){return i++,u.apply(null,arguments)},...x),b=h(function(){s++;const P=u8(v,arguments);return a=m.apply(null,P),a},...g);return Object.assign(b,{resultFunc:u,memoizedResultFunc:m,dependencies:v,dependencyRecomputations:()=>s,resetDependencyRecomputations:()=>{s=0},lastResult:()=>a,recomputations:()=>i,resetRecomputations:()=>{i=0},memoize:f,argsMemoize:h})};return Object.assign(r,{withTypes:()=>r}),r}var p8=xP(Ky),h8=Object.assign((e,t=p8)=>{s8(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),r=n.map(i=>e[i]);return t(r,(...i)=>i.reduce((s,a,l)=>(s[n[l]]=a,s),{}))},{withTypes:()=>h8});function bP(e){return({dispatch:n,getState:r})=>o=>i=>typeof i=="function"?i(n,r,e):o(i)}var g8=bP(),m8=bP,y8=(...e)=>{const t=xP(...e),n=Object.assign((...r)=>{const o=t(...r),i=(s,...a)=>o(ko(s)?mP(s):s,...a);return Object.assign(i,o),i},{withTypes:()=>n});return n};y8(Ky);var v8=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Zc:Zc.apply(null,arguments)};function ks(e,t){function n(...r){if(t){let o=t(...r);if(!o)throw new Error(tn(0));return{type:e,payload:o.payload,..."meta"in o&&{meta:o.meta},..."error"in o&&{error:o.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>qz(r)&&r.type===e,n}var wP=class $a extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,$a.prototype)}static get[Symbol.species](){return $a}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new $a(...t[0].concat(this)):new $a(...t.concat(this))}};function Nx(e){return Ur(e)?vP(e,()=>{}):e}function Lx(e,t,n){if(e.has(t)){let o=e.get(t);return n.update&&(o=n.update(o,t,e),e.set(t,o)),o}if(!n.insert)throw new Error(tn(10));const r=n.insert(t,e);return e.set(t,r),r}function x8(e){return typeof e=="boolean"}var b8=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:o=!0,actionCreatorCheck:i=!0}=t??{};let s=new wP;return n&&(x8(n)?s.push(g8):s.push(m8(n.extraArgument))),s},w8="RTK_autoBatch",SP=e=>t=>{setTimeout(t,e)},S8=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:SP(10),C8=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let o=!0,i=!1,s=!1;const a=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?S8:e.type==="callback"?e.queueNotification:SP(e.timeout),u=()=>{s=!1,i&&(i=!1,a.forEach(c=>c()))};return Object.assign({},r,{subscribe(c){const f=()=>o&&c(),d=r.subscribe(f);return a.add(c),()=>{d(),a.delete(c)}},dispatch(c){var f;try{return o=!((f=c==null?void 0:c.meta)!=null&&f[w8]),i=!o,i&&(s||(s=!0,l(u))),r.dispatch(c)}finally{o=!0}}})},k8=e=>function(n){const{autoBatch:r=!0}=n??{};let o=new wP(e);return r&&o.push(C8(typeof r=="object"?r:void 0)),o},P8=!0;function R8(e){const t=b8(),{reducer:n=void 0,middleware:r,devTools:o=!0,preloadedState:i=void 0,enhancers:s=void 0}=e||{};let a;if(typeof n=="function")a=n;else if(Vy(n))a=Wy(n);else throw new Error(tn(1));let l;typeof r=="function"?l=r(t):l=t();let u=Zc;o&&(u=v8({trace:!P8,...typeof o=="object"&&o}));const c=Yz(...l),f=k8(c);let d=typeof s=="function"?s(f):f();const h=u(...d);return cP(a,i,h)}function CP(e){const t={},n=[];let r;const o={addCase(i,s){const a=typeof i=="string"?i:i.type;if(!a)throw new Error(tn(28));if(a in t)throw new Error(tn(29));return t[a]=s,o},addMatcher(i,s){return n.push({matcher:i,reducer:s}),o},addDefaultCase(i){return r=i,o}};return e(o),[t,n,r]}function $8(e){return typeof e=="function"}function T8(e,t){let[n,r,o]=CP(t),i;if($8(e))i=()=>Nx(e());else{const a=Nx(e);i=()=>a}function s(a=i(),l){let u=[n[l.type],...r.filter(({matcher:c})=>c(l)).map(({reducer:c})=>c)];return u.filter(c=>!!c).length===0&&(u=[o]),u.reduce((c,f)=>{if(f)if(ko(c)){const h=f(c,l);return h===void 0?c:h}else{if(Ur(c))return vP(c,d=>f(d,l));{const d=f(c,l);if(d===void 0){if(c===null)return c;throw new Error(tn(9))}return d}}return c},a)}return s.getInitialState=i,s}var M8="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",E8=(e=21)=>{let t="",n=e;for(;n--;)t+=M8[Math.random()*64|0];return t},_8=Symbol.for("rtk-slice-createasyncthunk");function I8(e,t){return`${e}/${t}`}function O8({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[_8];return function(o){const{name:i,reducerPath:s=i}=o;if(!i)throw new Error(tn(11));typeof process<"u";const a=(typeof o.reducers=="function"?o.reducers(N8()):o.reducers)||{},l=Object.keys(a),u={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},c={addCase(m,b){const S=typeof m=="string"?m:m.type;if(!S)throw new Error(tn(12));if(S in u.sliceCaseReducersByType)throw new Error(tn(13));return u.sliceCaseReducersByType[S]=b,c},addMatcher(m,b){return u.sliceMatchers.push({matcher:m,reducer:b}),c},exposeAction(m,b){return u.actionCreators[m]=b,c},exposeCaseReducer(m,b){return u.sliceCaseReducersByName[m]=b,c}};l.forEach(m=>{const b=a[m],S={reducerName:m,type:I8(i,m),createNotation:typeof o.reducers=="function"};j8(b)?F8(S,b,c,t):L8(S,b,c)});function f(){const[m={},b=[],S=void 0]=typeof o.extraReducers=="function"?CP(o.extraReducers):[o.extraReducers],P={...m,...u.sliceCaseReducersByType};return T8(o.initialState,R=>{for(let $ in P)R.addCase($,P[$]);for(let $ of u.sliceMatchers)R.addMatcher($.matcher,$.reducer);for(let $ of b)R.addMatcher($.matcher,$.reducer);S&&R.addDefaultCase(S)})}const d=m=>m,h=new Map;let p;function y(m,b){return p||(p=f()),p(m,b)}function x(){return p||(p=f()),p.getInitialState()}function g(m,b=!1){function S(R){let $=R[m];return typeof $>"u"&&b&&($=x()),$}function P(R=d){const $=Lx(h,b,{insert:()=>new WeakMap});return Lx($,R,{insert:()=>{const M={};for(const[T,_]of Object.entries(o.selectors??{}))M[T]=A8(_,R,x,b);return M}})}return{reducerPath:m,getSelectors:P,get selectors(){return P(S)},selectSlice:S}}const v={name:i,reducer:y,actions:u.actionCreators,caseReducers:u.sliceCaseReducersByName,getInitialState:x,...g(s),injectInto(m,{reducerPath:b,...S}={}){const P=b??s;return m.inject({reducerPath:P,reducer:y},S),{...v,...g(P,!0)}}};return v}}function A8(e,t,n,r){function o(i,...s){let a=t(i);return typeof a>"u"&&r&&(a=n()),e(a,...s)}return o.unwrapped=e,o}var Df=O8();function N8(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function L8({type:e,reducerName:t,createNotation:n},r,o){let i,s;if("reducer"in r){if(n&&!D8(r))throw new Error(tn(17));i=r.reducer,s=r.prepare}else i=r;o.addCase(e,i).exposeCaseReducer(t,i).exposeAction(t,s?ks(e,s):ks(e))}function j8(e){return e._reducerDefinitionType==="asyncThunk"}function D8(e){return e._reducerDefinitionType==="reducerWithPrepare"}function F8({type:e,reducerName:t},n,r,o){if(!o)throw new Error(tn(18));const{payloadCreator:i,fulfilled:s,pending:a,rejected:l,settled:u,options:c}=n,f=o(e,i,c);r.exposeAction(t,f),s&&r.addCase(f.fulfilled,s),a&&r.addCase(f.pending,a),l&&r.addCase(f.rejected,l),u&&r.addMatcher(f.settled,u),r.exposeCaseReducer(t,{fulfilled:s||Du,pending:a||Du,rejected:l||Du,settled:u||Du})}function Du(){}var z8=(e,t)=>{if(typeof e!="function")throw new Error(tn(32))},Yy="listenerMiddleware",B8=e=>{let{type:t,actionCreator:n,matcher:r,predicate:o,effect:i}=e;if(t)o=ks(t).match;else if(n)t=n.type,o=n.match;else if(r)o=r;else if(!o)throw new Error(tn(21));return z8(i),{predicate:o,type:t,effect:i}},U8=Object.assign(e=>{const{type:t,predicate:n,effect:r}=B8(e);return{id:E8(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(tn(22))}}},{withTypes:()=>U8}),V8=Object.assign(ks(`${Yy}/add`),{withTypes:()=>V8});ks(`${Yy}/removeAll`);var W8=Object.assign(ks(`${Yy}/remove`),{withTypes:()=>W8});function tn(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}const H8={propertyPrice:1e6,depositPercentage:10,yearlyOwnershipCost:2500,loanTerm:30,interestRate:4.5,buyingCostsPercentage:1,sellingCostsPercentage:1,propertyValueGrowthPercentage:3},qy=Df({name:"buying",initialState:H8,reducers:{setBuyingValue:(e,t)=>{e[t.payload.key]=t.payload.value}}}),{setBuyingValue:G8}=qy.actions;qy.reducer;const K8={monthlyRent:1500,initialInvestment:3e3,yearlyRentGrowth:3,investDifference:!0,alternativeInvestmentReturnPercentage:7},Xy=Df({name:"renting",initialState:K8,reducers:{setRentingValue:(e,t)=>{e[t.payload.key]=t.payload.value},toggleInvestDifference:(e,t)=>{e.investDifference=t.payload}}}),{setRentingValue:Y8,toggleInvestDifference:q8}=Xy.actions;Xy.reducer;const X8={yearsStaying:5},Qy=Df({name:"futurePredictions",initialState:X8,reducers:{setFuturePredictionsValue:(e,t)=>{e[t.payload.key]=t.payload.value}}}),{setFuturePredictionsValue:Q8}=Qy.actions;Qy.reducer;const Z8={buying:G8,renting:Y8,futurePredictions:Q8};function Zy(e){const t=rt(o=>o.calculator[e]),n=o=>i=>{const s=Z8[e],a=parseFloat(i.target.value);r(s({key:o,value:a}))},r=Uy();return{stateSlice:t,createStateUpdateFc:n,dispatch:r}}function J8({initialPropertyValue:e,depositPercentage:t,loanTerm:n,interestRate:r}){const o=e*(t/100),i=e-o,s=nB({initialPropertyValue:e,deposit:o,loanTerm:n,interestRate:r});return{loanAmount:i,mortgagePerMonth:s,deposit:o}}function kP({yearsStaying:e,yearlyOwnershipCost:t,propertyValueGrowthPercentage:n,loanAmount:r,mortgagePerMonth:o,interestRate:i,initialPropertyValue:s}){let a=r,l=0,u=0,c=0,f=s,d=0,h=0,p=0;const y=[];for(;p0&&(x=a*(i/100/12),g=o-x,a-=g,u+=x,c+=g,l+=o),h+=t/12;const v=f*(n/100/12);d+=v,f+=v;const m={interestPaid:x,principalPaid:g,increaseInPropertyValue:v,ownershipCost:t/12,buyingCosts:0,sellingCosts:0};y.push(m),p++}return a<0&&(a=0),{remainingBalance:a,totalMortgagePaid:l,totalInterestPaid:u,totalPrincipalPaid:c,totalPropertyValueIncrease:d,totalOwnershipCosts:h,monthValueChanges:y,endPropertyValue:f}}function eB({initialPropertyValue:e,endPropertyValue:t,buyingCostsPercentage:n,sellingCostsPercentage:r,monthValueChanges:o}){const i=e*(n/100),s=t*(r/100);return o.length>0&&(o[0].buyingCosts=i,o[o.length-1].sellingCosts=s),{buyingCost:i,sellingCost:s}}function tB(e){if(e.loanTerm===0||e.yearsStaying===0)return{totalInterestPaid:0,remainingBalance:0,totalPropertyValueIncrease:0,totalOwnershipCosts:0,monthValueChanges:[],yearValueChanges:[],yearValueChangeTotals:[],buyingCost:0,sellingCost:0,totalCosts:0,totalBuying:0,totalMortgagePaid:0,totalPrincipalPaid:0,mortgagePerMonth:0,deposit:0,initialPropertyValue:e.initialPropertyValue};const{loanAmount:t,mortgagePerMonth:n,deposit:r}=J8(e),{remainingBalance:o,totalMortgagePaid:i,totalInterestPaid:s,totalPropertyValueIncrease:a,totalOwnershipCosts:l,monthValueChanges:u,endPropertyValue:c,totalPrincipalPaid:f}=kP({...e,loanAmount:t,mortgagePerMonth:n}),{buyingCost:d,sellingCost:h}=eB({...e,endPropertyValue:c,monthValueChanges:u}),p=d+r+i+o+l+h,y=a+e.initialPropertyValue-p,x=u.reduce((m,b,S)=>(S%12===0?m.push(structuredClone(b)):(m[m.length-1].interestPaid+=b.interestPaid,m[m.length-1].principalPaid+=b.principalPaid,m[m.length-1].increaseInPropertyValue+=b.increaseInPropertyValue,m[m.length-1].ownershipCost+=b.ownershipCost,m[m.length-1].buyingCosts+=b.buyingCosts,m[m.length-1].sellingCosts+=b.sellingCosts),m),[]);let g=0;const v=x.reduce((m,b)=>{let S=0;return S-=b.interestPaid,S+=b.increaseInPropertyValue,S-=b.ownershipCost,S-=b.buyingCosts,S-=b.sellingCosts,g+=S,m.push(g),m},[]);return{totalInterestPaid:s,remainingBalance:o,totalPropertyValueIncrease:a,totalOwnershipCosts:l,monthValueChanges:u,yearValueChanges:x,yearValueChangeTotals:v,buyingCost:d,sellingCost:h,totalCosts:p,totalMortgagePaid:i,totalPrincipalPaid:f,mortgagePerMonth:n,deposit:r,initialPropertyValue:e.initialPropertyValue,totalBuying:y}}function PP({deposit:e,initialPropertyValue:t}){return t-e}function nB({initialPropertyValue:e,deposit:t,loanTerm:n,interestRate:r}){const o=PP({deposit:t,initialPropertyValue:e}),i=r/100/12,s=n*12;return o*(i/(1-Math.pow(1+i,-s)))}const Ps="DEFAULT_X_AXIS_KEY",jx="DEFAULT_Y_AXIS_KEY",rB={top:50,bottom:50,left:50,right:50},oB=(e,t,n)=>{const r=k({},rB,n);return w.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])},tr=w.createContext({top:0,left:0,bottom:0,right:0,height:300,width:400,chartId:""}),Ff=w.createContext({current:null});function iB(e){const{width:t,height:n,margin:r,svgRef:o,children:i}=e,s=oB(t,n,r),a=fi(),l=w.useMemo(()=>k({chartId:a??""},s),[a,s]);return C.jsx(Ff.Provider,{value:o,children:C.jsx(tr.Provider,{value:l,children:i})})}function yc(e,t){return e==null||t==null?NaN:et?1:e>=t?0:NaN}function sB(e,t){return e==null||t==null?NaN:te?1:t>=e?0:NaN}function Jy(e){let t,n,r;e.length!==2?(t=yc,n=(a,l)=>yc(e(a),l),r=(a,l)=>e(a)-l):(t=e===yc||e===sB?e:aB,n=e,r=e);function o(a,l,u=0,c=a.length){if(u>>1;n(a[f],l)<0?u=f+1:c=f}while(u>>1;n(a[f],l)<=0?u=f+1:c=f}while(uu&&r(a[f-1],l)>-r(a[f],l)?f-1:f}return{left:o,center:s,right:i}}function aB(){return 0}function lB(e){return e===null?NaN:+e}const uB=Jy(yc),cB=uB.right;Jy(lB).center;class Dx extends Map{constructor(t,n=pB){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(Fx(this,t))}has(t){return super.has(Fx(this,t))}set(t,n){return super.set(dB(this,t),n)}delete(t){return super.delete(fB(this,t))}}function Fx({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function dB({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function fB({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function pB(e){return e!==null&&typeof e=="object"?e.valueOf():e}const hB=Math.sqrt(50),gB=Math.sqrt(10),mB=Math.sqrt(2);function nd(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>=hB?10:i>=gB?5:i>=mB?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?Fu(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Fu(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=xB.exec(e))?new qt(t[1],t[2],t[3],1):(t=bB.exec(e))?new qt(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=wB.exec(e))?Fu(t[1],t[2],t[3],t[4]):(t=SB.exec(e))?Fu(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=CB.exec(e))?Yx(t[1],t[2]/100,t[3]/100,1):(t=kB.exec(e))?Yx(t[1],t[2]/100,t[3]/100,t[4]):Ux.hasOwnProperty(e)?Hx(Ux[e]):e==="transparent"?new qt(NaN,NaN,NaN,0):null}function Hx(e){return new qt(e>>16&255,e>>8&255,e&255,1)}function Fu(e,t,n,r){return r<=0&&(e=t=n=NaN),new qt(e,t,n,r)}function $B(e){return e instanceof ou||(e=Po(e)),e?(e=e.rgb(),new qt(e.r,e.g,e.b,e.opacity)):new qt}function Bg(e,t,n,r){return arguments.length===1?$B(e):new qt(e,t,n,r??1)}function qt(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}e0(qt,Bg,TP(ou,{brighter(e){return e=e==null?od:Math.pow(od,e),new qt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Rl:Math.pow(Rl,e),new qt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new qt(Jo(this.r),Jo(this.g),Jo(this.b),id(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:Gx,formatHex:Gx,formatHex8:TB,formatRgb:Kx,toString:Kx}));function Gx(){return`#${Go(this.r)}${Go(this.g)}${Go(this.b)}`}function TB(){return`#${Go(this.r)}${Go(this.g)}${Go(this.b)}${Go((isNaN(this.opacity)?1:this.opacity)*255)}`}function Kx(){const e=id(this.opacity);return`${e===1?"rgb(":"rgba("}${Jo(this.r)}, ${Jo(this.g)}, ${Jo(this.b)}${e===1?")":`, ${e})`}`}function id(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Jo(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Go(e){return e=Jo(e),(e<16?"0":"")+e.toString(16)}function Yx(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Xn(e,t,n,r)}function MP(e){if(e instanceof Xn)return new Xn(e.h,e.s,e.l,e.opacity);if(e instanceof ou||(e=Po(e)),!e)return new Xn;if(e instanceof Xn)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 Xn(s,a,l,e.opacity)}function MB(e,t,n,r){return arguments.length===1?MP(e):new Xn(e,t,n,r??1)}function Xn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}e0(Xn,MB,TP(ou,{brighter(e){return e=e==null?od:Math.pow(od,e),new Xn(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Rl:Math.pow(Rl,e),new Xn(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 qt(Jp(e>=240?e-240:e+120,o,r),Jp(e,o,r),Jp(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new Xn(qx(this.h),zu(this.s),zu(this.l),id(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=id(this.opacity);return`${e===1?"hsl(":"hsla("}${qx(this.h)}, ${zu(this.s)*100}%, ${zu(this.l)*100}%${e===1?")":`, ${e})`}`}}));function qx(e){return e=(e||0)%360,e<0?e+360:e}function zu(e){return Math.max(0,Math.min(1,e||0))}function Jp(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 t0=e=>()=>e;function EB(e,t){return function(n){return e+n*t}}function _B(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 IB(e){return(e=+e)==1?EP:function(t,n){return n-t?_B(t,n,e):t0(isNaN(t)?n:t)}}function EP(e,t){var n=t-e;return n?EB(e,n):t0(isNaN(e)?t:e)}const Xx=function e(t){var n=IB(t);function r(o,i){var s=n((o=Bg(o)).r,(i=Bg(i)).r),a=n(o.g,i.g),l=n(o.b,i.b),u=EP(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 OB(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:sd(r,o)})),n=eh.lastIndex;return nt&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function WB(e,t,n){var r=e[0],o=e[1],i=t[0],s=t[1];return o2?HB:WB,l=u=null,f}function f(d){return d==null||isNaN(d=+d)?i:(l||(l=a(e.map(r),t,n)))(r(s(d)))}return f.invert=function(d){return s(o((u||(u=a(t,e.map(r),sd)))(d)))},f.domain=function(d){return arguments.length?(e=Array.from(d,UB),c()):e.slice()},f.range=function(d){return arguments.length?(t=Array.from(d),c()):t.slice()},f.rangeRound=function(d){return t=Array.from(d),n=zB,c()},f.clamp=function(d){return arguments.length?(s=d?!0:cr,c()):s!==cr},f.interpolate=function(d){return arguments.length?(n=d,c()):n},f.unknown=function(d){return arguments.length?(i=d,f):i},function(d,h){return r=d,o=h,c()}}function IP(){return r0()(cr,cr)}function GB(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function ad(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 Rs(e){return e=ad(Math.abs(e)),e?e[1]:NaN}function KB(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 YB(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var qB=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Tl(e){if(!(t=qB.exec(e)))throw new Error("invalid format: "+e);var t;return new o0({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]})}Tl.prototype=o0.prototype;function o0(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+""}o0.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 XB(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 OP;function QB(e,t){var n=ad(e,t);if(!n)return e+"";var r=n[0],o=n[1],i=o-(OP=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")+ad(e,Math.max(0,t+i-1))[0]}function Zx(e,t){var n=ad(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 Jx={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:GB,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)=>Zx(e*100,t),r:Zx,s:QB,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function eb(e){return e}var tb=Array.prototype.map,nb=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function ZB(e){var t=e.grouping===void 0||e.thousands===void 0?eb:KB(tb.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?eb:YB(tb.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(f){f=Tl(f);var d=f.fill,h=f.align,p=f.sign,y=f.symbol,x=f.zero,g=f.width,v=f.comma,m=f.precision,b=f.trim,S=f.type;S==="n"?(v=!0,S="g"):Jx[S]||(m===void 0&&(m=12),b=!0,S="g"),(x||d==="0"&&h==="=")&&(x=!0,d="0",h="=");var P=y==="$"?n:y==="#"&&/[boxX]/.test(S)?"0"+S.toLowerCase():"",R=y==="$"?r:/[%p]/.test(S)?s:"",$=Jx[S],M=/[defgprs%]/.test(S);m=m===void 0?6:/[gprs]/.test(S)?Math.max(1,Math.min(21,m)):Math.max(0,Math.min(20,m));function T(_){var N=P,I=R,O,L,A;if(S==="c")I=$(_)+I,_="";else{_=+_;var j=_<0||1/_<0;if(_=isNaN(_)?l:$(Math.abs(_),m),b&&(_=XB(_)),j&&+_==0&&p!=="+"&&(j=!1),N=(j?p==="("?p:a:p==="-"||p==="("?"":p)+N,I=(S==="s"?nb[8+OP/3]:"")+I+(j&&p==="("?")":""),M){for(O=-1,L=_.length;++OA||A>57){I=(A===46?o+_.slice(O+1):_.slice(O))+I,_=_.slice(0,O);break}}}v&&!x&&(_=t(_,1/0));var E=N.length+_.length+I.length,D=E>1)+N+_+I+D.slice(E);break;default:_=D+N+_+I;break}return i(_)}return T.toString=function(){return f+""},T}function c(f,d){var h=u((f=Tl(f),f.type="f",f)),p=Math.max(-8,Math.min(8,Math.floor(Rs(d)/3)))*3,y=Math.pow(10,-p),x=nb[8+p/3];return function(g){return h(y*g)+x}}return{format:u,formatPrefix:c}}var Bu,i0,AP;JB({thousands:",",grouping:[3],currency:["$",""]});function JB(e){return Bu=ZB(e),i0=Bu.format,AP=Bu.formatPrefix,Bu}function e9(e){return Math.max(0,-Rs(Math.abs(e)))}function t9(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Rs(t)/3)))*3-Rs(Math.abs(e)))}function n9(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Rs(t)-Rs(e))+1}function r9(e,t,n,r){var o=zg(e,t,n),i;switch(r=Tl(r??",f"),r.type){case"s":{var s=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(i=t9(o,s))&&(r.precision=i),AP(r,s)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(i=n9(o,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=i-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(i=e9(o))&&(r.precision=i-(r.type==="%")*2);break}}return i0(r)}function NP(e){var t=e.domain;return e.ticks=function(n){var r=t();return Dg(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var o=t();return r9(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=Fg(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 LP(){var e=IP();return e.copy=function(){return zf(e,LP())},pi.apply(e,arguments),NP(e)}function jP(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 l9(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 ib(e){return(t,n)=>-e(-t,n)}function u9(e){const t=e(rb,ob),n=t.domain;let r=10,o,i;function s(){return o=l9(r),i=a9(r),n()[0]<0?(o=ib(o),i=ib(i),e(o9,i9)):e(rb,ob),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 f=c0){for(;d<=h;++d)for(p=1;pc)break;g.push(y)}}else for(;d<=h;++d)for(p=r-1;p>=1;--p)if(y=d>0?p/i(-d):p*i(d),!(yc)break;g.push(y)}g.length*2{if(a==null&&(a=10),l==null&&(l=r===10?"s":","),typeof l!="function"&&(!(r%1)&&(l=Tl(l)).precision==null&&(l.trim=!0),l=i0(l)),a===1/0)return l;const u=Math.max(1,r*a/t.ticks().length);return c=>{let f=c/i(Math.round(o(c)));return f*rn(jP(n(),{floor:a=>i(Math.floor(o(a))),ceil:a=>i(Math.ceil(o(a)))})),t}function DP(){const e=u9(r0()).domain([1,10]);return e.copy=()=>zf(e,DP()).base(e.base()),pi.apply(e,arguments),e}function sb(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function c9(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function d9(e){return e<0?-e*e:e*e}function f9(e){var t=e(cr,cr),n=1;function r(){return n===1?e(cr,cr):n===.5?e(c9,d9):e(sb(n),sb(1/n))}return t.exponent=function(o){return arguments.length?(n=+o,r()):n},NP(t)}function s0(){var e=f9(r0());return e.copy=function(){return zf(e,s0()).exponent(e.exponent())},pi.apply(e,arguments),e}function p9(){return s0.apply(null,arguments).exponent(.5)}const th=new Date,nh=new Date;function lt(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(ult(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)=>(th.setTime(+i),nh.setTime(+s),e(th),e(nh),Math.floor(n(th,nh))),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 ld=lt(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);ld.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?lt(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):ld);ld.range;const _r=1e3,Mn=_r*60,Ir=Mn*60,Vr=Ir*24,a0=Vr*7,ab=Vr*30,rh=Vr*365,Ko=lt(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*_r)},(e,t)=>(t-e)/_r,e=>e.getUTCSeconds());Ko.range;const l0=lt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*_r)},(e,t)=>{e.setTime(+e+t*Mn)},(e,t)=>(t-e)/Mn,e=>e.getMinutes());l0.range;const u0=lt(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Mn)},(e,t)=>(t-e)/Mn,e=>e.getUTCMinutes());u0.range;const c0=lt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*_r-e.getMinutes()*Mn)},(e,t)=>{e.setTime(+e+t*Ir)},(e,t)=>(t-e)/Ir,e=>e.getHours());c0.range;const d0=lt(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Ir)},(e,t)=>(t-e)/Ir,e=>e.getUTCHours());d0.range;const iu=lt(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Mn)/Vr,e=>e.getDate()-1);iu.range;const Bf=lt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Vr,e=>e.getUTCDate()-1);Bf.range;const FP=lt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Vr,e=>Math.floor(e/Vr));FP.range;function hi(e){return lt(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())*Mn)/a0)}const Uf=hi(0),ud=hi(1),h9=hi(2),g9=hi(3),$s=hi(4),m9=hi(5),y9=hi(6);Uf.range;ud.range;h9.range;g9.range;$s.range;m9.range;y9.range;function gi(e){return lt(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)/a0)}const Vf=gi(0),cd=gi(1),v9=gi(2),x9=gi(3),Ts=gi(4),b9=gi(5),w9=gi(6);Vf.range;cd.range;v9.range;x9.range;Ts.range;b9.range;w9.range;const f0=lt(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());f0.range;const p0=lt(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());p0.range;const Wr=lt(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());Wr.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:lt(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)});Wr.range;const Hr=lt(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());Hr.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:lt(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)});Hr.range;function zP(e,t,n,r,o,i){const s=[[Ko,1,_r],[Ko,5,5*_r],[Ko,15,15*_r],[Ko,30,30*_r],[i,1,Mn],[i,5,5*Mn],[i,15,15*Mn],[i,30,30*Mn],[o,1,Ir],[o,3,3*Ir],[o,6,6*Ir],[o,12,12*Ir],[r,1,Vr],[r,2,2*Vr],[n,1,a0],[t,1,ab],[t,3,3*ab],[e,1,rh]];function a(u,c,f){const d=cx).right(s,d);if(h===s.length)return e.every(zg(u/rh,c/rh,f));if(h===0)return ld.every(Math.max(zg(u,c,f),1));const[p,y]=s[d/s[h-1][2]53)return null;"w"in z||(z.w=1),"Z"in z?(ne=ih(da(z.y,0,1)),U=ne.getUTCDay(),ne=U>4||U===0?cd.ceil(ne):cd(ne),ne=Bf.offset(ne,(z.V-1)*7),z.y=ne.getUTCFullYear(),z.m=ne.getUTCMonth(),z.d=ne.getUTCDate()+(z.w+6)%7):(ne=oh(da(z.y,0,1)),U=ne.getDay(),ne=U>4||U===0?ud.ceil(ne):ud(ne),ne=iu.offset(ne,(z.V-1)*7),z.y=ne.getFullYear(),z.m=ne.getMonth(),z.d=ne.getDate()+(z.w+6)%7)}else("W"in z||"U"in z)&&("w"in z||(z.w="u"in z?z.u%7:"W"in z?1:0),U="Z"in z?ih(da(z.y,0,1)).getUTCDay():oh(da(z.y,0,1)).getDay(),z.m=0,z.d="W"in z?(z.w+6)%7+z.W*7-(U+5)%7:z.w+z.U*7-(U+6)%7);return"Z"in z?(z.H+=z.Z/100|0,z.M+=z.Z%100,ih(z)):oh(z)}}function $(B,Z,K,z){for(var oe=0,ne=Z.length,U=K.length,X,ie;oe=U)return-1;if(X=Z.charCodeAt(oe++),X===37){if(X=Z.charAt(oe++),ie=S[X in lb?Z.charAt(oe++):X],!ie||(z=ie(B,K,z))<0)return-1}else if(X!=K.charCodeAt(z++))return-1}return z}function M(B,Z,K){var z=u.exec(Z.slice(K));return z?(B.p=c.get(z[0].toLowerCase()),K+z[0].length):-1}function T(B,Z,K){var z=h.exec(Z.slice(K));return z?(B.w=p.get(z[0].toLowerCase()),K+z[0].length):-1}function _(B,Z,K){var z=f.exec(Z.slice(K));return z?(B.w=d.get(z[0].toLowerCase()),K+z[0].length):-1}function N(B,Z,K){var z=g.exec(Z.slice(K));return z?(B.m=v.get(z[0].toLowerCase()),K+z[0].length):-1}function I(B,Z,K){var z=y.exec(Z.slice(K));return z?(B.m=x.get(z[0].toLowerCase()),K+z[0].length):-1}function O(B,Z,K){return $(B,t,Z,K)}function L(B,Z,K){return $(B,n,Z,K)}function A(B,Z,K){return $(B,r,Z,K)}function j(B){return s[B.getDay()]}function E(B){return i[B.getDay()]}function D(B){return l[B.getMonth()]}function F(B){return a[B.getMonth()]}function V(B){return o[+(B.getHours()>=12)]}function H(B){return 1+~~(B.getMonth()/3)}function ue(B){return s[B.getUTCDay()]}function ee(B){return i[B.getUTCDay()]}function Q(B){return l[B.getUTCMonth()]}function re(B){return a[B.getUTCMonth()]}function ge(B){return o[+(B.getUTCHours()>=12)]}function he(B){return 1+~~(B.getUTCMonth()/3)}return{format:function(B){var Z=P(B+="",m);return Z.toString=function(){return B},Z},parse:function(B){var Z=R(B+="",!1);return Z.toString=function(){return B},Z},utcFormat:function(B){var Z=P(B+="",b);return Z.toString=function(){return B},Z},utcParse:function(B){var Z=R(B+="",!0);return Z.toString=function(){return B},Z}}}var lb={"-":"",_:" ",0:"0"},pt=/^\s*\d+/,$9=/^%/,T9=/[\\^$*+?|[\]().{}]/g;function $e(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",i=o.length;return r+(i[t.toLowerCase(),n]))}function E9(e,t,n){var r=pt.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function _9(e,t,n){var r=pt.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function I9(e,t,n){var r=pt.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function O9(e,t,n){var r=pt.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function A9(e,t,n){var r=pt.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function ub(e,t,n){var r=pt.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function cb(e,t,n){var r=pt.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function N9(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 L9(e,t,n){var r=pt.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function j9(e,t,n){var r=pt.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function db(e,t,n){var r=pt.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function D9(e,t,n){var r=pt.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function fb(e,t,n){var r=pt.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function F9(e,t,n){var r=pt.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function z9(e,t,n){var r=pt.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function B9(e,t,n){var r=pt.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function U9(e,t,n){var r=pt.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function V9(e,t,n){var r=$9.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function W9(e,t,n){var r=pt.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function H9(e,t,n){var r=pt.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function pb(e,t){return $e(e.getDate(),t,2)}function G9(e,t){return $e(e.getHours(),t,2)}function K9(e,t){return $e(e.getHours()%12||12,t,2)}function Y9(e,t){return $e(1+iu.count(Wr(e),e),t,3)}function BP(e,t){return $e(e.getMilliseconds(),t,3)}function q9(e,t){return BP(e,t)+"000"}function X9(e,t){return $e(e.getMonth()+1,t,2)}function Q9(e,t){return $e(e.getMinutes(),t,2)}function Z9(e,t){return $e(e.getSeconds(),t,2)}function J9(e){var t=e.getDay();return t===0?7:t}function e7(e,t){return $e(Uf.count(Wr(e)-1,e),t,2)}function UP(e){var t=e.getDay();return t>=4||t===0?$s(e):$s.ceil(e)}function t7(e,t){return e=UP(e),$e($s.count(Wr(e),e)+(Wr(e).getDay()===4),t,2)}function n7(e){return e.getDay()}function r7(e,t){return $e(ud.count(Wr(e)-1,e),t,2)}function o7(e,t){return $e(e.getFullYear()%100,t,2)}function i7(e,t){return e=UP(e),$e(e.getFullYear()%100,t,2)}function s7(e,t){return $e(e.getFullYear()%1e4,t,4)}function a7(e,t){var n=e.getDay();return e=n>=4||n===0?$s(e):$s.ceil(e),$e(e.getFullYear()%1e4,t,4)}function l7(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+$e(t/60|0,"0",2)+$e(t%60,"0",2)}function hb(e,t){return $e(e.getUTCDate(),t,2)}function u7(e,t){return $e(e.getUTCHours(),t,2)}function c7(e,t){return $e(e.getUTCHours()%12||12,t,2)}function d7(e,t){return $e(1+Bf.count(Hr(e),e),t,3)}function VP(e,t){return $e(e.getUTCMilliseconds(),t,3)}function f7(e,t){return VP(e,t)+"000"}function p7(e,t){return $e(e.getUTCMonth()+1,t,2)}function h7(e,t){return $e(e.getUTCMinutes(),t,2)}function g7(e,t){return $e(e.getUTCSeconds(),t,2)}function m7(e){var t=e.getUTCDay();return t===0?7:t}function y7(e,t){return $e(Vf.count(Hr(e)-1,e),t,2)}function WP(e){var t=e.getUTCDay();return t>=4||t===0?Ts(e):Ts.ceil(e)}function v7(e,t){return e=WP(e),$e(Ts.count(Hr(e),e)+(Hr(e).getUTCDay()===4),t,2)}function x7(e){return e.getUTCDay()}function b7(e,t){return $e(cd.count(Hr(e)-1,e),t,2)}function w7(e,t){return $e(e.getUTCFullYear()%100,t,2)}function S7(e,t){return e=WP(e),$e(e.getUTCFullYear()%100,t,2)}function C7(e,t){return $e(e.getUTCFullYear()%1e4,t,4)}function k7(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Ts(e):Ts.ceil(e),$e(e.getUTCFullYear()%1e4,t,4)}function P7(){return"+0000"}function gb(){return"%"}function mb(e){return+e}function yb(e){return Math.floor(+e/1e3)}var Pi,HP,GP;R7({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 R7(e){return Pi=R9(e),HP=Pi.format,Pi.parse,GP=Pi.utcFormat,Pi.utcParse,Pi}function $7(e){return new Date(e)}function T7(e){return e instanceof Date?+e:+new Date(+e)}function h0(e,t,n,r,o,i,s,a,l,u){var c=IP(),f=c.invert,d=c.domain,h=u(".%L"),p=u(":%S"),y=u("%I:%M"),x=u("%I %p"),g=u("%a %d"),v=u("%b %d"),m=u("%B"),b=u("%Y");function S(P){return(l(P){const{axis:t}=e,n=Math.min(...t.data??[]),r=Math.max(...t.data??[]);return[n,r]},YP=e=>{const{series:t,axis:n,isDefaultAxis:r}=e;return Object.keys(t).filter(o=>t[o].yAxisKey===n.id||r&&t[o].yAxisKey===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]===null?[]:[u[0]]),Math.max(...c,...u[1]===null?[]:[u[1]])],t[i].stackedData[0]))??[null,null];return[o[0]===null?s:Math.min(s,o[0]),o[1]===null?a:Math.max(a,o[1])]},[null,null])},_7=e=>Object.keys(e.series).some(n=>e.series[n].layout==="horizontal")?YP(e):KP(e),I7=e=>Object.keys(e.series).some(n=>e.series[n].layout==="horizontal")?KP(e):YP(e),dd=(e,t)=>e[0]===null||e[1]===null?t:t[0]===null||t[1]===null?e:[Math.min(e[0],t[0]),Math.max(e[1],t[1])],O7=e=>{const{series:t,axis:n,isDefaultAxis:r}=e;return Object.keys(t).filter(o=>t[o].xAxisKey===n.id||t[o].xAxisKey===void 0&&r).reduce((o,i)=>{const s=t[i].data.reduce((a,{x:l})=>dd(a,[l,l]),[null,null]);return dd(o,s)},[null,null])},A7=e=>{const{series:t,axis:n,isDefaultAxis:r}=e;return Object.keys(t).filter(o=>t[o].yAxisKey===n.id||t[o].yAxisKey===void 0&&r).reduce((o,i)=>{const s=t[i].data.reduce((a,{y:l})=>dd(a,[l,l]),[null,null]);return dd(o,s)},[null,null])},N7=e=>{const{axis:t}=e,n=Math.min(...t.data??[]),r=Math.max(...t.data??[]);return[n,r]};function L7(e,t){return t.length===0?[null,null]:t.reduce((n,r)=>{const[o,i]=e(r);return n[0]===null?[Math.min(o,i),Math.max(o,i)]:[Math.min(o,i,n[0]),Math.max(o,i,n[1])]},e(t[0]))}const j7=e=>{const{series:t,axis:n,isDefaultAxis:r}=e;return Object.keys(t).filter(o=>t[o].yAxisKey===n.id||r&&t[o].yAxisKey===void 0).reduce((o,i)=>{const{area:s,stackedData:a}=t[i],c=L7(s!==void 0?h=>h:h=>[h[1],h[1]],a);if(o[0]===null)return c;if(c[0]===null)return o;const[f,d]=c;return[Math.min(f,o[0]),Math.max(d,o[1])]},[null,null])};function vb(e){return e.scaleType==="band"}function xb(e){return e.scaleType==="point"}function bb(e,t,n){switch(e){case"log":return DP(t,n);case"pow":return s0(t,n);case"sqrt":return p9(t,n);case"time":return M7(t,n);case"utc":return E7(t,n);default:return LP(t,n)}}function we(e){return function(){return e}}const wb=Math.abs,Rt=Math.atan2,kr=Math.cos,D7=Math.max,sh=Math.min,Wt=Math.sin,vt=Math.sqrt,Tt=1e-12,Ro=Math.PI,fd=Ro/2,vo=2*Ro;function F7(e){return e>1?0:e<-1?Ro:Math.acos(e)}function Sb(e){return e>=1?fd:e<=-1?-fd:Math.asin(e)}const Wg=Math.PI,Hg=2*Wg,zo=1e-6,z7=Hg-zo;function qP(e){this._+=e[0];for(let t=1,n=e.length;t=0))throw new Error(`invalid digits: ${e}`);if(t>15)return qP;const n=10**t;return function(r){this._+=r[0];for(let o=1,i=r.length;ozo)if(!(Math.abs(f*l-u*c)>zo)||!i)this._append`L${this._x1=t},${this._y1=n}`;else{let h=r-s,p=o-a,y=l*l+u*u,x=h*h+p*p,g=Math.sqrt(y),v=Math.sqrt(d),m=i*Math.tan((Wg-Math.acos((y+d-x)/(2*g*v)))/2),b=m/v,S=m/g;Math.abs(b-1)>zo&&this._append`L${t+b*c},${n+b*f}`,this._append`A${i},${i},0,0,${+(f*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,f=1^s,d=s?o-i:i-o;this._x1===null?this._append`M${u},${c}`:(Math.abs(this._x1-u)>zo||Math.abs(this._y1-c)>zo)&&this._append`L${u},${c}`,r&&(d<0&&(d=d%Hg+Hg),d>z7?this._append`A${r},${r},0,1,${f},${t-a},${n-l}A${r},${r},0,1,${f},${this._x1=u},${this._y1=c}`:d>zo&&this._append`A${r},${r},0,${+(d>=Wg)},${f},${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 Wf(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 U7(t)}function V7(e){return e.innerRadius}function W7(e){return e.outerRadius}function H7(e){return e.startAngle}function G7(e){return e.endAngle}function K7(e){return e&&e.padAngle}function Y7(e,t,n,r,o,i,s,a){var l=n-e,u=r-t,c=s-o,f=a-i,d=f*l-c*u;if(!(d*dO*O+L*L&&($=T,M=_),{cx:$,cy:M,x01:-c,y01:-f,x11:$*(o/S-1),y11:M*(o/S-1)}}function XP(){var e=V7,t=W7,n=we(0),r=null,o=H7,i=G7,s=K7,a=null,l=Wf(u);function u(){var c,f,d=+e.apply(this,arguments),h=+t.apply(this,arguments),p=o.apply(this,arguments)-fd,y=i.apply(this,arguments)-fd,x=wb(y-p),g=y>p;if(a||(a=c=l()),hTt))a.moveTo(0,0);else if(x>vo-Tt)a.moveTo(h*kr(p),h*Wt(p)),a.arc(0,0,h,p,y,!g),d>Tt&&(a.moveTo(d*kr(y),d*Wt(y)),a.arc(0,0,d,y,p,g));else{var v=p,m=y,b=p,S=y,P=x,R=x,$=s.apply(this,arguments)/2,M=$>Tt&&(r?+r.apply(this,arguments):vt(d*d+h*h)),T=sh(wb(h-d)/2,+n.apply(this,arguments)),_=T,N=T,I,O;if(M>Tt){var L=Sb(M/d*Wt($)),A=Sb(M/h*Wt($));(P-=L*2)>Tt?(L*=g?1:-1,b+=L,S-=L):(P=0,b=S=(p+y)/2),(R-=A*2)>Tt?(A*=g?1:-1,v+=A,m-=A):(R=0,v=m=(p+y)/2)}var j=h*kr(v),E=h*Wt(v),D=d*kr(S),F=d*Wt(S);if(T>Tt){var V=h*kr(m),H=h*Wt(m),ue=d*kr(b),ee=d*Wt(b),Q;if(xTt?N>Tt?(I=Uu(ue,ee,j,E,h,N,g),O=Uu(V,H,D,F,h,N,g),a.moveTo(I.cx+I.x01,I.cy+I.y01),NTt)||!(P>Tt)?a.lineTo(D,F):_>Tt?(I=Uu(D,F,V,H,d,-_,g),O=Uu(j,E,ue,ee,d,-_,g),a.lineTo(I.cx+I.x01,I.cy+I.y01),_=h;--p)a.point(m[p],b[p]);a.lineEnd(),a.areaEnd()}g&&(m[d]=+e(x,d,f),b[d]=+t(x,d,f),a.point(r?+r(x,d,f):m[d],n?+n(x,d,f):b[d]))}if(v)return a=null,v+""||null}function c(){return eR().defined(o).curve(s).context(i)}return u.x=function(f){return arguments.length?(e=typeof f=="function"?f:we(+f),r=null,u):e},u.x0=function(f){return arguments.length?(e=typeof f=="function"?f:we(+f),u):e},u.x1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:we(+f),u):r},u.y=function(f){return arguments.length?(t=typeof f=="function"?f:we(+f),n=null,u):t},u.y0=function(f){return arguments.length?(t=typeof f=="function"?f:we(+f),u):t},u.y1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:we(+f),u):n},u.lineX0=u.lineY0=function(){return c().x(e).y(t)},u.lineY1=function(){return c().x(e).y(n)},u.lineX1=function(){return c().x(r).y(t)},u.defined=function(f){return arguments.length?(o=typeof f=="function"?f:we(!!f),u):o},u.curve=function(f){return arguments.length?(s=f,i!=null&&(a=s(i)),u):s},u.context=function(f){return arguments.length?(f==null?i=a=null:a=s(i=f),u):i},u}function X7(e,t){return te?1:t>=e?0:NaN}function Q7(e){return e}function Z7(){var e=Q7,t=X7,n=null,r=we(0),o=we(vo),i=we(0);function s(a){var l,u=(a=Hf(a)).length,c,f,d=0,h=new Array(u),p=new Array(u),y=+r.apply(this,arguments),x=Math.min(vo,Math.max(-vo,o.apply(this,arguments)-y)),g,v=Math.min(Math.abs(x)/u,i.apply(this,arguments)),m=v*(x<0?-1:1),b;for(l=0;l0&&(d+=b);for(t!=null?h.sort(function(S,P){return t(p[S],p[P])}):n!=null&&h.sort(function(S,P){return n(a[S],a[P])}),l=0,f=d?(x-u*m)/d:0;l0?b*f:0)+m,p[c]={data:a[c],index:l,value:b,startAngle:y,endAngle:g,padAngle:v};return p}return s.value=function(a){return arguments.length?(e=typeof a=="function"?a:we(+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:we(+a),s):r},s.endAngle=function(a){return arguments.length?(o=typeof a=="function"?a:we(+a),s):o},s.padAngle=function(a){return arguments.length?(i=typeof a=="function"?a:we(+a),s):i},s}const tR={draw(e,t){const n=vt(t/Ro);e.moveTo(n,0),e.arc(0,0,n,0,vo)}},J7={draw(e,t){const n=vt(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},nR=vt(1/3),eU=nR*2,tU={draw(e,t){const n=vt(t/eU),r=n*nR;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},nU={draw(e,t){const n=vt(t),r=-n/2;e.rect(r,r,n,n)}},rU=.8908130915292852,rR=Wt(Ro/10)/Wt(7*Ro/10),oU=Wt(vo/10)*rR,iU=-kr(vo/10)*rR,sU={draw(e,t){const n=vt(t*rU),r=oU*n,o=iU*n;e.moveTo(0,-n),e.lineTo(r,o);for(let i=1;i<5;++i){const s=vo*i/5,a=kr(s),l=Wt(s);e.lineTo(l*n,-a*n),e.lineTo(a*r-l*o,l*r+a*o)}e.closePath()}},ah=vt(3),aU={draw(e,t){const n=-vt(t/(ah*3));e.moveTo(0,n*2),e.lineTo(-ah*n,-n),e.lineTo(ah*n,-n),e.closePath()}},xn=-.5,bn=vt(3)/2,Gg=1/vt(12),lU=(Gg/2+1)*3,uU={draw(e,t){const n=vt(t/lU),r=n/2,o=n*Gg,i=r,s=n*Gg+n,a=-i,l=s;e.moveTo(r,o),e.lineTo(i,s),e.lineTo(a,l),e.lineTo(xn*r-bn*o,bn*r+xn*o),e.lineTo(xn*i-bn*s,bn*i+xn*s),e.lineTo(xn*a-bn*l,bn*a+xn*l),e.lineTo(xn*r+bn*o,xn*o-bn*r),e.lineTo(xn*i+bn*s,xn*s-bn*i),e.lineTo(xn*a+bn*l,xn*l-bn*a),e.closePath()}},cU=[tR,J7,tU,nU,sU,aU,uU];function dU(e,t){let n=null,r=Wf(o);e=typeof e=="function"?e:we(e||tR),t=typeof t=="function"?t:we(t===void 0?64:+t);function o(){let i;if(n||(n=i=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),i)return n=null,i+""||null}return o.type=function(i){return arguments.length?(e=typeof i=="function"?i:we(i),o):e},o.size=function(i){return arguments.length?(t=typeof i=="function"?i:we(+i),o):t},o.context=function(i){return arguments.length?(n=i??null,o):n},o}function Cb(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function m0(e,t){this._context=e,this._k=(1-t)/6}m0.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Cb(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:Cb(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};(function e(t){function n(r){return new m0(r,t)}return n.tension=function(r){return e(+r)},n})(0);function fU(e,t,n){var r=e._x1,o=e._y1,i=e._x2,s=e._y2;if(e._l01_a>Tt){var a=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*a-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,o=(o*a-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>Tt){var u=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,c=3*e._l23_a*(e._l23_a+e._l12_a);i=(i*u+e._x1*e._l23_2a-t*e._l12_2a)/c,s=(s*u+e._y1*e._l23_2a-n*e._l12_2a)/c}e._context.bezierCurveTo(r,o,i,s,e._x2,e._y2)}function oR(e,t){this._context=e,this._alpha=t}oR.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:fU(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const pU=function e(t){function n(r){return t?new oR(r,t):new m0(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function kb(e){return e<0?-1:1}function Pb(e,t,n){var r=e._x1-e._x0,o=t-e._x1,i=(e._y1-e._y0)/(r||o<0&&-0),s=(n-e._y1)/(o||r<0&&-0),a=(i*o+s*r)/(r+o);return(kb(i)+kb(s))*Math.min(Math.abs(i),Math.abs(s),.5*Math.abs(a))||0}function Rb(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function lh(e,t,n){var r=e._x0,o=e._y0,i=e._x1,s=e._y1,a=(i-r)/3;e._context.bezierCurveTo(r+a,o+a*t,i-a,s-a*n,i,s)}function pd(e){this._context=e}pd.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:lh(this,this._t0,Rb(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,lh(this,Rb(this,n=Pb(this,e,t)),n);break;default:lh(this,this._t0,n=Pb(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function iR(e){this._context=new sR(e)}(iR.prototype=Object.create(pd.prototype)).point=function(e,t){pd.prototype.point.call(this,t,e)};function sR(e){this._context=e}sR.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,o,i){this._context.bezierCurveTo(t,e,r,n,i,o)}};function $b(e){return new pd(e)}function hU(e){return new iR(e)}function aR(e){this._context=e}aR.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=Tb(e),o=Tb(t),i=0,s=1;s=0;--t)o[t]=(s[t]-o[t+1])/i[t];for(i[n-1]=(e[n]+o[n-1])/2,t=0;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function mU(e){return new Gf(e,.5)}function yU(e){return new Gf(e,0)}function vU(e){return new Gf(e,1)}function Ms(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 xU(e,t){return e[t]}function bU(e){const t=[];return t.key=e,t}function lR(){var e=we([]),t=Es,n=Ms,r=xU;function o(i){var s=Array.from(e.apply(this,arguments),bU),a,l=s.length,u=-1,c;for(const f 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 CU(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 cR(e){var t=e.map(dR);return Es(e).sort(function(n,r){return t[n]-t[r]})}function dR(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:uh.none,stackingOffset:ch.none}):i[a]===void 0?(i[a]=o.length,o.push({ids:[s],stackingOrder:uh[l??(r==null?void 0:r.stackOrder)??"none"],stackingOffset:ch[u??(r==null?void 0:r.stackOffset)??"diverging"]})):(o[i[a]].ids.push(s),l!==void 0&&(o[i[a]].stackingOrder=uh[l]),u!==void 0&&(o[i[a]].stackingOffset=ch[u]))}),o};function y0(e,t){const n={};return Object.keys(e).forEach(r=>{n[r]=k({},e[r],{valueFormatter:e[r].valueFormatter??t})}),n}const MU=(e,t)=>{const{seriesOrder:n,series:r}=e,o=fR(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 Charts: 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,f=lR().keys(l.map(d=>{const h=r[d].dataKey;return r[d].data===void 0&&h!==void 0?h:d})).value((d,h)=>d[h]??0).order(c).offset(u)(i);l.forEach((d,h)=>{const p=r[d].dataKey;s[d]=k({layout:"vertical"},r[d],{data:p?t.map(y=>{const x=y[p];return typeof x!="number"?0:x}):r[d].data,stackedData:f[h].map(([y,x])=>[y,x])})})}),{seriesOrder:n,stackingGroups:o,series:y0(s,a=>a==null?"":a.toLocaleString())}},EU=MU,_U=({series:e,seriesOrder:t})=>({series:y0(e,n=>`(${n.x}, ${n.y})`),seriesOrder:t}),IU=_U,OU=(e,t)=>{const{seriesOrder:n,series:r}=e,o=fR(k({},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,f=lR().keys(l.map(d=>{const h=r[d].dataKey;return r[d].data===void 0&&h!==void 0?h:d})).value((d,h)=>d[h]??0).order(u).offset(c)(i);l.forEach((d,h)=>{const p=r[d].dataKey;s[d]=k({},r[d],{data:p?t.map(y=>{const x=y[p];return typeof x!="number"?null:x}):r[d].data,stackedData:f[h].map(([y,x])=>[y,x])})})}),{seriesOrder:n,stackingGroups:o,series:y0(s,a=>a==null?"":a.toLocaleString())}},AU=OU,NU=(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}},LU=e=>{const{seriesOrder:t,series:n}=e,r={};return t.forEach(o=>{const i=Z7().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(NU(n[o].sortingValues??"none"))(n[o].data.map(s=>s.value));r[o]=k({valueFormatter:s=>s.value.toLocaleString()},n[o],{data:n[o].data.map((s,a)=>k({},s,{id:s.id??`auto-generated-pie-id-${o}-${a}`},i[a])).map(s=>{var a,l;return k({},s,{formattedValue:((l=(a=n[o]).valueFormatter)==null?void 0:l.call(a,s))??s.value.toLocaleString()})})})}),{seriesOrder:t,series:r}},jU=LU,DU=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];function FU(e,t,n=DU){return e.type==="pie"?k({},e,{data:e.data.map((r,o)=>k({color:n[o%n.length]},r))}):k({color:n[t%n.length]},e)}const zU=["#02B2AF","#2E96FF","#B800D8","#60009B","#2731C8","#03008D"],BU=["#02B2AF","#72CCFF","#DA00FF","#9001CB","#2E96FF","#3B48E0"],UU=e=>e==="dark"?BU:zU,nr=w.createContext({}),Vu={bar:EU,scatter:IU,line:AU,pie:jU},VU=(e,t,n)=>{const r={};e.forEach((i,s)=>{var u;const{id:a=`auto-generated-id-${s}`,type:l}=i;if(r[l]===void 0&&(r[l]={series:{},seriesOrder:[]}),((u=r[l])==null?void 0:u.series[a])!==void 0)throw new Error(`MUI X Charts: series' id "${a}" is not unique.`);r[l].series[a]=k({id:a},FU(i,s,t)),r[l].seriesOrder.push(a)});const o={};return Object.keys(Vu).forEach(i=>{var s;r[i]!==void 0&&(o[i]=((s=Vu[i])==null?void 0:s.call(Vu,r[i],n))??r[i])}),o};function WU(e){const{series:t,dataset:n,colors:r=UU,children:o}=e,i=_t(),s=w.useMemo(()=>VU(t,typeof r=="function"?r(i.palette.mode):r,n),[t,r,i.palette.mode,n]);return C.jsx(nr.Provider,{value:s,children:o})}function Ml(e){return e.bandwidth!==void 0}function Mb(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 dh={start:0,extremities:0,end:1,middle:.5};function hd(e){const{scale:t,tickNumber:n,valueFormatter:r,tickInterval:o,tickPlacement:i="extremities",tickLabelPlacement:s="middle"}=e;return w.useMemo(()=>{if(Ml(t)){const l=t.domain();return t.bandwidth()>0?[...l.map(c=>({value:c,formattedValue:(r==null?void 0:r(c,{location:"tick"}))??`${c}`,offset:t(c)-(t.step()-t.bandwidth())/2+dh[i]*t.step(),labelOffset:s==="tick"?0:t.step()*(dh[s]-dh[i])})),...i==="extremities"?[{formattedValue:void 0,offset:t.range()[1],labelOffset:0}]:[]]:(typeof o=="function"&&l.filter(o)||typeof o=="object"&&o||l).map(c=>({value:c,formattedValue:(r==null?void 0:r(c,{location:"tick"}))??`${c}`,offset:t(c),labelOffset:0}))}return(typeof o=="object"?o:t.ticks(n)).map(l=>({value:l,formattedValue:(r==null?void 0:r(l,{location:"tick"}))??t.tickFormat(n)(l),offset:t(l),labelOffset:0}))},[t,o,n,r,i,s])}const Eb=.2,HU=.1,GU={bar:_7,scatter:O7,line:N7},KU={bar:I7,scatter:A7,line:j7},Bt=w.createContext({xAxis:{},yAxis:{},xAxisIds:[],yAxisIds:[]});function YU(e){const{xAxis:t,yAxis:n,dataset:r,children:o}=e,i=w.useContext(nr),s=w.useContext(tr),a=w.useMemo(()=>t==null?void 0:t.map(c=>{const f=c.dataKey;if(f===void 0||c.data!==void 0)return c;if(r===void 0)throw Error("MUI X Charts: x-axis uses `dataKey` but no `dataset` is provided.");return k({},c,{data:r.map(d=>d[f])})}),[t,r]),l=w.useMemo(()=>n==null?void 0:n.map(c=>{const f=c.dataKey;if(f===void 0||c.data!==void 0)return c;if(r===void 0)throw Error("MUI X Charts: y-axis uses `dataKey` but no `dataset` is provided.");return k({},c,{data:r.map(d=>d[f])})}),[n,r]),u=w.useMemo(()=>{const c=(x,g,v,m,b)=>{var _;const S=m[g],P=((_=i[g])==null?void 0:_.series)??{},[R,$]=S({series:P,axis:v,isDefaultAxis:b}),[M,T]=x;return M===null||T===null?[R,$]:R===null||$===null?[M,T]:[Math.min(R,M),Math.max($,T)]},f=(x,g,v)=>Object.keys(g).reduce((b,S)=>c(b,S,x,g,v),[null,null]),d=[...(a==null?void 0:a.map((x,g)=>k({id:`defaultized-x-axis-${g}`},x)))??[],...a===void 0||a.findIndex(({id:x})=>x===Ps)===-1?[{id:Ps,scaleType:"linear"}]:[]],h={};d.forEach((x,g)=>{const v=g===0,[m,b]=f(x,GU,v),S=x.reverse?[s.left+s.width,s.left]:[s.left,s.left+s.width];if(vb(x)){const N=x.categoryGapRatio??Eb,I=x.barGapRatio??HU;h[x.id]=k({categoryGapRatio:N,barGapRatio:I},x,{scale:rd(x.data,S).paddingInner(N).paddingOuter(N/2),tickNumber:x.data.length})}if(xb(x)&&(h[x.id]=k({},x,{scale:Bx(x.data,S),tickNumber:x.data.length})),x.scaleType==="band"||x.scaleType==="point")return;const P=x.scaleType??"linear",R=[x.min??m,x.max??b],$=Mb(k({},x,{range:S,domain:R})),M=bb(P,R,S).nice($),T=M.domain(),_=[x.min??T[0],x.max??T[1]];h[x.id]=k({},x,{scaleType:P,scale:M.domain(_),tickNumber:$})});const p=[...(l==null?void 0:l.map((x,g)=>k({id:`defaultized-y-axis-${g}`},x)))??[],...l===void 0||l.findIndex(({id:x})=>x===jx)===-1?[{id:jx,scaleType:"linear"}]:[]],y={};return p.forEach((x,g)=>{const v=g===0,[m,b]=f(x,KU,v),S=x.reverse?[s.top,s.top+s.height]:[s.top+s.height,s.top];if(vb(x)){const N=x.categoryGapRatio??Eb;y[x.id]=k({categoryGapRatio:N,barGapRatio:0},x,{scale:rd(x.data,[S[1],S[0]]).paddingInner(N).paddingOuter(N/2),tickNumber:x.data.length})}if(xb(x)&&(y[x.id]=k({},x,{scale:Bx(x.data,[S[1],S[0]]),tickNumber:x.data.length})),x.scaleType==="band"||x.scaleType==="point")return;const P=x.scaleType??"linear",R=[x.min??m,x.max??b],$=Mb(k({},x,{range:S,domain:R})),M=bb(P,R,S).nice($),T=M.domain(),_=[x.min??T[0],x.max??T[1]];y[x.id]=k({},x,{scaleType:P,scale:M.domain(_),tickNumber:$})}),{xAxis:h,yAxis:y,xAxisIds:d.map(({id:x})=>x),yAxisIds:p.map(({id:x})=>x)}},[s.height,s.left,s.top,s.width,i,a,l]);return C.jsx(Bt.Provider,{value:u,children:o})}function _s(e){return Ml(e)?t=>e(t)+e.bandwidth()/2:t=>e(t)}function qU(e){const{id:t,offset:n}=e,{left:r,top:o,width:i,height:s}=w.useContext(tr),a=k({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 XU(){return typeof window>"u"}const Ao={widthCache:{},cacheCount:0},QU=2e3,ZU={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},JU=["minWidth","maxWidth","width","minHeight","maxHeight","height","top","left","fontSize","padding","margin","paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom"],_b="mui_measurement_span";function pR(e,t){return JU.indexOf(e)>=0&&t===+t?`${t}px`:t}function hR(e){return e.split("").reduce((r,o)=>o===o.toUpperCase()?[...r,"-",o.toLowerCase()]:[...r,o],[]).join("")}const eV=e=>Object.keys(e).sort().reduce((t,n)=>`${t}${hR(n)}:${pR(n,e[n])};`,""),tV=(e,t={})=>{if(e==null||XU())return{width:0,height:0};const n=`${e}`,r=eV(t),o=`${n}-${r}`;if(Ao.widthCache[o])return Ao.widthCache[o];try{let i=document.getElementById(_b);i===null&&(i=document.createElement("span"),i.setAttribute("id",_b),i.setAttribute("aria-hidden","true"),document.body.appendChild(i));const s=k({},ZU,t);Object.keys(s).map(u=>(i.style[hR(u)]=pR(u,s[u]),u)),i.textContent=n;const a=i.getBoundingClientRect(),l={width:a.width,height:a.height};return Ao.widthCache[o]=l,Ao.cacheCount+1>QU?(Ao.cacheCount=0,Ao.widthCache={}):Ao.cacheCount+=1,l}catch{return{width:0,height:0}}};function v0({style:e,needsComputation:t,text:n}){return n.split(` +`).map(r=>k({text:r},t?tV(r,e):{width:0,height:0}))}const nV=["x","y","style","text","ownerState"],rV=["angle","textAnchor","dominantBaseline"];function El(e){const{x:t,y:n,style:r,text:o}=e,i=W(e,nV),s=r??{},{angle:a,textAnchor:l,dominantBaseline:u}=s,c=W(s,rV),f=w.useMemo(()=>v0({style:c,needsComputation:o.includes(` +`),text:o}),[c,o]);let d;switch(u){case"hanging":d=0;break;case"central":d=(f.length-1)/2*-f[0].height;break;default:d=(f.length-1)*-f[0].height;break}const h=[];return a&&h.push(`rotate(${a}, ${t}, ${n})`),h.length&&(i.transform=h.join(" ")),C.jsx("text",k({},i,{x:t,y:n,textAnchor:l,dominantBaseline:u,style:c,children:f.map((p,y)=>C.jsx("tspan",{x:t,dy:`${y===0?d:f[0].height}px`,dominantBaseline:u,children:p.text},y))}))}function gR(e){return ce("MuiChartsAxis",e)}const Wu=de("MuiChartsAxis",["root","line","tickContainer","tick","tickLabel","label","directionX","directionY","top","bottom","left","right"]),mR=G("g",{name:"MuiChartsAxis",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({[`& .${Wu.tickLabel}`]:k({},e.typography.caption,{fill:(e.vars||e).palette.text.primary}),[`& .${Wu.label}`]:k({},e.typography.body1,{fill:(e.vars||e).palette.text.primary}),[`& .${Wu.line}`]:{stroke:(e.vars||e).palette.text.primary,shapeRendering:"crispEdges",strokeWidth:1},[`& .${Wu.tick}`]:{stroke:(e.vars||e).palette.text.primary,shapeRendering:"crispEdges"}})),Ib=5;function oV(e,t,n=0){const r=Math.min(Math.abs(n)%180,Math.abs(Math.abs(n)%180-180)%180);if(r90-Ib)return t;const o=r*Math.PI/180,i=Math.atan2(t,e);return o{e||n(!0)},[e]),w.useEffect(()=>{e&&n(!0)},[e]),t}const sV=["scale","tickNumber","reverse"],aV=e=>{const{classes:t,position:n}=e;return le({root:["root","directionX",n],line:["line"],tickContainer:["tickContainer"],tick:["tick"],tickLabel:["tickLabel"],label:["label"]},gR,t)};function lV(e,{tickLabelStyle:t,tickLabelInterval:n,reverse:r,isMounted:o}){const i=e.map(u=>{if(!o||u.formattedValue===void 0)return k({},u,{width:0,height:0});const c=v0({style:t,needsComputation:!0,text:u.formattedValue});return k({},u,{width:Math.max(...c.map(f=>f.width)),height:Math.max(c.length*c[0].height)})});if(typeof n=="function")return i.map((u,c)=>k({},u,{skipLabel:!n(u.value,c)}));let s=0,a=0;const l=r?-1:1;return i.map((u,c)=>{const{width:f,offset:d,labelOffset:h,height:p}=u,y=oV(f,p,t==null?void 0:t.angle),x=d+h,g=1.2;return s=x-l*(g*y)/2,c>0&&l*s{const oe=Z??0,ne=E*(j+3);return C.jsxs("g",{transform:`translate(${B}, 0)`,className:N.tickContainer,children:[!h&&C.jsx(F,k({y2:E*j,className:N.tick},P==null?void 0:P.axisTick)),he!==void 0&&!K&&C.jsx(V,k({x:oe,y:ne},ue,{text:he.toString()}))]},z)}),y&&C.jsx("g",{className:N.label,children:C.jsx(H,k({},re,ge,{text:y}))})]})}const uV=["scale","tickNumber"],cV=e=>{const{classes:t,position:n}=e;return le({root:["root","directionY",n],line:["line"],tickContainer:["tickContainer"],tick:["tick"],tickLabel:["tickLabel"],label:["label"]},gR,t)},Nb={position:"left",disableLine:!1,disableTicks:!1,tickFontSize:12,labelFontSize:14,tickSize:6};function Lb(e){const t=ye({props:k({},Nb,e),name:"MuiChartsYAxis"}),{yAxisIds:n}=w.useContext(Bt),r=w.useContext(Bt),o=t.axisId??n[0],{yAxis:{[o]:{scale:i,tickNumber:s}}}=r,a=W(r.yAxis[o],uV),l=k({},Nb,a,t),{position:u,disableLine:c,disableTicks:f,tickFontSize:d,label:h,labelFontSize:p,labelStyle:y,tickLabelStyle:x,tickSize:g,valueFormatter:v,slots:m,slotProps:b,tickPlacement:S,tickLabelPlacement:P,tickInterval:R,tickLabelInterval:$}=l,M=_t(),T=cV(k({},l,{theme:M})),{left:_,top:N,width:I,height:O}=w.useContext(tr),L=f?4:g,A=hd({scale:i,tickNumber:s,valueFormatter:v,tickPlacement:S,tickLabelPlacement:P,tickInterval:R}),j=u==="right"?1:-1,E={x:j*(d+L+10),y:N+O/2},D=(m==null?void 0:m.axisLine)??"line",F=(m==null?void 0:m.axisTick)??"line",V=(m==null?void 0:m.axisTickLabel)??El,H=(m==null?void 0:m.axisLabel)??El,ue=wt({elementType:V,externalSlotProps:b==null?void 0:b.axisTickLabel,additionalProps:{style:k({fontSize:d,textAnchor:u==="right"?"start":"end",dominantBaseline:"central"},x),className:T.tickLabel},ownerState:{}}),ee=wt({elementType:H,externalSlotProps:b==null?void 0:b.axisLabel,additionalProps:{style:k({fontSize:p,angle:j*90,textAnchor:"middle",dominantBaseline:"auto"},y)},ownerState:{}});return C.jsxs(mR,{transform:`translate(${u==="right"?_+I:_}, 0)`,className:T.root,children:[!c&&C.jsx(D,k({y1:i.range()[0],y2:i.range()[1],className:T.line},b==null?void 0:b.axisLine)),A.map(({formattedValue:Q,offset:re,labelOffset:ge,value:he},B)=>{const Z=j*(L+2),K=ge,z=typeof $=="function"&&!($!=null&&$(he,B));return C.jsxs("g",{transform:`translate(0, ${re})`,className:T.tickContainer,children:[!f&&C.jsx(F,k({x2:j*L,className:T.tick},b==null?void 0:b.axisTick)),Q!==void 0&&!z&&C.jsx(V,k({x:Z,y:K,text:Q.toString()},ue))]},B)}),h&&C.jsx("g",{className:T.label,children:C.jsx(H,k({},E,ee,{text:h}))})]})}const Hu=e=>e==null?null:typeof e=="object"?e.axisId??null:e,Gu=(e,t,n)=>typeof e=="object"?k({},e,{slots:k({},t,e==null?void 0:e.slots),slotProps:k({},n,e==null?void 0:e.slotProps)}):{slots:t,slotProps:n};function yR(e){const{topAxis:t,leftAxis:n,rightAxis:r,bottomAxis:o,slots:i,slotProps:s}=e,{xAxis:a,xAxisIds:l,yAxis:u,yAxisIds:c}=w.useContext(Bt),f=Hu(n===void 0?c[0]:n),d=Hu(o===void 0?l[0]:o),h=Hu(t),p=Hu(r);if(h!==null&&!a[h])throw Error([`MUI X Charts: id used for top axis "${h}" is not defined.`,`Available ids are: ${l.join(", ")}.`].join(` `));if(f!==null&&!u[f])throw Error([`MUI X Charts: id used for left axis "${f}" is not defined.`,`Available ids are: ${c.join(", ")}.`].join(` `));if(p!==null&&!u[p])throw Error([`MUI X Charts: id used for right axis "${p}" is not defined.`,`Available ids are: ${c.join(", ")}.`].join(` `));if(d!==null&&!a[d])throw Error([`MUI X Charts: id used for bottom axis "${d}" is not defined.`,`Available ids are: ${l.join(", ")}.`].join(` -`));const y=Gu(t,i,s),x=Gu(o,i,s),g=Gu(n,i,s),v=Gu(r,i,s);return C.jsxs(w.Fragment,{children:[h&&C.jsx(Ab,k({},y,{position:"top",axisId:h})),d&&C.jsx(Ab,k({},x,{position:"bottom",axisId:d})),f&&C.jsx(Lb,k({},g,{position:"left",axisId:f})),p&&C.jsx(Lb,k({},v,{position:"right",axisId:p}))]})}function dV(e){return ce("MuiChartsGrid",e)}const fV=de("MuiChartsGrid",["root","line","horizontalLine","verticalLine"]),pV=["vertical","horizontal"],hV=G("g",{name:"MuiChartsGrid",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({[`& .${fV.line}`]:{stroke:(e.vars||e).palette.divider,shapeRendering:"crispEdges",strokeWidth:1}})),gV=({classes:e})=>le({root:["root"],verticalLine:["line","verticalLine"],horizontalLine:["line","horizontalLine"]},dV,e);function mV(e){const{vertical:t,horizontal:n}=e,r=W(e,pV),{xAxis:o,xAxisIds:i,yAxis:s,yAxisIds:a}=w.useContext(Bt),l=gV(e),u=a[0],c=i[0],{scale:f,tickNumber:d,tickInterval:h}=o[c],{scale:p,tickNumber:y,tickInterval:x}=s[u],g=hd({scale:f,tickNumber:d,tickInterval:h}),v=hd({scale:p,tickNumber:y,tickInterval:x});return C.jsxs(hV,k({},r,{className:l.root,children:[t&&g.map(({formattedValue:m,offset:b})=>C.jsx("line",{y1:p.range()[0],y2:p.range()[1],x1:b,x2:b,className:l.verticalLine},`vertical-${m}`)),n&&v.map(({formattedValue:m,offset:b})=>C.jsx("line",{y1:b,y2:b,x1:f.range()[0],x2:f.range()[1],className:l.horizontalLine},`horizontal-${m}`))]}))}const rr=w.createContext({item:null,axis:{x:null,y:null},useVoronoiInteraction:!1,dispatch:()=>null}),yV=(e,t)=>{switch(t.type){case"enterItem":return k({},e,{item:t.data});case"exitChart":return e.item===null&&e.axis.x===null&&e.axis.y===null?e:k({},e,{axis:{x:null,y:null},item:null});case"updateVoronoiUsage":return k({},e,{useVoronoiInteraction:t.useVoronoiInteraction});case"leaveItem":return e.item===null||Object.keys(t.data).some(n=>t.data[n]!==e.item[n])?e:k({},e,{item:null});case"updateAxis":return t.data.x===e.axis.x&&t.data.y===e.axis.y?e:k({},e,{axis:t.data});default:return e}};function vV(e){const{children:t}=e,[n,r]=w.useReducer(yV,{item:null,axis:{x:null,y:null},useVoronoiInteraction:!1}),o=w.useMemo(()=>k({},n,{dispatch:r}),[n]);return C.jsx(rr.Provider,{value:o,children:t})}function xV(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;return{getBoundingClientRect:()=>({width:0,height:0,x:t,y:n,top:n,right:t,bottom:n,left:t,toJSON:()=>JSON.stringify({width:0,height:0,x:t,y:n,top:n,right:t,bottom:n,left:t})})}}function bV(){const e=w.useContext(Ff),[t,n]=w.useState(null);return w.useEffect(()=>{const r=e.current;if(r===null)return()=>{};const o=()=>{n(null)},i=s=>{n({x:s.clientX,y:s.clientY})};return r.addEventListener("mouseout",o),r.addEventListener("mousemove",i),()=>{r.removeEventListener("mouseout",o),r.removeEventListener("mousemove",i)}},[e]),t}function wV(e,t){if(e==="item")return t!==null;const n=t.x!==null,r=t.y!==null;return n||r}function vR(e){return["bar","line","scatter"].includes(e)}function SV(e){return vR(e.type)}function CV(e){return e instanceof Date?e.toUTCString():e.toLocaleString()}function kV(e){return ce("MuiChartsTooltip",e)}const jb=de("MuiChartsTooltip",["root","table","row","cell","mark","markCell","labelCell","valueCell"]),xR=G("div",{name:"MuiChartsTooltip",slot:"Container"})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),border:`1px solid ${(e.vars||e).palette.divider}`,borderRadius:e.shape.borderRadius})),bR=G("table",{name:"MuiChartsTooltip",slot:"Table"})(({theme:e})=>({borderSpacing:0,"& thead td":{borderBottom:`solid ${(e.vars||e).palette.divider} 1px`}})),Kg=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)}})),Yo=G("td",{name:"MuiChartsTooltip",slot:"Cell"})(({theme:e})=>({verticalAlign:"middle",color:(e.vars||e).palette.text.secondary,[`&.${jb.labelCell}`]:{paddingLeft:e.spacing(1)},[`&.${jb.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)}})),wR=G(EI,{name:"MuiChartsTooltip",slot:"Mark"})(({theme:e,ownerState:t})=>({width:e.spacing(1),height:e.spacing(1),borderRadius:"50%",backgroundColor:t.color,borderColor:(e.vars||e).palette.background.paper,border:`solid ${(e.vars||e).palette.background.paper} ${e.spacing(.25)}`,boxSizing:"content-box"}));function PV(e){var u;const{series:t,itemData:n,sx:r,classes:o}=e;if(n.dataIndex===void 0||!t.data[n.dataIndex])return null;const{displayedLabel:i,color:s}=t.type==="pie"?{color:t.data[n.dataIndex].color,displayedLabel:t.data[n.dataIndex].label}:{color:t.color,displayedLabel:t.label},a=t.data[n.dataIndex],l=(u=t.valueFormatter)==null?void 0:u.call(t,a);return C.jsx(xR,{sx:r,className:o.root,children:C.jsx(bR,{className:o.table,children:C.jsx("tbody",{children:C.jsxs(Kg,{className:o.row,children:[C.jsx(Yo,{className:J(o.markCell,o.cell),children:C.jsx(wR,{ownerState:{color:s},className:o.mark})}),C.jsx(Yo,{className:J(o.labelCell,o.cell),children:i}),C.jsx(Yo,{className:J(o.valueCell,o.cell),children:l})]})})})})}function RV(e){const{content:t,itemData:n,sx:r,classes:o,contentProps:i}=e,s=w.useContext(nr)[n.type].series[n.seriesId],a=t??PV,l=wt({elementType:a,externalSlotProps:i,additionalProps:{itemData:n,series:s,sx:r,classes:o},ownerState:{}});return C.jsx(a,k({},l))}function $V(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"?CV(l):l.toLocaleString());return C.jsx(xR,{sx:i,className:s.root,children:C.jsxs(bR,{className:s.table,children:[o!=null&&!n.hideTooltip&&C.jsx("thead",{children:C.jsx(Kg,{children:C.jsx(Yo,{colSpan:3,children:C.jsx(Re,{children:a(o,{location:"tooltip"})})})})}),C.jsx("tbody",{children:t.filter(SV).map(({color:l,id:u,label:c,valueFormatter:f,data:d})=>{const h=f(d[r]??null);return h==null?null:C.jsxs(Kg,{className:s.row,children:[C.jsx(Yo,{className:J(s.markCell,s.cell),children:C.jsx(wR,{ownerState:{color:l},boxShadow:1,className:s.mark})}),C.jsx(Yo,{className:J(s.labelCell,s.cell),children:c?C.jsx(Re,{children:c}):null}),C.jsx(Yo,{className:J(s.valueCell,s.cell),children:C.jsx(Re,{children:h})})]},u)})})]})})}function TV(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:f,yAxis:d}=w.useContext(Bt),h=w.useContext(nr),p=s?u[0]:f[0],y=w.useMemo(()=>{const m=[];return Object.keys(h).filter(vR).forEach(b=>{h[b].seriesOrder.forEach(S=>{const P=h[b].series[S],R=s?P.xAxisKey:P.yAxisKey;(R===void 0||R===p)&&m.push(h[b].series[S])})}),m},[p,s,h]),x=w.useMemo(()=>s?c[p]:d[p],[p,s,c,d]),g=t??$V,v=wt({elementType:g,externalSlotProps:n,additionalProps:{axisData:r,series:y,axis:x,dataIndex:a,axisValue:l,sx:o,classes:i},ownerState:{}});return C.jsx(g,k({},v))}const MV=e=>{const{classes:t}=e;return le({root:["root"],table:["table"],row:["row"],cell:["cell"],mark:["mark"],markCell:["markCell"],labelCell:["labelCell"],valueCell:["valueCell"]},kV,t)},EV=G(uk,{name:"MuiChartsTooltip",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({pointerEvents:"none",zIndex:e.zIndex.modal}));function SR(e){const t=ye({props:e,name:"MuiChartsTooltip"}),{trigger:n="axis",itemContent:r,axisContent:o,slots:i,slotProps:s}=t,a=bV(),{item:l,axis:u}=w.useContext(rr),c=n==="item"?l:u,f=wV(n,c),d=a!==null&&f,h=MV({classes:t.classes}),p=(i==null?void 0:i.popper)??EV,y=wt({elementType:p,externalSlotProps:s==null?void 0:s.popper,additionalProps:{open:d,placement:"right-start",anchorEl:xV(a)},ownerState:{}});return n==="none"?null:C.jsx(Z2,{children:d&&C.jsx(p,k({},y,{children:n==="item"?C.jsx(RV,{itemData:c,content:(i==null?void 0:i.itemContent)??r,contentProps:s==null?void 0:s.itemContent,sx:{mx:2},classes:h}):C.jsx(TV,{axisData:c,content:(i==null?void 0:i.axisContent)??o,contentProps:s==null?void 0:s.axisContent,sx:{mx:2},classes:h})}))})}const _V=e=>{const{seriesOrder:t,series:n}=e;return t.map(o=>({color:n[o].color,label:n[o].label,id:o})).filter(o=>o.label!==void 0)},IV=_V,OV=e=>{const{seriesOrder:t,series:n}=e;return t.map(o=>({color:n[o].color,label:n[o].label,id:o})).filter(o=>o.label!==void 0)},AV=OV,NV=e=>{const{seriesOrder:t,series:n}=e;return t.map(o=>({color:n[o].color,label:n[o].label,id:o})).filter(o=>o.label!==void 0)},LV=NV,jV=e=>{const{seriesOrder:t,series:n}=e;return t.flatMap(r=>n[r].data.map(o=>({color:o.color,label:o.label,id:o.id})).filter(o=>o.label!==void 0))},DV=jV,FV={bar:IV,scatter:AV,line:LV,pie:DV};function zV(e){return Object.keys(e).flatMap(t=>FV[t](e[t]))}function BV(e){return ce("MuiChartsLegend",e)}de("MuiChartsLegend",["root","series","mark","label","column","row"]);const UV=["rotate","dominantBaseline"],VV=["label"],WV=G("g",{name:"MuiChartsLegend",slot:"Root",overridesResolver:(e,t)=>t.root})({}),HV=e=>typeof e=="number"?{left:e,right:e,top:e,bottom:e}:k({left:0,right:0,top:0,bottom:0},e);function GV(e){const{hidden:t,position:n,direction:r,seriesToDisplay:o,drawingArea:i,classes:s,itemMarkWidth:a=20,itemMarkHeight:l=20,markGap:u=5,itemGap:c=10,padding:f=10,labelStyle:d}=e,h=_t(),p=h.direction==="rtl",y=w.useMemo(()=>k({},h.typography.subtitle1,{color:"inherit",dominantBaseline:"central",textAnchor:"start",fill:(h.vars||h).palette.text.primary,lineHeight:1},d),[d,h]),x=w.useMemo(()=>HV(f),[f]),g=w.useCallback((_,N={})=>{const I=W(N,UV),O=vv({style:I,needsComputation:!0,text:_}),L={innerWidth:a+u+Math.max(...O.map(A=>A.width)),innerHeight:Math.max(l,O.length*O[0].height)};return k({},L,{outerWidth:L.innerWidth+c,outerHeight:L.innerHeight+c})},[c,l,a,u]),v=i.left+i.width+i.right,m=i.top+i.height+i.bottom,b=v-x.left-x.right,S=m-x.top-x.bottom,[P,R,$]=w.useMemo(()=>{let _=0,N=0,I=0,O=0,L=0;const A=[0];return[o.map(E=>{let{label:D}=E,F=W(E,VV);const V=g(D,y),H=k({},F,{label:D,positionX:_,positionY:N,innerHeight:V.innerHeight,innerWidth:V.innerWidth,outerHeight:V.outerHeight,outerWidth:V.outerWidth,rowIndex:L});return r==="row"&&(_+V.innerWidth>b&&(_=0,N+=A[L],L+=1,A.length<=L&&A.push(0),H.positionX=_,H.positionY=N,H.rowIndex=L),I=Math.max(I,_+V.outerWidth),O=Math.max(O,N+V.outerHeight),A[L]=Math.max(A[L],V.outerHeight),_+=V.outerWidth),r==="column"&&(N+V.innerHeight>S&&(_=I+c,N=0,L=0,H.positionX=_,H.positionY=N,H.rowIndex=L),A.length<=L&&A.push(0),I=Math.max(I,_+V.outerWidth),O=Math.max(O,N+V.outerHeight),L+=1,N+=V.outerHeight),H}).map(E=>k({},E,{positionY:E.positionY+(r==="row"?A[E.rowIndex]/2:E.outerHeight/2)})),I,O]},[o,g,y,r,b,S,c]),M=w.useMemo(()=>{switch(n.horizontal){case"left":return x.left;case"right":return v-x.right-R;default:return(v-R)/2}},[n.horizontal,x.left,x.right,v,R]),T=w.useMemo(()=>{switch(n.vertical){case"top":return x.top;case"bottom":return m-x.bottom-$;default:return(m-$)/2}},[n.vertical,x.top,x.bottom,m,$]);return t?null:C.jsx(Z2,{children:C.jsx(WV,{className:s.root,children:P.map(({id:_,label:N,color:I,positionX:O,positionY:L})=>C.jsxs("g",{className:s.series,transform:`translate(${M+(p?R-O:O)} ${T+L})`,children:[C.jsx("rect",{className:s.mark,x:p?-a:0,y:-l/2,width:a,height:l,fill:I}),C.jsx(El,{style:y,text:N,x:(p?-1:1)*(a+u),y:0})]},_))})})}const KV=e=>{const{classes:t,direction:n}=e;return le({root:["root",n],mark:["mark"],label:["label"],series:["series"]},BV,t)},YV={position:{horizontal:"middle",vertical:"top"},direction:"row"};function CR(e){const t=ye({props:k({},YV,e),name:"MuiChartsLegend"}),{position:n,direction:r,hidden:o,slots:i,slotProps:s}=t,a=_t(),l=KV(k({},t,{theme:a})),u=w.useContext(tr),c=w.useContext(nr),f=zV(c),d=(i==null?void 0:i.legend)??GV,h=wt({elementType:d,externalSlotProps:s==null?void 0:s.legend,additionalProps:{position:n,direction:r,classes:l,drawingArea:u,series:c,hidden:o,seriesToDisplay:f},ownerState:{}});return C.jsx(d,k({},h))}function qV(e){return ce("MuiChartsAxisHighlight",e)}de("MuiChartsAxisHighlight",["root"]);const XV=()=>le({root:["root"]},qV),Ku=G("path",{name:"MuiChartsAxisHighlight",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e,theme:t})=>k({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 kR(e){const{x:t,y:n}=e,{xAxisIds:r,xAxis:o,yAxisIds:i,yAxis:s}=w.useContext(Bt),a=XV(),l=r[0],u=i[0],c=o[l].scale,f=s[u].scale,{axis:d}=w.useContext(rr),h=_s(c),p=_s(f);return C.jsxs(w.Fragment,{children:[t==="band"&&d.x!==null&&Ml(c)&&C.jsx(Ku,{d:`M ${c(d.x.value)-(c.step()-c.bandwidth())/2} ${f.range()[0]} l ${c.step()} 0 l 0 ${f.range()[1]-f.range()[0]} l ${-c.step()} 0 Z`,className:a.root,ownerState:{axisHighlight:"band"}}),n==="band"&&d.y!==null&&Ml(f)&&C.jsx(Ku,{d:`M ${c.range()[0]} ${f(d.y.value)-(f.step()-f.bandwidth())/2} l 0 ${f.step()} l ${c.range()[1]-c.range()[0]} 0 l 0 ${-f.step()} Z`,className:a.root,ownerState:{axisHighlight:"band"}}),t==="line"&&d.x!==null&&C.jsx(Ku,{d:`M ${h(d.x.value)} ${f.range()[0]} L ${h(d.x.value)} ${f.range()[1]}`,className:a.root,ownerState:{axisHighlight:"line"}}),n==="line"&&d.y!==null&&C.jsx(Ku,{d:`M ${c.range()[0]} ${p(d.y.value)} L ${c.range()[1]} ${p(d.y.value)}`,className:a.root,ownerState:{axisHighlight:"line"}})]})}function QV(e){return"circle cross diamond square star triangle wye".split(/ /).indexOf(e)||0}function ZV(e,t){const n=e.createSVGPoint();return n.x=t.clientX,n.y=t.clientY,n.matrixTransform(e.getScreenCTM().inverse())}function Sr(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-Charts: Received an unknown value "${e}". It should be a number, or a string with a percentage value.`)}function xv(e){return e.replace(" ","_")}function JV(e){const{onAxisClick:t}=e,n=w.useContext(Ff),r=w.useContext(nr),{axis:o}=w.useContext(rr),{xAxisIds:i,xAxis:s,yAxisIds:a,yAxis:l}=w.useContext(Bt);return w.useEffect(()=>{const u=n.current;if(u===null||!t)return()=>{};const c=f=>{var g;f.preventDefault();const d=(o.x&&o.x.index)!==void 0,h=d?i[0]:a[0],p=d?o.x&&o.x.index:o.y&&o.y.index;if(p==null)return;const y={};Object.keys(r).filter(v=>["bar","line"].includes(v)).forEach(v=>{var m;(m=r[v])==null||m.seriesOrder.forEach(b=>{const S=r[v].series[b],P=d?S.xAxisKey:S.yAxisKey;(P===void 0||P===h)&&(y[b]=S.data[p])})});const x=(g=(d?s:l)[h].data)==null?void 0:g[p];t(f,{dataIndex:p,axisValue:x,seriesValues:y})};return u.addEventListener("click",c),()=>{u.removeEventListener("click",c)}},[o.x,o.y,t,r,n,s,i,l,a]),C.jsx(w.Fragment,{})}var eW=Object.defineProperty,tW=(e,t)=>{for(var n in t)eW(e,n,{get:t[n],enumerable:!0})},jn={};tW(jn,{assign:()=>oW,colors:()=>xo,createStringInterpolator:()=>Rv,skipAnimation:()=>_R,to:()=>ER,willAdvance:()=>$v});var bv=au(),be=e=>su(e,bv),wv=au();be.write=e=>su(e,wv);var Kf=au();be.onStart=e=>su(e,Kf);var Sv=au();be.onFrame=e=>su(e,Sv);var Cv=au();be.onFinish=e=>su(e,Cv);var as=[];be.setTimeout=(e,t)=>{const n=be.now()+t,r=()=>{const i=as.findIndex(s=>s.cancel==r);~i&&as.splice(i,1),ao-=~i?1:0},o={time:n,handler:e,cancel:r};return as.splice(PR(n),0,o),ao+=1,RR(),o};var PR=e=>~(~as.findIndex(t=>t.time>e)||~as.length);be.cancel=e=>{Kf.delete(e),Sv.delete(e),Cv.delete(e),bv.delete(e),wv.delete(e)};be.sync=e=>{Yg=!0,be.batchedUpdates(e),Yg=!1};be.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...o){t=o,be.onStart(n)}return r.handler=e,r.cancel=()=>{Kf.delete(n),t=null},r};var kv=typeof window<"u"?window.requestAnimationFrame:()=>{};be.use=e=>kv=e;be.now=typeof performance<"u"?()=>performance.now():Date.now;be.batchedUpdates=e=>e();be.catch=console.error;be.frameLoop="always";be.advance=()=>{be.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):TR()};var so=-1,ao=0,Yg=!1;function su(e,t){Yg?(t.delete(e),e(0)):(t.add(e),RR())}function RR(){so<0&&(so=0,be.frameLoop!=="demand"&&kv($R))}function nW(){so=-1}function $R(){~so&&(kv($R),be.batchedUpdates(TR))}function TR(){const e=so;so=be.now();const t=PR(so);if(t&&(MR(as.splice(0,t),n=>n.handler()),ao-=t),!ao){nW();return}Kf.flush(),bv.flush(e?Math.min(64,so-e):16.667),Sv.flush(),wv.flush(),Cv.flush()}function au(){let e=new Set,t=e;return{add(n){ao+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return ao-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,ao-=t.size,MR(t,r=>r(n)&&e.add(r)),ao+=e.size,t=e)}}}function MR(e,t){e.forEach(n=>{try{t(n)}catch(r){be.catch(r)}})}function qg(){}var rW=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Y={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 Pr(e,t){if(Y.arr(e)){if(!Y.arr(t)||e.length!==t.length)return!1;for(let n=0;ne.forEach(t);function vr(e,t,n){if(Y.arr(e)){for(let r=0;rY.und(e)?[]:Y.arr(e)?e:[e];function Wa(e,t){if(e.size){const n=Array.from(e);e.clear(),xe(n,t)}}var Ta=(e,...t)=>Wa(e,n=>n(...t)),Pv=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),Rv,ER,xo=null,_R=!1,$v=qg,oW=e=>{e.to&&(ER=e.to),e.now&&(be.now=e.now),e.colors!==void 0&&(xo=e.colors),e.skipAnimation!=null&&(_R=e.skipAnimation),e.createStringInterpolator&&(Rv=e.createStringInterpolator),e.requestAnimationFrame&&be.use(e.requestAnimationFrame),e.batchedUpdates&&(be.batchedUpdates=e.batchedUpdates),e.willAdvance&&($v=e.willAdvance),e.frameLoop&&(be.frameLoop=e.frameLoop)},Ha=new Set,$n=[],fh=[],gd=0,Yf={get idle(){return!Ha.size&&!$n.length},start(e){gd>e.priority?(Ha.add(e),be.onStart(iW)):(IR(e),be(Xg))},advance:Xg,sort(e){if(gd)be.onFrame(()=>Yf.sort(e));else{const t=$n.indexOf(e);~t&&($n.splice(t,1),OR(e))}},clear(){$n=[],Ha.clear()}};function iW(){Ha.forEach(IR),Ha.clear(),be(Xg)}function IR(e){$n.includes(e)||OR(e)}function OR(e){$n.splice(sW($n,t=>t.priority>e.priority),0,e)}function Xg(e){const t=fh;for(let n=0;n<$n.length;n++){const r=$n[n];gd=r.priority,r.idle||($v(r),r.advance(e),r.idle||t.push(r))}return gd=0,fh=$n,fh.length=0,$n=t,$n.length>0}function sW(e,t){const n=e.findIndex(t);return n<0?e.length:n}var aW=(e,t,n)=>Math.min(Math.max(n,e),t),lW={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},Qn="[-+]?\\d*\\.?\\d+",md=Qn+"%";function qf(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var uW=new RegExp("rgb"+qf(Qn,Qn,Qn)),cW=new RegExp("rgba"+qf(Qn,Qn,Qn,Qn)),dW=new RegExp("hsl"+qf(Qn,md,md)),fW=new RegExp("hsla"+qf(Qn,md,md,Qn)),pW=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hW=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,gW=/^#([0-9a-fA-F]{6})$/,mW=/^#([0-9a-fA-F]{8})$/;function yW(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=gW.exec(e))?parseInt(t[1]+"ff",16)>>>0:xo&&xo[e]!==void 0?xo[e]:(t=uW.exec(e))?(Ri(t[1])<<24|Ri(t[2])<<16|Ri(t[3])<<8|255)>>>0:(t=cW.exec(e))?(Ri(t[1])<<24|Ri(t[2])<<16|Ri(t[3])<<8|zb(t[4]))>>>0:(t=pW.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=mW.exec(e))?parseInt(t[1],16)>>>0:(t=hW.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=dW.exec(e))?(Db(Fb(t[1]),Yu(t[2]),Yu(t[3]))|255)>>>0:(t=fW.exec(e))?(Db(Fb(t[1]),Yu(t[2]),Yu(t[3]))|zb(t[4]))>>>0:null}function ph(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 Db(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,i=ph(o,r,e+1/3),s=ph(o,r,e),a=ph(o,r,e-1/3);return Math.round(i*255)<<24|Math.round(s*255)<<16|Math.round(a*255)<<8}function Ri(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function Fb(e){return(parseFloat(e)%360+360)%360/360}function zb(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function Yu(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function Bb(e){let t=yW(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 _l=(e,t,n)=>{if(Y.fun(e))return e;if(Y.arr(e))return _l({range:e,output:t,extrapolate:n});if(Y.str(e.output[0]))return Rv(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=xW(u,i);return vW(u,i[c],i[c+1],o[c],o[c+1],l,s,a,r.map)}};function vW(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 xW(e,t){for(var n=1;n=e);++n);return n-1}var bW=(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 aW(0,1,o/e)},yd=1.70158,qu=yd*1.525,Ub=yd+1,Vb=2*Math.PI/3,Wb=2*Math.PI/4.5,Xu=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,wW={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=>Ub*e*e*e-yd*e*e,easeOutBack:e=>1+Ub*Math.pow(e-1,3)+yd*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*((qu+1)*2*e-qu)/2:(Math.pow(2*e-2,2)*((qu+1)*(e*2-2)+qu)+2)/2,easeInElastic:e=>e===0?0:e===1?1:-Math.pow(2,10*e-10)*Math.sin((e*10-10.75)*Vb),easeOutElastic:e=>e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e*10-.75)*Vb)+1,easeInOutElastic:e=>e===0?0:e===1?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*Wb))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*Wb)/2+1,easeInBounce:e=>1-Xu(1-e),easeOutBounce:Xu,easeInOutBounce:e=>e<.5?(1-Xu(1-2*e))/2:(1+Xu(2*e-1))/2,steps:bW},Il=Symbol.for("FluidValue.get"),Is=Symbol.for("FluidValue.observers"),Rn=e=>!!(e&&e[Il]),Ht=e=>e&&e[Il]?e[Il]():e,Hb=e=>e[Is]||null;function SW(e,t){e.eventObserved?e.eventObserved(t):e(t)}function Ol(e,t){const n=e[Is];n&&n.forEach(r=>{SW(r,t)})}var AR=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");CW(this,e)}},CW=(e,t)=>NR(e,Il,t);function Ws(e,t){if(e[Il]){let n=e[Is];n||NR(e,Is,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function Al(e,t){const n=e[Is];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[Is]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var NR=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),vc=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,kW=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Gb=new RegExp(`(${vc.source})(%|[a-z]+)`,"i"),PW=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Xf=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,LR=e=>{const[t,n]=RW(e);if(!t||Pv())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&&Xf.test(n))return LR(n);if(n)return n}return e},RW=e=>{const t=Xf.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},hh,$W=(e,t,n,r,o)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${o})`,jR=e=>{hh||(hh=xo?new RegExp(`(${Object.keys(xo).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(i=>Ht(i).replace(Xf,LR).replace(kW,Bb).replace(hh,Bb)),n=t.map(i=>i.match(vc).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=>_l({...e,output:i}));return i=>{var l;const s=!Gb.test(t[0])&&((l=t.find(u=>Gb.test(u)))==null?void 0:l.replace(vc,""));let a=0;return t[0].replace(vc,()=>`${o[a++](i)}${s||""}`).replace(PW,$W)}},Tv="react-spring: ",DR=e=>{const t=e;let n=!1;if(typeof t!="function")throw new TypeError(`${Tv}once requires a function parameter`);return(...r)=>{n||(t(...r),n=!0)}},TW=DR(console.warn);function MW(){TW(`${Tv}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var EW=DR(console.warn);function _W(){EW(`${Tv}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 Qf(e){return Y.str(e)&&(e[0]=="#"||/\d/.test(e)||!Pv()&&Xf.test(e)||e in(xo||{}))}var lo=Pv()?w.useEffect:w.useLayoutEffect,IW=()=>{const e=w.useRef(!1);return lo(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function Mv(){const e=w.useState()[1],t=IW();return()=>{t.current&&e(Math.random())}}function OW(e,t){const[n]=w.useState(()=>({inputs:t,result:e()})),r=w.useRef(),o=r.current;let i=o;return i?t&&i.inputs&&AW(t,i.inputs)||(i={inputs:t,result:e()}):i=n,w.useEffect(()=>{r.current=i,o==n&&(n.inputs=n.result=void 0)},[i]),i.result}function AW(e,t){if(e.length!==t.length)return!1;for(let n=0;nw.useEffect(e,NW),NW=[];function Qg(e){const t=w.useRef();return w.useEffect(()=>{t.current=e}),t.current}var Nl=Symbol.for("Animated:node"),LW=e=>!!e&&e[Nl]===e,sr=e=>e&&e[Nl],_v=(e,t)=>rW(e,Nl,t),Zf=e=>e&&e[Nl]&&e[Nl].getPayload(),FR=class{constructor(){_v(this,this)}getPayload(){return this.payload||[]}},lu=class extends FR{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,Y.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new lu(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return Y.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,Y.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},Ll=class extends lu{constructor(e){super(0),this._string=null,this._toString=_l({output:[e,e]})}static create(e){return new Ll(e)}getValue(){const e=this._string;return e??(this._string=this._toString(this._value))}setValue(e){if(Y.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=_l({output:[this.getValue(),e]})),this._value=0,super.reset()}},vd={dependencies:null},Jf=class extends FR{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return vr(this.source,(n,r)=>{LW(n)?t[r]=n.getValue(e):Rn(n)?t[r]=Ht(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&xe(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return vr(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){vd.dependencies&&Rn(e)&&vd.dependencies.add(e);const t=Zf(e);t&&xe(t,n=>this.add(n))}},zR=class extends Jf{constructor(e){super(e)}static create(e){return new zR(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(jW)),!0)}};function jW(e){return(Qf(e)?Ll:lu).create(e)}function Zg(e){const t=sr(e);return t?t.constructor:Y.arr(e)?zR:Qf(e)?Ll:lu}var Kb=(e,t)=>{const n=!Y.fun(e)||e.prototype&&e.prototype.isReactComponent;return w.forwardRef((r,o)=>{const i=w.useRef(null),s=n&&w.useCallback(p=>{i.current=zW(o,p)},[o]),[a,l]=FW(r,t),u=Mv(),c=()=>{const p=i.current;if(n&&!p)return;(p?t.applyAnimatedValues(p,a.getValue(!0)):!1)===!1&&u()},f=new DW(c,l),d=w.useRef();lo(()=>(d.current=f,xe(l,p=>Ws(p,f)),()=>{d.current&&(xe(d.current.deps,p=>Al(p,d.current)),be.cancel(d.current.update))})),w.useEffect(c,[]),Ev(()=>()=>{const p=d.current;xe(p.deps,y=>Al(y,p))});const h=t.getComponentProps(a.getValue());return w.createElement(e,{...h,ref:s})})},DW=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&be.write(this.update)}};function FW(e,t){const n=new Set;return vd.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new Jf(e),vd.dependencies=null,[e,n]}function zW(e,t){return e&&(Y.fun(e)?e(t):e.current=t),t}var Yb=Symbol.for("AnimatedComponent"),BW=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=o=>new Jf(o),getComponentProps:r=o=>o}={})=>{const o={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},i=s=>{const a=qb(s)||"Anonymous";return Y.str(s)?s=i[s]||(i[s]=Kb(s,o)):s=s[Yb]||(s[Yb]=Kb(s,o)),s.displayName=`Animated(${a})`,s};return vr(e,(s,a)=>{Y.arr(e)&&(a=qb(s)),i[a]=i(s)}),{animated:i}},qb=e=>Y.str(e)?e:e&&Y.str(e.displayName)?e.displayName:Y.fun(e)&&e.name||null;function Gt(e,...t){return Y.fun(e)?e(...t):e}var Ga=(e,t)=>e===!0||!!(t&&e&&(Y.fun(e)?e(t):Lt(e).includes(t))),BR=(e,t)=>Y.obj(e)?t&&e[t]:e,UR=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,UW=e=>e,ep=(e,t=UW)=>{let n=VW;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);Y.und(i)||(r[o]=i)}return r},VW=["config","onProps","onStart","onChange","onPause","onResume","onRest"],WW={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 HW(e){const t={};let n=0;if(vr(e,(r,o)=>{WW[o]||(t[o]=r,n++)}),n)return t}function Iv(e){const t=HW(e);if(t){const n={to:t};return vr(e,(r,o)=>o in t||(n[o]=r)),n}return{...e}}function jl(e){return e=Ht(e),Y.arr(e)?e.map(jl):Qf(e)?jn.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function VR(e){for(const t in e)return!0;return!1}function Jg(e){return Y.fun(e)||Y.arr(e)&&Y.obj(e[0])}function em(e,t){var n;(n=e.ref)==null||n.delete(e),t==null||t.delete(e)}function WR(e,t){var n;t&&e.ref!==t&&((n=e.ref)==null||n.delete(e),t.add(e),e.ref=t)}var GW={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}},tm={...GW.default,mass:1,damping:1,easing:wW.linear,clamp:!1},KW=class{constructor(){this.velocity=0,Object.assign(this,tm)}};function YW(e,t,n){n&&(n={...n},Xb(n,t),t={...n,...t}),Xb(e,t),Object.assign(e,t);for(const s in tm)e[s]==null&&(e[s]=tm[s]);let{frequency:r,damping:o}=e;const{mass:i}=e;return Y.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 Xb(e,t){if(!Y.und(t.decay))e.duration=void 0;else{const n=!Y.und(t.tension)||!Y.und(t.friction);(n||!Y.und(t.frequency)||!Y.und(t.damping)||!Y.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}var Qb=[],qW=class{constructor(){this.changed=!1,this.values=Qb,this.toValues=null,this.fromValues=Qb,this.config=new KW,this.immediate=!1}};function HR(e,{key:t,props:n,defaultProps:r,state:o,actions:i}){return new Promise((s,a)=>{let l,u,c=Ga(n.cancel??(r==null?void 0:r.cancel),t);if(c)h();else{Y.und(n.pause)||(o.paused=Ga(n.pause,t));let p=r==null?void 0:r.pause;p!==!0&&(p=o.paused||Ga(p,t)),l=Gt(n.delay||0,t),p?(o.resumeQueue.add(d),i.pause()):(i.resume(),d())}function f(){o.resumeQueue.add(d),o.timeouts.delete(u),u.cancel(),l=u.time-be.now()}function d(){l>0&&!jn.skipAnimation?(o.delayed=!0,u=be.setTimeout(h,l),o.pauseQueue.add(f),o.timeouts.add(u)):h()}function h(){o.delayed&&(o.delayed=!1),o.pauseQueue.delete(f),o.timeouts.delete(u),e<=(o.cancelId||0)&&(c=!0);try{i.start({...n,callId:e,cancel:c},s)}catch(p){a(p)}}})}var Ov=(e,t)=>t.length==1?t[0]:t.some(n=>n.cancelled)?ls(e.get()):t.every(n=>n.noop)?GR(e.get()):Yn(e.get(),t.every(n=>n.finished)),GR=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Yn=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),ls=e=>({value:e,cancelled:!0,finished:!1});function KR(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=ep(t,(x,g)=>g==="onRest"?void 0:x);let c,f;const d=new Promise((x,g)=>(c=x,f=g)),h=x=>{const g=o<=(n.cancelId||0)&&ls(r)||o!==n.asyncId&&Yn(r,!1);if(g)throw x.result=g,f(x),x},p=(x,g)=>{const v=new Zb,m=new Jb;return(async()=>{if(jn.skipAnimation)throw Dl(n),m.result=Yn(r,!1),f(m),m;h(v);const b=Y.obj(x)?{...x}:{...g,to:x};b.parentId=o,vr(u,(P,R)=>{Y.und(b[R])&&(b[R]=P)});const S=await r.start(b);return h(v),n.paused&&await new Promise(P=>{n.resumeQueue.add(P)}),S})()};let y;if(jn.skipAnimation)return Dl(n),Yn(r,!1);try{let x;Y.arr(e)?x=(async g=>{for(const v of g)await p(v)})(e):x=Promise.resolve(e(p,r.stop.bind(r))),await Promise.all([x.then(c),d]),y=Yn(r.get(),!0,!1)}catch(x){if(x instanceof Zb)y=x.result;else if(x instanceof Jb)y=x.result;else throw x}finally{o==n.asyncId&&(n.asyncId=i,n.asyncTo=i?a:void 0,n.promise=i?l:void 0)}return Y.fun(s)&&be.batchedUpdates(()=>{s(y,r,r.item)}),y})()}function Dl(e,t){Wa(e.timeouts,n=>n.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var Zb=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.")}},Jb=class extends Error{constructor(){super("SkipAnimationSignal")}},nm=e=>e instanceof Av,XW=1,Av=class extends AR{constructor(){super(...arguments),this.id=XW++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=sr(this);return e&&e.getValue()}to(...e){return jn.to(this,e)}interpolate(...e){return MW(),jn.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){Ol(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||Yf.sort(this),Ol(this,{type:"priority",parent:this,priority:e})}},ui=Symbol.for("SpringPhase"),YR=1,rm=2,om=4,gh=e=>(e[ui]&YR)>0,Xr=e=>(e[ui]&rm)>0,ha=e=>(e[ui]&om)>0,ew=(e,t)=>t?e[ui]|=rm|YR:e[ui]&=~rm,tw=(e,t)=>t?e[ui]|=om:e[ui]&=~om,QW=class extends Av{constructor(e,t){if(super(),this.animation=new qW,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,!Y.und(e)||!Y.und(t)){const n=Y.obj(e)?{...e}:{...t,from:e};Y.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(Xr(this)||this._state.asyncTo)||ha(this)}get goal(){return Ht(this.animation.to)}get velocity(){const e=sr(this);return e instanceof lu?e.lastVelocity||0:e.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return gh(this)}get isAnimating(){return Xr(this)}get isPaused(){return ha(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=Zf(r.to);!s&&Rn(r.to)&&(o=Lt(Ht(r.to))),r.values.forEach((u,c)=>{if(u.done)return;const f=u.constructor==Ll?1:s?s[c].lastPosition:o[c];let d=r.immediate,h=f;if(!d){if(h=u.lastPosition,i.tension<=0){u.done=!0;return}let p=u.elapsedTime+=e;const y=r.fromValues[c],x=u.v0!=null?u.v0:u.v0=Y.arr(i.velocity)?i.velocity[c]:i.velocity;let g;const v=i.precision||(y==f?.005:Math.min(1,Math.abs(f-y)*.001));if(Y.und(i.duration))if(i.decay){const m=i.decay===!0?.998:i.decay,b=Math.exp(-(1-m)*p);h=y+x/(1-m)*(1-b),d=Math.abs(u.lastPosition-h)<=v,g=x*b}else{g=u.lastVelocity==null?x:u.lastVelocity;const m=i.restVelocity||v/10,b=i.clamp?0:i.bounce,S=!Y.und(b),P=y==f?u.v0>0:ym,!(!R&&(d=Math.abs(f-h)<=v,d)));++_){S&&($=h==f||h>f==P,$&&(g=-g*b,h=f));const N=-i.tension*1e-6*(h-f),I=-i.friction*.001*g,O=(N+I)/i.mass;g=g+O*M,h=h+g*M}}else{let m=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)),m=(i.progress||0)+p/this._memoizedDuration,m=m>1?1:m<0?0:m,u.durationProgress=m),h=y+i.easing(m)*(f-y),g=(h-u.lastPosition)/e,d=m==1}u.lastVelocity=g,Number.isNaN(h)&&(console.warn("Got NaN while animating:",this),d=!0)}s&&!s[c].done&&(d=!1),d?u.done=!0:t=!1,u.setValue(h,i.round)&&(n=!0)});const a=sr(this),l=a.getValue();if(t){const u=Ht(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 be.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(Xr(this)){const{to:e,config:t}=this.animation;be.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 Y.und(e)?(n=this.queue||[],this.queue=[]):n=[Y.obj(e)?e:{...t,to:e}],Promise.all(n.map(r=>this._update(r))).then(r=>Ov(this,r))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),Dl(this._state,e&&this._lastCallId),be.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=Y.obj(n)?n[t]:n,(n==null||Jg(n))&&(n=void 0),r=Y.obj(r)?r[t]:r,r==null&&(r=void 0);const o={to:n,from:r};return gh(this)||(e.reverse&&([n,r]=[r,n]),r=Ht(r),Y.und(r)?sr(this)||this._set(n):this._set(r)),o}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,ep(e,(s,a)=>/^on/.test(a)?BR(s,n):s)),rw(this,e,"onProps"),ma(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 HR(++this._lastCallId,{key:n,props:e,defaultProps:r,state:i,actions:{pause:()=>{ha(this)||(tw(this,!0),Ta(i.pauseQueue),ma(this,"onPause",Yn(this,ga(this,this.animation.to)),this))},resume:()=>{ha(this)&&(tw(this,!1),Xr(this)&&this._resume(),Ta(i.resumeQueue),ma(this,"onResume",Yn(this,ga(this,this.animation.to)),this))},start:this._merge.bind(this,o)}}).then(s=>{if(e.loop&&s.finished&&!(t&&s.noop)){const a=qR(e);if(a)return this._update(a,!0)}return s})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(ls(this));const r=!Y.und(e.to),o=!Y.und(e.from);if(r||o)if(t.callId>this._lastToId)this._lastToId=t.callId;else return n(ls(this));const{key:i,defaultProps:s,animation:a}=this,{to:l,from:u}=a;let{to:c=l,from:f=u}=e;o&&!r&&(!t.default||Y.und(c))&&(c=f),t.reverse&&([c,f]=[f,c]);const d=!Pr(f,u);d&&(a.from=f),f=Ht(f);const h=!Pr(c,l);h&&this._focus(c);const p=Jg(t.to),{config:y}=a,{decay:x,velocity:g}=y;(r||o)&&(y.velocity=0),t.config&&!p&&YW(y,Gt(t.config,i),t.config!==s.config?Gt(s.config,i):void 0);let v=sr(this);if(!v||Y.und(c))return n(Yn(this,!0));const m=Y.und(t.reset)?o&&!t.default:!Y.und(f)&&Ga(t.reset,i),b=m?f:this.get(),S=jl(c),P=Y.num(S)||Y.arr(S)||Qf(S),R=!p&&(!P||Ga(s.immediate||t.immediate,i));if(h){const _=Zg(c);if(_!==v.constructor)if(R)v=this._set(S);else throw Error(`Cannot animate between ${v.constructor.name} and ${_.name}, as the "to" prop suggests`)}const $=v.constructor;let M=Rn(c),T=!1;if(!M){const _=m||!gh(this)&&d;(h||_)&&(T=Pr(jl(b),S),M=!T),(!Pr(a.immediate,R)&&!R||!Pr(y.decay,x)||!Pr(y.velocity,g))&&(M=!0)}if(T&&Xr(this)&&(a.changed&&!m?M=!0:M||this._stop(l)),!p&&((M||Rn(l))&&(a.values=v.getPayload(),a.toValues=Rn(c)?null:$==Ll?[1]:Lt(S)),a.immediate!=R&&(a.immediate=R,!R&&!m&&this._set(l)),M)){const{onRest:_}=a;xe(JW,I=>rw(this,t,I));const N=Yn(this,ga(this,l));Ta(this._pendingCalls,N),this._pendingCalls.add(n),a.changed&&be.batchedUpdates(()=>{var I;a.changed=!m,_==null||_(N,this),m?Gt(s.onRest,N):(I=a.onStart)==null||I.call(a,N,this)})}m&&this._set(b),p?n(KR(t.to,t,this._state,this)):M?this._start():Xr(this)&&!h?this._pendingCalls.add(n):n(GR(b))}_focus(e){const t=this.animation;e!==t.to&&(Hb(this)&&this._detach(),t.to=e,Hb(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;Rn(t)&&(Ws(t,this),nm(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;Rn(e)&&Al(e,this)}_set(e,t=!0){const n=Ht(e);if(!Y.und(n)){const r=sr(this);if(!r||!Pr(n,r.getValue())){const o=Zg(n);!r||r.constructor!=o?_v(this,o.create(n)):r.setValue(n),r&&be.batchedUpdates(()=>{this._onChange(n,t)})}}return sr(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,ma(this,"onStart",Yn(this,ga(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),Gt(this.animation.onChange,e,this)),Gt(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;sr(this).reset(Ht(e.to)),e.immediate||(e.fromValues=e.values.map(t=>t.lastPosition)),Xr(this)||(ew(this,!0),ha(this)||this._resume())}_resume(){jn.skipAnimation?this.finish():Yf.start(this)}_stop(e,t){if(Xr(this)){ew(this,!1);const n=this.animation;xe(n.values,o=>{o.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),Ol(this,{type:"idle",parent:this});const r=t?ls(this.get()):Yn(this.get(),ga(this,e??n.to));Ta(this._pendingCalls,r),n.changed&&(n.changed=!1,ma(this,"onRest",r,this))}}};function ga(e,t){const n=jl(t),r=jl(e.get());return Pr(r,n)}function qR(e,t=e.loop,n=e.to){const r=Gt(t);if(r){const o=r!==!0&&Iv(r),i=(o||e).reverse,s=!o||o.reset;return Fl({...e,loop:t,default:!1,pause:void 0,to:!i||Jg(n)?n:void 0,from:s?e.from:void 0,reset:s,...o})}}function Fl(e){const{to:t,from:n}=e=Iv(e),r=new Set;return Y.obj(t)&&nw(t,r),Y.obj(n)&&nw(n,r),e.keys=r.size?Array.from(r):null,e}function ZW(e){const t=Fl(e);return Y.und(t.default)&&(t.default=ep(t)),t}function nw(e,t){vr(e,(n,r)=>n!=null&&t.add(r))}var JW=["onStart","onRest","onChange","onPause","onResume"];function rw(e,t,n){e.animation[n]=t[n]!==UR(t,n)?BR(t[n],e.key):void 0}function ma(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 eH=["onStart","onChange","onRest"],tH=1,XR=class{constructor(e,t){this.id=tH++,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];Y.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(Fl(e)),this}start(e){let{queue:t}=this;return e?t=Lt(e).map(Fl):this.queue=[],this._flush?this._flush(this,t):(t$(this,t),im(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;xe(Lt(t),r=>n[r].stop(!!e))}else Dl(this._state,this._lastAsyncId),this.each(n=>n.stop(!!e));return this}pause(e){if(Y.und(e))this.start({pause:!0});else{const t=this.springs;xe(Lt(e),n=>t[n].pause())}return this}resume(e){if(Y.und(e))this.start({pause:!1});else{const t=this.springs;xe(Lt(e),n=>t[n].resume())}return this}each(e){vr(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,Wa(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&&Wa(t,([a,l])=>{l.value=s,a(l,this,this._item)}),i&&(this._started=!1,Wa(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;be.onFrame(this._onFrame)}};function im(e,t){return Promise.all(t.map(n=>QR(e,n))).then(n=>Ov(e,n))}async function QR(e,t,n){const{keys:r,to:o,from:i,loop:s,onRest:a,onResolve:l}=t,u=Y.obj(t.default)&&t.default;s&&(t.loop=!1),o===!1&&(t.to=null),i===!1&&(t.from=null);const c=Y.arr(o)||Y.fun(o)?o:void 0;c?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):xe(eH,y=>{const x=t[y];if(Y.fun(x)){const g=e._events[y];t[y]=({finished:v,cancelled:m})=>{const b=g.get(x);b?(v||(b.finished=!1),m&&(b.cancelled=!0)):g.set(x,{value:null,finished:v||!1,cancelled:m||!1})},u&&(u[y]=t[y])}});const f=e._state;t.pause===!f.paused?(f.paused=t.pause,Ta(t.pause?f.pauseQueue:f.resumeQueue)):f.paused&&(t.pause=!0);const d=(r||Object.keys(e.springs)).map(y=>e.springs[y].start(t)),h=t.cancel===!0||UR(t,"cancel")===!0;(c||h&&f.asyncId)&&d.push(HR(++e._lastAsyncId,{props:t,state:f,actions:{pause:qg,resume:qg,start(y,x){h?(Dl(f,e._lastAsyncId),x(ls(e))):(y.onRest=a,x(KR(c,y,f,e)))}}})),f.paused&&await new Promise(y=>{f.resumeQueue.add(y)});const p=Ov(e,await Promise.all(d));if(s&&p.finished&&!(n&&p.noop)){const y=qR(t,s,o);if(y)return t$(e,[y]),QR(e,y,!0)}return l&&be.batchedUpdates(()=>l(p,e,e.item)),p}function sm(e,t){const n={...e.springs};return t&&xe(Lt(t),r=>{Y.und(r.keys)&&(r=Fl(r)),Y.obj(r.to)||(r={...r,to:void 0}),e$(n,r,o=>JR(o))}),ZR(e,n),n}function ZR(e,t){vr(t,(n,r)=>{e.springs[r]||(e.springs[r]=n,Ws(n,e))})}function JR(e,t){const n=new QW;return n.key=e,t&&Ws(n,t),n}function e$(e,t,n){t.keys&&xe(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function t$(e,t){xe(t,n=>{e$(e.springs,n,r=>JR(r,e))})}var uu=({children:e,...t})=>{const n=w.useContext(xd),r=t.pause||!!n.pause,o=t.immediate||!!n.immediate;t=OW(()=>({pause:r,immediate:o}),[r,o]);const{Provider:i}=xd;return w.createElement(i,{value:t},e)},xd=nH(uu,{});uu.Provider=xd.Provider;uu.Consumer=xd.Consumer;function nH(e,t){return Object.assign(e,w.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}var n$=()=>{const e=[],t=function(r){_W();const o=[];return xe(e,(i,s)=>{if(Y.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 xe(e,r=>r.pause(...arguments)),this},t.resume=function(){return xe(e,r=>r.resume(...arguments)),this},t.set=function(r){xe(e,(o,i)=>{const s=Y.fun(r)?r(i,o):r;s&&o.set(s)})},t.start=function(r){const o=[];return xe(e,(i,s)=>{if(Y.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 xe(e,r=>r.stop(...arguments)),this},t.update=function(r){return xe(e,(o,i)=>o.update(this._getProps(r,o,i))),this};const n=function(r,o,i){return Y.fun(r)?r(i,o):r};return t._getProps=n,t};function rH(e,t,n){const r=Y.fun(t)&&t;r&&!n&&(n=[]);const o=w.useMemo(()=>r||arguments.length==3?n$():void 0,[]),i=w.useRef(0),s=Mv(),a=w.useMemo(()=>({ctrls:[],queue:[],flush(g,v){const m=sm(g,v);return i.current>0&&!a.queue.length&&!Object.keys(m).some(S=>!g.springs[S])?im(g,v):new Promise(S=>{ZR(g,m),a.queue.push(()=>{S(im(g,v))}),s()})}}),[]),l=w.useRef([...a.ctrls]),u=[],c=Qg(e)||0;w.useMemo(()=>{xe(l.current.slice(e,c),g=>{em(g,o),g.stop(!0)}),l.current.length=e,f(c,e)},[e]),w.useMemo(()=>{f(0,Math.min(c,e))},n);function f(g,v){for(let m=g;msm(g,u[v])),h=w.useContext(uu),p=Qg(h),y=h!==p&&VR(h);lo(()=>{i.current++,a.ctrls=l.current;const{queue:g}=a;g.length&&(a.queue=[],xe(g,v=>v())),xe(l.current,(v,m)=>{o==null||o.add(v),y&&v.start({default:h});const b=u[m];b&&(WR(v,b.ref),v.ref?v.queue.push(b):v.start(b))})}),Ev(()=>()=>{xe(a.ctrls,g=>g.stop(!0))});const x=d.map(g=>({...g}));return o?[x,o]:x}function tp(e,t){const n=Y.fun(e),[[r],o]=rH(1,n?e:[e],n?t||[]:t);return n||arguments.length==2?[r,o]:r}function r$(e,t,n){const r=Y.fun(t)&&t,{reset:o,sort:i,trail:s=0,expires:a=!0,exitBeforeEnter:l=!1,onDestroyed:u,ref:c,config:f}=r?r():t,d=w.useMemo(()=>r||arguments.length==3?n$():void 0,[]),h=Lt(e),p=[],y=w.useRef(null),x=o?null:y.current;lo(()=>{y.current=p}),Ev(()=>(xe(p,O=>{d==null||d.add(O.ctrl),O.ctrl.ref=d}),()=>{xe(y.current,O=>{O.expired&&clearTimeout(O.expirationId),em(O.ctrl,d),O.ctrl.stop(!0)})}));const g=iH(h,r?r():t,x),v=o&&y.current||[];lo(()=>xe(v,({ctrl:O,item:L,key:A})=>{em(O,d),Gt(u,L,A)}));const m=[];if(x&&xe(x,(O,L)=>{O.expired?(clearTimeout(O.expirationId),v.push(O)):(L=m[L]=g.indexOf(O.key),~L&&(p[L]=O))}),xe(h,(O,L)=>{p[L]||(p[L]={key:g[L],item:O,phase:"mount",ctrl:new XR},p[L].ctrl.item=O)}),m.length){let O=-1;const{leave:L}=r?r():t;xe(m,(A,j)=>{const E=x[j];~A?(O=p.indexOf(E),p[O]={...E,item:h[A]}):L&&p.splice(++O,0,E)})}Y.fun(i)&&p.sort((O,L)=>i(O.item,L.item));let b=-s;const S=Mv(),P=ep(t),R=new Map,$=w.useRef(new Map),M=w.useRef(!1);xe(p,(O,L)=>{const A=O.key,j=O.phase,E=r?r():t;let D,F;const V=Gt(E.delay||0,A);if(j=="mount")D=E.enter,F="enter";else{const Q=g.indexOf(A)<0;if(j!="leave")if(Q)D=E.leave,F="leave";else if(D=E.update)F="update";else return;else if(!Q)D=E.enter,F="enter";else return}if(D=Gt(D,O.item,L),D=Y.obj(D)?Iv(D):{to:D},!D.config){const Q=f||P.config;D.config=Gt(Q,O.item,L,F)}b+=s;const H={...P,delay:V+b,ref:c,immediate:E.immediate,reset:!1,...D};if(F=="enter"&&Y.und(H.from)){const Q=r?r():t,re=Y.und(Q.initial)||x?Q.from:Q.initial;H.from=Gt(re,O.item,L)}const{onResolve:ue}=H;H.onResolve=Q=>{Gt(ue,Q);const re=y.current,ge=re.find(he=>he.key===A);if(ge&&!(Q.cancelled&&ge.phase!="update")&&ge.ctrl.idle){const he=re.every(B=>B.ctrl.idle);if(ge.phase=="leave"){const B=Gt(a,ge.item);if(B!==!1){const Z=B===!0?0:B;if(ge.expired=!0,!he&&Z>0){Z<=2147483647&&(ge.expirationId=setTimeout(S,Z));return}}}he&&re.some(B=>B.expired)&&($.current.delete(ge),l&&(M.current=!0),S())}};const ee=sm(O.ctrl,H);F==="leave"&&l?$.current.set(O,{phase:F,springs:ee,payload:H}):R.set(O,{phase:F,springs:ee,payload:H})});const T=w.useContext(uu),_=Qg(T),N=T!==_&&VR(T);lo(()=>{N&&xe(p,O=>{O.ctrl.start({default:T})})},[T]),xe(R,(O,L)=>{if($.current.size){const A=p.findIndex(j=>j.key===L.key);p.splice(A,1)}}),lo(()=>{xe($.current.size?$.current:R,({phase:O,payload:L},A)=>{const{ctrl:j}=A;A.phase=O,d==null||d.add(j),N&&O=="enter"&&j.start({default:T}),L&&(WR(j,L.ref),(j.ref||d)&&!M.current?j.update(L):(j.start(L),M.current&&(M.current=!1)))})},o?void 0:n);const I=O=>w.createElement(w.Fragment,null,p.map((L,A)=>{const{springs:j}=R.get(L)||L.ctrl,E=O({...j},L.item,L,A);return E&&E.type?w.createElement(E.type,{...E.props,key:Y.str(L.key)||Y.num(L.key)?L.key:L.ctrl.id,ref:E.ref}):E}));return d?[I,d]:I}var oH=1;function iH(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):oH++})}return Y.und(n)?e:Y.fun(n)?e.map(n):Lt(n)}var o$=class extends Av{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=_l(...t);const n=this._get(),r=Zg(n);_v(this,r.create(n))}advance(e){const t=this._get(),n=this.get();Pr(t,n)||(sr(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&ow(this._active)&&mh(this)}_get(){const e=Y.arr(this.source)?this.source.map(Ht):Lt(Ht(this.source));return this.calc(...e)}_start(){this.idle&&!ow(this._active)&&(this.idle=!1,xe(Zf(this),e=>{e.done=!1}),jn.skipAnimation?(be.batchedUpdates(()=>this.advance()),mh(this)):Yf.start(this))}_attach(){let e=1;xe(Lt(this.source),t=>{Rn(t)&&Ws(t,this),nm(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){xe(Lt(this.source),e=>{Rn(e)&&Al(e,this)}),this._active.clear(),mh(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=Lt(this.source).reduce((t,n)=>Math.max(t,(nm(n)?n.priority:0)+1),0))}};function sH(e){return e.idle!==!1}function ow(e){return!e.size||Array.from(e).every(sH)}function mh(e){e.idle||(e.idle=!0,xe(Zf(e),t=>{t.done=!0}),Ol(e,{type:"idle",parent:e}))}var Os=(e,...t)=>new o$(e,t);jn.assign({createStringInterpolator:jR,to:(e,t)=>new o$(e,t)});var i$=/^--/;function aH(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!i$.test(e)&&!(Ka.hasOwnProperty(e)&&Ka[e])?t+"px":(""+t).trim()}var iw={};function lH(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(f=>n||e.hasAttribute(f)?f:iw[f]||(iw[f]=f.replace(/([A-Z])/g,d=>"-"+d.toLowerCase())));o!==void 0&&(e.textContent=o);for(const f in r)if(r.hasOwnProperty(f)){const d=aH(f,r[f]);i$.test(f)?e.style.setProperty(f,d):e.style[f]=d}c.forEach((f,d)=>{e.setAttribute(f,u[d])}),i!==void 0&&(e.scrollTop=i),s!==void 0&&(e.scrollLeft=s),a!==void 0&&e.setAttribute("viewBox",a)}var Ka={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},uH=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),cH=["Webkit","Ms","Moz","O"];Ka=Object.keys(Ka).reduce((e,t)=>(cH.forEach(n=>e[uH(n,t)]=e[t]),e),Ka);var dH=/^(matrix|translate|scale|rotate|skew)/,fH=/^(translate)/,pH=/^(rotate|skew)/,yh=(e,t)=>Y.num(e)&&e!==0?e+t:e,xc=(e,t)=>Y.arr(e)?e.every(n=>xc(n,t)):Y.num(e)?e===t:parseFloat(e)===t,hH=class extends Jf{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=>yh(a,"px")).join(",")})`,xc(s,0)])),vr(r,(s,a)=>{if(a==="transform")o.push([s||""]),i.push(l=>[l,l===""]);else if(dH.test(a)){if(delete r[a],Y.und(s))return;const l=fH.test(a)?"px":pH.test(a)?"deg":"";o.push(Lt(s)),i.push(a==="rotate3d"?([u,c,f,d])=>[`rotate3d(${u},${c},${f},${yh(d,l)})`,xc(d,0)]:u=>[`${a}(${u.map(c=>yh(c,l)).join(",")})`,xc(u,a.startsWith("scale")?1:0)])}}),o.length&&(r.transform=new gH(o,i)),super(r)}},gH=class extends AR{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 xe(this.inputs,(n,r)=>{const o=Ht(n[0]),[i,s]=this.transforms[r](Y.arr(o)?o:n.map(Ht));e+=" "+i,t=t&&s}),t?"none":e}observerAdded(e){e==1&&xe(this.inputs,t=>xe(t,n=>Rn(n)&&Ws(n,this)))}observerRemoved(e){e==0&&xe(this.inputs,t=>xe(t,n=>Rn(n)&&Al(n,this)))}eventObserved(e){e.type=="change"&&(this._value=null),Ol(this,e)}},mH=["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"];jn.assign({batchedUpdates:zd.unstable_batchedUpdates,createStringInterpolator:jR,colors:lW});var yH=BW(mH,{applyAnimatedValues:lH,createAnimatedStyle:e=>new hH(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),mi=yH.animated;const Nv={highlighted:"none",faded:"none"},s$=w.createContext({item:null,scope:Nv,dispatch:()=>null}),vH=(e,t)=>{switch(t.type){case"enterItem":return k({},e,{item:t.item,scope:k({},Nv,t.scope)});case"leaveItem":return e.item===null||Object.keys(t.item).some(n=>t.item[n]!==e.item[n])?e:k({},e,{item:null});default:return e}};function xH(e){const{children:t}=e,[n,r]=w.useReducer(vH,{item:null,scope:Nv}),o=w.useMemo(()=>k({},n,{dispatch:r}),[n]);return C.jsx(s$.Provider,{value:o,children:t})}const np=(e,t)=>{const{dispatch:n}=w.useContext(rr),{dispatch:r}=w.useContext(s$);return t?()=>({}):i=>({onMouseEnter:()=>{n({type:"enterItem",data:i}),r({type:"enterItem",item:i,scope:e})},onMouseLeave:()=>{n({type:"leaveItem",data:i}),r({type:"leaveItem",item:i})}})},rp=(e,t,n)=>{if(!(n!=null&&n.highlighted)||n.highlighted==="none"||e===null)return!1;const r=e.type===t.type&&e.seriesId===t.seriesId;return r?n.highlighted==="series"?r:e.dataIndex!==void 0&&e.dataIndex===t.dataIndex:!1},op=(e,t,n)=>{if(!(n!=null&&n.faded)||n.faded==="none"||e===null)return!1;const r=e.type===t.type&&e.seriesId===t.seriesId;return n.faded==="series"?r&&e.dataIndex!==t.dataIndex:n.faded==="global"?r?e.dataIndex!==void 0&&e.dataIndex!==t.dataIndex:!0:!1},bH=()=>{lo(()=>{const e=window.matchMedia("(prefers-reduced-motion)"),t=n=>{jn.assign({skipAnimation:n.matches||void 0})};return t(e),e.addEventListener("change",t),()=>{e.removeEventListener("change",t)}},[])};function $i(e){return e instanceof Date?e.getTime():e}const wH=e=>{const t=w.useContext(Ff),{width:n,height:r,top:o,left:i}=w.useContext(tr),{xAxis:s,yAxis:a,xAxisIds:l,yAxisIds:u}=w.useContext(Bt),{dispatch:c}=w.useContext(rr),f=l[0],d=u[0],h=w.useRef({x:-1,y:-1});w.useEffect(()=>{const p=t.current;if(p===null||e)return()=>{};const y=(v,m)=>{if(f===null)return null;const{scale:b,data:S,reverse:P}=v;if(!Ml(b)){const $=b.invert(m);if(S===void 0)return{value:$};const M=$i($),T=S==null?void 0:S.findIndex((_,N)=>{const I=$i(_);return I>M&&(N===0||Math.abs(M-I)<=Math.abs(M-$i(S[N-1])))||I<=M&&(N===S.length-1||Math.abs($i($)-I)=0?S[T]:$,index:T}}const R=b.bandwidth()===0?Math.floor((m-Math.min(...b.range())+b.step()/2)/b.step()):Math.floor((m-Math.min(...b.range()))/b.step());if(R<0||R>=S.length)return null;if(P){const $=S.length-1-R;return{index:$,value:S[$]}}return{index:R,value:S[R]}},x=()=>{h.current={x:-1,y:-1},c({type:"exitChart"})},g=v=>{const m=ZV(t.current,v);h.current={x:m.x,y:m.y};const b=m.xi+n,S=m.yo+r;if(b||S){c({type:"exitChart"});return}const P=y(s[f],m.x),R=y(a[d],m.y);c({type:"updateAxis",data:{x:P,y:R}})};return p.addEventListener("mouseout",x),p.addEventListener("mousemove",g),()=>{p.removeEventListener("mouseout",x),p.removeEventListener("mousemove",g)}},[t,c,i,n,o,r,d,a,f,s,e])},SH=["children","width","height","viewBox","disableAxisListener","className","title","desc"],CH=G("svg",{name:"MuiChartsSurface",slot:"Root"})(()=>({})),kH=w.forwardRef(function(t,n){const{children:r,width:o,height:i,viewBox:s,disableAxisListener:a=!1,title:l,desc:u}=t,c=W(t,SH),f=k({width:o,height:i,x:0,y:0},s);return wH(a),C.jsxs(CH,k({width:o,height:i,viewBox:`${f.x} ${f.y} ${f.width} ${f.height}`,ref:n},c,{children:[C.jsx("title",{children:l}),C.jsx("desc",{children:u}),r]}))}),PH=w.forwardRef(function(t,n){const{width:r,height:o,series:i,margin:s,xAxis:a,yAxis:l,colors:u,dataset:c,sx:f,title:d,desc:h,disableAxisListener:p,children:y}=t,x=w.useRef(null),g=Ze(n,x);return bH(),C.jsx(iB,{width:r,height:o,margin:s,svgRef:x,children:C.jsx(WU,{series:i,colors:u,dataset:c,children:C.jsx(YU,{xAxis:a,yAxis:l,dataset:c,children:C.jsx(vV,{children:C.jsx(xH,{children:C.jsx(kH,{width:r,height:o,ref:g,sx:f,title:d,desc:h,disableAxisListener:p,children:y})})})})})})}),RH=(e,t)=>{const n=w.useRef(null),r=w.useRef(!1),[o,i]=w.useState(0),[s,a]=w.useState(0),l=w.useCallback(()=>{const u=n==null?void 0:n.current;if(!u)return;const f=So(u).getComputedStyle(u),d=Math.floor(parseFloat(f.height))||0,h=Math.floor(parseFloat(f.width))||0;i(h),a(d)},[]);return w.useEffect(()=>{r.current=!0},[]),zt(()=>{if(e!==void 0&&t!==void 0)return()=>{};l();const u=n.current;if(typeof ResizeObserver>"u")return()=>{};let c;const f=new ResizeObserver(()=>{c=requestAnimationFrame(()=>{l()})});return u&&f.observe(u),()=>{c&&window.cancelAnimationFrame(c),u&&f.unobserve(u)}},[l,t,e]),[n,e??o,t??s]},$H=["width","height"],TH=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%"}})),a$=w.forwardRef(function(t,n){const{width:r,height:o}=t,i=W(t,$H),[s,a,l]=RH(r,o);return C.jsx(TH,{ref:s,ownerState:{width:r,height:o},children:a&&l?C.jsx(PH,k({},i,{width:a,height:l,ref:n})):null})});function MH(e){const t=w.useRef(null);return w.useEffect(()=>{t.current=e},[e]),t.current}const l$=(e,t)=>{const n=MH(e),r=w.useMemo(()=>n?_P(n,e):()=>e,[n,e]),{value:o}=tp({from:{value:0},to:{value:1},reset:!0,immediate:t});return Os([o],r)},EH=["d","skipAnimation","ownerState"],_H=G(mi.path,{name:"MuiAreaElement",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>({stroke:"none",fill:e.isHighlighted?Po(e.color).brighter(1).formatHex():Po(e.color).brighter(.5).formatHex(),transition:"opacity 0.2s ease-in, fill 0.2s ease-in",opacity:e.isFaded?.3:1}));function IH(e){const{d:t,skipAnimation:n,ownerState:r}=e,o=W(e,EH),{left:i,top:s,right:a,bottom:l,width:u,height:c,chartId:f}=w.useContext(tr),d=l$(t,n),{animatedWidth:h}=tp({from:{animatedWidth:i},to:{animatedWidth:u+i+a},reset:!1,immediate:n}),p=xv(`${f}-${r.id}-area-clip`);return C.jsxs(w.Fragment,{children:[C.jsx("clipPath",{id:p,children:C.jsx(mi.rect,{x:0,y:0,width:h,height:s+c+l})}),C.jsx("g",{clipPath:`url(#${p})`,children:C.jsx(_H,k({},o,{ownerState:r,d}))})]})}const OH=["id","classes","color","highlightScope","slots","slotProps","onClick"];function AH(e){return ce("MuiAreaElement",e)}de("MuiAreaElement",["root","highlighted","faded"]);const NH=e=>{const{classes:t,id:n,isFaded:r,isHighlighted:o}=e,i={root:["root",`series-${n}`,o&&"highlighted",r&&"faded"]};return le(i,AH,t)};function LH(e){const{id:t,classes:n,color:r,highlightScope:o,slots:i,slotProps:s,onClick:a}=e,l=W(e,OH),u=np(o),{item:c}=w.useContext(rr),f=rp(c,{type:"line",seriesId:t},o),d=!f&&op(c,{type:"line",seriesId:t},o),h={id:t,classes:n,color:r,isFaded:d,isHighlighted:f},p=NH(h),y=(i==null?void 0:i.area)??IH,x=wt({elementType:y,externalSlotProps:s==null?void 0:s.area,additionalProps:k({},l,u({type:"line",seriesId:t}),{className:p.root,onClick:a,cursor:a?"pointer":"unset"}),ownerState:h});return C.jsx(y,k({},x))}function u$(e){switch(e){case"catmullRom":return pU.alpha(.5);case"linear":return gv;case"monotoneX":return $b;case"monotoneY":return hU;case"natural":return gU;case"step":return mU;case"stepBefore":return yU;case"stepAfter":return vU;default:return $b}}const jH=["slots","slotProps","onItemClick","skipAnimation"],DH=()=>{const e=w.useContext(nr).line,t=w.useContext(Bt);if(e===void 0)return[];const{series:n,stackingGroups:r}=e,{xAxis:o,yAxis:i,xAxisIds:s,yAxisIds:a}=t,l=s[0],u=a[0];return r.flatMap(({ids:c})=>c.flatMap(f=>{const{xAxisKey:d=l,yAxisKey:h=u,stackedData:p,data:y,connectNulls:x}=n[f],g=_s(o[d].scale),v=i[h].scale,m=o[d].data,b=q7().x(M=>g(M.x)).defined((M,T)=>x||y[T]!=null).y0(M=>M.y&&v(M.y[0])).y1(M=>M.y&&v(M.y[1])),S=u$(n[f].curve),P=(m==null?void 0:m.map((M,T)=>({x:M,y:p[T]})))??[],R=x?P.filter((M,T)=>y[T]!=null):P,$=b.curve(S)(R)||"";return k({},n[f],{d:$,seriesId:f})}))};function FH(e){const{slots:t,slotProps:n,onItemClick:r,skipAnimation:o}=e,i=W(e,jH),s=DH();return C.jsx("g",k({},i,{children:s.reverse().map(({d:a,seriesId:l,color:u,highlightScope:c,area:f})=>!!f&&C.jsx(LH,{id:l,d:a,color:u,highlightScope:c,slots:t,slotProps:n,onClick:r&&(d=>r(d,{type:"line",seriesId:l})),skipAnimation:o},l))}))}const zH=["d","skipAnimation","ownerState"],BH=G(mi.path,{name:"MuiLineElement",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>({strokeWidth:2,strokeLinejoin:"round",fill:"none",stroke:e.isHighlighted?Po(e.color).brighter(.5).formatHex():e.color,transition:"opacity 0.2s ease-in, stroke 0.2s ease-in",opacity:e.isFaded?.3:1}));function UH(e){const{d:t,skipAnimation:n,ownerState:r}=e,o=W(e,zH),{left:i,top:s,bottom:a,width:l,height:u,right:c,chartId:f}=w.useContext(tr),d=l$(t,n),{animatedWidth:h}=tp({from:{animatedWidth:i},to:{animatedWidth:l+i+c},reset:!1,immediate:n}),p=xv(`${f}-${r.id}-line-clip`);return C.jsxs(w.Fragment,{children:[C.jsx("clipPath",{id:p,children:C.jsx(mi.rect,{x:0,y:0,width:h,height:s+u+a})}),C.jsx("g",{clipPath:`url(#${p})`,children:C.jsx(BH,k({},o,{ownerState:r,d}))})]})}const VH=["id","classes","color","highlightScope","slots","slotProps","onClick"];function WH(e){return ce("MuiLineElement",e)}de("MuiLineElement",["root","highlighted","faded"]);const HH=e=>{const{classes:t,id:n,isFaded:r,isHighlighted:o}=e,i={root:["root",`series-${n}`,o&&"highlighted",r&&"faded"]};return le(i,WH,t)};function GH(e){const{id:t,classes:n,color:r,highlightScope:o,slots:i,slotProps:s,onClick:a}=e,l=W(e,VH),u=np(o),{item:c}=w.useContext(rr),f=rp(c,{type:"line",seriesId:t},o),d=!f&&op(c,{type:"line",seriesId:t},o),h={id:t,classes:n,color:r,isFaded:d,isHighlighted:f},p=HH(h),y=(i==null?void 0:i.line)??UH,x=wt({elementType:y,externalSlotProps:s==null?void 0:s.line,additionalProps:k({},l,u({type:"line",seriesId:t}),{className:p.root,onClick:a,cursor:a?"pointer":"unset"}),ownerState:h});return C.jsx(y,k({},x))}const KH=["slots","slotProps","skipAnimation","onItemClick"],YH=()=>{const e=w.useContext(nr).line,t=w.useContext(Bt);if(e===void 0)return[];const{series:n,stackingGroups:r}=e,{xAxis:o,yAxis:i,xAxisIds:s,yAxisIds:a}=t,l=s[0],u=a[0];return r.flatMap(({ids:c})=>c.flatMap(f=>{const{xAxisKey:d=l,yAxisKey:h=u,stackedData:p,data:y,connectNulls:x}=n[f],g=_s(o[d].scale),v=i[h].scale,m=o[d].data,b=eR().x($=>g($.x)).defined(($,M)=>x||y[M]!=null).y($=>v($.y[1])),S=(m==null?void 0:m.map(($,M)=>({x:$,y:p[M]})))??[],P=x?S.filter(($,M)=>y[M]!=null):S,R=b.curve(u$(n[f].curve))(P)||"";return k({},n[f],{d:R,seriesId:f})}))};function qH(e){const{slots:t,slotProps:n,skipAnimation:r,onItemClick:o}=e,i=W(e,KH),s=YH();return C.jsx("g",k({},i,{children:s.map(({d:a,seriesId:l,color:u,highlightScope:c})=>C.jsx(GH,{id:l,d:a,color:u,highlightScope:c,skipAnimation:r,slots:t,slotProps:n,onClick:o&&(f=>o(f,{type:"line",seriesId:l}))},l))}))}const XH=["x","y","id","classes","color","shape","dataIndex","highlightScope","onClick","skipAnimation"];function QH(e){return ce("MuiMarkElement",e)}de("MuiMarkElement",["root","highlighted","faded"]);const ZH=e=>{const{classes:t,id:n,isFaded:r,isHighlighted:o}=e,i={root:["root",`series-${n}`,o&&"highlighted",r&&"faded"]};return le(i,QH,t)},c$=G(mi.path,{name:"MuiMarkElement",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e,theme:t})=>({fill:(t.vars||t).palette.background.paper,stroke:e.color,strokeWidth:2}));c$.propTypes={as:At.elementType,ownerState:At.shape({classes:At.object,color:At.string.isRequired,id:At.string.isRequired,isFaded:At.bool.isRequired,isHighlighted:At.bool.isRequired}).isRequired,sx:At.oneOfType([At.arrayOf(At.oneOfType([At.func,At.object,At.bool])),At.func,At.object])};function JH(e){var b;const{x:t,y:n,id:r,classes:o,color:i,shape:s,dataIndex:a,highlightScope:l,onClick:u,skipAnimation:c}=e,f=W(e,XH),d=np(l),{item:h,axis:p}=w.useContext(rr),y=((b=p.x)==null?void 0:b.index)===a||rp(h,{type:"line",seriesId:r},l),x=!y&&op(h,{type:"line",seriesId:r},l),g=tp({x:t,y:n,immediate:c}),v={id:r,classes:o,isHighlighted:y,isFaded:x,color:i},m=ZH(v);return C.jsx(c$,k({},f,{style:{transform:Os([g.x,g.y],(S,P)=>`translate(${S}px, ${P}px)`),transformOrigin:Os([g.x,g.y],(S,P)=>`${S}px ${P}px`)},ownerState:v,className:m.root,d:dU(cU[QV(s)])(),onClick:u,cursor:u?"pointer":"unset"},d({type:"line",seriesId:r,dataIndex:a})))}const eG=["slots","slotProps","skipAnimation","onItemClick"];function tG(e){const{slots:t,slotProps:n,skipAnimation:r,onItemClick:o}=e,i=W(e,eG),s=w.useContext(nr).line,a=w.useContext(Bt),{chartId:l}=w.useContext(tr),u=(t==null?void 0:t.mark)??JH;if(s===void 0)return null;const{series:c,stackingGroups:f}=s,{xAxis:d,yAxis:h,xAxisIds:p,yAxisIds:y}=a,x=p[0],g=y[0];return C.jsx("g",k({},i,{children:f.flatMap(({ids:v})=>v.map(m=>{const{xAxisKey:b=x,yAxisKey:S=g,stackedData:P,data:R,showMark:$=!0}=c[m];if($===!1)return null;const M=_s(d[b].scale),T=h[S].scale,_=d[b].data,N=d[b].scale.range(),I=T.range(),O=({x:A,y:j})=>!(AMath.max(...N)||jMath.max(...I));if(_===void 0)throw new Error(`MUI X Charts: ${b===Ps?"The first `xAxis`":`The x-axis with id "${b}"`} should have data property to be able to display a line plot.`);const L=xv(`${l}-${m}-line-clip`);return C.jsx("g",{clipPath:`url(#${L})`,children:_==null?void 0:_.map((A,j)=>{const E=R[j]==null?null:P[j][1];return{x:M(A),y:E===null?null:T(E),position:A,value:E,index:j}}).filter(({x:A,y:j,index:E,position:D,value:F})=>F===null||j===null||!O({x:A,y:j})?!1:$===!0?!0:$({x:A,y:j,index:E,position:D,value:F})).map(({x:A,y:j,index:E})=>C.jsx(u,k({id:m,dataIndex:E,shape:"circle",color:c[m].color,x:A,y:j,highlightScope:c[m].highlightScope,skipAnimation:r,onClick:o&&(D=>o(D,{type:"line",seriesId:m,dataIndex:E}))},n==null?void 0:n.mark),`${m}-${E}`))},m)}))}))}const nG=["x","y","id","classes","color"];function rG(e){return ce("MuiHighlightElement",e)}de("MuiHighlightElement",["root"]);const oG=e=>{const{classes:t,id:n}=e,r={root:["root",`series-${n}`]};return le(r,rG,t)},iG=G("circle",{name:"MuiHighlightElement",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>({transform:`translate(${e.x}px, ${e.y}px)`,transformOrigin:`${e.x}px ${e.y}px`,fill:e.color}));function sG(e){const{x:t,y:n,id:r,classes:o,color:i}=e,s=W(e,nG),a={id:r,classes:o,color:i,x:t,y:n},l=oG(a);return C.jsx(iG,k({pointerEvents:"none",ownerState:a,className:l.root,cx:0,cy:0,r:s.r===void 0?5:s.r},s))}const aG=["slots","slotProps"];function lG(e){var g;const{slots:t,slotProps:n}=e,r=W(e,aG),o=w.useContext(nr).line,i=w.useContext(Bt),{axis:s}=w.useContext(rr),a=(g=s.x)==null?void 0:g.index;if(a===void 0||o===void 0)return null;const{series:l,stackingGroups:u}=o,{xAxis:c,yAxis:f,xAxisIds:d,yAxisIds:h}=i,p=d[0],y=h[0],x=(t==null?void 0:t.lineHighlight)??sG;return C.jsx("g",k({},r,{children:u.flatMap(({ids:v})=>v.flatMap(m=>{const{xAxisKey:b=p,yAxisKey:S=y,stackedData:P,data:R,disableHighlight:$}=l[m];if($||R[a]==null)return null;const M=_s(c[b].scale),T=f[S].scale,_=c[b].data;if(_===void 0)throw new Error(`MUI X Charts: ${b===Ps?"The first `xAxis`":`The x-axis with id "${b}"`} should have data property to be able to display a line plot.`);const N=M(_[a]),I=T(P[a][1]);return C.jsx(x,k({id:m,color:l[m].color,x:N,y:I},n==null?void 0:n.lineHighlight),`${m}`)}))}))}const d$=w.forwardRef(function(t,n){const{xAxis:r,yAxis:o,series:i,width:s,height:a,margin:l,colors:u,dataset:c,sx:f,tooltip:d,onAxisClick:h,onAreaClick:p,onLineClick:y,onMarkClick:x,axisHighlight:g={x:"line"},disableLineItemHighlight:v,legend:m,grid:b,topAxis:S,leftAxis:P,rightAxis:R,bottomAxis:$,children:M,slots:T,slotProps:_,skipAnimation:N}=t,O=`${fi()}-clip-path`;return C.jsxs(a$,{ref:n,series:i.map(L=>k({disableHighlight:!!v,type:"line"},L)),width:s,height:a,margin:l,xAxis:r??[{id:Ps,scaleType:"point",data:Array.from({length:Math.max(...i.map(L=>(L.data??c??[]).length))},(L,A)=>A)}],yAxis:o,colors:u,dataset:c,sx:f,disableAxisListener:(d==null?void 0:d.trigger)!=="axis"&&(g==null?void 0:g.x)==="none"&&(g==null?void 0:g.y)==="none"&&!h,children:[h&&C.jsx(JV,{onAxisClick:h}),b&&C.jsx(mV,{vertical:b.vertical,horizontal:b.horizontal}),C.jsxs("g",{clipPath:`url(#${O})`,children:[C.jsx(FH,{slots:T,slotProps:_,onItemClick:p,skipAnimation:N}),C.jsx(qH,{slots:T,slotProps:_,onItemClick:y,skipAnimation:N})]}),C.jsx(yR,{topAxis:S,leftAxis:P,rightAxis:R,bottomAxis:$,slots:T,slotProps:_}),C.jsx(kR,k({},g)),C.jsx(tG,{slots:T,slotProps:_,onItemClick:x,skipAnimation:N}),C.jsx(lG,{slots:T,slotProps:_}),C.jsx(CR,k({},m,{slots:T,slotProps:_})),C.jsx(SR,k({},d,{slots:T,slotProps:_})),C.jsx(qU,{id:O}),M]})}),uG=["classes","color","cornerRadius","dataIndex","endAngle","highlightScope","id","innerRadius","isFaded","isHighlighted","onClick","outerRadius","paddingAngle","startAngle"];function cG(e){return ce("MuiPieArc",e)}de("MuiPieArc",["root","highlighted","faded"]);const dG=e=>{const{classes:t,id:n,isFaded:r,isHighlighted:o}=e,i={root:["root",`series-${n}`,o&&"highlighted",r&&"faded"]};return le(i,cG,t)},fG=G(mi.path,{name:"MuiPieArc",slot:"Root",overridesResolver:(e,t)=>t.arc})(({theme:e})=>({stroke:(e.vars||e).palette.background.paper,strokeWidth:1,strokeLinejoin:"round"}));function pG(e){const{classes:t,color:n,cornerRadius:r,dataIndex:o,endAngle:i,highlightScope:s,id:a,innerRadius:l,isFaded:u,isHighlighted:c,onClick:f,outerRadius:d,paddingAngle:h,startAngle:p}=e,y=W(e,uG),x={id:a,dataIndex:o,classes:t,color:n,isFaded:u,isHighlighted:c},g=dG(x),v=np(s);return C.jsx(fG,k({d:Os([p,i,h,l,d,r],(m,b,S,P,R,$)=>XP().cornerRadius($)({padAngle:S,startAngle:m,endAngle:b,innerRadius:P,outerRadius:R})),onClick:f,cursor:f?"pointer":"unset",ownerState:x,className:g.root},y,v({type:"pie",seriesId:a,dataIndex:o})))}const hG={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}},gG={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 f$(e){const{id:t,highlightScope:n,data:r,faded:o,highlighted:i,paddingAngle:s=0,innerRadius:a=0,arcLabelRadius:l,outerRadius:u,cornerRadius:c=0}=e,{item:f}=w.useContext(rr),d=w.useCallback(p=>{const y=rp(f,{type:"pie",seriesId:t,dataIndex:p},n),x=!y&&op(f,{type:"pie",seriesId:t,dataIndex:p},n);return{isHighlighted:y,isFaded:x}},[n,f,t]);return w.useMemo(()=>r.map((p,y)=>{const{isHighlighted:x,isFaded:g}=d(y),v=k({additionalRadius:0},g&&o||x&&i||{}),m=Math.max(0,Math.PI*(v.paddingAngle??s)/180),b=Math.max(0,v.innerRadius??a),S=Math.max(0,v.outerRadius??u+v.additionalRadius),P=v.cornerRadius??c,R=v.arcLabelRadius??l??(b+S)/2;return k({},p,v,{isFaded:g,isHighlighted:x,paddingAngle:m,innerRadius:b,outerRadius:S,cornerRadius:P,arcLabelRadius:R})}),[c,a,u,s,l,r,o,d,i])}const mG=["slots","slotProps","innerRadius","outerRadius","cornerRadius","paddingAngle","id","highlightScope","highlighted","faded","data","onItemClick","skipAnimation"],yG=["startAngle","endAngle","paddingAngle","innerRadius","arcLabelRadius","outerRadius","cornerRadius"];function vG(e){const{slots:t,slotProps:n,innerRadius:r=0,outerRadius:o,cornerRadius:i=0,paddingAngle:s=0,id:a,highlightScope:l,highlighted:u,faded:c={additionalRadius:-5},data:f,onItemClick:d,skipAnimation:h}=e,p=W(e,mG),y=f$({innerRadius:r,outerRadius:o,cornerRadius:i,paddingAngle:s,id:a,highlightScope:l,highlighted:u,faded:c,data:f}),x=r$(y,k({},hG,{immediate:h}));if(f.length===0)return null;const g=(t==null?void 0:t.pieArc)??pG;return C.jsx("g",k({},p,{children:x((v,m,b,S)=>{let{startAngle:P,endAngle:R,paddingAngle:$,innerRadius:M,outerRadius:T,cornerRadius:_}=v,N=W(v,yG);return C.jsx(g,k({startAngle:P,endAngle:R,paddingAngle:$,innerRadius:M,outerRadius:T,cornerRadius:_,style:N,id:a,color:m.color,dataIndex:S,highlightScope:l,isFaded:m.isFaded,isHighlighted:m.isHighlighted,onClick:d&&(I=>{d(I,{type:"pie",seriesId:a,dataIndex:S},m)})},n==null?void 0:n.pieArc))})}))}const xG=["id","classes","color","startAngle","endAngle","paddingAngle","arcLabelRadius","innerRadius","outerRadius","cornerRadius","formattedArcLabel","isHighlighted","isFaded","style"];function bG(e){return ce("MuiPieArcLabel",e)}de("MuiPieArcLabel",["root","highlighted","faded"]);const wG=e=>{const{classes:t,id:n,isFaded:r,isHighlighted:o}=e,i={root:["root",`series-${n}`,o&&"highlighted",r&&"faded"]};return le(i,bG,t)},SG=G(mi.text,{name:"MuiPieArcLabel",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({fill:(e.vars||e).palette.text.primary,textAnchor:"middle",dominantBaseline:"middle"})),sw=(e,t)=>(n,r,o,i,s)=>{if(!e)return 0;const[a,l]=XP().cornerRadius(s).centroid({padAngle:o,startAngle:n,endAngle:r,innerRadius:i,outerRadius:i});return t==="x"?a:l};function CG(e){const{id:t,classes:n,color:r,startAngle:o,endAngle:i,paddingAngle:s,arcLabelRadius:a,cornerRadius:l,formattedArcLabel:u,isHighlighted:c,isFaded:f,style:d}=e,h=W(e,xG),y=wG({id:t,classes:n,color:r,isFaded:f,isHighlighted:c});return C.jsx(SG,k({className:y.root},h,{style:k({x:Os([o,i,s,a,l],sw(u,"x")),y:Os([o,i,s,a,l],sw(u,"y"))},d),children:u}))}const kG=["arcLabel","arcLabelMinAngle","arcLabelRadius","cornerRadius","data","faded","highlighted","highlightScope","id","innerRadius","outerRadius","paddingAngle","skipAnimation","slotProps","slots"],PG=["startAngle","endAngle","paddingAngle","innerRadius","outerRadius","arcLabelRadius","cornerRadius"],RG=180/Math.PI;function $G(e,t,n){var o;return!e||(n.endAngle-n.startAngle)*RG{let{startAngle:P,endAngle:R,paddingAngle:$,innerRadius:M,outerRadius:T,arcLabelRadius:_,cornerRadius:N}=b,I=W(b,PG);return C.jsx(m,k({startAngle:P,endAngle:R,paddingAngle:$,innerRadius:M,outerRadius:T,arcLabelRadius:_,cornerRadius:N,style:I,id:u,color:S.color,isFaded:S.isFaded,isHighlighted:S.isHighlighted,formattedArcLabel:$G(t,n,S)},p==null?void 0:p.pieArcLabel))})}))}function MG(e){const{skipAnimation:t,slots:n,slotProps:r,onItemClick:o}=e,i=w.useContext(nr).pie,{left:s,top:a,width:l,height:u}=w.useContext(tr);if(i===void 0)return null;const c=Math.min(l,u)/2,{series:f,seriesOrder:d}=i;return C.jsxs("g",{children:[d.map(h=>{const{innerRadius:p,outerRadius:y,cornerRadius:x,paddingAngle:g,data:v,cx:m,cy:b,highlighted:S,faded:P,highlightScope:R}=f[h],$=Sr(y??c,c),M=Sr(p??0,c),T=Sr(m??"50%",l),_=Sr(b??"50%",u);return C.jsx("g",{transform:`translate(${s+T}, ${a+_})`,children:C.jsx(vG,{innerRadius:M,outerRadius:$,cornerRadius:x,paddingAngle:g,id:h,data:v,skipAnimation:t,highlightScope:R,highlighted:S,faded:P,onItemClick:o,slots:n,slotProps:r})},h)}),d.map(h=>{const{innerRadius:p,outerRadius:y,arcLabelRadius:x,cornerRadius:g,paddingAngle:v,arcLabel:m,arcLabelMinAngle:b,data:S,cx:P,cy:R,highlightScope:$}=f[h],M=Sr(y??c,c),T=Sr(p??0,c),_=x===void 0?(M+T)/2:Sr(x,c),N=Sr(P??"50%",l),I=Sr(R??"50%",u);return C.jsx("g",{transform:`translate(${s+N}, ${a+I})`,children:C.jsx(TG,{innerRadius:T,outerRadius:M??c,arcLabelRadius:_,cornerRadius:g,paddingAngle:v,id:h,data:S,skipAnimation:t,arcLabel:m,arcLabelMinAngle:b,highlightScope:$})},h)})]})}const EG=()=>_t().direction==="rtl",_G={top:5,bottom:5,left:5,right:100},IG={top:5,bottom:5,left:100,right:5};function p$(e){const{xAxis:t,yAxis:n,series:r,width:o,height:i,margin:s,colors:a,sx:l,tooltip:u={trigger:"item"},axisHighlight:c={x:"none",y:"none"},skipAnimation:f,legend:d,topAxis:h=null,leftAxis:p=null,rightAxis:y=null,bottomAxis:x=null,children:g,slots:v,slotProps:m,onItemClick:b}=e,S=EG(),P=k({},S?IG:_G,s),R=k({direction:"column",position:{vertical:"middle",horizontal:S?"left":"right"}},d);return C.jsxs(a$,{series:r.map($=>k({type:"pie"},$)),width:o,height:i,margin:P,xAxis:t??[{id:Ps,scaleType:"point",data:[...new Array(Math.max(...r.map($=>$.data.length)))].map(($,M)=>M)}],yAxis:n,colors:a,sx:l,disableAxisListener:(u==null?void 0:u.trigger)!=="axis"&&(c==null?void 0:c.x)==="none"&&(c==null?void 0:c.y)==="none",children:[C.jsx(yR,{topAxis:h,leftAxis:p,rightAxis:y,bottomAxis:x,slots:v,slotProps:m}),C.jsx(MG,{slots:v,slotProps:m,onItemClick:b,skipAnimation:f}),C.jsx(CR,k({},R,{slots:v,slotProps:m})),C.jsx(kR,k({},c)),C.jsx(SR,k({},u)),g]})}function Hs(){const{yearsStaying:e}=rt(u=>u.calculator.futurePredictions),{propertyPrice:t,depositPercentage:n,yearlyOwnershipCost:r,loanTerm:o,interestRate:i,buyingCostsPercentage:s,sellingCostsPercentage:a,propertyValueGrowthPercentage:l}=rt(u=>u.calculator.buying);return tB({yearsStaying:e,depositPercentage:n,initialPropertyValue:t,yearlyOwnershipCost:r,loanTerm:o,interestRate:i,propertyValueGrowthPercentage:l,buyingCostsPercentage:s,sellingCostsPercentage:a})}function ip(){const e=rt(n=>n.settings.locale),t=rt(n=>n.settings.currency);return n=>n.toLocaleString(e,{style:"currency",currency:t})}function OG(){const{t:e}=zn(),t=_t(),n=qk(),{createStateUpdateFc:r,stateSlice:o}=Zy("buying"),{propertyPrice:i,propertyValueGrowthPercentage:s,loanTerm:a,interestRate:l,buyingCostsPercentage:u,sellingCostsPercentage:c,yearlyOwnershipCost:f,depositPercentage:d}=o,h=ip(),p=i*(d/100),{mortgagePerMonth:y,sellingCost:x,buyingCost:g}=Hs(),v=rt(P=>P.calculator.futurePredictions.yearsStaying),m=PP({deposit:p,initialPropertyValue:i}),{totalPrincipalPaid:b,totalInterestPaid:S}=kP({initialPropertyValue:i,depositPercentage:d,yearlyOwnershipCost:f,yearsStaying:v,loanTerm:a,interestRate:l,loanAmount:m,propertyValueGrowthPercentage:s,buyingCostsPercentage:u,sellingCostsPercentage:c,mortgagePerMonth:y});return C.jsxs(_f,{spacing:2,paddingBottom:2,sx:{textAlign:"left"},children:[C.jsx(Ki,{inputs:[{label:e("Property Price"),value:i,onChange:r("propertyPrice"),formatAsCurrency:!0},{label:e("Property Value Growth"),value:s,onChange:r("propertyValueGrowthPercentage"),InputProps:n(!0)}]}),C.jsx(Re,{variant:"h4",children:e("Mortgage")}),C.jsx(Ki,{inputs:[{label:e("Loan Term"),value:a,onChange:r("loanTerm"),InputProps:If({endAdornment:"years"})},{label:e("Deposit percentage"),helperText:h(i*(d/100)),value:d,onChange:r("depositPercentage"),InputProps:n()},{label:e("Interest Rate"),InputProps:n(!0),value:l,onChange:r("interestRate")}]}),C.jsx(Re,{variant:"body1",children:e("You would pay {amount} per month",{amount:h(y)})}),C.jsx($k,{container:!0,justifyContent:"center",children:b!==0&&S&&C.jsx(p$,{slotProps:{legend:{direction:"row",position:{vertical:"top",horizontal:"right"},padding:0}},colors:[t.palette.secondary.main,t.palette.primary.main],series:[{data:[{id:1,value:Math.round(S),label:e("Total interest paid")},{id:0,value:Math.round(b),label:e("Total principal paid")}],innerRadius:50,outerRadius:100,paddingAngle:5,cornerRadius:5}],width:500,height:300})}),C.jsx(Re,{variant:"h4",children:e("Buying And Selling Costs")}),C.jsx(Ki,{inputs:[{label:e("Buying costs"),InputProps:n(),value:u,onChange:r("buyingCostsPercentage"),helperText:h(g)},{label:e("Selling costs"),InputProps:n(),value:c,onChange:r("sellingCostsPercentage"),helperText:h(x)}]}),C.jsx(Re,{variant:"h4",children:e("Yearly costs")}),C.jsx(Ki,{inputs:[{label:e("Ownership costs"),helperText:e("helperText under ownership costs"),InputProps:n(!0),value:f,onChange:r("yearlyOwnershipCost"),formatAsCurrency:!0}]})]})}function AG({initialInvestment:e,investmentPerPeriod:t,numberOfPeriods:n,appreciationRate:r}){const o=[];let i=e,s=0,a=0;for(let l=1;l<=n;l++){a+=t,i+=t;const u=i;i=i*(1+r),s+=i-u,o.push(s)}return{totalAtTheEnd:i,monthlyValues:o,valueAdded:s,allMonthlyInvestment:a}}function Lv(){const{mortgagePerMonth:e,deposit:t}=Hs(),{monthlyRent:n,alternativeInvestmentReturnPercentage:r,initialInvestment:o,investDifference:i}=rt(p=>p.calculator.renting),s=rt(p=>p.calculator.futurePredictions.yearsStaying),a=t-o>0?t-o:0,l=e-n>0?e-n:0,u={investDifference:i,totalAtTheEnd:0,valueAdded:0,allMonthlyInvestment:0,initialCash:0,monthlyValues:[],moneyAvailablePerMonth:l};if(!i)return u;const{totalAtTheEnd:c,monthlyValues:f,valueAdded:d,allMonthlyInvestment:h}=AG({initialInvestment:a,investmentPerPeriod:l*12,numberOfPeriods:s,appreciationRate:r/100});return u.totalAtTheEnd=c,u.monthlyValues=f,u.valueAdded=d,u.allMonthlyInvestment=h,u.initialCash=a,u}const NG=()=>{const e=_t(),{t}=zn(),{stateSlice:n,createStateUpdateFc:r}=Zy("renting"),{mortgagePerMonth:o,deposit:i}=Hs(),s=Uy(),a=ip(),l=qk(),u=Lv(),c=[{label:t("Monthly Rent"),value:n.monthlyRent,onChange:r("monthlyRent"),formatAsCurrency:!0},{label:t("Deposit"),value:n.initialInvestment,onChange:r("initialInvestment"),formatAsCurrency:!0},{label:t("Rent Growth"),value:n.yearlyRentGrowth,onChange:r("yearlyRentGrowth"),InputProps:If({endAdornment:t("% per year")})}],f=o-n.monthlyRent,d=i-n.initialInvestment;return C.jsxs(C.Fragment,{children:[C.jsx(Ki,{inputs:c}),(f>0||d>0)&&C.jsxs(C.Fragment,{children:[C.jsx(Pk,{control:C.jsx(FL,{value:n.investDifference,defaultChecked:!0}),onChange:(h,p)=>s(q8(p)),label:t("Invest the difference between buying and renting?")}),n.investDifference&&C.jsxs(C.Fragment,{children:[C.jsx(Re,{variant:"h6",children:t("Investing the difference")}),f>0&&C.jsxs(Re,{variant:"body1",children:[t("If you decide to purchase a property, your monthly payments would be paying this much more per month"),C.jsx(Re,{variant:"body1",component:"span",fontWeight:"bold",p:1,children:a(f)})]}),d>0&&C.jsxs(Re,{variant:"body1",children:[t("The required deposit will be lower by"),C.jsx(Re,{variant:"body1",component:"span",fontWeight:"bold",p:1,children:a(d)})]}),C.jsx(Re,{variant:"body1",children:t("You can invest this money instead")}),C.jsx("br",{}),C.jsx(Ki,{inputs:[{label:t("Alternative investment return"),InputProps:l(!0),value:n.alternativeInvestmentReturnPercentage,onChange:r("alternativeInvestmentReturnPercentage")}]}),C.jsx($k,{container:!0,justifyContent:"center",children:C.jsx(p$,{slotProps:{legend:{direction:"row",position:{vertical:"top",horizontal:"right"}}},colors:[e.palette.secondary.main,e.palette.secondary.light,e.palette.primary.main],series:[{data:[{id:0,value:Math.round(u.allMonthlyInvestment),label:t("All monthly investments")},{id:1,value:Math.round(u.initialCash),label:t("Initial investment")},{id:2,value:Math.round(u.valueAdded),label:t("Interest income")}],innerRadius:50,outerRadius:100,paddingAngle:5,cornerRadius:5}],width:500,height:300})})]})]})]})};function LG(){const{t:e}=zn();return C.jsxs(_f,{spacing:3,children:[C.jsx(os,{title:e("Buying"),children:C.jsx(OG,{})}),C.jsx(os,{title:e("Renting"),children:C.jsx(NG,{})}),C.jsx("br",{})]})}const jG=xr(C.jsx("path",{d:"M12.89 11.1c-1.78-.59-2.64-.96-2.64-1.9 0-1.02 1.11-1.39 1.81-1.39 1.31 0 1.79.99 1.9 1.34l1.58-.67c-.15-.45-.82-1.92-2.54-2.24V5h-2v1.26c-2.48.56-2.49 2.86-2.49 2.96 0 2.27 2.25 2.91 3.35 3.31 1.58.56 2.28 1.07 2.28 2.03 0 1.13-1.05 1.61-1.98 1.61-1.82 0-2.34-1.87-2.4-2.09l-1.66.67c.63 2.19 2.28 2.78 2.9 2.96V19h2v-1.24c.4-.09 2.9-.59 2.9-3.22 0-1.39-.61-2.61-3.01-3.44M3 21H1v-6h6v2H4.52c1.61 2.41 4.36 4 7.48 4 4.97 0 9-4.03 9-9h2c0 6.08-4.92 11-11 11-3.72 0-7.01-1.85-9-4.67zm-2-9C1 5.92 5.92 1 12 1c3.72 0 7.01 1.85 9 4.67V3h2v6h-6V7h2.48C17.87 4.59 15.12 3 12 3c-4.97 0-9 4.03-9 9z"}),"CurrencyExchange"),DG=xr(C.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2m6.93 6h-2.95c-.32-1.25-.78-2.45-1.38-3.56 1.84.63 3.37 1.91 4.33 3.56M12 4.04c.83 1.2 1.48 2.53 1.91 3.96h-3.82c.43-1.43 1.08-2.76 1.91-3.96M4.26 14C4.1 13.36 4 12.69 4 12s.1-1.36.26-2h3.38c-.08.66-.14 1.32-.14 2 0 .68.06 1.34.14 2zm.82 2h2.95c.32 1.25.78 2.45 1.38 3.56-1.84-.63-3.37-1.9-4.33-3.56m2.95-8H5.08c.96-1.66 2.49-2.93 4.33-3.56C8.81 5.55 8.35 6.75 8.03 8M12 19.96c-.83-1.2-1.48-2.53-1.91-3.96h3.82c-.43 1.43-1.08 2.76-1.91 3.96M14.34 14H9.66c-.09-.66-.16-1.32-.16-2 0-.68.07-1.35.16-2h4.68c.09.65.16 1.32.16 2 0 .68-.07 1.34-.16 2m.25 5.56c.6-1.11 1.06-2.31 1.38-3.56h2.95c-.96 1.65-2.49 2.93-4.33 3.56M16.36 14c.08-.66.14-1.32.14-2 0-.68-.06-1.34-.14-2h3.38c.16.64.26 1.31.26 2s-.1 1.36-.26 2z"}),"Language"),FG=xr(C.jsx("path",{d:"M12 5V3.21c0-.45-.54-.67-.85-.35l-2.8 2.79c-.2.2-.2.51 0 .71l2.79 2.79c.32.31.86.09.86-.36V7c3.31 0 6 2.69 6 6 0 2.72-1.83 5.02-4.31 5.75-.42.12-.69.52-.69.95 0 .65.62 1.16 1.25.97C17.57 19.7 20 16.64 20 13c0-4.42-3.58-8-8-8m-6 8c0-1.34.44-2.58 1.19-3.59.3-.4.26-.95-.09-1.31-.42-.42-1.14-.38-1.5.1-1 1.34-1.6 3-1.6 4.8 0 3.64 2.43 6.7 5.75 7.67.63.19 1.25-.32 1.25-.97 0-.43-.27-.83-.69-.95C7.83 18.02 6 15.72 6 13"}),"RestartAltRounded"),zG=xr(C.jsx("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6"}),"Settings");function aw(e){const{onClose:t,value:n,open:r,options:o,title:i,...s}=e,[a,l]=w.useState(n),u=w.useRef(null);w.useEffect(()=>{r||l(n)},[n,r]);const c=()=>{u.current!=null&&u.current.focus()},f=()=>{t()},d=()=>{t(a)},h=p=>{l(p.target.value)};return C.jsxs(bk,{sx:{"& .MuiDialog-paper":{width:"80%",maxHeight:435}},maxWidth:"xs",TransitionProps:{onEntering:c},open:r,...s,children:[C.jsx(wk,{children:i}),C.jsx(b4,{dividers:!0,children:C.jsx(zF,{ref:u,"aria-label":"ringtone",name:"ringtone",value:a,onChange:h,children:o.map(p=>w.createElement(Pk,{...p,key:p.key,control:C.jsx(NF,{})}))})}),C.jsxs(d4,{children:[C.jsx($g,{autoFocus:!0,onClick:f,children:"Cancel"}),C.jsx($g,{onClick:d,children:"Ok"})]})]})}const BG={locale:void 0,currency:void 0,theme:"auto"},jv=Df({name:"settings",initialState:BG,reducers:{setLocale:(e,t)=>{e.locale=t.payload},setCurrency:(e,t)=>{e.currency=t.payload},setTheme:(e,t)=>{e.theme=t.payload}}}),{setLocale:UG,setCurrency:VG,setTheme:WG}=jv.actions;jv.reducer;const HG="Settings",GG="Renting",KG="Buying",YG="Mortgage",qG="years",XG="Deposit",QG="{{rentingOrBuying}} for {{yearsNumber}} {{yearOrYears}}",ZG="years",JG="year",eK="Rent",tK="Total",nK="Currency",rK="Language",oK="Interest",iK="Mode",sK="Auto",aK="Light",lK="Dark",uK={Settings:HG," per year":" per year",Renting:GG,Buying:KG,Mortgage:YG,"Property Price":"Property Price","Property Value Growth":"Property Value Growth","Loan Term":"Loan Term","Deposit percentage":"Deposit Percentage","Interest Rate":"Interest Rate","You would pay {amount} per month":"You would pay {{amount}} per month","Total principal paid":"Total Principal Paid","Total interest paid":"Total Interest Paid","Buying And Selling Costs":"Buying and Selling Costs","Buying costs":"Buying Costs","Selling costs":"Selling Costs","Yearly costs":"Yearly Costs","Ownership costs":"Ownership Costs","helperText under ownership costs":"Property tax, maintenance, home insurance...","Property Investment Calculator":"Property Investment Calculator","This calculator is designed to help you make an informed decision about whether to rent or buy a property":"This calculator is designed to help you make an informed decision about whether to rent or buy a property.","How long do you plan to stay in the property?":"How long do you plan to stay in the property?",years:qG,"Monthly Rent":"Monthly Rent",Deposit:XG,"Rent Growth":"Rent Growth","% per year":"% per year","Invest the difference between buying and renting?":"Invest the difference between buying and renting?","Investing the difference":"Investing the difference","If you decide to purchase a property, your monthly payments would be paying this much more per month":"If you decide to purchase a property, your monthly payments would be this much higher per month","The required deposit will be lower by":"The required deposit will be lower by","You can invest this money instead":"You can invest this money instead","Alternative investment return":"Alternative Investment Return","Interest paid":"Interest Paid","Principal paid":"Principal Paid","Increase in property value":"Increase in Property Value","Ownership cost":"Ownership Cost","Original property value":"Original Property Value","Total property value increase":"Total Property Value Increase","Paying off remaining debt":"Paying off Remaining Debt",labelForYears:QG,yearsPlural:ZG,yearSingular:JG,"Buying/renting is cheaper by":"{{buyingOrRenting}} is cheaper by {{difference}}",Rent:eK,"Investment returns":"Investment Returns","Alternative investment":"Alternative Investment","Initial investment":"Initial Investment","All monthly investments":"All Monthly Investments","Total at the end":"Total at the End","Deposit returned":"Deposit Returned",Total:tK,"Mortgage paid":"Mortgage Paid","Mortgage details":"Mortgage Details","Buying and selling costs":"Buying and Selling Costs","Buying and selling details":"Buying and Selling Details","Total ownership costs":"Total Ownership Costs","Simply ownership cost over the time of staying":"Simply Ownership Cost over the Time of Staying","Capital from selling":"Capital from Selling","Capital from selling details":"Details of Capital from Selling",Currency:nK,"Start over":"Start Over","Select currency":"Select Currency",Language:rK,"Select language":"Select Language","Monthly costs of buying":"Monthly Costs of Buying",Interest:oK,"Interest income":"Interest income",Mode:iK,Auto:sK,Light:aK,Dark:lK,"Mortgage vs Renting value":"Mortgage vs Renting Value"},cK="Einstellungen",dK="Mieten",fK="Hypothek",pK="Kaufen",hK="Jahre",gK="Kaution",mK="{{rentingOrBuying}} für {{yearsNumber}} {{yearOrYears}}",yK="Jahre",vK="Jahr",xK="Miete",bK="Gesamt",wK="Währung",SK="Sprache",CK="Zinsen",kK="Modus",PK="Auto",RK="Hell",$K="Dunkel",TK={Settings:cK," per year":" pro Jahr",Renting:dK,Mortgage:fK,Buying:pK,"Property Price":"Immobilienpreis","Property Value Growth":"Wertsteigerung der Immobilie","Loan Term":"Kreditlaufzeit","Deposit percentage":"Anzahlungsprozentsatz","Interest Rate":"Zinssatz","You would pay {amount} per month":"Sie würden {{amount}} pro Monat zahlen","Total principal paid":"Gesamte gezahlte Hauptsumme","Total interest paid":"Gesamte gezahlte Zinsen","Buying And Selling Costs":"Kauf- und Verkaufskosten","Buying costs":"Kaufkosten","Selling costs":"Verkaufskosten","Yearly costs":"Jährliche Kosten","Ownership costs":"Besitzkosten","helperText under ownership costs":"Grundsteuer, Wartung, Wohnungsversicherung...","Property Investment Calculator":"Immobilien-Investitionsrechner","This calculator is designed to help you make an informed decision about whether to rent or buy a property":"Dieser Rechner soll Ihnen helfen, eine fundierte Entscheidung zu treffen, ob Sie eine Immobilie mieten oder kaufen sollten.","How long do you plan to stay in the property?":"Wie lange planen Sie, in der Immobilie zu bleiben?",years:hK,"Monthly Rent":"Monatliche Miete",Deposit:gK,"Rent Growth":"Mietwachstum","% per year":"% pro Jahr","Invest the difference between buying and renting?":"Die Differenz zwischen Kaufen und Mieten investieren?","Investing the difference":"Die Differenz investieren","If you decide to purchase a property, your monthly payments would be paying this much more per month":"Wenn Sie sich entscheiden, eine Immobilie zu kaufen, würden Ihre monatlichen Zahlungen monatlich um diesen Betrag höher sein","The required deposit will be lower by":"Die erforderliche Anzahlung wird um diesen Betrag niedriger sein","You can invest this money instead":"Sie könnten dieses Geld stattdessen investieren","Alternative investment return":"Alternativer Investitionsertrag","Interest paid":"Gezahlte Zinsen","Principal paid":"Gezahlte Hauptsumme","Increase in property value":"Steigerung des Immobilienwertes","Ownership cost":"Besitzkosten","Original property value":"Ursprünglicher Immobilienwert","Total property value increase":"Gesamtsteigerung des Immobilienwerts","Paying off remaining debt":"Verbleibende Schulden abzahlen",labelForYears:mK,yearsPlural:yK,yearSingular:vK,"Buying/renting is cheaper by":"{{buyingOrRenting}} ist günstiger um {{difference}}",Rent:xK,"Investment returns":"Investitionsrenditen","Alternative investment":"Alternative Investition","Initial investment":"Erstinvestition","All monthly investments":"Alle monatlichen Investitionen","Total at the end":"Gesamt am Ende","Deposit returned":"Kaution zurück",Total:bK,"Mortgage paid":"Hypothek bezahlt","Mortgage details":"Hypothekendetails","Buying and selling costs":"Kauf- und Verkaufskosten","Buying and selling details":"Details zu Kauf und Verkauf","Total ownership costs":"Gesamte Besitzkosten","Simply ownership cost over the time of staying":"Einfache Besitzkosten über die Zeit des Aufenthalts","Capital from selling":"Kapital aus dem Verkauf","Capital from selling details":"Details zum Kapital aus dem Verkauf",Currency:wK,"Start over":"Neu starten","Select currency":"Währung auswählen",Language:SK,"Select language":"Sprache auswählen","Monthly costs of buying":"Monatliche Kosten des Kaufens",Interest:CK,"Interest income":"Zinseinkommen",Mode:kK,Auto:PK,Light:RK,Dark:$K,"Mortgage vs Renting value":"Hypothek vs Mietwert"},MK="Nastavení",EK="Pronájem",_K="Hypotéka",IK="Nákup",OK="let",AK="Záloha",NK="{{rentingOrBuying}} po dobu {{yearsNumber}} {{yearOrYears}}",LK="roků",jK="rok",DK="Nájem",FK="Celkem",zK="Měna",BK="Jazyk",UK="Úrok",VK="Režim",WK="Automatický",HK="Světlý",GK="Tmavý",KK={Settings:MK," per year":" ročně",Renting:EK,Mortgage:_K,Buying:IK,"Property Price":"Cena nemovitosti","Property Value Growth":"Růst hodnoty nemovitosti","Loan Term":"Doba trvání úvěru","Deposit percentage":"Procento zálohy","Interest Rate":"Úroková sazba","You would pay {amount} per month":"Platili byste {{amount}} měsíčně","Total principal paid":"Celkem zaplacená jistina","Total interest paid":"Celkem zaplacené úroky","Buying And Selling Costs":"Náklady na koupi a prodej","Buying costs":"Náklady na koupi","Selling costs":"Náklady na prodej","Yearly costs":"Roční náklady","Ownership costs":"Náklady na vlastnictví","helperText under ownership costs":"Daň z nemovitosti, údržba, pojištění domácnosti...","Property Investment Calculator":"Kalkulačka investic do nemovitostí","This calculator is designed to help you make an informed decision about whether to rent or buy a property":"Tato kalkulačka je navržena, aby vám pomohla učinit informované rozhodnutí, zda si nemovitost pronajmout nebo koupit.","How long do you plan to stay in the property?":"Jak dlouho plánujete zůstat v nemovitosti?",years:OK,"Monthly Rent":"Měsíční nájem",Deposit:AK,"Rent Growth":"Růst nájmu","% per year":"% ročně","Invest the difference between buying and renting?":"Investovat rozdíl mezi kupováním a pronájmem?","Investing the difference":"Investování rozdílu","If you decide to purchase a property, your monthly payments would be paying this much more per month":"Pokud se rozhodnete koupit nemovitost, vaše měsíční platby by byly o toto vyšší","The required deposit will be lower by":"Požadovaná záloha bude nižší o","You can invest this money instead":"Tuto částku byste mohli investovat.","Alternative investment return":"Návratnost alternativní investice","Interest paid":"Zaplacené úroky","Principal paid":"Zaplacená jistina","Increase in property value":"Zvýšení hodnoty nemovitosti","Ownership cost":"Náklady na vlastnictví","Original property value":"Původní hodnota nemovitosti","Total property value increase":"Celkové zvýšení hodnoty nemovitosti","Paying off remaining debt":"Splacení zbývajícího dluhu",labelForYears:NK,yearsPlural:LK,yearSingular:jK,"Buying/renting is cheaper by":"{{buyingOrRenting}} je levnější o {{difference}}",Rent:DK,"Investment returns":"Výnosy z investic","Alternative investment":"Alternativní investice","Initial investment":"Počáteční investice","All monthly investments":"Všechny měsíční investice","Total at the end":"Celkem na konci","Deposit returned":"Vrácená záloha",Total:FK,"Mortgage paid":"Splacená hypotéka","Mortgage details":"Detaily hypotéky","Buying and selling costs":"Náklady na koupi a prodej","Buying and selling details":"Detaily koupě a prodeje","Total ownership costs":"Celkové náklady na vlastnictví","Simply ownership cost over the time of staying":"Jednoduše náklady na vlastnictví během doby pobytu","Capital from selling":"Kapitál z prodeje","Capital from selling details":"Detaily kapitálu z prodeje",Currency:zK,"Start over":"Začít od začátku","Select currency":"Vyberte měnu",Language:BK,"Select language":"Vyberte jazyk","Monthly costs of buying":"Měsíční náklady na koupi",Interest:UK,"Interest income":"Příjem z úroků",Mode:VK,Auto:WK,Light:HK,Dark:GK,"Mortgage vs Renting value":"Hodnota hypotéky vs nájem"},YK="Indstillinger",qK="Leje",XK="Køb",QK="Pant",ZK="år",JK="Udbetaling",eY="{{rentingOrBuying}} i {{yearsNumber}} {{yearOrYears}}",tY="år",nY="år",rY="Leje",oY="Total",iY="Valuta",sY="Sprog",aY="Rente",lY="Tilstand",uY="Auto",cY="Lys",dY="Mørk",fY={Settings:YK," per year":" om året",Renting:qK,Buying:XK,Mortgage:QK,"Property Price":"Ejendomspris","Property Value Growth":"Vækst i ejendomsværdi","Loan Term":"Låneperiode","Deposit percentage":"Udbetalingsprocent","Interest Rate":"Rentesats","You would pay {amount} per month":"Du ville betale {{amount}} om måneden","Total principal paid":"Samlet hovedstol betalt","Total interest paid":"Samlede renter betalt","Buying And Selling Costs":"Købs- og salgsomkostninger","Buying costs":"Købsomkostninger","Selling costs":"Salgsomkostninger","Yearly costs":"Årlige omkostninger","Ownership costs":"Ejerskabsomkostninger","helperText under ownership costs":"Ejendomsskat, vedligeholdelse, boligforsikring...","Property Investment Calculator":"Ejendomsinvestering kalkulator","This calculator is designed to help you make an informed decision about whether to rent or buy a property":"Denne kalkulator er designet til at hjælpe dig med at træffe en informeret beslutning om, hvorvidt du skal leje eller købe en ejendom.","How long do you plan to stay in the property?":"Hvor længe planlægger du at bo i ejendommen?",years:ZK,"Monthly Rent":"Månedlig husleje",Deposit:JK,"Rent Growth":"Huslejestigning","% per year":"% om året","Invest the difference between buying and renting?":"Investere forskellen mellem at købe og leje?","Investing the difference":"Investering af forskellen","If you decide to purchase a property, your monthly payments would be paying this much more per month":"Hvis du beslutter dig for at købe en ejendom, vil dine månedlige betalinger være så meget højere om måneden","The required deposit will be lower by":"Det nødvendige depositum vil være lavere med","You can invest this money instead":"Du kan investere disse penge i stedet","Alternative investment return":"Alternativ investeringsafkast","Interest paid":"Betalte renter","Principal paid":"Betalt hovedstol","Increase in property value":"Stigning i ejendomsværdi","Ownership cost":"Ejerskabsomkostninger","Original property value":"Oprindelig ejendomsværdi","Total property value increase":"Samlet stigning i ejendomsværdi","Paying off remaining debt":"Afbetaling af restgæld",labelForYears:eY,yearsPlural:tY,yearSingular:nY,"Buying/renting is cheaper by":"{{buyingOrRenting}} er billigere med {{difference}}",Rent:rY,"Investment returns":"Investeringsafkast","Alternative investment":"Alternativ investering","Initial investment":"Startinvestering","All monthly investments":"Alle månedlige investeringer","Total at the end":"Total ved slutningen","Deposit returned":"Depositum returneret",Total:oY,"Mortgage paid":"Betalt pant","Mortgage details":"Pantedetaljer","Buying and selling costs":"Købs- og salgsomkostninger","Buying and selling details":"Detaljer om køb og salg","Total ownership costs":"Samlede ejerskabsomkostninger","Simply ownership cost over the time of staying":"Enkle ejerskabsomkostninger over opholdstiden","Capital from selling":"Kapital fra salg","Capital from selling details":"Detaljer om kapital fra salg",Currency:iY,"Start over":"Start forfra","Select currency":"Vælg valuta",Language:sY,"Select language":"Vælg sprog","Monthly costs of buying":"Månedlige omkostninger ved køb",Interest:aY,"Interest income":"Renteindtægter",Mode:lY,Auto:uY,Light:cY,Dark:dY,"Mortgage vs Renting value":"Pant kontra lejeværdi"},pY="Inställningar",hY="Hyra",gY="Köp",mY="Bolån",yY="år",vY="Insättning",xY="{{rentingOrBuying}} i {{yearsNumber}} {{yearOrYears}}",bY="år",wY="år",SY="Hyra",CY="Totalt",kY="Valuta",PY="Språk",RY="Ränta",$Y="Läge",TY="Auto",MY="Ljus",EY="Mörk",_Y={Settings:pY," per year":" per år",Renting:hY,Buying:gY,Mortgage:mY,"Property Price":"Fastighetspris","Property Value Growth":"Värdeökning på fastigheten","Loan Term":"Lånets löptid","Deposit percentage":"Insättningsprocent","Interest Rate":"Räntesats","You would pay {amount} per month":"Du skulle betala {{amount}} per månad","Total principal paid":"Totalt betald huvudsumma","Total interest paid":"Totalt betalda räntor","Buying And Selling Costs":"Kostnader för köp och försäljning","Buying costs":"Köpkostnader","Selling costs":"Försäljningskostnader","Yearly costs":"Årliga kostnader","Ownership costs":"Ägandekostnader","helperText under ownership costs":"Fastighetsskatt, underhåll, hemförsäkring...","Property Investment Calculator":"Fastighetsinvesteringskalkylator","This calculator is designed to help you make an informed decision about whether to rent or buy a property":"Denna kalkylator är utformad för att hjälpa dig att fatta ett välgrundat beslut om att hyra eller köpa en fastighet.","How long do you plan to stay in the property?":"Hur länge planerar du att bo i fastigheten?",years:yY,"Monthly Rent":"Månadshyra",Deposit:vY,"Rent Growth":"Hyresökning","% per year":"% per år","Invest the difference between buying and renting?":"Investera skillnaden mellan att köpa och hyra?","Investing the difference":"Investering av skillnaden","If you decide to purchase a property, your monthly payments would be paying this much more per month":"Om du beslutar att köpa en fastighet, skulle dina månatliga betalningar vara så mycket högre per månad","The required deposit will be lower by":"Den nödvändiga insättningen kommer att vara lägre med","You can invest this money instead":"Du kan investera dessa pengar istället","Alternative investment return":"Alternativ investeringsavkastning","Interest paid":"Betalda räntor","Principal paid":"Betald huvudsumma","Increase in property value":"Ökning av fastighetsvärdet","Ownership cost":"Ägandekostnad","Original property value":"Ursprungligt fastighetsvärde","Total property value increase":"Total ökning av fastighetsvärdet","Paying off remaining debt":"Betalning av återstående skuld",labelForYears:xY,yearsPlural:bY,yearSingular:wY,"Buying/renting is cheaper by":"{{buyingOrRenting}} är billigare med {{difference}}",Rent:SY,"Investment returns":"Investeringsavkastning","Alternative investment":"Alternativ investering","Initial investment":"Initial investering","All monthly investments":"Alla månatliga investeringar","Total at the end":"Totalt i slutet","Deposit returned":"Insättning återlämnad",Total:CY,"Mortgage paid":"Betald bolån","Mortgage details":"Bolåndetaljer","Buying and selling costs":"Kostnader för köp och försäljning","Buying and selling details":"Detaljer om köp och försäljning","Total ownership costs":"Totala ägandekostnader","Simply ownership cost over the time of staying":"Enkla ägandekostnader över tiden för vistelsen","Capital from selling":"Kapital från försäljning","Capital from selling details":"Detaljer om kapital från försäljning",Currency:kY,"Start over":"Börja om","Select currency":"Välj valuta",Language:PY,"Select language":"Välj språk","Monthly costs of buying":"Månadskostnader för köp",Interest:RY,"Interest income":"Ränteinkomst",Mode:$Y,Auto:TY,Light:MY,Dark:EY,"Mortgage vs Renting value":"Bolån vs Hyra värde"},IY="Setări",OY="Închiriere",AY="Cumpărare",NY="Ipotecă",LY="ani",jY="Depozit",DY="{{rentingOrBuying}} pe {{yearsNumber}} de {{yearOrYears}}",FY="ani",zY="an",BY="Chirie",UY="Total",VY="Monedă",WY="Limba",HY="Dobândă",GY="Mod",KY="Auto",YY="Luminos",qY="Întunecat",XY={Settings:IY," per year":" pe an",Renting:OY,Buying:AY,Mortgage:NY,"Property Price":"Prețul proprietății","Property Value Growth":"Creșterea valorii proprietății","Loan Term":"Durata împrumutului","Deposit percentage":"Procentul depozitului","Interest Rate":"Rata dobânzii","You would pay {amount} per month":"Ai plăti {{amount}} pe lună","Total principal paid":"Total principal plătit","Total interest paid":"Total dobânzi plătite","Buying And Selling Costs":"Costuri de cumpărare și vânzare","Buying costs":"Costuri de cumpărare","Selling costs":"Costuri de vânzare","Yearly costs":"Costuri anuale","Ownership costs":"Costuri de proprietate","helperText under ownership costs":"Impozit pe proprietate, întreținere, asigurarea locuinței...","Property Investment Calculator":"Calculator de investiții imobiliare","This calculator is designed to help you make an informed decision about whether to rent or buy a property":"Acest calculator este conceput pentru a te ajuta să iei o decizie informată dacă să închiriezi sau să cumperi o proprietate.","How long do you plan to stay in the property?":"Cât timp plănuiești să stai în proprietate?",years:LY,"Monthly Rent":"Chirie lunară",Deposit:jY,"Rent Growth":"Creșterea chiriei","% per year":"% pe an","Invest the difference between buying and renting?":"Investești diferența dintre cumpărare și închiriere?","Investing the difference":"Investirea diferenței","If you decide to purchase a property, your monthly payments would be paying this much more per month":"Dacă decizi să cumperi o proprietate, plățile tale lunare ar fi cu atât mai mari pe lună","The required deposit will be lower by":"Depozitul necesar va fi mai mic cu","You can invest this money instead":"Ai putea investi acești bani în schimb","Alternative investment return":"Randamentul investiției alternative","Interest paid":"Dobândă plătită","Principal paid":"Principal plătit","Increase in property value":"Creștere a valorii proprietății","Ownership cost":"Costul proprietății","Original property value":"Valoarea originală a proprietății","Total property value increase":"Creșterea totală a valorii proprietății","Paying off remaining debt":"Plata datoriei rămase",labelForYears:DY,yearsPlural:FY,yearSingular:zY,"Buying/renting is cheaper by":"{{buyingOrRenting}} este mai ieftin cu {{difference}}",Rent:BY,"Investment returns":"Randamentele investiției","Alternative investment":"Investiție alternativă","Initial investment":"Investiție inițială","All monthly investments":"Toate investițiile lunare","Total at the end":"Total la sfârșit","Deposit returned":"Depozit returnat",Total:UY,"Mortgage paid":"Ipotecă plătită","Mortgage details":"Detalii ipotecă","Buying and selling costs":"Costuri de cumpărare și vânzare","Buying and selling details":"Detalii despre cumpărare și vânzare","Total ownership costs":"Costuri totale de proprietate","Simply ownership cost over the time of staying":"Simplu cost de proprietate pe durata șederii","Capital from selling":"Capital din vânzare","Capital from selling details":"Detalii capital din vânzare",Currency:VY,"Start over":"Începe din nou","Select currency":"Selectează moneda",Language:WY,"Select language":"Selectează limba","Monthly costs of buying":"Costuri lunare de cumpărare",Interest:HY,"Interest income":"Venit din dobândă",Mode:GY,Auto:KY,Light:YY,Dark:qY,"Mortgage vs Renting value":"Valoarea ipotecii vs închiriere"},h$=[{code:"cz",name:"Čeština",file:KK},{code:"de",name:"Deutsch",file:TK},{code:"dk",name:"Dansk",file:fY},{code:"en",name:"English",file:uK},{code:"ro",name:"Română",file:XY},{code:"se",name:"Svenska",file:_Y}];function QY(e){const{t,i18n:n}=zn(),{onClose:r,open:o}=e,i=rt(g=>g.settings.theme),[s,a]=w.useState(!1),[l,u]=w.useState(!1),c=Uy(),f=rt(g=>g.settings.locale),d=rt(g=>g.settings.currency),h=()=>g=>{g&&(c(VG(g)),f&&r()),a(!1)},p=()=>g=>{g&&(n.changeLanguage(g),c(UG(g)),r()),u(!1)},y=[{key:"language",name:t("Language"),value:f,icon:C.jsx(DG,{})},{key:"currency",name:t("Currency"),value:d,icon:C.jsx(jG,{})},{key:"startOver",name:t("Start over"),icon:C.jsx(FG,{}),hide:!d||!f}],x=g=>{switch(g){case"language":u(!0);break;case"currency":a(!0);break;case"startOver":localStorage.removeItem("state"),localStorage.removeItem("i18nextLng"),window.location.reload();break}};return C.jsxs(bk,{onClose:()=>r(),open:o,slotProps:{backdrop:{sx:!f||!d?{backgroundColor:"#fff"}:{}}},children:[C.jsx(wk,{children:t("Settings")}),C.jsxs(_k,{sx:{pt:0},children:[y.map(({name:g,value:v,icon:m,hide:b,key:S})=>!b&&C.jsx(rx,{disableGutters:!0,children:C.jsxs(fD,{onClick:()=>x(S),children:[C.jsx(ED,{children:m}),C.jsx(ix,{primary:g,secondary:v})]})},g)),C.jsx(ix,{primary:t("Mode")}),C.jsx(rx,{children:C.jsxs(N6,{color:"secondary",value:i,exclusive:!0,onChange:(g,v)=>c(WG(v)),"aria-label":"Platform",children:[C.jsx(Yp,{value:"auto",children:t("Auto")}),C.jsx(Yp,{value:"light",children:t("Light")}),C.jsx(Yp,{value:"dark",children:t("Dark")})]})})]}),C.jsx(aw,{id:"currency",keepMounted:!1,value:d,title:t("Select currency"),open:s,onClose:h(),options:lP.map(({locale:g,abbreviation:v,prefix:m,suffix:b})=>({label:v+` (${m}${b})`,value:v,key:g}))}),C.jsx(aw,{id:"language",keepMounted:!1,value:f,title:t("Select language"),open:l,onClose:p(),options:h$.map(({code:g,name:v})=>({label:v,value:g,key:g}))})]})}const g$=bf({palette:{mode:"light",primary:{main:"#094fec"},secondary:{main:"#c0c0c0"},error:{main:"#ee0000"}},typography:{h1:{fontFamily:"DM Serif Display",fontSize:"4rem",fontWeight:100},fontSize:16,fontFamily:"Jost, sans-serif",h2:{fontSize:"6rem",fontWeight:500},h3:{fontSize:"2rem",fontWeight:600},h4:{fontSize:"1.5rem",fontWeight:500},caption:{fontSize:"1.2rem",fontWeight:400}},components:{MuiInputBase:{styleOverrides:{input:{fontSize:"1.6rem"}}},MuiInputLabel:{styleOverrides:{root:{fontSize:"1.3rem"}}},MuiTooltip:{styleOverrides:{tooltip:{backgroundColor:"white",color:"black",boxShadow:"0px 4px 4px rgba(0, 0, 0, 0.25)"}}},MuiStack:{styleOverrides:{root:{textAlign:"left"}}},MuiPaper:{styleOverrides:{root:{padding:"15px",margin:0,textAlign:"left",borderRadius:"6px"}}},MuiTypography:{styleOverrides:{h1:{wordBreak:"break-word"},h2:{wordBreak:"break-word"},h3:{wordBreak:"break-word"},h4:{wordBreak:"break-word"},h5:{wordBreak:"break-word"},h6:{wordBreak:"break-word"}}}}}),ZY=bf({...g$,palette:{mode:"dark",primary:{main:"#094fec"},secondary:{main:"#2f2f2f"},error:{main:"#b60f0f"},background:{default:"#121212",paper:"#1e1e1e"}}});function JY({startingMonthlyRent:e,yearlyRentGrowth:t,yearsStaying:n,deposit:r}){let o=0;const i=[];let s=e;const a=t/100;for(let l=0;l{const{monthlyRent:e,yearlyRentGrowth:t,initialInvestment:n}=rt(u=>u.calculator.renting),{yearsStaying:r}=rt(u=>u.calculator.futurePredictions),o=Lv(),{yearValueChangeTotals:i,rentTotal:s}=JY({startingMonthlyRent:e,yearlyRentGrowth:t,yearsStaying:r,deposit:n}),a=i.map((u,c)=>(o.monthlyValues[c]||0)+u),l=o.valueAdded-s;return{rentTotal:s,totalRenting:l,yearlyValuesRenting:a}};function eq(){const e=_t(),{t}=zn(),{yearValueChangeTotals:n}=Hs(),{yearlyValuesRenting:r}=Dv(),o={id:"mortgage",label:t("Mortgage"),data:n.map(l=>Math.round(l)),color:e.palette.primary.main},i={id:"rent",label:t("Rent"),data:r.map(l=>Math.round(l)),color:e.palette.primary.light};if(n.length===0)return C.jsx(C.Fragment,{});const s={height:250,legend:{hidden:!0},margin:{top:5}},a=n.map((l,u)=>new Date(new Date().setFullYear(new Date().getFullYear()+u)).getFullYear());return C.jsxs(C.Fragment,{children:[C.jsxs(Re,{variant:"caption",children:[t("Mortgage vs Renting value"),":"]}),C.jsx(d$,{xAxis:[{valueFormatter:l=>l.toString(),data:a}],series:[o,i],...s})]})}function tq(){const{t:e}=zn(),t=ip(),{totalBuying:n}=Hs(),{totalRenting:r}=Dv(),o=n>r,i=o?r-n:n-r;return C.jsxs(Ef,{sx:{textAlign:"left"},children:[C.jsx(Re,{variant:"h3",gutterBottom:!0,children:e("Buying/renting is cheaper by",{buyingOrRenting:e(o?"Buying":"Renting"),difference:t(Math.abs(i))})}),C.jsx(eq,{})]})}function Yi({rows:e,heading:t,description:n,chart:r}){const o=ip(),i=_t(),s=KI(i.breakpoints.up("lg"));return C.jsxs(C.Fragment,{children:[C.jsx(Re,{variant:"h5",gutterBottom:!0,children:t}),n&&C.jsx(Re,{variant:"body1",children:n}),r,C.jsx(_f,{children:e.map((a,l)=>{if(a==="divider")return C.jsx(Q1,{},l);const{label:u,value:c,tooltip:f}=a,d=C.jsxs(Re,{variant:"body1",color:c<0?i.palette.error.main:void 0,children:[u,": ",o(c||0)]});return C.jsxs(Ef,{children:[f?C.jsx(f6,{title:f,placement:s?"left":"bottom",sx:{cursor:"help"},children:d}):d,l===e.length-1?null:C.jsx(Q1,{sx:{margin:"3px 0"}})]},u)})})]})}function nq({graphData:e}){const t=_t(),{t:n}=zn(),r={interestPaid:{translation:n("Interest paid"),color:t.palette.secondary.main},principalPaid:{translation:n("Principal paid"),color:t.palette.primary.main},increaseInPropertyValue:{translation:n("Increase in property value"),color:t.palette.primary.main},ownershipCost:{translation:n("Ownership cost"),color:t.palette.secondary.light},buyingCosts:{translation:n("Buying costs"),color:t.palette.secondary.light},sellingCosts:{translation:n("Selling costs"),color:t.palette.secondary.light}};if(e.length===0)return C.jsx(C.Fragment,{});const o=Object.keys(e[0]).reduce((a,l)=>{if(!rq(l))return a;const u={id:l,label:r[l].translation,data:e.map(c=>c[l]),stack:"total",area:!0,showMark:!1,color:r[l].color};return a.push(u),a},[]),i={height:250,legend:{hidden:!0},margin:{top:5}},s=e.map((a,l)=>new Date(new Date().setFullYear(new Date().getFullYear()+l)).getFullYear());return e.length===0?C.jsx(C.Fragment,{}):C.jsxs(C.Fragment,{children:[C.jsxs(Re,{variant:"caption",children:[n("Monthly costs of buying"),":"]}),C.jsx(d$,{xAxis:[{valueFormatter:a=>a.toString(),data:s}],series:o,...i})]})}const rq=e=>{switch(e){case"interestPaid":case"ownershipCost":case"buyingCosts":case"sellingCosts":case"principalPaid":return!0;case"increaseInPropertyValue":return!1;default:throw new Error("Invalid key")}};function oq(){const{t:e}=zn(),{yearsStaying:t}=rt(x=>x.calculator.futurePredictions),{totalInterestPaid:n,remainingBalance:r,totalPropertyValueIncrease:o,totalOwnershipCosts:i,yearValueChanges:s,buyingCost:a,sellingCost:l,totalBuying:u,totalMortgagePaid:c,totalPrincipalPaid:f,deposit:d,initialPropertyValue:h}=Hs(),p=[{label:e("Original property value"),value:h},{label:e("Total property value increase"),value:o},{label:e("Paying off remaining debt"),value:-1*r}],y=p.reduce((x,g)=>g==="divider"?x:x+g.value,0);return C.jsx(Yi,{chart:C.jsx(nq,{graphData:s}),heading:e("labelForYears",{rentingOrBuying:e("Buying"),yearsNumber:t,yearOrYears:e(t!==1?"yearsPlural":"yearSingular")}),rows:[{label:e("Deposit"),value:-1*d},{label:e("Mortgage paid"),value:-c,tooltip:C.jsx(Yi,{rows:[{label:e("Total interest paid"),value:-1*n},{label:e("Total principal paid"),value:-1*f}],heading:e("Mortgage details")})},{label:e("Buying and selling costs"),value:-1*(a+l),tooltip:C.jsx(Yi,{rows:[{label:e("Buying costs"),value:-1*a},{label:e("Selling costs"),value:-1*l}],heading:e("Buying and selling details")})},{label:e("Total ownership costs"),value:-1*i,tooltip:C.jsx("div",{children:e("Simply ownership cost over the time of staying")})},{label:e("Capital from selling"),value:y,tooltip:C.jsx(Yi,{heading:e("Capital from selling details"),rows:p})},"divider",{label:e("Total"),value:u}]})}function iq(){const{t:e}=zn(),{yearsStaying:t}=rt(s=>s.calculator.futurePredictions),{initialInvestment:n}=rt(s=>s.calculator.renting),{totalRenting:r,rentTotal:o}=Dv(),i=Lv();return C.jsx(Yi,{heading:e("labelForYears",{rentingOrBuying:e("Renting"),yearsNumber:t,yearOrYears:e(t!==1?"yearsPlural":"yearSingular")}),rows:[{label:e("Deposit"),value:-1*n},{label:e("Rent"),value:-1*o},{label:e("Investment returns"),value:i.valueAdded,tooltip:C.jsx(Yi,{heading:e("Alternative investment"),rows:[{label:e("Initial investment"),value:-1*i.initialCash},{label:e("All monthly investments"),value:-1*i.allMonthlyInvestment},"divider",{label:e("Total at the end"),value:i.totalAtTheEnd}]})},{label:e("Deposit returned"),value:n},"divider",{label:e("Total"),value:r}]})}function sq(){return C.jsxs(Tr,{container:!0,spacing:2,justifyContent:"stretch",children:[C.jsx(Tr,{xs:12,children:C.jsx(os,{children:C.jsx(tq,{})})}),C.jsx(Tr,{xs:12,children:C.jsx(os,{children:C.jsx(oq,{})})}),C.jsx(Tr,{xs:12,children:C.jsx(os,{children:C.jsx(iq,{})})})]})}const aq=()=>{const{stateSlice:e,createStateUpdateFc:t}=Zy("futurePredictions"),{t:n}=zn();return C.jsxs(C.Fragment,{children:[C.jsx(Re,{variant:"h1",gutterBottom:!0,children:n("Property Investment Calculator")}),C.jsx(Re,{variant:"body1",gutterBottom:!0,children:n("This calculator is designed to help you make an informed decision about whether to rent or buy a property")}),C.jsx(Re,{variant:"body1",gutterBottom:!0,children:n("How long do you plan to stay in the property?")}),C.jsx(uP,{value:e.yearsStaying,InputProps:If({endAdornment:n("years")}),onChange:t("yearsStaying")})]})};function lq(){const{t:e}=zn(),t=rt(u=>u.settings.theme),[n,r]=w.useState(!1),o=rt(u=>u.settings.locale),i=rt(u=>u.settings.currency),s=window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches;!n&&(!o||!i)&&r(!0);const l=(t==="auto"?s?"dark":"light":t)==="dark"?ZY:g$;return C.jsx(QA,{theme:l,children:C.jsxs(Ef,{sx:{backgroundColor:l.palette.secondary.light},children:[o&&i&&C.jsxs(Tr,{container:!0,spacing:2,justifyContent:"center",sx:{maxWidth:"1200px",margin:"0 auto"},children:[C.jsx(Tr,{xs:12,children:C.jsx(os,{children:C.jsx(aq,{})})}),C.jsx(Tr,{sm:12,lg:8,children:C.jsx(LG,{})}),C.jsx(Tr,{sm:12,lg:4,children:C.jsx(sq,{})}),C.jsx(Tr,{sm:12,mt:0,children:C.jsx($g,{fullWidth:!0,sx:{mb:2},onClick:()=>r(!0),variant:l.palette.mode==="dark"?"contained":"outlined",color:l.palette.mode==="dark"?"secondary":"primary",endIcon:C.jsx(zG,{}),children:e("Settings")})})]}),C.jsx(QY,{open:n,onClose:()=>r(!1)})]})})}function uq(e){try{const t=JSON.stringify(e);localStorage.setItem("state",t)}catch(t){console.warn(t)}}function cq(){try{const e=localStorage.getItem("state");return e===null?void 0:JSON.parse(e)}catch(e){console.warn(e);return}}const dq=Wy({buying:qy.reducer,renting:Xy.reducer,futurePredictions:Qy.reducer}),fq=cq(),pq=Wy({calculator:dq,settings:jv.reducer}),am=R8({reducer:pq,preloadedState:fq});am.subscribe(()=>uq(am.getState()));const hq={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class bd{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||hq,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),r=0;r{this.observers[r]||(this.observers[r]=new Map);const o=this.observers[r].get(n)||0;this.observers[r].set(n,o+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o{let[a,l]=s;for(let u=0;u{let[a,l]=s;for(let u=0;u{e=r,t=o});return n.resolve=e,n.reject=t,n}function lw(e){return e==null?"":""+e}function gq(e,t,n){e.forEach(r=>{t[r]&&(n[r]=t[r])})}const mq=/###/g;function Ya(e,t,n){function r(a){return a&&a.indexOf("###")>-1?a.replace(mq,"."):a}function o(){return!e||typeof e=="string"}const i=typeof t!="string"?t:t.split(".");let s=0;for(;s":">",'"':""","'":"'","/":"/"};function bq(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,t=>xq[t]):e}class wq{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const n=this.regExpMap.get(t);if(n!==void 0)return n;const r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}}const Sq=[" ",",","?","!",";"],Cq=new wq(20);function kq(e,t,n){t=t||"",n=n||"";const r=Sq.filter(s=>t.indexOf(s)<0&&n.indexOf(s)<0);if(r.length===0)return!0;const o=Cq.getRegExp(`(${r.map(s=>s==="?"?"\\?":s).join("|")})`);let i=!o.test(e);if(!i){const s=e.indexOf(n);s>0&&!o.test(e.substring(0,s))&&(i=!0)}return i}function lm(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let o=e;for(let i=0;i-1&&l0?e.replace("_","-"):e}class cw extends sp{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const i=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,s=o.ignoreJSONStructure!==void 0?o.ignoreJSONStructure:this.options.ignoreJSONStructure;let a;t.indexOf(".")>-1?a=t.split("."):(a=[t,n],r&&(Array.isArray(r)?a.push(...r):typeof r=="string"&&i?a.push(...r.split(i)):a.push(r)));const l=wd(this.data,a);return!l&&!n&&!r&&t.indexOf(".")>-1&&(t=a[0],n=a[1],r=a.slice(2).join(".")),l||!s||typeof r!="string"?l:lm(this.data&&this.data[t]&&this.data[t][n],r,i)}addResource(t,n,r,o){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const s=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator;let a=[t,n];r&&(a=a.concat(s?r.split(s):r)),t.indexOf(".")>-1&&(a=t.split("."),o=n,n=a[1]),this.addNamespaces(n),uw(this.data,a,o),i.silent||this.emit("added",t,n,r,o)}addResources(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const i in r)(typeof r[i]=="string"||Object.prototype.toString.apply(r[i])==="[object Array]")&&this.addResource(t,n,i,r[i],{silent:!0});o.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,o,i){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},a=[t,n];t.indexOf(".")>-1&&(a=t.split("."),o=r,r=n,n=a[1]),this.addNamespaces(n);let l=wd(this.data,a)||{};s.skipCopy||(r=JSON.parse(JSON.stringify(r))),o?m$(l,r,i):l={...l,...r},uw(this.data,a,l),s.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,n)}:this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(o=>n[o]&&Object.keys(n[o]).length>0)}toJSON(){return this.data}}var y$={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,o){return e.forEach(i=>{this.processors[i]&&(t=this.processors[i].process(t,n,r,o))}),t}};const dw={};class Cd extends sp{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),gq(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=dr.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const r=this.resolve(t,n);return r&&r.res!==void 0}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const o=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let i=n.ns||this.options.defaultNS||[];const s=r&&t.indexOf(r)>-1,a=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!kq(t,r,o);if(s&&!a){const l=t.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:t,namespaces:i};const u=t.split(r);(r!==o||r===o&&this.options.ns.indexOf(u[0])>-1)&&(i=u.shift()),t=u.join(o)}return typeof i=="string"&&(i=[i]),{key:t,namespaces:i}}translate(t,n,r){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const o=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:s,namespaces:a}=this.extractFromKey(t[t.length-1],n),l=a[a.length-1],u=n.lng||this.language,c=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&u.toLowerCase()==="cimode"){if(c){const b=n.nsSeparator||this.options.nsSeparator;return o?{res:`${l}${b}${s}`,usedKey:s,exactUsedKey:s,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:`${l}${b}${s}`}return o?{res:s,usedKey:s,exactUsedKey:s,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:s}const f=this.resolve(t,n);let d=f&&f.res;const h=f&&f.usedKey||s,p=f&&f.exactUsedKey||s,y=Object.prototype.toString.apply(d),x=["[object Number]","[object Function]","[object RegExp]"],g=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject;if(v&&d&&(typeof d!="string"&&typeof d!="boolean"&&typeof d!="number")&&x.indexOf(y)<0&&!(typeof g=="string"&&y==="[object Array]")){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const b=this.options.returnedObjectHandler?this.options.returnedObjectHandler(h,d,{...n,ns:a}):`key '${s} (${this.language})' returned an object instead of string.`;return o?(f.res=b,f.usedParams=this.getUsedParamsDetails(n),f):b}if(i){const b=y==="[object Array]",S=b?[]:{},P=b?p:h;for(const R in d)if(Object.prototype.hasOwnProperty.call(d,R)){const $=`${P}${i}${R}`;S[R]=this.translate($,{...n,joinArrays:!1,ns:a}),S[R]===$&&(S[R]=d[R])}d=S}}else if(v&&typeof g=="string"&&y==="[object Array]")d=d.join(g),d&&(d=this.extendTranslation(d,t,n,r));else{let b=!1,S=!1;const P=n.count!==void 0&&typeof n.count!="string",R=Cd.hasDefaultValue(n),$=P?this.pluralResolver.getSuffix(u,n.count,n):"",M=n.ordinal&&P?this.pluralResolver.getSuffix(u,n.count,{ordinal:!1}):"",T=P&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),_=T&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${$}`]||n[`defaultValue${M}`]||n.defaultValue;!this.isValidLookup(d)&&R&&(b=!0,d=_),this.isValidLookup(d)||(S=!0,d=s);const I=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&S?void 0:d,O=R&&_!==d&&this.options.updateMissing;if(S||b||O){if(this.logger.log(O?"updateKey":"missingKey",u,l,s,O?_:d),i){const E=this.resolve(s,{...n,keySeparator:!1});E&&E.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let L=[];const A=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&A&&A[0])for(let E=0;E{const V=R&&F!==d?F:I;this.options.missingKeyHandler?this.options.missingKeyHandler(E,l,D,V,O,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(E,l,D,V,O,n),this.emit("missingKey",E,l,D,d)};this.options.saveMissing&&(this.options.saveMissingPlurals&&P?L.forEach(E=>{const D=this.pluralResolver.getSuffixes(E,n);T&&n[`defaultValue${this.options.pluralSeparator}zero`]&&D.indexOf(`${this.options.pluralSeparator}zero`)<0&&D.push(`${this.options.pluralSeparator}zero`),D.forEach(F=>{j([E],s+F,n[`defaultValue${F}`]||_)})}):j(L,s,_))}d=this.extendTranslation(d,t,n,f,r),S&&d===s&&this.options.appendNamespaceToMissingKey&&(d=`${l}:${s}`),(S||b)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?d=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${s}`:s,b?d:void 0):d=this.options.parseMissingKeyHandler(d))}return o?(f.res=d,f.usedParams=this.getUsedParamsDetails(n),f):d}extendTranslation(t,n,r,o,i){var s=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const u=typeof t=="string"&&(r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let c;if(u){const d=t.match(this.interpolator.nestingRegexp);c=d&&d.length}let f=r.replace&&typeof r.replace!="string"?r.replace:r;if(this.options.interpolation.defaultVariables&&(f={...this.options.interpolation.defaultVariables,...f}),t=this.interpolator.interpolate(t,f,r.lng||this.language,r),u){const d=t.match(this.interpolator.nestingRegexp),h=d&&d.length;c1&&arguments[1]!==void 0?arguments[1]:{},r,o,i,s,a;return typeof t=="string"&&(t=[t]),t.forEach(l=>{if(this.isValidLookup(r))return;const u=this.extractFromKey(l,n),c=u.key;o=c;let f=u.namespaces;this.options.fallbackNS&&(f=f.concat(this.options.fallbackNS));const d=n.count!==void 0&&typeof n.count!="string",h=d&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),p=n.context!==void 0&&(typeof n.context=="string"||typeof n.context=="number")&&n.context!=="",y=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);f.forEach(x=>{this.isValidLookup(r)||(a=x,!dw[`${y[0]}-${x}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(a)&&(dw[`${y[0]}-${x}`]=!0,this.logger.warn(`key "${o}" for languages "${y.join(", ")}" won't get resolved as namespace "${a}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),y.forEach(g=>{if(this.isValidLookup(r))return;s=g;const v=[c];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(v,c,g,x,n);else{let b;d&&(b=this.pluralResolver.getSuffix(g,n.count,n));const S=`${this.options.pluralSeparator}zero`,P=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(d&&(v.push(c+b),n.ordinal&&b.indexOf(P)===0&&v.push(c+b.replace(P,this.options.pluralSeparator)),h&&v.push(c+S)),p){const R=`${c}${this.options.contextSeparator}${n.context}`;v.push(R),d&&(v.push(R+b),n.ordinal&&b.indexOf(P)===0&&v.push(R+b.replace(P,this.options.pluralSeparator)),h&&v.push(R+S))}}let m;for(;m=v.pop();)this.isValidLookup(r)||(i=m,r=this.getResource(g,x,m,n))}))})}),{res:r,usedKey:o,exactUsedKey:i,usedLng:s,usedNS:a}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,r,o):this.resourceStore.getResource(t,n,r,o)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&typeof t.replace!="string";let o=r?t.replace:t;if(r&&typeof t.count<"u"&&(o.count=t.count),this.options.interpolation.defaultVariables&&(o={...this.options.interpolation.defaultVariables,...o}),!r){o={...o};for(const i of n)delete o[i]}return o}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&t[r]!==void 0)return!0;return!1}}function vh(e){return e.charAt(0).toUpperCase()+e.slice(1)}class fw{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=dr.create("languageUtils")}getScriptPartFromCode(t){if(t=Sd(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=Sd(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(typeof t=="string"&&t.indexOf("-")>-1){const n=["hans","hant","latn","cyrl","cans","mong","arab"];let r=t.split("-");return this.options.lowerCaseLng?r=r.map(o=>o.toLowerCase()):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=vh(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=vh(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=vh(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const o=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(o))&&(n=o)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const o=this.getLanguagePartFromCode(r);if(this.isSupportedCode(o))return n=o;n=this.options.supportedLngs.find(i=>{if(i===o)return i;if(!(i.indexOf("-")<0&&o.indexOf("-")<0)&&(i.indexOf("-")>0&&o.indexOf("-")<0&&i.substring(0,i.indexOf("-"))===o||i.indexOf(o)===0&&o.length>1))return i})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),typeof t=="string"&&(t=[t]),Object.prototype.toString.apply(t)==="[object Array]")return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes(n||this.options.fallbackLng||[],t),o=[],i=s=>{s&&(this.isSupportedCode(s)?o.push(s):this.logger.warn(`rejecting language code not found in supportedLngs: ${s}`))};return typeof t=="string"&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&i(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&i(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&i(this.getLanguagePartFromCode(t))):typeof t=="string"&&i(this.formatLanguageCode(t)),r.forEach(s=>{o.indexOf(s)<0&&i(this.formatLanguageCode(s))}),o}}let Pq=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],Rq={1:function(e){return+(e>1)},2:function(e){return+(e!=1)},3:function(e){return 0},4:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},5:function(e){return e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},6:function(e){return e==1?0:e>=2&&e<=4?1:2},7:function(e){return e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},8:function(e){return e==1?0:e==2?1:e!=8&&e!=11?2:3},9:function(e){return+(e>=2)},10:function(e){return e==1?0:e==2?1:e<7?2:e<11?3:4},11:function(e){return e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3},12:function(e){return+(e%10!=1||e%100==11)},13:function(e){return+(e!==0)},14:function(e){return e==1?0:e==2?1:e==3?2:3},15:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2},16:function(e){return e%10==1&&e%100!=11?0:e!==0?1:2},17:function(e){return e==1||e%10==1&&e%100!=11?0:1},18:function(e){return e==0?0:e==1?1:2},19:function(e){return e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3},20:function(e){return e==1?0:e==0||e%100>0&&e%100<20?1:2},21:function(e){return e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0},22:function(e){return e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3}};const $q=["v1","v2","v3"],Tq=["v4"],pw={zero:0,one:1,two:2,few:3,many:4,other:5};function Mq(){const e={};return Pq.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:Rq[t.fc]}})}),e}class Eq{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=dr.create("pluralResolver"),(!this.options.compatibilityJSON||Tq.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=Mq()}addRule(t,n){this.rules[t]=n}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(Sd(t==="dev"?"en":t),{type:n.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,r).map(o=>`${n}${o}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((o,i)=>pw[o]-pw[i]).map(o=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${o}`):r.numbers.map(o=>this.getSuffix(t,o,n)):[]}getSuffix(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const o=this.getRule(t,r);return o?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${o.select(n)}`:this.getSuffixRetroCompatible(o,n):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,n){const r=t.noAbs?t.plurals(n):t.plurals(Math.abs(n));let o=t.numbers[r];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(o===2?o="plural":o===1&&(o=""));const i=()=>this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString();return this.options.compatibilityJSON==="v1"?o===1?"":typeof o=="number"?`_plural_${o.toString()}`:i():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?i():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!$q.includes(this.options.compatibilityJSON)}}function hw(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=vq(e,t,n);return!i&&o&&typeof n=="string"&&(i=lm(e,n,r),i===void 0&&(i=lm(t,n,r))),i}class _q{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=dr.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(n=>n),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const n=t.interpolation;this.escape=n.escape!==void 0?n.escape:bq,this.escapeValue=n.escapeValue!==void 0?n.escapeValue:!0,this.useRawValueToEscape=n.useRawValueToEscape!==void 0?n.useRawValueToEscape:!1,this.prefix=n.prefix?Ti(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?Ti(n.suffix):n.suffixEscaped||"}}",this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||",",this.unescapePrefix=n.unescapeSuffix?"":n.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":n.unescapeSuffix||"",this.nestingPrefix=n.nestingPrefix?Ti(n.nestingPrefix):n.nestingPrefixEscaped||Ti("$t("),this.nestingSuffix=n.nestingSuffix?Ti(n.nestingSuffix):n.nestingSuffixEscaped||Ti(")"),this.nestingOptionsSeparator=n.nestingOptionsSeparator?n.nestingOptionsSeparator:n.nestingOptionsSeparator||",",this.maxReplaces=n.maxReplaces?n.maxReplaces:1e3,this.alwaysFormat=n.alwaysFormat!==void 0?n.alwaysFormat:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,r)=>n&&n.source===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,n,r,o){let i,s,a;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(p){return p.replace(/\$/g,"$$$$")}const c=p=>{if(p.indexOf(this.formatSeparator)<0){const v=hw(n,l,p,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(v,void 0,r,{...o,...n,interpolationkey:p}):v}const y=p.split(this.formatSeparator),x=y.shift().trim(),g=y.join(this.formatSeparator).trim();return this.format(hw(n,l,x,this.options.keySeparator,this.options.ignoreJSONStructure),g,r,{...o,...n,interpolationkey:x})};this.resetRegExp();const f=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,d=o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:p=>u(p)},{regex:this.regexp,safeValue:p=>this.escapeValue?u(this.escape(p)):u(p)}].forEach(p=>{for(a=0;i=p.regex.exec(t);){const y=i[1].trim();if(s=c(y),s===void 0)if(typeof f=="function"){const g=f(t,i,o);s=typeof g=="string"?g:""}else if(o&&Object.prototype.hasOwnProperty.call(o,y))s="";else if(d){s=i[0];continue}else this.logger.warn(`missed to pass in variable ${y} for interpolating ${t}`),s="";else typeof s!="string"&&!this.useRawValueToEscape&&(s=lw(s));const x=p.safeValue(s);if(t=t.replace(i[0],x),d?(p.regex.lastIndex+=s.length,p.regex.lastIndex-=i[0].length):p.regex.lastIndex=0,a++,a>=this.maxReplaces)break}}),t}nest(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o,i,s;function a(l,u){const c=this.nestingOptionsSeparator;if(l.indexOf(c)<0)return l;const f=l.split(new RegExp(`${c}[ ]*{`));let d=`{${f[1]}`;l=f[0],d=this.interpolate(d,s);const h=d.match(/'/g),p=d.match(/"/g);(h&&h.length%2===0&&!p||p.length%2!==0)&&(d=d.replace(/'/g,'"'));try{s=JSON.parse(d),u&&(s={...u,...s})}catch(y){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,y),`${l}${c}${d}`}return s.defaultValue&&s.defaultValue.indexOf(this.prefix)>-1&&delete s.defaultValue,l}for(;o=this.nestingRegexp.exec(t);){let l=[];s={...r},s=s.replace&&typeof s.replace!="string"?s.replace:s,s.applyPostProcessor=!1,delete s.defaultValue;let u=!1;if(o[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(o[1])){const c=o[1].split(this.formatSeparator).map(f=>f.trim());o[1]=c.shift(),l=c,u=!0}if(i=n(a.call(this,o[1].trim(),s),s),i&&o[0]===t&&typeof i!="string")return i;typeof i!="string"&&(i=lw(i)),i||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${t}`),i=""),u&&(i=l.reduce((c,f)=>this.format(c,f,r.lng,{...r,interpolationkey:o[1].trim()}),i.trim())),t=t.replace(o[0],i),this.regexp.lastIndex=0}return t}}function Iq(e){let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const o=r[1].substring(0,r[1].length-1);t==="currency"&&o.indexOf(":")<0?n.currency||(n.currency=o.trim()):t==="relativetime"&&o.indexOf(":")<0?n.range||(n.range=o.trim()):o.split(";").forEach(s=>{if(!s)return;const[a,...l]=s.split(":"),u=l.join(":").trim().replace(/^'+|'+$/g,"");n[a.trim()]||(n[a.trim()]=u),u==="false"&&(n[a.trim()]=!1),u==="true"&&(n[a.trim()]=!0),isNaN(u)||(n[a.trim()]=parseInt(u,10))})}return{formatName:t,formatOptions:n}}function Mi(e){const t={};return function(r,o,i){const s=o+JSON.stringify(i);let a=t[s];return a||(a=e(Sd(o),i),t[s]=a),a(r)}}class Oq{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=dr.create("formatter"),this.options=t,this.formats={number:Mi((n,r)=>{const o=new Intl.NumberFormat(n,{...r});return i=>o.format(i)}),currency:Mi((n,r)=>{const o=new Intl.NumberFormat(n,{...r,style:"currency"});return i=>o.format(i)}),datetime:Mi((n,r)=>{const o=new Intl.DateTimeFormat(n,{...r});return i=>o.format(i)}),relativetime:Mi((n,r)=>{const o=new Intl.RelativeTimeFormat(n,{...r});return i=>o.format(i,r.range||"day")}),list:Mi((n,r)=>{const o=new Intl.ListFormat(n,{...r});return i=>o.format(i)})},this.init(t)}init(t){const r=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=Mi(n)}format(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return n.split(this.formatSeparator).reduce((a,l)=>{const{formatName:u,formatOptions:c}=Iq(l);if(this.formats[u]){let f=a;try{const d=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{},h=d.locale||d.lng||o.locale||o.lng||r;f=this.formats[u](a,h,{...c,...o,...d})}catch(d){this.logger.warn(d)}return f}else this.logger.warn(`there was no format function for ${u}`);return a},t)}}function Aq(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}class Nq extends sp{constructor(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=o,this.logger=dr.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=o.maxParallelReads||10,this.readingCalls=0,this.maxRetries=o.maxRetries>=0?o.maxRetries:5,this.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(r,o.backend,o)}queueLoad(t,n,r,o){const i={},s={},a={},l={};return t.forEach(u=>{let c=!0;n.forEach(f=>{const d=`${u}|${f}`;!r.reload&&this.store.hasResourceBundle(u,f)?this.state[d]=2:this.state[d]<0||(this.state[d]===1?s[d]===void 0&&(s[d]=!0):(this.state[d]=1,c=!1,s[d]===void 0&&(s[d]=!0),i[d]===void 0&&(i[d]=!0),l[f]===void 0&&(l[f]=!0)))}),c||(a[u]=!0)}),(Object.keys(i).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(i),pending:Object.keys(s),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(l)}}loaded(t,n,r){const o=t.split("|"),i=o[0],s=o[1];n&&this.emit("failedLoading",i,s,n),r&&this.store.addResourceBundle(i,s,r,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2;const a={};this.queue.forEach(l=>{yq(l.loaded,[i],s),Aq(l,t),n&&l.errors.push(n),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(u=>{a[u]||(a[u]={});const c=l.loaded[u];c.length&&c.forEach(f=>{a[u][f]===void 0&&(a[u][f]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(l=>!l.done)}read(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,s=arguments.length>5?arguments[5]:void 0;if(!t.length)return s(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:o,wait:i,callback:s});return}this.readingCalls++;const a=(u,c)=>{if(this.readingCalls--,this.waitingReads.length>0){const f=this.waitingReads.shift();this.read(f.lng,f.ns,f.fcName,f.tried,f.wait,f.callback)}if(u&&c&&o{this.read.call(this,t,n,r,o+1,i*2,s)},i);return}s(u,c)},l=this.backend[r].bind(this.backend);if(l.length===2){try{const u=l(t,n);u&&typeof u.then=="function"?u.then(c=>a(null,c)).catch(a):a(null,u)}catch(u){a(u)}return}return l(t,n,a)}prepareLoading(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();typeof t=="string"&&(t=this.languageUtils.toResolveHierarchy(t)),typeof n=="string"&&(n=[n]);const i=this.queueLoad(t,n,r,o);if(!i.toLoad.length)return i.pending.length||o(),null;i.toLoad.forEach(s=>{this.loadOne(s)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=t.split("|"),o=r[0],i=r[1];this.read(o,i,"read",void 0,void 0,(s,a)=>{s&&this.logger.warn(`${n}loading namespace ${i} for language ${o} failed`,s),!s&&a&&this.logger.log(`${n}loaded namespace ${i} for language ${o}`,a),this.loaded(t,s,a)})}saveMissing(t,n,r,o,i){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},a=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if(this.backend&&this.backend.create){const l={...s,isUpdate:i},u=this.backend.create.bind(this.backend);if(u.length<6)try{let c;u.length===5?c=u(t,n,r,o,l):c=u(t,n,r,o),c&&typeof c.then=="function"?c.then(f=>a(null,f)).catch(a):a(null,c)}catch(c){a(c)}else u(t,n,r,o,a,l)}!t||!t[0]||this.store.addResource(t[0],n,r,o)}}}function gw(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){let n={};if(typeof t[1]=="object"&&(n=t[1]),typeof t[1]=="string"&&(n.defaultValue=t[1]),typeof t[2]=="string"&&(n.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){const r=t[3]||t[2];Object.keys(r).forEach(o=>{n[o]=r[o]})}return n},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function mw(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function Qu(){}function Lq(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})}class zl extends sp{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=mw(t),this.services={},this.logger=dr,this.modules={external:[]},Lq(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(r=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(typeof n.ns=="string"?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const o=gw();this.options={...o,...this.options,...mw(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...o.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);function i(c){return c?typeof c=="function"?new c:c:null}if(!this.options.isClone){this.modules.logger?dr.init(i(this.modules.logger),this.options):dr.init(null,this.options);let c;this.modules.formatter?c=this.modules.formatter:typeof Intl<"u"&&(c=Oq);const f=new fw(this.options);this.store=new cw(this.options.resources,this.options);const d=this.services;d.logger=dr,d.resourceStore=this.store,d.languageUtils=f,d.pluralResolver=new Eq(f,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),c&&(!this.options.interpolation.format||this.options.interpolation.format===o.interpolation.format)&&(d.formatter=i(c),d.formatter.init(d,this.options),this.options.interpolation.format=d.formatter.format.bind(d.formatter)),d.interpolator=new _q(this.options),d.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},d.backendConnector=new Nq(i(this.modules.backend),d.resourceStore,d,this.options),d.backendConnector.on("*",function(h){for(var p=arguments.length,y=new Array(p>1?p-1:0),x=1;x1?p-1:0),x=1;x{h.init&&h.init(this)})}if(this.format=this.options.interpolation.format,r||(r=Qu),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const c=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);c.length>0&&c[0]!=="dev"&&(this.options.lng=c[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(c=>{this[c]=function(){return t.store[c](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(c=>{this[c]=function(){return t.store[c](...arguments),t}});const l=ya(),u=()=>{const c=(f,d)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),l.resolve(d),r(f,d)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return c(null,this.t.bind(this));this.changeLanguage(this.options.lng,c)};return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),l}loadResources(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Qu;const o=typeof t=="string"?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(o&&o.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const i=[],s=a=>{if(!a||a==="cimode")return;this.services.languageUtils.toResolveHierarchy(a).forEach(u=>{u!=="cimode"&&i.indexOf(u)<0&&i.push(u)})};o?s(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(l=>s(l)),this.options.preload&&this.options.preload.forEach(a=>s(a)),this.services.backendConnector.load(i,this.options.ns,a=>{!a&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(a)})}else r(null)}reloadResources(t,n,r){const o=ya();return t||(t=this.languages),n||(n=this.options.ns),r||(r=Qu),this.services.backendConnector.reload(t,n,i=>{o.resolve(),r(i)}),o}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&y$.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let n=0;n-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}changeLanguage(t,n){var r=this;this.isLanguageChangingTo=t;const o=ya();this.emit("languageChanging",t);const i=l=>{this.language=l,this.languages=this.services.languageUtils.toResolveHierarchy(l),this.resolvedLanguage=void 0,this.setResolvedLanguage(l)},s=(l,u)=>{u?(i(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,o.resolve(function(){return r.t(...arguments)}),n&&n(l,function(){return r.t(...arguments)})},a=l=>{!t&&!l&&this.services.languageDetector&&(l=[]);const u=typeof l=="string"?l:this.services.languageUtils.getBestMatchFromCodes(l);u&&(this.language||i(u),this.translator.language||this.translator.changeLanguage(u),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(u)),this.loadResources(u,c=>{s(c,u)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(t),o}getFixedT(t,n,r){var o=this;const i=function(s,a){let l;if(typeof a!="object"){for(var u=arguments.length,c=new Array(u>2?u-2:0),f=2;f`${l.keyPrefix}${d}${p}`):h=l.keyPrefix?`${l.keyPrefix}${d}${s}`:s,o.t(h,l)};return typeof t=="string"?i.lng=t:i.lngs=t,i.ns=n,i.keyPrefix=r,i}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],o=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const s=(a,l)=>{const u=this.services.backendConnector.state[`${a}|${l}`];return u===-1||u===2};if(n.precheck){const a=n.precheck(this,s);if(a!==void 0)return a}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||s(r,t)&&(!o||s(i,t)))}loadNamespaces(t,n){const r=ya();return this.options.ns?(typeof t=="string"&&(t=[t]),t.forEach(o=>{this.options.ns.indexOf(o)<0&&this.options.ns.push(o)}),this.loadResources(o=>{r.resolve(),n&&n(o)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=ya();typeof t=="string"&&(t=[t]);const o=this.options.preload||[],i=t.filter(s=>o.indexOf(s)<0);return i.length?(this.options.preload=o.concat(i),this.loadResources(s=>{r.resolve(),n&&n(s)}),r):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=this.services&&this.services.languageUtils||new fw(gw());return n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new zl(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Qu;const r=t.forkResourceStore;r&&delete t.forkResourceStore;const o={...this.options,...t,isClone:!0},i=new zl(o);return(t.debug!==void 0||t.prefix!==void 0)&&(i.logger=i.logger.clone(t)),["store","services","language"].forEach(a=>{i[a]=this[a]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},r&&(i.store=new cw(this.store.data,o),i.services.resourceStore=i.store),i.translator=new Cd(i.services,o),i.translator.on("*",function(a){for(var l=arguments.length,u=new Array(l>1?l-1:0),c=1;c0){var a=o.maxAge-0;if(Number.isNaN(a))throw new Error("maxAge should be a Number");s+="; Max-Age=".concat(Math.floor(a))}if(o.domain){if(!vw.test(o.domain))throw new TypeError("option domain is invalid");s+="; Domain=".concat(o.domain)}if(o.path){if(!vw.test(o.path))throw new TypeError("option path is invalid");s+="; Path=".concat(o.path)}if(o.expires){if(typeof o.expires.toUTCString!="function")throw new TypeError("option expires is invalid");s+="; Expires=".concat(o.expires.toUTCString())}if(o.httpOnly&&(s+="; HttpOnly"),o.secure&&(s+="; Secure"),o.sameSite){var l=typeof o.sameSite=="string"?o.sameSite.toLowerCase():o.sameSite;switch(l){case!0:s+="; SameSite=Strict";break;case"lax":s+="; SameSite=Lax";break;case"strict":s+="; SameSite=Strict";break;case"none":s+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return s},xw={create:function(t,n,r,o){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};r&&(i.expires=new Date,i.expires.setTime(i.expires.getTime()+r*60*1e3)),o&&(i.domain=o),document.cookie=Uq(t,encodeURIComponent(n),i)},read:function(t){for(var n="".concat(t,"="),r=document.cookie.split(";"),o=0;o-1&&(r=window.location.hash.substring(window.location.hash.indexOf("?")));for(var o=r.substring(1),i=o.split("&"),s=0;s0){var l=i[s].substring(0,a);l===t.lookupQuerystring&&(n=i[s].substring(a+1))}}}return n}},va=null,bw=function(){if(va!==null)return va;try{va=window!=="undefined"&&window.localStorage!==null;var t="i18next.translate.boo";window.localStorage.setItem(t,"foo"),window.localStorage.removeItem(t)}catch{va=!1}return va},Hq={name:"localStorage",lookup:function(t){var n;if(t.lookupLocalStorage&&bw()){var r=window.localStorage.getItem(t.lookupLocalStorage);r&&(n=r)}return n},cacheUserLanguage:function(t,n){n.lookupLocalStorage&&bw()&&window.localStorage.setItem(n.lookupLocalStorage,t)}},xa=null,ww=function(){if(xa!==null)return xa;try{xa=window!=="undefined"&&window.sessionStorage!==null;var t="i18next.translate.boo";window.sessionStorage.setItem(t,"foo"),window.sessionStorage.removeItem(t)}catch{xa=!1}return xa},Gq={name:"sessionStorage",lookup:function(t){var n;if(t.lookupSessionStorage&&ww()){var r=window.sessionStorage.getItem(t.lookupSessionStorage);r&&(n=r)}return n},cacheUserLanguage:function(t,n){n.lookupSessionStorage&&ww()&&window.sessionStorage.setItem(n.lookupSessionStorage,t)}},Kq={name:"navigator",lookup:function(t){var n=[];if(typeof navigator<"u"){if(navigator.languages)for(var r=0;r0?n:void 0}},Yq={name:"htmlTag",lookup:function(t){var n,r=t.htmlTag||(typeof document<"u"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(n=r.getAttribute("lang")),n}},qq={name:"path",lookup:function(t){var n;if(typeof window<"u"){var r=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(r instanceof Array)if(typeof t.lookupFromPathIndex=="number"){if(typeof r[t.lookupFromPathIndex]!="string")return;n=r[t.lookupFromPathIndex].replace("/","")}else n=r[0].replace("/","")}return n}},Xq={name:"subdomain",lookup:function(t){var n=typeof t.lookupFromSubdomainIndex=="number"?t.lookupFromSubdomainIndex+1:1,r=typeof window<"u"&&window.location&&window.location.hostname&&window.location.hostname.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(r)return r[n]}};function Qq(){return{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:function(t){return t}}}var x$=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};jq(this,e),this.type="languageDetector",this.detectors={},this.init(t,n)}return Dq(e,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=n||{languageUtils:{}},this.options=Bq(r,this.options||{},Qq()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=function(i){return i.replace("-","_")}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=o,this.addDetector(Vq),this.addDetector(Wq),this.addDetector(Hq),this.addDetector(Gq),this.addDetector(Kq),this.addDetector(Yq),this.addDetector(qq),this.addDetector(Xq)}},{key:"addDetector",value:function(n){return this.detectors[n.name]=n,this}},{key:"detect",value:function(n){var r=this;n||(n=this.options.order);var o=[];return n.forEach(function(i){if(r.detectors[i]){var s=r.detectors[i].lookup(r.options);s&&typeof s=="string"&&(s=[s]),s&&(o=o.concat(s))}}),o=o.map(function(i){return r.options.convertDetectedLanguage(i)}),this.services.languageUtils.getBestMatchFromCodes?o:o.length>0?o[0]:null}},{key:"cacheUserLanguage",value:function(n,r){var o=this;r||(r=this.options.caches),r&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(n)>-1||r.forEach(function(i){o.detectors[i]&&o.detectors[i].cacheUserLanguage(n,o.options)}))}}]),e}();x$.type="languageDetector";const b$={};h$.forEach(({code:e,file:t})=>{b$[e]={translation:t}});St.use(x$).use(K6).init({resources:b$,fallbackLng:"en",interpolation:{escapeValue:!1}});xh.createRoot(document.getElementById("root")).render(C.jsxs(ct.StrictMode,{children:[C.jsx(VL,{}),C.jsx(Q6,{i18n:St,children:C.jsx(zz,{store:am,children:C.jsx(lq,{})})})]})); +`));const y=Gu(t,i,s),x=Gu(o,i,s),g=Gu(n,i,s),v=Gu(r,i,s);return C.jsxs(w.Fragment,{children:[h&&C.jsx(Ab,k({},y,{position:"top",axisId:h})),d&&C.jsx(Ab,k({},x,{position:"bottom",axisId:d})),f&&C.jsx(Lb,k({},g,{position:"left",axisId:f})),p&&C.jsx(Lb,k({},v,{position:"right",axisId:p}))]})}function dV(e){return ce("MuiChartsGrid",e)}const fV=de("MuiChartsGrid",["root","line","horizontalLine","verticalLine"]),pV=["vertical","horizontal"],hV=G("g",{name:"MuiChartsGrid",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({[`& .${fV.line}`]:{stroke:(e.vars||e).palette.divider,shapeRendering:"crispEdges",strokeWidth:1}})),gV=({classes:e})=>le({root:["root"],verticalLine:["line","verticalLine"],horizontalLine:["line","horizontalLine"]},dV,e);function mV(e){const{vertical:t,horizontal:n}=e,r=W(e,pV),{xAxis:o,xAxisIds:i,yAxis:s,yAxisIds:a}=w.useContext(Bt),l=gV(e),u=a[0],c=i[0],{scale:f,tickNumber:d,tickInterval:h}=o[c],{scale:p,tickNumber:y,tickInterval:x}=s[u],g=hd({scale:f,tickNumber:d,tickInterval:h}),v=hd({scale:p,tickNumber:y,tickInterval:x});return C.jsxs(hV,k({},r,{className:l.root,children:[t&&g.map(({formattedValue:m,offset:b})=>C.jsx("line",{y1:p.range()[0],y2:p.range()[1],x1:b,x2:b,className:l.verticalLine},`vertical-${m}`)),n&&v.map(({formattedValue:m,offset:b})=>C.jsx("line",{y1:b,y2:b,x1:f.range()[0],x2:f.range()[1],className:l.horizontalLine},`horizontal-${m}`))]}))}const rr=w.createContext({item:null,axis:{x:null,y:null},useVoronoiInteraction:!1,dispatch:()=>null}),yV=(e,t)=>{switch(t.type){case"enterItem":return k({},e,{item:t.data});case"exitChart":return e.item===null&&e.axis.x===null&&e.axis.y===null?e:k({},e,{axis:{x:null,y:null},item:null});case"updateVoronoiUsage":return k({},e,{useVoronoiInteraction:t.useVoronoiInteraction});case"leaveItem":return e.item===null||Object.keys(t.data).some(n=>t.data[n]!==e.item[n])?e:k({},e,{item:null});case"updateAxis":return t.data.x===e.axis.x&&t.data.y===e.axis.y?e:k({},e,{axis:t.data});default:return e}};function vV(e){const{children:t}=e,[n,r]=w.useReducer(yV,{item:null,axis:{x:null,y:null},useVoronoiInteraction:!1}),o=w.useMemo(()=>k({},n,{dispatch:r}),[n]);return C.jsx(rr.Provider,{value:o,children:t})}function xV(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;return{getBoundingClientRect:()=>({width:0,height:0,x:t,y:n,top:n,right:t,bottom:n,left:t,toJSON:()=>JSON.stringify({width:0,height:0,x:t,y:n,top:n,right:t,bottom:n,left:t})})}}function bV(){const e=w.useContext(Ff),[t,n]=w.useState(null);return w.useEffect(()=>{const r=e.current;if(r===null)return()=>{};const o=()=>{n(null)},i=s=>{n({x:s.clientX,y:s.clientY})};return r.addEventListener("mouseout",o),r.addEventListener("mousemove",i),()=>{r.removeEventListener("mouseout",o),r.removeEventListener("mousemove",i)}},[e]),t}function wV(e,t){if(e==="item")return t!==null;const n=t.x!==null,r=t.y!==null;return n||r}function vR(e){return["bar","line","scatter"].includes(e)}function SV(e){return vR(e.type)}function CV(e){return e instanceof Date?e.toUTCString():e.toLocaleString()}function kV(e){return ce("MuiChartsTooltip",e)}const jb=de("MuiChartsTooltip",["root","table","row","cell","mark","markCell","labelCell","valueCell"]),xR=G("div",{name:"MuiChartsTooltip",slot:"Container"})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),border:`1px solid ${(e.vars||e).palette.divider}`,borderRadius:e.shape.borderRadius})),bR=G("table",{name:"MuiChartsTooltip",slot:"Table"})(({theme:e})=>({borderSpacing:0,"& thead td":{borderBottom:`solid ${(e.vars||e).palette.divider} 1px`}})),Kg=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)}})),Yo=G("td",{name:"MuiChartsTooltip",slot:"Cell"})(({theme:e})=>({verticalAlign:"middle",color:(e.vars||e).palette.text.secondary,[`&.${jb.labelCell}`]:{paddingLeft:e.spacing(1)},[`&.${jb.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)}})),wR=G(EI,{name:"MuiChartsTooltip",slot:"Mark"})(({theme:e,ownerState:t})=>({width:e.spacing(1),height:e.spacing(1),borderRadius:"50%",backgroundColor:t.color,borderColor:(e.vars||e).palette.background.paper,border:`solid ${(e.vars||e).palette.background.paper} ${e.spacing(.25)}`,boxSizing:"content-box"}));function PV(e){var u;const{series:t,itemData:n,sx:r,classes:o}=e;if(n.dataIndex===void 0||!t.data[n.dataIndex])return null;const{displayedLabel:i,color:s}=t.type==="pie"?{color:t.data[n.dataIndex].color,displayedLabel:t.data[n.dataIndex].label}:{color:t.color,displayedLabel:t.label},a=t.data[n.dataIndex],l=(u=t.valueFormatter)==null?void 0:u.call(t,a);return C.jsx(xR,{sx:r,className:o.root,children:C.jsx(bR,{className:o.table,children:C.jsx("tbody",{children:C.jsxs(Kg,{className:o.row,children:[C.jsx(Yo,{className:J(o.markCell,o.cell),children:C.jsx(wR,{ownerState:{color:s},className:o.mark})}),C.jsx(Yo,{className:J(o.labelCell,o.cell),children:i}),C.jsx(Yo,{className:J(o.valueCell,o.cell),children:l})]})})})})}function RV(e){const{content:t,itemData:n,sx:r,classes:o,contentProps:i}=e,s=w.useContext(nr)[n.type].series[n.seriesId],a=t??PV,l=wt({elementType:a,externalSlotProps:i,additionalProps:{itemData:n,series:s,sx:r,classes:o},ownerState:{}});return C.jsx(a,k({},l))}function $V(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"?CV(l):l.toLocaleString());return C.jsx(xR,{sx:i,className:s.root,children:C.jsxs(bR,{className:s.table,children:[o!=null&&!n.hideTooltip&&C.jsx("thead",{children:C.jsx(Kg,{children:C.jsx(Yo,{colSpan:3,children:C.jsx(Pe,{children:a(o,{location:"tooltip"})})})})}),C.jsx("tbody",{children:t.filter(SV).map(({color:l,id:u,label:c,valueFormatter:f,data:d})=>{const h=f(d[r]??null);return h==null?null:C.jsxs(Kg,{className:s.row,children:[C.jsx(Yo,{className:J(s.markCell,s.cell),children:C.jsx(wR,{ownerState:{color:l},boxShadow:1,className:s.mark})}),C.jsx(Yo,{className:J(s.labelCell,s.cell),children:c?C.jsx(Pe,{children:c}):null}),C.jsx(Yo,{className:J(s.valueCell,s.cell),children:C.jsx(Pe,{children:h})})]},u)})})]})})}function TV(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:f,yAxis:d}=w.useContext(Bt),h=w.useContext(nr),p=s?u[0]:f[0],y=w.useMemo(()=>{const m=[];return Object.keys(h).filter(vR).forEach(b=>{h[b].seriesOrder.forEach(S=>{const P=h[b].series[S],R=s?P.xAxisKey:P.yAxisKey;(R===void 0||R===p)&&m.push(h[b].series[S])})}),m},[p,s,h]),x=w.useMemo(()=>s?c[p]:d[p],[p,s,c,d]),g=t??$V,v=wt({elementType:g,externalSlotProps:n,additionalProps:{axisData:r,series:y,axis:x,dataIndex:a,axisValue:l,sx:o,classes:i},ownerState:{}});return C.jsx(g,k({},v))}const MV=e=>{const{classes:t}=e;return le({root:["root"],table:["table"],row:["row"],cell:["cell"],mark:["mark"],markCell:["markCell"],labelCell:["labelCell"],valueCell:["valueCell"]},kV,t)},EV=G(uk,{name:"MuiChartsTooltip",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({pointerEvents:"none",zIndex:e.zIndex.modal}));function SR(e){const t=ye({props:e,name:"MuiChartsTooltip"}),{trigger:n="axis",itemContent:r,axisContent:o,slots:i,slotProps:s}=t,a=bV(),{item:l,axis:u}=w.useContext(rr),c=n==="item"?l:u,f=wV(n,c),d=a!==null&&f,h=MV({classes:t.classes}),p=(i==null?void 0:i.popper)??EV,y=wt({elementType:p,externalSlotProps:s==null?void 0:s.popper,additionalProps:{open:d,placement:"right-start",anchorEl:xV(a)},ownerState:{}});return n==="none"?null:C.jsx(Z2,{children:d&&C.jsx(p,k({},y,{children:n==="item"?C.jsx(RV,{itemData:c,content:(i==null?void 0:i.itemContent)??r,contentProps:s==null?void 0:s.itemContent,sx:{mx:2},classes:h}):C.jsx(TV,{axisData:c,content:(i==null?void 0:i.axisContent)??o,contentProps:s==null?void 0:s.axisContent,sx:{mx:2},classes:h})}))})}const _V=e=>{const{seriesOrder:t,series:n}=e;return t.map(o=>({color:n[o].color,label:n[o].label,id:o})).filter(o=>o.label!==void 0)},IV=_V,OV=e=>{const{seriesOrder:t,series:n}=e;return t.map(o=>({color:n[o].color,label:n[o].label,id:o})).filter(o=>o.label!==void 0)},AV=OV,NV=e=>{const{seriesOrder:t,series:n}=e;return t.map(o=>({color:n[o].color,label:n[o].label,id:o})).filter(o=>o.label!==void 0)},LV=NV,jV=e=>{const{seriesOrder:t,series:n}=e;return t.flatMap(r=>n[r].data.map(o=>({color:o.color,label:o.label,id:o.id})).filter(o=>o.label!==void 0))},DV=jV,FV={bar:IV,scatter:AV,line:LV,pie:DV};function zV(e){return Object.keys(e).flatMap(t=>FV[t](e[t]))}function BV(e){return ce("MuiChartsLegend",e)}de("MuiChartsLegend",["root","series","mark","label","column","row"]);const UV=["rotate","dominantBaseline"],VV=["label"],WV=G("g",{name:"MuiChartsLegend",slot:"Root",overridesResolver:(e,t)=>t.root})({}),HV=e=>typeof e=="number"?{left:e,right:e,top:e,bottom:e}:k({left:0,right:0,top:0,bottom:0},e);function GV(e){const{hidden:t,position:n,direction:r,seriesToDisplay:o,drawingArea:i,classes:s,itemMarkWidth:a=20,itemMarkHeight:l=20,markGap:u=5,itemGap:c=10,padding:f=10,labelStyle:d}=e,h=_t(),p=h.direction==="rtl",y=w.useMemo(()=>k({},h.typography.subtitle1,{color:"inherit",dominantBaseline:"central",textAnchor:"start",fill:(h.vars||h).palette.text.primary,lineHeight:1},d),[d,h]),x=w.useMemo(()=>HV(f),[f]),g=w.useCallback((_,N={})=>{const I=W(N,UV),O=v0({style:I,needsComputation:!0,text:_}),L={innerWidth:a+u+Math.max(...O.map(A=>A.width)),innerHeight:Math.max(l,O.length*O[0].height)};return k({},L,{outerWidth:L.innerWidth+c,outerHeight:L.innerHeight+c})},[c,l,a,u]),v=i.left+i.width+i.right,m=i.top+i.height+i.bottom,b=v-x.left-x.right,S=m-x.top-x.bottom,[P,R,$]=w.useMemo(()=>{let _=0,N=0,I=0,O=0,L=0;const A=[0];return[o.map(E=>{let{label:D}=E,F=W(E,VV);const V=g(D,y),H=k({},F,{label:D,positionX:_,positionY:N,innerHeight:V.innerHeight,innerWidth:V.innerWidth,outerHeight:V.outerHeight,outerWidth:V.outerWidth,rowIndex:L});return r==="row"&&(_+V.innerWidth>b&&(_=0,N+=A[L],L+=1,A.length<=L&&A.push(0),H.positionX=_,H.positionY=N,H.rowIndex=L),I=Math.max(I,_+V.outerWidth),O=Math.max(O,N+V.outerHeight),A[L]=Math.max(A[L],V.outerHeight),_+=V.outerWidth),r==="column"&&(N+V.innerHeight>S&&(_=I+c,N=0,L=0,H.positionX=_,H.positionY=N,H.rowIndex=L),A.length<=L&&A.push(0),I=Math.max(I,_+V.outerWidth),O=Math.max(O,N+V.outerHeight),L+=1,N+=V.outerHeight),H}).map(E=>k({},E,{positionY:E.positionY+(r==="row"?A[E.rowIndex]/2:E.outerHeight/2)})),I,O]},[o,g,y,r,b,S,c]),M=w.useMemo(()=>{switch(n.horizontal){case"left":return x.left;case"right":return v-x.right-R;default:return(v-R)/2}},[n.horizontal,x.left,x.right,v,R]),T=w.useMemo(()=>{switch(n.vertical){case"top":return x.top;case"bottom":return m-x.bottom-$;default:return(m-$)/2}},[n.vertical,x.top,x.bottom,m,$]);return t?null:C.jsx(Z2,{children:C.jsx(WV,{className:s.root,children:P.map(({id:_,label:N,color:I,positionX:O,positionY:L})=>C.jsxs("g",{className:s.series,transform:`translate(${M+(p?R-O:O)} ${T+L})`,children:[C.jsx("rect",{className:s.mark,x:p?-a:0,y:-l/2,width:a,height:l,fill:I}),C.jsx(El,{style:y,text:N,x:(p?-1:1)*(a+u),y:0})]},_))})})}const KV=e=>{const{classes:t,direction:n}=e;return le({root:["root",n],mark:["mark"],label:["label"],series:["series"]},BV,t)},YV={position:{horizontal:"middle",vertical:"top"},direction:"row"};function CR(e){const t=ye({props:k({},YV,e),name:"MuiChartsLegend"}),{position:n,direction:r,hidden:o,slots:i,slotProps:s}=t,a=_t(),l=KV(k({},t,{theme:a})),u=w.useContext(tr),c=w.useContext(nr),f=zV(c),d=(i==null?void 0:i.legend)??GV,h=wt({elementType:d,externalSlotProps:s==null?void 0:s.legend,additionalProps:{position:n,direction:r,classes:l,drawingArea:u,series:c,hidden:o,seriesToDisplay:f},ownerState:{}});return C.jsx(d,k({},h))}function qV(e){return ce("MuiChartsAxisHighlight",e)}de("MuiChartsAxisHighlight",["root"]);const XV=()=>le({root:["root"]},qV),Ku=G("path",{name:"MuiChartsAxisHighlight",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e,theme:t})=>k({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 kR(e){const{x:t,y:n}=e,{xAxisIds:r,xAxis:o,yAxisIds:i,yAxis:s}=w.useContext(Bt),a=XV(),l=r[0],u=i[0],c=o[l].scale,f=s[u].scale,{axis:d}=w.useContext(rr),h=_s(c),p=_s(f);return C.jsxs(w.Fragment,{children:[t==="band"&&d.x!==null&&Ml(c)&&C.jsx(Ku,{d:`M ${c(d.x.value)-(c.step()-c.bandwidth())/2} ${f.range()[0]} l ${c.step()} 0 l 0 ${f.range()[1]-f.range()[0]} l ${-c.step()} 0 Z`,className:a.root,ownerState:{axisHighlight:"band"}}),n==="band"&&d.y!==null&&Ml(f)&&C.jsx(Ku,{d:`M ${c.range()[0]} ${f(d.y.value)-(f.step()-f.bandwidth())/2} l 0 ${f.step()} l ${c.range()[1]-c.range()[0]} 0 l 0 ${-f.step()} Z`,className:a.root,ownerState:{axisHighlight:"band"}}),t==="line"&&d.x!==null&&C.jsx(Ku,{d:`M ${h(d.x.value)} ${f.range()[0]} L ${h(d.x.value)} ${f.range()[1]}`,className:a.root,ownerState:{axisHighlight:"line"}}),n==="line"&&d.y!==null&&C.jsx(Ku,{d:`M ${c.range()[0]} ${p(d.y.value)} L ${c.range()[1]} ${p(d.y.value)}`,className:a.root,ownerState:{axisHighlight:"line"}})]})}function QV(e){return"circle cross diamond square star triangle wye".split(/ /).indexOf(e)||0}function ZV(e,t){const n=e.createSVGPoint();return n.x=t.clientX,n.y=t.clientY,n.matrixTransform(e.getScreenCTM().inverse())}function Sr(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-Charts: Received an unknown value "${e}". It should be a number, or a string with a percentage value.`)}function x0(e){return e.replace(" ","_")}function JV(e){const{onAxisClick:t}=e,n=w.useContext(Ff),r=w.useContext(nr),{axis:o}=w.useContext(rr),{xAxisIds:i,xAxis:s,yAxisIds:a,yAxis:l}=w.useContext(Bt);return w.useEffect(()=>{const u=n.current;if(u===null||!t)return()=>{};const c=f=>{var g;f.preventDefault();const d=(o.x&&o.x.index)!==void 0,h=d?i[0]:a[0],p=d?o.x&&o.x.index:o.y&&o.y.index;if(p==null)return;const y={};Object.keys(r).filter(v=>["bar","line"].includes(v)).forEach(v=>{var m;(m=r[v])==null||m.seriesOrder.forEach(b=>{const S=r[v].series[b],P=d?S.xAxisKey:S.yAxisKey;(P===void 0||P===h)&&(y[b]=S.data[p])})});const x=(g=(d?s:l)[h].data)==null?void 0:g[p];t(f,{dataIndex:p,axisValue:x,seriesValues:y})};return u.addEventListener("click",c),()=>{u.removeEventListener("click",c)}},[o.x,o.y,t,r,n,s,i,l,a]),C.jsx(w.Fragment,{})}var eW=Object.defineProperty,tW=(e,t)=>{for(var n in t)eW(e,n,{get:t[n],enumerable:!0})},jn={};tW(jn,{assign:()=>oW,colors:()=>xo,createStringInterpolator:()=>R0,skipAnimation:()=>_R,to:()=>ER,willAdvance:()=>$0});var b0=au(),be=e=>su(e,b0),w0=au();be.write=e=>su(e,w0);var Kf=au();be.onStart=e=>su(e,Kf);var S0=au();be.onFrame=e=>su(e,S0);var C0=au();be.onFinish=e=>su(e,C0);var as=[];be.setTimeout=(e,t)=>{const n=be.now()+t,r=()=>{const i=as.findIndex(s=>s.cancel==r);~i&&as.splice(i,1),ao-=~i?1:0},o={time:n,handler:e,cancel:r};return as.splice(PR(n),0,o),ao+=1,RR(),o};var PR=e=>~(~as.findIndex(t=>t.time>e)||~as.length);be.cancel=e=>{Kf.delete(e),S0.delete(e),C0.delete(e),b0.delete(e),w0.delete(e)};be.sync=e=>{Yg=!0,be.batchedUpdates(e),Yg=!1};be.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...o){t=o,be.onStart(n)}return r.handler=e,r.cancel=()=>{Kf.delete(n),t=null},r};var k0=typeof window<"u"?window.requestAnimationFrame:()=>{};be.use=e=>k0=e;be.now=typeof performance<"u"?()=>performance.now():Date.now;be.batchedUpdates=e=>e();be.catch=console.error;be.frameLoop="always";be.advance=()=>{be.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):TR()};var so=-1,ao=0,Yg=!1;function su(e,t){Yg?(t.delete(e),e(0)):(t.add(e),RR())}function RR(){so<0&&(so=0,be.frameLoop!=="demand"&&k0($R))}function nW(){so=-1}function $R(){~so&&(k0($R),be.batchedUpdates(TR))}function TR(){const e=so;so=be.now();const t=PR(so);if(t&&(MR(as.splice(0,t),n=>n.handler()),ao-=t),!ao){nW();return}Kf.flush(),b0.flush(e?Math.min(64,so-e):16.667),S0.flush(),w0.flush(),C0.flush()}function au(){let e=new Set,t=e;return{add(n){ao+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return ao-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,ao-=t.size,MR(t,r=>r(n)&&e.add(r)),ao+=e.size,t=e)}}}function MR(e,t){e.forEach(n=>{try{t(n)}catch(r){be.catch(r)}})}function qg(){}var rW=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Y={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 Pr(e,t){if(Y.arr(e)){if(!Y.arr(t)||e.length!==t.length)return!1;for(let n=0;ne.forEach(t);function vr(e,t,n){if(Y.arr(e)){for(let r=0;rY.und(e)?[]:Y.arr(e)?e:[e];function Wa(e,t){if(e.size){const n=Array.from(e);e.clear(),xe(n,t)}}var Ta=(e,...t)=>Wa(e,n=>n(...t)),P0=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),R0,ER,xo=null,_R=!1,$0=qg,oW=e=>{e.to&&(ER=e.to),e.now&&(be.now=e.now),e.colors!==void 0&&(xo=e.colors),e.skipAnimation!=null&&(_R=e.skipAnimation),e.createStringInterpolator&&(R0=e.createStringInterpolator),e.requestAnimationFrame&&be.use(e.requestAnimationFrame),e.batchedUpdates&&(be.batchedUpdates=e.batchedUpdates),e.willAdvance&&($0=e.willAdvance),e.frameLoop&&(be.frameLoop=e.frameLoop)},Ha=new Set,$n=[],fh=[],gd=0,Yf={get idle(){return!Ha.size&&!$n.length},start(e){gd>e.priority?(Ha.add(e),be.onStart(iW)):(IR(e),be(Xg))},advance:Xg,sort(e){if(gd)be.onFrame(()=>Yf.sort(e));else{const t=$n.indexOf(e);~t&&($n.splice(t,1),OR(e))}},clear(){$n=[],Ha.clear()}};function iW(){Ha.forEach(IR),Ha.clear(),be(Xg)}function IR(e){$n.includes(e)||OR(e)}function OR(e){$n.splice(sW($n,t=>t.priority>e.priority),0,e)}function Xg(e){const t=fh;for(let n=0;n<$n.length;n++){const r=$n[n];gd=r.priority,r.idle||($0(r),r.advance(e),r.idle||t.push(r))}return gd=0,fh=$n,fh.length=0,$n=t,$n.length>0}function sW(e,t){const n=e.findIndex(t);return n<0?e.length:n}var aW=(e,t,n)=>Math.min(Math.max(n,e),t),lW={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},Qn="[-+]?\\d*\\.?\\d+",md=Qn+"%";function qf(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var uW=new RegExp("rgb"+qf(Qn,Qn,Qn)),cW=new RegExp("rgba"+qf(Qn,Qn,Qn,Qn)),dW=new RegExp("hsl"+qf(Qn,md,md)),fW=new RegExp("hsla"+qf(Qn,md,md,Qn)),pW=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hW=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,gW=/^#([0-9a-fA-F]{6})$/,mW=/^#([0-9a-fA-F]{8})$/;function yW(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=gW.exec(e))?parseInt(t[1]+"ff",16)>>>0:xo&&xo[e]!==void 0?xo[e]:(t=uW.exec(e))?(Ri(t[1])<<24|Ri(t[2])<<16|Ri(t[3])<<8|255)>>>0:(t=cW.exec(e))?(Ri(t[1])<<24|Ri(t[2])<<16|Ri(t[3])<<8|zb(t[4]))>>>0:(t=pW.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=mW.exec(e))?parseInt(t[1],16)>>>0:(t=hW.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=dW.exec(e))?(Db(Fb(t[1]),Yu(t[2]),Yu(t[3]))|255)>>>0:(t=fW.exec(e))?(Db(Fb(t[1]),Yu(t[2]),Yu(t[3]))|zb(t[4]))>>>0:null}function ph(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 Db(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,i=ph(o,r,e+1/3),s=ph(o,r,e),a=ph(o,r,e-1/3);return Math.round(i*255)<<24|Math.round(s*255)<<16|Math.round(a*255)<<8}function Ri(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function Fb(e){return(parseFloat(e)%360+360)%360/360}function zb(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function Yu(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function Bb(e){let t=yW(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 _l=(e,t,n)=>{if(Y.fun(e))return e;if(Y.arr(e))return _l({range:e,output:t,extrapolate:n});if(Y.str(e.output[0]))return R0(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=xW(u,i);return vW(u,i[c],i[c+1],o[c],o[c+1],l,s,a,r.map)}};function vW(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 xW(e,t){for(var n=1;n=e);++n);return n-1}var bW=(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 aW(0,1,o/e)},yd=1.70158,qu=yd*1.525,Ub=yd+1,Vb=2*Math.PI/3,Wb=2*Math.PI/4.5,Xu=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,wW={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=>Ub*e*e*e-yd*e*e,easeOutBack:e=>1+Ub*Math.pow(e-1,3)+yd*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*((qu+1)*2*e-qu)/2:(Math.pow(2*e-2,2)*((qu+1)*(e*2-2)+qu)+2)/2,easeInElastic:e=>e===0?0:e===1?1:-Math.pow(2,10*e-10)*Math.sin((e*10-10.75)*Vb),easeOutElastic:e=>e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e*10-.75)*Vb)+1,easeInOutElastic:e=>e===0?0:e===1?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*Wb))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*Wb)/2+1,easeInBounce:e=>1-Xu(1-e),easeOutBounce:Xu,easeInOutBounce:e=>e<.5?(1-Xu(1-2*e))/2:(1+Xu(2*e-1))/2,steps:bW},Il=Symbol.for("FluidValue.get"),Is=Symbol.for("FluidValue.observers"),Rn=e=>!!(e&&e[Il]),Ht=e=>e&&e[Il]?e[Il]():e,Hb=e=>e[Is]||null;function SW(e,t){e.eventObserved?e.eventObserved(t):e(t)}function Ol(e,t){const n=e[Is];n&&n.forEach(r=>{SW(r,t)})}var AR=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");CW(this,e)}},CW=(e,t)=>NR(e,Il,t);function Ws(e,t){if(e[Il]){let n=e[Is];n||NR(e,Is,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function Al(e,t){const n=e[Is];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[Is]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var NR=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),vc=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,kW=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Gb=new RegExp(`(${vc.source})(%|[a-z]+)`,"i"),PW=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Xf=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,LR=e=>{const[t,n]=RW(e);if(!t||P0())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&&Xf.test(n))return LR(n);if(n)return n}return e},RW=e=>{const t=Xf.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},hh,$W=(e,t,n,r,o)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${o})`,jR=e=>{hh||(hh=xo?new RegExp(`(${Object.keys(xo).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(i=>Ht(i).replace(Xf,LR).replace(kW,Bb).replace(hh,Bb)),n=t.map(i=>i.match(vc).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=>_l({...e,output:i}));return i=>{var l;const s=!Gb.test(t[0])&&((l=t.find(u=>Gb.test(u)))==null?void 0:l.replace(vc,""));let a=0;return t[0].replace(vc,()=>`${o[a++](i)}${s||""}`).replace(PW,$W)}},T0="react-spring: ",DR=e=>{const t=e;let n=!1;if(typeof t!="function")throw new TypeError(`${T0}once requires a function parameter`);return(...r)=>{n||(t(...r),n=!0)}},TW=DR(console.warn);function MW(){TW(`${T0}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var EW=DR(console.warn);function _W(){EW(`${T0}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 Qf(e){return Y.str(e)&&(e[0]=="#"||/\d/.test(e)||!P0()&&Xf.test(e)||e in(xo||{}))}var lo=P0()?w.useEffect:w.useLayoutEffect,IW=()=>{const e=w.useRef(!1);return lo(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function M0(){const e=w.useState()[1],t=IW();return()=>{t.current&&e(Math.random())}}function OW(e,t){const[n]=w.useState(()=>({inputs:t,result:e()})),r=w.useRef(),o=r.current;let i=o;return i?t&&i.inputs&&AW(t,i.inputs)||(i={inputs:t,result:e()}):i=n,w.useEffect(()=>{r.current=i,o==n&&(n.inputs=n.result=void 0)},[i]),i.result}function AW(e,t){if(e.length!==t.length)return!1;for(let n=0;nw.useEffect(e,NW),NW=[];function Qg(e){const t=w.useRef();return w.useEffect(()=>{t.current=e}),t.current}var Nl=Symbol.for("Animated:node"),LW=e=>!!e&&e[Nl]===e,sr=e=>e&&e[Nl],_0=(e,t)=>rW(e,Nl,t),Zf=e=>e&&e[Nl]&&e[Nl].getPayload(),FR=class{constructor(){_0(this,this)}getPayload(){return this.payload||[]}},lu=class extends FR{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,Y.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new lu(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return Y.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,Y.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},Ll=class extends lu{constructor(e){super(0),this._string=null,this._toString=_l({output:[e,e]})}static create(e){return new Ll(e)}getValue(){const e=this._string;return e??(this._string=this._toString(this._value))}setValue(e){if(Y.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=_l({output:[this.getValue(),e]})),this._value=0,super.reset()}},vd={dependencies:null},Jf=class extends FR{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return vr(this.source,(n,r)=>{LW(n)?t[r]=n.getValue(e):Rn(n)?t[r]=Ht(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&xe(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return vr(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){vd.dependencies&&Rn(e)&&vd.dependencies.add(e);const t=Zf(e);t&&xe(t,n=>this.add(n))}},zR=class extends Jf{constructor(e){super(e)}static create(e){return new zR(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(jW)),!0)}};function jW(e){return(Qf(e)?Ll:lu).create(e)}function Zg(e){const t=sr(e);return t?t.constructor:Y.arr(e)?zR:Qf(e)?Ll:lu}var Kb=(e,t)=>{const n=!Y.fun(e)||e.prototype&&e.prototype.isReactComponent;return w.forwardRef((r,o)=>{const i=w.useRef(null),s=n&&w.useCallback(p=>{i.current=zW(o,p)},[o]),[a,l]=FW(r,t),u=M0(),c=()=>{const p=i.current;if(n&&!p)return;(p?t.applyAnimatedValues(p,a.getValue(!0)):!1)===!1&&u()},f=new DW(c,l),d=w.useRef();lo(()=>(d.current=f,xe(l,p=>Ws(p,f)),()=>{d.current&&(xe(d.current.deps,p=>Al(p,d.current)),be.cancel(d.current.update))})),w.useEffect(c,[]),E0(()=>()=>{const p=d.current;xe(p.deps,y=>Al(y,p))});const h=t.getComponentProps(a.getValue());return w.createElement(e,{...h,ref:s})})},DW=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&be.write(this.update)}};function FW(e,t){const n=new Set;return vd.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new Jf(e),vd.dependencies=null,[e,n]}function zW(e,t){return e&&(Y.fun(e)?e(t):e.current=t),t}var Yb=Symbol.for("AnimatedComponent"),BW=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=o=>new Jf(o),getComponentProps:r=o=>o}={})=>{const o={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},i=s=>{const a=qb(s)||"Anonymous";return Y.str(s)?s=i[s]||(i[s]=Kb(s,o)):s=s[Yb]||(s[Yb]=Kb(s,o)),s.displayName=`Animated(${a})`,s};return vr(e,(s,a)=>{Y.arr(e)&&(a=qb(s)),i[a]=i(s)}),{animated:i}},qb=e=>Y.str(e)?e:e&&Y.str(e.displayName)?e.displayName:Y.fun(e)&&e.name||null;function Gt(e,...t){return Y.fun(e)?e(...t):e}var Ga=(e,t)=>e===!0||!!(t&&e&&(Y.fun(e)?e(t):Lt(e).includes(t))),BR=(e,t)=>Y.obj(e)?t&&e[t]:e,UR=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,UW=e=>e,ep=(e,t=UW)=>{let n=VW;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);Y.und(i)||(r[o]=i)}return r},VW=["config","onProps","onStart","onChange","onPause","onResume","onRest"],WW={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 HW(e){const t={};let n=0;if(vr(e,(r,o)=>{WW[o]||(t[o]=r,n++)}),n)return t}function I0(e){const t=HW(e);if(t){const n={to:t};return vr(e,(r,o)=>o in t||(n[o]=r)),n}return{...e}}function jl(e){return e=Ht(e),Y.arr(e)?e.map(jl):Qf(e)?jn.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function VR(e){for(const t in e)return!0;return!1}function Jg(e){return Y.fun(e)||Y.arr(e)&&Y.obj(e[0])}function em(e,t){var n;(n=e.ref)==null||n.delete(e),t==null||t.delete(e)}function WR(e,t){var n;t&&e.ref!==t&&((n=e.ref)==null||n.delete(e),t.add(e),e.ref=t)}var GW={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}},tm={...GW.default,mass:1,damping:1,easing:wW.linear,clamp:!1},KW=class{constructor(){this.velocity=0,Object.assign(this,tm)}};function YW(e,t,n){n&&(n={...n},Xb(n,t),t={...n,...t}),Xb(e,t),Object.assign(e,t);for(const s in tm)e[s]==null&&(e[s]=tm[s]);let{frequency:r,damping:o}=e;const{mass:i}=e;return Y.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 Xb(e,t){if(!Y.und(t.decay))e.duration=void 0;else{const n=!Y.und(t.tension)||!Y.und(t.friction);(n||!Y.und(t.frequency)||!Y.und(t.damping)||!Y.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}var Qb=[],qW=class{constructor(){this.changed=!1,this.values=Qb,this.toValues=null,this.fromValues=Qb,this.config=new KW,this.immediate=!1}};function HR(e,{key:t,props:n,defaultProps:r,state:o,actions:i}){return new Promise((s,a)=>{let l,u,c=Ga(n.cancel??(r==null?void 0:r.cancel),t);if(c)h();else{Y.und(n.pause)||(o.paused=Ga(n.pause,t));let p=r==null?void 0:r.pause;p!==!0&&(p=o.paused||Ga(p,t)),l=Gt(n.delay||0,t),p?(o.resumeQueue.add(d),i.pause()):(i.resume(),d())}function f(){o.resumeQueue.add(d),o.timeouts.delete(u),u.cancel(),l=u.time-be.now()}function d(){l>0&&!jn.skipAnimation?(o.delayed=!0,u=be.setTimeout(h,l),o.pauseQueue.add(f),o.timeouts.add(u)):h()}function h(){o.delayed&&(o.delayed=!1),o.pauseQueue.delete(f),o.timeouts.delete(u),e<=(o.cancelId||0)&&(c=!0);try{i.start({...n,callId:e,cancel:c},s)}catch(p){a(p)}}})}var O0=(e,t)=>t.length==1?t[0]:t.some(n=>n.cancelled)?ls(e.get()):t.every(n=>n.noop)?GR(e.get()):Yn(e.get(),t.every(n=>n.finished)),GR=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Yn=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),ls=e=>({value:e,cancelled:!0,finished:!1});function KR(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=ep(t,(x,g)=>g==="onRest"?void 0:x);let c,f;const d=new Promise((x,g)=>(c=x,f=g)),h=x=>{const g=o<=(n.cancelId||0)&&ls(r)||o!==n.asyncId&&Yn(r,!1);if(g)throw x.result=g,f(x),x},p=(x,g)=>{const v=new Zb,m=new Jb;return(async()=>{if(jn.skipAnimation)throw Dl(n),m.result=Yn(r,!1),f(m),m;h(v);const b=Y.obj(x)?{...x}:{...g,to:x};b.parentId=o,vr(u,(P,R)=>{Y.und(b[R])&&(b[R]=P)});const S=await r.start(b);return h(v),n.paused&&await new Promise(P=>{n.resumeQueue.add(P)}),S})()};let y;if(jn.skipAnimation)return Dl(n),Yn(r,!1);try{let x;Y.arr(e)?x=(async g=>{for(const v of g)await p(v)})(e):x=Promise.resolve(e(p,r.stop.bind(r))),await Promise.all([x.then(c),d]),y=Yn(r.get(),!0,!1)}catch(x){if(x instanceof Zb)y=x.result;else if(x instanceof Jb)y=x.result;else throw x}finally{o==n.asyncId&&(n.asyncId=i,n.asyncTo=i?a:void 0,n.promise=i?l:void 0)}return Y.fun(s)&&be.batchedUpdates(()=>{s(y,r,r.item)}),y})()}function Dl(e,t){Wa(e.timeouts,n=>n.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var Zb=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.")}},Jb=class extends Error{constructor(){super("SkipAnimationSignal")}},nm=e=>e instanceof A0,XW=1,A0=class extends AR{constructor(){super(...arguments),this.id=XW++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=sr(this);return e&&e.getValue()}to(...e){return jn.to(this,e)}interpolate(...e){return MW(),jn.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){Ol(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||Yf.sort(this),Ol(this,{type:"priority",parent:this,priority:e})}},ui=Symbol.for("SpringPhase"),YR=1,rm=2,om=4,gh=e=>(e[ui]&YR)>0,Xr=e=>(e[ui]&rm)>0,ha=e=>(e[ui]&om)>0,ew=(e,t)=>t?e[ui]|=rm|YR:e[ui]&=~rm,tw=(e,t)=>t?e[ui]|=om:e[ui]&=~om,QW=class extends A0{constructor(e,t){if(super(),this.animation=new qW,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,!Y.und(e)||!Y.und(t)){const n=Y.obj(e)?{...e}:{...t,from:e};Y.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(Xr(this)||this._state.asyncTo)||ha(this)}get goal(){return Ht(this.animation.to)}get velocity(){const e=sr(this);return e instanceof lu?e.lastVelocity||0:e.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return gh(this)}get isAnimating(){return Xr(this)}get isPaused(){return ha(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=Zf(r.to);!s&&Rn(r.to)&&(o=Lt(Ht(r.to))),r.values.forEach((u,c)=>{if(u.done)return;const f=u.constructor==Ll?1:s?s[c].lastPosition:o[c];let d=r.immediate,h=f;if(!d){if(h=u.lastPosition,i.tension<=0){u.done=!0;return}let p=u.elapsedTime+=e;const y=r.fromValues[c],x=u.v0!=null?u.v0:u.v0=Y.arr(i.velocity)?i.velocity[c]:i.velocity;let g;const v=i.precision||(y==f?.005:Math.min(1,Math.abs(f-y)*.001));if(Y.und(i.duration))if(i.decay){const m=i.decay===!0?.998:i.decay,b=Math.exp(-(1-m)*p);h=y+x/(1-m)*(1-b),d=Math.abs(u.lastPosition-h)<=v,g=x*b}else{g=u.lastVelocity==null?x:u.lastVelocity;const m=i.restVelocity||v/10,b=i.clamp?0:i.bounce,S=!Y.und(b),P=y==f?u.v0>0:ym,!(!R&&(d=Math.abs(f-h)<=v,d)));++_){S&&($=h==f||h>f==P,$&&(g=-g*b,h=f));const N=-i.tension*1e-6*(h-f),I=-i.friction*.001*g,O=(N+I)/i.mass;g=g+O*M,h=h+g*M}}else{let m=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)),m=(i.progress||0)+p/this._memoizedDuration,m=m>1?1:m<0?0:m,u.durationProgress=m),h=y+i.easing(m)*(f-y),g=(h-u.lastPosition)/e,d=m==1}u.lastVelocity=g,Number.isNaN(h)&&(console.warn("Got NaN while animating:",this),d=!0)}s&&!s[c].done&&(d=!1),d?u.done=!0:t=!1,u.setValue(h,i.round)&&(n=!0)});const a=sr(this),l=a.getValue();if(t){const u=Ht(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 be.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(Xr(this)){const{to:e,config:t}=this.animation;be.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 Y.und(e)?(n=this.queue||[],this.queue=[]):n=[Y.obj(e)?e:{...t,to:e}],Promise.all(n.map(r=>this._update(r))).then(r=>O0(this,r))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),Dl(this._state,e&&this._lastCallId),be.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=Y.obj(n)?n[t]:n,(n==null||Jg(n))&&(n=void 0),r=Y.obj(r)?r[t]:r,r==null&&(r=void 0);const o={to:n,from:r};return gh(this)||(e.reverse&&([n,r]=[r,n]),r=Ht(r),Y.und(r)?sr(this)||this._set(n):this._set(r)),o}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,ep(e,(s,a)=>/^on/.test(a)?BR(s,n):s)),rw(this,e,"onProps"),ma(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 HR(++this._lastCallId,{key:n,props:e,defaultProps:r,state:i,actions:{pause:()=>{ha(this)||(tw(this,!0),Ta(i.pauseQueue),ma(this,"onPause",Yn(this,ga(this,this.animation.to)),this))},resume:()=>{ha(this)&&(tw(this,!1),Xr(this)&&this._resume(),Ta(i.resumeQueue),ma(this,"onResume",Yn(this,ga(this,this.animation.to)),this))},start:this._merge.bind(this,o)}}).then(s=>{if(e.loop&&s.finished&&!(t&&s.noop)){const a=qR(e);if(a)return this._update(a,!0)}return s})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(ls(this));const r=!Y.und(e.to),o=!Y.und(e.from);if(r||o)if(t.callId>this._lastToId)this._lastToId=t.callId;else return n(ls(this));const{key:i,defaultProps:s,animation:a}=this,{to:l,from:u}=a;let{to:c=l,from:f=u}=e;o&&!r&&(!t.default||Y.und(c))&&(c=f),t.reverse&&([c,f]=[f,c]);const d=!Pr(f,u);d&&(a.from=f),f=Ht(f);const h=!Pr(c,l);h&&this._focus(c);const p=Jg(t.to),{config:y}=a,{decay:x,velocity:g}=y;(r||o)&&(y.velocity=0),t.config&&!p&&YW(y,Gt(t.config,i),t.config!==s.config?Gt(s.config,i):void 0);let v=sr(this);if(!v||Y.und(c))return n(Yn(this,!0));const m=Y.und(t.reset)?o&&!t.default:!Y.und(f)&&Ga(t.reset,i),b=m?f:this.get(),S=jl(c),P=Y.num(S)||Y.arr(S)||Qf(S),R=!p&&(!P||Ga(s.immediate||t.immediate,i));if(h){const _=Zg(c);if(_!==v.constructor)if(R)v=this._set(S);else throw Error(`Cannot animate between ${v.constructor.name} and ${_.name}, as the "to" prop suggests`)}const $=v.constructor;let M=Rn(c),T=!1;if(!M){const _=m||!gh(this)&&d;(h||_)&&(T=Pr(jl(b),S),M=!T),(!Pr(a.immediate,R)&&!R||!Pr(y.decay,x)||!Pr(y.velocity,g))&&(M=!0)}if(T&&Xr(this)&&(a.changed&&!m?M=!0:M||this._stop(l)),!p&&((M||Rn(l))&&(a.values=v.getPayload(),a.toValues=Rn(c)?null:$==Ll?[1]:Lt(S)),a.immediate!=R&&(a.immediate=R,!R&&!m&&this._set(l)),M)){const{onRest:_}=a;xe(JW,I=>rw(this,t,I));const N=Yn(this,ga(this,l));Ta(this._pendingCalls,N),this._pendingCalls.add(n),a.changed&&be.batchedUpdates(()=>{var I;a.changed=!m,_==null||_(N,this),m?Gt(s.onRest,N):(I=a.onStart)==null||I.call(a,N,this)})}m&&this._set(b),p?n(KR(t.to,t,this._state,this)):M?this._start():Xr(this)&&!h?this._pendingCalls.add(n):n(GR(b))}_focus(e){const t=this.animation;e!==t.to&&(Hb(this)&&this._detach(),t.to=e,Hb(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;Rn(t)&&(Ws(t,this),nm(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;Rn(e)&&Al(e,this)}_set(e,t=!0){const n=Ht(e);if(!Y.und(n)){const r=sr(this);if(!r||!Pr(n,r.getValue())){const o=Zg(n);!r||r.constructor!=o?_0(this,o.create(n)):r.setValue(n),r&&be.batchedUpdates(()=>{this._onChange(n,t)})}}return sr(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,ma(this,"onStart",Yn(this,ga(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),Gt(this.animation.onChange,e,this)),Gt(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;sr(this).reset(Ht(e.to)),e.immediate||(e.fromValues=e.values.map(t=>t.lastPosition)),Xr(this)||(ew(this,!0),ha(this)||this._resume())}_resume(){jn.skipAnimation?this.finish():Yf.start(this)}_stop(e,t){if(Xr(this)){ew(this,!1);const n=this.animation;xe(n.values,o=>{o.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),Ol(this,{type:"idle",parent:this});const r=t?ls(this.get()):Yn(this.get(),ga(this,e??n.to));Ta(this._pendingCalls,r),n.changed&&(n.changed=!1,ma(this,"onRest",r,this))}}};function ga(e,t){const n=jl(t),r=jl(e.get());return Pr(r,n)}function qR(e,t=e.loop,n=e.to){const r=Gt(t);if(r){const o=r!==!0&&I0(r),i=(o||e).reverse,s=!o||o.reset;return Fl({...e,loop:t,default:!1,pause:void 0,to:!i||Jg(n)?n:void 0,from:s?e.from:void 0,reset:s,...o})}}function Fl(e){const{to:t,from:n}=e=I0(e),r=new Set;return Y.obj(t)&&nw(t,r),Y.obj(n)&&nw(n,r),e.keys=r.size?Array.from(r):null,e}function ZW(e){const t=Fl(e);return Y.und(t.default)&&(t.default=ep(t)),t}function nw(e,t){vr(e,(n,r)=>n!=null&&t.add(r))}var JW=["onStart","onRest","onChange","onPause","onResume"];function rw(e,t,n){e.animation[n]=t[n]!==UR(t,n)?BR(t[n],e.key):void 0}function ma(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 eH=["onStart","onChange","onRest"],tH=1,XR=class{constructor(e,t){this.id=tH++,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];Y.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(Fl(e)),this}start(e){let{queue:t}=this;return e?t=Lt(e).map(Fl):this.queue=[],this._flush?this._flush(this,t):(t$(this,t),im(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;xe(Lt(t),r=>n[r].stop(!!e))}else Dl(this._state,this._lastAsyncId),this.each(n=>n.stop(!!e));return this}pause(e){if(Y.und(e))this.start({pause:!0});else{const t=this.springs;xe(Lt(e),n=>t[n].pause())}return this}resume(e){if(Y.und(e))this.start({pause:!1});else{const t=this.springs;xe(Lt(e),n=>t[n].resume())}return this}each(e){vr(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,Wa(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&&Wa(t,([a,l])=>{l.value=s,a(l,this,this._item)}),i&&(this._started=!1,Wa(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;be.onFrame(this._onFrame)}};function im(e,t){return Promise.all(t.map(n=>QR(e,n))).then(n=>O0(e,n))}async function QR(e,t,n){const{keys:r,to:o,from:i,loop:s,onRest:a,onResolve:l}=t,u=Y.obj(t.default)&&t.default;s&&(t.loop=!1),o===!1&&(t.to=null),i===!1&&(t.from=null);const c=Y.arr(o)||Y.fun(o)?o:void 0;c?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):xe(eH,y=>{const x=t[y];if(Y.fun(x)){const g=e._events[y];t[y]=({finished:v,cancelled:m})=>{const b=g.get(x);b?(v||(b.finished=!1),m&&(b.cancelled=!0)):g.set(x,{value:null,finished:v||!1,cancelled:m||!1})},u&&(u[y]=t[y])}});const f=e._state;t.pause===!f.paused?(f.paused=t.pause,Ta(t.pause?f.pauseQueue:f.resumeQueue)):f.paused&&(t.pause=!0);const d=(r||Object.keys(e.springs)).map(y=>e.springs[y].start(t)),h=t.cancel===!0||UR(t,"cancel")===!0;(c||h&&f.asyncId)&&d.push(HR(++e._lastAsyncId,{props:t,state:f,actions:{pause:qg,resume:qg,start(y,x){h?(Dl(f,e._lastAsyncId),x(ls(e))):(y.onRest=a,x(KR(c,y,f,e)))}}})),f.paused&&await new Promise(y=>{f.resumeQueue.add(y)});const p=O0(e,await Promise.all(d));if(s&&p.finished&&!(n&&p.noop)){const y=qR(t,s,o);if(y)return t$(e,[y]),QR(e,y,!0)}return l&&be.batchedUpdates(()=>l(p,e,e.item)),p}function sm(e,t){const n={...e.springs};return t&&xe(Lt(t),r=>{Y.und(r.keys)&&(r=Fl(r)),Y.obj(r.to)||(r={...r,to:void 0}),e$(n,r,o=>JR(o))}),ZR(e,n),n}function ZR(e,t){vr(t,(n,r)=>{e.springs[r]||(e.springs[r]=n,Ws(n,e))})}function JR(e,t){const n=new QW;return n.key=e,t&&Ws(n,t),n}function e$(e,t,n){t.keys&&xe(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function t$(e,t){xe(t,n=>{e$(e.springs,n,r=>JR(r,e))})}var uu=({children:e,...t})=>{const n=w.useContext(xd),r=t.pause||!!n.pause,o=t.immediate||!!n.immediate;t=OW(()=>({pause:r,immediate:o}),[r,o]);const{Provider:i}=xd;return w.createElement(i,{value:t},e)},xd=nH(uu,{});uu.Provider=xd.Provider;uu.Consumer=xd.Consumer;function nH(e,t){return Object.assign(e,w.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}var n$=()=>{const e=[],t=function(r){_W();const o=[];return xe(e,(i,s)=>{if(Y.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 xe(e,r=>r.pause(...arguments)),this},t.resume=function(){return xe(e,r=>r.resume(...arguments)),this},t.set=function(r){xe(e,(o,i)=>{const s=Y.fun(r)?r(i,o):r;s&&o.set(s)})},t.start=function(r){const o=[];return xe(e,(i,s)=>{if(Y.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 xe(e,r=>r.stop(...arguments)),this},t.update=function(r){return xe(e,(o,i)=>o.update(this._getProps(r,o,i))),this};const n=function(r,o,i){return Y.fun(r)?r(i,o):r};return t._getProps=n,t};function rH(e,t,n){const r=Y.fun(t)&&t;r&&!n&&(n=[]);const o=w.useMemo(()=>r||arguments.length==3?n$():void 0,[]),i=w.useRef(0),s=M0(),a=w.useMemo(()=>({ctrls:[],queue:[],flush(g,v){const m=sm(g,v);return i.current>0&&!a.queue.length&&!Object.keys(m).some(S=>!g.springs[S])?im(g,v):new Promise(S=>{ZR(g,m),a.queue.push(()=>{S(im(g,v))}),s()})}}),[]),l=w.useRef([...a.ctrls]),u=[],c=Qg(e)||0;w.useMemo(()=>{xe(l.current.slice(e,c),g=>{em(g,o),g.stop(!0)}),l.current.length=e,f(c,e)},[e]),w.useMemo(()=>{f(0,Math.min(c,e))},n);function f(g,v){for(let m=g;msm(g,u[v])),h=w.useContext(uu),p=Qg(h),y=h!==p&&VR(h);lo(()=>{i.current++,a.ctrls=l.current;const{queue:g}=a;g.length&&(a.queue=[],xe(g,v=>v())),xe(l.current,(v,m)=>{o==null||o.add(v),y&&v.start({default:h});const b=u[m];b&&(WR(v,b.ref),v.ref?v.queue.push(b):v.start(b))})}),E0(()=>()=>{xe(a.ctrls,g=>g.stop(!0))});const x=d.map(g=>({...g}));return o?[x,o]:x}function tp(e,t){const n=Y.fun(e),[[r],o]=rH(1,n?e:[e],n?t||[]:t);return n||arguments.length==2?[r,o]:r}function r$(e,t,n){const r=Y.fun(t)&&t,{reset:o,sort:i,trail:s=0,expires:a=!0,exitBeforeEnter:l=!1,onDestroyed:u,ref:c,config:f}=r?r():t,d=w.useMemo(()=>r||arguments.length==3?n$():void 0,[]),h=Lt(e),p=[],y=w.useRef(null),x=o?null:y.current;lo(()=>{y.current=p}),E0(()=>(xe(p,O=>{d==null||d.add(O.ctrl),O.ctrl.ref=d}),()=>{xe(y.current,O=>{O.expired&&clearTimeout(O.expirationId),em(O.ctrl,d),O.ctrl.stop(!0)})}));const g=iH(h,r?r():t,x),v=o&&y.current||[];lo(()=>xe(v,({ctrl:O,item:L,key:A})=>{em(O,d),Gt(u,L,A)}));const m=[];if(x&&xe(x,(O,L)=>{O.expired?(clearTimeout(O.expirationId),v.push(O)):(L=m[L]=g.indexOf(O.key),~L&&(p[L]=O))}),xe(h,(O,L)=>{p[L]||(p[L]={key:g[L],item:O,phase:"mount",ctrl:new XR},p[L].ctrl.item=O)}),m.length){let O=-1;const{leave:L}=r?r():t;xe(m,(A,j)=>{const E=x[j];~A?(O=p.indexOf(E),p[O]={...E,item:h[A]}):L&&p.splice(++O,0,E)})}Y.fun(i)&&p.sort((O,L)=>i(O.item,L.item));let b=-s;const S=M0(),P=ep(t),R=new Map,$=w.useRef(new Map),M=w.useRef(!1);xe(p,(O,L)=>{const A=O.key,j=O.phase,E=r?r():t;let D,F;const V=Gt(E.delay||0,A);if(j=="mount")D=E.enter,F="enter";else{const Q=g.indexOf(A)<0;if(j!="leave")if(Q)D=E.leave,F="leave";else if(D=E.update)F="update";else return;else if(!Q)D=E.enter,F="enter";else return}if(D=Gt(D,O.item,L),D=Y.obj(D)?I0(D):{to:D},!D.config){const Q=f||P.config;D.config=Gt(Q,O.item,L,F)}b+=s;const H={...P,delay:V+b,ref:c,immediate:E.immediate,reset:!1,...D};if(F=="enter"&&Y.und(H.from)){const Q=r?r():t,re=Y.und(Q.initial)||x?Q.from:Q.initial;H.from=Gt(re,O.item,L)}const{onResolve:ue}=H;H.onResolve=Q=>{Gt(ue,Q);const re=y.current,ge=re.find(he=>he.key===A);if(ge&&!(Q.cancelled&&ge.phase!="update")&&ge.ctrl.idle){const he=re.every(B=>B.ctrl.idle);if(ge.phase=="leave"){const B=Gt(a,ge.item);if(B!==!1){const Z=B===!0?0:B;if(ge.expired=!0,!he&&Z>0){Z<=2147483647&&(ge.expirationId=setTimeout(S,Z));return}}}he&&re.some(B=>B.expired)&&($.current.delete(ge),l&&(M.current=!0),S())}};const ee=sm(O.ctrl,H);F==="leave"&&l?$.current.set(O,{phase:F,springs:ee,payload:H}):R.set(O,{phase:F,springs:ee,payload:H})});const T=w.useContext(uu),_=Qg(T),N=T!==_&&VR(T);lo(()=>{N&&xe(p,O=>{O.ctrl.start({default:T})})},[T]),xe(R,(O,L)=>{if($.current.size){const A=p.findIndex(j=>j.key===L.key);p.splice(A,1)}}),lo(()=>{xe($.current.size?$.current:R,({phase:O,payload:L},A)=>{const{ctrl:j}=A;A.phase=O,d==null||d.add(j),N&&O=="enter"&&j.start({default:T}),L&&(WR(j,L.ref),(j.ref||d)&&!M.current?j.update(L):(j.start(L),M.current&&(M.current=!1)))})},o?void 0:n);const I=O=>w.createElement(w.Fragment,null,p.map((L,A)=>{const{springs:j}=R.get(L)||L.ctrl,E=O({...j},L.item,L,A);return E&&E.type?w.createElement(E.type,{...E.props,key:Y.str(L.key)||Y.num(L.key)?L.key:L.ctrl.id,ref:E.ref}):E}));return d?[I,d]:I}var oH=1;function iH(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):oH++})}return Y.und(n)?e:Y.fun(n)?e.map(n):Lt(n)}var o$=class extends A0{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=_l(...t);const n=this._get(),r=Zg(n);_0(this,r.create(n))}advance(e){const t=this._get(),n=this.get();Pr(t,n)||(sr(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&ow(this._active)&&mh(this)}_get(){const e=Y.arr(this.source)?this.source.map(Ht):Lt(Ht(this.source));return this.calc(...e)}_start(){this.idle&&!ow(this._active)&&(this.idle=!1,xe(Zf(this),e=>{e.done=!1}),jn.skipAnimation?(be.batchedUpdates(()=>this.advance()),mh(this)):Yf.start(this))}_attach(){let e=1;xe(Lt(this.source),t=>{Rn(t)&&Ws(t,this),nm(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){xe(Lt(this.source),e=>{Rn(e)&&Al(e,this)}),this._active.clear(),mh(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=Lt(this.source).reduce((t,n)=>Math.max(t,(nm(n)?n.priority:0)+1),0))}};function sH(e){return e.idle!==!1}function ow(e){return!e.size||Array.from(e).every(sH)}function mh(e){e.idle||(e.idle=!0,xe(Zf(e),t=>{t.done=!0}),Ol(e,{type:"idle",parent:e}))}var Os=(e,...t)=>new o$(e,t);jn.assign({createStringInterpolator:jR,to:(e,t)=>new o$(e,t)});var i$=/^--/;function aH(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!i$.test(e)&&!(Ka.hasOwnProperty(e)&&Ka[e])?t+"px":(""+t).trim()}var iw={};function lH(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(f=>n||e.hasAttribute(f)?f:iw[f]||(iw[f]=f.replace(/([A-Z])/g,d=>"-"+d.toLowerCase())));o!==void 0&&(e.textContent=o);for(const f in r)if(r.hasOwnProperty(f)){const d=aH(f,r[f]);i$.test(f)?e.style.setProperty(f,d):e.style[f]=d}c.forEach((f,d)=>{e.setAttribute(f,u[d])}),i!==void 0&&(e.scrollTop=i),s!==void 0&&(e.scrollLeft=s),a!==void 0&&e.setAttribute("viewBox",a)}var Ka={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},uH=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),cH=["Webkit","Ms","Moz","O"];Ka=Object.keys(Ka).reduce((e,t)=>(cH.forEach(n=>e[uH(n,t)]=e[t]),e),Ka);var dH=/^(matrix|translate|scale|rotate|skew)/,fH=/^(translate)/,pH=/^(rotate|skew)/,yh=(e,t)=>Y.num(e)&&e!==0?e+t:e,xc=(e,t)=>Y.arr(e)?e.every(n=>xc(n,t)):Y.num(e)?e===t:parseFloat(e)===t,hH=class extends Jf{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=>yh(a,"px")).join(",")})`,xc(s,0)])),vr(r,(s,a)=>{if(a==="transform")o.push([s||""]),i.push(l=>[l,l===""]);else if(dH.test(a)){if(delete r[a],Y.und(s))return;const l=fH.test(a)?"px":pH.test(a)?"deg":"";o.push(Lt(s)),i.push(a==="rotate3d"?([u,c,f,d])=>[`rotate3d(${u},${c},${f},${yh(d,l)})`,xc(d,0)]:u=>[`${a}(${u.map(c=>yh(c,l)).join(",")})`,xc(u,a.startsWith("scale")?1:0)])}}),o.length&&(r.transform=new gH(o,i)),super(r)}},gH=class extends AR{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 xe(this.inputs,(n,r)=>{const o=Ht(n[0]),[i,s]=this.transforms[r](Y.arr(o)?o:n.map(Ht));e+=" "+i,t=t&&s}),t?"none":e}observerAdded(e){e==1&&xe(this.inputs,t=>xe(t,n=>Rn(n)&&Ws(n,this)))}observerRemoved(e){e==0&&xe(this.inputs,t=>xe(t,n=>Rn(n)&&Al(n,this)))}eventObserved(e){e.type=="change"&&(this._value=null),Ol(this,e)}},mH=["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"];jn.assign({batchedUpdates:zd.unstable_batchedUpdates,createStringInterpolator:jR,colors:lW});var yH=BW(mH,{applyAnimatedValues:lH,createAnimatedStyle:e=>new hH(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),mi=yH.animated;const N0={highlighted:"none",faded:"none"},s$=w.createContext({item:null,scope:N0,dispatch:()=>null}),vH=(e,t)=>{switch(t.type){case"enterItem":return k({},e,{item:t.item,scope:k({},N0,t.scope)});case"leaveItem":return e.item===null||Object.keys(t.item).some(n=>t.item[n]!==e.item[n])?e:k({},e,{item:null});default:return e}};function xH(e){const{children:t}=e,[n,r]=w.useReducer(vH,{item:null,scope:N0}),o=w.useMemo(()=>k({},n,{dispatch:r}),[n]);return C.jsx(s$.Provider,{value:o,children:t})}const np=(e,t)=>{const{dispatch:n}=w.useContext(rr),{dispatch:r}=w.useContext(s$);return t?()=>({}):i=>({onMouseEnter:()=>{n({type:"enterItem",data:i}),r({type:"enterItem",item:i,scope:e})},onMouseLeave:()=>{n({type:"leaveItem",data:i}),r({type:"leaveItem",item:i})}})},rp=(e,t,n)=>{if(!(n!=null&&n.highlighted)||n.highlighted==="none"||e===null)return!1;const r=e.type===t.type&&e.seriesId===t.seriesId;return r?n.highlighted==="series"?r:e.dataIndex!==void 0&&e.dataIndex===t.dataIndex:!1},op=(e,t,n)=>{if(!(n!=null&&n.faded)||n.faded==="none"||e===null)return!1;const r=e.type===t.type&&e.seriesId===t.seriesId;return n.faded==="series"?r&&e.dataIndex!==t.dataIndex:n.faded==="global"?r?e.dataIndex!==void 0&&e.dataIndex!==t.dataIndex:!0:!1},bH=()=>{lo(()=>{const e=window.matchMedia("(prefers-reduced-motion)"),t=n=>{jn.assign({skipAnimation:n.matches||void 0})};return t(e),e.addEventListener("change",t),()=>{e.removeEventListener("change",t)}},[])};function $i(e){return e instanceof Date?e.getTime():e}const wH=e=>{const t=w.useContext(Ff),{width:n,height:r,top:o,left:i}=w.useContext(tr),{xAxis:s,yAxis:a,xAxisIds:l,yAxisIds:u}=w.useContext(Bt),{dispatch:c}=w.useContext(rr),f=l[0],d=u[0],h=w.useRef({x:-1,y:-1});w.useEffect(()=>{const p=t.current;if(p===null||e)return()=>{};const y=(v,m)=>{if(f===null)return null;const{scale:b,data:S,reverse:P}=v;if(!Ml(b)){const $=b.invert(m);if(S===void 0)return{value:$};const M=$i($),T=S==null?void 0:S.findIndex((_,N)=>{const I=$i(_);return I>M&&(N===0||Math.abs(M-I)<=Math.abs(M-$i(S[N-1])))||I<=M&&(N===S.length-1||Math.abs($i($)-I)=0?S[T]:$,index:T}}const R=b.bandwidth()===0?Math.floor((m-Math.min(...b.range())+b.step()/2)/b.step()):Math.floor((m-Math.min(...b.range()))/b.step());if(R<0||R>=S.length)return null;if(P){const $=S.length-1-R;return{index:$,value:S[$]}}return{index:R,value:S[R]}},x=()=>{h.current={x:-1,y:-1},c({type:"exitChart"})},g=v=>{const m=ZV(t.current,v);h.current={x:m.x,y:m.y};const b=m.xi+n,S=m.yo+r;if(b||S){c({type:"exitChart"});return}const P=y(s[f],m.x),R=y(a[d],m.y);c({type:"updateAxis",data:{x:P,y:R}})};return p.addEventListener("mouseout",x),p.addEventListener("mousemove",g),()=>{p.removeEventListener("mouseout",x),p.removeEventListener("mousemove",g)}},[t,c,i,n,o,r,d,a,f,s,e])},SH=["children","width","height","viewBox","disableAxisListener","className","title","desc"],CH=G("svg",{name:"MuiChartsSurface",slot:"Root"})(()=>({})),kH=w.forwardRef(function(t,n){const{children:r,width:o,height:i,viewBox:s,disableAxisListener:a=!1,title:l,desc:u}=t,c=W(t,SH),f=k({width:o,height:i,x:0,y:0},s);return wH(a),C.jsxs(CH,k({width:o,height:i,viewBox:`${f.x} ${f.y} ${f.width} ${f.height}`,ref:n},c,{children:[C.jsx("title",{children:l}),C.jsx("desc",{children:u}),r]}))}),PH=w.forwardRef(function(t,n){const{width:r,height:o,series:i,margin:s,xAxis:a,yAxis:l,colors:u,dataset:c,sx:f,title:d,desc:h,disableAxisListener:p,children:y}=t,x=w.useRef(null),g=Ze(n,x);return bH(),C.jsx(iB,{width:r,height:o,margin:s,svgRef:x,children:C.jsx(WU,{series:i,colors:u,dataset:c,children:C.jsx(YU,{xAxis:a,yAxis:l,dataset:c,children:C.jsx(vV,{children:C.jsx(xH,{children:C.jsx(kH,{width:r,height:o,ref:g,sx:f,title:d,desc:h,disableAxisListener:p,children:y})})})})})})}),RH=(e,t)=>{const n=w.useRef(null),r=w.useRef(!1),[o,i]=w.useState(0),[s,a]=w.useState(0),l=w.useCallback(()=>{const u=n==null?void 0:n.current;if(!u)return;const f=So(u).getComputedStyle(u),d=Math.floor(parseFloat(f.height))||0,h=Math.floor(parseFloat(f.width))||0;i(h),a(d)},[]);return w.useEffect(()=>{r.current=!0},[]),zt(()=>{if(e!==void 0&&t!==void 0)return()=>{};l();const u=n.current;if(typeof ResizeObserver>"u")return()=>{};let c;const f=new ResizeObserver(()=>{c=requestAnimationFrame(()=>{l()})});return u&&f.observe(u),()=>{c&&window.cancelAnimationFrame(c),u&&f.unobserve(u)}},[l,t,e]),[n,e??o,t??s]},$H=["width","height"],TH=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%"}})),a$=w.forwardRef(function(t,n){const{width:r,height:o}=t,i=W(t,$H),[s,a,l]=RH(r,o);return C.jsx(TH,{ref:s,ownerState:{width:r,height:o},children:a&&l?C.jsx(PH,k({},i,{width:a,height:l,ref:n})):null})});function MH(e){const t=w.useRef(null);return w.useEffect(()=>{t.current=e},[e]),t.current}const l$=(e,t)=>{const n=MH(e),r=w.useMemo(()=>n?_P(n,e):()=>e,[n,e]),{value:o}=tp({from:{value:0},to:{value:1},reset:!0,immediate:t});return Os([o],r)},EH=["d","skipAnimation","ownerState"],_H=G(mi.path,{name:"MuiAreaElement",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>({stroke:"none",fill:e.isHighlighted?Po(e.color).brighter(1).formatHex():Po(e.color).brighter(.5).formatHex(),transition:"opacity 0.2s ease-in, fill 0.2s ease-in",opacity:e.isFaded?.3:1}));function IH(e){const{d:t,skipAnimation:n,ownerState:r}=e,o=W(e,EH),{left:i,top:s,right:a,bottom:l,width:u,height:c,chartId:f}=w.useContext(tr),d=l$(t,n),{animatedWidth:h}=tp({from:{animatedWidth:i},to:{animatedWidth:u+i+a},reset:!1,immediate:n}),p=x0(`${f}-${r.id}-area-clip`);return C.jsxs(w.Fragment,{children:[C.jsx("clipPath",{id:p,children:C.jsx(mi.rect,{x:0,y:0,width:h,height:s+c+l})}),C.jsx("g",{clipPath:`url(#${p})`,children:C.jsx(_H,k({},o,{ownerState:r,d}))})]})}const OH=["id","classes","color","highlightScope","slots","slotProps","onClick"];function AH(e){return ce("MuiAreaElement",e)}de("MuiAreaElement",["root","highlighted","faded"]);const NH=e=>{const{classes:t,id:n,isFaded:r,isHighlighted:o}=e,i={root:["root",`series-${n}`,o&&"highlighted",r&&"faded"]};return le(i,AH,t)};function LH(e){const{id:t,classes:n,color:r,highlightScope:o,slots:i,slotProps:s,onClick:a}=e,l=W(e,OH),u=np(o),{item:c}=w.useContext(rr),f=rp(c,{type:"line",seriesId:t},o),d=!f&&op(c,{type:"line",seriesId:t},o),h={id:t,classes:n,color:r,isFaded:d,isHighlighted:f},p=NH(h),y=(i==null?void 0:i.area)??IH,x=wt({elementType:y,externalSlotProps:s==null?void 0:s.area,additionalProps:k({},l,u({type:"line",seriesId:t}),{className:p.root,onClick:a,cursor:a?"pointer":"unset"}),ownerState:h});return C.jsx(y,k({},x))}function u$(e){switch(e){case"catmullRom":return pU.alpha(.5);case"linear":return g0;case"monotoneX":return $b;case"monotoneY":return hU;case"natural":return gU;case"step":return mU;case"stepBefore":return yU;case"stepAfter":return vU;default:return $b}}const jH=["slots","slotProps","onItemClick","skipAnimation"],DH=()=>{const e=w.useContext(nr).line,t=w.useContext(Bt);if(e===void 0)return[];const{series:n,stackingGroups:r}=e,{xAxis:o,yAxis:i,xAxisIds:s,yAxisIds:a}=t,l=s[0],u=a[0];return r.flatMap(({ids:c})=>c.flatMap(f=>{const{xAxisKey:d=l,yAxisKey:h=u,stackedData:p,data:y,connectNulls:x}=n[f],g=_s(o[d].scale),v=i[h].scale,m=o[d].data,b=q7().x(M=>g(M.x)).defined((M,T)=>x||y[T]!=null).y0(M=>M.y&&v(M.y[0])).y1(M=>M.y&&v(M.y[1])),S=u$(n[f].curve),P=(m==null?void 0:m.map((M,T)=>({x:M,y:p[T]})))??[],R=x?P.filter((M,T)=>y[T]!=null):P,$=b.curve(S)(R)||"";return k({},n[f],{d:$,seriesId:f})}))};function FH(e){const{slots:t,slotProps:n,onItemClick:r,skipAnimation:o}=e,i=W(e,jH),s=DH();return C.jsx("g",k({},i,{children:s.reverse().map(({d:a,seriesId:l,color:u,highlightScope:c,area:f})=>!!f&&C.jsx(LH,{id:l,d:a,color:u,highlightScope:c,slots:t,slotProps:n,onClick:r&&(d=>r(d,{type:"line",seriesId:l})),skipAnimation:o},l))}))}const zH=["d","skipAnimation","ownerState"],BH=G(mi.path,{name:"MuiLineElement",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>({strokeWidth:2,strokeLinejoin:"round",fill:"none",stroke:e.isHighlighted?Po(e.color).brighter(.5).formatHex():e.color,transition:"opacity 0.2s ease-in, stroke 0.2s ease-in",opacity:e.isFaded?.3:1}));function UH(e){const{d:t,skipAnimation:n,ownerState:r}=e,o=W(e,zH),{left:i,top:s,bottom:a,width:l,height:u,right:c,chartId:f}=w.useContext(tr),d=l$(t,n),{animatedWidth:h}=tp({from:{animatedWidth:i},to:{animatedWidth:l+i+c},reset:!1,immediate:n}),p=x0(`${f}-${r.id}-line-clip`);return C.jsxs(w.Fragment,{children:[C.jsx("clipPath",{id:p,children:C.jsx(mi.rect,{x:0,y:0,width:h,height:s+u+a})}),C.jsx("g",{clipPath:`url(#${p})`,children:C.jsx(BH,k({},o,{ownerState:r,d}))})]})}const VH=["id","classes","color","highlightScope","slots","slotProps","onClick"];function WH(e){return ce("MuiLineElement",e)}de("MuiLineElement",["root","highlighted","faded"]);const HH=e=>{const{classes:t,id:n,isFaded:r,isHighlighted:o}=e,i={root:["root",`series-${n}`,o&&"highlighted",r&&"faded"]};return le(i,WH,t)};function GH(e){const{id:t,classes:n,color:r,highlightScope:o,slots:i,slotProps:s,onClick:a}=e,l=W(e,VH),u=np(o),{item:c}=w.useContext(rr),f=rp(c,{type:"line",seriesId:t},o),d=!f&&op(c,{type:"line",seriesId:t},o),h={id:t,classes:n,color:r,isFaded:d,isHighlighted:f},p=HH(h),y=(i==null?void 0:i.line)??UH,x=wt({elementType:y,externalSlotProps:s==null?void 0:s.line,additionalProps:k({},l,u({type:"line",seriesId:t}),{className:p.root,onClick:a,cursor:a?"pointer":"unset"}),ownerState:h});return C.jsx(y,k({},x))}const KH=["slots","slotProps","skipAnimation","onItemClick"],YH=()=>{const e=w.useContext(nr).line,t=w.useContext(Bt);if(e===void 0)return[];const{series:n,stackingGroups:r}=e,{xAxis:o,yAxis:i,xAxisIds:s,yAxisIds:a}=t,l=s[0],u=a[0];return r.flatMap(({ids:c})=>c.flatMap(f=>{const{xAxisKey:d=l,yAxisKey:h=u,stackedData:p,data:y,connectNulls:x}=n[f],g=_s(o[d].scale),v=i[h].scale,m=o[d].data,b=eR().x($=>g($.x)).defined(($,M)=>x||y[M]!=null).y($=>v($.y[1])),S=(m==null?void 0:m.map(($,M)=>({x:$,y:p[M]})))??[],P=x?S.filter(($,M)=>y[M]!=null):S,R=b.curve(u$(n[f].curve))(P)||"";return k({},n[f],{d:R,seriesId:f})}))};function qH(e){const{slots:t,slotProps:n,skipAnimation:r,onItemClick:o}=e,i=W(e,KH),s=YH();return C.jsx("g",k({},i,{children:s.map(({d:a,seriesId:l,color:u,highlightScope:c})=>C.jsx(GH,{id:l,d:a,color:u,highlightScope:c,skipAnimation:r,slots:t,slotProps:n,onClick:o&&(f=>o(f,{type:"line",seriesId:l}))},l))}))}const XH=["x","y","id","classes","color","shape","dataIndex","highlightScope","onClick","skipAnimation"];function QH(e){return ce("MuiMarkElement",e)}de("MuiMarkElement",["root","highlighted","faded"]);const ZH=e=>{const{classes:t,id:n,isFaded:r,isHighlighted:o}=e,i={root:["root",`series-${n}`,o&&"highlighted",r&&"faded"]};return le(i,QH,t)},c$=G(mi.path,{name:"MuiMarkElement",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e,theme:t})=>({fill:(t.vars||t).palette.background.paper,stroke:e.color,strokeWidth:2}));c$.propTypes={as:At.elementType,ownerState:At.shape({classes:At.object,color:At.string.isRequired,id:At.string.isRequired,isFaded:At.bool.isRequired,isHighlighted:At.bool.isRequired}).isRequired,sx:At.oneOfType([At.arrayOf(At.oneOfType([At.func,At.object,At.bool])),At.func,At.object])};function JH(e){var b;const{x:t,y:n,id:r,classes:o,color:i,shape:s,dataIndex:a,highlightScope:l,onClick:u,skipAnimation:c}=e,f=W(e,XH),d=np(l),{item:h,axis:p}=w.useContext(rr),y=((b=p.x)==null?void 0:b.index)===a||rp(h,{type:"line",seriesId:r},l),x=!y&&op(h,{type:"line",seriesId:r},l),g=tp({x:t,y:n,immediate:c}),v={id:r,classes:o,isHighlighted:y,isFaded:x,color:i},m=ZH(v);return C.jsx(c$,k({},f,{style:{transform:Os([g.x,g.y],(S,P)=>`translate(${S}px, ${P}px)`),transformOrigin:Os([g.x,g.y],(S,P)=>`${S}px ${P}px`)},ownerState:v,className:m.root,d:dU(cU[QV(s)])(),onClick:u,cursor:u?"pointer":"unset"},d({type:"line",seriesId:r,dataIndex:a})))}const eG=["slots","slotProps","skipAnimation","onItemClick"];function tG(e){const{slots:t,slotProps:n,skipAnimation:r,onItemClick:o}=e,i=W(e,eG),s=w.useContext(nr).line,a=w.useContext(Bt),{chartId:l}=w.useContext(tr),u=(t==null?void 0:t.mark)??JH;if(s===void 0)return null;const{series:c,stackingGroups:f}=s,{xAxis:d,yAxis:h,xAxisIds:p,yAxisIds:y}=a,x=p[0],g=y[0];return C.jsx("g",k({},i,{children:f.flatMap(({ids:v})=>v.map(m=>{const{xAxisKey:b=x,yAxisKey:S=g,stackedData:P,data:R,showMark:$=!0}=c[m];if($===!1)return null;const M=_s(d[b].scale),T=h[S].scale,_=d[b].data,N=d[b].scale.range(),I=T.range(),O=({x:A,y:j})=>!(AMath.max(...N)||jMath.max(...I));if(_===void 0)throw new Error(`MUI X Charts: ${b===Ps?"The first `xAxis`":`The x-axis with id "${b}"`} should have data property to be able to display a line plot.`);const L=x0(`${l}-${m}-line-clip`);return C.jsx("g",{clipPath:`url(#${L})`,children:_==null?void 0:_.map((A,j)=>{const E=R[j]==null?null:P[j][1];return{x:M(A),y:E===null?null:T(E),position:A,value:E,index:j}}).filter(({x:A,y:j,index:E,position:D,value:F})=>F===null||j===null||!O({x:A,y:j})?!1:$===!0?!0:$({x:A,y:j,index:E,position:D,value:F})).map(({x:A,y:j,index:E})=>C.jsx(u,k({id:m,dataIndex:E,shape:"circle",color:c[m].color,x:A,y:j,highlightScope:c[m].highlightScope,skipAnimation:r,onClick:o&&(D=>o(D,{type:"line",seriesId:m,dataIndex:E}))},n==null?void 0:n.mark),`${m}-${E}`))},m)}))}))}const nG=["x","y","id","classes","color"];function rG(e){return ce("MuiHighlightElement",e)}de("MuiHighlightElement",["root"]);const oG=e=>{const{classes:t,id:n}=e,r={root:["root",`series-${n}`]};return le(r,rG,t)},iG=G("circle",{name:"MuiHighlightElement",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>({transform:`translate(${e.x}px, ${e.y}px)`,transformOrigin:`${e.x}px ${e.y}px`,fill:e.color}));function sG(e){const{x:t,y:n,id:r,classes:o,color:i}=e,s=W(e,nG),a={id:r,classes:o,color:i,x:t,y:n},l=oG(a);return C.jsx(iG,k({pointerEvents:"none",ownerState:a,className:l.root,cx:0,cy:0,r:s.r===void 0?5:s.r},s))}const aG=["slots","slotProps"];function lG(e){var g;const{slots:t,slotProps:n}=e,r=W(e,aG),o=w.useContext(nr).line,i=w.useContext(Bt),{axis:s}=w.useContext(rr),a=(g=s.x)==null?void 0:g.index;if(a===void 0||o===void 0)return null;const{series:l,stackingGroups:u}=o,{xAxis:c,yAxis:f,xAxisIds:d,yAxisIds:h}=i,p=d[0],y=h[0],x=(t==null?void 0:t.lineHighlight)??sG;return C.jsx("g",k({},r,{children:u.flatMap(({ids:v})=>v.flatMap(m=>{const{xAxisKey:b=p,yAxisKey:S=y,stackedData:P,data:R,disableHighlight:$}=l[m];if($||R[a]==null)return null;const M=_s(c[b].scale),T=f[S].scale,_=c[b].data;if(_===void 0)throw new Error(`MUI X Charts: ${b===Ps?"The first `xAxis`":`The x-axis with id "${b}"`} should have data property to be able to display a line plot.`);const N=M(_[a]),I=T(P[a][1]);return C.jsx(x,k({id:m,color:l[m].color,x:N,y:I},n==null?void 0:n.lineHighlight),`${m}`)}))}))}const d$=w.forwardRef(function(t,n){const{xAxis:r,yAxis:o,series:i,width:s,height:a,margin:l,colors:u,dataset:c,sx:f,tooltip:d,onAxisClick:h,onAreaClick:p,onLineClick:y,onMarkClick:x,axisHighlight:g={x:"line"},disableLineItemHighlight:v,legend:m,grid:b,topAxis:S,leftAxis:P,rightAxis:R,bottomAxis:$,children:M,slots:T,slotProps:_,skipAnimation:N}=t,O=`${fi()}-clip-path`;return C.jsxs(a$,{ref:n,series:i.map(L=>k({disableHighlight:!!v,type:"line"},L)),width:s,height:a,margin:l,xAxis:r??[{id:Ps,scaleType:"point",data:Array.from({length:Math.max(...i.map(L=>(L.data??c??[]).length))},(L,A)=>A)}],yAxis:o,colors:u,dataset:c,sx:f,disableAxisListener:(d==null?void 0:d.trigger)!=="axis"&&(g==null?void 0:g.x)==="none"&&(g==null?void 0:g.y)==="none"&&!h,children:[h&&C.jsx(JV,{onAxisClick:h}),b&&C.jsx(mV,{vertical:b.vertical,horizontal:b.horizontal}),C.jsxs("g",{clipPath:`url(#${O})`,children:[C.jsx(FH,{slots:T,slotProps:_,onItemClick:p,skipAnimation:N}),C.jsx(qH,{slots:T,slotProps:_,onItemClick:y,skipAnimation:N})]}),C.jsx(yR,{topAxis:S,leftAxis:P,rightAxis:R,bottomAxis:$,slots:T,slotProps:_}),C.jsx(kR,k({},g)),C.jsx(tG,{slots:T,slotProps:_,onItemClick:x,skipAnimation:N}),C.jsx(lG,{slots:T,slotProps:_}),C.jsx(CR,k({},m,{slots:T,slotProps:_})),C.jsx(SR,k({},d,{slots:T,slotProps:_})),C.jsx(qU,{id:O}),M]})}),uG=["classes","color","cornerRadius","dataIndex","endAngle","highlightScope","id","innerRadius","isFaded","isHighlighted","onClick","outerRadius","paddingAngle","startAngle"];function cG(e){return ce("MuiPieArc",e)}de("MuiPieArc",["root","highlighted","faded"]);const dG=e=>{const{classes:t,id:n,isFaded:r,isHighlighted:o}=e,i={root:["root",`series-${n}`,o&&"highlighted",r&&"faded"]};return le(i,cG,t)},fG=G(mi.path,{name:"MuiPieArc",slot:"Root",overridesResolver:(e,t)=>t.arc})(({theme:e})=>({stroke:(e.vars||e).palette.background.paper,strokeWidth:1,strokeLinejoin:"round"}));function pG(e){const{classes:t,color:n,cornerRadius:r,dataIndex:o,endAngle:i,highlightScope:s,id:a,innerRadius:l,isFaded:u,isHighlighted:c,onClick:f,outerRadius:d,paddingAngle:h,startAngle:p}=e,y=W(e,uG),x={id:a,dataIndex:o,classes:t,color:n,isFaded:u,isHighlighted:c},g=dG(x),v=np(s);return C.jsx(fG,k({d:Os([p,i,h,l,d,r],(m,b,S,P,R,$)=>XP().cornerRadius($)({padAngle:S,startAngle:m,endAngle:b,innerRadius:P,outerRadius:R})),onClick:f,cursor:f?"pointer":"unset",ownerState:x,className:g.root},y,v({type:"pie",seriesId:a,dataIndex:o})))}const hG={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}},gG={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 f$(e){const{id:t,highlightScope:n,data:r,faded:o,highlighted:i,paddingAngle:s=0,innerRadius:a=0,arcLabelRadius:l,outerRadius:u,cornerRadius:c=0}=e,{item:f}=w.useContext(rr),d=w.useCallback(p=>{const y=rp(f,{type:"pie",seriesId:t,dataIndex:p},n),x=!y&&op(f,{type:"pie",seriesId:t,dataIndex:p},n);return{isHighlighted:y,isFaded:x}},[n,f,t]);return w.useMemo(()=>r.map((p,y)=>{const{isHighlighted:x,isFaded:g}=d(y),v=k({additionalRadius:0},g&&o||x&&i||{}),m=Math.max(0,Math.PI*(v.paddingAngle??s)/180),b=Math.max(0,v.innerRadius??a),S=Math.max(0,v.outerRadius??u+v.additionalRadius),P=v.cornerRadius??c,R=v.arcLabelRadius??l??(b+S)/2;return k({},p,v,{isFaded:g,isHighlighted:x,paddingAngle:m,innerRadius:b,outerRadius:S,cornerRadius:P,arcLabelRadius:R})}),[c,a,u,s,l,r,o,d,i])}const mG=["slots","slotProps","innerRadius","outerRadius","cornerRadius","paddingAngle","id","highlightScope","highlighted","faded","data","onItemClick","skipAnimation"],yG=["startAngle","endAngle","paddingAngle","innerRadius","arcLabelRadius","outerRadius","cornerRadius"];function vG(e){const{slots:t,slotProps:n,innerRadius:r=0,outerRadius:o,cornerRadius:i=0,paddingAngle:s=0,id:a,highlightScope:l,highlighted:u,faded:c={additionalRadius:-5},data:f,onItemClick:d,skipAnimation:h}=e,p=W(e,mG),y=f$({innerRadius:r,outerRadius:o,cornerRadius:i,paddingAngle:s,id:a,highlightScope:l,highlighted:u,faded:c,data:f}),x=r$(y,k({},hG,{immediate:h}));if(f.length===0)return null;const g=(t==null?void 0:t.pieArc)??pG;return C.jsx("g",k({},p,{children:x((v,m,b,S)=>{let{startAngle:P,endAngle:R,paddingAngle:$,innerRadius:M,outerRadius:T,cornerRadius:_}=v,N=W(v,yG);return C.jsx(g,k({startAngle:P,endAngle:R,paddingAngle:$,innerRadius:M,outerRadius:T,cornerRadius:_,style:N,id:a,color:m.color,dataIndex:S,highlightScope:l,isFaded:m.isFaded,isHighlighted:m.isHighlighted,onClick:d&&(I=>{d(I,{type:"pie",seriesId:a,dataIndex:S},m)})},n==null?void 0:n.pieArc))})}))}const xG=["id","classes","color","startAngle","endAngle","paddingAngle","arcLabelRadius","innerRadius","outerRadius","cornerRadius","formattedArcLabel","isHighlighted","isFaded","style"];function bG(e){return ce("MuiPieArcLabel",e)}de("MuiPieArcLabel",["root","highlighted","faded"]);const wG=e=>{const{classes:t,id:n,isFaded:r,isHighlighted:o}=e,i={root:["root",`series-${n}`,o&&"highlighted",r&&"faded"]};return le(i,bG,t)},SG=G(mi.text,{name:"MuiPieArcLabel",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({fill:(e.vars||e).palette.text.primary,textAnchor:"middle",dominantBaseline:"middle"})),sw=(e,t)=>(n,r,o,i,s)=>{if(!e)return 0;const[a,l]=XP().cornerRadius(s).centroid({padAngle:o,startAngle:n,endAngle:r,innerRadius:i,outerRadius:i});return t==="x"?a:l};function CG(e){const{id:t,classes:n,color:r,startAngle:o,endAngle:i,paddingAngle:s,arcLabelRadius:a,cornerRadius:l,formattedArcLabel:u,isHighlighted:c,isFaded:f,style:d}=e,h=W(e,xG),y=wG({id:t,classes:n,color:r,isFaded:f,isHighlighted:c});return C.jsx(SG,k({className:y.root},h,{style:k({x:Os([o,i,s,a,l],sw(u,"x")),y:Os([o,i,s,a,l],sw(u,"y"))},d),children:u}))}const kG=["arcLabel","arcLabelMinAngle","arcLabelRadius","cornerRadius","data","faded","highlighted","highlightScope","id","innerRadius","outerRadius","paddingAngle","skipAnimation","slotProps","slots"],PG=["startAngle","endAngle","paddingAngle","innerRadius","outerRadius","arcLabelRadius","cornerRadius"],RG=180/Math.PI;function $G(e,t,n){var o;return!e||(n.endAngle-n.startAngle)*RG{let{startAngle:P,endAngle:R,paddingAngle:$,innerRadius:M,outerRadius:T,arcLabelRadius:_,cornerRadius:N}=b,I=W(b,PG);return C.jsx(m,k({startAngle:P,endAngle:R,paddingAngle:$,innerRadius:M,outerRadius:T,arcLabelRadius:_,cornerRadius:N,style:I,id:u,color:S.color,isFaded:S.isFaded,isHighlighted:S.isHighlighted,formattedArcLabel:$G(t,n,S)},p==null?void 0:p.pieArcLabel))})}))}function MG(e){const{skipAnimation:t,slots:n,slotProps:r,onItemClick:o}=e,i=w.useContext(nr).pie,{left:s,top:a,width:l,height:u}=w.useContext(tr);if(i===void 0)return null;const c=Math.min(l,u)/2,{series:f,seriesOrder:d}=i;return C.jsxs("g",{children:[d.map(h=>{const{innerRadius:p,outerRadius:y,cornerRadius:x,paddingAngle:g,data:v,cx:m,cy:b,highlighted:S,faded:P,highlightScope:R}=f[h],$=Sr(y??c,c),M=Sr(p??0,c),T=Sr(m??"50%",l),_=Sr(b??"50%",u);return C.jsx("g",{transform:`translate(${s+T}, ${a+_})`,children:C.jsx(vG,{innerRadius:M,outerRadius:$,cornerRadius:x,paddingAngle:g,id:h,data:v,skipAnimation:t,highlightScope:R,highlighted:S,faded:P,onItemClick:o,slots:n,slotProps:r})},h)}),d.map(h=>{const{innerRadius:p,outerRadius:y,arcLabelRadius:x,cornerRadius:g,paddingAngle:v,arcLabel:m,arcLabelMinAngle:b,data:S,cx:P,cy:R,highlightScope:$}=f[h],M=Sr(y??c,c),T=Sr(p??0,c),_=x===void 0?(M+T)/2:Sr(x,c),N=Sr(P??"50%",l),I=Sr(R??"50%",u);return C.jsx("g",{transform:`translate(${s+N}, ${a+I})`,children:C.jsx(TG,{innerRadius:T,outerRadius:M??c,arcLabelRadius:_,cornerRadius:g,paddingAngle:v,id:h,data:S,skipAnimation:t,arcLabel:m,arcLabelMinAngle:b,highlightScope:$})},h)})]})}const EG=()=>_t().direction==="rtl",_G={top:5,bottom:5,left:5,right:100},IG={top:5,bottom:5,left:100,right:5};function p$(e){const{xAxis:t,yAxis:n,series:r,width:o,height:i,margin:s,colors:a,sx:l,tooltip:u={trigger:"item"},axisHighlight:c={x:"none",y:"none"},skipAnimation:f,legend:d,topAxis:h=null,leftAxis:p=null,rightAxis:y=null,bottomAxis:x=null,children:g,slots:v,slotProps:m,onItemClick:b}=e,S=EG(),P=k({},S?IG:_G,s),R=k({direction:"column",position:{vertical:"middle",horizontal:S?"left":"right"}},d);return C.jsxs(a$,{series:r.map($=>k({type:"pie"},$)),width:o,height:i,margin:P,xAxis:t??[{id:Ps,scaleType:"point",data:[...new Array(Math.max(...r.map($=>$.data.length)))].map(($,M)=>M)}],yAxis:n,colors:a,sx:l,disableAxisListener:(u==null?void 0:u.trigger)!=="axis"&&(c==null?void 0:c.x)==="none"&&(c==null?void 0:c.y)==="none",children:[C.jsx(yR,{topAxis:h,leftAxis:p,rightAxis:y,bottomAxis:x,slots:v,slotProps:m}),C.jsx(MG,{slots:v,slotProps:m,onItemClick:b,skipAnimation:f}),C.jsx(CR,k({},R,{slots:v,slotProps:m})),C.jsx(kR,k({},c)),C.jsx(SR,k({},u)),g]})}function Hs(){const{yearsStaying:e}=rt(u=>u.calculator.futurePredictions),{propertyPrice:t,depositPercentage:n,yearlyOwnershipCost:r,loanTerm:o,interestRate:i,buyingCostsPercentage:s,sellingCostsPercentage:a,propertyValueGrowthPercentage:l}=rt(u=>u.calculator.buying);return tB({yearsStaying:e||0,depositPercentage:n||0,initialPropertyValue:t||0,yearlyOwnershipCost:r||0,loanTerm:o||0,interestRate:i||0,propertyValueGrowthPercentage:l||0,buyingCostsPercentage:s||0,sellingCostsPercentage:a||0})}function ip(){const e=rt(n=>n.settings.locale),t=rt(n=>n.settings.currency);return n=>n.toLocaleString(e,{style:"currency",currency:t})}function OG(){const{t:e}=zn(),t=_t(),n=qk(),{createStateUpdateFc:r,stateSlice:o}=Zy("buying"),{propertyPrice:i,propertyValueGrowthPercentage:s,loanTerm:a,interestRate:l,buyingCostsPercentage:u,sellingCostsPercentage:c,yearlyOwnershipCost:f,depositPercentage:d}=o,h=i||0,p=d||0,y=ip(),x=h*(p/100),{mortgagePerMonth:g,sellingCost:v,buyingCost:m}=Hs(),b=rt($=>$.calculator.futurePredictions.yearsStaying),S=PP({deposit:x,initialPropertyValue:h}),{totalPrincipalPaid:P,totalInterestPaid:R}=kP({initialPropertyValue:h,depositPercentage:p,yearlyOwnershipCost:f||0,yearsStaying:b||0,loanTerm:a||0,interestRate:l||0,loanAmount:S||0,propertyValueGrowthPercentage:s||0,buyingCostsPercentage:u||0,sellingCostsPercentage:c||0,mortgagePerMonth:g});return C.jsxs(_f,{spacing:2,paddingBottom:2,sx:{textAlign:"left"},children:[C.jsx(Ki,{inputs:[{label:e("Property Price"),value:h,onChange:r("propertyPrice"),formatAsCurrency:!0},{label:e("Property Value Growth"),value:s,onChange:r("propertyValueGrowthPercentage"),InputProps:n(!0)}]}),C.jsx(Pe,{variant:"h4",children:e("Mortgage")}),C.jsx(Ki,{inputs:[{label:e("Loan Term"),value:a,onChange:r("loanTerm"),InputProps:If({endAdornment:"years"})},{label:e("Deposit percentage"),helperText:y(h*(p/100)),value:p,onChange:r("depositPercentage"),InputProps:n()},{label:e("Interest Rate"),InputProps:n(!0),value:l,onChange:r("interestRate")}]}),C.jsx(Pe,{variant:"body1",children:e("You would pay {amount} per month",{amount:y(g)})}),C.jsx($k,{container:!0,justifyContent:"center",children:P!==0&&R&&C.jsx(p$,{slotProps:{legend:{direction:"row",position:{vertical:"top",horizontal:"right"},padding:0}},colors:[t.palette.secondary.main,t.palette.primary.main],series:[{data:[{id:1,value:Math.round(R),label:e("Total interest paid")},{id:0,value:Math.round(P),label:e("Total principal paid")}],innerRadius:50,outerRadius:100,paddingAngle:5,cornerRadius:5}],width:500,height:300})}),C.jsx(Pe,{variant:"h4",children:e("Buying And Selling Costs")}),C.jsx(Ki,{inputs:[{label:e("Buying costs"),InputProps:n(),value:u,onChange:r("buyingCostsPercentage"),helperText:y(m)},{label:e("Selling costs"),InputProps:n(),value:c,onChange:r("sellingCostsPercentage"),helperText:y(v)}]}),C.jsx(Pe,{variant:"h4",children:e("Yearly costs")}),C.jsx(Ki,{inputs:[{label:e("Ownership costs"),helperText:e("helperText under ownership costs"),InputProps:n(!0),value:f,onChange:r("yearlyOwnershipCost"),formatAsCurrency:!0}]})]})}function AG({initialInvestment:e,investmentPerPeriod:t,numberOfPeriods:n,appreciationRate:r}){const o=[];let i=e,s=0,a=0;for(let l=1;l<=n;l++){a+=t,i+=t;const u=i;i=i*(1+r),s+=i-u,o.push(s)}return{totalAtTheEnd:i,monthlyValues:o,valueAdded:s,allMonthlyInvestment:a}}function L0(){const{mortgagePerMonth:e,deposit:t}=Hs(),{monthlyRent:n,alternativeInvestmentReturnPercentage:r,initialInvestment:o,investDifference:i}=rt(x=>x.calculator.renting),s=o||0,a=n||0,l=rt(x=>x.calculator.futurePredictions.yearsStaying),u=t-s>0?t-s:0,c=e-a>0?e-a:0,f={investDifference:i,totalAtTheEnd:0,valueAdded:0,allMonthlyInvestment:0,initialCash:0,monthlyValues:[],moneyAvailablePerMonth:c};if(!i)return f;const{totalAtTheEnd:d,monthlyValues:h,valueAdded:p,allMonthlyInvestment:y}=AG({initialInvestment:u,investmentPerPeriod:c*12,numberOfPeriods:l||0,appreciationRate:(r||0)/100});return f.totalAtTheEnd=d,f.monthlyValues=h,f.valueAdded=p,f.allMonthlyInvestment=y,f.initialCash=u,f}const NG=()=>{const e=_t(),{t}=zn(),{stateSlice:n,createStateUpdateFc:r}=Zy("renting"),{mortgagePerMonth:o,deposit:i}=Hs(),s=Uy(),a=ip(),l=qk(),u=L0(),c=[{label:t("Monthly Rent"),value:n.monthlyRent,onChange:r("monthlyRent"),formatAsCurrency:!0},{label:t("Deposit"),value:n.initialInvestment,onChange:r("initialInvestment"),formatAsCurrency:!0},{label:t("Rent Growth"),value:n.yearlyRentGrowth,onChange:r("yearlyRentGrowth"),InputProps:If({endAdornment:t("% per year")})}],f=o-(n.monthlyRent||0),d=i-(n.initialInvestment||0);return C.jsxs(C.Fragment,{children:[C.jsx(Ki,{inputs:c}),(f>0||d>0)&&C.jsxs(C.Fragment,{children:[C.jsx(Pk,{control:C.jsx(FL,{value:n.investDifference,defaultChecked:!0}),onChange:(h,p)=>s(q8(p)),label:t("Invest the difference between buying and renting?")}),n.investDifference&&C.jsxs(C.Fragment,{children:[C.jsx(Pe,{variant:"h6",children:t("Investing the difference")}),f>0&&C.jsxs(Pe,{variant:"body1",children:[t("If you decide to purchase a property, your monthly payments would be paying this much more per month"),C.jsx(Pe,{variant:"body1",component:"span",fontWeight:"bold",p:1,children:a(f)})]}),d>0&&C.jsxs(Pe,{variant:"body1",children:[t("The required deposit will be lower by"),C.jsx(Pe,{variant:"body1",component:"span",fontWeight:"bold",p:1,children:a(d)})]}),C.jsx(Pe,{variant:"body1",children:t("You can invest this money instead")}),C.jsx("br",{}),C.jsx(Ki,{inputs:[{label:t("Alternative investment return"),InputProps:l(!0),value:n.alternativeInvestmentReturnPercentage,onChange:r("alternativeInvestmentReturnPercentage")}]}),C.jsx($k,{container:!0,justifyContent:"center",children:C.jsx(p$,{slotProps:{legend:{direction:"row",position:{vertical:"top",horizontal:"right"}}},colors:[e.palette.secondary.main,e.palette.secondary.light,e.palette.primary.main],series:[{data:[{id:0,value:Math.round(u.allMonthlyInvestment),label:t("All monthly investments")},{id:1,value:Math.round(u.initialCash),label:t("Initial investment")},{id:2,value:Math.round(u.valueAdded),label:t("Interest income")}],innerRadius:50,outerRadius:100,paddingAngle:5,cornerRadius:5}],width:500,height:300})})]})]})]})};function LG(){const{t:e}=zn();return C.jsxs(_f,{spacing:3,children:[C.jsx(os,{title:e("Buying"),children:C.jsx(OG,{})}),C.jsx(os,{title:e("Renting"),children:C.jsx(NG,{})}),C.jsx("br",{})]})}const jG=xr(C.jsx("path",{d:"M12.89 11.1c-1.78-.59-2.64-.96-2.64-1.9 0-1.02 1.11-1.39 1.81-1.39 1.31 0 1.79.99 1.9 1.34l1.58-.67c-.15-.45-.82-1.92-2.54-2.24V5h-2v1.26c-2.48.56-2.49 2.86-2.49 2.96 0 2.27 2.25 2.91 3.35 3.31 1.58.56 2.28 1.07 2.28 2.03 0 1.13-1.05 1.61-1.98 1.61-1.82 0-2.34-1.87-2.4-2.09l-1.66.67c.63 2.19 2.28 2.78 2.9 2.96V19h2v-1.24c.4-.09 2.9-.59 2.9-3.22 0-1.39-.61-2.61-3.01-3.44M3 21H1v-6h6v2H4.52c1.61 2.41 4.36 4 7.48 4 4.97 0 9-4.03 9-9h2c0 6.08-4.92 11-11 11-3.72 0-7.01-1.85-9-4.67zm-2-9C1 5.92 5.92 1 12 1c3.72 0 7.01 1.85 9 4.67V3h2v6h-6V7h2.48C17.87 4.59 15.12 3 12 3c-4.97 0-9 4.03-9 9z"}),"CurrencyExchange"),DG=xr(C.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2m6.93 6h-2.95c-.32-1.25-.78-2.45-1.38-3.56 1.84.63 3.37 1.91 4.33 3.56M12 4.04c.83 1.2 1.48 2.53 1.91 3.96h-3.82c.43-1.43 1.08-2.76 1.91-3.96M4.26 14C4.1 13.36 4 12.69 4 12s.1-1.36.26-2h3.38c-.08.66-.14 1.32-.14 2 0 .68.06 1.34.14 2zm.82 2h2.95c.32 1.25.78 2.45 1.38 3.56-1.84-.63-3.37-1.9-4.33-3.56m2.95-8H5.08c.96-1.66 2.49-2.93 4.33-3.56C8.81 5.55 8.35 6.75 8.03 8M12 19.96c-.83-1.2-1.48-2.53-1.91-3.96h3.82c-.43 1.43-1.08 2.76-1.91 3.96M14.34 14H9.66c-.09-.66-.16-1.32-.16-2 0-.68.07-1.35.16-2h4.68c.09.65.16 1.32.16 2 0 .68-.07 1.34-.16 2m.25 5.56c.6-1.11 1.06-2.31 1.38-3.56h2.95c-.96 1.65-2.49 2.93-4.33 3.56M16.36 14c.08-.66.14-1.32.14-2 0-.68-.06-1.34-.14-2h3.38c.16.64.26 1.31.26 2s-.1 1.36-.26 2z"}),"Language"),FG=xr(C.jsx("path",{d:"M12 5V3.21c0-.45-.54-.67-.85-.35l-2.8 2.79c-.2.2-.2.51 0 .71l2.79 2.79c.32.31.86.09.86-.36V7c3.31 0 6 2.69 6 6 0 2.72-1.83 5.02-4.31 5.75-.42.12-.69.52-.69.95 0 .65.62 1.16 1.25.97C17.57 19.7 20 16.64 20 13c0-4.42-3.58-8-8-8m-6 8c0-1.34.44-2.58 1.19-3.59.3-.4.26-.95-.09-1.31-.42-.42-1.14-.38-1.5.1-1 1.34-1.6 3-1.6 4.8 0 3.64 2.43 6.7 5.75 7.67.63.19 1.25-.32 1.25-.97 0-.43-.27-.83-.69-.95C7.83 18.02 6 15.72 6 13"}),"RestartAltRounded"),zG=xr(C.jsx("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6"}),"Settings");function aw(e){const{onClose:t,value:n,open:r,options:o,title:i,...s}=e,[a,l]=w.useState(n),u=w.useRef(null);w.useEffect(()=>{r||l(n)},[n,r]);const c=()=>{u.current!=null&&u.current.focus()},f=()=>{t()},d=()=>{t(a)},h=p=>{l(p.target.value)};return C.jsxs(bk,{sx:{"& .MuiDialog-paper":{width:"80%",maxHeight:435}},maxWidth:"xs",TransitionProps:{onEntering:c},open:r,...s,children:[C.jsx(wk,{children:i}),C.jsx(b4,{dividers:!0,children:C.jsx(zF,{ref:u,"aria-label":"ringtone",name:"ringtone",value:a,onChange:h,children:o.map(p=>w.createElement(Pk,{...p,key:p.key,control:C.jsx(NF,{})}))})}),C.jsxs(d4,{children:[C.jsx($g,{autoFocus:!0,onClick:f,children:"Cancel"}),C.jsx($g,{onClick:d,children:"Ok"})]})]})}const BG={locale:void 0,currency:void 0,theme:"auto"},j0=Df({name:"settings",initialState:BG,reducers:{setLocale:(e,t)=>{e.locale=t.payload},setCurrency:(e,t)=>{e.currency=t.payload},setTheme:(e,t)=>{e.theme=t.payload}}}),{setLocale:UG,setCurrency:VG,setTheme:WG}=j0.actions;j0.reducer;const HG="Settings",GG="Renting",KG="Buying",YG="Mortgage",qG="years",XG="Deposit",QG="{{rentingOrBuying}} for {{yearsNumber}} {{yearOrYears}}",ZG="years",JG="year",eK="Rent",tK="Total",nK="Currency",rK="Language",oK="Interest",iK="Mode",sK="Auto",aK="Light",lK="Dark",uK={Settings:HG," per year":" per year",Renting:GG,Buying:KG,Mortgage:YG,"Property Price":"Property Price","Property Value Growth":"Property Value Growth","Loan Term":"Loan Term","Deposit percentage":"Deposit Percentage","Interest Rate":"Interest Rate","You would pay {amount} per month":"You would pay {{amount}} per month","Total principal paid":"Total Principal Paid","Total interest paid":"Total Interest Paid","Buying And Selling Costs":"Buying and Selling Costs","Buying costs":"Buying Costs","Selling costs":"Selling Costs","Yearly costs":"Yearly Costs","Ownership costs":"Ownership Costs","helperText under ownership costs":"Property tax, maintenance, home insurance...","Property Investment Calculator":"Property Investment Calculator","This calculator is designed to help you make an informed decision about whether to rent or buy a property":"This calculator is designed to help you make an informed decision about whether to rent or buy a property.","How long do you plan to stay in the property?":"How long do you plan to stay in the property?",years:qG,"Monthly Rent":"Monthly Rent",Deposit:XG,"Rent Growth":"Rent Growth","% per year":"% per year","Invest the difference between buying and renting?":"Invest the difference between buying and renting?","Investing the difference":"Investing the difference","If you decide to purchase a property, your monthly payments would be paying this much more per month":"If you decide to purchase a property, your monthly payments would be this much higher per month","The required deposit will be lower by":"The required deposit will be lower by","You can invest this money instead":"You can invest this money instead","Alternative investment return":"Alternative Investment Return","Interest paid":"Interest Paid","Principal paid":"Principal Paid","Increase in property value":"Increase in Property Value","Ownership cost":"Ownership Cost","Original property value":"Original Property Value","Total property value increase":"Total Property Value Increase","Paying off remaining debt":"Paying off Remaining Debt",labelForYears:QG,yearsPlural:ZG,yearSingular:JG,"Buying/renting is cheaper by":"{{buyingOrRenting}} is cheaper by {{difference}}",Rent:eK,"Investment returns":"Investment Returns","Alternative investment":"Alternative Investment","Initial investment":"Initial Investment","All monthly investments":"All Monthly Investments","Total at the end":"Total at the End","Deposit returned":"Deposit Returned",Total:tK,"Mortgage paid":"Mortgage Paid","Mortgage details":"Mortgage Details","Buying and selling costs":"Buying and Selling Costs","Buying and selling details":"Buying and Selling Details","Total ownership costs":"Total Ownership Costs","Capital from selling":"Capital from Selling","Capital from selling details":"Details of Capital from Selling",Currency:nK,"Start over":"Start Over","Select currency":"Select Currency",Language:rK,"Select language":"Select Language","Monthly costs of buying":"Monthly Costs of Buying",Interest:oK,"Interest income":"Interest income",Mode:iK,Auto:sK,Light:aK,Dark:lK,"Mortgage vs Renting value":"Mortgage vs Renting Value","Buying and renting is equally expensive":"Buying and renting is equally expensive"},cK="Einstellungen",dK="Mieten",fK="Hypothek",pK="Kaufen",hK="Jahre",gK="Kaution",mK="{{rentingOrBuying}} für {{yearsNumber}} {{yearOrYears}}",yK="Jahre",vK="Jahr",xK="Miete",bK="Gesamt",wK="Währung",SK="Sprache",CK="Zinsen",kK="Modus",PK="Auto",RK="Hell",$K="Dunkel",TK={Settings:cK," per year":" pro Jahr",Renting:dK,Mortgage:fK,Buying:pK,"Property Price":"Immobilienpreis","Property Value Growth":"Wertsteigerung der Immobilie","Loan Term":"Kreditlaufzeit","Deposit percentage":"Anzahlungsprozentsatz","Interest Rate":"Zinssatz","You would pay {amount} per month":"Sie würden {{amount}} pro Monat zahlen","Total principal paid":"Gesamte gezahlte Hauptsumme","Total interest paid":"Gesamte gezahlte Zinsen","Buying And Selling Costs":"Kauf- und Verkaufskosten","Buying costs":"Kaufkosten","Selling costs":"Verkaufskosten","Yearly costs":"Jährliche Kosten","Ownership costs":"Besitzkosten","helperText under ownership costs":"Grundsteuer, Wartung, Wohnungsversicherung...","Property Investment Calculator":"Immobilien-Investitionsrechner","This calculator is designed to help you make an informed decision about whether to rent or buy a property":"Dieser Rechner soll Ihnen helfen, eine fundierte Entscheidung zu treffen, ob Sie eine Immobilie mieten oder kaufen sollten.","How long do you plan to stay in the property?":"Wie lange planen Sie, in der Immobilie zu bleiben?",years:hK,"Monthly Rent":"Monatliche Miete",Deposit:gK,"Rent Growth":"Mietwachstum","% per year":"% pro Jahr","Invest the difference between buying and renting?":"Die Differenz zwischen Kaufen und Mieten investieren?","Investing the difference":"Die Differenz investieren","If you decide to purchase a property, your monthly payments would be paying this much more per month":"Wenn Sie sich entscheiden, eine Immobilie zu kaufen, würden Ihre monatlichen Zahlungen monatlich um diesen Betrag höher sein","The required deposit will be lower by":"Die erforderliche Anzahlung wird um diesen Betrag niedriger sein","You can invest this money instead":"Sie könnten dieses Geld stattdessen investieren","Alternative investment return":"Alternativer Investitionsertrag","Interest paid":"Gezahlte Zinsen","Principal paid":"Gezahlte Hauptsumme","Increase in property value":"Steigerung des Immobilienwertes","Ownership cost":"Besitzkosten","Original property value":"Ursprünglicher Immobilienwert","Total property value increase":"Gesamtsteigerung des Immobilienwerts","Paying off remaining debt":"Verbleibende Schulden abzahlen",labelForYears:mK,yearsPlural:yK,yearSingular:vK,"Buying/renting is cheaper by":"{{buyingOrRenting}} ist günstiger um {{difference}}",Rent:xK,"Investment returns":"Investitionsrenditen","Alternative investment":"Alternative Investition","Initial investment":"Erstinvestition","All monthly investments":"Alle monatlichen Investitionen","Total at the end":"Gesamt am Ende","Deposit returned":"Kaution zurück",Total:bK,"Mortgage paid":"Hypothek bezahlt","Mortgage details":"Hypothekendetails","Buying and selling costs":"Kauf- und Verkaufskosten","Buying and selling details":"Details zu Kauf und Verkauf","Total ownership costs":"Gesamte Besitzkosten","Capital from selling":"Kapital aus dem Verkauf","Capital from selling details":"Details zum Kapital aus dem Verkauf",Currency:wK,"Start over":"Neu starten","Select currency":"Währung auswählen",Language:SK,"Select language":"Sprache auswählen","Monthly costs of buying":"Monatliche Kosten des Kaufens",Interest:CK,"Interest income":"Zinseinkommen",Mode:kK,Auto:PK,Light:RK,Dark:$K,"Mortgage vs Renting value":"Hypothek vs Mietwert","Buying and renting is equally expensive":"Kaufen und Mieten ist gleich teuer"},MK="Nastavení",EK="Pronájem",_K="Hypotéka",IK="Nákup",OK="let",AK="Záloha",NK="{{rentingOrBuying}} po dobu {{yearsNumber}} {{yearOrYears}}",LK="roků",jK="rok",DK="Nájem",FK="Celkem",zK="Měna",BK="Jazyk",UK="Úrok",VK="Režim",WK="Automatický",HK="Světlý",GK="Tmavý",KK={Settings:MK," per year":" ročně",Renting:EK,Mortgage:_K,Buying:IK,"Property Price":"Cena nemovitosti","Property Value Growth":"Růst hodnoty nemovitosti","Loan Term":"Doba trvání úvěru","Deposit percentage":"Procento zálohy","Interest Rate":"Úroková sazba","You would pay {amount} per month":"Platili byste {{amount}} měsíčně","Total principal paid":"Celkem zaplacená jistina","Total interest paid":"Celkem zaplacené úroky","Buying And Selling Costs":"Náklady na koupi a prodej","Buying costs":"Náklady na koupi","Selling costs":"Náklady na prodej","Yearly costs":"Roční náklady","Ownership costs":"Náklady na vlastnictví","helperText under ownership costs":"Daň z nemovitosti, údržba, pojištění domácnosti...","Property Investment Calculator":"Kalkulačka investic do nemovitostí","This calculator is designed to help you make an informed decision about whether to rent or buy a property":"Tato kalkulačka je navržena, aby vám pomohla učinit informované rozhodnutí, zda si nemovitost pronajmout nebo koupit.","How long do you plan to stay in the property?":"Jak dlouho plánujete zůstat v nemovitosti?",years:OK,"Monthly Rent":"Měsíční nájem",Deposit:AK,"Rent Growth":"Růst nájmu","% per year":"% ročně","Invest the difference between buying and renting?":"Investovat rozdíl mezi kupováním a pronájmem?","Investing the difference":"Investování rozdílu","If you decide to purchase a property, your monthly payments would be paying this much more per month":"Pokud se rozhodnete koupit nemovitost, vaše měsíční platby by byly o toto vyšší","The required deposit will be lower by":"Požadovaná záloha bude nižší o","You can invest this money instead":"Tuto částku byste mohli investovat.","Alternative investment return":"Návratnost alternativní investice","Interest paid":"Zaplacené úroky","Principal paid":"Zaplacená jistina","Increase in property value":"Zvýšení hodnoty nemovitosti","Ownership cost":"Náklady na vlastnictví","Original property value":"Původní hodnota nemovitosti","Total property value increase":"Celkové zvýšení hodnoty nemovitosti","Paying off remaining debt":"Splacení zbývajícího dluhu",labelForYears:NK,yearsPlural:LK,yearSingular:jK,"Buying/renting is cheaper by":"{{buyingOrRenting}} je levnější o {{difference}}",Rent:DK,"Investment returns":"Výnosy z investic","Alternative investment":"Alternativní investice","Initial investment":"Počáteční investice","All monthly investments":"Všechny měsíční investice","Total at the end":"Celkem na konci","Deposit returned":"Vrácená záloha",Total:FK,"Mortgage paid":"Splacená hypotéka","Mortgage details":"Detaily hypotéky","Buying and selling costs":"Náklady na koupi a prodej","Buying and selling details":"Detaily koupě a prodeje","Total ownership costs":"Celkové náklady na vlastnictví","Capital from selling":"Kapitál z prodeje","Capital from selling details":"Detaily kapitálu z prodeje",Currency:zK,"Start over":"Začít od začátku","Select currency":"Vyberte měnu",Language:BK,"Select language":"Vyberte jazyk","Monthly costs of buying":"Měsíční náklady na koupi",Interest:UK,"Interest income":"Příjem z úroků",Mode:VK,Auto:WK,Light:HK,Dark:GK,"Mortgage vs Renting value":"Hodnota hypotéky vs nájem","Buying and renting is equally expensive":"Koupě a nájem jsou stejně drahé"},YK="Indstillinger",qK="Leje",XK="Køb",QK="Pant",ZK="år",JK="Udbetaling",eY="{{rentingOrBuying}} i {{yearsNumber}} {{yearOrYears}}",tY="år",nY="år",rY="Leje",oY="Total",iY="Valuta",sY="Sprog",aY="Rente",lY="Tilstand",uY="Auto",cY="Lys",dY="Mørk",fY={Settings:YK," per year":" om året",Renting:qK,Buying:XK,Mortgage:QK,"Property Price":"Ejendomspris","Property Value Growth":"Vækst i ejendomsværdi","Loan Term":"Låneperiode","Deposit percentage":"Udbetalingsprocent","Interest Rate":"Rentesats","You would pay {amount} per month":"Du ville betale {{amount}} om måneden","Total principal paid":"Samlet hovedstol betalt","Total interest paid":"Samlede renter betalt","Buying And Selling Costs":"Købs- og salgsomkostninger","Buying costs":"Købsomkostninger","Selling costs":"Salgsomkostninger","Yearly costs":"Årlige omkostninger","Ownership costs":"Ejerskabsomkostninger","helperText under ownership costs":"Ejendomsskat, vedligeholdelse, boligforsikring...","Property Investment Calculator":"Ejendomsinvestering kalkulator","This calculator is designed to help you make an informed decision about whether to rent or buy a property":"Denne kalkulator er designet til at hjælpe dig med at træffe en informeret beslutning om, hvorvidt du skal leje eller købe en ejendom.","How long do you plan to stay in the property?":"Hvor længe planlægger du at bo i ejendommen?",years:ZK,"Monthly Rent":"Månedlig husleje",Deposit:JK,"Rent Growth":"Huslejestigning","% per year":"% om året","Invest the difference between buying and renting?":"Investere forskellen mellem at købe og leje?","Investing the difference":"Investering af forskellen","If you decide to purchase a property, your monthly payments would be paying this much more per month":"Hvis du beslutter dig for at købe en ejendom, vil dine månedlige betalinger være så meget højere om måneden","The required deposit will be lower by":"Det nødvendige depositum vil være lavere med","You can invest this money instead":"Du kan investere disse penge i stedet","Alternative investment return":"Alternativ investeringsafkast","Interest paid":"Betalte renter","Principal paid":"Betalt hovedstol","Increase in property value":"Stigning i ejendomsværdi","Ownership cost":"Ejerskabsomkostninger","Original property value":"Oprindelig ejendomsværdi","Total property value increase":"Samlet stigning i ejendomsværdi","Paying off remaining debt":"Afbetaling af restgæld",labelForYears:eY,yearsPlural:tY,yearSingular:nY,"Buying/renting is cheaper by":"{{buyingOrRenting}} er billigere med {{difference}}",Rent:rY,"Investment returns":"Investeringsafkast","Alternative investment":"Alternativ investering","Initial investment":"Startinvestering","All monthly investments":"Alle månedlige investeringer","Total at the end":"Total ved slutningen","Deposit returned":"Depositum returneret",Total:oY,"Mortgage paid":"Betalt pant","Mortgage details":"Pantedetaljer","Buying and selling costs":"Købs- og salgsomkostninger","Buying and selling details":"Detaljer om køb og salg","Total ownership costs":"Samlede ejerskabsomkostninger","Capital from selling":"Kapital fra salg","Capital from selling details":"Detaljer om kapital fra salg",Currency:iY,"Start over":"Start forfra","Select currency":"Vælg valuta",Language:sY,"Select language":"Vælg sprog","Monthly costs of buying":"Månedlige omkostninger ved køb",Interest:aY,"Interest income":"Renteindtægter",Mode:lY,Auto:uY,Light:cY,Dark:dY,"Mortgage vs Renting value":"Pant kontra lejeværdi","Buying and renting is equally expensive":"Køb og leje er lige dyrt"},pY="Inställningar",hY="Hyra",gY="Köp",mY="Bolån",yY="år",vY="Insättning",xY="{{rentingOrBuying}} i {{yearsNumber}} {{yearOrYears}}",bY="år",wY="år",SY="Hyra",CY="Totalt",kY="Valuta",PY="Språk",RY="Ränta",$Y="Läge",TY="Auto",MY="Ljus",EY="Mörk",_Y={Settings:pY," per year":" per år",Renting:hY,Buying:gY,Mortgage:mY,"Property Price":"Fastighetspris","Property Value Growth":"Värdeökning på fastigheten","Loan Term":"Lånets löptid","Deposit percentage":"Insättningsprocent","Interest Rate":"Räntesats","You would pay {amount} per month":"Du skulle betala {{amount}} per månad","Total principal paid":"Totalt betald huvudsumma","Total interest paid":"Totalt betalda räntor","Buying And Selling Costs":"Kostnader för köp och försäljning","Buying costs":"Köpkostnader","Selling costs":"Försäljningskostnader","Yearly costs":"Årliga kostnader","Ownership costs":"Ägandekostnader","helperText under ownership costs":"Fastighetsskatt, underhåll, hemförsäkring...","Property Investment Calculator":"Fastighetsinvesteringskalkylator","This calculator is designed to help you make an informed decision about whether to rent or buy a property":"Denna kalkylator är utformad för att hjälpa dig att fatta ett välgrundat beslut om att hyra eller köpa en fastighet.","How long do you plan to stay in the property?":"Hur länge planerar du att bo i fastigheten?",years:yY,"Monthly Rent":"Månadshyra",Deposit:vY,"Rent Growth":"Hyresökning","% per year":"% per år","Invest the difference between buying and renting?":"Investera skillnaden mellan att köpa och hyra?","Investing the difference":"Investering av skillnaden","If you decide to purchase a property, your monthly payments would be paying this much more per month":"Om du beslutar att köpa en fastighet, skulle dina månatliga betalningar vara så mycket högre per månad","The required deposit will be lower by":"Den nödvändiga insättningen kommer att vara lägre med","You can invest this money instead":"Du kan investera dessa pengar istället","Alternative investment return":"Alternativ investeringsavkastning","Interest paid":"Betalda räntor","Principal paid":"Betald huvudsumma","Increase in property value":"Ökning av fastighetsvärdet","Ownership cost":"Ägandekostnad","Original property value":"Ursprungligt fastighetsvärde","Total property value increase":"Total ökning av fastighetsvärdet","Paying off remaining debt":"Betalning av återstående skuld",labelForYears:xY,yearsPlural:bY,yearSingular:wY,"Buying/renting is cheaper by":"{{buyingOrRenting}} är billigare med {{difference}}",Rent:SY,"Investment returns":"Investeringsavkastning","Alternative investment":"Alternativ investering","Initial investment":"Initial investering","All monthly investments":"Alla månatliga investeringar","Total at the end":"Totalt i slutet","Deposit returned":"Insättning återlämnad",Total:CY,"Mortgage paid":"Betald bolån","Mortgage details":"Bolåndetaljer","Buying and selling costs":"Kostnader för köp och försäljning","Buying and selling details":"Detaljer om köp och försäljning","Total ownership costs":"Totala ägandekostnader","Capital from selling":"Kapital från försäljning","Capital from selling details":"Detaljer om kapital från försäljning",Currency:kY,"Start over":"Börja om","Select currency":"Välj valuta",Language:PY,"Select language":"Välj språk","Monthly costs of buying":"Månadskostnader för köp",Interest:RY,"Interest income":"Ränteinkomst",Mode:$Y,Auto:TY,Light:MY,Dark:EY,"Mortgage vs Renting value":"Bolån vs Hyra värde","Buying and renting is equally expensive":"Köp och hyra är lika dyrt"},IY="Setări",OY="Închiriere",AY="Cumpărare",NY="Ipotecă",LY="ani",jY="Depozit",DY="{{rentingOrBuying}} pe {{yearsNumber}} de {{yearOrYears}}",FY="ani",zY="an",BY="Chirie",UY="Total",VY="Monedă",WY="Limba",HY="Dobândă",GY="Mod",KY="Auto",YY="Luminos",qY="Întunecat",XY={Settings:IY," per year":" pe an",Renting:OY,Buying:AY,Mortgage:NY,"Property Price":"Prețul proprietății","Property Value Growth":"Creșterea valorii proprietății","Loan Term":"Durata împrumutului","Deposit percentage":"Procentul depozitului","Interest Rate":"Rata dobânzii","You would pay {amount} per month":"Ai plăti {{amount}} pe lună","Total principal paid":"Total principal plătit","Total interest paid":"Total dobânzi plătite","Buying And Selling Costs":"Costuri de cumpărare și vânzare","Buying costs":"Costuri de cumpărare","Selling costs":"Costuri de vânzare","Yearly costs":"Costuri anuale","Ownership costs":"Costuri de proprietate","helperText under ownership costs":"Impozit pe proprietate, întreținere, asigurarea locuinței...","Property Investment Calculator":"Calculator de investiții imobiliare","This calculator is designed to help you make an informed decision about whether to rent or buy a property":"Acest calculator este conceput pentru a te ajuta să iei o decizie informată dacă să închiriezi sau să cumperi o proprietate.","How long do you plan to stay in the property?":"Cât timp plănuiești să stai în proprietate?",years:LY,"Monthly Rent":"Chirie lunară",Deposit:jY,"Rent Growth":"Creșterea chiriei","% per year":"% pe an","Invest the difference between buying and renting?":"Investești diferența dintre cumpărare și închiriere?","Investing the difference":"Investirea diferenței","If you decide to purchase a property, your monthly payments would be paying this much more per month":"Dacă decizi să cumperi o proprietate, plățile tale lunare ar fi cu atât mai mari pe lună","The required deposit will be lower by":"Depozitul necesar va fi mai mic cu","You can invest this money instead":"Ai putea investi acești bani în schimb","Alternative investment return":"Randamentul investiției alternative","Interest paid":"Dobândă plătită","Principal paid":"Principal plătit","Increase in property value":"Creștere a valorii proprietății","Ownership cost":"Costul proprietății","Original property value":"Valoarea originală a proprietății","Total property value increase":"Creșterea totală a valorii proprietății","Paying off remaining debt":"Plata datoriei rămase",labelForYears:DY,yearsPlural:FY,yearSingular:zY,"Buying/renting is cheaper by":"{{buyingOrRenting}} este mai ieftin cu {{difference}}",Rent:BY,"Investment returns":"Randamentele investiției","Alternative investment":"Investiție alternativă","Initial investment":"Investiție inițială","All monthly investments":"Toate investițiile lunare","Total at the end":"Total la sfârșit","Deposit returned":"Depozit returnat",Total:UY,"Mortgage paid":"Ipotecă plătită","Mortgage details":"Detalii ipotecă","Buying and selling costs":"Costuri de cumpărare și vânzare","Buying and selling details":"Detalii despre cumpărare și vânzare","Total ownership costs":"Costuri totale de proprietate","Capital from selling":"Capital din vânzare","Capital from selling details":"Detalii capital din vânzare",Currency:VY,"Start over":"Începe din nou","Select currency":"Selectează moneda",Language:WY,"Select language":"Selectează limba","Monthly costs of buying":"Costuri lunare de cumpărare",Interest:HY,"Interest income":"Venit din dobândă",Mode:GY,Auto:KY,Light:YY,Dark:qY,"Mortgage vs Renting value":"Valoarea ipotecii vs închiriere","Buying and renting is equally expensive":"Cumpărarea și închirierea sunt la fel de scumpe"},h$=[{code:"cz",name:"Čeština",file:KK},{code:"de",name:"Deutsch",file:TK},{code:"dk",name:"Dansk",file:fY},{code:"en",name:"English",file:uK},{code:"ro",name:"Română",file:XY},{code:"se",name:"Svenska",file:_Y}];function QY(e){const{t,i18n:n}=zn(),{onClose:r,open:o}=e,i=rt(g=>g.settings.theme),[s,a]=w.useState(!1),[l,u]=w.useState(!1),c=Uy(),f=rt(g=>g.settings.locale),d=rt(g=>g.settings.currency),h=()=>g=>{g&&(c(VG(g)),f&&r()),a(!1)},p=()=>g=>{g&&(n.changeLanguage(g),c(UG(g)),r()),u(!1)},y=[{key:"language",name:t("Language"),value:f,icon:C.jsx(DG,{})},{key:"currency",name:t("Currency"),value:d,icon:C.jsx(jG,{})},{key:"startOver",name:t("Start over"),icon:C.jsx(FG,{}),hide:!d||!f}],x=g=>{switch(g){case"language":u(!0);break;case"currency":a(!0);break;case"startOver":localStorage.removeItem("state"),localStorage.removeItem("i18nextLng"),window.location.reload();break}};return C.jsxs(bk,{onClose:()=>r(),open:o,slotProps:{backdrop:{sx:!f||!d?{backgroundColor:"#fff"}:{}}},children:[C.jsx(wk,{children:t("Settings")}),C.jsxs(_k,{sx:{pt:0},children:[y.map(({name:g,value:v,icon:m,hide:b,key:S})=>!b&&C.jsx(rx,{disableGutters:!0,children:C.jsxs(fD,{onClick:()=>x(S),children:[C.jsx(ED,{children:m}),C.jsx(ix,{primary:g,secondary:v})]})},g)),C.jsx(ix,{primary:t("Mode")}),C.jsx(rx,{children:C.jsxs(N6,{color:"secondary",value:i,exclusive:!0,onChange:(g,v)=>c(WG(v)),"aria-label":"Platform",children:[C.jsx(Yp,{value:"auto",children:t("Auto")}),C.jsx(Yp,{value:"light",children:t("Light")}),C.jsx(Yp,{value:"dark",children:t("Dark")})]})})]}),C.jsx(aw,{id:"currency",keepMounted:!1,value:d,title:t("Select currency"),open:s,onClose:h(),options:lP.map(({locale:g,abbreviation:v,prefix:m,suffix:b})=>({label:v+` (${m}${b})`,value:v,key:g}))}),C.jsx(aw,{id:"language",keepMounted:!1,value:f,title:t("Select language"),open:l,onClose:p(),options:h$.map(({code:g,name:v})=>({label:v,value:g,key:g}))})]})}const g$=bf({palette:{mode:"light",primary:{main:"#094fec"},secondary:{main:"#c0c0c0"},error:{main:"#ee0000"}},typography:{h1:{fontFamily:"DM Serif Display",fontSize:"4rem",fontWeight:100},fontSize:16,fontFamily:"Jost, sans-serif",h2:{fontSize:"6rem",fontWeight:500},h3:{fontSize:"2rem",fontWeight:600},h4:{fontSize:"1.5rem",fontWeight:500},caption:{fontSize:"1.2rem",fontWeight:400}},components:{MuiInputBase:{styleOverrides:{input:{fontSize:"1.6rem"}}},MuiInputLabel:{styleOverrides:{root:{fontSize:"1.3rem"}}},MuiTooltip:{styleOverrides:{tooltip:{backgroundColor:"white",color:"black",boxShadow:"0px 4px 4px rgba(0, 0, 0, 0.25)"}}},MuiStack:{styleOverrides:{root:{textAlign:"left"}}},MuiPaper:{styleOverrides:{root:{padding:"15px",margin:0,textAlign:"left",borderRadius:"6px"}}},MuiTypography:{styleOverrides:{h1:{wordBreak:"break-word"},h2:{wordBreak:"break-word"},h3:{wordBreak:"break-word"},h4:{wordBreak:"break-word"},h5:{wordBreak:"break-word"},h6:{wordBreak:"break-word"}}}}}),ZY=bf({...g$,palette:{mode:"dark",primary:{main:"#094fec"},secondary:{main:"#2f2f2f"},error:{main:"#b60f0f"},background:{default:"#121212",paper:"#1e1e1e"}}});function JY({startingMonthlyRent:e,yearlyRentGrowth:t,yearsStaying:n,deposit:r}){let o=0;const i=[];let s=e;const a=t/100;for(let l=0;l{const{monthlyRent:e,yearlyRentGrowth:t,initialInvestment:n}=rt(u=>u.calculator.renting),{yearsStaying:r}=rt(u=>u.calculator.futurePredictions),o=L0(),{yearValueChangeTotals:i,rentTotal:s}=JY({startingMonthlyRent:e||0,yearlyRentGrowth:t||0,yearsStaying:r||0,deposit:n||0}),a=i.map((u,c)=>(o.monthlyValues[c]||0)+u),l=o.valueAdded-s;return{rentTotal:s,totalRenting:l,yearlyValuesRenting:a}};function eq(){const e=_t(),{t}=zn(),{yearValueChangeTotals:n}=Hs(),{yearlyValuesRenting:r}=D0(),o={id:"mortgage",label:t("Mortgage"),data:n.map(l=>Math.round(l)),color:e.palette.primary.main},i={id:"rent",label:t("Rent"),data:r.map(l=>Math.round(l)),color:e.palette.primary.light};if(n.length===0)return C.jsx(C.Fragment,{});const s={height:250,legend:{hidden:!0},margin:{top:5}},a=n.map((l,u)=>new Date(new Date().setFullYear(new Date().getFullYear()+u)).getFullYear());return C.jsxs(C.Fragment,{children:[C.jsxs(Pe,{variant:"caption",children:[t("Mortgage vs Renting value"),":"]}),C.jsx(d$,{xAxis:[{valueFormatter:l=>l.toString(),data:a}],series:[o,i],...s})]})}function tq(){const{t:e}=zn(),t=ip(),{totalBuying:n}=Hs(),{totalRenting:r}=D0(),o=n>r,i=o?r-n:n-r;return C.jsxs(Ef,{sx:{textAlign:"left"},children:[i!==0?C.jsx(Pe,{variant:"h3",gutterBottom:!0,children:e("Buying/renting is cheaper by",{buyingOrRenting:e(o?"Buying":"Renting"),difference:t(Math.abs(i))})}):C.jsx(Pe,{variant:"h3",gutterBottom:!0,children:e("Buying and renting is equally expensive")}),C.jsx(eq,{})]})}function Yi({rows:e,heading:t,description:n,chart:r}){const o=ip(),i=_t(),s=KI(i.breakpoints.up("lg"));return C.jsxs(C.Fragment,{children:[C.jsx(Pe,{variant:"h5",gutterBottom:!0,children:t}),n&&C.jsx(Pe,{variant:"body1",children:n}),r,C.jsx(_f,{children:e.map((a,l)=>{if(a==="divider")return C.jsx(Q1,{},l);const{label:u,value:c,tooltip:f}=a,d=C.jsxs(Pe,{variant:"body1",color:c<0?i.palette.error.main:void 0,children:[u,": ",o(c||0)]});return C.jsxs(Ef,{children:[f?C.jsx(f6,{title:f,placement:s?"left":"bottom",sx:{cursor:"help"},children:d}):d,l===e.length-1?null:C.jsx(Q1,{sx:{margin:"3px 0"}})]},u)})})]})}function nq({graphData:e}){const t=_t(),{t:n}=zn(),r={interestPaid:{translation:n("Interest paid"),color:t.palette.secondary.main},principalPaid:{translation:n("Principal paid"),color:t.palette.primary.main},increaseInPropertyValue:{translation:n("Increase in property value"),color:t.palette.primary.main},ownershipCost:{translation:n("Ownership cost"),color:t.palette.secondary.light},buyingCosts:{translation:n("Buying costs"),color:t.palette.secondary.light},sellingCosts:{translation:n("Selling costs"),color:t.palette.secondary.light}};if(e.length===0)return C.jsx(C.Fragment,{});const o=Object.keys(e[0]).reduce((a,l)=>{if(!rq(l))return a;const u={id:l,label:r[l].translation,data:e.map(c=>c[l]),stack:"total",area:!0,showMark:!1,color:r[l].color};return a.push(u),a},[]),i={height:250,legend:{hidden:!0},margin:{top:5}},s=e.map((a,l)=>new Date(new Date().setFullYear(new Date().getFullYear()+l)).getFullYear());return e.length===0?C.jsx(C.Fragment,{}):C.jsxs(C.Fragment,{children:[C.jsxs(Pe,{variant:"caption",children:[n("Monthly costs of buying"),":"]}),C.jsx(d$,{xAxis:[{valueFormatter:a=>a.toString(),data:s}],series:o,...i})]})}const rq=e=>{switch(e){case"interestPaid":case"ownershipCost":case"buyingCosts":case"sellingCosts":case"principalPaid":return!0;case"increaseInPropertyValue":return!1;default:throw new Error("Invalid key")}};function oq(){const{t:e}=zn(),{yearsStaying:t}=rt(x=>x.calculator.futurePredictions),{totalInterestPaid:n,remainingBalance:r,totalPropertyValueIncrease:o,totalOwnershipCosts:i,yearValueChanges:s,buyingCost:a,sellingCost:l,totalBuying:u,totalMortgagePaid:c,totalPrincipalPaid:f,deposit:d,initialPropertyValue:h}=Hs(),p=[{label:e("Original property value"),value:h},{label:e("Total property value increase"),value:o},{label:e("Paying off remaining debt"),value:-1*r}],y=p.reduce((x,g)=>g==="divider"?x:x+g.value,0);return C.jsx(Yi,{chart:C.jsx(nq,{graphData:s}),heading:e("labelForYears",{rentingOrBuying:e("Buying"),yearsNumber:t||0,yearOrYears:e(t!==1?"yearsPlural":"yearSingular")}),rows:[{label:e("Deposit"),value:-1*d},{label:e("Mortgage paid"),value:-c,tooltip:C.jsx(Yi,{rows:[{label:e("Total interest paid"),value:-1*n},{label:e("Total principal paid"),value:-1*f}],heading:e("Mortgage details")})},{label:e("Buying and selling costs"),value:-1*(a+l),tooltip:C.jsx(Yi,{rows:[{label:e("Buying costs"),value:-1*a},{label:e("Selling costs"),value:-1*l}],heading:e("Buying and selling details")})},{label:e("Total ownership costs"),value:-1*i},{label:e("Capital from selling"),value:y,tooltip:C.jsx(Yi,{heading:e("Capital from selling details"),rows:p})},"divider",{label:e("Total"),value:u}]})}function iq(){const{t:e}=zn(),{yearsStaying:t}=rt(a=>a.calculator.futurePredictions),{initialInvestment:n}=rt(a=>a.calculator.renting),r=n||0,{totalRenting:o,rentTotal:i}=D0(),s=L0();return C.jsx(Yi,{heading:e("labelForYears",{rentingOrBuying:e("Renting"),yearsNumber:t||0,yearOrYears:e(t!==1?"yearsPlural":"yearSingular")}),rows:[{label:e("Deposit"),value:-1*r},{label:e("Rent"),value:-1*i},{label:e("Investment returns"),value:s.valueAdded,tooltip:C.jsx(Yi,{heading:e("Alternative investment"),rows:[{label:e("Initial investment"),value:-1*s.initialCash},{label:e("All monthly investments"),value:-1*s.allMonthlyInvestment},"divider",{label:e("Total at the end"),value:s.totalAtTheEnd}]})},{label:e("Deposit returned"),value:r},"divider",{label:e("Total"),value:o}]})}function sq(){return C.jsxs(Tr,{container:!0,spacing:2,justifyContent:"stretch",children:[C.jsx(Tr,{xs:12,children:C.jsx(os,{children:C.jsx(tq,{})})}),C.jsx(Tr,{xs:12,children:C.jsx(os,{children:C.jsx(oq,{})})}),C.jsx(Tr,{xs:12,children:C.jsx(os,{children:C.jsx(iq,{})})})]})}const aq=()=>{const{stateSlice:e,createStateUpdateFc:t}=Zy("futurePredictions"),{t:n}=zn();return C.jsxs(C.Fragment,{children:[C.jsx(Pe,{variant:"h1",gutterBottom:!0,children:n("Property Investment Calculator")}),C.jsx(Pe,{variant:"body1",gutterBottom:!0,children:n("This calculator is designed to help you make an informed decision about whether to rent or buy a property")}),C.jsx(Pe,{variant:"body1",gutterBottom:!0,children:n("How long do you plan to stay in the property?")}),C.jsx(uP,{value:e.yearsStaying,InputProps:If({endAdornment:n("years")}),onChange:t("yearsStaying")})]})};function lq(){const{t:e}=zn(),t=rt(u=>u.settings.theme),[n,r]=w.useState(!1),o=rt(u=>u.settings.locale),i=rt(u=>u.settings.currency),s=window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches;!n&&(!o||!i)&&r(!0);const l=(t==="auto"?s?"dark":"light":t)==="dark"?ZY:g$;return C.jsx(QA,{theme:l,children:C.jsxs(Ef,{sx:{backgroundColor:l.palette.secondary.light},children:[o&&i&&C.jsxs(Tr,{container:!0,spacing:2,justifyContent:"center",sx:{maxWidth:"1200px",margin:"0 auto"},children:[C.jsx(Tr,{xs:12,children:C.jsx(os,{children:C.jsx(aq,{})})}),C.jsx(Tr,{sm:12,lg:8,children:C.jsx(LG,{})}),C.jsx(Tr,{sm:12,lg:4,children:C.jsx(sq,{})}),C.jsx(Tr,{sm:12,mt:0,children:C.jsx($g,{fullWidth:!0,sx:{mb:2},onClick:()=>r(!0),variant:l.palette.mode==="dark"?"contained":"outlined",color:l.palette.mode==="dark"?"secondary":"primary",endIcon:C.jsx(zG,{}),children:e("Settings")})})]}),C.jsx(QY,{open:n,onClose:()=>r(!1)})]})})}function uq(e){try{const t=JSON.stringify(e);localStorage.setItem("state",t)}catch(t){console.warn(t)}}function cq(){try{const e=localStorage.getItem("state");return e===null?void 0:JSON.parse(e)}catch(e){console.warn(e);return}}const dq=Wy({buying:qy.reducer,renting:Xy.reducer,futurePredictions:Qy.reducer}),fq=cq(),pq=Wy({calculator:dq,settings:j0.reducer}),am=R8({reducer:pq,preloadedState:fq});am.subscribe(()=>uq(am.getState()));const hq={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class bd{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||hq,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),r=0;r{this.observers[r]||(this.observers[r]=new Map);const o=this.observers[r].get(n)||0;this.observers[r].set(n,o+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o{let[a,l]=s;for(let u=0;u{let[a,l]=s;for(let u=0;u{e=r,t=o});return n.resolve=e,n.reject=t,n}function lw(e){return e==null?"":""+e}function gq(e,t,n){e.forEach(r=>{t[r]&&(n[r]=t[r])})}const mq=/###/g;function Ya(e,t,n){function r(a){return a&&a.indexOf("###")>-1?a.replace(mq,"."):a}function o(){return!e||typeof e=="string"}const i=typeof t!="string"?t:t.split(".");let s=0;for(;s":">",'"':""","'":"'","/":"/"};function bq(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,t=>xq[t]):e}class wq{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const n=this.regExpMap.get(t);if(n!==void 0)return n;const r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}}const Sq=[" ",",","?","!",";"],Cq=new wq(20);function kq(e,t,n){t=t||"",n=n||"";const r=Sq.filter(s=>t.indexOf(s)<0&&n.indexOf(s)<0);if(r.length===0)return!0;const o=Cq.getRegExp(`(${r.map(s=>s==="?"?"\\?":s).join("|")})`);let i=!o.test(e);if(!i){const s=e.indexOf(n);s>0&&!o.test(e.substring(0,s))&&(i=!0)}return i}function lm(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let o=e;for(let i=0;i-1&&l0?e.replace("_","-"):e}class cw extends sp{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const i=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,s=o.ignoreJSONStructure!==void 0?o.ignoreJSONStructure:this.options.ignoreJSONStructure;let a;t.indexOf(".")>-1?a=t.split("."):(a=[t,n],r&&(Array.isArray(r)?a.push(...r):typeof r=="string"&&i?a.push(...r.split(i)):a.push(r)));const l=wd(this.data,a);return!l&&!n&&!r&&t.indexOf(".")>-1&&(t=a[0],n=a[1],r=a.slice(2).join(".")),l||!s||typeof r!="string"?l:lm(this.data&&this.data[t]&&this.data[t][n],r,i)}addResource(t,n,r,o){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const s=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator;let a=[t,n];r&&(a=a.concat(s?r.split(s):r)),t.indexOf(".")>-1&&(a=t.split("."),o=n,n=a[1]),this.addNamespaces(n),uw(this.data,a,o),i.silent||this.emit("added",t,n,r,o)}addResources(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const i in r)(typeof r[i]=="string"||Object.prototype.toString.apply(r[i])==="[object Array]")&&this.addResource(t,n,i,r[i],{silent:!0});o.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,o,i){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},a=[t,n];t.indexOf(".")>-1&&(a=t.split("."),o=r,r=n,n=a[1]),this.addNamespaces(n);let l=wd(this.data,a)||{};s.skipCopy||(r=JSON.parse(JSON.stringify(r))),o?m$(l,r,i):l={...l,...r},uw(this.data,a,l),s.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,n)}:this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(o=>n[o]&&Object.keys(n[o]).length>0)}toJSON(){return this.data}}var y$={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,o){return e.forEach(i=>{this.processors[i]&&(t=this.processors[i].process(t,n,r,o))}),t}};const dw={};class Cd extends sp{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),gq(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=dr.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const r=this.resolve(t,n);return r&&r.res!==void 0}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const o=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let i=n.ns||this.options.defaultNS||[];const s=r&&t.indexOf(r)>-1,a=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!kq(t,r,o);if(s&&!a){const l=t.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:t,namespaces:i};const u=t.split(r);(r!==o||r===o&&this.options.ns.indexOf(u[0])>-1)&&(i=u.shift()),t=u.join(o)}return typeof i=="string"&&(i=[i]),{key:t,namespaces:i}}translate(t,n,r){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const o=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:s,namespaces:a}=this.extractFromKey(t[t.length-1],n),l=a[a.length-1],u=n.lng||this.language,c=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&u.toLowerCase()==="cimode"){if(c){const b=n.nsSeparator||this.options.nsSeparator;return o?{res:`${l}${b}${s}`,usedKey:s,exactUsedKey:s,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:`${l}${b}${s}`}return o?{res:s,usedKey:s,exactUsedKey:s,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:s}const f=this.resolve(t,n);let d=f&&f.res;const h=f&&f.usedKey||s,p=f&&f.exactUsedKey||s,y=Object.prototype.toString.apply(d),x=["[object Number]","[object Function]","[object RegExp]"],g=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject;if(v&&d&&(typeof d!="string"&&typeof d!="boolean"&&typeof d!="number")&&x.indexOf(y)<0&&!(typeof g=="string"&&y==="[object Array]")){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const b=this.options.returnedObjectHandler?this.options.returnedObjectHandler(h,d,{...n,ns:a}):`key '${s} (${this.language})' returned an object instead of string.`;return o?(f.res=b,f.usedParams=this.getUsedParamsDetails(n),f):b}if(i){const b=y==="[object Array]",S=b?[]:{},P=b?p:h;for(const R in d)if(Object.prototype.hasOwnProperty.call(d,R)){const $=`${P}${i}${R}`;S[R]=this.translate($,{...n,joinArrays:!1,ns:a}),S[R]===$&&(S[R]=d[R])}d=S}}else if(v&&typeof g=="string"&&y==="[object Array]")d=d.join(g),d&&(d=this.extendTranslation(d,t,n,r));else{let b=!1,S=!1;const P=n.count!==void 0&&typeof n.count!="string",R=Cd.hasDefaultValue(n),$=P?this.pluralResolver.getSuffix(u,n.count,n):"",M=n.ordinal&&P?this.pluralResolver.getSuffix(u,n.count,{ordinal:!1}):"",T=P&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),_=T&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${$}`]||n[`defaultValue${M}`]||n.defaultValue;!this.isValidLookup(d)&&R&&(b=!0,d=_),this.isValidLookup(d)||(S=!0,d=s);const I=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&S?void 0:d,O=R&&_!==d&&this.options.updateMissing;if(S||b||O){if(this.logger.log(O?"updateKey":"missingKey",u,l,s,O?_:d),i){const E=this.resolve(s,{...n,keySeparator:!1});E&&E.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let L=[];const A=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&A&&A[0])for(let E=0;E{const V=R&&F!==d?F:I;this.options.missingKeyHandler?this.options.missingKeyHandler(E,l,D,V,O,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(E,l,D,V,O,n),this.emit("missingKey",E,l,D,d)};this.options.saveMissing&&(this.options.saveMissingPlurals&&P?L.forEach(E=>{const D=this.pluralResolver.getSuffixes(E,n);T&&n[`defaultValue${this.options.pluralSeparator}zero`]&&D.indexOf(`${this.options.pluralSeparator}zero`)<0&&D.push(`${this.options.pluralSeparator}zero`),D.forEach(F=>{j([E],s+F,n[`defaultValue${F}`]||_)})}):j(L,s,_))}d=this.extendTranslation(d,t,n,f,r),S&&d===s&&this.options.appendNamespaceToMissingKey&&(d=`${l}:${s}`),(S||b)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?d=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${s}`:s,b?d:void 0):d=this.options.parseMissingKeyHandler(d))}return o?(f.res=d,f.usedParams=this.getUsedParamsDetails(n),f):d}extendTranslation(t,n,r,o,i){var s=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const u=typeof t=="string"&&(r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let c;if(u){const d=t.match(this.interpolator.nestingRegexp);c=d&&d.length}let f=r.replace&&typeof r.replace!="string"?r.replace:r;if(this.options.interpolation.defaultVariables&&(f={...this.options.interpolation.defaultVariables,...f}),t=this.interpolator.interpolate(t,f,r.lng||this.language,r),u){const d=t.match(this.interpolator.nestingRegexp),h=d&&d.length;c1&&arguments[1]!==void 0?arguments[1]:{},r,o,i,s,a;return typeof t=="string"&&(t=[t]),t.forEach(l=>{if(this.isValidLookup(r))return;const u=this.extractFromKey(l,n),c=u.key;o=c;let f=u.namespaces;this.options.fallbackNS&&(f=f.concat(this.options.fallbackNS));const d=n.count!==void 0&&typeof n.count!="string",h=d&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),p=n.context!==void 0&&(typeof n.context=="string"||typeof n.context=="number")&&n.context!=="",y=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);f.forEach(x=>{this.isValidLookup(r)||(a=x,!dw[`${y[0]}-${x}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(a)&&(dw[`${y[0]}-${x}`]=!0,this.logger.warn(`key "${o}" for languages "${y.join(", ")}" won't get resolved as namespace "${a}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),y.forEach(g=>{if(this.isValidLookup(r))return;s=g;const v=[c];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(v,c,g,x,n);else{let b;d&&(b=this.pluralResolver.getSuffix(g,n.count,n));const S=`${this.options.pluralSeparator}zero`,P=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(d&&(v.push(c+b),n.ordinal&&b.indexOf(P)===0&&v.push(c+b.replace(P,this.options.pluralSeparator)),h&&v.push(c+S)),p){const R=`${c}${this.options.contextSeparator}${n.context}`;v.push(R),d&&(v.push(R+b),n.ordinal&&b.indexOf(P)===0&&v.push(R+b.replace(P,this.options.pluralSeparator)),h&&v.push(R+S))}}let m;for(;m=v.pop();)this.isValidLookup(r)||(i=m,r=this.getResource(g,x,m,n))}))})}),{res:r,usedKey:o,exactUsedKey:i,usedLng:s,usedNS:a}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,r,o):this.resourceStore.getResource(t,n,r,o)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&typeof t.replace!="string";let o=r?t.replace:t;if(r&&typeof t.count<"u"&&(o.count=t.count),this.options.interpolation.defaultVariables&&(o={...this.options.interpolation.defaultVariables,...o}),!r){o={...o};for(const i of n)delete o[i]}return o}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&t[r]!==void 0)return!0;return!1}}function vh(e){return e.charAt(0).toUpperCase()+e.slice(1)}class fw{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=dr.create("languageUtils")}getScriptPartFromCode(t){if(t=Sd(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=Sd(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(typeof t=="string"&&t.indexOf("-")>-1){const n=["hans","hant","latn","cyrl","cans","mong","arab"];let r=t.split("-");return this.options.lowerCaseLng?r=r.map(o=>o.toLowerCase()):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=vh(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=vh(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=vh(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const o=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(o))&&(n=o)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const o=this.getLanguagePartFromCode(r);if(this.isSupportedCode(o))return n=o;n=this.options.supportedLngs.find(i=>{if(i===o)return i;if(!(i.indexOf("-")<0&&o.indexOf("-")<0)&&(i.indexOf("-")>0&&o.indexOf("-")<0&&i.substring(0,i.indexOf("-"))===o||i.indexOf(o)===0&&o.length>1))return i})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),typeof t=="string"&&(t=[t]),Object.prototype.toString.apply(t)==="[object Array]")return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes(n||this.options.fallbackLng||[],t),o=[],i=s=>{s&&(this.isSupportedCode(s)?o.push(s):this.logger.warn(`rejecting language code not found in supportedLngs: ${s}`))};return typeof t=="string"&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&i(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&i(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&i(this.getLanguagePartFromCode(t))):typeof t=="string"&&i(this.formatLanguageCode(t)),r.forEach(s=>{o.indexOf(s)<0&&i(this.formatLanguageCode(s))}),o}}let Pq=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],Rq={1:function(e){return+(e>1)},2:function(e){return+(e!=1)},3:function(e){return 0},4:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},5:function(e){return e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},6:function(e){return e==1?0:e>=2&&e<=4?1:2},7:function(e){return e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},8:function(e){return e==1?0:e==2?1:e!=8&&e!=11?2:3},9:function(e){return+(e>=2)},10:function(e){return e==1?0:e==2?1:e<7?2:e<11?3:4},11:function(e){return e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3},12:function(e){return+(e%10!=1||e%100==11)},13:function(e){return+(e!==0)},14:function(e){return e==1?0:e==2?1:e==3?2:3},15:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2},16:function(e){return e%10==1&&e%100!=11?0:e!==0?1:2},17:function(e){return e==1||e%10==1&&e%100!=11?0:1},18:function(e){return e==0?0:e==1?1:2},19:function(e){return e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3},20:function(e){return e==1?0:e==0||e%100>0&&e%100<20?1:2},21:function(e){return e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0},22:function(e){return e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3}};const $q=["v1","v2","v3"],Tq=["v4"],pw={zero:0,one:1,two:2,few:3,many:4,other:5};function Mq(){const e={};return Pq.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:Rq[t.fc]}})}),e}class Eq{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=dr.create("pluralResolver"),(!this.options.compatibilityJSON||Tq.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=Mq()}addRule(t,n){this.rules[t]=n}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(Sd(t==="dev"?"en":t),{type:n.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,r).map(o=>`${n}${o}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((o,i)=>pw[o]-pw[i]).map(o=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${o}`):r.numbers.map(o=>this.getSuffix(t,o,n)):[]}getSuffix(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const o=this.getRule(t,r);return o?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${o.select(n)}`:this.getSuffixRetroCompatible(o,n):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,n){const r=t.noAbs?t.plurals(n):t.plurals(Math.abs(n));let o=t.numbers[r];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(o===2?o="plural":o===1&&(o=""));const i=()=>this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString();return this.options.compatibilityJSON==="v1"?o===1?"":typeof o=="number"?`_plural_${o.toString()}`:i():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?i():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!$q.includes(this.options.compatibilityJSON)}}function hw(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=vq(e,t,n);return!i&&o&&typeof n=="string"&&(i=lm(e,n,r),i===void 0&&(i=lm(t,n,r))),i}class _q{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=dr.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(n=>n),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const n=t.interpolation;this.escape=n.escape!==void 0?n.escape:bq,this.escapeValue=n.escapeValue!==void 0?n.escapeValue:!0,this.useRawValueToEscape=n.useRawValueToEscape!==void 0?n.useRawValueToEscape:!1,this.prefix=n.prefix?Ti(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?Ti(n.suffix):n.suffixEscaped||"}}",this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||",",this.unescapePrefix=n.unescapeSuffix?"":n.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":n.unescapeSuffix||"",this.nestingPrefix=n.nestingPrefix?Ti(n.nestingPrefix):n.nestingPrefixEscaped||Ti("$t("),this.nestingSuffix=n.nestingSuffix?Ti(n.nestingSuffix):n.nestingSuffixEscaped||Ti(")"),this.nestingOptionsSeparator=n.nestingOptionsSeparator?n.nestingOptionsSeparator:n.nestingOptionsSeparator||",",this.maxReplaces=n.maxReplaces?n.maxReplaces:1e3,this.alwaysFormat=n.alwaysFormat!==void 0?n.alwaysFormat:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,r)=>n&&n.source===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,n,r,o){let i,s,a;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(p){return p.replace(/\$/g,"$$$$")}const c=p=>{if(p.indexOf(this.formatSeparator)<0){const v=hw(n,l,p,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(v,void 0,r,{...o,...n,interpolationkey:p}):v}const y=p.split(this.formatSeparator),x=y.shift().trim(),g=y.join(this.formatSeparator).trim();return this.format(hw(n,l,x,this.options.keySeparator,this.options.ignoreJSONStructure),g,r,{...o,...n,interpolationkey:x})};this.resetRegExp();const f=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,d=o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:p=>u(p)},{regex:this.regexp,safeValue:p=>this.escapeValue?u(this.escape(p)):u(p)}].forEach(p=>{for(a=0;i=p.regex.exec(t);){const y=i[1].trim();if(s=c(y),s===void 0)if(typeof f=="function"){const g=f(t,i,o);s=typeof g=="string"?g:""}else if(o&&Object.prototype.hasOwnProperty.call(o,y))s="";else if(d){s=i[0];continue}else this.logger.warn(`missed to pass in variable ${y} for interpolating ${t}`),s="";else typeof s!="string"&&!this.useRawValueToEscape&&(s=lw(s));const x=p.safeValue(s);if(t=t.replace(i[0],x),d?(p.regex.lastIndex+=s.length,p.regex.lastIndex-=i[0].length):p.regex.lastIndex=0,a++,a>=this.maxReplaces)break}}),t}nest(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o,i,s;function a(l,u){const c=this.nestingOptionsSeparator;if(l.indexOf(c)<0)return l;const f=l.split(new RegExp(`${c}[ ]*{`));let d=`{${f[1]}`;l=f[0],d=this.interpolate(d,s);const h=d.match(/'/g),p=d.match(/"/g);(h&&h.length%2===0&&!p||p.length%2!==0)&&(d=d.replace(/'/g,'"'));try{s=JSON.parse(d),u&&(s={...u,...s})}catch(y){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,y),`${l}${c}${d}`}return s.defaultValue&&s.defaultValue.indexOf(this.prefix)>-1&&delete s.defaultValue,l}for(;o=this.nestingRegexp.exec(t);){let l=[];s={...r},s=s.replace&&typeof s.replace!="string"?s.replace:s,s.applyPostProcessor=!1,delete s.defaultValue;let u=!1;if(o[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(o[1])){const c=o[1].split(this.formatSeparator).map(f=>f.trim());o[1]=c.shift(),l=c,u=!0}if(i=n(a.call(this,o[1].trim(),s),s),i&&o[0]===t&&typeof i!="string")return i;typeof i!="string"&&(i=lw(i)),i||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${t}`),i=""),u&&(i=l.reduce((c,f)=>this.format(c,f,r.lng,{...r,interpolationkey:o[1].trim()}),i.trim())),t=t.replace(o[0],i),this.regexp.lastIndex=0}return t}}function Iq(e){let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const o=r[1].substring(0,r[1].length-1);t==="currency"&&o.indexOf(":")<0?n.currency||(n.currency=o.trim()):t==="relativetime"&&o.indexOf(":")<0?n.range||(n.range=o.trim()):o.split(";").forEach(s=>{if(!s)return;const[a,...l]=s.split(":"),u=l.join(":").trim().replace(/^'+|'+$/g,"");n[a.trim()]||(n[a.trim()]=u),u==="false"&&(n[a.trim()]=!1),u==="true"&&(n[a.trim()]=!0),isNaN(u)||(n[a.trim()]=parseInt(u,10))})}return{formatName:t,formatOptions:n}}function Mi(e){const t={};return function(r,o,i){const s=o+JSON.stringify(i);let a=t[s];return a||(a=e(Sd(o),i),t[s]=a),a(r)}}class Oq{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=dr.create("formatter"),this.options=t,this.formats={number:Mi((n,r)=>{const o=new Intl.NumberFormat(n,{...r});return i=>o.format(i)}),currency:Mi((n,r)=>{const o=new Intl.NumberFormat(n,{...r,style:"currency"});return i=>o.format(i)}),datetime:Mi((n,r)=>{const o=new Intl.DateTimeFormat(n,{...r});return i=>o.format(i)}),relativetime:Mi((n,r)=>{const o=new Intl.RelativeTimeFormat(n,{...r});return i=>o.format(i,r.range||"day")}),list:Mi((n,r)=>{const o=new Intl.ListFormat(n,{...r});return i=>o.format(i)})},this.init(t)}init(t){const r=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=Mi(n)}format(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return n.split(this.formatSeparator).reduce((a,l)=>{const{formatName:u,formatOptions:c}=Iq(l);if(this.formats[u]){let f=a;try{const d=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{},h=d.locale||d.lng||o.locale||o.lng||r;f=this.formats[u](a,h,{...c,...o,...d})}catch(d){this.logger.warn(d)}return f}else this.logger.warn(`there was no format function for ${u}`);return a},t)}}function Aq(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}class Nq extends sp{constructor(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=o,this.logger=dr.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=o.maxParallelReads||10,this.readingCalls=0,this.maxRetries=o.maxRetries>=0?o.maxRetries:5,this.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(r,o.backend,o)}queueLoad(t,n,r,o){const i={},s={},a={},l={};return t.forEach(u=>{let c=!0;n.forEach(f=>{const d=`${u}|${f}`;!r.reload&&this.store.hasResourceBundle(u,f)?this.state[d]=2:this.state[d]<0||(this.state[d]===1?s[d]===void 0&&(s[d]=!0):(this.state[d]=1,c=!1,s[d]===void 0&&(s[d]=!0),i[d]===void 0&&(i[d]=!0),l[f]===void 0&&(l[f]=!0)))}),c||(a[u]=!0)}),(Object.keys(i).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(i),pending:Object.keys(s),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(l)}}loaded(t,n,r){const o=t.split("|"),i=o[0],s=o[1];n&&this.emit("failedLoading",i,s,n),r&&this.store.addResourceBundle(i,s,r,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2;const a={};this.queue.forEach(l=>{yq(l.loaded,[i],s),Aq(l,t),n&&l.errors.push(n),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(u=>{a[u]||(a[u]={});const c=l.loaded[u];c.length&&c.forEach(f=>{a[u][f]===void 0&&(a[u][f]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(l=>!l.done)}read(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,s=arguments.length>5?arguments[5]:void 0;if(!t.length)return s(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:o,wait:i,callback:s});return}this.readingCalls++;const a=(u,c)=>{if(this.readingCalls--,this.waitingReads.length>0){const f=this.waitingReads.shift();this.read(f.lng,f.ns,f.fcName,f.tried,f.wait,f.callback)}if(u&&c&&o{this.read.call(this,t,n,r,o+1,i*2,s)},i);return}s(u,c)},l=this.backend[r].bind(this.backend);if(l.length===2){try{const u=l(t,n);u&&typeof u.then=="function"?u.then(c=>a(null,c)).catch(a):a(null,u)}catch(u){a(u)}return}return l(t,n,a)}prepareLoading(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();typeof t=="string"&&(t=this.languageUtils.toResolveHierarchy(t)),typeof n=="string"&&(n=[n]);const i=this.queueLoad(t,n,r,o);if(!i.toLoad.length)return i.pending.length||o(),null;i.toLoad.forEach(s=>{this.loadOne(s)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=t.split("|"),o=r[0],i=r[1];this.read(o,i,"read",void 0,void 0,(s,a)=>{s&&this.logger.warn(`${n}loading namespace ${i} for language ${o} failed`,s),!s&&a&&this.logger.log(`${n}loaded namespace ${i} for language ${o}`,a),this.loaded(t,s,a)})}saveMissing(t,n,r,o,i){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},a=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if(this.backend&&this.backend.create){const l={...s,isUpdate:i},u=this.backend.create.bind(this.backend);if(u.length<6)try{let c;u.length===5?c=u(t,n,r,o,l):c=u(t,n,r,o),c&&typeof c.then=="function"?c.then(f=>a(null,f)).catch(a):a(null,c)}catch(c){a(c)}else u(t,n,r,o,a,l)}!t||!t[0]||this.store.addResource(t[0],n,r,o)}}}function gw(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){let n={};if(typeof t[1]=="object"&&(n=t[1]),typeof t[1]=="string"&&(n.defaultValue=t[1]),typeof t[2]=="string"&&(n.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){const r=t[3]||t[2];Object.keys(r).forEach(o=>{n[o]=r[o]})}return n},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function mw(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function Qu(){}function Lq(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})}class zl extends sp{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=mw(t),this.services={},this.logger=dr,this.modules={external:[]},Lq(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(r=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(typeof n.ns=="string"?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const o=gw();this.options={...o,...this.options,...mw(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...o.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);function i(c){return c?typeof c=="function"?new c:c:null}if(!this.options.isClone){this.modules.logger?dr.init(i(this.modules.logger),this.options):dr.init(null,this.options);let c;this.modules.formatter?c=this.modules.formatter:typeof Intl<"u"&&(c=Oq);const f=new fw(this.options);this.store=new cw(this.options.resources,this.options);const d=this.services;d.logger=dr,d.resourceStore=this.store,d.languageUtils=f,d.pluralResolver=new Eq(f,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),c&&(!this.options.interpolation.format||this.options.interpolation.format===o.interpolation.format)&&(d.formatter=i(c),d.formatter.init(d,this.options),this.options.interpolation.format=d.formatter.format.bind(d.formatter)),d.interpolator=new _q(this.options),d.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},d.backendConnector=new Nq(i(this.modules.backend),d.resourceStore,d,this.options),d.backendConnector.on("*",function(h){for(var p=arguments.length,y=new Array(p>1?p-1:0),x=1;x1?p-1:0),x=1;x{h.init&&h.init(this)})}if(this.format=this.options.interpolation.format,r||(r=Qu),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const c=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);c.length>0&&c[0]!=="dev"&&(this.options.lng=c[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(c=>{this[c]=function(){return t.store[c](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(c=>{this[c]=function(){return t.store[c](...arguments),t}});const l=ya(),u=()=>{const c=(f,d)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),l.resolve(d),r(f,d)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return c(null,this.t.bind(this));this.changeLanguage(this.options.lng,c)};return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),l}loadResources(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Qu;const o=typeof t=="string"?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(o&&o.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const i=[],s=a=>{if(!a||a==="cimode")return;this.services.languageUtils.toResolveHierarchy(a).forEach(u=>{u!=="cimode"&&i.indexOf(u)<0&&i.push(u)})};o?s(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(l=>s(l)),this.options.preload&&this.options.preload.forEach(a=>s(a)),this.services.backendConnector.load(i,this.options.ns,a=>{!a&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(a)})}else r(null)}reloadResources(t,n,r){const o=ya();return t||(t=this.languages),n||(n=this.options.ns),r||(r=Qu),this.services.backendConnector.reload(t,n,i=>{o.resolve(),r(i)}),o}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&y$.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let n=0;n-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}changeLanguage(t,n){var r=this;this.isLanguageChangingTo=t;const o=ya();this.emit("languageChanging",t);const i=l=>{this.language=l,this.languages=this.services.languageUtils.toResolveHierarchy(l),this.resolvedLanguage=void 0,this.setResolvedLanguage(l)},s=(l,u)=>{u?(i(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,o.resolve(function(){return r.t(...arguments)}),n&&n(l,function(){return r.t(...arguments)})},a=l=>{!t&&!l&&this.services.languageDetector&&(l=[]);const u=typeof l=="string"?l:this.services.languageUtils.getBestMatchFromCodes(l);u&&(this.language||i(u),this.translator.language||this.translator.changeLanguage(u),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(u)),this.loadResources(u,c=>{s(c,u)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(t),o}getFixedT(t,n,r){var o=this;const i=function(s,a){let l;if(typeof a!="object"){for(var u=arguments.length,c=new Array(u>2?u-2:0),f=2;f`${l.keyPrefix}${d}${p}`):h=l.keyPrefix?`${l.keyPrefix}${d}${s}`:s,o.t(h,l)};return typeof t=="string"?i.lng=t:i.lngs=t,i.ns=n,i.keyPrefix=r,i}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],o=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const s=(a,l)=>{const u=this.services.backendConnector.state[`${a}|${l}`];return u===-1||u===2};if(n.precheck){const a=n.precheck(this,s);if(a!==void 0)return a}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||s(r,t)&&(!o||s(i,t)))}loadNamespaces(t,n){const r=ya();return this.options.ns?(typeof t=="string"&&(t=[t]),t.forEach(o=>{this.options.ns.indexOf(o)<0&&this.options.ns.push(o)}),this.loadResources(o=>{r.resolve(),n&&n(o)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=ya();typeof t=="string"&&(t=[t]);const o=this.options.preload||[],i=t.filter(s=>o.indexOf(s)<0);return i.length?(this.options.preload=o.concat(i),this.loadResources(s=>{r.resolve(),n&&n(s)}),r):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=this.services&&this.services.languageUtils||new fw(gw());return n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new zl(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Qu;const r=t.forkResourceStore;r&&delete t.forkResourceStore;const o={...this.options,...t,isClone:!0},i=new zl(o);return(t.debug!==void 0||t.prefix!==void 0)&&(i.logger=i.logger.clone(t)),["store","services","language"].forEach(a=>{i[a]=this[a]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},r&&(i.store=new cw(this.store.data,o),i.services.resourceStore=i.store),i.translator=new Cd(i.services,o),i.translator.on("*",function(a){for(var l=arguments.length,u=new Array(l>1?l-1:0),c=1;c0){var a=o.maxAge-0;if(Number.isNaN(a))throw new Error("maxAge should be a Number");s+="; Max-Age=".concat(Math.floor(a))}if(o.domain){if(!vw.test(o.domain))throw new TypeError("option domain is invalid");s+="; Domain=".concat(o.domain)}if(o.path){if(!vw.test(o.path))throw new TypeError("option path is invalid");s+="; Path=".concat(o.path)}if(o.expires){if(typeof o.expires.toUTCString!="function")throw new TypeError("option expires is invalid");s+="; Expires=".concat(o.expires.toUTCString())}if(o.httpOnly&&(s+="; HttpOnly"),o.secure&&(s+="; Secure"),o.sameSite){var l=typeof o.sameSite=="string"?o.sameSite.toLowerCase():o.sameSite;switch(l){case!0:s+="; SameSite=Strict";break;case"lax":s+="; SameSite=Lax";break;case"strict":s+="; SameSite=Strict";break;case"none":s+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return s},xw={create:function(t,n,r,o){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};r&&(i.expires=new Date,i.expires.setTime(i.expires.getTime()+r*60*1e3)),o&&(i.domain=o),document.cookie=Uq(t,encodeURIComponent(n),i)},read:function(t){for(var n="".concat(t,"="),r=document.cookie.split(";"),o=0;o-1&&(r=window.location.hash.substring(window.location.hash.indexOf("?")));for(var o=r.substring(1),i=o.split("&"),s=0;s0){var l=i[s].substring(0,a);l===t.lookupQuerystring&&(n=i[s].substring(a+1))}}}return n}},va=null,bw=function(){if(va!==null)return va;try{va=window!=="undefined"&&window.localStorage!==null;var t="i18next.translate.boo";window.localStorage.setItem(t,"foo"),window.localStorage.removeItem(t)}catch{va=!1}return va},Hq={name:"localStorage",lookup:function(t){var n;if(t.lookupLocalStorage&&bw()){var r=window.localStorage.getItem(t.lookupLocalStorage);r&&(n=r)}return n},cacheUserLanguage:function(t,n){n.lookupLocalStorage&&bw()&&window.localStorage.setItem(n.lookupLocalStorage,t)}},xa=null,ww=function(){if(xa!==null)return xa;try{xa=window!=="undefined"&&window.sessionStorage!==null;var t="i18next.translate.boo";window.sessionStorage.setItem(t,"foo"),window.sessionStorage.removeItem(t)}catch{xa=!1}return xa},Gq={name:"sessionStorage",lookup:function(t){var n;if(t.lookupSessionStorage&&ww()){var r=window.sessionStorage.getItem(t.lookupSessionStorage);r&&(n=r)}return n},cacheUserLanguage:function(t,n){n.lookupSessionStorage&&ww()&&window.sessionStorage.setItem(n.lookupSessionStorage,t)}},Kq={name:"navigator",lookup:function(t){var n=[];if(typeof navigator<"u"){if(navigator.languages)for(var r=0;r0?n:void 0}},Yq={name:"htmlTag",lookup:function(t){var n,r=t.htmlTag||(typeof document<"u"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(n=r.getAttribute("lang")),n}},qq={name:"path",lookup:function(t){var n;if(typeof window<"u"){var r=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(r instanceof Array)if(typeof t.lookupFromPathIndex=="number"){if(typeof r[t.lookupFromPathIndex]!="string")return;n=r[t.lookupFromPathIndex].replace("/","")}else n=r[0].replace("/","")}return n}},Xq={name:"subdomain",lookup:function(t){var n=typeof t.lookupFromSubdomainIndex=="number"?t.lookupFromSubdomainIndex+1:1,r=typeof window<"u"&&window.location&&window.location.hostname&&window.location.hostname.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(r)return r[n]}};function Qq(){return{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:function(t){return t}}}var x$=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};jq(this,e),this.type="languageDetector",this.detectors={},this.init(t,n)}return Dq(e,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=n||{languageUtils:{}},this.options=Bq(r,this.options||{},Qq()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=function(i){return i.replace("-","_")}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=o,this.addDetector(Vq),this.addDetector(Wq),this.addDetector(Hq),this.addDetector(Gq),this.addDetector(Kq),this.addDetector(Yq),this.addDetector(qq),this.addDetector(Xq)}},{key:"addDetector",value:function(n){return this.detectors[n.name]=n,this}},{key:"detect",value:function(n){var r=this;n||(n=this.options.order);var o=[];return n.forEach(function(i){if(r.detectors[i]){var s=r.detectors[i].lookup(r.options);s&&typeof s=="string"&&(s=[s]),s&&(o=o.concat(s))}}),o=o.map(function(i){return r.options.convertDetectedLanguage(i)}),this.services.languageUtils.getBestMatchFromCodes?o:o.length>0?o[0]:null}},{key:"cacheUserLanguage",value:function(n,r){var o=this;r||(r=this.options.caches),r&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(n)>-1||r.forEach(function(i){o.detectors[i]&&o.detectors[i].cacheUserLanguage(n,o.options)}))}}]),e}();x$.type="languageDetector";const b$={};h$.forEach(({code:e,file:t})=>{b$[e]={translation:t}});St.use(x$).use(K6).init({resources:b$,fallbackLng:"en",interpolation:{escapeValue:!1}});xh.createRoot(document.getElementById("root")).render(C.jsxs(ct.StrictMode,{children:[C.jsx(VL,{}),C.jsx(Q6,{i18n:St,children:C.jsx(zz,{store:am,children:C.jsx(lq,{})})})]})); diff --git a/i18n/cz/translation.json b/i18n/cz/translation.json index 8bec38a..d292606 100644 --- a/i18n/cz/translation.json +++ b/i18n/cz/translation.json @@ -56,7 +56,6 @@ "Buying and selling costs": "Náklady na koupi a prodej", "Buying and selling details": "Detaily koupě a prodeje", "Total ownership costs": "Celkové náklady na vlastnictví", - "Simply ownership cost over the time of staying": "Jednoduše náklady na vlastnictví během doby pobytu", "Capital from selling": "Kapitál z prodeje", "Capital from selling details": "Detaily kapitálu z prodeje", "Currency": "Měna", @@ -71,5 +70,6 @@ "Auto": "Automatický", "Light": "Světlý", "Dark": "Tmavý", - "Mortgage vs Renting value": "Hodnota hypotéky vs nájem" + "Mortgage vs Renting value": "Hodnota hypotéky vs nájem", + "Buying and renting is equally expensive": "Koupě a nájem jsou stejně drahé" } diff --git a/i18n/de/translation.json b/i18n/de/translation.json index 2478852..05c26d0 100644 --- a/i18n/de/translation.json +++ b/i18n/de/translation.json @@ -56,7 +56,6 @@ "Buying and selling costs": "Kauf- und Verkaufskosten", "Buying and selling details": "Details zu Kauf und Verkauf", "Total ownership costs": "Gesamte Besitzkosten", - "Simply ownership cost over the time of staying": "Einfache Besitzkosten über die Zeit des Aufenthalts", "Capital from selling": "Kapital aus dem Verkauf", "Capital from selling details": "Details zum Kapital aus dem Verkauf", "Currency": "Währung", @@ -71,5 +70,6 @@ "Auto": "Auto", "Light": "Hell", "Dark": "Dunkel", - "Mortgage vs Renting value": "Hypothek vs Mietwert" + "Mortgage vs Renting value": "Hypothek vs Mietwert", + "Buying and renting is equally expensive": "Kaufen und Mieten ist gleich teuer" } diff --git a/i18n/dk/translation.json b/i18n/dk/translation.json index ff1f057..85375a7 100644 --- a/i18n/dk/translation.json +++ b/i18n/dk/translation.json @@ -56,7 +56,6 @@ "Buying and selling costs": "Købs- og salgsomkostninger", "Buying and selling details": "Detaljer om køb og salg", "Total ownership costs": "Samlede ejerskabsomkostninger", - "Simply ownership cost over the time of staying": "Enkle ejerskabsomkostninger over opholdstiden", "Capital from selling": "Kapital fra salg", "Capital from selling details": "Detaljer om kapital fra salg", "Currency": "Valuta", @@ -71,5 +70,6 @@ "Auto": "Auto", "Light": "Lys", "Dark": "Mørk", - "Mortgage vs Renting value": "Pant kontra lejeværdi" + "Mortgage vs Renting value": "Pant kontra lejeværdi", + "Buying and renting is equally expensive": "Køb og leje er lige dyrt" } diff --git a/i18n/en/translation.json b/i18n/en/translation.json index 4b15e0d..8dfda99 100644 --- a/i18n/en/translation.json +++ b/i18n/en/translation.json @@ -56,7 +56,6 @@ "Buying and selling costs": "Buying and Selling Costs", "Buying and selling details": "Buying and Selling Details", "Total ownership costs": "Total Ownership Costs", - "Simply ownership cost over the time of staying": "Simply Ownership Cost over the Time of Staying", "Capital from selling": "Capital from Selling", "Capital from selling details": "Details of Capital from Selling", "Currency": "Currency", @@ -71,5 +70,6 @@ "Auto": "Auto", "Light": "Light", "Dark": "Dark", - "Mortgage vs Renting value": "Mortgage vs Renting Value" + "Mortgage vs Renting value": "Mortgage vs Renting Value", + "Buying and renting is equally expensive": "Buying and renting is equally expensive" } diff --git a/i18n/ro/translation.json b/i18n/ro/translation.json index 03fb1e3..c7c9c26 100644 --- a/i18n/ro/translation.json +++ b/i18n/ro/translation.json @@ -56,7 +56,6 @@ "Buying and selling costs": "Costuri de cumpărare și vânzare", "Buying and selling details": "Detalii despre cumpărare și vânzare", "Total ownership costs": "Costuri totale de proprietate", - "Simply ownership cost over the time of staying": "Simplu cost de proprietate pe durata șederii", "Capital from selling": "Capital din vânzare", "Capital from selling details": "Detalii capital din vânzare", "Currency": "Monedă", @@ -71,5 +70,6 @@ "Auto": "Auto", "Light": "Luminos", "Dark": "Întunecat", - "Mortgage vs Renting value": "Valoarea ipotecii vs închiriere" + "Mortgage vs Renting value": "Valoarea ipotecii vs închiriere", + "Buying and renting is equally expensive": "Cumpărarea și închirierea sunt la fel de scumpe" } diff --git a/i18n/se/translation.json b/i18n/se/translation.json index 1600ac5..2e8126d 100644 --- a/i18n/se/translation.json +++ b/i18n/se/translation.json @@ -56,7 +56,6 @@ "Buying and selling costs": "Kostnader för köp och försäljning", "Buying and selling details": "Detaljer om köp och försäljning", "Total ownership costs": "Totala ägandekostnader", - "Simply ownership cost over the time of staying": "Enkla ägandekostnader över tiden för vistelsen", "Capital from selling": "Kapital från försäljning", "Capital from selling details": "Detaljer om kapital från försäljning", "Currency": "Valuta", @@ -71,5 +70,6 @@ "Auto": "Auto", "Light": "Ljus", "Dark": "Mörk", - "Mortgage vs Renting value": "Bolån vs Hyra värde" + "Mortgage vs Renting value": "Bolån vs Hyra värde", + "Buying and renting is equally expensive": "Köp och hyra är lika dyrt" } diff --git a/index.html b/index.html index 66e0a4f..e39f73e 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ Rent vs Mortgage - +