diff --git a/assets/index-639beb14.js b/assets/index-639beb14.js new file mode 100644 index 0000000..95bee6b --- /dev/null +++ b/assets/index-639beb14.js @@ -0,0 +1,769 @@ +var Gee=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var $rt=Gee((gi,vi)=>{function qee(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var qs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Fr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Kee(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var LL={exports:{}},Eb={},jL={exports:{}},an={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Qg=Symbol.for("react.element"),Yee=Symbol.for("react.portal"),Xee=Symbol.for("react.fragment"),Qee=Symbol.for("react.strict_mode"),Zee=Symbol.for("react.profiler"),Jee=Symbol.for("react.provider"),ete=Symbol.for("react.context"),tte=Symbol.for("react.forward_ref"),nte=Symbol.for("react.suspense"),rte=Symbol.for("react.memo"),ote=Symbol.for("react.lazy"),p4=Symbol.iterator;function ite(e){return e===null||typeof e!="object"?null:(e=p4&&e[p4]||e["@@iterator"],typeof e=="function"?e:null)}var DL={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},NL=Object.assign,zL={};function Fp(e,t,n){this.props=e,this.context=t,this.refs=zL,this.updater=n||DL}Fp.prototype.isReactComponent={};Fp.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Fp.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function BL(){}BL.prototype=Fp.prototype;function uP(e,t,n){this.props=e,this.context=t,this.refs=zL,this.updater=n||DL}var cP=uP.prototype=new BL;cP.constructor=uP;NL(cP,Fp.prototype);cP.isPureReactComponent=!0;var h4=Array.isArray,HL=Object.prototype.hasOwnProperty,dP={current:null},WL={key:!0,ref:!0,__self:!0,__source:!0};function VL(e,t,n){var r,o={},i=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)HL.call(t,r)&&!WL.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1>>1,Y=D[Z];if(0>>1;Zo(ne,U))reo(ge,ne)?(D[Z]=ge,D[re]=U,Z=re):(D[Z]=ne,D[Q]=U,Z=Q);else if(reo(ge,U))D[Z]=ge,D[re]=U,Z=re;else break e}}return W}function o(D,W){var U=D.sortIndex-W.sortIndex;return U!==0?U:D.id-W.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],u=[],c=1,f=null,p=3,y=!1,v=!1,b=!1,C=typeof setTimeout=="function"?setTimeout:null,x=typeof clearTimeout=="function"?clearTimeout:null,w=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function S(D){for(var W=n(u);W!==null;){if(W.callback===null)r(u);else if(W.startTime<=D)r(u),W.sortIndex=W.expirationTime,t(l,W);else break;W=n(u)}}function $(D){if(b=!1,S(D),!v)if(n(l)!==null)v=!0,H(T);else{var W=n(u);W!==null&&B($,W.startTime-D)}}function T(D,W){v=!1,b&&(b=!1,x(E),E=-1),y=!0;var U=p;try{for(S(W),f=n(l);f!==null&&(!(f.expirationTime>W)||D&&!A());){var Z=f.callback;if(typeof Z=="function"){f.callback=null,p=f.priorityLevel;var Y=Z(f.expirationTime<=W);W=e.unstable_now(),typeof Y=="function"?f.callback=Y:f===n(l)&&r(l),S(W)}else r(l);f=n(l)}if(f!==null)var se=!0;else{var Q=n(u);Q!==null&&B($,Q.startTime-W),se=!1}return se}finally{f=null,p=U,y=!1}}var k=!1,M=null,E=-1,N=5,I=-1;function A(){return!(e.unstable_now()-ID||125Z?(D.sortIndex=U,t(u,D),n(l)===null&&D===n(u)&&(b?(x(E),E=-1):b=!0,B($,U-Z))):(D.sortIndex=Y,t(l,D),v||y||(v=!0,H(T))),D},e.unstable_shouldYield=A,e.unstable_wrapCallback=function(D){var W=p;return function(){var U=p;p=W;try{return D.apply(this,arguments)}finally{p=U}}}})(KL);qL.exports=KL;var gte=qL.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var YL=g,Ci=gte;function Qe(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),P$=Object.prototype.hasOwnProperty,vte=/^[: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]*$/,g4={},v4={};function yte(e){return P$.call(v4,e)?!0:P$.call(g4,e)?!1:vte.test(e)?v4[e]=!0:(g4[e]=!0,!1)}function bte(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 xte(e,t,n,r){if(t===null||typeof t>"u"||bte(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 To(e,t,n,r,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var to={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){to[e]=new To(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];to[t]=new To(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){to[e]=new To(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){to[e]=new To(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){to[e]=new To(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){to[e]=new To(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){to[e]=new To(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){to[e]=new To(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){to[e]=new To(e,5,!1,e.toLowerCase(),null,!1,!1)});var pP=/[\-:]([a-z])/g;function hP(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(pP,hP);to[t]=new To(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(pP,hP);to[t]=new To(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(pP,hP);to[t]=new To(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){to[e]=new To(e,1,!1,e.toLowerCase(),null,!1,!1)});to.xlinkHref=new To("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){to[e]=new To(e,1,!1,e.toLowerCase(),null,!0,!0)});function mP(e,t,n,r){var o=to.hasOwnProperty(t)?to[t]:null;(o!==null?o.type!==0:r||!(2s||o[a]!==i[s]){var l=` +`+o[a].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{UC=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?om(e):""}function wte(e){switch(e.tag){case 5:return om(e.type);case 16:return om("Lazy");case 13:return om("Suspense");case 19:return om("SuspenseList");case 0:case 2:case 15:return e=GC(e.type,!1),e;case 11:return e=GC(e.type.render,!1),e;case 1:return e=GC(e.type,!0),e;default:return""}}function E$(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 gf:return"Fragment";case mf:return"Portal";case M$:return"Profiler";case gP:return"StrictMode";case T$:return"Suspense";case I$:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ZL:return(e.displayName||"Context")+".Consumer";case QL:return(e._context.displayName||"Context")+".Provider";case vP:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case yP:return t=e.displayName||null,t!==null?t:E$(e.type)||"Memo";case Dl:t=e._payload,e=e._init;try{return E$(e(t))}catch{}}return null}function Cte(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 E$(t);case 8:return t===gP?"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 fu(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function e7(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Ste(e){var t=e7(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){r=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Cv(e){e._valueTracker||(e._valueTracker=Ste(e))}function t7(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=e7(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Y1(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 R$(e,t){var n=t.checked;return cr({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function b4(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=fu(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 n7(e,t){t=t.checked,t!=null&&mP(e,"checked",t,!1)}function O$(e,t){n7(e,t);var n=fu(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")?A$(e,t.type,n):t.hasOwnProperty("defaultValue")&&A$(e,t.type,fu(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function x4(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 A$(e,t,n){(t!=="number"||Y1(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var im=Array.isArray;function Ff(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Sv.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Nm(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var pm={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},$te=["Webkit","ms","Moz","O"];Object.keys(pm).forEach(function(e){$te.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pm[t]=pm[e]})});function a7(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||pm.hasOwnProperty(e)&&pm[e]?(""+t).trim():t+"px"}function s7(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=a7(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var _te=cr({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 j$(e,t){if(t){if(_te[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Qe(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Qe(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Qe(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Qe(62))}}function D$(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 N$=null;function bP(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var z$=null,Lf=null,jf=null;function S4(e){if(e=e0(e)){if(typeof z$!="function")throw Error(Qe(280));var t=e.stateNode;t&&(t=Lb(t),z$(e.stateNode,e.type,t))}}function l7(e){Lf?jf?jf.push(e):jf=[e]:Lf=e}function u7(){if(Lf){var e=Lf,t=jf;if(jf=Lf=null,S4(e),t)for(e=0;e>>=0,e===0?32:31-(Lte(e)/jte|0)|0}var $v=64,_v=4194304;function am(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 J1(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=n&268435455;if(a!==0){var s=a&~o;s!==0?r=am(s):(i&=a,i!==0&&(r=am(i)))}else a=n&~o,a!==0?r=am(a):i!==0&&(r=am(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 Zg(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ta(t),e[t]=n}function Bte(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=mm),R4=String.fromCharCode(32),O4=!1;function T7(e,t){switch(e){case"keyup":return mne.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function I7(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var vf=!1;function vne(e,t){switch(e){case"compositionend":return I7(t);case"keypress":return t.which!==32?null:(O4=!0,R4);case"textInput":return e=t.data,e===R4&&O4?null:e;default:return null}}function yne(e,t){if(vf)return e==="compositionend"||!PP&&T7(e,t)?(e=P7(),g1=$P=Ul=null,vf=!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=j4(n)}}function A7(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?A7(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function F7(){for(var e=window,t=Y1();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Y1(e.document)}return t}function MP(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 Pne(e){var t=F7(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&A7(n.ownerDocument.documentElement,n)){if(r!==null&&MP(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=D4(n,i);var a=D4(n,r);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,yf=null,G$=null,vm=null,q$=!1;function N4(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;q$||yf==null||yf!==Y1(r)||(r=yf,"selectionStart"in r&&MP(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}),vm&&Um(vm,r)||(vm=r,r=ny(G$,"onSelect"),0wf||(e.current=J$[wf],J$[wf]=null,wf--)}function Un(e,t){wf++,J$[wf]=e.current,e.current=t}var pu={},mo=wu(pu),Vo=wu(!1),Ec=pu;function np(e,t){var n=e.type.contextTypes;if(!n)return pu;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 Uo(e){return e=e.childContextTypes,e!=null}function oy(){Zn(Vo),Zn(mo)}function G4(e,t,n){if(mo.current!==pu)throw Error(Qe(168));Un(mo,t),Un(Vo,n)}function V7(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(Qe(108,Cte(e)||"Unknown",o));return cr({},n,r)}function iy(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||pu,Ec=mo.current,Un(mo,e),Un(Vo,Vo.current),!0}function q4(e,t,n){var r=e.stateNode;if(!r)throw Error(Qe(169));n?(e=V7(e,t,Ec),r.__reactInternalMemoizedMergedChildContext=e,Zn(Vo),Zn(mo),Un(mo,e)):Zn(Vo),Un(Vo,n)}var Gs=null,jb=!1,aS=!1;function U7(e){Gs===null?Gs=[e]:Gs.push(e)}function Nne(e){jb=!0,U7(e)}function Cu(){if(!aS&&Gs!==null){aS=!0;var e=0,t=En;try{var n=Gs;for(En=1;e>=a,o-=a,Ys=1<<32-Ta(t)+o|n<E?(N=M,M=null):N=M.sibling;var I=p(x,M,S[E],$);if(I===null){M===null&&(M=N);break}e&&M&&I.alternate===null&&t(x,M),w=i(I,w,E),k===null?T=I:k.sibling=I,k=I,M=N}if(E===S.length)return n(x,M),or&&qu(x,E),T;if(M===null){for(;EE?(N=M,M=null):N=M.sibling;var A=p(x,M,I.value,$);if(A===null){M===null&&(M=N);break}e&&M&&A.alternate===null&&t(x,M),w=i(A,w,E),k===null?T=A:k.sibling=A,k=A,M=N}if(I.done)return n(x,M),or&&qu(x,E),T;if(M===null){for(;!I.done;E++,I=S.next())I=f(x,I.value,$),I!==null&&(w=i(I,w,E),k===null?T=I:k.sibling=I,k=I);return or&&qu(x,E),T}for(M=r(x,M);!I.done;E++,I=S.next())I=y(M,x,E,I.value,$),I!==null&&(e&&I.alternate!==null&&M.delete(I.key===null?E:I.key),w=i(I,w,E),k===null?T=I:k.sibling=I,k=I);return e&&M.forEach(function(z){return t(x,z)}),or&&qu(x,E),T}function C(x,w,S,$){if(typeof S=="object"&&S!==null&&S.type===gf&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case wv:e:{for(var T=S.key,k=w;k!==null;){if(k.key===T){if(T=S.type,T===gf){if(k.tag===7){n(x,k.sibling),w=o(k,S.props.children),w.return=x,x=w;break e}}else if(k.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===Dl&&eR(T)===k.type){n(x,k.sibling),w=o(k,S.props),w.ref=Th(x,k,S),w.return=x,x=w;break e}n(x,k);break}else t(x,k);k=k.sibling}S.type===gf?(w=gc(S.props.children,x.mode,$,S.key),w.return=x,x=w):($=$1(S.type,S.key,S.props,null,x.mode,$),$.ref=Th(x,w,S),$.return=x,x=$)}return a(x);case mf:e:{for(k=S.key;w!==null;){if(w.key===k)if(w.tag===4&&w.stateNode.containerInfo===S.containerInfo&&w.stateNode.implementation===S.implementation){n(x,w.sibling),w=o(w,S.children||[]),w.return=x,x=w;break e}else{n(x,w);break}else t(x,w);w=w.sibling}w=hS(S,x.mode,$),w.return=x,x=w}return a(x);case Dl:return k=S._init,C(x,w,k(S._payload),$)}if(im(S))return v(x,w,S,$);if($h(S))return b(x,w,S,$);Rv(x,S)}return typeof S=="string"&&S!==""||typeof S=="number"?(S=""+S,w!==null&&w.tag===6?(n(x,w.sibling),w=o(w,S),w.return=x,x=w):(n(x,w),w=pS(S,x.mode,$),w.return=x,x=w),a(x)):n(x,w)}return C}var op=J7(!0),ej=J7(!1),t0={},is=wu(t0),Ym=wu(t0),Xm=wu(t0);function ic(e){if(e===t0)throw Error(Qe(174));return e}function jP(e,t){switch(Un(Xm,t),Un(Ym,e),Un(is,t0),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:L$(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=L$(t,e)}Zn(is),Un(is,t)}function ip(){Zn(is),Zn(Ym),Zn(Xm)}function tj(e){ic(Xm.current);var t=ic(is.current),n=L$(t,e.type);t!==n&&(Un(Ym,e),Un(is,n))}function DP(e){Ym.current===e&&(Zn(is),Zn(Ym))}var lr=wu(0);function dy(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 sS=[];function NP(){for(var e=0;en?n:4,e(!0);var r=lS.transition;lS.transition={};try{e(!1),t()}finally{En=n,lS.transition=r}}function vj(){return na().memoizedState}function Wne(e,t,n){var r=iu(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},yj(e))bj(t,n);else if(n=Y7(e,t,n,r),n!==null){var o=Po();Ia(n,e,r,o),xj(n,t,r)}}function Vne(e,t,n){var r=iu(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(yj(e))bj(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,s=i(a,n);if(o.hasEagerState=!0,o.eagerState=s,Ra(s,a)){var l=t.interleaved;l===null?(o.next=o,FP(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=Y7(e,t,o,r),n!==null&&(o=Po(),Ia(n,e,r,o),xj(n,t,r))}}function yj(e){var t=e.alternate;return e===ur||t!==null&&t===ur}function bj(e,t){ym=fy=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function xj(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,wP(e,n)}}var py={readContext:ta,useCallback:oo,useContext:oo,useEffect:oo,useImperativeHandle:oo,useInsertionEffect:oo,useLayoutEffect:oo,useMemo:oo,useReducer:oo,useRef:oo,useState:oo,useDebugValue:oo,useDeferredValue:oo,useTransition:oo,useMutableSource:oo,useSyncExternalStore:oo,useId:oo,unstable_isNewReconciler:!1},Une={readContext:ta,useCallback:function(e,t){return Va().memoizedState=[e,t===void 0?null:t],e},useContext:ta,useEffect:nR,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,x1(4194308,4,fj.bind(null,t,e),n)},useLayoutEffect:function(e,t){return x1(4194308,4,e,t)},useInsertionEffect:function(e,t){return x1(4,2,e,t)},useMemo:function(e,t){var n=Va();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Va();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=Wne.bind(null,ur,e),[r.memoizedState,e]},useRef:function(e){var t=Va();return e={current:e},t.memoizedState=e},useState:tR,useDebugValue:VP,useDeferredValue:function(e){return Va().memoizedState=e},useTransition:function(){var e=tR(!1),t=e[0];return e=Hne.bind(null,e[1]),Va().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ur,o=Va();if(or){if(n===void 0)throw Error(Qe(407));n=n()}else{if(n=t(),Br===null)throw Error(Qe(349));Oc&30||oj(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,nR(aj.bind(null,r,i,e),[e]),r.flags|=2048,Jm(9,ij.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Va(),t=Br.identifierPrefix;if(or){var n=Xs,r=Ys;n=(r&~(1<<32-Ta(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Qm++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[Ja]=t,e[Km]=r,Tj(e,t,!1,!1),t.stateNode=e;e:{switch(a=D$(n,r),n){case"dialog":Kn("cancel",e),Kn("close",e),o=r;break;case"iframe":case"object":case"embed":Kn("load",e),o=r;break;case"video":case"audio":for(o=0;osp&&(t.flags|=128,r=!0,Ih(i,!1),t.lanes=4194304)}else{if(!r)if(e=dy(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ih(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!or)return io(t),null}else 2*wr()-i.renderingStartTime>sp&&n!==1073741824&&(t.flags|=128,r=!0,Ih(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(n=i.last,n!==null?n.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=wr(),t.sibling=null,n=lr.current,Un(lr,r?n&1|2:n&1),t):(io(t),null);case 22:case 23:return XP(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ui&1073741824&&(io(t),t.subtreeFlags&6&&(t.flags|=8192)):io(t),null;case 24:return null;case 25:return null}throw Error(Qe(156,t.tag))}function Jne(e,t){switch(IP(t),t.tag){case 1:return Uo(t.type)&&oy(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ip(),Zn(Vo),Zn(mo),NP(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return DP(t),null;case 13:if(Zn(lr),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Qe(340));rp()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Zn(lr),null;case 4:return ip(),null;case 10:return AP(t.type._context),null;case 22:case 23:return XP(),null;case 24:return null;default:return null}}var Av=!1,po=!1,ere=typeof WeakSet=="function"?WeakSet:Set,pt=null;function _f(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){mr(e,t,r)}else n.current=null}function d_(e,t,n){try{n()}catch(r){mr(e,t,r)}}var dR=!1;function tre(e,t){if(K$=ey,e=F7(),MP(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var a=0,s=-1,l=-1,u=0,c=0,f=e,p=null;t:for(;;){for(var y;f!==n||o!==0&&f.nodeType!==3||(s=a+o),f!==i||r!==0&&f.nodeType!==3||(l=a+r),f.nodeType===3&&(a+=f.nodeValue.length),(y=f.firstChild)!==null;)p=f,f=y;for(;;){if(f===e)break t;if(p===n&&++u===o&&(s=a),p===i&&++c===r&&(l=a),(y=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=y}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Y$={focusedElem:e,selectionRange:n},ey=!1,pt=t;pt!==null;)if(t=pt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,pt=e;else for(;pt!==null;){t=pt;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var b=v.memoizedProps,C=v.memoizedState,x=t.stateNode,w=x.getSnapshotBeforeUpdate(t.elementType===t.type?b:ba(t.type,b),C);x.__reactInternalSnapshotBeforeUpdate=w}break;case 3:var S=t.stateNode.containerInfo;S.nodeType===1?S.textContent="":S.nodeType===9&&S.documentElement&&S.removeChild(S.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Qe(163))}}catch($){mr(t,t.return,$)}if(e=t.sibling,e!==null){e.return=t.return,pt=e;break}pt=t.return}return v=dR,dR=!1,v}function bm(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&&d_(t,n,i)}o=o.next}while(o!==r)}}function zb(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 f_(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 Rj(e){var t=e.alternate;t!==null&&(e.alternate=null,Rj(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ja],delete t[Km],delete t[Z$],delete t[jne],delete t[Dne])),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 Oj(e){return e.tag===5||e.tag===3||e.tag===4}function fR(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Oj(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 p_(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=ry));else if(r!==4&&(e=e.child,e!==null))for(p_(e,t,n),e=e.sibling;e!==null;)p_(e,t,n),e=e.sibling}function h_(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(h_(e,t,n),e=e.sibling;e!==null;)h_(e,t,n),e=e.sibling}var Kr=null,wa=!1;function Tl(e,t,n){for(n=n.child;n!==null;)Aj(e,t,n),n=n.sibling}function Aj(e,t,n){if(os&&typeof os.onCommitFiberUnmount=="function")try{os.onCommitFiberUnmount(Rb,n)}catch{}switch(n.tag){case 5:po||_f(n,t);case 6:var r=Kr,o=wa;Kr=null,Tl(e,t,n),Kr=r,wa=o,Kr!==null&&(wa?(e=Kr,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Kr.removeChild(n.stateNode));break;case 18:Kr!==null&&(wa?(e=Kr,n=n.stateNode,e.nodeType===8?iS(e.parentNode,n):e.nodeType===1&&iS(e,n),Wm(e)):iS(Kr,n.stateNode));break;case 4:r=Kr,o=wa,Kr=n.stateNode.containerInfo,wa=!0,Tl(e,t,n),Kr=r,wa=o;break;case 0:case 11:case 14:case 15:if(!po&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&d_(n,t,a),o=o.next}while(o!==r)}Tl(e,t,n);break;case 1:if(!po&&(_f(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){mr(n,t,s)}Tl(e,t,n);break;case 21:Tl(e,t,n);break;case 22:n.mode&1?(po=(r=po)||n.memoizedState!==null,Tl(e,t,n),po=r):Tl(e,t,n);break;default:Tl(e,t,n)}}function pR(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new ere),t.forEach(function(r){var o=cre.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function va(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=a),r&=~i}if(r=o,r=wr()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*rre(r/1960))-r,10e?16:e,Gl===null)var r=!1;else{if(e=Gl,Gl=null,gy=0,pn&6)throw Error(Qe(331));var o=pn;for(pn|=4,pt=e.current;pt!==null;){var i=pt,a=i.child;if(pt.flags&16){var s=i.deletions;if(s!==null){for(var l=0;lwr()-KP?mc(e,0):qP|=n),Go(e,t)}function Hj(e,t){t===0&&(e.mode&1?(t=_v,_v<<=1,!(_v&130023424)&&(_v=4194304)):t=1);var n=Po();e=ll(e,t),e!==null&&(Zg(e,t,n),Go(e,n))}function ure(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Hj(e,n)}function cre(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(Qe(314))}r!==null&&r.delete(t),Hj(e,n)}var Wj;Wj=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Vo.current)Ho=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ho=!1,Qne(e,t,n);Ho=!!(e.flags&131072)}else Ho=!1,or&&t.flags&1048576&&G7(t,sy,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;w1(e,t),e=t.pendingProps;var o=np(t,mo.current);Nf(t,n),o=BP(null,t,r,e,o,n);var i=HP();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,Uo(r)?(i=!0,iy(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,LP(t),o.updater=Db,t.stateNode=o,o._reactInternals=t,o_(t,r,e,n),t=s_(null,t,r,!0,i,n)):(t.tag=0,or&&i&&TP(t),wo(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(w1(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=fre(r),e=ba(r,e),o){case 0:t=a_(null,t,r,e,n);break e;case 1:t=lR(null,t,r,e,n);break e;case 11:t=aR(null,t,r,e,n);break e;case 14:t=sR(null,t,r,ba(r.type,e),n);break e}throw Error(Qe(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ba(r,o),a_(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ba(r,o),lR(e,t,r,o,n);case 3:e:{if(kj(t),e===null)throw Error(Qe(387));r=t.pendingProps,i=t.memoizedState,o=i.element,X7(e,t),cy(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=ap(Error(Qe(423)),t),t=uR(e,t,r,n,o);break e}else if(r!==o){o=ap(Error(Qe(424)),t),t=uR(e,t,r,n,o);break e}else for(mi=nu(t.stateNode.containerInfo.firstChild),yi=t,or=!0,Sa=null,n=ej(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(rp(),r===o){t=ul(e,t,n);break e}wo(e,t,r,n)}t=t.child}return t;case 5:return tj(t),e===null&&t_(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,X$(r,o)?a=null:i!==null&&X$(r,i)&&(t.flags|=32),_j(e,t),wo(e,t,a,n),t.child;case 6:return e===null&&t_(t),null;case 13:return Pj(e,t,n);case 4:return jP(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=op(t,null,r,n):wo(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ba(r,o),aR(e,t,r,o,n);case 7:return wo(e,t,t.pendingProps,n),t.child;case 8:return wo(e,t,t.pendingProps.children,n),t.child;case 12:return wo(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,Un(ly,r._currentValue),r._currentValue=a,i!==null)if(Ra(i.value,a)){if(i.children===o.children&&!Vo.current){t=ul(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){a=i.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=nl(-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),n_(i.return,n,t),s.lanes|=n;break}l=l.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(Qe(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),n_(a,n,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}wo(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Nf(t,n),o=ta(o),r=r(o),t.flags|=1,wo(e,t,r,n),t.child;case 14:return r=t.type,o=ba(r,t.pendingProps),o=ba(r.type,o),sR(e,t,r,o,n);case 15:return Sj(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ba(r,o),w1(e,t),t.tag=1,Uo(r)?(e=!0,iy(t)):e=!1,Nf(t,n),Z7(t,r,o),o_(t,r,o,n),s_(null,t,r,!0,e,n);case 19:return Mj(e,t,n);case 22:return $j(e,t,n)}throw Error(Qe(156,t.tag))};function Vj(e,t){return g7(e,t)}function dre(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 Ki(e,t,n,r){return new dre(e,t,n,r)}function ZP(e){return e=e.prototype,!(!e||!e.isReactComponent)}function fre(e){if(typeof e=="function")return ZP(e)?1:0;if(e!=null){if(e=e.$$typeof,e===vP)return 11;if(e===yP)return 14}return 2}function au(e,t){var n=e.alternate;return n===null?(n=Ki(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 $1(e,t,n,r,o,i){var a=2;if(r=e,typeof e=="function")ZP(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case gf:return gc(n.children,o,i,t);case gP:a=8,o|=8;break;case M$:return e=Ki(12,n,t,o|2),e.elementType=M$,e.lanes=i,e;case T$:return e=Ki(13,n,t,o),e.elementType=T$,e.lanes=i,e;case I$:return e=Ki(19,n,t,o),e.elementType=I$,e.lanes=i,e;case JL:return Hb(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case QL:a=10;break e;case ZL:a=9;break e;case vP:a=11;break e;case yP:a=14;break e;case Dl:a=16,r=null;break e}throw Error(Qe(130,e==null?e:typeof e,""))}return t=Ki(a,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function gc(e,t,n,r){return e=Ki(7,e,r,t),e.lanes=n,e}function Hb(e,t,n,r){return e=Ki(22,e,r,t),e.elementType=JL,e.lanes=n,e.stateNode={isHidden:!1},e}function pS(e,t,n){return e=Ki(6,e,null,t),e.lanes=n,e}function hS(e,t,n){return t=Ki(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function pre(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=KC(0),this.expirationTimes=KC(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=KC(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function JP(e,t,n,r,o,i,a,s,l){return e=new pre(e,t,n,s,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Ki(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},LP(i),e}function hre(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Kj)}catch(e){console.error(e)}}Kj(),GL.exports=_i;var Su=GL.exports;const jv=Fr(Su);var wR=Su;k$.createRoot=wR.createRoot,k$.hydrateRoot=wR.hydrateRoot;/** + * @remix-run/router v1.9.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function sr(){return sr=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Lc(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function xre(){return Math.random().toString(36).substr(2,8)}function SR(e,t){return{usr:e.state,key:e.key,idx:t}}function tg(e,t,n,r){return n===void 0&&(n=null),sr({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?ws(t):t,{state:n,key:t&&t.key||r||xre()})}function jc(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function ws(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function wre(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,s=Cr.Pop,l=null,u=c();u==null&&(u=0,a.replaceState(sr({},a.state,{idx:u}),""));function c(){return(a.state||{idx:null}).idx}function f(){s=Cr.Pop;let C=c(),x=C==null?null:C-u;u=C,l&&l({action:s,location:b.location,delta:x})}function p(C,x){s=Cr.Push;let w=tg(b.location,C,x);n&&n(w,C),u=c()+1;let S=SR(w,u),$=b.createHref(w);try{a.pushState(S,"",$)}catch(T){if(T instanceof DOMException&&T.name==="DataCloneError")throw T;o.location.assign($)}i&&l&&l({action:s,location:b.location,delta:1})}function y(C,x){s=Cr.Replace;let w=tg(b.location,C,x);n&&n(w,C),u=c();let S=SR(w,u),$=b.createHref(w);a.replaceState(S,"",$),i&&l&&l({action:s,location:b.location,delta:0})}function v(C){let x=o.location.origin!=="null"?o.location.origin:o.location.href,w=typeof C=="string"?C:jc(C);return Yt(x,"No window.location.(origin|href) available to create URL for href: "+w),new URL(w,x)}let b={get action(){return s},get location(){return e(o,a)},listen(C){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(CR,f),l=C,()=>{o.removeEventListener(CR,f),l=null}},createHref(C){return t(o,C)},createURL:v,encodeLocation(C){let x=v(C);return{pathname:x.pathname,search:x.search,hash:x.hash}},push:p,replace:y,go(C){return a.go(C)}};return b}var xr;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(xr||(xr={}));const Cre=new Set(["lazy","caseSensitive","path","id","index","children"]);function Sre(e){return e.index===!0}function b_(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((o,i)=>{let a=[...n,i],s=typeof o.id=="string"?o.id:a.join("-");if(Yt(o.index!==!0||!o.children,"Cannot specify children on an index route"),Yt(!r[s],'Found a route id collision on id "'+s+`". Route id's must be globally unique within Data Router usages`),Sre(o)){let l=sr({},o,t(o),{id:s});return r[s]=l,l}else{let l=sr({},o,t(o),{id:s,children:void 0});return r[s]=l,o.children&&(l.children=b_(o.children,t,a,r)),l}})}function Pf(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?ws(t):t,o=Dp(r.pathname||"/",n);if(o==null)return null;let i=Yj(e);_re(i);let a=null;for(let s=0;a==null&&s{let l={relativePath:s===void 0?i.path||"":s,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};l.relativePath.startsWith("/")&&(Yt(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=rl([r,l.relativePath]),c=n.concat(l);i.children&&i.children.length>0&&(Yt(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),Yj(i.children,t,c,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:Rre(u,i.index),routesMeta:c})};return e.forEach((i,a)=>{var s;if(i.path===""||!((s=i.path)!=null&&s.includes("?")))o(i,a);else for(let l of Xj(i.path))o(i,a,l)}),t}function Xj(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let a=Xj(r.join("/")),s=[];return s.push(...a.map(l=>l===""?i:[i,l].join("/"))),o&&s.push(...a),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function _re(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Ore(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const kre=/^:\w+$/,Pre=3,Mre=2,Tre=1,Ire=10,Ere=-2,$R=e=>e==="*";function Rre(e,t){let n=e.split("/"),r=n.length;return n.some($R)&&(r+=Ere),t&&(r+=Mre),n.filter(o=>!$R(o)).reduce((o,i)=>o+(kre.test(i)?Pre:i===""?Tre:Ire),r)}function Ore(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function Are(e,t){let{routesMeta:n}=e,r={},o="/",i=[];for(let a=0;a{if(c==="*"){let p=s[f]||"";a=i.slice(0,i.length-p.length).replace(/(.)\/+$/,"$1")}return u[c]=Dre(s[f]||"",c),u},{}),pathname:i,pathnameBase:a,pattern:e}}function Lre(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Lc(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(a,s)=>(r.push(s),"/([^\\/]+)"));return e.endsWith("*")?(r.push("*"),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function jre(e){try{return decodeURI(e)}catch(t){return Lc(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Dre(e,t){try{return decodeURIComponent(e)}catch(n){return Lc(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function Dp(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function Nre(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?ws(e):e;return{pathname:n?n.startsWith("/")?n:zre(n,t):t,search:Hre(r),hash:Wre(o)}}function zre(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function mS(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function qb(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function rM(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=ws(e):(o=sr({},e),Yt(!o.pathname||!o.pathname.includes("?"),mS("?","pathname","search",o)),Yt(!o.pathname||!o.pathname.includes("#"),mS("#","pathname","hash",o)),Yt(!o.search||!o.search.includes("#"),mS("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,s;if(r||a==null)s=n;else{let f=t.length-1;if(a.startsWith("..")){let p=a.split("/");for(;p[0]==="..";)p.shift(),f-=1;o.pathname=p.join("/")}s=f>=0?t[f]:"/"}let l=Nre(o,s),u=a&&a!=="/"&&a.endsWith("/"),c=(i||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const rl=e=>e.join("/").replace(/\/\/+/g,"/"),Bre=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Hre=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Wre=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class oM{constructor(t,n,r,o){o===void 0&&(o=!1),this.status=t,this.statusText=n||"",this.internal=o,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function Qj(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Zj=["post","put","patch","delete"],Vre=new Set(Zj),Ure=["get",...Zj],Gre=new Set(Ure),qre=new Set([301,302,303,307,308]),Kre=new Set([307,308]),gS={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Yre={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Rh={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Jj=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Xre=e=>({hasErrorBoundary:!!e.hasErrorBoundary});function Qre(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;Yt(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let o;if(e.mapRouteProperties)o=e.mapRouteProperties;else if(e.detectErrorBoundary){let te=e.detectErrorBoundary;o=X=>({hasErrorBoundary:te(X)})}else o=Xre;let i={},a=b_(e.routes,o,void 0,i),s,l=e.basename||"/",u=sr({v7_normalizeFormMethod:!1,v7_prependBasename:!1},e.future),c=null,f=new Set,p=null,y=null,v=null,b=e.hydrationData!=null,C=Pf(a,e.history.location,l),x=null;if(C==null){let te=Ni(404,{pathname:e.history.location.pathname}),{matches:X,route:oe}=RR(a);C=X,x={[oe.id]:te}}let w=!C.some(te=>te.route.lazy)&&(!C.some(te=>te.route.loader)||e.hydrationData!=null),S,$={historyAction:e.history.action,location:e.history.location,matches:C,initialized:w,navigation:gS,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||x,fetchers:new Map,blockers:new Map},T=Cr.Pop,k=!1,M,E=!1,N=!1,I=[],A=[],z=new Map,L=0,O=-1,j=new Map,H=new Set,B=new Map,D=new Map,W=new Map,U=!1;function Z(){return c=e.history.listen(te=>{let{action:X,location:oe,delta:Ee}=te;if(U){U=!1;return}Lc(W.size===0||Ee!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let Ue=Ae({currentLocation:$.location,nextLocation:oe,historyAction:X});if(Ue&&Ee!=null){U=!0,e.history.go(Ee*-1),je(Ue,{state:"blocked",location:oe,proceed(){je(Ue,{state:"proceeding",proceed:void 0,reset:void 0,location:oe}),e.history.go(Ee)},reset(){let Ye=new Map($.blockers);Ye.set(Ue,Rh),Q({blockers:Ye})}});return}return xe(X,oe)}),$.initialized||xe(Cr.Pop,$.location),S}function Y(){c&&c(),f.clear(),M&&M.abort(),$.fetchers.forEach((te,X)=>Le(X)),$.blockers.forEach((te,X)=>ye(X))}function se(te){return f.add(te),()=>f.delete(te)}function Q(te){$=sr({},$,te),f.forEach(X=>X($))}function ne(te,X){var oe,Ee;let Ue=$.actionData!=null&&$.navigation.formMethod!=null&&Ca($.navigation.formMethod)&&$.navigation.state==="loading"&&((oe=te.state)==null?void 0:oe._isRedirect)!==!0,Ye;X.actionData?Object.keys(X.actionData).length>0?Ye=X.actionData:Ye=null:Ue?Ye=$.actionData:Ye=null;let at=X.loaderData?ER($.loaderData,X.loaderData,X.matches||[],X.errors):$.loaderData,Je=$.blockers;Je.size>0&&(Je=new Map(Je),Je.forEach((_t,ht)=>Je.set(ht,Rh)));let nt=k===!0||$.navigation.formMethod!=null&&Ca($.navigation.formMethod)&&((Ee=te.state)==null?void 0:Ee._isRedirect)!==!0;s&&(a=s,s=void 0),E||T===Cr.Pop||(T===Cr.Push?e.history.push(te,te.state):T===Cr.Replace&&e.history.replace(te,te.state)),Q(sr({},X,{actionData:Ye,loaderData:at,historyAction:T,location:te,initialized:!0,navigation:gS,revalidation:"idle",restoreScrollPosition:et(te,X.matches||$.matches),preventScrollReset:nt,blockers:Je})),T=Cr.Pop,k=!1,E=!1,N=!1,I=[],A=[]}async function re(te,X){if(typeof te=="number"){e.history.go(te);return}let oe=x_($.location,$.matches,l,u.v7_prependBasename,te,X==null?void 0:X.fromRouteId,X==null?void 0:X.relative),{path:Ee,submission:Ue,error:Ye}=_R(u.v7_normalizeFormMethod,!1,oe,X),at=$.location,Je=tg($.location,Ee,X&&X.state);Je=sr({},Je,e.history.encodeLocation(Je));let nt=X&&X.replace!=null?X.replace:void 0,_t=Cr.Push;nt===!0?_t=Cr.Replace:nt===!1||Ue!=null&&Ca(Ue.formMethod)&&Ue.formAction===$.location.pathname+$.location.search&&(_t=Cr.Replace);let ht=X&&"preventScrollReset"in X?X.preventScrollReset===!0:void 0,lt=Ae({currentLocation:at,nextLocation:Je,historyAction:_t});if(lt){je(lt,{state:"blocked",location:Je,proceed(){je(lt,{state:"proceeding",proceed:void 0,reset:void 0,location:Je}),re(te,X)},reset(){let Ot=new Map($.blockers);Ot.set(lt,Rh),Q({blockers:Ot})}});return}return await xe(_t,Je,{submission:Ue,pendingError:Ye,preventScrollReset:ht,replace:X&&X.replace})}function ge(){if(ce(),Q({revalidation:"loading"}),$.navigation.state!=="submitting"){if($.navigation.state==="idle"){xe($.historyAction,$.location,{startUninterruptedRevalidation:!0});return}xe(T||$.historyAction,$.navigation.location,{overrideNavigation:$.navigation})}}async function xe(te,X,oe){M&&M.abort(),M=null,T=te,E=(oe&&oe.startUninterruptedRevalidation)===!0,Ct($.location,$.matches),k=(oe&&oe.preventScrollReset)===!0;let Ee=s||a,Ue=oe&&oe.overrideNavigation,Ye=Pf(Ee,X,l);if(!Ye){let Ot=Ni(404,{pathname:X.pathname}),{matches:Dt,route:fn}=RR(Ee);Ie(),ne(X,{matches:Dt,loaderData:{},errors:{[fn.id]:Ot}});return}if($.initialized&&!N&&noe($.location,X)&&!(oe&&oe.submission&&Ca(oe.submission.formMethod))){ne(X,{matches:Ye});return}M=new AbortController;let at=Ah(e.history,X,M.signal,oe&&oe.submission),Je,nt;if(oe&&oe.pendingError)nt={[Mf(Ye).route.id]:oe.pendingError};else if(oe&&oe.submission&&Ca(oe.submission.formMethod)){let Ot=await fe(at,X,oe.submission,Ye,{replace:oe.replace});if(Ot.shortCircuited)return;Je=Ot.pendingActionData,nt=Ot.pendingActionError,Ue=vS(X,oe.submission),at=new Request(at.url,{signal:at.signal})}let{shortCircuited:_t,loaderData:ht,errors:lt}=await Se(at,X,Ye,Ue,oe&&oe.submission,oe&&oe.fetcherSubmission,oe&&oe.replace,Je,nt);_t||(M=null,ne(X,sr({matches:Ye},Je?{actionData:Je}:{},{loaderData:ht,errors:lt})))}async function fe(te,X,oe,Ee,Ue){Ue===void 0&&(Ue={}),ce();let Ye=aoe(X,oe);Q({navigation:Ye});let at,Je=C_(Ee,X);if(!Je.route.action&&!Je.route.lazy)at={type:xr.error,error:Ni(405,{method:te.method,pathname:X.pathname,routeId:Je.route.id})};else if(at=await Oh("action",te,Je,Ee,i,o,l),te.signal.aborted)return{shortCircuited:!0};if(Bf(at)){let nt;return Ue&&Ue.replace!=null?nt=Ue.replace:nt=at.location===$.location.pathname+$.location.search,await me($,at,{submission:oe,replace:nt}),{shortCircuited:!0}}if(Cm(at)){let nt=Mf(Ee,Je.route.id);return(Ue&&Ue.replace)!==!0&&(T=Cr.Push),{pendingActionData:{},pendingActionError:{[nt.route.id]:at.error}}}if(ac(at))throw Ni(400,{type:"defer-action"});return{pendingActionData:{[Je.route.id]:at.data}}}async function Se(te,X,oe,Ee,Ue,Ye,at,Je,nt){let _t=Ee||vS(X,Ue),ht=Ue||Ye||FR(_t),lt=s||a,[Ot,Dt]=kR(e.history,$,oe,ht,X,N,I,A,B,H,lt,l,Je,nt);if(Ie(tt=>!(oe&&oe.some(Gt=>Gt.route.id===tt))||Ot&&Ot.some(Gt=>Gt.route.id===tt)),O=++L,Ot.length===0&&Dt.length===0){let tt=K();return ne(X,sr({matches:oe,loaderData:{},errors:nt||null},Je?{actionData:Je}:{},tt?{fetchers:new Map($.fetchers)}:{})),{shortCircuited:!0}}if(!E){Dt.forEach(Gt=>{let _e=$.fetchers.get(Gt.key),we=Fh(void 0,_e?_e.data:void 0);$.fetchers.set(Gt.key,we)});let tt=Je||$.actionData;Q(sr({navigation:_t},tt?Object.keys(tt).length===0?{actionData:null}:{actionData:tt}:{},Dt.length>0?{fetchers:new Map($.fetchers)}:{}))}Dt.forEach(tt=>{z.has(tt.key)&&Re(tt.key),tt.controller&&z.set(tt.key,tt.controller)});let fn=()=>Dt.forEach(tt=>Re(tt.key));M&&M.signal.addEventListener("abort",fn);let{results:hn,loaderResults:Pt,fetcherResults:zt}=await ue($.matches,oe,Ot,Dt,te);if(te.signal.aborted)return{shortCircuited:!0};M&&M.signal.removeEventListener("abort",fn),Dt.forEach(tt=>z.delete(tt.key));let un=OR(hn);if(un){if(un.idx>=Ot.length){let tt=Dt[un.idx-Ot.length].key;H.add(tt)}return await me($,un.result,{replace:at}),{shortCircuited:!0}}let{loaderData:cn,errors:ut}=IR($,oe,Ot,Pt,nt,Dt,zt,D);D.forEach((tt,Gt)=>{tt.subscribe(_e=>{(_e||tt.done)&&D.delete(Gt)})});let mt=K(),At=ee(O),Ft=mt||At||Dt.length>0;return sr({loaderData:cn,errors:ut},Ft?{fetchers:new Map($.fetchers)}:{})}function de(te){return $.fetchers.get(te)||Yre}function ie(te,X,oe,Ee){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");z.has(te)&&Re(te);let Ue=s||a,Ye=x_($.location,$.matches,l,u.v7_prependBasename,oe,X,Ee==null?void 0:Ee.relative),at=Pf(Ue,Ye,l);if(!at){Te(te,X,Ni(404,{pathname:Ye}));return}let{path:Je,submission:nt,error:_t}=_R(u.v7_normalizeFormMethod,!0,Ye,Ee);if(_t){Te(te,X,_t);return}let ht=C_(at,Je);if(k=(Ee&&Ee.preventScrollReset)===!0,nt&&Ca(nt.formMethod)){Pe(te,X,Je,ht,at,nt);return}B.set(te,{routeId:X,path:Je}),$e(te,X,Je,ht,at,nt)}async function Pe(te,X,oe,Ee,Ue,Ye){if(ce(),B.delete(te),!Ee.route.action&&!Ee.route.lazy){let Fe=Ni(405,{method:Ye.formMethod,pathname:oe,routeId:X});Te(te,X,Fe);return}let at=$.fetchers.get(te),Je=soe(Ye,at);$.fetchers.set(te,Je),Q({fetchers:new Map($.fetchers)});let nt=new AbortController,_t=Ah(e.history,oe,nt.signal,Ye);z.set(te,nt);let ht=L,lt=await Oh("action",_t,Ee,Ue,i,o,l);if(_t.signal.aborted){z.get(te)===nt&&z.delete(te);return}if(Bf(lt))if(z.delete(te),O>ht){let Fe=cf(void 0);$.fetchers.set(te,Fe),Q({fetchers:new Map($.fetchers)});return}else{H.add(te);let Fe=Fh(Ye);return $.fetchers.set(te,Fe),Q({fetchers:new Map($.fetchers)}),me($,lt,{fetcherSubmission:Ye})}if(Cm(lt)){Te(te,X,lt.error);return}if(ac(lt))throw Ni(400,{type:"defer-action"});let Ot=$.navigation.location||$.location,Dt=Ah(e.history,Ot,nt.signal),fn=s||a,hn=$.navigation.state!=="idle"?Pf(fn,$.navigation.location,l):$.matches;Yt(hn,"Didn't find any matches after fetcher action");let Pt=++L;j.set(te,Pt);let zt=Fh(Ye,lt.data);$.fetchers.set(te,zt);let[un,cn]=kR(e.history,$,hn,Ye,Ot,N,I,A,B,H,fn,l,{[Ee.route.id]:lt.data},void 0);cn.filter(Fe=>Fe.key!==te).forEach(Fe=>{let rt=Fe.key,Tt=$.fetchers.get(rt),en=Fh(void 0,Tt?Tt.data:void 0);$.fetchers.set(rt,en),z.has(rt)&&Re(rt),Fe.controller&&z.set(rt,Fe.controller)}),Q({fetchers:new Map($.fetchers)});let ut=()=>cn.forEach(Fe=>Re(Fe.key));nt.signal.addEventListener("abort",ut);let{results:mt,loaderResults:At,fetcherResults:Ft}=await ue($.matches,hn,un,cn,Dt);if(nt.signal.aborted)return;nt.signal.removeEventListener("abort",ut),j.delete(te),z.delete(te),cn.forEach(Fe=>z.delete(Fe.key));let tt=OR(mt);if(tt){if(tt.idx>=un.length){let Fe=cn[tt.idx-un.length].key;H.add(Fe)}return me($,tt.result)}let{loaderData:Gt,errors:_e}=IR($,$.matches,un,At,void 0,cn,Ft,D);if($.fetchers.has(te)){let Fe=cf(lt.data);$.fetchers.set(te,Fe)}let we=ee(Pt);$.navigation.state==="loading"&&Pt>O?(Yt(T,"Expected pending action"),M&&M.abort(),ne($.navigation.location,{matches:hn,loaderData:Gt,errors:_e,fetchers:new Map($.fetchers)})):(Q(sr({errors:_e,loaderData:ER($.loaderData,Gt,hn,_e)},we||cn.length>0?{fetchers:new Map($.fetchers)}:{})),N=!1)}async function $e(te,X,oe,Ee,Ue,Ye){let at=$.fetchers.get(te),Je=Fh(Ye,at?at.data:void 0);$.fetchers.set(te,Je),Q({fetchers:new Map($.fetchers)});let nt=new AbortController,_t=Ah(e.history,oe,nt.signal);z.set(te,nt);let ht=L,lt=await Oh("loader",_t,Ee,Ue,i,o,l);if(ac(lt)&&(lt=await nD(lt,_t.signal,!0)||lt),z.get(te)===nt&&z.delete(te),_t.signal.aborted)return;if(Bf(lt))if(O>ht){let Dt=cf(void 0);$.fetchers.set(te,Dt),Q({fetchers:new Map($.fetchers)});return}else{H.add(te),await me($,lt);return}if(Cm(lt)){let Dt=Mf($.matches,X);$.fetchers.delete(te),Q({fetchers:new Map($.fetchers),errors:{[Dt.route.id]:lt.error}});return}Yt(!ac(lt),"Unhandled fetcher deferred data");let Ot=cf(lt.data);$.fetchers.set(te,Ot),Q({fetchers:new Map($.fetchers)})}async function me(te,X,oe){let{submission:Ee,fetcherSubmission:Ue,replace:Ye}=oe===void 0?{}:oe;X.revalidate&&(N=!0);let at=tg(te.location,X.location,{_isRedirect:!0});if(Yt(at,"Expected a location on the redirect navigation"),n){let Ot=!1;if(X.reloadDocument)Ot=!0;else if(Jj.test(X.location)){const Dt=e.history.createURL(X.location);Ot=Dt.origin!==t.location.origin||Dp(Dt.pathname,l)==null}if(Ot){Ye?t.location.replace(X.location):t.location.assign(X.location);return}}M=null;let Je=Ye===!0?Cr.Replace:Cr.Push,{formMethod:nt,formAction:_t,formEncType:ht}=te.navigation;!Ee&&!Ue&&nt&&_t&&ht&&(Ee=FR(te.navigation));let lt=Ee||Ue;if(Kre.has(X.status)&<&&Ca(lt.formMethod))await xe(Je,at,{submission:sr({},lt,{formAction:X.location}),preventScrollReset:k});else{let Ot=vS(at,Ee);await xe(Je,at,{overrideNavigation:Ot,fetcherSubmission:Ue,preventScrollReset:k})}}async function ue(te,X,oe,Ee,Ue){let Ye=await Promise.all([...oe.map(nt=>Oh("loader",Ue,nt,X,i,o,l)),...Ee.map(nt=>nt.matches&&nt.match&&nt.controller?Oh("loader",Ah(e.history,nt.path,nt.controller.signal),nt.match,nt.matches,i,o,l):{type:xr.error,error:Ni(404,{pathname:nt.path})})]),at=Ye.slice(0,oe.length),Je=Ye.slice(oe.length);return await Promise.all([AR(te,oe,at,at.map(()=>Ue.signal),!1,$.loaderData),AR(te,Ee.map(nt=>nt.match),Je,Ee.map(nt=>nt.controller?nt.controller.signal:null),!0)]),{results:Ye,loaderResults:at,fetcherResults:Je}}function ce(){N=!0,I.push(...Ie()),B.forEach((te,X)=>{z.has(X)&&(A.push(X),Re(X))})}function Te(te,X,oe){let Ee=Mf($.matches,X);Le(te),Q({errors:{[Ee.route.id]:oe},fetchers:new Map($.fetchers)})}function Le(te){let X=$.fetchers.get(te);z.has(te)&&!(X&&X.state==="loading"&&j.has(te))&&Re(te),B.delete(te),j.delete(te),H.delete(te),$.fetchers.delete(te)}function Re(te){let X=z.get(te);Yt(X,"Expected fetch controller: "+te),X.abort(),z.delete(te)}function Oe(te){for(let X of te){let oe=de(X),Ee=cf(oe.data);$.fetchers.set(X,Ee)}}function K(){let te=[],X=!1;for(let oe of H){let Ee=$.fetchers.get(oe);Yt(Ee,"Expected fetcher: "+oe),Ee.state==="loading"&&(H.delete(oe),te.push(oe),X=!0)}return Oe(te),X}function ee(te){let X=[];for(let[oe,Ee]of j)if(Ee0}function pe(te,X){let oe=$.blockers.get(te)||Rh;return W.get(te)!==X&&W.set(te,X),oe}function ye(te){$.blockers.delete(te),W.delete(te)}function je(te,X){let oe=$.blockers.get(te)||Rh;Yt(oe.state==="unblocked"&&X.state==="blocked"||oe.state==="blocked"&&X.state==="blocked"||oe.state==="blocked"&&X.state==="proceeding"||oe.state==="blocked"&&X.state==="unblocked"||oe.state==="proceeding"&&X.state==="unblocked","Invalid blocker state transition: "+oe.state+" -> "+X.state);let Ee=new Map($.blockers);Ee.set(te,X),Q({blockers:Ee})}function Ae(te){let{currentLocation:X,nextLocation:oe,historyAction:Ee}=te;if(W.size===0)return;W.size>1&&Lc(!1,"A router only supports one blocker at a time");let Ue=Array.from(W.entries()),[Ye,at]=Ue[Ue.length-1],Je=$.blockers.get(Ye);if(!(Je&&Je.state==="proceeding")&&at({currentLocation:X,nextLocation:oe,historyAction:Ee}))return Ye}function Ie(te){let X=[];return D.forEach((oe,Ee)=>{(!te||te(Ee))&&(oe.cancel(),X.push(Ee),D.delete(Ee))}),X}function Ce(te,X,oe){if(p=te,v=X,y=oe||null,!b&&$.navigation===gS){b=!0;let Ee=et($.location,$.matches);Ee!=null&&Q({restoreScrollPosition:Ee})}return()=>{p=null,v=null,y=null}}function Ze(te,X){return y&&y(te,X.map(Ee=>$re(Ee,$.loaderData)))||te.key}function Ct(te,X){if(p&&v){let oe=Ze(te,X);p[oe]=v()}}function et(te,X){if(p){let oe=Ze(te,X),Ee=p[oe];if(typeof Ee=="number")return Ee}return null}function Be(te){i={},s=b_(te,o,void 0,i)}return S={get basename(){return l},get state(){return $},get routes(){return a},initialize:Z,subscribe:se,enableScrollRestoration:Ce,navigate:re,fetch:ie,revalidate:ge,createHref:te=>e.history.createHref(te),encodeLocation:te=>e.history.encodeLocation(te),getFetcher:de,deleteFetcher:Le,dispose:Y,getBlocker:pe,deleteBlocker:ye,_internalFetchControllers:z,_internalActiveDeferreds:D,_internalSetRoutes:Be},S}function Zre(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function x_(e,t,n,r,o,i,a){let s,l;if(i!=null&&a!=="path"){s=[];for(let c of t)if(s.push(c),c.route.id===i){l=c;break}}else s=t,l=t[t.length-1];let u=rM(o||".",qb(s).map(c=>c.pathnameBase),Dp(e.pathname,n)||e.pathname,a==="path");return o==null&&(u.search=e.search,u.hash=e.hash),(o==null||o===""||o===".")&&l&&l.route.index&&!iM(u.search)&&(u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(u.pathname=u.pathname==="/"?n:rl([n,u.pathname])),jc(u)}function _R(e,t,n,r){if(!r||!Zre(r))return{path:n};if(r.formMethod&&!ioe(r.formMethod))return{path:n,error:Ni(405,{method:r.formMethod})};let o=()=>({path:n,error:Ni(400,{type:"invalid-body"})}),i=r.formMethod||"get",a=e?i.toUpperCase():i.toLowerCase(),s=tD(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!Ca(a))return o();let p=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((y,v)=>{let[b,C]=v;return""+y+b+"="+C+` +`},""):String(r.body);return{path:n,submission:{formMethod:a,formAction:s,formEncType:r.formEncType,formData:void 0,json:void 0,text:p}}}else if(r.formEncType==="application/json"){if(!Ca(a))return o();try{let p=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:a,formAction:s,formEncType:r.formEncType,formData:void 0,json:p,text:void 0}}}catch{return o()}}}Yt(typeof FormData=="function","FormData is not available in this environment");let l,u;if(r.formData)l=w_(r.formData),u=r.formData;else if(r.body instanceof FormData)l=w_(r.body),u=r.body;else if(r.body instanceof URLSearchParams)l=r.body,u=TR(l);else if(r.body==null)l=new URLSearchParams,u=new FormData;else try{l=new URLSearchParams(r.body),u=TR(l)}catch{return o()}let c={formMethod:a,formAction:s,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(Ca(c.formMethod))return{path:n,submission:c};let f=ws(n);return t&&f.search&&iM(f.search)&&l.append("index",""),f.search="?"+l,{path:jc(f),submission:c}}function Jre(e,t){let n=e;if(t){let r=e.findIndex(o=>o.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function kR(e,t,n,r,o,i,a,s,l,u,c,f,p,y){let v=y?Object.values(y)[0]:p?Object.values(p)[0]:void 0,b=e.createURL(t.location),C=e.createURL(o),x=y?Object.keys(y)[0]:void 0,S=Jre(n,x).filter((T,k)=>{if(T.route.lazy)return!0;if(T.route.loader==null)return!1;if(eoe(t.loaderData,t.matches[k],T)||a.some(N=>N===T.route.id))return!0;let M=t.matches[k],E=T;return PR(T,sr({currentUrl:b,currentParams:M.params,nextUrl:C,nextParams:E.params},r,{actionResult:v,defaultShouldRevalidate:i||b.pathname+b.search===C.pathname+C.search||b.search!==C.search||eD(M,E)}))}),$=[];return l.forEach((T,k)=>{if(!n.some(A=>A.route.id===T.routeId))return;let M=Pf(c,T.path,f);if(!M){$.push({key:k,routeId:T.routeId,path:T.path,matches:null,match:null,controller:null});return}let E=t.fetchers.get(k),N=C_(M,T.path),I=!1;u.has(k)?I=!1:s.includes(k)?I=!0:E&&E.state!=="idle"&&E.data===void 0?I=i:I=PR(N,sr({currentUrl:b,currentParams:t.matches[t.matches.length-1].params,nextUrl:C,nextParams:n[n.length-1].params},r,{actionResult:v,defaultShouldRevalidate:i})),I&&$.push({key:k,routeId:T.routeId,path:T.path,matches:M,match:N,controller:new AbortController})}),[S,$]}function eoe(e,t,n){let r=!t||n.route.id!==t.route.id,o=e[n.route.id]===void 0;return r||o}function eD(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function PR(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function MR(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let o=n[e.id];Yt(o,"No route found in manifest");let i={};for(let a in r){let l=o[a]!==void 0&&a!=="hasErrorBoundary";Lc(!l,'Route "'+o.id+'" has a static property "'+a+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+a+'" will be ignored.')),!l&&!Cre.has(a)&&(i[a]=r[a])}Object.assign(o,i),Object.assign(o,sr({},t(o),{lazy:void 0}))}async function Oh(e,t,n,r,o,i,a,s){s===void 0&&(s={});let l,u,c,f=v=>{let b,C=new Promise((x,w)=>b=w);return c=()=>b(),t.signal.addEventListener("abort",c),Promise.race([v({request:t,params:n.params,context:s.requestContext}),C])};try{let v=n.route[e];if(n.route.lazy)if(v){let b,C=await Promise.all([f(v).catch(x=>{b=x}),MR(n.route,i,o)]);if(b)throw b;u=C[0]}else if(await MR(n.route,i,o),v=n.route[e],v)u=await f(v);else if(e==="action"){let b=new URL(t.url),C=b.pathname+b.search;throw Ni(405,{method:t.method,pathname:C,routeId:n.route.id})}else return{type:xr.data,data:void 0};else if(v)u=await f(v);else{let b=new URL(t.url),C=b.pathname+b.search;throw Ni(404,{pathname:C})}Yt(u!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(v){l=xr.error,u=v}finally{c&&t.signal.removeEventListener("abort",c)}if(ooe(u)){let v=u.status;if(qre.has(v)){let x=u.headers.get("Location");if(Yt(x,"Redirects returned/thrown from loaders/actions must have a Location header"),!Jj.test(x))x=x_(new URL(t.url),r.slice(0,r.indexOf(n)+1),a,!0,x);else if(!s.isStaticRequest){let w=new URL(t.url),S=x.startsWith("//")?new URL(w.protocol+x):new URL(x),$=Dp(S.pathname,a)!=null;S.origin===w.origin&&$&&(x=S.pathname+S.search+S.hash)}if(s.isStaticRequest)throw u.headers.set("Location",x),u;return{type:xr.redirect,status:v,location:x,revalidate:u.headers.get("X-Remix-Revalidate")!==null,reloadDocument:u.headers.get("X-Remix-Reload-Document")!==null}}if(s.isRouteRequest)throw{type:l===xr.error?xr.error:xr.data,response:u};let b,C=u.headers.get("Content-Type");return C&&/\bapplication\/json\b/.test(C)?b=await u.json():b=await u.text(),l===xr.error?{type:l,error:new oM(v,u.statusText,b),headers:u.headers}:{type:xr.data,data:b,statusCode:u.status,headers:u.headers}}if(l===xr.error)return{type:l,error:u};if(roe(u)){var p,y;return{type:xr.deferred,deferredData:u,statusCode:(p=u.init)==null?void 0:p.status,headers:((y=u.init)==null?void 0:y.headers)&&new Headers(u.init.headers)}}return{type:xr.data,data:u}}function Ah(e,t,n,r){let o=e.createURL(tD(t)).toString(),i={signal:n};if(r&&Ca(r.formMethod)){let{formMethod:a,formEncType:s}=r;i.method=a.toUpperCase(),s==="application/json"?(i.headers=new Headers({"Content-Type":s}),i.body=JSON.stringify(r.json)):s==="text/plain"?i.body=r.text:s==="application/x-www-form-urlencoded"&&r.formData?i.body=w_(r.formData):i.body=r.formData}return new Request(o,i)}function w_(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function TR(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function toe(e,t,n,r,o){let i={},a=null,s,l=!1,u={};return n.forEach((c,f)=>{let p=t[f].route.id;if(Yt(!Bf(c),"Cannot handle redirect results in processLoaderData"),Cm(c)){let y=Mf(e,p),v=c.error;r&&(v=Object.values(r)[0],r=void 0),a=a||{},a[y.route.id]==null&&(a[y.route.id]=v),i[p]=void 0,l||(l=!0,s=Qj(c.error)?c.error.status:500),c.headers&&(u[p]=c.headers)}else ac(c)?(o.set(p,c.deferredData),i[p]=c.deferredData.data):i[p]=c.data,c.statusCode!=null&&c.statusCode!==200&&!l&&(s=c.statusCode),c.headers&&(u[p]=c.headers)}),r&&(a=r,i[Object.keys(r)[0]]=void 0),{loaderData:i,errors:a,statusCode:s||200,loaderHeaders:u}}function IR(e,t,n,r,o,i,a,s){let{loaderData:l,errors:u}=toe(t,n,r,o,s);for(let c=0;cr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function RR(e){let t=e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Ni(e,t){let{pathname:n,routeId:r,method:o,type:i}=t===void 0?{}:t,a="Unknown Server Error",s="Unknown @remix-run/router error";return e===400?(a="Bad Request",o&&n&&r?s="You made a "+o+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":i==="defer-action"?s="defer() is not supported in actions":i==="invalid-body"&&(s="Unable to encode submission body")):e===403?(a="Forbidden",s='Route "'+r+'" does not match URL "'+n+'"'):e===404?(a="Not Found",s='No route matches URL "'+n+'"'):e===405&&(a="Method Not Allowed",o&&n&&r?s="You made a "+o.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":o&&(s='Invalid request method "'+o.toUpperCase()+'"')),new oM(e||500,a,new Error(s),!0)}function OR(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(Bf(n))return{result:n,idx:t}}}function tD(e){let t=typeof e=="string"?ws(e):e;return jc(sr({},t,{hash:""}))}function noe(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function ac(e){return e.type===xr.deferred}function Cm(e){return e.type===xr.error}function Bf(e){return(e&&e.type)===xr.redirect}function roe(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function ooe(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function ioe(e){return Gre.has(e.toLowerCase())}function Ca(e){return Vre.has(e.toLowerCase())}async function AR(e,t,n,r,o,i){for(let a=0;af.route.id===l.route.id),c=u!=null&&!eD(u,l)&&(i&&i[l.route.id])!==void 0;if(ac(s)&&(o||c)){let f=r[a];Yt(f,"Expected an AbortSignal for revalidating fetcher deferred result"),await nD(s,f,o).then(p=>{p&&(n[a]=p||n[a])})}}}async function nD(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:xr.data,data:e.deferredData.unwrappedData}}catch(o){return{type:xr.error,error:o}}return{type:xr.data,data:e.deferredData.data}}}function iM(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function C_(e,t){let n=typeof t=="string"?ws(t).search:t.search;if(e[e.length-1].route.index&&iM(n||""))return e[e.length-1];let r=qb(e);return r[r.length-1]}function FR(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:i,json:a}=e;if(!(!t||!n||!r)){if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o};if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:i,json:void 0,text:void 0};if(a!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:a,text:void 0}}}function vS(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function aoe(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function Fh(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function soe(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function cf(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}/** + * React Router v6.16.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function by(){return by=Object.assign?Object.assign.bind():function(e){for(var t=1;tl.pathnameBase)),a=g.useRef(!1);return oD(()=>{a.current=!0}),g.useCallback(function(l,u){if(u===void 0&&(u={}),!a.current)return;if(typeof l=="number"){n.go(l);return}let c=rM(l,JSON.parse(i),o,u.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:rl([t,c.pathname])),(u.replace?n.replace:n.push)(c,u.state,u)},[t,n,i,o,e])}const doe=g.createContext(null);function foe(e){let t=g.useContext($u).outlet;return t&&g.createElement(doe.Provider,{value:e},t)}function sM(e,t){let{relative:n}=t===void 0?{}:t,{matches:r}=g.useContext($u),{pathname:o}=r0(),i=JSON.stringify(qb(r).map(a=>a.pathnameBase));return g.useMemo(()=>rM(e,JSON.parse(i),o,n==="path"),[e,i,o,n])}function poe(e,t,n){n0()||Yt(!1);let{navigator:r}=g.useContext(ad),{matches:o}=g.useContext($u),i=o[o.length-1],a=i?i.params:{};i&&i.pathname;let s=i?i.pathnameBase:"/";i&&i.route;let l=r0(),u;if(t){var c;let b=typeof t=="string"?ws(t):t;s==="/"||(c=b.pathname)!=null&&c.startsWith(s)||Yt(!1),u=b}else u=l;let f=u.pathname||"/",p=s==="/"?f:f.slice(s.length)||"/",y=Pf(e,{pathname:p}),v=yoe(y&&y.map(b=>Object.assign({},b,{params:Object.assign({},a,b.params),pathname:rl([s,r.encodeLocation?r.encodeLocation(b.pathname).pathname:b.pathname]),pathnameBase:b.pathnameBase==="/"?s:rl([s,r.encodeLocation?r.encodeLocation(b.pathnameBase).pathname:b.pathnameBase])})),o,n);return t&&v?g.createElement(Yb.Provider,{value:{location:by({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:Cr.Pop}},v):v}function hoe(){let e=Coe(),t=Qj(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},i=null;return g.createElement(g.Fragment,null,g.createElement("h2",null,"Unexpected Application Error!"),g.createElement("h3",{style:{fontStyle:"italic"}},t),n?g.createElement("pre",{style:o},n):null,i)}const moe=g.createElement(hoe,null);class goe extends g.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error||n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error?g.createElement($u.Provider,{value:this.props.routeContext},g.createElement(rD.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function voe(e){let{routeContext:t,match:n,children:r}=e,o=g.useContext(Kb);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),g.createElement($u.Provider,{value:t},r)}function yoe(e,t,n){var r;if(t===void 0&&(t=[]),n===void 0&&(n=null),e==null){var o;if((o=n)!=null&&o.errors)e=n.matches;else return null}let i=e,a=(r=n)==null?void 0:r.errors;if(a!=null){let s=i.findIndex(l=>l.route.id&&(a==null?void 0:a[l.route.id]));s>=0||Yt(!1),i=i.slice(0,Math.min(i.length,s+1))}return i.reduceRight((s,l,u)=>{let c=l.route.id?a==null?void 0:a[l.route.id]:null,f=null;n&&(f=l.route.errorElement||moe);let p=t.concat(i.slice(0,u+1)),y=()=>{let v;return c?v=f:l.route.Component?v=g.createElement(l.route.Component,null):l.route.element?v=l.route.element:v=s,g.createElement(voe,{match:l,routeContext:{outlet:s,matches:p,isDataRoute:n!=null},children:v})};return n&&(l.route.ErrorBoundary||l.route.errorElement||u===0)?g.createElement(goe,{location:n.location,revalidation:n.revalidation,component:f,error:c,children:y(),routeContext:{outlet:null,matches:p,isDataRoute:!0}}):y()},null)}var iD=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(iD||{}),xy=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(xy||{});function boe(e){let t=g.useContext(Kb);return t||Yt(!1),t}function xoe(e){let t=g.useContext(aM);return t||Yt(!1),t}function woe(e){let t=g.useContext($u);return t||Yt(!1),t}function aD(e){let t=woe(),n=t.matches[t.matches.length-1];return n.route.id||Yt(!1),n.route.id}function Coe(){var e;let t=g.useContext(rD),n=xoe(xy.UseRouteError),r=aD(xy.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function Soe(){let{router:e}=boe(iD.UseNavigateStable),t=aD(xy.UseNavigateStable),n=g.useRef(!1);return oD(()=>{n.current=!0}),g.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,by({fromRouteId:t},i)))},[e,t])}const $oe="startTransition",LR=ep[$oe];function _oe(e){let{fallbackElement:t,router:n,future:r}=e,[o,i]=g.useState(n.state),{v7_startTransition:a}=r||{},s=g.useCallback(f=>{a&&LR?LR(()=>i(f)):i(f)},[i,a]);g.useLayoutEffect(()=>n.subscribe(s),[n,s]);let l=g.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:f=>n.navigate(f),push:(f,p,y)=>n.navigate(f,{state:p,preventScrollReset:y==null?void 0:y.preventScrollReset}),replace:(f,p,y)=>n.navigate(f,{replace:!0,state:p,preventScrollReset:y==null?void 0:y.preventScrollReset})}),[n]),u=n.basename||"/",c=g.useMemo(()=>({router:n,navigator:l,static:!1,basename:u}),[n,l,u]);return g.createElement(g.Fragment,null,g.createElement(Kb.Provider,{value:c},g.createElement(aM.Provider,{value:o},g.createElement(Moe,{basename:u,location:o.location,navigationType:o.historyAction,navigator:l},o.initialized?g.createElement(koe,{routes:n.routes,state:o}):t))),null)}function koe(e){let{routes:t,state:n}=e;return poe(t,void 0,n)}function Poe(e){return foe(e.context)}function Wa(e){Yt(!1)}function Moe(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Cr.Pop,navigator:i,static:a=!1}=e;n0()&&Yt(!1);let s=t.replace(/^\/*/,"/"),l=g.useMemo(()=>({basename:s,navigator:i,static:a}),[s,i,a]);typeof r=="string"&&(r=ws(r));let{pathname:u="/",search:c="",hash:f="",state:p=null,key:y="default"}=r,v=g.useMemo(()=>{let b=Dp(u,s);return b==null?null:{location:{pathname:b,search:c,hash:f,state:p,key:y},navigationType:o}},[s,u,c,f,p,y,o]);return v==null?null:g.createElement(ad.Provider,{value:l},g.createElement(Yb.Provider,{children:n,value:v}))}new Promise(()=>{});function S_(e,t){t===void 0&&(t=[]);let n=[];return g.Children.forEach(e,(r,o)=>{if(!g.isValidElement(r))return;let i=[...t,o];if(r.type===g.Fragment){n.push.apply(n,S_(r.props.children,i));return}r.type!==Wa&&Yt(!1),!r.props.index||!r.props.children||Yt(!1);let a={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(a.children=S_(r.props.children,i)),n.push(a)}),n}function Toe(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:g.createElement(e.Component),Component:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:g.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** + * React Router DOM v6.16.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function lp(){return lp=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function Ioe(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Eoe(e,t){return e.button===0&&(!t||t==="_self")&&!Ioe(e)}const Roe=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],Ooe=["aria-current","caseSensitive","className","end","style","to","children"];function Aoe(e,t){return Qre({basename:t==null?void 0:t.basename,future:lp({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:bre({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||Foe(),routes:e,mapRouteProperties:Toe}).initialize()}function Foe(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=lp({},t,{errors:Loe(t.errors)})),t}function Loe(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,o]of t)if(o&&o.__type==="RouteErrorResponse")n[r]=new oM(o.status,o.statusText,o.data,o.internal===!0);else if(o&&o.__type==="Error"){if(o.__subType){let i=window[o.__subType];if(typeof i=="function")try{let a=new i(o.message);a.stack="",n[r]=a}catch{}}if(n[r]==null){let i=new Error(o.message);i.stack="",n[r]=i}}else n[r]=o;return n}const joe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Doe=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Noe=g.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:a,state:s,target:l,to:u,preventScrollReset:c}=t,f=sD(t,Roe),{basename:p}=g.useContext(ad),y,v=!1;if(typeof u=="string"&&Doe.test(u)&&(y=u,joe))try{let w=new URL(window.location.href),S=u.startsWith("//")?new URL(w.protocol+u):new URL(u),$=Dp(S.pathname,p);S.origin===w.origin&&$!=null?u=$+S.search+S.hash:v=!0}catch{}let b=loe(u,{relative:o}),C=Boe(u,{replace:a,state:s,target:l,preventScrollReset:c,relative:o});function x(w){r&&r(w),w.defaultPrevented||C(w)}return g.createElement("a",lp({},f,{href:y||b,onClick:v||i?r:x,ref:n,target:l}))}),zoe=g.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:o=!1,className:i="",end:a=!1,style:s,to:l,children:u}=t,c=sD(t,Ooe),f=sM(l,{relative:c.relative}),p=r0(),y=g.useContext(aM),{navigator:v}=g.useContext(ad),b=v.encodeLocation?v.encodeLocation(f).pathname:f.pathname,C=p.pathname,x=y&&y.navigation&&y.navigation.location?y.navigation.location.pathname:null;o||(C=C.toLowerCase(),x=x?x.toLowerCase():null,b=b.toLowerCase());let w=C===b||!a&&C.startsWith(b)&&C.charAt(b.length)==="/",S=x!=null&&(x===b||!a&&x.startsWith(b)&&x.charAt(b.length)==="/"),$=w?r:void 0,T;typeof i=="function"?T=i({isActive:w,isPending:S}):T=[i,w?"active":null,S?"pending":null].filter(Boolean).join(" ");let k=typeof s=="function"?s({isActive:w,isPending:S}):s;return g.createElement(Noe,lp({},c,{"aria-current":$,className:T,ref:n,style:k,to:l}),typeof u=="function"?u({isActive:w,isPending:S}):u)});var jR;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher"})(jR||(jR={}));var DR;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(DR||(DR={}));function Boe(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:a}=t===void 0?{}:t,s=uoe(),l=r0(),u=sM(e,{relative:a});return g.useCallback(c=>{if(Eoe(c,n)){c.preventDefault();let f=r!==void 0?r:jc(l)===jc(u);s(e,{replace:f,state:o,preventScrollReset:i,relative:a})}},[l,s,u,r,o,n,e,i,a])}function Hoe(e,t){return()=>null}function P(){return P=Object.assign?Object.assign.bind():function(e){for(var t=1;t{t[n]=lD(e[n])}),t}function ho(e,t,n={clone:!0}){const r=n.clone?P({},e):e;return Ks(e)&&Ks(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(Ks(t[o])&&o in e&&Ks(e[o])?r[o]=ho(e[o],t[o],n):n.clone?r[o]=Ks(t[o])?lD(t[o]):t[o]:r[o]=t[o])}),r}var uD={exports:{}},Woe="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Voe=Woe,Uoe=Voe;function cD(){}function dD(){}dD.resetWarningCache=cD;var Goe=function(){function e(r,o,i,a,s,l){if(l!==Uoe){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:dD,resetWarningCache:cD};return n.PropTypes=n,n};uD.exports=Goe();var qoe=uD.exports;const R=Fr(qoe);function hu(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;nn==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function _u(e,t=166){let n;function r(...o){const i=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(i,t)}return r.clear=()=>{clearTimeout(n)},r}function Xoe(e,t){return()=>null}function _1(e,t){var n,r;return g.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function Gn(e){return e&&e.ownerDocument||document}function ra(e){return Gn(e).defaultView||window}function Qoe(e,t){return()=>null}function Dc(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const Zoe=typeof window<"u"?g.useLayoutEffect:g.useEffect,dn=Zoe;let NR=0;function Joe(e){const[t,n]=g.useState(e),r=e||t;return g.useEffect(()=>{t==null&&(NR+=1,n(`mui-${NR}`))},[t]),r}const zR=ep["useId".toString()];function ln(e){if(zR!==void 0){const t=zR();return e??t}return Joe(e)}function eie(e,t,n,r,o){return null}function su({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=g.useRef(e!==void 0),[i,a]=g.useState(t),s=o?e:i,l=g.useCallback(u=>{o||a(u)},[]);return[s,l]}function Dn(e){const t=g.useRef(e);return dn(()=>{t.current=e}),g.useRef((...n)=>(0,t.current)(...n)).current}function rn(...e){return g.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{Dc(n,t)})},e)}let ax=!0,__=!1,BR;const tie={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function nie(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&tie[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function rie(e){e.metaKey||e.altKey||e.ctrlKey||(ax=!0)}function yS(){ax=!1}function oie(){this.visibilityState==="hidden"&&__&&(ax=!0)}function iie(e){e.addEventListener("keydown",rie,!0),e.addEventListener("mousedown",yS,!0),e.addEventListener("pointerdown",yS,!0),e.addEventListener("touchstart",yS,!0),e.addEventListener("visibilitychange",oie,!0)}function aie(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return ax||nie(t)}function cM(){const e=g.useCallback(o=>{o!=null&&iie(o.ownerDocument)},[]),t=g.useRef(!1);function n(){return t.current?(__=!0,window.clearTimeout(BR),BR=window.setTimeout(()=>{__=!1},100),t.current=!1,!0):!1}function r(o){return aie(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function pD(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let Kd;function hD(){if(Kd)return Kd;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),Kd="reverse",e.scrollLeft>0?Kd="default":(e.scrollLeft=1,e.scrollLeft===0&&(Kd="negative")),document.body.removeChild(e),Kd}function sie(e,t){const n=e.scrollLeft;if(t!=="rtl")return n;switch(hD()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}const lie=e=>{const t=g.useRef({});return g.useEffect(()=>{t.current=e}),t.current},dM=lie;function fM(e,t){const n=P({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=P({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},!i||!Object.keys(i)?n[r]=o:!o||!Object.keys(o)?n[r]=i:(n[r]=P({},i),Object.keys(o).forEach(a=>{n[r][a]=fM(o[a],i[a])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function Ke(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((i,a)=>{if(a){const s=t(a);s!==""&&i.push(s),n&&n[a]&&i.push(n[a])}return i},[]).join(" ")}),r}const HR=e=>e,uie=()=>{let e=HR;return{configure(t){e=t},generate(t){return e(t)},reset(){e=HR}}},cie=uie(),pM=cie,die={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function vt(e,t,n="Mui"){const r=die[t];return r?`${n}-${r}`:`${pM.generate(e)}-${t}`}function yt(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=vt(e,o,n)}),r}const o0="$$material";function be(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}function mD(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var fie=/^((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|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)-.*))$/,pie=mD(function(e){return fie.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function hie(e){if(e.sheet)return e.sheet;for(var t=0;t0?Xr(Np,--Qo):0,up--,Sr===10&&(up=1,lx--),Sr}function bi(){return Sr=Qo2||rg(Sr)>3?"":" "}function Pie(e,t){for(;--t&&bi()&&!(Sr<48||Sr>102||Sr>57&&Sr<65||Sr>70&&Sr<97););return i0(e,k1()+(t<6&&as()==32&&bi()==32))}function P_(e){for(;bi();)switch(Sr){case e:return Qo;case 34:case 39:e!==34&&e!==39&&P_(Sr);break;case 40:e===41&&P_(e);break;case 92:bi();break}return Qo}function Mie(e,t){for(;bi()&&e+Sr!==47+10;)if(e+Sr===42+42&&as()===47)break;return"/*"+i0(t,Qo-1)+"*"+sx(e===47?e:bi())}function Tie(e){for(;!rg(as());)bi();return i0(e,Qo)}function Iie(e){return wD(M1("",null,null,null,[""],e=xD(e),0,[0],e))}function M1(e,t,n,r,o,i,a,s,l){for(var u=0,c=0,f=a,p=0,y=0,v=0,b=1,C=1,x=1,w=0,S="",$=o,T=i,k=r,M=S;C;)switch(v=w,w=bi()){case 40:if(v!=108&&Xr(M,f-1)==58){k_(M+=wn(P1(w),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:M+=P1(w);break;case 9:case 10:case 13:case 32:M+=kie(v);break;case 92:M+=Pie(k1()-1,7);continue;case 47:switch(as()){case 42:case 47:Dv(Eie(Mie(bi(),k1()),t,n),l);break;default:M+="/"}break;case 123*b:s[u++]=Ka(M)*x;case 125*b:case 59:case 0:switch(w){case 0:case 125:C=0;case 59+c:x==-1&&(M=wn(M,/\f/g,"")),y>0&&Ka(M)-f&&Dv(y>32?VR(M+";",r,n,f-1):VR(wn(M," ","")+";",r,n,f-2),l);break;case 59:M+=";";default:if(Dv(k=WR(M,t,n,u,c,o,s,S,$=[],T=[],f),i),w===123)if(c===0)M1(M,t,k,k,$,i,f,s,T);else switch(p===99&&Xr(M,3)===110?100:p){case 100:case 108:case 109:case 115:M1(e,k,k,r&&Dv(WR(e,k,k,0,0,o,s,S,o,$=[],f),T),o,T,f,s,r?$:T);break;default:M1(M,k,k,k,[""],T,0,s,T)}}u=c=y=0,b=x=1,S=M="",f=a;break;case 58:f=1+Ka(M),y=v;default:if(b<1){if(w==123)--b;else if(w==125&&b++==0&&_ie()==125)continue}switch(M+=sx(w),w*b){case 38:x=c>0?1:(M+="\f",-1);break;case 44:s[u++]=(Ka(M)-1)*x,x=1;break;case 64:as()===45&&(M+=P1(bi())),p=as(),c=f=Ka(S=M+=Tie(k1())),w++;break;case 45:v===45&&Ka(M)==2&&(b=0)}}return i}function WR(e,t,n,r,o,i,a,s,l,u,c){for(var f=o-1,p=o===0?i:[""],y=gM(p),v=0,b=0,C=0;v0?p[x]+" "+w:wn(w,/&\f/g,p[x])))&&(l[C++]=S);return ux(e,t,n,o===0?hM:s,l,u,c)}function Eie(e,t,n){return ux(e,t,n,gD,sx($ie()),ng(e,2,-2),0)}function VR(e,t,n,r){return ux(e,t,n,mM,ng(e,0,r),ng(e,r+1,-1),r)}function Hf(e,t){for(var n="",r=gM(e),o=0;o6)switch(Xr(e,t+1)){case 109:if(Xr(e,t+4)!==45)break;case 102:return wn(e,/(.+:)(.+)-([^]+)/,"$1"+bn+"$2-$3$1"+wy+(Xr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~k_(e,"stretch")?CD(wn(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Xr(e,t+1)!==115)break;case 6444:switch(Xr(e,Ka(e)-3-(~k_(e,"!important")&&10))){case 107:return wn(e,":",":"+bn)+e;case 101:return wn(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+bn+(Xr(e,14)===45?"inline-":"")+"box$3$1"+bn+"$2$3$1"+so+"$2box$3")+e}break;case 5936:switch(Xr(e,t+11)){case 114:return bn+e+so+wn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return bn+e+so+wn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return bn+e+so+wn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return bn+e+so+e+e}return e}var zie=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case mM:t.return=CD(t.value,t.length);break;case vD:return Hf([Lh(t,{value:wn(t.value,"@","@"+bn)})],o);case hM:if(t.length)return Sie(t.props,function(i){switch(Cie(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Hf([Lh(t,{props:[wn(i,/:(read-\w+)/,":"+wy+"$1")]})],o);case"::placeholder":return Hf([Lh(t,{props:[wn(i,/:(plac\w+)/,":"+bn+"input-$1")]}),Lh(t,{props:[wn(i,/:(plac\w+)/,":"+wy+"$1")]}),Lh(t,{props:[wn(i,/:(plac\w+)/,so+"input-$1")]})],o)}return""})}},Bie=[zie],Hie=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(b){var C=b.getAttribute("data-emotion");C.indexOf(" ")!==-1&&(document.head.appendChild(b),b.setAttribute("data-s",""))})}var o=t.stylisPlugins||Bie,i={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(b){for(var C=b.getAttribute("data-emotion").split(" "),x=1;x=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var eae={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},tae=/[A-Z]|^ms/g,nae=/_EMO_([^_]+?)_([^]*?)_EMO_/g,TD=function(t){return t.charCodeAt(1)===45},qR=function(t){return t!=null&&typeof t!="boolean"},bS=mD(function(e){return TD(e)?e:e.replace(tae,"-$&").toLowerCase()}),KR=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(nae,function(r,o,i){return Ya={name:o,styles:i,next:Ya},o})}return eae[t]!==1&&!TD(t)&&typeof n=="number"&&n!==0?n+"px":n};function og(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return Ya={name:n.name,styles:n.styles,next:Ya},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)Ya={name:r.name,styles:r.styles,next:Ya},r=r.next;var o=n.styles+";";return o}return rae(e,t,n)}case"function":{if(e!==void 0){var i=Ya,a=n(e);return Ya=i,og(e,t,a)}break}}if(t==null)return n;var s=t[n];return s!==void 0?s:n}function rae(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o96?cae:dae},ZR=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(a){return t.__emotion_forwardProp(a)&&i(a)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},fae=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return PD(n,r,o),iae(function(){return MD(n,r,o)}),null},pae=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,a;n!==void 0&&(i=n.label,a=n.target);var s=ZR(t,n,r),l=s||QR(o),u=!l("as");return function(){var c=arguments,f=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&f.push("label:"+i+";"),c[0]==null||c[0].raw===void 0)f.push.apply(f,c);else{f.push(c[0][0]);for(var p=c.length,y=1;yt(mae(o)?n:o):t;return m.jsx(uae,{styles:r})}/** + * @mui/styled-engine v5.14.18 + * + * @license MIT + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */function OD(e,t){return M_(e,t)}const vae=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},yae=["values","unit","step"],bae=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>P({},n,{[r.key]:r.val}),{})};function xae(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=be(e,yae),i=bae(t),a=Object.keys(i);function s(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n})`}function l(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-r/100}${n})`}function u(p,y){const v=a.indexOf(y);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n}) and (max-width:${(v!==-1&&typeof t[a[v]]=="number"?t[a[v]]:y)-r/100}${n})`}function c(p){return a.indexOf(p)+1`@media (min-width:${wM[e]}px)`};function Zo(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||JR;return t.reduce((a,s,l)=>(a[i.up(i.keys[l])]=n(t[l]),a),{})}if(typeof t=="object"){const i=r.breakpoints||JR;return Object.keys(t).reduce((a,s)=>{if(Object.keys(i.values||wM).indexOf(s)!==-1){const l=i.up(s);a[l]=n(t[s],s)}else{const l=s;a[l]=t[l]}return a},{})}return n(t)}function AD(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function FD(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function Sae(e,...t){const n=AD(e),r=[n,...t].reduce((o,i)=>ho(o,i),{});return FD(Object.keys(n),r)}function $ae(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((o,i)=>{i{e[o]!=null&&(n[o]=!0)}),n}function vc({values:e,breakpoints:t,base:n}){const r=n||$ae(e,t),o=Object.keys(r);if(o.length===0)return e;let i;return o.reduce((a,s,l)=>(Array.isArray(e)?(a[s]=e[l]!=null?e[l]:e[i],i=l):typeof e=="object"?(a[s]=e[s]!=null?e[s]:e[i],i=s):a[s]=e,a),{})}function xx(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function Cy(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=xx(e,n)||r,t&&(o=t(o,r,e)),o}function $n(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=a=>{if(a[t]==null)return null;const s=a[t],l=a.theme,u=xx(l,r)||{};return Zo(a,s,f=>{let p=Cy(u,o,f);return f===p&&typeof f=="string"&&(p=Cy(u,o,`${t}${f==="default"?"":De(f)}`,f)),n===!1?p:{[n]:p}})};return i.propTypes={},i.filterProps=[t],i}function _ae(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const kae={m:"margin",p:"padding"},Pae={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},eO={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Mae=_ae(e=>{if(e.length>2)if(eO[e])e=eO[e];else return[e];const[t,n]=e.split(""),r=kae[t],o=Pae[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),CM=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],SM=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...CM,...SM];function a0(e,t,n,r){var o;const i=(o=xx(e,t,!1))!=null?o:n;return typeof i=="number"?a=>typeof a=="string"?a:i*a:Array.isArray(i)?a=>typeof a=="string"?a:i[a]:typeof i=="function"?i:()=>{}}function $M(e){return a0(e,"spacing",8)}function Nc(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function Tae(e,t){return n=>e.reduce((r,o)=>(r[o]=Nc(t,n),r),{})}function Iae(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=Mae(n),i=Tae(o,r),a=e[n];return Zo(e,a,i)}function LD(e,t){const n=$M(e.theme);return Object.keys(e).map(r=>Iae(e,t,r,n)).reduce(Sm,{})}function fr(e){return LD(e,CM)}fr.propTypes={};fr.filterProps=CM;function pr(e){return LD(e,SM)}pr.propTypes={};pr.filterProps=SM;function Eae(e=8){if(e.mui)return e;const t=$M({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(i=>{const a=t(i);return typeof a=="number"?`${a}px`:a}).join(" ");return n.mui=!0,n}function wx(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>t[i]?Sm(o,t[i](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function es(e){return typeof e!="number"?e:`${e}px solid`}const Rae=$n({prop:"border",themeKey:"borders",transform:es}),Oae=$n({prop:"borderTop",themeKey:"borders",transform:es}),Aae=$n({prop:"borderRight",themeKey:"borders",transform:es}),Fae=$n({prop:"borderBottom",themeKey:"borders",transform:es}),Lae=$n({prop:"borderLeft",themeKey:"borders",transform:es}),jae=$n({prop:"borderColor",themeKey:"palette"}),Dae=$n({prop:"borderTopColor",themeKey:"palette"}),Nae=$n({prop:"borderRightColor",themeKey:"palette"}),zae=$n({prop:"borderBottomColor",themeKey:"palette"}),Bae=$n({prop:"borderLeftColor",themeKey:"palette"}),Cx=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=a0(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Nc(t,r)});return Zo(e,e.borderRadius,n)}return null};Cx.propTypes={};Cx.filterProps=["borderRadius"];wx(Rae,Oae,Aae,Fae,Lae,jae,Dae,Nae,zae,Bae,Cx);const Sx=e=>{if(e.gap!==void 0&&e.gap!==null){const t=a0(e.theme,"spacing",8),n=r=>({gap:Nc(t,r)});return Zo(e,e.gap,n)}return null};Sx.propTypes={};Sx.filterProps=["gap"];const $x=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=a0(e.theme,"spacing",8),n=r=>({columnGap:Nc(t,r)});return Zo(e,e.columnGap,n)}return null};$x.propTypes={};$x.filterProps=["columnGap"];const _x=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=a0(e.theme,"spacing",8),n=r=>({rowGap:Nc(t,r)});return Zo(e,e.rowGap,n)}return null};_x.propTypes={};_x.filterProps=["rowGap"];const Hae=$n({prop:"gridColumn"}),Wae=$n({prop:"gridRow"}),Vae=$n({prop:"gridAutoFlow"}),Uae=$n({prop:"gridAutoColumns"}),Gae=$n({prop:"gridAutoRows"}),qae=$n({prop:"gridTemplateColumns"}),Kae=$n({prop:"gridTemplateRows"}),Yae=$n({prop:"gridTemplateAreas"}),Xae=$n({prop:"gridArea"});wx(Sx,$x,_x,Hae,Wae,Vae,Uae,Gae,qae,Kae,Yae,Xae);function Wf(e,t){return t==="grey"?t:e}const Qae=$n({prop:"color",themeKey:"palette",transform:Wf}),Zae=$n({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Wf}),Jae=$n({prop:"backgroundColor",themeKey:"palette",transform:Wf});wx(Qae,Zae,Jae);function hi(e){return e<=1&&e!==0?`${e*100}%`:e}const ese=$n({prop:"width",transform:hi}),_M=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o;const i=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||wM[n];return i?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:hi(n)}};return Zo(e,e.maxWidth,t)}return null};_M.filterProps=["maxWidth"];const tse=$n({prop:"minWidth",transform:hi}),nse=$n({prop:"height",transform:hi}),rse=$n({prop:"maxHeight",transform:hi}),ose=$n({prop:"minHeight",transform:hi});$n({prop:"size",cssProperty:"width",transform:hi});$n({prop:"size",cssProperty:"height",transform:hi});const ise=$n({prop:"boxSizing"});wx(ese,_M,tse,nse,rse,ose,ise);const ase={border:{themeKey:"borders",transform:es},borderTop:{themeKey:"borders",transform:es},borderRight:{themeKey:"borders",transform:es},borderBottom:{themeKey:"borders",transform:es},borderLeft:{themeKey:"borders",transform:es},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Cx},color:{themeKey:"palette",transform:Wf},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Wf},backgroundColor:{themeKey:"palette",transform:Wf},p:{style:pr},pt:{style:pr},pr:{style:pr},pb:{style:pr},pl:{style:pr},px:{style:pr},py:{style:pr},padding:{style:pr},paddingTop:{style:pr},paddingRight:{style:pr},paddingBottom:{style:pr},paddingLeft:{style:pr},paddingX:{style:pr},paddingY:{style:pr},paddingInline:{style:pr},paddingInlineStart:{style:pr},paddingInlineEnd:{style:pr},paddingBlock:{style:pr},paddingBlockStart:{style:pr},paddingBlockEnd:{style:pr},m:{style:fr},mt:{style:fr},mr:{style:fr},mb:{style:fr},ml:{style:fr},mx:{style:fr},my:{style:fr},margin:{style:fr},marginTop:{style:fr},marginRight:{style:fr},marginBottom:{style:fr},marginLeft:{style:fr},marginX:{style:fr},marginY:{style:fr},marginInline:{style:fr},marginInlineStart:{style:fr},marginInlineEnd:{style:fr},marginBlock:{style:fr},marginBlockStart:{style:fr},marginBlockEnd:{style:fr},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Sx},rowGap:{style:_x},columnGap:{style:$x},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:hi},maxWidth:{style:_M},minWidth:{transform:hi},height:{transform:hi},maxHeight:{transform:hi},minHeight:{transform:hi},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},kx=ase;function sse(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function lse(e,t){return typeof e=="function"?e(t):e}function use(){function e(n,r,o,i){const a={[n]:r,theme:o},s=i[n];if(!s)return{[n]:r};const{cssProperty:l=n,themeKey:u,transform:c,style:f}=s;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const p=xx(o,u)||{};return f?f(a):Zo(a,r,v=>{let b=Cy(p,c,v);return v===b&&typeof v=="string"&&(b=Cy(p,c,`${n}${v==="default"?"":De(v)}`,v)),l===!1?b:{[l]:b}})}function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const a=(r=i.unstable_sxConfig)!=null?r:kx;function s(l){let u=l;if(typeof l=="function")u=l(i);else if(typeof l!="object")return l;if(!u)return null;const c=AD(i.breakpoints),f=Object.keys(c);let p=c;return Object.keys(u).forEach(y=>{const v=lse(u[y],i);if(v!=null)if(typeof v=="object")if(a[y])p=Sm(p,e(y,v,i,a));else{const b=Zo({theme:i},v,C=>({[y]:C}));sse(b,v)?p[y]=t({sx:v,theme:i}):p=Sm(p,b)}else p=Sm(p,e(y,v,i,a))}),FD(f,p)}return Array.isArray(o)?o.map(s):s(o)}return t}const jD=use();jD.filterProps=["sx"];const Px=jD,cse=["breakpoints","palette","spacing","shape"];function Mx(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=be(e,cse),s=xae(n),l=Eae(o);let u=ho({breakpoints:s,direction:"ltr",components:{},palette:P({mode:"light"},r),spacing:l,shape:P({},Cae,i)},a);return u=t.reduce((c,f)=>ho(c,f),u),u.unstable_sxConfig=P({},kx,a==null?void 0:a.unstable_sxConfig),u.unstable_sx=function(f){return Px({sx:f,theme:this})},u}function dse(e){return Object.keys(e).length===0}function DD(e=null){const t=g.useContext(ig);return!t||dse(t)?e:t}const fse=Mx();function Tx(e=fse){return DD(e)}function pse({styles:e,themeId:t,defaultTheme:n={}}){const r=Tx(n),o=typeof e=="function"?e(t&&r[t]||r):e;return m.jsx(gae,{styles:o})}const hse=["sx"],mse=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:kx;return Object.keys(e).forEach(i=>{o[i]?r.systemProps[i]=e[i]:r.otherProps[i]=e[i]}),r};function Ix(e){const{sx:t}=e,n=be(e,hse),{systemProps:r,otherProps:o}=mse(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...a)=>{const s=t(...a);return Ks(s)?P({},r,s):r}:i=P({},r,t),P({},o,{sx:i})}function ND(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;ts!=="theme"&&s!=="sx"&&s!=="as"})(Px);return g.forwardRef(function(l,u){const c=Tx(n),f=Ix(l),{className:p,component:y="div"}=f,v=be(f,gse);return m.jsx(i,P({as:y,ref:u,className:Ne(p,o?o(r):r),theme:t&&c[t]||c},v))})}const vse=zD(),yse=vse,bse=["variant"];function tO(e){return e.length===0}function BD(e){const{variant:t}=e,n=be(e,bse);let r=t||"";return Object.keys(n).sort().forEach(o=>{o==="color"?r+=tO(r)?e[o]:De(e[o]):r+=`${tO(r)?o:De(o)}${De(e[o].toString())}`}),r}const xse=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function wse(e){return Object.keys(e).length===0}function Cse(e){return typeof e=="string"&&e.charCodeAt(0)>96}const Sse=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,Sy=e=>{const t={};return e&&e.forEach(n=>{const r=BD(n.props);t[r]=n.style}),t},$se=(e,t)=>{let n=[];return t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants),Sy(n)},$y=(e,t,n)=>{const{ownerState:r={}}=e,o=[];return n&&n.forEach(i=>{let a=!0;Object.keys(i.props).forEach(s=>{r[s]!==i.props[s]&&e[s]!==i.props[s]&&(a=!1)}),a&&o.push(t[BD(i.props)])}),o},_se=(e,t,n,r)=>{var o;const i=n==null||(o=n.components)==null||(o=o[r])==null?void 0:o.variants;return $y(e,t,i)};function $m(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const kse=Mx(),Pse=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function T1({defaultTheme:e,theme:t,themeId:n}){return wse(t)?e:t[n]||t}function Mse(e){return e?(t,n)=>n[e]:null}const nO=({styledArg:e,props:t,defaultTheme:n,themeId:r})=>{const o=e(P({},t,{theme:T1(P({},t,{defaultTheme:n,themeId:r}))}));let i;if(o&&o.variants&&(i=o.variants,delete o.variants),i){const a=$y(t,Sy(i),i);return[o,...a]}return o};function HD(e={}){const{themeId:t,defaultTheme:n=kse,rootShouldForwardProp:r=$m,slotShouldForwardProp:o=$m}=e,i=a=>Px(P({},a,{theme:T1(P({},a,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(a,s={})=>{vae(a,$=>$.filter(T=>!(T!=null&&T.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:c,skipSx:f,overridesResolver:p=Mse(Pse(u))}=s,y=be(s,xse),v=c!==void 0?c:u&&u!=="Root"&&u!=="root"||!1,b=f||!1;let C,x=$m;u==="Root"||u==="root"?x=r:u?x=o:Cse(a)&&(x=void 0);const w=OD(a,P({shouldForwardProp:x,label:C},y)),S=($,...T)=>{const k=T?T.map(I=>{if(typeof I=="function"&&I.__emotion_real!==I)return A=>nO({styledArg:I,props:A,defaultTheme:n,themeId:t});if(Ks(I)){let A=I,z;return I&&I.variants&&(z=I.variants,delete A.variants,A=L=>{let O=I;return $y(L,Sy(z),z).forEach(H=>{O=ho(O,H)}),O}),A}return I}):[];let M=$;if(Ks($)){let I;$&&$.variants&&(I=$.variants,delete M.variants,M=A=>{let z=$;return $y(A,Sy(I),I).forEach(O=>{z=ho(z,O)}),z})}else typeof $=="function"&&$.__emotion_real!==$&&(M=I=>nO({styledArg:$,props:I,defaultTheme:n,themeId:t}));l&&p&&k.push(I=>{const A=T1(P({},I,{defaultTheme:n,themeId:t})),z=Sse(l,A);if(z){const L={};return Object.entries(z).forEach(([O,j])=>{L[O]=typeof j=="function"?j(P({},I,{theme:A})):j}),p(I,L)}return null}),l&&!v&&k.push(I=>{const A=T1(P({},I,{defaultTheme:n,themeId:t}));return _se(I,$se(l,A),A,l)}),b||k.push(i);const E=k.length-T.length;if(Array.isArray($)&&E>0){const I=new Array(E).fill("");M=[...$,...I],M.raw=[...$.raw,...I]}const N=w(M,...k);return a.muiName&&(N.muiName=a.muiName),N};return w.withConfig&&(S.withConfig=w.withConfig),S}}const Tse=HD(),Lr=Tse;function Ise(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:fM(t.components[n].defaultProps,r)}function WD({props:e,name:t,defaultTheme:n,themeId:r}){let o=Tx(n);return r&&(o=o[r]||o),Ise({theme:o,name:t,props:e})}function kM(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function Ese(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function zc(e){if(e.type)return e;if(e.charAt(0)==="#")return zc(Ese(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(hu(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error(hu(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}function Ex(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function Rse(e){e=zc(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(u,c=(u+n/30)%12)=>o-i*Math.max(Math.min(c-3,9-c,1),-1);let s="rgb";const l=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(s+="a",l.push(t[3])),Ex({type:s,values:l})}function rO(e){e=zc(e);let t=e.type==="hsl"||e.type==="hsla"?zc(Rse(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Ose(e,t){const n=rO(e),r=rO(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Rt(e,t){return e=zc(e),t=kM(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Ex(e)}function Rx(e,t){if(e=zc(e),t=kM(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Ex(e)}function Ox(e,t){if(e=zc(e),t=kM(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Ex(e)}const Ase=["component","direction","spacing","divider","children","className","useFlexGap"],Fse=Mx(),Lse=Lr("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function jse(e){return WD({props:e,name:"MuiStack",defaultTheme:Fse})}function Dse(e,t){const n=g.Children.toArray(e).filter(Boolean);return n.reduce((r,o,i)=>(r.push(o),i({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],zse=({ownerState:e,theme:t})=>{let n=P({display:"flex",flexDirection:"column"},Zo({theme:t},vc({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=$M(t),o=Object.keys(t.breakpoints.values).reduce((l,u)=>((typeof e.spacing=="object"&&e.spacing[u]!=null||typeof e.direction=="object"&&e.direction[u]!=null)&&(l[u]=!0),l),{}),i=vc({values:e.direction,base:o}),a=vc({values:e.spacing,base:o});typeof i=="object"&&Object.keys(i).forEach((l,u,c)=>{if(!i[l]){const p=u>0?i[c[u-1]]:"column";i[l]=p}}),n=ho(n,Zo({theme:t},a,(l,u)=>e.useFlexGap?{gap:Nc(r,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${Nse(u?i[u]:e.direction)}`]:Nc(r,l)}}))}return n=Sae(t.breakpoints,n),n};function Bse(e={}){const{createStyledComponent:t=Lse,useThemeProps:n=jse,componentName:r="MuiStack"}=e,o=()=>Ke({root:["root"]},l=>vt(r,l),{}),i=t(zse);return g.forwardRef(function(l,u){const c=n(l),f=Ix(c),{component:p="div",direction:y="column",spacing:v=0,divider:b,children:C,className:x,useFlexGap:w=!1}=f,S=be(f,Ase),$={direction:y,spacing:v,useFlexGap:w},T=o();return m.jsx(i,P({as:p,ownerState:$,ref:u,className:Ne(T.root,x)},S,{children:b?Dse(C,b):C}))})}function Hse(e,t){return P({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const Wse={black:"#000",white:"#fff"},sg=Wse,Vse={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"},Use=Vse,Gse={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"},Yd=Gse,qse={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"},Xd=qse,Kse={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"},jh=Kse,Yse={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"},Qd=Yse,Xse={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"},Zd=Xse,Qse={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"},Jd=Qse,Zse=["mode","contrastThreshold","tonalOffset"],oO={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:sg.white,default:sg.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},xS={text:{primary:sg.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:sg.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function iO(e,t,n,r){const o=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Ox(e.main,o):t==="dark"&&(e.dark=Rx(e.main,i)))}function Jse(e="light"){return e==="dark"?{main:Qd[200],light:Qd[50],dark:Qd[400]}:{main:Qd[700],light:Qd[400],dark:Qd[800]}}function ele(e="light"){return e==="dark"?{main:Yd[200],light:Yd[50],dark:Yd[400]}:{main:Yd[500],light:Yd[300],dark:Yd[700]}}function tle(e="light"){return e==="dark"?{main:Xd[500],light:Xd[300],dark:Xd[700]}:{main:Xd[700],light:Xd[400],dark:Xd[800]}}function nle(e="light"){return e==="dark"?{main:Zd[400],light:Zd[300],dark:Zd[700]}:{main:Zd[700],light:Zd[500],dark:Zd[900]}}function rle(e="light"){return e==="dark"?{main:Jd[400],light:Jd[300],dark:Jd[700]}:{main:Jd[800],light:Jd[500],dark:Jd[900]}}function ole(e="light"){return e==="dark"?{main:jh[400],light:jh[300],dark:jh[700]}:{main:"#ed6c02",light:jh[500],dark:jh[900]}}function ile(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=be(e,Zse),i=e.primary||Jse(t),a=e.secondary||ele(t),s=e.error||tle(t),l=e.info||nle(t),u=e.success||rle(t),c=e.warning||ole(t);function f(b){return Ose(b,xS.text.primary)>=n?xS.text.primary:oO.text.primary}const p=({color:b,name:C,mainShade:x=500,lightShade:w=300,darkShade:S=700})=>{if(b=P({},b),!b.main&&b[x]&&(b.main=b[x]),!b.hasOwnProperty("main"))throw new Error(hu(11,C?` (${C})`:"",x));if(typeof b.main!="string")throw new Error(hu(12,C?` (${C})`:"",JSON.stringify(b.main)));return iO(b,"light",w,r),iO(b,"dark",S,r),b.contrastText||(b.contrastText=f(b.main)),b},y={dark:xS,light:oO};return ho(P({common:P({},sg),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:u,name:"success"}),grey:Use,contrastThreshold:n,getContrastText:f,augmentColor:p,tonalOffset:r},y[t]),o)}const ale=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function sle(e){return Math.round(e*1e5)/1e5}const aO={textTransform:"uppercase"},sO='"Roboto", "Helvetica", "Arial", sans-serif';function lle(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=sO,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:f}=n,p=be(n,ale),y=o/14,v=f||(x=>`${x/u*y}rem`),b=(x,w,S,$,T)=>P({fontFamily:r,fontWeight:x,fontSize:v(w),lineHeight:S},r===sO?{letterSpacing:`${sle($/w)}em`}:{},T,c),C={h1:b(i,96,1.167,-1.5),h2:b(i,60,1.2,-.5),h3:b(a,48,1.167,0),h4:b(a,34,1.235,.25),h5:b(a,24,1.334,0),h6:b(s,20,1.6,.15),subtitle1:b(a,16,1.75,.15),subtitle2:b(s,14,1.57,.1),body1:b(a,16,1.5,.15),body2:b(a,14,1.43,.15),button:b(s,14,1.75,.4,aO),caption:b(a,12,1.66,.4),overline:b(a,12,2.66,1,aO),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ho(P({htmlFontSize:u,pxToRem:v,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},C),p,{clone:!1})}const ule=.2,cle=.14,dle=.12;function tr(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${ule})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${cle})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${dle})`].join(",")}const fle=["none",tr(0,2,1,-1,0,1,1,0,0,1,3,0),tr(0,3,1,-2,0,2,2,0,0,1,5,0),tr(0,3,3,-2,0,3,4,0,0,1,8,0),tr(0,2,4,-1,0,4,5,0,0,1,10,0),tr(0,3,5,-1,0,5,8,0,0,1,14,0),tr(0,3,5,-1,0,6,10,0,0,1,18,0),tr(0,4,5,-2,0,7,10,1,0,2,16,1),tr(0,5,5,-3,0,8,10,1,0,3,14,2),tr(0,5,6,-3,0,9,12,1,0,3,16,2),tr(0,6,6,-3,0,10,14,1,0,4,18,3),tr(0,6,7,-4,0,11,15,1,0,4,20,3),tr(0,7,8,-4,0,12,17,2,0,5,22,4),tr(0,7,8,-4,0,13,19,2,0,5,24,4),tr(0,7,9,-4,0,14,21,2,0,5,26,4),tr(0,8,9,-5,0,15,22,2,0,6,28,5),tr(0,8,10,-5,0,16,24,2,0,6,30,5),tr(0,8,11,-5,0,17,26,2,0,6,32,5),tr(0,9,11,-5,0,18,28,2,0,7,34,6),tr(0,9,12,-6,0,19,29,2,0,7,36,6),tr(0,10,13,-6,0,20,31,3,0,8,38,7),tr(0,10,13,-6,0,21,33,3,0,8,40,7),tr(0,10,14,-6,0,22,35,3,0,8,42,7),tr(0,11,14,-7,0,23,36,3,0,9,44,8),tr(0,11,15,-7,0,24,38,3,0,9,46,8)],ple=fle,hle=["duration","easing","delay"],mle={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},gle={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function lO(e){return`${Math.round(e)}ms`}function vle(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function yle(e){const t=P({},mle,e.easing),n=P({},gle,e.duration);return P({getAutoHeightDuration:vle,create:(o=["all"],i={})=>{const{duration:a=n.standard,easing:s=t.easeInOut,delay:l=0}=i;return be(i,hle),(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof a=="string"?a:lO(a)} ${s} ${typeof l=="string"?l:lO(l)}`).join(",")}},e,{easing:t,duration:n})}const ble={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},xle=ble,wle=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function PM(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=be(e,wle);if(e.vars)throw new Error(hu(18));const s=ile(r),l=Mx(e);let u=ho(l,{mixins:Hse(l.breakpoints,n),palette:s,shadows:ple.slice(),typography:lle(s,i),transitions:yle(o),zIndex:P({},xle)});return u=ho(u,a),u=t.reduce((c,f)=>ho(c,f),u),u.unstable_sxConfig=P({},kx,a==null?void 0:a.unstable_sxConfig),u.unstable_sx=function(f){return Px({sx:f,theme:this})},u}function Cle(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function Sle(e){return parseFloat(e)}const $le=PM(),Ax=$le;function Wt(){const e=Tx(Ax);return e[o0]||e}function $t({props:e,name:t}){return WD({props:e,name:t,defaultTheme:Ax,themeId:o0})}const ca=e=>$m(e)&&e!=="classes",_le=$m,kle=HD({themeId:o0,defaultTheme:Ax,rootShouldForwardProp:ca}),ke=kle,Ple=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},uO=Ple,_n=e=>({...e==="dark"?{grey:{100:"#e0e0e0",200:"#c2c2c2",300:"#a3a3a3",400:"#858585",500:"#666666",600:"#525252",700:"#3d3d3d",800:"#292929",900:"#141414"},primary:{100:"#d0d1d5",200:"#a1a4ab",300:"#727681",400:"#362842",500:"#201134",600:"#101624",700:"#0c101b",800:"#080b12",900:"#040509"},greenAccent:{100:"#dbf5ee",200:"#b7ebde",300:"#94e2cd",400:"#70d8bd",500:"#4cceac",600:"#3da58a",700:"#2e7c67",800:"#1e5245",900:"#0f2922"},redAccent:{100:"#f8dcdb",200:"#f1b9b7",300:"#e99592",400:"#e2726e",500:"#db4f4a",600:"#af3f3b",700:"#832f2c",800:"#58201e",900:"#2c100f"},blueAccent:{100:"#dcd5e6",200:"#b9aacd",300:"#9780b3",400:"#74559a",500:"#512b81",600:"#412267",700:"#311a4d",800:"#201134",900:"#10091a"}}:{grey:{100:"#141414",200:"#292929",300:"#3d3d3d",400:"#525252",500:"#666666",600:"#858585",700:"#a3a3a3",800:"#c2c2c2",900:"#e0e0e0"},primary:{100:"#040509",200:"#080b12",300:"#0c101b",400:"#f2f0f0",500:"#d0d1d5",600:"#434957",700:"#727681",800:"#a1a4ab",900:"#141b2d"},greenAccent:{100:"#0f2922",200:"#1e5245",300:"#2e7c67",400:"#3da58a",500:"#4cceac",600:"#70d8bd",700:"#94e2cd",800:"#b7ebde",900:"#dbf5ee"},redAccent:{100:"#2c100f",200:"#58201e",300:"#832f2c",400:"#af3f3b",500:"#db4f4a",600:"#e2726e",700:"#e99592",800:"#f1b9b7",900:"#f8dcdb"},blueAccent:{100:"#151632",200:"#2a2d64",300:"#3e4396",400:"#535ac8",500:"#6870fa",600:"#868dfb",700:"#a4a9fc",800:"#c3c6fd",900:"#e1e2fe"}}}),Mle=e=>{const t=_n(e);return{breakpoints:{values:{xs:0,sm:600,md:933,lg:1200,xl:1536}},palette:{mode:e,...e==="dark"?{primary:{main:t.primary[500]},secondary:{main:t.greenAccent[500]},neutral:{dark:t.grey[700],main:t.grey[500],light:t.grey[100]},background:{default:t.primary[500]}}:{primary:{main:t.primary[100]},secondary:{main:t.greenAccent[500]},neutral:{dark:t.grey[700],main:t.grey[500],light:t.grey[100]},background:{default:"#fcfcfc"}}},typography:{fontFamily:["Hanken Grotesk","sans-serif"].join(","),fontSize:12,h1:{fontFamily:["Hanken Grotesk","sans-serif"].join(","),fontSize:40,"@media (max-width:1399.98px)":{fontSize:40},"@media (max-width:1199.98px)":{fontSize:40},"@media (max-width:991.98px)":{fontSize:40},"@media (max-width:767.98px)":{fontSize:36},"@media (max-width:575.98px)":{fontSize:32}},h2:{fontFamily:["Hanken Grotesk","sans-serif"].join(","),fontSize:32},h3:{fontFamily:["Hanken Grotesk","sans-serif"].join(","),fontSize:24,"@media (max-width:1399.98px)":{fontSize:24},"@media (max-width:1199.98px)":{fontSize:24},"@media (max-width:991.98px)":{fontSize:24},"@media (max-width:767.98px)":{fontSize:20},"@media (max-width:575.98px)":{fontSize:16}},h4:{fontFamily:["Hanken Grotesk","sans-serif"].join(","),fontSize:20,"@media (max-width:1399.98px)":{fontSize:20},"@media (max-width:1199.98px)":{fontSize:20},"@media (max-width:991.98px)":{fontSize:20},"@media (max-width:767.98px)":{fontSize:16},"@media (max-width:575.98px)":{fontSize:14}},h5:{fontFamily:["Hanken Grotesk","sans-serif"].join(","),fontSize:16,"@media (max-width:1399.98px)":{fontSize:16},"@media (max-width:1199.98px)":{fontSize:16},"@media (max-width:991.98px)":{fontSize:16},"@media (max-width:767.98px)":{fontSize:14},"@media (max-width:575.98px)":{fontSize:12}},h6:{fontFamily:["Hanken Grotesk","sans-serif"].join(","),fontSize:14,"@media (max-width:1399.98px)":{fontSize:14},"@media (max-width:1199.98px)":{fontSize:14},"@media (max-width:991.98px)":{fontSize:14},"@media (max-width:767.98px)":{fontSize:12},"@media (max-width:575.98px)":{fontSize:12}}}}},MM=g.createContext({toggleColorMode:()=>{}}),Tle=e=>{const[t,n]=g.useState(e),r=g.useCallback(()=>{n(i=>i==="dark"?"light":"dark")},[]);return{theme:g.useMemo(()=>PM(Mle(t)),[t]),toggleColorMode:r}};function Ile(e){return vt("MuiSvgIcon",e)}yt("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Ele=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Rle=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${De(t)}`,`fontSize${De(n)}`]};return Ke(o,Ile,r)},Ole=ke("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${De(n.color)}`],t[`fontSize${De(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,i,a,s,l,u,c,f,p,y,v;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((i=e.typography)==null||(a=i.pxToRem)==null?void 0:a.call(i,20))||"1.25rem",medium:((s=e.typography)==null||(l=s.pxToRem)==null?void 0:l.call(s,24))||"1.5rem",large:((u=e.typography)==null||(c=u.pxToRem)==null?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:(f=(p=(e.vars||e).palette)==null||(p=p[t.color])==null?void 0:p.main)!=null?f:{action:(y=(e.vars||e).palette)==null||(y=y.action)==null?void 0:y.active,disabled:(v=(e.vars||e).palette)==null||(v=v.action)==null?void 0:v.disabled,inherit:void 0}[t.color]}}),VD=g.forwardRef(function(t,n){const r=$t({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:a="inherit",component:s="svg",fontSize:l="medium",htmlColor:u,inheritViewBox:c=!1,titleAccess:f,viewBox:p="0 0 24 24"}=r,y=be(r,Ele),v=g.isValidElement(o)&&o.type==="svg",b=P({},r,{color:a,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:c,viewBox:p,hasSvgAsChild:v}),C={};c||(C.viewBox=p);const x=Rle(b);return m.jsxs(Ole,P({as:s,className:Ne(x.root,i),focusable:"false",color:u,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:n},C,y,v&&o.props,{ownerState:b,children:[v?o.props.children:o,f?m.jsx("title",{children:f}):null]}))});VD.muiName="SvgIcon";const cO=VD;function xt(e,t){function n(r,o){return m.jsx(cO,P({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return n.muiName=cO.muiName,g.memo(g.forwardRef(n))}const Ale={configure:e=>{pM.configure(e)}},Fle=Object.freeze(Object.defineProperty({__proto__:null,capitalize:De,createChainedFunction:$_,createSvgIcon:xt,debounce:_u,deprecatedPropType:Xoe,isMuiElement:_1,ownerDocument:Gn,ownerWindow:ra,requirePropFactory:Qoe,setRef:Dc,unstable_ClassNameGenerator:Ale,unstable_useEnhancedEffect:dn,unstable_useId:ln,unsupportedProp:eie,useControlled:su,useEventCallback:Dn,useForkRef:rn,useIsFocusVisible:cM},Symbol.toStringTag,{value:"Module"}));function T_(e,t){return T_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},T_(e,t)}function UD(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,T_(e,t)}const dO={disabled:!1},_y=ot.createContext(null);var Lle=function(t){return t.scrollTop},lm="unmounted",Yu="exited",Xu="entering",df="entered",I_="exiting",vl=function(e){UD(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var a=o,s=a&&!a.isMounting?r.enter:r.appear,l;return i.appearStatus=null,r.in?s?(l=Yu,i.appearStatus=Xu):l=df:r.unmountOnExit||r.mountOnEnter?l=lm:l=Yu,i.state={status:l},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var a=o.in;return a&&i.status===lm?{status:Yu}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var a=this.state.status;this.props.in?a!==Xu&&a!==df&&(i=Xu):(a===Xu||a===df)&&(i=I_)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,a,s;return i=a=s=o,o!=null&&typeof o!="number"&&(i=o.exit,a=o.enter,s=o.appear!==void 0?o.appear:a),{exit:i,enter:a,appear:s}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===Xu){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:jv.findDOMNode(this);a&&Lle(a)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Yu&&this.setState({status:lm})},n.performEnter=function(o){var i=this,a=this.props.enter,s=this.context?this.context.isMounting:o,l=this.props.nodeRef?[s]:[jv.findDOMNode(this),s],u=l[0],c=l[1],f=this.getTimeouts(),p=s?f.appear:f.enter;if(!o&&!a||dO.disabled){this.safeSetState({status:df},function(){i.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:Xu},function(){i.props.onEntering(u,c),i.onTransitionEnd(p,function(){i.safeSetState({status:df},function(){i.props.onEntered(u,c)})})})},n.performExit=function(){var o=this,i=this.props.exit,a=this.getTimeouts(),s=this.props.nodeRef?void 0:jv.findDOMNode(this);if(!i||dO.disabled){this.safeSetState({status:Yu},function(){o.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:I_},function(){o.props.onExiting(s),o.onTransitionEnd(a.exit,function(){o.safeSetState({status:Yu},function(){o.props.onExited(s)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,a=!0;return this.nextCallback=function(s){a&&(a=!1,i.nextCallback=null,o(s))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:jv.findDOMNode(this),s=o==null&&!this.props.addEndListener;if(!a||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],u=l[0],c=l[1];this.props.addEndListener(u,c)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===lm)return null;var i=this.props,a=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var s=be(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ot.createElement(_y.Provider,{value:null},typeof a=="function"?a(o,s):ot.cloneElement(ot.Children.only(a),s))},t}(ot.Component);vl.contextType=_y;vl.propTypes={};function ef(){}vl.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ef,onEntering:ef,onEntered:ef,onExit:ef,onExiting:ef,onExited:ef};vl.UNMOUNTED=lm;vl.EXITED=Yu;vl.ENTERING=Xu;vl.ENTERED=df;vl.EXITING=I_;const GD=vl;function jle(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function TM(e,t){var n=function(i){return t&&g.isValidElement(i)?t(i):i},r=Object.create(null);return e&&g.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function Dle(e,t){e=e||{},t=t||{};function n(c){return c in t?t[c]:e[c]}var r=Object.create(null),o=[];for(var i in e)i in t?o.length&&(r[i]=o,o=[]):o.push(i);var a,s={};for(var l in t){if(r[l])for(a=0;ae.scrollTop;function ky(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:(n=a.transitionDuration)!=null?n:typeof o=="number"?o:o[t.mode]||0,easing:(r=a.transitionTimingFunction)!=null?r:typeof i=="object"?i[t.mode]:i,delay:a.transitionDelay}}function Vle(e){return vt("MuiPaper",e)}yt("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const Ule=["className","component","elevation","square","variant"],Gle=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,i={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return Ke(i,Vle,o)},qle=ke("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return P({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&P({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Rt("#fff",uO(t.elevation))}, ${Rt("#fff",uO(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),Kle=g.forwardRef(function(t,n){const r=$t({props:t,name:"MuiPaper"}),{className:o,component:i="div",elevation:a=1,square:s=!1,variant:l="elevation"}=r,u=be(r,Ule),c=P({},r,{component:i,elevation:a,square:s,variant:l}),f=Gle(c);return m.jsx(qle,P({as:i,ownerState:c,className:Ne(f.root,o),ref:n},u))}),ld=Kle;function Yle(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:s,onExited:l,timeout:u}=e,[c,f]=g.useState(!1),p=Ne(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),y={width:a,height:a,top:-(a/2)+i,left:-(a/2)+o},v=Ne(n.child,c&&n.childLeaving,r&&n.childPulsate);return!s&&!c&&f(!0),g.useEffect(()=>{if(!s&&l!=null){const b=setTimeout(l,u);return()=>{clearTimeout(b)}}},[l,s,u]),m.jsx("span",{className:p,style:y,children:m.jsx("span",{className:v})})}const Xle=yt("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Hi=Xle,Qle=["center","classes","className"];let Fx=e=>e,fO,pO,hO,mO;const E_=550,Zle=80,Jle=sd(fO||(fO=Fx` + 0% { + transform: scale(0); + opacity: 0.1; + } + + 100% { + transform: scale(1); + opacity: 0.3; + } +`)),eue=sd(pO||(pO=Fx` + 0% { + opacity: 1; + } + + 100% { + opacity: 0; + } +`)),tue=sd(hO||(hO=Fx` + 0% { + transform: scale(1); + } + + 50% { + transform: scale(0.92); + } + + 100% { + transform: scale(1); + } +`)),nue=ke("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),rue=ke(Yle,{name:"MuiTouchRipple",slot:"Ripple"})(mO||(mO=Fx` + opacity: 0; + position: absolute; + + &.${0} { + opacity: 0.3; + transform: scale(1); + animation-name: ${0}; + animation-duration: ${0}ms; + animation-timing-function: ${0}; + } + + &.${0} { + animation-duration: ${0}ms; + } + + & .${0} { + opacity: 1; + display: block; + width: 100%; + height: 100%; + border-radius: 50%; + background-color: currentColor; + } + + & .${0} { + opacity: 0; + animation-name: ${0}; + animation-duration: ${0}ms; + animation-timing-function: ${0}; + } + + & .${0} { + position: absolute; + /* @noflip */ + left: 0px; + top: 0; + animation-name: ${0}; + animation-duration: 2500ms; + animation-timing-function: ${0}; + animation-iteration-count: infinite; + animation-delay: 200ms; + } +`),Hi.rippleVisible,Jle,E_,({theme:e})=>e.transitions.easing.easeInOut,Hi.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Hi.child,Hi.childLeaving,eue,E_,({theme:e})=>e.transitions.easing.easeInOut,Hi.childPulsate,tue,({theme:e})=>e.transitions.easing.easeInOut),oue=g.forwardRef(function(t,n){const r=$t({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a}=r,s=be(r,Qle),[l,u]=g.useState([]),c=g.useRef(0),f=g.useRef(null);g.useEffect(()=>{f.current&&(f.current(),f.current=null)},[l]);const p=g.useRef(!1),y=g.useRef(0),v=g.useRef(null),b=g.useRef(null);g.useEffect(()=>()=>{y.current&&clearTimeout(y.current)},[]);const C=g.useCallback($=>{const{pulsate:T,rippleX:k,rippleY:M,rippleSize:E,cb:N}=$;u(I=>[...I,m.jsx(rue,{classes:{ripple:Ne(i.ripple,Hi.ripple),rippleVisible:Ne(i.rippleVisible,Hi.rippleVisible),ripplePulsate:Ne(i.ripplePulsate,Hi.ripplePulsate),child:Ne(i.child,Hi.child),childLeaving:Ne(i.childLeaving,Hi.childLeaving),childPulsate:Ne(i.childPulsate,Hi.childPulsate)},timeout:E_,pulsate:T,rippleX:k,rippleY:M,rippleSize:E},c.current)]),c.current+=1,f.current=N},[i]),x=g.useCallback(($={},T={},k=()=>{})=>{const{pulsate:M=!1,center:E=o||T.pulsate,fakeElement:N=!1}=T;if(($==null?void 0:$.type)==="mousedown"&&p.current){p.current=!1;return}($==null?void 0:$.type)==="touchstart"&&(p.current=!0);const I=N?null:b.current,A=I?I.getBoundingClientRect():{width:0,height:0,left:0,top:0};let z,L,O;if(E||$===void 0||$.clientX===0&&$.clientY===0||!$.clientX&&!$.touches)z=Math.round(A.width/2),L=Math.round(A.height/2);else{const{clientX:j,clientY:H}=$.touches&&$.touches.length>0?$.touches[0]:$;z=Math.round(j-A.left),L=Math.round(H-A.top)}if(E)O=Math.sqrt((2*A.width**2+A.height**2)/3),O%2===0&&(O+=1);else{const j=Math.max(Math.abs((I?I.clientWidth:0)-z),z)*2+2,H=Math.max(Math.abs((I?I.clientHeight:0)-L),L)*2+2;O=Math.sqrt(j**2+H**2)}$!=null&&$.touches?v.current===null&&(v.current=()=>{C({pulsate:M,rippleX:z,rippleY:L,rippleSize:O,cb:k})},y.current=setTimeout(()=>{v.current&&(v.current(),v.current=null)},Zle)):C({pulsate:M,rippleX:z,rippleY:L,rippleSize:O,cb:k})},[o,C]),w=g.useCallback(()=>{x({},{pulsate:!0})},[x]),S=g.useCallback(($,T)=>{if(clearTimeout(y.current),($==null?void 0:$.type)==="touchend"&&v.current){v.current(),v.current=null,y.current=setTimeout(()=>{S($,T)});return}v.current=null,u(k=>k.length>0?k.slice(1):k),f.current=T},[]);return g.useImperativeHandle(n,()=>({pulsate:w,start:x,stop:S}),[w,x,S]),m.jsx(nue,P({className:Ne(Hi.root,i.root,a),ref:b},s,{children:m.jsx(Wle,{component:null,exit:!0,children:l})}))}),iue=oue;function aue(e){return vt("MuiButtonBase",e)}const sue=yt("MuiButtonBase",["root","disabled","focusVisible"]),lue=sue,uue=["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"],cue=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=Ke({root:["root",t&&"disabled",n&&"focusVisible"]},aue,o);return n&&r&&(a.root+=` ${r}`),a},due=ke("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"},[`&.${lue.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),fue=g.forwardRef(function(t,n){const r=$t({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:a,className:s,component:l="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:f=!1,focusRipple:p=!1,LinkComponent:y="a",onBlur:v,onClick:b,onContextMenu:C,onDragLeave:x,onFocus:w,onFocusVisible:S,onKeyDown:$,onKeyUp:T,onMouseDown:k,onMouseLeave:M,onMouseUp:E,onTouchEnd:N,onTouchMove:I,onTouchStart:A,tabIndex:z=0,TouchRippleProps:L,touchRippleRef:O,type:j}=r,H=be(r,uue),B=g.useRef(null),D=g.useRef(null),W=rn(D,O),{isFocusVisibleRef:U,onFocus:Z,onBlur:Y,ref:se}=cM(),[Q,ne]=g.useState(!1);u&&Q&&ne(!1),g.useImperativeHandle(o,()=>({focusVisible:()=>{ne(!0),B.current.focus()}}),[]);const[re,ge]=g.useState(!1);g.useEffect(()=>{ge(!0)},[]);const xe=re&&!c&&!u;g.useEffect(()=>{Q&&p&&!c&&re&&D.current.pulsate()},[c,p,Q,re]);function fe(Ce,Ze,Ct=f){return Dn(et=>(Ze&&Ze(et),!Ct&&D.current&&D.current[Ce](et),!0))}const Se=fe("start",k),de=fe("stop",C),ie=fe("stop",x),Pe=fe("stop",E),$e=fe("stop",Ce=>{Q&&Ce.preventDefault(),M&&M(Ce)}),me=fe("start",A),ue=fe("stop",N),ce=fe("stop",I),Te=fe("stop",Ce=>{Y(Ce),U.current===!1&&ne(!1),v&&v(Ce)},!1),Le=Dn(Ce=>{B.current||(B.current=Ce.currentTarget),Z(Ce),U.current===!0&&(ne(!0),S&&S(Ce)),w&&w(Ce)}),Re=()=>{const Ce=B.current;return l&&l!=="button"&&!(Ce.tagName==="A"&&Ce.href)},Oe=g.useRef(!1),K=Dn(Ce=>{p&&!Oe.current&&Q&&D.current&&Ce.key===" "&&(Oe.current=!0,D.current.stop(Ce,()=>{D.current.start(Ce)})),Ce.target===Ce.currentTarget&&Re()&&Ce.key===" "&&Ce.preventDefault(),$&&$(Ce),Ce.target===Ce.currentTarget&&Re()&&Ce.key==="Enter"&&!u&&(Ce.preventDefault(),b&&b(Ce))}),ee=Dn(Ce=>{p&&Ce.key===" "&&D.current&&Q&&!Ce.defaultPrevented&&(Oe.current=!1,D.current.stop(Ce,()=>{D.current.pulsate(Ce)})),T&&T(Ce),b&&Ce.target===Ce.currentTarget&&Re()&&Ce.key===" "&&!Ce.defaultPrevented&&b(Ce)});let pe=l;pe==="button"&&(H.href||H.to)&&(pe=y);const ye={};pe==="button"?(ye.type=j===void 0?"button":j,ye.disabled=u):(!H.href&&!H.to&&(ye.role="button"),u&&(ye["aria-disabled"]=u));const je=rn(n,se,B),Ae=P({},r,{centerRipple:i,component:l,disabled:u,disableRipple:c,disableTouchRipple:f,focusRipple:p,tabIndex:z,focusVisible:Q}),Ie=cue(Ae);return m.jsxs(due,P({as:pe,className:Ne(Ie.root,s),ownerState:Ae,onBlur:Te,onClick:b,onContextMenu:de,onFocus:Le,onKeyDown:K,onKeyUp:ee,onMouseDown:Se,onMouseLeave:$e,onMouseUp:Pe,onDragLeave:ie,onTouchEnd:ue,onTouchMove:ce,onTouchStart:me,ref:je,tabIndex:u?-1:z,type:j},ye,H,{children:[a,xe?m.jsx(iue,P({ref:W,center:i},L)):null]}))}),cl=fue;function pue(e){return vt("MuiIconButton",e)}const hue=yt("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),mue=hue,gue=["edge","children","className","color","disabled","disableFocusRipple","size"],vue=e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e,a={root:["root",n&&"disabled",r!=="default"&&`color${De(r)}`,o&&`edge${De(o)}`,`size${De(i)}`]};return Ke(a,pue,t)},yue=ke(cl,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${De(n.color)}`],n.edge&&t[`edge${De(n.edge)}`],t[`size${De(n.size)}`]]}})(({theme:e,ownerState:t})=>P({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Rt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return P({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&P({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":P({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Rt(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${mue.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),bue=g.forwardRef(function(t,n){const r=$t({props:t,name:"MuiIconButton"}),{edge:o=!1,children:i,className:a,color:s="default",disabled:l=!1,disableFocusRipple:u=!1,size:c="medium"}=r,f=be(r,gue),p=P({},r,{edge:o,color:s,disabled:l,disableFocusRipple:u,size:c}),y=vue(p);return m.jsx(yue,P({className:Ne(y.root,a),centerRipple:!0,focusRipple:!u,disabled:l,ref:n,ownerState:p},f,{children:i}))}),Rr=bue,xue=xt(m.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");function wue(e){return vt("MuiTypography",e)}yt("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Cue=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Sue=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e,s={root:["root",i,e.align!=="inherit"&&`align${De(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return Ke(s,wue,a)},$ue=ke("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${De(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>P({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})),gO={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},_ue={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},kue=e=>_ue[e]||e,Pue=g.forwardRef(function(t,n){const r=$t({props:t,name:"MuiTypography"}),o=kue(r.color),i=Ix(P({},r,{color:o})),{align:a="inherit",className:s,component:l,gutterBottom:u=!1,noWrap:c=!1,paragraph:f=!1,variant:p="body1",variantMapping:y=gO}=i,v=be(i,Cue),b=P({},i,{align:a,color:o,className:s,component:l,gutterBottom:u,noWrap:c,paragraph:f,variant:p,variantMapping:y}),C=l||(f?"p":y[p]||gO[p])||"span",x=Sue(b);return m.jsx($ue,P({as:C,ref:n,ownerState:b,className:Ne(x.root,s)},v))}),Ge=Pue;function Mue(e){return vt("MuiAppBar",e)}yt("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent"]);const Tue=["className","color","enableColorOnDark","position"],Iue=e=>{const{color:t,position:n,classes:r}=e,o={root:["root",`color${De(t)}`,`position${De(n)}`]};return Ke(o,Mue,r)},Nv=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,Eue=ke(ld,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${De(n.position)}`],t[`color${De(n.color)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return P({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&P({},t.color==="default"&&{backgroundColor:n,color:e.palette.getContrastText(n)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&P({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&P({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:Nv(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:Nv(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:Nv(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:Nv(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),Rue=g.forwardRef(function(t,n){const r=$t({props:t,name:"MuiAppBar"}),{className:o,color:i="primary",enableColorOnDark:a=!1,position:s="fixed"}=r,l=be(r,Tue),u=P({},r,{color:i,position:s,enableColorOnDark:a}),c=Iue(u);return m.jsx(Eue,P({square:!0,component:"header",ownerState:u,elevation:4,className:Ne(c.root,o,s==="fixed"&&"mui-fixed"),ref:n},l))}),Oue=Rue;function lg(e){return typeof e=="string"}function um(e,t,n){return e===void 0||lg(e)?t:P({},t,{ownerState:P({},t.ownerState,n)})}const Aue={disableDefaultClasses:!1},Fue=g.createContext(Aue);function Lue(e){const{disableDefaultClasses:t}=g.useContext(Fue);return n=>t?"":e(n)}function KD(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function jue(e,t,n){return typeof e=="function"?e(t,n):e}function vO(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function Due(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const y=Ne(o==null?void 0:o.className,r==null?void 0:r.className,i,n==null?void 0:n.className),v=P({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),b=P({},n,o,r);return y.length>0&&(b.className=y),Object.keys(v).length>0&&(b.style=v),{props:b,internalRef:void 0}}const a=KD(P({},o,r)),s=vO(r),l=vO(o),u=t(a),c=Ne(u==null?void 0:u.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),f=P({},u==null?void 0:u.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),p=P({},u,n,l,s);return c.length>0&&(p.className=c),Object.keys(f).length>0&&(p.style=f),{props:p,internalRef:u.ref}}const Nue=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Si(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=be(e,Nue),s=i?{}:jue(r,o),{props:l,internalRef:u}=Due(P({},a,{externalSlotProps:s})),c=rn(u,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return um(n,P({},l,{ref:c}),o)}function zue(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,i=dM({badgeContent:t,max:r});let a=n;n===!1&&t===0&&!o&&(a=!0);const{badgeContent:s,max:l=r}=a?i:e,u=s&&Number(s)>l?`${l}+`:s;return{badgeContent:s,invisible:a,max:l,displayValue:u}}function yO(e){return e.substring(2).toLowerCase()}function Bue(e,t){return t.documentElement.clientWidth(setTimeout(()=>{l.current=!0},0),()=>{l.current=!1}),[]);const c=rn(t.ref,s),f=Dn(v=>{const b=u.current;u.current=!1;const C=Gn(s.current);if(!l.current||!s.current||"clientX"in v&&Bue(v,C))return;if(a.current){a.current=!1;return}let x;v.composedPath?x=v.composedPath().indexOf(s.current)>-1:x=!C.documentElement.contains(v.target)||s.current.contains(v.target),!x&&(n||!b)&&o(v)}),p=v=>b=>{u.current=!0;const C=t.props[v];C&&C(b)},y={ref:c};return i!==!1&&(y[i]=p(i)),g.useEffect(()=>{if(i!==!1){const v=yO(i),b=Gn(s.current),C=()=>{a.current=!0};return b.addEventListener(v,f),b.addEventListener("touchmove",C),()=>{b.removeEventListener(v,f),b.removeEventListener("touchmove",C)}}},[f,i]),r!==!1&&(y[r]=p(r)),g.useEffect(()=>{if(r!==!1){const v=yO(r),b=Gn(s.current);return b.addEventListener(v,f),()=>{b.removeEventListener(v,f)}}},[f,r]),m.jsx(g.Fragment,{children:g.cloneElement(t,y)})}const Hue=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Wue(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 Vue(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 Uue(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||Vue(e))}function Gue(e){const t=[],n=[];return Array.from(e.querySelectorAll(Hue)).forEach((r,o)=>{const i=Wue(r);i===-1||!Uue(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 que(){return!0}function XD(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=Gue,isEnabled:a=que,open:s}=e,l=g.useRef(!1),u=g.useRef(null),c=g.useRef(null),f=g.useRef(null),p=g.useRef(null),y=g.useRef(!1),v=g.useRef(null),b=rn(t.ref,v),C=g.useRef(null);g.useEffect(()=>{!s||!v.current||(y.current=!n)},[n,s]),g.useEffect(()=>{if(!s||!v.current)return;const S=Gn(v.current);return v.current.contains(S.activeElement)||(v.current.hasAttribute("tabIndex")||v.current.setAttribute("tabIndex","-1"),y.current&&v.current.focus()),()=>{o||(f.current&&f.current.focus&&(l.current=!0,f.current.focus()),f.current=null)}},[s]),g.useEffect(()=>{if(!s||!v.current)return;const S=Gn(v.current),$=M=>{C.current=M,!(r||!a()||M.key!=="Tab")&&S.activeElement===v.current&&M.shiftKey&&(l.current=!0,c.current&&c.current.focus())},T=()=>{const M=v.current;if(M===null)return;if(!S.hasFocus()||!a()||l.current){l.current=!1;return}if(M.contains(S.activeElement)||r&&S.activeElement!==u.current&&S.activeElement!==c.current)return;if(S.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!y.current)return;let E=[];if((S.activeElement===u.current||S.activeElement===c.current)&&(E=i(v.current)),E.length>0){var N,I;const A=!!((N=C.current)!=null&&N.shiftKey&&((I=C.current)==null?void 0:I.key)==="Tab"),z=E[0],L=E[E.length-1];typeof z!="string"&&typeof L!="string"&&(A?L.focus():z.focus())}else M.focus()};S.addEventListener("focusin",T),S.addEventListener("keydown",$,!0);const k=setInterval(()=>{S.activeElement&&S.activeElement.tagName==="BODY"&&T()},50);return()=>{clearInterval(k),S.removeEventListener("focusin",T),S.removeEventListener("keydown",$,!0)}},[n,r,o,a,s,i]);const x=S=>{f.current===null&&(f.current=S.relatedTarget),y.current=!0,p.current=S.target;const $=t.props.onFocus;$&&$(S)},w=S=>{f.current===null&&(f.current=S.relatedTarget),y.current=!0};return m.jsxs(g.Fragment,{children:[m.jsx("div",{tabIndex:s?0:-1,onFocus:w,ref:u,"data-testid":"sentinelStart"}),g.cloneElement(t,{ref:b,onFocus:x}),m.jsx("div",{tabIndex:s?0:-1,onFocus:w,ref:c,"data-testid":"sentinelEnd"})]})}var qo="top",oa="bottom",ia="right",Ko="left",EM="auto",s0=[qo,oa,ia,Ko],cp="start",ug="end",Kue="clippingParents",QD="viewport",Dh="popper",Yue="reference",bO=s0.reduce(function(e,t){return e.concat([t+"-"+cp,t+"-"+ug])},[]),ZD=[].concat(s0,[EM]).reduce(function(e,t){return e.concat([t,t+"-"+cp,t+"-"+ug])},[]),Xue="beforeRead",Que="read",Zue="afterRead",Jue="beforeMain",ece="main",tce="afterMain",nce="beforeWrite",rce="write",oce="afterWrite",ice=[Xue,Que,Zue,Jue,ece,tce,nce,rce,oce];function ms(e){return e?(e.nodeName||"").toLowerCase():null}function $i(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Bc(e){var t=$i(e).Element;return e instanceof t||e instanceof Element}function Zi(e){var t=$i(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function RM(e){if(typeof ShadowRoot>"u")return!1;var t=$i(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function ace(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];!Zi(i)||!ms(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(a){var s=o[a];s===!1?i.removeAttribute(a):i.setAttribute(a,s===!0?"":s)}))})}function sce(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=a.reduce(function(l,u){return l[u]="",l},{});!Zi(o)||!ms(o)||(Object.assign(o.style,s),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}const lce={name:"applyStyles",enabled:!0,phase:"write",fn:ace,effect:sce,requires:["computeStyles"]};function ss(e){return e.split("-")[0]}var yc=Math.max,Py=Math.min,dp=Math.round;function R_(){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 JD(){return!/^((?!chrome|android).)*safari/i.test(R_())}function fp(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&Zi(e)&&(o=e.offsetWidth>0&&dp(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&dp(r.height)/e.offsetHeight||1);var a=Bc(e)?$i(e):window,s=a.visualViewport,l=!JD()&&n,u=(r.left+(l&&s?s.offsetLeft:0))/o,c=(r.top+(l&&s?s.offsetTop:0))/i,f=r.width/o,p=r.height/i;return{width:f,height:p,top:c,right:u+f,bottom:c+p,left:u,x:u,y:c}}function OM(e){var t=fp(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 eN(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&RM(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function dl(e){return $i(e).getComputedStyle(e)}function uce(e){return["table","td","th"].indexOf(ms(e))>=0}function ku(e){return((Bc(e)?e.ownerDocument:e.document)||window.document).documentElement}function Lx(e){return ms(e)==="html"?e:e.assignedSlot||e.parentNode||(RM(e)?e.host:null)||ku(e)}function xO(e){return!Zi(e)||dl(e).position==="fixed"?null:e.offsetParent}function cce(e){var t=/firefox/i.test(R_()),n=/Trident/i.test(R_());if(n&&Zi(e)){var r=dl(e);if(r.position==="fixed")return null}var o=Lx(e);for(RM(o)&&(o=o.host);Zi(o)&&["html","body"].indexOf(ms(o))<0;){var i=dl(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 l0(e){for(var t=$i(e),n=xO(e);n&&uce(n)&&dl(n).position==="static";)n=xO(n);return n&&(ms(n)==="html"||ms(n)==="body"&&dl(n).position==="static")?t:n||cce(e)||t}function AM(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function _m(e,t,n){return yc(e,Py(t,n))}function dce(e,t,n){var r=_m(e,t,n);return r>n?n:r}function tN(){return{top:0,right:0,bottom:0,left:0}}function nN(e){return Object.assign({},tN(),e)}function rN(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var fce=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,nN(typeof t!="number"?t:rN(t,s0))};function pce(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=ss(n.placement),l=AM(s),u=[Ko,ia].indexOf(s)>=0,c=u?"height":"width";if(!(!i||!a)){var f=fce(o.padding,n),p=OM(i),y=l==="y"?qo:Ko,v=l==="y"?oa:ia,b=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],C=a[l]-n.rects.reference[l],x=l0(i),w=x?l==="y"?x.clientHeight||0:x.clientWidth||0:0,S=b/2-C/2,$=f[y],T=w-p[c]-f[v],k=w/2-p[c]/2+S,M=_m($,k,T),E=l;n.modifiersData[r]=(t={},t[E]=M,t.centerOffset=M-k,t)}}function hce(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)||eN(t.elements.popper,o)&&(t.elements.arrow=o))}const mce={name:"arrow",enabled:!0,phase:"main",fn:pce,effect:hce,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function pp(e){return e.split("-")[1]}var gce={top:"auto",right:"auto",bottom:"auto",left:"auto"};function vce(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:dp(n*o)/o||0,y:dp(r*o)/o||0}}function wO(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,f=e.isFixed,p=a.x,y=p===void 0?0:p,v=a.y,b=v===void 0?0:v,C=typeof c=="function"?c({x:y,y:b}):{x:y,y:b};y=C.x,b=C.y;var x=a.hasOwnProperty("x"),w=a.hasOwnProperty("y"),S=Ko,$=qo,T=window;if(u){var k=l0(n),M="clientHeight",E="clientWidth";if(k===$i(n)&&(k=ku(n),dl(k).position!=="static"&&s==="absolute"&&(M="scrollHeight",E="scrollWidth")),k=k,o===qo||(o===Ko||o===ia)&&i===ug){$=oa;var N=f&&k===T&&T.visualViewport?T.visualViewport.height:k[M];b-=N-r.height,b*=l?1:-1}if(o===Ko||(o===qo||o===oa)&&i===ug){S=ia;var I=f&&k===T&&T.visualViewport?T.visualViewport.width:k[E];y-=I-r.width,y*=l?1:-1}}var A=Object.assign({position:s},u&&gce),z=c===!0?vce({x:y,y:b},$i(n)):{x:y,y:b};if(y=z.x,b=z.y,l){var L;return Object.assign({},A,(L={},L[$]=w?"0":"",L[S]=x?"0":"",L.transform=(T.devicePixelRatio||1)<=1?"translate("+y+"px, "+b+"px)":"translate3d("+y+"px, "+b+"px, 0)",L))}return Object.assign({},A,(t={},t[$]=w?b+"px":"",t[S]=x?y+"px":"",t.transform="",t))}function yce(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,a=i===void 0?!0:i,s=n.roundOffsets,l=s===void 0?!0:s,u={placement:ss(t.placement),variation:pp(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,wO(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,wO(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 bce={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:yce,data:{}};var zv={passive:!0};function xce(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,a=r.resize,s=a===void 0?!0:a,l=$i(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(c){c.addEventListener("scroll",n.update,zv)}),s&&l.addEventListener("resize",n.update,zv),function(){i&&u.forEach(function(c){c.removeEventListener("scroll",n.update,zv)}),s&&l.removeEventListener("resize",n.update,zv)}}const wce={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:xce,data:{}};var Cce={left:"right",right:"left",bottom:"top",top:"bottom"};function I1(e){return e.replace(/left|right|bottom|top/g,function(t){return Cce[t]})}var Sce={start:"end",end:"start"};function CO(e){return e.replace(/start|end/g,function(t){return Sce[t]})}function FM(e){var t=$i(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function LM(e){return fp(ku(e)).left+FM(e).scrollLeft}function $ce(e,t){var n=$i(e),r=ku(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;var u=JD();(u||!u&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s+LM(e),y:l}}function _ce(e){var t,n=ku(e),r=FM(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=yc(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=yc(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+LM(e),l=-r.scrollTop;return dl(o||n).direction==="rtl"&&(s+=yc(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}function jM(e){var t=dl(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function oN(e){return["html","body","#document"].indexOf(ms(e))>=0?e.ownerDocument.body:Zi(e)&&jM(e)?e:oN(Lx(e))}function km(e,t){var n;t===void 0&&(t=[]);var r=oN(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=$i(r),a=o?[i].concat(i.visualViewport||[],jM(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(km(Lx(a)))}function O_(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function kce(e,t){var n=fp(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 SO(e,t,n){return t===QD?O_($ce(e,n)):Bc(t)?kce(t,n):O_(_ce(ku(e)))}function Pce(e){var t=km(Lx(e)),n=["absolute","fixed"].indexOf(dl(e).position)>=0,r=n&&Zi(e)?l0(e):e;return Bc(r)?t.filter(function(o){return Bc(o)&&eN(o,r)&&ms(o)!=="body"}):[]}function Mce(e,t,n,r){var o=t==="clippingParents"?Pce(e):[].concat(t),i=[].concat(o,[n]),a=i[0],s=i.reduce(function(l,u){var c=SO(e,u,r);return l.top=yc(c.top,l.top),l.right=Py(c.right,l.right),l.bottom=Py(c.bottom,l.bottom),l.left=yc(c.left,l.left),l},SO(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function iN(e){var t=e.reference,n=e.element,r=e.placement,o=r?ss(r):null,i=r?pp(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(o){case qo:l={x:a,y:t.y-n.height};break;case oa:l={x:a,y:t.y+t.height};break;case ia:l={x:t.x+t.width,y:s};break;case Ko:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var u=o?AM(o):null;if(u!=null){var c=u==="y"?"height":"width";switch(i){case cp:l[u]=l[u]-(t[c]/2-n[c]/2);break;case ug:l[u]=l[u]+(t[c]/2-n[c]/2);break}}return l}function cg(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,a=i===void 0?e.strategy:i,s=n.boundary,l=s===void 0?Kue:s,u=n.rootBoundary,c=u===void 0?QD:u,f=n.elementContext,p=f===void 0?Dh:f,y=n.altBoundary,v=y===void 0?!1:y,b=n.padding,C=b===void 0?0:b,x=nN(typeof C!="number"?C:rN(C,s0)),w=p===Dh?Yue:Dh,S=e.rects.popper,$=e.elements[v?w:p],T=Mce(Bc($)?$:$.contextElement||ku(e.elements.popper),l,c,a),k=fp(e.elements.reference),M=iN({reference:k,element:S,strategy:"absolute",placement:o}),E=O_(Object.assign({},S,M)),N=p===Dh?E:k,I={top:T.top-N.top+x.top,bottom:N.bottom-T.bottom+x.bottom,left:T.left-N.left+x.left,right:N.right-T.right+x.right},A=e.modifiersData.offset;if(p===Dh&&A){var z=A[o];Object.keys(I).forEach(function(L){var O=[ia,oa].indexOf(L)>=0?1:-1,j=[qo,oa].indexOf(L)>=0?"y":"x";I[L]+=z[j]*O})}return I}function Tce(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?ZD:l,c=pp(r),f=c?s?bO:bO.filter(function(v){return pp(v)===c}):s0,p=f.filter(function(v){return u.indexOf(v)>=0});p.length===0&&(p=f);var y=p.reduce(function(v,b){return v[b]=cg(e,{placement:b,boundary:o,rootBoundary:i,padding:a})[ss(b)],v},{});return Object.keys(y).sort(function(v,b){return y[v]-y[b]})}function Ice(e){if(ss(e)===EM)return[];var t=I1(e);return[CO(e),t,CO(t)]}function Ece(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,s=a===void 0?!0:a,l=n.fallbackPlacements,u=n.padding,c=n.boundary,f=n.rootBoundary,p=n.altBoundary,y=n.flipVariations,v=y===void 0?!0:y,b=n.allowedAutoPlacements,C=t.options.placement,x=ss(C),w=x===C,S=l||(w||!v?[I1(C)]:Ice(C)),$=[C].concat(S).reduce(function(Q,ne){return Q.concat(ss(ne)===EM?Tce(t,{placement:ne,boundary:c,rootBoundary:f,padding:u,flipVariations:v,allowedAutoPlacements:b}):ne)},[]),T=t.rects.reference,k=t.rects.popper,M=new Map,E=!0,N=$[0],I=0;I<$.length;I++){var A=$[I],z=ss(A),L=pp(A)===cp,O=[qo,oa].indexOf(z)>=0,j=O?"width":"height",H=cg(t,{placement:A,boundary:c,rootBoundary:f,altBoundary:p,padding:u}),B=O?L?ia:Ko:L?oa:qo;T[j]>k[j]&&(B=I1(B));var D=I1(B),W=[];if(i&&W.push(H[z]<=0),s&&W.push(H[B]<=0,H[D]<=0),W.every(function(Q){return Q})){N=A,E=!1;break}M.set(A,W)}if(E)for(var U=v?3:1,Z=function(ne){var re=$.find(function(ge){var xe=M.get(ge);if(xe)return xe.slice(0,ne).every(function(fe){return fe})});if(re)return N=re,"break"},Y=U;Y>0;Y--){var se=Z(Y);if(se==="break")break}t.placement!==N&&(t.modifiersData[r]._skip=!0,t.placement=N,t.reset=!0)}}const Rce={name:"flip",enabled:!0,phase:"main",fn:Ece,requiresIfExists:["offset"],data:{_skip:!1}};function $O(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 _O(e){return[qo,ia,oa,Ko].some(function(t){return e[t]>=0})}function Oce(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=cg(t,{elementContext:"reference"}),s=cg(t,{altBoundary:!0}),l=$O(a,r),u=$O(s,o,i),c=_O(l),f=_O(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 Ace={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Oce};function Fce(e,t,n){var r=ss(e),o=[Ko,qo].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[Ko,ia].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function Lce(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,a=ZD.reduce(function(c,f){return c[f]=Fce(f,t.rects,i),c},{}),s=a[t.placement],l=s.x,u=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}const jce={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Lce};function Dce(e){var t=e.state,n=e.name;t.modifiersData[n]=iN({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Nce={name:"popperOffsets",enabled:!0,phase:"read",fn:Dce,data:{}};function zce(e){return e==="x"?"y":"x"}function Bce(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,s=a===void 0?!1:a,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,f=n.padding,p=n.tether,y=p===void 0?!0:p,v=n.tetherOffset,b=v===void 0?0:v,C=cg(t,{boundary:l,rootBoundary:u,padding:f,altBoundary:c}),x=ss(t.placement),w=pp(t.placement),S=!w,$=AM(x),T=zce($),k=t.modifiersData.popperOffsets,M=t.rects.reference,E=t.rects.popper,N=typeof b=="function"?b(Object.assign({},t.rects,{placement:t.placement})):b,I=typeof N=="number"?{mainAxis:N,altAxis:N}:Object.assign({mainAxis:0,altAxis:0},N),A=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,z={x:0,y:0};if(k){if(i){var L,O=$==="y"?qo:Ko,j=$==="y"?oa:ia,H=$==="y"?"height":"width",B=k[$],D=B+C[O],W=B-C[j],U=y?-E[H]/2:0,Z=w===cp?M[H]:E[H],Y=w===cp?-E[H]:-M[H],se=t.elements.arrow,Q=y&&se?OM(se):{width:0,height:0},ne=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:tN(),re=ne[O],ge=ne[j],xe=_m(0,M[H],Q[H]),fe=S?M[H]/2-U-xe-re-I.mainAxis:Z-xe-re-I.mainAxis,Se=S?-M[H]/2+U+xe+ge+I.mainAxis:Y+xe+ge+I.mainAxis,de=t.elements.arrow&&l0(t.elements.arrow),ie=de?$==="y"?de.clientTop||0:de.clientLeft||0:0,Pe=(L=A==null?void 0:A[$])!=null?L:0,$e=B+fe-Pe-ie,me=B+Se-Pe,ue=_m(y?Py(D,$e):D,B,y?yc(W,me):W);k[$]=ue,z[$]=ue-B}if(s){var ce,Te=$==="x"?qo:Ko,Le=$==="x"?oa:ia,Re=k[T],Oe=T==="y"?"height":"width",K=Re+C[Te],ee=Re-C[Le],pe=[qo,Ko].indexOf(x)!==-1,ye=(ce=A==null?void 0:A[T])!=null?ce:0,je=pe?K:Re-M[Oe]-E[Oe]-ye+I.altAxis,Ae=pe?Re+M[Oe]+E[Oe]-ye-I.altAxis:ee,Ie=y&&pe?dce(je,Re,Ae):_m(y?je:K,Re,y?Ae:ee);k[T]=Ie,z[T]=Ie-Re}t.modifiersData[r]=z}}const Hce={name:"preventOverflow",enabled:!0,phase:"main",fn:Bce,requiresIfExists:["offset"]};function Wce(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Vce(e){return e===$i(e)||!Zi(e)?FM(e):Wce(e)}function Uce(e){var t=e.getBoundingClientRect(),n=dp(t.width)/e.offsetWidth||1,r=dp(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Gce(e,t,n){n===void 0&&(n=!1);var r=Zi(t),o=Zi(t)&&Uce(t),i=ku(t),a=fp(e,o,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((ms(t)!=="body"||jM(i))&&(s=Vce(t)),Zi(t)?(l=fp(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=LM(i))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function qce(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&o(l)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function Kce(e){var t=qce(e);return ice.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function Yce(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Xce(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 kO={placement:"bottom",modifiers:[],strategy:"absolute"};function PO(){for(var e=arguments.length,t=new Array(e),n=0;n{i||s(Jce(o)||document.body)},[o,i]),dn(()=>{if(a&&!i)return Dc(n,a),()=>{Dc(n,null)}},[n,a,i]),i){if(g.isValidElement(r)){const u={ref:l};return g.cloneElement(r,u)}return m.jsx(g.Fragment,{children:r})}return m.jsx(g.Fragment,{children:a&&Su.createPortal(r,a)})});function ede(e){return vt("MuiPopper",e)}yt("MuiPopper",["root"]);const tde=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],nde=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function rde(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function A_(e){return typeof e=="function"?e():e}function ode(e){return e.nodeType!==void 0}const ide=()=>Ke({root:["root"]},Lue(ede)),ade={},sde=g.forwardRef(function(t,n){var r;const{anchorEl:o,children:i,direction:a,disablePortal:s,modifiers:l,open:u,placement:c,popperOptions:f,popperRef:p,slotProps:y={},slots:v={},TransitionProps:b}=t,C=be(t,tde),x=g.useRef(null),w=rn(x,n),S=g.useRef(null),$=rn(S,p),T=g.useRef($);dn(()=>{T.current=$},[$]),g.useImperativeHandle(p,()=>S.current,[]);const k=rde(c,a),[M,E]=g.useState(k),[N,I]=g.useState(A_(o));g.useEffect(()=>{S.current&&S.current.forceUpdate()}),g.useEffect(()=>{o&&I(A_(o))},[o]),dn(()=>{if(!N||!u)return;const j=D=>{E(D.placement)};let H=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:D})=>{j(D)}}];l!=null&&(H=H.concat(l)),f&&f.modifiers!=null&&(H=H.concat(f.modifiers));const B=aN(N,x.current,P({placement:k},f,{modifiers:H}));return T.current(B),()=>{B.destroy(),T.current(null)}},[N,s,l,u,f,k]);const A={placement:M};b!==null&&(A.TransitionProps=b);const z=ide(),L=(r=v.root)!=null?r:"div",O=Si({elementType:L,externalSlotProps:y.root,externalForwardedProps:C,additionalProps:{role:"tooltip",ref:w},ownerState:t,className:z.root});return m.jsx(L,P({},O,{children:typeof i=="function"?i(A):i}))}),lde=g.forwardRef(function(t,n){const{anchorEl:r,children:o,container:i,direction:a="ltr",disablePortal:s=!1,keepMounted:l=!1,modifiers:u,open:c,placement:f="bottom",popperOptions:p=ade,popperRef:y,style:v,transition:b=!1,slotProps:C={},slots:x={}}=t,w=be(t,nde),[S,$]=g.useState(!0),T=()=>{$(!1)},k=()=>{$(!0)};if(!l&&!c&&(!b||S))return null;let M;if(i)M=i;else if(r){const I=A_(r);M=I&&ode(I)?Gn(I).body:Gn(null).body}const E=!c&&l&&(!b||S)?"none":void 0,N=b?{in:c,onEnter:T,onExited:k}:void 0;return m.jsx(sN,{disablePortal:s,container:M,children:m.jsx(sde,P({anchorEl:r,direction:a,disablePortal:s,modifiers:u,ref:n,open:b?!S:c,placement:f,popperOptions:p,popperRef:y,slotProps:C,slots:x},w,{style:P({position:"fixed",top:0,left:0,display:E},v),TransitionProps:N,children:o}))})});function ude(e){const t=Gn(e);return t.body===e?ra(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Pm(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function MO(e){return parseInt(ra(e).getComputedStyle(e).paddingRight,10)||0}function cde(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 TO(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,a=>{const s=i.indexOf(a)===-1,l=!cde(a);s&&l&&Pm(a,o)})}function wS(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function dde(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(ude(r)){const a=pD(Gn(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${MO(r)+a}px`;const s=Gn(r).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${MO(l)+a}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=Gn(r).body;else{const a=r.parentElement,s=ra(r);i=(a==null?void 0:a.nodeName)==="HTML"&&s.getComputedStyle(a).overflowY==="scroll"?a:r}n.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{n.forEach(({value:i,el:a,property:s})=>{i?a.style.setProperty(s,i):a.style.removeProperty(s)})}}function fde(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class pde{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&&Pm(t.modalRef,!1);const o=fde(n);TO(n,t.mount,t.modalRef,o,!0);const i=wS(this.containers,a=>a.container===n);return i!==-1?(this.containers[i].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=wS(this.containers,i=>i.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=dde(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=wS(this.containers,a=>a.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&&Pm(t.modalRef,n),TO(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(o,1);else{const a=i.modals[i.modals.length-1];a.modalRef&&Pm(a.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function hde(e){return typeof e=="function"?e():e}function mde(e){return e?e.props.hasOwnProperty("in"):!1}const gde=new pde;function vde(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=gde,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:u,open:c,rootRef:f}=e,p=g.useRef({}),y=g.useRef(null),v=g.useRef(null),b=rn(v,f),[C,x]=g.useState(!c),w=mde(l);let S=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(S=!1);const $=()=>Gn(y.current),T=()=>(p.current.modalRef=v.current,p.current.mount=y.current,p.current),k=()=>{o.mount(T(),{disableScrollLock:r}),v.current&&(v.current.scrollTop=0)},M=Dn(()=>{const H=hde(t)||$().body;o.add(T(),H),v.current&&k()}),E=g.useCallback(()=>o.isTopModal(T()),[o]),N=Dn(H=>{y.current=H,H&&(c&&E()?k():v.current&&Pm(v.current,S))}),I=g.useCallback(()=>{o.remove(T(),S)},[S,o]);g.useEffect(()=>()=>{I()},[I]),g.useEffect(()=>{c?M():(!w||!i)&&I()},[c,I,w,i,M]);const A=H=>B=>{var D;(D=H.onKeyDown)==null||D.call(H,B),!(B.key!=="Escape"||!E())&&(n||(B.stopPropagation(),u&&u(B,"escapeKeyDown")))},z=H=>B=>{var D;(D=H.onClick)==null||D.call(H,B),B.target===B.currentTarget&&u&&u(B,"backdropClick")};return{getRootProps:(H={})=>{const B=KD(e);delete B.onTransitionEnter,delete B.onTransitionExited;const D=P({},B,H);return P({role:"presentation"},D,{onKeyDown:A(D),ref:b})},getBackdropProps:(H={})=>{const B=H;return P({"aria-hidden":!0},B,{onClick:z(B),open:c})},getTransitionProps:()=>{const H=()=>{x(!1),a&&a()},B=()=>{x(!0),s&&s(),i&&I()};return{onEnter:$_(H,l==null?void 0:l.props.onEnter),onExited:$_(B,l==null?void 0:l.props.onExited)}},rootRef:b,portalRef:N,isTopModal:E,exited:C,hasTransition:w}}const yde=["onChange","maxRows","minRows","style","value"];function Bv(e){return parseInt(e,10)||0}const bde={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function IO(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflow}const xde=g.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:i=1,style:a,value:s}=t,l=be(t,yde),{current:u}=g.useRef(s!=null),c=g.useRef(null),f=rn(n,c),p=g.useRef(null),y=g.useRef(0),[v,b]=g.useState({outerHeightStyle:0}),C=g.useCallback(()=>{const $=c.current,k=ra($).getComputedStyle($);if(k.width==="0px")return{outerHeightStyle:0};const M=p.current;M.style.width=k.width,M.value=$.value||t.placeholder||"x",M.value.slice(-1)===` +`&&(M.value+=" ");const E=k.boxSizing,N=Bv(k.paddingBottom)+Bv(k.paddingTop),I=Bv(k.borderBottomWidth)+Bv(k.borderTopWidth),A=M.scrollHeight;M.value="x";const z=M.scrollHeight;let L=A;i&&(L=Math.max(Number(i)*z,L)),o&&(L=Math.min(Number(o)*z,L)),L=Math.max(L,z);const O=L+(E==="border-box"?N+I:0),j=Math.abs(L-A)<=1;return{outerHeightStyle:O,overflow:j}},[o,i,t.placeholder]),x=($,T)=>{const{outerHeightStyle:k,overflow:M}=T;return y.current<20&&(k>0&&Math.abs(($.outerHeightStyle||0)-k)>1||$.overflow!==M)?(y.current+=1,{overflow:M,outerHeightStyle:k}):$},w=g.useCallback(()=>{const $=C();IO($)||b(T=>x(T,$))},[C]);dn(()=>{const $=()=>{const A=C();IO(A)||Su.flushSync(()=>{b(z=>x(z,A))})},T=()=>{y.current=0,$()};let k;const M=_u(T),E=c.current,N=ra(E);N.addEventListener("resize",M);let I;return typeof ResizeObserver<"u"&&(I=new ResizeObserver(T),I.observe(E)),()=>{M.clear(),cancelAnimationFrame(k),N.removeEventListener("resize",M),I&&I.disconnect()}},[C]),dn(()=>{w()}),g.useEffect(()=>{y.current=0},[s]);const S=$=>{y.current=0,u||w(),r&&r($)};return m.jsxs(g.Fragment,{children:[m.jsx("textarea",P({value:s,onChange:S,ref:f,rows:i,style:P({height:v.outerHeightStyle,overflow:v.overflow?"hidden":void 0},a)},l)),m.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:p,tabIndex:-1,style:P({},bde.shadow,a,{paddingTop:0,paddingBottom:0})})]})});function EO(e){return typeof e.normalize<"u"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function lN(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:o="any",stringify:i,trim:a=!1}=e;return(s,{inputValue:l,getOptionLabel:u})=>{let c=a?l.trim():l;n&&(c=c.toLowerCase()),t&&(c=EO(c));const f=c?s.filter(p=>{let y=(i||u)(p);return n&&(y=y.toLowerCase()),t&&(y=EO(y)),o==="start"?y.indexOf(c)===0:y.indexOf(c)>-1}):s;return typeof r=="number"?f.slice(0,r):f}}function CS(e,t){for(let n=0;n{var t;return e.current!==null&&((t=e.current.parentElement)==null?void 0:t.contains(document.activeElement))};function Sde(e){const{unstable_isActiveElementInListbox:t=Cde,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:o=!1,autoSelect:i=!1,blurOnSelect:a=!1,clearOnBlur:s=!e.freeSolo,clearOnEscape:l=!1,componentName:u="useAutocomplete",defaultValue:c=e.multiple?[]:null,disableClearable:f=!1,disableCloseOnSelect:p=!1,disabled:y,disabledItemsFocusable:v=!1,disableListWrap:b=!1,filterOptions:C=wde,filterSelectedOptions:x=!1,freeSolo:w=!1,getOptionDisabled:S,getOptionLabel:$=_e=>{var we;return(we=_e.label)!=null?we:_e},groupBy:T,handleHomeEndKeys:k=!e.freeSolo,id:M,includeInputInList:E=!1,inputValue:N,isOptionEqualToValue:I=(_e,we)=>_e===we,multiple:A=!1,onChange:z,onClose:L,onHighlightChange:O,onInputChange:j,onOpen:H,open:B,openOnFocus:D=!1,options:W,readOnly:U=!1,selectOnFocus:Z=!e.freeSolo,value:Y}=e,se=ln(M);let Q=$;Q=_e=>{const we=$(_e);return typeof we!="string"?String(we):we};const ne=g.useRef(!1),re=g.useRef(!0),ge=g.useRef(null),xe=g.useRef(null),[fe,Se]=g.useState(null),[de,ie]=g.useState(-1),Pe=o?0:-1,$e=g.useRef(Pe),[me,ue]=su({controlled:Y,default:c,name:u}),[ce,Te]=su({controlled:N,default:"",name:u,state:"inputValue"}),[Le,Re]=g.useState(!1),Oe=g.useCallback((_e,we)=>{if(!(A?me.length!(x&&(A?me:[me]).some(we=>we!==null&&I(_e,we)))),{inputValue:je&&pe?"":ce,getOptionLabel:Q}):[],Ce=dM({filteredOptions:Ie,value:me,inputValue:ce});g.useEffect(()=>{const _e=me!==Ce.value;Le&&!_e||w&&!_e||Oe(null,me)},[me,Oe,Le,Ce.value,w]);const Ze=K&&Ie.length>0&&!U,Ct=Dn(_e=>{_e===-1?ge.current.focus():fe.querySelector(`[data-tag-index="${_e}"]`).focus()});g.useEffect(()=>{A&&de>me.length-1&&(ie(-1),Ct(-1))},[me,A,de,Ct]);function et(_e,we){if(!xe.current||_e===-1)return-1;let Fe=_e;for(;;){if(we==="next"&&Fe===Ie.length||we==="previous"&&Fe===-1)return-1;const rt=xe.current.querySelector(`[data-option-index="${Fe}"]`),Tt=v?!1:!rt||rt.disabled||rt.getAttribute("aria-disabled")==="true";if(rt&&!rt.hasAttribute("tabindex")||Tt)Fe+=we==="next"?1:-1;else return Fe}}const Be=Dn(({event:_e,index:we,reason:Fe="auto"})=>{if($e.current=we,we===-1?ge.current.removeAttribute("aria-activedescendant"):ge.current.setAttribute("aria-activedescendant",`${se}-option-${we}`),O&&O(_e,we===-1?null:Ie[we],Fe),!xe.current)return;const rt=xe.current.querySelector(`[role="option"].${n}-focused`);rt&&(rt.classList.remove(`${n}-focused`),rt.classList.remove(`${n}-focusVisible`));let Tt=xe.current;if(xe.current.getAttribute("role")!=="listbox"&&(Tt=xe.current.parentElement.querySelector('[role="listbox"]')),!Tt)return;if(we===-1){Tt.scrollTop=0;return}const en=xe.current.querySelector(`[data-option-index="${we}"]`);if(en&&(en.classList.add(`${n}-focused`),Fe==="keyboard"&&en.classList.add(`${n}-focusVisible`),Tt.scrollHeight>Tt.clientHeight&&Fe!=="mouse"&&Fe!=="touch")){const kn=en,ct=Tt.clientHeight+Tt.scrollTop,gt=kn.offsetTop+kn.offsetHeight;gt>ct?Tt.scrollTop=gt-Tt.clientHeight:kn.offsetTop-kn.offsetHeight*(T?1.3:0){if(!Ae)return;const en=et((()=>{const kn=Ie.length-1;if(we==="reset")return Pe;if(we==="start")return 0;if(we==="end")return kn;const ct=$e.current+we;return ct<0?ct===-1&&E?-1:b&&$e.current!==-1||Math.abs(we)>1?0:kn:ct>kn?ct===kn+1&&E?-1:b||Math.abs(we)>1?kn:0:ct})(),Fe);if(Be({index:en,reason:rt,event:_e}),r&&we!=="reset")if(en===-1)ge.current.value=ce;else{const kn=Q(Ie[en]);ge.current.value=kn,kn.toLowerCase().indexOf(ce.toLowerCase())===0&&ce.length>0&&ge.current.setSelectionRange(ce.length,kn.length)}}),X=()=>{const _e=(we,Fe)=>{const rt=we?Q(we):"",Tt=Fe?Q(Fe):"";return rt===Tt};if($e.current!==-1&&Ce.filteredOptions&&Ce.filteredOptions.length!==Ie.length&&Ce.inputValue===ce&&(A?me.length===Ce.value.length&&Ce.value.every((we,Fe)=>Q(me[Fe])===Q(we)):_e(Ce.value,me))){const we=Ce.filteredOptions[$e.current];if(we&&Ie.some(rt=>Q(rt)===Q(we)))return!0}return!1},oe=g.useCallback(()=>{if(!Ae||X())return;const _e=A?me[0]:me;if(Ie.length===0||_e==null){te({diff:"reset"});return}if(xe.current){if(_e!=null){const we=Ie[$e.current];if(A&&we&&CS(me,rt=>I(we,rt))!==-1)return;const Fe=CS(Ie,rt=>I(rt,_e));Fe===-1?te({diff:"reset"}):Be({index:Fe});return}if($e.current>=Ie.length-1){Be({index:Ie.length-1});return}Be({index:$e.current})}},[Ie.length,A?!1:me,x,te,Be,Ae,ce,A]),Ee=Dn(_e=>{Dc(xe,_e),_e&&oe()});g.useEffect(()=>{oe()},[oe]);const Ue=_e=>{K||(ee(!0),ye(!0),H&&H(_e))},Ye=(_e,we)=>{K&&(ee(!1),L&&L(_e,we))},at=(_e,we,Fe,rt)=>{if(A){if(me.length===we.length&&me.every((Tt,en)=>Tt===we[en]))return}else if(me===we)return;z&&z(_e,we,Fe,rt),ue(we)},Je=g.useRef(!1),nt=(_e,we,Fe="selectOption",rt="options")=>{let Tt=Fe,en=we;if(A){en=Array.isArray(me)?me.slice():[];const kn=CS(en,ct=>I(we,ct));kn===-1?en.push(we):rt!=="freeSolo"&&(en.splice(kn,1),Tt="removeOption")}Oe(_e,en),at(_e,en,Tt,{option:we}),!p&&(!_e||!_e.ctrlKey&&!_e.metaKey)&&Ye(_e,Tt),(a===!0||a==="touch"&&Je.current||a==="mouse"&&!Je.current)&&ge.current.blur()};function _t(_e,we){if(_e===-1)return-1;let Fe=_e;for(;;){if(we==="next"&&Fe===me.length||we==="previous"&&Fe===-1)return-1;const rt=fe.querySelector(`[data-tag-index="${Fe}"]`);if(!rt||!rt.hasAttribute("tabindex")||rt.disabled||rt.getAttribute("aria-disabled")==="true")Fe+=we==="next"?1:-1;else return Fe}}const ht=(_e,we)=>{if(!A)return;ce===""&&Ye(_e,"toggleInput");let Fe=de;de===-1?ce===""&&we==="previous"&&(Fe=me.length-1):(Fe+=we==="next"?1:-1,Fe<0&&(Fe=0),Fe===me.length&&(Fe=-1)),Fe=_t(Fe,we),ie(Fe),Ct(Fe)},lt=_e=>{ne.current=!0,Te(""),j&&j(_e,"","clear"),at(_e,A?[]:null,"clear")},Ot=_e=>we=>{if(_e.onKeyDown&&_e.onKeyDown(we),!we.defaultMuiPrevented&&(de!==-1&&["ArrowLeft","ArrowRight"].indexOf(we.key)===-1&&(ie(-1),Ct(-1)),we.which!==229))switch(we.key){case"Home":Ae&&k&&(we.preventDefault(),te({diff:"start",direction:"next",reason:"keyboard",event:we}));break;case"End":Ae&&k&&(we.preventDefault(),te({diff:"end",direction:"previous",reason:"keyboard",event:we}));break;case"PageUp":we.preventDefault(),te({diff:-RO,direction:"previous",reason:"keyboard",event:we}),Ue(we);break;case"PageDown":we.preventDefault(),te({diff:RO,direction:"next",reason:"keyboard",event:we}),Ue(we);break;case"ArrowDown":we.preventDefault(),te({diff:1,direction:"next",reason:"keyboard",event:we}),Ue(we);break;case"ArrowUp":we.preventDefault(),te({diff:-1,direction:"previous",reason:"keyboard",event:we}),Ue(we);break;case"ArrowLeft":ht(we,"previous");break;case"ArrowRight":ht(we,"next");break;case"Enter":if($e.current!==-1&&Ae){const Fe=Ie[$e.current],rt=S?S(Fe):!1;if(we.preventDefault(),rt)return;nt(we,Fe,"selectOption"),r&&ge.current.setSelectionRange(ge.current.value.length,ge.current.value.length)}else w&&ce!==""&&je===!1&&(A&&we.preventDefault(),nt(we,ce,"createOption","freeSolo"));break;case"Escape":Ae?(we.preventDefault(),we.stopPropagation(),Ye(we,"escape")):l&&(ce!==""||A&&me.length>0)&&(we.preventDefault(),we.stopPropagation(),lt(we));break;case"Backspace":if(A&&!U&&ce===""&&me.length>0){const Fe=de===-1?me.length-1:de,rt=me.slice();rt.splice(Fe,1),at(we,rt,"removeOption",{option:me[Fe]})}break;case"Delete":if(A&&!U&&ce===""&&me.length>0&&de!==-1){const Fe=de,rt=me.slice();rt.splice(Fe,1),at(we,rt,"removeOption",{option:me[Fe]})}break}},Dt=_e=>{Re(!0),D&&!ne.current&&Ue(_e)},fn=_e=>{if(t(xe)){ge.current.focus();return}Re(!1),re.current=!0,ne.current=!1,i&&$e.current!==-1&&Ae?nt(_e,Ie[$e.current],"blur"):i&&w&&ce!==""?nt(_e,ce,"blur","freeSolo"):s&&Oe(_e,me),Ye(_e,"blur")},hn=_e=>{const we=_e.target.value;ce!==we&&(Te(we),ye(!1),j&&j(_e,we,"input")),we===""?!f&&!A&&at(_e,null,"clear"):Ue(_e)},Pt=_e=>{const we=Number(_e.currentTarget.getAttribute("data-option-index"));$e.current!==we&&Be({event:_e,index:we,reason:"mouse"})},zt=_e=>{Be({event:_e,index:Number(_e.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Je.current=!0},un=_e=>{const we=Number(_e.currentTarget.getAttribute("data-option-index"));nt(_e,Ie[we],"selectOption"),Je.current=!1},cn=_e=>we=>{const Fe=me.slice();Fe.splice(_e,1),at(we,Fe,"removeOption",{option:me[_e]})},ut=_e=>{K?Ye(_e,"toggleInput"):Ue(_e)},mt=_e=>{_e.currentTarget.contains(_e.target)&&_e.target.getAttribute("id")!==se&&_e.preventDefault()},At=_e=>{_e.currentTarget.contains(_e.target)&&(ge.current.focus(),Z&&re.current&&ge.current.selectionEnd-ge.current.selectionStart===0&&ge.current.select(),re.current=!1)},Ft=_e=>{!y&&(ce===""||!K)&&ut(_e)};let tt=w&&ce.length>0;tt=tt||(A?me.length>0:me!==null);let Gt=Ie;return T&&(Gt=Ie.reduce((_e,we,Fe)=>{const rt=T(we);return _e.length>0&&_e[_e.length-1].group===rt?_e[_e.length-1].options.push(we):_e.push({key:Fe,index:Fe,group:rt,options:[we]}),_e},[])),y&&Le&&fn(),{getRootProps:(_e={})=>P({"aria-owns":Ze?`${se}-listbox`:null},_e,{onKeyDown:Ot(_e),onMouseDown:mt,onClick:At}),getInputLabelProps:()=>({id:`${se}-label`,htmlFor:se}),getInputProps:()=>({id:se,value:ce,onBlur:fn,onFocus:Dt,onChange:hn,onMouseDown:Ft,"aria-activedescendant":Ae?"":null,"aria-autocomplete":r?"both":"list","aria-controls":Ze?`${se}-listbox`:void 0,"aria-expanded":Ze,autoComplete:"off",ref:ge,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:y}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:lt}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:ut}),getTagProps:({index:_e})=>P({key:_e,"data-tag-index":_e,tabIndex:-1},!U&&{onDelete:cn(_e)}),getListboxProps:()=>({role:"listbox",id:`${se}-listbox`,"aria-labelledby":`${se}-label`,ref:Ee,onMouseDown:_e=>{_e.preventDefault()}}),getOptionProps:({index:_e,option:we})=>{const Fe=(A?me:[me]).some(Tt=>Tt!=null&&I(we,Tt)),rt=S?S(we):!1;return{key:Q(we),tabIndex:-1,role:"option",id:`${se}-option-${_e}`,onMouseMove:Pt,onClick:un,onTouchStart:zt,"data-option-index":_e,"aria-disabled":rt,"aria-selected":Fe}},id:se,inputValue:ce,value:me,dirty:tt,expanded:Ae&&fe,popupOpen:Ae,focused:Le||de!==-1,anchorEl:fe,setAnchorEl:Se,focusedTag:de,groupedOptions:Gt}}const $de=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],_de=ke(lde,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),kde=g.forwardRef(function(t,n){var r;const o=DD(),i=$t({props:t,name:"MuiPopper"}),{anchorEl:a,component:s,components:l,componentsProps:u,container:c,disablePortal:f,keepMounted:p,modifiers:y,open:v,placement:b,popperOptions:C,popperRef:x,transition:w,slots:S,slotProps:$}=i,T=be(i,$de),k=(r=S==null?void 0:S.root)!=null?r:l==null?void 0:l.Root,M=P({anchorEl:a,container:c,disablePortal:f,keepMounted:p,modifiers:y,open:v,placement:b,popperOptions:C,popperRef:x,transition:w},T);return m.jsx(_de,P({as:s,direction:o==null?void 0:o.direction,slots:{root:k},slotProps:$??u},M,{ref:n}))}),ud=kde;function Pde(e){return vt("MuiListSubheader",e)}yt("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const Mde=["className","color","component","disableGutters","disableSticky","inset"],Tde=e=>{const{classes:t,color:n,disableGutters:r,inset:o,disableSticky:i}=e,a={root:["root",n!=="default"&&`color${De(n)}`,!r&&"gutters",o&&"inset",!i&&"sticky"]};return Ke(a,Pde,t)},Ide=ke("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${De(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(({theme:e,ownerState:t})=>P({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},t.color==="primary"&&{color:(e.vars||e).palette.primary.main},t.color==="inherit"&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper})),uN=g.forwardRef(function(t,n){const r=$t({props:t,name:"MuiListSubheader"}),{className:o,color:i="default",component:a="li",disableGutters:s=!1,disableSticky:l=!1,inset:u=!1}=r,c=be(r,Mde),f=P({},r,{color:i,component:a,disableGutters:s,disableSticky:l,inset:u}),p=Tde(f);return m.jsx(Ide,P({as:a,className:Ne(p.root,o),ref:n,ownerState:f},c))});uN.muiSkipListHighlight=!0;const Ede=uN,Rde=xt(m.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function Ode(e){return vt("MuiChip",e)}const Ade=yt("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),mn=Ade,Fde=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],Lde=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:i,onDelete:a,clickable:s,variant:l}=e,u={root:["root",l,n&&"disabled",`size${De(r)}`,`color${De(o)}`,s&&"clickable",s&&`clickableColor${De(o)}`,a&&"deletable",a&&`deletableColor${De(o)}`,`${l}${De(o)}`],label:["label",`label${De(r)}`],avatar:["avatar",`avatar${De(r)}`,`avatarColor${De(o)}`],icon:["icon",`icon${De(r)}`,`iconColor${De(i)}`],deleteIcon:["deleteIcon",`deleteIcon${De(r)}`,`deleteIconColor${De(o)}`,`deleteIcon${De(l)}Color${De(o)}`]};return Ke(u,Ode,t)},jde=ke("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:i,onDelete:a,size:s,variant:l}=n;return[{[`& .${mn.avatar}`]:t.avatar},{[`& .${mn.avatar}`]:t[`avatar${De(s)}`]},{[`& .${mn.avatar}`]:t[`avatarColor${De(r)}`]},{[`& .${mn.icon}`]:t.icon},{[`& .${mn.icon}`]:t[`icon${De(s)}`]},{[`& .${mn.icon}`]:t[`iconColor${De(o)}`]},{[`& .${mn.deleteIcon}`]:t.deleteIcon},{[`& .${mn.deleteIcon}`]:t[`deleteIcon${De(s)}`]},{[`& .${mn.deleteIcon}`]:t[`deleteIconColor${De(r)}`]},{[`& .${mn.deleteIcon}`]:t[`deleteIcon${De(l)}Color${De(r)}`]},t.root,t[`size${De(s)}`],t[`color${De(r)}`],i&&t.clickable,i&&r!=="default"&&t[`clickableColor${De(r)})`],a&&t.deletable,a&&r!=="default"&&t[`deletableColor${De(r)}`],t[l],t[`${l}${De(r)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return P({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${mn.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${mn.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${mn.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${mn.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${mn.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${mn.icon}`]:P({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&P({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},t.color!=="default"&&{color:"inherit"})),[`& .${mn.deleteIcon}`]:P({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:Rt(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:Rt(e.palette.text.primary,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:Rt(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${mn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Rt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${mn.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>P({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Rt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${mn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Rt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${mn.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>P({},t.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${mn.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${mn.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${mn.avatar}`]:{marginLeft:4},[`& .${mn.avatarSmall}`]:{marginLeft:2},[`& .${mn.icon}`]:{marginLeft:4},[`& .${mn.iconSmall}`]:{marginLeft:2},[`& .${mn.deleteIcon}`]:{marginRight:5},[`& .${mn.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Rt(e.palette[t.color].main,.7)}`,[`&.${mn.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Rt(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${mn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Rt(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${mn.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Rt(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),Dde=ke("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${De(r)}`]]}})(({ownerState:e})=>P({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function OO(e){return e.key==="Backspace"||e.key==="Delete"}const Nde=g.forwardRef(function(t,n){const r=$t({props:t,name:"MuiChip"}),{avatar:o,className:i,clickable:a,color:s="default",component:l,deleteIcon:u,disabled:c=!1,icon:f,label:p,onClick:y,onDelete:v,onKeyDown:b,onKeyUp:C,size:x="medium",variant:w="filled",tabIndex:S,skipFocusWhenDisabled:$=!1}=r,T=be(r,Fde),k=g.useRef(null),M=rn(k,n),E=W=>{W.stopPropagation(),v&&v(W)},N=W=>{W.currentTarget===W.target&&OO(W)&&W.preventDefault(),b&&b(W)},I=W=>{W.currentTarget===W.target&&(v&&OO(W)?v(W):W.key==="Escape"&&k.current&&k.current.blur()),C&&C(W)},A=a!==!1&&y?!0:a,z=A||v?cl:l||"div",L=P({},r,{component:z,disabled:c,size:x,color:s,iconColor:g.isValidElement(f)&&f.props.color||s,onDelete:!!v,clickable:A,variant:w}),O=Lde(L),j=z===cl?P({component:l||"div",focusVisibleClassName:O.focusVisible},v&&{disableRipple:!0}):{};let H=null;v&&(H=u&&g.isValidElement(u)?g.cloneElement(u,{className:Ne(u.props.className,O.deleteIcon),onClick:E}):m.jsx(Rde,{className:Ne(O.deleteIcon),onClick:E}));let B=null;o&&g.isValidElement(o)&&(B=g.cloneElement(o,{className:Ne(O.avatar,o.props.className)}));let D=null;return f&&g.isValidElement(f)&&(D=g.cloneElement(f,{className:Ne(O.icon,f.props.className)})),m.jsxs(jde,P({as:z,className:Ne(O.root,i),disabled:A&&c?!0:void 0,onClick:y,onKeyDown:N,onKeyUp:I,ref:M,tabIndex:$&&c?-1:S,ownerState:L},j,T,{children:[B||D,m.jsx(Dde,{className:Ne(O.label),ownerState:L,children:p}),H]}))}),cN=Nde;function Pu({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 zde=g.createContext(void 0),jx=zde;function Cs(){return g.useContext(jx)}function dN(e){return m.jsx(pse,P({},e,{defaultTheme:Ax,themeId:o0}))}function AO(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function My(e,t=!1){return e&&(AO(e.value)&&e.value!==""||t&&AO(e.defaultValue)&&e.defaultValue!=="")}function Bde(e){return e.startAdornment}function Hde(e){return vt("MuiInputBase",e)}const Wde=yt("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),di=Wde,Vde=["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"],Dx=(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${De(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Nx=(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]},Ude=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:s,fullWidth:l,hiddenLabel:u,multiline:c,readOnly:f,size:p,startAdornment:y,type:v}=e,b={root:["root",`color${De(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",p&&p!=="medium"&&`size${De(p)}`,c&&"multiline",y&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",f&&"readOnly"],input:["input",r&&"disabled",v==="search"&&"inputTypeSearch",c&&"inputMultiline",p==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",y&&"inputAdornedStart",i&&"inputAdornedEnd",f&&"readOnly"]};return Ke(b,Hde,t)},zx=ke("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Dx})(({theme:e,ownerState:t})=>P({},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",[`&.${di.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&P({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),Bx=ke("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Nx})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=P({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 P({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] + .${di.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},[`&.${di.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"})}),Gde=m.jsx(dN,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),qde=g.forwardRef(function(t,n){var r;const o=$t({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:a,autoFocus:s,className:l,components:u={},componentsProps:c={},defaultValue:f,disabled:p,disableInjectingGlobalStyles:y,endAdornment:v,fullWidth:b=!1,id:C,inputComponent:x="input",inputProps:w={},inputRef:S,maxRows:$,minRows:T,multiline:k=!1,name:M,onBlur:E,onChange:N,onClick:I,onFocus:A,onKeyDown:z,onKeyUp:L,placeholder:O,readOnly:j,renderSuffix:H,rows:B,slotProps:D={},slots:W={},startAdornment:U,type:Z="text",value:Y}=o,se=be(o,Vde),Q=w.value!=null?w.value:Y,{current:ne}=g.useRef(Q!=null),re=g.useRef(),ge=g.useCallback(Ie=>{},[]),xe=rn(re,S,w.ref,ge),[fe,Se]=g.useState(!1),de=Cs(),ie=Pu({props:o,muiFormControl:de,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ie.focused=de?de.focused:fe,g.useEffect(()=>{!de&&p&&fe&&(Se(!1),E&&E())},[de,p,fe,E]);const Pe=de&&de.onFilled,$e=de&&de.onEmpty,me=g.useCallback(Ie=>{My(Ie)?Pe&&Pe():$e&&$e()},[Pe,$e]);dn(()=>{ne&&me({value:Q})},[Q,me,ne]);const ue=Ie=>{if(ie.disabled){Ie.stopPropagation();return}A&&A(Ie),w.onFocus&&w.onFocus(Ie),de&&de.onFocus?de.onFocus(Ie):Se(!0)},ce=Ie=>{E&&E(Ie),w.onBlur&&w.onBlur(Ie),de&&de.onBlur?de.onBlur(Ie):Se(!1)},Te=(Ie,...Ce)=>{if(!ne){const Ze=Ie.target||re.current;if(Ze==null)throw new Error(hu(1));me({value:Ze.value})}w.onChange&&w.onChange(Ie,...Ce),N&&N(Ie,...Ce)};g.useEffect(()=>{me(re.current)},[]);const Le=Ie=>{re.current&&Ie.currentTarget===Ie.target&&re.current.focus(),I&&I(Ie)};let Re=x,Oe=w;k&&Re==="input"&&(B?Oe=P({type:void 0,minRows:B,maxRows:B},Oe):Oe=P({type:void 0,maxRows:$,minRows:T},Oe),Re=xde);const K=Ie=>{me(Ie.animationName==="mui-auto-fill-cancel"?re.current:{value:"x"})};g.useEffect(()=>{de&&de.setAdornedStart(!!U)},[de,U]);const ee=P({},o,{color:ie.color||"primary",disabled:ie.disabled,endAdornment:v,error:ie.error,focused:ie.focused,formControl:de,fullWidth:b,hiddenLabel:ie.hiddenLabel,multiline:k,size:ie.size,startAdornment:U,type:Z}),pe=Ude(ee),ye=W.root||u.Root||zx,je=D.root||c.root||{},Ae=W.input||u.Input||Bx;return Oe=P({},Oe,(r=D.input)!=null?r:c.input),m.jsxs(g.Fragment,{children:[!y&&Gde,m.jsxs(ye,P({},je,!lg(ye)&&{ownerState:P({},ee,je.ownerState)},{ref:n,onClick:Le},se,{className:Ne(pe.root,je.className,l,j&&"MuiInputBase-readOnly"),children:[U,m.jsx(jx.Provider,{value:null,children:m.jsx(Ae,P({ownerState:ee,"aria-invalid":ie.error,"aria-describedby":i,autoComplete:a,autoFocus:s,defaultValue:f,disabled:ie.disabled,id:C,onAnimationStart:K,name:M,placeholder:O,readOnly:j,required:ie.required,rows:B,value:Q,onKeyDown:z,onKeyUp:L,type:Z},Oe,!lg(Ae)&&{as:Re,ownerState:P({},ee,Oe.ownerState)},{ref:xe,className:Ne(pe.input,Oe.className,j&&"MuiInputBase-readOnly"),onBlur:ce,onChange:Te,onFocus:ue}))}),v,H?H(P({},ie,{startAdornment:U})):null]}))]})}),cd=qde;function Kde(e){return vt("MuiInput",e)}const Yde=P({},di,yt("MuiInput",["root","underline","input"])),Vl=Yde;function Xde(e){return vt("MuiOutlinedInput",e)}const Qde=P({},di,yt("MuiOutlinedInput",["root","notchedOutline","input"])),Ua=Qde;function Zde(e){return vt("MuiFilledInput",e)}const Jde=P({},di,yt("MuiFilledInput",["root","underline","input"])),fi=Jde,fN=xt(m.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function efe(e){return vt("MuiAutocomplete",e)}const tfe=yt("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]),nn=tfe;var FO,LO;const nfe=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],rfe=["ref"],ofe=e=>{const{classes:t,disablePortal:n,expanded:r,focused:o,fullWidth:i,hasClearIcon:a,hasPopupIcon:s,inputFocused:l,popupOpen:u,size:c}=e,f={root:["root",r&&"expanded",o&&"focused",i&&"fullWidth",a&&"hasClearIcon",s&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",l&&"inputFocused"],tag:["tag",`tagSize${De(c)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",u&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return Ke(f,efe,t)},ife=ke("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:o,hasPopupIcon:i,inputFocused:a,size:s}=n;return[{[`& .${nn.tag}`]:t.tag},{[`& .${nn.tag}`]:t[`tagSize${De(s)}`]},{[`& .${nn.inputRoot}`]:t.inputRoot},{[`& .${nn.input}`]:t.input},{[`& .${nn.input}`]:a&&t.inputFocused},t.root,r&&t.fullWidth,i&&t.hasPopupIcon,o&&t.hasClearIcon]}})(({ownerState:e})=>P({[`&.${nn.focused} .${nn.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${nn.clearIndicator}`]:{visibility:"visible"}}},e.fullWidth&&{width:"100%"},{[`& .${nn.tag}`]:P({margin:3,maxWidth:"calc(100% - 6px)"},e.size==="small"&&{margin:2,maxWidth:"calc(100% - 4px)"}),[`& .${nn.inputRoot}`]:{flexWrap:"wrap",[`.${nn.hasPopupIcon}&, .${nn.hasClearIcon}&`]:{paddingRight:26+4},[`.${nn.hasPopupIcon}.${nn.hasClearIcon}&`]:{paddingRight:52+4},[`& .${nn.input}`]:{width:0,minWidth:30}},[`& .${Vl.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Vl.root}.${di.sizeSmall}`]:{[`& .${Vl.input}`]:{padding:"2px 4px 3px 0"}},[`& .${Ua.root}`]:{padding:9,[`.${nn.hasPopupIcon}&, .${nn.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${nn.hasPopupIcon}.${nn.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${nn.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${nn.endAdornment}`]:{right:9}},[`& .${Ua.root}.${di.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${nn.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${fi.root}`]:{paddingTop:19,paddingLeft:8,[`.${nn.hasPopupIcon}&, .${nn.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${nn.hasPopupIcon}.${nn.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${fi.input}`]:{padding:"7px 4px"},[`& .${nn.endAdornment}`]:{right:9}},[`& .${fi.root}.${di.sizeSmall}`]:{paddingBottom:1,[`& .${fi.input}`]:{padding:"2.5px 4px"}},[`& .${di.hiddenLabel}`]:{paddingTop:8},[`& .${fi.root}.${di.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${nn.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${fi.root}.${di.hiddenLabel}.${di.sizeSmall}`]:{[`& .${nn.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${nn.input}`]:P({flexGrow:1,textOverflow:"ellipsis",opacity:0},e.inputFocused&&{opacity:1})})),afe=ke("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),sfe=ke(Rr,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),lfe=ke(Rr,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>P({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})(({ownerState:e})=>P({padding:2,marginRight:-2},e.popupOpen&&{transform:"rotate(180deg)"})),ufe=ke(ud,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${nn.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(({theme:e,ownerState:t})=>P({zIndex:(e.vars||e).zIndex.modal},t.disablePortal&&{position:"absolute"})),cfe=ke(ld,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>P({},e.typography.body1,{overflow:"auto"})),dfe=ke("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),ffe=ke("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),pfe=ke("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${nn.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${nn.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${nn.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Rt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${nn.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Rt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${nn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Rt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),hfe=ke(Ede,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),mfe=ke("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${nn.option}`]:{paddingLeft:24}}),gfe=g.forwardRef(function(t,n){var r,o,i,a;const s=$t({props:t,name:"MuiAutocomplete"}),{autoComplete:l=!1,autoHighlight:u=!1,autoSelect:c=!1,blurOnSelect:f=!1,ChipProps:p,className:y,clearIcon:v=FO||(FO=m.jsx(xue,{fontSize:"small"})),clearOnBlur:b=!s.freeSolo,clearOnEscape:C=!1,clearText:x="Clear",closeText:w="Close",componentsProps:S={},defaultValue:$=s.multiple?[]:null,disableClearable:T=!1,disableCloseOnSelect:k=!1,disabled:M=!1,disabledItemsFocusable:E=!1,disableListWrap:N=!1,disablePortal:I=!1,filterSelectedOptions:A=!1,forcePopupIcon:z="auto",freeSolo:L=!1,fullWidth:O=!1,getLimitTagsText:j=Fe=>`+${Fe}`,getOptionLabel:H,groupBy:B,handleHomeEndKeys:D=!s.freeSolo,includeInputInList:W=!1,limitTags:U=-1,ListboxComponent:Z="ul",ListboxProps:Y,loading:se=!1,loadingText:Q="Loading…",multiple:ne=!1,noOptionsText:re="No options",openOnFocus:ge=!1,openText:xe="Open",PaperComponent:fe=ld,PopperComponent:Se=ud,popupIcon:de=LO||(LO=m.jsx(fN,{})),readOnly:ie=!1,renderGroup:Pe,renderInput:$e,renderOption:me,renderTags:ue,selectOnFocus:ce=!s.freeSolo,size:Te="medium",slotProps:Le={}}=s,Re=be(s,nfe),{getRootProps:Oe,getInputProps:K,getInputLabelProps:ee,getPopupIndicatorProps:pe,getClearProps:ye,getTagProps:je,getListboxProps:Ae,getOptionProps:Ie,value:Ce,dirty:Ze,expanded:Ct,id:et,popupOpen:Be,focused:te,focusedTag:X,anchorEl:oe,setAnchorEl:Ee,inputValue:Ue,groupedOptions:Ye}=Sde(P({},s,{componentName:"Autocomplete"})),at=!T&&!M&&Ze&&!ie,Je=(!L||z===!0)&&z!==!1,{onMouseDown:nt}=K(),{ref:_t}=Y??{},ht=Ae(),{ref:lt}=ht,Ot=be(ht,rfe),Dt=rn(lt,_t),hn=H||(Fe=>{var rt;return(rt=Fe.label)!=null?rt:Fe}),Pt=P({},s,{disablePortal:I,expanded:Ct,focused:te,fullWidth:O,getOptionLabel:hn,hasClearIcon:at,hasPopupIcon:Je,inputFocused:X===-1,popupOpen:Be,size:Te}),zt=ofe(Pt);let un;if(ne&&Ce.length>0){const Fe=rt=>P({className:zt.tag,disabled:M},je(rt));ue?un=ue(Ce,Fe,Pt):un=Ce.map((rt,Tt)=>m.jsx(cN,P({label:hn(rt),size:Te},Fe({index:Tt}),p)))}if(U>-1&&Array.isArray(un)){const Fe=un.length-U;!te&&Fe>0&&(un=un.splice(0,U),un.push(m.jsx("span",{className:zt.tag,children:j(Fe)},un.length)))}const ut=Pe||(Fe=>m.jsxs("li",{children:[m.jsx(hfe,{className:zt.groupLabel,ownerState:Pt,component:"div",children:Fe.group}),m.jsx(mfe,{className:zt.groupUl,ownerState:Pt,children:Fe.children})]},Fe.key)),At=me||((Fe,rt)=>m.jsx("li",P({},Fe,{children:hn(rt)}))),Ft=(Fe,rt)=>{const Tt=Ie({option:Fe,index:rt});return At(P({},Tt,{className:zt.option}),Fe,{selected:Tt["aria-selected"],index:rt,inputValue:Ue},Pt)},tt=(r=Le.clearIndicator)!=null?r:S.clearIndicator,Gt=(o=Le.paper)!=null?o:S.paper,_e=(i=Le.popper)!=null?i:S.popper,we=(a=Le.popupIndicator)!=null?a:S.popupIndicator;return m.jsxs(g.Fragment,{children:[m.jsx(ife,P({ref:n,className:Ne(zt.root,y),ownerState:Pt},Oe(Re),{children:$e({id:et,disabled:M,fullWidth:!0,size:Te==="small"?"small":void 0,InputLabelProps:ee(),InputProps:P({ref:Ee,className:zt.inputRoot,startAdornment:un,onClick:Fe=>{Fe.target===Fe.currentTarget&&nt(Fe)}},(at||Je)&&{endAdornment:m.jsxs(afe,{className:zt.endAdornment,ownerState:Pt,children:[at?m.jsx(sfe,P({},ye(),{"aria-label":x,title:x,ownerState:Pt},tt,{className:Ne(zt.clearIndicator,tt==null?void 0:tt.className),children:v})):null,Je?m.jsx(lfe,P({},pe(),{disabled:M,"aria-label":Be?w:xe,title:Be?w:xe,ownerState:Pt},we,{className:Ne(zt.popupIndicator,we==null?void 0:we.className),children:de})):null]})}),inputProps:P({className:zt.input,disabled:M,readOnly:ie},K())})})),oe?m.jsx(ufe,P({as:Se,disablePortal:I,style:{width:oe?oe.clientWidth:null},ownerState:Pt,role:"presentation",anchorEl:oe,open:Be},_e,{className:Ne(zt.popper,_e==null?void 0:_e.className),children:m.jsxs(cfe,P({ownerState:Pt,as:fe},Gt,{className:Ne(zt.paper,Gt==null?void 0:Gt.className),children:[se&&Ye.length===0?m.jsx(dfe,{className:zt.loading,ownerState:Pt,children:Q}):null,Ye.length===0&&!L&&!se?m.jsx(ffe,{className:zt.noOptions,ownerState:Pt,role:"presentation",onMouseDown:Fe=>{Fe.preventDefault()},children:re}):null,Ye.length>0?m.jsx(pfe,P({as:Z,className:zt.listbox,ownerState:Pt},Ot,Y,{ref:Dt,children:Ye.map((Fe,rt)=>B?ut({key:Fe.key,group:Fe.group,children:Fe.options.map((Tt,en)=>Ft(Tt,Fe.index+en))}):Ft(Fe,rt))})):null]}))})):null]})}),pN=gfe,vfe=xt(m.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function yfe(e){return vt("MuiAvatar",e)}yt("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const bfe=["alt","children","className","component","imgProps","sizes","src","srcSet","variant"],xfe=e=>{const{classes:t,variant:n,colorDefault:r}=e;return Ke({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},yfe,t)},wfe=ke("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(({theme:e,ownerState:t})=>P({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none"},t.variant==="rounded"&&{borderRadius:(e.vars||e).shape.borderRadius},t.variant==="square"&&{borderRadius:0},t.colorDefault&&P({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[600]}))),Cfe=ke("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),Sfe=ke(vfe,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function $fe({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[o,i]=g.useState(!1);return g.useEffect(()=>{if(!n&&!r)return;i(!1);let a=!0;const s=new Image;return s.onload=()=>{a&&i("loaded")},s.onerror=()=>{a&&i("error")},s.crossOrigin=e,s.referrerPolicy=t,s.src=n,r&&(s.srcset=r),()=>{a=!1}},[e,t,n,r]),o}const _fe=g.forwardRef(function(t,n){const r=$t({props:t,name:"MuiAvatar"}),{alt:o,children:i,className:a,component:s="div",imgProps:l,sizes:u,src:c,srcSet:f,variant:p="circular"}=r,y=be(r,bfe);let v=null;const b=$fe(P({},l,{src:c,srcSet:f})),C=c||f,x=C&&b!=="error",w=P({},r,{colorDefault:!x,component:s,variant:p}),S=xfe(w);return x?v=m.jsx(Cfe,P({alt:o,srcSet:f,src:c,sizes:u,ownerState:w,className:S.img},l)):i!=null?v=i:C&&o?v=o[0]:v=m.jsx(Sfe,{ownerState:w,className:S.fallback}),m.jsx(wfe,P({as:s,ownerState:w,className:Ne(S.root,a),ref:n},y,{children:v}))}),dg=_fe,kfe=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Pfe={entering:{opacity:1},entered:{opacity:1}},Mfe=g.forwardRef(function(t,n){const r=Wt(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:s,easing:l,in:u,onEnter:c,onEntered:f,onEntering:p,onExit:y,onExited:v,onExiting:b,style:C,timeout:x=o,TransitionComponent:w=GD}=t,S=be(t,kfe),$=g.useRef(null),T=rn($,s.ref,n),k=O=>j=>{if(O){const H=$.current;j===void 0?O(H):O(H,j)}},M=k(p),E=k((O,j)=>{qD(O);const H=ky({style:C,timeout:x,easing:l},{mode:"enter"});O.style.webkitTransition=r.transitions.create("opacity",H),O.style.transition=r.transitions.create("opacity",H),c&&c(O,j)}),N=k(f),I=k(b),A=k(O=>{const j=ky({style:C,timeout:x,easing:l},{mode:"exit"});O.style.webkitTransition=r.transitions.create("opacity",j),O.style.transition=r.transitions.create("opacity",j),y&&y(O)}),z=k(v),L=O=>{i&&i($.current,O)};return m.jsx(w,P({appear:a,in:u,nodeRef:$,onEnter:E,onEntered:N,onEntering:M,onExit:A,onExited:z,onExiting:I,addEndListener:L,timeout:x},S,{children:(O,j)=>g.cloneElement(s,P({style:P({opacity:0,visibility:O==="exited"&&!u?"hidden":void 0},Pfe[O],C,s.props.style),ref:T},j))}))}),Tfe=Mfe;function Ife(e){return vt("MuiBackdrop",e)}yt("MuiBackdrop",["root","invisible"]);const Efe=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Rfe=e=>{const{classes:t,invisible:n}=e;return Ke({root:["root",n&&"invisible"]},Ife,t)},Ofe=ke("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>P({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"})),Afe=g.forwardRef(function(t,n){var r,o,i;const a=$t({props:t,name:"MuiBackdrop"}),{children:s,className:l,component:u="div",components:c={},componentsProps:f={},invisible:p=!1,open:y,slotProps:v={},slots:b={},TransitionComponent:C=Tfe,transitionDuration:x}=a,w=be(a,Efe),S=P({},a,{component:u,invisible:p}),$=Rfe(S),T=(r=v.root)!=null?r:f.root;return m.jsx(C,P({in:y,timeout:x},w,{children:m.jsx(Ofe,P({"aria-hidden":!0},T,{as:(o=(i=b.root)!=null?i:c.Root)!=null?o:u,className:Ne($.root,l,T==null?void 0:T.className),ownerState:P({},S,T==null?void 0:T.ownerState),classes:$,ref:n,children:s}))}))}),Ffe=Afe;function Lfe(e){return vt("MuiBadge",e)}const jfe=yt("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),Il=jfe,Dfe=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],SS=10,$S=4,Nfe=e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:i,classes:a={}}=e,s={root:["root"],badge:["badge",i,r&&"invisible",`anchorOrigin${De(n.vertical)}${De(n.horizontal)}`,`anchorOrigin${De(n.vertical)}${De(n.horizontal)}${De(o)}`,`overlap${De(o)}`,t!=="default"&&`color${De(t)}`]};return Ke(s,Lfe,a)},zfe=ke("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),Bfe=ke("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${De(n.anchorOrigin.vertical)}${De(n.anchorOrigin.horizontal)}${De(n.overlap)}`],n.color!=="default"&&t[`color${De(n.color)}`],n.invisible&&t.invisible]}})(({theme:e,ownerState:t})=>P({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:SS*2,lineHeight:1,padding:"0 6px",height:SS*2,borderRadius:SS,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen})},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.variant==="dot"&&{borderRadius:$S,height:$S*2,minWidth:$S*2,padding:0},t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular"&&{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Il.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}},t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular"&&{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Il.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}},t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular"&&{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Il.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}},t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular"&&{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Il.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular"&&{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Il.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}},t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular"&&{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Il.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}},t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular"&&{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Il.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}},t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular"&&{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Il.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},t.invisible&&{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})})),Hfe=g.forwardRef(function(t,n){var r,o,i,a,s,l;const u=$t({props:t,name:"MuiBadge"}),{anchorOrigin:c={vertical:"top",horizontal:"right"},className:f,component:p,components:y={},componentsProps:v={},children:b,overlap:C="rectangular",color:x="default",invisible:w=!1,max:S=99,badgeContent:$,slots:T,slotProps:k,showZero:M=!1,variant:E="standard"}=u,N=be(u,Dfe),{badgeContent:I,invisible:A,max:z,displayValue:L}=zue({max:S,invisible:w,badgeContent:$,showZero:M}),O=dM({anchorOrigin:c,color:x,overlap:C,variant:E,badgeContent:$}),j=A||I==null&&E!=="dot",{color:H=x,overlap:B=C,anchorOrigin:D=c,variant:W=E}=j?O:u,U=W!=="dot"?L:void 0,Z=P({},u,{badgeContent:I,invisible:j,max:z,displayValue:U,showZero:M,anchorOrigin:D,color:H,overlap:B,variant:W}),Y=Nfe(Z),se=(r=(o=T==null?void 0:T.root)!=null?o:y.Root)!=null?r:zfe,Q=(i=(a=T==null?void 0:T.badge)!=null?a:y.Badge)!=null?i:Bfe,ne=(s=k==null?void 0:k.root)!=null?s:v.root,re=(l=k==null?void 0:k.badge)!=null?l:v.badge,ge=Si({elementType:se,externalSlotProps:ne,externalForwardedProps:N,additionalProps:{ref:n,as:p},ownerState:Z,className:Ne(ne==null?void 0:ne.className,Y.root,f)}),xe=Si({elementType:Q,externalSlotProps:re,ownerState:Z,className:Ne(Y.badge,re==null?void 0:re.className)});return m.jsxs(se,P({},ge,{children:[b,m.jsx(Q,P({},xe,{children:U}))]}))}),fl=Hfe,Wfe=PM(),Vfe=zD({themeId:o0,defaultTheme:Wfe,defaultClassName:"MuiBox-root",generateClassName:pM.generate}),Ve=Vfe;function Ufe(e){return vt("MuiButton",e)}const Gfe=yt("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","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),Hv=Gfe,qfe=g.createContext({}),Kfe=qfe,Yfe=g.createContext(void 0),Xfe=Yfe,Qfe=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Zfe=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e,s={root:["root",i,`${i}${De(t)}`,`size${De(o)}`,`${i}Size${De(o)}`,t==="inherit"&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${De(o)}`],endIcon:["endIcon",`iconSize${De(o)}`]},l=Ke(s,Ufe,a);return P({},a,l)},hN=e=>P({},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}}),Jfe=ke(cl,{shouldForwardProp:e=>ca(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${De(n.color)}`],t[`size${De(n.size)}`],t[`${n.variant}Size${De(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 P({},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":P({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Rt(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})`:Rt(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})`:Rt(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":P({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Hv.focusVisible}`]:P({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Hv.disabled}`]:P({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 ${Rt(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"},[`&.${Hv.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Hv.disabled}`]:{boxShadow:"none"}}),epe=ke("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${De(n.size)}`]]}})(({ownerState:e})=>P({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},hN(e))),tpe=ke("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${De(n.size)}`]]}})(({ownerState:e})=>P({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},hN(e))),npe=g.forwardRef(function(t,n){const r=g.useContext(Kfe),o=g.useContext(Xfe),i=fM(r,t),a=$t({props:i,name:"MuiButton"}),{children:s,color:l="primary",component:u="button",className:c,disabled:f=!1,disableElevation:p=!1,disableFocusRipple:y=!1,endIcon:v,focusVisibleClassName:b,fullWidth:C=!1,size:x="medium",startIcon:w,type:S,variant:$="text"}=a,T=be(a,Qfe),k=P({},a,{color:l,component:u,disabled:f,disableElevation:p,disableFocusRipple:y,fullWidth:C,size:x,type:S,variant:$}),M=Zfe(k),E=w&&m.jsx(epe,{className:M.startIcon,ownerState:k,children:w}),N=v&&m.jsx(tpe,{className:M.endIcon,ownerState:k,children:v}),I=o||"";return m.jsxs(Jfe,P({ownerState:k,className:Ne(r.className,M.root,c,I),component:u,disabled:f,focusRipple:!y,focusVisibleClassName:Ne(M.focusVisible,b),ref:n,type:S},T,{classes:M,children:[E,s,N]}))}),Oa=npe;function rpe(e){return vt("MuiCard",e)}yt("MuiCard",["root"]);const ope=["className","raised"],ipe=e=>{const{classes:t}=e;return Ke({root:["root"]},rpe,t)},ape=ke(ld,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),spe=g.forwardRef(function(t,n){const r=$t({props:t,name:"MuiCard"}),{className:o,raised:i=!1}=r,a=be(r,ope),s=P({},r,{raised:i}),l=ipe(s);return m.jsx(ape,P({className:Ne(l.root,o),elevation:i?8:void 0,ref:n,ownerState:s},a))}),lpe=spe;function upe(e){return vt("MuiCardContent",e)}yt("MuiCardContent",["root"]);const cpe=["className","component"],dpe=e=>{const{classes:t}=e;return Ke({root:["root"]},upe,t)},fpe=ke("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),ppe=g.forwardRef(function(t,n){const r=$t({props:t,name:"MuiCardContent"}),{className:o,component:i="div"}=r,a=be(r,cpe),s=P({},r,{component:i}),l=dpe(s);return m.jsx(fpe,P({as:i,className:Ne(l.root,o),ownerState:s,ref:n},a))}),Mi=ppe;function hpe(e){return vt("MuiCardHeader",e)}const mpe=yt("MuiCardHeader",["root","avatar","action","content","title","subheader"]),jO=mpe,gpe=["action","avatar","className","component","disableTypography","subheader","subheaderTypographyProps","title","titleTypographyProps"],vpe=e=>{const{classes:t}=e;return Ke({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},hpe,t)},ype=ke("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(e,t)=>P({[`& .${jO.title}`]:t.title,[`& .${jO.subheader}`]:t.subheader},t.root)})({display:"flex",alignItems:"center",padding:16}),bpe=ke("div",{name:"MuiCardHeader",slot:"Avatar",overridesResolver:(e,t)=>t.avatar})({display:"flex",flex:"0 0 auto",marginRight:16}),xpe=ke("div",{name:"MuiCardHeader",slot:"Action",overridesResolver:(e,t)=>t.action})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),wpe=ke("div",{name:"MuiCardHeader",slot:"Content",overridesResolver:(e,t)=>t.content})({flex:"1 1 auto"}),Cpe=g.forwardRef(function(t,n){const r=$t({props:t,name:"MuiCardHeader"}),{action:o,avatar:i,className:a,component:s="div",disableTypography:l=!1,subheader:u,subheaderTypographyProps:c,title:f,titleTypographyProps:p}=r,y=be(r,gpe),v=P({},r,{component:s,disableTypography:l}),b=vpe(v);let C=f;C!=null&&C.type!==Ge&&!l&&(C=m.jsx(Ge,P({variant:i?"body2":"h5",className:b.title,component:"span",display:"block"},p,{children:C})));let x=u;return x!=null&&x.type!==Ge&&!l&&(x=m.jsx(Ge,P({variant:i?"body2":"body1",className:b.subheader,color:"text.secondary",component:"span",display:"block"},c,{children:x}))),m.jsxs(ype,P({className:Ne(b.root,a),as:s,ref:n,ownerState:v},y,{children:[i&&m.jsx(bpe,{className:b.avatar,ownerState:v,children:i}),m.jsxs(wpe,{className:b.content,ownerState:v,children:[C,x]}),o&&m.jsx(xpe,{className:b.action,ownerState:v,children:o})]}))}),Spe=Cpe;function $pe(e){return vt("PrivateSwitchBase",e)}yt("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const _pe=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],kpe=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,i={root:["root",n&&"checked",r&&"disabled",o&&`edge${De(o)}`],input:["input"]};return Ke(i,$pe,t)},Ppe=ke(cl)(({ownerState:e})=>P({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),Mpe=ke("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Tpe=g.forwardRef(function(t,n){const{autoFocus:r,checked:o,checkedIcon:i,className:a,defaultChecked:s,disabled:l,disableFocusRipple:u=!1,edge:c=!1,icon:f,id:p,inputProps:y,inputRef:v,name:b,onBlur:C,onChange:x,onFocus:w,readOnly:S,required:$=!1,tabIndex:T,type:k,value:M}=t,E=be(t,_pe),[N,I]=su({controlled:o,default:!!s,name:"SwitchBase",state:"checked"}),A=Cs(),z=W=>{w&&w(W),A&&A.onFocus&&A.onFocus(W)},L=W=>{C&&C(W),A&&A.onBlur&&A.onBlur(W)},O=W=>{if(W.nativeEvent.defaultPrevented)return;const U=W.target.checked;I(U),x&&x(W,U)};let j=l;A&&typeof j>"u"&&(j=A.disabled);const H=k==="checkbox"||k==="radio",B=P({},t,{checked:N,disabled:j,disableFocusRipple:u,edge:c}),D=kpe(B);return m.jsxs(Ppe,P({component:"span",className:Ne(D.root,a),centerRipple:!0,focusRipple:!u,disabled:j,tabIndex:null,role:void 0,onFocus:z,onBlur:L,ownerState:B,ref:n},E,{children:[m.jsx(Mpe,P({autoFocus:r,checked:o,defaultChecked:s,className:D.input,disabled:j,id:H?p:void 0,name:b,onChange:O,readOnly:S,ref:v,required:$,ownerState:B,tabIndex:T,type:k},k==="checkbox"&&M===void 0?{}:{value:M},y)),N?i:f]}))}),mN=Tpe,Ipe=xt(m.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"),Epe=xt(m.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"),Rpe=xt(m.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 Ope(e){return vt("MuiCheckbox",e)}const Ape=yt("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),_S=Ape,Fpe=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],Lpe=e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,i={root:["root",n&&"indeterminate",`color${De(r)}`,`size${De(o)}`]},a=Ke(i,Ope,t);return P({},t,a)},jpe=ke(mN,{shouldForwardProp:e=>ca(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,n.color!=="default"&&t[`color${De(n.color)}`]]}})(({theme:e,ownerState:t})=>P({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})`:Rt(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${_S.checked}, &.${_S.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${_S.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),Dpe=m.jsx(Epe,{}),Npe=m.jsx(Ipe,{}),zpe=m.jsx(Rpe,{}),Bpe=g.forwardRef(function(t,n){var r,o;const i=$t({props:t,name:"MuiCheckbox"}),{checkedIcon:a=Dpe,color:s="primary",icon:l=Npe,indeterminate:u=!1,indeterminateIcon:c=zpe,inputProps:f,size:p="medium",className:y}=i,v=be(i,Fpe),b=u?c:l,C=u?c:a,x=P({},i,{color:s,indeterminate:u,size:p}),w=Lpe(x);return m.jsx(jpe,P({type:"checkbox",inputProps:P({"data-indeterminate":u},f),icon:g.cloneElement(b,{fontSize:(r=b.props.fontSize)!=null?r:p}),checkedIcon:g.cloneElement(C,{fontSize:(o=C.props.fontSize)!=null?o:p}),ownerState:x,ref:n,className:Ne(w.root,y)},v,{classes:w}))}),F_=Bpe;function Hpe(e){return vt("MuiCircularProgress",e)}yt("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Wpe=["className","color","disableShrink","size","style","thickness","value","variant"];let Hx=e=>e,DO,NO,zO,BO;const El=44,Vpe=sd(DO||(DO=Hx` + 0% { + transform: rotate(0deg); + } + + 100% { + transform: rotate(360deg); + } +`)),Upe=sd(NO||(NO=Hx` + 0% { + stroke-dasharray: 1px, 200px; + stroke-dashoffset: 0; + } + + 50% { + stroke-dasharray: 100px, 200px; + stroke-dashoffset: -15px; + } + + 100% { + stroke-dasharray: 100px, 200px; + stroke-dashoffset: -125px; + } +`)),Gpe=e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,i={root:["root",n,`color${De(r)}`],svg:["svg"],circle:["circle",`circle${De(n)}`,o&&"circleDisableShrink"]};return Ke(i,Hpe,t)},qpe=ke("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${De(n.color)}`]]}})(({ownerState:e,theme:t})=>P({display:"inline-block"},e.variant==="determinate"&&{transition:t.transitions.create("transform")},e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&ag(zO||(zO=Hx` + animation: ${0} 1.4s linear infinite; + `),Vpe)),Kpe=ke("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),Ype=ke("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${De(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>P({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&ag(BO||(BO=Hx` + animation: ${0} 1.4s ease-in-out infinite; + `),Upe)),Xpe=g.forwardRef(function(t,n){const r=$t({props:t,name:"MuiCircularProgress"}),{className:o,color:i="primary",disableShrink:a=!1,size:s=40,style:l,thickness:u=3.6,value:c=0,variant:f="indeterminate"}=r,p=be(r,Wpe),y=P({},r,{color:i,disableShrink:a,size:s,thickness:u,value:c,variant:f}),v=Gpe(y),b={},C={},x={};if(f==="determinate"){const w=2*Math.PI*((El-u)/2);b.strokeDasharray=w.toFixed(3),x["aria-valuenow"]=Math.round(c),b.strokeDashoffset=`${((100-c)/100*w).toFixed(3)}px`,C.transform="rotate(-90deg)"}return m.jsx(qpe,P({className:Ne(v.root,o),style:P({width:s,height:s},C,l),ownerState:y,ref:n,role:"progressbar"},x,p,{children:m.jsx(Kpe,{className:v.svg,ownerState:y,viewBox:`${El/2} ${El/2} ${El} ${El}`,children:m.jsx(Ype,{className:v.circle,style:b,ownerState:y,cx:El,cy:El,r:(El-u)/2,fill:"none",strokeWidth:u})})}))}),Qpe=Xpe,Zpe=(e,t)=>P({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),Jpe=e=>P({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}}),ehe=(e,t=!1)=>{var n;const r={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([a,s])=>{var l;r[e.getColorSchemeSelector(a).replace(/\s*&/,"")]={colorScheme:(l=s.palette)==null?void 0:l.mode}});let o=P({html:Zpe(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:P({margin:0},Jpe(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 the(e){const t=$t({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return m.jsxs(g.Fragment,{children:[m.jsx(dN,{styles:o=>ehe(o,r)}),n]})}function nhe(e){return vt("MuiModal",e)}yt("MuiModal",["root","hidden","backdrop"]);const rhe=["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"],ohe=e=>{const{open:t,exited:n,classes:r}=e;return Ke({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},nhe,r)},ihe=ke("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})=>P({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),ahe=ke(Ffe,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),she=g.forwardRef(function(t,n){var r,o,i,a,s,l;const u=$t({name:"MuiModal",props:t}),{BackdropComponent:c=ahe,BackdropProps:f,className:p,closeAfterTransition:y=!1,children:v,container:b,component:C,components:x={},componentsProps:w={},disableAutoFocus:S=!1,disableEnforceFocus:$=!1,disableEscapeKeyDown:T=!1,disablePortal:k=!1,disableRestoreFocus:M=!1,disableScrollLock:E=!1,hideBackdrop:N=!1,keepMounted:I=!1,onBackdropClick:A,open:z,slotProps:L,slots:O}=u,j=be(u,rhe),H=P({},u,{closeAfterTransition:y,disableAutoFocus:S,disableEnforceFocus:$,disableEscapeKeyDown:T,disablePortal:k,disableRestoreFocus:M,disableScrollLock:E,hideBackdrop:N,keepMounted:I}),{getRootProps:B,getBackdropProps:D,getTransitionProps:W,portalRef:U,isTopModal:Z,exited:Y,hasTransition:se}=vde(P({},H,{rootRef:n})),Q=P({},H,{exited:Y}),ne=ohe(Q),re={};if(v.props.tabIndex===void 0&&(re.tabIndex="-1"),se){const{onEnter:Pe,onExited:$e}=W();re.onEnter=Pe,re.onExited=$e}const ge=(r=(o=O==null?void 0:O.root)!=null?o:x.Root)!=null?r:ihe,xe=(i=(a=O==null?void 0:O.backdrop)!=null?a:x.Backdrop)!=null?i:c,fe=(s=L==null?void 0:L.root)!=null?s:w.root,Se=(l=L==null?void 0:L.backdrop)!=null?l:w.backdrop,de=Si({elementType:ge,externalSlotProps:fe,externalForwardedProps:j,getSlotProps:B,additionalProps:{ref:n,as:C},ownerState:Q,className:Ne(p,fe==null?void 0:fe.className,ne==null?void 0:ne.root,!Q.open&&Q.exited&&(ne==null?void 0:ne.hidden))}),ie=Si({elementType:xe,externalSlotProps:Se,additionalProps:f,getSlotProps:Pe=>D(P({},Pe,{onClick:$e=>{A&&A($e),Pe!=null&&Pe.onClick&&Pe.onClick($e)}})),className:Ne(Se==null?void 0:Se.className,f==null?void 0:f.className,ne==null?void 0:ne.backdrop),ownerState:Q});return!I&&!z&&(!se||Y)?null:m.jsx(sN,{ref:U,container:b,disablePortal:k,children:m.jsxs(ge,P({},de,{children:[!N&&c?m.jsx(xe,P({},ie)):null,m.jsx(XD,{disableEnforceFocus:$,disableAutoFocus:S,disableRestoreFocus:M,isEnabled:Z,open:z,children:g.cloneElement(v,re)})]}))})}),gN=she;function lhe(e){return vt("MuiDivider",e)}const uhe=yt("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),HO=uhe,che=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],dhe=e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:s,variant:l}=e;return Ke({root:["root",t&&"absolute",l,i&&"light",a==="vertical"&&"vertical",o&&"flexItem",n&&"withChildren",n&&a==="vertical"&&"withChildrenVertical",s==="right"&&a!=="vertical"&&"textAlignRight",s==="left"&&a!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",a==="vertical"&&"wrapperVertical"]},lhe,r)},fhe=ke("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})=>P({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)`:Rt(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})=>P({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>P({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>P({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>P({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),phe=ke("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>P({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)`})),vN=g.forwardRef(function(t,n){const r=$t({props:t,name:"MuiDivider"}),{absolute:o=!1,children:i,className:a,component:s=i?"div":"hr",flexItem:l=!1,light:u=!1,orientation:c="horizontal",role:f=s!=="hr"?"separator":void 0,textAlign:p="center",variant:y="fullWidth"}=r,v=be(r,che),b=P({},r,{absolute:o,component:s,flexItem:l,light:u,orientation:c,role:f,textAlign:p,variant:y}),C=dhe(b);return m.jsx(fhe,P({as:s,className:Ne(C.root,a),role:f,ref:n,ownerState:b},v,{children:i?m.jsx(phe,{className:C.wrapper,ownerState:b,children:i}):null}))});vN.muiSkipListHighlight=!0;const Hc=vN,hhe=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],mhe=e=>{const{classes:t,disableUnderline:n}=e,o=Ke({root:["root",!n&&"underline"],input:["input"]},Zde,t);return P({},t,o)},ghe=ke(zx,{shouldForwardProp:e=>ca(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Dx(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)",a=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return P({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:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${fi.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${fi.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!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"},[`&.${fi.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${fi.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(.${fi.disabled}, .${fi.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${fi.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&P({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17}))}),vhe=ke(Bx,{name:"MuiFilledInput",slot:"Input",overridesResolver:Nx})(({theme:e,ownerState:t})=>P({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.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9})),yN=g.forwardRef(function(t,n){var r,o,i,a;const s=$t({props:t,name:"MuiFilledInput"}),{components:l={},componentsProps:u,fullWidth:c=!1,inputComponent:f="input",multiline:p=!1,slotProps:y,slots:v={},type:b="text"}=s,C=be(s,hhe),x=P({},s,{fullWidth:c,inputComponent:f,multiline:p,type:b}),w=mhe(s),S={root:{ownerState:x},input:{ownerState:x}},$=y??u?ho(y??u,S):S,T=(r=(o=v.root)!=null?o:l.Root)!=null?r:ghe,k=(i=(a=v.input)!=null?a:l.Input)!=null?i:vhe;return m.jsx(cd,P({slots:{root:T,input:k},componentsProps:$,fullWidth:c,inputComponent:f,multiline:p,ref:n,type:b},C,{classes:w}))});yN.muiName="Input";const bN=yN;function yhe(e){return vt("MuiFormControl",e)}yt("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const bhe=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],xhe=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${De(n)}`,r&&"fullWidth"]};return Ke(o,yhe,t)},whe=ke("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>P({},t.root,t[`margin${De(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>P({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%"})),Che=g.forwardRef(function(t,n){const r=$t({props:t,name:"MuiFormControl"}),{children:o,className:i,color:a="primary",component:s="div",disabled:l=!1,error:u=!1,focused:c,fullWidth:f=!1,hiddenLabel:p=!1,margin:y="none",required:v=!1,size:b="medium",variant:C="outlined"}=r,x=be(r,bhe),w=P({},r,{color:a,component:s,disabled:l,error:u,fullWidth:f,hiddenLabel:p,margin:y,required:v,size:b,variant:C}),S=xhe(w),[$,T]=g.useState(()=>{let L=!1;return o&&g.Children.forEach(o,O=>{if(!_1(O,["Input","Select"]))return;const j=_1(O,["Select"])?O.props.input:O;j&&Bde(j.props)&&(L=!0)}),L}),[k,M]=g.useState(()=>{let L=!1;return o&&g.Children.forEach(o,O=>{_1(O,["Input","Select"])&&(My(O.props,!0)||My(O.props.inputProps,!0))&&(L=!0)}),L}),[E,N]=g.useState(!1);l&&E&&N(!1);const I=c!==void 0&&!l?c:E;let A;const z=g.useMemo(()=>({adornedStart:$,setAdornedStart:T,color:a,disabled:l,error:u,filled:k,focused:I,fullWidth:f,hiddenLabel:p,size:b,onBlur:()=>{N(!1)},onEmpty:()=>{M(!1)},onFilled:()=>{M(!0)},onFocus:()=>{N(!0)},registerEffect:A,required:v,variant:C}),[$,a,l,u,k,I,f,p,A,v,b,C]);return m.jsx(jx.Provider,{value:z,children:m.jsx(whe,P({as:s,ownerState:w,className:Ne(S.root,i),ref:n},x,{children:o}))})}),xN=Che,She=Bse({createStyledComponent:ke("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>$t({props:e,name:"MuiStack"})}),wN=She;function $he(e){return vt("MuiFormControlLabel",e)}const _he=yt("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),cm=_he,khe=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],Phe=e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:i}=e,a={root:["root",n&&"disabled",`labelPlacement${De(r)}`,o&&"error",i&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return Ke(a,$he,t)},Mhe=ke("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${cm.label}`]:t.label},t.root,t[`labelPlacement${De(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>P({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${cm.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},{[`& .${cm.label}`]:{[`&.${cm.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),The=ke("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${cm.error}`]:{color:(e.vars||e).palette.error.main}})),Ihe=g.forwardRef(function(t,n){var r,o;const i=$t({props:t,name:"MuiFormControlLabel"}),{className:a,componentsProps:s={},control:l,disabled:u,disableTypography:c,label:f,labelPlacement:p="end",required:y,slotProps:v={}}=i,b=be(i,khe),C=Cs(),x=(r=u??l.props.disabled)!=null?r:C==null?void 0:C.disabled,w=y??l.props.required,S={disabled:x,required:w};["checked","name","onChange","value","inputRef"].forEach(N=>{typeof l.props[N]>"u"&&typeof i[N]<"u"&&(S[N]=i[N])});const $=Pu({props:i,muiFormControl:C,states:["error"]}),T=P({},i,{disabled:x,labelPlacement:p,required:w,error:$.error}),k=Phe(T),M=(o=v.typography)!=null?o:s.typography;let E=f;return E!=null&&E.type!==Ge&&!c&&(E=m.jsx(Ge,P({component:"span"},M,{className:Ne(k.label,M==null?void 0:M.className),children:E}))),m.jsxs(Mhe,P({className:Ne(k.root,a),ownerState:T,ref:n},b,{children:[g.cloneElement(l,S),w?m.jsxs(wN,{direction:"row",alignItems:"center",children:[E,m.jsxs(The,{ownerState:T,"aria-hidden":!0,className:k.asterisk,children:[" ","*"]})]}):E]}))}),L_=Ihe;function Ehe(e){return vt("MuiFormGroup",e)}yt("MuiFormGroup",["root","row","error"]);const Rhe=["className","row"],Ohe=e=>{const{classes:t,row:n,error:r}=e;return Ke({root:["root",n&&"row",r&&"error"]},Ehe,t)},Ahe=ke("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})(({ownerState:e})=>P({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),Fhe=g.forwardRef(function(t,n){const r=$t({props:t,name:"MuiFormGroup"}),{className:o,row:i=!1}=r,a=be(r,Rhe),s=Cs(),l=Pu({props:r,muiFormControl:s,states:["error"]}),u=P({},r,{row:i,error:l.error}),c=Ohe(u);return m.jsx(Ahe,P({className:Ne(c.root,o),ownerState:u,ref:n},a))}),Lhe=Fhe;function jhe(e){return vt("MuiFormHelperText",e)}const Dhe=yt("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),WO=Dhe;var VO;const Nhe=["children","className","component","disabled","error","filled","focused","margin","required","variant"],zhe=e=>{const{classes:t,contained:n,size:r,disabled:o,error:i,filled:a,focused:s,required:l}=e,u={root:["root",o&&"disabled",i&&"error",r&&`size${De(r)}`,n&&"contained",s&&"focused",a&&"filled",l&&"required"]};return Ke(u,jhe,t)},Bhe=ke("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${De(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>P({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${WO.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${WO.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),Hhe=g.forwardRef(function(t,n){const r=$t({props:t,name:"MuiFormHelperText"}),{children:o,className:i,component:a="p"}=r,s=be(r,Nhe),l=Cs(),u=Pu({props:r,muiFormControl:l,states:["variant","size","disabled","error","filled","focused","required"]}),c=P({},r,{component:a,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=zhe(c);return m.jsx(Bhe,P({as:a,ownerState:c,className:Ne(f.root,i),ref:n},s,{children:o===" "?VO||(VO=m.jsx("span",{className:"notranslate",children:"​"})):o}))}),Whe=Hhe;function Vhe(e){return vt("MuiFormLabel",e)}const Uhe=yt("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Mm=Uhe,Ghe=["children","className","color","component","disabled","error","filled","focused","required"],qhe=e=>{const{classes:t,color:n,focused:r,disabled:o,error:i,filled:a,required:s}=e,l={root:["root",`color${De(n)}`,o&&"disabled",i&&"error",a&&"filled",r&&"focused",s&&"required"],asterisk:["asterisk",i&&"error"]};return Ke(l,Vhe,t)},Khe=ke("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>P({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>P({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${Mm.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Mm.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Mm.error}`]:{color:(e.vars||e).palette.error.main}})),Yhe=ke("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Mm.error}`]:{color:(e.vars||e).palette.error.main}})),Xhe=g.forwardRef(function(t,n){const r=$t({props:t,name:"MuiFormLabel"}),{children:o,className:i,component:a="label"}=r,s=be(r,Ghe),l=Cs(),u=Pu({props:r,muiFormControl:l,states:["color","required","focused","disabled","error","filled"]}),c=P({},r,{color:u.color||"primary",component:a,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),f=qhe(c);return m.jsxs(Khe,P({as:a,ownerState:c,className:Ne(f.root,i),ref:n},s,{children:[o,u.required&&m.jsxs(Yhe,{ownerState:c,"aria-hidden":!0,className:f.asterisk,children:[" ","*"]})]}))}),Qhe=Xhe,Zhe=g.createContext(),UO=Zhe;function Jhe(e){return vt("MuiGrid",e)}const eme=[0,1,2,3,4,5,6,7,8,9,10],tme=["column-reverse","column","row-reverse","row"],nme=["nowrap","wrap-reverse","wrap"],Nh=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],fg=yt("MuiGrid",["root","container","item","zeroMinWidth",...eme.map(e=>`spacing-xs-${e}`),...tme.map(e=>`direction-xs-${e}`),...nme.map(e=>`wrap-xs-${e}`),...Nh.map(e=>`grid-xs-${e}`),...Nh.map(e=>`grid-sm-${e}`),...Nh.map(e=>`grid-md-${e}`),...Nh.map(e=>`grid-lg-${e}`),...Nh.map(e=>`grid-xl-${e}`)]),rme=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function Vf(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function ome({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 a=vc({values:t.columns,breakpoints:e.breakpoints.values}),s=typeof a=="object"?a[o]:a;if(s==null)return r;const l=`${Math.round(n/s*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} + ${Vf(c)})`;u={flexBasis:f,maxWidth:f}}}i=P({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 ime({theme:e,ownerState:t}){const n=vc({values:t.direction,breakpoints:e.breakpoints.values});return Zo({theme:e},n,r=>{const o={flexDirection:r};return r.indexOf("column")===0&&(o[`& > .${fg.item}`]={maxWidth:"none"}),o})}function CN({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 ame({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let o={};if(n&&r!==0){const i=vc({values:r,breakpoints:e.breakpoints.values});let a;typeof i=="object"&&(a=CN({breakpoints:e.breakpoints.values,values:i})),o=Zo({theme:e},i,(s,l)=>{var u;const c=e.spacing(s);return c!=="0px"?{marginTop:`-${Vf(c)}`,[`& > .${fg.item}`]:{paddingTop:Vf(c)}}:(u=a)!=null&&u.includes(l)?{}:{marginTop:0,[`& > .${fg.item}`]:{paddingTop:0}}})}return o}function sme({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let o={};if(n&&r!==0){const i=vc({values:r,breakpoints:e.breakpoints.values});let a;typeof i=="object"&&(a=CN({breakpoints:e.breakpoints.values,values:i})),o=Zo({theme:e},i,(s,l)=>{var u;const c=e.spacing(s);return c!=="0px"?{width:`calc(100% + ${Vf(c)})`,marginLeft:`-${Vf(c)}`,[`& > .${fg.item}`]:{paddingLeft:Vf(c)}}:(u=a)!=null&&u.includes(l)?{}:{width:"100%",marginLeft:0,[`& > .${fg.item}`]:{paddingLeft:0}}})}return o}function lme(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 ume=ke("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:o,item:i,spacing:a,wrap:s,zeroMinWidth:l,breakpoints:u}=n;let c=[];r&&(c=lme(a,u,t));const f=[];return u.forEach(p=>{const y=n[p];y&&f.push(t[`grid-${p}-${String(y)}`])}),[t.root,r&&t.container,i&&t.item,l&&t.zeroMinWidth,...c,o!=="row"&&t[`direction-xs-${String(o)}`],s!=="wrap"&&t[`wrap-xs-${String(s)}`],...f]}})(({ownerState:e})=>P({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}),ime,ame,sme,ome);function cme(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 dme=e=>{const{classes:t,container:n,direction:r,item:o,spacing:i,wrap:a,zeroMinWidth:s,breakpoints:l}=e;let u=[];n&&(u=cme(i,l));const c=[];l.forEach(p=>{const y=e[p];y&&c.push(`grid-${p}-${String(y)}`)});const f={root:["root",n&&"container",o&&"item",s&&"zeroMinWidth",...u,r!=="row"&&`direction-xs-${String(r)}`,a!=="wrap"&&`wrap-xs-${String(a)}`,...c]};return Ke(f,Jhe,t)},fme=g.forwardRef(function(t,n){const r=$t({props:t,name:"MuiGrid"}),{breakpoints:o}=Wt(),i=Ix(r),{className:a,columns:s,columnSpacing:l,component:u="div",container:c=!1,direction:f="row",item:p=!1,rowSpacing:y,spacing:v=0,wrap:b="wrap",zeroMinWidth:C=!1}=i,x=be(i,rme),w=y||v,S=l||v,$=g.useContext(UO),T=c?s||12:$,k={},M=P({},x);o.keys.forEach(I=>{x[I]!=null&&(k[I]=x[I],delete M[I])});const E=P({},i,{columns:T,container:c,direction:f,item:p,rowSpacing:w,columnSpacing:S,wrap:b,zeroMinWidth:C,spacing:v},k,{breakpoints:o.keys}),N=dme(E);return m.jsx(UO.Provider,{value:T,children:m.jsx(ume,P({ownerState:E,className:Ne(N.root,a),as:u,ref:n},M))})}),Lt=fme,pme=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function j_(e){return`scale(${e}, ${e**2})`}const hme={entering:{opacity:1,transform:j_(1)},entered:{opacity:1,transform:"none"}},kS=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),SN=g.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:i,easing:a,in:s,onEnter:l,onEntered:u,onEntering:c,onExit:f,onExited:p,onExiting:y,style:v,timeout:b="auto",TransitionComponent:C=GD}=t,x=be(t,pme),w=g.useRef(),S=g.useRef(),$=Wt(),T=g.useRef(null),k=rn(T,i.ref,n),M=j=>H=>{if(j){const B=T.current;H===void 0?j(B):j(B,H)}},E=M(c),N=M((j,H)=>{qD(j);const{duration:B,delay:D,easing:W}=ky({style:v,timeout:b,easing:a},{mode:"enter"});let U;b==="auto"?(U=$.transitions.getAutoHeightDuration(j.clientHeight),S.current=U):U=B,j.style.transition=[$.transitions.create("opacity",{duration:U,delay:D}),$.transitions.create("transform",{duration:kS?U:U*.666,delay:D,easing:W})].join(","),l&&l(j,H)}),I=M(u),A=M(y),z=M(j=>{const{duration:H,delay:B,easing:D}=ky({style:v,timeout:b,easing:a},{mode:"exit"});let W;b==="auto"?(W=$.transitions.getAutoHeightDuration(j.clientHeight),S.current=W):W=H,j.style.transition=[$.transitions.create("opacity",{duration:W,delay:B}),$.transitions.create("transform",{duration:kS?W:W*.666,delay:kS?B:B||W*.333,easing:D})].join(","),j.style.opacity=0,j.style.transform=j_(.75),f&&f(j)}),L=M(p),O=j=>{b==="auto"&&(w.current=setTimeout(j,S.current||0)),r&&r(T.current,j)};return g.useEffect(()=>()=>{clearTimeout(w.current)},[]),m.jsx(C,P({appear:o,in:s,nodeRef:T,onEnter:N,onEntered:I,onEntering:E,onExit:z,onExited:L,onExiting:A,addEndListener:O,timeout:b==="auto"?null:b},x,{children:(j,H)=>g.cloneElement(i,P({style:P({opacity:0,transform:j_(.75),visibility:j==="exited"&&!s?"hidden":void 0},hme[j],v,i.props.style),ref:k},H))}))});SN.muiSupportAuto=!0;const Ty=SN,mme=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],gme=e=>{const{classes:t,disableUnderline:n}=e,o=Ke({root:["root",!n&&"underline"],input:["input"]},Kde,t);return P({},t,o)},vme=ke(zx,{shouldForwardProp:e=>ca(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Dx(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})`),P({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"},[`&.${Vl.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Vl.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(.${Vl.disabled}, .${Vl.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Vl.disabled}:before`]:{borderBottomStyle:"dotted"}})}),yme=ke(Bx,{name:"MuiInput",slot:"Input",overridesResolver:Nx})({}),$N=g.forwardRef(function(t,n){var r,o,i,a;const s=$t({props:t,name:"MuiInput"}),{disableUnderline:l,components:u={},componentsProps:c,fullWidth:f=!1,inputComponent:p="input",multiline:y=!1,slotProps:v,slots:b={},type:C="text"}=s,x=be(s,mme),w=gme(s),$={root:{ownerState:{disableUnderline:l}}},T=v??c?ho(v??c,$):$,k=(r=(o=b.root)!=null?o:u.Root)!=null?r:vme,M=(i=(a=b.input)!=null?a:u.Input)!=null?i:yme;return m.jsx(cd,P({slots:{root:k,input:M},slotProps:T,fullWidth:f,inputComponent:p,multiline:y,ref:n,type:C},x,{classes:w}))});$N.muiName="Input";const _N=$N;function bme(e){return vt("MuiInputAdornment",e)}const xme=yt("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),GO=xme;var qO;const wme=["children","className","component","disablePointerEvents","disableTypography","position","variant"],Cme=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${De(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},Sme=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:a}=e,s={root:["root",n&&"disablePointerEvents",o&&`position${De(o)}`,a,r&&"hiddenLabel",i&&`size${De(i)}`]};return Ke(s,bme,t)},$me=ke("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:Cme})(({theme:e,ownerState:t})=>P({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${GO.positionStart}&:not(.${GO.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),_me=g.forwardRef(function(t,n){const r=$t({props:t,name:"MuiInputAdornment"}),{children:o,className:i,component:a="div",disablePointerEvents:s=!1,disableTypography:l=!1,position:u,variant:c}=r,f=be(r,wme),p=Cs()||{};let y=c;c&&p.variant,p&&!y&&(y=p.variant);const v=P({},r,{hiddenLabel:p.hiddenLabel,size:p.size,disablePointerEvents:s,position:u,variant:y}),b=Sme(v);return m.jsx(jx.Provider,{value:null,children:m.jsx($me,P({as:a,ownerState:v,className:Ne(b.root,i),ref:n},f,{children:typeof o=="string"&&!l?m.jsx(Ge,{color:"text.secondary",children:o}):m.jsxs(g.Fragment,{children:[u==="start"?qO||(qO=m.jsx("span",{className:"notranslate",children:"​"})):null,o]})}))})}),kme=_me;function Pme(e){return vt("MuiInputLabel",e)}yt("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const Mme=["disableAnimation","margin","shrink","variant","className"],Tme=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:i,variant:a,required:s}=e,l={root:["root",n&&"formControl",!i&&"animated",o&&"shrink",r&&r!=="normal"&&`size${De(r)}`,a],asterisk:[s&&"asterisk"]},u=Ke(l,Pme,t);return P({},t,u)},Ime=ke(Qhe,{shouldForwardProp:e=>ca(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Mm.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,t[n.variant]]}})(({theme:e,ownerState:t})=>P({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"&&P({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&&P({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"&&P({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)"}))),Eme=g.forwardRef(function(t,n){const r=$t({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:i,className:a}=r,s=be(r,Mme),l=Cs();let u=i;typeof u>"u"&&l&&(u=l.filled||l.focused||l.adornedStart);const c=Pu({props:r,muiFormControl:l,states:["size","variant","required"]}),f=P({},r,{disableAnimation:o,formControl:l,shrink:u,size:c.size,variant:c.variant,required:c.required}),p=Tme(f);return m.jsx(Ime,P({"data-shrink":u,ownerState:f,ref:n,className:Ne(p.root,a)},s,{classes:p}))}),kN=Eme,Rme=g.createContext({}),Wc=Rme;function Ome(e){return vt("MuiList",e)}yt("MuiList",["root","padding","dense","subheader"]);const Ame=["children","className","component","dense","disablePadding","subheader"],Fme=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Ke({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},Ome,t)},Lme=ke("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})=>P({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),jme=g.forwardRef(function(t,n){const r=$t({props:t,name:"MuiList"}),{children:o,className:i,component:a="ul",dense:s=!1,disablePadding:l=!1,subheader:u}=r,c=be(r,Ame),f=g.useMemo(()=>({dense:s}),[s]),p=P({},r,{component:a,dense:s,disablePadding:l}),y=Fme(p);return m.jsx(Wc.Provider,{value:f,children:m.jsxs(Lme,P({as:a,className:Ne(y.root,i),ref:n,ownerState:p},c,{children:[u,o]}))})}),Dme=jme;function Nme(e){return vt("MuiListItemButton",e)}const zme=yt("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),zh=zme,Bme=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],Hme=(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]},Wme=e=>{const{alignItems:t,classes:n,dense:r,disabled:o,disableGutters:i,divider:a,selected:s}=e,u=Ke({root:["root",r&&"dense",!i&&"gutters",a&&"divider",o&&"disabled",t==="flex-start"&&"alignItemsFlexStart",s&&"selected"]},Nme,n);return P({},n,u)},Vme=ke(cl,{shouldForwardProp:e=>ca(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:Hme})(({theme:e,ownerState:t})=>P({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"}},[`&.${zh.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Rt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${zh.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Rt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${zh.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Rt(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})`:Rt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${zh.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${zh.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})),Ume=g.forwardRef(function(t,n){const r=$t({props:t,name:"MuiListItemButton"}),{alignItems:o="center",autoFocus:i=!1,component:a="div",children:s,dense:l=!1,disableGutters:u=!1,divider:c=!1,focusVisibleClassName:f,selected:p=!1,className:y}=r,v=be(r,Bme),b=g.useContext(Wc),C=g.useMemo(()=>({dense:l||b.dense||!1,alignItems:o,disableGutters:u}),[o,b.dense,l,u]),x=g.useRef(null);dn(()=>{i&&x.current&&x.current.focus()},[i]);const w=P({},r,{alignItems:o,dense:C.dense,disableGutters:u,divider:c,selected:p}),S=Wme(w),$=rn(x,n);return m.jsx(Wc.Provider,{value:C,children:m.jsx(Vme,P({ref:$,href:v.href||v.to,component:(v.href||v.to)&&a==="div"?"button":a,focusVisibleClassName:Ne(S.focusVisible,f),ownerState:w,className:Ne(S.root,y)},v,{classes:S,children:s}))})}),PN=Ume;function Gme(e){return vt("MuiListItemIcon",e)}const qme=yt("MuiListItemIcon",["root","alignItemsFlexStart"]),KO=qme,Kme=["className"],Yme=e=>{const{alignItems:t,classes:n}=e;return Ke({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},Gme,n)},Xme=ke("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>P({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),Qme=g.forwardRef(function(t,n){const r=$t({props:t,name:"MuiListItemIcon"}),{className:o}=r,i=be(r,Kme),a=g.useContext(Wc),s=P({},r,{alignItems:a.alignItems}),l=Yme(s);return m.jsx(Xme,P({className:Ne(l.root,o),ownerState:s,ref:n},i))}),fo=Qme;function Zme(e){return vt("MuiListItemText",e)}const Jme=yt("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Iy=Jme,ege=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],tge=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:i}=e;return Ke({root:["root",n&&"inset",i&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},Zme,t)},nge=ke("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Iy.primary}`]:t.primary},{[`& .${Iy.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>P({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),rge=g.forwardRef(function(t,n){const r=$t({props:t,name:"MuiListItemText"}),{children:o,className:i,disableTypography:a=!1,inset:s=!1,primary:l,primaryTypographyProps:u,secondary:c,secondaryTypographyProps:f}=r,p=be(r,ege),{dense:y}=g.useContext(Wc);let v=l??o,b=c;const C=P({},r,{disableTypography:a,inset:s,primary:!!v,secondary:!!b,dense:y}),x=tge(C);return v!=null&&v.type!==Ge&&!a&&(v=m.jsx(Ge,P({variant:y?"body2":"body1",className:x.primary,component:u!=null&&u.variant?void 0:"span",display:"block"},u,{children:v}))),b!=null&&b.type!==Ge&&!a&&(b=m.jsx(Ge,P({variant:"body2",className:x.secondary,color:"text.secondary",display:"block"},f,{children:b}))),m.jsxs(nge,P({className:Ne(x.root,i),ownerState:C,ref:n},p,{children:[v,b]}))}),Uf=rge,oge=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function PS(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function YO(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function MN(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 Bh(e,t,n,r,o,i){let a=!1,s=o(e,t,t?n:!1);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const l=r?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!MN(s,i)||l)s=o(e,s,n);else return s.focus(),!0}return!1}const ige=g.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:i=!1,children:a,className:s,disabledItemsFocusable:l=!1,disableListWrap:u=!1,onKeyDown:c,variant:f="selectedMenu"}=t,p=be(t,oge),y=g.useRef(null),v=g.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});dn(()=>{o&&y.current.focus()},[o]),g.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(S,$)=>{const T=!y.current.style.width;if(S.clientHeight{const $=y.current,T=S.key,k=Gn($).activeElement;if(T==="ArrowDown")S.preventDefault(),Bh($,k,u,l,PS);else if(T==="ArrowUp")S.preventDefault(),Bh($,k,u,l,YO);else if(T==="Home")S.preventDefault(),Bh($,null,u,l,PS);else if(T==="End")S.preventDefault(),Bh($,null,u,l,YO);else if(T.length===1){const M=v.current,E=T.toLowerCase(),N=performance.now();M.keys.length>0&&(N-M.lastTime>500?(M.keys=[],M.repeating=!0,M.previousKeyMatched=!0):M.repeating&&E!==M.keys[0]&&(M.repeating=!1)),M.lastTime=N,M.keys.push(E);const I=k&&!M.repeating&&MN(k,M);M.previousKeyMatched&&(I||Bh($,k,!1,l,PS,M))?S.preventDefault():M.previousKeyMatched=!1}c&&c(S)},C=rn(y,n);let x=-1;g.Children.forEach(a,(S,$)=>{if(!g.isValidElement(S)){x===$&&(x+=1,x>=a.length&&(x=-1));return}S.props.disabled||(f==="selectedMenu"&&S.props.selected||x===-1)&&(x=$),x===$&&(S.props.disabled||S.props.muiSkipListHighlight||S.type.muiSkipListHighlight)&&(x+=1,x>=a.length&&(x=-1))});const w=g.Children.map(a,(S,$)=>{if($===x){const T={};return i&&(T.autoFocus=!0),S.props.tabIndex===void 0&&f==="selectedMenu"&&(T.tabIndex=0),g.cloneElement(S,T)}return S});return m.jsx(Dme,P({role:"menu",ref:C,className:s,onKeyDown:b,tabIndex:o?0:-1},p,{children:w}))}),u0=ige;function age(e){return vt("MuiPopover",e)}yt("MuiPopover",["root","paper"]);const sge=["onEntering"],lge=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],uge=["slotProps"];function XO(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function QO(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function ZO(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function MS(e){return typeof e=="function"?e():e}const cge=e=>{const{classes:t}=e;return Ke({root:["root"],paper:["paper"]},age,t)},dge=ke(gN,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),TN=ke(ld,{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}),fge=g.forwardRef(function(t,n){var r,o,i;const a=$t({props:t,name:"MuiPopover"}),{action:s,anchorEl:l,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:f="anchorEl",children:p,className:y,container:v,elevation:b=8,marginThreshold:C=16,open:x,PaperProps:w={},slots:S,slotProps:$,transformOrigin:T={vertical:"top",horizontal:"left"},TransitionComponent:k=Ty,transitionDuration:M="auto",TransitionProps:{onEntering:E}={},disableScrollLock:N=!1}=a,I=be(a.TransitionProps,sge),A=be(a,lge),z=(r=$==null?void 0:$.paper)!=null?r:w,L=g.useRef(),O=rn(L,z.ref),j=P({},a,{anchorOrigin:u,anchorReference:f,elevation:b,marginThreshold:C,externalPaperSlotProps:z,transformOrigin:T,TransitionComponent:k,transitionDuration:M,TransitionProps:I}),H=cge(j),B=g.useCallback(()=>{if(f==="anchorPosition")return c;const Pe=MS(l),me=(Pe&&Pe.nodeType===1?Pe:Gn(L.current).body).getBoundingClientRect();return{top:me.top+XO(me,u.vertical),left:me.left+QO(me,u.horizontal)}},[l,u.horizontal,u.vertical,c,f]),D=g.useCallback(Pe=>({vertical:XO(Pe,T.vertical),horizontal:QO(Pe,T.horizontal)}),[T.horizontal,T.vertical]),W=g.useCallback(Pe=>{const $e={width:Pe.offsetWidth,height:Pe.offsetHeight},me=D($e);if(f==="none")return{top:null,left:null,transformOrigin:ZO(me)};const ue=B();let ce=ue.top-me.vertical,Te=ue.left-me.horizontal;const Le=ce+$e.height,Re=Te+$e.width,Oe=ra(MS(l)),K=Oe.innerHeight-C,ee=Oe.innerWidth-C;if(C!==null&&ceK){const pe=Le-K;ce-=pe,me.vertical+=pe}if(C!==null&&Teee){const pe=Re-ee;Te-=pe,me.horizontal+=pe}return{top:`${Math.round(ce)}px`,left:`${Math.round(Te)}px`,transformOrigin:ZO(me)}},[l,f,B,D,C]),[U,Z]=g.useState(x),Y=g.useCallback(()=>{const Pe=L.current;if(!Pe)return;const $e=W(Pe);$e.top!==null&&(Pe.style.top=$e.top),$e.left!==null&&(Pe.style.left=$e.left),Pe.style.transformOrigin=$e.transformOrigin,Z(!0)},[W]);g.useEffect(()=>(N&&window.addEventListener("scroll",Y),()=>window.removeEventListener("scroll",Y)),[l,N,Y]);const se=(Pe,$e)=>{E&&E(Pe,$e),Y()},Q=()=>{Z(!1)};g.useEffect(()=>{x&&Y()}),g.useImperativeHandle(s,()=>x?{updatePosition:()=>{Y()}}:null,[x,Y]),g.useEffect(()=>{if(!x)return;const Pe=_u(()=>{Y()}),$e=ra(l);return $e.addEventListener("resize",Pe),()=>{Pe.clear(),$e.removeEventListener("resize",Pe)}},[l,x,Y]);let ne=M;M==="auto"&&!k.muiSupportAuto&&(ne=void 0);const re=v||(l?Gn(MS(l)).body:void 0),ge=(o=S==null?void 0:S.root)!=null?o:dge,xe=(i=S==null?void 0:S.paper)!=null?i:TN,fe=Si({elementType:xe,externalSlotProps:P({},z,{style:U?z.style:P({},z.style,{opacity:0})}),additionalProps:{elevation:b,ref:O},ownerState:j,className:Ne(H.paper,z==null?void 0:z.className)}),Se=Si({elementType:ge,externalSlotProps:($==null?void 0:$.root)||{},externalForwardedProps:A,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:re,open:x},ownerState:j,className:Ne(H.root,y)}),{slotProps:de}=Se,ie=be(Se,uge);return m.jsx(ge,P({},ie,!lg(ge)&&{slotProps:de,disableScrollLock:N},{children:m.jsx(k,P({appear:!0,in:x,onEntering:se,onExited:Q,timeout:ne},I,{children:m.jsx(xe,P({},fe,{children:p}))}))}))}),pge=fge;function hge(e){return vt("MuiMenu",e)}yt("MuiMenu",["root","paper","list"]);const mge=["onEntering"],gge=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],vge={vertical:"top",horizontal:"right"},yge={vertical:"top",horizontal:"left"},bge=e=>{const{classes:t}=e;return Ke({root:["root"],paper:["paper"],list:["list"]},hge,t)},xge=ke(pge,{shouldForwardProp:e=>ca(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),wge=ke(TN,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Cge=ke(u0,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Sge=g.forwardRef(function(t,n){var r,o;const i=$t({props:t,name:"MuiMenu"}),{autoFocus:a=!0,children:s,className:l,disableAutoFocusItem:u=!1,MenuListProps:c={},onClose:f,open:p,PaperProps:y={},PopoverClasses:v,transitionDuration:b="auto",TransitionProps:{onEntering:C}={},variant:x="selectedMenu",slots:w={},slotProps:S={}}=i,$=be(i.TransitionProps,mge),T=be(i,gge),k=Wt(),M=k.direction==="rtl",E=P({},i,{autoFocus:a,disableAutoFocusItem:u,MenuListProps:c,onEntering:C,PaperProps:y,transitionDuration:b,TransitionProps:$,variant:x}),N=bge(E),I=a&&!u&&p,A=g.useRef(null),z=(W,U)=>{A.current&&A.current.adjustStyleForScrollbar(W,k),C&&C(W,U)},L=W=>{W.key==="Tab"&&(W.preventDefault(),f&&f(W,"tabKeyDown"))};let O=-1;g.Children.map(s,(W,U)=>{g.isValidElement(W)&&(W.props.disabled||(x==="selectedMenu"&&W.props.selected||O===-1)&&(O=U))});const j=(r=w.paper)!=null?r:wge,H=(o=S.paper)!=null?o:y,B=Si({elementType:w.root,externalSlotProps:S.root,ownerState:E,className:[N.root,l]}),D=Si({elementType:j,externalSlotProps:H,ownerState:E,className:N.paper});return m.jsx(xge,P({onClose:f,anchorOrigin:{vertical:"bottom",horizontal:M?"right":"left"},transformOrigin:M?vge:yge,slots:{paper:j,root:w.root},slotProps:{root:B,paper:D},open:p,ref:n,transitionDuration:b,TransitionProps:P({onEntering:z},$),ownerState:E},T,{classes:v,children:m.jsx(Cge,P({onKeyDown:L,actions:A,autoFocus:a&&(O===-1||u),autoFocusItem:I,variant:x},c,{className:Ne(N.list,c.className),children:s}))}))}),c0=Sge;function $ge(e){return vt("MuiMenuItem",e)}const _ge=yt("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Hh=_ge,kge=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Pge=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},Mge=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e,l=Ke({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},$ge,a);return P({},a,l)},Tge=ke(cl,{shouldForwardProp:e=>ca(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:Pge})(({theme:e,ownerState:t})=>P({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Hh.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Rt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Hh.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Rt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Hh.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Rt(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})`:Rt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Hh.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Hh.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${HO.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${HO.inset}`]:{marginLeft:52},[`& .${Iy.root}`]:{marginTop:0,marginBottom:0},[`& .${Iy.inset}`]:{paddingLeft:36},[`& .${KO.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&P({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${KO.root} svg`]:{fontSize:"1.25rem"}}))),Ige=g.forwardRef(function(t,n){const r=$t({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:i="li",dense:a=!1,divider:s=!1,disableGutters:l=!1,focusVisibleClassName:u,role:c="menuitem",tabIndex:f,className:p}=r,y=be(r,kge),v=g.useContext(Wc),b=g.useMemo(()=>({dense:a||v.dense||!1,disableGutters:l}),[v.dense,a,l]),C=g.useRef(null);dn(()=>{o&&C.current&&C.current.focus()},[o]);const x=P({},r,{dense:b.dense,divider:s,disableGutters:l}),w=Mge(r),S=rn(C,n);let $;return r.disabled||($=f!==void 0?f:-1),m.jsx(Wc.Provider,{value:b,children:m.jsx(Tge,P({ref:S,role:c,tabIndex:$,component:i,focusVisibleClassName:Ne(w.focusVisible,u),className:Ne(w.root,p)},y,{ownerState:x,classes:w}))})}),rr=Ige;function Ege(e){return vt("MuiNativeSelect",e)}const Rge=yt("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),DM=Rge,Oge=["className","disabled","error","IconComponent","inputRef","variant"],Age=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e,s={select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${De(n)}`,i&&"iconOpen",r&&"disabled"]};return Ke(s,Ege,t)},IN=({ownerState:e,theme:t})=>P({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":P({},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"},[`&.${DM.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}}),Fge=ke("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:ca,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${DM.multiple}`]:t.multiple}]}})(IN),EN=({ownerState:e,theme:t})=>P({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${DM.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),Lge=ke("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${De(n.variant)}`],n.open&&t.iconOpen]}})(EN),jge=g.forwardRef(function(t,n){const{className:r,disabled:o,error:i,IconComponent:a,inputRef:s,variant:l="standard"}=t,u=be(t,Oge),c=P({},t,{disabled:o,variant:l,error:i}),f=Age(c);return m.jsxs(g.Fragment,{children:[m.jsx(Fge,P({ownerState:c,className:Ne(f.select,r),disabled:o,ref:s||n},u)),t.multiple?null:m.jsx(Lge,{as:a,ownerState:c,className:f.icon})]})}),Dge=jge;var JO;const Nge=["children","classes","className","label","notched"],zge=ke("fieldset")({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%"}),Bge=ke("legend")(({ownerState:e,theme:t})=>P({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&&P({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 Hge(e){const{className:t,label:n,notched:r}=e,o=be(e,Nge),i=n!=null&&n!=="",a=P({},e,{notched:r,withLabel:i});return m.jsx(zge,P({"aria-hidden":!0,className:t,ownerState:a},o,{children:m.jsx(Bge,{ownerState:a,children:i?m.jsx("span",{children:n}):JO||(JO=m.jsx("span",{className:"notranslate",children:"​"}))})}))}const Wge=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],Vge=e=>{const{classes:t}=e,r=Ke({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Xde,t);return P({},t,r)},Uge=ke(zx,{shouldForwardProp:e=>ca(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Dx})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return P({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Ua.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Ua.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${Ua.focused} .${Ua.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Ua.error} .${Ua.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Ua.disabled} .${Ua.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&P({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),Gge=ke(Hge,{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}}),qge=ke(Bx,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Nx})(({theme:e,ownerState:t})=>P({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})),RN=g.forwardRef(function(t,n){var r,o,i,a,s;const l=$t({props:t,name:"MuiOutlinedInput"}),{components:u={},fullWidth:c=!1,inputComponent:f="input",label:p,multiline:y=!1,notched:v,slots:b={},type:C="text"}=l,x=be(l,Wge),w=Vge(l),S=Cs(),$=Pu({props:l,muiFormControl:S,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),T=P({},l,{color:$.color||"primary",disabled:$.disabled,error:$.error,focused:$.focused,formControl:S,fullWidth:c,hiddenLabel:$.hiddenLabel,multiline:y,size:$.size,type:C}),k=(r=(o=b.root)!=null?o:u.Root)!=null?r:Uge,M=(i=(a=b.input)!=null?a:u.Input)!=null?i:qge;return m.jsx(cd,P({slots:{root:k,input:M},renderSuffix:E=>m.jsx(Gge,{ownerState:T,className:w.notchedOutline,label:p!=null&&p!==""&&$.required?s||(s=m.jsxs(g.Fragment,{children:[p," ","*"]})):p,notched:typeof v<"u"?v:!!(E.startAdornment||E.filled||E.focused)}),fullWidth:c,inputComponent:f,multiline:y,ref:n,type:C},x,{classes:P({},w,{notchedOutline:null})}))});RN.muiName="Input";const ON=RN,e6=xt(m.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),t6=xt(m.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage");function Kge(e){return vt("MuiSelect",e)}const Yge=yt("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Wh=Yge;var n6;const Xge=["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"],Qge=ke("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Wh.select}`]:t.select},{[`&.${Wh.select}`]:t[n.variant]},{[`&.${Wh.error}`]:t.error},{[`&.${Wh.multiple}`]:t.multiple}]}})(IN,{[`&.${Wh.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Zge=ke("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${De(n.variant)}`],n.open&&t.iconOpen]}})(EN),Jge=ke("input",{shouldForwardProp:e=>_le(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 r6(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function e0e(e){return e==null||typeof e=="string"&&!e.trim()}const t0e=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e,s={select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${De(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return Ke(s,Kge,t)},n0e=g.forwardRef(function(t,n){var r;const{"aria-describedby":o,"aria-label":i,autoFocus:a,autoWidth:s,children:l,className:u,defaultOpen:c,defaultValue:f,disabled:p,displayEmpty:y,error:v=!1,IconComponent:b,inputRef:C,labelId:x,MenuProps:w={},multiple:S,name:$,onBlur:T,onChange:k,onClose:M,onFocus:E,onOpen:N,open:I,readOnly:A,renderValue:z,SelectDisplayProps:L={},tabIndex:O,value:j,variant:H="standard"}=t,B=be(t,Xge),[D,W]=su({controlled:j,default:f,name:"Select"}),[U,Z]=su({controlled:I,default:c,name:"Select"}),Y=g.useRef(null),se=g.useRef(null),[Q,ne]=g.useState(null),{current:re}=g.useRef(I!=null),[ge,xe]=g.useState(),fe=rn(n,C),Se=g.useCallback(Be=>{se.current=Be,Be&&ne(Be)},[]),de=Q==null?void 0:Q.parentNode;g.useImperativeHandle(fe,()=>({focus:()=>{se.current.focus()},node:Y.current,value:D}),[D]),g.useEffect(()=>{c&&U&&Q&&!re&&(xe(s?null:de.clientWidth),se.current.focus())},[Q,s]),g.useEffect(()=>{a&&se.current.focus()},[a]),g.useEffect(()=>{if(!x)return;const Be=Gn(se.current).getElementById(x);if(Be){const te=()=>{getSelection().isCollapsed&&se.current.focus()};return Be.addEventListener("click",te),()=>{Be.removeEventListener("click",te)}}},[x]);const ie=(Be,te)=>{Be?N&&N(te):M&&M(te),re||(xe(s?null:de.clientWidth),Z(Be))},Pe=Be=>{Be.button===0&&(Be.preventDefault(),se.current.focus(),ie(!0,Be))},$e=Be=>{ie(!1,Be)},me=g.Children.toArray(l),ue=Be=>{const te=me.find(X=>X.props.value===Be.target.value);te!==void 0&&(W(te.props.value),k&&k(Be,te))},ce=Be=>te=>{let X;if(te.currentTarget.hasAttribute("tabindex")){if(S){X=Array.isArray(D)?D.slice():[];const oe=D.indexOf(Be.props.value);oe===-1?X.push(Be.props.value):X.splice(oe,1)}else X=Be.props.value;if(Be.props.onClick&&Be.props.onClick(te),D!==X&&(W(X),k)){const oe=te.nativeEvent||te,Ee=new oe.constructor(oe.type,oe);Object.defineProperty(Ee,"target",{writable:!0,value:{value:X,name:$}}),k(Ee,Be)}S||ie(!1,te)}},Te=Be=>{A||[" ","ArrowUp","ArrowDown","Enter"].indexOf(Be.key)!==-1&&(Be.preventDefault(),ie(!0,Be))},Le=Q!==null&&U,Re=Be=>{!Le&&T&&(Object.defineProperty(Be,"target",{writable:!0,value:{value:D,name:$}}),T(Be))};delete B["aria-invalid"];let Oe,K;const ee=[];let pe=!1;(My({value:D})||y)&&(z?Oe=z(D):pe=!0);const ye=me.map(Be=>{if(!g.isValidElement(Be))return null;let te;if(S){if(!Array.isArray(D))throw new Error(hu(2));te=D.some(X=>r6(X,Be.props.value)),te&&pe&&ee.push(Be.props.children)}else te=r6(D,Be.props.value),te&&pe&&(K=Be.props.children);return g.cloneElement(Be,{"aria-selected":te?"true":"false",onClick:ce(Be),onKeyUp:X=>{X.key===" "&&X.preventDefault(),Be.props.onKeyUp&&Be.props.onKeyUp(X)},role:"option",selected:te,value:void 0,"data-value":Be.props.value})});pe&&(S?ee.length===0?Oe=null:Oe=ee.reduce((Be,te,X)=>(Be.push(te),X{const{classes:t}=e;return t},NM={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>ca(e)&&e!=="variant",slot:"Root"},s0e=ke(_N,NM)(""),l0e=ke(ON,NM)(""),u0e=ke(bN,NM)(""),AN=g.forwardRef(function(t,n){const r=$t({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:i,classes:a={},className:s,defaultOpen:l=!1,displayEmpty:u=!1,IconComponent:c=fN,id:f,input:p,inputProps:y,label:v,labelId:b,MenuProps:C,multiple:x=!1,native:w=!1,onClose:S,onOpen:$,open:T,renderValue:k,SelectDisplayProps:M,variant:E="outlined"}=r,N=be(r,o0e),I=w?Dge:r0e,A=Cs(),z=Pu({props:r,muiFormControl:A,states:["variant","error"]}),L=z.variant||E,O=P({},r,{variant:L,classes:a}),j=a0e(O),H=be(j,i0e),B=p||{standard:m.jsx(s0e,{ownerState:O}),outlined:m.jsx(l0e,{label:v,ownerState:O}),filled:m.jsx(u0e,{ownerState:O})}[L],D=rn(n,B.ref);return m.jsx(g.Fragment,{children:g.cloneElement(B,P({inputComponent:I,inputProps:P({children:i,error:z.error,IconComponent:c,variant:L,type:void 0,multiple:x},w?{id:f}:{autoWidth:o,defaultOpen:l,displayEmpty:u,labelId:b,MenuProps:C,onClose:S,onOpen:$,open:T,renderValue:k,SelectDisplayProps:P({id:f},M)},y,{classes:y?ho(H,y.classes):H},p?p.props.inputProps:{})},x&&w&&L==="outlined"?{notched:!0}:{},{ref:D,className:Ne(B.props.className,s,j.root)},!p&&{variant:L},N))})});AN.muiName="Select";const zM=AN;function c0e(e){return vt("MuiSkeleton",e)}yt("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const d0e=["animation","className","component","height","style","variant","width"];let Ey=e=>e,o6,i6,a6,s6;const f0e=e=>{const{classes:t,variant:n,animation:r,hasChildren:o,width:i,height:a}=e;return Ke({root:["root",n,r,o&&"withChildren",o&&!i&&"fitContent",o&&!a&&"heightAuto"]},c0e,t)},p0e=sd(o6||(o6=Ey` + 0% { + opacity: 1; + } + + 50% { + opacity: 0.4; + } + + 100% { + opacity: 1; + } +`)),h0e=sd(i6||(i6=Ey` + 0% { + transform: translateX(-100%); + } + + 50% { + /* +0.5s of delay between each loop */ + transform: translateX(100%); + } + + 100% { + transform: translateX(100%); + } +`)),m0e=ke("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.animation!==!1&&t[n.animation],n.hasChildren&&t.withChildren,n.hasChildren&&!n.width&&t.fitContent,n.hasChildren&&!n.height&&t.heightAuto]}})(({theme:e,ownerState:t})=>{const n=Cle(e.shape.borderRadius)||"px",r=Sle(e.shape.borderRadius);return P({display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:Rt(e.palette.text.primary,e.palette.mode==="light"?.11:.13),height:"1.2em"},t.variant==="text"&&{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${r}${n}/${Math.round(r/.6*10)/10}${n}`,"&:empty:before":{content:'"\\00a0"'}},t.variant==="circular"&&{borderRadius:"50%"},t.variant==="rounded"&&{borderRadius:(e.vars||e).shape.borderRadius},t.hasChildren&&{"& > *":{visibility:"hidden"}},t.hasChildren&&!t.width&&{maxWidth:"fit-content"},t.hasChildren&&!t.height&&{height:"auto"})},({ownerState:e})=>e.animation==="pulse"&&ag(a6||(a6=Ey` + animation: ${0} 2s ease-in-out 0.5s infinite; + `),p0e),({ownerState:e,theme:t})=>e.animation==="wave"&&ag(s6||(s6=Ey` + position: relative; + overflow: hidden; + + /* Fix bug in Safari https://bugs.webkit.org/show_bug.cgi?id=68196 */ + -webkit-mask-image: -webkit-radial-gradient(white, black); + + &::after { + animation: ${0} 2s linear 0.5s infinite; + background: linear-gradient( + 90deg, + transparent, + ${0}, + transparent + ); + content: ''; + position: absolute; + transform: translateX(-100%); /* Avoid flash during server-side hydration */ + bottom: 0; + left: 0; + right: 0; + top: 0; + } + `),h0e,(t.vars||t).palette.action.hover)),g0e=g.forwardRef(function(t,n){const r=$t({props:t,name:"MuiSkeleton"}),{animation:o="pulse",className:i,component:a="span",height:s,style:l,variant:u="text",width:c}=r,f=be(r,d0e),p=P({},r,{animation:o,component:a,variant:u,hasChildren:!!f.children}),y=f0e(p);return m.jsx(m0e,P({as:a,ref:n,className:Ne(y.root,i),ownerState:p},f,{style:P({width:c,height:s},l)}))}),v0e=g0e;function y0e(e){return vt("MuiTooltip",e)}const b0e=yt("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),ql=b0e,x0e=["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 w0e(e){return Math.round(e*1e5)/1e5}const C0e=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e,a={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${De(i.split("-")[0])}`],arrow:["arrow"]};return Ke(a,y0e,t)},S0e=ke(ud,{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})=>P({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${ql.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${ql.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${ql.arrow}`]:P({},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"] .${ql.arrow}`]:P({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),$0e=ke("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${De(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>P({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Rt(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:`${w0e(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${ql.popper}[data-popper-placement*="left"] &`]:P({transformOrigin:"right center"},t.isRtl?P({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):P({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${ql.popper}[data-popper-placement*="right"] &`]:P({transformOrigin:"left center"},t.isRtl?P({marginRight:"14px"},t.touch&&{marginRight:"24px"}):P({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${ql.popper}[data-popper-placement*="top"] &`]:P({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${ql.popper}[data-popper-placement*="bottom"] &`]:P({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),_0e=ke("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:Rt(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let Wv=!1,TS=null,Vh={x:0,y:0};function Vv(e,t){return n=>{t&&t(n),e(n)}}const k0e=g.forwardRef(function(t,n){var r,o,i,a,s,l,u,c,f,p,y,v,b,C,x,w,S,$,T;const k=$t({props:t,name:"MuiTooltip"}),{arrow:M=!1,children:E,components:N={},componentsProps:I={},describeChild:A=!1,disableFocusListener:z=!1,disableHoverListener:L=!1,disableInteractive:O=!1,disableTouchListener:j=!1,enterDelay:H=100,enterNextDelay:B=0,enterTouchDelay:D=700,followCursor:W=!1,id:U,leaveDelay:Z=0,leaveTouchDelay:Y=1500,onClose:se,onOpen:Q,open:ne,placement:re="bottom",PopperComponent:ge,PopperProps:xe={},slotProps:fe={},slots:Se={},title:de,TransitionComponent:ie=Ty,TransitionProps:Pe}=k,$e=be(k,x0e),me=g.isValidElement(E)?E:m.jsx("span",{children:E}),ue=Wt(),ce=ue.direction==="rtl",[Te,Le]=g.useState(),[Re,Oe]=g.useState(null),K=g.useRef(!1),ee=O||W,pe=g.useRef(),ye=g.useRef(),je=g.useRef(),Ae=g.useRef(),[Ie,Ce]=su({controlled:ne,default:!1,name:"Tooltip",state:"open"});let Ze=Ie;const Ct=ln(U),et=g.useRef(),Be=g.useCallback(()=>{et.current!==void 0&&(document.body.style.WebkitUserSelect=et.current,et.current=void 0),clearTimeout(Ae.current)},[]);g.useEffect(()=>()=>{clearTimeout(pe.current),clearTimeout(ye.current),clearTimeout(je.current),Be()},[Be]);const te=gt=>{clearTimeout(TS),Wv=!0,Ce(!0),Q&&!Ze&&Q(gt)},X=Dn(gt=>{clearTimeout(TS),TS=setTimeout(()=>{Wv=!1},800+Z),Ce(!1),se&&Ze&&se(gt),clearTimeout(pe.current),pe.current=setTimeout(()=>{K.current=!1},ue.transitions.duration.shortest)}),oe=gt=>{K.current&>.type!=="touchstart"||(Te&&Te.removeAttribute("title"),clearTimeout(ye.current),clearTimeout(je.current),H||Wv&&B?ye.current=setTimeout(()=>{te(gt)},Wv?B:H):te(gt))},Ee=gt=>{clearTimeout(ye.current),clearTimeout(je.current),je.current=setTimeout(()=>{X(gt)},Z)},{isFocusVisibleRef:Ue,onBlur:Ye,onFocus:at,ref:Je}=cM(),[,nt]=g.useState(!1),_t=gt=>{Ye(gt),Ue.current===!1&&(nt(!1),Ee(gt))},ht=gt=>{Te||Le(gt.currentTarget),at(gt),Ue.current===!0&&(nt(!0),oe(gt))},lt=gt=>{K.current=!0;const ir=me.props;ir.onTouchStart&&ir.onTouchStart(gt)},Ot=oe,Dt=Ee,fn=gt=>{lt(gt),clearTimeout(je.current),clearTimeout(pe.current),Be(),et.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Ae.current=setTimeout(()=>{document.body.style.WebkitUserSelect=et.current,oe(gt)},D)},hn=gt=>{me.props.onTouchEnd&&me.props.onTouchEnd(gt),Be(),clearTimeout(je.current),je.current=setTimeout(()=>{X(gt)},Y)};g.useEffect(()=>{if(!Ze)return;function gt(ir){(ir.key==="Escape"||ir.key==="Esc")&&X(ir)}return document.addEventListener("keydown",gt),()=>{document.removeEventListener("keydown",gt)}},[X,Ze]);const Pt=rn(me.ref,Je,Le,n);!de&&de!==0&&(Ze=!1);const zt=g.useRef(),un=gt=>{const ir=me.props;ir.onMouseMove&&ir.onMouseMove(gt),Vh={x:gt.clientX,y:gt.clientY},zt.current&&zt.current.update()},cn={},ut=typeof de=="string";A?(cn.title=!Ze&&ut&&!L?de:null,cn["aria-describedby"]=Ze?Ct:null):(cn["aria-label"]=ut?de:null,cn["aria-labelledby"]=Ze&&!ut?Ct:null);const mt=P({},cn,$e,me.props,{className:Ne($e.className,me.props.className),onTouchStart:lt,ref:Pt},W?{onMouseMove:un}:{}),At={};j||(mt.onTouchStart=fn,mt.onTouchEnd=hn),L||(mt.onMouseOver=Vv(Ot,mt.onMouseOver),mt.onMouseLeave=Vv(Dt,mt.onMouseLeave),ee||(At.onMouseOver=Ot,At.onMouseLeave=Dt)),z||(mt.onFocus=Vv(ht,mt.onFocus),mt.onBlur=Vv(_t,mt.onBlur),ee||(At.onFocus=ht,At.onBlur=_t));const Ft=g.useMemo(()=>{var gt;let ir=[{name:"arrow",enabled:!!Re,options:{element:Re,padding:4}}];return(gt=xe.popperOptions)!=null&>.modifiers&&(ir=ir.concat(xe.popperOptions.modifiers)),P({},xe.popperOptions,{modifiers:ir})},[Re,xe]),tt=P({},k,{isRtl:ce,arrow:M,disableInteractive:ee,placement:re,PopperComponentProp:ge,touch:K.current}),Gt=C0e(tt),_e=(r=(o=Se.popper)!=null?o:N.Popper)!=null?r:S0e,we=(i=(a=(s=Se.transition)!=null?s:N.Transition)!=null?a:ie)!=null?i:Ty,Fe=(l=(u=Se.tooltip)!=null?u:N.Tooltip)!=null?l:$0e,rt=(c=(f=Se.arrow)!=null?f:N.Arrow)!=null?c:_0e,Tt=um(_e,P({},xe,(p=fe.popper)!=null?p:I.popper,{className:Ne(Gt.popper,xe==null?void 0:xe.className,(y=(v=fe.popper)!=null?v:I.popper)==null?void 0:y.className)}),tt),en=um(we,P({},Pe,(b=fe.transition)!=null?b:I.transition),tt),kn=um(Fe,P({},(C=fe.tooltip)!=null?C:I.tooltip,{className:Ne(Gt.tooltip,(x=(w=fe.tooltip)!=null?w:I.tooltip)==null?void 0:x.className)}),tt),ct=um(rt,P({},(S=fe.arrow)!=null?S:I.arrow,{className:Ne(Gt.arrow,($=(T=fe.arrow)!=null?T:I.arrow)==null?void 0:$.className)}),tt);return m.jsxs(g.Fragment,{children:[g.cloneElement(me,mt),m.jsx(_e,P({as:ge??ud,placement:re,anchorEl:W?{getBoundingClientRect:()=>({top:Vh.y,left:Vh.x,right:Vh.x,bottom:Vh.y,width:0,height:0})}:Te,popperRef:zt,open:Te?Ze:!1,id:Ct,transition:!0},At,Tt,{popperOptions:Ft,children:({TransitionProps:gt})=>m.jsx(we,P({timeout:ue.transitions.duration.shorter},gt,en,{children:m.jsxs(Fe,P({},kn,{children:[de,M?m.jsx(rt,P({},ct,{ref:Oe})):null]}))}))}))]})}),FN=k0e;function P0e(e){return vt("MuiSwitch",e)}const M0e=yt("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),co=M0e,T0e=["className","color","edge","size","sx"],I0e=e=>{const{classes:t,edge:n,size:r,color:o,checked:i,disabled:a}=e,s={root:["root",n&&`edge${De(n)}`,`size${De(r)}`],switchBase:["switchBase",`color${De(o)}`,i&&"checked",a&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=Ke(s,P0e,t);return P({},t,l)},E0e=ke("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${De(n.edge)}`],t[`size${De(n.size)}`]]}})(({ownerState:e})=>P({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},e.edge==="start"&&{marginLeft:-8},e.edge==="end"&&{marginRight:-8},e.size==="small"&&{width:40,height:24,padding:7,[`& .${co.thumb}`]:{width:16,height:16},[`& .${co.switchBase}`]:{padding:4,[`&.${co.checked}`]:{transform:"translateX(16px)"}}})),R0e=ke(mN,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${co.input}`]:t.input},n.color!=="default"&&t[`color${De(n.color)}`]]}})(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${co.checked}`]:{transform:"translateX(20px)"},[`&.${co.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${co.checked} + .${co.track}`]:{opacity:.5},[`&.${co.disabled} + .${co.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${co.input}`]:{left:"-100%",width:"300%"}}),({theme:e,ownerState:t})=>P({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Rt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${co.checked}`]:{color:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Rt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${co.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t.color}DisabledColor`]:`${e.palette.mode==="light"?Ox(e.palette[t.color].main,.62):Rx(e.palette[t.color].main,.55)}`}},[`&.${co.checked} + .${co.track}`]:{backgroundColor:(e.vars||e).palette[t.color].main}})),O0e=ke("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`})),A0e=ke("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),F0e=g.forwardRef(function(t,n){const r=$t({props:t,name:"MuiSwitch"}),{className:o,color:i="primary",edge:a=!1,size:s="medium",sx:l}=r,u=be(r,T0e),c=P({},r,{color:i,edge:a,size:s}),f=I0e(c),p=m.jsx(A0e,{className:f.thumb,ownerState:c});return m.jsxs(E0e,{className:Ne(f.root,o),sx:l,ownerState:c,children:[m.jsx(R0e,P({type:"checkbox",icon:p,checkedIcon:p,ref:n,ownerState:c},u,{classes:P({},f,{root:f.switchBase})})),m.jsx(O0e,{className:f.track,ownerState:c})]})}),LN=F0e;function L0e(e){return vt("MuiTab",e)}const j0e=yt("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),Vu=j0e,D0e=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],N0e=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:o,icon:i,label:a,selected:s,disabled:l}=e,u={root:["root",i&&a&&"labelIcon",`textColor${De(n)}`,r&&"fullWidth",o&&"wrapped",s&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]};return Ke(u,L0e,t)},z0e=ke(cl,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${De(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>P({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${Vu.iconWrapper}`]:P({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:e.spacing(1)},t.iconPosition==="end"&&{marginLeft:e.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${Vu.selected}`]:{opacity:1},[`&.${Vu.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Vu.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${Vu.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Vu.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${Vu.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),B0e=g.forwardRef(function(t,n){const r=$t({props:t,name:"MuiTab"}),{className:o,disabled:i=!1,disableFocusRipple:a=!1,fullWidth:s,icon:l,iconPosition:u="top",indicator:c,label:f,onChange:p,onClick:y,onFocus:v,selected:b,selectionFollowsFocus:C,textColor:x="inherit",value:w,wrapped:S=!1}=r,$=be(r,D0e),T=P({},r,{disabled:i,disableFocusRipple:a,selected:b,icon:!!l,iconPosition:u,label:!!f,fullWidth:s,textColor:x,wrapped:S}),k=N0e(T),M=l&&f&&g.isValidElement(l)?g.cloneElement(l,{className:Ne(k.iconWrapper,l.props.className)}):l,E=I=>{!b&&p&&p(I,w),y&&y(I)},N=I=>{C&&!b&&p&&p(I,w),v&&v(I)};return m.jsxs(z0e,P({focusRipple:!a,className:Ne(k.root,o),ref:n,role:"tab","aria-selected":b,disabled:i,onClick:E,onFocus:N,ownerState:T,tabIndex:b?0:-1},$,{children:[u==="top"||u==="start"?m.jsxs(g.Fragment,{children:[M,f]}):m.jsxs(g.Fragment,{children:[f,M]}),c]}))}),l6=B0e,H0e=g.createContext(),W0e=H0e,V0e=g.createContext(),U0e=V0e;function G0e(e){return vt("MuiTableCell",e)}const q0e=yt("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),K0e=q0e,Y0e=["align","className","component","padding","scope","size","sortDirection","variant"],X0e=e=>{const{classes:t,variant:n,align:r,padding:o,size:i,stickyHeader:a}=e,s={root:["root",n,a&&"stickyHeader",r!=="inherit"&&`align${De(r)}`,o!=="normal"&&`padding${De(o)}`,`size${De(i)}`]};return Ke(s,G0e,t)},Q0e=ke("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${De(n.size)}`],n.padding!=="normal"&&t[`padding${De(n.padding)}`],n.align!=="inherit"&&t[`align${De(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>P({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid + ${e.palette.mode==="light"?Ox(Rt(e.palette.divider,1),.88):Rx(Rt(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${K0e.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),Z0e=g.forwardRef(function(t,n){const r=$t({props:t,name:"MuiTableCell"}),{align:o="inherit",className:i,component:a,padding:s,scope:l,size:u,sortDirection:c,variant:f}=r,p=be(r,Y0e),y=g.useContext(W0e),v=g.useContext(U0e),b=v&&v.variant==="head";let C;a?C=a:C=b?"th":"td";let x=l;C==="td"?x=void 0:!x&&b&&(x="col");const w=f||v&&v.variant,S=P({},r,{align:o,component:C,padding:s||(y&&y.padding?y.padding:"normal"),size:u||(y&&y.size?y.size:"medium"),sortDirection:c,stickyHeader:w==="head"&&y&&y.stickyHeader,variant:w}),$=X0e(S);let T=null;return c&&(T=c==="asc"?"ascending":"descending"),m.jsx(Q0e,P({as:C,ref:n,className:Ne($.root,i),"aria-sort":T,scope:x,ownerState:S},p))}),D_=Z0e;function J0e(e){return vt("MuiToolbar",e)}yt("MuiToolbar",["root","gutters","regular","dense"]);const eve=["className","component","disableGutters","variant"],tve=e=>{const{classes:t,disableGutters:n,variant:r}=e;return Ke({root:["root",!n&&"gutters",r]},J0e,t)},nve=ke("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(({theme:e,ownerState:t})=>P({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),rve=g.forwardRef(function(t,n){const r=$t({props:t,name:"MuiToolbar"}),{className:o,component:i="div",disableGutters:a=!1,variant:s="regular"}=r,l=be(r,eve),u=P({},r,{component:i,disableGutters:a,variant:s}),c=tve(u);return m.jsx(nve,P({as:i,className:Ne(c.root,o),ref:n,ownerState:u},l))}),jN=rve,N_=xt(m.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),z_=xt(m.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");var u6,c6,d6,f6,p6,h6,m6,g6;const ove=["backIconButtonProps","count","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton"],ive=g.forwardRef(function(t,n){const{backIconButtonProps:r,count:o,getItemAriaLabel:i,nextIconButtonProps:a,onPageChange:s,page:l,rowsPerPage:u,showFirstButton:c,showLastButton:f}=t,p=be(t,ove),y=Wt(),v=w=>{s(w,0)},b=w=>{s(w,l-1)},C=w=>{s(w,l+1)},x=w=>{s(w,Math.max(0,Math.ceil(o/u)-1))};return m.jsxs("div",P({ref:n},p,{children:[c&&m.jsx(Rr,{onClick:v,disabled:l===0,"aria-label":i("first",l),title:i("first",l),children:y.direction==="rtl"?u6||(u6=m.jsx(t6,{})):c6||(c6=m.jsx(e6,{}))}),m.jsx(Rr,P({onClick:b,disabled:l===0,color:"inherit","aria-label":i("previous",l),title:i("previous",l)},r,{children:y.direction==="rtl"?d6||(d6=m.jsx(z_,{})):f6||(f6=m.jsx(N_,{}))})),m.jsx(Rr,P({onClick:C,disabled:o!==-1?l>=Math.ceil(o/u)-1:!1,color:"inherit","aria-label":i("next",l),title:i("next",l)},a,{children:y.direction==="rtl"?p6||(p6=m.jsx(N_,{})):h6||(h6=m.jsx(z_,{}))})),f&&m.jsx(Rr,{onClick:x,disabled:l>=Math.ceil(o/u)-1,"aria-label":i("last",l),title:i("last",l),children:y.direction==="rtl"?m6||(m6=m.jsx(e6,{})):g6||(g6=m.jsx(t6,{}))})]}))}),ave=ive;function sve(e){return vt("MuiTablePagination",e)}const lve=yt("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]),bc=lve;var v6;const uve=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton"],cve=ke(D_,{name:"MuiTablePagination",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({overflow:"auto",color:(e.vars||e).palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}})),dve=ke(jN,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>P({[`& .${bc.actions}`]:t.actions},t.toolbar)})(({theme:e})=>({minHeight:52,paddingRight:2,[`${e.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[e.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${bc.actions}`]:{flexShrink:0,marginLeft:20}})),fve=ke("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),pve=ke("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})(({theme:e})=>P({},e.typography.body2,{flexShrink:0})),hve=ke(zM,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>P({[`& .${bc.selectIcon}`]:t.selectIcon,[`& .${bc.select}`]:t.select},t.input,t.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${bc.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),mve=ke(rr,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),gve=ke("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})(({theme:e})=>P({},e.typography.body2,{flexShrink:0}));function vve({from:e,to:t,count:n}){return`${e}–${t} of ${n!==-1?n:`more than ${t}`}`}function yve(e){return`Go to ${e} page`}const bve=e=>{const{classes:t}=e;return Ke({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},sve,t)},xve=g.forwardRef(function(t,n){const r=$t({props:t,name:"MuiTablePagination"}),{ActionsComponent:o=ave,backIconButtonProps:i,className:a,colSpan:s,component:l=D_,count:u,getItemAriaLabel:c=yve,labelDisplayedRows:f=vve,labelRowsPerPage:p="Rows per page:",nextIconButtonProps:y,onPageChange:v,onRowsPerPageChange:b,page:C,rowsPerPage:x,rowsPerPageOptions:w=[10,25,50,100],SelectProps:S={},showFirstButton:$=!1,showLastButton:T=!1}=r,k=be(r,uve),M=r,E=bve(M),N=S.native?"option":mve;let I;(l===D_||l==="td")&&(I=s||1e3);const A=ln(S.id),z=ln(S.labelId),L=()=>u===-1?(C+1)*x:x===-1?u:Math.min(u,(C+1)*x);return m.jsx(cve,P({colSpan:I,ref:n,as:l,ownerState:M,className:Ne(E.root,a)},k,{children:m.jsxs(dve,{className:E.toolbar,children:[m.jsx(fve,{className:E.spacer}),w.length>1&&m.jsx(pve,{className:E.selectLabel,id:z,children:p}),w.length>1&&m.jsx(hve,P({variant:"standard"},!S.variant&&{input:v6||(v6=m.jsx(cd,{}))},{value:x,onChange:b,id:A,labelId:z},S,{classes:P({},S.classes,{root:Ne(E.input,E.selectRoot,(S.classes||{}).root),select:Ne(E.select,(S.classes||{}).select),icon:Ne(E.selectIcon,(S.classes||{}).icon)}),children:w.map(O=>g.createElement(N,P({},!lg(N)&&{ownerState:M},{className:E.menuItem,key:O.label?O.label:O,value:O.value?O.value:O}),O.label?O.label:O))})),m.jsx(gve,{className:E.displayedRows,children:f({from:u===0?0:C*x+1,to:L(),count:u===-1?-1:u,page:C})}),m.jsx(o,{className:E.actions,backIconButtonProps:i,count:u,nextIconButtonProps:y,onPageChange:v,page:C,rowsPerPage:x,showFirstButton:$,showLastButton:T,getItemAriaLabel:c})]})}))}),wve=xve;function Cve(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function Sve(e,t,n,r={},o=()=>{}){const{ease:i=Cve,duration:a=300}=r;let s=null;const l=t[e];let u=!1;const c=()=>{u=!0},f=p=>{if(u){o(new Error("Animation cancelled"));return}s===null&&(s=p);const y=Math.min(1,(p-s)/a);if(t[e]=i(y)*(n-l)+l,y>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(f)};return l===n?(o(new Error("Element already at target position")),c):(requestAnimationFrame(f),c)}const $ve=["onChange"],_ve={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function kve(e){const{onChange:t}=e,n=be(e,$ve),r=g.useRef(),o=g.useRef(null),i=()=>{r.current=o.current.offsetHeight-o.current.clientHeight};return dn(()=>{const a=_u(()=>{const l=r.current;i(),l!==r.current&&t(r.current)}),s=ra(o.current);return s.addEventListener("resize",a),()=>{a.clear(),s.removeEventListener("resize",a)}},[t]),g.useEffect(()=>{i(),t(r.current)},[t]),m.jsx("div",P({style:_ve,ref:o},n))}function Pve(e){return vt("MuiTabScrollButton",e)}const Mve=yt("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),Tve=Mve,Ive=["className","slots","slotProps","direction","orientation","disabled"],Eve=e=>{const{classes:t,orientation:n,disabled:r}=e;return Ke({root:["root",n,r&&"disabled"]},Pve,t)},Rve=ke(cl,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:e})=>P({width:40,flexShrink:0,opacity:.8,[`&.${Tve.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),Ove=g.forwardRef(function(t,n){var r,o;const i=$t({props:t,name:"MuiTabScrollButton"}),{className:a,slots:s={},slotProps:l={},direction:u}=i,c=be(i,Ive),p=Wt().direction==="rtl",y=P({isRtl:p},i),v=Eve(y),b=(r=s.StartScrollButtonIcon)!=null?r:N_,C=(o=s.EndScrollButtonIcon)!=null?o:z_,x=Si({elementType:b,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:y}),w=Si({elementType:C,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:y});return m.jsx(Rve,P({component:"div",className:Ne(v.root,a),ref:n,role:null,ownerState:y,tabIndex:null},c,{children:u==="left"?m.jsx(b,P({},x)):m.jsx(C,P({},w))}))}),Ave=Ove;function Fve(e){return vt("MuiTabs",e)}const Lve=yt("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),IS=Lve,jve=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],y6=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,b6=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,Uv=(e,t,n)=>{let r=!1,o=n(e,t);for(;o;){if(o===e.firstChild){if(r)return;r=!0}const i=o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||i)o=n(e,o);else{o.focus();return}}},Dve=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:o,scrollableY:i,centered:a,scrollButtonsHideMobile:s,classes:l}=e;return Ke({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",o&&"scrollableX",i&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",a&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},Fve,l)},Nve=ke("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${IS.scrollButtons}`]:t.scrollButtons},{[`& .${IS.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>P({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${IS.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),zve=ke("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})(({ownerState:e})=>P({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),Bve=ke("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})(({ownerState:e})=>P({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),Hve=ke("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>P({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),Wve=ke(kve)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),x6={},Vve=g.forwardRef(function(t,n){const r=$t({props:t,name:"MuiTabs"}),o=Wt(),i=o.direction==="rtl",{"aria-label":a,"aria-labelledby":s,action:l,centered:u=!1,children:c,className:f,component:p="div",allowScrollButtonsMobile:y=!1,indicatorColor:v="primary",onChange:b,orientation:C="horizontal",ScrollButtonComponent:x=Ave,scrollButtons:w="auto",selectionFollowsFocus:S,slots:$={},slotProps:T={},TabIndicatorProps:k={},TabScrollButtonProps:M={},textColor:E="primary",value:N,variant:I="standard",visibleScrollbar:A=!1}=r,z=be(r,jve),L=I==="scrollable",O=C==="vertical",j=O?"scrollTop":"scrollLeft",H=O?"top":"left",B=O?"bottom":"right",D=O?"clientHeight":"clientWidth",W=O?"height":"width",U=P({},r,{component:p,allowScrollButtonsMobile:y,indicatorColor:v,orientation:C,vertical:O,scrollButtons:w,textColor:E,variant:I,visibleScrollbar:A,fixed:!L,hideScrollbar:L&&!A,scrollableX:L&&!O,scrollableY:L&&O,centered:u&&!L,scrollButtonsHideMobile:!y}),Z=Dve(U),Y=Si({elementType:$.StartScrollButtonIcon,externalSlotProps:T.startScrollButtonIcon,ownerState:U}),se=Si({elementType:$.EndScrollButtonIcon,externalSlotProps:T.endScrollButtonIcon,ownerState:U}),[Q,ne]=g.useState(!1),[re,ge]=g.useState(x6),[xe,fe]=g.useState(!1),[Se,de]=g.useState(!1),[ie,Pe]=g.useState(!1),[$e,me]=g.useState({overflow:"hidden",scrollbarWidth:0}),ue=new Map,ce=g.useRef(null),Te=g.useRef(null),Le=()=>{const X=ce.current;let oe;if(X){const Ue=X.getBoundingClientRect();oe={clientWidth:X.clientWidth,scrollLeft:X.scrollLeft,scrollTop:X.scrollTop,scrollLeftNormalized:sie(X,o.direction),scrollWidth:X.scrollWidth,top:Ue.top,bottom:Ue.bottom,left:Ue.left,right:Ue.right}}let Ee;if(X&&N!==!1){const Ue=Te.current.children;if(Ue.length>0){const Ye=Ue[ue.get(N)];Ee=Ye?Ye.getBoundingClientRect():null}}return{tabsMeta:oe,tabMeta:Ee}},Re=Dn(()=>{const{tabsMeta:X,tabMeta:oe}=Le();let Ee=0,Ue;if(O)Ue="top",oe&&X&&(Ee=oe.top-X.top+X.scrollTop);else if(Ue=i?"right":"left",oe&&X){const at=i?X.scrollLeftNormalized+X.clientWidth-X.scrollWidth:X.scrollLeft;Ee=(i?-1:1)*(oe[Ue]-X[Ue]+at)}const Ye={[Ue]:Ee,[W]:oe?oe[W]:0};if(isNaN(re[Ue])||isNaN(re[W]))ge(Ye);else{const at=Math.abs(re[Ue]-Ye[Ue]),Je=Math.abs(re[W]-Ye[W]);(at>=1||Je>=1)&&ge(Ye)}}),Oe=(X,{animation:oe=!0}={})=>{oe?Sve(j,ce.current,X,{duration:o.transitions.duration.standard}):ce.current[j]=X},K=X=>{let oe=ce.current[j];O?oe+=X:(oe+=X*(i?-1:1),oe*=i&&hD()==="reverse"?-1:1),Oe(oe)},ee=()=>{const X=ce.current[D];let oe=0;const Ee=Array.from(Te.current.children);for(let Ue=0;UeX){Ue===0&&(oe=X);break}oe+=Ye[D]}return oe},pe=()=>{K(-1*ee())},ye=()=>{K(ee())},je=g.useCallback(X=>{me({overflow:null,scrollbarWidth:X})},[]),Ae=()=>{const X={};X.scrollbarSizeListener=L?m.jsx(Wve,{onChange:je,className:Ne(Z.scrollableX,Z.hideScrollbar)}):null;const Ee=L&&(w==="auto"&&(xe||Se)||w===!0);return X.scrollButtonStart=Ee?m.jsx(x,P({slots:{StartScrollButtonIcon:$.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:Y},orientation:C,direction:i?"right":"left",onClick:pe,disabled:!xe},M,{className:Ne(Z.scrollButtons,M.className)})):null,X.scrollButtonEnd=Ee?m.jsx(x,P({slots:{EndScrollButtonIcon:$.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:se},orientation:C,direction:i?"left":"right",onClick:ye,disabled:!Se},M,{className:Ne(Z.scrollButtons,M.className)})):null,X},Ie=Dn(X=>{const{tabsMeta:oe,tabMeta:Ee}=Le();if(!(!Ee||!oe)){if(Ee[H]oe[B]){const Ue=oe[j]+(Ee[B]-oe[B]);Oe(Ue,{animation:X})}}}),Ce=Dn(()=>{L&&w!==!1&&Pe(!ie)});g.useEffect(()=>{const X=_u(()=>{ce.current&&Re()}),oe=ra(ce.current);oe.addEventListener("resize",X);let Ee;return typeof ResizeObserver<"u"&&(Ee=new ResizeObserver(X),Array.from(Te.current.children).forEach(Ue=>{Ee.observe(Ue)})),()=>{X.clear(),oe.removeEventListener("resize",X),Ee&&Ee.disconnect()}},[Re]),g.useEffect(()=>{const X=Array.from(Te.current.children),oe=X.length;if(typeof IntersectionObserver<"u"&&oe>0&&L&&w!==!1){const Ee=X[0],Ue=X[oe-1],Ye={root:ce.current,threshold:.99},at=ht=>{fe(!ht[0].isIntersecting)},Je=new IntersectionObserver(at,Ye);Je.observe(Ee);const nt=ht=>{de(!ht[0].isIntersecting)},_t=new IntersectionObserver(nt,Ye);return _t.observe(Ue),()=>{Je.disconnect(),_t.disconnect()}}},[L,w,ie,c==null?void 0:c.length]),g.useEffect(()=>{ne(!0)},[]),g.useEffect(()=>{Re()}),g.useEffect(()=>{Ie(x6!==re)},[Ie,re]),g.useImperativeHandle(l,()=>({updateIndicator:Re,updateScrollButtons:Ce}),[Re,Ce]);const Ze=m.jsx(Hve,P({},k,{className:Ne(Z.indicator,k.className),ownerState:U,style:P({},re,k.style)}));let Ct=0;const et=g.Children.map(c,X=>{if(!g.isValidElement(X))return null;const oe=X.props.value===void 0?Ct:X.props.value;ue.set(oe,Ct);const Ee=oe===N;return Ct+=1,g.cloneElement(X,P({fullWidth:I==="fullWidth",indicator:Ee&&!Q&&Ze,selected:Ee,selectionFollowsFocus:S,onChange:b,textColor:E,value:oe},Ct===1&&N===!1&&!X.props.tabIndex?{tabIndex:0}:{}))}),Be=X=>{const oe=Te.current,Ee=Gn(oe).activeElement;if(Ee.getAttribute("role")!=="tab")return;let Ye=C==="horizontal"?"ArrowLeft":"ArrowUp",at=C==="horizontal"?"ArrowRight":"ArrowDown";switch(C==="horizontal"&&i&&(Ye="ArrowRight",at="ArrowLeft"),X.key){case Ye:X.preventDefault(),Uv(oe,Ee,b6);break;case at:X.preventDefault(),Uv(oe,Ee,y6);break;case"Home":X.preventDefault(),Uv(oe,null,y6);break;case"End":X.preventDefault(),Uv(oe,null,b6);break}},te=Ae();return m.jsxs(Nve,P({className:Ne(Z.root,f),ownerState:U,ref:n,as:p},z,{children:[te.scrollButtonStart,te.scrollbarSizeListener,m.jsxs(zve,{className:Z.scroller,ownerState:U,style:{overflow:$e.overflow,[O?`margin${i?"Left":"Right"}`:"marginBottom"]:A?void 0:-$e.scrollbarWidth},ref:ce,children:[m.jsx(Bve,{"aria-label":a,"aria-labelledby":s,"aria-orientation":C==="vertical"?"vertical":null,className:Z.flexContainer,ownerState:U,onKeyDown:Be,ref:Te,role:"tablist",children:et}),Q&&Ze]}),te.scrollButtonEnd]}))}),Uve=Vve;function Gve(e){return vt("MuiTextField",e)}yt("MuiTextField",["root"]);const qve=["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"],Kve={standard:_N,filled:bN,outlined:ON},Yve=e=>{const{classes:t}=e;return Ke({root:["root"]},Gve,t)},Xve=ke(xN,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Qve=g.forwardRef(function(t,n){const r=$t({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:i=!1,children:a,className:s,color:l="primary",defaultValue:u,disabled:c=!1,error:f=!1,FormHelperTextProps:p,fullWidth:y=!1,helperText:v,id:b,InputLabelProps:C,inputProps:x,InputProps:w,inputRef:S,label:$,maxRows:T,minRows:k,multiline:M=!1,name:E,onBlur:N,onChange:I,onFocus:A,placeholder:z,required:L=!1,rows:O,select:j=!1,SelectProps:H,type:B,value:D,variant:W="outlined"}=r,U=be(r,qve),Z=P({},r,{autoFocus:i,color:l,disabled:c,error:f,fullWidth:y,multiline:M,required:L,select:j,variant:W}),Y=Yve(Z),se={};W==="outlined"&&(C&&typeof C.shrink<"u"&&(se.notched=C.shrink),se.label=$),j&&((!H||!H.native)&&(se.id=void 0),se["aria-describedby"]=void 0);const Q=ln(b),ne=v&&Q?`${Q}-helper-text`:void 0,re=$&&Q?`${Q}-label`:void 0,ge=Kve[W],xe=m.jsx(ge,P({"aria-describedby":ne,autoComplete:o,autoFocus:i,defaultValue:u,fullWidth:y,multiline:M,name:E,rows:O,maxRows:T,minRows:k,type:B,value:D,id:Q,inputRef:S,onBlur:N,onChange:I,onFocus:A,placeholder:z,inputProps:x},se,w));return m.jsxs(Xve,P({className:Ne(Y.root,s),disabled:c,error:f,fullWidth:y,ref:n,required:L,color:l,variant:W,ownerState:Z},U,{children:[$!=null&&$!==""&&m.jsx(kN,P({htmlFor:Q,id:re},C,{children:$})),j?m.jsx(zM,P({"aria-describedby":ne,id:Q,labelId:re,value:D,input:xe},H,{children:a})):xe,v&&m.jsx(Whe,P({id:ne},p,{children:v}))]}))}),lu=Qve;/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */var pi=function(){return pi=Object.assign||function(t){for(var n,r=1,o=arguments.length;r0?Qr(zp,--Jo):0,hp--,$r===10&&(hp=1,Vx--),$r}function xi(){return $r=Jo2||hg($r)>3?"":" "}function f1e(e,t){for(;--t&&xi()&&!($r<48||$r>102||$r>57&&$r<65||$r>70&&$r<97););return d0(e,E1()+(t<6&&ls()==32&&xi()==32))}function W_(e){for(;xi();)switch($r){case e:return Jo;case 34:case 39:e!==34&&e!==39&&W_($r);break;case 40:e===41&&W_(e);break;case 92:xi();break}return Jo}function p1e(e,t){for(;xi()&&e+$r!==47+10;)if(e+$r===42+42&&ls()===47)break;return"/*"+d0(t,Jo-1)+"*"+Wx(e===47?e:xi())}function h1e(e){for(;!hg(ls());)xi();return d0(e,Jo)}function w6(e){return WN(O1("",null,null,null,[""],e=HN(e),0,[0],e))}function O1(e,t,n,r,o,i,a,s,l){for(var u=0,c=0,f=a,p=0,y=0,v=0,b=1,C=1,x=1,w=0,S="",$=o,T=i,k=r,M=S;C;)switch(v=w,w=xi()){case 40:if(v!=108&&Qr(M,f-1)==58){H_(M+=Sn(R1(w),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:M+=R1(w);break;case 9:case 10:case 13:case 32:M+=d1e(v);break;case 92:M+=f1e(E1()-1,7);continue;case 47:switch(ls()){case 42:case 47:Gv(m1e(p1e(xi(),E1()),t,n),l);break;default:M+="/"}break;case 123*b:s[u++]=Xa(M)*x;case 125*b:case 59:case 0:switch(w){case 0:case 125:C=0;case 59+c:y>0&&Xa(M)-f&&Gv(y>32?S6(M+";",r,n,f-1):S6(Sn(M," ","")+";",r,n,f-2),l);break;case 59:M+=";";default:if(Gv(k=C6(M,t,n,u,c,o,s,S,$=[],T=[],f),i),w===123)if(c===0)O1(M,t,k,k,$,i,f,s,T);else switch(p===99&&Qr(M,3)===110?100:p){case 100:case 109:case 115:O1(e,k,k,r&&Gv(C6(e,k,k,0,0,o,s,S,o,$=[],f),T),o,T,f,s,r?$:T);break;default:O1(M,k,k,k,[""],T,0,s,T)}}u=c=y=0,b=x=1,S=M="",f=a;break;case 58:f=1+Xa(M),y=v;default:if(b<1){if(w==123)--b;else if(w==125&&b++==0&&c1e()==125)continue}switch(M+=Wx(w),w*b){case 38:x=c>0?1:(M+="\f",-1);break;case 44:s[u++]=(Xa(M)-1)*x,x=1;break;case 64:ls()===45&&(M+=R1(xi())),p=ls(),c=f=Xa(S=M+=h1e(E1())),w++;break;case 45:v===45&&Xa(M)==2&&(b=0)}}return i}function C6(e,t,n,r,o,i,a,s,l,u,c){for(var f=o-1,p=o===0?i:[""],y=VM(p),v=0,b=0,C=0;v0?p[x]+" "+w:Sn(w,/&\f/g,p[x])))&&(l[C++]=S);return Ux(e,t,n,o===0?HM:s,l,u,c)}function m1e(e,t,n){return Ux(e,t,n,DN,Wx(u1e()),pg(e,2,-2),0)}function S6(e,t,n,r){return Ux(e,t,n,WM,pg(e,0,r),pg(e,r+1,-1),r)}function xc(e,t){for(var n="",r=VM(e),o=0;o6)switch(Qr(e,t+1)){case 109:if(Qr(e,t+4)!==45)break;case 102:return Sn(e,/(.+:)(.+)-([^]+)/,"$1"+xn+"$2-$3$1"+Ry+(Qr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~H_(e,"stretch")?VN(Sn(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Qr(e,t+1)!==115)break;case 6444:switch(Qr(e,Xa(e)-3-(~H_(e,"!important")&&10))){case 107:return Sn(e,":",":"+xn)+e;case 101:return Sn(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+xn+(Qr(e,14)===45?"inline-":"")+"box$3$1"+xn+"$2$3$1"+lo+"$2box$3")+e}break;case 5936:switch(Qr(e,t+11)){case 114:return xn+e+lo+Sn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return xn+e+lo+Sn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return xn+e+lo+Sn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return xn+e+lo+e+e}return e}var S1e=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case WM:t.return=VN(t.value,t.length);break;case NN:return xc([Uh(t,{value:Sn(t.value,"@","@"+xn)})],o);case HM:if(t.length)return l1e(t.props,function(i){switch(s1e(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return xc([Uh(t,{props:[Sn(i,/:(read-\w+)/,":"+Ry+"$1")]})],o);case"::placeholder":return xc([Uh(t,{props:[Sn(i,/:(plac\w+)/,":"+xn+"input-$1")]}),Uh(t,{props:[Sn(i,/:(plac\w+)/,":"+Ry+"$1")]}),Uh(t,{props:[Sn(i,/:(plac\w+)/,lo+"input-$1")]})],o)}return""})}},A1=typeof document<"u",$1e=A1?void 0:v1e(function(){return BM(function(){var e={};return function(t){return e[t]}})}),_1e=[S1e],UN=function(t){var n=t.key;if(A1&&n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function($){var T=$.getAttribute("data-emotion");T.indexOf(" ")!==-1&&(document.head.appendChild($),$.setAttribute("data-s",""))})}var o=t.stylisPlugins||_1e,i={},a,s=[];A1&&(a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function($){for(var T=$.getAttribute("data-emotion").split(" "),k=1;k=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var A1e={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},F1e=/[A-Z]|^ms/g,L1e=/_EMO_([^_]+?)_([^]*?)_EMO_/g,KN=function(t){return t.charCodeAt(1)===45},M6=function(t){return t!=null&&typeof t!="boolean"},ES=BM(function(e){return KN(e)?e:e.replace(F1e,"-$&").toLowerCase()}),T6=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(L1e,function(r,o,i){return Qa={name:o,styles:i,next:Qa},o})}return A1e[t]!==1&&!KN(t)&&typeof n=="number"&&n!==0?n+"px":n};function mg(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return Qa={name:n.name,styles:n.styles,next:Qa},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)Qa={name:r.name,styles:r.styles,next:Qa},r=r.next;var o=n.styles+";";return o}return j1e(e,t,n)}case"function":{if(e!==void 0){var i=Qa,a=n(e);return Qa=i,mg(e,t,a)}break}}if(t==null)return n;var s=t[n];return s!==void 0?s:n}function j1e(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o96?N1e:z1e},R6=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(a){return t.__emotion_forwardProp(a)&&i(a)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},B1e=typeof document<"u",H1e=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;qN(n,r,o);var i=M1e(function(){return R1e(n,r,o)});if(!B1e&&i!==void 0){for(var a,s=r.name,l=r.next;l!==void 0;)s+=" "+l.name,l=l.next;return g.createElement("style",(a={},a["data-emotion"]=n.key+" "+s,a.dangerouslySetInnerHTML={__html:i},a.nonce=n.sheet.nonce,a))}return null},W1e=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,a;n!==void 0&&(i=n.label,a=n.target);var s=R6(t,n,r),l=s||E6(o),u=!l("as");return function(){var c=arguments,f=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&f.push("label:"+i+";"),c[0]==null||c[0].raw===void 0)f.push.apply(f,c);else{f.push(c[0][0]);for(var p=c.length,y=1;y"u")return!1;var t=da(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function wye(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];!Ji(i)||!gs(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(a){var s=o[a];s===!1?i.removeAttribute(a):i.setAttribute(a,s===!0?"":s)}))})}function Cye(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=a.reduce(function(l,u){return l[u]="",l},{});!Ji(o)||!gs(o)||(Object.assign(o.style,s),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}var Sye={name:"applyStyles",enabled:!0,phase:"write",fn:wye,effect:Cye,requires:["computeStyles"]};function us(e){return e.split("-")[0]}var wc=Math.max,Fy=Math.min,gp=Math.round;function U_(){var e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function oz(){return!/^((?!chrome|android).)*safari/i.test(U_())}function vp(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&Ji(e)&&(o=e.offsetWidth>0&&gp(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&gp(r.height)/e.offsetHeight||1);var a=Uc(e)?da(e):window,s=a.visualViewport,l=!oz()&&n,u=(r.left+(l&&s?s.offsetLeft:0))/o,c=(r.top+(l&&s?s.offsetTop:0))/i,f=r.width/o,p=r.height/i;return{width:f,height:p,top:c,right:u+f,bottom:c+p,left:u,x:u,y:c}}function KM(e){var t=vp(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 iz(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&qM(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function pl(e){return da(e).getComputedStyle(e)}function $ye(e){return["table","td","th"].indexOf(gs(e))>=0}function Mu(e){return((Uc(e)?e.ownerDocument:e.document)||window.document).documentElement}function qx(e){return gs(e)==="html"?e:e.assignedSlot||e.parentNode||(qM(e)?e.host:null)||Mu(e)}function K6(e){return!Ji(e)||pl(e).position==="fixed"?null:e.offsetParent}function _ye(e){var t=/firefox/i.test(U_()),n=/Trident/i.test(U_());if(n&&Ji(e)){var r=pl(e);if(r.position==="fixed")return null}var o=qx(e);for(qM(o)&&(o=o.host);Ji(o)&&["html","body"].indexOf(gs(o))<0;){var i=pl(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 p0(e){for(var t=da(e),n=K6(e);n&&$ye(n)&&pl(n).position==="static";)n=K6(n);return n&&(gs(n)==="html"||gs(n)==="body"&&pl(n).position==="static")?t:n||_ye(e)||t}function YM(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Tm(e,t,n){return wc(e,Fy(t,n))}function kye(e,t,n){var r=Tm(e,t,n);return r>n?n:r}function az(){return{top:0,right:0,bottom:0,left:0}}function sz(e){return Object.assign({},az(),e)}function lz(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Pye=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,sz(typeof t!="number"?t:lz(t,f0))};function Mye(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=us(n.placement),l=YM(s),u=[Xo,sa].indexOf(s)>=0,c=u?"height":"width";if(!(!i||!a)){var f=Pye(o.padding,n),p=KM(i),y=l==="y"?Yo:Xo,v=l==="y"?aa:sa,b=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],C=a[l]-n.rects.reference[l],x=p0(i),w=x?l==="y"?x.clientHeight||0:x.clientWidth||0:0,S=b/2-C/2,$=f[y],T=w-p[c]-f[v],k=w/2-p[c]/2+S,M=Tm($,k,T),E=l;n.modifiersData[r]=(t={},t[E]=M,t.centerOffset=M-k,t)}}function Tye(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)||iz(t.elements.popper,o)&&(t.elements.arrow=o))}var Iye={name:"arrow",enabled:!0,phase:"main",fn:Mye,effect:Tye,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function yp(e){return e.split("-")[1]}var Eye={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Rye(e){var t=e.x,n=e.y,r=window,o=r.devicePixelRatio||1;return{x:gp(t*o)/o||0,y:gp(n*o)/o||0}}function Y6(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,f=e.isFixed,p=a.x,y=p===void 0?0:p,v=a.y,b=v===void 0?0:v,C=typeof c=="function"?c({x:y,y:b}):{x:y,y:b};y=C.x,b=C.y;var x=a.hasOwnProperty("x"),w=a.hasOwnProperty("y"),S=Xo,$=Yo,T=window;if(u){var k=p0(n),M="clientHeight",E="clientWidth";if(k===da(n)&&(k=Mu(n),pl(k).position!=="static"&&s==="absolute"&&(M="scrollHeight",E="scrollWidth")),k=k,o===Yo||(o===Xo||o===sa)&&i===gg){$=aa;var N=f&&k===T&&T.visualViewport?T.visualViewport.height:k[M];b-=N-r.height,b*=l?1:-1}if(o===Xo||(o===Yo||o===aa)&&i===gg){S=sa;var I=f&&k===T&&T.visualViewport?T.visualViewport.width:k[E];y-=I-r.width,y*=l?1:-1}}var A=Object.assign({position:s},u&&Eye),z=c===!0?Rye({x:y,y:b}):{x:y,y:b};if(y=z.x,b=z.y,l){var L;return Object.assign({},A,(L={},L[$]=w?"0":"",L[S]=x?"0":"",L.transform=(T.devicePixelRatio||1)<=1?"translate("+y+"px, "+b+"px)":"translate3d("+y+"px, "+b+"px, 0)",L))}return Object.assign({},A,(t={},t[$]=w?b+"px":"",t[S]=x?y+"px":"",t.transform="",t))}function Oye(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,a=i===void 0?!0:i,s=n.roundOffsets,l=s===void 0?!0:s,u={placement:us(t.placement),variation:yp(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,Y6(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Y6(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})}var Aye={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Oye,data:{}},qv={passive:!0};function Fye(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,a=r.resize,s=a===void 0?!0:a,l=da(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(c){c.addEventListener("scroll",n.update,qv)}),s&&l.addEventListener("resize",n.update,qv),function(){i&&u.forEach(function(c){c.removeEventListener("scroll",n.update,qv)}),s&&l.removeEventListener("resize",n.update,qv)}}var Lye={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Fye,data:{}},jye={left:"right",right:"left",bottom:"top",top:"bottom"};function F1(e){return e.replace(/left|right|bottom|top/g,function(t){return jye[t]})}var Dye={start:"end",end:"start"};function X6(e){return e.replace(/start|end/g,function(t){return Dye[t]})}function XM(e){var t=da(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function QM(e){return vp(Mu(e)).left+XM(e).scrollLeft}function Nye(e,t){var n=da(e),r=Mu(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;var u=oz();(u||!u&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s+QM(e),y:l}}function zye(e){var t,n=Mu(e),r=XM(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=wc(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=wc(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+QM(e),l=-r.scrollTop;return pl(o||n).direction==="rtl"&&(s+=wc(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}function ZM(e){var t=pl(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function uz(e){return["html","body","#document"].indexOf(gs(e))>=0?e.ownerDocument.body:Ji(e)&&ZM(e)?e:uz(qx(e))}function Im(e,t){var n;t===void 0&&(t=[]);var r=uz(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=da(r),a=o?[i].concat(i.visualViewport||[],ZM(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(Im(qx(a)))}function G_(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Bye(e,t){var n=vp(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 Q6(e,t,n){return t===nz?G_(Nye(e,n)):Uc(t)?Bye(t,n):G_(zye(Mu(e)))}function Hye(e){var t=Im(qx(e)),n=["absolute","fixed"].indexOf(pl(e).position)>=0,r=n&&Ji(e)?p0(e):e;return Uc(r)?t.filter(function(o){return Uc(o)&&iz(o,r)&&gs(o)!=="body"}):[]}function Wye(e,t,n,r){var o=t==="clippingParents"?Hye(e):[].concat(t),i=[].concat(o,[n]),a=i[0],s=i.reduce(function(l,u){var c=Q6(e,u,r);return l.top=wc(c.top,l.top),l.right=Fy(c.right,l.right),l.bottom=Fy(c.bottom,l.bottom),l.left=wc(c.left,l.left),l},Q6(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function cz(e){var t=e.reference,n=e.element,r=e.placement,o=r?us(r):null,i=r?yp(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(o){case Yo:l={x:a,y:t.y-n.height};break;case aa:l={x:a,y:t.y+t.height};break;case sa:l={x:t.x+t.width,y:s};break;case Xo:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var u=o?YM(o):null;if(u!=null){var c=u==="y"?"height":"width";switch(i){case mp:l[u]=l[u]-(t[c]/2-n[c]/2);break;case gg:l[u]=l[u]+(t[c]/2-n[c]/2);break}}return l}function vg(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,a=i===void 0?e.strategy:i,s=n.boundary,l=s===void 0?uye:s,u=n.rootBoundary,c=u===void 0?nz:u,f=n.elementContext,p=f===void 0?Gh:f,y=n.altBoundary,v=y===void 0?!1:y,b=n.padding,C=b===void 0?0:b,x=sz(typeof C!="number"?C:lz(C,f0)),w=p===Gh?cye:Gh,S=e.rects.popper,$=e.elements[v?w:p],T=Wye(Uc($)?$:$.contextElement||Mu(e.elements.popper),l,c,a),k=vp(e.elements.reference),M=cz({reference:k,element:S,strategy:"absolute",placement:o}),E=G_(Object.assign({},S,M)),N=p===Gh?E:k,I={top:T.top-N.top+x.top,bottom:N.bottom-T.bottom+x.bottom,left:T.left-N.left+x.left,right:N.right-T.right+x.right},A=e.modifiersData.offset;if(p===Gh&&A){var z=A[o];Object.keys(I).forEach(function(L){var O=[sa,aa].indexOf(L)>=0?1:-1,j=[Yo,aa].indexOf(L)>=0?"y":"x";I[L]+=z[j]*O})}return I}function Vye(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?rz:l,c=yp(r),f=c?s?q6:q6.filter(function(v){return yp(v)===c}):f0,p=f.filter(function(v){return u.indexOf(v)>=0});p.length===0&&(p=f);var y=p.reduce(function(v,b){return v[b]=vg(e,{placement:b,boundary:o,rootBoundary:i,padding:a})[us(b)],v},{});return Object.keys(y).sort(function(v,b){return y[v]-y[b]})}function Uye(e){if(us(e)===GM)return[];var t=F1(e);return[X6(e),t,X6(t)]}function Gye(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,s=a===void 0?!0:a,l=n.fallbackPlacements,u=n.padding,c=n.boundary,f=n.rootBoundary,p=n.altBoundary,y=n.flipVariations,v=y===void 0?!0:y,b=n.allowedAutoPlacements,C=t.options.placement,x=us(C),w=x===C,S=l||(w||!v?[F1(C)]:Uye(C)),$=[C].concat(S).reduce(function(Q,ne){return Q.concat(us(ne)===GM?Vye(t,{placement:ne,boundary:c,rootBoundary:f,padding:u,flipVariations:v,allowedAutoPlacements:b}):ne)},[]),T=t.rects.reference,k=t.rects.popper,M=new Map,E=!0,N=$[0],I=0;I<$.length;I++){var A=$[I],z=us(A),L=yp(A)===mp,O=[Yo,aa].indexOf(z)>=0,j=O?"width":"height",H=vg(t,{placement:A,boundary:c,rootBoundary:f,altBoundary:p,padding:u}),B=O?L?sa:Xo:L?aa:Yo;T[j]>k[j]&&(B=F1(B));var D=F1(B),W=[];if(i&&W.push(H[z]<=0),s&&W.push(H[B]<=0,H[D]<=0),W.every(function(Q){return Q})){N=A,E=!1;break}M.set(A,W)}if(E)for(var U=v?3:1,Z=function(ne){var re=$.find(function(ge){var xe=M.get(ge);if(xe)return xe.slice(0,ne).every(function(fe){return fe})});if(re)return N=re,"break"},Y=U;Y>0;Y--){var se=Z(Y);if(se==="break")break}t.placement!==N&&(t.modifiersData[r]._skip=!0,t.placement=N,t.reset=!0)}}var qye={name:"flip",enabled:!0,phase:"main",fn:Gye,requiresIfExists:["offset"],data:{_skip:!1}};function Z6(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 J6(e){return[Yo,sa,aa,Xo].some(function(t){return e[t]>=0})}function Kye(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=vg(t,{elementContext:"reference"}),s=vg(t,{altBoundary:!0}),l=Z6(a,r),u=Z6(s,o,i),c=J6(l),f=J6(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})}var Yye={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Kye};function Xye(e,t,n){var r=us(e),o=[Xo,Yo].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[Xo,sa].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function Qye(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,a=rz.reduce(function(c,f){return c[f]=Xye(f,t.rects,i),c},{}),s=a[t.placement],l=s.x,u=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}var Zye={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Qye};function Jye(e){var t=e.state,n=e.name;t.modifiersData[n]=cz({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var ebe={name:"popperOffsets",enabled:!0,phase:"read",fn:Jye,data:{}};function tbe(e){return e==="x"?"y":"x"}function nbe(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,s=a===void 0?!1:a,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,f=n.padding,p=n.tether,y=p===void 0?!0:p,v=n.tetherOffset,b=v===void 0?0:v,C=vg(t,{boundary:l,rootBoundary:u,padding:f,altBoundary:c}),x=us(t.placement),w=yp(t.placement),S=!w,$=YM(x),T=tbe($),k=t.modifiersData.popperOffsets,M=t.rects.reference,E=t.rects.popper,N=typeof b=="function"?b(Object.assign({},t.rects,{placement:t.placement})):b,I=typeof N=="number"?{mainAxis:N,altAxis:N}:Object.assign({mainAxis:0,altAxis:0},N),A=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,z={x:0,y:0};if(k){if(i){var L,O=$==="y"?Yo:Xo,j=$==="y"?aa:sa,H=$==="y"?"height":"width",B=k[$],D=B+C[O],W=B-C[j],U=y?-E[H]/2:0,Z=w===mp?M[H]:E[H],Y=w===mp?-E[H]:-M[H],se=t.elements.arrow,Q=y&&se?KM(se):{width:0,height:0},ne=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:az(),re=ne[O],ge=ne[j],xe=Tm(0,M[H],Q[H]),fe=S?M[H]/2-U-xe-re-I.mainAxis:Z-xe-re-I.mainAxis,Se=S?-M[H]/2+U+xe+ge+I.mainAxis:Y+xe+ge+I.mainAxis,de=t.elements.arrow&&p0(t.elements.arrow),ie=de?$==="y"?de.clientTop||0:de.clientLeft||0:0,Pe=(L=A==null?void 0:A[$])!=null?L:0,$e=B+fe-Pe-ie,me=B+Se-Pe,ue=Tm(y?Fy(D,$e):D,B,y?wc(W,me):W);k[$]=ue,z[$]=ue-B}if(s){var ce,Te=$==="x"?Yo:Xo,Le=$==="x"?aa:sa,Re=k[T],Oe=T==="y"?"height":"width",K=Re+C[Te],ee=Re-C[Le],pe=[Yo,Xo].indexOf(x)!==-1,ye=(ce=A==null?void 0:A[T])!=null?ce:0,je=pe?K:Re-M[Oe]-E[Oe]-ye+I.altAxis,Ae=pe?Re+M[Oe]+E[Oe]-ye-I.altAxis:ee,Ie=y&&pe?kye(je,Re,Ae):Tm(y?je:K,Re,y?Ae:ee);k[T]=Ie,z[T]=Ie-Re}t.modifiersData[r]=z}}var rbe={name:"preventOverflow",enabled:!0,phase:"main",fn:nbe,requiresIfExists:["offset"]};function obe(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function ibe(e){return e===da(e)||!Ji(e)?XM(e):obe(e)}function abe(e){var t=e.getBoundingClientRect(),n=gp(t.width)/e.offsetWidth||1,r=gp(t.height)/e.offsetHeight||1;return n!==1||r!==1}function sbe(e,t,n){n===void 0&&(n=!1);var r=Ji(t),o=Ji(t)&&abe(t),i=Mu(t),a=vp(e,o,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((gs(t)!=="body"||ZM(i))&&(s=ibe(t)),Ji(t)?(l=vp(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=QM(i))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function lbe(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&o(l)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function ube(e){var t=lbe(e);return xye.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function cbe(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function dbe(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 eA={placement:"bottom",modifiers:[],strategy:"absolute"};function tA(){for(var e=arguments.length,t=new Array(e),n=0;n .`,` { + `,`; + + `,`; + } +`],[` + position: relative; + width: 100%; + + `,`; + + `,`; + + > .`,` { + `,`; + + `,`; + } +`])),function(e){var t=e.menuItemStyles;return t},function(e){var t=e.rootStyles;return t},Tn.button,function(e){var t=e.level,n=e.disabled,r=e.active,o=e.collapsed,i=e.rtl;return dz({level:t,disabled:n,active:r,collapsed:o,rtl:i})},function(e){var t=e.buttonStyles;return t}),ybe=function(e,t){var n,r=e.children,o=e.className,i=e.label,a=e.icon,s=e.title,l=e.prefix,u=e.suffix,c=e.open,f=e.defaultOpen,p=e.active,y=p===void 0?!1:p,v=e.disabled,b=v===void 0?!1:v,C=e.rootStyles,x=e.component,w=e.onOpenChange,S=e.onClick,$=e.onKeyUp,T=Vc(e,["children","className","label","icon","title","prefix","suffix","open","defaultOpen","active","disabled","rootStyles","component","onOpenChange","onClick","onKeyUp"]),k=ot.useContext(Ay),M=ot.useContext(Gx),E=M.collapsed,N=M.rtl,I=M.transitionDuration,A=UM(),z=A.renderExpandIcon,L=A.closeOnClick,O=A.menuItemStyles,j=A.transitionDuration,H=ot.useState(!!f),B=H[0],D=H[1],W=ot.useState(!1),U=W[0],Z=W[1],Y=ot.useState(!1),se=Y[0],Q=Y[1],ne=ot.useRef(null),re=ot.useRef(null),ge=ot.useRef(),xe=mbe({level:k,buttonRef:ne,contentRef:re}).popperInstance,fe=function(){var ue=re.current;if(ue){ue.style.display="block",ue.style.overflow="hidden",ue.style.height="auto";var ce=ue.offsetHeight;ue.style.height="0px",ue.offsetHeight,ue.style.height="".concat(ce,"px"),ge.current=setTimeout(function(){ue.style.overflow="auto",ue.style.height="auto"},j)}},Se=function(){var ue=re.current;ue&&(ue.style.overflow="hidden",ue.style.height="".concat(ue.offsetHeight,"px"),ue.offsetHeight,ue.style.height="0px",ge.current=setTimeout(function(){ue.style.overflow="auto",ue.style.display="none"},j))},de=function(){if(!(k===0&&E)){clearTimeout(Number(ge.current));var ue=c??B;ue?Se():fe(),w==null||w(!ue),typeof c>"u"&&D(!B)}},ie=function(ue){S==null||S(ue),de()},Pe=function(ue){$==null||$(ue),ue.key==="Enter"&&de()},$e=function(ue){if(O){var ce={level:k,disabled:b,active:y,isSubmenu:!0,open:c??B},Te=O.root,Le=O.button,Re=O.label,Oe=O.icon,K=O.prefix,ee=O.suffix,pe=O.subMenuContent,ye=O.SubMenuExpandIcon;switch(ue){case"root":return typeof Te=="function"?Te(ce):Te;case"button":return typeof Le=="function"?Le(ce):Le;case"label":return typeof Re=="function"?Re(ce):Re;case"icon":return typeof Oe=="function"?Oe(ce):Oe;case"prefix":return typeof K=="function"?K(ce):K;case"suffix":return typeof ee=="function"?ee(ce):ee;case"SubMenuExpandIcon":return typeof ye=="function"?ye(ce):ye;case"subMenuContent":return typeof pe=="function"?pe(ce):pe;default:return}}};ot.useEffect(function(){setTimeout(function(){return xe==null?void 0:xe.update()},I),E&&k===0&&Z(!1)},[E,k,N,I,xe]),ot.useEffect(function(){var ue=function(Re){var Oe,K,ee;!U&&(!((Oe=ne.current)===null||Oe===void 0)&&Oe.contains(Re))?Z(!0):(L&&!(!((K=Re.closest(".".concat(Tn.menuItemRoot)))===null||K===void 0)&&K.classList.contains(Tn.subMenuRoot))||!(!((ee=re.current)===null||ee===void 0)&&ee.contains(Re))&&U)&&Z(!1)},ce=function(Re){ue(Re.target)},Te=function(Re){Re.key==="Enter"?ue(Re.target):Re.key==="Escape"&&Z(!1)},Le=function(){document.removeEventListener("click",ce),document.removeEventListener("keyup",Te)};return Le(),E&&k===0&&(document.addEventListener("click",ce,!1),document.addEventListener("keyup",Te,!1)),function(){Le()}},[E,k,L,U]),ot.useEffect(function(){Q(!0)},[]);var me=(n={},n[Tn.active]=y,n[Tn.disabled]=b,n[Tn.open]=c??B,n);return ot.createElement(vbe,{ref:t,className:Ir(Tn.menuItemRoot,Tn.subMenuRoot,me,o),menuItemStyles:$e("root"),level:k,collapsed:E,rtl:N,disabled:b,active:y,buttonStyles:$e("button"),rootStyles:C},ot.createElement(fz,pi({"data-testid":"".concat(Tn.button,"-test-id"),ref:ne,title:s,className:Ir(Tn.button,me),onClick:ie,onKeyUp:Pe,component:x,tabIndex:0},T),a&&ot.createElement(JN,{rtl:N,className:Ir(Tn.icon,me),rootStyles:$e("icon")},a),l&&ot.createElement(ez,{collapsed:E,transitionDuration:I,firstLevel:k===0,className:Ir(Tn.prefix,me),rtl:N,rootStyles:$e("prefix")},l),ot.createElement(ZN,{className:Ir(Tn.label,me),rootStyles:$e("label")},i),u&&ot.createElement(tz,{collapsed:E,transitionDuration:I,firstLevel:k===0,className:Ir(Tn.suffix,me),rootStyles:$e("suffix")},u),ot.createElement(aye,{rtl:N,className:Ir(Tn.SubMenuExpandIcon,me),collapsed:E,level:k,rootStyles:$e("SubMenuExpandIcon")},z?z({level:k,disabled:b,active:y,open:c??B}):E&&k===0?ot.createElement(lye,null):ot.createElement(sye,{rtl:N,open:c??B}))),ot.createElement(iye,{ref:re,openWhenCollapsed:U,open:c??B,firstLevel:k===0,collapsed:E,defaultOpen:c&&!se||f,className:Ir(Tn.subMenuContent,me),rootStyles:$e("subMenuContent")},ot.createElement(Ay.Provider,{value:k+1},r)))};ot.forwardRef(ybe);var nA,bbe=Hr.li(rA||(rA=go([` + width: 100%; + position: relative; + + `,`; + + `,`; + + > .`,` { + `,`; + + `,`; + } +`],[` + width: 100%; + position: relative; + + `,`; + + `,`; + + > .`,` { + `,`; + + `,`; + } +`])),function(e){var t=e.menuItemStyles;return t},function(e){var t=e.rootStyles;return t},Tn.button,function(e){var t=e.level,n=e.disabled,r=e.active,o=e.collapsed,i=e.rtl;return dz({level:t,disabled:n,active:r,collapsed:o,rtl:i})},function(e){var t=e.buttonStyles;return t}),xbe=function(e,t){var n,r=e.children,o=e.icon,i=e.className,a=e.prefix,s=e.suffix,l=e.active,u=l===void 0?!1:l,c=e.disabled,f=c===void 0?!1:c,p=e.component,y=e.rootStyles,v=Vc(e,["children","icon","className","prefix","suffix","active","disabled","component","rootStyles"]),b=ot.useContext(Ay),C=ot.useContext(Gx),x=C.collapsed,w=C.rtl,S=C.transitionDuration,$=UM().menuItemStyles,T=function(M){if($){var E={level:b,disabled:f,active:u,isSubmenu:!1},N=$.root,I=$.button,A=$.label,z=$.icon,L=$.prefix,O=$.suffix;switch(M){case"root":return typeof N=="function"?N(E):N;case"button":return typeof I=="function"?I(E):I;case"label":return typeof A=="function"?A(E):A;case"icon":return typeof z=="function"?z(E):z;case"prefix":return typeof L=="function"?L(E):L;case"suffix":return typeof O=="function"?O(E):O;default:return}}},k=(n={},n[Tn.active]=u,n[Tn.disabled]=f,n);return ot.createElement(bbe,{ref:t,className:Ir(Tn.menuItemRoot,k,i),menuItemStyles:T("root"),level:b,collapsed:x,rtl:w,disabled:f,active:u,buttonStyles:T("button"),rootStyles:y},ot.createElement(fz,pi({className:Ir(Tn.button,k),"data-testid":"".concat(Tn.button,"-test-id"),component:p,tabIndex:0},v),o&&ot.createElement(JN,{rtl:w,className:Ir(Tn.icon,k),rootStyles:T("icon")},o),a&&ot.createElement(ez,{collapsed:x,transitionDuration:S,firstLevel:b===0,className:Ir(Tn.prefix,k),rtl:w,rootStyles:T("prefix")},a),ot.createElement(ZN,{className:Ir(Tn.label,k),rootStyles:T("label")},r),s&&ot.createElement(tz,{collapsed:x,transitionDuration:S,firstLevel:b===0,className:Ir(Tn.suffix,k),rootStyles:T("suffix")},s)))},pz=ot.forwardRef(xbe),rA;const wbe=xt(m.jsx("path",{d:"M6.5 10h-2v7h2v-7zm6 0h-2v7h2v-7zm8.5 9H2v2h19v-2zm-2.5-9h-2v7h2v-7zm-7-6.74L16.71 6H6.29l5.21-2.74m0-2.26L2 6v2h19V6l-9.5-5z"}),"AccountBalanceOutlined"),Cbe=xt(m.jsx("path",{d:"m20.54 5.23-1.39-1.68C18.88 3.21 18.47 3 18 3H6c-.47 0-.88.21-1.16.55L3.46 5.23C3.17 5.57 3 6.02 3 6.5V19c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6.5c0-.48-.17-.93-.46-1.27zM12 17.5 6.5 12H10v-2h4v2h3.5L12 17.5zM5.12 5l.81-1h12l.94 1H5.12z"}),"Archive"),Sbe=xt(m.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-2zm0 16H5V5h14v14zM7 10h2v7H7zm4-3h2v10h-2zm4 6h2v4h-2z"}),"AssessmentOutlined"),$be=xt(m.jsx("path",{d:"M11.8 10.9c-2.27-.59-3-1.2-3-2.15 0-1.09 1.01-1.85 2.7-1.85 1.78 0 2.44.85 2.5 2.1h2.21c-.07-1.72-1.12-3.3-3.21-3.81V3h-3v2.16c-1.94.42-3.5 1.68-3.5 3.61 0 2.31 1.91 3.46 4.7 4.13 2.5.6 3 1.48 3 2.41 0 .69-.49 1.79-2.7 1.79-2.06 0-2.87-.92-2.98-2.1h-2.2c.12 2.19 1.76 3.42 3.68 3.83V21h3v-2.15c1.95-.37 3.5-1.5 3.5-3.55 0-2.84-2.43-3.81-4.7-4.4z"}),"AttachMoney"),_be=xt(m.jsx("path",{d:"M11.8 10.9c-2.27-.59-3-1.2-3-2.15 0-1.09 1.01-1.85 2.7-1.85 1.78 0 2.44.85 2.5 2.1h2.21c-.07-1.72-1.12-3.3-3.21-3.81V3h-3v2.16c-1.94.42-3.5 1.68-3.5 3.61 0 2.31 1.91 3.46 4.7 4.13 2.5.6 3 1.48 3 2.41 0 .69-.49 1.79-2.7 1.79-2.06 0-2.87-.92-2.98-2.1h-2.2c.12 2.19 1.76 3.42 3.68 3.83V21h3v-2.15c1.95-.37 3.5-1.5 3.5-3.55 0-2.84-2.43-3.81-4.7-4.4z"}),"AttachMoneyOutlined"),kbe=xt(m.jsx("path",{d:"M13 7.83c.85-.3 1.53-.98 1.83-1.83H18l-3 7c0 1.66 1.57 3 3.5 3s3.5-1.34 3.5-3l-3-7h2V4h-6.17c-.41-1.17-1.52-2-2.83-2s-2.42.83-2.83 2H3v2h2l-3 7c0 1.66 1.57 3 3.5 3S9 14.66 9 13L6 6h3.17c.3.85.98 1.53 1.83 1.83V19H2v2h20v-2h-9V7.83zM20.37 13h-3.74l1.87-4.36L20.37 13zm-13 0H3.63L5.5 8.64 7.37 13zM12 6c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1z"}),"Balance"),Pbe=xt(m.jsx("path",{d:"M13 2.05v3.03c3.39.49 6 3.39 6 6.92 0 .9-.18 1.75-.48 2.54l2.6 1.53c.56-1.24.88-2.62.88-4.07 0-5.18-3.95-9.45-9-9.95zM12 19c-3.87 0-7-3.13-7-7 0-3.53 2.61-6.43 6-6.92V2.05c-5.06.5-9 4.76-9 9.95 0 5.52 4.47 10 9.99 10 3.31 0 6.24-1.61 8.06-4.09l-2.6-1.53C16.17 17.98 14.21 19 12 19z"}),"DataUsageOutlined"),h0=xt(m.jsx("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}),"Edit"),Mbe=xt(m.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.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm-5.5-2.5 7.51-3.49L17.5 6.5 9.99 9.99 6.5 17.5zm5.5-6.6c.61 0 1.1.49 1.1 1.1s-.49 1.1-1.1 1.1-1.1-.49-1.1-1.1.49-1.1 1.1-1.1z"}),"ExploreOutlined"),Tbe=xt(m.jsx("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm-1 4 6 6v10c0 1.1-.9 2-2 2H7.99C6.89 23 6 22.1 6 21l.01-14c0-1.1.89-2 1.99-2h7zm-1 7h5.5L14 6.5V12z"}),"FileCopy"),oA=xt(m.jsx("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"MenuOutlined"),Ibe=xt(m.jsx("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreHoriz"),Ebe=xt(m.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreVert"),Rbe=xt(m.jsx("path",{d:"M14 2H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V8l-6-6zM6 20V4h7v4h5v12H6zm5-1h2v-1h1c.55 0 1-.45 1-1v-3c0-.55-.45-1-1-1h-3v-1h4v-2h-2V9h-2v1h-1c-.55 0-1 .45-1 1v3c0 .55.45 1 1 1h3v1H9v2h2v1z"}),"RequestQuoteOutlined"),Obe=xt(m.jsx("path",{d:"m19.83 7.5-2.27-2.27c.07-.42.18-.81.32-1.15.08-.18.12-.37.12-.58 0-.83-.67-1.5-1.5-1.5-1.64 0-3.09.79-4 2h-5C4.46 4 2 6.46 2 9.5S4.5 21 4.5 21H10v-2h2v2h5.5l1.68-5.59 2.82-.94V7.5h-2.17zM13 9H8V7h5v2zm3 2c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1z"}),"Savings"),Abe=xt(m.jsx("path",{d:"M19.43 12.98c.04-.32.07-.64.07-.98 0-.34-.03-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l-2-3.46c-.09-.16-.26-.25-.44-.25-.06 0-.12.01-.17.03l-2.49 1c-.52-.4-1.08-.73-1.69-.98l-.38-2.65C14.46 2.18 14.25 2 14 2h-4c-.25 0-.46.18-.49.42l-.38 2.65c-.61.25-1.17.59-1.69.98l-2.49-1c-.06-.02-.12-.03-.18-.03-.17 0-.34.09-.43.25l-2 3.46c-.13.22-.07.49.12.64l2.11 1.65c-.04.32-.07.65-.07.98 0 .33.03.66.07.98l-2.11 1.65c-.19.15-.24.42-.12.64l2 3.46c.09.16.26.25.44.25.06 0 .12-.01.17-.03l2.49-1c.52.4 1.08.73 1.69.98l.38 2.65c.03.24.24.42.49.42h4c.25 0 .46-.18.49-.42l.38-2.65c.61-.25 1.17-.59 1.69-.98l2.49 1c.06.02.12.03.18.03.17 0 .34-.09.43-.25l2-3.46c.12-.22.07-.49-.12-.64l-2.11-1.65zm-1.98-1.71c.04.31.05.52.05.73 0 .21-.02.43-.05.73l-.14 1.13.89.7 1.08.84-.7 1.21-1.27-.51-1.04-.42-.9.68c-.43.32-.84.56-1.25.73l-1.06.43-.16 1.13-.2 1.35h-1.4l-.19-1.35-.16-1.13-1.06-.43c-.43-.18-.83-.41-1.23-.71l-.91-.7-1.06.43-1.27.51-.7-1.21 1.08-.84.89-.7-.14-1.13c-.03-.31-.05-.54-.05-.74s.02-.43.05-.73l.14-1.13-.89-.7-1.08-.84.7-1.21 1.27.51 1.04.42.9-.68c.43-.32.84-.56 1.25-.73l1.06-.43.16-1.13.2-1.35h1.39l.19 1.35.16 1.13 1.06.43c.43.18.83.41 1.23.71l.91.7 1.06-.43 1.27-.51.7 1.21-1.07.85-.89.7.14 1.13zM12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm0 6c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z"}),"SettingsOutlined"),Fbe=xt(m.jsx("path",{d:"M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zm10 0c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2zm-8.9-5h7.45c.75 0 1.41-.41 1.75-1.03L21 4.96 19.25 4l-3.7 7H8.53L4.27 2H1v2h2l3.6 7.59-1.35 2.44C4.52 15.37 5.48 17 7 17h12v-2H7l1.1-2zM12 2l4 4-4 4-1.41-1.41L12.17 7H8V5h4.17l-1.59-1.59L12 2z"}),"ShoppingCartCheckout"),Lbe=xt(m.jsx("path",{d:"M4 9h4v11H4zm0-5h4v4H4zm6 3h4v4h-4zm6 3h4v4h-4zm0 5h4v5h-4zm-6-3h4v8h-4z"}),"StackedBarChart"),jbe=xt(m.jsx("path",{d:"M16 17.01V10h-2v7.01h-3L15 21l4-3.99h-3zM9 3 5 6.99h3V14h2V6.99h3L9 3zm7 14.01V10h-2v7.01h-3L15 21l4-3.99h-3zM9 3 5 6.99h3V14h2V6.99h3L9 3z"}),"SwapVertOutlined"),Dbe=xt(m.jsx("path",{d:"M10 10.02h5V21h-5zM17 21h3c1.1 0 2-.9 2-2v-9h-5v11zm3-18H5c-1.1 0-2 .9-2 2v3h19V5c0-1.1-.9-2-2-2zM3 19c0 1.1.9 2 2 2h3V10H3v9z"}),"TableChart"),Nbe=xt(m.jsx("path",{d:"M20 6h-4V4c0-1.11-.89-2-2-2h-4c-1.11 0-2 .89-2 2v2H4c-1.11 0-1.99.89-1.99 2L2 19c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zm-6 0h-4V4h4v2z"}),"Work"),Kx=ot.createContext({hideSidebar:!1,setHideSidebar:()=>{}}),zbe="/fintrack/assets/logo-b74d1d14.svg",Rl=({icon:e,onClick:t,linkTo:n,style:r,text:o})=>m.jsx(pz,{icon:e,onClick:t,component:m.jsx(zoe,{to:n}),children:m.jsx(Ge,{style:r,children:o})});function Bbe(){const e=Wt(),t=_n(e.palette.mode),[n,r]=g.useState(!1),{hideSidebar:o,setHideSidebar:i}=g.useContext(Kx),a=()=>{i(s=>s===!0?!s:s)};return m.jsx(Ve,{sx:{boxShadow:4,display:{xs:o?"block":"none",sm:o?"block":"none",md:o?"block":"none",lg:o?"none":"block"},"& .ps-sidebar-root":{border:"none"},"& .ps-sidebar-container":{background:`${t.primary[400]} !important`,height:"100%",minHeight:"100vh"},"& .ps-menu-icon svg":{fill:`${t.primary[100]} !important`},"& .ps-menu-root .MuiBox-root li a":{borderRadius:"15px"}},children:m.jsx(J1e,{collapsed:n,className:"hidden",width:"290px",children:m.jsxs(nye,{menuItemStyles:{button:{"&:hover, &.active":{backgroundColor:`${t.primary[500]}`,"& .ps-menu-label p":{color:`${t.blueAccent[300]} !important`},"& .ps-menu-icon svg":{fill:`${t.blueAccent[300]} !important`}}}},children:[m.jsx(pz,{onClick:()=>r(!n),icon:n?m.jsx(oA,{}):void 0,style:{margin:"20px 0 20px 0",color:t.grey[100]},children:!n&&m.jsxs(Ve,{display:"flex",justifyContent:"space-between",alignItems:"center",ml:"15px",children:[m.jsxs(Ve,{sx:{alignItems:"center",display:"flex",flexDirection:"row"},children:[m.jsx(dg,{src:zbe,sx:{height:25,width:25}}),m.jsx(Ge,{variant:"h3",color:t.grey[100],ml:1,children:"FinTrack"})]}),m.jsx(Rr,{onClick:()=>r(!n),children:m.jsx(oA,{})})]})}),m.jsxs(Ve,{paddingInline:n?void 0:"5%",sx:{marginBlock:5},children:[m.jsx(Ge,{variant:"h6",color:t.grey[300],sx:{m:"15px 0 5px 30px"},children:"Menu"}),m.jsx(Rl,{icon:m.jsx(Mbe,{color:"secondary"}),onClick:a,linkTo:"/",style:{color:t.grey[100]},text:"Overview"}),m.jsx(Rl,{icon:m.jsx(Pbe,{}),onClick:a,linkTo:"/budget",style:{color:t.grey[100]},text:"Budget"}),m.jsx(Rl,{icon:m.jsx(Rbe,{}),onClick:a,linkTo:"/bills",style:{color:t.grey[100]},text:"Bills"}),m.jsx(Rl,{icon:m.jsx(Sbe,{}),onClick:a,linkTo:"/reports",style:{color:t.grey[100]},text:"Reports & Analytics"}),m.jsx(Rl,{icon:m.jsx(jbe,{}),onClick:a,linkTo:"/debt",style:{color:t.grey[100]},text:"Debt Management"}),m.jsx(Rl,{icon:m.jsx(_be,{}),onClick:a,linkTo:"/investments",style:{color:t.grey[100]},text:"Investments"}),m.jsx(Rl,{icon:m.jsx(wbe,{}),onClick:a,linkTo:"/networth",style:{color:t.grey[100]},text:"Net Worth"}),m.jsx(Rl,{icon:m.jsx(Abe,{}),onClick:a,linkTo:"/settings",style:{color:t.grey[100]},text:"Settings"})]})]})})})}var JM={},hz={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(hz);var ei=hz.exports,RS={};const Hbe=Kee(Fle);var iA;function ti(){return iA||(iA=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=Hbe}(RS)),RS}var Wbe=ei;Object.defineProperty(JM,"__esModule",{value:!0});var e5=JM.default=void 0,Vbe=Wbe(ti()),Ube=m,Gbe=(0,Vbe.default)((0,Ube.jsx)("path",{d:"M12 9c1.65 0 3 1.35 3 3s-1.35 3-3 3-3-1.35-3-3 1.35-3 3-3m0-2c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zM2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1zm18 0h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1s.45 1 1 1zM11 2v2c0 .55.45 1 1 1s1-.45 1-1V2c0-.55-.45-1-1-1s-1 .45-1 1zm0 18v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1zM5.99 4.58c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0s.39-1.03 0-1.41L5.99 4.58zm12.37 12.37c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0 .39-.39.39-1.03 0-1.41l-1.06-1.06zm1.06-10.96c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0l1.06-1.06zM7.05 18.36c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0l1.06-1.06z"}),"LightModeOutlined");e5=JM.default=Gbe;var t5={},qbe=ei;Object.defineProperty(t5,"__esModule",{value:!0});var n5=t5.default=void 0,Kbe=qbe(ti()),Ybe=m,Xbe=(0,Kbe.default)((0,Ybe.jsx)("path",{d:"M9.37 5.51c-.18.64-.27 1.31-.27 1.99 0 4.08 3.32 7.4 7.4 7.4.68 0 1.35-.09 1.99-.27C17.45 17.19 14.93 19 12 19c-3.86 0-7-3.14-7-7 0-2.93 1.81-5.45 4.37-6.49zM12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9 9-4.03 9-9c0-.46-.04-.92-.1-1.36-.98 1.37-2.58 2.26-4.4 2.26-2.98 0-5.4-2.42-5.4-5.4 0-1.81.89-3.42 2.26-4.4-.44-.06-.9-.1-1.36-.1z"}),"DarkModeOutlined");n5=t5.default=Xbe;var r5={},Qbe=ei;Object.defineProperty(r5,"__esModule",{value:!0});var mz=r5.default=void 0,Zbe=Qbe(ti()),Jbe=m,exe=(0,Zbe.default)((0,Jbe.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),"Search");mz=r5.default=exe;var o5={},txe=ei;Object.defineProperty(o5,"__esModule",{value:!0});var gz=o5.default=void 0,nxe=txe(ti()),rxe=m,oxe=(0,nxe.default)((0,rxe.jsx)("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu");gz=o5.default=oxe;var i5={},ixe=ei;Object.defineProperty(i5,"__esModule",{value:!0});var a5=i5.default=void 0,axe=ixe(ti()),sxe=m,lxe=(0,axe.default)((0,sxe.jsx)("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}),"InfoOutlined");a5=i5.default=lxe;var s5={},uxe=ei;Object.defineProperty(s5,"__esModule",{value:!0});var vz=s5.default=void 0,cxe=uxe(ti()),dxe=m,fxe=(0,cxe.default)((0,dxe.jsx)("path",{d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.9 2 2 2zm6-6v-5c0-3.07-1.63-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.64 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2zm-2 1H8v-6c0-2.48 1.51-4.5 4-4.5s4 2.02 4 4.5v6z"}),"NotificationsOutlined");vz=s5.default=fxe;const pxe=[{id:1,type:"expense",title:"New Expense",message:"You spent $50 on groceries.",date:"2022-10-05",read:!1},{id:2,type:"income",title:"New Income",message:"You received $500 from XYZ Company.",date:"2022-10-06",read:!1},{id:3,type:"budget",title:"Budget Alert",message:"You have exceeded your monthly budget for eating out.",date:"2022-10-10",read:!1},{id:4,type:"reminder",title:"Bill Reminder",message:"Your phone bill payment is due in 3 days.",date:"2022-10-15",read:!0},{id:5,type:"savings",title:"Savings Goal Progress",message:"You have saved 50% towards your vacation goal.",date:"2022-10-20",read:!0},{id:6,type:"balance",title:"Account Balance",message:"Your current account balance is $1000.",date:"2022-10-25",read:!0},{id:7,type:"investing",title:"Investment Alert",message:"Your stock XYZ has reached its target price.",date:"2022-10-30",read:!0}],hxe=[{id:1,sender:"John Doe",content:"Congratulations! You have received a bonus of $500. Keep up the good work!",timestamp:"2022-01-10 14:30:00",read:!1},{id:2,sender:"Jane Smith",content:"Reminder: Your monthly mortgage payment of $1500 is due on January 15th.",timestamp:"2022-01-09 10:15:00",read:!1},{id:3,sender:"Credit Card Company",content:"Your credit card payment of $200 is due on January 20th.",timestamp:"2022-01-08 18:45:00",read:!0},{id:4,sender:"John Doe",content:"Congratulations! Your investment portfolio has gained 10% in the past month.",timestamp:"2022-01-05 09:20:00",read:!0},{id:5,sender:"Jane Smith",content:"A new transaction of $50 has been made on your credit card.",timestamp:"2022-01-04 15:55:00",read:!0}];function mxe(){const[e,t]=g.useState(null),n=Wt(),r=_n(n.palette.mode),o=a=>{t(a==null?void 0:a.currentTarget)},i=()=>{t(null)};return m.jsxs(Ve,{children:[m.jsx(Rr,{size:"large","aria-label":"show new notifications",sx:{display:{xs:"none",sm:"none",md:"flex"}},onClick:o,children:m.jsx(fl,{color:"error",variant:"dot",children:m.jsx(vz,{sx:{width:"1.5rem",height:"1.5rem"}})})}),m.jsx(c0,{sx:{mt:"45px","& .MuiMenu-paper":{backgroundColor:r.primary[400]}},anchorEl:e,anchorOrigin:{vertical:"top",horizontal:"right"},keepMounted:!0,transformOrigin:{vertical:"top",horizontal:"right"},open:!!e,onClose:i,children:pxe.map(a=>m.jsxs(Ve,{children:[m.jsxs(PN,{component:"a",sx:{display:"grid",gridTemplateColumns:"2rem 3fr"},children:[m.jsx(fo,{children:!a.read&&m.jsx(fl,{color:"secondary",variant:"dot"})}),m.jsxs(Ve,{children:[m.jsx(Ge,{m:0,variant:"h6",sx:{fontWeight:a.read?"500":"700"},children:a.message}),m.jsxs(Ve,{sx:{alignItems:"center",display:"flex"},children:[m.jsx(Ge,{m:0,paragraph:!0,children:a.date}),m.jsxs(Oa,{sx:{color:r.blueAccent[400],ml:"auto",textTransform:"none"},variant:"text",children:["Go to ",a.type]})]})]})]}),m.jsx(Hc,{sx:{backgroundColor:r.grey[900]}})]},a.id))})]})}var l5={},gxe=ei;Object.defineProperty(l5,"__esModule",{value:!0});var yz=l5.default=void 0,vxe=gxe(ti()),yxe=m,bxe=(0,vxe.default)((0,yxe.jsx)("path",{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 14H4V8l8 5 8-5v10zm-8-7L4 6h16l-8 5z"}),"MailOutlineOutlined");yz=l5.default=bxe;function xxe(){const[e,t]=g.useState(null),n=Wt(),r=_n(n.palette.mode),o=a=>{t(a==null?void 0:a.currentTarget)},i=()=>{t(null)};return m.jsxs(Ve,{children:[m.jsx(Rr,{size:"large","aria-label":"show new mails",sx:{display:{xs:"none",sm:"none",md:"flex"}},onClick:o,children:m.jsx(fl,{color:"error",variant:"dot",children:m.jsx(yz,{sx:{width:"1.5rem",height:"1.5rem"}})})}),m.jsx(c0,{sx:{mt:"45px","& .MuiMenu-paper":{backgroundColor:r.primary[400]}},anchorEl:e,anchorOrigin:{vertical:"top",horizontal:"right"},keepMounted:!0,transformOrigin:{vertical:"top",horizontal:"right"},open:!!e,onClose:i,children:hxe.map(a=>m.jsxs(Ve,{children:[m.jsxs(PN,{component:"a",sx:{display:"grid",gridTemplateColumns:"2rem 3fr"},children:[m.jsx(fo,{children:!a.read&&m.jsx(fl,{color:"secondary",variant:"dot"})}),m.jsxs(Ve,{children:[m.jsx(Ge,{m:0,variant:"h6",sx:{fontWeight:a.read?"500":"700"},children:a.content}),m.jsxs(Ve,{sx:{alignItems:"center",display:"flex"},children:[m.jsx(Ge,{m:0,paragraph:!0,children:a.timestamp}),m.jsx(Ge,{sx:{color:r.blueAccent[300],ml:"auto",textTransform:"none"},variant:"h6",children:a.sender})]})]})]}),m.jsx(Hc,{sx:{backgroundColor:r.grey[900]}})]},a.id))})]})}var u5={},wxe=ei;Object.defineProperty(u5,"__esModule",{value:!0});var bz=u5.default=void 0,Cxe=wxe(ti()),Sxe=m,$xe=(0,Cxe.default)((0,Sxe.jsx)("path",{d:"M12 6c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m0 10c2.7 0 5.8 1.29 6 2H6c.23-.72 3.31-2 6-2m0-12C9.79 4 8 5.79 8 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm0 10c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"PersonOutlined");bz=u5.default=$xe;var c5={},_xe=ei;Object.defineProperty(c5,"__esModule",{value:!0});var xz=c5.default=void 0,kxe=_xe(ti()),Pxe=m,Mxe=(0,kxe.default)((0,Pxe.jsx)("path",{d:"M4 18v-.65c0-.34.16-.66.41-.81C6.1 15.53 8.03 15 10 15c.03 0 .05 0 .08.01.1-.7.3-1.37.59-1.98-.22-.02-.44-.03-.67-.03-2.42 0-4.68.67-6.61 1.82-.88.52-1.39 1.5-1.39 2.53V20h9.26c-.42-.6-.75-1.28-.97-2H4zm6-6c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0-6c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zm10.75 10c0-.22-.03-.42-.06-.63l1.14-1.01-1-1.73-1.45.49c-.32-.27-.68-.48-1.08-.63L18 11h-2l-.3 1.49c-.4.15-.76.36-1.08.63l-1.45-.49-1 1.73 1.14 1.01c-.03.21-.06.41-.06.63s.03.42.06.63l-1.14 1.01 1 1.73 1.45-.49c.32.27.68.48 1.08.63L16 21h2l.3-1.49c.4-.15.76-.36 1.08-.63l1.45.49 1-1.73-1.14-1.01c.03-.21.06-.41.06-.63zM17 18c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z"}),"ManageAccountsOutlined");xz=c5.default=Mxe;var d5={},Txe=ei;Object.defineProperty(d5,"__esModule",{value:!0});var wz=d5.default=void 0,Ixe=Txe(ti()),Exe=m,Rxe=(0,Ixe.default)((0,Exe.jsx)("path",{d:"M15 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0-6c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zm0 8c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4zm-6 4c.22-.72 3.31-2 6-2 2.7 0 5.8 1.29 6 2H9zm-3-3v-3h3v-2H6V7H4v3H1v2h3v3z"}),"PersonAddOutlined");wz=d5.default=Rxe;var f5={},Oxe=ei;Object.defineProperty(f5,"__esModule",{value:!0});var Cz=f5.default=void 0,Axe=Oxe(ti()),Fxe=m,Lxe=(0,Axe.default)((0,Fxe.jsx)("path",{d:"M19.43 12.98c.04-.32.07-.64.07-.98 0-.34-.03-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l-2-3.46c-.09-.16-.26-.25-.44-.25-.06 0-.12.01-.17.03l-2.49 1c-.52-.4-1.08-.73-1.69-.98l-.38-2.65C14.46 2.18 14.25 2 14 2h-4c-.25 0-.46.18-.49.42l-.38 2.65c-.61.25-1.17.59-1.69.98l-2.49-1c-.06-.02-.12-.03-.18-.03-.17 0-.34.09-.43.25l-2 3.46c-.13.22-.07.49.12.64l2.11 1.65c-.04.32-.07.65-.07.98 0 .33.03.66.07.98l-2.11 1.65c-.19.15-.24.42-.12.64l2 3.46c.09.16.26.25.44.25.06 0 .12-.01.17-.03l2.49-1c.52.4 1.08.73 1.69.98l.38 2.65c.03.24.24.42.49.42h4c.25 0 .46-.18.49-.42l.38-2.65c.61-.25 1.17-.59 1.69-.98l2.49 1c.06.02.12.03.18.03.17 0 .34-.09.43-.25l2-3.46c.12-.22.07-.49-.12-.64l-2.11-1.65zm-1.98-1.71c.04.31.05.52.05.73 0 .21-.02.43-.05.73l-.14 1.13.89.7 1.08.84-.7 1.21-1.27-.51-1.04-.42-.9.68c-.43.32-.84.56-1.25.73l-1.06.43-.16 1.13-.2 1.35h-1.4l-.19-1.35-.16-1.13-1.06-.43c-.43-.18-.83-.41-1.23-.71l-.91-.7-1.06.43-1.27.51-.7-1.21 1.08-.84.89-.7-.14-1.13c-.03-.31-.05-.54-.05-.74s.02-.43.05-.73l.14-1.13-.89-.7-1.08-.84.7-1.21 1.27.51 1.04.42.9-.68c.43-.32.84-.56 1.25-.73l1.06-.43.16-1.13.2-1.35h1.39l.19 1.35.16 1.13 1.06.43c.43.18.83.41 1.23.71l.91.7 1.06-.43 1.27-.51.7 1.21-1.07.85-.89.7.14 1.13zM12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm0 6c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z"}),"SettingsOutlined");Cz=f5.default=Lxe;var p5={},jxe=ei;Object.defineProperty(p5,"__esModule",{value:!0});var Sz=p5.default=void 0,Dxe=jxe(ti()),Nxe=m,zxe=(0,Dxe.default)((0,Nxe.jsx)("path",{d:"m17 8-1.41 1.41L17.17 11H9v2h8.17l-1.58 1.58L17 16l4-4-4-4zM5 5h7V3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h7v-2H5V5z"}),"LogoutOutlined");Sz=p5.default=zxe;const $z="/fintrack/assets/user-19e22072.png";function Bxe(){const[e,t]=g.useState(null),n=Wt(),r=_n(n.palette.mode),o=g.useContext(MM),i=s=>{t(s.currentTarget)},a=()=>{t(null)};return m.jsxs(Ve,{sx:{alignItems:"center",display:"inline-flex",flexGrow:0,gap:2},children:[m.jsx(Ge,{variant:"h6",color:r.primary[100],sx:{display:{xs:"none",sm:"none",md:"flex"}},children:"John Smith"}),m.jsx(FN,{title:"",children:m.jsx(Rr,{onClick:i,sx:{p:0},children:m.jsx(dg,{alt:"Remy Sharp",src:$z})})}),m.jsxs(c0,{sx:{mt:"45px","& .MuiMenu-paper":{backgroundColor:r.primary[400]}},id:"menu-appbar",anchorEl:e,anchorOrigin:{vertical:"top",horizontal:"right"},keepMounted:!0,transformOrigin:{vertical:"top",horizontal:"right"},open:!!e,onClose:a,children:[m.jsxs(rr,{sx:{display:{xs:"flex",sm:"flex",md:"none"},justifyContent:"space-between"},children:[m.jsx("p",{children:"Messages"}),m.jsx(Rr,{size:"large","aria-label":"show 4 new mails",color:"inherit",children:m.jsx(fl,{badgeContent:4,color:"error"})})]}),m.jsxs(rr,{sx:{display:{xs:"flex",sm:"flex",md:"none"},justifyContent:"space-between"},children:[m.jsx("p",{children:"Notifications"}),m.jsx(Rr,{size:"large","aria-label":"show 17 new notifications",color:"inherit",children:m.jsx(fl,{badgeContent:17,color:"error"})})]}),m.jsx(Hc,{sx:{display:{xs:"flex",sm:"flex",md:"none"}}}),m.jsxs(rr,{children:[m.jsx(fo,{children:m.jsx(bz,{})}),m.jsx(Ge,{variant:"h5",children:"My Profile"})]}),m.jsxs(rr,{children:[m.jsx(fo,{children:m.jsx(xz,{})}),m.jsx(Ge,{variant:"h5",children:"Manage Account(s)"})]}),m.jsxs(rr,{onClick:o.toggleColorMode,sx:{display:{xs:"flex",sm:"flex",md:"none"}},children:[m.jsx(fo,{children:n.palette.mode==="dark"?m.jsx(n5,{sx:{width:"1.5rem",height:"1.5rem"}}):m.jsx(e5,{sx:{width:"1.5rem",height:"1.5rem"}})}),m.jsxs(Ge,{variant:"h5",children:["Enable ",n.palette.mode==="dark"?"light":"dark"," mode"]})]}),m.jsxs(rr,{sx:{display:{xs:"flex",sm:"flex",md:"none"}},children:[m.jsx(fo,{children:m.jsx(a5,{})}),m.jsx(Ge,{variant:"h5",children:"Information"})]}),m.jsx(Hc,{}),m.jsxs(rr,{children:[m.jsx(fo,{children:m.jsx(wz,{})}),m.jsx(Ge,{variant:"h5",children:"Add another account"})]}),m.jsxs(rr,{children:[m.jsx(fo,{children:m.jsx(Cz,{})}),m.jsx(Ge,{variant:"h5",children:"Settings"})]}),m.jsxs(rr,{children:[m.jsx(fo,{children:m.jsx(Sz,{})}),m.jsx(Ge,{variant:"h5",children:"Logout"})]})]})]})}function Hxe(){const e=Wt(),t=_n(e.palette.mode),n=g.useContext(MM),{setHideSidebar:r}=g.useContext(Kx),o=()=>{r(i=>!i)};return m.jsx(Ve,{display:"flex",justifyContent:"space-between",p:2,width:"100%",children:m.jsx(Oue,{position:"static",elevation:4,children:m.jsxs(jN,{sx:{backgroundColor:t.primary[400],display:"flex",justifyContent:"space-between"},children:[m.jsx(Rr,{sx:{display:{xs:"block",sm:"block",md:"block",lg:"none",xl:"none"}},size:"large",edge:"start","aria-label":"menu",onClick:o,children:m.jsx(gz,{})}),m.jsx(Rr,{"aria-label":"Information",sx:{display:{xs:"none",sm:"none",md:"none",lg:"flex",xl:"flex"}},children:m.jsx(a5,{sx:{width:"1.5rem",height:"1.5rem"}})}),m.jsxs(Ve,{sx:{border:`2px solid ${t.grey[700]}`,borderRadius:"4px",display:"flex",width:"min(75%, 400px)"},children:[m.jsx(cd,{sx:{flex:1,ml:2},placeholder:"Search"}),m.jsx(Rr,{type:"button",sx:{p:1},children:m.jsx(mz,{sx:{color:t.grey[700]}})})]}),m.jsxs(Ve,{sx:{display:"flex",gap:1.5},children:[m.jsx(Rr,{onClick:n.toggleColorMode,sx:{display:{xs:"none",sm:"none",md:"flex"},height:"100%"},children:e.palette.mode==="dark"?m.jsx(n5,{sx:{width:"1.5rem",height:"1.5rem"}}):m.jsx(e5,{sx:{width:"1.5rem",height:"1.5rem"}})}),m.jsx(xxe,{}),m.jsx(mxe,{}),m.jsx(Hc,{orientation:"vertical",flexItem:!0,sx:{display:{xs:"none",sm:"none",md:"flex"}}}),m.jsx(Bxe,{})]})]})})})}function Wxe(){const{setHideSidebar:e}=g.useContext(Kx),t=()=>{e(n=>n===!0?!n:n)};return m.jsxs("main",{children:[m.jsx(Hxe,{}),m.jsx(Ve,{onClick:t,children:m.jsx(Poe,{})})]})}function Vxe(){const{theme:e,toggleColorMode:t}=Tle("light"),[n,r]=g.useState(!1);return m.jsx(MM.Provider,{value:{toggleColorMode:t},children:m.jsxs(lae,{theme:e,children:[m.jsx(the,{}),m.jsx(Ve,{className:"app",children:m.jsxs(Kx.Provider,{value:{hideSidebar:n,setHideSidebar:r},children:[m.jsx(Bbe,{}),m.jsx(Wxe,{})]})})]})})}const gr=({title:e,content:t,height:n=400,padding:r=1})=>{const o=Wt(),i=_n(o.palette.mode);return m.jsxs(lpe,{sx:{background:i.primary[400],boxShadow:4,height:`${n}px`,padding:`${r}rem`,margin:"0 auto",width:"100%"},children:[m.jsx(Spe,{title:m.jsx(Ge,{variant:"h5",fontWeight:600,children:e})}),m.jsx(Mi,{sx:{"& .MuiDataGrid-root":{border:"none"},"& .MuiDataGrid-columnHeaders":{backgroundColor:i.blueAccent[800],borderBottom:"none"},boxSizing:"border-box",height:"90%"},children:t})]})};var Uxe=Object.defineProperty,Gxe=(e,t)=>{for(var n in t)Uxe(e,n,{get:t[n],enumerable:!0})},la={};Gxe(la,{assign:()=>Yxe,colors:()=>uu,createStringInterpolator:()=>x5,skipAnimation:()=>Ez,to:()=>Iz,willAdvance:()=>w5});var h5=g0(),Ht=e=>m0(e,h5),m5=g0();Ht.write=e=>m0(e,m5);var Yx=g0();Ht.onStart=e=>m0(e,Yx);var g5=g0();Ht.onFrame=e=>m0(e,g5);var v5=g0();Ht.onFinish=e=>m0(e,v5);var Gf=[];Ht.setTimeout=(e,t)=>{const n=Ht.now()+t,r=()=>{const i=Gf.findIndex(a=>a.cancel==r);~i&&Gf.splice(i,1),Yl-=~i?1:0},o={time:n,handler:e,cancel:r};return Gf.splice(_z(n),0,o),Yl+=1,kz(),o};var _z=e=>~(~Gf.findIndex(t=>t.time>e)||~Gf.length);Ht.cancel=e=>{Yx.delete(e),g5.delete(e),v5.delete(e),h5.delete(e),m5.delete(e)};Ht.sync=e=>{q_=!0,Ht.batchedUpdates(e),q_=!1};Ht.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...o){t=o,Ht.onStart(n)}return r.handler=e,r.cancel=()=>{Yx.delete(n),t=null},r};var y5=typeof window<"u"?window.requestAnimationFrame:()=>{};Ht.use=e=>y5=e;Ht.now=typeof performance<"u"?()=>performance.now():Date.now;Ht.batchedUpdates=e=>e();Ht.catch=console.error;Ht.frameLoop="always";Ht.advance=()=>{Ht.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):Mz()};var Kl=-1,Yl=0,q_=!1;function m0(e,t){q_?(t.delete(e),e(0)):(t.add(e),kz())}function kz(){Kl<0&&(Kl=0,Ht.frameLoop!=="demand"&&y5(Pz))}function qxe(){Kl=-1}function Pz(){~Kl&&(y5(Pz),Ht.batchedUpdates(Mz))}function Mz(){const e=Kl;Kl=Ht.now();const t=_z(Kl);if(t&&(Tz(Gf.splice(0,t),n=>n.handler()),Yl-=t),!Yl){qxe();return}Yx.flush(),h5.flush(e?Math.min(64,Kl-e):16.667),g5.flush(),m5.flush(),v5.flush()}function g0(){let e=new Set,t=e;return{add(n){Yl+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return Yl-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,Yl-=t.size,Tz(t,r=>r(n)&&e.add(r)),Yl+=e.size,t=e)}}}function Tz(e,t){e.forEach(n=>{try{t(n)}catch(r){Ht.catch(r)}})}function K_(){}var Kxe=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Xe={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 Us(e,t){if(Xe.arr(e)){if(!Xe.arr(t)||e.length!==t.length)return!1;for(let n=0;ne.forEach(t);function vs(e,t,n){if(Xe.arr(e)){for(let r=0;rXe.und(e)?[]:Xe.arr(e)?e:[e];function Em(e,t){if(e.size){const n=Array.from(e);e.clear(),jt(n,t)}}var dm=(e,...t)=>Em(e,n=>n(...t)),b5=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),x5,Iz,uu=null,Ez=!1,w5=K_,Yxe=e=>{e.to&&(Iz=e.to),e.now&&(Ht.now=e.now),e.colors!==void 0&&(uu=e.colors),e.skipAnimation!=null&&(Ez=e.skipAnimation),e.createStringInterpolator&&(x5=e.createStringInterpolator),e.requestAnimationFrame&&Ht.use(e.requestAnimationFrame),e.batchedUpdates&&(Ht.batchedUpdates=e.batchedUpdates),e.willAdvance&&(w5=e.willAdvance),e.frameLoop&&(Ht.frameLoop=e.frameLoop)},Rm=new Set,qi=[],OS=[],Ly=0,Xx={get idle(){return!Rm.size&&!qi.length},start(e){Ly>e.priority?(Rm.add(e),Ht.onStart(Xxe)):(Rz(e),Ht(Y_))},advance:Y_,sort(e){if(Ly)Ht.onFrame(()=>Xx.sort(e));else{const t=qi.indexOf(e);~t&&(qi.splice(t,1),Oz(e))}},clear(){qi=[],Rm.clear()}};function Xxe(){Rm.forEach(Rz),Rm.clear(),Ht(Y_)}function Rz(e){qi.includes(e)||Oz(e)}function Oz(e){qi.splice(Qxe(qi,t=>t.priority>e.priority),0,e)}function Y_(e){const t=OS;for(let n=0;n0}function Qxe(e,t){const n=e.findIndex(t);return n<0?e.length:n}var Zxe=(e,t,n)=>Math.min(Math.max(n,e),t),Jxe={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},Pa="[-+]?\\d*\\.?\\d+",jy=Pa+"%";function Qx(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var e2e=new RegExp("rgb"+Qx(Pa,Pa,Pa)),t2e=new RegExp("rgba"+Qx(Pa,Pa,Pa,Pa)),n2e=new RegExp("hsl"+Qx(Pa,jy,jy)),r2e=new RegExp("hsla"+Qx(Pa,jy,jy,Pa)),o2e=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,i2e=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,a2e=/^#([0-9a-fA-F]{6})$/,s2e=/^#([0-9a-fA-F]{8})$/;function l2e(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=a2e.exec(e))?parseInt(t[1]+"ff",16)>>>0:uu&&uu[e]!==void 0?uu[e]:(t=e2e.exec(e))?(tf(t[1])<<24|tf(t[2])<<16|tf(t[3])<<8|255)>>>0:(t=t2e.exec(e))?(tf(t[1])<<24|tf(t[2])<<16|tf(t[3])<<8|lA(t[4]))>>>0:(t=o2e.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=s2e.exec(e))?parseInt(t[1],16)>>>0:(t=i2e.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=n2e.exec(e))?(aA(sA(t[1]),Kv(t[2]),Kv(t[3]))|255)>>>0:(t=r2e.exec(e))?(aA(sA(t[1]),Kv(t[2]),Kv(t[3]))|lA(t[4]))>>>0:null}function AS(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 aA(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,i=AS(o,r,e+1/3),a=AS(o,r,e),s=AS(o,r,e-1/3);return Math.round(i*255)<<24|Math.round(a*255)<<16|Math.round(s*255)<<8}function tf(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function sA(e){return(parseFloat(e)%360+360)%360/360}function lA(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function Kv(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function uA(e){let t=l2e(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 yg=(e,t,n)=>{if(Xe.fun(e))return e;if(Xe.arr(e))return yg({range:e,output:t,extrapolate:n});if(Xe.str(e.output[0]))return x5(e);const r=e,o=r.output,i=r.range||[0,1],a=r.extrapolateLeft||r.extrapolate||"extend",s=r.extrapolateRight||r.extrapolate||"extend",l=r.easing||(u=>u);return u=>{const c=c2e(u,i);return u2e(u,i[c],i[c+1],o[c],o[c+1],l,a,s,r.map)}};function u2e(e,t,n,r,o,i,a,s,l){let u=l?l(e):e;if(un){if(s==="identity")return u;s==="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 c2e(e,t){for(var n=1;n=e);++n);return n-1}var d2e=(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 Zxe(0,1,o/e)},Dy=1.70158,Yv=Dy*1.525,cA=Dy+1,dA=2*Math.PI/3,fA=2*Math.PI/4.5,Xv=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,f2e={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=>cA*e*e*e-Dy*e*e,easeOutBack:e=>1+cA*Math.pow(e-1,3)+Dy*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*((Yv+1)*2*e-Yv)/2:(Math.pow(2*e-2,2)*((Yv+1)*(e*2-2)+Yv)+2)/2,easeInElastic:e=>e===0?0:e===1?1:-Math.pow(2,10*e-10)*Math.sin((e*10-10.75)*dA),easeOutElastic:e=>e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e*10-.75)*dA)+1,easeInOutElastic:e=>e===0?0:e===1?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*fA))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*fA)/2+1,easeInBounce:e=>1-Xv(1-e),easeOutBounce:Xv,easeInOutBounce:e=>e<.5?(1-Xv(1-2*e))/2:(1+Xv(2*e-1))/2,steps:d2e},bg=Symbol.for("FluidValue.get"),bp=Symbol.for("FluidValue.observers"),Gi=e=>!!(e&&e[bg]),jo=e=>e&&e[bg]?e[bg]():e,pA=e=>e[bp]||null;function p2e(e,t){e.eventObserved?e.eventObserved(t):e(t)}function xg(e,t){const n=e[bp];n&&n.forEach(r=>{p2e(r,t)})}var Az=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");h2e(this,e)}},h2e=(e,t)=>Fz(e,bg,t);function Bp(e,t){if(e[bg]){let n=e[bp];n||Fz(e,bp,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function wg(e,t){const n=e[bp];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[bp]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var Fz=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),L1=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,m2e=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,hA=new RegExp(`(${L1.source})(%|[a-z]+)`,"i"),g2e=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Zx=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,Lz=e=>{const[t,n]=v2e(e);if(!t||b5())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&&Zx.test(n))return Lz(n);if(n)return n}return e},v2e=e=>{const t=Zx.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},FS,y2e=(e,t,n,r,o)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${o})`,jz=e=>{FS||(FS=uu?new RegExp(`(${Object.keys(uu).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(i=>jo(i).replace(Zx,Lz).replace(m2e,uA).replace(FS,uA)),n=t.map(i=>i.match(L1).map(Number)),o=n[0].map((i,a)=>n.map(s=>{if(!(a in s))throw Error('The arity of each "output" value must be equal');return s[a]})).map(i=>yg({...e,output:i}));return i=>{var l;const a=!hA.test(t[0])&&((l=t.find(u=>hA.test(u)))==null?void 0:l.replace(L1,""));let s=0;return t[0].replace(L1,()=>`${o[s++](i)}${a||""}`).replace(g2e,y2e)}},C5="react-spring: ",Dz=e=>{const t=e;let n=!1;if(typeof t!="function")throw new TypeError(`${C5}once requires a function parameter`);return(...r)=>{n||(t(...r),n=!0)}},b2e=Dz(console.warn);function x2e(){b2e(`${C5}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var w2e=Dz(console.warn);function C2e(){w2e(`${C5}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 Jx(e){return Xe.str(e)&&(e[0]=="#"||/\d/.test(e)||!b5()&&Zx.test(e)||e in(uu||{}))}var Xl=b5()?g.useEffect:g.useLayoutEffect,S2e=()=>{const e=g.useRef(!1);return Xl(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function S5(){const e=g.useState()[1],t=S2e();return()=>{t.current&&e(Math.random())}}function $2e(e,t){const[n]=g.useState(()=>({inputs:t,result:e()})),r=g.useRef(),o=r.current;let i=o;return i?t&&i.inputs&&_2e(t,i.inputs)||(i={inputs:t,result:e()}):i=n,g.useEffect(()=>{r.current=i,o==n&&(n.inputs=n.result=void 0)},[i]),i.result}function _2e(e,t){if(e.length!==t.length)return!1;for(let n=0;ng.useEffect(e,k2e),k2e=[];function X_(e){const t=g.useRef();return g.useEffect(()=>{t.current=e}),t.current}var Cg=Symbol.for("Animated:node"),P2e=e=>!!e&&e[Cg]===e,Ga=e=>e&&e[Cg],_5=(e,t)=>Kxe(e,Cg,t),e2=e=>e&&e[Cg]&&e[Cg].getPayload(),Nz=class{constructor(){_5(this,this)}getPayload(){return this.payload||[]}},v0=class extends Nz{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,Xe.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new v0(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return Xe.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,Xe.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},Sg=class extends v0{constructor(e){super(0),this._string=null,this._toString=yg({output:[e,e]})}static create(e){return new Sg(e)}getValue(){const e=this._string;return e??(this._string=this._toString(this._value))}setValue(e){if(Xe.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=yg({output:[this.getValue(),e]})),this._value=0,super.reset()}},Ny={dependencies:null},t2=class extends Nz{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return vs(this.source,(n,r)=>{P2e(n)?t[r]=n.getValue(e):Gi(n)?t[r]=jo(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&jt(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return vs(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){Ny.dependencies&&Gi(e)&&Ny.dependencies.add(e);const t=e2(e);t&&jt(t,n=>this.add(n))}},zz=class extends t2{constructor(e){super(e)}static create(e){return new zz(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(M2e)),!0)}};function M2e(e){return(Jx(e)?Sg:v0).create(e)}function Q_(e){const t=Ga(e);return t?t.constructor:Xe.arr(e)?zz:Jx(e)?Sg:v0}var mA=(e,t)=>{const n=!Xe.fun(e)||e.prototype&&e.prototype.isReactComponent;return g.forwardRef((r,o)=>{const i=g.useRef(null),a=n&&g.useCallback(v=>{i.current=E2e(o,v)},[o]),[s,l]=I2e(r,t),u=S5(),c=()=>{const v=i.current;if(n&&!v)return;(v?t.applyAnimatedValues(v,s.getValue(!0)):!1)===!1&&u()},f=new T2e(c,l),p=g.useRef();Xl(()=>(p.current=f,jt(l,v=>Bp(v,f)),()=>{p.current&&(jt(p.current.deps,v=>wg(v,p.current)),Ht.cancel(p.current.update))})),g.useEffect(c,[]),$5(()=>()=>{const v=p.current;jt(v.deps,b=>wg(b,v))});const y=t.getComponentProps(s.getValue());return g.createElement(e,{...y,ref:a})})},T2e=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&Ht.write(this.update)}};function I2e(e,t){const n=new Set;return Ny.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new t2(e),Ny.dependencies=null,[e,n]}function E2e(e,t){return e&&(Xe.fun(e)?e(t):e.current=t),t}var gA=Symbol.for("AnimatedComponent"),R2e=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=o=>new t2(o),getComponentProps:r=o=>o}={})=>{const o={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},i=a=>{const s=vA(a)||"Anonymous";return Xe.str(a)?a=i[a]||(i[a]=mA(a,o)):a=a[gA]||(a[gA]=mA(a,o)),a.displayName=`Animated(${s})`,a};return vs(e,(a,s)=>{Xe.arr(e)&&(s=vA(a)),i[s]=i(a)}),{animated:i}},vA=e=>Xe.str(e)?e:e&&Xe.str(e.displayName)?e.displayName:Xe.fun(e)&&e.name||null;function Do(e,...t){return Xe.fun(e)?e(...t):e}var Om=(e,t)=>e===!0||!!(t&&e&&(Xe.fun(e)?e(t):$o(e).includes(t))),Bz=(e,t)=>Xe.obj(e)?t&&e[t]:e,Hz=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,O2e=e=>e,n2=(e,t=O2e)=>{let n=A2e;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);Xe.und(i)||(r[o]=i)}return r},A2e=["config","onProps","onStart","onChange","onPause","onResume","onRest"],F2e={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 L2e(e){const t={};let n=0;if(vs(e,(r,o)=>{F2e[o]||(t[o]=r,n++)}),n)return t}function k5(e){const t=L2e(e);if(t){const n={to:t};return vs(e,(r,o)=>o in t||(n[o]=r)),n}return{...e}}function $g(e){return e=jo(e),Xe.arr(e)?e.map($g):Jx(e)?la.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function Wz(e){for(const t in e)return!0;return!1}function Z_(e){return Xe.fun(e)||Xe.arr(e)&&Xe.obj(e[0])}function J_(e,t){var n;(n=e.ref)==null||n.delete(e),t==null||t.delete(e)}function Vz(e,t){var n;t&&e.ref!==t&&((n=e.ref)==null||n.delete(e),t.add(e),e.ref=t)}var P5={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}},ek={...P5.default,mass:1,damping:1,easing:f2e.linear,clamp:!1},j2e=class{constructor(){this.velocity=0,Object.assign(this,ek)}};function D2e(e,t,n){n&&(n={...n},yA(n,t),t={...n,...t}),yA(e,t),Object.assign(e,t);for(const a in ek)e[a]==null&&(e[a]=ek[a]);let{frequency:r,damping:o}=e;const{mass:i}=e;return Xe.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 yA(e,t){if(!Xe.und(t.decay))e.duration=void 0;else{const n=!Xe.und(t.tension)||!Xe.und(t.friction);(n||!Xe.und(t.frequency)||!Xe.und(t.damping)||!Xe.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}var bA=[],N2e=class{constructor(){this.changed=!1,this.values=bA,this.toValues=null,this.fromValues=bA,this.config=new j2e,this.immediate=!1}};function Uz(e,{key:t,props:n,defaultProps:r,state:o,actions:i}){return new Promise((a,s)=>{let l,u,c=Om(n.cancel??(r==null?void 0:r.cancel),t);if(c)y();else{Xe.und(n.pause)||(o.paused=Om(n.pause,t));let v=r==null?void 0:r.pause;v!==!0&&(v=o.paused||Om(v,t)),l=Do(n.delay||0,t),v?(o.resumeQueue.add(p),i.pause()):(i.resume(),p())}function f(){o.resumeQueue.add(p),o.timeouts.delete(u),u.cancel(),l=u.time-Ht.now()}function p(){l>0&&!la.skipAnimation?(o.delayed=!0,u=Ht.setTimeout(y,l),o.pauseQueue.add(f),o.timeouts.add(u)):y()}function y(){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},a)}catch(v){s(v)}}})}var M5=(e,t)=>t.length==1?t[0]:t.some(n=>n.cancelled)?qf(e.get()):t.every(n=>n.noop)?Gz(e.get()):$a(e.get(),t.every(n=>n.finished)),Gz=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),$a=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),qf=e=>({value:e,cancelled:!0,finished:!1});function qz(e,t,n,r){const{callId:o,parentId:i,onRest:a}=t,{asyncTo:s,promise:l}=n;return!i&&e===s&&!t.reset?l:n.promise=(async()=>{n.asyncId=o,n.asyncTo=e;const u=n2(t,(C,x)=>x==="onRest"?void 0:C);let c,f;const p=new Promise((C,x)=>(c=C,f=x)),y=C=>{const x=o<=(n.cancelId||0)&&qf(r)||o!==n.asyncId&&$a(r,!1);if(x)throw C.result=x,f(C),C},v=(C,x)=>{const w=new xA,S=new wA;return(async()=>{if(la.skipAnimation)throw _g(n),S.result=$a(r,!1),f(S),S;y(w);const $=Xe.obj(C)?{...C}:{...x,to:C};$.parentId=o,vs(u,(k,M)=>{Xe.und($[M])&&($[M]=k)});const T=await r.start($);return y(w),n.paused&&await new Promise(k=>{n.resumeQueue.add(k)}),T})()};let b;if(la.skipAnimation)return _g(n),$a(r,!1);try{let C;Xe.arr(e)?C=(async x=>{for(const w of x)await v(w)})(e):C=Promise.resolve(e(v,r.stop.bind(r))),await Promise.all([C.then(c),p]),b=$a(r.get(),!0,!1)}catch(C){if(C instanceof xA)b=C.result;else if(C instanceof wA)b=C.result;else throw C}finally{o==n.asyncId&&(n.asyncId=i,n.asyncTo=i?s:void 0,n.promise=i?l:void 0)}return Xe.fun(a)&&Ht.batchedUpdates(()=>{a(b,r,r.item)}),b})()}function _g(e,t){Em(e.timeouts,n=>n.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var xA=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.")}},wA=class extends Error{constructor(){super("SkipAnimationSignal")}},tk=e=>e instanceof T5,z2e=1,T5=class extends Az{constructor(){super(...arguments),this.id=z2e++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=Ga(this);return e&&e.getValue()}to(...e){return la.to(this,e)}interpolate(...e){return x2e(),la.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){xg(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||Xx.sort(this),xg(this,{type:"priority",parent:this,priority:e})}},Gc=Symbol.for("SpringPhase"),Kz=1,nk=2,rk=4,LS=e=>(e[Gc]&Kz)>0,Ol=e=>(e[Gc]&nk)>0,qh=e=>(e[Gc]&rk)>0,CA=(e,t)=>t?e[Gc]|=nk|Kz:e[Gc]&=~nk,SA=(e,t)=>t?e[Gc]|=rk:e[Gc]&=~rk,B2e=class extends T5{constructor(e,t){if(super(),this.animation=new N2e,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,!Xe.und(e)||!Xe.und(t)){const n=Xe.obj(e)?{...e}:{...t,from:e};Xe.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(Ol(this)||this._state.asyncTo)||qh(this)}get goal(){return jo(this.animation.to)}get velocity(){const e=Ga(this);return e instanceof v0?e.lastVelocity||0:e.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return LS(this)}get isAnimating(){return Ol(this)}get isPaused(){return qh(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,a=e2(r.to);!a&&Gi(r.to)&&(o=$o(jo(r.to))),r.values.forEach((u,c)=>{if(u.done)return;const f=u.constructor==Sg?1:a?a[c].lastPosition:o[c];let p=r.immediate,y=f;if(!p){if(y=u.lastPosition,i.tension<=0){u.done=!0;return}let v=u.elapsedTime+=e;const b=r.fromValues[c],C=u.v0!=null?u.v0:u.v0=Xe.arr(i.velocity)?i.velocity[c]:i.velocity;let x;const w=i.precision||(b==f?.005:Math.min(1,Math.abs(f-b)*.001));if(Xe.und(i.duration))if(i.decay){const S=i.decay===!0?.998:i.decay,$=Math.exp(-(1-S)*v);y=b+C/(1-S)*(1-$),p=Math.abs(u.lastPosition-y)<=w,x=C*$}else{x=u.lastVelocity==null?C:u.lastVelocity;const S=i.restVelocity||w/10,$=i.clamp?0:i.bounce,T=!Xe.und($),k=b==f?u.v0>0:bS,!(!M&&(p=Math.abs(f-y)<=w,p)));++A){T&&(E=y==f||y>f==k,E&&(x=-x*$,y=f));const z=-i.tension*1e-6*(y-f),L=-i.friction*.001*x,O=(z+L)/i.mass;x=x+O*N,y=y+x*N}}else{let S=1;i.duration>0&&(this._memoizedDuration!==i.duration&&(this._memoizedDuration=i.duration,u.durationProgress>0&&(u.elapsedTime=i.duration*u.durationProgress,v=u.elapsedTime+=e)),S=(i.progress||0)+v/this._memoizedDuration,S=S>1?1:S<0?0:S,u.durationProgress=S),y=b+i.easing(S)*(f-b),x=(y-u.lastPosition)/e,p=S==1}u.lastVelocity=x,Number.isNaN(y)&&(console.warn("Got NaN while animating:",this),p=!0)}a&&!a[c].done&&(p=!1),p?u.done=!0:t=!1,u.setValue(y,i.round)&&(n=!0)});const s=Ga(this),l=s.getValue();if(t){const u=jo(r.to);(l!==u||n)&&!i.decay?(s.setValue(u),this._onChange(u)):n&&i.decay&&this._onChange(l),this._stop()}else n&&this._onChange(l)}set(e){return Ht.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(Ol(this)){const{to:e,config:t}=this.animation;Ht.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 Xe.und(e)?(n=this.queue||[],this.queue=[]):n=[Xe.obj(e)?e:{...t,to:e}],Promise.all(n.map(r=>this._update(r))).then(r=>M5(this,r))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),_g(this._state,e&&this._lastCallId),Ht.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=Xe.obj(n)?n[t]:n,(n==null||Z_(n))&&(n=void 0),r=Xe.obj(r)?r[t]:r,r==null&&(r=void 0);const o={to:n,from:r};return LS(this)||(e.reverse&&([n,r]=[r,n]),r=jo(r),Xe.und(r)?Ga(this)||this._set(n):this._set(r)),o}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,n2(e,(a,s)=>/^on/.test(s)?Bz(a,n):a)),_A(this,e,"onProps"),Yh(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 Uz(++this._lastCallId,{key:n,props:e,defaultProps:r,state:i,actions:{pause:()=>{qh(this)||(SA(this,!0),dm(i.pauseQueue),Yh(this,"onPause",$a(this,Kh(this,this.animation.to)),this))},resume:()=>{qh(this)&&(SA(this,!1),Ol(this)&&this._resume(),dm(i.resumeQueue),Yh(this,"onResume",$a(this,Kh(this,this.animation.to)),this))},start:this._merge.bind(this,o)}}).then(a=>{if(e.loop&&a.finished&&!(t&&a.noop)){const s=Yz(e);if(s)return this._update(s,!0)}return a})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(qf(this));const r=!Xe.und(e.to),o=!Xe.und(e.from);if(r||o)if(t.callId>this._lastToId)this._lastToId=t.callId;else return n(qf(this));const{key:i,defaultProps:a,animation:s}=this,{to:l,from:u}=s;let{to:c=l,from:f=u}=e;o&&!r&&(!t.default||Xe.und(c))&&(c=f),t.reverse&&([c,f]=[f,c]);const p=!Us(f,u);p&&(s.from=f),f=jo(f);const y=!Us(c,l);y&&this._focus(c);const v=Z_(t.to),{config:b}=s,{decay:C,velocity:x}=b;(r||o)&&(b.velocity=0),t.config&&!v&&D2e(b,Do(t.config,i),t.config!==a.config?Do(a.config,i):void 0);let w=Ga(this);if(!w||Xe.und(c))return n($a(this,!0));const S=Xe.und(t.reset)?o&&!t.default:!Xe.und(f)&&Om(t.reset,i),$=S?f:this.get(),T=$g(c),k=Xe.num(T)||Xe.arr(T)||Jx(T),M=!v&&(!k||Om(a.immediate||t.immediate,i));if(y){const A=Q_(c);if(A!==w.constructor)if(M)w=this._set(T);else throw Error(`Cannot animate between ${w.constructor.name} and ${A.name}, as the "to" prop suggests`)}const E=w.constructor;let N=Gi(c),I=!1;if(!N){const A=S||!LS(this)&&p;(y||A)&&(I=Us($g($),T),N=!I),(!Us(s.immediate,M)&&!M||!Us(b.decay,C)||!Us(b.velocity,x))&&(N=!0)}if(I&&Ol(this)&&(s.changed&&!S?N=!0:N||this._stop(l)),!v&&((N||Gi(l))&&(s.values=w.getPayload(),s.toValues=Gi(c)?null:E==Sg?[1]:$o(T)),s.immediate!=M&&(s.immediate=M,!M&&!S&&this._set(l)),N)){const{onRest:A}=s;jt(W2e,L=>_A(this,t,L));const z=$a(this,Kh(this,l));dm(this._pendingCalls,z),this._pendingCalls.add(n),s.changed&&Ht.batchedUpdates(()=>{var L;s.changed=!S,A==null||A(z,this),S?Do(a.onRest,z):(L=s.onStart)==null||L.call(s,z,this)})}S&&this._set($),v?n(qz(t.to,t,this._state,this)):N?this._start():Ol(this)&&!y?this._pendingCalls.add(n):n(Gz($))}_focus(e){const t=this.animation;e!==t.to&&(pA(this)&&this._detach(),t.to=e,pA(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;Gi(t)&&(Bp(t,this),tk(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;Gi(e)&&wg(e,this)}_set(e,t=!0){const n=jo(e);if(!Xe.und(n)){const r=Ga(this);if(!r||!Us(n,r.getValue())){const o=Q_(n);!r||r.constructor!=o?_5(this,o.create(n)):r.setValue(n),r&&Ht.batchedUpdates(()=>{this._onChange(n,t)})}}return Ga(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,Yh(this,"onStart",$a(this,Kh(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),Do(this.animation.onChange,e,this)),Do(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;Ga(this).reset(jo(e.to)),e.immediate||(e.fromValues=e.values.map(t=>t.lastPosition)),Ol(this)||(CA(this,!0),qh(this)||this._resume())}_resume(){la.skipAnimation?this.finish():Xx.start(this)}_stop(e,t){if(Ol(this)){CA(this,!1);const n=this.animation;jt(n.values,o=>{o.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),xg(this,{type:"idle",parent:this});const r=t?qf(this.get()):$a(this.get(),Kh(this,e??n.to));dm(this._pendingCalls,r),n.changed&&(n.changed=!1,Yh(this,"onRest",r,this))}}};function Kh(e,t){const n=$g(t),r=$g(e.get());return Us(r,n)}function Yz(e,t=e.loop,n=e.to){const r=Do(t);if(r){const o=r!==!0&&k5(r),i=(o||e).reverse,a=!o||o.reset;return kg({...e,loop:t,default:!1,pause:void 0,to:!i||Z_(n)?n:void 0,from:a?e.from:void 0,reset:a,...o})}}function kg(e){const{to:t,from:n}=e=k5(e),r=new Set;return Xe.obj(t)&&$A(t,r),Xe.obj(n)&&$A(n,r),e.keys=r.size?Array.from(r):null,e}function H2e(e){const t=kg(e);return Xe.und(t.default)&&(t.default=n2(t)),t}function $A(e,t){vs(e,(n,r)=>n!=null&&t.add(r))}var W2e=["onStart","onRest","onChange","onPause","onResume"];function _A(e,t,n){e.animation[n]=t[n]!==Hz(t,n)?Bz(t[n],e.key):void 0}function Yh(e,t,...n){var r,o,i,a;(o=(r=e.animation)[t])==null||o.call(r,...n),(a=(i=e.defaultProps)[t])==null||a.call(i,...n)}var V2e=["onStart","onChange","onRest"],U2e=1,Xz=class{constructor(e,t){this.id=U2e++,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];Xe.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(kg(e)),this}start(e){let{queue:t}=this;return e?t=$o(e).map(kg):this.queue=[],this._flush?this._flush(this,t):(tB(this,t),ok(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;jt($o(t),r=>n[r].stop(!!e))}else _g(this._state,this._lastAsyncId),this.each(n=>n.stop(!!e));return this}pause(e){if(Xe.und(e))this.start({pause:!0});else{const t=this.springs;jt($o(e),n=>t[n].pause())}return this}resume(e){if(Xe.und(e))this.start({pause:!1});else{const t=this.springs;jt($o(e),n=>t[n].resume())}return this}each(e){vs(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,Em(e,([s,l])=>{l.value=this.get(),s(l,this,this._item)}));const i=!r&&this._started,a=o||i&&n.size?this.get():null;o&&t.size&&Em(t,([s,l])=>{l.value=a,s(l,this,this._item)}),i&&(this._started=!1,Em(n,([s,l])=>{l.value=a,s(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;Ht.onFrame(this._onFrame)}};function ok(e,t){return Promise.all(t.map(n=>Qz(e,n))).then(n=>M5(e,n))}async function Qz(e,t,n){const{keys:r,to:o,from:i,loop:a,onRest:s,onResolve:l}=t,u=Xe.obj(t.default)&&t.default;a&&(t.loop=!1),o===!1&&(t.to=null),i===!1&&(t.from=null);const c=Xe.arr(o)||Xe.fun(o)?o:void 0;c?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):jt(V2e,b=>{const C=t[b];if(Xe.fun(C)){const x=e._events[b];t[b]=({finished:w,cancelled:S})=>{const $=x.get(C);$?(w||($.finished=!1),S&&($.cancelled=!0)):x.set(C,{value:null,finished:w||!1,cancelled:S||!1})},u&&(u[b]=t[b])}});const f=e._state;t.pause===!f.paused?(f.paused=t.pause,dm(t.pause?f.pauseQueue:f.resumeQueue)):f.paused&&(t.pause=!0);const p=(r||Object.keys(e.springs)).map(b=>e.springs[b].start(t)),y=t.cancel===!0||Hz(t,"cancel")===!0;(c||y&&f.asyncId)&&p.push(Uz(++e._lastAsyncId,{props:t,state:f,actions:{pause:K_,resume:K_,start(b,C){y?(_g(f,e._lastAsyncId),C(qf(e))):(b.onRest=s,C(qz(c,b,f,e)))}}})),f.paused&&await new Promise(b=>{f.resumeQueue.add(b)});const v=M5(e,await Promise.all(p));if(a&&v.finished&&!(n&&v.noop)){const b=Yz(t,a,o);if(b)return tB(e,[b]),Qz(e,b,!0)}return l&&Ht.batchedUpdates(()=>l(v,e,e.item)),v}function ik(e,t){const n={...e.springs};return t&&jt($o(t),r=>{Xe.und(r.keys)&&(r=kg(r)),Xe.obj(r.to)||(r={...r,to:void 0}),eB(n,r,o=>Jz(o))}),Zz(e,n),n}function Zz(e,t){vs(t,(n,r)=>{e.springs[r]||(e.springs[r]=n,Bp(n,e))})}function Jz(e,t){const n=new B2e;return n.key=e,t&&Bp(n,t),n}function eB(e,t,n){t.keys&&jt(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function tB(e,t){jt(t,n=>{eB(e.springs,n,r=>Jz(r,e))})}var y0=({children:e,...t})=>{const n=g.useContext(zy),r=t.pause||!!n.pause,o=t.immediate||!!n.immediate;t=$2e(()=>({pause:r,immediate:o}),[r,o]);const{Provider:i}=zy;return g.createElement(i,{value:t},e)},zy=G2e(y0,{});y0.Provider=zy.Provider;y0.Consumer=zy.Consumer;function G2e(e,t){return Object.assign(e,g.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}var nB=()=>{const e=[],t=function(r){C2e();const o=[];return jt(e,(i,a)=>{if(Xe.und(r))o.push(i.start());else{const s=n(r,i,a);s&&o.push(i.start(s))}}),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 jt(e,r=>r.pause(...arguments)),this},t.resume=function(){return jt(e,r=>r.resume(...arguments)),this},t.set=function(r){jt(e,(o,i)=>{const a=Xe.fun(r)?r(i,o):r;a&&o.set(a)})},t.start=function(r){const o=[];return jt(e,(i,a)=>{if(Xe.und(r))o.push(i.start());else{const s=this._getProps(r,i,a);s&&o.push(i.start(s))}}),o},t.stop=function(){return jt(e,r=>r.stop(...arguments)),this},t.update=function(r){return jt(e,(o,i)=>o.update(this._getProps(r,o,i))),this};const n=function(r,o,i){return Xe.fun(r)?r(i,o):r};return t._getProps=n,t};function q2e(e,t,n){const r=Xe.fun(t)&&t;r&&!n&&(n=[]);const o=g.useMemo(()=>r||arguments.length==3?nB():void 0,[]),i=g.useRef(0),a=S5(),s=g.useMemo(()=>({ctrls:[],queue:[],flush(x,w){const S=ik(x,w);return i.current>0&&!s.queue.length&&!Object.keys(S).some(T=>!x.springs[T])?ok(x,w):new Promise(T=>{Zz(x,S),s.queue.push(()=>{T(ok(x,w))}),a()})}}),[]),l=g.useRef([...s.ctrls]),u=[],c=X_(e)||0;g.useMemo(()=>{jt(l.current.slice(e,c),x=>{J_(x,o),x.stop(!0)}),l.current.length=e,f(c,e)},[e]),g.useMemo(()=>{f(0,Math.min(c,e))},n);function f(x,w){for(let S=x;Sik(x,u[w])),y=g.useContext(y0),v=X_(y),b=y!==v&&Wz(y);Xl(()=>{i.current++,s.ctrls=l.current;const{queue:x}=s;x.length&&(s.queue=[],jt(x,w=>w())),jt(l.current,(w,S)=>{o==null||o.add(w),b&&w.start({default:y});const $=u[S];$&&(Vz(w,$.ref),w.ref?w.queue.push($):w.start($))})}),$5(()=>()=>{jt(s.ctrls,x=>x.stop(!0))});const C=p.map(x=>({...x}));return o?[C,o]:C}function Ss(e,t){const n=Xe.fun(e),[[r],o]=q2e(1,n?e:[e],n?t||[]:t);return n||arguments.length==2?[r,o]:r}function dd(e,t,n){const r=Xe.fun(t)&&t,{reset:o,sort:i,trail:a=0,expires:s=!0,exitBeforeEnter:l=!1,onDestroyed:u,ref:c,config:f}=r?r():t,p=g.useMemo(()=>r||arguments.length==3?nB():void 0,[]),y=$o(e),v=[],b=g.useRef(null),C=o?null:b.current;Xl(()=>{b.current=v}),$5(()=>(jt(v,O=>{p==null||p.add(O.ctrl),O.ctrl.ref=p}),()=>{jt(b.current,O=>{O.expired&&clearTimeout(O.expirationId),J_(O.ctrl,p),O.ctrl.stop(!0)})}));const x=Y2e(y,r?r():t,C),w=o&&b.current||[];Xl(()=>jt(w,({ctrl:O,item:j,key:H})=>{J_(O,p),Do(u,j,H)}));const S=[];if(C&&jt(C,(O,j)=>{O.expired?(clearTimeout(O.expirationId),w.push(O)):(j=S[j]=x.indexOf(O.key),~j&&(v[j]=O))}),jt(y,(O,j)=>{v[j]||(v[j]={key:x[j],item:O,phase:"mount",ctrl:new Xz},v[j].ctrl.item=O)}),S.length){let O=-1;const{leave:j}=r?r():t;jt(S,(H,B)=>{const D=C[B];~H?(O=v.indexOf(D),v[O]={...D,item:y[H]}):j&&v.splice(++O,0,D)})}Xe.fun(i)&&v.sort((O,j)=>i(O.item,j.item));let $=-a;const T=S5(),k=n2(t),M=new Map,E=g.useRef(new Map),N=g.useRef(!1);jt(v,(O,j)=>{const H=O.key,B=O.phase,D=r?r():t;let W,U;const Z=Do(D.delay||0,H);if(B=="mount")W=D.enter,U="enter";else{const ne=x.indexOf(H)<0;if(B!="leave")if(ne)W=D.leave,U="leave";else if(W=D.update)U="update";else return;else if(!ne)W=D.enter,U="enter";else return}if(W=Do(W,O.item,j),W=Xe.obj(W)?k5(W):{to:W},!W.config){const ne=f||k.config;W.config=Do(ne,O.item,j,U)}$+=a;const Y={...k,delay:Z+$,ref:c,immediate:D.immediate,reset:!1,...W};if(U=="enter"&&Xe.und(Y.from)){const ne=r?r():t,re=Xe.und(ne.initial)||C?ne.from:ne.initial;Y.from=Do(re,O.item,j)}const{onResolve:se}=Y;Y.onResolve=ne=>{Do(se,ne);const re=b.current,ge=re.find(xe=>xe.key===H);if(ge&&!(ne.cancelled&&ge.phase!="update")&&ge.ctrl.idle){const xe=re.every(fe=>fe.ctrl.idle);if(ge.phase=="leave"){const fe=Do(s,ge.item);if(fe!==!1){const Se=fe===!0?0:fe;if(ge.expired=!0,!xe&&Se>0){Se<=2147483647&&(ge.expirationId=setTimeout(T,Se));return}}}xe&&re.some(fe=>fe.expired)&&(E.current.delete(ge),l&&(N.current=!0),T())}};const Q=ik(O.ctrl,Y);U==="leave"&&l?E.current.set(O,{phase:U,springs:Q,payload:Y}):M.set(O,{phase:U,springs:Q,payload:Y})});const I=g.useContext(y0),A=X_(I),z=I!==A&&Wz(I);Xl(()=>{z&&jt(v,O=>{O.ctrl.start({default:I})})},[I]),jt(M,(O,j)=>{if(E.current.size){const H=v.findIndex(B=>B.key===j.key);v.splice(H,1)}}),Xl(()=>{jt(E.current.size?E.current:M,({phase:O,payload:j},H)=>{const{ctrl:B}=H;H.phase=O,p==null||p.add(B),z&&O=="enter"&&B.start({default:I}),j&&(Vz(B,j.ref),(B.ref||p)&&!N.current?B.update(j):(B.start(j),N.current&&(N.current=!1)))})},o?void 0:n);const L=O=>g.createElement(g.Fragment,null,v.map((j,H)=>{const{springs:B}=M.get(j)||j.ctrl,D=O({...B},j.item,j,H);return D&&D.type?g.createElement(D.type,{...D.props,key:Xe.str(j.key)||Xe.num(j.key)?j.key:j.ctrl.id,ref:D.ref}):D}));return p?[L,p]:L}var K2e=1;function Y2e(e,{key:t,keys:n=t},r){if(n===null){const o=new Set;return e.map(i=>{const a=r&&r.find(s=>s.item===i&&s.phase!=="leave"&&!o.has(s));return a?(o.add(a),a.key):K2e++})}return Xe.und(n)?e:Xe.fun(n)?e.map(n):$o(n)}var rB=class extends T5{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=yg(...t);const n=this._get(),r=Q_(n);_5(this,r.create(n))}advance(e){const t=this._get(),n=this.get();Us(t,n)||(Ga(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&kA(this._active)&&jS(this)}_get(){const e=Xe.arr(this.source)?this.source.map(jo):$o(jo(this.source));return this.calc(...e)}_start(){this.idle&&!kA(this._active)&&(this.idle=!1,jt(e2(this),e=>{e.done=!1}),la.skipAnimation?(Ht.batchedUpdates(()=>this.advance()),jS(this)):Xx.start(this))}_attach(){let e=1;jt($o(this.source),t=>{Gi(t)&&Bp(t,this),tk(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){jt($o(this.source),e=>{Gi(e)&&wg(e,this)}),this._active.clear(),jS(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=$o(this.source).reduce((t,n)=>Math.max(t,(tk(n)?n.priority:0)+1),0))}};function X2e(e){return e.idle!==!1}function kA(e){return!e.size||Array.from(e).every(X2e)}function jS(e){e.idle||(e.idle=!0,jt(e2(e),t=>{t.done=!0}),xg(e,{type:"idle",parent:e}))}var mu=(e,...t)=>new rB(e,t);la.assign({createStringInterpolator:jz,to:(e,t)=>new rB(e,t)});var oB=/^--/;function Q2e(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!oB.test(e)&&!(Am.hasOwnProperty(e)&&Am[e])?t+"px":(""+t).trim()}var PA={};function Z2e(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:a,viewBox:s,...l}=t,u=Object.values(l),c=Object.keys(l).map(f=>n||e.hasAttribute(f)?f:PA[f]||(PA[f]=f.replace(/([A-Z])/g,p=>"-"+p.toLowerCase())));o!==void 0&&(e.textContent=o);for(const f in r)if(r.hasOwnProperty(f)){const p=Q2e(f,r[f]);oB.test(f)?e.style.setProperty(f,p):e.style[f]=p}c.forEach((f,p)=>{e.setAttribute(f,u[p])}),i!==void 0&&(e.scrollTop=i),a!==void 0&&(e.scrollLeft=a),s!==void 0&&e.setAttribute("viewBox",s)}var Am={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},J2e=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),ewe=["Webkit","Ms","Moz","O"];Am=Object.keys(Am).reduce((e,t)=>(ewe.forEach(n=>e[J2e(n,t)]=e[t]),e),Am);var twe=/^(matrix|translate|scale|rotate|skew)/,nwe=/^(translate)/,rwe=/^(rotate|skew)/,DS=(e,t)=>Xe.num(e)&&e!==0?e+t:e,j1=(e,t)=>Xe.arr(e)?e.every(n=>j1(n,t)):Xe.num(e)?e===t:parseFloat(e)===t,owe=class extends t2{constructor({x:e,y:t,z:n,...r}){const o=[],i=[];(e||t||n)&&(o.push([e||0,t||0,n||0]),i.push(a=>[`translate3d(${a.map(s=>DS(s,"px")).join(",")})`,j1(a,0)])),vs(r,(a,s)=>{if(s==="transform")o.push([a||""]),i.push(l=>[l,l===""]);else if(twe.test(s)){if(delete r[s],Xe.und(a))return;const l=nwe.test(s)?"px":rwe.test(s)?"deg":"";o.push($o(a)),i.push(s==="rotate3d"?([u,c,f,p])=>[`rotate3d(${u},${c},${f},${DS(p,l)})`,j1(p,0)]:u=>[`${s}(${u.map(c=>DS(c,l)).join(",")})`,j1(u,s.startsWith("scale")?1:0)])}}),o.length&&(r.transform=new iwe(o,i)),super(r)}},iwe=class extends Az{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 jt(this.inputs,(n,r)=>{const o=jo(n[0]),[i,a]=this.transforms[r](Xe.arr(o)?o:n.map(jo));e+=" "+i,t=t&&a}),t?"none":e}observerAdded(e){e==1&&jt(this.inputs,t=>jt(t,n=>Gi(n)&&Bp(n,this)))}observerRemoved(e){e==0&&jt(this.inputs,t=>jt(t,n=>Gi(n)&&wg(n,this)))}eventObserved(e){e.type=="change"&&(this._value=null),xg(this,e)}},awe=["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"];la.assign({batchedUpdates:Su.unstable_batchedUpdates,createStringInterpolator:jz,colors:Jxe});var swe=R2e(awe,{applyAnimatedValues:Z2e,createAnimatedStyle:e=>new owe(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),Rn=swe.animated;function qc(){return qc=Object.assign?Object.assign.bind():function(e){for(var t=1;t0&&f.height>0,C=Math.round(n[0]),x=Math.round(n[1]);b&&(r==="top"?(C-=f.width/2,x-=f.height+14):r==="right"?(C+=14,x-=f.height/2):r==="bottom"?(C-=f.width/2,x+=14):r==="left"?(C-=f.width+14,x-=f.height/2):r==="center"&&(C-=f.width/2,x-=f.height/2),y={transform:MA(C,x)},p.current||(v=!0),p.current=[C,x]);var w=Ss({to:y,config:l,immediate:!s||v}),S=qc({},lwe,i.tooltip,{transform:(t=w.transform)!=null?t:MA(C,x)});return m.jsx(Rn.div,{ref:c,style:S,children:o})});iB.displayName="TooltipWrapper";var aB=g.memo(function(e){var t=e.size,n=t===void 0?12:t,r=e.color,o=e.style;return m.jsx("span",{style:qc({display:"block",width:n,height:n,background:r},o===void 0?{}:o)})}),I5=g.memo(function(e){var t,n=e.id,r=e.value,o=e.format,i=e.enableChip,a=i!==void 0&&i,s=e.color,l=e.renderContent,u=An(),c=Lg(o);if(typeof l=="function")t=l();else{var f=r;c!==void 0&&f!==void 0&&(f=c(f)),t=m.jsxs("div",{style:u.tooltip.basic,children:[a&&m.jsx(aB,{color:s,style:u.tooltip.chip}),f!==void 0?m.jsxs("span",{children:[n,": ",m.jsx("strong",{children:""+f})]}):n]})}return m.jsx("div",{style:u.tooltip.container,children:t})}),uwe={width:"100%",borderCollapse:"collapse"},sB=g.memo(function(e){var t,n=e.title,r=e.rows,o=r===void 0?[]:r,i=e.renderContent,a=An();return o.length?(t=typeof i=="function"?i():m.jsxs("div",{children:[n&&n,m.jsx("table",{style:qc({},uwe,a.tooltip.table),children:m.jsx("tbody",{children:o.map(function(s,l){return m.jsx("tr",{children:s.map(function(u,c){return m.jsx("td",{style:a.tooltip.tableCell,children:u},c)})},l)})})})]}),m.jsx("div",{style:a.tooltip.container,children:t})):null});sB.displayName="TableTooltip";var ak=g.memo(function(e){var t=e.x0,n=e.x1,r=e.y0,o=e.y1,i=An(),a=Io(),s=a.animate,l=a.config,u=g.useMemo(function(){return qc({},i.crosshair.line,{pointerEvents:"none"})},[i.crosshair.line]),c=Ss({x1:t,x2:n,y1:r,y2:o,config:l,immediate:!s});return m.jsx(Rn.line,qc({},c,{fill:"none",style:u}))});ak.displayName="CrosshairLine";var sk=g.memo(function(e){var t,n,r=e.width,o=e.height,i=e.type,a=e.x,s=e.y;return i==="cross"?(t={x0:a,x1:a,y0:0,y1:o},n={x0:0,x1:r,y0:s,y1:s}):i==="top-left"?(t={x0:a,x1:a,y0:0,y1:s},n={x0:0,x1:a,y0:s,y1:s}):i==="top"?t={x0:a,x1:a,y0:0,y1:s}:i==="top-right"?(t={x0:a,x1:a,y0:0,y1:s},n={x0:a,x1:r,y0:s,y1:s}):i==="right"?n={x0:a,x1:r,y0:s,y1:s}:i==="bottom-right"?(t={x0:a,x1:a,y0:s,y1:o},n={x0:a,x1:r,y0:s,y1:s}):i==="bottom"?t={x0:a,x1:a,y0:s,y1:o}:i==="bottom-left"?(t={x0:a,x1:a,y0:s,y1:o},n={x0:0,x1:a,y0:s,y1:s}):i==="left"?n={x0:0,x1:a,y0:s,y1:s}:i==="x"?t={x0:a,x1:a,y0:0,y1:o}:i==="y"&&(n={x0:0,x1:r,y0:s,y1:s}),m.jsxs(m.Fragment,{children:[t&&m.jsx(ak,{x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1}),n&&m.jsx(ak,{x0:n.x0,x1:n.x1,y0:n.y0,y1:n.y1})]})});sk.displayName="Crosshair";var lB=g.createContext({showTooltipAt:function(){},showTooltipFromEvent:function(){},hideTooltip:function(){}}),lk={isVisible:!1,position:[null,null],content:null,anchor:null},uB=g.createContext(lk),cwe=function(e){var t=g.useState(lk),n=t[0],r=t[1],o=g.useCallback(function(s,l,u){var c=l[0],f=l[1];u===void 0&&(u="top"),r({isVisible:!0,position:[c,f],anchor:u,content:s})},[r]),i=g.useCallback(function(s,l,u){u===void 0&&(u="top");var c=e.current.getBoundingClientRect(),f=e.current.offsetWidth,p=f===c.width?1:f/c.width,y=(l.clientX-c.left)*p,v=(l.clientY-c.top)*p;u!=="left"&&u!=="right"||(u=y-1}var Iwe=Twe,Ewe=r2;function Rwe(e,t){var n=this.__data__,r=Ewe(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var Owe=Rwe,Awe=gwe,Fwe=$we,Lwe=Pwe,jwe=Iwe,Dwe=Owe;function Wp(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&e<=U$e}var j5=G$e,q$e=i2,K$e=j5;function Y$e(e){return e!=null&&K$e(e.length)&&!q$e(e)}var Kp=Y$e,X$e=Kp,Q$e=ks;function Z$e(e){return Q$e(e)&&X$e(e)}var SB=Z$e,Wy={exports:{}};function J$e(){return!1}var e_e=J$e;Wy.exports;(function(e,t){var n=$s,r=e_e,o=t&&!t.nodeType&&t,i=o&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===o,s=a?n.Buffer:void 0,l=s?s.isBuffer:void 0,u=l||r;e.exports=u})(Wy,Wy.exports);var c2=Wy.exports,t_e=fd,n_e=F5,r_e=ks,o_e="[object Object]",i_e=Function.prototype,a_e=Object.prototype,$B=i_e.toString,s_e=a_e.hasOwnProperty,l_e=$B.call(Object);function u_e(e){if(!r_e(e)||t_e(e)!=o_e)return!1;var t=n_e(e);if(t===null)return!0;var n=s_e.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&$B.call(n)==l_e}var D5=u_e;const c_e=Fr(D5);var d_e=fd,f_e=j5,p_e=ks,h_e="[object Arguments]",m_e="[object Array]",g_e="[object Boolean]",v_e="[object Date]",y_e="[object Error]",b_e="[object Function]",x_e="[object Map]",w_e="[object Number]",C_e="[object Object]",S_e="[object RegExp]",$_e="[object Set]",__e="[object String]",k_e="[object WeakMap]",P_e="[object ArrayBuffer]",M_e="[object DataView]",T_e="[object Float32Array]",I_e="[object Float64Array]",E_e="[object Int8Array]",R_e="[object Int16Array]",O_e="[object Int32Array]",A_e="[object Uint8Array]",F_e="[object Uint8ClampedArray]",L_e="[object Uint16Array]",j_e="[object Uint32Array]",Xn={};Xn[T_e]=Xn[I_e]=Xn[E_e]=Xn[R_e]=Xn[O_e]=Xn[A_e]=Xn[F_e]=Xn[L_e]=Xn[j_e]=!0;Xn[h_e]=Xn[m_e]=Xn[P_e]=Xn[g_e]=Xn[M_e]=Xn[v_e]=Xn[y_e]=Xn[b_e]=Xn[x_e]=Xn[w_e]=Xn[C_e]=Xn[S_e]=Xn[$_e]=Xn[__e]=Xn[k_e]=!1;function D_e(e){return p_e(e)&&f_e(e.length)&&!!Xn[d_e(e)]}var N_e=D_e;function z_e(e){return function(t){return e(t)}}var Yp=z_e,Vy={exports:{}};Vy.exports;(function(e,t){var n=cB,r=t&&!t.nodeType&&t,o=r&&!0&&e&&!e.nodeType&&e,i=o&&o.exports===r,a=i&&n.process,s=function(){try{var l=o&&o.require&&o.require("util").types;return l||a&&a.binding&&a.binding("util")}catch{}}();e.exports=s})(Vy,Vy.exports);var d2=Vy.exports,B_e=N_e,H_e=Yp,NA=d2,zA=NA&&NA.isTypedArray,W_e=zA?H_e(zA):B_e,N5=W_e;function V_e(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var _B=V_e,U_e=O5,G_e=b0,q_e=Object.prototype,K_e=q_e.hasOwnProperty;function Y_e(e,t,n){var r=e[t];(!(K_e.call(e,t)&&G_e(r,n))||n===void 0&&!(t in e))&&U_e(e,t,n)}var z5=Y_e,X_e=z5,Q_e=O5;function Z_e(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i-1&&e%1==0&&e0){if(++t>=lPe)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var fPe=dPe,pPe=sPe,hPe=fPe,mPe=hPe(pPe),TB=mPe,gPe=p2,vPe=MB,yPe=TB;function bPe(e,t){return yPe(vPe(e,t,gPe),e+"")}var B5=bPe,xPe=b0,wPe=Kp,CPe=f2,SPe=_s;function $Pe(e,t,n){if(!SPe(n))return!1;var r=typeof t;return(r=="number"?wPe(n)&&CPe(t,n.length):r=="string"&&t in n)?xPe(n[t],e):!1}var IB=$Pe,_Pe=B5,kPe=IB;function PPe(e){return _Pe(function(t,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(i=e.length>3&&typeof i=="function"?(o--,i):void 0,a&&kPe(n[0],n[1],a)&&(i=o<3?void 0:i,o=1),t=Object(t);++r>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Qv(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Qv(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=EMe.exec(e))?new _o(t[1],t[2],t[3],1):(t=RMe.exec(e))?new _o(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=OMe.exec(e))?Qv(t[1],t[2],t[3],t[4]):(t=AMe.exec(e))?Qv(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=FMe.exec(e))?r8(t[1],t[2]/100,t[3]/100,1):(t=LMe.exec(e))?r8(t[1],t[2]/100,t[3]/100,t[4]):QA.hasOwnProperty(e)?e8(QA[e]):e==="transparent"?new _o(NaN,NaN,NaN,0):null}function e8(e){return new _o(e>>16&255,e>>8&255,e&255,1)}function Qv(e,t,n,r){return r<=0&&(e=t=n=NaN),new _o(e,t,n,r)}function FB(e){return e instanceof Jp||(e=Mg(e)),e?(e=e.rgb(),new _o(e.r,e.g,e.b,e.opacity)):new _o}function Uy(e,t,n,r){return arguments.length===1?FB(e):new _o(e,t,n,r??1)}function _o(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}g2(_o,Uy,V5(Jp,{brighter:function(e){return e=e==null?xp:Math.pow(xp,e),new _o(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=e==null?Kc:Math.pow(Kc,e),new _o(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){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:t8,formatHex:t8,formatRgb:n8,toString:n8}));function t8(){return"#"+zS(this.r)+zS(this.g)+zS(this.b)}function n8(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(e===1?")":", "+e+")")}function zS(e){return e=Math.max(0,Math.min(255,Math.round(e)||0)),(e<16?"0":"")+e.toString(16)}function r8(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new ts(e,t,n,r)}function LB(e){if(e instanceof ts)return new ts(e.h,e.s,e.l,e.opacity);if(e instanceof Jp||(e=Mg(e)),!e)return new ts;if(e instanceof ts)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),a=NaN,s=i-o,l=(i+o)/2;return s?(t===i?a=(n-r)/s+(n0&&l<1?0:a,new ts(a,s,l,e.opacity)}function DMe(e,t,n,r){return arguments.length===1?LB(e):new ts(e,t,n,r??1)}function ts(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}g2(ts,DMe,V5(Jp,{brighter:function(e){return e=e==null?xp:Math.pow(xp,e),new ts(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=e==null?Kc:Math.pow(Kc,e),new ts(this.h,this.s,this.l*e,this.opacity)},rgb:function(){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 _o(BS(e>=240?e-240:e+120,o,r),BS(e,o,r),BS(e<120?e+240:e-120,o,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"hsl(":"hsla(")+(this.h||0)+", "+(this.s||0)*100+"%, "+(this.l||0)*100+"%"+(e===1?")":", "+e+")")}}));function BS(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 NMe=Math.PI/180,zMe=180/Math.PI;var jB=-.14861,U5=1.78277,G5=-.29227,v2=-.90649,Tg=1.97294,o8=Tg*v2,i8=Tg*U5,a8=U5*G5-v2*jB;function BMe(e){if(e instanceof Cc)return new Cc(e.h,e.s,e.l,e.opacity);e instanceof _o||(e=FB(e));var t=e.r/255,n=e.g/255,r=e.b/255,o=(a8*r+o8*t-i8*n)/(a8+o8-i8),i=r-o,a=(Tg*(n-o)-G5*i)/v2,s=Math.sqrt(a*a+i*i)/(Tg*o*(1-o)),l=s?Math.atan2(a,i)*zMe-120:NaN;return new Cc(l<0?l+360:l,s,o,e.opacity)}function uk(e,t,n,r){return arguments.length===1?BMe(e):new Cc(e,t,n,r??1)}function Cc(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}g2(Cc,uk,V5(Jp,{brighter:function(e){return e=e==null?xp:Math.pow(xp,e),new Cc(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=e==null?Kc:Math.pow(Kc,e),new Cc(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*NMe,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),o=Math.sin(e);return new _o(255*(t+n*(jB*r+U5*o)),255*(t+n*(G5*r+v2*o)),255*(t+n*(Tg*r)),this.opacity)}}));function HMe(e,t,n,r,o){var i=e*e,a=i*e;return((1-3*e+3*i-a)*t+(4-6*i+3*a)*n+(1+3*e+3*i-3*a)*r+a*o)/6}function WMe(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),o=e[r],i=e[r+1],a=r>0?e[r-1]:2*o-i,s=r()=>e;function DB(e,t){return function(n){return e+n*t}}function VMe(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 UMe(e,t){var n=t-e;return n?DB(e,n>180||n<-180?n-360*Math.round(n/360):n):y2(isNaN(e)?t:e)}function GMe(e){return(e=+e)==1?Yf:function(t,n){return n-t?VMe(t,n,e):y2(isNaN(t)?n:t)}}function Yf(e,t){var n=t-e;return n?DB(e,n):y2(isNaN(e)?t:e)}const s8=function e(t){var n=GMe(t);function r(o,i){var a=n((o=Uy(o)).r,(i=Uy(i)).r),s=n(o.g,i.g),l=n(o.b,i.b),u=Yf(o.opacity,i.opacity);return function(c){return o.r=a(c),o.g=s(c),o.b=l(c),o.opacity=u(c),o+""}}return r.gamma=e,r}(1);function qMe(e){return function(t){var n=t.length,r=new Array(n),o=new Array(n),i=new Array(n),a,s;for(a=0;an&&(i=t.slice(n,i),s[a]?s[a]+=i:s[++a]=i),(r=r[0])===(o=o[0])?s[a]?s[a]+=o:s[++a]=o:(s[++a]=null,l.push({i:a,x:Ig(r,o)})),n=HS.lastIndex;return n + * Copyright OpenJS Foundation and other contributors + * Released under MIT license + * Based on Underscore.js 1.8.3 + * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + */Gy.exports;(function(e,t){(function(){var n,r="4.17.21",o=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",s="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",u=500,c="__lodash_placeholder__",f=1,p=2,y=4,v=1,b=2,C=1,x=2,w=4,S=8,$=16,T=32,k=64,M=128,E=256,N=512,I=30,A="...",z=800,L=16,O=1,j=2,H=3,B=1/0,D=9007199254740991,W=17976931348623157e292,U=0/0,Z=4294967295,Y=Z-1,se=Z>>>1,Q=[["ary",M],["bind",C],["bindKey",x],["curry",S],["curryRight",$],["flip",N],["partial",T],["partialRight",k],["rearg",E]],ne="[object Arguments]",re="[object Array]",ge="[object AsyncFunction]",xe="[object Boolean]",fe="[object Date]",Se="[object DOMException]",de="[object Error]",ie="[object Function]",Pe="[object GeneratorFunction]",$e="[object Map]",me="[object Number]",ue="[object Null]",ce="[object Object]",Te="[object Promise]",Le="[object Proxy]",Re="[object RegExp]",Oe="[object Set]",K="[object String]",ee="[object Symbol]",pe="[object Undefined]",ye="[object WeakMap]",je="[object WeakSet]",Ae="[object ArrayBuffer]",Ie="[object DataView]",Ce="[object Float32Array]",Ze="[object Float64Array]",Ct="[object Int8Array]",et="[object Int16Array]",Be="[object Int32Array]",te="[object Uint8Array]",X="[object Uint8ClampedArray]",oe="[object Uint16Array]",Ee="[object Uint32Array]",Ue=/\b__p \+= '';/g,Ye=/\b(__p \+=) '' \+/g,at=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Je=/&(?:amp|lt|gt|quot|#39);/g,nt=/[&<>"']/g,_t=RegExp(Je.source),ht=RegExp(nt.source),lt=/<%-([\s\S]+?)%>/g,Ot=/<%([\s\S]+?)%>/g,Dt=/<%=([\s\S]+?)%>/g,fn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,hn=/^\w*$/,Pt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,zt=/[\\^$.*+?()[\]{}|]/g,un=RegExp(zt.source),cn=/^\s+/,ut=/\s/,mt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,At=/\{\n\/\* \[wrapped with (.+)\] \*/,Ft=/,? & /,tt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Gt=/[()=,{}\[\]\/\s]/,_e=/\\(\\)?/g,we=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Fe=/\w*$/,rt=/^[-+]0x[0-9a-f]+$/i,Tt=/^0b[01]+$/i,en=/^\[object .+?Constructor\]$/,kn=/^0o[0-7]+$/i,ct=/^(?:0|[1-9]\d*)$/,gt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ir=/($^)/,Ed=/['\n\r\u2028\u2029\\]/g,Rd="\\ud800-\\udfff",Nq="\\u0300-\\u036f",zq="\\ufe20-\\ufe2f",Bq="\\u20d0-\\u20ff",H3=Nq+zq+Bq,W3="\\u2700-\\u27bf",V3="a-z\\xdf-\\xf6\\xf8-\\xff",Hq="\\xac\\xb1\\xd7\\xf7",Wq="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Vq="\\u2000-\\u206f",Uq=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",U3="A-Z\\xc0-\\xd6\\xd8-\\xde",G3="\\ufe0e\\ufe0f",q3=Hq+Wq+Vq+Uq,Ow="['’]",Gq="["+Rd+"]",K3="["+q3+"]",A0="["+H3+"]",Y3="\\d+",qq="["+W3+"]",X3="["+V3+"]",Q3="[^"+Rd+q3+Y3+W3+V3+U3+"]",Aw="\\ud83c[\\udffb-\\udfff]",Kq="(?:"+A0+"|"+Aw+")",Z3="[^"+Rd+"]",Fw="(?:\\ud83c[\\udde6-\\uddff]){2}",Lw="[\\ud800-\\udbff][\\udc00-\\udfff]",Od="["+U3+"]",J3="\\u200d",eI="(?:"+X3+"|"+Q3+")",Yq="(?:"+Od+"|"+Q3+")",tI="(?:"+Ow+"(?:d|ll|m|re|s|t|ve))?",nI="(?:"+Ow+"(?:D|LL|M|RE|S|T|VE))?",rI=Kq+"?",oI="["+G3+"]?",Xq="(?:"+J3+"(?:"+[Z3,Fw,Lw].join("|")+")"+oI+rI+")*",Qq="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Zq="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",iI=oI+rI+Xq,Jq="(?:"+[qq,Fw,Lw].join("|")+")"+iI,eK="(?:"+[Z3+A0+"?",A0,Fw,Lw,Gq].join("|")+")",tK=RegExp(Ow,"g"),nK=RegExp(A0,"g"),jw=RegExp(Aw+"(?="+Aw+")|"+eK+iI,"g"),rK=RegExp([Od+"?"+X3+"+"+tI+"(?="+[K3,Od,"$"].join("|")+")",Yq+"+"+nI+"(?="+[K3,Od+eI,"$"].join("|")+")",Od+"?"+eI+"+"+tI,Od+"+"+nI,Zq,Qq,Y3,Jq].join("|"),"g"),oK=RegExp("["+J3+Rd+H3+G3+"]"),iK=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,aK=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],sK=-1,qn={};qn[Ce]=qn[Ze]=qn[Ct]=qn[et]=qn[Be]=qn[te]=qn[X]=qn[oe]=qn[Ee]=!0,qn[ne]=qn[re]=qn[Ae]=qn[xe]=qn[Ie]=qn[fe]=qn[de]=qn[ie]=qn[$e]=qn[me]=qn[ce]=qn[Re]=qn[Oe]=qn[K]=qn[ye]=!1;var zn={};zn[ne]=zn[re]=zn[Ae]=zn[Ie]=zn[xe]=zn[fe]=zn[Ce]=zn[Ze]=zn[Ct]=zn[et]=zn[Be]=zn[$e]=zn[me]=zn[ce]=zn[Re]=zn[Oe]=zn[K]=zn[ee]=zn[te]=zn[X]=zn[oe]=zn[Ee]=!0,zn[de]=zn[ie]=zn[ye]=!1;var lK={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},uK={"&":"&","<":"<",">":">",'"':""","'":"'"},cK={"&":"&","<":"<",">":">",""":'"',"'":"'"},dK={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},fK=parseFloat,pK=parseInt,aI=typeof qs=="object"&&qs&&qs.Object===Object&&qs,hK=typeof self=="object"&&self&&self.Object===Object&&self,Gr=aI||hK||Function("return this")(),Dw=t&&!t.nodeType&&t,Fu=Dw&&!0&&e&&!e.nodeType&&e,sI=Fu&&Fu.exports===Dw,Nw=sI&&aI.process,Ti=function(){try{var he=Fu&&Fu.require&&Fu.require("util").types;return he||Nw&&Nw.binding&&Nw.binding("util")}catch{}}(),lI=Ti&&Ti.isArrayBuffer,uI=Ti&&Ti.isDate,cI=Ti&&Ti.isMap,dI=Ti&&Ti.isRegExp,fI=Ti&&Ti.isSet,pI=Ti&&Ti.isTypedArray;function ni(he,ze,Me){switch(Me.length){case 0:return he.call(ze);case 1:return he.call(ze,Me[0]);case 2:return he.call(ze,Me[0],Me[1]);case 3:return he.call(ze,Me[0],Me[1],Me[2])}return he.apply(ze,Me)}function mK(he,ze,Me,ft){for(var Nt=-1,yn=he==null?0:he.length;++Nt-1}function zw(he,ze,Me){for(var ft=-1,Nt=he==null?0:he.length;++ft-1;);return Me}function wI(he,ze){for(var Me=he.length;Me--&&Ad(ze,he[Me],0)>-1;);return Me}function $K(he,ze){for(var Me=he.length,ft=0;Me--;)he[Me]===ze&&++ft;return ft}var _K=Vw(lK),kK=Vw(uK);function PK(he){return"\\"+dK[he]}function MK(he,ze){return he==null?n:he[ze]}function Fd(he){return oK.test(he)}function TK(he){return iK.test(he)}function IK(he){for(var ze,Me=[];!(ze=he.next()).done;)Me.push(ze.value);return Me}function Kw(he){var ze=-1,Me=Array(he.size);return he.forEach(function(ft,Nt){Me[++ze]=[Nt,ft]}),Me}function CI(he,ze){return function(Me){return he(ze(Me))}}function Cl(he,ze){for(var Me=-1,ft=he.length,Nt=0,yn=[];++Me-1}function vY(d,h){var _=this.__data__,F=Z0(_,d);return F<0?(++this.size,_.push([d,h])):_[F][1]=h,this}Rs.prototype.clear=pY,Rs.prototype.delete=hY,Rs.prototype.get=mY,Rs.prototype.has=gY,Rs.prototype.set=vY;function Os(d){var h=-1,_=d==null?0:d.length;for(this.clear();++h<_;){var F=d[h];this.set(F[0],F[1])}}function yY(){this.size=0,this.__data__={hash:new ju,map:new(dh||Rs),string:new ju}}function bY(d){var h=cv(this,d).delete(d);return this.size-=h?1:0,h}function xY(d){return cv(this,d).get(d)}function wY(d){return cv(this,d).has(d)}function CY(d,h){var _=cv(this,d),F=_.size;return _.set(d,h),this.size+=_.size==F?0:1,this}Os.prototype.clear=yY,Os.prototype.delete=bY,Os.prototype.get=xY,Os.prototype.has=wY,Os.prototype.set=CY;function Du(d){var h=-1,_=d==null?0:d.length;for(this.__data__=new Os;++h<_;)this.add(d[h])}function SY(d){return this.__data__.set(d,l),this}function $Y(d){return this.__data__.has(d)}Du.prototype.add=Du.prototype.push=SY,Du.prototype.has=$Y;function ha(d){var h=this.__data__=new Rs(d);this.size=h.size}function _Y(){this.__data__=new Rs,this.size=0}function kY(d){var h=this.__data__,_=h.delete(d);return this.size=h.size,_}function PY(d){return this.__data__.get(d)}function MY(d){return this.__data__.has(d)}function TY(d,h){var _=this.__data__;if(_ instanceof Rs){var F=_.__data__;if(!dh||F.length=h?d:h)),d}function Oi(d,h,_,F,V,q){var J,ae=h&f,ve=h&p,He=h&y;if(_&&(J=V?_(d,F,V,q):_(d)),J!==n)return J;if(!ar(d))return d;var We=Bt(d);if(We){if(J=wX(d),!ae)return Eo(d,J)}else{var qe=ro(d),st=qe==ie||qe==Pe;if(Ml(d))return oE(d,ae);if(qe==ce||qe==ne||st&&!V){if(J=ve||st?{}:SE(d),!ae)return ve?cX(d,OY(J,d)):uX(d,AI(J,d))}else{if(!zn[qe])return V?d:{};J=CX(d,qe,ae)}}q||(q=new ha);var wt=q.get(d);if(wt)return wt;q.set(d,J),ZE(d)?d.forEach(function(Et){J.add(Oi(Et,h,_,Et,d,q))}):XE(d)&&d.forEach(function(Et,tn){J.set(tn,Oi(Et,h,_,tn,d,q))});var It=He?ve?xC:bC:ve?Oo:Dr,Kt=We?n:It(d);return Ii(Kt||d,function(Et,tn){Kt&&(tn=Et,Et=d[tn]),mh(J,tn,Oi(Et,h,_,tn,d,q))}),J}function AY(d){var h=Dr(d);return function(_){return FI(_,d,h)}}function FI(d,h,_){var F=_.length;if(d==null)return!F;for(d=jn(d);F--;){var V=_[F],q=h[V],J=d[V];if(J===n&&!(V in d)||!q(J))return!1}return!0}function LI(d,h,_){if(typeof d!="function")throw new Ei(a);return Ch(function(){d.apply(n,_)},h)}function gh(d,h,_,F){var V=-1,q=F0,J=!0,ae=d.length,ve=[],He=h.length;if(!ae)return ve;_&&(h=er(h,ri(_))),F?(q=zw,J=!1):h.length>=o&&(q=uh,J=!1,h=new Du(h));e:for(;++VV?0:V+_),F=F===n||F>V?V:qt(F),F<0&&(F+=V),F=_>F?0:e4(F);_0&&_(ae)?h>1?qr(ae,h-1,_,F,V):wl(V,ae):F||(V[V.length]=ae)}return V}var tC=cE(),NI=cE(!0);function Da(d,h){return d&&tC(d,h,Dr)}function nC(d,h){return d&&NI(d,h,Dr)}function ev(d,h){return xl(h,function(_){return Ds(d[_])})}function zu(d,h){h=kl(h,d);for(var _=0,F=h.length;d!=null&&_h}function jY(d,h){return d!=null&&Pn.call(d,h)}function DY(d,h){return d!=null&&h in jn(d)}function NY(d,h,_){return d>=no(h,_)&&d=120&&We.length>=120)?new Du(J&&We):n}We=d[0];var qe=-1,st=ae[0];e:for(;++qe-1;)ae!==d&&U0.call(ae,ve,1),U0.call(d,ve,1);return d}function XI(d,h){for(var _=d?h.length:0,F=_-1;_--;){var V=h[_];if(_==F||V!==q){var q=V;js(V)?U0.call(d,V,1):fC(d,V)}}return d}function uC(d,h){return d+K0(II()*(h-d+1))}function ZY(d,h,_,F){for(var V=-1,q=Mr(q0((h-d)/(_||1)),0),J=Me(q);q--;)J[F?q:++V]=d,d+=_;return J}function cC(d,h){var _="";if(!d||h<1||h>D)return _;do h%2&&(_+=d),h=K0(h/2),h&&(d+=d);while(h);return _}function Zt(d,h){return PC(kE(d,h,Ao),d+"")}function JY(d){return OI(Gd(d))}function eX(d,h){var _=Gd(d);return dv(_,Nu(h,0,_.length))}function bh(d,h,_,F){if(!ar(d))return d;h=kl(h,d);for(var V=-1,q=h.length,J=q-1,ae=d;ae!=null&&++VV?0:V+h),_=_>V?V:_,_<0&&(_+=V),V=h>_?0:_-h>>>0,h>>>=0;for(var q=Me(V);++F>>1,J=d[q];J!==null&&!ii(J)&&(_?J<=h:J=o){var He=h?null:hX(d);if(He)return j0(He);J=!1,V=uh,ve=new Du}else ve=h?[]:ae;e:for(;++F=F?d:Ai(d,h,_)}var rE=UK||function(d){return Gr.clearTimeout(d)};function oE(d,h){if(h)return d.slice();var _=d.length,F=_I?_I(_):new d.constructor(_);return d.copy(F),F}function gC(d){var h=new d.constructor(d.byteLength);return new W0(h).set(new W0(d)),h}function iX(d,h){var _=h?gC(d.buffer):d.buffer;return new d.constructor(_,d.byteOffset,d.byteLength)}function aX(d){var h=new d.constructor(d.source,Fe.exec(d));return h.lastIndex=d.lastIndex,h}function sX(d){return hh?jn(hh.call(d)):{}}function iE(d,h){var _=h?gC(d.buffer):d.buffer;return new d.constructor(_,d.byteOffset,d.length)}function aE(d,h){if(d!==h){var _=d!==n,F=d===null,V=d===d,q=ii(d),J=h!==n,ae=h===null,ve=h===h,He=ii(h);if(!ae&&!He&&!q&&d>h||q&&J&&ve&&!ae&&!He||F&&J&&ve||!_&&ve||!V)return 1;if(!F&&!q&&!He&&d=ae)return ve;var He=_[F];return ve*(He=="desc"?-1:1)}}return d.index-h.index}function sE(d,h,_,F){for(var V=-1,q=d.length,J=_.length,ae=-1,ve=h.length,He=Mr(q-J,0),We=Me(ve+He),qe=!F;++ae1?_[V-1]:n,J=V>2?_[2]:n;for(q=d.length>3&&typeof q=="function"?(V--,q):n,J&&bo(_[0],_[1],J)&&(q=V<3?n:q,V=1),h=jn(h);++F-1?V[q?h[J]:J]:n}}function pE(d){return Ls(function(h){var _=h.length,F=_,V=Ri.prototype.thru;for(d&&h.reverse();F--;){var q=h[F];if(typeof q!="function")throw new Ei(a);if(V&&!J&&uv(q)=="wrapper")var J=new Ri([],!0)}for(F=J?F:_;++F<_;){q=h[F];var ae=uv(q),ve=ae=="wrapper"?wC(q):n;ve&&_C(ve[0])&&ve[1]==(M|S|T|E)&&!ve[4].length&&ve[9]==1?J=J[uv(ve[0])].apply(J,ve[3]):J=q.length==1&&_C(q)?J[ae]():J.thru(q)}return function(){var He=arguments,We=He[0];if(J&&He.length==1&&Bt(We))return J.plant(We).value();for(var qe=0,st=_?h[qe].apply(this,He):We;++qe<_;)st=h[qe].call(this,st);return st}})}function iv(d,h,_,F,V,q,J,ae,ve,He){var We=h&M,qe=h&C,st=h&x,wt=h&(S|$),It=h&N,Kt=st?n:xh(d);function Et(){for(var tn=arguments.length,sn=Me(tn),ai=tn;ai--;)sn[ai]=arguments[ai];if(wt)var xo=Vd(Et),si=$K(sn,xo);if(F&&(sn=sE(sn,F,V,wt)),q&&(sn=lE(sn,q,J,wt)),tn-=si,wt&&tn1&&sn.reverse(),We&&veae))return!1;var He=q.get(d),We=q.get(h);if(He&&We)return He==h&&We==d;var qe=-1,st=!0,wt=_&b?new Du:n;for(q.set(d,h),q.set(h,d);++qe1?"& ":"")+h[F],h=h.join(_>2?", ":" "),d.replace(mt,`{ +/* [wrapped with `+h+`] */ +`)}function $X(d){return Bt(d)||Wu(d)||!!(MI&&d&&d[MI])}function js(d,h){var _=typeof d;return h=h??D,!!h&&(_=="number"||_!="symbol"&&ct.test(d))&&d>-1&&d%1==0&&d0){if(++h>=z)return arguments[0]}else h=0;return d.apply(n,arguments)}}function dv(d,h){var _=-1,F=d.length,V=F-1;for(h=h===n?F:h;++_1?d[h-1]:n;return _=typeof _=="function"?(d.pop(),_):n,DE(d,_)});function NE(d){var h=G(d);return h.__chain__=!0,h}function FQ(d,h){return h(d),d}function fv(d,h){return h(d)}var LQ=Ls(function(d){var h=d.length,_=h?d[0]:0,F=this.__wrapped__,V=function(q){return eC(q,d)};return h>1||this.__actions__.length||!(F instanceof on)||!js(_)?this.thru(V):(F=F.slice(_,+_+(h?1:0)),F.__actions__.push({func:fv,args:[V],thisArg:n}),new Ri(F,this.__chain__).thru(function(q){return h&&!q.length&&q.push(n),q}))});function jQ(){return NE(this)}function DQ(){return new Ri(this.value(),this.__chain__)}function NQ(){this.__values__===n&&(this.__values__=JE(this.value()));var d=this.__index__>=this.__values__.length,h=d?n:this.__values__[this.__index__++];return{done:d,value:h}}function zQ(){return this}function BQ(d){for(var h,_=this;_ instanceof Q0;){var F=RE(_);F.__index__=0,F.__values__=n,h?V.__wrapped__=F:h=F;var V=F;_=_.__wrapped__}return V.__wrapped__=d,h}function HQ(){var d=this.__wrapped__;if(d instanceof on){var h=d;return this.__actions__.length&&(h=new on(this)),h=h.reverse(),h.__actions__.push({func:fv,args:[MC],thisArg:n}),new Ri(h,this.__chain__)}return this.thru(MC)}function WQ(){return tE(this.__wrapped__,this.__actions__)}var VQ=ov(function(d,h,_){Pn.call(d,_)?++d[_]:As(d,_,1)});function UQ(d,h,_){var F=Bt(d)?hI:FY;return _&&bo(d,h,_)&&(h=n),F(d,Mt(h,3))}function GQ(d,h){var _=Bt(d)?xl:DI;return _(d,Mt(h,3))}var qQ=fE(OE),KQ=fE(AE);function YQ(d,h){return qr(pv(d,h),1)}function XQ(d,h){return qr(pv(d,h),B)}function QQ(d,h,_){return _=_===n?1:qt(_),qr(pv(d,h),_)}function zE(d,h){var _=Bt(d)?Ii:$l;return _(d,Mt(h,3))}function BE(d,h){var _=Bt(d)?gK:jI;return _(d,Mt(h,3))}var ZQ=ov(function(d,h,_){Pn.call(d,_)?d[_].push(h):As(d,_,[h])});function JQ(d,h,_,F){d=Ro(d)?d:Gd(d),_=_&&!F?qt(_):0;var V=d.length;return _<0&&(_=Mr(V+_,0)),yv(d)?_<=V&&d.indexOf(h,_)>-1:!!V&&Ad(d,h,_)>-1}var eZ=Zt(function(d,h,_){var F=-1,V=typeof h=="function",q=Ro(d)?Me(d.length):[];return $l(d,function(J){q[++F]=V?ni(h,J,_):vh(J,h,_)}),q}),tZ=ov(function(d,h,_){As(d,_,h)});function pv(d,h){var _=Bt(d)?er:VI;return _(d,Mt(h,3))}function nZ(d,h,_,F){return d==null?[]:(Bt(h)||(h=h==null?[]:[h]),_=F?n:_,Bt(_)||(_=_==null?[]:[_]),KI(d,h,_))}var rZ=ov(function(d,h,_){d[_?0:1].push(h)},function(){return[[],[]]});function oZ(d,h,_){var F=Bt(d)?Bw:yI,V=arguments.length<3;return F(d,Mt(h,4),_,V,$l)}function iZ(d,h,_){var F=Bt(d)?vK:yI,V=arguments.length<3;return F(d,Mt(h,4),_,V,jI)}function aZ(d,h){var _=Bt(d)?xl:DI;return _(d,gv(Mt(h,3)))}function sZ(d){var h=Bt(d)?OI:JY;return h(d)}function lZ(d,h,_){(_?bo(d,h,_):h===n)?h=1:h=qt(h);var F=Bt(d)?IY:eX;return F(d,h)}function uZ(d){var h=Bt(d)?EY:nX;return h(d)}function cZ(d){if(d==null)return 0;if(Ro(d))return yv(d)?Ld(d):d.length;var h=ro(d);return h==$e||h==Oe?d.size:aC(d).length}function dZ(d,h,_){var F=Bt(d)?Hw:rX;return _&&bo(d,h,_)&&(h=n),F(d,Mt(h,3))}var fZ=Zt(function(d,h){if(d==null)return[];var _=h.length;return _>1&&bo(d,h[0],h[1])?h=[]:_>2&&bo(h[0],h[1],h[2])&&(h=[h[0]]),KI(d,qr(h,1),[])}),hv=GK||function(){return Gr.Date.now()};function pZ(d,h){if(typeof h!="function")throw new Ei(a);return d=qt(d),function(){if(--d<1)return h.apply(this,arguments)}}function HE(d,h,_){return h=_?n:h,h=d&&h==null?d.length:h,Fs(d,M,n,n,n,n,h)}function WE(d,h){var _;if(typeof h!="function")throw new Ei(a);return d=qt(d),function(){return--d>0&&(_=h.apply(this,arguments)),d<=1&&(h=n),_}}var IC=Zt(function(d,h,_){var F=C;if(_.length){var V=Cl(_,Vd(IC));F|=T}return Fs(d,F,h,_,V)}),VE=Zt(function(d,h,_){var F=C|x;if(_.length){var V=Cl(_,Vd(VE));F|=T}return Fs(h,F,d,_,V)});function UE(d,h,_){h=_?n:h;var F=Fs(d,S,n,n,n,n,n,h);return F.placeholder=UE.placeholder,F}function GE(d,h,_){h=_?n:h;var F=Fs(d,$,n,n,n,n,n,h);return F.placeholder=GE.placeholder,F}function qE(d,h,_){var F,V,q,J,ae,ve,He=0,We=!1,qe=!1,st=!0;if(typeof d!="function")throw new Ei(a);h=Li(h)||0,ar(_)&&(We=!!_.leading,qe="maxWait"in _,q=qe?Mr(Li(_.maxWait)||0,h):q,st="trailing"in _?!!_.trailing:st);function wt(yr){var ga=F,zs=V;return F=V=n,He=yr,J=d.apply(zs,ga),J}function It(yr){return He=yr,ae=Ch(tn,h),We?wt(yr):J}function Kt(yr){var ga=yr-ve,zs=yr-He,f4=h-ga;return qe?no(f4,q-zs):f4}function Et(yr){var ga=yr-ve,zs=yr-He;return ve===n||ga>=h||ga<0||qe&&zs>=q}function tn(){var yr=hv();if(Et(yr))return sn(yr);ae=Ch(tn,Kt(yr))}function sn(yr){return ae=n,st&&F?wt(yr):(F=V=n,J)}function ai(){ae!==n&&rE(ae),He=0,F=ve=V=ae=n}function xo(){return ae===n?J:sn(hv())}function si(){var yr=hv(),ga=Et(yr);if(F=arguments,V=this,ve=yr,ga){if(ae===n)return It(ve);if(qe)return rE(ae),ae=Ch(tn,h),wt(ve)}return ae===n&&(ae=Ch(tn,h)),J}return si.cancel=ai,si.flush=xo,si}var hZ=Zt(function(d,h){return LI(d,1,h)}),mZ=Zt(function(d,h,_){return LI(d,Li(h)||0,_)});function gZ(d){return Fs(d,N)}function mv(d,h){if(typeof d!="function"||h!=null&&typeof h!="function")throw new Ei(a);var _=function(){var F=arguments,V=h?h.apply(this,F):F[0],q=_.cache;if(q.has(V))return q.get(V);var J=d.apply(this,F);return _.cache=q.set(V,J)||q,J};return _.cache=new(mv.Cache||Os),_}mv.Cache=Os;function gv(d){if(typeof d!="function")throw new Ei(a);return function(){var h=arguments;switch(h.length){case 0:return!d.call(this);case 1:return!d.call(this,h[0]);case 2:return!d.call(this,h[0],h[1]);case 3:return!d.call(this,h[0],h[1],h[2])}return!d.apply(this,h)}}function vZ(d){return WE(2,d)}var yZ=oX(function(d,h){h=h.length==1&&Bt(h[0])?er(h[0],ri(Mt())):er(qr(h,1),ri(Mt()));var _=h.length;return Zt(function(F){for(var V=-1,q=no(F.length,_);++V=h}),Wu=BI(function(){return arguments}())?BI:function(d){return dr(d)&&Pn.call(d,"callee")&&!PI.call(d,"callee")},Bt=Me.isArray,OZ=lI?ri(lI):BY;function Ro(d){return d!=null&&vv(d.length)&&!Ds(d)}function vr(d){return dr(d)&&Ro(d)}function AZ(d){return d===!0||d===!1||dr(d)&&yo(d)==xe}var Ml=KK||HC,FZ=uI?ri(uI):HY;function LZ(d){return dr(d)&&d.nodeType===1&&!Sh(d)}function jZ(d){if(d==null)return!0;if(Ro(d)&&(Bt(d)||typeof d=="string"||typeof d.splice=="function"||Ml(d)||Ud(d)||Wu(d)))return!d.length;var h=ro(d);if(h==$e||h==Oe)return!d.size;if(wh(d))return!aC(d).length;for(var _ in d)if(Pn.call(d,_))return!1;return!0}function DZ(d,h){return yh(d,h)}function NZ(d,h,_){_=typeof _=="function"?_:n;var F=_?_(d,h):n;return F===n?yh(d,h,n,_):!!F}function RC(d){if(!dr(d))return!1;var h=yo(d);return h==de||h==Se||typeof d.message=="string"&&typeof d.name=="string"&&!Sh(d)}function zZ(d){return typeof d=="number"&&TI(d)}function Ds(d){if(!ar(d))return!1;var h=yo(d);return h==ie||h==Pe||h==ge||h==Le}function YE(d){return typeof d=="number"&&d==qt(d)}function vv(d){return typeof d=="number"&&d>-1&&d%1==0&&d<=D}function ar(d){var h=typeof d;return d!=null&&(h=="object"||h=="function")}function dr(d){return d!=null&&typeof d=="object"}var XE=cI?ri(cI):VY;function BZ(d,h){return d===h||iC(d,h,CC(h))}function HZ(d,h,_){return _=typeof _=="function"?_:n,iC(d,h,CC(h),_)}function WZ(d){return QE(d)&&d!=+d}function VZ(d){if(PX(d))throw new Nt(i);return HI(d)}function UZ(d){return d===null}function GZ(d){return d==null}function QE(d){return typeof d=="number"||dr(d)&&yo(d)==me}function Sh(d){if(!dr(d)||yo(d)!=ce)return!1;var h=V0(d);if(h===null)return!0;var _=Pn.call(h,"constructor")&&h.constructor;return typeof _=="function"&&_ instanceof _&&z0.call(_)==HK}var OC=dI?ri(dI):UY;function qZ(d){return YE(d)&&d>=-D&&d<=D}var ZE=fI?ri(fI):GY;function yv(d){return typeof d=="string"||!Bt(d)&&dr(d)&&yo(d)==K}function ii(d){return typeof d=="symbol"||dr(d)&&yo(d)==ee}var Ud=pI?ri(pI):qY;function KZ(d){return d===n}function YZ(d){return dr(d)&&ro(d)==ye}function XZ(d){return dr(d)&&yo(d)==je}var QZ=lv(sC),ZZ=lv(function(d,h){return d<=h});function JE(d){if(!d)return[];if(Ro(d))return yv(d)?pa(d):Eo(d);if(ch&&d[ch])return IK(d[ch]());var h=ro(d),_=h==$e?Kw:h==Oe?j0:Gd;return _(d)}function Ns(d){if(!d)return d===0?d:0;if(d=Li(d),d===B||d===-B){var h=d<0?-1:1;return h*W}return d===d?d:0}function qt(d){var h=Ns(d),_=h%1;return h===h?_?h-_:h:0}function e4(d){return d?Nu(qt(d),0,Z):0}function Li(d){if(typeof d=="number")return d;if(ii(d))return U;if(ar(d)){var h=typeof d.valueOf=="function"?d.valueOf():d;d=ar(h)?h+"":h}if(typeof d!="string")return d===0?d:+d;d=bI(d);var _=Tt.test(d);return _||kn.test(d)?pK(d.slice(2),_?2:8):rt.test(d)?U:+d}function t4(d){return Na(d,Oo(d))}function JZ(d){return d?Nu(qt(d),-D,D):d===0?d:0}function Cn(d){return d==null?"":oi(d)}var eJ=Hd(function(d,h){if(wh(h)||Ro(h)){Na(h,Dr(h),d);return}for(var _ in h)Pn.call(h,_)&&mh(d,_,h[_])}),n4=Hd(function(d,h){Na(h,Oo(h),d)}),bv=Hd(function(d,h,_,F){Na(h,Oo(h),d,F)}),tJ=Hd(function(d,h,_,F){Na(h,Dr(h),d,F)}),nJ=Ls(eC);function rJ(d,h){var _=Bd(d);return h==null?_:AI(_,h)}var oJ=Zt(function(d,h){d=jn(d);var _=-1,F=h.length,V=F>2?h[2]:n;for(V&&bo(h[0],h[1],V)&&(F=1);++_1),q}),Na(d,xC(d),_),F&&(_=Oi(_,f|p|y,mX));for(var V=h.length;V--;)fC(_,h[V]);return _});function CJ(d,h){return o4(d,gv(Mt(h)))}var SJ=Ls(function(d,h){return d==null?{}:XY(d,h)});function o4(d,h){if(d==null)return{};var _=er(xC(d),function(F){return[F]});return h=Mt(h),YI(d,_,function(F,V){return h(F,V[0])})}function $J(d,h,_){h=kl(h,d);var F=-1,V=h.length;for(V||(V=1,d=n);++Fh){var F=d;d=h,h=F}if(_||d%1||h%1){var V=II();return no(d+V*(h-d+fK("1e-"+((V+"").length-1))),h)}return uC(d,h)}var FJ=Wd(function(d,h,_){return h=h.toLowerCase(),d+(_?s4(h):h)});function s4(d){return LC(Cn(d).toLowerCase())}function l4(d){return d=Cn(d),d&&d.replace(gt,_K).replace(nK,"")}function LJ(d,h,_){d=Cn(d),h=oi(h);var F=d.length;_=_===n?F:Nu(qt(_),0,F);var V=_;return _-=h.length,_>=0&&d.slice(_,V)==h}function jJ(d){return d=Cn(d),d&&ht.test(d)?d.replace(nt,kK):d}function DJ(d){return d=Cn(d),d&&un.test(d)?d.replace(zt,"\\$&"):d}var NJ=Wd(function(d,h,_){return d+(_?"-":"")+h.toLowerCase()}),zJ=Wd(function(d,h,_){return d+(_?" ":"")+h.toLowerCase()}),BJ=dE("toLowerCase");function HJ(d,h,_){d=Cn(d),h=qt(h);var F=h?Ld(d):0;if(!h||F>=h)return d;var V=(h-F)/2;return sv(K0(V),_)+d+sv(q0(V),_)}function WJ(d,h,_){d=Cn(d),h=qt(h);var F=h?Ld(d):0;return h&&F>>0,_?(d=Cn(d),d&&(typeof h=="string"||h!=null&&!OC(h))&&(h=oi(h),!h&&Fd(d))?Pl(pa(d),0,_):d.split(h,_)):[]}var XJ=Wd(function(d,h,_){return d+(_?" ":"")+LC(h)});function QJ(d,h,_){return d=Cn(d),_=_==null?0:Nu(qt(_),0,d.length),h=oi(h),d.slice(_,_+h.length)==h}function ZJ(d,h,_){var F=G.templateSettings;_&&bo(d,h,_)&&(h=n),d=Cn(d),h=bv({},h,F,yE);var V=bv({},h.imports,F.imports,yE),q=Dr(V),J=qw(V,q),ae,ve,He=0,We=h.interpolate||ir,qe="__p += '",st=Yw((h.escape||ir).source+"|"+We.source+"|"+(We===Dt?we:ir).source+"|"+(h.evaluate||ir).source+"|$","g"),wt="//# sourceURL="+(Pn.call(h,"sourceURL")?(h.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++sK+"]")+` +`;d.replace(st,function(Et,tn,sn,ai,xo,si){return sn||(sn=ai),qe+=d.slice(He,si).replace(Ed,PK),tn&&(ae=!0,qe+=`' + +__e(`+tn+`) + +'`),xo&&(ve=!0,qe+=`'; +`+xo+`; +__p += '`),sn&&(qe+=`' + +((__t = (`+sn+`)) == null ? '' : __t) + +'`),He=si+Et.length,Et}),qe+=`'; +`;var It=Pn.call(h,"variable")&&h.variable;if(!It)qe=`with (obj) { +`+qe+` +} +`;else if(Gt.test(It))throw new Nt(s);qe=(ve?qe.replace(Ue,""):qe).replace(Ye,"$1").replace(at,"$1;"),qe="function("+(It||"obj")+`) { +`+(It?"":`obj || (obj = {}); +`)+"var __t, __p = ''"+(ae?", __e = _.escape":"")+(ve?`, __j = Array.prototype.join; +function print() { __p += __j.call(arguments, '') } +`:`; +`)+qe+`return __p +}`;var Kt=c4(function(){return yn(q,wt+"return "+qe).apply(n,J)});if(Kt.source=qe,RC(Kt))throw Kt;return Kt}function JJ(d){return Cn(d).toLowerCase()}function eee(d){return Cn(d).toUpperCase()}function tee(d,h,_){if(d=Cn(d),d&&(_||h===n))return bI(d);if(!d||!(h=oi(h)))return d;var F=pa(d),V=pa(h),q=xI(F,V),J=wI(F,V)+1;return Pl(F,q,J).join("")}function nee(d,h,_){if(d=Cn(d),d&&(_||h===n))return d.slice(0,SI(d)+1);if(!d||!(h=oi(h)))return d;var F=pa(d),V=wI(F,pa(h))+1;return Pl(F,0,V).join("")}function ree(d,h,_){if(d=Cn(d),d&&(_||h===n))return d.replace(cn,"");if(!d||!(h=oi(h)))return d;var F=pa(d),V=xI(F,pa(h));return Pl(F,V).join("")}function oee(d,h){var _=I,F=A;if(ar(h)){var V="separator"in h?h.separator:V;_="length"in h?qt(h.length):_,F="omission"in h?oi(h.omission):F}d=Cn(d);var q=d.length;if(Fd(d)){var J=pa(d);q=J.length}if(_>=q)return d;var ae=_-Ld(F);if(ae<1)return F;var ve=J?Pl(J,0,ae).join(""):d.slice(0,ae);if(V===n)return ve+F;if(J&&(ae+=ve.length-ae),OC(V)){if(d.slice(ae).search(V)){var He,We=ve;for(V.global||(V=Yw(V.source,Cn(Fe.exec(V))+"g")),V.lastIndex=0;He=V.exec(We);)var qe=He.index;ve=ve.slice(0,qe===n?ae:qe)}}else if(d.indexOf(oi(V),ae)!=ae){var st=ve.lastIndexOf(V);st>-1&&(ve=ve.slice(0,st))}return ve+F}function iee(d){return d=Cn(d),d&&_t.test(d)?d.replace(Je,AK):d}var aee=Wd(function(d,h,_){return d+(_?" ":"")+h.toUpperCase()}),LC=dE("toUpperCase");function u4(d,h,_){return d=Cn(d),h=_?n:h,h===n?TK(d)?jK(d):xK(d):d.match(h)||[]}var c4=Zt(function(d,h){try{return ni(d,n,h)}catch(_){return RC(_)?_:new Nt(_)}}),see=Ls(function(d,h){return Ii(h,function(_){_=za(_),As(d,_,IC(d[_],d))}),d});function lee(d){var h=d==null?0:d.length,_=Mt();return d=h?er(d,function(F){if(typeof F[1]!="function")throw new Ei(a);return[_(F[0]),F[1]]}):[],Zt(function(F){for(var V=-1;++VD)return[];var _=Z,F=no(d,Z);h=Mt(h),d-=Z;for(var V=Gw(F,h);++_0||h<0)?new on(_):(d<0?_=_.takeRight(-d):d&&(_=_.drop(d)),h!==n&&(h=qt(h),_=h<0?_.dropRight(-h):_.take(h-d)),_)},on.prototype.takeRightWhile=function(d){return this.reverse().takeWhile(d).reverse()},on.prototype.toArray=function(){return this.take(Z)},Da(on.prototype,function(d,h){var _=/^(?:filter|find|map|reject)|While$/.test(h),F=/^(?:head|last)$/.test(h),V=G[F?"take"+(h=="last"?"Right":""):h],q=F||/^find/.test(h);V&&(G.prototype[h]=function(){var J=this.__wrapped__,ae=F?[1]:arguments,ve=J instanceof on,He=ae[0],We=ve||Bt(J),qe=function(tn){var sn=V.apply(G,wl([tn],ae));return F&&st?sn[0]:sn};We&&_&&typeof He=="function"&&He.length!=1&&(ve=We=!1);var st=this.__chain__,wt=!!this.__actions__.length,It=q&&!st,Kt=ve&&!wt;if(!q&&We){J=Kt?J:new on(this);var Et=d.apply(J,ae);return Et.__actions__.push({func:fv,args:[qe],thisArg:n}),new Ri(Et,st)}return It&&Kt?d.apply(this,ae):(Et=this.thru(qe),It?F?Et.value()[0]:Et.value():Et)})}),Ii(["pop","push","shift","sort","splice","unshift"],function(d){var h=D0[d],_=/^(?:push|sort|unshift)$/.test(d)?"tap":"thru",F=/^(?:pop|shift)$/.test(d);G.prototype[d]=function(){var V=arguments;if(F&&!this.__chain__){var q=this.value();return h.apply(Bt(q)?q:[],V)}return this[_](function(J){return h.apply(Bt(J)?J:[],V)})}}),Da(on.prototype,function(d,h){var _=G[h];if(_){var F=_.name+"";Pn.call(zd,F)||(zd[F]=[]),zd[F].push({name:h,func:_})}}),zd[iv(n,x).name]=[{name:"wrapper",func:n}],on.prototype.clone=iY,on.prototype.reverse=aY,on.prototype.value=sY,G.prototype.at=LQ,G.prototype.chain=jQ,G.prototype.commit=DQ,G.prototype.next=NQ,G.prototype.plant=BQ,G.prototype.reverse=HQ,G.prototype.toJSON=G.prototype.valueOf=G.prototype.value=WQ,G.prototype.first=G.prototype.head,ch&&(G.prototype[ch]=zQ),G},jd=DK();Fu?((Fu.exports=jd)._=jd,Dw._=jd):Gr._=jd}).call(qs)})(Gy,Gy.exports);var wi=Gy.exports;function n5e(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var HB=n5e;const St=Fr(HB);function WB(e,t){return et?1:e>=t?0:NaN}function x2(e){let t=e,n=e;e.length===1&&(t=(a,s)=>e(a)-s,n=r5e(e));function r(a,s,l,u){for(l==null&&(l=0),u==null&&(u=a.length);l>>1;n(a[c],s)<0?l=c+1:u=c}return l}function o(a,s,l,u){for(l==null&&(l=0),u==null&&(u=a.length);l>>1;n(a[c],s)>0?u=c:l=c+1}return l}function i(a,s,l,u){l==null&&(l=0),u==null&&(u=a.length);const c=r(a,s,l,u-1);return c>l&&t(a[c-1],s)>-t(a[c],s)?c-1:c}return{left:r,center:i,right:o}}function r5e(e){return(t,n)=>WB(e(t),n)}function o5e(e){return e===null?NaN:+e}const i5e=x2(WB),a5e=i5e.right;x2(o5e).center;const VB=a5e;class l8 extends Map{constructor(t,n=u5e){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(u8(this,t))}has(t){return super.has(u8(this,t))}set(t,n){return super.set(s5e(this,t),n)}delete(t){return super.delete(l5e(this,t))}}function u8({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function s5e({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function l5e({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(n),e.delete(r)),n}function u5e(e){return e!==null&&typeof e=="object"?e.valueOf():e}var dk=Math.sqrt(50),fk=Math.sqrt(10),pk=Math.sqrt(2);function wp(e,t,n){var r,o=-1,i,a,s;if(t=+t,e=+e,n=+n,e===t&&n>0)return[e];if((r=t0){let l=Math.round(e/s),u=Math.round(t/s);for(l*st&&--u,a=new Array(i=u-l+1);++ot&&--u,a=new Array(i=u-l+1);++o=0?(i>=dk?10:i>=fk?5:i>=pk?2:1)*Math.pow(10,o):-Math.pow(10,-o)/(i>=dk?10:i>=fk?5:i>=pk?2:1)}function Cp(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),o=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),i=r/o;return i>=dk?o*=10:i>=fk?o*=5:i>=pk&&(o*=2),tt&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function h5e(e,t,n){var r=e[0],o=e[1],i=t[0],a=t[1];return o2?m5e:h5e,l=u=null,f}function f(p){return p==null||isNaN(p=+p)?i:(l||(l=s(e.map(r),t,n)))(r(a(p)))}return f.invert=function(p){return a(o((u||(u=s(t,e.map(r),Ig)))(p)))},f.domain=function(p){return arguments.length?(e=Array.from(p,f5e),c()):e.slice()},f.range=function(p){return arguments.length?(t=Array.from(p),c()):t.slice()},f.rangeRound=function(p){return t=Array.from(p),n=zB,c()},f.clamp=function(p){return arguments.length?(a=p?!0:Tf,c()):a!==Tf},f.interpolate=function(p){return arguments.length?(n=p,c()):n},f.unknown=function(p){return arguments.length?(i=p,f):i},function(p,y){return r=p,o=y,c()}}function qB(){return X5()(Tf,Tf)}function g5e(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function qy(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 Sp(e){return e=qy(Math.abs(e)),e?e[1]:NaN}function v5e(e,t){return function(n,r){for(var o=n.length,i=[],a=0,s=e[0],l=0;o>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),i.push(n.substring(o-=s,o+s)),!((l+=s+1)>r));)s=e[a=(a+1)%e.length];return i.reverse().join(t)}}function y5e(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var b5e=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function $p(e){if(!(t=b5e.exec(e)))throw new Error("invalid format: "+e);var t;return new Q5({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]})}$p.prototype=Q5.prototype;function Q5(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+""}Q5.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 x5e(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 KB;function w5e(e,t){var n=qy(e,t);if(!n)return e+"";var r=n[0],o=n[1],i=o-(KB=Math.max(-8,Math.min(8,Math.floor(o/3)))*3)+1,a=r.length;return i===a?r:i>a?r+new Array(i-a+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+qy(e,Math.max(0,t+i-1))[0]}function f8(e,t){var n=qy(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 p8={"%":function(e,t){return(e*100).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:g5e,e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return f8(e*100,t)},r:f8,s:w5e,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function h8(e){return e}var m8=Array.prototype.map,g8=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function C5e(e){var t=e.grouping===void 0||e.thousands===void 0?h8:v5e(m8.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?h8:y5e(m8.call(e.numerals,String)),a=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"-":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function u(f){f=$p(f);var p=f.fill,y=f.align,v=f.sign,b=f.symbol,C=f.zero,x=f.width,w=f.comma,S=f.precision,$=f.trim,T=f.type;T==="n"?(w=!0,T="g"):p8[T]||(S===void 0&&(S=12),$=!0,T="g"),(C||p==="0"&&y==="=")&&(C=!0,p="0",y="=");var k=b==="$"?n:b==="#"&&/[boxX]/.test(T)?"0"+T.toLowerCase():"",M=b==="$"?r:/[%p]/.test(T)?a:"",E=p8[T],N=/[defgprs%]/.test(T);S=S===void 0?6:/[gprs]/.test(T)?Math.max(1,Math.min(21,S)):Math.max(0,Math.min(20,S));function I(A){var z=k,L=M,O,j,H;if(T==="c")L=E(A)+L,A="";else{A=+A;var B=A<0||1/A<0;if(A=isNaN(A)?l:E(Math.abs(A),S),$&&(A=x5e(A)),B&&+A==0&&v!=="+"&&(B=!1),z=(B?v==="("?v:s:v==="-"||v==="("?"":v)+z,L=(T==="s"?g8[8+KB/3]:"")+L+(B&&v==="("?")":""),N){for(O=-1,j=A.length;++OH||H>57){L=(H===46?o+A.slice(O+1):A.slice(O))+L,A=A.slice(0,O);break}}}w&&!C&&(A=t(A,1/0));var D=z.length+A.length+L.length,W=D>1)+z+A+L+W.slice(D);break;default:A=W+z+A+L;break}return i(A)}return I.toString=function(){return f+""},I}function c(f,p){var y=u((f=$p(f),f.type="f",f)),v=Math.max(-8,Math.min(8,Math.floor(Sp(p)/3)))*3,b=Math.pow(10,-v),C=g8[8+v/3];return function(x){return y(b*x)+C}}return{format:u,formatPrefix:c}}var Zv,Tu,Z5;S5e({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function S5e(e){return Zv=C5e(e),Tu=Zv.format,Z5=Zv.formatPrefix,Zv}function YB(e){return Math.max(0,-Sp(Math.abs(e)))}function XB(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Sp(t)/3)))*3-Sp(Math.abs(e)))}function QB(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Sp(t)-Sp(e))+1}function $5e(e,t,n,r){var o=Cp(e,t,n),i;switch(r=$p(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(i=XB(o,a))&&(r.precision=i),Z5(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(i=QB(o,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=i-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(i=YB(o))&&(r.precision=i-(r.type==="%")*2);break}}return Tu(r)}function ZB(e){var t=e.domain;return e.ticks=function(n){var r=t();return wp(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var o=t();return $5e(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,a=r[o],s=r[i],l,u,c=10;for(s0;){if(u=K5(a,s,n),u===l)return r[o]=a,r[i]=s,t(r);if(u>0)a=Math.floor(a/u)*u,s=Math.ceil(s/u)*u;else if(u<0)a=Math.ceil(a*u)/u,s=Math.floor(s*u)/u;else break;l=u}return e},e}function JB(){var e=qB();return e.copy=function(){return w2(e,JB())},hd.apply(e,arguments),ZB(e)}function eH(e,t){e=e.slice();var n=0,r=e.length-1,o=e[n],i=e[r],a;return i0){for(;p<=y;++p)for(b=1,v=i(p);bc)break;w.push(C)}}else for(;p<=y;++p)for(b=r-1,v=i(p);b>=1;--b)if(C=v*b,!(Cc)break;w.push(C)}w.length*20))return l;do l.push(u=new Date(+i)),t(i,s),e(i);while(u=a)for(;e(a),!i(a);)a.setTime(a-1)},function(a,s){if(a>=a)if(s<0)for(;++s<=0;)for(;t(a,-1),!i(a););else for(;--s>=0;)for(;t(a,1),!i(a););})},n&&(o.count=function(i,a){return WS.setTime(+i),VS.setTime(+a),e(WS),e(VS),Math.floor(n(WS,VS))},o.every=function(i){return i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?o.filter(r?function(a){return r(a)%i===0}:function(a){return o.count(0,a)%i===0}):o}),o}var Ky=Vr(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});Ky.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Vr(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):Ky};const R5e=Ky;Ky.range;const Qs=1e3,Yi=Qs*60,Zs=Yi*60,Yc=Zs*24,J5=Yc*7,C8=Yc*30,US=Yc*365;var rH=Vr(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*Qs)},function(e,t){return(t-e)/Qs},function(e){return e.getUTCSeconds()});const If=rH;rH.range;var oH=Vr(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Qs)},function(e,t){e.setTime(+e+t*Yi)},function(e,t){return(t-e)/Yi},function(e){return e.getMinutes()});const iH=oH;oH.range;var aH=Vr(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Qs-e.getMinutes()*Yi)},function(e,t){e.setTime(+e+t*Zs)},function(e,t){return(t-e)/Zs},function(e){return e.getHours()});const sH=aH;aH.range;var lH=Vr(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Yi)/Yc,e=>e.getDate()-1);const uH=lH;lH.range;function md(e){return Vr(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+n*7)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Yi)/J5})}var eT=md(0),O5e=md(1),A5e=md(2),F5e=md(3),L5e=md(4),j5e=md(5),D5e=md(6);eT.range;O5e.range;A5e.range;F5e.range;L5e.range;j5e.range;D5e.range;var cH=Vr(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()});const dH=cH;cH.range;var tT=Vr(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});tT.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:Vr(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)})};const fH=tT;tT.range;var pH=Vr(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*Yi)},function(e,t){return(t-e)/Yi},function(e){return e.getUTCMinutes()});const hH=pH;pH.range;var mH=Vr(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*Zs)},function(e,t){return(t-e)/Zs},function(e){return e.getUTCHours()});const gH=mH;mH.range;var vH=Vr(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/Yc},function(e){return e.getUTCDate()-1});const yH=vH;vH.range;function gd(e){return Vr(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n*7)},function(t,n){return(n-t)/J5})}var nT=gd(0),N5e=gd(1),z5e=gd(2),B5e=gd(3),H5e=gd(4),W5e=gd(5),V5e=gd(6);nT.range;N5e.range;z5e.range;B5e.range;H5e.range;W5e.range;V5e.range;var bH=Vr(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12},function(e){return e.getUTCMonth()});const xH=bH;bH.range;var rT=Vr(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});rT.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:Vr(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})};const wH=rT;rT.range;function CH(e,t,n,r,o,i){const a=[[If,1,Qs],[If,5,5*Qs],[If,15,15*Qs],[If,30,30*Qs],[i,1,Yi],[i,5,5*Yi],[i,15,15*Yi],[i,30,30*Yi],[o,1,Zs],[o,3,3*Zs],[o,6,6*Zs],[o,12,12*Zs],[r,1,Yc],[r,2,2*Yc],[n,1,J5],[t,1,C8],[t,3,3*C8],[e,1,US]];function s(u,c,f){const p=cC).right(a,p);if(y===a.length)return e.every(Cp(u/US,c/US,f));if(y===0)return R5e.every(Math.max(Cp(u,c,f),1));const[v,b]=a[p/a[y-1][2]0))return l;do l.push(u=new Date(+i)),t(i,s),e(i);while(u=a)for(;e(a),!i(a);)a.setTime(a-1)},function(a,s){if(a>=a)if(s<0)for(;++s<=0;)for(;t(a,-1),!i(a););else for(;--s>=0;)for(;t(a,1),!i(a););})},n&&(o.count=function(i,a){return GS.setTime(+i),qS.setTime(+a),e(GS),e(qS),Math.floor(n(GS,qS))},o.every=function(i){return i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?o.filter(r?function(a){return r(a)%i===0}:function(a){return o.count(0,a)%i===0}):o}),o}var Yy=kr(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});Yy.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?kr(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):Yy};const S8=Yy;Yy.range;var Xy=1e3,Xc=6e4,Qy=36e5,SH=864e5,$H=6048e5,_H=kr(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*Xy)},function(e,t){return(t-e)/Xy},function(e){return e.getUTCSeconds()});const $8=_H;_H.range;var kH=kr(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Xy)},function(e,t){e.setTime(+e+t*Xc)},function(e,t){return(t-e)/Xc},function(e){return e.getMinutes()});const Y5e=kH;kH.range;var PH=kr(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Xy-e.getMinutes()*Xc)},function(e,t){e.setTime(+e+t*Qy)},function(e,t){return(t-e)/Qy},function(e){return e.getHours()});const X5e=PH;PH.range;var MH=kr(function(e){e.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Xc)/SH},function(e){return e.getDate()-1});const TH=MH;MH.range;function vd(e){return kr(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+n*7)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Xc)/$H})}var Zy=vd(0),Eg=vd(1),IH=vd(2),EH=vd(3),Qc=vd(4),RH=vd(5),OH=vd(6);Zy.range;Eg.range;IH.range;EH.range;Qc.range;RH.range;OH.range;var AH=kr(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()});const Q5e=AH;AH.range;var oT=kr(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});oT.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:kr(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)})};const _p=oT;oT.range;var FH=kr(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*Xc)},function(e,t){return(t-e)/Xc},function(e){return e.getUTCMinutes()});const Z5e=FH;FH.range;var LH=kr(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*Qy)},function(e,t){return(t-e)/Qy},function(e){return e.getUTCHours()});const J5e=LH;LH.range;var jH=kr(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/SH},function(e){return e.getUTCDate()-1});const DH=jH;jH.range;function yd(e){return kr(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n*7)},function(t,n){return(n-t)/$H})}var Jy=yd(0),Rg=yd(1),NH=yd(2),zH=yd(3),Zc=yd(4),BH=yd(5),HH=yd(6);Jy.range;Rg.range;NH.range;zH.range;Zc.range;BH.range;HH.range;var WH=kr(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12},function(e){return e.getUTCMonth()});const eTe=WH;WH.range;var iT=kr(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});iT.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:kr(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})};const kp=iT;iT.range;function KS(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function YS(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Qh(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function tTe(e){var t=e.dateTime,n=e.date,r=e.time,o=e.periods,i=e.days,a=e.shortDays,s=e.months,l=e.shortMonths,u=Zh(o),c=Jh(o),f=Zh(i),p=Jh(i),y=Zh(a),v=Jh(a),b=Zh(s),C=Jh(s),x=Zh(l),w=Jh(l),S={a:B,A:D,b:W,B:U,c:null,d:I8,e:I8,f:$Te,g:ATe,G:LTe,H:wTe,I:CTe,j:STe,L:VH,m:_Te,M:kTe,p:Z,q:Y,Q:O8,s:A8,S:PTe,u:MTe,U:TTe,V:ITe,w:ETe,W:RTe,x:null,X:null,y:OTe,Y:FTe,Z:jTe,"%":R8},$={a:se,A:Q,b:ne,B:re,c:null,d:E8,e:E8,f:BTe,g:QTe,G:JTe,H:DTe,I:NTe,j:zTe,L:GH,m:HTe,M:WTe,p:ge,q:xe,Q:O8,s:A8,S:VTe,u:UTe,U:GTe,V:qTe,w:KTe,W:YTe,x:null,X:null,y:XTe,Y:ZTe,Z:e3e,"%":R8},T={a:I,A,b:z,B:L,c:O,d:M8,e:M8,f:vTe,g:P8,G:k8,H:T8,I:T8,j:pTe,L:gTe,m:fTe,M:hTe,p:N,q:dTe,Q:bTe,s:xTe,S:mTe,u:aTe,U:sTe,V:lTe,w:iTe,W:uTe,x:j,X:H,y:P8,Y:k8,Z:cTe,"%":yTe};S.x=k(n,S),S.X=k(r,S),S.c=k(t,S),$.x=k(n,$),$.X=k(r,$),$.c=k(t,$);function k(fe,Se){return function(de){var ie=[],Pe=-1,$e=0,me=fe.length,ue,ce,Te;for(de instanceof Date||(de=new Date(+de));++Pe53)return null;"w"in ie||(ie.w=1),"Z"in ie?($e=YS(Qh(ie.y,0,1)),me=$e.getUTCDay(),$e=me>4||me===0?Rg.ceil($e):Rg($e),$e=DH.offset($e,(ie.V-1)*7),ie.y=$e.getUTCFullYear(),ie.m=$e.getUTCMonth(),ie.d=$e.getUTCDate()+(ie.w+6)%7):($e=KS(Qh(ie.y,0,1)),me=$e.getDay(),$e=me>4||me===0?Eg.ceil($e):Eg($e),$e=TH.offset($e,(ie.V-1)*7),ie.y=$e.getFullYear(),ie.m=$e.getMonth(),ie.d=$e.getDate()+(ie.w+6)%7)}else("W"in ie||"U"in ie)&&("w"in ie||(ie.w="u"in ie?ie.u%7:"W"in ie?1:0),me="Z"in ie?YS(Qh(ie.y,0,1)).getUTCDay():KS(Qh(ie.y,0,1)).getDay(),ie.m=0,ie.d="W"in ie?(ie.w+6)%7+ie.W*7-(me+5)%7:ie.w+ie.U*7-(me+6)%7);return"Z"in ie?(ie.H+=ie.Z/100|0,ie.M+=ie.Z%100,YS(ie)):KS(ie)}}function E(fe,Se,de,ie){for(var Pe=0,$e=Se.length,me=de.length,ue,ce;Pe<$e;){if(ie>=me)return-1;if(ue=Se.charCodeAt(Pe++),ue===37){if(ue=Se.charAt(Pe++),ce=T[ue in _8?Se.charAt(Pe++):ue],!ce||(ie=ce(fe,de,ie))<0)return-1}else if(ue!=de.charCodeAt(ie++))return-1}return ie}function N(fe,Se,de){var ie=u.exec(Se.slice(de));return ie?(fe.p=c.get(ie[0].toLowerCase()),de+ie[0].length):-1}function I(fe,Se,de){var ie=y.exec(Se.slice(de));return ie?(fe.w=v.get(ie[0].toLowerCase()),de+ie[0].length):-1}function A(fe,Se,de){var ie=f.exec(Se.slice(de));return ie?(fe.w=p.get(ie[0].toLowerCase()),de+ie[0].length):-1}function z(fe,Se,de){var ie=x.exec(Se.slice(de));return ie?(fe.m=w.get(ie[0].toLowerCase()),de+ie[0].length):-1}function L(fe,Se,de){var ie=b.exec(Se.slice(de));return ie?(fe.m=C.get(ie[0].toLowerCase()),de+ie[0].length):-1}function O(fe,Se,de){return E(fe,t,Se,de)}function j(fe,Se,de){return E(fe,n,Se,de)}function H(fe,Se,de){return E(fe,r,Se,de)}function B(fe){return a[fe.getDay()]}function D(fe){return i[fe.getDay()]}function W(fe){return l[fe.getMonth()]}function U(fe){return s[fe.getMonth()]}function Z(fe){return o[+(fe.getHours()>=12)]}function Y(fe){return 1+~~(fe.getMonth()/3)}function se(fe){return a[fe.getUTCDay()]}function Q(fe){return i[fe.getUTCDay()]}function ne(fe){return l[fe.getUTCMonth()]}function re(fe){return s[fe.getUTCMonth()]}function ge(fe){return o[+(fe.getUTCHours()>=12)]}function xe(fe){return 1+~~(fe.getUTCMonth()/3)}return{format:function(fe){var Se=k(fe+="",S);return Se.toString=function(){return fe},Se},parse:function(fe){var Se=M(fe+="",!1);return Se.toString=function(){return fe},Se},utcFormat:function(fe){var Se=k(fe+="",$);return Se.toString=function(){return fe},Se},utcParse:function(fe){var Se=M(fe+="",!0);return Se.toString=function(){return fe},Se}}}var _8={"-":"",_:" ",0:"0"},Ur=/^\s*\d+/,nTe=/^%/,rTe=/[\\^$*+?|[\]().{}]/g;function vn(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",i=o.length;return r+(i[t.toLowerCase(),n]))}function iTe(e,t,n){var r=Ur.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function aTe(e,t,n){var r=Ur.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function sTe(e,t,n){var r=Ur.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function lTe(e,t,n){var r=Ur.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function uTe(e,t,n){var r=Ur.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function k8(e,t,n){var r=Ur.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function P8(e,t,n){var r=Ur.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function cTe(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 dTe(e,t,n){var r=Ur.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function fTe(e,t,n){var r=Ur.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function M8(e,t,n){var r=Ur.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function pTe(e,t,n){var r=Ur.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function T8(e,t,n){var r=Ur.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function hTe(e,t,n){var r=Ur.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function mTe(e,t,n){var r=Ur.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function gTe(e,t,n){var r=Ur.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function vTe(e,t,n){var r=Ur.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function yTe(e,t,n){var r=nTe.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function bTe(e,t,n){var r=Ur.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function xTe(e,t,n){var r=Ur.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function I8(e,t){return vn(e.getDate(),t,2)}function wTe(e,t){return vn(e.getHours(),t,2)}function CTe(e,t){return vn(e.getHours()%12||12,t,2)}function STe(e,t){return vn(1+TH.count(_p(e),e),t,3)}function VH(e,t){return vn(e.getMilliseconds(),t,3)}function $Te(e,t){return VH(e,t)+"000"}function _Te(e,t){return vn(e.getMonth()+1,t,2)}function kTe(e,t){return vn(e.getMinutes(),t,2)}function PTe(e,t){return vn(e.getSeconds(),t,2)}function MTe(e){var t=e.getDay();return t===0?7:t}function TTe(e,t){return vn(Zy.count(_p(e)-1,e),t,2)}function UH(e){var t=e.getDay();return t>=4||t===0?Qc(e):Qc.ceil(e)}function ITe(e,t){return e=UH(e),vn(Qc.count(_p(e),e)+(_p(e).getDay()===4),t,2)}function ETe(e){return e.getDay()}function RTe(e,t){return vn(Eg.count(_p(e)-1,e),t,2)}function OTe(e,t){return vn(e.getFullYear()%100,t,2)}function ATe(e,t){return e=UH(e),vn(e.getFullYear()%100,t,2)}function FTe(e,t){return vn(e.getFullYear()%1e4,t,4)}function LTe(e,t){var n=e.getDay();return e=n>=4||n===0?Qc(e):Qc.ceil(e),vn(e.getFullYear()%1e4,t,4)}function jTe(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+vn(t/60|0,"0",2)+vn(t%60,"0",2)}function E8(e,t){return vn(e.getUTCDate(),t,2)}function DTe(e,t){return vn(e.getUTCHours(),t,2)}function NTe(e,t){return vn(e.getUTCHours()%12||12,t,2)}function zTe(e,t){return vn(1+DH.count(kp(e),e),t,3)}function GH(e,t){return vn(e.getUTCMilliseconds(),t,3)}function BTe(e,t){return GH(e,t)+"000"}function HTe(e,t){return vn(e.getUTCMonth()+1,t,2)}function WTe(e,t){return vn(e.getUTCMinutes(),t,2)}function VTe(e,t){return vn(e.getUTCSeconds(),t,2)}function UTe(e){var t=e.getUTCDay();return t===0?7:t}function GTe(e,t){return vn(Jy.count(kp(e)-1,e),t,2)}function qH(e){var t=e.getUTCDay();return t>=4||t===0?Zc(e):Zc.ceil(e)}function qTe(e,t){return e=qH(e),vn(Zc.count(kp(e),e)+(kp(e).getUTCDay()===4),t,2)}function KTe(e){return e.getUTCDay()}function YTe(e,t){return vn(Rg.count(kp(e)-1,e),t,2)}function XTe(e,t){return vn(e.getUTCFullYear()%100,t,2)}function QTe(e,t){return e=qH(e),vn(e.getUTCFullYear()%100,t,2)}function ZTe(e,t){return vn(e.getUTCFullYear()%1e4,t,4)}function JTe(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Zc(e):Zc.ceil(e),vn(e.getUTCFullYear()%1e4,t,4)}function e3e(){return"+0000"}function R8(){return"%"}function O8(e){return+e}function A8(e){return Math.floor(+e/1e3)}var nf,C0,KH,aT,YH;t3e({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 t3e(e){return nf=tTe(e),C0=nf.format,KH=nf.parse,aT=nf.utcFormat,YH=nf.utcParse,nf}function n3e(e){return new Date(e)}function r3e(e){return e instanceof Date?+e:+new Date(+e)}function sT(e,t,n,r,o,i,a,s,l,u){var c=qB(),f=c.invert,p=c.domain,y=u(".%L"),v=u(":%S"),b=u("%I:%M"),C=u("%I %p"),x=u("%a %d"),w=u("%b %d"),S=u("%B"),$=u("%Y");function T(k){return(l(k)KMe(e[e.length-1]);var C2=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(Qt);const a3e=Nn(C2);var S2=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(Qt);const s3e=Nn(S2);var $2=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(Qt);const l3e=Nn($2);var _2=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(Qt);const u3e=Nn(_2);var k2=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(Qt);const c3e=Nn(k2);var P2=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(Qt);const d3e=Nn(P2);var M2=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(Qt);const f3e=Nn(M2);var T2=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(Qt);const p3e=Nn(T2);var I2=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(Qt);const h3e=Nn(I2);var E2=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(Qt);const m3e=Nn(E2);var R2=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(Qt);const g3e=Nn(R2);var O2=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(Qt);const v3e=Nn(O2);var A2=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(Qt);const y3e=Nn(A2);var F2=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(Qt);const b3e=Nn(F2);var L2=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(Qt);const x3e=Nn(L2);var j2=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(Qt);const w3e=Nn(j2);var D2=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(Qt);const C3e=Nn(D2);var N2=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(Qt);const S3e=Nn(N2);var z2=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(Qt);const $3e=Nn(z2);var B2=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(Qt);const _3e=Nn(B2);var H2=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(Qt);const k3e=Nn(H2);var W2=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(Qt);const P3e=Nn(W2);var V2=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(Qt);const M3e=Nn(V2);var U2=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(Qt);const T3e=Nn(U2);var G2=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(Qt);const I3e=Nn(G2);var q2=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(Qt);const E3e=Nn(q2);var K2=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(Qt);const R3e=Nn(K2);function O3e(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(-4.54-e*(35.34-e*(2381.73-e*(6402.7-e*(7024.72-e*2710.57)))))))+", "+Math.max(0,Math.min(255,Math.round(32.49+e*(170.73+e*(52.82-e*(131.46-e*(176.58-e*67.37)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+e*(442.36-e*(2482.43-e*(6167.24-e*(6614.94-e*2475.67)))))))+")"}function Y2(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function uT(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function eh(){}var Jc=.7,Pp=1/Jc,Xf="\\s*([+-]?\\d+)\\s*",Og="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",ds="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",A3e=/^#([0-9a-f]{3,8})$/,F3e=new RegExp("^rgb\\("+[Xf,Xf,Xf]+"\\)$"),L3e=new RegExp("^rgb\\("+[ds,ds,ds]+"\\)$"),j3e=new RegExp("^rgba\\("+[Xf,Xf,Xf,Og]+"\\)$"),D3e=new RegExp("^rgba\\("+[ds,ds,ds,Og]+"\\)$"),N3e=new RegExp("^hsl\\("+[Og,ds,ds]+"\\)$"),z3e=new RegExp("^hsla\\("+[Og,ds,ds,Og]+"\\)$"),F8={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Y2(eh,cT,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:L8,formatHex:L8,formatHsl:B3e,formatRgb:j8,toString:j8});function L8(){return this.rgb().formatHex()}function B3e(){return aW(this).formatHsl()}function j8(){return this.rgb().formatRgb()}function cT(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=A3e.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?D8(t):n===3?new ko(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Jv(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Jv(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=F3e.exec(e))?new ko(t[1],t[2],t[3],1):(t=L3e.exec(e))?new ko(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=j3e.exec(e))?Jv(t[1],t[2],t[3],t[4]):(t=D3e.exec(e))?Jv(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=N3e.exec(e))?B8(t[1],t[2]/100,t[3]/100,1):(t=z3e.exec(e))?B8(t[1],t[2]/100,t[3]/100,t[4]):F8.hasOwnProperty(e)?D8(F8[e]):e==="transparent"?new ko(NaN,NaN,NaN,0):null}function D8(e){return new ko(e>>16&255,e>>8&255,e&255,1)}function Jv(e,t,n,r){return r<=0&&(e=t=n=NaN),new ko(e,t,n,r)}function oW(e){return e instanceof eh||(e=cT(e)),e?(e=e.rgb(),new ko(e.r,e.g,e.b,e.opacity)):new ko}function iW(e,t,n,r){return arguments.length===1?oW(e):new ko(e,t,n,r??1)}function ko(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Y2(ko,iW,uT(eh,{brighter:function(e){return e=e==null?Pp:Math.pow(Pp,e),new ko(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=e==null?Jc:Math.pow(Jc,e),new ko(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){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:N8,formatHex:N8,formatRgb:z8,toString:z8}));function N8(){return"#"+XS(this.r)+XS(this.g)+XS(this.b)}function z8(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(e===1?")":", "+e+")")}function XS(e){return e=Math.max(0,Math.min(255,Math.round(e)||0)),(e<16?"0":"")+e.toString(16)}function B8(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new ns(e,t,n,r)}function aW(e){if(e instanceof ns)return new ns(e.h,e.s,e.l,e.opacity);if(e instanceof eh||(e=cT(e)),!e)return new ns;if(e instanceof ns)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),a=NaN,s=i-o,l=(i+o)/2;return s?(t===i?a=(n-r)/s+(n0&&l<1?0:a,new ns(a,s,l,e.opacity)}function H3e(e,t,n,r){return arguments.length===1?aW(e):new ns(e,t,n,r??1)}function ns(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Y2(ns,H3e,uT(eh,{brighter:function(e){return e=e==null?Pp:Math.pow(Pp,e),new ns(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=e==null?Jc:Math.pow(Jc,e),new ns(this.h,this.s,this.l*e,this.opacity)},rgb:function(){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 ko(QS(e>=240?e-240:e+120,o,r),QS(e,o,r),QS(e<120?e+240:e-120,o,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"hsl(":"hsla(")+(this.h||0)+", "+(this.s||0)*100+"%, "+(this.l||0)*100+"%"+(e===1?")":", "+e+")")}}));function QS(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 W3e=Math.PI/180,V3e=180/Math.PI;var sW=-.14861,dT=1.78277,fT=-.29227,X2=-.90649,Ag=1.97294,H8=Ag*X2,W8=Ag*dT,V8=dT*fT-X2*sW;function U3e(e){if(e instanceof Sc)return new Sc(e.h,e.s,e.l,e.opacity);e instanceof ko||(e=oW(e));var t=e.r/255,n=e.g/255,r=e.b/255,o=(V8*r+H8*t-W8*n)/(V8+H8-W8),i=r-o,a=(Ag*(n-o)-fT*i)/X2,s=Math.sqrt(a*a+i*i)/(Ag*o*(1-o)),l=s?Math.atan2(a,i)*V3e-120:NaN;return new Sc(l<0?l+360:l,s,o,e.opacity)}function gu(e,t,n,r){return arguments.length===1?U3e(e):new Sc(e,t,n,r??1)}function Sc(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Y2(Sc,gu,uT(eh,{brighter:function(e){return e=e==null?Pp:Math.pow(Pp,e),new Sc(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=e==null?Jc:Math.pow(Jc,e),new Sc(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*W3e,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),o=Math.sin(e);return new ko(255*(t+n*(sW*r+dT*o)),255*(t+n*(fT*r+X2*o)),255*(t+n*(Ag*r)),this.opacity)}}));const G3e=q5(gu(300,.5,0),gu(-240,.5,1));var q3e=q5(gu(-100,.75,.35),gu(80,1.5,.8)),K3e=q5(gu(260,.75,.35),gu(80,1.5,.8)),e1=gu();function Y3e(e){(e<0||e>1)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return e1.h=360*e-100,e1.s=1.5-1.5*t,e1.l=.8-.9*t,e1+""}var t1=iW(),X3e=Math.PI/3,Q3e=Math.PI*2/3;function Z3e(e){var t;return e=(.5-e)*Math.PI,t1.r=255*(t=Math.sin(e))*t,t1.g=255*(t=Math.sin(e+X3e))*t,t1.b=255*(t=Math.sin(e+Q3e))*t,t1+""}function J3e(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+e*(1172.33-e*(10793.56-e*(33300.12-e*(38394.49-e*14825.05)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+e*(557.33+e*(1225.33-e*(3574.96-e*(1073.77+e*707.56)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+e*(3211.1-e*(15327.97-e*(27814-e*(22569.18-e*6838.66)))))))+")"}function Q2(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}const eIe=Q2(Qt("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var tIe=Q2(Qt("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),nIe=Q2(Qt("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),rIe=Q2(Qt("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921")),oIe="__lodash_hash_undefined__";function iIe(e){return this.__data__.set(e,oIe),this}var aIe=iIe;function sIe(e){return this.__data__.has(e)}var lIe=sIe,uIe=R5,cIe=aIe,dIe=lIe;function eb(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new uIe;++t-1}var lW=$Ie;function _Ie(e,t,n){for(var r=-1,o=e==null?0:e.length;++r=OIe&&(i=RIe,a=!1,t=new PIe(t));e:for(;++oQu)if(!(Math.abs(c*s-l*u)>Qu)||!o)this._+="L"+(this._x1=e)+","+(this._y1=t);else{var p=n-i,y=r-a,v=s*s+l*l,b=p*p+y*y,C=Math.sqrt(v),x=Math.sqrt(f),w=o*Math.tan((mk-Math.acos((v+f-b)/(2*C*x)))/2),S=w/x,$=w/C;Math.abs(S-1)>Qu&&(this._+="L"+(e+S*u)+","+(t+S*c)),this._+="A"+o+","+o+",0,0,"+ +(c*p>u*y)+","+(this._x1=e+$*s)+","+(this._y1=t+$*l)}},arc:function(e,t,n,r,o,i){e=+e,t=+t,n=+n,i=!!i;var a=n*Math.cos(r),s=n*Math.sin(r),l=e+a,u=t+s,c=1^i,f=i?r-o:o-r;if(n<0)throw new Error("negative radius: "+n);this._x1===null?this._+="M"+l+","+u:(Math.abs(this._x1-l)>Qu||Math.abs(this._y1-u)>Qu)&&(this._+="L"+l+","+u),n&&(f<0&&(f=f%gk+gk),f>BIe?this._+="A"+n+","+n+",0,1,"+c+","+(e-a)+","+(t-s)+"A"+n+","+n+",0,1,"+c+","+(this._x1=l)+","+(this._y1=u):f>Qu&&(this._+="A"+n+","+n+",0,"+ +(f>=mk)+","+c+","+(this._x1=e+n*Math.cos(o))+","+(this._y1=t+n*Math.sin(o))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};function gn(e){return function(){return e}}var U8=Math.abs,ao=Math.atan2,Uu=Math.cos,HIe=Math.max,ZS=Math.min,Ha=Math.sin,Ef=Math.sqrt,uo=1e-12,Fg=Math.PI,tb=Fg/2,D1=2*Fg;function WIe(e){return e>1?0:e<-1?Fg:Math.acos(e)}function G8(e){return e>=1?tb:e<=-1?-tb:Math.asin(e)}function VIe(e){return e.innerRadius}function UIe(e){return e.outerRadius}function GIe(e){return e.startAngle}function qIe(e){return e.endAngle}function KIe(e){return e&&e.padAngle}function YIe(e,t,n,r,o,i,a,s){var l=n-e,u=r-t,c=a-o,f=s-i,p=f*l-c*u;if(!(p*pO*O+j*j&&(E=I,N=A),{cx:E,cy:N,x01:-c,y01:-f,x11:E*(o/T-1),y11:N*(o/T-1)}}function XIe(){var e=VIe,t=UIe,n=gn(0),r=null,o=GIe,i=qIe,a=KIe,s=null;function l(){var u,c,f=+e.apply(this,arguments),p=+t.apply(this,arguments),y=o.apply(this,arguments)-tb,v=i.apply(this,arguments)-tb,b=U8(v-y),C=v>y;if(s||(s=u=Z2()),puo))s.moveTo(0,0);else if(b>D1-uo)s.moveTo(p*Uu(y),p*Ha(y)),s.arc(0,0,p,y,v,!C),f>uo&&(s.moveTo(f*Uu(v),f*Ha(v)),s.arc(0,0,f,v,y,C));else{var x=y,w=v,S=y,$=v,T=b,k=b,M=a.apply(this,arguments)/2,E=M>uo&&(r?+r.apply(this,arguments):Ef(f*f+p*p)),N=ZS(U8(p-f)/2,+n.apply(this,arguments)),I=N,A=N,z,L;if(E>uo){var O=G8(E/f*Ha(M)),j=G8(E/p*Ha(M));(T-=O*2)>uo?(O*=C?1:-1,S+=O,$-=O):(T=0,S=$=(y+v)/2),(k-=j*2)>uo?(j*=C?1:-1,x+=j,w-=j):(k=0,x=w=(y+v)/2)}var H=p*Uu(x),B=p*Ha(x),D=f*Uu($),W=f*Ha($);if(N>uo){var U=p*Uu(w),Z=p*Ha(w),Y=f*Uu(S),se=f*Ha(S),Q;if(buo?A>uo?(z=n1(Y,se,H,B,p,A,C),L=n1(U,Z,D,W,p,A,C),s.moveTo(z.cx+z.x01,z.cy+z.y01),Auo)||!(T>uo)?s.lineTo(D,W):I>uo?(z=n1(D,W,U,Z,f,-I,C),L=n1(H,B,Y,se,f,-I,C),s.lineTo(z.cx+z.x01,z.cy+z.y01),I=p;--y)s.point(w[y],S[y]);s.lineEnd(),s.areaEnd()}C&&(w[f]=+e(b,f,c),S[f]=+n(b,f,c),s.point(t?+t(b,f,c):w[f],r?+r(b,f,c):S[f]))}if(x)return s=null,x+""||null}function u(){return gT().defined(o).curve(a).context(i)}return l.x=function(c){return arguments.length?(e=typeof c=="function"?c:gn(+c),t=null,l):e},l.x0=function(c){return arguments.length?(e=typeof c=="function"?c:gn(+c),l):e},l.x1=function(c){return arguments.length?(t=c==null?null:typeof c=="function"?c:gn(+c),l):t},l.y=function(c){return arguments.length?(n=typeof c=="function"?c:gn(+c),r=null,l):n},l.y0=function(c){return arguments.length?(n=typeof c=="function"?c:gn(+c),l):n},l.y1=function(c){return arguments.length?(r=c==null?null:typeof c=="function"?c:gn(+c),l):r},l.lineX0=l.lineY0=function(){return u().x(e).y(n)},l.lineY1=function(){return u().x(e).y(r)},l.lineX1=function(){return u().x(t).y(n)},l.defined=function(c){return arguments.length?(o=typeof c=="function"?c:gn(!!c),l):o},l.curve=function(c){return arguments.length?(a=c,i!=null&&(s=a(i)),l):a},l.context=function(c){return arguments.length?(c==null?i=s=null:s=a(i=c),l):i},l}function ZIe(e,t){return te?1:t>=e?0:NaN}function JIe(e){return e}function eEe(){var e=JIe,t=ZIe,n=null,r=gn(0),o=gn(D1),i=gn(0);function a(s){var l,u=s.length,c,f,p=0,y=new Array(u),v=new Array(u),b=+r.apply(this,arguments),C=Math.min(D1,Math.max(-D1,o.apply(this,arguments)-b)),x,w=Math.min(Math.abs(C)/u,i.apply(this,arguments)),S=w*(C<0?-1:1),$;for(l=0;l0&&(p+=$);for(t!=null?y.sort(function(T,k){return t(v[T],v[k])}):n!=null&&y.sort(function(T,k){return n(s[T],s[k])}),l=0,f=p?(C-u*S)/p:0;l0?$*f:0)+S,v[c]={data:s[c],index:l,value:$,startAngle:b,endAngle:x,padAngle:w};return v}return a.value=function(s){return arguments.length?(e=typeof s=="function"?s:gn(+s),a):e},a.sortValues=function(s){return arguments.length?(t=s,n=null,a):t},a.sort=function(s){return arguments.length?(n=s,t=null,a):n},a.startAngle=function(s){return arguments.length?(r=typeof s=="function"?s:gn(+s),a):r},a.endAngle=function(s){return arguments.length?(o=typeof s=="function"?s:gn(+s),a):o},a.padAngle=function(s){return arguments.length?(i=typeof s=="function"?s:gn(+s),a):i},a}var q8=Array.prototype.slice;function vu(){}function nb(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function J2(e){this._context=e}J2.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:nb(this,this._x1,this._y1);case 2:this._context.lineTo(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;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:nb(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function tEe(e){return new J2(e)}function hW(e){this._context=e}hW.prototype={areaStart:vu,areaEnd:vu,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:nb(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function nEe(e){return new hW(e)}function mW(e){this._context=e}mW.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:nb(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function rEe(e){return new mW(e)}function gW(e,t){this._basis=new J2(e),this._beta=t}gW.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r=e[0],o=t[0],i=e[n]-r,a=t[n]-o,s=-1,l;++s<=n;)l=s/n,this._basis.point(this._beta*e[s]+(1-this._beta)*(r+l*i),this._beta*t[s]+(1-this._beta)*(o+l*a));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const oEe=function e(t){function n(r){return t===1?new J2(r):new gW(r,t)}return n.beta=function(r){return e(+r)},n}(.85);function rb(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 vT(e,t){this._context=e,this._k=(1-t)/6}vT.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:rb(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:rb(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}};const iEe=function e(t){function n(r){return new vT(r,t)}return n.tension=function(r){return e(+r)},n}(0);function yT(e,t){this._context=e,this._k=(1-t)/6}yT.prototype={areaStart:vu,areaEnd:vu,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:rb(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}};const aEe=function e(t){function n(r){return new yT(r,t)}return n.tension=function(r){return e(+r)},n}(0);function bT(e,t){this._context=e,this._k=(1-t)/6}bT.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(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:rb(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}};const sEe=function e(t){function n(r){return new bT(r,t)}return n.tension=function(r){return e(+r)},n}(0);function xT(e,t,n){var r=e._x1,o=e._y1,i=e._x2,a=e._y2;if(e._l01_a>uo){var s=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*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,o=(o*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>uo){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,a=(a*u+e._y1*e._l23_2a-n*e._l12_2a)/c}e._context.bezierCurveTo(r,o,i,a,e._x2,e._y2)}function vW(e,t){this._context=e,this._alpha=t}vW.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:xT(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 lEe=function e(t){function n(r){return t?new vW(r,t):new vT(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function yW(e,t){this._context=e,this._alpha=t}yW.prototype={areaStart:vu,areaEnd:vu,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=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 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},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._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:xT(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 uEe=function e(t){function n(r){return t?new yW(r,t):new yT(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function bW(e,t){this._context=e,this._alpha=t}bW.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(){(this._line||this._line!==0&&this._point===3)&&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;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:xT(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 cEe=function e(t){function n(r){return t?new bW(r,t):new bT(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function xW(e){this._context=e}xW.prototype={areaStart:vu,areaEnd:vu,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function dEe(e){return new xW(e)}function K8(e){return e<0?-1:1}function Y8(e,t,n){var r=e._x1-e._x0,o=t-e._x1,i=(e._y1-e._y0)/(r||o<0&&-0),a=(n-e._y1)/(o||r<0&&-0),s=(i*o+a*r)/(r+o);return(K8(i)+K8(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(s))||0}function X8(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function JS(e,t,n){var r=e._x0,o=e._y0,i=e._x1,a=e._y1,s=(i-r)/3;e._context.bezierCurveTo(r+s,o+s*t,i-s,a-s*n,i,a)}function ob(e){this._context=e}ob.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:JS(this,this._t0,X8(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,JS(this,X8(this,n=Y8(this,e,t)),n);break;default:JS(this,this._t0,n=Y8(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function wW(e){this._context=new CW(e)}(wW.prototype=Object.create(ob.prototype)).point=function(e,t){ob.prototype.point.call(this,t,e)};function CW(e){this._context=e}CW.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 fEe(e){return new ob(e)}function pEe(e){return new wW(e)}function SW(e){this._context=e}SW.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=Q8(e),o=Q8(t),i=0,a=1;a=0;--t)o[t]=(a[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 mEe(e){return new ew(e,.5)}function gEe(e){return new ew(e,0)}function vEe(e){return new ew(e,1)}function Mp(e,t){if((a=e.length)>1)for(var n=1,r,o,i=e[t[0]],a,s=i.length;n=0;)n[t]=t;return n}function yEe(e,t){return e[t]}function bEe(){var e=gn([]),t=Tp,n=Mp,r=yEe;function o(i){var a=e.apply(this,arguments),s,l=i.length,u=a.length,c=new Array(u),f;for(s=0;s0){for(var n,r,o=0,i=e[0].length,a;o0)for(var n,r=0,o,i,a,s,l,u=e[t[0]].length;r0?(o[0]=a,o[1]=a+=i):i<0?(o[1]=s,o[0]=s+=i):(o[0]=0,o[1]=i)}function wEe(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,a;ri&&(i=o,n=t);return n}function _W(e){var t=e.map(kW);return Tp(e).sort(function(n,r){return t[n]-t[r]})}function kW(e){for(var t=0,n=-1,r=e.length,o;++n0&&n(s)?t>1?MW(s,t-1,n,r,o):t4e(o,s):r||(o[o.length]=s)}return o}var TW=MW,r4e=TW;function o4e(e){var t=e==null?0:e.length;return t?r4e(e,1):[]}var i4e=o4e,a4e=i4e,s4e=MB,l4e=TB;function u4e(e){return l4e(s4e(e,void 0,a4e),e+"")}var IW=u4e,c4e=YEe,d4e=IW,f4e=d4e(function(e,t){return e==null?{}:c4e(e,t)}),p4e=f4e;const h4e=Fr(p4e);function m4e(e,t){for(var n=-1,r=e==null?0:e.length;++ns))return!1;var u=i.get(e),c=i.get(t);if(u&&c)return u==t&&c==e;var f=-1,p=!0,y=n&w4e?new v4e:void 0;for(i.set(e,t),i.set(t,e);++f=0||(o[n]=e[n]);return o}var yu={fill:R.string,fontSize:R.number,fontFamily:R.string},oOe=R.shape({domain:R.shape({line:R.shape({stroke:R.string.isRequired,strokeWidth:R.number.isRequired,strokeDasharray:R.string}).isRequired}).isRequired,ticks:R.shape({line:R.shape({stroke:R.string.isRequired,strokeWidth:R.number.isRequired,strokeDasharray:R.string}).isRequired,text:R.shape(Ar({},yu)).isRequired}).isRequired,legend:R.shape({text:R.shape(Ar({},yu)).isRequired}).isRequired}),iOe=R.shape({line:R.shape({stroke:R.string.isRequired,strokeWidth:R.number.isRequired,strokeDasharray:R.string}).isRequired}),aOe=R.shape({hidden:R.shape({symbol:R.shape({fill:R.string.isRequired,opacity:R.number}).isRequired,text:R.shape(Ar({},yu,{opacity:R.number})).isRequired}).isRequired,text:R.shape(Ar({},yu)).isRequired}),sOe=R.shape({text:R.shape(Ar({},yu)).isRequired}),lOe=R.shape({text:R.shape(Ar({},yu)).isRequired}),uOe=R.shape({text:R.shape(Ar({},yu)).isRequired}),cOe=R.shape({line:R.shape({stroke:R.string.isRequired,strokeWidth:R.number.isRequired,strokeDasharray:R.string}).isRequired}),dOe=R.shape({text:R.shape(Ar({},yu,{outlineWidth:R.number.isRequired,outlineColor:R.string.isRequired})).isRequired,link:R.shape({stroke:R.string.isRequired,strokeWidth:R.number.isRequired,outlineWidth:R.number.isRequired,outlineColor:R.string.isRequired}).isRequired,outline:R.shape({stroke:R.string.isRequired,strokeWidth:R.number.isRequired,outlineWidth:R.number.isRequired,outlineColor:R.string.isRequired}).isRequired,symbol:R.shape({fill:R.string.isRequired,outlineWidth:R.number.isRequired,outlineColor:R.string.isRequired}).isRequired});R.shape({background:R.string.isRequired,fontFamily:R.string.isRequired,fontSize:R.number.isRequired,textColor:R.string.isRequired,axis:oOe.isRequired,grid:iOe.isRequired,legends:aOe.isRequired,labels:sOe.isRequired,dots:lOe.isRequired,markers:uOe,crosshair:cOe.isRequired,annotations:dOe.isRequired});var fOe={background:"transparent",fontFamily:"sans-serif",fontSize:11,textColor:"#333333",axis:{domain:{line:{stroke:"transparent",strokeWidth:1}},ticks:{line:{stroke:"#777777",strokeWidth:1},text:{}},legend:{text:{fontSize:12}}},grid:{line:{stroke:"#dddddd",strokeWidth:1}},legends:{hidden:{symbol:{fill:"#333333",opacity:.6},text:{fill:"#333333",opacity:.6}},text:{},ticks:{line:{stroke:"#777777",strokeWidth:1},text:{fontSize:10}},title:{text:{}}},labels:{text:{}},markers:{lineColor:"#000000",lineStrokeWidth:1,text:{}},dots:{text:{}},tooltip:{container:{background:"white",color:"inherit",fontSize:"inherit",borderRadius:"2px",boxShadow:"0 1px 2px rgba(0, 0, 0, 0.25)",padding:"5px 9px"},basic:{whiteSpace:"pre",display:"flex",alignItems:"center"},chip:{marginRight:7},table:{},tableCell:{padding:"3px 5px"},tableCellValue:{fontWeight:"bold"}},crosshair:{line:{stroke:"#000000",strokeWidth:1,strokeOpacity:.75,strokeDasharray:"6 6"}},annotations:{text:{fontSize:13,outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1},link:{stroke:"#000000",strokeWidth:1,outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1},outline:{fill:"none",stroke:"#000000",strokeWidth:2,outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1},symbol:{fill:"#000000",outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1}}},pOe=["axis.ticks.text","axis.legend.text","legends.title.text","legends.text","legends.ticks.text","legends.title.text","labels.text","dots.text","markers.text","annotations.text"],hOe=function(e,t){var n=OPe({},e,t);return pOe.forEach(function(r){cu(n,r+".fontFamily")===void 0&&lc(n,r+".fontFamily",n.fontFamily),cu(n,r+".fontSize")===void 0&&lc(n,r+".fontSize",n.fontSize),cu(n,r+".fill")===void 0&&lc(n,r+".fill",n.textColor)}),n},DW=g.createContext(),kT=function(e){var t=e.children,n=e.animate,r=e.config,o=g.useMemo(function(){var i=wi.isString(r)?P5[r]:r;return{animate:n,config:i}},[n,r]);return m.jsx(DW.Provider,{value:o,children:t})},$k={animate:R.bool,motionConfig:R.oneOfType([R.oneOf(Object.keys(P5)),R.shape({mass:R.number,tension:R.number,friction:R.number,clamp:R.bool,precision:R.number,velocity:R.number,duration:R.number,easing:R.func})])};kT.propTypes={children:R.node.isRequired,animate:$k.animate,config:$k.motionConfig};var mOe={animate:!0,config:"default"};kT.defaultProps=mOe;var Io=function(){return g.useContext(DW)},PT=function(e){var t=Io(),n=t.animate,r=t.config,o=function(s){var l=g.useRef();return g.useEffect(function(){l.current=s},[s]),l.current}(e),i=g.useMemo(function(){return NB(o,e)},[o,e]),a=Ss({from:{value:0},to:{value:1},reset:!0,config:r,immediate:!n}).value;return mu(a,i)},gOe={nivo:["#d76445","#f47560","#e8c1a0","#97e3d5","#61cdbb","#00b0a7"],BrBG:St(C2),PRGn:St(S2),PiYG:St($2),PuOr:St(_2),RdBu:St(k2),RdGy:St(P2),RdYlBu:St(M2),RdYlGn:St(T2),spectral:St(I2),blues:St(W2),greens:St(V2),greys:St(U2),oranges:St(K2),purples:St(G2),reds:St(q2),BuGn:St(E2),BuPu:St(R2),GnBu:St(O2),OrRd:St(A2),PuBuGn:St(F2),PuBu:St(L2),PuRd:St(j2),RdPu:St(D2),YlGnBu:St(N2),YlGn:St(z2),YlOrBr:St(B2),YlOrRd:St(H2)},vOe=Object.keys(gOe);St(C2),St(S2),St($2),St(_2),St(k2),St(P2),St(M2),St(T2),St(I2),St(W2),St(V2),St(U2),St(K2),St(G2),St(q2),St(E2),St(R2),St(O2),St(A2),St(F2),St(L2),St(j2),St(D2),St(N2),St(z2),St(B2),St(H2);R.oneOfType([R.oneOf(vOe),R.func,R.arrayOf(R.string)]);var _k={basis:tEe,basisClosed:nEe,basisOpen:rEe,bundle:oEe,cardinal:iEe,cardinalClosed:aEe,cardinalOpen:sEe,catmullRom:lEe,catmullRomClosed:uEe,catmullRomOpen:cEe,linear:mT,linearClosed:dEe,monotoneX:fEe,monotoneY:pEe,natural:hEe,step:mEe,stepAfter:vEe,stepBefore:gEe},nw=Object.keys(_k);R.oneOf(nw);nw.filter(function(e){return e.endsWith("Closed")});cW(nw,"bundle","basisClosed","basisOpen","cardinalClosed","cardinalOpen","catmullRomClosed","catmullRomOpen","linearClosed");var yOe=cW(nw,"bundle","basisClosed","basisOpen","cardinalClosed","cardinalOpen","catmullRomClosed","catmullRomOpen","linearClosed"),bOe=R.oneOf(yOe),NW=function(e){if(!_k[e])throw new TypeError("'"+e+"', is not a valid curve interpolator identifier.");return _k[e]},xOe={defs:R.arrayOf(R.shape({id:R.string.isRequired})).isRequired,fill:R.arrayOf(R.shape({id:R.string.isRequired,match:R.oneOfType([R.oneOf(["*"]),R.object,R.func]).isRequired})).isRequired},wOe={ascending:_W,descending:_Ee,insideOut:kEe,none:Tp,reverse:PEe},COe=Object.keys(wOe);R.oneOf(COe);var SOe={expand:xEe,diverging:$W,none:Mp,silhouette:wEe,wiggle:CEe},$Oe=Object.keys(SOe);R.oneOf($Oe);R.shape({top:R.number,right:R.number,bottom:R.number,left:R.number}).isRequired;var _Oe=["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],MT=R.oneOf(_Oe);uc(lT);var kOe={top:0,right:0,bottom:0,left:0},$0=function(e,t,n){return n===void 0&&(n={}),g.useMemo(function(){var r=Ar({},kOe,n);return{margin:r,innerWidth:e-r.left-r.right,innerHeight:t-r.top-r.bottom,outerWidth:e,outerHeight:t}},[e,t,n.top,n.right,n.bottom,n.left])},zW=function(){var e=g.useRef(null),t=g.useState({left:0,top:0,width:0,height:0}),n=t[0],r=t[1],o=g.useState(function(){return typeof ResizeObserver>"u"?null:new ResizeObserver(function(i){var a=i[0];return r(a.contentRect)})})[0];return g.useEffect(function(){return e.current&&o!==null&&o.observe(e.current),function(){o!==null&&o.disconnect()}},[]),[e,n]},POe=function(e){return g.useMemo(function(){return hOe(fOe,e)},[e])},MOe=function(e){return typeof e=="function"?e:typeof e=="string"?e.indexOf("time:")===0?C0(e.slice("5")):Tu(e):function(t){return""+t}},Lg=function(e){return g.useMemo(function(){return MOe(e)},[e])},BW=g.createContext(),TOe={},HW=function(e){var t=e.theme,n=t===void 0?TOe:t,r=e.children,o=POe(n);return m.jsx(BW.Provider,{value:o,children:r})};HW.propTypes={children:R.node.isRequired,theme:R.object};var An=function(){return g.useContext(BW)},WW=function(e){var t=e.children,n=e.condition,r=e.wrapper;return n?g.cloneElement(r,{},t):t};WW.propTypes={children:R.node.isRequired,condition:R.bool.isRequired,wrapper:R.element.isRequired};var IOe={position:"relative"},_0=function(e){var t=e.children,n=e.theme,r=e.renderWrapper,o=r===void 0||r,i=e.isInteractive,a=i===void 0||i,s=e.animate,l=e.motionConfig,u=g.useRef(null);return m.jsx(HW,{theme:n,children:m.jsx(kT,{animate:s,config:l,children:m.jsx(hwe,{container:u,children:m.jsxs(WW,{condition:o,wrapper:m.jsx("div",{style:IOe,ref:u}),children:[t,a&&m.jsx(pwe,{})]})})})})};_0.propTypes={children:R.element.isRequired,isInteractive:R.bool,renderWrapper:R.bool,theme:R.object,animate:R.bool,motionConfig:R.string};R.func.isRequired,R.bool,R.bool,R.object.isRequired,R.bool.isRequired,R.string;var nh=function(e){var t=e.children,n=zW(),r=n[0],o=n[1],i=o.width>0&&o.height>0;return m.jsx("div",{ref:r,style:{width:"100%",height:"100%"},children:i&&t({width:o.width,height:o.height})})};nh.propTypes={children:R.func.isRequired};var EOe=["id","colors"],VW=function(e){var t=e.id,n=e.colors,r=_T(e,EOe);return m.jsx("linearGradient",Ar({id:t,x1:0,x2:0,y1:0,y2:1},r,{children:n.map(function(o){var i=o.offset,a=o.color,s=o.opacity;return m.jsx("stop",{offset:i+"%",stopColor:a,stopOpacity:s!==void 0?s:1},i)})}))};VW.propTypes={id:R.string.isRequired,colors:R.arrayOf(R.shape({offset:R.number.isRequired,color:R.string.isRequired,opacity:R.number})).isRequired,gradientTransform:R.string};var UW={linearGradient:VW},N1=g.memo(function(e){var t=e.id,n=e.background,r=e.color,o=e.size,i=e.padding,a=e.stagger,s=o+i,l=o/2,u=i/2;return a===!0&&(s=2*o+2*i),m.jsxs("pattern",{id:t,width:s,height:s,patternUnits:"userSpaceOnUse",children:[m.jsx("rect",{width:s,height:s,fill:n}),m.jsx("circle",{cx:u+l,cy:u+l,r:l,fill:r}),a&&m.jsx("circle",{cx:1.5*i+o+l,cy:1.5*i+o+l,r:l,fill:r})]})});N1.displayName="PatternDots",N1.propTypes={id:R.string.isRequired,color:R.string.isRequired,background:R.string.isRequired,size:R.number.isRequired,padding:R.number.isRequired,stagger:R.bool.isRequired},N1.defaultProps={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1};var ea=function(e){return e*Math.PI/180},rw=function(e){return 180*e/Math.PI},ROe=function(e){return e.startAngle+(e.endAngle-e.startAngle)/2},$c=function(e,t){return{x:Math.cos(e)*t,y:Math.sin(e)*t}},OOe=function(e){var t=e%360;return t<0&&(t+=360),t},AOe={svg:{align:{left:"start",center:"middle",right:"end",start:"start",middle:"middle",end:"end"},baseline:{top:"text-before-edge",center:"central",bottom:"alphabetic"}},canvas:{align:{left:"left",center:"center",right:"right",start:"left",middle:"center",end:"right"},baseline:{top:"top",center:"middle",bottom:"bottom"}}},z1=g.memo(function(e){var t=e.id,n=e.spacing,r=e.rotation,o=e.background,i=e.color,a=e.lineWidth,s=Math.round(r)%360,l=Math.abs(n);s>180?s-=360:s>90?s-=180:s<-180?s+=360:s<-90&&(s+=180);var u,c=l,f=l;return s===0?u=` + M 0 0 L `+c+` 0 + M 0 `+f+" L "+c+" "+f+` + `:s===90?u=` + M 0 0 L 0 `+f+` + M `+c+" 0 L "+c+" "+f+` + `:(c=Math.abs(l/Math.sin(ea(s))),f=l/Math.sin(ea(90-s)),u=s>0?` + M 0 `+-f+" L "+2*c+" "+f+` + M `+-c+" "+-f+" L "+c+" "+f+` + M `+-c+" 0 L "+c+" "+2*f+` + `:` + M `+-c+" "+f+" L "+c+" "+-f+` + M `+-c+" "+2*f+" L "+2*c+" "+-f+` + M 0 `+2*f+" L "+2*c+` 0 + `),m.jsxs("pattern",{id:t,width:c,height:f,patternUnits:"userSpaceOnUse",children:[m.jsx("rect",{width:c,height:f,fill:o,stroke:"rgba(255, 0, 0, 0.1)",strokeWidth:0}),m.jsx("path",{d:u,strokeWidth:a,stroke:i,strokeLinecap:"square"})]})});z1.displayName="PatternLines",z1.propTypes={id:R.string.isRequired,spacing:R.number.isRequired,rotation:R.number.isRequired,background:R.string.isRequired,color:R.string.isRequired,lineWidth:R.number.isRequired},z1.defaultProps={spacing:5,rotation:0,color:"#000000",background:"#ffffff",lineWidth:2};var B1=g.memo(function(e){var t=e.id,n=e.background,r=e.color,o=e.size,i=e.padding,a=e.stagger,s=o+i,l=i/2;return a===!0&&(s=2*o+2*i),m.jsxs("pattern",{id:t,width:s,height:s,patternUnits:"userSpaceOnUse",children:[m.jsx("rect",{width:s,height:s,fill:n}),m.jsx("rect",{x:l,y:l,width:o,height:o,fill:r}),a&&m.jsx("rect",{x:1.5*i+o,y:1.5*i+o,width:o,height:o,fill:r})]})});B1.displayName="PatternSquares",B1.propTypes={id:R.string.isRequired,color:R.string.isRequired,background:R.string.isRequired,size:R.number.isRequired,padding:R.number.isRequired,stagger:R.bool.isRequired},B1.defaultProps={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1};var GW={patternDots:N1,patternLines:z1,patternSquares:B1},FOe=["type"],kk=Ar({},UW,GW),qW=function(e){var t=e.defs;return!t||t.length<1?null:m.jsx("defs",{"aria-hidden":!0,children:t.map(function(n){var r=n.type,o=_T(n,FOe);return kk[r]?g.createElement(kk[r],Ar({key:o.id},o)):null})})};qW.propTypes={defs:R.arrayOf(R.shape({type:R.oneOf(Object.keys(kk)).isRequired,id:R.string.isRequired}))};var LOe=g.memo(qW),ow=function(e){var t=e.width,n=e.height,r=e.margin,o=e.defs,i=e.children,a=e.role,s=e.ariaLabel,l=e.ariaLabelledBy,u=e.ariaDescribedBy,c=e.isFocusable,f=An();return m.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:n,role:a,"aria-label":s,"aria-labelledby":l,"aria-describedby":u,focusable:c,tabIndex:c?0:void 0,children:[m.jsx(LOe,{defs:o}),m.jsx("rect",{width:t,height:n,fill:f.background}),m.jsx("g",{transform:"translate("+r.left+","+r.top+")",children:i})]})};ow.propTypes={width:R.number.isRequired,height:R.number.isRequired,margin:R.shape({top:R.number.isRequired,left:R.number.isRequired}).isRequired,defs:R.array,children:R.oneOfType([R.arrayOf(R.node),R.node]).isRequired,role:R.string,isFocusable:R.bool,ariaLabel:R.string,ariaLabelledBy:R.string,ariaDescribedBy:R.string};var KW=function(e){var t=e.size,n=e.color,r=e.borderWidth,o=e.borderColor;return m.jsx("circle",{r:t/2,fill:n,stroke:o,strokeWidth:r,style:{pointerEvents:"none"}})};KW.propTypes={size:R.number.isRequired,color:R.string.isRequired,borderWidth:R.number.isRequired,borderColor:R.string.isRequired};var jOe=g.memo(KW),YW=function(e){var t=e.x,n=e.y,r=e.symbol,o=r===void 0?jOe:r,i=e.size,a=e.datum,s=e.color,l=e.borderWidth,u=e.borderColor,c=e.label,f=e.labelTextAnchor,p=f===void 0?"middle":f,y=e.labelYOffset,v=y===void 0?-12:y,b=An(),C=Io(),x=C.animate,w=C.config,S=Ss({transform:"translate("+t+", "+n+")",config:w,immediate:!x});return m.jsxs(Rn.g,{transform:S.transform,style:{pointerEvents:"none"},children:[g.createElement(o,{size:i,color:s,datum:a,borderWidth:l,borderColor:u}),c&&m.jsx("text",{textAnchor:p,y:v,style:b.dots.text,children:c})]})};YW.propTypes={x:R.number.isRequired,y:R.number.isRequired,datum:R.object.isRequired,size:R.number.isRequired,color:R.string.isRequired,borderWidth:R.number.isRequired,borderColor:R.string.isRequired,symbol:R.oneOfType([R.func,R.object]),label:R.oneOfType([R.string,R.number]),labelTextAnchor:R.oneOf(["start","middle","end"]),labelYOffset:R.number};var DOe=g.memo(YW),Pk=function(e){var t=e.width,n=e.height,r=e.axis,o=e.scale,i=e.value,a=e.lineStyle,s=e.textStyle,l=e.legend,u=e.legendPosition,c=e.legendOffsetX,f=e.legendOffsetY,p=e.legendOrientation,y=An(),v=0,b=0,C=0,x=0;r==="y"?(C=o(i),b=t):(v=o(i),x=n);var w=null;if(l){var S=function($){var T=$.axis,k=$.width,M=$.height,E=$.position,N=$.offsetX,I=$.offsetY,A=$.orientation,z=0,L=0,O=A==="vertical"?-90:0,j="start";if(T==="x")switch(E){case"top-left":z=-N,L=I,j="end";break;case"top":L=-I,j=A==="horizontal"?"middle":"start";break;case"top-right":z=N,L=I,j=A==="horizontal"?"start":"end";break;case"right":z=N,L=M/2,j=A==="horizontal"?"start":"middle";break;case"bottom-right":z=N,L=M-I,j="start";break;case"bottom":L=M+I,j=A==="horizontal"?"middle":"end";break;case"bottom-left":L=M-I,z=-N,j=A==="horizontal"?"end":"start";break;case"left":z=-N,L=M/2,j=A==="horizontal"?"end":"middle"}else switch(E){case"top-left":z=N,L=-I,j="start";break;case"top":z=k/2,L=-I,j=A==="horizontal"?"middle":"start";break;case"top-right":z=k-N,L=-I,j=A==="horizontal"?"end":"start";break;case"right":z=k+N,j=A==="horizontal"?"start":"middle";break;case"bottom-right":z=k-N,L=I,j="end";break;case"bottom":z=k/2,L=I,j=A==="horizontal"?"middle":"end";break;case"bottom-left":z=N,L=I,j=A==="horizontal"?"start":"end";break;case"left":z=-N,j=A==="horizontal"?"end":"middle"}return{x:z,y:L,rotation:O,textAnchor:j}}({axis:r,width:t,height:n,position:u,offsetX:c,offsetY:f,orientation:p});w=m.jsx("text",{transform:"translate("+S.x+", "+S.y+") rotate("+S.rotation+")",textAnchor:S.textAnchor,dominantBaseline:"central",style:s,children:l})}return m.jsxs("g",{transform:"translate("+v+", "+C+")",children:[m.jsx("line",{x1:0,x2:b,y1:0,y2:x,stroke:y.markers.lineColor,strokeWidth:y.markers.lineStrokeWidth,style:a}),w]})};Pk.propTypes={width:R.number.isRequired,height:R.number.isRequired,axis:R.oneOf(["x","y"]).isRequired,scale:R.func.isRequired,value:R.oneOfType([R.number,R.string,R.instanceOf(Date)]).isRequired,lineStyle:R.object,textStyle:R.object,legend:R.string,legendPosition:R.oneOf(["top-left","top","top-right","right","bottom-right","bottom","bottom-left","left"]),legendOffsetX:R.number.isRequired,legendOffsetY:R.number.isRequired,legendOrientation:R.oneOf(["horizontal","vertical"]).isRequired},Pk.defaultProps={legendPosition:"top-right",legendOffsetX:14,legendOffsetY:14,legendOrientation:"horizontal"};var NOe=g.memo(Pk),XW=function(e){var t=e.markers,n=e.width,r=e.height,o=e.xScale,i=e.yScale;return t&&t.length!==0?t.map(function(a,s){return m.jsx(NOe,Ar({},a,{width:n,height:r,scale:a.axis==="y"?i:o}),s)}):null};XW.propTypes={width:R.number.isRequired,height:R.number.isRequired,xScale:R.func.isRequired,yScale:R.func.isRequired,markers:R.arrayOf(R.shape({axis:R.oneOf(["x","y"]).isRequired,value:R.oneOfType([R.number,R.string,R.instanceOf(Date)]).isRequired,lineStyle:R.object,textStyle:R.object}))};var QW=g.memo(XW),zOe=["theme","renderWrapper","animate","motionConfig"],ZW=function(e){return function(t){var n,r;function o(){return t.apply(this,arguments)||this}return r=t,(n=o).prototype=Object.create(r.prototype),n.prototype.constructor=n,Sk(n,r),o.prototype.render=function(){var i=this.props,a=i.theme,s=i.renderWrapper,l=i.animate,u=i.motionConfig,c=_T(i,zOe);return m.jsx(_0,{theme:a,renderWrapper:s,isInteractive:c.isInteractive,animate:l,motionConfig:u,children:m.jsx(e,Ar({},c))})},o}(g.Component)},BOe=function(e,t){var n,r=By(e)?e:function(o){return cu(o,e)};return t&&(n=By(t)?t:Tu(t)),n?function(o){return n(r(o))}:r},JW=function(e){return By(e)?e:function(t){return cu(t,e)}},_c=function(e){return g.useMemo(function(){return JW(e)},[e])},eV=function(e,t,n,r,o,i){return e<=o&&o<=e+n&&t<=i&&i<=t+r},Fm=function(e,t){var n,r=t.clientX,o=t.clientY,i=e.getBoundingClientRect(),a=(n=e.getBBox!==void 0?e.getBBox():{width:e.offsetWidth,height:e.offsetHeight}).width===i.width?1:n.width/i.width;return[(r-i.left)*a,(o-i.top)*a]},HOe=Object.keys(UW),WOe=Object.keys(GW),VOe=function(e,t,n){if(e==="*")return!0;if(By(e))return e(t);if(c_e(e)){var r=n?cu(t,n):t;return rOe(h4e(r,Object.keys(e)),e)}return!1},TT=function(e,t,n,r){var o=r===void 0?{}:r,i=o.dataKey,a=o.colorKey,s=a===void 0?"color":a,l=o.targetKey,u=l===void 0?"fill":l,c=[],f={};return e.length&&t.length&&(c=[].concat(e),t.forEach(function(p){for(var y=function(){var b=n[v],C=b.id,x=b.match;if(VOe(x,p,i)){var w=e.find(function(I){return I.id===C});if(w){if(WOe.includes(w.type))if(w.background==="inherit"||w.color==="inherit"){var S=cu(p,s),$=w.background,T=w.color,k=C;w.background==="inherit"&&(k=k+".bg."+S,$=S),w.color==="inherit"&&(k=k+".fg."+S,T=S),lc(p,u,"url(#"+k+")"),f[k]||(c.push(Ar({},w,{id:k,background:$,color:T})),f[k]=1)}else lc(p,u,"url(#"+C+")");else if(HOe.includes(w.type))if(w.colors.map(function(I){return I.color}).includes("inherit")){var M=cu(p,s),E=C,N=Ar({},w,{colors:w.colors.map(function(I,A){return I.color!=="inherit"?I:(E=E+"."+A+"."+M,Ar({},I,{color:I.color==="inherit"?M:I.color}))})});N.id=E,lc(p,u,"url(#"+E+")"),f[E]||(c.push(N),f[E]=1)}else lc(p,u,"url(#"+C+")")}return"break"}},v=0;v>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?o1(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?o1(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=GOe.exec(e))?new Wo(t[1],t[2],t[3],1):(t=qOe.exec(e))?new Wo(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=KOe.exec(e))?o1(t[1],t[2],t[3],t[4]):(t=YOe.exec(e))?o1(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=XOe.exec(e))?S9(t[1],t[2]/100,t[3]/100,1):(t=QOe.exec(e))?S9(t[1],t[2]/100,t[3]/100,t[4]):v9.hasOwnProperty(e)?x9(v9[e]):e==="transparent"?new Wo(NaN,NaN,NaN,0):null}function x9(e){return new Wo(e>>16&255,e>>8&255,e&255,1)}function o1(e,t,n,r){return r<=0&&(e=t=n=NaN),new Wo(e,t,n,r)}function e6e(e){return e instanceof k0||(e=ed(e)),e?(e=e.rgb(),new Wo(e.r,e.g,e.b,e.opacity)):new Wo}function nV(e,t,n,r){return arguments.length===1?e6e(e):new Wo(e,t,n,r??1)}function Wo(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}IT(Wo,nV,tV(k0,{brighter(e){return e=e==null?ib:Math.pow(ib,e),new Wo(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?jg:Math.pow(jg,e),new Wo(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Wo(kc(this.r),kc(this.g),kc(this.b),ab(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:w9,formatHex:w9,formatHex8:t6e,formatRgb:C9,toString:C9}));function w9(){return`#${cc(this.r)}${cc(this.g)}${cc(this.b)}`}function t6e(){return`#${cc(this.r)}${cc(this.g)}${cc(this.b)}${cc((isNaN(this.opacity)?1:this.opacity)*255)}`}function C9(){const e=ab(this.opacity);return`${e===1?"rgb(":"rgba("}${kc(this.r)}, ${kc(this.g)}, ${kc(this.b)}${e===1?")":`, ${e})`}`}function ab(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function kc(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function cc(e){return e=kc(e),(e<16?"0":"")+e.toString(16)}function S9(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new ka(e,t,n,r)}function rV(e){if(e instanceof ka)return new ka(e.h,e.s,e.l,e.opacity);if(e instanceof k0||(e=ed(e)),!e)return new ka;if(e instanceof ka)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),a=NaN,s=i-o,l=(i+o)/2;return s?(t===i?a=(n-r)/s+(n0&&l<1?0:a,new ka(a,s,l,e.opacity)}function n6e(e,t,n,r){return arguments.length===1?rV(e):new ka(e,t,n,r??1)}function ka(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}IT(ka,n6e,tV(k0,{brighter(e){return e=e==null?ib:Math.pow(ib,e),new ka(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?jg:Math.pow(jg,e),new ka(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 Wo(n$(e>=240?e-240:e+120,o,r),n$(e,o,r),n$(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new ka($9(this.h),i1(this.s),i1(this.l),ab(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=ab(this.opacity);return`${e===1?"hsl(":"hsla("}${$9(this.h)}, ${i1(this.s)*100}%, ${i1(this.l)*100}%${e===1?")":`, ${e})`}`}}));function $9(e){return e=(e||0)%360,e<0?e+360:e}function i1(e){return Math.max(0,Math.min(1,e||0))}function n$(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}function sb(){return sb=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var oV={nivo:["#e8c1a0","#f47560","#f1e15b","#e8a838","#61cdbb","#97e3d5"],category10:XH,accent:QH,dark2:ZH,paired:JH,pastel1:eW,pastel2:tW,set1:nW,set2:rW,set3:lT},o6e=Object.keys(oV),iV={brown_blueGreen:C2,purpleRed_green:S2,pink_yellowGreen:$2,purple_orange:_2,red_blue:k2,red_grey:P2,red_yellow_blue:M2,red_yellow_green:T2,spectral:I2},i6e=Object.keys(iV),a6e={brown_blueGreen:a3e,purpleRed_green:s3e,pink_yellowGreen:l3e,purple_orange:u3e,red_blue:c3e,red_grey:d3e,red_yellow_blue:f3e,red_yellow_green:p3e,spectral:h3e},aV={blues:W2,greens:V2,greys:U2,oranges:K2,purples:G2,reds:q2,blue_green:E2,blue_purple:R2,green_blue:O2,orange_red:A2,purple_blue_green:F2,purple_blue:L2,purple_red:j2,red_purple:D2,yellow_green_blue:N2,yellow_green:z2,yellow_orange_brown:B2,yellow_orange_red:H2},s6e=Object.keys(aV),l6e={blues:P3e,greens:M3e,greys:T3e,oranges:R3e,purples:I3e,reds:E3e,turbo:J3e,viridis:eIe,inferno:nIe,magma:tIe,plasma:rIe,cividis:O3e,warm:q3e,cool:K3e,cubehelixDefault:G3e,blue_green:m3e,blue_purple:g3e,green_blue:v3e,orange_red:y3e,purple_blue_green:b3e,purple_blue:x3e,purple_red:w3e,red_purple:C3e,yellow_green_blue:S3e,yellow_green:$3e,yellow_orange_brown:_3e,yellow_orange_red:k3e},H1=sb({},oV,iV,aV),u6e=Object.keys(H1),c6e=function(e){return o6e.includes(e)},d6e=function(e){return i6e.includes(e)},f6e=function(e){return s6e.includes(e)},p6e={rainbow:Y3e,sinebow:Z3e};sb({},a6e,l6e,p6e);var h6e=function(e,t){if(typeof e=="function")return e;if(wi.isPlainObject(e)){if(function(l){return l.theme!==void 0}(e)){if(t===void 0)throw new Error("Unable to use color from theme as no theme was provided");var n=wi.get(t,e.theme);if(n===void 0)throw new Error("Color from theme is undefined at path: '"+e.theme+"'");return function(){return n}}if(function(l){return l.from!==void 0}(e)){var r=function(l){return wi.get(l,e.from)};if(Array.isArray(e.modifiers)){for(var o,i=[],a=function(){var l=o.value,u=l[0],c=l[1];if(u==="brighter")i.push(function(f){return f.brighter(c)});else if(u==="darker")i.push(function(f){return f.darker(c)});else{if(u!=="opacity")throw new Error("Invalid color modifier: '"+u+"', must be one of: 'brighter', 'darker', 'opacity'");i.push(function(f){return f.opacity=c,f})}},s=r6e(e.modifiers);!(o=s()).done;)a();return i.length===0?r:function(l){return i.reduce(function(u,c){return c(u)},nV(r(l))).toString()}}return r}throw new Error("Invalid color spec, you should either specify 'theme' or 'from' when using a config object")}return function(){return e}},ys=function(e,t){return g.useMemo(function(){return h6e(e,t)},[e,t])},m6e=R.oneOfType([R.func,R.arrayOf(R.string),R.shape({scheme:R.oneOf(u6e).isRequired,size:R.number}),R.shape({datum:R.string.isRequired}),R.string]);R.oneOfType([R.string,R.func,R.shape({theme:R.string.isRequired}),R.shape({from:R.string.isRequired,modifiers:R.arrayOf(R.array)})]);var g6e=function(e,t){if(typeof e=="function")return e;var n=typeof t=="function"?t:function(f){return wi.get(f,t)};if(Array.isArray(e)){var r=uc(e),o=function(f){return r(n(f))};return o.scale=r,o}if(wi.isPlainObject(e)){if(function(f){return f.datum!==void 0}(e))return function(f){return wi.get(f,e.datum)};if(function(f){return f.scheme!==void 0}(e)){if(c6e(e.scheme)){var i=uc(H1[e.scheme]),a=function(f){return i(n(f))};return a.scale=i,a}if(d6e(e.scheme)){if(e.size!==void 0&&(e.size<3||e.size>11))throw new Error("Invalid size '"+e.size+"' for diverging color scheme '"+e.scheme+"', must be between 3~11");var s=uc(H1[e.scheme][e.size||11]),l=function(f){return s(n(f))};return l.scale=s,l}if(f6e(e.scheme)){if(e.size!==void 0&&(e.size<3||e.size>9))throw new Error("Invalid size '"+e.size+"' for sequential color scheme '"+e.scheme+"', must be between 3~9");var u=uc(H1[e.scheme][e.size||9]),c=function(f){return u(n(f))};return c.scale=u,c}}throw new Error("Invalid colors, when using an object, you should either pass a 'datum' or a 'scheme' property")}return function(){return e}},ET=function(e,t){return g.useMemo(function(){return g6e(e,t)},[e,t])};function Vn(){return Vn=Object.assign?Object.assign.bind():function(e){for(var t=1;t=t})},x6e={startAngle:{enter:function(e){return Vn({},e,{endAngle:e.startAngle})},update:function(e){return e},leave:function(e){return Vn({},e,{startAngle:e.endAngle})}},middleAngle:{enter:function(e){var t=e.startAngle+(e.endAngle-e.startAngle)/2;return Vn({},e,{startAngle:t,endAngle:t})},update:function(e){return e},leave:function(e){var t=e.startAngle+(e.endAngle-e.startAngle)/2;return Vn({},e,{startAngle:t,endAngle:t})}},endAngle:{enter:function(e){return Vn({},e,{startAngle:e.endAngle})},update:function(e){return e},leave:function(e){return Vn({},e,{endAngle:e.startAngle})}},innerRadius:{enter:function(e){return Vn({},e,{outerRadius:e.innerRadius})},update:function(e){return e},leave:function(e){return Vn({},e,{innerRadius:e.outerRadius})}},centerRadius:{enter:function(e){var t=e.innerRadius+(e.outerRadius-e.innerRadius)/2;return Vn({},e,{innerRadius:t,outerRadius:t})},update:function(e){return e},leave:function(e){var t=e.innerRadius+(e.outerRadius-e.innerRadius)/2;return Vn({},e,{innerRadius:t,outerRadius:t})}},outerRadius:{enter:function(e){return Vn({},e,{innerRadius:e.outerRadius})},update:function(e){return e},leave:function(e){return Vn({},e,{outerRadius:e.innerRadius})}},pushIn:{enter:function(e){return Vn({},e,{innerRadius:e.innerRadius-e.outerRadius+e.innerRadius,outerRadius:e.innerRadius})},update:function(e){return e},leave:function(e){return Vn({},e,{innerRadius:e.outerRadius,outerRadius:e.outerRadius+e.outerRadius-e.innerRadius})}},pushOut:{enter:function(e){return Vn({},e,{innerRadius:e.outerRadius,outerRadius:e.outerRadius+e.outerRadius-e.innerRadius})},update:function(e){return e},leave:function(e){return Vn({},e,{innerRadius:e.innerRadius-e.outerRadius+e.innerRadius,outerRadius:e.innerRadius})}}},lV=function(e,t){return g.useMemo(function(){var n=x6e[e];return{enter:function(r){return Vn({progress:0},n.enter(r.arc),t?t.enter(r):{})},update:function(r){return Vn({progress:1},n.update(r.arc),t?t.update(r):{})},leave:function(r){return Vn({progress:0},n.leave(r.arc),t?t.leave(r):{})}}},[e,t])},w6e=function(e,t){var n=ROe(e)-Math.PI/2,r=e.innerRadius+(e.outerRadius-e.innerRadius)*t;return $c(n,r)},C6e=function(e){return function(t,n,r,o){return mu([t,n,r,o],function(i,a,s,l){var u=w6e({startAngle:i,endAngle:a,innerRadius:s,outerRadius:l},e);return"translate("+u.x+","+u.y+")"})}},S6e=function(e,t,n,r){t===void 0&&(t=.5),n===void 0&&(n="innerRadius");var o=Io(),i=o.animate,a=o.config,s=lV(n,r);return{transition:dd(e,{keys:function(l){return l.id},initial:s.update,from:s.enter,enter:s.update,update:s.update,leave:s.leave,config:a,immediate:!i}),interpolate:C6e(t)}},$6e=function(e){var t=e.center,n=e.data,r=e.transitionMode,o=e.label,i=e.radiusOffset,a=e.skipAngle,s=e.textColor,l=e.component,u=l===void 0?y6e:l,c=_c(o),f=An(),p=ys(s,f),y=g.useMemo(function(){return n.filter(function(w){return Math.abs(rw(w.arc.endAngle-w.arc.startAngle))>=a})},[n,a]),v=S6e(y,i,r),b=v.transition,C=v.interpolate,x=u;return m.jsx("g",{transform:"translate("+t[0]+","+t[1]+")",children:b(function(w,S){return g.createElement(x,{key:S.id,datum:S,label:c(S),style:Vn({},w,{transform:C(w.startAngle,w.endAngle,w.innerRadius,w.outerRadius),textColor:p(S)})})})})},_6e=function(e){var t=e.label,n=e.style,r=An();return m.jsxs(Rn.g,{opacity:n.opacity,children:[m.jsx(Rn.path,{fill:"none",stroke:n.linkColor,strokeWidth:n.thickness,d:n.path}),m.jsx(Rn.text,{transform:n.textPosition,textAnchor:n.textAnchor,dominantBaseline:"central",style:Vn({},r.labels.text,{fill:n.textColor}),children:t})]})},k6e=function(e){var t=sV(e.startAngle+(e.endAngle-e.startAngle)/2-Math.PI/2);return t1.5*Math.PI?"start":"end"},uV=function(e,t,n,r){var o,i,a=sV(e.startAngle+(e.endAngle-e.startAngle)/2-Math.PI/2),s=$c(a,e.outerRadius+t),l=$c(a,e.outerRadius+t+n);return a1.5*Math.PI?(o="after",i={x:l.x+r,y:l.y}):(o="before",i={x:l.x-r,y:l.y}),{side:o,points:[s,l,i]}},P6e=gT().x(function(e){return e.x}).y(function(e){return e.y}),M6e=function(e,t,n,r,o,i,a){return mu([e,t,n,r,o,i,a],function(s,l,u,c,f,p,y){var v=uV({startAngle:s,endAngle:l,innerRadius:u,outerRadius:c},f,p,y).points;return P6e(v)})},T6e=function(e,t,n,r){return mu([e,t,n,r],function(o,i,a,s){return k6e({startAngle:o,endAngle:i,innerRadius:a,outerRadius:s})})},I6e=function(e,t,n,r,o,i,a,s){return mu([e,t,n,r,o,i,a,s],function(l,u,c,f,p,y,v,b){var C=uV({startAngle:l,endAngle:u,innerRadius:c,outerRadius:f},p,y,v),x=C.points,w=C.side,S=x[2];return w==="before"?S.x-=b:S.x+=b,"translate("+S.x+","+S.y+")"})},E6e=function(e){var t=e.data,n=e.offset,r=n===void 0?0:n,o=e.diagonalLength,i=e.straightLength,a=e.skipAngle,s=a===void 0?0:a,l=e.textOffset,u=e.linkColor,c=e.textColor,f=Io(),p=f.animate,y=f.config,v=An(),b=ys(u,v),C=ys(c,v),x=function(S,$){return g.useMemo(function(){return b6e(S,$)},[S,$])}(t,s),w=function(S){var $=S.offset,T=S.diagonalLength,k=S.straightLength,M=S.textOffset,E=S.getLinkColor,N=S.getTextColor;return g.useMemo(function(){return{enter:function(I){return{startAngle:I.arc.startAngle,endAngle:I.arc.endAngle,innerRadius:I.arc.innerRadius,outerRadius:I.arc.outerRadius,offset:$,diagonalLength:0,straightLength:0,textOffset:M,linkColor:E(I),textColor:N(I),opacity:0}},update:function(I){return{startAngle:I.arc.startAngle,endAngle:I.arc.endAngle,innerRadius:I.arc.innerRadius,outerRadius:I.arc.outerRadius,offset:$,diagonalLength:T,straightLength:k,textOffset:M,linkColor:E(I),textColor:N(I),opacity:1}},leave:function(I){return{startAngle:I.arc.startAngle,endAngle:I.arc.endAngle,innerRadius:I.arc.innerRadius,outerRadius:I.arc.outerRadius,offset:$,diagonalLength:0,straightLength:0,textOffset:M,linkColor:E(I),textColor:N(I),opacity:0}}}},[T,k,M,E,N])}({offset:r,diagonalLength:o,straightLength:i,textOffset:l,getLinkColor:b,getTextColor:C});return{transition:dd(x,{keys:function(S){return S.id},initial:w.update,from:w.enter,enter:w.update,update:w.update,leave:w.leave,config:y,immediate:!p}),interpolateLink:M6e,interpolateTextAnchor:T6e,interpolateTextPosition:I6e}},R6e=function(e){var t=e.center,n=e.data,r=e.label,o=e.skipAngle,i=e.offset,a=e.diagonalLength,s=e.straightLength,l=e.strokeWidth,u=e.textOffset,c=e.textColor,f=e.linkColor,p=e.component,y=p===void 0?_6e:p,v=_c(r),b=E6e({data:n,skipAngle:o,offset:i,diagonalLength:a,straightLength:s,textOffset:u,linkColor:f,textColor:c}),C=b.transition,x=b.interpolateLink,w=b.interpolateTextAnchor,S=b.interpolateTextPosition,$=y;return m.jsx("g",{transform:"translate("+t[0]+","+t[1]+")",children:C(function(T,k){return g.createElement($,{key:k.id,datum:k,label:v(k),style:Vn({},T,{thickness:l,path:x(T.startAngle,T.endAngle,T.innerRadius,T.outerRadius,T.offset,T.diagonalLength,T.straightLength),textAnchor:w(T.startAngle,T.endAngle,T.innerRadius,T.outerRadius),textPosition:S(T.startAngle,T.endAngle,T.innerRadius,T.outerRadius,T.offset,T.diagonalLength,T.straightLength,T.textOffset)})})})})},O6e=function(e){var t=e.datum,n=e.style,r=e.onClick,o=e.onMouseEnter,i=e.onMouseMove,a=e.onMouseLeave,s=g.useCallback(function(f){return r==null?void 0:r(t,f)},[r,t]),l=g.useCallback(function(f){return o==null?void 0:o(t,f)},[o,t]),u=g.useCallback(function(f){return i==null?void 0:i(t,f)},[i,t]),c=g.useCallback(function(f){return a==null?void 0:a(t,f)},[a,t]);return m.jsx(Rn.path,{d:n.path,opacity:n.opacity,fill:t.fill||n.color,stroke:n.borderColor,strokeWidth:n.borderWidth,onClick:r?s:void 0,onMouseEnter:o?l:void 0,onMouseMove:i?u:void 0,onMouseLeave:a?c:void 0})},A6e=function(e,t,n,r,o){return mu([e,t,n,r],function(i,a,s,l){return o({startAngle:i,endAngle:a,innerRadius:Math.max(0,s),outerRadius:Math.max(0,l)})})},F6e=function(e,t,n){t===void 0&&(t="innerRadius");var r=Io(),o=r.animate,i=r.config,a=lV(t,n);return{transition:dd(e,{keys:function(s){return s.id},initial:a.update,from:a.enter,enter:a.update,update:a.update,leave:a.leave,config:i,immediate:!o}),interpolate:A6e}},L6e=function(e){var t=e.center,n=e.data,r=e.arcGenerator,o=e.borderWidth,i=e.borderColor,a=e.onClick,s=e.onMouseEnter,l=e.onMouseMove,u=e.onMouseLeave,c=e.transitionMode,f=e.component,p=f===void 0?O6e:f,y=An(),v=ys(i,y),b=F6e(n,c,{enter:function(S){return{opacity:0,color:S.color,borderColor:v(S)}},update:function(S){return{opacity:1,color:S.color,borderColor:v(S)}},leave:function(S){return{opacity:0,color:S.color,borderColor:v(S)}}}),C=b.transition,x=b.interpolate,w=p;return m.jsx("g",{transform:"translate("+t[0]+","+t[1]+")",children:C(function(S,$){return g.createElement(w,{key:$.id,datum:$,style:Vn({},S,{borderWidth:o,path:x(S.startAngle,S.endAngle,S.innerRadius,S.outerRadius,r)}),onClick:a,onMouseEnter:s,onMouseMove:l,onMouseLeave:u})})})},j6e=function(e,t,n,r,o,i){i===void 0&&(i=!0);var a=[],s=$c(ea(r),n);a.push([s.x,s.y]);var l=$c(ea(o),n);a.push([l.x,l.y]);for(var u=Math.round(Math.min(r,o));u<=Math.round(Math.max(r,o));u++)if(u%90==0){var c=$c(ea(u),n);a.push([c.x,c.y])}a=a.map(function(C){var x=C[0],w=C[1];return[e+x,t+w]}),i&&a.push([e,t]);var f=a.map(function(C){return C[0]}),p=a.map(function(C){return C[1]}),y=Math.min.apply(Math,f),v=Math.max.apply(Math,f),b=Math.min.apply(Math,p);return{points:a,x:y,y:b,width:v-y,height:Math.max.apply(Math,p)-b}},D6e=function(e){var t=e===void 0?{}:e,n=t.cornerRadius,r=n===void 0?0:n,o=t.padAngle,i=o===void 0?0:o;return g.useMemo(function(){return XIe().innerRadius(function(a){return a.innerRadius}).outerRadius(function(a){return a.outerRadius}).cornerRadius(r).padAngle(i)},[r,i])},N6e=function(e){var t=e.x,n=e.y,r=e.size,o=e.fill,i=e.opacity,a=i===void 0?1:i,s=e.borderWidth,l=s===void 0?0:s,u=e.borderColor;return m.jsx("circle",{r:r/2,cx:t+r/2,cy:n+r/2,fill:o,opacity:a,strokeWidth:l,stroke:u===void 0?"transparent":u,style:{pointerEvents:"none"}})},z6e=function(e){var t=e.x,n=e.y,r=e.size,o=e.fill,i=e.opacity,a=i===void 0?1:i,s=e.borderWidth,l=s===void 0?0:s,u=e.borderColor;return m.jsx("g",{transform:"translate("+t+","+n+")",children:m.jsx("path",{d:` + M`+r/2+` 0 + L`+.8*r+" "+r/2+` + L`+r/2+" "+r+` + L`+.2*r+" "+r/2+` + L`+r/2+` 0 + `,fill:o,opacity:a,strokeWidth:l,stroke:u===void 0?"transparent":u,style:{pointerEvents:"none"}})})},B6e=function(e){var t=e.x,n=e.y,r=e.size,o=e.fill,i=e.opacity,a=i===void 0?1:i,s=e.borderWidth,l=s===void 0?0:s,u=e.borderColor;return m.jsx("rect",{x:t,y:n,fill:o,opacity:a,strokeWidth:l,stroke:u===void 0?"transparent":u,width:r,height:r,style:{pointerEvents:"none"}})},H6e=function(e){var t=e.x,n=e.y,r=e.size,o=e.fill,i=e.opacity,a=i===void 0?1:i,s=e.borderWidth,l=s===void 0?0:s,u=e.borderColor;return m.jsx("g",{transform:"translate("+t+","+n+")",children:m.jsx("path",{d:` + M`+r/2+` 0 + L`+r+" "+r+` + L0 `+r+` + L`+r/2+` 0 + `,fill:o,opacity:a,strokeWidth:l,stroke:u===void 0?"transparent":u,style:{pointerEvents:"none"}})})};function dc(){return dc=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}var k9,Y6e=function(e){var t=e.width,n=e.height,r=e.legends,o=e.data,i=e.toggleSerie;return m.jsx(m.Fragment,{children:r.map(function(a,s){var l;return m.jsx(OT,hl({},a,{containerWidth:t,containerHeight:n,data:(l=a.data)!=null?l:o,toggleSerie:a.toggleSerie?i:void 0}),s)})})},kt={id:"id",value:"value",sortByValue:!1,innerRadius:0,padAngle:0,cornerRadius:0,layers:["arcLinkLabels","arcs","arcLabels","legends"],startAngle:0,endAngle:360,fit:!0,activeInnerRadiusOffset:0,activeOuterRadiusOffset:0,borderWidth:0,borderColor:{from:"color",modifiers:[["darker",1]]},enableArcLabels:!0,arcLabel:"formattedValue",arcLabelsSkipAngle:0,arcLabelsRadiusOffset:.5,arcLabelsTextColor:{theme:"labels.text.fill"},enableArcLinkLabels:!0,arcLinkLabel:"id",arcLinkLabelsSkipAngle:0,arcLinkLabelsOffset:0,arcLinkLabelsDiagonalLength:16,arcLinkLabelsStraightLength:24,arcLinkLabelsThickness:1,arcLinkLabelsTextOffset:6,arcLinkLabelsTextColor:{theme:"labels.text.fill"},arcLinkLabelsColor:{theme:"axis.ticks.line.stroke"},colors:{scheme:"nivo"},defs:[],fill:[],isInteractive:!0,animate:!0,motionConfig:"gentle",transitionMode:"innerRadius",tooltip:function(e){var t=e.datum;return m.jsx(I5,{id:t.id,value:t.formattedValue,enableChip:!0,color:t.color})},legends:[],role:"img",pixelRatio:typeof window<"u"&&(k9=window.devicePixelRatio)!=null?k9:1},X6e=["points"],Q6e=function(e){var t=e.data,n=e.id,r=n===void 0?kt.id:n,o=e.value,i=o===void 0?kt.value:o,a=e.valueFormat,s=e.colors,l=s===void 0?kt.colors:s,u=_c(r),c=_c(i),f=Lg(a),p=ET(l,"id");return g.useMemo(function(){return t.map(function(y){var v,b=u(y),C=c(y),x={id:b,label:(v=y.label)!=null?v:b,hidden:!1,value:C,formattedValue:f(C),data:y};return hl({},x,{color:p(x)})})},[t,u,c,f,p])},Z6e=function(e){var t=e.data,n=e.startAngle,r=e.endAngle,o=e.innerRadius,i=e.outerRadius,a=e.padAngle,s=e.sortByValue,l=e.activeId,u=e.activeInnerRadiusOffset,c=e.activeOuterRadiusOffset,f=e.hiddenIds,p=g.useMemo(function(){var y=eEe().value(function(v){return v.value}).startAngle(ea(n)).endAngle(ea(r)).padAngle(ea(a));return s||y.sortValues(null),y},[n,r,a,s]);return g.useMemo(function(){var y=t.filter(function(v){return!f.includes(v.id)});return{dataWithArc:p(y).map(function(v){var b=Math.abs(v.endAngle-v.startAngle);return hl({},v.data,{arc:{index:v.index,startAngle:v.startAngle,endAngle:v.endAngle,innerRadius:l===v.data.id?o-u:o,outerRadius:l===v.data.id?i+c:i,thickness:i-o,padAngle:v.padAngle,angle:b,angleDeg:rw(b)}})}),legendData:t.map(function(v){return hl({},v,{hidden:f.includes(v.id)})})}},[p,t,f,l,o,u,i,c])},J6e=function(e){var t=e.data,n=e.width,r=e.height,o=e.innerRadius,i=o===void 0?kt.innerRadius:o,a=e.startAngle,s=a===void 0?kt.startAngle:a,l=e.endAngle,u=l===void 0?kt.endAngle:l,c=e.padAngle,f=c===void 0?kt.padAngle:c,p=e.sortByValue,y=p===void 0?kt.sortByValue:p,v=e.cornerRadius,b=v===void 0?kt.cornerRadius:v,C=e.fit,x=C===void 0?kt.fit:C,w=e.activeInnerRadiusOffset,S=w===void 0?kt.activeInnerRadiusOffset:w,$=e.activeOuterRadiusOffset,T=$===void 0?kt.activeOuterRadiusOffset:$,k=g.useState(null),M=k[0],E=k[1],N=g.useState([]),I=N[0],A=N[1],z=g.useMemo(function(){var j,H=Math.min(n,r)/2,B=H*Math.min(i,1),D=n/2,W=r/2;if(x){var U=j6e(D,W,H,s-90,u-90),Z=U.points,Y=pV(U,X6e),se=Math.min(n/Y.width,r/Y.height),Q={width:Y.width*se,height:Y.height*se};Q.x=(n-Q.width)/2,Q.y=(r-Q.height)/2,D=(D-Y.x)/Y.width*Y.width*se+Q.x,W=(W-Y.y)/Y.height*Y.height*se+Q.y,j={box:Y,ratio:se,points:Z},H*=se,B*=se}return{centerX:D,centerY:W,radius:H,innerRadius:B,debug:j}},[n,r,i,s,u,x,b]),L=Z6e({data:t,startAngle:s,endAngle:u,innerRadius:z.innerRadius,outerRadius:z.radius,padAngle:f,sortByValue:y,activeId:M,activeInnerRadiusOffset:S,activeOuterRadiusOffset:T,hiddenIds:I}),O=g.useCallback(function(j){A(function(H){return H.indexOf(j)>-1?H.filter(function(B){return B!==j}):[].concat(H,[j])})},[]);return hl({arcGenerator:D6e({cornerRadius:b,padAngle:ea(f)}),setActiveId:E,toggleSerie:O},L,z)},eAe=function(e){var t=e.dataWithArc,n=e.arcGenerator,r=e.centerX,o=e.centerY,i=e.radius,a=e.innerRadius;return g.useMemo(function(){return{dataWithArc:t,arcGenerator:n,centerX:r,centerY:o,radius:i,innerRadius:a}},[t,n,r,o,i,a])},tAe=function(e){var t=e.center,n=e.data,r=e.arcGenerator,o=e.borderWidth,i=e.borderColor,a=e.isInteractive,s=e.onClick,l=e.onMouseEnter,u=e.onMouseMove,c=e.onMouseLeave,f=e.setActiveId,p=e.tooltip,y=e.transitionMode,v=Hp(),b=v.showTooltipFromEvent,C=v.hideTooltip,x=g.useMemo(function(){if(a)return function(T,k){s==null||s(T,k)}},[a,s]),w=g.useMemo(function(){if(a)return function(T,k){b(g.createElement(p,{datum:T}),k),f(T.id),l==null||l(T,k)}},[a,b,f,l,p]),S=g.useMemo(function(){if(a)return function(T,k){b(g.createElement(p,{datum:T}),k),u==null||u(T,k)}},[a,b,u,p]),$=g.useMemo(function(){if(a)return function(T,k){C(),f(null),c==null||c(T,k)}},[a,C,f,c]);return m.jsx(L6e,{center:t,data:n,arcGenerator:r,borderWidth:o,borderColor:i,transitionMode:y,onClick:x,onMouseEnter:w,onMouseMove:S,onMouseLeave:$})},nAe=["isInteractive","animate","motionConfig","theme","renderWrapper"],rAe=function(e){var t=e.data,n=e.id,r=n===void 0?kt.id:n,o=e.value,i=o===void 0?kt.value:o,a=e.valueFormat,s=e.sortByValue,l=s===void 0?kt.sortByValue:s,u=e.layers,c=u===void 0?kt.layers:u,f=e.startAngle,p=f===void 0?kt.startAngle:f,y=e.endAngle,v=y===void 0?kt.endAngle:y,b=e.padAngle,C=b===void 0?kt.padAngle:b,x=e.fit,w=x===void 0?kt.fit:x,S=e.innerRadius,$=S===void 0?kt.innerRadius:S,T=e.cornerRadius,k=T===void 0?kt.cornerRadius:T,M=e.activeInnerRadiusOffset,E=M===void 0?kt.activeInnerRadiusOffset:M,N=e.activeOuterRadiusOffset,I=N===void 0?kt.activeOuterRadiusOffset:N,A=e.width,z=e.height,L=e.margin,O=e.colors,j=O===void 0?kt.colors:O,H=e.borderWidth,B=H===void 0?kt.borderWidth:H,D=e.borderColor,W=D===void 0?kt.borderColor:D,U=e.enableArcLabels,Z=U===void 0?kt.enableArcLabels:U,Y=e.arcLabel,se=Y===void 0?kt.arcLabel:Y,Q=e.arcLabelsSkipAngle,ne=Q===void 0?kt.arcLabelsSkipAngle:Q,re=e.arcLabelsTextColor,ge=re===void 0?kt.arcLabelsTextColor:re,xe=e.arcLabelsRadiusOffset,fe=xe===void 0?kt.arcLabelsRadiusOffset:xe,Se=e.arcLabelsComponent,de=e.enableArcLinkLabels,ie=de===void 0?kt.enableArcLinkLabels:de,Pe=e.arcLinkLabel,$e=Pe===void 0?kt.arcLinkLabel:Pe,me=e.arcLinkLabelsSkipAngle,ue=me===void 0?kt.arcLinkLabelsSkipAngle:me,ce=e.arcLinkLabelsOffset,Te=ce===void 0?kt.arcLinkLabelsOffset:ce,Le=e.arcLinkLabelsDiagonalLength,Re=Le===void 0?kt.arcLinkLabelsDiagonalLength:Le,Oe=e.arcLinkLabelsStraightLength,K=Oe===void 0?kt.arcLinkLabelsStraightLength:Oe,ee=e.arcLinkLabelsThickness,pe=ee===void 0?kt.arcLinkLabelsThickness:ee,ye=e.arcLinkLabelsTextOffset,je=ye===void 0?kt.arcLinkLabelsTextOffset:ye,Ae=e.arcLinkLabelsTextColor,Ie=Ae===void 0?kt.arcLinkLabelsTextColor:Ae,Ce=e.arcLinkLabelsColor,Ze=Ce===void 0?kt.arcLinkLabelsColor:Ce,Ct=e.arcLinkLabelComponent,et=e.defs,Be=et===void 0?kt.defs:et,te=e.fill,X=te===void 0?kt.fill:te,oe=e.isInteractive,Ee=oe===void 0?kt.isInteractive:oe,Ue=e.onClick,Ye=e.onMouseEnter,at=e.onMouseMove,Je=e.onMouseLeave,nt=e.tooltip,_t=nt===void 0?kt.tooltip:nt,ht=e.transitionMode,lt=ht===void 0?kt.transitionMode:ht,Ot=e.legends,Dt=Ot===void 0?kt.legends:Ot,fn=e.role,hn=fn===void 0?kt.role:fn,Pt=$0(A,z,L),zt=Pt.outerWidth,un=Pt.outerHeight,cn=Pt.margin,ut=Pt.innerWidth,mt=Pt.innerHeight,At=Q6e({data:t,id:r,value:i,valueFormat:a,colors:j}),Ft=J6e({data:At,width:ut,height:mt,fit:w,innerRadius:$,startAngle:p,endAngle:v,padAngle:C,sortByValue:l,cornerRadius:k,activeInnerRadiusOffset:E,activeOuterRadiusOffset:I}),tt=Ft.dataWithArc,Gt=Ft.legendData,_e=Ft.arcGenerator,we=Ft.centerX,Fe=Ft.centerY,rt=Ft.radius,Tt=Ft.innerRadius,en=Ft.setActiveId,kn=Ft.toggleSerie,ct=TT(Be,tt,X),gt={arcLinkLabels:null,arcs:null,arcLabels:null,legends:null};ie&&c.includes("arcLinkLabels")&&(gt.arcLinkLabels=m.jsx(R6e,{center:[we,Fe],data:tt,label:$e,skipAngle:ue,offset:Te,diagonalLength:Re,straightLength:K,strokeWidth:pe,textOffset:je,textColor:Ie,linkColor:Ze,component:Ct},"arcLinkLabels")),c.includes("arcs")&&(gt.arcs=m.jsx(tAe,{center:[we,Fe],data:tt,arcGenerator:_e,borderWidth:B,borderColor:W,isInteractive:Ee,onClick:Ue,onMouseEnter:Ye,onMouseMove:at,onMouseLeave:Je,setActiveId:en,tooltip:_t,transitionMode:lt},"arcs")),Z&&c.includes("arcLabels")&&(gt.arcLabels=m.jsx($6e,{center:[we,Fe],data:tt,label:se,radiusOffset:fe,skipAngle:ne,textColor:ge,transitionMode:lt,component:Se},"arcLabels")),Dt.length>0&&c.includes("legends")&&(gt.legends=m.jsx(Y6e,{width:ut,height:mt,data:Gt,legends:Dt,toggleSerie:kn},"legends"));var ir=eAe({dataWithArc:tt,arcGenerator:_e,centerX:we,centerY:Fe,radius:rt,innerRadius:Tt});return m.jsx(ow,{width:zt,height:un,margin:cn,defs:ct,role:hn,children:c.map(function(Ed,Rd){return gt[Ed]!==void 0?gt[Ed]:typeof Ed=="function"?m.jsx(g.Fragment,{children:g.createElement(Ed,ir)},Rd):null})})},oAe=function(e){var t=e.isInteractive,n=t===void 0?kt.isInteractive:t,r=e.animate,o=r===void 0?kt.animate:r,i=e.motionConfig,a=i===void 0?kt.motionConfig:i,s=e.theme,l=e.renderWrapper,u=pV(e,nAe);return m.jsx(_0,{animate:o,isInteractive:n,motionConfig:a,renderWrapper:l,theme:s,children:m.jsx(rAe,hl({isInteractive:n},u))})},iAe=function(e){return m.jsx(nh,{children:function(t){var n=t.width,r=t.height;return m.jsx(oAe,hl({width:n,height:r},e))}})};const aAe=({data:e})=>{const t=Wt(),n=_n(t.palette.mode);return m.jsx(iAe,{data:e,margin:{top:20,right:80,bottom:20,left:80},activeOuterRadiusOffset:8,colors:{scheme:"blues"},borderColor:{from:"color",modifiers:[["darker",.2]]},enableArcLinkLabels:!0,arcLinkLabelsSkipAngle:10,arcLinkLabelsTextColor:n.primary[100],arcLinkLabelsThickness:2,arcLinkLabelsColor:{from:"color",modifiers:[]},arcLabelsSkipAngle:10,arcLabelsTextColor:"#000",arcLabelsRadiusOffset:.7,valueFormat:r=>`${Number(r).toLocaleString("ru-RU",{minimumFractionDigits:2})}%`,motionConfig:{mass:1,tension:170,friction:26,clamp:!1,precision:.01,velocity:0},theme:{tooltip:{container:{background:`${n.primary[500]}`,color:`${n.primary[100]}`}}}})},sAe=[{field:"id",headerName:"ID",type:"number",flex:1,minWidth:80,maxWidth:80},{field:"sourceName",headerName:"Source name",type:"string",flex:1,minWidth:160,maxWidth:160,editable:!0},{field:"amount",headerName:"Amount ($)",type:"number",flex:1,minWidth:110,maxWidth:110,editable:!0},{field:"paymentMethod",headerName:"Payment Method",type:"string",sortable:!0,flex:.3,minWidth:160,maxWidth:150,editable:!0},{field:"frequency",headerName:"Frequency",type:"string",flex:1,minWidth:120,maxWidth:90},{field:"status",headerName:"Status",type:"boolean",flex:1,minWidth:100,maxWidth:100},{field:"received",headerName:"Received",type:"string",flex:1,minWidth:120,maxWidth:100},{field:"category",headerName:"Category",type:"string",flex:1,minWidth:140,maxWidth:140},{field:"description",headerName:"Description",type:"string",flex:1,minWidth:140,maxWidth:140},{field:"nextPayment",headerName:"Next Payment",type:"string",flex:1,minWidth:120,maxWidth:120},{field:"taxRate",headerName:"Tax Rate (%)",type:"number",flex:1,minWidth:120,maxWidth:100}],lAe=[{id:1,amount:1e3,paymentMethod:"credit card",sourceName:"Job Salary",status:"Active",frequency:"Monthly",received:"05.01.2023",category:"Employment ",description:"Monthly pay",nextPayment:"05.02.2023",taxRate:20},{id:2,amount:500,paymentMethod:"online",sourceName:"Freelance Work",status:"Active",frequency:"Weekly",received:"07.01.2023",category:"Freelance",description:"Web design",nextPayment:"14.01.2023",taxRate:30},{id:3,amount:300,paymentMethod:"online",sourceName:"Rental Income",status:"Active",frequency:"Monthly",received:"15.01.2023",category:"Property ",description:"Rent",nextPayment:"15.02.2023",taxRate:20},{id:4,amount:300,paymentMethod:"Venmo",sourceName:"Side Gig",status:"Active",frequency:"Weekly",received:"31.12.2022",category:"Business",description:"Photography",nextPayment:"01.03.2023",taxRate:15},{id:5,amount:150,paymentMethod:"cash",sourceName:"Side Hustle",status:"Active",frequency:"Bi-weekly",received:"01.01.2023",category:"Gig",description:"Event DJ",nextPayment:"14.01.2023",taxRate:10},{id:6,amount:100,paymentMethod:"credit card",sourceName:"Gift Money",status:"Active",frequency:"One-time",received:"01.01.2023",category:"Personal",description:"Birthday",nextPayment:null,taxRate:5},{id:7,amount:250,paymentMethod:"Bank Transfer",sourceName:"Dividend",status:"Active",frequency:"Yearly",received:"29.12.2023",category:"Investment",description:"Stocks",nextPayment:"2024.01.15",taxRate:10},{id:8,amount:400,paymentMethod:"PayPal",sourceName:"Rent",status:"Active",frequency:"Monthly",received:"03.02.2023",category:"Housing",description:"Apartment",nextPayment:"03.03.2023",taxRate:15},{id:9,amount:400,paymentMethod:"PayPal",sourceName:"Sale",status:"Active",frequency:"One-time",received:"20.01.2023",category:"Personal",description:"Electronics",nextPayment:null,taxRate:20}],uAe=[{id:"Electricity",label:"Electricity",value:19,color:"hsl(173, 70%, 50%)"},{id:"Phone",label:"Phone",value:7,color:"hsl(352, 70%, 50%)"},{id:"Gas",label:"Gas",value:10,color:"hsl(180, 70%, 50%)"},{id:"WaterSewer",label:"Water and sewer",value:18,color:"hsl(128, 70%, 50%)"},{id:"Cable",label:"Cable",value:5,color:"hsl(269, 70%, 50%)"},{id:"Waste",label:"Waste removal",value:6,color:"hsl(24, 85%, 56%)"},{id:"Other",label:"Other",value:35,color:"hsl(240, 9%, 81%)"}],cAe=[{title:"Housing",currentValue:"2,500",limit:"3,000"},{title:"Utilities",currentValue:"600",limit:"1,500"},{title:"Transportation",currentValue:"900",limit:"2,000"},{title:"Food",currentValue:"1,250",limit:"2,500"},{title:"Health Insurance",currentValue:"500",limit:"1,500"},{title:"Personal Care",currentValue:"80",limit:"500"},{title:"Clothing",currentValue:"200",limit:"500"},{title:"Entertainment",currentValue:"50",limit:"300"},{title:"Travel",currentValue:"1,200",limit:"5,000"},{title:"Education",currentValue:"800",limit:"2,000"},{title:"Debt Repayment",currentValue:"3,000",limit:"4,000"},{title:"Insurance",currentValue:"1,750",limit:"3,000"},{title:"Phone Bill",currentValue:"2,500",limit:"3,000"},{title:"Internet Bill",currentValue:"2,500",limit:"3,000"},{title:"Charity and Donations",currentValue:"500",limit:"1,000"}],dAe=[{field:"id",headerName:"ID",flex:1,minWidth:80,maxWidth:80},{field:"title",headerName:"Title",flex:1,minWidth:160,maxWidth:190},{field:"amount",headerName:"Amount",flex:1,minWidth:110,maxWidth:130},{field:"description",headerName:"Description",flex:1,minWidth:160,maxWidth:190},{field:"goal",headerName:"Goal",flex:1,minWidth:110,maxWidth:130},{field:"targetDate",headerName:"Target Date",flex:1,minWidth:130,maxWidth:160},{field:"progress",headerName:"Progress"},{field:"category",headerName:"Category",flex:1,minWidth:120,maxWidth:100},{field:"status",headerName:"Status",description:"This column has a value getter and is not sortable.",flex:1,minWidth:130,maxWidth:160}],fAe=[{id:1,title:"Emergency",amount:"$1000",description:"Emergency Fund",goal:"$5000",targetDate:"12.31.2023",progress:"20%",category:"General",status:"Incomplete"},{id:2,title:"Vacation",amount:"$2000",description:"Saving for vacation",goal:"$5000",targetDate:"06.30.2024",progress:"40%",category:"Travel",status:"Incomplete"},{id:3,title:"Car",amount:"$500",description:"Saving for a new car",goal:"$10000",targetDate:"10.15.2024",progress:"5%",category:"Vehicle",status:"Incomplete"},{id:4,title:"Education",amount:"$2500",description:"College fund",goal:"$15000",targetDate:"12.31.2024",progress:"16.67%",category:"Education",status:"Incomplete"}],hV=()=>m.jsx(gr,{title:"Budget Allocation",content:m.jsx(Mi,{style:{height:"400px",padding:0},children:m.jsx(aAe,{data:uAe})}),height:500}),mV=g.createContext(void 0);function Vt(){const e=g.useContext(mV);if(e===void 0)throw new Error(["MUI: Could not find the data grid context.","It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.","This can also happen if you are bundling multiple versions of the data grid."].join(` +`));return e}const gV=g.createContext(void 0),dt=()=>{const e=g.useContext(gV);if(!e)throw new Error("MUI: useGridRootProps should only be used inside the DataGrid, DataGridPro or DataGridPremium component.");return e},vV=g.createContext(void 0);function Iu(){const e=g.useContext(vV);if(e===void 0)throw new Error(["MUI: Could not find the data grid private context.","It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.","This can also happen if you are bundling multiple versions of the data grid."].join(` +`));return e}const P9={};function AT(e,t){const n=g.useRef(P9);return n.current===P9&&(n.current=e(t)),n}const pAe=[];function yV(e){g.useEffect(e,pAe)}const Ps=(e,t="warning")=>{let n=!1;const r=Array.isArray(e)?e.join(` +`):e;return()=>{n||(n=!0,t==="error"?console.error(r):console.warn(r))}},hAe=Object.is;function bV(e,t){if(e===t)return!0;if(!(e instanceof Object)||!(t instanceof Object))return!1;let n=0,r=0;for(const o in e)if(n+=1,!hAe(e[o],t[o])||!(o in t))return!1;for(const o in t)r+=1;return n===r}Ps(["MUI: `useGridSelector` has been called before the initialization of the state.","This hook can only be used inside the context of the grid."]);function mAe(e){return e.acceptsApiRef}function M9(e,t){return mAe(t)?t(e):t(e.current.state)}const gAe=Object.is,FT=bV,vAe=()=>({state:null,equals:null,selector:null}),it=(e,t,n=gAe)=>{const r=AT(vAe),o=r.current.selector!==null,[i,a]=g.useState(o?null:M9(e,t));return r.current.state=i,r.current.equals=n,r.current.selector=t,yV(()=>e.current.store.subscribe(()=>{const s=M9(e,r.current.selector);r.current.equals(r.current.state,s)||(r.current.state=s,a(s))})),i};function Jt(e){return vt("MuiDataGrid",e)}const le=yt("MuiDataGrid",["actionsCell","aggregationColumnHeader","aggregationColumnHeader--alignLeft","aggregationColumnHeader--alignCenter","aggregationColumnHeader--alignRight","aggregationColumnHeaderLabel","autoHeight","autosizing","booleanCell","cell--editable","cell--editing","cell--textCenter","cell--textLeft","cell--textRight","cell--withRenderer","cell--rangeTop","cell--rangeBottom","cell--rangeLeft","cell--rangeRight","cell--selectionMode","cell","cellContent","cellCheckbox","cellSkeleton","checkboxInput","columnHeader--alignCenter","columnHeader--alignLeft","columnHeader--alignRight","columnHeader--dragging","columnHeader--moving","columnHeader--numeric","columnHeader--sortable","columnHeader--sorted","columnHeader--filtered","columnHeader","columnHeaderCheckbox","columnHeaderDraggableContainer","columnHeaderDropZone","columnHeaderTitle","columnHeaderTitleContainer","columnHeaderTitleContainerContent","columnGroupHeader","columnHeader--filledGroup","columnHeader--emptyGroup","columnHeader--showColumnBorder","columnHeaders","columnHeadersInner","columnHeadersInner--scrollable","columnSeparator--resizable","columnSeparator--resizing","columnSeparator--sideLeft","columnSeparator--sideRight","columnSeparator","columnsPanel","columnsPanelRow","detailPanel","detailPanels","detailPanelToggleCell","detailPanelToggleCell--expanded","footerCell","panel","panelHeader","panelWrapper","panelContent","panelFooter","paper","editBooleanCell","editInputCell","filterForm","filterFormDeleteIcon","filterFormLogicOperatorInput","filterFormColumnInput","filterFormOperatorInput","filterFormValueInput","filterIcon","footerContainer","headerFilterRow","iconButtonContainer","iconSeparator","main","menu","menuIcon","menuIconButton","menuOpen","menuList","overlay","overlayWrapper","overlayWrapperInner","root","root--densityStandard","root--densityComfortable","root--densityCompact","root--disableUserSelection","row","row--editable","row--editing","row--lastVisible","row--dragging","row--dynamicHeight","row--detailPanelExpanded","rowReorderCellPlaceholder","rowCount","rowReorderCellContainer","rowReorderCell","rowReorderCell--draggable","scrollArea--left","scrollArea--right","scrollArea","selectedRowCount","sortIcon","toolbarContainer","toolbarFilterList","virtualScroller","virtualScrollerContent","virtualScrollerContent--overflowed","virtualScrollerRenderZone","pinnedColumns","pinnedColumns--left","pinnedColumns--right","pinnedColumnHeaders","pinnedColumnHeaders--left","pinnedColumnHeaders--right","withBorderColor","cell--withRightBorder","columnHeader--withRightBorder","treeDataGroupingCell","treeDataGroupingCellToggle","groupingCriteriaCell","groupingCriteriaCellToggle","pinnedRows","pinnedRows--top","pinnedRows--bottom","pinnedRowsRenderZone"]);var lb="NOT_FOUND";function yAe(e){var t;return{get:function(r){return t&&e(t.key,r)?t.value:lb},put:function(r,o){t={key:r,value:o}},getEntries:function(){return t?[t]:[]},clear:function(){t=void 0}}}function bAe(e,t){var n=[];function r(s){var l=n.findIndex(function(c){return t(s,c.key)});if(l>-1){var u=n[l];return l>0&&(n.splice(l,1),n.unshift(u)),u.value}return lb}function o(s,l){r(s)===lb&&(n.unshift({key:s,value:l}),n.length>e&&n.pop())}function i(){return n}function a(){n=[]}return{get:r,put:o,getEntries:i,clear:a}}var xAe=function(t,n){return t===n};function wAe(e){return function(n,r){if(n===null||r===null||n.length!==r.length)return!1;for(var o=n.length,i=0;i1?t-1:0),r=1;r{if(a.length>0)throw new Error("Unsupported number of selectors");let s;if(e&&t&&n&&r&&o&&i)s=(l,u)=>{const c=ff(l),f=u??(c?l.current.instanceId:pf),p=c?l.current.state:l,y=e(p,f),v=t(p,f),b=n(p,f),C=r(p,f),x=o(p,f);return i(y,v,b,C,x)};else if(e&&t&&n&&r&&o)s=(l,u)=>{const c=ff(l),f=u??(c?l.current.instanceId:pf),p=c?l.current.state:l,y=e(p,f),v=t(p,f),b=n(p,f),C=r(p,f);return o(y,v,b,C)};else if(e&&t&&n&&r)s=(l,u)=>{const c=ff(l),f=u??(c?l.current.instanceId:pf),p=c?l.current.state:l,y=e(p,f),v=t(p,f),b=n(p,f);return r(y,v,b)};else if(e&&t&&n)s=(l,u)=>{const c=ff(l),f=u??(c?l.current.instanceId:pf),p=c?l.current.state:l,y=e(p,f),v=t(p,f);return n(y,v)};else if(e&&t)s=(l,u)=>{const c=ff(l),f=u??(c?l.current.instanceId:pf),p=c?l.current.state:l,y=e(p,f);return t(y)};else throw new Error("Missing arguments");return s.acceptsApiRef=!0,s},Jn=(...e)=>{const t=(...n)=>{var r,o;const[i,a]=n,s=ff(i),l=s?i.current.instanceId:a??pf,u=s?i.current.state:i,{cache:c}=_Ae;if(c.get(l)&&(r=c.get(l))!=null&&r.get(e)){var f;return(f=c.get(l))==null?void 0:f.get(e)(u,l)}const p=$Ae(...e);return c.get(l)||c.set(l,new Map),(o=c.get(l))==null||o.set(e,p),p(u,l)};return t.acceptsApiRef=!0,t},Pc=e=>e.columns,ol=Ut(Pc,e=>e.orderedFields),bd=Ut(Pc,e=>e.lookup),ps=Jn(ol,bd,(e,t)=>e.map(n=>t[n])),Ma=Ut(Pc,e=>e.columnVisibilityModel),Zr=Jn(ps,Ma,(e,t)=>e.filter(n=>t[n.field]!==!1)),aw=Jn(Zr,e=>e.map(t=>t.field)),Ip=Jn(Zr,e=>{const t=[];let n=0;for(let r=0;r{const n=e.length;return n===0?0:t[n-1]+e[n-1].computedWidth}),xV=Jn(ps,e=>e.filter(t=>t.filterable)),kAe=Jn(ps,e=>e.reduce((t,n)=>(n.filterable&&(t[n.field]=n),t),{})),sw=e=>e.columnGrouping,PAe=Jn(sw,e=>{var t;return(t=e==null?void 0:e.unwrappedGroupingModel)!=null?t:{}}),wV=Jn(sw,e=>{var t;return(t=e==null?void 0:e.lookup)!=null?t:{}}),MAe=Jn(sw,e=>{var t;return(t=e==null?void 0:e.headerStructure)!=null?t:[]}),P0=Ut(sw,e=>{var t;return(t=e==null?void 0:e.maxDepth)!=null?t:0}),ja=e=>e.rows,lw=Ut(ja,e=>e.totalRowCount),TAe=Ut(ja,e=>e.loading),IAe=Ut(ja,e=>e.totalTopLevelRowCount),Ql=Ut(ja,e=>e.dataRowIdToModelLookup),ub=Ut(ja,e=>e.dataRowIdToIdLookup),_a=Ut(ja,e=>e.tree),EAe=Ut(ja,e=>e.groupingName),T9=Ut(ja,e=>e.treeDepths),uw=Jn(ja,e=>{const t=Object.entries(e.treeDepths);return t.length===0?1:t.filter(([,n])=>n>0).map(([n])=>Number(n)).sort((n,r)=>r-n)[0]+1}),a1=Ut(ja,e=>e.dataRowIds),RAe=Ut(ja,e=>e==null?void 0:e.additionalRowGroups),rh=Jn(RAe,e=>{var t,n;const r=e==null?void 0:e.pinnedRows;return{bottom:r==null||(t=r.bottom)==null?void 0:t.map(o=>{var i;return{id:o.id,model:(i=o.model)!=null?i:{}}}),top:r==null||(n=r.top)==null?void 0:n.map(o=>{var i;return{id:o.id,model:(i=o.model)!=null?i:{}}})}}),OAe=Ut(rh,e=>{var t,n;return((e==null||(t=e.top)==null?void 0:t.length)||0)+((e==null||(n=e.bottom)==null?void 0:n.length)||0)}),CV=()=>{var e;const t=Iu(),n=dt(),r=it(t,Zr),o=it(t,lw),i=it(t,P0),a=it(t,OAe);let s="grid";return(e=n.experimentalFeatures)!=null&&e.ariaV7&&n.treeData&&(s="treegrid"),{role:s,"aria-colcount":r.length,"aria-rowcount":i+1+a+o,"aria-multiselectable":!n.disableMultipleRowSelection}},AAe=e=>{const{classes:t}=e;return Ke({root:["main"]},Jt,t)},FAe=Lr("div",{name:"MuiDataGrid",slot:"Main",overridesResolver:(e,t)=>t.main})(()=>({position:"relative",flexGrow:1,display:"flex",flexDirection:"column",overflow:"hidden"})),LAe=g.forwardRef((e,t)=>{var n;const r=dt(),o=AAe(r),i=(n=r.experimentalFeatures)!=null&&n.ariaV7?CV:null,a=typeof i=="function"?i():null;return m.jsx(FAe,P({ref:t,className:o.root,ownerState:r},a,{children:e.children}))}),SV=e=>e.sorting,jT=Ut(SV,e=>e.sortedRows),DT=Jn(jT,Ql,(e,t)=>e.map(n=>{var r;return{id:n,model:(r=t[n])!=null?r:{}}})),zi=Ut(SV,e=>e.sortModel),jAe=Jn(zi,e=>e.reduce((n,r,o)=>(n[r.field]={sortDirection:r.sort,sortIndex:e.length>1?o+1:void 0},n),{})),NT=e=>e.filter,Yr=Ut(NT,e=>e.filterModel),DAe=Ut(Yr,e=>e.quickFilterValues),NAe=e=>e.visibleRowsLookup,$V=Ut(NT,e=>e.filteredRowsLookup);Ut(NT,e=>e.filteredDescendantCountLookup);const Eu=Jn(NAe,DT,(e,t)=>t.filter(n=>e[n.id]!==!1)),Lm=Jn(Eu,e=>e.map(t=>t.id)),zAe=Jn($V,DT,(e,t)=>t.filter(n=>e[n.id]!==!1)),BAe=Jn(zAe,e=>e.map(t=>t.id)),_V=Jn(Eu,_a,uw,(e,t,n)=>n<2?e:e.filter(r=>{var o;return((o=t[r.id])==null?void 0:o.depth)===0})),kV=Ut(Eu,e=>e.length),cw=Ut(_V,e=>e.length),PV=Jn(Yr,bd,(e,t)=>{var n;return(n=e.items)==null?void 0:n.filter(r=>{var o,i;if(!r.field)return!1;const a=t[r.field];if(!(a!=null&&a.filterOperators)||(a==null||(o=a.filterOperators)==null?void 0:o.length)===0)return!1;const s=a.filterOperators.find(l=>l.value===r.operator);return s?!s.InputComponent||r.value!=null&&((i=r.value)==null?void 0:i.toString())!=="":!1})}),HAe=Jn(PV,e=>e.reduce((n,r)=>(n[r.field]?n[r.field].push(r):n[r.field]=[r],n),{})),dw=e=>e.focus,ci=Ut(dw,e=>e.cell),WAe=Ut(dw,e=>e.columnHeader);Ut(dw,e=>e.columnHeaderFilter);const cb=Ut(dw,e=>e.columnGroupHeader),fw=e=>e.tabIndex,db=Ut(fw,e=>e.cell),MV=Ut(fw,e=>e.columnHeader);Ut(fw,e=>e.columnHeaderFilter);const VAe=Ut(fw,e=>e.columnGroupHeader),zT=e=>e.density,TV=Ut(zT,e=>e.value),oh=Ut(zT,e=>e.factor),Mk=e=>e.columnMenu;function UAe(e){const{VirtualScrollerComponent:t,ColumnHeadersProps:n,children:r}=e,o=Iu(),i=dt(),a=g.useRef(null),s=it(o,Zr),l=it(o,HAe),u=it(o,jAe),c=it(o,Ip),f=it(o,MV),p=it(o,db),y=it(o,VAe),v=it(o,WAe),b=it(o,cb),C=it(o,oh),x=it(o,P0),w=it(o,Mk),S=it(o,Ma),$=it(o,MAe),T=!(y===null&&f===null&&p===null);dn(()=>{o.current.computeSizeAndPublishResizeEvent();const I=a.current;if(typeof ResizeObserver>"u")return()=>{};let A;const z=new ResizeObserver(()=>{A=requestAnimationFrame(()=>{o.current.computeSizeAndPublishResizeEvent()})});return I&&z.observe(I),()=>{A&&window.cancelAnimationFrame(A),I&&z.unobserve(I)}},[o]);const k=g.useRef(null),M=g.useRef(null),E=g.useRef(null);o.current.register("private",{columnHeadersContainerElementRef:M,columnHeadersElementRef:k,virtualScrollerRef:E,mainElementRef:a});const N=!!o.current.getRootDimensions();return m.jsxs(LAe,{ref:a,children:[m.jsx(i.slots.columnHeaders,P({ref:M,innerRef:k,visibleColumns:s,filterColumnLookup:l,sortColumnLookup:u,columnPositions:c,columnHeaderTabIndexState:f,columnGroupHeaderTabIndexState:y,columnHeaderFocus:v,columnGroupHeaderFocus:b,densityFactor:C,headerGroupingMaxDepth:x,columnMenuState:w,columnVisibility:S,columnGroupsHeaderStructure:$,hasOtherElementInTabSequence:T},n)),N&&m.jsx(t,{ref:E}),r]})}function GAe(){var e;const t=dt();return t.hideFooter?null:m.jsx(t.slots.footer,P({},(e=t.slotProps)==null?void 0:e.footer))}const So="auto-generated-group-node-root",Zf=Symbol("mui.id_autogenerated"),qAe=()=>({type:"group",id:So,depth:-1,groupingField:null,groupingKey:null,isAutoGenerated:!0,children:[],childrenFromPath:{},childrenExpanded:!0,parent:null});function KAe(e,t,n="A row was provided without id in the rows prop:"){if(e==null)throw new Error(["MUI: The data grid component requires all rows to have a unique `id` property.","Alternatively, you can use the `getRowId` prop to specify a custom id for each row.",n,JSON.stringify(t)].join(` +`))}const fb=(e,t,n)=>{const r=t?t(e):e.id;return KAe(r,e,n),r},W1=({rows:e,getRowId:t,loading:n,rowCount:r})=>{const o={type:"full",rows:[]},i={},a={};for(let s=0;s{const n=e[So];return Math.max(t,n.children.length+(n.footerId==null?0:1))},EV=({apiRef:e,rowCountProp:t=0,loadingProp:n,previousTree:r,previousTreeDepths:o})=>{const i=e.current.caches.rows,{tree:a,treeDepths:s,dataRowIds:l,groupingName:u}=e.current.applyStrategyProcessor("rowTreeCreation",{previousTree:r,previousTreeDepths:o,updates:i.updates,dataRowIdToIdLookup:i.dataRowIdToIdLookup,dataRowIdToModelLookup:i.dataRowIdToModelLookup}),c=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:a,treeDepths:s,dataRowIdToIdLookup:i.dataRowIdToIdLookup,dataRowIds:l,dataRowIdToModelLookup:i.dataRowIdToModelLookup});return e.current.caches.rows.updates={type:"partial",actions:{insert:[],modify:[],remove:[]},idToActionLookup:{}},P({},c,{totalRowCount:Math.max(t,c.dataRowIds.length),totalTopLevelRowCount:IV({tree:c.tree,rowCountProp:t}),groupingName:u,loading:n})},Ng=e=>e.type==="skeletonRow"||e.type==="footer"||e.type==="group"&&e.isAutoGenerated||e.type==="pinnedRow"&&e.isAutoGenerated,BT=(e,t,n)=>{const r=e[t];if(r.type!=="group")return[];const o=[];for(let i=0;i{var r,o,i;if(e.updates.type==="full")throw new Error("MUI: Unable to prepare a partial update if a full update is not applied yet");const a=new Map;n.forEach(p=>{const y=fb(p,t,"A row was provided without id when calling updateRows():");a.has(y)?a.set(y,P({},a.get(y),p)):a.set(y,p)});const s={type:"partial",actions:{insert:[...(r=e.updates.actions.insert)!=null?r:[]],modify:[...(o=e.updates.actions.modify)!=null?o:[]],remove:[...(i=e.updates.actions.remove)!=null?i:[]]},idToActionLookup:P({},e.updates.idToActionLookup)},l=P({},e.dataRowIdToModelLookup),u=P({},e.dataRowIdToIdLookup),c={insert:{},modify:{},remove:{}};a.forEach((p,y)=>{const v=s.idToActionLookup[y];if(p._action==="delete"){if(v==="remove"||!l[y])return;v!=null&&(c[v][y]=!0),s.actions.remove.push(y),delete l[y],delete u[y];return}const b=l[y];if(b){v==="remove"?(c.remove[y]=!0,s.actions.modify.push(y)):v==null&&s.actions.modify.push(y),l[y]=P({},b,p);return}v==="remove"?(c.remove[y]=!0,s.actions.insert.push(y)):v==null&&s.actions.insert.push(y),l[y]=p,u[y]=y});const f=Object.keys(c);for(let p=0;p0&&(s.actions[y]=s.actions[y].filter(b=>!v[b]))}return{dataRowIdToModelLookup:l,dataRowIdToIdLookup:u,updates:s,rowsBeforePartialUpdates:e.rowsBeforePartialUpdates,loadingPropBeforePartialUpdates:e.loadingPropBeforePartialUpdates,rowCountPropBeforePartialUpdates:e.rowCountPropBeforePartialUpdates}};function RV(e){var t,n;const r=rh(e),o=(r==null||(t=r.top)==null?void 0:t.reduce((a,s)=>(a+=e.current.unstable_getRowHeight(s.id),a),0))||0,i=(r==null||(n=r.bottom)==null?void 0:n.reduce((a,s)=>(a+=e.current.unstable_getRowHeight(s.id),a),0))||0;return{top:o,bottom:i}}function OV(e,t){const n=oh(e);return`var(--DataGrid-overlayHeight, ${2*Math.floor(t*n)}px)`}const XAe=Lr("div",{name:"MuiDataGrid",slot:"OverlayWrapper",shouldForwardProp:e=>e!=="overlayType",overridesResolver:(e,t)=>t.overlayWrapper})(({overlayType:e})=>({position:"sticky",top:0,left:0,width:0,height:0,zIndex:e==="loadingOverlay"?5:4})),QAe=Lr("div",{name:"MuiDataGrid",slot:"OverlayWrapperInner",shouldForwardProp:e=>e!=="overlayType",overridesResolver:(e,t)=>t.overlayWrapperInner})({}),ZAe=e=>{const{classes:t}=e;return Ke({root:["overlayWrapper"],inner:["overlayWrapperInner"]},Jt,t)};function JAe(e){var t,n;const r=Vt(),o=dt(),[i,a]=g.useState(()=>{var c,f;return(c=(f=r.current.getRootDimensions())==null?void 0:f.viewportInnerSize)!=null?c:null}),s=g.useCallback(()=>{var c,f;a((c=(f=r.current.getRootDimensions())==null?void 0:f.viewportInnerSize)!=null?c:null)},[r]);dn(()=>r.current.subscribeEvent("viewportInnerSizeChange",s),[r,s]);let l=(t=i==null?void 0:i.height)!=null?t:0;o.autoHeight&&l===0&&(l=OV(r,o.rowHeight));const u=ZAe(P({},e,{classes:o.classes}));return i?m.jsx(XAe,{className:Ne(u.root),overlayType:e.overlayType,children:m.jsx(QAe,P({className:Ne(u.inner),style:{height:l,width:(n=i==null?void 0:i.width)!=null?n:0}},e))}):null}function e8e(){const e=Vt(),t=dt(),n=it(e,lw),r=it(e,kV),o=it(e,TAe),i=!o&&n===0,a=!o&&n>0&&r===0;let s=null,l="";if(i){var u;s=m.jsx(t.slots.noRowsOverlay,P({},(u=t.slotProps)==null?void 0:u.noRowsOverlay)),l="noRowsOverlay"}if(a){var c;s=m.jsx(t.slots.noResultsOverlay,P({},(c=t.slotProps)==null?void 0:c.noResultsOverlay)),l="noResultsOverlay"}if(o){var f;s=m.jsx(t.slots.loadingOverlay,P({},(f=t.slotProps)==null?void 0:f.loadingOverlay)),l="loadingOverlay"}return s===null?null:m.jsx(JAe,{overlayType:l,children:s})}function pw(e){return g.memo(e,bV)}let r$;function t8e(){return r$===void 0&&document.createElement("div").focus({get preventScroll(){return r$=!0,!1}}),r$}var bs=function(e){return e.Cell="cell",e.Row="row",e}(bs||{}),Mn=function(e){return e.Edit="edit",e.View="view",e}(Mn||{}),Bn=function(e){return e.Edit="edit",e.View="view",e}(Bn||{}),Bo=function(e){return e.And="and",e.Or="or",e}(Bo||{}),Al=function(e){return e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown",e}(Al||{}),xa=function(e){return e.cellFocusOut="cellFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown",e}(xa||{}),Fl=function(e){return e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown",e}(Fl||{}),Hs=function(e){return e.rowFocusOut="rowFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown",e}(Hs||{});function AV(e){return e.field!==void 0}function n8e(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function r8e(e,t){return e.closest(`.${t}`)}function HT(e){return e.replace(/["\\]/g,"\\$&")}function o8e(e,t){return e.querySelector(`[role="columnheader"][data-field="${HT(t)}"]`)}function FV(e){return`.${le.row}[data-id="${HT(String(e))}"]`}function i8e(e,t){return e.querySelector(FV(t))}function a8e(e,{id:t,field:n}){const r=FV(t),o=`.${le.cell}[data-field="${HT(n)}"]`,i=`${r} ${o}`;return e.querySelector(i)}function Xt(e,t,n){const r=g.useRef(!0);g.useEffect(()=>{r.current=!1,e.current.register(n,t)},[e,n,t]),r.current&&e.current.register(n,t)}class Rf extends Error{}function s8e(e,t){const{getRowId:n}=t,r=g.useCallback(v=>({field:v,colDef:e.current.getColumn(v)}),[e]),o=g.useCallback(v=>{const b=e.current.getRow(v);if(!b)throw new Rf(`No row with id #${v} found`);return{id:v,columns:e.current.getAllColumns(),row:b}},[e]),i=g.useCallback((v,b)=>{const C=e.current.getRow(v),x=e.current.getRowNode(v);if(!C||!x)throw new Rf(`No row with id #${v} found`);const w=ci(e),S=db(e);return{id:v,field:b,row:C,rowNode:x,value:C[b],colDef:e.current.getColumn(b),cellMode:e.current.getCellMode(v,b),api:e.current,hasFocus:w!==null&&w.field===b&&w.id===v,tabIndex:S&&S.field===b&&S.id===v?0:-1}},[e]),a=g.useCallback((v,b)=>{const C=e.current.getColumn(b),x=e.current.getCellValue(v,b),w=e.current.getRow(v),S=e.current.getRowNode(v);if(!w||!S)throw new Rf(`No row with id #${v} found`);const $=ci(e),T=db(e),k={id:v,field:b,row:w,rowNode:S,colDef:C,cellMode:e.current.getCellMode(v,b),hasFocus:$!==null&&$.field===b&&$.id===v,tabIndex:T&&T.field===b&&T.id===v?0:-1,value:x,formattedValue:x,isEditable:!1};return C&&C.valueFormatter&&(k.formattedValue=C.valueFormatter({id:v,field:k.field,value:k.value,api:e.current})),k.isEditable=C&&e.current.isCellEditable(k),k},[e]),s=g.useCallback((v,b)=>{const C=e.current.getColumn(b);if(!C||!C.valueGetter){const x=e.current.getRow(v);if(!x)throw new Rf(`No row with id #${v} found`);return x[b]}return C.valueGetter(i(v,b))},[e,i]),l=g.useCallback((v,b)=>{var C;const x=Zf in v?v[Zf]:(C=n==null?void 0:n(v))!=null?C:v.id,w=b.field;return!b||!b.valueGetter?v[w]:b.valueGetter(i(x,w))},[i,n]),u=g.useCallback((v,b)=>{var C;const x=l(v,b);if(!b||!b.valueFormatter)return x;const w=(C=n?n(v):v.id)!=null?C:v[Zf],S=b.field;return b.valueFormatter({id:w,field:S,value:x,api:e.current})},[e,n,l]),c=g.useCallback(v=>e.current.rootElementRef.current?o8e(e.current.rootElementRef.current,v):null,[e]),f=g.useCallback(v=>e.current.rootElementRef.current?i8e(e.current.rootElementRef.current,v):null,[e]),p=g.useCallback((v,b)=>e.current.rootElementRef.current?a8e(e.current.rootElementRef.current,{id:v,field:b}):null,[e]);Xt(e,{getCellValue:s,getCellParams:a,getCellElement:p,getRowValue:l,getRowFormattedValue:u,getRowParams:o,getRowElement:f,getColumnHeaderParams:r,getColumnHeaderElement:c},"public")}const l8e=["changeReason","unstable_updateValueOnRender"],u8e=["column","rowId","editCellState","align","children","colIndex","height","width","className","showRightBorder","extendRowFullWidth","row","colSpan","disableDragEvents","isNotVisible","onClick","onDoubleClick","onMouseDown","onMouseUp","onMouseOver","onKeyDown","onKeyUp","onDragEnter","onDragOver"],c8e=["changeReason","unstable_updateValueOnRender"],pb={id:-1,field:"__unset__",row:{},rowNode:{id:-1,depth:0,type:"leaf",parent:-1,groupingKey:null},colDef:{type:"string",field:"__unset__",computedWidth:0},cellMode:Mn.View,hasFocus:!1,tabIndex:-1,value:null,formattedValue:"__unset__",isEditable:!1,api:{}},d8e=e=>{const{align:t,showRightBorder:n,isEditable:r,isSelected:o,isSelectionMode:i,classes:a}=e,s={root:["cell",`cell--text${De(t)}`,r&&"cell--editable",o&&"selected",n&&"cell--withRightBorder",i&&!r&&"cell--selectionMode","withBorderColor"],content:["cellContent"]};return Ke(s,Jt,a)},f8e=g.forwardRef((e,t)=>{const{column:n,rowId:r,editCellState:o}=e,i=Vt(),a=dt(),s=n.field,l=it(i,()=>{try{const N=i.current.getCellParams(r,s);return N.api=i.current,N}catch(E){if(E instanceof Rf)return pb;throw E}},FT),u=it(i,()=>i.current.unstable_applyPipeProcessors("isCellSelected",!1,{id:r,field:s}));if(l===pb)return null;const{cellMode:c,hasFocus:f,isEditable:p,value:y,formattedValue:v}=l,b=n.type==="actions",C=(c==="view"||!p)&&!b?l.tabIndex:-1,{classes:x,getCellClassName:w}=a,S=i.current.unstable_applyPipeProcessors("cellClassName",[],{id:r,field:s});n.cellClassName&&S.push(typeof n.cellClassName=="function"?n.cellClassName(l):n.cellClassName),w&&S.push(w(l));let $;if(o==null&&n.renderCell&&($=n.renderCell(l),S.push(le["cell--withRenderer"]),S.push(x==null?void 0:x["cell--withRenderer"])),o!=null&&n.renderEditCell){const E=i.current.getRowWithUpdatedValues(r,n.field),N=be(o,l8e),I=P({},l,{row:E},N);$=n.renderEditCell(I),S.push(le["cell--editing"]),S.push(x==null?void 0:x["cell--editing"])}const{slots:T}=a,k=T.cell,M=P({},e,{ref:t,field:s,formattedValue:v,hasFocus:f,isEditable:p,isSelected:u,value:y,cellMode:c,children:$,tabIndex:C,className:Ne(S)});return g.createElement(k,M)}),p8e=pw(f8e),h8e=g.forwardRef((e,t)=>{var n,r,o,i;const{column:a,rowId:s,editCellState:l,align:u,colIndex:c,height:f,width:p,className:y,showRightBorder:v,colSpan:b,disableDragEvents:C,isNotVisible:x,onClick:w,onDoubleClick:S,onMouseDown:$,onMouseUp:T,onMouseOver:k,onKeyDown:M,onKeyUp:E,onDragEnter:N,onDragOver:I}=e,A=be(e,u8e),z=Vt(),L=dt(),O=a.field,j=it(z,()=>{try{const ee=z.current.getCellParams(s,O);return ee.api=z.current,ee}catch(K){if(K instanceof Rf)return pb;throw K}},FT),H=it(z,()=>z.current.unstable_applyPipeProcessors("isCellSelected",!1,{id:s,field:O})),{cellMode:B,hasFocus:D,isEditable:W,value:U,formattedValue:Z}=j,Y=a.type==="actions"&&((n=(r=a).getActions)==null?void 0:n.call(r,z.current.getRowParams(s)).some(K=>!K.props.disabled)),se=(B==="view"||!W)&&!Y?j.tabIndex:-1,{classes:Q,getCellClassName:ne}=L,re=z.current.unstable_applyPipeProcessors("cellClassName",[],{id:s,field:O});a.cellClassName&&re.push(typeof a.cellClassName=="function"?a.cellClassName(j):a.cellClassName),ne&&re.push(ne(j));const ge=Z??U,xe=g.useRef(null),fe=rn(t,xe),Se=g.useRef(null),de=(o=L.unstable_cellSelection)!=null?o:!1,ie={align:u,showRightBorder:v,isEditable:W,classes:L.classes,isSelected:H,isSelectionMode:de},Pe=d8e(ie),$e=g.useCallback(K=>ee=>{const pe=z.current.getCellParams(s,O||"");z.current.publishEvent(K,pe,ee),T&&T(ee)},[z,O,T,s]),me=g.useCallback(K=>ee=>{const pe=z.current.getCellParams(s,O||"");z.current.publishEvent(K,pe,ee),$&&$(ee)},[z,O,$,s]),ue=g.useCallback((K,ee)=>pe=>{if(!z.current.getRow(s))return;const ye=z.current.getCellParams(s,O||"");z.current.publishEvent(K,ye,pe),ee&&ee(pe)},[z,O,s]),ce=g.useMemo(()=>x?{padding:0,opacity:0,width:0,border:0}:{minWidth:p,maxWidth:p,minHeight:f,maxHeight:f==="auto"?"none":f},[p,f,x]);if(g.useEffect(()=>{if(!D||B===Mn.Edit)return;const K=Gn(z.current.rootElementRef.current);if(xe.current&&!xe.current.contains(K.activeElement)){const ee=xe.current.querySelector('[tabindex="0"]'),pe=Se.current||ee||xe.current;if(t8e())pe.focus({preventScroll:!0});else{const ye=z.current.getScrollPosition();pe.focus(),z.current.scroll(ye)}}},[D,B,z]),j===pb)return null;let Te=A.onFocus,Le;if(l==null&&a.renderCell&&(Le=a.renderCell(j),re.push(le["cell--withRenderer"]),re.push(Q==null?void 0:Q["cell--withRenderer"])),l!=null&&a.renderEditCell){const K=z.current.getRowWithUpdatedValues(s,a.field),ee=be(l,c8e),pe=P({},j,{row:K},ee);Le=a.renderEditCell(pe),re.push(le["cell--editing"]),re.push(Q==null?void 0:Q["cell--editing"])}if(Le===void 0){const K=ge==null?void 0:ge.toString();Le=m.jsx("div",{className:Pe.content,title:K,role:"presentation",children:K})}g.isValidElement(Le)&&Y&&(Le=g.cloneElement(Le,{focusElementRef:Se}));const Re=C?null:{onDragEnter:ue("cellDragEnter",N),onDragOver:ue("cellDragOver",I)},Oe=(i=L.experimentalFeatures)==null?void 0:i.ariaV7;return m.jsx("div",P({ref:fe,className:Ne(y,re,Pe.root),role:Oe?"gridcell":"cell","data-field":O,"data-colindex":c,"aria-colindex":c+1,"aria-colspan":b,style:ce,tabIndex:se,onClick:ue("cellClick",w),onDoubleClick:ue("cellDoubleClick",S),onMouseOver:ue("cellMouseOver",k),onMouseDown:me("cellMouseDown"),onMouseUp:$e("cellMouseUp"),onKeyDown:ue("cellKeyDown",M),onKeyUp:ue("cellKeyUp",E)},Re,A,{onFocus:Te,children:Le}))}),Tk=pw(h8e),m8e=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","hasFocus","tabIndex"],g8e=e=>{const{classes:t}=e;return Ke({root:["booleanCell"]},Jt,t)};function v8e(e){const{value:t}=e,n=be(e,m8e),r=Vt(),o=dt(),i={classes:o.classes},a=g8e(i),s=g.useMemo(()=>t?o.slots.booleanCellTrueIcon:o.slots.booleanCellFalseIcon,[o.slots.booleanCellFalseIcon,o.slots.booleanCellTrueIcon,t]);return m.jsx(s,P({fontSize:"small",className:a.root,titleAccess:r.current.getLocaleText(t?"booleanCellTrueLabel":"booleanCellFalseLabel"),"data-value":!!t},n))}const y8e=g.memo(v8e),b8e=e=>Ng(e.rowNode)?"":m.jsx(y8e,P({},e)),x8e=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange"],w8e=e=>{const{classes:t}=e;return Ke({root:["editBooleanCell"]},Jt,t)};function C8e(e){var t;const{id:n,value:r,field:o,className:i,hasFocus:a,onValueChange:s}=e,l=be(e,x8e),u=Vt(),c=g.useRef(null),f=ln(),[p,y]=g.useState(r),v=dt(),b={classes:v.classes},C=w8e(b),x=g.useCallback(async w=>{const S=w.target.checked;s&&await s(w,S),y(S),await u.current.setEditCellValue({id:n,field:o,value:S},w)},[u,o,n,s]);return g.useEffect(()=>{y(r)},[r]),dn(()=>{a&&c.current.focus()},[a]),m.jsx("label",P({htmlFor:f,className:Ne(C.root,i)},l,{children:m.jsx(v.slots.baseCheckbox,P({id:f,inputRef:c,checked:!!p,onChange:x,size:"small"},(t=v.slotProps)==null?void 0:t.baseCheckbox))}))}const S8e=e=>m.jsx(C8e,P({},e)),$8e=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","inputProps","isValidating","isProcessingProps","onValueChange"],_8e=ke(cd)({fontSize:"inherit"}),k8e=e=>{const{classes:t}=e;return Ke({root:["editInputCell"]},Jt,t)};function P8e(e){const{id:t,value:n,field:r,colDef:o,hasFocus:i,inputProps:a,onValueChange:s}=e,l=be(e,$8e),u=o.type==="dateTime",c=Vt(),f=g.useRef(),p=g.useMemo(()=>{let M;n==null?M=null:n instanceof Date?M=n:M=new Date((n??"").toString());let E;return M==null||Number.isNaN(M.getTime())?E="":E=new Date(M.getTime()-M.getTimezoneOffset()*60*1e3).toISOString().substr(0,u?16:10),{parsed:M,formatted:E}},[n,u]),[y,v]=g.useState(p),C={classes:dt().classes},x=k8e(C),w=g.useRef(!1),S=g.useCallback(M=>{if(M==="")return null;const[E,N]=M.split("T"),[I,A,z]=E.split("-"),L=new Date;if(L.setFullYear(Number(I),Number(A)-1,Number(z)),L.setHours(0,0,0,0),N){const[O,j]=N.split(":");L.setHours(Number(O),Number(j),0,0)}return L},[]),$=g.useCallback(async M=>{const E=M.target.value,N=S(E);s&&await s(M,N),v({parsed:N,formatted:E}),c.current.setEditCellValue({id:t,field:r,value:N},M)},[c,r,t,s,S]);g.useEffect(()=>{v(M=>{var E,N;return p.parsed!==M.parsed&&((E=p.parsed)==null?void 0:E.getTime())!==((N=M.parsed)==null?void 0:N.getTime())?p:M})},[p]),dn(()=>{i&&f.current.focus()},[i]);const T=c.current.unstable_getEditCellMeta(t,r),k=M=>{if(f.current=M,T!=null&&T.unstable_updateValueOnRender&&!w.current){const E=f.current.value,N=S(E);v({parsed:N,formatted:E}),c.current.setEditCellValue({id:t,field:r,value:N}),w.current=!0}};return m.jsx(_8e,P({inputRef:k,fullWidth:!0,className:x.root,type:u?"datetime-local":"date",inputProps:P({max:u?"9999-12-31T23:59":"9999-12-31"},a),value:y.formatted,onChange:$},l))}const LV=e=>m.jsx(P8e,P({},e)),M8e=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","isValidating","debounceMs","isProcessingProps","onValueChange"],T8e=e=>{const{classes:t}=e;return Ke({root:["editInputCell"]},Jt,t)},I8e=ke(cd,{name:"MuiDataGrid",slot:"EditInputCell",overridesResolver:(e,t)=>t.editInputCell})(({theme:e})=>P({},e.typography.body2,{padding:"1px 0","& input":{padding:"0 16px",height:"100%"}})),E8e=g.forwardRef((e,t)=>{const n=dt(),{id:r,value:o,field:i,colDef:a,hasFocus:s,debounceMs:l=200,isProcessingProps:u,onValueChange:c}=e,f=be(e,M8e),p=Vt(),y=g.useRef(),[v,b]=g.useState(o),C=T8e(n),x=g.useCallback(async S=>{const $=S.target.value;c&&await c(S,$);const T=p.current.getColumn(i);let k=$;T.valueParser&&(k=T.valueParser($,p.current.getCellParams(r,i))),b(k),p.current.setEditCellValue({id:r,field:i,value:k,debounceMs:l,unstable_skipValueParser:!0},S)},[p,l,i,r,c]),w=p.current.unstable_getEditCellMeta(r,i);return g.useEffect(()=>{(w==null?void 0:w.changeReason)!=="debouncedSetEditCellValue"&&b(o)},[w,o]),dn(()=>{s&&y.current.focus()},[s]),m.jsx(I8e,P({ref:t,inputRef:y,className:C.root,ownerState:n,fullWidth:!0,type:a.type==="number"?a.type:"text",value:v??"",onChange:x,endAdornment:u?m.jsx(n.slots.loadIcon,{fontSize:"small",color:"action"}):void 0},f))}),R8e=e=>m.jsx(E8e,P({},e)),hb=e=>e==="Escape",O8e=e=>e==="Enter",hw=e=>e==="Tab",jV=e=>e===" ",A8e=e=>e.indexOf("Arrow")===0,F8e=e=>e==="Home"||e==="End",L8e=e=>e.indexOf("Page")===0;function DV(e){return e.key.length===1&&!e.ctrlKey&&!e.metaKey}const mb=e=>F8e(e)||A8e(e)||L8e(e)||jV(e),j8e=e=>!!e.key,WT=e=>hw(e)||hb(e);function Mc(e){return(e==null?void 0:e.type)==="singleSelect"}function Ik(e,t,n){if(t===void 0)return;const r=t.find(o=>{const i=n(o);return String(i)===String(e)});return n(r)}const D8e=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange","initialOpen","getOptionLabel","getOptionValue"],N8e=["MenuProps"];function z8e(e){return!!e.key}function B8e(e){var t,n,r;const o=dt(),{id:i,value:a,field:s,row:l,colDef:u,hasFocus:c,error:f,onValueChange:p,initialOpen:y=o.editMode===bs.Cell,getOptionLabel:v,getOptionValue:b}=e,C=be(e,D8e),x=Vt(),w=g.useRef(),S=g.useRef(),[$,T]=g.useState(y),M=(n=(((t=o.slotProps)==null?void 0:t.baseSelect)||{}).native)!=null?n:!1,E=((r=o.slotProps)==null?void 0:r.baseSelect)||{},{MenuProps:N}=E,I=be(E,N8e);if(dn(()=>{if(c){var B;(B=S.current)==null||B.focus()}},[c]),!Mc(u))return null;let A;if(typeof(u==null?void 0:u.valueOptions)=="function"?A=u==null?void 0:u.valueOptions({id:i,row:l,field:s}):A=u==null?void 0:u.valueOptions,!A)return null;const z=b||u.getOptionValue,L=v||u.getOptionLabel,O=async B=>{if(!Mc(u)||!A)return;T(!1);const D=B.target,W=Ik(D.value,A,z);p&&await p(B,W),await x.current.setEditCellValue({id:i,field:s,value:W},B)},j=(B,D)=>{if(o.editMode===bs.Row){T(!1);return}if(D==="backdropClick"||hb(B.key)){const W=x.current.getCellParams(i,s);x.current.publishEvent("cellEditStop",P({},W,{reason:hb(B.key)?xa.escapeKeyDown:xa.cellFocusOut}))}},H=B=>{z8e(B)&&B.key==="Enter"||T(!0)};return!A||!u?null:m.jsx(o.slots.baseSelect,P({ref:w,inputRef:S,value:a,onChange:O,open:$,onOpen:H,MenuProps:P({onClose:j},N),error:f,native:M,fullWidth:!0},C,I,{children:A.map(B=>{var D;const W=z(B);return g.createElement(o.slots.baseSelectOption,P({},((D=o.slotProps)==null?void 0:D.baseSelectOption)||{},{native:M,key:W,value:W}),L(B))})}))}const H8e=e=>m.jsx(B8e,P({},e)),W8e=["open","target","onClose","children","position","className","onExited"],V8e=e=>{const{classes:t}=e;return Ke({root:["menu"]},Jt,t)},U8e=ke(ud,{name:"MuiDataGrid",slot:"Menu",overridesResolver:(e,t)=>t.menu})(({theme:e})=>({zIndex:e.zIndex.modal,[`& .${le.menuList}`]:{outline:0}})),G8e={"bottom-start":"top left","bottom-end":"top right"};function mw(e){var t;const{open:n,target:r,onClose:o,children:i,position:a,className:s,onExited:l}=e,u=be(e,W8e),c=Vt(),f=dt(),p=V8e(f),y=g.useRef(null);dn(()=>{if(n)y.current=document.activeElement instanceof HTMLElement?document.activeElement:null;else{var C,x;(C=y.current)==null||(x=C.focus)==null||x.call(C),y.current=null}},[n]),g.useEffect(()=>{const C=n?"menuOpen":"menuClose";c.current.publishEvent(C,{target:r})},[c,n,r]);const v=C=>x=>{C&&C(),l&&l(x)},b=C=>{C.target&&(r===C.target||r!=null&&r.contains(C.target))||o(C)};return m.jsx(U8e,P({as:f.slots.basePopper,className:Ne(s,p.root),ownerState:f,open:n,anchorEl:r,transition:!0,placement:a},u,(t=f.slotProps)==null?void 0:t.basePopper,{children:({TransitionProps:C,placement:x})=>m.jsx(YD,{onClickAway:b,mouseEvent:"onMouseDown",children:m.jsx(Ty,P({},C,{style:{transformOrigin:G8e[x]},onExited:v(C==null?void 0:C.onExited),children:m.jsx(ld,{children:i})}))})}))}const q8e=["api","colDef","id","hasFocus","isEditable","field","value","formattedValue","row","rowNode","cellMode","tabIndex","position","focusElementRef"],K8e=e=>typeof e.getActions=="function";function Y8e(e){var t;const{colDef:n,id:r,hasFocus:o,tabIndex:i,position:a="bottom-end",focusElementRef:s}=e,l=be(e,q8e),[u,c]=g.useState(-1),[f,p]=g.useState(!1),y=Vt(),v=g.useRef(null),b=g.useRef(null),C=g.useRef(!1),x=g.useRef({}),w=Wt(),S=ln(),$=ln(),T=dt();if(!K8e(n))throw new Error("MUI: Missing the `getActions` property in the `GridColDef`.");const k=n.getActions(y.current.getRowParams(r)),M=k.filter(H=>!H.props.showInMenu),E=k.filter(H=>H.props.showInMenu),N=M.length+(E.length?1:0);g.useLayoutEffect(()=>{o||Object.entries(x.current).forEach(([H,B])=>{B==null||B.stop({},()=>{delete x.current[H]})})},[o]),g.useEffect(()=>{if(u<0||!v.current||u>=v.current.children.length)return;v.current.children[u].focus({preventScroll:!0})},[u]),g.useEffect(()=>{o||(c(-1),C.current=!1)},[o]),g.useImperativeHandle(s,()=>({focus(){if(!C.current){const H=k.findIndex(B=>!B.props.disabled);c(H)}}}),[k]),g.useEffect(()=>{u>=N&&c(N-1)},[u,N]);const I=()=>{p(!0),c(N-1),C.current=!0},A=()=>{p(!1)},z=H=>B=>{x.current[H]=B},L=(H,B)=>D=>{c(H),C.current=!0,B&&B(D)},O=H=>{if(N<=1)return;const B=(W,U)=>{var Z;if(W<0||W>k.length)return W;const Y=w.direction==="rtl"?-1:1,se=(U==="left"?-1:1)*Y;return(Z=k[W+se])!=null&&Z.props.disabled?B(W+se,U):W+se};let D=u;H.key==="ArrowRight"?D=B(u,"right"):H.key==="ArrowLeft"&&(D=B(u,"left")),!(D<0||D>=N)&&D!==u&&(H.preventDefault(),H.stopPropagation(),c(D))},j=H=>{H.key==="Tab"&&H.preventDefault(),["Tab","Enter","Escape"].includes(H.key)&&A()};return m.jsxs("div",P({role:"menu",ref:v,tabIndex:-1,className:le.actionsCell,onKeyDown:O},l,{children:[M.map((H,B)=>g.cloneElement(H,{key:B,touchRippleRef:z(B),onClick:L(B,H.props.onClick),tabIndex:u===B?i:-1})),E.length>0&&$&&m.jsx(T.slots.baseIconButton,P({ref:b,id:$,"aria-label":y.current.getLocaleText("actionsCellMore"),"aria-haspopup":"menu","aria-expanded":f,"aria-controls":f?S:void 0,role:"menuitem",size:"small",onClick:I,touchRippleRef:z($),tabIndex:u===M.length?i:-1},(t=T.slotProps)==null?void 0:t.baseIconButton,{children:m.jsx(T.slots.moreActionsIcon,{fontSize:"small"})})),E.length>0&&m.jsx(mw,{open:f,target:b.current,position:a,onClose:A,onClick:A,children:m.jsx(u0,{id:S,className:le.menuList,onKeyDown:j,"aria-labelledby":$,variant:"menu",autoFocusItem:!0,children:E.map((H,B)=>g.cloneElement(H,{key:B}))})})]}))}const X8e=e=>m.jsx(Y8e,P({},e)),Q8e=["field","align","width","contentWidth"],Z8e=e=>{const{align:t,classes:n}=e,r={root:["cell","cellSkeleton",`cell--text${De(t)}`,"withBorderColor"]};return Ke(r,Jt,n)};function J8e(e){const{align:t,width:n,contentWidth:r}=e,o=be(e,Q8e),a={classes:dt().classes,align:t},s=Z8e(a);return m.jsx("div",P({className:s.root,style:{width:n}},o,{children:m.jsx(v0e,{width:`${r}%`})}))}function e9e(e){return e.vars?e.vars.palette.TableCell.border:e.palette.mode==="light"?Ox(Rt(e.palette.divider,1),.88):Rx(Rt(e.palette.divider,1),.68)}const I9={[`.${le.columnSeparator}, .${le["columnSeparator--resizing"]}`]:{visibility:"visible",width:"auto"}},E9={[`& .${le.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${le.menuIcon}`]:{width:"auto",visibility:"visible"}},t9e=ke("div",{name:"MuiDataGrid",slot:"Root",overridesResolver:(e,t)=>[{[`&.${le.autoHeight}`]:t.autoHeight},{[`&.${le.aggregationColumnHeader}`]:t.aggregationColumnHeader},{[`&.${le["aggregationColumnHeader--alignLeft"]}`]:t["aggregationColumnHeader--alignLeft"]},{[`&.${le["aggregationColumnHeader--alignCenter"]}`]:t["aggregationColumnHeader--alignCenter"]},{[`&.${le["aggregationColumnHeader--alignRight"]}`]:t["aggregationColumnHeader--alignRight"]},{[`&.${le.aggregationColumnHeaderLabel}`]:t.aggregationColumnHeaderLabel},{[`&.${le["root--disableUserSelection"]} .${le.cell}`]:t["root--disableUserSelection"]},{[`&.${le.autosizing}`]:t.autosizing},{[`& .${le.editBooleanCell}`]:t.editBooleanCell},{[`& .${le["cell--editing"]}`]:t["cell--editing"]},{[`& .${le["cell--textCenter"]}`]:t["cell--textCenter"]},{[`& .${le["cell--textLeft"]}`]:t["cell--textLeft"]},{[`& .${le["cell--textRight"]}`]:t["cell--textRight"]},{[`& .${le["cell--withRenderer"]}`]:t["cell--withRenderer"]},{[`& .${le.cell}`]:t.cell},{[`& .${le["cell--rangeTop"]}`]:t["cell--rangeTop"]},{[`& .${le["cell--rangeBottom"]}`]:t["cell--rangeBottom"]},{[`& .${le["cell--rangeLeft"]}`]:t["cell--rangeLeft"]},{[`& .${le["cell--rangeRight"]}`]:t["cell--rangeRight"]},{[`& .${le["cell--withRightBorder"]}`]:t["cell--withRightBorder"]},{[`& .${le.cellContent}`]:t.cellContent},{[`& .${le.cellCheckbox}`]:t.cellCheckbox},{[`& .${le.cellSkeleton}`]:t.cellSkeleton},{[`& .${le.checkboxInput}`]:t.checkboxInput},{[`& .${le["columnHeader--alignCenter"]}`]:t["columnHeader--alignCenter"]},{[`& .${le["columnHeader--alignLeft"]}`]:t["columnHeader--alignLeft"]},{[`& .${le["columnHeader--alignRight"]}`]:t["columnHeader--alignRight"]},{[`& .${le["columnHeader--dragging"]}`]:t["columnHeader--dragging"]},{[`& .${le["columnHeader--moving"]}`]:t["columnHeader--moving"]},{[`& .${le["columnHeader--numeric"]}`]:t["columnHeader--numeric"]},{[`& .${le["columnHeader--sortable"]}`]:t["columnHeader--sortable"]},{[`& .${le["columnHeader--sorted"]}`]:t["columnHeader--sorted"]},{[`& .${le["columnHeader--withRightBorder"]}`]:t["columnHeader--withRightBorder"]},{[`& .${le.columnHeader}`]:t.columnHeader},{[`& .${le.headerFilterRow}`]:t.headerFilterRow},{[`& .${le.columnHeaderCheckbox}`]:t.columnHeaderCheckbox},{[`& .${le.columnHeaderDraggableContainer}`]:t.columnHeaderDraggableContainer},{[`& .${le.columnHeaderTitleContainer}`]:t.columnHeaderTitleContainer},{[`& .${le["columnSeparator--resizable"]}`]:t["columnSeparator--resizable"]},{[`& .${le["columnSeparator--resizing"]}`]:t["columnSeparator--resizing"]},{[`& .${le.columnSeparator}`]:t.columnSeparator},{[`& .${le.filterIcon}`]:t.filterIcon},{[`& .${le.iconSeparator}`]:t.iconSeparator},{[`& .${le.menuIcon}`]:t.menuIcon},{[`& .${le.menuIconButton}`]:t.menuIconButton},{[`& .${le.menuOpen}`]:t.menuOpen},{[`& .${le.menuList}`]:t.menuList},{[`& .${le["row--editable"]}`]:t["row--editable"]},{[`& .${le["row--editing"]}`]:t["row--editing"]},{[`& .${le["row--dragging"]}`]:t["row--dragging"]},{[`& .${le.row}`]:t.row},{[`& .${le.rowReorderCellPlaceholder}`]:t.rowReorderCellPlaceholder},{[`& .${le.rowReorderCell}`]:t.rowReorderCell},{[`& .${le["rowReorderCell--draggable"]}`]:t["rowReorderCell--draggable"]},{[`& .${le.sortIcon}`]:t.sortIcon},{[`& .${le.withBorderColor}`]:t.withBorderColor},{[`& .${le.treeDataGroupingCell}`]:t.treeDataGroupingCell},{[`& .${le.treeDataGroupingCellToggle}`]:t.treeDataGroupingCellToggle},{[`& .${le.detailPanelToggleCell}`]:t.detailPanelToggleCell},{[`& .${le["detailPanelToggleCell--expanded"]}`]:t["detailPanelToggleCell--expanded"]},t.root]})(({theme:e})=>{const t=e9e(e),n=e.shape.borderRadius;return P({"--unstable_DataGrid-radius":typeof n=="number"?`${n}px`:n,"--unstable_DataGrid-headWeight":e.typography.fontWeightMedium,"--unstable_DataGrid-overlayBackground":e.vars?`rgba(${e.vars.palette.background.defaultChannel} / ${e.vars.palette.action.disabledOpacity})`:Rt(e.palette.background.default,e.palette.action.disabledOpacity),"--DataGrid-cellOffsetMultiplier":2,flex:1,boxSizing:"border-box",position:"relative",borderWidth:"1px",borderStyle:"solid",borderColor:t,borderRadius:"var(--unstable_DataGrid-radius)",color:(e.vars||e).palette.text.primary},e.typography.body2,{outline:"none",height:"100%",display:"flex",minWidth:0,minHeight:0,flexDirection:"column",overflowAnchor:"none",[`&.${le.autoHeight}`]:{height:"auto",[`& .${le["row--lastVisible"]} .${le.cell}`]:{borderBottomColor:"transparent"}},[`&.${le.autosizing}`]:{[`& .${le.columnHeaderTitleContainerContent} > *`]:{overflow:"visible !important"},[`& .${le.cell} > *`]:{overflow:"visible !important",whiteSpace:"nowrap"}},[`& .${le["virtualScrollerContent--overflowed"]} .${le["row--lastVisible"]} .${le.cell}`]:{borderBottomColor:"transparent"},[`& .${le.columnHeader}, & .${le.cell}`]:{WebkitTapHighlightColor:"transparent",lineHeight:null,padding:"0 10px",boxSizing:"border-box"},[`& .${le.columnHeader}:focus-within, & .${le.cell}:focus-within`]:{outline:`solid ${e.vars?`rgba(${e.vars.palette.primary.mainChannel} / 0.5)`:Rt(e.palette.primary.main,.5)} 1px`,outlineWidth:1,outlineOffset:-1},[`& .${le.columnHeader}:focus, & .${le.cell}:focus`]:{outline:`solid ${e.palette.primary.main} 1px`},[`& .${le.columnHeaderCheckbox}, & .${le.cellCheckbox}`]:{padding:0,justifyContent:"center",alignItems:"center"},[`& .${le.columnHeader}`]:{position:"relative",display:"flex",alignItems:"center"},[`& .${le["columnHeader--sorted"]} .${le.iconButtonContainer}, & .${le["columnHeader--filtered"]} .${le.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${le.columnHeader}:not(.${le["columnHeader--sorted"]}) .${le.sortIcon}`]:{opacity:0,transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.shorter})},[`& .${le.columnHeaderTitleContainer}`]:{display:"flex",alignItems:"center",minWidth:0,flex:1,whiteSpace:"nowrap",overflow:"hidden",position:"relative"},[`& .${le.columnHeaderTitleContainerContent}`]:{overflow:"hidden",display:"flex",alignItems:"center"},[`& .${le["columnHeader--filledGroup"]} .${le.columnHeaderTitleContainer}`]:{borderBottomWidth:"1px",borderBottomStyle:"solid",boxSizing:"border-box"},[`& .${le["columnHeader--filledGroup"]}.${le["columnHeader--showColumnBorder"]} .${le.columnHeaderTitleContainer}`]:{borderBottom:"none"},[`& .${le["columnHeader--filledGroup"]}.${le["columnHeader--showColumnBorder"]}`]:{borderBottomWidth:"1px",borderBottomStyle:"solid",boxSizing:"border-box"},[`& .${le.headerFilterRow}`]:{borderTop:`1px solid ${t}`},[`& .${le.sortIcon}, & .${le.filterIcon}`]:{fontSize:"inherit"},[`& .${le["columnHeader--sortable"]}`]:{cursor:"pointer"},[`& .${le["columnHeader--alignCenter"]} .${le.columnHeaderTitleContainer}`]:{justifyContent:"center"},[`& .${le["columnHeader--alignRight"]} .${le.columnHeaderDraggableContainer}, & .${le["columnHeader--alignRight"]} .${le.columnHeaderTitleContainer}`]:{flexDirection:"row-reverse"},[`& .${le["columnHeader--alignCenter"]} .${le.menuIcon}, & .${le["columnHeader--alignRight"]} .${le.menuIcon}`]:{marginRight:"auto",marginLeft:-6},[`& .${le["columnHeader--alignRight"]} .${le.menuIcon}, & .${le["columnHeader--alignRight"]} .${le.menuIcon}`]:{marginRight:"auto",marginLeft:-10},[`& .${le["columnHeader--moving"]}`]:{backgroundColor:(e.vars||e).palette.action.hover},[`& .${le.columnSeparator}`]:{visibility:"hidden",position:"absolute",zIndex:100,display:"flex",flexDirection:"column",justifyContent:"center",color:t},"@media (hover: hover)":{[`& .${le.columnHeaders}:hover`]:I9,[`& .${le.columnHeader}:hover`]:E9,[`& .${le.columnHeader}:not(.${le["columnHeader--sorted"]}):hover .${le.sortIcon}`]:{opacity:.5}},"@media (hover: none)":{[`& .${le.columnHeaders}`]:I9,[`& .${le.columnHeader}`]:E9},[`& .${le["columnSeparator--sideLeft"]}`]:{left:-12},[`& .${le["columnSeparator--sideRight"]}`]:{right:-12},[`& .${le["columnSeparator--resizable"]}`]:{cursor:"col-resize",touchAction:"none","&:hover":{color:(e.vars||e).palette.text.primary,"@media (hover: none)":{color:t}},[`&.${le["columnSeparator--resizing"]}`]:{color:(e.vars||e).palette.text.primary},"& svg":{pointerEvents:"none"}},[`& .${le.iconSeparator}`]:{color:"inherit"},[`& .${le.menuIcon}`]:{width:0,visibility:"hidden",fontSize:20,marginRight:-10,display:"flex",alignItems:"center"},[`.${le.menuOpen}`]:{visibility:"visible",width:"auto"},[`& .${le.row}`]:{display:"flex",width:"fit-content",breakInside:"avoid","&:hover, &.Mui-hovered":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},"&.Mui-selected":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Rt(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover, &.Mui-hovered":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc( + ${e.vars.palette.action.selectedOpacity} + + ${e.vars.palette.action.hoverOpacity} + ))`:Rt(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})`:Rt(e.palette.primary.main,e.palette.action.selectedOpacity)}}}},[`& .${le.cell}`]:{display:"flex",alignItems:"center",borderBottom:"1px solid","&.Mui-selected":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Rt(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover, &.Mui-hovered":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity+e.palette.action.hoverOpacity})`:Rt(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})`:Rt(e.palette.primary.main,e.palette.action.selectedOpacity)}}}},[`&.${le["root--disableUserSelection"]} .${le.cell}`]:{userSelect:"none"},[`& .${le.row}:not(.${le["row--dynamicHeight"]}) > .${le.cell}`]:{overflow:"hidden",whiteSpace:"nowrap"},[`& .${le.cellContent}`]:{overflow:"hidden",textOverflow:"ellipsis"},[`& .${le.cell}.${le["cell--selectionMode"]}`]:{cursor:"default"},[`& .${le.cell}.${le["cell--editing"]}`]:{padding:1,display:"flex",boxShadow:e.shadows[2],backgroundColor:(e.vars||e).palette.background.paper,"&:focus-within":{outline:`solid ${(e.vars||e).palette.primary.main} 1px`,outlineOffset:"-1px"}},[`& .${le["row--editing"]}`]:{boxShadow:e.shadows[2]},[`& .${le["row--editing"]} .${le.cell}`]:{boxShadow:e.shadows[0],backgroundColor:(e.vars||e).palette.background.paper},[`& .${le.editBooleanCell}`]:{display:"flex",height:"100%",width:"100%",alignItems:"center",justifyContent:"center"},[`& .${le.booleanCell}[data-value="true"]`]:{color:(e.vars||e).palette.text.secondary},[`& .${le.booleanCell}[data-value="false"]`]:{color:(e.vars||e).palette.text.disabled},[`& .${le.actionsCell}`]:{display:"inline-flex",alignItems:"center",gridGap:e.spacing(1)},[`& .${le.rowReorderCell}`]:{display:"inline-flex",flex:1,alignItems:"center",justifyContent:"center",opacity:(e.vars||e).palette.action.disabledOpacity},[`& .${le["rowReorderCell--draggable"]}`]:{cursor:"move",opacity:1},[`& .${le.rowReorderCellContainer}`]:{padding:0,alignItems:"stretch"},[`.${le.withBorderColor}`]:{borderColor:t},[`& .${le["cell--withRightBorder"]}`]:{borderRightWidth:"1px",borderRightStyle:"solid"},[`& .${le["columnHeader--withRightBorder"]}`]:{borderRightWidth:"1px",borderRightStyle:"solid"},[`& .${le["cell--textLeft"]}`]:{justifyContent:"flex-start"},[`& .${le["cell--textRight"]}`]:{justifyContent:"flex-end"},[`& .${le["cell--textCenter"]}`]:{justifyContent:"center"},[`& .${le.columnHeaderDraggableContainer}`]:{display:"flex",width:"100%",height:"100%"},[`& .${le.rowReorderCellPlaceholder}`]:{display:"none"},[`& .${le["columnHeader--dragging"]}, & .${le["row--dragging"]}`]:{background:(e.vars||e).palette.background.paper,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:(e.vars||e).palette.action.disabledOpacity},[`& .${le["row--dragging"]}`]:{background:(e.vars||e).palette.background.paper,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:(e.vars||e).palette.action.disabledOpacity,[`& .${le.rowReorderCellPlaceholder}`]:{display:"flex"}},[`& .${le.treeDataGroupingCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${le.treeDataGroupingCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:e.spacing(2)},[`& .${le.groupingCriteriaCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${le.groupingCriteriaCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:e.spacing(2)}})}),n9e=["children","className"],r9e=e=>{const{autoHeight:t,density:n,classes:r}=e,o={root:["root",t&&"autoHeight",`root--density${De(n)}`,"withBorderColor"]};return Ke(o,Jt,r)},o9e=g.forwardRef(function(t,n){var r;const o=dt(),{children:i,className:a}=t,s=be(t,n9e),l=Iu(),u=it(l,TV),c=g.useRef(null),f=rn(c,n),p=(r=o.experimentalFeatures)!=null&&r.ariaV7?null:CV,y=typeof p=="function"?p():null,v=P({},o,{density:u}),b=r9e(v);l.current.register("public",{rootElementRef:c});const[C,x]=g.useState(!1);return dn(()=>{x(!0)},[]),C?m.jsx(t9e,P({ref:f,className:Ne(a,b.root),ownerState:v},y,s,{children:i})):null}),i9e=["className"],a9e=e=>{const{classes:t}=e;return Ke({root:["footerContainer","withBorderColor"]},Jt,t)},s9e=Lr("div",{name:"MuiDataGrid",slot:"FooterContainer",overridesResolver:(e,t)=>t.footerContainer})({display:"flex",justifyContent:"space-between",alignItems:"center",minHeight:52,borderTop:"1px solid"}),l9e=g.forwardRef(function(t,n){const{className:r}=t,o=be(t,i9e),i=dt(),a=a9e(i);return m.jsx(s9e,P({ref:n,className:Ne(a.root,r),ownerState:i},o))}),u9e=["className"],c9e=e=>{const{classes:t}=e;return Ke({root:["overlay"]},Jt,t)},d9e=Lr("div",{name:"MuiDataGrid",slot:"Overlay",overridesResolver:(e,t)=>t.overlay})({width:"100%",height:"100%",display:"flex",alignSelf:"center",alignItems:"center",justifyContent:"center",backgroundColor:"var(--unstable_DataGrid-overlayBackground)"}),VT=g.forwardRef(function(t,n){const{className:r}=t,o=be(t,u9e),i=dt(),a=c9e(i);return m.jsx(d9e,P({ref:n,className:Ne(a.root,r),ownerState:i},o))}),f9e=["className","children"],p9e=e=>{const{classes:t}=e;return Ke({root:["toolbarContainer"]},Jt,t)},h9e=Lr("div",{name:"MuiDataGrid",slot:"ToolbarContainer",overridesResolver:(e,t)=>t.toolbarContainer})(({theme:e})=>({display:"flex",alignItems:"center",flexWrap:"wrap",gap:e.spacing(1),padding:e.spacing(.5,.5,0)})),m9e=g.forwardRef(function(t,n){const{className:r,children:o}=t,i=be(t,f9e),a=dt(),s=p9e(a);return o?m.jsx(h9e,P({ref:n,className:Ne(r,s.root),ownerState:a},i,{children:o})):null}),g9e=["className"],v9e=e=>{const{classes:t}=e;return Ke({root:["iconButtonContainer"]},Jt,t)},y9e=Lr("div",{name:"MuiDataGrid",slot:"IconButtonContainer",overridesResolver:(e,t)=>t.iconButtonContainer})(()=>({display:"flex",visibility:"hidden",width:0})),NV=g.forwardRef(function(t,n){const{className:r}=t,o=be(t,g9e),i=dt(),a=v9e(i);return m.jsx(y9e,P({ref:n,className:Ne(a.root,r),ownerState:i},o))}),b9e=e=>{const{classes:t}=e;return Ke({icon:["sortIcon"]},Jt,t)};function x9e(e,t,n,r){let o;const i={};return t==="asc"?o=e.columnSortedAscendingIcon:t==="desc"?o=e.columnSortedDescendingIcon:(o=e.columnUnsortedIcon,i.sortingOrder=r),o?m.jsx(o,P({fontSize:"small",className:n},i)):null}function w9e(e){var t;const{direction:n,index:r,sortingOrder:o}=e,i=Vt(),a=dt(),s=P({},e,{classes:a.classes}),l=b9e(s),u=x9e(a.slots,n,l.icon,o);if(!u)return null;const c=m.jsx(a.slots.baseIconButton,P({tabIndex:-1,"aria-label":i.current.getLocaleText("columnHeaderSortIconLabel"),title:i.current.getLocaleText("columnHeaderSortIconLabel"),size:"small"},(t=a.slotProps)==null?void 0:t.baseIconButton,{children:u}));return m.jsxs(NV,{children:[r!=null&&m.jsx(fl,{badgeContent:r,color:"default",children:c}),r==null&&c]})}const C9e=g.memo(w9e),S9e=e=>{const{classes:t,open:n}=e;return Ke({root:["menuIcon",n&&"menuOpen"],button:["menuIconButton"]},Jt,t)},$9e=g.memo(e=>{var t,n;const{colDef:r,open:o,columnMenuId:i,columnMenuButtonId:a,iconButtonRef:s}=e,l=Vt(),u=dt(),c=P({},e,{classes:u.classes}),f=S9e(c),p=g.useCallback(y=>{y.preventDefault(),y.stopPropagation(),l.current.toggleColumnMenu(r.field)},[l,r.field]);return m.jsx("div",{className:f.root,children:m.jsx(u.slots.baseTooltip,P({title:l.current.getLocaleText("columnMenuLabel"),enterDelay:1e3},(t=u.slotProps)==null?void 0:t.baseTooltip,{children:m.jsx(u.slots.baseIconButton,P({ref:s,tabIndex:-1,className:f.button,"aria-label":l.current.getLocaleText("columnMenuLabel"),size:"small",onClick:p,"aria-haspopup":"menu","aria-expanded":o,"aria-controls":o?i:void 0,id:a},(n=u.slotProps)==null?void 0:n.baseIconButton,{children:m.jsx(u.slots.columnMenuIcon,{fontSize:"small"})}))}))})});function _9e({columnMenuId:e,columnMenuButtonId:t,ContentComponent:n,contentComponentProps:r,field:o,open:i,target:a,onExited:s}){const l=Vt(),u=l.current.getColumn(o),c=Dn(f=>{f&&(f.stopPropagation(),a!=null&&a.contains(f.target))||l.current.hideColumnMenu()});return!a||!u?null:m.jsx(mw,{placement:`bottom-${u.align==="right"?"start":"end"}`,open:i,target:a,onClose:c,onExited:s,children:m.jsx(n,P({colDef:u,hideMenu:c,open:i,id:e,labelledby:t},r))})}const k9e=["className"],P9e=e=>{const{classes:t}=e;return Ke({root:["columnHeaderTitle"]},Jt,t)},M9e=Lr("div",{name:"MuiDataGrid",slot:"ColumnHeaderTitle",overridesResolver:(e,t)=>t.columnHeaderTitle})({textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",fontWeight:"var(--unstable_DataGrid-headWeight)"}),T9e=g.forwardRef(function(t,n){const{className:r}=t,o=be(t,k9e),i=dt(),a=P9e(i);return m.jsx(M9e,P({ref:n,className:Ne(a.root,r),ownerState:i},o))});function I9e(e){var t;const{label:n,description:r}=e,o=dt(),i=g.useRef(null),[a,s]=g.useState(""),l=g.useCallback(()=>{if(!r&&i!=null&&i.current){const u=n8e(i.current);s(u?n:"")}},[r,n]);return m.jsx(o.slots.baseTooltip,P({title:r||a},(t=o.slotProps)==null?void 0:t.baseTooltip,{children:m.jsx(T9e,{onMouseOver:l,ref:i,children:n})}))}const E9e=["resizable","resizing","height","side"];var zV=function(e){return e.Left="left",e.Right="right",e}(zV||{});const R9e=e=>{const{resizable:t,resizing:n,classes:r,side:o}=e,i={root:["columnSeparator",t&&"columnSeparator--resizable",n&&"columnSeparator--resizing",o&&`columnSeparator--side${De(o)}`],icon:["iconSeparator"]};return Ke(i,Jt,r)};function O9e(e){const{height:t,side:n=zV.Right}=e,r=be(e,E9e),o=dt(),i=P({},e,{side:n,classes:o.classes}),a=R9e(i),s=g.useCallback(l=>{l.preventDefault(),l.stopPropagation()},[]);return m.jsx("div",P({className:a.root,style:{minHeight:t,opacity:o.showColumnVerticalBorder?0:1}},r,{onClick:s,children:m.jsx(o.slots.columnResizeIcon,{className:a.icon})}))}const A9e=g.memo(O9e),F9e=["classes","columnMenuOpen","colIndex","height","isResizing","sortDirection","hasFocus","tabIndex","separatorSide","isDraggable","headerComponent","description","elementId","width","columnMenuIconButton","columnMenu","columnTitleIconButtons","headerClassName","label","resizable","draggableContainerProps","columnHeaderSeparatorProps"],BV=g.forwardRef(function(t,n){const{classes:r,columnMenuOpen:o,colIndex:i,height:a,isResizing:s,sortDirection:l,hasFocus:u,tabIndex:c,separatorSide:f,isDraggable:p,headerComponent:y,description:v,width:b,columnMenuIconButton:C=null,columnMenu:x=null,columnTitleIconButtons:w=null,headerClassName:S,label:$,resizable:T,draggableContainerProps:k,columnHeaderSeparatorProps:M}=t,E=be(t,F9e),N=Iu(),I=dt(),A=g.useRef(null),[z,L]=g.useState(o),O=rn(A,n);let j="none";return l!=null&&(j=l==="asc"?"ascending":"descending"),g.useEffect(()=>{z||L(o)},[z,o]),g.useLayoutEffect(()=>{const H=N.current.state.columnMenu;if(u&&!H.open){const D=A.current.querySelector('[tabindex="0"]')||A.current;D==null||D.focus(),N.current.columnHeadersContainerElementRef.current.scrollLeft=0}},[N,u]),m.jsxs("div",P({ref:O,className:Ne(r.root,S),style:{height:a,width:b,minWidth:b,maxWidth:b},role:"columnheader",tabIndex:c,"aria-colindex":i+1,"aria-sort":j,"aria-label":y==null?$:void 0},E,{children:[m.jsxs("div",P({className:r.draggableContainer,draggable:p,role:"presentation"},k,{children:[m.jsxs("div",{className:r.titleContainer,role:"presentation",children:[m.jsx("div",{className:r.titleContainerContent,children:y!==void 0?y:m.jsx(I9e,{label:$,description:v,columnWidth:b})}),w]}),C]})),m.jsx(A9e,P({resizable:!I.disableColumnResize&&!!T,resizing:s,height:a,side:f},M)),x]}))}),L9e=e=>{const{colDef:t,classes:n,isDragging:r,sortDirection:o,showRightBorder:i,filterItemsCounter:a}=e,s=o!=null,l=a!=null&&a>0,u=t.type==="number",c={root:["columnHeader",t.headerAlign==="left"&&"columnHeader--alignLeft",t.headerAlign==="center"&&"columnHeader--alignCenter",t.headerAlign==="right"&&"columnHeader--alignRight",t.sortable&&"columnHeader--sortable",r&&"columnHeader--moving",s&&"columnHeader--sorted",l&&"columnHeader--filtered",u&&"columnHeader--numeric","withBorderColor",i&&"columnHeader--withRightBorder"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer"],titleContainerContent:["columnHeaderTitleContainerContent"]};return Ke(c,Jt,n)};function j9e(e){var t,n,r,o;const{colDef:i,columnMenuOpen:a,colIndex:s,headerHeight:l,isResizing:u,sortDirection:c,sortIndex:f,filterItemsCounter:p,hasFocus:y,tabIndex:v,disableReorder:b,separatorSide:C}=e,x=Iu(),w=dt(),S=g.useRef(null),$=ln(),T=ln(),k=g.useRef(null),[M,E]=g.useState(a),N=g.useMemo(()=>!w.disableColumnReorder&&!b&&!i.disableReorder,[w.disableColumnReorder,b,i.disableReorder]);let I;i.renderHeader&&(I=i.renderHeader(x.current.getColumnHeaderParams(i.field)));const A=P({},e,{classes:w.classes,showRightBorder:w.showColumnVerticalBorder}),z=L9e(A),L=g.useCallback(Q=>ne=>{ne.currentTarget.contains(ne.target)&&x.current.publishEvent(Q,x.current.getColumnHeaderParams(i.field),ne)},[x,i.field]),O=g.useMemo(()=>({onClick:L("columnHeaderClick"),onDoubleClick:L("columnHeaderDoubleClick"),onMouseOver:L("columnHeaderOver"),onMouseOut:L("columnHeaderOut"),onMouseEnter:L("columnHeaderEnter"),onMouseLeave:L("columnHeaderLeave"),onKeyDown:L("columnHeaderKeyDown"),onFocus:L("columnHeaderFocus"),onBlur:L("columnHeaderBlur")}),[L]),j=g.useMemo(()=>N?{onDragStart:L("columnHeaderDragStart"),onDragEnter:L("columnHeaderDragEnter"),onDragOver:L("columnHeaderDragOver"),onDragEnd:L("columnHeaderDragEnd")}:{},[N,L]),H=g.useMemo(()=>({onMouseDown:L("columnSeparatorMouseDown"),onDoubleClick:L("columnSeparatorDoubleClick")}),[L]);g.useEffect(()=>{M||E(a)},[M,a]);const B=g.useCallback(()=>{E(!1)},[]),D=!w.disableColumnMenu&&!i.disableColumnMenu&&m.jsx($9e,{colDef:i,columnMenuId:$,columnMenuButtonId:T,open:M,iconButtonRef:k}),W=m.jsx(_9e,{columnMenuId:$,columnMenuButtonId:T,field:i.field,open:a,target:k.current,ContentComponent:w.slots.columnMenu,contentComponentProps:(t=w.slotProps)==null?void 0:t.columnMenu,onExited:B}),U=(n=i.sortingOrder)!=null?n:w.sortingOrder,Z=m.jsxs(g.Fragment,{children:[!w.disableColumnFilter&&m.jsx(w.slots.columnHeaderFilterIconButton,P({field:i.field,counter:p},(r=w.slotProps)==null?void 0:r.columnHeaderFilterIconButton)),i.sortable&&!i.hideSortIcons&&m.jsx(C9e,{direction:c,index:f,sortingOrder:U})]});g.useLayoutEffect(()=>{const Q=x.current.state.columnMenu;if(y&&!Q.open){const re=S.current.querySelector('[tabindex="0"]')||S.current;re==null||re.focus(),x.current.columnHeadersContainerElementRef.current.scrollLeft=0}},[x,y]);const Y=typeof i.headerClassName=="function"?i.headerClassName({field:i.field,colDef:i}):i.headerClassName,se=(o=i.headerName)!=null?o:i.field;return m.jsx(BV,P({ref:S,classes:z,columnMenuOpen:a,colIndex:s,height:l,isResizing:u,sortDirection:c,hasFocus:y,tabIndex:v,separatorSide:C,isDraggable:N,headerComponent:I,description:i.description,elementId:i.field,width:i.computedWidth,columnMenuIconButton:D,columnTitleIconButtons:Z,headerClassName:Y,label:se,resizable:!w.disableColumnResize&&!!i.resizable,"data-field":i.field,columnMenu:W,draggableContainerProps:j,columnHeaderSeparatorProps:H},O))}const zg=()=>({items:[],logicOperator:Bo.And,quickFilterValues:[],quickFilterLogicOperator:Bo.And}),R9=1e3;class D9e{constructor(t=R9){this.timeouts=new Map,this.cleanupTimeout=R9,this.cleanupTimeout=t}register(t,n,r){this.timeouts||(this.timeouts=new Map);const o=setTimeout(()=>{typeof n=="function"&&n(),this.timeouts.delete(r.cleanupToken)},this.cleanupTimeout);this.timeouts.set(r.cleanupToken,o)}unregister(t){const n=this.timeouts.get(t.cleanupToken);n&&(this.timeouts.delete(t.cleanupToken),clearTimeout(n))}reset(){this.timeouts&&(this.timeouts.forEach((t,n)=>{this.unregister({cleanupToken:n})}),this.timeouts=void 0)}}class N9e{constructor(){this.registry=new FinalizationRegistry(t=>{typeof t=="function"&&t()})}register(t,n,r){this.registry.register(t,n,r)}unregister(t){this.registry.unregister(t)}reset(){}}var hs=function(e){return e.DataGrid="DataGrid",e.DataGridPro="DataGridPro",e}(hs||{});class z9e{}function B9e(e){let t=0;return function(r,o,i,a){e.registry===null&&(e.registry=typeof FinalizationRegistry<"u"?new N9e:new D9e);const[s]=g.useState(new z9e),l=g.useRef(null),u=g.useRef();u.current=i;const c=g.useRef(null);if(!l.current&&u.current){const f=(p,y,v)=>{if(!y.defaultMuiPrevented){var b;(b=u.current)==null||b.call(u,p,y,v)}};l.current=r.current.subscribeEvent(o,f,a),t+=1,c.current={cleanupToken:t},e.registry.register(s,()=>{var p;(p=l.current)==null||p.call(l),l.current=null,c.current=null},c.current)}else!u.current&&l.current&&(l.current(),l.current=null,c.current&&(e.registry.unregister(c.current),c.current=null));g.useEffect(()=>{if(!l.current&&u.current){const f=(p,y,v)=>{if(!y.defaultMuiPrevented){var b;(b=u.current)==null||b.call(u,p,y,v)}};l.current=r.current.subscribeEvent(o,f,a)}return c.current&&e.registry&&(e.registry.unregister(c.current),c.current=null),()=>{var f;(f=l.current)==null||f.call(l),l.current=null}},[r,o,a])}}const H9e={registry:null},bt=B9e(H9e),W9e={isFirst:!0};function Yn(e,t,n){bt(e,t,n,W9e)}function vo(e,t){const n=g.useRef(null);if(n.current)return n.current;const r=e.current.getLogger(t);return n.current=r,r}function V9e(e){return typeof e=="number"&&!Number.isNaN(e)}function HV(e){return typeof e=="function"}function UT(e){return typeof e=="object"&&e!==null}function U9e(){try{const e="__some_random_key_you_are_not_going_to_use__";return window.localStorage.setItem(e,e),window.localStorage.removeItem(e),!0}catch{return!1}}function V1(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}const Ep=(e,t,n)=>Math.max(t,Math.min(n,e));function il(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)){const o=e.length;if(o!==t.length)return!1;for(let i=0;i{let t=e+=1831565813;return t=Math.imul(t^t>>>15,t|1),t^=t+Math.imul(t^t>>>7,t|61),((t^t>>>14)>>>0)/4294967296}}function q9e(e,t,n){const r=G9e(e);return()=>t+(n-t)*r()}function WV(e){return typeof structuredClone=="function"?structuredClone(e):JSON.parse(JSON.stringify(e))}const K9e=(e,t,n,r,o)=>{const i=vo(e,"useNativeEventListener"),[a,s]=g.useState(!1),l=g.useRef(r),u=g.useCallback(c=>l.current&&l.current(c),[]);g.useEffect(()=>{l.current=r},[r]),g.useEffect(()=>{let c;if(HV(t)?c=t():c=t&&t.current?t.current:null,c&&n&&!a){i.debug(`Binding native ${n} event`),c.addEventListener(n,u,o);const f=c;s(!0);const p=()=>{i.debug(`Clearing native ${n} event`),f.removeEventListener(n,u,o)};e.current.subscribeEvent("unmount",p)}},[t,u,n,a,i,o,e])},M0=e=>{const t=g.useRef(!0);t.current&&(t.current=!1,e())},Y9e=100,X9e=e=>e?0:100,VV=(e,t)=>t>0&&e>0?Math.ceil(e/t):0;Ps(["MUI: the 'rowCount' prop is undefined while using paginationMode='server'","For more detail, see http://mui.com/components/data-grid/pagination/#basic-implementation"],"error");const UV=e=>({page:0,pageSize:e?0:100}),Q9e=(e,t=0)=>t===0?e:Math.max(Math.min(e,t-1),0),GV=(e,t)=>{if(t===hs.DataGrid&&e>Y9e)throw new Error(["MUI: `pageSize` cannot exceed 100 in the MIT version of the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join(` +`))},qV=e=>e.pagination,Wi=Ut(qV,e=>e.paginationModel),Z9e=Ut(Wi,e=>e.page),J9e=Ut(Wi,e=>e.pageSize);Ut(Wi,cw,(e,t)=>VV(t,e.pageSize));const GT=Jn(Wi,_a,uw,Eu,_V,(e,t,n,r,o)=>{const i=o.length,a=Math.min(e.pageSize*e.page,i-1),s=Math.min(a+e.pageSize-1,i-1);if(a===-1||s===-1)return null;if(n<2)return{firstRowIndex:a,lastRowIndex:s};const l=o[a],u=s-a+1,c=r.findIndex(v=>v.id===l.id);let f=c,p=0;for(;f0)&&(f+=1),b===0&&(p+=1))}return{firstRowIndex:c,lastRowIndex:f-1}}),eFe=Jn(Eu,GT,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),KV=Jn(Lm,GT,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),td=e=>e.preferencePanel;var Aa=function(e){return e.filters="filters",e.columns="columns",e}(Aa||{});const Bg=e=>e.rowsMeta,Bi=e=>e.rowSelection,tFe=Ut(Bi,e=>e.length),nFe=Jn(Bi,Ql,(e,t)=>new Map(e.map(n=>[n,t[n]]))),gb=Jn(Bi,e=>e.reduce((t,n)=>(t[n]=n,t),{})),rFe=Ps(["MUI: The `sortModel` can only contain a single item when the `disableMultipleColumnsSorting` prop is set to `true`.","If you are using the community version of the `DataGrid`, this prop is always `true`."],"error"),YV=(e,t)=>t&&e.length>1?(rFe(),[e[0]]):e,O9=(e,t)=>n=>P({},n,{sorting:P({},n.sorting,{sortModel:YV(e,t)})}),oFe=e=>e==="desc",iFe=(e,t)=>{const n=t.current.getColumn(e.field);if(!n)return null;const r=oFe(e.sort)?(...i)=>-1*n.sortComparator(...i):n.sortComparator;return{getSortCellParams:i=>({id:i,field:n.field,rowNode:t.current.getRowNode(i),value:t.current.getCellValue(i,n.field),api:t.current}),comparator:r}},aFe=(e,t,n)=>e.reduce((r,o,i)=>{if(r!==0)return r;const a=t.params[i],s=n.params[i];return r=o.comparator(a.value,s.value,a,s),r},0),sFe=(e,t)=>{const n=e.map(r=>iFe(r,t)).filter(r=>!!r);return n.length===0?null:r=>r.map(o=>({node:o,params:n.map(i=>i.getSortCellParams(o.id))})).sort((o,i)=>aFe(n,o,i)).map(o=>o.node.id)},A9=(e,t)=>{const n=e.indexOf(t);return!t||n===-1||n+1===e.length?e[0]:e[n+1]},qT=(e,t)=>e==null&&t!=null?-1:t==null&&e!=null?1:e==null&&t==null?0:null,lFe=new Intl.Collator,uFe=(e,t)=>{const n=qT(e,t);return n!==null?n:typeof e=="string"?lFe.compare(e.toString(),t.toString()):e-t},XV=(e,t)=>{const n=qT(e,t);return n!==null?n:Number(e)-Number(t)},QV=(e,t)=>{const n=qT(e,t);return n!==null?n:e>t?1:ee.headerFiltering,cFe=Ut(ZV,e=>e.editing),dFe=Ut(ZV,e=>e.menuOpen),fFe=(e,t)=>{const n={enabled:!t.disableVirtualization,enabledForColumns:!0};return P({},e,{virtualization:n})};function pFe(e,t){const n=i=>{e.current.setState(a=>P({},a,{virtualization:P({},a.virtualization,{enabled:i})}))};Xt(e,{unstable_setVirtualization:n,unstable_setColumnVirtualization:i=>{e.current.setState(a=>P({},a,{virtualization:P({},a.virtualization,{enabledForColumns:i})}))}},"public"),g.useEffect(()=>{n(!t.disableVirtualization)},[t.disableVirtualization])}const JV=e=>e.virtualization,hFe=Ut(JV,e=>e.enabled),eU=Ut(JV,e=>e.enabledForColumns),mFe=e=>{const{classes:t}=e;return Ke({icon:["filterIcon"]},Jt,t)};function gFe(e){var t,n;const{counter:r,field:o,onClick:i}=e,a=Vt(),s=dt(),l=P({},e,{classes:s.classes}),u=mFe(l),c=it(a,td),f=ln(),p=ln(),y=g.useCallback(C=>{C.preventDefault(),C.stopPropagation();const{open:x,openedPanelValue:w}=td(a.current.state);x&&w===Aa.filters?a.current.hideFilterPanel():a.current.showFilterPanel(void 0,p,f),i&&i(a.current.getColumnHeaderParams(o),C)},[a,o,i,p,f]);if(!r)return null;const v=c.open&&c.labelId===f,b=m.jsx(s.slots.baseIconButton,P({id:f,onClick:y,color:"default","aria-label":a.current.getLocaleText("columnHeaderFiltersLabel"),size:"small",tabIndex:-1,"aria-haspopup":"menu","aria-expanded":v,"aria-controls":v?p:void 0},(t=s.slotProps)==null?void 0:t.baseIconButton,{children:m.jsx(s.slots.columnFilteredIcon,{className:u.icon,fontSize:"small"})}));return m.jsx(s.slots.baseTooltip,P({title:a.current.getLocaleText("columnHeaderFiltersTooltipActive")(r),enterDelay:1e3},(n=s.slotProps)==null?void 0:n.baseTooltip,{children:m.jsxs(NV,{children:[r>1&&m.jsx(fl,{badgeContent:r,color:"default",children:b}),r===1&&b]})}))}const vFe=["field","id","value","formattedValue","row","rowNode","colDef","isEditable","cellMode","hasFocus","tabIndex","api"],yFe=e=>{const{classes:t}=e;return Ke({root:["checkboxInput"]},Jt,t)},bFe=g.forwardRef(function(t,n){var r;const{field:o,id:i,value:a,rowNode:s,hasFocus:l,tabIndex:u}=t,c=be(t,vFe),f=Vt(),p=dt(),y={classes:p.classes},v=yFe(y),b=g.useRef(null),C=g.useRef(null),x=rn(b,n),w=f.current.getCellElement(i,o),S=M=>{const E={value:M.target.checked,id:i};f.current.publishEvent("rowSelectionCheckboxChange",E,M)};g.useLayoutEffect(()=>{u===0&&w&&(w.tabIndex=-1)},[w,u]),g.useEffect(()=>{if(l){var M;const E=(M=b.current)==null?void 0:M.querySelector("input");E==null||E.focus({preventScroll:!0})}else C.current&&C.current.stop({})},[l]);const $=g.useCallback(M=>{jV(M.key)&&M.stopPropagation()},[]);if(s.type==="footer"||s.type==="pinnedRow")return null;const T=f.current.isRowSelectable(i),k=f.current.getLocaleText(a?"checkboxSelectionUnselectRow":"checkboxSelectionSelectRow");return m.jsx(p.slots.baseCheckbox,P({ref:x,tabIndex:u,checked:a,onChange:S,className:v.root,inputProps:{"aria-label":k},onKeyDown:$,disabled:!T,touchRippleRef:C},(r=p.slotProps)==null?void 0:r.baseCheckbox,c))}),xFe=bFe,wFe=["field","colDef"],CFe=e=>{const{classes:t}=e;return Ke({root:["checkboxInput"]},Jt,t)},SFe=g.forwardRef(function(t,n){var r;const o=be(t,wFe),[,i]=g.useState(!1),a=Vt(),s=dt(),l={classes:s.classes},u=CFe(l),c=it(a,MV),f=it(a,Bi),p=it(a,Lm),y=it(a,KV),v=g.useMemo(()=>typeof s.isRowSelectable!="function"?f:f.filter(E=>a.current.getRow(E)?s.isRowSelectable(a.current.getRowParams(E)):!1),[a,s.isRowSelectable,f]),b=g.useMemo(()=>(!s.pagination||!s.checkboxSelectionVisibleOnly?p:y).reduce((N,I)=>(N[I]=!0,N),{}),[s.pagination,s.checkboxSelectionVisibleOnly,y,p]),C=g.useMemo(()=>v.filter(E=>b[E]).length,[v,b]),x=C>0&&C0,S=E=>{const N={value:E.target.checked};a.current.publishEvent("headerSelectionCheckboxChange",N)},$=c!==null&&c.field===t.field?0:-1;g.useLayoutEffect(()=>{const E=a.current.getColumnHeaderElement(t.field);$===0&&E&&(E.tabIndex=-1)},[$,a,t.field]);const T=g.useCallback(E=>{E.key===" "&&a.current.publishEvent("headerSelectionCheckboxChange",{value:!w})},[a,w]),k=g.useCallback(()=>{i(E=>!E)},[]);g.useEffect(()=>a.current.subscribeEvent("rowSelectionChange",k),[a,k]);const M=a.current.getLocaleText(w?"checkboxSelectionUnselectAllRows":"checkboxSelectionSelectAllRows");return m.jsx(s.slots.baseCheckbox,P({ref:n,indeterminate:x,checked:w,onChange:S,className:u.root,inputProps:{"aria-label":M},tabIndex:$,onKeyDown:T},(r=s.slotProps)==null?void 0:r.baseCheckbox,o))}),F9=xt(m.jsx("path",{d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}),"ArrowUpward"),L9=xt(m.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward"),j9=xt(m.jsx("path",{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"KeyboardArrowRight"),D9=xt(m.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),$Fe=xt(m.jsx("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"}),"FilterList"),N9=xt(m.jsx("path",{d:"M4.25 5.61C6.27 8.2 10 13 10 13v6c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-6s3.72-4.8 5.74-7.39c.51-.66.04-1.61-.79-1.61H5.04c-.83 0-1.3.95-.79 1.61z"}),"FilterAlt"),_Fe=xt(m.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),"Search");xt(m.jsx("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu");xt(m.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckCircle");const kFe=xt(m.jsx("path",{d:"M6 5H3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm14 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm-7 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1z"}),"ColumnIcon"),PFe=xt(m.jsx("path",{d:"M11 19V5h2v14z"}),"Separator"),MFe=xt(m.jsx("path",{d:"M4 15h16v-2H4v2zm0 4h16v-2H4v2zm0-8h16V9H4v2zm0-6v2h16V5H4z"}),"ViewHeadline"),TFe=xt(m.jsx("path",{d:"M21,8H3V4h18V8z M21,10H3v4h18V10z M21,16H3v4h18V16z"}),"TableRows"),IFe=xt(m.jsx("path",{d:"M4 18h17v-6H4v6zM4 5v6h17V5H4z"}),"ViewStream"),EFe=xt(m.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"TripleDotsVertical"),o$=xt(m.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),z9=xt(m.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add"),RFe=xt(m.jsx("path",{d:"M19 13H5v-2h14v2z"}),"Remove"),OFe=xt(m.jsx("path",{d:"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4v3z"}),"Load"),B9=xt(m.jsx("path",{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"Drag"),AFe=xt(m.jsx("path",{d:"M19 12v7H5v-7H3v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zm-6 .67l2.59-2.58L17 11.5l-5 5-5-5 1.41-1.41L11 12.67V3h2z"}),"SaveAlt"),FFe=xt(m.jsx("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),LFe=xt(m.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreVert"),jFe=xt(m.jsx("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"}),"VisibilityOff"),DFe=xt(m.jsx("g",{children:m.jsx("path",{d:"M14.67,5v14H9.33V5H14.67z M15.67,19H21V5h-5.33V19z M8.33,19V5H3v14H8.33z"})}),"ViewColumn"),NFe=xt(m.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear");xt(m.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"}),"Delete");const zFe=xt(m.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zm2.46-7.12l1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14l-2.13-2.12zM15.5 4l-1-1h-5l-1 1H5v2h14V4z"}),"Delete"),BFe=["hideMenu","colDef","id","labelledby","className","children","open"],HFe=ke(u0)(()=>({minWidth:248})),WFe=g.forwardRef(function(t,n){const{hideMenu:r,id:o,labelledby:i,className:a,children:s,open:l}=t,u=be(t,BFe),c=g.useCallback(f=>{hw(f.key)&&f.preventDefault(),WT(f.key)&&r(f)},[r]);return m.jsx(HFe,P({id:o,ref:n,className:Ne(le.menuList,a),"aria-labelledby":i,onKeyDown:c,autoFocus:l},u,{children:s}))}),VFe=["displayOrder"],UFe=e=>{const t=Iu(),{defaultSlots:n,defaultSlotProps:r,slots:o={},slotProps:i={},hideMenu:a,colDef:s,addDividers:l=!0}=e,u=g.useMemo(()=>P({},n,o),[n,o]),c=g.useMemo(()=>{if(!i||Object.keys(i).length===0)return r;const y=P({},i);return Object.entries(r).forEach(([v,b])=>{y[v]=P({},b,i[v]||{})}),y},[r,i]),f=t.current.unstable_applyPipeProcessors("columnMenu",[],e.colDef),p=g.useMemo(()=>{const y=Object.keys(n);return Object.keys(o).filter(v=>!y.includes(v))},[o,n]);return g.useMemo(()=>{const b=Array.from(new Set([...f,...p])).filter(C=>u[C]!=null).sort((C,x)=>{const w=c[C],S=c[x],$=Number.isFinite(w==null?void 0:w.displayOrder)?w.displayOrder:100,T=Number.isFinite(S==null?void 0:S.displayOrder)?S.displayOrder:100;return $-T});return b.reduce((C,x,w)=>{let S={colDef:s,onClick:a};const $=c[x];if($){const T=be($,VFe);S=P({},S,T)}return l&&w!==b.length-1?[...C,[u[x],S],[Hc,{}]]:[...C,[u[x],S]]},[])},[l,s,f,a,u,c,p])};function GFe(e){const{colDef:t,onClick:n}=e,r=Vt(),o=dt(),s=Zr(r).filter(u=>u.disableColumnMenu!==!0).length===1,l=g.useCallback(u=>{s||(r.current.setColumnVisibility(t.field,!1),n(u))},[r,t.field,n,s]);return o.disableColumnSelector||t.hideable===!1?null:m.jsxs(rr,{onClick:l,disabled:s,children:[m.jsx(fo,{children:m.jsx(o.slots.columnMenuHideIcon,{fontSize:"small"})}),m.jsx(Uf,{children:r.current.getLocaleText("columnMenuHideColumn")})]})}function qFe(e){const{onClick:t}=e,n=Vt(),r=dt(),o=g.useCallback(i=>{t(i),n.current.showPreferences(Aa.columns)},[n,t]);return r.disableColumnSelector?null:m.jsxs(rr,{onClick:o,children:[m.jsx(fo,{children:m.jsx(r.slots.columnMenuManageColumnsIcon,{fontSize:"small"})}),m.jsx(Uf,{children:n.current.getLocaleText("columnMenuManageColumns")})]})}function KFe(e){return m.jsxs(g.Fragment,{children:[m.jsx(GFe,P({},e)),m.jsx(qFe,P({},e))]})}function YFe(e){const{colDef:t,onClick:n}=e,r=Vt(),o=dt(),i=g.useCallback(a=>{n(a),r.current.showFilterPanel(t.field)},[r,t.field,n]);return o.disableColumnFilter||!t.filterable?null:m.jsxs(rr,{onClick:i,children:[m.jsx(fo,{children:m.jsx(o.slots.columnMenuFilterIcon,{fontSize:"small"})}),m.jsx(Uf,{children:r.current.getLocaleText("columnMenuFilter")})]})}function XFe(e){var t;const{colDef:n,onClick:r}=e,o=Vt(),i=it(o,zi),a=dt(),s=g.useMemo(()=>{if(!n)return null;const f=i.find(p=>p.field===n.field);return f==null?void 0:f.sort},[n,i]),l=(t=n.sortingOrder)!=null?t:a.sortingOrder,u=g.useCallback(f=>{r(f);const p=f.currentTarget.getAttribute("data-value")||null;o.current.sortColumn(n,p===s?null:p)},[o,n,r,s]);if(!n||!n.sortable||!l.some(f=>!!f))return null;const c=f=>{const p=o.current.getLocaleText(f);return typeof p=="function"?p(n):p};return m.jsxs(g.Fragment,{children:[l.includes("asc")&&s!=="asc"?m.jsxs(rr,{onClick:u,"data-value":"asc",children:[m.jsx(fo,{children:m.jsx(a.slots.columnMenuSortAscendingIcon,{fontSize:"small"})}),m.jsx(Uf,{children:c("columnMenuSortAsc")})]}):null,l.includes("desc")&&s!=="desc"?m.jsxs(rr,{onClick:u,"data-value":"desc",children:[m.jsx(fo,{children:m.jsx(a.slots.columnMenuSortDescendingIcon,{fontSize:"small"})}),m.jsx(Uf,{children:c("columnMenuSortDesc")})]}):null,l.includes(null)&&s!=null?m.jsxs(rr,{onClick:u,children:[m.jsx(fo,{}),m.jsx(Uf,{children:o.current.getLocaleText("columnMenuUnsort")})]}):null]})}const QFe=["defaultSlots","defaultSlotProps","slots","slotProps"],ZFe={columnMenuSortItem:XFe,columnMenuFilterItem:YFe,columnMenuColumnsItem:KFe},JFe={columnMenuSortItem:{displayOrder:10},columnMenuFilterItem:{displayOrder:20},columnMenuColumnsItem:{displayOrder:30}},eLe=g.forwardRef(function(t,n){const{defaultSlots:r,defaultSlotProps:o,slots:i,slotProps:a}=t,s=be(t,QFe),l=UFe(P({},s,{defaultSlots:r,defaultSlotProps:o,slots:i,slotProps:a}));return m.jsx(WFe,P({ref:n},s,{children:l.map(([u,c],f)=>m.jsx(u,P({},c),f))}))}),tLe=g.forwardRef(function(t,n){return m.jsx(eLe,P({},t,{ref:n,defaultSlots:ZFe,defaultSlotProps:JFe}))}),nLe=["className"],rLe=e=>{const{classes:t}=e;return Ke({root:["panelContent"]},Jt,t)},oLe=Lr("div",{name:"MuiDataGrid",slot:"PanelContent",overridesResolver:(e,t)=>t.panelContent})({display:"flex",flexDirection:"column",overflow:"auto",flex:"1 1",maxHeight:400});function tU(e){const{className:t}=e,n=be(e,nLe),r=dt(),o=rLe(r);return m.jsx(oLe,P({className:Ne(t,o.root),ownerState:r},n))}const iLe=["className"],aLe=e=>{const{classes:t}=e;return Ke({root:["panelFooter"]},Jt,t)},sLe=Lr("div",{name:"MuiDataGrid",slot:"PanelFooter",overridesResolver:(e,t)=>t.panelFooter})(({theme:e})=>({padding:e.spacing(.5),display:"flex",justifyContent:"space-between"}));function nU(e){const{className:t}=e,n=be(e,iLe),r=dt(),o=aLe(r);return m.jsx(sLe,P({className:Ne(t,o.root),ownerState:r},n))}const lLe=["className"],uLe=e=>{const{classes:t}=e;return Ke({root:["panelHeader"]},Jt,t)},cLe=Lr("div",{name:"MuiDataGrid",slot:"PanelHeader",overridesResolver:(e,t)=>t.panelHeader})(({theme:e})=>({padding:e.spacing(1)}));function dLe(e){const{className:t}=e,n=be(e,lLe),r=dt(),o=uLe(r);return m.jsx(cLe,P({className:Ne(t,o.root),ownerState:r},n))}const fLe=["className","slotProps"],pLe=e=>{const{classes:t}=e;return Ke({root:["panelWrapper"]},Jt,t)},hLe=ke("div",{name:"MuiDataGrid",slot:"PanelWrapper",overridesResolver:(e,t)=>t.panelWrapper})({display:"flex",flexDirection:"column",flex:1,"&:focus":{outline:0}}),mLe=()=>!0,rU=g.forwardRef(function(t,n){const{className:r,slotProps:o={}}=t,i=be(t,fLe),a=dt(),s=pLe(a);return m.jsx(XD,P({open:!0,disableEnforceFocus:!0,isEnabled:mLe},o.TrapFocus,{children:m.jsx(hLe,P({ref:n,tabIndex:-1,className:Ne(r,s.root),ownerState:a},i))}))}),gLe=!1,vLe=["sort","searchPredicate","autoFocusSearchField","disableHideAllButton","disableShowAllButton","getTogglableColumns"],yLe=e=>{const{classes:t}=e;return Ke({root:["columnsPanel"],columnsPanelRow:["columnsPanelRow"]},Jt,t)},bLe=ke("div",{name:"MuiDataGrid",slot:"ColumnsPanel",overridesResolver:(e,t)=>t.columnsPanel})({padding:"8px 0px 8px 8px"}),xLe=ke("div",{name:"MuiDataGrid",slot:"ColumnsPanelRow",overridesResolver:(e,t)=>t.columnsPanelRow})(({theme:e})=>({display:"flex",justifyContent:"space-between",padding:"1px 8px 1px 7px",[`& .${co.root}`]:{marginRight:e.spacing(.5)}})),wLe=ke(Rr)({justifyContent:"flex-end"}),H9=new Intl.Collator,CLe=(e,t)=>(e.headerName||e.field).toLowerCase().indexOf(t)>-1;function SLe(e){var t,n,r;const o=Vt(),i=g.useRef(null),a=it(o,ps),s=it(o,Ma),l=dt(),[u,c]=g.useState(""),f=yLe(l),{sort:p,searchPredicate:y=CLe,autoFocusSearchField:v=!0,disableHideAllButton:b=!1,disableShowAllButton:C=!1,getTogglableColumns:x}=e,w=be(e,vLe),S=g.useMemo(()=>{switch(p){case"asc":return[...a].sort((A,z)=>H9.compare(A.headerName||A.field,z.headerName||z.field));case"desc":return[...a].sort((A,z)=>-H9.compare(A.headerName||A.field,z.headerName||z.field));default:return a}},[a,p]),$=A=>{const{name:z}=A.target;o.current.setColumnVisibility(z,s[z]===!1)},T=g.useCallback(A=>{const z=Ma(o),L=P({},z),O=x?x(a):null;return a.forEach(j=>{j.hideable&&(O==null||O.includes(j.field))&&(A?delete L[j.field]:L[j.field]=!1)}),o.current.setColumnVisibilityModel(L)},[o,a,x]),k=g.useCallback(A=>{c(A.target.value)},[]),M=g.useMemo(()=>{const A=x?x(S):null,z=A?S.filter(({field:L})=>A.includes(L)):S;return u?z.filter(L=>y(L,u.toLowerCase())):z},[S,u,y,x]),E=g.useRef(null);g.useEffect(()=>{v?i.current.focus():E.current&&typeof E.current.focus=="function"&&E.current.focus()},[v]);let N=!1;const I=A=>N===!1&&A.hideable!==!1?(N=!0,!0):!1;return m.jsxs(rU,P({},w,{children:[m.jsx(dLe,{children:m.jsx(l.slots.baseTextField,P({label:o.current.getLocaleText("columnsPanelTextFieldLabel"),placeholder:o.current.getLocaleText("columnsPanelTextFieldPlaceholder"),inputRef:i,value:u,onChange:k,variant:"standard",fullWidth:!0},(t=l.slotProps)==null?void 0:t.baseTextField))}),m.jsx(tU,{children:m.jsx(bLe,{className:f.root,ownerState:l,children:M.map(A=>{var z;return m.jsxs(xLe,{className:f.columnsPanelRow,ownerState:l,children:[m.jsx(L_,{control:m.jsx(l.slots.baseSwitch,P({disabled:A.hideable===!1,checked:s[A.field]!==!1,onClick:$,name:A.field,size:"small",inputRef:I(A)?E:void 0},(z=l.slotProps)==null?void 0:z.baseSwitch)),label:A.headerName||A.field}),!l.disableColumnReorder&&gLe&&m.jsx(wLe,{draggable:!0,"aria-label":o.current.getLocaleText("columnsPanelDragIconLabel"),title:o.current.getLocaleText("columnsPanelDragIconLabel"),size:"small",disabled:!0,children:m.jsx(l.slots.columnReorderIcon,{})})]},A.field)})})}),C&&b?null:m.jsxs(nU,{children:[b?m.jsx("span",{}):m.jsx(l.slots.baseButton,P({onClick:()=>T(!1)},(n=l.slotProps)==null?void 0:n.baseButton,{disabled:b,children:o.current.getLocaleText("columnsPanelHideAllButton")})),C?null:m.jsx(l.slots.baseButton,P({onClick:()=>T(!0)},(r=l.slotProps)==null?void 0:r.baseButton,{disabled:C,children:o.current.getLocaleText("columnsPanelShowAllButton")}))]})]}))}const $Le=["children","className","classes"],_Le=yt("MuiDataGrid",["panel","paper"]),kLe=ke(ud,{name:"MuiDataGrid",slot:"Panel",overridesResolver:(e,t)=>t.panel})(({theme:e})=>({zIndex:e.zIndex.modal})),PLe=ke(ld,{name:"MuiDataGrid",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,minWidth:300,maxHeight:450,display:"flex"})),MLe=g.forwardRef((e,t)=>{const{children:n,className:r}=e,o=be(e,$Le),i=Vt(),a=dt(),s=_Le,[l,u]=g.useState(!1),c=g.useCallback(()=>{i.current.hidePreferences()},[i]),f=g.useCallback(b=>{hb(b.key)&&i.current.hidePreferences()},[i]),p=g.useMemo(()=>[{name:"flip",enabled:!1},{name:"isPlaced",enabled:!0,phase:"main",fn:()=>{u(!0)},effect:()=>()=>{u(!1)}}],[]),[y,v]=g.useState(null);return g.useEffect(()=>{var b;const C=(b=i.current.rootElementRef)==null||(b=b.current)==null?void 0:b.querySelector(`.${le.columnHeaders}`);C&&v(C)},[i]),y?m.jsx(kLe,P({ref:t,placement:"bottom-start",className:Ne(r,s.panel),ownerState:a,anchorEl:y,modifiers:p},o,{children:m.jsx(YD,{mouseEvent:"onMouseUp",onClickAway:c,children:m.jsx(PLe,{className:s.paper,ownerState:a,elevation:8,onKeyDown:f,children:l&&n})})})):null}),TLe=g.forwardRef(function(t,n){var r,o,i;const a=Vt(),s=it(a,ps),l=dt(),u=it(a,td),c=a.current.unstable_applyPipeProcessors("preferencePanel",null,(r=u.openedPanelValue)!=null?r:Aa.filters);return m.jsx(l.slots.panel,P({ref:n,as:l.slots.basePopper,open:s.length>0&&u.open,id:u.panelId,"aria-labelledby":u.labelId},(o=l.slotProps)==null?void 0:o.panel,t,(i=l.slotProps)==null?void 0:i.basePopper,{children:c}))}),ILe=["item","hasMultipleFilters","deleteFilter","applyFilterChanges","multiFilterOperator","showMultiFilterOperators","disableMultiFilterOperator","applyMultiFilterOperatorChanges","focusElementRef","logicOperators","columnsSort","filterColumns","deleteIconProps","logicOperatorInputProps","operatorInputProps","columnInputProps","valueInputProps","children"],ELe=["InputComponentProps"],RLe=e=>{const{classes:t}=e;return Ke({root:["filterForm"],deleteIcon:["filterFormDeleteIcon"],logicOperatorInput:["filterFormLogicOperatorInput"],columnInput:["filterFormColumnInput"],operatorInput:["filterFormOperatorInput"],valueInput:["filterFormValueInput"]},Jt,t)},OLe=ke("div",{name:"MuiDataGrid",slot:"FilterForm",overridesResolver:(e,t)=>t.filterForm})(({theme:e})=>({display:"flex",padding:e.spacing(1)})),ALe=ke("div",{name:"MuiDataGrid",slot:"FilterFormDeleteIcon",overridesResolver:(e,t)=>t.filterFormDeleteIcon})(({theme:e})=>({flexShrink:0,justifyContent:"flex-end",marginRight:e.spacing(.5),marginBottom:e.spacing(.2)})),FLe=ke("div",{name:"MuiDataGrid",slot:"FilterFormLogicOperatorInput",overridesResolver:(e,t)=>t.filterFormLogicOperatorInput})({minWidth:55,marginRight:5,justifyContent:"end"}),LLe=ke("div",{name:"MuiDataGrid",slot:"FilterFormColumnInput",overridesResolver:(e,t)=>t.filterFormColumnInput})({width:150}),jLe=ke("div",{name:"MuiDataGrid",slot:"FilterFormOperatorInput",overridesResolver:(e,t)=>t.filterFormOperatorInput})({width:120}),DLe=ke("div",{name:"MuiDataGrid",slot:"FilterFormValueInput",overridesResolver:(e,t)=>t.filterFormValueInput})({width:190}),NLe=e=>{switch(e){case Bo.And:return"filterPanelOperatorAnd";case Bo.Or:return"filterPanelOperatorOr";default:throw new Error("MUI: Invalid `logicOperator` property in the `GridFilterPanel`.")}},em=e=>e.headerName||e.field,W9=new Intl.Collator,zLe=g.forwardRef(function(t,n){var r,o,i,a,s,l,u,c,f,p;const{item:y,hasMultipleFilters:v,deleteFilter:b,applyFilterChanges:C,multiFilterOperator:x,showMultiFilterOperators:w,disableMultiFilterOperator:S,applyMultiFilterOperatorChanges:$,focusElementRef:T,logicOperators:k=[Bo.And,Bo.Or],columnsSort:M,filterColumns:E,deleteIconProps:N={},logicOperatorInputProps:I={},operatorInputProps:A={},columnInputProps:z={},valueInputProps:L={}}=t,O=be(t,ILe),j=Vt(),H=it(j,xV),B=it(j,Yr),D=ln(),W=ln(),U=ln(),Z=ln(),Y=dt(),se=RLe(Y),Q=g.useRef(null),ne=g.useRef(null),re=v&&k.length>0,ge=((r=Y.slotProps)==null?void 0:r.baseFormControl)||{},fe=(i=(((o=Y.slotProps)==null?void 0:o.baseSelect)||{}).native)!=null?i:!0,Se=((a=Y.slotProps)==null?void 0:a.baseInputLabel)||{},de=((s=Y.slotProps)==null?void 0:s.baseSelectOption)||{},{InputComponentProps:ie}=L,Pe=be(L,ELe),$e=g.useMemo(()=>{if(E===void 0||typeof E!="function")return H;const K=E({field:y.field,columns:H,currentFilters:(B==null?void 0:B.items)||[]});return H.filter(ee=>K.includes(ee.field))},[E,B==null?void 0:B.items,H,y.field]),me=g.useMemo(()=>{switch(M){case"asc":return $e.sort((K,ee)=>W9.compare(em(K),em(ee)));case"desc":return $e.sort((K,ee)=>-W9.compare(em(K),em(ee)));default:return $e}},[$e,M]),ue=y.field?j.current.getColumn(y.field):null,ce=g.useMemo(()=>{var K;return!y.operator||!ue?null:(K=ue.filterOperators)==null?void 0:K.find(ee=>ee.value===y.operator)},[y,ue]),Te=g.useCallback(K=>{const ee=K.target.value,pe=j.current.getColumn(ee);if(pe.field===ue.field)return;const ye=pe.filterOperators.find(Ae=>Ae.value===y.operator)||pe.filterOperators[0],je=!ye.InputComponent||ye.InputComponent!==(ce==null?void 0:ce.InputComponent);C(P({},y,{field:ee,operator:ye.value,value:je?void 0:y.value}))},[j,C,y,ue,ce]),Le=g.useCallback(K=>{const ee=K.target.value,pe=ue==null?void 0:ue.filterOperators.find(je=>je.value===ee),ye=!(pe!=null&&pe.InputComponent)||(pe==null?void 0:pe.InputComponent)!==(ce==null?void 0:ce.InputComponent);C(P({},y,{operator:ee,value:ye?void 0:y.value}))},[C,y,ue,ce]),Re=g.useCallback(K=>{const ee=K.target.value===Bo.And.toString()?Bo.And:Bo.Or;$(ee)},[$]),Oe=()=>{Y.disableMultipleColumnsFiltering?y.value===void 0?b(y):C(P({},y,{value:void 0})):b(y)};return g.useImperativeHandle(T,()=>({focus:()=>{if(ce!=null&&ce.InputComponent){var K;Q==null||(K=Q.current)==null||K.focus()}else ne.current.focus()}}),[ce]),m.jsxs(OLe,P({ref:n,className:se.root,"data-id":y.id,ownerState:Y},O,{children:[m.jsx(ALe,P({variant:"standard",as:Y.slots.baseFormControl},ge,N,{className:Ne(se.deleteIcon,ge.className,N.className),ownerState:Y,children:m.jsx(Y.slots.baseIconButton,P({"aria-label":j.current.getLocaleText("filterPanelDeleteIconLabel"),title:j.current.getLocaleText("filterPanelDeleteIconLabel"),onClick:Oe,size:"small"},(l=Y.slotProps)==null?void 0:l.baseIconButton,{children:m.jsx(Y.slots.filterPanelDeleteIcon,{fontSize:"small"})}))})),m.jsx(FLe,P({variant:"standard",as:Y.slots.baseFormControl},ge,I,{sx:P({display:re?"flex":"none",visibility:w?"visible":"hidden"},ge.sx||{},I.sx||{}),className:Ne(se.logicOperatorInput,ge.className,I.className),ownerState:Y,children:m.jsx(Y.slots.baseSelect,P({inputProps:{"aria-label":j.current.getLocaleText("filterPanelLogicOperator")},value:x,onChange:Re,disabled:!!S||k.length===1,native:fe},(u=Y.slotProps)==null?void 0:u.baseSelect,{children:k.map(K=>g.createElement(Y.slots.baseSelectOption,P({},de,{native:fe,key:K.toString(),value:K.toString()}),j.current.getLocaleText(NLe(K))))}))})),m.jsxs(LLe,P({variant:"standard",as:Y.slots.baseFormControl},ge,z,{className:Ne(se.columnInput,ge.className,z.className),ownerState:Y,children:[m.jsx(Y.slots.baseInputLabel,P({},Se,{htmlFor:D,id:W,children:j.current.getLocaleText("filterPanelColumns")})),m.jsx(Y.slots.baseSelect,P({labelId:W,id:D,label:j.current.getLocaleText("filterPanelColumns"),value:y.field||"",onChange:Te,native:fe},(c=Y.slotProps)==null?void 0:c.baseSelect,{children:me.map(K=>g.createElement(Y.slots.baseSelectOption,P({},de,{native:fe,key:K.field,value:K.field}),em(K)))}))]})),m.jsxs(jLe,P({variant:"standard",as:Y.slots.baseFormControl},ge,A,{className:Ne(se.operatorInput,ge.className,A.className),ownerState:Y,children:[m.jsx(Y.slots.baseInputLabel,P({},Se,{htmlFor:U,id:Z,children:j.current.getLocaleText("filterPanelOperator")})),m.jsx(Y.slots.baseSelect,P({labelId:Z,label:j.current.getLocaleText("filterPanelOperator"),id:U,value:y.operator,onChange:Le,native:fe,inputRef:ne},(f=Y.slotProps)==null?void 0:f.baseSelect,{children:ue==null||(p=ue.filterOperators)==null?void 0:p.map(K=>g.createElement(Y.slots.baseSelectOption,P({},de,{native:fe,key:K.value,value:K.value}),K.label||j.current.getLocaleText(`filterOperator${De(K.value)}`)))}))]})),m.jsx(DLe,P({variant:"standard",as:Y.slots.baseFormControl},ge,Pe,{className:Ne(se.valueInput,ge.className,Pe.className),ownerState:Y,children:ce!=null&&ce.InputComponent?m.jsx(ce.InputComponent,P({apiRef:j,item:y,applyValue:C,focusElementRef:Q},ce.InputComponentProps,ie)):null}))]}))});class KT{constructor(){this.currentId=0,this.clear=()=>{this.currentId!==0&&(clearTimeout(this.currentId),this.currentId=0)},this.disposeEffect=()=>this.clear}static create(){return new KT}start(t,n){this.clear(),this.currentId=setTimeout(n,t)}}function YT(){const e=AT(KT.create).current;return yV(e.disposeEffect),e}const BLe=["item","applyValue","type","apiRef","focusElementRef","tabIndex","disabled","isFilterActive","clearButton","InputProps"];function Za(e){var t,n;const{item:r,applyValue:o,type:i,apiRef:a,focusElementRef:s,tabIndex:l,disabled:u,clearButton:c,InputProps:f}=e,p=be(e,BLe),y=YT(),[v,b]=g.useState((t=r.value)!=null?t:""),[C,x]=g.useState(!1),w=ln(),S=dt(),$=g.useCallback(T=>{const{value:k}=T.target;b(String(k)),x(!0),y.start(S.filterDebounceMs,()=>{const M=P({},r,{value:k,fromInput:w});o(M),x(!1)})},[w,o,r,S.filterDebounceMs,y]);return g.useEffect(()=>{if(r.fromInput!==w){var k;b(String((k=r.value)!=null?k:""))}},[w,r]),m.jsx(S.slots.baseTextField,P({id:w,label:a.current.getLocaleText("filterPanelInputLabel"),placeholder:a.current.getLocaleText("filterPanelInputPlaceholder"),value:v,onChange:$,variant:"standard",type:i||"text",InputProps:P({},C||c?{endAdornment:C?m.jsx(S.slots.loadIcon,{fontSize:"small",color:"action"}):c}:{},{disabled:u},f,{inputProps:P({tabIndex:l},f==null?void 0:f.inputProps)}),InputLabelProps:{shrink:!0},inputRef:s},p,(n=S.slotProps)==null?void 0:n.baseTextField))}const HLe=["item","applyValue","type","apiRef","focusElementRef","InputProps","isFilterActive","clearButton","tabIndex","disabled"];function rf(e){var t,n;const{item:r,applyValue:o,type:i,apiRef:a,focusElementRef:s,InputProps:l,clearButton:u,tabIndex:c,disabled:f}=e,p=be(e,HLe),y=YT(),[v,b]=g.useState((t=r.value)!=null?t:""),[C,x]=g.useState(!1),w=ln(),S=dt(),$=g.useCallback(T=>{const k=T.target.value;b(String(k)),x(!0),y.start(S.filterDebounceMs,()=>{o(P({},r,{value:k})),x(!1)})},[o,r,S.filterDebounceMs,y]);return g.useEffect(()=>{var T;const k=(T=r.value)!=null?T:"";b(String(k))},[r.value]),m.jsx(S.slots.baseTextField,P({fullWidth:!0,id:w,label:a.current.getLocaleText("filterPanelInputLabel"),placeholder:a.current.getLocaleText("filterPanelInputPlaceholder"),value:v,onChange:$,variant:"standard",type:i||"text",InputLabelProps:{shrink:!0},inputRef:s,InputProps:P({},C||u?{endAdornment:C?m.jsx(S.slots.loadIcon,{fontSize:"small",color:"action"}):u}:{},{disabled:f},l,{inputProps:P({max:i==="datetime-local"?"9999-12-31T23:59":"9999-12-31",tabIndex:c},l==null?void 0:l.inputProps)})},p,(n=S.slotProps)==null?void 0:n.baseTextField))}const WLe=["item","applyValue","type","apiRef","focusElementRef","getOptionLabel","getOptionValue","placeholder","tabIndex","label","isFilterActive","clearButton","InputLabelProps"],VLe=({column:{valueOptions:e,field:t},OptionComponent:n,getOptionLabel:r,getOptionValue:o,isSelectNative:i,baseSelectOptionProps:a})=>(typeof e=="function"?["",...e({field:t})]:["",...e||[]]).map(l=>{const u=o(l),c=r(l);return g.createElement(n,P({},a,{native:i,key:u,value:u}),c)}),ULe=ke("div")({display:"flex",alignItems:"flex-end",width:"100%","& button":{margin:"auto 0px 5px 5px"}});function V9(e){var t,n,r,o,i,a,s,l;const{item:u,applyValue:c,type:f,apiRef:p,focusElementRef:y,getOptionLabel:v,getOptionValue:b,placeholder:C,tabIndex:x,label:w,clearButton:S}=e,$=be(e,WLe),[T,k]=g.useState((t=u.value)!=null?t:""),M=ln(),E=ln(),N=dt(),I=(n=(r=N.slotProps)==null||(r=r.baseSelect)==null?void 0:r.native)!=null?n:!0;let A=null;if(u.field){const B=p.current.getColumn(u.field);Mc(B)&&(A=B)}const z=b||((o=A)==null?void 0:o.getOptionValue),L=v||((i=A)==null?void 0:i.getOptionLabel),O=g.useMemo(()=>{if(A)return typeof A.valueOptions=="function"?A.valueOptions({field:A.field}):A.valueOptions},[A]),j=g.useCallback(B=>{let D=B.target.value;D=Ik(D,O,z),k(String(D)),c(P({},u,{value:D}))},[O,z,c,u]);if(g.useEffect(()=>{var B;let D;if(O!==void 0){if(D=Ik(u.value,O,z),D!==u.value){c(P({},u,{value:D}));return}}else D=u.value;D=(B=D)!=null?B:"",k(String(D))},[u,O,c,z]),!Mc(A)||!Mc(A))return null;const H=w??p.current.getLocaleText("filterPanelInputLabel");return m.jsxs(ULe,{children:[m.jsxs(N.slots.baseFormControl,{children:[m.jsx(N.slots.baseInputLabel,P({},(a=N.slotProps)==null?void 0:a.baseInputLabel,{id:E,htmlFor:M,shrink:!0,variant:"standard",children:H})),m.jsx(N.slots.baseSelect,P({id:M,label:H,labelId:E,value:T,onChange:j,variant:"standard",type:f||"text",inputProps:{tabIndex:x,ref:y,placeholder:C??p.current.getLocaleText("filterPanelInputPlaceholder")},native:I},$,(s=N.slotProps)==null?void 0:s.baseSelect,{children:VLe({column:A,OptionComponent:N.slots.baseSelectOption,getOptionLabel:L,getOptionValue:z,isSelectNative:I,baseSelectOptionProps:(l=N.slotProps)==null?void 0:l.baseSelectOption})}))]}),S]})}const GLe=["item","applyValue","apiRef","focusElementRef","isFilterActive","clearButton","tabIndex","label","InputLabelProps"],qLe=ke("div")({display:"flex",alignItems:"center",width:"100%","& button":{margin:"auto 0px 5px 5px"}});function KLe(e){var t,n,r,o;const{item:i,applyValue:a,apiRef:s,focusElementRef:l,clearButton:u,tabIndex:c,label:f}=e,p=be(e,GLe),[y,v]=g.useState(i.value||""),b=dt(),C=ln(),x=ln(),w=((t=b.slotProps)==null?void 0:t.baseSelect)||{},S=(n=w.native)!=null?n:!0,$=((r=b.slotProps)==null?void 0:r.baseSelectOption)||{},T=g.useCallback(M=>{const E=M.target.value;v(E),a(P({},i,{value:E}))},[a,i]);g.useEffect(()=>{v(i.value||"")},[i.value]);const k=f??s.current.getLocaleText("filterPanelInputLabel");return m.jsxs(qLe,{children:[m.jsxs(b.slots.baseFormControl,{fullWidth:!0,children:[m.jsx(b.slots.baseInputLabel,P({},(o=b.slotProps)==null?void 0:o.baseInputLabel,{id:C,shrink:!0,variant:"standard",children:k})),m.jsxs(b.slots.baseSelect,P({labelId:C,id:x,label:k,value:y,onChange:T,variant:"standard",native:S,displayEmpty:!0,inputProps:{ref:l,tabIndex:c}},p,w,{children:[m.jsx(b.slots.baseSelectOption,P({},$,{native:S,value:"",children:s.current.getLocaleText("filterValueAny")})),m.jsx(b.slots.baseSelectOption,P({},$,{native:S,value:"true",children:s.current.getLocaleText("filterValueTrue")})),m.jsx(b.slots.baseSelectOption,P({},$,{native:S,value:"false",children:s.current.getLocaleText("filterValueFalse")}))]}))]}),u]})}const YLe=["logicOperators","columnsSort","filterFormProps","getColumnForNewFilter","children","disableAddFilterButton","disableRemoveAllButton"],U9=e=>({field:e.field,operator:e.filterOperators[0].value,id:Math.round(Math.random()*1e5)}),XLe=g.forwardRef(function(t,n){var r,o;const i=Vt(),a=dt(),s=it(i,Yr),l=it(i,xV),u=g.useRef(null),c=g.useRef(null),{logicOperators:f=[Bo.And,Bo.Or],columnsSort:p,filterFormProps:y,getColumnForNewFilter:v,disableAddFilterButton:b=!1,disableRemoveAllButton:C=!1}=t,x=be(t,YLe),w=i.current.upsertFilterItem,S=g.useCallback(A=>{i.current.setFilterLogicOperator(A)},[i]),$=g.useCallback(()=>{let A;if(v&&typeof v=="function"){const z=v({currentFilters:(s==null?void 0:s.items)||[],columns:l});if(z===null)return null;A=l.find(({field:L})=>L===z)}else A=l.find(z=>{var L;return(L=z.filterOperators)==null?void 0:L.length});return A?U9(A):null},[s==null?void 0:s.items,l,v]),T=g.useCallback(()=>{if(v===void 0||typeof v!="function")return $();const A=s.items.length?s.items:[$()].filter(Boolean),z=v({currentFilters:A,columns:l});if(z===null)return null;const L=l.find(({field:O})=>O===z);return L?U9(L):null},[s.items,l,v,$]),k=g.useMemo(()=>s.items.length?s.items:(c.current||(c.current=$()),c.current?[c.current]:[]),[s.items,$]),M=k.length>1,E=()=>{const A=T();A&&i.current.upsertFilterItems([...k,A])},N=g.useCallback(A=>{const z=k.length===1;i.current.deleteFilterItem(A),z&&i.current.hideFilterPanel()},[i,k.length]),I=()=>{k.length===1&&k[0].value===void 0&&(i.current.deleteFilterItem(k[0]),i.current.hideFilterPanel()),i.current.setFilterModel(P({},s,{items:[]}))};return g.useEffect(()=>{f.length>0&&s.logicOperator&&!f.includes(s.logicOperator)&&S(f[0])},[f,S,s.logicOperator]),g.useEffect(()=>{k.length>0&&u.current.focus()},[k.length]),m.jsxs(rU,P({ref:n},x,{children:[m.jsx(tU,{children:k.map((A,z)=>m.jsx(zLe,P({item:A,applyFilterChanges:w,deleteFilter:N,hasMultipleFilters:M,showMultiFilterOperators:z>0,multiFilterOperator:s.logicOperator,disableMultiFilterOperator:z!==1,applyMultiFilterOperatorChanges:S,focusElementRef:z===k.length-1?u:null,logicOperators:f,columnsSort:p},y),A.id==null?z:A.id))}),!a.disableMultipleColumnsFiltering&&!(b&&C)?m.jsxs(nU,{children:[b?m.jsx("span",{}):m.jsx(a.slots.baseButton,P({onClick:E,startIcon:m.jsx(a.slots.filterPanelAddIcon,{})},(r=a.slotProps)==null?void 0:r.baseButton,{children:i.current.getLocaleText("filterPanelAddFilter")})),C?null:m.jsx(a.slots.baseButton,P({onClick:I,startIcon:m.jsx(a.slots.filterPanelRemoveAllIcon,{})},(o=a.slotProps)==null?void 0:o.baseButton,{children:i.current.getLocaleText("filterPanelRemoveAll")}))]}):null]}))}),QLe=["item","applyValue","type","apiRef","focusElementRef","color","error","helperText","size","variant"];function oU(e){const{item:t,applyValue:n,type:r,apiRef:o,focusElementRef:i,color:a,error:s,helperText:l,size:u,variant:c}=e,f=be(e,QLe),p={color:a,error:s,helperText:l,size:u,variant:c},[y,v]=g.useState(t.value||[]),b=ln(),C=dt();g.useEffect(()=>{var w;const S=(w=t.value)!=null?w:[];v(S.map(String))},[t.value]);const x=g.useCallback((w,S)=>{v(S.map(String)),n(P({},t,{value:[...S]}))},[n,t]);return m.jsx(pN,P({multiple:!0,freeSolo:!0,options:[],filterOptions:(w,S)=>{const{inputValue:$}=S;return $==null||$===""?[]:[$]},id:b,value:y,onChange:x,renderTags:(w,S)=>w.map(($,T)=>m.jsx(C.slots.baseChip,P({variant:"outlined",size:"small",label:$},S({index:T})))),renderInput:w=>{var S;return m.jsx(C.slots.baseTextField,P({},w,{label:o.current.getLocaleText("filterPanelInputLabel"),placeholder:o.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:P({},w.InputLabelProps,{shrink:!0}),inputRef:i,type:r||"text"},p,(S=C.slotProps)==null?void 0:S.baseTextField))}},f))}const ZLe=["item","applyValue","type","apiRef","focusElementRef","color","error","helperText","size","variant","getOptionLabel","getOptionValue"],JLe=lN();function e7e(e){var t,n;const{item:r,applyValue:o,apiRef:i,focusElementRef:a,color:s,error:l,helperText:u,size:c,variant:f="standard",getOptionLabel:p,getOptionValue:y}=e,v=be(e,ZLe),b={color:s,error:l,helperText:u,size:c,variant:f},C=ln(),x=dt();let w=null;if(r.field){const I=i.current.getColumn(r.field);Mc(I)&&(w=I)}const S=y||((t=w)==null?void 0:t.getOptionValue),$=p||((n=w)==null?void 0:n.getOptionLabel),T=g.useCallback((I,A)=>S(I)===S(A),[S]),k=g.useMemo(()=>{var I;return(I=w)!=null&&I.valueOptions?typeof w.valueOptions=="function"?w.valueOptions({field:w.field}):w.valueOptions:[]},[w]),M=g.useMemo(()=>k==null?void 0:k.map(S),[k,S]),E=g.useMemo(()=>Array.isArray(r.value)?k!==void 0?r.value.map(A=>M==null?void 0:M.findIndex(z=>z===A)).filter(A=>A>=0).map(A=>k[A]):r.value:[],[r.value,k,M]);g.useEffect(()=>{(!Array.isArray(r.value)||E.length!==r.value.length)&&o(P({},r,{value:E.map(S)}))},[r,E,o,S]);const N=g.useCallback((I,A)=>{o(P({},r,{value:A.map(S)}))},[o,r,S]);return m.jsx(pN,P({multiple:!0,options:k,isOptionEqualToValue:T,filterOptions:JLe,id:C,value:E,onChange:N,getOptionLabel:$,renderTags:(I,A)=>I.map((z,L)=>m.jsx(x.slots.baseChip,P({variant:"outlined",size:"small",label:$(z)},A({index:L})))),renderInput:I=>{var A;return m.jsx(x.slots.baseTextField,P({},I,{label:i.current.getLocaleText("filterPanelInputLabel"),placeholder:i.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:P({},I.InputLabelProps,{shrink:!0}),inputRef:a,type:"singleSelect"},b,(A=x.slotProps)==null?void 0:A.baseTextField))}},v))}const t7e=["onClick"],n7e=g.forwardRef(function(t,n){var r;const{onClick:o}=t,i=be(t,t7e),a=ln(),s=ln(),l=Vt(),u=dt(),c=it(l,td),f=y=>{c.open&&c.openedPanelValue===Aa.columns?l.current.hidePreferences():l.current.showPreferences(Aa.columns,s,a),o==null||o(y)};if(u.disableColumnSelector)return null;const p=c.open&&c.panelId===s;return m.jsx(u.slots.baseButton,P({ref:n,id:a,size:"small","aria-label":l.current.getLocaleText("toolbarColumnsLabel"),"aria-haspopup":"menu","aria-expanded":p,"aria-controls":p?s:void 0,startIcon:m.jsx(u.slots.columnSelectorIcon,{})},i,{onClick:f},(r=u.slotProps)==null?void 0:r.baseButton,{children:l.current.getLocaleText("toolbarColumns")}))}),r7e=["onClick"],o7e=g.forwardRef(function(t,n){var r;const{onClick:o}=t,i=be(t,r7e),a=Vt(),s=dt(),l=it(a,TV),u=ln(),c=ln(),[f,p]=g.useState(!1),y=g.useRef(null),v=rn(n,y),b=[{icon:m.jsx(s.slots.densityCompactIcon,{}),label:a.current.getLocaleText("toolbarDensityCompact"),value:"compact"},{icon:m.jsx(s.slots.densityStandardIcon,{}),label:a.current.getLocaleText("toolbarDensityStandard"),value:"standard"},{icon:m.jsx(s.slots.densityComfortableIcon,{}),label:a.current.getLocaleText("toolbarDensityComfortable"),value:"comfortable"}],C=g.useMemo(()=>{switch(l){case"compact":return m.jsx(s.slots.densityCompactIcon,{});case"comfortable":return m.jsx(s.slots.densityComfortableIcon,{});default:return m.jsx(s.slots.densityStandardIcon,{})}},[l,s]),x=k=>{p(M=>!M),o==null||o(k)},w=()=>{p(!1)},S=k=>{a.current.setDensity(k),p(!1)},$=k=>{hw(k.key)&&k.preventDefault(),WT(k.key)&&p(!1)};if(s.disableDensitySelector)return null;const T=b.map((k,M)=>m.jsxs(rr,{onClick:()=>S(k.value),selected:k.value===l,children:[m.jsx(fo,{children:k.icon}),k.label]},M));return m.jsxs(g.Fragment,{children:[m.jsx(s.slots.baseButton,P({ref:v,size:"small",startIcon:C,"aria-label":a.current.getLocaleText("toolbarDensityLabel"),"aria-haspopup":"menu","aria-expanded":f,"aria-controls":f?c:void 0,id:u},i,{onClick:x},(r=s.slotProps)==null?void 0:r.baseButton,{children:a.current.getLocaleText("toolbarDensity")})),m.jsx(mw,{open:f,target:y.current,onClose:w,position:"bottom-start",children:m.jsx(u0,{id:c,className:le.menuList,"aria-labelledby":u,onKeyDown:$,autoFocusItem:f,children:T})})]})}),i7e=["componentsProps"],a7e=e=>{const{classes:t}=e;return Ke({root:["toolbarFilterList"]},Jt,t)},s7e=ke("ul",{name:"MuiDataGrid",slot:"ToolbarFilterList",overridesResolver:(e,t)=>t.toolbarFilterList})(({theme:e})=>({margin:e.spacing(1,1,.5),padding:e.spacing(0,1)})),l7e=g.forwardRef(function(t,n){var r,o;const{componentsProps:i={}}=t,a=be(t,i7e),s=i.button||{},l=Vt(),u=dt(),c=it(l,PV),f=it(l,bd),p=it(l,td),y=a7e(u),v=ln(),b=ln(),C=g.useMemo(()=>{if(p.open)return l.current.getLocaleText("toolbarFiltersTooltipHide");if(c.length===0)return l.current.getLocaleText("toolbarFiltersTooltipShow");const S=T=>f[T.field].filterOperators.find(k=>k.value===T.operator).label||l.current.getLocaleText(`filterOperator${De(T.operator)}`).toString(),$=T=>{const{getValueAsString:k}=f[T.field].filterOperators.find(M=>M.value===T.operator);return k?k(T.value):T.value};return m.jsxs("div",{children:[l.current.getLocaleText("toolbarFiltersTooltipActive")(c.length),m.jsx(s7e,{className:y.root,ownerState:u,children:c.map((T,k)=>P({},f[T.field]&&m.jsx("li",{children:`${f[T.field].headerName||T.field} + ${S(T)} + ${T.value!=null?$(T):""}`},k)))})]})},[l,u,p.open,c,f,y]),x=S=>{var $;const{open:T,openedPanelValue:k}=p;T&&k===Aa.filters?l.current.hidePreferences():l.current.showPreferences(Aa.filters,b,v),($=s.onClick)==null||$.call(s,S)};if(u.disableColumnFilter)return null;const w=p.open&&p.panelId===b;return m.jsx(u.slots.baseTooltip,P({title:C,enterDelay:1e3},a,(r=u.slotProps)==null?void 0:r.baseTooltip,{children:m.jsx(u.slots.baseButton,P({ref:n,id:v,size:"small","aria-label":l.current.getLocaleText("toolbarFiltersLabel"),"aria-controls":w?b:void 0,"aria-expanded":w,"aria-haspopup":!0,startIcon:m.jsx(fl,{badgeContent:c.length,color:"primary",children:m.jsx(u.slots.openFilterButtonIcon,{})})},s,{onClick:x},(o=u.slotProps)==null?void 0:o.baseButton,{children:l.current.getLocaleText("toolbarFilters")}))}))}),u7e=["children","onClick"],c7e=g.forwardRef(function(t,n){var r;const{children:o,onClick:i}=t,a=be(t,u7e),s=Vt(),l=dt(),u=ln(),c=ln(),[f,p]=g.useState(!1),y=g.useRef(null),v=rn(n,y),b=w=>{p(S=>!S),i==null||i(w)},C=()=>p(!1),x=w=>{hw(w.key)&&w.preventDefault(),WT(w.key)&&C()};return o==null?null:m.jsxs(g.Fragment,{children:[m.jsx(l.slots.baseButton,P({ref:v,size:"small",startIcon:m.jsx(l.slots.exportIcon,{}),"aria-expanded":f,"aria-label":s.current.getLocaleText("toolbarExportLabel"),"aria-haspopup":"menu","aria-controls":f?c:void 0,id:u},a,{onClick:b},(r=l.slotProps)==null?void 0:r.baseButton,{children:s.current.getLocaleText("toolbarExport")})),m.jsx(mw,{open:f,target:y.current,onClose:C,position:"bottom-start",children:m.jsx(u0,{id:c,className:le.menuList,"aria-labelledby":u,onKeyDown:x,autoFocusItem:f,children:g.Children.map(o,w=>g.isValidElement(w)?g.cloneElement(w,{hideMenu:C}):w)})})]})}),d7e=["hideMenu","options"],f7e=["hideMenu","options"],p7e=["csvOptions","printOptions","excelOptions"];function h7e(e){const t=Vt(),{hideMenu:n,options:r}=e,o=be(e,d7e);return m.jsx(rr,P({onClick:()=>{t.current.exportDataAsCsv(r),n==null||n()}},o,{children:t.current.getLocaleText("toolbarExportCSV")}))}function m7e(e){const t=Vt(),{hideMenu:n,options:r}=e,o=be(e,f7e);return m.jsx(rr,P({onClick:()=>{t.current.exportDataAsPrint(r),n==null||n()}},o,{children:t.current.getLocaleText("toolbarExportPrint")}))}const g7e=g.forwardRef(function(t,n){const{csvOptions:r={},printOptions:o={},excelOptions:i}=t,a=be(t,p7e),l=Vt().current.unstable_applyPipeProcessors("exportMenu",[],{excelOptions:i,csvOptions:r,printOptions:o}).sort((u,c)=>u.componentName>c.componentName?1:-1);return l.length===0?null:m.jsx(c7e,P({},a,{ref:n,children:l.map((u,c)=>g.cloneElement(u.component,{key:c}))}))}),v7e=["quickFilterParser","quickFilterFormatter","debounceMs"],y7e=ke(lu,{name:"MuiDataGrid",slot:"ToolbarQuickFilter",overridesResolver:(e,t)=>t.toolbarQuickFilter})(({theme:e})=>({width:"auto",paddingBottom:e.spacing(.5),"& input":{marginLeft:e.spacing(.5)},"& .MuiInput-underline:before":{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},"& input[type=search]::-ms-clear,\n& input[type=search]::-ms-reveal":{display:"none",width:0,height:0},'& input[type="search"]::-webkit-search-decoration,\n & input[type="search"]::-webkit-search-cancel-button,\n & input[type="search"]::-webkit-search-results-button,\n & input[type="search"]::-webkit-search-results-decoration':{display:"none"}})),b7e=e=>e.split(" ").filter(t=>t!==""),x7e=e=>e.join(" ");function w7e(e){var t,n;const r=Vt(),o=dt(),i=it(r,DAe),{quickFilterParser:a=b7e,quickFilterFormatter:s=x7e,debounceMs:l=o.filterDebounceMs}=e,u=be(e,v7e),[c,f]=g.useState(()=>s(i??[])),p=g.useRef(i);g.useEffect(()=>{il(p.current,i)||(p.current=i,f(x=>il(a(x),i)?x:s(i??[])))},[i,s,a]);const y=g.useCallback(x=>{const w=a(x);p.current=w,r.current.setQuickFilterValues(w)},[r,a]),v=g.useMemo(()=>_u(y,l),[y,l]),b=g.useCallback(x=>{const w=x.target.value;f(w),v(w)},[v]),C=g.useCallback(()=>{f(""),y("")},[y]);return m.jsx(y7e,P({as:o.slots.baseTextField,ownerState:o,variant:"standard",value:c,onChange:b,placeholder:r.current.getLocaleText("toolbarQuickFilterPlaceholder"),"aria-label":r.current.getLocaleText("toolbarQuickFilterLabel"),type:"search"},u,{InputProps:P({startAdornment:m.jsx(o.slots.quickFilterIcon,{fontSize:"small"}),endAdornment:m.jsx(o.slots.baseIconButton,P({"aria-label":r.current.getLocaleText("toolbarQuickFilterDeleteIconLabel"),size:"small",sx:{visibility:c?"visible":"hidden"},onClick:C},(t=o.slotProps)==null?void 0:t.baseIconButton,{children:m.jsx(o.slots.quickFilterClearIcon,{fontSize:"small"})}))},u.InputProps)},(n=o.slotProps)==null?void 0:n.baseTextField))}const C7e=["className","selectedRowCount"],S7e=e=>{const{classes:t}=e;return Ke({root:["selectedRowCount"]},Jt,t)},$7e=Lr("div",{name:"MuiDataGrid",slot:"SelectedRowCount",overridesResolver:(e,t)=>t.selectedRowCount})(({theme:e})=>({alignItems:"center",display:"flex",margin:e.spacing(0,2),visibility:"hidden",width:0,height:0,[e.breakpoints.up("sm")]:{visibility:"visible",width:"auto",height:"auto"}})),_7e=g.forwardRef(function(t,n){const{className:r,selectedRowCount:o}=t,i=be(t,C7e),a=Vt(),s=dt(),l=S7e(s),u=a.current.getLocaleText("footerRowSelected")(o);return m.jsx($7e,P({ref:n,className:Ne(l.root,r),ownerState:s},i,{children:u}))}),k7e=g.forwardRef(function(t,n){var r,o;const i=Vt(),a=dt(),s=it(i,IAe),l=it(i,tFe),u=it(i,cw),c=!a.hideFooterSelectedRowCount&&l>0?m.jsx(_7e,{selectedRowCount:l}):m.jsx("div",{}),f=!a.hideFooterRowCount&&!a.pagination?m.jsx(a.slots.footerRowCount,P({},(r=a.slotProps)==null?void 0:r.footerRowCount,{rowCount:s,visibleRowCount:u})):null,p=a.pagination&&!a.hideFooterPagination&&a.slots.pagination&&m.jsx(a.slots.pagination,P({},(o=a.slotProps)==null?void 0:o.pagination));return m.jsxs(l9e,P({ref:n},t,{children:[c,f,p]}))});function P7e(){var e,t;const n=dt();return m.jsxs(g.Fragment,{children:[m.jsx(n.slots.preferencesPanel,P({},(e=n.slotProps)==null?void 0:e.preferencesPanel)),n.slots.toolbar&&m.jsx(n.slots.toolbar,P({},(t=n.slotProps)==null?void 0:t.toolbar))]})}const M7e=g.forwardRef(function(t,n){return m.jsx(VT,P({ref:n},t,{children:m.jsx(Qpe,{})}))}),T7e=g.forwardRef(function(t,n){const o=Vt().current.getLocaleText("noRowsLabel");return m.jsx(VT,P({ref:n},t,{children:o}))}),I7e=ke(wve)(({theme:e})=>({[`& .${bc.selectLabel}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"block"}},[`& .${bc.input}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"inline-flex"}}})),E7e=g.forwardRef(function(t,n){const r=Vt(),o=dt(),i=it(r,Wi),a=it(r,cw),s=g.useMemo(()=>{var y,v;return(y=(v=o.rowCount)!=null?v:a)!=null?y:0},[o.rowCount,a]),l=g.useMemo(()=>Math.floor(s/(i.pageSize||1)),[s,i.pageSize]),u=g.useCallback(y=>{const v=Number(y.target.value);r.current.setPageSize(v)},[r]),c=g.useCallback((y,v)=>{r.current.setPage(v)},[r]),p=(y=>{for(let v=0;v{const{classes:t}=e;return Ke({root:["rowCount"]},Jt,t)},A7e=Lr("div",{name:"MuiDataGrid",slot:"RowCount",overridesResolver:(e,t)=>t.rowCount})(({theme:e})=>({alignItems:"center",display:"flex",margin:e.spacing(0,2)})),F7e=g.forwardRef(function(t,n){const{className:r,rowCount:o,visibleRowCount:i}=t,a=be(t,R7e),s=Vt(),l=dt(),u=O7e(l);if(o===0)return null;const c=i{let n,r;return t.pagination&&t.paginationMode==="client"?(r=GT(e),n=eFe(e)):(n=Eu(e),n.length===0?r=null:r={firstRowIndex:0,lastRowIndex:n.length-1}),{rows:n,range:r}},xd=(e,t)=>{const n=vb(e,t);return g.useMemo(()=>({rows:n.rows,range:n.range}),[n.rows,n.range])},Ek={current:null};function T0(e){return e.isInternal=!0,e}function yb(e){return e!==void 0&&e.isInternal===!0}function L7e(e){return T0((t,n)=>{const r=e(t,n);return r&&(o=>r(o.value,o.row,n,Ek.current))})}function I0(e){return e.map(t=>P({},t,{getApplyFilterFn:L7e(t.getApplyFilterFnV7),getApplyFilterFnV7:T0(t.getApplyFilterFnV7)}))}function iU(e){return T0((t,n,r)=>{const o=e(t,n,r);return o&&(i=>o(i.value,i.row,n,r))})}function aU(e){return{current:e.current.getPublicApi()}}const j7e=typeof window>"u"?globalThis:window,sU=j7e[atob("ZXZhbA==")];let Rk;try{Rk=sU("true")}catch{Rk=!1}const Ok=(e,t)=>{const n=P({},e);if(n.id==null&&(n.id=Math.round(Math.random()*1e5)),n.operator==null){const r=bd(t)[n.field];n.operator=r&&r.filterOperators[0].value}return n},D7e=Ps(["MUI: The `filterModel` can only contain a single item when the `disableMultipleColumnsFiltering` prop is set to `true`.","If you are using the community version of the `DataGrid`, this prop is always `true`."],"error"),N7e=Ps("MUI: The `id` field is required on `filterModel.items` when you use multiple filters.","error"),z7e=Ps("MUI: The `operator` field is required on `filterModel.items`, one or more of your filtering item has no `operator` provided.","error"),lU=(e,t,n)=>{const r=e.items.length>1;let o;r&&t?(D7e(),o=[e.items[0]]):o=e.items;const i=r&&o.some(s=>s.id==null),a=o.some(s=>s.operator==null);return i&&N7e(),a&&z7e(),a||i?P({},e,{items:o.map(s=>Ok(s,n))}):e.items!==o?P({},e,{items:o}):e},G9=(e,t,n)=>r=>P({},r,{filterModel:lU(e,t,n)}),Zl=e=>typeof e=="string"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e,uU=(e,t)=>{if(!e.field||!e.operator)return null;const n=t.current.getColumn(e.field);if(!n)return null;let r;if(n.valueParser){var o;const y=n.valueParser;r=Array.isArray(e.value)?(o=e.value)==null?void 0:o.map(v=>y(v)):y(e.value)}else r=e.value;const{ignoreDiacritics:i}=t.current.rootProps;i&&(r=Zl(r));const a=P({},e,{value:r}),s=n.filterOperators;if(!(s!=null&&s.length))throw new Error(`MUI: No filter operators found for column '${n.field}'.`);const l=s.find(y=>y.value===a.operator);if(!l)throw new Error(`MUI: No filter operator found for column '${n.field}' and operator value '${a.operator}'.`);const u=!yb(l.getApplyFilterFn),c=!yb(l.getApplyFilterFnV7),f=aU(t);if(l.getApplyFilterFnV7&&!(u&&!c)){const y=l.getApplyFilterFnV7(a,n);return typeof y!="function"?null:{v7:!0,item:a,fn:v=>{let b=t.current.getRowValue(v,n);return i&&(b=Zl(b)),y(b,v,n,f)}}}const p=l.getApplyFilterFn(a,n);return typeof p!="function"?null:{v7:!1,item:a,fn:y=>{const v=t.current.getCellParams(y,a.field);Ek.current=f,i&&(v.value=Zl(v.value));const b=p(v);return Ek.current=null,b}}};let q9=1;const B7e=(e,t,n)=>{const{items:r}=e,o=r.map(l=>uU(l,t)).filter(l=>!!l);if(o.length===0)return null;if(!Rk||n)return(l,u)=>{const c={};for(let f=0;f`const shouldApply${u} = !shouldApplyFilter || shouldApplyFilter(${JSON.stringify(l.item.field)});`).join(` +`)} + + const result$$ = { + ${o.map((l,u)=>`${JSON.stringify(String(l.item.id))}: + !shouldApply${u} ? + false : + ${l.v7?`appliers[${u}].fn(row)`:`appliers[${u}].fn(getRowId(row))`}, + `).join(` +`)}}; + + return result$$; + })`,a=sU(i.replaceAll("$$",String(q9))),s=(l,u)=>a(t.current.getRowId,o,l,u);return q9+=1,s},H7e=(e,t)=>{var n,r,o;const i=(n=(r=e.quickFilterValues)==null?void 0:r.filter(Boolean))!=null?n:[];if(i.length===0)return null;const s=((o=e.quickFilterExcludeHiddenColumns)!=null?o:!1)?aw(t):ol(t),l=[],{ignoreDiacritics:u}=t.current.rootProps,c=aU(t);return s.forEach(f=>{const p=t.current.getColumn(f),y=p==null?void 0:p.getApplyQuickFilterFn,v=p==null?void 0:p.getApplyQuickFilterFnV7,b=!yb(y),C=!yb(v);v&&!(b&&!C)?l.push({column:p,appliers:i.map(x=>{const w=u?Zl(x):x;return{v7:!0,fn:v(w,p,c)}})}):y&&l.push({column:p,appliers:i.map(x=>{const w=u?Zl(x):x;return{v7:!1,fn:y(w,p,c)}})})}),function(p,y){const v={},b={};e:for(let x=0;x{const r=B7e(e,t,n),o=H7e(e,t);return function(a,s,l){var u,c;l.passingFilterItems=(u=r==null?void 0:r(a,s))!=null?u:null,l.passingQuickFilterValues=(c=o==null?void 0:o(a,s))!=null?c:null}},K9=e=>e!=null,V7e=(e,t,n)=>(e.cleanedFilterItems||(e.cleanedFilterItems=n.filter(r=>uU(r,t)!==null)),e.cleanedFilterItems),U7e=(e,t,n,r,o)=>{const i=V7e(o,r,n.items),a=e.filter(K9),s=t.filter(K9);if(a.length>0){var l;const c=p=>a.some(y=>y[p.id]);if(((l=n.logicOperator)!=null?l:zg().logicOperator)===Bo.And){if(!i.every(c))return!1}else if(!i.some(c))return!1}if(s.length>0&&n.quickFilterValues!=null){var u;const c=p=>s.some(y=>y[p]);if(((u=n.quickFilterLogicOperator)!=null?u:zg().quickFilterLogicOperator)===Bo.And){if(!n.quickFilterValues.every(c))return!1}else if(!n.quickFilterValues.some(c))return!1}return!0},Y9=T0(e=>{if(!e)return null;const t=new RegExp(V1(e),"i");return(n,r,o,i)=>{let a=i.current.getRowFormattedValue(r,o);return i.current.ignoreDiacritics&&(a=Zl(a)),a!=null?t.test(a.toString()):!1}}),G7e=(e=!1)=>I0([{value:"contains",getApplyFilterFnV7:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(V1(n),"i");return o=>o!=null?r.test(String(o)):!1},InputComponent:Za},{value:"equals",getApplyFilterFnV7:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return o=>o!=null?r.compare(n,o.toString())===0:!1},InputComponent:Za},{value:"startsWith",getApplyFilterFnV7:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(`^${V1(n)}.*$`,"i");return o=>o!=null?r.test(o.toString()):!1},InputComponent:Za},{value:"endsWith",getApplyFilterFnV7:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(`.*${V1(n)}$`,"i");return o=>o!=null?r.test(o.toString()):!1},InputComponent:Za},{value:"isEmpty",getApplyFilterFnV7:()=>t=>t===""||t==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFnV7:()=>t=>t!==""&&t!=null,requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFnV7:t=>{if(!Array.isArray(t.value)||t.value.length===0)return null;const n=e?t.value:t.value.map(o=>o.trim()),r=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return o=>o!=null?n.some(i=>r.compare(i,o.toString()||"")===0):!1},InputComponent:oU}]),Ea={width:100,minWidth:50,maxWidth:1/0,hideable:!0,sortable:!0,resizable:!0,filterable:!0,groupable:!0,pinnable:!0,aggregable:!0,editable:!1,sortComparator:uFe,type:"string",align:"left",filterOperators:G7e(),renderEditCell:R8e,getApplyQuickFilterFn:iU(Y9),getApplyQuickFilterFnV7:Y9},q7e=()=>I0([{value:"is",getApplyFilterFnV7:e=>{if(!e.value)return null;const t=e.value==="true";return n=>!!n===t},InputComponent:KLe}]);function K7e({value:e,api:t}){return e?t.getLocaleText("booleanCellTrueLabel"):t.getLocaleText("booleanCellFalseLabel")}const Y7e=e=>{switch(e.toLowerCase().trim()){case"true":case"yes":case"1":return!0;case"false":case"no":case"0":case"null":case"undefined":return!1;default:return}},cU=P({},Ea,{type:"boolean",align:"center",headerAlign:"center",renderCell:b8e,renderEditCell:S8e,sortComparator:XV,valueFormatter:K7e,filterOperators:q7e(),getApplyQuickFilterFn:void 0,getApplyQuickFilterFnV7:void 0,aggregable:!1,pastedValueParser:e=>Y7e(e)}),Ll="__check__",ih=P({},cU,{field:Ll,type:"checkboxSelection",width:50,resizable:!1,sortable:!1,filterable:!1,aggregable:!1,disableColumnMenu:!0,disableReorder:!0,disableExport:!0,getApplyQuickFilterFn:void 0,getApplyQuickFilterFnV7:void 0,valueGetter:e=>gb(e.api.state,e.api.instanceId)[e.id]!==void 0,renderHeader:e=>m.jsx(SFe,P({},e)),renderCell:e=>m.jsx(xFe,P({},e))}),gw="actions",X7e=P({},Ea,{sortable:!1,filterable:!1,aggregable:!1,width:100,align:"center",headerAlign:"center",headerName:"",disableColumnMenu:!0,disableExport:!0,renderCell:X8e,getApplyQuickFilterFn:void 0,getApplyQuickFilterFnV7:void 0}),XT="__detail_panel_toggle__",Co=e=>e.editRows,Q7e=["selected","hovered","rowId","row","index","style","position","rowHeight","className","visibleColumns","renderedColumns","containerWidth","firstColumnToRender","lastColumnToRender","isLastVisible","focusedCellColumnIndexNotInRange","isNotVisible","focusedCell","tabbableCell","onClick","onDoubleClick","onMouseEnter","onMouseLeave","onMouseOut","onMouseOver"],Z7e=e=>{const{editable:t,editing:n,selected:r,isLastVisible:o,rowHeight:i,classes:a}=e;return Ke({root:["row",r&&"selected",t&&"row--editable",n&&"row--editing",o&&"row--lastVisible",i==="auto"&&"row--dynamicHeight"]},Jt,a)};function J7e({width:e}){if(!e)return null;const t={width:e};return m.jsx("div",{className:`${le.cell} ${le.withBorderColor}`,style:t})}const eje=g.forwardRef(function(t,n){const{selected:r,hovered:o,rowId:i,row:a,index:s,style:l,position:u,rowHeight:c,className:f,visibleColumns:p,renderedColumns:y,containerWidth:v,firstColumnToRender:b,isLastVisible:C=!1,focusedCellColumnIndexNotInRange:x,isNotVisible:w,focusedCell:S,onClick:$,onDoubleClick:T,onMouseEnter:k,onMouseLeave:M,onMouseOut:E,onMouseOver:N}=t,I=be(t,Q7e),A=Vt(),z=g.useRef(null),L=dt(),O=xd(A,L),j=it(A,LT),H=it(A,zi),B=it(A,uw),D=it(A,P0),W=it(A,Co),U=rn(z,n),Z=s+D+2,Y={selected:r,hovered:o,isLastVisible:C,classes:L.classes,editing:A.current.getRowMode(i)===Bn.Edit,editable:L.editMode===bs.Row,rowHeight:c},se=Z7e(Y);g.useLayoutEffect(()=>{c==="auto"&&z.current&&typeof ResizeObserver>"u"&&A.current.unstable_storeRowHeightMeasurement(i,z.current.clientHeight,u)},[A,c,i,u]),g.useLayoutEffect(()=>{if(O.range){const je=A.current.getRowIndexRelativeToVisibleRows(i);je!=null&&A.current.unstable_setLastMeasuredRowIndex(je)}const ee=z.current;if(!ee||c!=="auto"||typeof ResizeObserver>"u")return;const ye=new ResizeObserver(je=>{const[Ae]=je,Ie=Ae.borderBoxSize&&Ae.borderBoxSize.length>0?Ae.borderBoxSize[0].blockSize:Ae.contentRect.height;A.current.unstable_storeRowHeightMeasurement(i,Ie,u)});return ye.observe(ee),()=>ye.disconnect()},[A,O.range,s,c,i,u]);const Q=g.useCallback((ee,pe)=>ye=>{ye.target.nodeType===1&&!ye.currentTarget.contains(ye.target)||A.current.getRow(i)&&(A.current.publishEvent(ee,A.current.getRowParams(i),ye),pe&&pe(ye))},[A,i]),ne=g.useCallback(ee=>{const pe=r8e(ee.target,le.cell),ye=pe==null?void 0:pe.getAttribute("data-field");if(ye){if(ye===ih.field||ye===XT||ye==="__reorder__"||A.current.getCellMode(i,ye)===Mn.Edit)return;const je=A.current.getColumn(ye);if((je==null?void 0:je.type)===gw)return}Q("rowClick",$)(ee)},[A,$,Q,i]),{slots:re,slotProps:ge,disableColumnReorder:xe}=L,fe=re.cell===Tk?Tk:p8e,Se=L.rowReordering,de=(ee,pe)=>{var ye,je;const Ae=xe&&ee.disableReorder||!Se&&!!H.length&&B>1&&Object.keys(W).length>0,Ie=(ye=(je=W[i])==null?void 0:je[ee.field])!=null?ye:null;let Ce=!1;return x!==void 0&&p[x].field===ee.field&&(Ce=!0),m.jsx(fe,P({column:ee,width:pe.width,rowId:i,height:c,showRightBorder:pe.showRightBorder,align:ee.align||"left",colIndex:pe.indexRelativeToAllColumns,colSpan:pe.colSpan,disableDragEvents:Ae,editCellState:Ie,isNotVisible:Ce},ge==null?void 0:ge.cell),ee.field)},ie=it(A,()=>P({},A.current.unstable_getRowInternalSizes(i)),FT);let Pe=c;if(Pe==="auto"&&ie){let ee=0;const pe=Object.entries(ie).reduce((ye,[je,Ae])=>/^base[A-Z]/.test(je)?(ee+=1,Ae>ye?Ae:ye):ye,0);pe>0&&ee>1&&(Pe=pe)}const $e=g.useMemo(()=>{if(w)return{opacity:0,width:0,height:0};const ee=P({},l,{maxHeight:c==="auto"?"none":c,minHeight:Pe});if(ie!=null&&ie.spacingTop){const pe=L.rowSpacingType==="border"?"borderTopWidth":"marginTop";ee[pe]=ie.spacingTop}if(ie!=null&&ie.spacingBottom){const pe=L.rowSpacingType==="border"?"borderBottomWidth":"marginBottom";let ye=ee[pe];typeof ye!="number"&&(ye=parseInt(ye||"0",10)),ye+=ie.spacingBottom,ee[pe]=ye}return ee},[w,c,l,Pe,ie,L.rowSpacingType]),me=A.current.unstable_applyPipeProcessors("rowClassName",[],i);if(typeof L.getRowClassName=="function"){var ue;const ee=s-(((ue=O.range)==null?void 0:ue.firstRowIndex)||0),pe=P({},A.current.getRowParams(i),{isFirstVisible:ee===0,isLastVisible:ee===O.rows.length-1,indexRelativeToCurrentPage:ee});me.push(L.getRowClassName(pe))}const ce=q9e(1e4,20,80),Te=A.current.getRowNode(i);if(!Te)return null;const Le=Te.type,Re=[];for(let ee=0;ee0&&m.jsx(J7e,{width:Oe})]}))}),tje=pw(eje);function nje({privateApiRef:e,props:t,children:n}){const r=g.useRef(e.current.getPublicApi());return m.jsx(gV.Provider,{value:t,children:m.jsx(vV.Provider,{value:e,children:m.jsx(mV.Provider,{value:r,children:n})})})}const rje=U9e()&&window.localStorage.getItem("DEBUG")!=null,fm=()=>{},oje={debug:fm,info:fm,warn:fm,error:fm},X9=["debug","info","warn","error"];function Q9(e,t,n=console){const r=X9.indexOf(t);if(r===-1)throw new Error(`MUI: Log level ${t} not recognized.`);return X9.reduce((i,a,s)=>(s>=r?i[a]=(...l)=>{const[u,...c]=l;n[a](`MUI: ${e} - ${u}`,...c)}:i[a]=fm,i),{})}const ije=(e,t)=>{const n=g.useCallback(r=>rje?Q9(r,"debug",t.logger):t.logLevel?Q9(r,t.logLevel.toString(),t.logger):oje,[t.logLevel,t.logger]);Xt(e,{getLogger:n},"private")};class QT{static create(t){return new QT(t)}constructor(t){this.value=void 0,this.listeners=void 0,this.subscribe=n=>(this.listeners.add(n),()=>{this.listeners.delete(n)}),this.getSnapshot=()=>this.value,this.update=n=>{this.value=n,this.listeners.forEach(r=>r(n))},this.value=t,this.listeners=new Set}}class aje{constructor(){this.maxListeners=20,this.warnOnce=!1,this.events={}}on(t,n,r={}){let o=this.events[t];o||(o={highPriority:new Map,regular:new Map},this.events[t]=o),r.isFirst?o.highPriority.set(n,!0):o.regular.set(n,!0)}removeListener(t,n){this.events[t]&&(this.events[t].regular.delete(n),this.events[t].highPriority.delete(n))}removeAllListeners(){this.events={}}emit(t,...n){const r=this.events[t];if(!r)return;const o=Array.from(r.highPriority.keys()),i=Array.from(r.regular.keys());for(let a=o.length-1;a>=0;a-=1){const s=o[a];r.highPriority.has(s)&&s.apply(this,n)}for(let a=0;ae.isPropagationStopped!==void 0;let Z9=0;function lje(e){var t;const n=(t=e.current)==null?void 0:t[dU];if(n)return n;const r={},o={state:r,store:QT.create(r),instanceId:{id:Z9}};return Z9+=1,o.getPublicApi=()=>e.current,o.register=(i,a)=>{Object.keys(a).forEach(s=>{const l=a[s],u=o[s];if((u==null?void 0:u.spying)===!0?u.target=l:o[s]=l,i==="public"){const c=e.current,f=c[s];(f==null?void 0:f.spying)===!0?f.target=l:c[s]=l}})},o.register("private",{caches:{},eventManager:new aje}),o}function uje(e){return{get state(){return e.current.state},get store(){return e.current.store},get instanceId(){return e.current.instanceId},[dU]:e.current}}function cje(e,t){const n=g.useRef(),r=g.useRef();r.current||(r.current=lje(n)),n.current||(n.current=uje(r));const o=g.useCallback((...a)=>{const[s,l,u={}]=a;if(u.defaultMuiPrevented=!1,sje(u)&&u.isPropagationStopped())return;const c=t.signature===hs.DataGridPro?{api:r.current.getPublicApi()}:{};r.current.eventManager.emit(s,l,u,c)},[r,t.signature]),i=g.useCallback((a,s,l)=>{r.current.eventManager.on(a,s,l);const u=r.current;return()=>{u.eventManager.removeListener(a,s)}},[r]);return Xt(r,{subscribeEvent:i,publishEvent:o},"public"),g.useImperativeHandle(e,()=>n.current,[n]),g.useEffect(()=>{const a=r.current;return()=>{a.publishEvent("unmount")}},[r]),r}const dje=(e,t)=>{const n=g.useCallback(r=>{if(t.localeText[r]==null)throw new Error(`Missing translation for key ${r}.`);return t.localeText[r]},[t.localeText]);e.current.register("public",{getLocaleText:n})};function Hg(e){"@babel/helpers - typeof";return Hg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hg(e)}function fje(e,t){if(Hg(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Hg(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Wg(e){var t=fje(e,"string");return Hg(t)==="symbol"?t:String(t)}const pje=e=>{const t=g.useRef({}),n=g.useRef(!1),r=g.useCallback(c=>{n.current||!c||(n.current=!0,Object.values(c.appliers).forEach(f=>{f()}),n.current=!1)},[]),o=g.useCallback((c,f,p)=>{t.current[c]||(t.current[c]={processors:new Map,appliers:{}});const y=t.current[c];return y.processors.get(f)!==p&&(y.processors.set(f,p),r(y)),()=>{t.current[c].processors.set(f,null)}},[r]),i=g.useCallback((c,f,p)=>(t.current[c]||(t.current[c]={processors:new Map,appliers:{}}),t.current[c].appliers[f]=p,()=>{const y=t.current[c].appliers,v=be(y,[f].map(Wg));t.current[c].appliers=v}),[]),a=g.useCallback(c=>{const f=t.current[c];r(f)},[r]),s=g.useCallback((...c)=>{const[f,p,y]=c;return t.current[f]?Array.from(t.current[f].processors.values()).reduce((b,C)=>C?C(b,y):b,p):p},[]),l={registerPipeProcessor:o,registerPipeApplier:i,requestPipeProcessorsApplication:a},u={unstable_applyPipeProcessors:s};Xt(e,l,"private"),Xt(e,u,"public")},Or=(e,t,n)=>{const r=g.useRef(),o=g.useRef(`mui-${Math.round(Math.random()*1e9)}`),i=g.useCallback(()=>{r.current=e.current.registerPipeProcessor(t,o.current,n)},[e,n,t]);M0(()=>{i()});const a=g.useRef(!0);g.useEffect(()=>(a.current?a.current=!1:i(),()=>{r.current&&(r.current(),r.current=null)}),[i])},ZT=(e,t,n)=>{const r=g.useRef(),o=g.useRef(`mui-${Math.round(Math.random()*1e9)}`),i=g.useCallback(()=>{r.current=e.current.registerPipeApplier(t,o.current,n)},[e,n,t]);M0(()=>{i()});const a=g.useRef(!0);g.useEffect(()=>(a.current?a.current=!1:i(),()=>{r.current&&(r.current(),r.current=null)}),[i])},bb=(e,t,n,r)=>{const o=g.useCallback(()=>{e.current.registerStrategyProcessor(t,n,r)},[e,r,n,t]);M0(()=>{o()});const i=g.useRef(!0);g.useEffect(()=>{i.current?i.current=!1:o()},[o])},nd="none",J9={rowTreeCreation:"rowTree",filtering:"rowTree",sorting:"rowTree",visibleRowsLookupCreation:"rowTree"},hje=e=>{const t=g.useRef(new Map),n=g.useRef({}),r=g.useCallback((l,u,c)=>{const f=()=>{const v=n.current[u],b=be(v,[l].map(Wg));n.current[u]=b};n.current[u]||(n.current[u]={});const p=n.current[u],y=p[l];return p[l]=c,!y||y===c||l===e.current.getActiveStrategy(J9[u])&&e.current.publishEvent("activeStrategyProcessorChange",u),f},[e]),o=g.useCallback((l,u)=>{const c=e.current.getActiveStrategy(J9[l]);if(c==null)throw new Error("Can't apply a strategy processor before defining an active strategy");const f=n.current[l];if(!f||!f[c])throw new Error(`No processor found for processor "${l}" on strategy "${c}"`);const p=f[c];return p(u)},[e]),i=g.useCallback(l=>{var u;const f=Array.from(t.current.entries()).find(([,p])=>p.group!==l?!1:p.isAvailable());return(u=f==null?void 0:f[0])!=null?u:nd},[]),a=g.useCallback((l,u,c)=>{t.current.set(u,{group:l,isAvailable:c}),e.current.publishEvent("strategyAvailabilityChange")},[e]);Xt(e,{registerStrategyProcessor:r,applyStrategyProcessor:o,getActiveStrategy:i,setStrategyAvailability:a},"private")},mje=(e,t)=>{const n=g.useRef({}),[,r]=g.useState(),o=g.useCallback(c=>{n.current[c.stateId]=c},[]),i=g.useCallback((c,f)=>{let p;if(HV(c)?p=c(e.current.state):p=c,e.current.state===p)return!1;let y=!1;const v=[];if(Object.keys(n.current).forEach(b=>{const C=n.current[b],x=C.stateSelector(e.current.state,e.current.instanceId),w=C.stateSelector(p,e.current.instanceId);w!==x&&(v.push({stateId:C.stateId,hasPropChanged:w!==C.propModel}),C.propModel!==void 0&&w!==C.propModel&&(y=!0))}),v.length>1)throw new Error(`You're not allowed to update several sub-state in one transaction. You already updated ${v[0].stateId}, therefore, you're not allowed to update ${v.map(b=>b.stateId).join(", ")} in the same transaction.`);if(y||(e.current.state=p,e.current.publishEvent&&e.current.publishEvent("stateChange",p),e.current.store.update(p)),v.length===1){const{stateId:b,hasPropChanged:C}=v[0],x=n.current[b],w=x.stateSelector(p,e.current.instanceId);if(x.propOnChange&&C){const S=t.signature===hs.DataGridPro?{api:e.current,reason:f}:{reason:f};x.propOnChange(w,S)}y||e.current.publishEvent(x.changeEvent,w,{reason:f})}return!y},[e,t.signature]),a=g.useCallback((c,f,p)=>e.current.setState(y=>P({},y,{[c]:f(y[c])}),p),[e]),s=g.useCallback(()=>r(()=>e.current.state),[e]),l={setState:i,forceUpdate:s},u={updateControlState:a,registerControlState:o};Xt(e,l,"public"),Xt(e,u,"private")},gje=(e,t)=>{const n=cje(e,t);return ije(n,t),mje(n,t),pje(n),hje(n),dje(n,t),n.current.register("private",{rootProps:t}),n},Fo=(e,t,n)=>{const r=g.useRef(!1);r.current||(t.current.state=e(t.current.state,n,t),r.current=!0)},vje=/(\d+)-(\d+)-(\d+)/,yje=/(\d+)-(\d+)-(\d+)T(\d+):(\d+)/;function of(e,t,n,r){if(!e.value)return null;const[o,i,a,s,l]=e.value.match(n?yje:vje).slice(1).map(Number),u=new Date(o,i-1,a,s||0,l||0).getTime();return c=>{if(!c)return!1;if(r)return t(c.getTime(),u);const p=new Date(c).setHours(n?c.getHours():0,n?c.getMinutes():0,0,0);return t(p,u)}}const fU=e=>I0([{value:"is",getApplyFilterFnV7:t=>of(t,(n,r)=>n===r,e),InputComponent:rf,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"not",getApplyFilterFnV7:t=>of(t,(n,r)=>n!==r,e),InputComponent:rf,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"after",getApplyFilterFnV7:t=>of(t,(n,r)=>n>r,e),InputComponent:rf,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrAfter",getApplyFilterFnV7:t=>of(t,(n,r)=>n>=r,e),InputComponent:rf,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"before",getApplyFilterFnV7:t=>of(t,(n,r)=>nof(t,(n,r)=>n<=r,e),InputComponent:rf,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"isEmpty",getApplyFilterFnV7:()=>t=>t==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFnV7:()=>t=>t!=null,requiresFilterValue:!1}]);function pU({value:e,columnType:t,rowId:n,field:r}){if(!(e instanceof Date))throw new Error([`MUI: \`${t}\` column type only accepts \`Date\` objects as values.`,"Use `valueGetter` to transform the value into a `Date` object.",`Row ID: ${n}, field: "${r}".`].join(` +`))}function bje({value:e,field:t,id:n}){return e?(pU({value:e,columnType:"date",rowId:n,field:t}),e.toLocaleDateString()):""}function xje({value:e,field:t,id:n}){return e?(pU({value:e,columnType:"dateTime",rowId:n,field:t}),e.toLocaleString()):""}const wje=P({},Ea,{type:"date",sortComparator:QV,valueFormatter:bje,filterOperators:fU(),renderEditCell:LV,pastedValueParser:e=>new Date(e)}),Cje=P({},Ea,{type:"dateTime",sortComparator:QV,valueFormatter:xje,filterOperators:fU(!0),renderEditCell:LV,pastedValueParser:e=>new Date(e)}),zl=e=>e==null?null:Number(e),eF=T0(e=>e==null||Number.isNaN(e)||e===""?null:t=>zl(t)===zl(e)),Sje=()=>I0([{value:"=",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>zl(t)===e.value,InputComponent:Za,InputComponentProps:{type:"number"}},{value:"!=",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>zl(t)!==e.value,InputComponent:Za,InputComponentProps:{type:"number"}},{value:">",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:zl(t)>e.value,InputComponent:Za,InputComponentProps:{type:"number"}},{value:">=",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:zl(t)>=e.value,InputComponent:Za,InputComponentProps:{type:"number"}},{value:"<",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:zl(t)e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:zl(t)<=e.value,InputComponent:Za,InputComponentProps:{type:"number"}},{value:"isEmpty",getApplyFilterFnV7:()=>e=>e==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFnV7:()=>e=>e!=null,requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFnV7:e=>!Array.isArray(e.value)||e.value.length===0?null:t=>t!=null&&e.value.includes(Number(t)),InputComponent:oU,InputComponentProps:{type:"number"}}]),$je=P({},Ea,{type:"number",align:"right",headerAlign:"right",sortComparator:XV,valueParser:e=>e===""?null:Number(e),valueFormatter:({value:e})=>V9e(e)?e.toLocaleString():e||"",filterOperators:Sje(),getApplyQuickFilterFn:iU(eF),getApplyQuickFilterFnV7:eF}),af=e=>e==null||!UT(e)?e:e.value,_je=()=>I0([{value:"is",getApplyFilterFnV7:e=>e.value==null||e.value===""?null:t=>af(t)===af(e.value),InputComponent:V9},{value:"not",getApplyFilterFnV7:e=>e.value==null||e.value===""?null:t=>af(t)!==af(e.value),InputComponent:V9},{value:"isAnyOf",getApplyFilterFnV7:e=>{if(!Array.isArray(e.value)||e.value.length===0)return null;const t=e.value.map(af);return n=>t.includes(af(n))},InputComponent:e7e}]),kje=e=>typeof e[0]=="object",Pje=e=>UT(e)?e.value:e,Mje=e=>UT(e)?e.label:String(e),Tje=P({},Ea,{type:"singleSelect",getOptionLabel:Mje,getOptionValue:Pje,valueFormatter(e){const{id:t,field:n,value:r,api:o}=e,i=e.api.getColumn(n);if(!Mc(i))return"";let a;if(typeof i.valueOptions=="function"?a=i.valueOptions({id:t,row:t?o.getRow(t):null,field:n}):a=i.valueOptions,r==null)return"";if(!a)return r;if(!kje(a))return i.getOptionLabel(r);const s=a.find(l=>i.getOptionValue(l)===r);return s?i.getOptionLabel(s):""},renderEditCell:H8e,filterOperators:_je(),pastedValueParser:(e,t)=>{const n=t.colDef,r=n.valueOptions,o=typeof r=="function"?r({field:n.field}):r||[],i=n.getOptionValue;if(o.find(s=>i(s)===e))return e}}),hU="__default__",Ije=()=>({string:Ea,number:$je,date:wje,dateTime:Cje,boolean:cU,singleSelect:Tje,[gw]:X7e,[hU]:Ea});function Ak(e,t){return typeof e=="string"&&[t,` +`,"\r",'"'].some(n=>e.includes(n))?`"${e.replace(/"/g,'""')}"`:e}const mU=(e,t)=>{const{delimiterCharacter:n,ignoreValueFormatter:r}=t;let o;if(r){var i;const s=e.colDef.type;if(s==="number")o=String(e.value);else if(s==="date"||s==="dateTime"){var a;o=(a=e.value)==null?void 0:a.toISOString()}else typeof((i=e.value)==null?void 0:i.toString)=="function"?o=e.value.toString():o=e.value}else o=e.formattedValue;return Ak(o,n)};Ps(["MUI: When the value of a field is an object or a `renderCell` is provided, the CSV export might not display the value correctly.","You can provide a `valueFormatter` with a string representation to be used."]);class Fk{constructor(t){this.options=void 0,this.rowString="",this.isEmpty=!0,this.options=t}addValue(t){this.isEmpty||(this.rowString+=this.options.delimiterCharacter),t==null?this.rowString+="":typeof this.options.sanitizeCellValue=="function"?this.rowString+=this.options.sanitizeCellValue(t,this.options.delimiterCharacter):this.rowString+=t,this.isEmpty=!1}getRowString(){return this.rowString}}const Eje=({id:e,columns:t,getCellParams:n,delimiterCharacter:r,ignoreValueFormatter:o})=>{const i=new Fk({delimiterCharacter:r});return t.forEach(a=>{const s=n(e,a.field);i.addValue(mU(s,{delimiterCharacter:r,ignoreValueFormatter:o}))}),i.getRowString()};function Rje(e){const{columns:t,rowIds:n,delimiterCharacter:r,includeHeaders:o,includeColumnGroupsHeaders:i,ignoreValueFormatter:a,apiRef:s}=e,l=n.reduce((y,v)=>`${y}${Eje({id:v,columns:t,getCellParams:s.current.getCellParams,delimiterCharacter:r,ignoreValueFormatter:a})}\r +`,"").trim();if(!o)return l;const u=t.filter(y=>y.field!==ih.field),c=[];if(i){const y=s.current.unstable_getAllGroupDetails();let v=0;const b=u.reduce((C,x)=>{const w=s.current.unstable_getColumnGroupPath(x.field);return C[x.field]=w,v=Math.max(v,w.length),C},{});for(let C=0;C{const S=(b[w.field]||[])[C],$=y[S];x.addValue($?$.headerName||$.groupId:"")})}}const f=new Fk({delimiterCharacter:r,sanitizeCellValue:Ak});return u.forEach(y=>{f.addValue(y.headerName||y.field)}),c.push(f),`${`${c.map(y=>y.getRowString()).join(`\r +`)}\r +`}${l}`.trim()}function tF(e){const t=document.createElement("span");t.style.whiteSpace="pre",t.style.userSelect="all",t.style.opacity="0px",t.textContent=e,document.body.appendChild(t);const n=document.createRange();n.selectNode(t);const r=window.getSelection();r.removeAllRanges(),r.addRange(n);try{document.execCommand("copy")}finally{document.body.removeChild(t)}}function Oje(e){navigator.clipboard?navigator.clipboard.writeText(e).catch(()=>{tF(e)}):tF(e)}function Aje(e){var t;return!!((t=window.getSelection())!=null&&t.toString()||e&&(e.selectionEnd||0)-(e.selectionStart||0)>0)}const Fje=(e,t)=>{const n=t.unstable_ignoreValueFormatterDuringExport,r=(typeof n=="object"?n==null?void 0:n.clipboardExport:n)||!1,o=t.clipboardCopyCellDelimiter,i=g.useCallback(a=>{if(!((a.ctrlKey||a.metaKey)&&a.key==="c")||Aje(a.target))return;let s="";if(e.current.getSelectedRows().size>0)s=e.current.getDataAsCsv({includeHeaders:!1,delimiter:o});else{const u=ci(e);if(u){const c=e.current.getCellParams(u.id,u.field);s=mU(c,{delimiterCharacter:o,ignoreValueFormatter:r})}}s=e.current.unstable_applyPipeProcessors("clipboardCopy",s),s&&(Oje(s),e.current.publishEvent("clipboardCopy",s))},[e,r,o]);K9e(e,e.current.rootElementRef,"keydown",i),Yn(e,"clipboardCopy",t.onClipboardCopy)},Lje=e=>P({},e,{columnMenu:{open:!1}}),jje=e=>{const t=vo(e,"useGridColumnMenu"),n=g.useCallback(a=>{e.current.setState(l=>l.columnMenu.open&&l.columnMenu.field===a?l:(t.debug("Opening Column Menu"),P({},l,{columnMenu:{open:!0,field:a}})))&&(e.current.hidePreferences(),e.current.forceUpdate())},[e,t]),r=g.useCallback(()=>{const a=Mk(e.current.state);if(a.field){const l=bd(e),u=Ma(e),c=ol(e);let f=a.field;if(l[f]||(f=c[0]),u[f]===!1){const p=c.filter(v=>v===f?!0:u[v]!==!1),y=p.indexOf(f);f=p[y+1]||p[y-1]}e.current.setColumnHeaderFocus(f)}e.current.setState(l=>!l.columnMenu.open&&l.columnMenu.field===void 0?l:(t.debug("Hiding Column Menu"),P({},l,{columnMenu:P({},l.columnMenu,{open:!1,field:void 0})})))&&e.current.forceUpdate()},[e,t]),o=g.useCallback(a=>{t.debug("Toggle Column Menu");const s=Mk(e.current.state);!s.open||s.field!==a?n(a):r()},[e,t,n,r]);Xt(e,{showColumnMenu:n,hideColumnMenu:r,toggleColumnMenu:o},"public"),bt(e,"columnResizeStart",r),bt(e,"virtualScrollerWheel",e.current.hideColumnMenu),bt(e,"virtualScrollerTouchMove",e.current.hideColumnMenu)},gU=["maxWidth","minWidth","width","flex"];function Dje({initialFreeSpace:e,totalFlexUnits:t,flexColumns:n}){const r=new Set(n.map(a=>a.field)),o={all:{},frozenFields:[],freeze:a=>{const s=o.all[a];s&&s.frozen!==!0&&(o.all[a].frozen=!0,o.frozenFields.push(a))}};function i(){if(o.frozenFields.length===r.size)return;const a={min:{},max:{}};let s=e,l=t,u=0;o.frozenFields.forEach(c=>{s-=o.all[c].computedWidth,l-=o.all[c].flex});for(let c=0;cf.maxWidth&&(u+=f.maxWidth-y,y=f.maxWidth,a.max[f.field]=!0),o.all[f.field]={frozen:!1,computedWidth:y,flex:f.flex}}u<0?Object.keys(a.max).forEach(c=>{o.freeze(c)}):u>0?Object.keys(a.min).forEach(c=>{o.freeze(c)}):n.forEach(({field:c})=>{o.freeze(c)}),i()}return i(),o.all}const Lk=(e,t)=>{const n={};let r=0,o=0;const i=[];e.orderedFields.forEach(s=>{const l=P({},e.lookup[s]);if(e.columnVisibilityModel[s]===!1)l.computedWidth=0;else{let u;l.flex&&l.flex>0?(r+=l.flex,u=0,i.push(l)):u=Ep(l.width||Ea.width,l.minWidth||Ea.minWidth,l.maxWidth||Ea.maxWidth),o+=u,l.computedWidth=u}n[s]=l});const a=Math.max(t-o,0);if(r>0&&t>0){const s=Dje({initialFreeSpace:a,totalFlexUnits:r,flexColumns:i});Object.keys(s).forEach(l=>{n[l].computedWidth=s[l].computedWidth})}return P({},e,{lookup:n})},Nje=(e,t)=>{if(!t)return e;const{orderedFields:n=[],dimensions:r={}}=t,o=Object.keys(r);if(o.length===0&&n.length===0)return e;const i={},a=[];for(let c=0;c!i[c])],l=P({},e.lookup);for(let c=0;c{p[y]=v===-1?1/0:v}),l[f]=p}return P({},e,{orderedFields:s,lookup:l})};function nF(e,t){let n=e[hU];return t&&e[t]&&(n=e[t]),n}const hf=({apiRef:e,columnsToUpsert:t,initialState:n,columnTypes:r,columnVisibilityModel:o=Ma(e),keepOnlyColumnsToUpsert:i=!1})=>{var a,s,l;const u=!e.current.state.columns;let c;if(u)c={orderedFields:[],lookup:{},columnVisibilityModel:o};else{const v=Pc(e.current.state);c={orderedFields:i?[]:[...v.orderedFields],lookup:P({},v.lookup),columnVisibilityModel:o}}let f={};i&&!u&&(f=Object.keys(c.lookup).reduce((v,b)=>P({},v,{[b]:!1}),{})),t.forEach(v=>{const{field:b}=v;f[b]=!0;let C=c.lookup[b];C==null?(C=P({},nF(r,v.type),{field:b,hasBeenResized:!1}),c.orderedFields.push(b)):i&&c.orderedFields.push(b),C&&C.type!==v.type&&(C=P({},nF(r,v.type),{field:b}));let x=C.hasBeenResized;gU.forEach(w=>{v[w]!==void 0&&(x=!0,v[w]===-1&&(v[w]=1/0))}),c.lookup[b]=P({},C,v,{hasBeenResized:x})}),i&&!u&&Object.keys(c.lookup).forEach(v=>{f[v]||delete c.lookup[v]});const p=e.current.unstable_applyPipeProcessors("hydrateColumns",c),y=Nje(p,n);return Lk(y,(a=(s=(l=e.current).getRootDimensions)==null||(s=s.call(l))==null?void 0:s.viewportInnerSize.width)!=null?a:0)},rF=e=>t=>P({},t,{columns:e});function jk({firstColumnToRender:e,apiRef:t,firstRowToRender:n,lastRowToRender:r,visibleRows:o}){let i=e;for(let a=n;a{var r,o,i,a;const s=hf({apiRef:n,columnTypes:vU,columnsToUpsert:t.columns,initialState:(r=t.initialState)==null?void 0:r.columns,columnVisibilityModel:(o=(i=t.columnVisibilityModel)!=null?i:(a=t.initialState)==null||(a=a.columns)==null?void 0:a.columnVisibilityModel)!=null?o:{},keepOnlyColumnsToUpsert:!0});return P({},e,{columns:s})};function Hje(e,t){var n,r;const o=vo(e,"useGridColumns"),i=vU,a=g.useRef(t.columns),s=g.useRef(i);e.current.registerControlState({stateId:"visibleColumns",propModel:t.columnVisibilityModel,propOnChange:t.onColumnVisibilityModelChange,stateSelector:Ma,changeEvent:"columnVisibilityModelChange"});const l=g.useCallback(O=>{o.debug("Updating columns state."),e.current.setState(rF(O)),e.current.forceUpdate(),e.current.publishEvent("columnsChange",O.orderedFields)},[o,e]),u=g.useCallback(O=>bd(e)[O],[e]),c=g.useCallback(()=>ps(e),[e]),f=g.useCallback(()=>Zr(e),[e]),p=g.useCallback((O,j=!0)=>(j?Zr(e):ps(e)).findIndex(B=>B.field===O),[e]),y=g.useCallback(O=>{const j=p(O);return Ip(e)[j]},[e,p]),v=g.useCallback(O=>{Ma(e)!==O&&(e.current.setState(H=>P({},H,{columns:hf({apiRef:e,columnTypes:i,columnsToUpsert:[],initialState:void 0,columnVisibilityModel:O,keepOnlyColumnsToUpsert:!1})})),e.current.forceUpdate())},[e,i]),b=g.useCallback(O=>{const j=hf({apiRef:e,columnTypes:i,columnsToUpsert:O,initialState:void 0,keepOnlyColumnsToUpsert:!1});l(j)},[e,l,i]),C=g.useCallback((O,j)=>{var H;const B=Ma(e),D=(H=B[O])!=null?H:!0;if(j!==D){const W=P({},B,{[O]:j});e.current.setColumnVisibilityModel(W)}},[e]),x=g.useCallback(O=>ol(e).findIndex(H=>H===O),[e]),w=g.useCallback((O,j)=>{const H=ol(e),B=x(O);if(B===j)return;o.debug(`Moving column ${O} to index ${j}`);const D=[...H],W=D.splice(B,1)[0];D.splice(j,0,W),l(P({},Pc(e.current.state),{orderedFields:D}));const U={column:e.current.getColumn(O),targetIndex:e.current.getColumnIndexRelativeToVisibleColumns(O),oldIndex:B};e.current.publishEvent("columnIndexChange",U)},[e,o,l,x]),S=g.useCallback((O,j)=>{var H,B;o.debug(`Updating column ${O} width to ${j}`);const D=Pc(e.current.state),W=D.lookup[O],U=P({},W,{width:j,hasBeenResized:!0});l(Lk(P({},D,{lookup:P({},D.lookup,{[O]:U})}),(H=(B=e.current.getRootDimensions())==null?void 0:B.viewportInnerSize.width)!=null?H:0)),e.current.publishEvent("columnWidthChange",{element:e.current.getColumnHeaderElement(O),colDef:U,width:j})},[e,o,l]),$={getColumn:u,getAllColumns:c,getColumnIndex:p,getColumnPosition:y,getVisibleColumns:f,getColumnIndexRelativeToVisibleColumns:x,updateColumns:b,setColumnVisibilityModel:v,setColumnVisibility:C,setColumnWidth:S},T={setColumnIndex:w};Xt(e,$,"public"),Xt(e,T,t.signature===hs.DataGrid?"private":"public");const k=g.useCallback((O,j)=>{var H,B;const D={},W=Ma(e);(!j.exportOnlyDirtyModels||t.columnVisibilityModel!=null||Object.keys((H=(B=t.initialState)==null||(B=B.columns)==null?void 0:B.columnVisibilityModel)!=null?H:{}).length>0||Object.keys(W).length>0)&&(D.columnVisibilityModel=W),D.orderedFields=ol(e);const Z=ps(e),Y={};return Z.forEach(se=>{if(se.hasBeenResized){const Q={};gU.forEach(ne=>{let re=se[ne];re===1/0&&(re=-1),Q[ne]=re}),Y[se.field]=Q}}),Object.keys(Y).length>0&&(D.dimensions=Y),P({},O,{columns:D})},[e,t.columnVisibilityModel,(n=t.initialState)==null?void 0:n.columns]),M=g.useCallback((O,j)=>{var H;const B=(H=j.stateToRestore.columns)==null?void 0:H.columnVisibilityModel,D=j.stateToRestore.columns;if(B==null&&D==null)return O;const W=hf({apiRef:e,columnTypes:i,columnsToUpsert:[],initialState:D,columnVisibilityModel:B,keepOnlyColumnsToUpsert:!1});return e.current.setState(rF(W)),D!=null&&e.current.publishEvent("columnsChange",W.orderedFields),O},[e,i]),E=g.useCallback((O,j)=>{if(j===Aa.columns){var H;const B=t.slots.columnsPanel;return m.jsx(B,P({},(H=t.slotProps)==null?void 0:H.columnsPanel))}return O},[t.slots.columnsPanel,(r=t.slotProps)==null?void 0:r.columnsPanel]),N=g.useCallback(O=>t.disableColumnSelector?O:[...O,"columnMenuColumnsItem"],[t.disableColumnSelector]);Or(e,"columnMenu",N),Or(e,"exportState",k),Or(e,"restoreState",M),Or(e,"preferencePanel",E);const I=g.useRef(null);bt(e,"viewportInnerSizeChange",O=>{I.current!==O.width&&(I.current=O.width,l(Lk(Pc(e.current.state),O.width)))});const z=g.useCallback(()=>{o.info("Columns pipe processing have changed, regenerating the columns");const O=hf({apiRef:e,columnTypes:i,columnsToUpsert:[],initialState:void 0,keepOnlyColumnsToUpsert:!1});l(O)},[e,o,l,i]);ZT(e,"hydrateColumns",z);const L=g.useRef(!0);g.useEffect(()=>{if(L.current){L.current=!1;return}if(o.info(`GridColumns have changed, new length ${t.columns.length}`),a.current===t.columns&&s.current===i)return;const O=hf({apiRef:e,columnTypes:i,initialState:void 0,columnsToUpsert:t.columns,keepOnlyColumnsToUpsert:!0});a.current=t.columns,s.current=i,l(O)},[o,e,l,t.columns,i]),g.useEffect(()=>{t.columnVisibilityModel!==void 0&&e.current.setColumnVisibilityModel(t.columnVisibilityModel)},[e,o,t.columnVisibilityModel])}const Wje=.7,Vje=1.3,yU={compact:Wje,comfortable:Vje,standard:1},Uje=(e,t)=>P({},e,{density:{value:t.density,factor:yU[t.density]}}),Gje=(e,t)=>{const n=vo(e,"useDensity"),r=g.useCallback(i=>{n.debug(`Set grid density to ${i}`),e.current.setState(a=>{const s=zT(a),l={value:i,factor:yU[i]};return il(s,l)?a:P({},a,{density:l})}),e.current.forceUpdate()},[n,e]);g.useEffect(()=>{e.current.setDensity(t.density)},[e,t.density]),Xt(e,{setDensity:r},"public")};function qje(e,t="csv",n=document.title||"untitled"){const r=`${n}.${t}`;if("download"in HTMLAnchorElement.prototype){const o=URL.createObjectURL(e),i=document.createElement("a");i.href=o,i.download=r,i.click(),setTimeout(()=>{URL.revokeObjectURL(o)});return}throw new Error("MUI: exportAs not supported")}const bU=({apiRef:e,options:t})=>{const n=ps(e);return t.fields?t.fields.reduce((o,i)=>{const a=n.find(s=>s.field===i);return a&&o.push(a),o},[]):(t.allColumns?n:Zr(e)).filter(o=>!o.disableExport)},Kje=({apiRef:e})=>{var t,n;const r=BAe(e),o=_a(e),i=e.current.getSelectedRows(),a=r.filter(c=>o[c].type!=="footer"),s=rh(e),l=(s==null||(t=s.top)==null?void 0:t.map(c=>c.id))||[],u=(s==null||(n=s.bottom)==null?void 0:n.map(c=>c.id))||[];return a.unshift(...l),a.push(...u),i.size>0?a.filter(c=>i.has(c)):a},Yje=(e,t)=>{const n=vo(e,"useGridCsvExport"),r=t.unstable_ignoreValueFormatterDuringExport,o=(typeof r=="object"?r==null?void 0:r.csvExport:r)||!1,i=g.useCallback((u={})=>{var c,f,p;n.debug("Get data as CSV");const y=bU({apiRef:e,options:u}),b=((c=u.getRowsToExport)!=null?c:Kje)({apiRef:e});return Rje({columns:y,rowIds:b,delimiterCharacter:u.delimiter||",",includeHeaders:(f=u.includeHeaders)!=null?f:!0,includeColumnGroupsHeaders:(p=u.includeColumnGroupsHeaders)!=null?p:!0,ignoreValueFormatter:o,apiRef:e})},[n,e,o]),a=g.useCallback(u=>{n.debug("Export data as CSV");const c=i(u),f=new Blob([u!=null&&u.utf8WithBom?new Uint8Array([239,187,191]):"",c],{type:"text/csv"});qje(f,"csv",u==null?void 0:u.fileName)},[n,i]);Xt(e,{getDataAsCsv:i,exportDataAsCsv:a},"public");const l=g.useCallback((u,c)=>{var f;return(f=c.csvOptions)!=null&&f.disableToolbarButton?u:[...u,{component:m.jsx(h7e,{options:c.csvOptions}),componentName:"csvExport"}]},[]);Or(e,"exportMenu",l)},Xje=(e,t)=>{var n,r;const o=P({},UV(t.autoPageSize),(n=t.paginationModel)!=null?n:(r=t.initialState)==null||(r=r.pagination)==null?void 0:r.paginationModel);return GV(o.pageSize,t.signature),P({},e,{pagination:{paginationModel:o}})},U1=(e,t,n)=>r=>{var o;let i=r.paginationModel;const a=(o=n==null?void 0:n.pageSize)!=null?o:i.pageSize,s=VV(e,a);n&&((n==null?void 0:n.page)!==i.page||(n==null?void 0:n.pageSize)!==i.pageSize)&&(i=n);const l=Q9e(i.page,s);return l!==i.page&&(i=P({},i,{page:l})),GV(i.pageSize,t),{paginationModel:i}},Qje=(e,t)=>{var n;const r=vo(e,"useGridPagination"),o=it(e,cw),i=it(e,oh),a=Math.floor(t.rowHeight*i);e.current.registerControlState({stateId:"pagination",propModel:t.paginationModel,propOnChange:t.onPaginationModelChange,stateSelector:Wi,changeEvent:"paginationModelChange"});const s=g.useCallback(b=>{const C=Wi(e);b!==C.page&&(r.debug(`Setting page to ${b}`),e.current.setPaginationModel({page:b,pageSize:C.pageSize}))},[e,r]),l=g.useCallback(b=>{const C=Wi(e);b!==C.pageSize&&(r.debug(`Setting page size to ${b}`),e.current.setPaginationModel({pageSize:b,page:C.page}))},[e,r]),u=g.useCallback(b=>{var C;const x=Wi(e);b!==x&&(r.debug("Setting 'paginationModel' to",b),e.current.updateControlState("pagination",U1((C=t.rowCount)!=null?C:o,t.signature,b),"setPaginationModel"),e.current.forceUpdate())},[e,r,t.rowCount,t.signature,o]);Xt(e,{setPage:s,setPageSize:l,setPaginationModel:u},"public");const f=g.useCallback((b,C)=>{var x;const w=Wi(e);return!C.exportOnlyDirtyModels||t.paginationModel!=null||((x=t.initialState)==null||(x=x.pagination)==null?void 0:x.paginationModel)!=null||w.page!==0&&w.pageSize!==X9e(t.autoPageSize)?P({},b,{pagination:P({},b.pagination,{paginationModel:w})}):b},[e,t.paginationModel,(n=t.initialState)==null||(n=n.pagination)==null?void 0:n.paginationModel,t.autoPageSize]),p=g.useCallback((b,C)=>{var x,w,S;const $=(x=C.stateToRestore.pagination)!=null&&x.paginationModel?P({},UV(t.autoPageSize),(w=C.stateToRestore.pagination)==null?void 0:w.paginationModel):Wi(e);return e.current.updateControlState("pagination",U1((S=t.rowCount)!=null?S:o,t.signature,$),"stateRestorePreProcessing"),b},[e,t.autoPageSize,t.rowCount,t.signature,o]);Or(e,"exportState",f),Or(e,"restoreState",p);const y=()=>{var b;const C=Wi(e);(b=e.current.virtualScrollerRef)!=null&&b.current&&e.current.scrollToIndexes({rowIndex:C.page*C.pageSize}),e.current.forceUpdate()},v=g.useCallback(()=>{const b=e.current.getRootDimensions();if(!t.autoPageSize||!b)return;const C=RV(e),x=Math.floor((b.viewportInnerSize.height-C.top-C.bottom)/a);e.current.setPageSize(x)},[e,t.autoPageSize,a]);bt(e,"viewportInnerSizeChange",v),bt(e,"paginationModelChange",y),g.useEffect(()=>{},[t.rowCount,t.paginationMode]),g.useEffect(()=>{var b;e.current.updateControlState("pagination",U1((b=t.rowCount)!=null?b:o,t.signature,t.paginationModel))},[e,t.paginationModel,t.rowCount,t.paginationMode,o,t.signature]),g.useEffect(()=>{v()},[v])};function Zje(){return new Promise(e=>{requestAnimationFrame(()=>{e()})})}function Jje(e){const t=document.createElement("iframe");return t.style.position="absolute",t.style.width="0px",t.style.height="0px",t.title=e||document.title,t}const eDe=(e,t)=>{const n=vo(e,"useGridPrintExport"),r=g.useRef(null),o=g.useRef(null),i=g.useRef({}),a=g.useRef([]);g.useEffect(()=>{r.current=Gn(e.current.rootElementRef.current)},[e]);const s=g.useCallback((v,b,C)=>new Promise(x=>{const w=bU({apiRef:e,options:{fields:v,allColumns:b}}).map(T=>T.field),S=ps(e),$={};S.forEach(T=>{$[T.field]=w.includes(T.field)}),C&&($[ih.field]=!0),e.current.setColumnVisibilityModel($),x()}),[e]),l=g.useCallback(v=>{const C=v({apiRef:e}).map(x=>e.current.getRow(x));e.current.setRows(C)},[e]),u=g.useCallback((v,b)=>{var C,x;const w=P({copyStyles:!0,hideToolbar:!1,hideFooter:!1,includeCheckboxes:!1},b),S=v.contentDocument;if(!S)return;const $=Bg(e.current.state),T=e.current.rootElementRef.current,k=T.cloneNode(!0),M=k.querySelector(`.${le.main}`);M.style.overflow="visible",k.style.contain="size";const N=k.querySelector(`.${le.columnHeaders}`).querySelector(`.${le.columnHeadersInner}`);N.style.width="100%";let I=((C=T.querySelector(`.${le.toolbarContainer}`))==null?void 0:C.offsetHeight)||0,A=((x=T.querySelector(`.${le.footerContainer}`))==null?void 0:x.offsetHeight)||0;if(w.hideToolbar){var z;(z=k.querySelector(`.${le.toolbarContainer}`))==null||z.remove(),I=0}if(w.hideFooter){var L;(L=k.querySelector(`.${le.footerContainer}`))==null||L.remove(),A=0}const O=$.currentPageTotalHeight+JT(e,t.columnHeaderHeight)+I+A;if(k.style.height=`${O}px`,k.style.boxSizing="content-box",b!=null&&b.getRowsToExport){const D=k.querySelector(`.${le.footerContainer}`);D.style.position="absolute",D.style.width="100%",D.style.top=`${O-A}px`}const j=document.createElement("div");j.appendChild(k),S.body.innerHTML=j.innerHTML;const H=typeof w.pageStyle=="function"?w.pageStyle():w.pageStyle;if(typeof H=="string"){const D=S.createElement("style");D.appendChild(S.createTextNode(H)),S.head.appendChild(D)}w.bodyClassName&&S.body.classList.add(...w.bodyClassName.split(" "));const B=[];if(w.copyStyles){const D=T.getRootNode(),U=(D.constructor.name==="ShadowRoot"?D:r.current).querySelectorAll("style, link[rel='stylesheet']");for(let Z=0;Z{se.addEventListener("load",()=>Q())})),S.head.appendChild(se)}}}Promise.all(B).then(()=>{v.contentWindow.print()})},[e,r,t.columnHeaderHeight]),c=g.useCallback(v=>{var b;r.current.body.removeChild(v),e.current.restoreState(o.current||{}),(b=o.current)!=null&&(b=b.columns)!=null&&b.columnVisibilityModel||e.current.setColumnVisibilityModel(i.current),e.current.unstable_setVirtualization(!0),e.current.setRows(a.current),o.current=null,i.current={},a.current=[]},[e]),p={exportDataAsPrint:g.useCallback(async v=>{if(n.debug("Export data as Print"),!e.current.rootElementRef.current)throw new Error("MUI: No grid root element available.");if(o.current=e.current.exportState(),i.current=Ma(e),a.current=e.current.getSortedRows(),t.pagination){const C=kV(e),x={page:0,pageSize:C};e.current.updateControlState("pagination",U1(C,"DataGridPro",x)),e.current.forceUpdate()}await s(v==null?void 0:v.fields,v==null?void 0:v.allColumns,v==null?void 0:v.includeCheckboxes),v!=null&&v.getRowsToExport&&l(v.getRowsToExport),e.current.unstable_setVirtualization(!1),await Zje();const b=Jje(v==null?void 0:v.fileName);b.onload=()=>{u(b,v),b.contentWindow.matchMedia("print").addEventListener("change",x=>{x.matches===!1&&c(b)})},r.current.body.appendChild(b)},[t,n,e,u,c,s,l])};Xt(e,p,"public");const y=g.useCallback((v,b)=>{var C;return(C=b.printOptions)!=null&&C.disableToolbarButton?v:[...v,{component:m.jsx(m7e,{options:b.printOptions}),componentName:"printExport"}]},[]);Or(e,"exportMenu",y)},tDe=(e,t,n)=>{var r,o,i;const a=(r=(o=t.filterModel)!=null?o:(i=t.initialState)==null||(i=i.filter)==null?void 0:i.filterModel)!=null?r:zg();return P({},e,{filter:{filterModel:lU(a,t.disableMultipleColumnsFiltering,n),filteredRowsLookup:{},filteredDescendantCountLookup:{}},visibleRowsLookup:{}})},nDe=e=>e.filteredRowsLookup;function oF(e,t){return e.current.applyStrategyProcessor("visibleRowsLookupCreation",{tree:t.rows.tree,filteredRowsLookup:t.filter.filteredRowsLookup})}function rDe(){return iw(Object.values)}const oDe=(e,t)=>{var n,r;const o=vo(e,"useGridFilter");e.current.registerControlState({stateId:"filter",propModel:t.filterModel,propOnChange:t.onFilterModelChange,stateSelector:Yr,changeEvent:"filterModelChange"});const i=g.useCallback(()=>{e.current.setState(I=>{const A=Yr(I,e.current.instanceId),z=t.filterMode==="client"?W7e(A,e,t.disableEval):null,L=e.current.applyStrategyProcessor("filtering",{isRowMatchingFilters:z,filterModel:A??zg()}),O=P({},I,{filter:P({},I.filter,L)}),j=oF(e,O);return P({},O,{visibleRowsLookup:j})}),e.current.publishEvent("filteredRowsSet")},[e,t.filterMode,t.disableEval]),a=g.useCallback((I,A)=>A==null||A.filterable===!1||t.disableColumnFilter?I:[...I,"columnMenuFilterItem"],[t.disableColumnFilter]),s=g.useCallback(()=>{i(),e.current.forceUpdate()},[e,i]),l=g.useCallback(I=>{const A=Yr(e),z=[...A.items],L=z.findIndex(O=>O.id===I.id);L===-1?z.push(I):z[L]=I,e.current.setFilterModel(P({},A,{items:z}),"upsertFilterItem")},[e]),u=g.useCallback(I=>{const A=Yr(e),z=[...A.items];I.forEach(L=>{const O=I.findIndex(j=>j.id===L.id);O===-1?z.push(L):z[O]=L}),e.current.setFilterModel(P({},A,{items:I}),"upsertFilterItems")},[e]),c=g.useCallback(I=>{const A=Yr(e),z=A.items.filter(L=>L.id!==I.id);z.length!==A.items.length&&e.current.setFilterModel(P({},A,{items:z}),"deleteFilterItem")},[e]),f=g.useCallback((I,A,z)=>{if(o.debug("Displaying filter panel"),I){const L=Yr(e),O=L.items.filter(D=>{var W;if(D.value!==void 0)return!(Array.isArray(D.value)&&D.value.length===0);const Z=(W=e.current.getColumn(D.field).filterOperators)==null?void 0:W.find(se=>se.value===D.operator);return!(typeof(Z==null?void 0:Z.requiresFilterValue)>"u"?!0:Z==null?void 0:Z.requiresFilterValue)});let j;const H=O.find(D=>D.field===I),B=e.current.getColumn(I);H?j=O:t.disableMultipleColumnsFiltering?j=[Ok({field:I,operator:B.filterOperators[0].value},e)]:j=[...O,Ok({field:I,operator:B.filterOperators[0].value},e)],e.current.setFilterModel(P({},L,{items:j}))}e.current.showPreferences(Aa.filters,A,z)},[e,o,t.disableMultipleColumnsFiltering]),p=g.useCallback(()=>{o.debug("Hiding filter panel"),e.current.hidePreferences()},[e,o]),y=g.useCallback(I=>{const A=Yr(e);A.logicOperator!==I&&e.current.setFilterModel(P({},A,{logicOperator:I}),"changeLogicOperator")},[e]),v=g.useCallback(I=>{const A=Yr(e);il(A.quickFilterValues,I)||e.current.setFilterModel(P({},A,{quickFilterValues:[...I]}))},[e]),b=g.useCallback((I,A)=>{Yr(e)!==I&&(o.debug("Setting filter model"),e.current.updateControlState("filter",G9(I,t.disableMultipleColumnsFiltering,e),A),e.current.unstable_applyFilters())},[e,o,t.disableMultipleColumnsFiltering]),C={setFilterLogicOperator:y,unstable_applyFilters:s,deleteFilterItem:c,upsertFilterItem:l,upsertFilterItems:u,setFilterModel:b,showFilterPanel:f,hideFilterPanel:p,setQuickFilterValues:v,ignoreDiacritics:t.ignoreDiacritics};Xt(e,C,"public");const x=g.useCallback((I,A)=>{var z;const L=Yr(e);return!A.exportOnlyDirtyModels||t.filterModel!=null||((z=t.initialState)==null||(z=z.filter)==null?void 0:z.filterModel)!=null||!il(L,zg())?P({},I,{filter:{filterModel:L}}):I},[e,t.filterModel,(n=t.initialState)==null||(n=n.filter)==null?void 0:n.filterModel]),w=g.useCallback((I,A)=>{var z;const L=(z=A.stateToRestore.filter)==null?void 0:z.filterModel;return L==null?I:(e.current.updateControlState("filter",G9(L,t.disableMultipleColumnsFiltering,e),"restoreState"),P({},I,{callbacks:[...I.callbacks,e.current.unstable_applyFilters]}))},[e,t.disableMultipleColumnsFiltering]),S=g.useCallback((I,A)=>{if(A===Aa.filters){var z;const L=t.slots.filterPanel;return m.jsx(L,P({},(z=t.slotProps)==null?void 0:z.filterPanel))}return I},[t.slots.filterPanel,(r=t.slotProps)==null?void 0:r.filterPanel]),{getRowId:$}=t,T=AT(rDe),k=g.useCallback(I=>{if(t.filterMode!=="client"||!I.isRowMatchingFilters)return{filteredRowsLookup:{},filteredDescendantCountLookup:{}};const A=Ql(e),z={},{isRowMatchingFilters:L}=I,O={},j={passingFilterItems:null,passingQuickFilterValues:null},H=T.current(e.current.state.rows.dataRowIdToModelLookup);for(let W=0;W{o.debug("onColUpdated - GridColumns changed, applying filters");const I=Yr(e),A=kAe(e),z=I.items.filter(L=>L.field&&A[L.field]);z.length{I==="filtering"&&e.current.unstable_applyFilters()},[e]),N=g.useCallback(()=>{e.current.setState(I=>P({},I,{visibleRowsLookup:oF(e,I)})),e.current.forceUpdate()},[e]);bt(e,"rowsSet",i),bt(e,"columnsChange",M),bt(e,"activeStrategyProcessorChange",E),bt(e,"rowExpansionChange",N),bt(e,"columnVisibilityModelChange",()=>{const I=Yr(e);I.quickFilterValues&&I.quickFilterExcludeHiddenColumns&&e.current.unstable_applyFilters()}),M0(()=>{e.current.unstable_applyFilters()}),dn(()=>{t.filterModel!==void 0&&e.current.setFilterModel(t.filterModel)},[e,o,t.filterModel])},iDe=e=>P({},e,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},tabIndex:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}),aDe=(e,t)=>{const n=vo(e,"useGridFocus"),r=g.useRef(null),o=g.useCallback((M,E)=>{M&&e.current.getRow(M.id)&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(M.id,M.field),E)},[e]),i=g.useCallback((M,E)=>{const N=ci(e);(N==null?void 0:N.id)===M&&(N==null?void 0:N.field)===E||(e.current.setState(I=>(n.debug(`Focusing on cell with id=${M} and field=${E}`),P({},I,{tabIndex:{cell:{id:M,field:E},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},focus:{cell:{id:M,field:E},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))),e.current.forceUpdate(),e.current.getRow(M)&&(N&&o(N,{}),e.current.publishEvent("cellFocusIn",e.current.getCellParams(M,E))))},[e,n,o]),a=g.useCallback((M,E={})=>{const N=ci(e);o(N,E),e.current.setState(I=>(n.debug(`Focusing on column header with colIndex=${M}`),P({},I,{tabIndex:{columnHeader:{field:M},columnHeaderFilter:null,cell:null,columnGroupHeader:null},focus:{columnHeader:{field:M},columnHeaderFilter:null,cell:null,columnGroupHeader:null}}))),e.current.forceUpdate()},[e,n,o]),s=g.useCallback((M,E={})=>{const N=ci(e);o(N,E),e.current.setState(I=>(n.debug(`Focusing on column header filter with colIndex=${M}`),P({},I,{tabIndex:{columnHeader:null,columnHeaderFilter:{field:M},cell:null,columnGroupHeader:null},focus:{columnHeader:null,columnHeaderFilter:{field:M},cell:null,columnGroupHeader:null}}))),e.current.forceUpdate()},[e,n,o]),l=g.useCallback((M,E,N={})=>{const I=ci(e);I&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(I.id,I.field),N),e.current.setState(A=>P({},A,{tabIndex:{columnGroupHeader:{field:M,depth:E},columnHeader:null,columnHeaderFilter:null,cell:null},focus:{columnGroupHeader:{field:M,depth:E},columnHeader:null,columnHeaderFilter:null,cell:null}})),e.current.forceUpdate()},[e]),u=g.useCallback(()=>cb(e),[e]),c=g.useCallback((M,E,N)=>{let I=e.current.getColumnIndex(E);const A=Zr(e),z=vb(e,{pagination:t.pagination,paginationMode:t.paginationMode}),L=rh(e),O=[].concat(L.top||[],z.rows,L.bottom||[]);let j=O.findIndex(W=>W.id===M);N==="right"?I+=1:N==="left"?I-=1:j+=1,I>=A.length?(j+=1,j=0&&(I=A.length-1)),j=Ep(j,0,O.length-1);const H=O[j];if(!H)return;const B=e.current.unstable_getCellColSpanInfo(H.id,I);B&&B.spannedByColSpan&&(N==="left"||N==="below"?I=B.leftVisibleCellIndex:N==="right"&&(I=B.rightVisibleCellIndex)),I=Ep(I,0,A.length-1);const D=A[I];e.current.setCellFocus(H.id,D.field)},[e,t.pagination,t.paginationMode]),f=g.useCallback(({id:M,field:E})=>{e.current.setCellFocus(M,E)},[e]),p=g.useCallback((M,E)=>{E.key==="Enter"||E.key==="Tab"||E.key==="Shift"||mb(E.key)||e.current.setCellFocus(M.id,M.field)},[e]),y=g.useCallback(({field:M},E)=>{E.target===E.currentTarget&&e.current.setColumnHeaderFocus(M,E)},[e]),v=g.useCallback(({fields:M,depth:E},N)=>{if(N.target!==N.currentTarget)return;const I=cb(e);I!==null&&I.depth===E&&M.includes(I.field)||e.current.setColumnGroupHeaderFocus(M[0],E,N)},[e]),b=g.useCallback((M,E)=>{var N;(N=E.relatedTarget)!=null&&N.className.includes(le.columnHeader)||(n.debug("Clearing focus"),e.current.setState(I=>P({},I,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})))},[n,e]),C=g.useCallback(M=>{r.current=M},[]),x=g.useCallback(M=>{const E=r.current;r.current=null;const N=ci(e);if(!e.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:M,cell:E}))return;if(!N){E&&e.current.setCellFocus(E.id,E.field);return}if((E==null?void 0:E.id)===N.id&&(E==null?void 0:E.field)===N.field)return;const A=e.current.getCellElement(N.id,N.field);A!=null&&A.contains(M.target)||(E?e.current.setCellFocus(E.id,E.field):(e.current.setState(z=>P({},z,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})),e.current.forceUpdate(),o(N,M)))},[e,o]),w=g.useCallback(M=>{if(M.cellMode==="view")return;const E=ci(e);((E==null?void 0:E.id)!==M.id||(E==null?void 0:E.field)!==M.field)&&e.current.setCellFocus(M.id,M.field)},[e]),S=g.useCallback(()=>{const M=ci(e);M&&!e.current.getRow(M.id)&&e.current.setState(E=>P({},E,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))},[e]),$=Dn(()=>{const M=ci(e);if(!M)return;const E=vb(e,{pagination:t.pagination,paginationMode:t.paginationMode});if(E.rows.find(A=>A.id===M.id))return;const I=Zr(e);e.current.setState(A=>P({},A,{tabIndex:{cell:{id:E.rows[0].id,field:I[0].field},columnGroupHeader:null,columnHeader:null,columnHeaderFilter:null}}))}),T={setCellFocus:i,setColumnHeaderFocus:a,setColumnHeaderFilterFocus:s},k={moveFocusToRelativeCell:c,setColumnGroupHeaderFocus:l,getColumnGroupHeaderFocus:u};Xt(e,T,"public"),Xt(e,k,"private"),g.useEffect(()=>{const M=Gn(e.current.rootElementRef.current);return M.addEventListener("mouseup",x),()=>{M.removeEventListener("mouseup",x)}},[e,x]),bt(e,"columnHeaderBlur",b),bt(e,"cellDoubleClick",f),bt(e,"cellMouseDown",C),bt(e,"cellKeyDown",p),bt(e,"cellModeChange",w),bt(e,"columnHeaderFocus",y),bt(e,"columnGroupHeaderFocus",v),bt(e,"rowsSet",S),bt(e,"paginationModelChange",$)};function sDe(e,t){const n=rh(e)||{};return[...n.top||[],...t,...n.bottom||[]]}const i$=({currentColIndex:e,firstColIndex:t,lastColIndex:n,direction:r})=>{if(r==="rtl"){if(et)return e-1;return null},a$=({currentColIndex:e,firstColIndex:t,lastColIndex:n,direction:r})=>{if(r==="rtl"){if(e>t)return e-1}else if(r==="ltr"&&e{const n=vo(e,"useGridKeyboardNavigation"),r=xd(e,t).rows,o=Wt(),i=g.useMemo(()=>sDe(e,r),[e,r]),a=t.signature!=="DataGrid"&&t.unstable_headerFilters,s=g.useCallback((x,w,S="left")=>{const $=Eu(e),T=e.current.unstable_getCellColSpanInfo(w,x);T&&T.spannedByColSpan&&(S==="left"?x=T.leftVisibleCellIndex:S==="right"&&(x=T.rightVisibleCellIndex));const k=$.findIndex(E=>E.id===w);n.debug(`Navigating to cell row ${k}, col ${x}`),e.current.scrollToIndexes({colIndex:x,rowIndex:k});const M=e.current.getVisibleColumns()[x].field;e.current.setCellFocus(w,M)},[e,n]),l=g.useCallback((x,w)=>{n.debug(`Navigating to header col ${x}`),e.current.scrollToIndexes({colIndex:x});const S=e.current.getVisibleColumns()[x].field;e.current.setColumnHeaderFocus(S,w)},[e,n]),u=g.useCallback((x,w)=>{n.debug(`Navigating to header filter col ${x}`),e.current.scrollToIndexes({colIndex:x});const S=e.current.getVisibleColumns()[x].field;e.current.setColumnHeaderFilterFocus(S,w)},[e,n]),c=g.useCallback((x,w,S)=>{n.debug(`Navigating to header col ${x}`),e.current.scrollToIndexes({colIndex:x});const{field:$}=e.current.getVisibleColumns()[x];e.current.setColumnGroupHeaderFocus($,w,S)},[e,n]),f=g.useCallback(x=>{var w;return(w=i[x])==null?void 0:w.id},[i]),p=g.useCallback((x,w)=>{const S=w.currentTarget.querySelector(`.${le.columnHeaderTitleContainerContent}`);if(!!S&&S.contains(w.target)&&x.field!==ih.field||!e.current.getRootDimensions())return;const k=e.current.getViewportPageSize(),M=x.field?e.current.getColumnIndex(x.field):0,E=i.length>0?0:null,N=i.length-1,I=0,A=Zr(e).length-1,z=P0(e);let L=!0;switch(w.key){case"ArrowDown":{E!==null&&(a?u(M,w):s(M,f(E)));break}case"ArrowRight":{const O=a$({currentColIndex:M,firstColIndex:I,lastColIndex:A,direction:o.direction});O!==null&&l(O,w);break}case"ArrowLeft":{const O=i$({currentColIndex:M,firstColIndex:I,lastColIndex:A,direction:o.direction});O!==null&&l(O,w);break}case"ArrowUp":{z>0&&c(M,z-1,w);break}case"PageDown":{E!==null&&N!==null&&s(M,f(Math.min(E+k,N)));break}case"Home":{l(I,w);break}case"End":{l(A,w);break}case"Enter":{(w.ctrlKey||w.metaKey)&&e.current.toggleColumnMenu(x.field);break}case" ":break;default:L=!1}L&&w.preventDefault()},[e,i.length,a,u,s,f,o.direction,l,c]),y=g.useCallback((x,w)=>{if(!e.current.getRootDimensions())return;const $=cFe(e)===x.field,T=dFe(e)===x.field;if($||T||!mb(w.key))return;const k=e.current.getViewportPageSize(),M=x.field?e.current.getColumnIndex(x.field):0,E=0,N=i.length-1,I=0,A=Zr(e).length-1;let z=!0;switch(w.key){case"ArrowDown":{const L=f(E);L!=null&&s(M,L);break}case"ArrowRight":{const L=a$({currentColIndex:M,firstColIndex:I,lastColIndex:A,direction:o.direction});L!==null&&u(L,w);break}case"ArrowLeft":{const L=i$({currentColIndex:M,firstColIndex:I,lastColIndex:A,direction:o.direction});L!==null?u(L,w):e.current.setColumnHeaderFilterFocus(x.field,w);break}case"ArrowUp":{l(M,w);break}case"PageDown":{N!==null&&s(M,f(Math.min(E+k,N)));break}case"Home":{u(I,w);break}case"End":{u(A,w);break}case" ":break;default:z=!1}z&&w.preventDefault()},[e,i.length,u,o.direction,l,s,f]),v=g.useCallback((x,w)=>{if(!e.current.getRootDimensions())return;const $=cb(e);if($===null)return;const{field:T,depth:k}=$,{fields:M,depth:E,maxDepth:N}=x,I=e.current.getViewportPageSize(),A=e.current.getColumnIndex(T),z=T?e.current.getColumnIndex(T):0,L=0,O=i.length-1,j=0,H=Zr(e).length-1;let B=!0;switch(w.key){case"ArrowDown":{E===N-1?l(A,w):c(A,k+1,w);break}case"ArrowUp":{E>0&&c(A,k-1,w);break}case"ArrowRight":{const D=M.length-M.indexOf(T)-1;A+D+1<=H&&c(A+D+1,k,w);break}case"ArrowLeft":{const D=M.indexOf(T);A-D-1>=j&&c(A-D-1,k,w);break}case"PageDown":{O!==null&&s(z,f(Math.min(L+I,O)));break}case"Home":{c(j,k,w);break}case"End":{c(H,k,w);break}case" ":break;default:B=!1}B&&w.preventDefault()},[e,i.length,l,c,s,f]),b=g.useCallback((x,w)=>{if(!w.currentTarget.contains(w.target))return;const S=e.current.getCellParams(x.id,x.field);if(S.cellMode===Mn.Edit||!mb(w.key)||!e.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:w,cell:S}))return;const T=e.current.getRootDimensions();if(i.length===0||!T)return;const k=o.direction,M=e.current.getViewportPageSize(),E=x.field?e.current.getColumnIndex(x.field):0,N=i.findIndex(j=>j.id===x.id),I=0,A=i.length-1,z=0,L=Zr(e).length-1;let O=!0;switch(w.key){case"ArrowDown":{NI?s(E,f(N-1)):a?u(E,w):l(E,w);break}case"ArrowRight":{const j=a$({currentColIndex:E,firstColIndex:z,lastColIndex:L,direction:k});j!==null&&s(j,f(N),k==="rtl"?"left":"right");break}case"ArrowLeft":{const j=i$({currentColIndex:E,firstColIndex:z,lastColIndex:L,direction:k});j!==null&&s(j,f(N),k==="rtl"?"right":"left");break}case"Tab":{w.shiftKey&&E>z?s(E-1,f(N),"left"):!w.shiftKey&&E=I?s(E,f(j)):l(E,w);break}case"Home":{w.ctrlKey||w.metaKey||w.shiftKey?s(z,f(I)):s(z,f(N));break}case"End":{w.ctrlKey||w.metaKey||w.shiftKey?s(L,f(A)):s(L,f(N));break}default:O=!1}O&&w.preventDefault()},[e,i,o.direction,s,f,a,u,l]),C=g.useCallback((x,{event:w})=>w.key===" "?!1:x,[]);Or(e,"canStartEditing",C),bt(e,"columnHeaderKeyDown",p),bt(e,"headerFilterKeyDown",y),bt(e,"columnGroupHeaderKeyDown",v),bt(e,"cellKeyDown",b)},uDe=(e,t)=>{var n,r;return P({},e,{preferencePanel:(n=(r=t.initialState)==null?void 0:r.preferencePanel)!=null?n:{open:!1}})},cDe=(e,t)=>{var n;const r=vo(e,"useGridPreferencesPanel"),o=g.useRef(),i=g.useRef(),a=g.useCallback(()=>{r.debug("Hiding Preferences Panel");const p=td(e.current.state);p.openedPanelValue&&e.current.publishEvent("preferencePanelClose",{openedPanelValue:p.openedPanelValue}),e.current.setState(y=>P({},y,{preferencePanel:{open:!1}})),e.current.forceUpdate()},[e,r]),s=g.useCallback(()=>{i.current=setTimeout(()=>clearTimeout(o.current),0)},[]),l=g.useCallback(()=>{o.current=setTimeout(a,100)},[a]),u=g.useCallback((p,y,v)=>{r.debug("Opening Preferences Panel"),s(),e.current.setState(b=>P({},b,{preferencePanel:P({},b.preferencePanel,{open:!0,openedPanelValue:p,panelId:y,labelId:v})})),e.current.publishEvent("preferencePanelOpen",{openedPanelValue:p}),e.current.forceUpdate()},[r,s,e]);Xt(e,{showPreferences:u,hidePreferences:l},"public");const c=g.useCallback((p,y)=>{var v;const b=td(e.current.state);return!y.exportOnlyDirtyModels||((v=t.initialState)==null?void 0:v.preferencePanel)!=null||b.open?P({},p,{preferencePanel:b}):p},[e,(n=t.initialState)==null?void 0:n.preferencePanel]),f=g.useCallback((p,y)=>{const v=y.stateToRestore.preferencePanel;return v!=null&&e.current.setState(b=>P({},b,{preferencePanel:v})),p},[e]);Or(e,"exportState",c),Or(e,"restoreState",f),g.useEffect(()=>()=>{clearTimeout(o.current),clearTimeout(i.current)},[])},dDe=["id","field"],fDe=["id","field"],pDe=Ps(["MUI: A call to `processRowUpdate` threw an error which was not handled because `onProcessRowUpdateError` is missing.","To handle the error pass a callback to the `onProcessRowUpdateError` prop, e.g. ` ...} />`.","For more detail, see http://mui.com/components/data-grid/editing/#server-side-persistence."],"error"),hDe=(e,t)=>{const[n,r]=g.useState({}),o=g.useRef(n),i=g.useRef({}),{processRowUpdate:a,onProcessRowUpdateError:s,cellModesModel:l,onCellModesModelChange:u}=t,c=O=>(...j)=>{t.editMode===bs.Cell&&O(...j)},f=g.useCallback((O,j)=>{const H=e.current.getCellParams(O,j);if(!e.current.isCellEditable(H))throw new Error(`MUI: The cell with id=${O} and field=${j} is not editable.`)},[e]),p=g.useCallback((O,j,H)=>{if(e.current.getCellMode(O,j)!==H)throw new Error(`MUI: The cell with id=${O} and field=${j} is not in ${H} mode.`)},[e]),y=g.useCallback((O,j)=>{if(!O.isEditable||O.cellMode===Mn.Edit)return;const H=P({},O,{reason:Al.cellDoubleClick});e.current.publishEvent("cellEditStart",H,j)},[e]),v=g.useCallback((O,j)=>{if(O.cellMode===Mn.View||e.current.getCellMode(O.id,O.field)===Mn.View)return;const H=P({},O,{reason:xa.cellFocusOut});e.current.publishEvent("cellEditStop",H,j)},[e]),b=g.useCallback((O,j)=>{if(O.cellMode===Mn.Edit){if(j.which===229)return;let H;if(j.key==="Escape"?H=xa.escapeKeyDown:j.key==="Enter"?H=xa.enterKeyDown:j.key==="Tab"&&(H=j.shiftKey?xa.shiftTabKeyDown:xa.tabKeyDown,j.preventDefault()),H){const B=P({},O,{reason:H});e.current.publishEvent("cellEditStop",B,j)}}else if(O.isEditable){let H;if(!e.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:j,cellParams:O,editMode:"cell"}))return;if(DV(j)||(j.ctrlKey||j.metaKey)&&j.key==="v"?H=Al.printableKeyDown:j.key==="Enter"?H=Al.enterKeyDown:(j.key==="Delete"||j.key==="Backspace")&&(H=Al.deleteKeyDown),H){const D=P({},O,{reason:H,key:j.key});e.current.publishEvent("cellEditStart",D,j)}}},[e]),C=g.useCallback(O=>{const{id:j,field:H,reason:B,key:D,colDef:W}=O,U={id:j,field:H};if(B===Al.printableKeyDown)if(g.version.startsWith("17"))U.deleteValue=!0;else{const Z=W.valueParser?W.valueParser(D):D;U.initialValue=Z}else B===Al.deleteKeyDown&&(U.deleteValue=!0);e.current.startCellEditMode(U)},[e]),x=g.useCallback(O=>{const{id:j,field:H,reason:B}=O;e.current.runPendingEditCellValueMutation(j,H);let D;B===xa.enterKeyDown?D="below":B===xa.tabKeyDown?D="right":B===xa.shiftTabKeyDown&&(D="left");const W=B==="escapeKeyDown";e.current.stopCellEditMode({id:j,field:H,ignoreModifications:W,cellToFocusAfter:D})},[e]);bt(e,"cellDoubleClick",c(y)),bt(e,"cellFocusOut",c(v)),bt(e,"cellKeyDown",c(b)),bt(e,"cellEditStart",c(C)),bt(e,"cellEditStop",c(x)),Yn(e,"cellEditStart",t.onCellEditStart),Yn(e,"cellEditStop",t.onCellEditStop);const w=g.useCallback((O,j)=>{const H=Co(e.current.state);return H[O]&&H[O][j]?Mn.Edit:Mn.View},[e]),S=Dn(O=>{const j=O!==t.cellModesModel;u&&j&&u(O,{}),!(t.cellModesModel&&j)&&(r(O),o.current=O,e.current.publishEvent("cellModesModelChange",O))}),$=g.useCallback((O,j,H)=>{const B=P({},o.current);if(H!==null)B[O]=P({},B[O],{[j]:P({},H)});else{const D=B[O],W=be(D,[j].map(Wg));B[O]=W,Object.keys(B[O]).length===0&&delete B[O]}S(B)},[S]),T=g.useCallback((O,j,H)=>{e.current.setState(B=>{const D=P({},B.editRows);return H!==null?D[O]=P({},D[O],{[j]:P({},H)}):(delete D[O][j],Object.keys(D[O]).length===0&&delete D[O]),P({},B,{editRows:D})}),e.current.forceUpdate()},[e]),k=g.useCallback(O=>{const{id:j,field:H}=O,B=be(O,dDe);f(j,H),p(j,H,Mn.View),$(j,H,P({mode:Mn.Edit},B))},[f,p,$]),M=Dn(O=>{const{id:j,field:H,deleteValue:B,initialValue:D}=O;let W=e.current.getCellValue(j,H),U=!1;(B||D)&&(W=B?"":D,U=!0),T(j,H,{value:W,error:!1,isProcessingProps:!1,unstable_updateValueOnRender:U}),e.current.setCellFocus(j,H)}),E=g.useCallback(O=>{const{id:j,field:H}=O,B=be(O,fDe);p(j,H,Mn.Edit),$(j,H,P({mode:Mn.View},B))},[p,$]),N=Dn(async O=>{const{id:j,field:H,ignoreModifications:B,cellToFocusAfter:D="none"}=O;p(j,H,Mn.Edit),e.current.runPendingEditCellValueMutation(j,H);const W=()=>{T(j,H,null),$(j,H,null),D!=="none"&&e.current.moveFocusToRelativeCell(j,H,D)};if(B){W();return}const U=Co(e.current.state),{error:Z,isProcessingProps:Y}=U[j][H];if(Z||Y){i.current[j][H].mode=Mn.Edit,$(j,H,{mode:Mn.Edit});return}const se=e.current.getRowWithUpdatedValuesFromCellEditing(j,H);if(a){const Q=ne=>{i.current[j][H].mode=Mn.Edit,$(j,H,{mode:Mn.Edit}),s?s(ne):pDe()};try{const ne=e.current.getRow(j);Promise.resolve(a(se,ne)).then(re=>{e.current.updateRows([re]),W()}).catch(Q)}catch(ne){Q(ne)}}else e.current.updateRows([se]),W()}),I=g.useCallback(async O=>{var j;const{id:H,field:B,value:D,debounceMs:W,unstable_skipValueParser:U}=O;f(H,B),p(H,B,Mn.Edit);const Z=e.current.getColumn(B),Y=e.current.getRow(H);let se=D;Z.valueParser&&!U&&(se=Z.valueParser(D,e.current.getCellParams(H,B)));let Q=Co(e.current.state),ne=P({},Q[H][B],{value:se,changeReason:W?"debouncedSetEditCellValue":"setEditCellValue"});if(Z.preProcessEditCellProps){const re=D!==Q[H][B].value;ne=P({},ne,{isProcessingProps:!0}),T(H,B,ne),ne=await Promise.resolve(Z.preProcessEditCellProps({id:H,row:Y,props:ne,hasChanged:re}))}return e.current.getCellMode(H,B)===Mn.View?!1:(Q=Co(e.current.state),ne=P({},ne,{isProcessingProps:!1}),ne.value=Z.preProcessEditCellProps?Q[H][B].value:se,T(H,B,ne),Q=Co(e.current.state),!((j=Q[H])!=null&&(j=j[B])!=null&&j.error))},[e,f,p,T]),A=g.useCallback((O,j)=>{const H=e.current.getColumn(j),B=Co(e.current.state),D=e.current.getRow(O);if(!B[O]||!B[O][j])return e.current.getRow(O);const{value:W}=B[O][j];return H.valueSetter?H.valueSetter({value:W,row:D}):P({},D,{[j]:W})},[e]),z={getCellMode:w,startCellEditMode:k,stopCellEditMode:E},L={setCellEditingEditCellValue:I,getRowWithUpdatedValuesFromCellEditing:A};Xt(e,z,"public"),Xt(e,L,"private"),g.useEffect(()=>{l&&S(l)},[l,S]),g.useEffect(()=>{const O=ub(e),j=i.current;i.current=WV(n),Object.entries(n).forEach(([H,B])=>{Object.entries(B).forEach(([D,W])=>{var U,Z;const Y=((U=j[H])==null||(U=U[D])==null?void 0:U.mode)||Mn.View,se=(Z=O[H])!=null?Z:H;W.mode===Mn.Edit&&Y===Mn.View?M(P({id:se,field:D},W)):W.mode===Mn.View&&Y===Mn.Edit&&N(P({id:se,field:D},W))})})},[e,n,M,N])},mDe=["id"],gDe=["id"],vDe=Ps(["MUI: A call to `processRowUpdate` threw an error which was not handled because `onProcessRowUpdateError` is missing.","To handle the error pass a callback to the `onProcessRowUpdateError` prop, e.g. ` ...} />`.","For more detail, see http://mui.com/components/data-grid/editing/#server-side-persistence."],"error"),yDe=(e,t)=>{const[n,r]=g.useState({}),o=g.useRef(n),i=g.useRef({}),a=g.useRef(null),s=g.useRef(null),{processRowUpdate:l,onProcessRowUpdateError:u,rowModesModel:c,onRowModesModelChange:f}=t,p=D=>(...W)=>{t.editMode===bs.Row&&D(...W)},y=g.useCallback((D,W)=>{const U=e.current.getCellParams(D,W);if(!e.current.isCellEditable(U))throw new Error(`MUI: The cell with id=${D} and field=${W} is not editable.`)},[e]),v=g.useCallback((D,W)=>{if(e.current.getRowMode(D)!==W)throw new Error(`MUI: The row with id=${D} is not in ${W} mode.`)},[e]),b=g.useCallback((D,W)=>{if(!D.isEditable||e.current.getRowMode(D.id)===Bn.Edit)return;const U=e.current.getRowParams(D.id),Z=P({},U,{field:D.field,reason:Fl.cellDoubleClick});e.current.publishEvent("rowEditStart",Z,W)},[e]),C=g.useCallback(D=>{s.current=D},[]),x=g.useCallback((D,W)=>{D.isEditable&&e.current.getRowMode(D.id)!==Bn.View&&(s.current=null,a.current=setTimeout(()=>{var U;if(a.current=null,((U=s.current)==null?void 0:U.id)!==D.id){if(!e.current.getRow(D.id)||e.current.getRowMode(D.id)===Bn.View)return;const Z=e.current.getRowParams(D.id),Y=P({},Z,{field:D.field,reason:Hs.rowFocusOut});e.current.publishEvent("rowEditStop",Y,W)}}))},[e]);g.useEffect(()=>()=>{clearTimeout(a.current)},[]);const w=g.useCallback((D,W)=>{if(D.cellMode===Bn.Edit){if(W.which===229)return;let U;if(W.key==="Escape")U=Hs.escapeKeyDown;else if(W.key==="Enter")U=Hs.enterKeyDown;else if(W.key==="Tab"){const Z=aw(e).filter(Y=>e.current.getColumn(Y).type===gw?!0:e.current.isCellEditable(e.current.getCellParams(D.id,Y)));if(W.shiftKey?D.field===Z[0]&&(U=Hs.shiftTabKeyDown):D.field===Z[Z.length-1]&&(U=Hs.tabKeyDown),W.preventDefault(),!U){const Y=Z.findIndex(Q=>Q===D.field),se=Z[W.shiftKey?Y-1:Y+1];e.current.setCellFocus(D.id,se)}}if(U){const Z=P({},e.current.getRowParams(D.id),{reason:U,field:D.field});e.current.publishEvent("rowEditStop",Z,W)}}else if(D.isEditable){let U;if(!e.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:W,cellParams:D,editMode:"row"}))return;if(DV(W)||(W.ctrlKey||W.metaKey)&&W.key==="v"?U=Fl.printableKeyDown:W.key==="Enter"?U=Fl.enterKeyDown:(W.key==="Delete"||W.key==="Backspace")&&(U=Fl.deleteKeyDown),U){const Y=e.current.getRowParams(D.id),se=P({},Y,{field:D.field,key:W.key,reason:U});e.current.publishEvent("rowEditStart",se,W)}}},[e]),S=g.useCallback(D=>{const{id:W,field:U,reason:Z,key:Y,columns:se}=D,Q={id:W,fieldToFocus:U};if(Z===Fl.printableKeyDown)if(g.version.startsWith("17"))Q.deleteValue=!!U;else{const ne=se.find(re=>re.field===U);Q.initialValue=ne.valueParser?ne.valueParser(Y):Y}else Z===Fl.deleteKeyDown&&(Q.deleteValue=!!U);e.current.startRowEditMode(Q)},[e]),$=g.useCallback(D=>{const{id:W,reason:U,field:Z}=D;e.current.runPendingEditCellValueMutation(W);let Y;U===Hs.enterKeyDown?Y="below":U===Hs.tabKeyDown?Y="right":U===Hs.shiftTabKeyDown&&(Y="left");const se=U==="escapeKeyDown";e.current.stopRowEditMode({id:W,ignoreModifications:se,field:Z,cellToFocusAfter:Y})},[e]);bt(e,"cellDoubleClick",p(b)),bt(e,"cellFocusIn",p(C)),bt(e,"cellFocusOut",p(x)),bt(e,"cellKeyDown",p(w)),bt(e,"rowEditStart",p(S)),bt(e,"rowEditStop",p($)),Yn(e,"rowEditStart",t.onRowEditStart),Yn(e,"rowEditStop",t.onRowEditStop);const T=g.useCallback(D=>{if(t.editMode===bs.Cell)return Bn.View;const W=Co(e.current.state);return W[D]&&Object.keys(W[D]).length>0?Bn.Edit:Bn.View},[e,t.editMode]),k=Dn(D=>{const W=D!==t.rowModesModel;f&&W&&f(D,{}),!(t.rowModesModel&&W)&&(r(D),o.current=D,e.current.publishEvent("rowModesModelChange",D))}),M=g.useCallback((D,W)=>{const U=P({},o.current);W!==null?U[D]=P({},W):delete U[D],k(U)},[k]),E=g.useCallback((D,W)=>{e.current.setState(U=>{const Z=P({},U.editRows);return W!==null?Z[D]=W:delete Z[D],P({},U,{editRows:Z})}),e.current.forceUpdate()},[e]),N=g.useCallback((D,W,U)=>{e.current.setState(Z=>{const Y=P({},Z.editRows);return U!==null?Y[D]=P({},Y[D],{[W]:P({},U)}):(delete Y[D][W],Object.keys(Y[D]).length===0&&delete Y[D]),P({},Z,{editRows:Y})}),e.current.forceUpdate()},[e]),I=g.useCallback(D=>{const{id:W}=D,U=be(D,mDe);v(W,Bn.View),M(W,P({mode:Bn.Edit},U))},[v,M]),A=Dn(D=>{const{id:W,fieldToFocus:U,deleteValue:Z,initialValue:Y}=D,Q=ol(e).reduce((ne,re)=>{if(!e.current.getCellParams(W,re).isEditable)return ne;let xe=e.current.getCellValue(W,re),fe=!1;return U===re&&(Z||Y)&&(xe=Z?"":Y,fe=!0),ne[re]={value:xe,error:!1,isProcessingProps:!1,unstable_updateValueOnRender:fe},ne},{});E(W,Q),U&&e.current.setCellFocus(W,U)}),z=g.useCallback(D=>{const{id:W}=D,U=be(D,gDe);v(W,Bn.Edit),M(W,P({mode:Bn.View},U))},[v,M]),L=Dn(D=>{const{id:W,ignoreModifications:U,field:Z,cellToFocusAfter:Y="none"}=D;e.current.runPendingEditCellValueMutation(W);const se=()=>{Y!=="none"&&Z&&e.current.moveFocusToRelativeCell(W,Z,Y),E(W,null),M(W,null)};if(U){se();return}const Q=Co(e.current.state),ne=e.current.getRow(W);if(Object.values(Q[W]).some(fe=>fe.isProcessingProps)){i.current[W].mode=Bn.Edit;return}if(Object.values(Q[W]).some(fe=>fe.error)){i.current[W].mode=Bn.Edit,M(W,{mode:Bn.Edit});return}const xe=e.current.getRowWithUpdatedValuesFromRowEditing(W);if(l){const fe=Se=>{i.current[W].mode=Bn.Edit,M(W,{mode:Bn.Edit}),u?u(Se):vDe()};try{Promise.resolve(l(xe,ne)).then(Se=>{e.current.updateRows([Se]),se()}).catch(fe)}catch(Se){fe(Se)}}else e.current.updateRows([xe]),se()}),O=g.useCallback(D=>{const{id:W,field:U,value:Z,debounceMs:Y,unstable_skipValueParser:se}=D;y(W,U);const Q=e.current.getColumn(U),ne=e.current.getRow(W);let re=Z;Q.valueParser&&!se&&(re=Q.valueParser(Z,e.current.getCellParams(W,U)));let ge=Co(e.current.state),xe=P({},ge[W][U],{value:re,changeReason:Y?"debouncedSetEditCellValue":"setEditCellValue"});return Q.preProcessEditCellProps||N(W,U,xe),new Promise(fe=>{const Se=[];if(Q.preProcessEditCellProps){const de=xe.value!==ge[W][U].value;xe=P({},xe,{isProcessingProps:!0}),N(W,U,xe);const ie=ge[W],Pe=be(ie,[U].map(Wg)),$e=Promise.resolve(Q.preProcessEditCellProps({id:W,row:ne,props:xe,hasChanged:de,otherFieldsProps:Pe})).then(me=>{if(e.current.getRowMode(W)===Bn.View){fe(!1);return}ge=Co(e.current.state),me=P({},me,{isProcessingProps:!1}),me.value=Q.preProcessEditCellProps?ge[W][U].value:re,N(W,U,me)});Se.push($e)}Object.entries(ge[W]).forEach(([de,ie])=>{if(de===U)return;const Pe=e.current.getColumn(de);if(!Pe.preProcessEditCellProps)return;ie=P({},ie,{isProcessingProps:!0}),N(W,de,ie),ge=Co(e.current.state);const $e=ge[W],me=be($e,[de].map(Wg)),ue=Promise.resolve(Pe.preProcessEditCellProps({id:W,row:ne,props:ie,hasChanged:!1,otherFieldsProps:me})).then(ce=>{if(e.current.getRowMode(W)===Bn.View){fe(!1);return}ce=P({},ce,{isProcessingProps:!1}),N(W,de,ce)});Se.push(ue)}),Promise.all(Se).then(()=>{e.current.getRowMode(W)===Bn.Edit?(ge=Co(e.current.state),fe(!ge[W][U].error)):fe(!1)})})},[e,y,N]),j=g.useCallback(D=>{const W=Co(e.current.state),U=e.current.getRow(D);if(!W[D])return e.current.getRow(D);let Z=P({},U);return Object.entries(W[D]).forEach(([Y,se])=>{const Q=e.current.getColumn(Y);Q.valueSetter?Z=Q.valueSetter({value:se.value,row:Z}):Z[Y]=se.value}),Z},[e]),H={getRowMode:T,startRowEditMode:I,stopRowEditMode:z},B={setRowEditingEditCellValue:O,getRowWithUpdatedValuesFromRowEditing:j};Xt(e,H,"public"),Xt(e,B,"private"),g.useEffect(()=>{c&&k(c)},[c,k]),g.useEffect(()=>{const D=ub(e),W=i.current;i.current=WV(n),Object.entries(n).forEach(([U,Z])=>{var Y,se;const Q=((Y=W[U])==null?void 0:Y.mode)||Bn.View,ne=(se=D[U])!=null?se:U;Z.mode===Bn.Edit&&Q===Bn.View?A(P({id:ne},Z)):Z.mode===Bn.View&&Q===Bn.Edit&&L(P({id:ne},Z))})},[e,n,A,L])},bDe=e=>P({},e,{editRows:{}}),xDe=(e,t)=>{hDe(e,t),yDe(e,t);const n=g.useRef({}),{isCellEditable:r}=t,o=g.useCallback(p=>Ng(p.rowNode)||!p.colDef.editable||!p.colDef.renderEditCell?!1:r?r(p):!0,[r]),i=(p,y,v,b)=>{if(!v){b();return}if(n.current[p]||(n.current[p]={}),n.current[p][y]){const[w]=n.current[p][y];clearTimeout(w)}const C=()=>{const[w]=n.current[p][y];clearTimeout(w),b(),delete n.current[p][y]},x=setTimeout(()=>{b(),delete n.current[p][y]},v);n.current[p][y]=[x,C]};g.useEffect(()=>{const p=n.current;return()=>{Object.entries(p).forEach(([y,v])=>{Object.keys(v).forEach(b=>{const[C]=p[y][b];clearTimeout(C),delete p[y][b]})})}},[]);const a=g.useCallback((p,y)=>{if(n.current[p]){if(!y)Object.keys(n.current[p]).forEach(v=>{const[,b]=n.current[p][v];b()});else if(n.current[p][y]){const[,v]=n.current[p][y];v()}}},[]),s=g.useCallback(p=>{const{id:y,field:v,debounceMs:b}=p;return new Promise(C=>{i(y,v,b,async()=>{const x=t.editMode===bs.Row?e.current.setRowEditingEditCellValue:e.current.setCellEditingEditCellValue;if(e.current.getCellMode(y,v)===Mn.Edit){const w=await x(p);C(w)}})})},[e,t.editMode]),l=g.useCallback((p,y)=>t.editMode===bs.Cell?e.current.getRowWithUpdatedValuesFromCellEditing(p,y):e.current.getRowWithUpdatedValuesFromRowEditing(p),[e,t.editMode]),u=g.useCallback((p,y)=>{var v,b;return(v=(b=Co(e.current.state)[p])==null?void 0:b[y])!=null?v:null},[e]),c={isCellEditable:o,setEditCellValue:s,getRowWithUpdatedValues:l,unstable_getEditCellMeta:u},f={runPendingEditCellValueMutation:a};Xt(e,c,"public"),Xt(e,f,"private")},wDe=(e,t,n)=>(n.current.caches.rows=W1({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),P({},e,{rows:EV({apiRef:n,rowCountProp:t.rowCount,loadingProp:t.loading,previousTree:null,previousTreeDepths:null})})),CDe=(e,t)=>{const n=vo(e,"useGridRows"),r=xd(e,t),o=g.useRef(Date.now()),i=YT(),a=g.useCallback(L=>{const O=Ql(e)[L];if(O)return O;const j=e.current.getRowNode(L);return j&&Ng(j)?{[Zf]:L}:null},[e]),s=t.getRowId,l=g.useCallback(L=>Zf in L?L[Zf]:s?s(L):L.id,[s]),u=g.useMemo(()=>r.rows.reduce((L,{id:O},j)=>(L[O]=j,L),{}),[r.rows]),c=g.useCallback(({cache:L,throttle:O})=>{const j=()=>{o.current=Date.now(),e.current.setState(B=>P({},B,{rows:EV({apiRef:e,rowCountProp:t.rowCount,loadingProp:t.loading,previousTree:_a(e),previousTreeDepths:T9(e)})})),e.current.publishEvent("rowsSet"),e.current.forceUpdate()};if(i.clear(),e.current.caches.rows=L,!O){j();return}const H=t.throttleRowsMs-(Date.now()-o.current);if(H>0){i.start(H,j);return}j()},[t.throttleRowsMs,t.rowCount,t.loading,e,i]),f=g.useCallback(L=>{n.debug(`Updating all rows, new length ${L.length}`);const O=W1({rows:L,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),j=e.current.caches.rows;O.rowsBeforePartialUpdates=j.rowsBeforePartialUpdates,c({cache:O,throttle:!0})},[n,t.getRowId,t.loading,t.rowCount,c,e]),p=g.useCallback(L=>{if(t.signature===hs.DataGrid&&L.length>1)throw new Error(["MUI: You can't update several rows at once in `apiRef.current.updateRows` on the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join(` +`));const O=[];L.forEach(H=>{const B=fb(H,t.getRowId,"A row was provided without id when calling updateRows():"),D=e.current.getRowNode(B);if((D==null?void 0:D.type)==="pinnedRow"){const W=e.current.caches.pinnedRows,U=W.idLookup[B];U&&(W.idLookup[B]=P({},U,H))}else O.push(H)});const j=YAe({updates:O,getRowId:t.getRowId,previousCache:e.current.caches.rows});c({cache:j,throttle:!0})},[t.signature,t.getRowId,c,e]),y=g.useCallback(()=>{const L=a1(e),O=Ql(e);return new Map(L.map(j=>{var H;return[j,(H=O[j])!=null?H:{}]}))},[e]),v=g.useCallback(()=>lw(e),[e]),b=g.useCallback(()=>a1(e),[e]),C=g.useCallback(L=>u[L],[u]),x=g.useCallback((L,O)=>{const j=e.current.getRowNode(L);if(!j)throw new Error(`MUI: No row with id #${L} found`);if(j.type!=="group")throw new Error("MUI: Only group nodes can be expanded or collapsed");const H=P({},j,{childrenExpanded:O});e.current.setState(B=>P({},B,{rows:P({},B.rows,{tree:P({},B.rows.tree,{[L]:H})})})),e.current.forceUpdate(),e.current.publishEvent("rowExpansionChange",H)},[e]),w=g.useCallback(L=>{var O;return(O=_a(e)[L])!=null?O:null},[e]),S=g.useCallback(({skipAutoGeneratedRows:L=!0,groupId:O,applySorting:j,applyFiltering:H})=>{const B=_a(e);let D;if(j){const W=B[O];if(!W)return[];const U=jT(e);D=[];const Z=U.findIndex(Y=>Y===O)+1;for(let Y=Z;YW.depth;Y+=1){const se=U[Y];(!L||!Ng(B[se]))&&D.push(se)}}else D=BT(B,O,L);if(H){const W=$V(e);D=D.filter(U=>W[U]!==!1)}return D},[e]),$=g.useCallback((L,O)=>{const j=e.current.getRowNode(L);if(!j)throw new Error(`MUI: No row with id #${L} found`);if(j.parent!==So)throw new Error("MUI: The row reordering do not support reordering of grouped rows yet");if(j.type!=="leaf")throw new Error("MUI: The row reordering do not support reordering of footer or grouping rows");e.current.setState(H=>{const B=_a(H,e.current.instanceId)[So],D=B.children,W=D.findIndex(Z=>Z===L);if(W===-1||W===O)return H;n.debug(`Moving row ${L} to index ${O}`);const U=[...D];return U.splice(O,0,U.splice(W,1)[0]),P({},H,{rows:P({},H.rows,{tree:P({},H.rows.tree,{[So]:P({},B,{children:U})})})})}),e.current.publishEvent("rowsSet")},[e,n]),T=g.useCallback((L,O)=>{if(t.signature===hs.DataGrid&&O.length>1)throw new Error(["MUI: You can't replace rows using `apiRef.current.unstable_replaceRows` on the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join(` +`));if(O.length===0)return;if(uw(e)>1)throw new Error("`apiRef.current.unstable_replaceRows` is not compatible with tree data and row grouping");const H=P({},_a(e)),B=P({},Ql(e)),D=P({},ub(e)),W=H[So],U=[...W.children];for(let Y=0;YH[Y].type==="leaf");e.current.caches.rows.dataRowIdToModelLookup=B,e.current.caches.rows.dataRowIdToIdLookup=D,e.current.setState(Y=>P({},Y,{rows:P({},Y.rows,{dataRowIdToModelLookup:B,dataRowIdToIdLookup:D,dataRowIds:Z,tree:H})})),e.current.publishEvent("rowsSet")},[e,t.signature,t.getRowId]),k={getRow:a,getRowId:l,getRowModels:y,getRowsCount:v,getAllRowIds:b,setRows:f,updateRows:p,getRowNode:w,getRowIndexRelativeToVisibleRows:C,unstable_replaceRows:T},M={setRowIndex:$,setRowChildrenExpansion:x,getRowGroupChildren:S},E=g.useCallback(()=>{n.info("Row grouping pre-processing have changed, regenerating the row tree");let L;e.current.caches.rows.rowsBeforePartialUpdates===t.rows?L=P({},e.current.caches.rows,{updates:{type:"full",rows:a1(e)}}):L=W1({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),c({cache:L,throttle:!1})},[n,e,t.rows,t.getRowId,t.loading,t.rowCount,c]),N=g.useCallback(L=>{L==="rowTreeCreation"&&E()},[E]),I=g.useCallback(()=>{e.current.getActiveStrategy("rowTree")!==EAe(e)&&E()},[e,E]);bt(e,"activeStrategyProcessorChange",N),bt(e,"strategyAvailabilityChange",I);const A=g.useCallback(()=>{e.current.setState(L=>{const O=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:_a(L,e.current.instanceId),treeDepths:T9(L,e.current.instanceId),dataRowIds:a1(L,e.current.instanceId),dataRowIdToModelLookup:Ql(L,e.current.instanceId),dataRowIdToIdLookup:ub(L,e.current.instanceId)});return P({},L,{rows:P({},L.rows,O,{totalTopLevelRowCount:IV({tree:O.tree,rowCountProp:t.rowCount})})})}),e.current.publishEvent("rowsSet"),e.current.forceUpdate()},[e,t.rowCount]);ZT(e,"hydrateRows",A),Xt(e,k,"public"),Xt(e,M,t.signature===hs.DataGrid?"private":"public");const z=g.useRef(!0);g.useEffect(()=>{if(z.current){z.current=!1;return}const L=e.current.caches.rows.rowsBeforePartialUpdates===t.rows,O=e.current.caches.rows.loadingPropBeforePartialUpdates===t.loading,j=e.current.caches.rows.rowCountPropBeforePartialUpdates===t.rowCount;if(L){O||(e.current.setState(H=>P({},H,{rows:P({},H.rows,{loading:t.loading})})),e.current.caches.rows.loadingPropBeforePartialUpdates=t.loading,e.current.forceUpdate()),j||(e.current.setState(H=>P({},H,{rows:P({},H.rows,{totalRowCount:Math.max(t.rowCount||0,H.rows.totalRowCount),totalTopLevelRowCount:Math.max(t.rowCount||0,H.rows.totalTopLevelRowCount)})})),e.current.caches.rows.rowCountPropBeforePartialUpdates=t.rowCount,e.current.forceUpdate());return}n.debug(`Updating all rows, new length ${t.rows.length}`),c({cache:W1({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),throttle:!1})},[t.rows,t.rowCount,t.getRowId,t.loading,n,c,e])},SDe=e=>{const t={[So]:P({},qAe(),{children:e})};for(let n=0;n{const n=P({},e),r={};for(let a=0;a!r[a])),n[So]=P({},o,{children:i}),{groupingName:nd,tree:n,treeDepths:{0:i.length},dataRowIds:i}},_De=e=>e.updates.type==="full"?SDe(e.updates.rows):$De({previousTree:e.previousTree,actions:e.updates.actions}),kDe=e=>{bb(e,nd,"rowTreeCreation",_De)},xU=(e,t)=>e==null||Array.isArray(e)?e:t&&t[0]===e?t:[e],PDe=(e,t)=>{var n;return P({},e,{rowSelection:t.rowSelection?(n=xU(t.rowSelectionModel))!=null?n:[]:[]})},MDe=(e,t)=>{const n=vo(e,"useGridSelection"),r=O=>(...j)=>{t.rowSelection&&O(...j)},o=g.useMemo(()=>xU(t.rowSelectionModel,Bi(e.current.state)),[e,t.rowSelectionModel]),i=g.useRef(null);e.current.registerControlState({stateId:"rowSelection",propModel:o,propOnChange:t.onRowSelectionModelChange,stateSelector:Bi,changeEvent:"rowSelectionChange"});const{checkboxSelection:a,disableMultipleRowSelection:s,disableRowSelectionOnClick:l,isRowSelectable:u}=t,c=!s||a,f=xd(e,t),p=g.useCallback(O=>{var j;let H=O;const B=(j=i.current)!=null?j:O,D=e.current.isRowSelected(O);if(D){const W=Lm(e),U=W.findIndex(Y=>Y===B),Z=W.findIndex(Y=>Y===H);if(U===Z)return;U>Z?H=W[Z+1]:H=W[Z-1]}i.current=O,e.current.selectRowRange({startId:B,endId:H},!D)},[e]),y=g.useCallback(O=>{if(t.signature===hs.DataGrid&&!t.checkboxSelection&&Array.isArray(O)&&O.length>1)throw new Error(["MUI: `rowSelectionModel` can only contain 1 item in DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock multiple selection."].join(` +`));Bi(e.current.state)!==O&&(n.debug("Setting selection model"),e.current.setState(H=>P({},H,{rowSelection:t.rowSelection?O:[]})),e.current.forceUpdate())},[e,n,t.rowSelection,t.signature,t.checkboxSelection]),v=g.useCallback(O=>Bi(e.current.state).includes(O),[e]),b=g.useCallback(O=>{if(u&&!u(e.current.getRowParams(O)))return!1;const j=e.current.getRowNode(O);return!((j==null?void 0:j.type)==="footer"||(j==null?void 0:j.type)==="pinnedRow")},[e,u]),C=g.useCallback(()=>nFe(e),[e]),x=g.useCallback((O,j=!0,H=!1)=>{if(e.current.isRowSelectable(O))if(i.current=O,H)n.debug(`Setting selection for row ${O}`),e.current.setRowSelectionModel(j?[O]:[]);else{n.debug(`Toggling selection for row ${O}`);const D=Bi(e.current.state).filter(U=>U!==O);j&&D.push(O),(D.length<2||c)&&e.current.setRowSelectionModel(D)}},[e,n,c]),w=g.useCallback((O,j=!0,H=!1)=>{n.debug("Setting selection for several rows");const B=O.filter(U=>e.current.isRowSelectable(U));let D;if(H)D=j?B:[];else{const U=P({},gb(e));B.forEach(Z=>{j?U[Z]=Z:delete U[Z]}),D=Object.values(U)}(D.length<2||c)&&e.current.setRowSelectionModel(D)},[e,n,c]),S=g.useCallback(({startId:O,endId:j},H=!0,B=!1)=>{if(!e.current.getRow(O)||!e.current.getRow(j))return;n.debug(`Expanding selection from row ${O} to row ${j}`);const D=Lm(e),W=D.indexOf(O),U=D.indexOf(j),[Z,Y]=W>U?[U,W]:[W,U],se=D.slice(Z,Y+1);e.current.selectRows(se,H,B)},[e,n]),$={selectRow:x,setRowSelectionModel:y,getSelectedRows:C,isRowSelected:v,isRowSelectable:b},T={selectRows:w,selectRowRange:S};Xt(e,$,"public"),Xt(e,T,t.signature===hs.DataGrid?"private":"public");const k=g.useCallback(()=>{if(t.keepNonExistentRowsSelected)return;const O=Bi(e.current.state),j=Ql(e),H=P({},gb(e));let B=!1;O.forEach(D=>{j[D]||(delete H[D],B=!0)}),B&&e.current.setRowSelectionModel(Object.values(H))},[e,t.keepNonExistentRowsSelected]),M=g.useCallback((O,j)=>{const H=j.metaKey||j.ctrlKey,B=!a&&!H&&!j8e(j),D=!c||B,W=e.current.isRowSelected(O);D?e.current.selectRow(O,B?!0:!W,!0):e.current.selectRow(O,!W,!1)},[e,c,a]),E=g.useCallback((O,j)=>{var H;if(l)return;const B=(H=j.target.closest(`.${le.cell}`))==null?void 0:H.getAttribute("data-field");if(B===ih.field||B===XT)return;if(B){const W=e.current.getColumn(B);if((W==null?void 0:W.type)===gw)return}e.current.getRowNode(O.id).type!=="pinnedRow"&&(j.shiftKey&&(c||a)?p(O.id):M(O.id,j))},[l,c,a,e,p,M]),N=g.useCallback((O,j)=>{if(c&&j.shiftKey){var H;(H=window.getSelection())==null||H.removeAllRanges()}},[c]),I=g.useCallback((O,j)=>{j.nativeEvent.shiftKey?p(O.id):e.current.selectRow(O.id,O.value)},[e,p]),A=g.useCallback(O=>{const H=t.checkboxSelectionVisibleOnly&&t.pagination?KV(e):Lm(e);e.current.selectRows(H,O.value)},[e,t.checkboxSelectionVisibleOnly,t.pagination]),z=g.useCallback((O,j)=>{if(e.current.getCellMode(O.id,O.field)!==Mn.Edit&&j.currentTarget.contains(j.target)){if(mb(j.key)&&j.shiftKey){const H=ci(e);if(H&&H.id!==O.id){j.preventDefault();const B=e.current.isRowSelected(H.id);if(!c){e.current.selectRow(H.id,!B,!0);return}const D=e.current.getRowIndexRelativeToVisibleRows(H.id),W=e.current.getRowIndexRelativeToVisibleRows(O.id);let U,Z;D>W?B?(U=W,Z=D-1):(U=W,Z=D):B?(U=D+1,Z=W):(U=D,Z=W);const Y=f.rows.slice(U,Z+1).map(se=>se.id);e.current.selectRows(Y,!B);return}}if(j.key===" "&&j.shiftKey){j.preventDefault(),M(O.id,j);return}j.key==="a"&&(j.ctrlKey||j.metaKey)&&(j.preventDefault(),w(e.current.getAllRowIds(),!0))}},[e,M,w,f.rows,c]);bt(e,"sortedRowsSet",r(k)),bt(e,"rowClick",r(E)),bt(e,"rowSelectionCheckboxChange",r(I)),bt(e,"headerSelectionCheckboxChange",A),bt(e,"cellMouseDown",r(N)),bt(e,"cellKeyDown",r(z)),g.useEffect(()=>{o!==void 0&&e.current.setRowSelectionModel(o)},[e,o,t.rowSelection]),g.useEffect(()=>{t.rowSelection||e.current.setRowSelectionModel([])},[e,t.rowSelection]);const L=o!=null;g.useEffect(()=>{if(L||!t.rowSelection)return;const O=Bi(e.current.state);if(b){const j=O.filter(H=>b(H));j.length{if(!t.rowSelection||L)return;const O=Bi(e.current.state);!c&&O.length>1&&e.current.setRowSelectionModel([])},[e,c,a,L,t.rowSelection])},TDe={noRowsLabel:"No rows",noResultsOverlayLabel:"No results found.",toolbarDensity:"Density",toolbarDensityLabel:"Density",toolbarDensityCompact:"Compact",toolbarDensityStandard:"Standard",toolbarDensityComfortable:"Comfortable",toolbarColumns:"Columns",toolbarColumnsLabel:"Select columns",toolbarFilters:"Filters",toolbarFiltersLabel:"Show filters",toolbarFiltersTooltipHide:"Hide filters",toolbarFiltersTooltipShow:"Show filters",toolbarFiltersTooltipActive:e=>e!==1?`${e} active filters`:`${e} active filter`,toolbarQuickFilterPlaceholder:"Search…",toolbarQuickFilterLabel:"Search",toolbarQuickFilterDeleteIconLabel:"Clear",toolbarExport:"Export",toolbarExportLabel:"Export",toolbarExportCSV:"Download as CSV",toolbarExportPrint:"Print",toolbarExportExcel:"Download as Excel",columnsPanelTextFieldLabel:"Find column",columnsPanelTextFieldPlaceholder:"Column title",columnsPanelDragIconLabel:"Reorder column",columnsPanelShowAllButton:"Show all",columnsPanelHideAllButton:"Hide all",filterPanelAddFilter:"Add filter",filterPanelRemoveAll:"Remove all",filterPanelDeleteIconLabel:"Delete",filterPanelLogicOperator:"Logic operator",filterPanelOperator:"Operator",filterPanelOperatorAnd:"And",filterPanelOperatorOr:"Or",filterPanelColumns:"Columns",filterPanelInputLabel:"Value",filterPanelInputPlaceholder:"Filter value",filterOperatorContains:"contains",filterOperatorEquals:"equals",filterOperatorStartsWith:"starts with",filterOperatorEndsWith:"ends with",filterOperatorIs:"is",filterOperatorNot:"is not",filterOperatorAfter:"is after",filterOperatorOnOrAfter:"is on or after",filterOperatorBefore:"is before",filterOperatorOnOrBefore:"is on or before",filterOperatorIsEmpty:"is empty",filterOperatorIsNotEmpty:"is not empty",filterOperatorIsAnyOf:"is any of","filterOperator=":"=","filterOperator!=":"!=","filterOperator>":">","filterOperator>=":">=","filterOperator<":"<","filterOperator<=":"<=",headerFilterOperatorContains:"Contains",headerFilterOperatorEquals:"Equals",headerFilterOperatorStartsWith:"Starts with",headerFilterOperatorEndsWith:"Ends with",headerFilterOperatorIs:"Is",headerFilterOperatorNot:"Is not",headerFilterOperatorAfter:"Is after",headerFilterOperatorOnOrAfter:"Is on or after",headerFilterOperatorBefore:"Is before",headerFilterOperatorOnOrBefore:"Is on or before",headerFilterOperatorIsEmpty:"Is empty",headerFilterOperatorIsNotEmpty:"Is not empty",headerFilterOperatorIsAnyOf:"Is any of","headerFilterOperator=":"Equals","headerFilterOperator!=":"Not equals","headerFilterOperator>":"Greater than","headerFilterOperator>=":"Greater than or equal to","headerFilterOperator<":"Less than","headerFilterOperator<=":"Less than or equal to",filterValueAny:"any",filterValueTrue:"true",filterValueFalse:"false",columnMenuLabel:"Menu",columnMenuShowColumns:"Show columns",columnMenuManageColumns:"Manage columns",columnMenuFilter:"Filter",columnMenuHideColumn:"Hide column",columnMenuUnsort:"Unsort",columnMenuSortAsc:"Sort by ASC",columnMenuSortDesc:"Sort by DESC",columnHeaderFiltersTooltipActive:e=>e!==1?`${e} active filters`:`${e} active filter`,columnHeaderFiltersLabel:"Show filters",columnHeaderSortIconLabel:"Sort",footerRowSelected:e=>e!==1?`${e.toLocaleString()} rows selected`:`${e.toLocaleString()} row selected`,footerTotalRows:"Total Rows:",footerTotalVisibleRows:(e,t)=>`${e.toLocaleString()} of ${t.toLocaleString()}`,checkboxSelectionHeaderName:"Checkbox selection",checkboxSelectionSelectAllRows:"Select all rows",checkboxSelectionUnselectAllRows:"Unselect all rows",checkboxSelectionSelectRow:"Select row",checkboxSelectionUnselectRow:"Unselect row",booleanCellTrueLabel:"yes",booleanCellFalseLabel:"no",actionsCellMore:"more",pinToLeft:"Pin to left",pinToRight:"Pin to right",unpin:"Unpin",treeDataGroupingHeaderName:"Group",treeDataExpand:"see children",treeDataCollapse:"hide children",groupingColumnHeaderName:"Group",groupColumn:e=>`Group by ${e}`,unGroupColumn:e=>`Stop grouping by ${e}`,detailPanelToggle:"Detail panel toggle",expandDetailPanel:"Expand",collapseDetailPanel:"Collapse",MuiTablePagination:{},rowReorderingHeaderName:"Row reordering",aggregationMenuItemHeader:"Aggregation",aggregationFunctionLabelSum:"sum",aggregationFunctionLabelAvg:"avg",aggregationFunctionLabelMin:"min",aggregationFunctionLabelMax:"max",aggregationFunctionLabelSize:"size"},IDe=e=>{const{classes:t}=e;return g.useMemo(()=>Ke({cellCheckbox:["cellCheckbox"],columnHeaderCheckbox:["columnHeaderCheckbox"]},Jt,t),[t])},EDe=(e,t)=>{const n={classes:t.classes},r=IDe(n),o=g.useCallback(i=>{const a=P({},ih,{cellClassName:r.cellCheckbox,headerClassName:r.columnHeaderCheckbox,headerName:e.current.getLocaleText("checkboxSelectionHeaderName")}),s=t.checkboxSelection,l=i.lookup[Ll]!=null;return s&&!l?(i.lookup[Ll]=a,i.orderedFields=[Ll,...i.orderedFields]):!s&&l?(delete i.lookup[Ll],i.orderedFields=i.orderedFields.filter(u=>u!==Ll)):s&&l&&(i.lookup[Ll]=P({},a,i.lookup[Ll])),i},[e,r,t.checkboxSelection]);Or(e,"hydrateColumns",o)},RDe=(e,t)=>{var n,r,o;const i=(n=(r=t.sortModel)!=null?r:(o=t.initialState)==null||(o=o.sorting)==null?void 0:o.sortModel)!=null?n:[];return P({},e,{sorting:{sortModel:YV(i,t.disableMultipleColumnsSorting),sortedRows:[]}})},ODe=(e,t)=>{var n;const r=vo(e,"useGridSorting");e.current.registerControlState({stateId:"sortModel",propModel:t.sortModel,propOnChange:t.onSortModelChange,stateSelector:zi,changeEvent:"sortModelChange"});const o=g.useCallback((k,M)=>{const E=zi(e),N=E.findIndex(A=>A.field===k);let I=[...E];return N>-1?M?I.splice(N,1,M):I.splice(N,1):I=[...E,M],I},[e]),i=g.useCallback((k,M)=>{var E;const I=zi(e).find(z=>z.field===k.field);if(I){var A;const z=M===void 0?A9((A=k.sortingOrder)!=null?A:t.sortingOrder,I.sort):M;return z==null?void 0:P({},I,{sort:z})}return{field:k.field,sort:M===void 0?A9((E=k.sortingOrder)!=null?E:t.sortingOrder):M}},[e,t.sortingOrder]),a=g.useCallback((k,M)=>M==null||M.sortable===!1?k:(M.sortingOrder||t.sortingOrder).some(N=>!!N)?[...k,"columnMenuSortItem"]:k,[t.sortingOrder]),s=g.useCallback(()=>{e.current.setState(k=>{if(t.sortingMode==="server")return r.debug("Skipping sorting rows as sortingMode = server"),P({},k,{sorting:P({},k.sorting,{sortedRows:BT(_a(e),So,!1)})});const M=zi(k,e.current.instanceId),E=sFe(M,e),N=e.current.applyStrategyProcessor("sorting",{sortRowList:E});return P({},k,{sorting:P({},k.sorting,{sortedRows:N})})}),e.current.publishEvent("sortedRowsSet"),e.current.forceUpdate()},[e,r,t.sortingMode]),l=g.useCallback(k=>{zi(e)!==k&&(r.debug("Setting sort model"),e.current.setState(O9(k,t.disableMultipleColumnsSorting)),e.current.forceUpdate(),e.current.applySorting())},[e,r,t.disableMultipleColumnsSorting]),u=g.useCallback((k,M,E)=>{if(!k.sortable)return;const N=i(k,M);let I;!E||t.disableMultipleColumnsSorting?I=N?[N]:[]:I=o(k.field,N),e.current.setSortModel(I)},[e,o,i,t.disableMultipleColumnsSorting]),c=g.useCallback(()=>zi(e),[e]),f=g.useCallback(()=>DT(e).map(M=>M.model),[e]),p=g.useCallback(()=>jT(e),[e]),y=g.useCallback(k=>e.current.getSortedRowIds()[k],[e]);Xt(e,{getSortModel:c,getSortedRows:f,getSortedRowIds:p,getRowIdFromRowIndex:y,setSortModel:l,sortColumn:u,applySorting:s},"public");const b=g.useCallback((k,M)=>{var E;const N=zi(e);return!M.exportOnlyDirtyModels||t.sortModel!=null||((E=t.initialState)==null||(E=E.sorting)==null?void 0:E.sortModel)!=null||N.length>0?P({},k,{sorting:{sortModel:N}}):k},[e,t.sortModel,(n=t.initialState)==null||(n=n.sorting)==null?void 0:n.sortModel]),C=g.useCallback((k,M)=>{var E;const N=(E=M.stateToRestore.sorting)==null?void 0:E.sortModel;return N==null?k:(e.current.setState(O9(N,t.disableMultipleColumnsSorting)),P({},k,{callbacks:[...k.callbacks,e.current.applySorting]}))},[e,t.disableMultipleColumnsSorting]),x=g.useCallback(k=>{const M=_a(e),E=M[So],N=k.sortRowList?k.sortRowList(E.children.map(I=>M[I])):[...E.children];return E.footerId!=null&&N.push(E.footerId),N},[e]);Or(e,"exportState",b),Or(e,"restoreState",C),bb(e,nd,"sorting",x);const w=g.useCallback(({colDef:k},M)=>{const E=M.shiftKey||M.metaKey||M.ctrlKey;u(k,void 0,E)},[u]),S=g.useCallback(({colDef:k},M)=>{O8e(M.key)&&!M.ctrlKey&&!M.metaKey&&u(k,void 0,M.shiftKey)},[u]),$=g.useCallback(()=>{const k=zi(e),M=bd(e);if(k.length>0){const E=k.filter(N=>M[N.field]);E.length{k==="sorting"&&e.current.applySorting()},[e]);Or(e,"columnMenu",a),bt(e,"columnHeaderClick",w),bt(e,"columnHeaderKeyDown",S),bt(e,"rowsSet",e.current.applySorting),bt(e,"columnsChange",$),bt(e,"activeStrategyProcessorChange",T),M0(()=>{e.current.applySorting()}),dn(()=>{t.sortModel!==void 0&&e.current.setSortModel(t.sortModel)},[e,t.sortModel])};function iF(e){const{clientHeight:t,scrollTop:n,offsetHeight:r,offsetTop:o}=e,i=o+r;if(r>t)return o;if(i-t>n)return i-t;if(o{const n=Wt(),r=vo(e,"useGridScroll"),o=e.current.columnHeadersElementRef,i=e.current.virtualScrollerRef,a=it(e,Eu),s=g.useCallback(f=>{const p=lw(e),y=Zr(e);if(!(f.rowIndex==null)&&p===0||y.length===0)return!1;r.debug(`Scrolling to cell at row ${f.rowIndex}, col: ${f.colIndex} `);let b={};if(f.colIndex!=null){const S=Ip(e);let $;if(typeof f.rowIndex<"u"){var C;const T=(C=a[f.rowIndex])==null?void 0:C.id,k=e.current.unstable_getCellColSpanInfo(T,f.colIndex);k&&!k.spannedByColSpan&&($=k.cellProps.width)}typeof $>"u"&&($=y[f.colIndex].computedWidth),b.left=iF({clientHeight:i.current.clientWidth,scrollTop:Math.abs(i.current.scrollLeft),offsetHeight:$,offsetTop:S[f.colIndex]})}if(f.rowIndex!=null){var x,w;const S=Bg(e.current.state),$=Z9e(e),T=J9e(e),k=t.pagination?f.rowIndex-$*T:f.rowIndex,M=S.positions[k+1]?S.positions[k+1]-S.positions[k]:S.currentPageTotalHeight-S.positions[k],E=((x=i.current.querySelector(`.${le["pinnedRows--top"]}`))==null?void 0:x.clientHeight)||0,N=((w=i.current.querySelector(`.${le["pinnedRows--bottom"]}`))==null?void 0:w.clientHeight)||0;b.top=iF({clientHeight:i.current.clientHeight-E-N,scrollTop:i.current.scrollTop,offsetHeight:M,offsetTop:S.positions[k]})}return b=e.current.unstable_applyPipeProcessors("scrollToIndexes",b,f),typeof b.left!==void 0||typeof b.top!==void 0?(e.current.scroll(b),!0):!1},[r,e,i,t.pagination,a]),l=g.useCallback(f=>{if(i.current&&f.left!=null&&o.current){const p=n.direction==="rtl"?-1:1;o.current.scrollLeft=f.left,i.current.scrollLeft=p*f.left,r.debug(`Scrolling left: ${f.left}`)}i.current&&f.top!=null&&(i.current.scrollTop=f.top,r.debug(`Scrolling top: ${f.top}`)),r.debug("Scrolling, updating container, and viewport")},[i,n.direction,o,r]),u=g.useCallback(()=>i!=null&&i.current?{top:i.current.scrollTop,left:i.current.scrollLeft}:{top:0,left:0},[i]);Xt(e,{scroll:l,scrollToIndexes:s,getScrollPosition:u},"public")};function FDe(e,t){Yn(e,"columnHeaderClick",t.onColumnHeaderClick),Yn(e,"columnHeaderDoubleClick",t.onColumnHeaderDoubleClick),Yn(e,"columnHeaderOver",t.onColumnHeaderOver),Yn(e,"columnHeaderOut",t.onColumnHeaderOut),Yn(e,"columnHeaderEnter",t.onColumnHeaderEnter),Yn(e,"columnHeaderLeave",t.onColumnHeaderLeave),Yn(e,"cellClick",t.onCellClick),Yn(e,"cellDoubleClick",t.onCellDoubleClick),Yn(e,"cellKeyDown",t.onCellKeyDown),Yn(e,"preferencePanelClose",t.onPreferencePanelClose),Yn(e,"preferencePanelOpen",t.onPreferencePanelOpen),Yn(e,"menuOpen",t.onMenuOpen),Yn(e,"menuClose",t.onMenuClose),Yn(e,"rowDoubleClick",t.onRowDoubleClick),Yn(e,"rowClick",t.onRowClick),Yn(e,"stateChange",t.onStateChange)}const LDe=({content:e,container:t,scrollBarSize:n})=>{const r=e.width>t.width,o=e.height>t.height;let i=!1,a=!1;return(r||o)&&(i=r,a=e.height+(i?n:0)>t.height,a&&(i=e.width+n>t.width)),{hasScrollX:i,hasScrollY:a}};function jDe(e,t){const n=vo(e,"useResizeContainer"),r=g.useRef(!1),o=g.useRef(null),i=g.useRef(null),a=it(e,Bg),s=it(e,oh),l=Math.floor(t.rowHeight*s),u=JT(e,t.columnHeaderHeight),c=g.useCallback(()=>{var M;const E=(M=e.current.rootElementRef)==null?void 0:M.current,N=LT(e),I=RV(e);if(!o.current)return;let A;if(t.scrollbarSize!=null)A=t.scrollbarSize;else if(!N||!E)A=0;else{const W=Gn(E).createElement("div");W.style.width="99px",W.style.height="99px",W.style.position="absolute",W.style.overflow="scroll",W.className="scrollDiv",E.appendChild(W),A=W.offsetWidth-W.clientWidth,E.removeChild(W)}let z,L,O;if(t.autoHeight)O=!1,L=Math.round(N)>Math.round(o.current.width),z={width:o.current.width,height:a.currentPageTotalHeight+(L?A:0)};else{z={width:o.current.width,height:Math.max(o.current.height-u,0)};const D=LDe({content:{width:Math.round(N),height:a.currentPageTotalHeight},container:{width:Math.round(z.width),height:z.height-I.top-I.bottom},scrollBarSize:A});O=D.hasScrollY,L=D.hasScrollX}const j={width:z.width-(O?A:0),height:z.height-(L?A:0)},H={viewportOuterSize:z,viewportInnerSize:j,hasScrollX:L,hasScrollY:O,scrollBarSize:A},B=i.current;i.current=H,(H.viewportInnerSize.width!==(B==null?void 0:B.viewportInnerSize.width)||H.viewportInnerSize.height!==(B==null?void 0:B.viewportInnerSize.height))&&e.current.publishEvent("viewportInnerSizeChange",H.viewportInnerSize)},[e,t.scrollbarSize,t.autoHeight,a.currentPageTotalHeight,u]),[f,p]=g.useState(),y=g.useMemo(()=>_u(p,60),[]),v=g.useRef();dn(()=>{f&&(c(),e.current.publishEvent("debouncedResize",o.current))},[e,f,c]);const b=g.useCallback(()=>{e.current.computeSizeAndPublishResizeEvent()},[e]),C=g.useCallback(()=>i.current,[]),x=g.useCallback(()=>{const M=e.current.getRootDimensions();if(!M)return 0;const E=vb(e,{pagination:t.pagination,paginationMode:t.paginationMode});if(t.getRowHeight){const I=e.current.getRenderContext(),A=I.lastRowIndex-I.firstRowIndex;return Math.min(A-1,E.rows.length)}const N=Math.floor(M.viewportInnerSize.height/l);return Math.min(N,E.rows.length)},[e,t.pagination,t.paginationMode,t.getRowHeight,l]),w=g.useCallback(()=>{var M,E,N;const I=(M=e.current.mainElementRef)==null?void 0:M.current;if(!I)return;const z=ra(I).getComputedStyle(I),L=parseFloat(z.height)||0,O=parseFloat(z.width)||0,j=L!==((E=v.current)==null?void 0:E.height),H=O!==((N=v.current)==null?void 0:N.width);if(!v.current||j||H){const B={width:O,height:L};e.current.publishEvent("resize",B),v.current=B}},[e]),S={resize:b,getRootDimensions:C},$={getViewportPageSize:x,updateGridDimensionsRef:c,computeSizeAndPublishResizeEvent:w};Xt(e,S,"public"),Xt(e,$,"private");const T=g.useRef(!0),k=g.useCallback(M=>{o.current=M;const E=/jsdom/.test(window.navigator.userAgent);if(M.height===0&&!r.current&&!t.autoHeight&&!E&&(n.error(["The parent DOM element of the data grid has an empty height.","Please make sure that this element has an intrinsic height.","The grid displays with a height of 0px.","","More details: https://mui.com/r/x-data-grid-no-dimensions."].join(` +`)),r.current=!0),M.width===0&&!r.current&&!E&&(n.error(["The parent DOM element of the data grid has an empty width.","Please make sure that this element has an intrinsic width.","The grid displays with a width of 0px.","","More details: https://mui.com/r/x-data-grid-no-dimensions."].join(` +`)),r.current=!0),T.current){p(M),T.current=!1;return}y(M)},[t.autoHeight,y,n]);dn(()=>c(),[c]),Yn(e,"sortedRowsSet",c),Yn(e,"paginationModelChange",c),Yn(e,"columnsChange",c),bt(e,"resize",k),Yn(e,"debouncedResize",t.onResize)}const DDe=["style"],NDe=["style"];function Jf(e,t,n=0,r=t.length){if(t.length<=0)return-1;if(n>=r)return n;const o=n+Math.floor((r-n)/2),i=t[o];return e<=i?Jf(e,t,n,o):Jf(e,t,o+1,r)}function zDe(e,t,n){let r=1;for(;n[Ep(e-n,r,o),Ep(t+n,r,o)],wU=(e,t)=>e===t?!0:e.firstRowIndex===t.firstRowIndex&&e.lastRowIndex===t.lastRowIndex&&e.firstColumnIndex===t.firstColumnIndex&&e.lastColumnIndex===t.lastColumnIndex,BDe={maxSize:3},HDe=e=>{var t,n;const r=Iu(),o=dt(),i=it(r,Zr),a=it(r,hFe),s=it(r,eU),{ref:l,onRenderZonePositioning:u,renderZoneMinColumnIndex:c=0,renderZoneMaxColumnIndex:f=i.length,getRowProps:p}=e,y=Wt(),v=it(r,Ip),b=it(r,LT),C=it(r,ci),x=it(r,db),w=it(r,Bg),S=it(r,gb),$=xd(r,o),T=g.useRef(null),k=g.useRef(null),M=rn(l,k),[E,N]=g.useState(null),I=g.useRef(E),A=g.useRef({top:0,left:0}),[z,L]=g.useState({width:null,height:null}),O=g.useRef(b),[j,H]=g.useState(null),B=g.useRef(Object.create(null)),D=g.useRef(),W=g.useRef(),U=g.useRef(iw((ue,ce,Te,Le,Re,Oe)=>{let K;const ee=ue.slice(ce,Te);return Oe>-1&&(ce>Oe&&Oe>=Le||TeC!==null?i.findIndex(ue=>ue.field===C.field):-1,[C,i]),Y=g.useCallback(ue=>{var ce,Te;const Le=r.current.getLastMeasuredRowIndex();let Re=Le===1/0;(ce=$.range)!=null&&ce.lastRowIndex&&!Re&&(Re=Le>=$.range.lastRowIndex);const Oe=Ep(Le-(((Te=$.range)==null?void 0:Te.firstRowIndex)||0),0,w.positions.length);return Re||w.positions[Oe]>=ue?Jf(ue,w.positions):zDe(ue,w.positions,Oe)},[r,(t=$.range)==null?void 0:t.firstRowIndex,(n=$.range)==null?void 0:n.lastRowIndex,w.positions]),se=g.useCallback(()=>{if(!a)return{firstRowIndex:0,lastRowIndex:$.rows.length,firstColumnIndex:0,lastColumnIndex:i.length};const{top:ue,left:ce}=A.current,Te=Math.min(Y(ue),w.positions.length-1),Le=o.autoHeight?Te+$.rows.length:Y(ue+z.height);let Re=0,Oe=v.length;if(s){let K=!1;const[ee,pe]=Bl({firstIndex:Te,lastIndex:Le,minFirstIndex:0,maxLastIndex:$.rows.length,buffer:o.rowBuffer});for(let ye=ee;ye{a?(k.current.scrollLeft=0,k.current.scrollTop=0):T.current.style.transform="translate3d(0px, 0px, 0px)"},[a]),dn(()=>{L({width:k.current.clientWidth,height:k.current.clientHeight})},[w.currentPageTotalHeight]);const Q=g.useCallback(()=>{k.current&&L({width:k.current.clientWidth,height:k.current.clientHeight})},[]);bt(r,"debouncedResize",Q);const ne=g.useCallback(ue=>{const[ce,Te]=Bl({firstIndex:ue.firstRowIndex,lastIndex:ue.lastRowIndex,minFirstIndex:0,maxLastIndex:$.rows.length,buffer:o.rowBuffer}),[Le]=Bl({firstIndex:ue.firstColumnIndex,lastIndex:ue.lastColumnIndex,minFirstIndex:c,maxLastIndex:f,buffer:o.columnBuffer}),Re=jk({firstColumnToRender:Le,apiRef:r,firstRowToRender:ce,lastRowToRender:Te,visibleRows:$.rows}),Oe=y.direction==="ltr"?1:-1,K=Bg(r.current.state).positions[ce],ee=Oe*Ip(r)[Re];T.current.style.transform=`translate3d(${ee}px, ${K}px, 0px)`,typeof u=="function"&&u({top:K,left:ee})},[r,$.rows,u,c,f,o.columnBuffer,o.rowBuffer,y.direction]),re=g.useCallback(()=>I.current,[]),ge=g.useCallback(ue=>{if(I.current&&wU(ue,I.current)){ne(ue);return}N(ue),ne(ue);const[ce,Te]=Bl({firstIndex:ue.firstRowIndex,lastIndex:ue.lastRowIndex,minFirstIndex:0,maxLastIndex:$.rows.length,buffer:o.rowBuffer});r.current.publishEvent("renderedRowsIntervalChange",{firstRowToRender:ce,lastRowToRender:Te}),I.current=ue},[r,N,I,$.rows.length,o.rowBuffer,ne]);dn(()=>{if(z.width==null)return;const ue=se();ge(ue);const{top:ce,left:Te}=A.current,Le={top:ce,left:Te,renderContext:ue};r.current.publishEvent("scrollPositionChange",Le)},[r,se,z.width,ge]);const xe=Dn(ue=>{const{scrollTop:ce,scrollLeft:Te}=ue.currentTarget;if(A.current.top=ce,A.current.left=Te,!I.current||ce<0||y.direction==="ltr"&&Te<0||y.direction==="rtl"&&Te>0)return;const Le=a?se():I.current,Re=Math.abs(Le.firstRowIndex-I.current.firstRowIndex),Oe=Math.abs(Le.lastRowIndex-I.current.lastRowIndex),K=Math.abs(Le.firstColumnIndex-I.current.firstColumnIndex),ee=Math.abs(Le.lastColumnIndex-I.current.lastColumnIndex),pe=Re>=o.rowThreshold||Oe>=o.rowThreshold||K>=o.columnThreshold||ee>=o.columnThreshold||O.current!==b;r.current.publishEvent("scrollPositionChange",{top:ce,left:Te,renderContext:pe?Le:I.current},ue),pe&&(Su.flushSync(()=>{ge(Le)}),O.current=b)}),fe=Dn(ue=>{r.current.publishEvent("virtualScrollerWheel",{},ue)}),Se=Dn(ue=>{r.current.publishEvent("virtualScrollerTouchMove",{},ue)}),de=g.useMemo(()=>C!==null?$.rows.findIndex(ue=>ue.id===C.id):-1,[C,$.rows]);bt(r,"rowMouseOver",(ue,ce)=>{var Te;ce.currentTarget.contains(ce.relatedTarget)||H((Te=ue.id)!=null?Te:null)}),bt(r,"rowMouseOut",(ue,ce)=>{ce.currentTarget.contains(ce.relatedTarget)||H(null)});const ie=(ue={renderContext:E})=>{var ce;const{onRowRender:Te,renderContext:Le,minFirstColumn:Re=c,maxLastColumn:Oe=f,availableSpace:K=z.width,rowIndexOffset:ee=0,position:pe="center"}=ue;if(!Le||K==null)return null;const ye=a?o.rowBuffer:0,je=a?o.columnBuffer:0,[Ae,Ie]=Bl({firstIndex:Le.firstRowIndex,lastIndex:Le.lastRowIndex,minFirstIndex:0,maxLastIndex:$.rows.length,buffer:ye}),Ce=[];if(ue.rows)ue.rows.forEach(ht=>{Ce.push(ht),r.current.calculateColSpan({rowId:ht.id,minFirstColumn:Re,maxLastColumn:Oe,columns:i})});else{if(!$.range)return null;for(let ht=Ae;ht-1){const ht=$.rows[de];(Ae>de||IeAe?Ce.push(ht):Ce.unshift(ht),r.current.calculateColSpan({rowId:ht.id,minFirstColumn:Re,maxLastColumn:Oe,columns:i}))}const[Ct,et]=Bl({firstIndex:Le.firstColumnIndex,lastIndex:Le.lastColumnIndex,minFirstIndex:Re,maxLastIndex:Oe,buffer:je}),Be=jk({firstColumnToRender:Ct,apiRef:r,firstRowToRender:Ae,lastRowToRender:Ie,visibleRows:$.rows});let te=!1;(Be>Z||et=z.width,$e=g.useMemo(()=>{const ue=Math.max(w.currentPageTotalHeight,1);let ce=!1;k!=null&&k.current&&ue<=(k==null?void 0:k.current.clientHeight)&&(ce=!0);const Te={width:Pe?b:"auto",height:ue,minHeight:ce?"100%":"auto"};return o.autoHeight&&$.rows.length===0&&(Te.height=OV(r,o.rowHeight)),Te},[r,k,b,w.currentPageTotalHeight,Pe,o.autoHeight,o.rowHeight,$.rows.length]);g.useEffect(()=>{r.current.publishEvent("virtualScrollerContentSizeChange")},[r,$e]);const me=g.useMemo(()=>{const ue={};return Pe||(ue.overflowX="hidden"),o.autoHeight&&(ue.overflowY="hidden"),ue},[Pe,o.autoHeight]);return r.current.register("private",{getRenderContext:re}),{renderContext:E,updateRenderZonePosition:ne,getRows:ie,getRootProps:(ue={})=>P({ref:M,onScroll:xe,onWheel:fe,onTouchMove:Se},ue,{style:ue.style?P({},ue.style,me):me,role:"presentation"}),getContentProps:({style:ue}={})=>({style:ue?P({},ue,$e):$e,role:"presentation"}),getRenderZoneProps:()=>({ref:T,role:"rowgroup"})}},WDe=e=>{const{classes:t,headerAlign:n,isDragging:r,showColumnBorder:o,groupId:i}=e;return Ke({root:["columnHeader",n==="left"&&"columnHeader--alignLeft",n==="center"&&"columnHeader--alignCenter",n==="right"&&"columnHeader--alignRight",r&&"columnHeader--moving",o&&"columnHeader--showColumnBorder",o&&"columnHeader--withRightBorder","withBorderColor",i===null?"columnHeader--emptyGroup":"columnHeader--filledGroup"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer","withBorderColor"],titleContainerContent:["columnHeaderTitleContainerContent"]},Jt,t)};function VDe(e){var t;const{groupId:n,width:r,depth:o,maxDepth:i,fields:a,height:s,colIndex:l,hasFocus:u,tabIndex:c,isLastColumn:f}=e,p=dt(),y=g.useRef(null),v=Vt(),b=it(v,wV),C=n?b[n]:{},{headerName:x=n??"",description:w="",headerAlign:S=void 0}=C;let $;const T=n&&((t=b[n])==null?void 0:t.renderHeaderGroup),k=g.useMemo(()=>({groupId:n,headerName:x,description:w,depth:o,maxDepth:i,fields:a,colIndex:l,isLastColumn:f}),[n,x,w,o,i,a,l,f]);n&&T&&($=T(k));const M=p.showColumnVerticalBorder,E=P({},e,{classes:p.classes,showColumnBorder:M,headerAlign:S,depth:o,isDragging:!1}),N=x??n,I=ln(),A=n===null?`empty-group-cell-${I}`:n,z=WDe(E);g.useLayoutEffect(()=>{if(u){const B=y.current.querySelector('[tabindex="0"]')||y.current;B==null||B.focus()}},[v,u]);const L=g.useCallback(H=>B=>{B.currentTarget.contains(B.target)&&v.current.publishEvent(H,k,B)},[v,k]),O=g.useMemo(()=>({onKeyDown:L("columnGroupHeaderKeyDown"),onFocus:L("columnGroupHeaderFocus"),onBlur:L("columnGroupHeaderBlur")}),[L]),j=typeof C.headerClassName=="function"?C.headerClassName(k):C.headerClassName;return m.jsx(BV,P({ref:y,classes:z,columnMenuOpen:!1,colIndex:l,height:s,isResizing:!1,sortDirection:null,hasFocus:!1,tabIndex:c,isDraggable:!1,headerComponent:$,headerClassName:j,description:w,elementId:A,width:r,columnMenuIconButton:null,columnTitleIconButtons:null,resizable:!1,label:N,"aria-colspan":a.length,"data-fields":`|-${a.join("-|-")}-|`},O))}const aF=ke("div",{name:"MuiDataGrid",slot:"ColumnHeaderRow",overridesResolver:(e,t)=>t.columnHeaderRow})(()=>({display:"flex"}));function UDe(e){return!!e.target}const GDe=e=>{const{innerRef:t,minColumnIndex:n=0,visibleColumns:r,sortColumnLookup:o,filterColumnLookup:i,columnPositions:a,columnHeaderTabIndexState:s,columnGroupHeaderTabIndexState:l,columnHeaderFocus:u,columnGroupHeaderFocus:c,densityFactor:f,headerGroupingMaxDepth:p,columnMenuState:y,columnVisibility:v,columnGroupsHeaderStructure:b,hasOtherElementInTabSequence:C}=e,x=Wt(),[w,S]=g.useState(""),[$,T]=g.useState(""),k=Iu(),M=it(k,eU),E=dt(),N=g.useRef(null),I=rn(t,N),[A,z]=g.useState(null),L=g.useRef(A),O=g.useRef(0),j=xd(k,E),H=JT(k,E.columnHeaderHeight),B=Math.floor(E.columnHeaderHeight*f),D=g.useCallback(Se=>{A&&Se&&wU(A,Se)||z(Se)},[A]);g.useEffect(()=>{k.current.columnHeadersContainerElementRef.current.scrollLeft=0},[k]);const W=g.useRef(iw(zje,{equalityCheck:(Se,de)=>["firstColumnIndex","minColumnIndex","columnBuffer"].every(ie=>Se[ie]===de[ie])})),U=g.useCallback(Se=>{const[de,ie]=Bl({firstIndex:Se.firstRowIndex,lastIndex:Se.lastRowIndex,minFirstIndex:0,maxLastIndex:j.rows.length,buffer:E.rowBuffer}),Pe=W.current({firstColumnIndex:Se.firstColumnIndex,minColumnIndex:n,columnBuffer:E.columnBuffer,firstRowToRender:de,lastRowToRender:ie,apiRef:k,visibleRows:j.rows}),$e=x.direction==="ltr"?1:-1,me=Pe>0?O.current-$e*a[Pe]:O.current;N.current.style.transform=`translate3d(${-me}px, 0px, 0px)`},[a,n,E.columnBuffer,k,j.rows,E.rowBuffer,x.direction]);g.useLayoutEffect(()=>{A&&U(A)},[A,U]);const Z=g.useCallback(({left:Se,renderContext:de=null},ie)=>{var Pe,$e;if(!N.current||O.current===Se&&((Pe=L.current)==null?void 0:Pe.firstColumnIndex)===(de==null?void 0:de.firstColumnIndex)&&(($e=L.current)==null?void 0:$e.lastColumnIndex)===(de==null?void 0:de.lastColumnIndex))return;O.current=Se;let me=!1;de!==L.current||!L.current?(UDe(ie)?(Su.flushSync(()=>{D(de)}),me=!0):D(de),L.current=de):me=!0,de&&me&&U(de)},[U,D]),Y=g.useCallback(Se=>T(Se.field),[]),se=g.useCallback(()=>T(""),[]),Q=g.useCallback(Se=>S(Se.field),[]),ne=g.useCallback(()=>S(""),[]);bt(k,"columnResizeStart",Y),bt(k,"columnResizeStop",se),bt(k,"columnHeaderDragStart",Q),bt(k,"columnHeaderDragEnd",ne),bt(k,"scrollPositionChange",Z);const re=Se=>{const{renderContext:de=A,minFirstColumn:ie=n,maxLastColumn:Pe=r.length}=Se||{};if(!de)return null;const[$e,me]=Bl({firstIndex:de.firstRowIndex,lastIndex:de.lastRowIndex,minFirstIndex:0,maxLastIndex:j.rows.length,buffer:E.rowBuffer}),ue=M?W.current({firstColumnIndex:de.firstColumnIndex,minColumnIndex:ie,columnBuffer:E.columnBuffer,apiRef:k,firstRowToRender:$e,lastRowToRender:me,visibleRows:j.rows}):0,ce=M?Math.min(de.lastColumnIndex+E.columnBuffer,Pe):Pe;return{renderedColumns:r.slice(ue,ce),firstColumnToRender:ue,lastColumnToRender:ce,minFirstColumn:ie,maxLastColumn:Pe}},ge=(Se,de={})=>{const ie=re(Se);if(ie==null)return null;const{renderedColumns:Pe,firstColumnToRender:$e}=ie,me=[];for(let ue=0;ue{if(p===0)return null;const de=re(Se);if(de==null||de.renderedColumns.length===0)return null;const{firstColumnToRender:ie,lastColumnToRender:Pe}=de,$e=[],me=[];for(let Te=0;Teet===Oe&&Be.includes(Re)),ee=r[Pe-1].field,pe=(ce=k.current.unstable_getColumnGroupPath(ee)[Te])!=null?ce:null,ye=Le.findIndex(({groupId:et,columnFields:Be})=>et===pe&&Be.includes(ee)),je=Le.slice(K,ye+1).map(et=>P({},et,{columnFields:et.columnFields.filter(Be=>v[Be]!==!1)})).filter(et=>et.columnFields.length>0),Ae=je[0].columnFields.indexOf(Re),Ce=je[0].columnFields.slice(0,Ae).reduce((et,Be)=>{var te;const X=k.current.getColumn(Be);return et+((te=X.computedWidth)!=null?te:0)},0);let Ze=ie;const Ct=je.map(({groupId:et,columnFields:Be})=>{const te=c!==null&&c.depth===Te&&Be.includes(c.field),X=l!==null&&l.depth===Te&&Be.includes(l.field)?0:-1,oe={groupId:et,width:Be.reduce((Ee,Ue)=>Ee+k.current.getColumn(Ue).computedWidth,0),fields:Be,colIndex:Ze,hasFocus:te,tabIndex:X};return Ze+=Be.length,oe});me.push({leftOverflow:Ce,elements:Ct})}return me.forEach((Te,Le)=>{$e.push(m.jsx(aF,{style:{height:`${B}px`,transform:`translateX(-${Te.leftOverflow}px)`},role:"row","aria-rowindex":Le+1,ownerState:E,children:Te.elements.map(({groupId:Re,width:Oe,fields:K,colIndex:ee,hasFocus:pe,tabIndex:ye},je)=>m.jsx(VDe,{groupId:Re,width:Oe,fields:K,colIndex:ee,depth:Le,isLastColumn:ee===r.length-K.length,maxDepth:me.length,height:B,hasFocus:pe,tabIndex:ye},je))},Le))}),$e},fe={minHeight:H,maxHeight:H,lineHeight:`${B}px`};return{renderContext:A,getColumnHeaders:ge,getColumnsToRender:re,getColumnGroupHeaders:xe,isDragging:!!w,getRootProps:(Se={})=>P({style:fe},Se),getInnerProps:()=>({ref:I,role:"rowgroup"}),headerHeight:B}},qDe=["className"],KDe=e=>{const{classes:t}=e;return Ke({root:["columnHeaders","withBorderColor"]},Jt,t)},YDe=Lr("div",{name:"MuiDataGrid",slot:"ColumnHeaders",overridesResolver:(e,t)=>t.columnHeaders})({position:"relative",overflow:"hidden",display:"flex",alignItems:"center",boxSizing:"border-box",borderBottom:"1px solid",borderTopLeftRadius:"var(--unstable_DataGrid-radius)",borderTopRightRadius:"var(--unstable_DataGrid-radius)"}),XDe=g.forwardRef(function(t,n){const{className:r}=t,o=be(t,qDe),i=dt(),a=KDe(i);return m.jsx(YDe,P({ref:n,className:Ne(r,a.root),ownerState:i},o,{role:"presentation"}))}),QDe=["isDragging","className"],ZDe=e=>{const{isDragging:t,hasScrollX:n,classes:r}=e;return Ke({root:["columnHeadersInner",t&&"columnHeaderDropZone",n&&"columnHeadersInner--scrollable"]},Jt,r)},JDe=Lr("div",{name:"MuiDataGrid",slot:"columnHeadersInner",overridesResolver:(e,t)=>[{[`&.${le.columnHeaderDropZone}`]:t.columnHeaderDropZone},t.columnHeadersInner]})(()=>({display:"flex",alignItems:"flex-start",flexDirection:"column",[`&.${le.columnHeaderDropZone} .${le.columnHeaderDraggableContainer}`]:{cursor:"move"},[`&.${le["columnHeadersInner--scrollable"]} .${le.columnHeader}:last-child`]:{borderRight:"none"}})),eNe=g.forwardRef(function(t,n){var r,o;const{isDragging:i,className:a}=t,s=be(t,QDe),l=Vt(),u=dt(),c=P({},u,{isDragging:i,hasScrollX:(r=(o=l.current.getRootDimensions())==null?void 0:o.hasScrollX)!=null?r:!1}),f=ZDe(c);return m.jsx(JDe,P({ref:n,className:Ne(a,f.root),ownerState:c},s))}),tNe=["innerRef","className","visibleColumns","sortColumnLookup","filterColumnLookup","columnPositions","columnHeaderTabIndexState","columnGroupHeaderTabIndexState","columnHeaderFocus","columnGroupHeaderFocus","densityFactor","headerGroupingMaxDepth","columnMenuState","columnVisibility","columnGroupsHeaderStructure","hasOtherElementInTabSequence"],nNe=g.forwardRef(function(t,n){const{innerRef:r,visibleColumns:o,sortColumnLookup:i,filterColumnLookup:a,columnPositions:s,columnHeaderTabIndexState:l,columnGroupHeaderTabIndexState:u,columnHeaderFocus:c,columnGroupHeaderFocus:f,densityFactor:p,headerGroupingMaxDepth:y,columnMenuState:v,columnVisibility:b,columnGroupsHeaderStructure:C,hasOtherElementInTabSequence:x}=t,w=be(t,tNe),{isDragging:S,getRootProps:$,getInnerProps:T,getColumnHeaders:k,getColumnGroupHeaders:M}=GDe({innerRef:r,visibleColumns:o,sortColumnLookup:i,filterColumnLookup:a,columnPositions:s,columnHeaderTabIndexState:l,columnGroupHeaderTabIndexState:u,columnHeaderFocus:c,columnGroupHeaderFocus:f,densityFactor:p,headerGroupingMaxDepth:y,columnMenuState:v,columnVisibility:b,columnGroupsHeaderStructure:C,hasOtherElementInTabSequence:x});return m.jsx(XDe,P({ref:n},$(w),{children:m.jsxs(eNe,P({isDragging:S},T(),{children:[M(),k()]}))}))}),rNe=pw(nNe),oNe=g.forwardRef(function(t,n){const o=Vt().current.getLocaleText("noResultsOverlayLabel");return m.jsx(VT,P({ref:n},t,{children:o}))}),iNe=["sortingOrder"],aNe=g.memo(function(t){const{sortingOrder:n}=t,r=be(t,iNe),o=dt(),[i]=n,a=i==="asc"?o.slots.columnSortedAscendingIcon:o.slots.columnSortedDescendingIcon;return a?m.jsx(a,P({},r)):null}),sNe=["native"];function lNe(e){let{native:t}=e,n=be(e,sNe);return t?m.jsx("option",P({},n)):m.jsx(rr,P({},n))}const uNe={BooleanCellTrueIcon:FFe,BooleanCellFalseIcon:o$,ColumnMenuIcon:EFe,OpenFilterButtonIcon:$Fe,FilterPanelDeleteIcon:o$,ColumnFilteredIcon:N9,ColumnSelectorIcon:kFe,ColumnUnsortedIcon:aNe,ColumnSortedAscendingIcon:F9,ColumnSortedDescendingIcon:L9,ColumnResizeIcon:PFe,DensityCompactIcon:MFe,DensityStandardIcon:TFe,DensityComfortableIcon:IFe,ExportIcon:AFe,MoreActionsIcon:LFe,TreeDataCollapseIcon:D9,TreeDataExpandIcon:j9,GroupingCriteriaCollapseIcon:D9,GroupingCriteriaExpandIcon:j9,DetailPanelExpandIcon:z9,DetailPanelCollapseIcon:RFe,RowReorderIcon:B9,QuickFilterIcon:_Fe,QuickFilterClearIcon:o$,ColumnMenuHideIcon:jFe,ColumnMenuSortAscendingIcon:F9,ColumnMenuSortDescendingIcon:L9,ColumnMenuFilterIcon:N9,ColumnMenuManageColumnsIcon:DFe,ColumnMenuClearIcon:NFe,LoadIcon:OFe,FilterPanelAddIcon:z9,FilterPanelRemoveAllIcon:zFe,ColumnReorderIcon:B9},cNe=P({},uNe,{BaseCheckbox:F_,BaseTextField:lu,BaseFormControl:xN,BaseSelect:zM,BaseSwitch:LN,BaseButton:Oa,BaseIconButton:Rr,BaseInputAdornment:kme,BaseTooltip:FN,BasePopper:ud,BaseInputLabel:kN,BaseSelectOption:lNe,BaseChip:cN}),dNe=cNe,fNe=P({},dNe,{Cell:Tk,SkeletonCell:J8e,ColumnHeaderFilterIconButton:gFe,ColumnMenu:tLe,ColumnHeaders:rNe,Footer:k7e,FooterRowCount:F7e,Toolbar:null,PreferencesPanel:TLe,LoadingOverlay:M7e,NoResultsOverlay:oNe,NoRowsOverlay:T7e,Pagination:E7e,FilterPanel:XLe,ColumnsPanel:SLe,Panel:MLe,Row:tje}),CU=e=>{if(e!==void 0)return Object.keys(e).reduce((t,n)=>P({},t,{[`${n.charAt(0).toLowerCase()}${n.slice(1)}`]:e[n]}),{})};function pNe({defaultSlots:e,slots:t,components:n}){const r=t??(n?CU(n):null);if(!r||Object.keys(r).length===0)return e;const o=P({},e);return Object.keys(r).forEach(i=>{const a=i;r[a]!==void 0&&(o[a]=r[a])}),o}const hNe=["components","componentsProps"];function mNe(e){var t;const n=Object.keys(e);if(!n.some(i=>i.startsWith("aria-")||i.startsWith("data-")))return e;const r={},o=(t=e.forwardedProps)!=null?t:{};for(let i=0;i{const{components:t,componentsProps:n}=e,r=be(e,hNe);return[t,n,mNe(r)]},[e])}const vNe={disableMultipleColumnsFiltering:!0,disableMultipleColumnsSorting:!0,disableMultipleRowSelection:!0,throttleRowsMs:void 0,hideFooterRowCount:!1,pagination:!0,checkboxSelectionVisibleOnly:!1,disableColumnReorder:!0,disableColumnResize:!0,keepColumnPositionIfDraggedOutside:!1,signature:"DataGrid"},vw={autoHeight:!1,autoPageSize:!1,checkboxSelection:!1,checkboxSelectionVisibleOnly:!1,columnBuffer:3,rowBuffer:3,columnThreshold:3,rowThreshold:3,rowSelection:!0,density:"standard",disableColumnFilter:!1,disableColumnMenu:!1,disableColumnSelector:!1,disableDensitySelector:!1,disableEval:!1,disableMultipleColumnsFiltering:!1,disableMultipleRowSelection:!1,disableMultipleColumnsSorting:!1,disableRowSelectionOnClick:!1,disableVirtualization:!1,editMode:bs.Cell,filterMode:"client",filterDebounceMs:150,columnHeaderHeight:56,hideFooter:!1,hideFooterPagination:!1,hideFooterRowCount:!1,hideFooterSelectedRowCount:!1,ignoreDiacritics:!1,logger:console,logLevel:"error",pagination:!1,paginationMode:"client",rowHeight:52,pageSizeOptions:[25,50,100],rowSpacingType:"margin",showCellVerticalBorder:!1,showColumnVerticalBorder:!1,sortingOrder:["asc","desc",null],sortingMode:"client",throttleRowsMs:0,disableColumnReorder:!1,disableColumnResize:!1,keepNonExistentRowsSelected:!1,keepColumnPositionIfDraggedOutside:!1,unstable_ignoreValueFormatterDuringExport:!1,clipboardCopyCellDelimiter:" ",rowPositionsDebounceMs:166},yNe=CU(fNe),bNe=e=>{const[t,n,r]=gNe($t({props:e,name:"MuiDataGrid"})),o=g.useMemo(()=>P({},TDe,r.localeText),[r.localeText]),i=g.useMemo(()=>pNe({defaultSlots:yNe,slots:r.slots,components:t}),[t,r.slots]);return g.useMemo(()=>{var a;return P({},vw,r,{localeText:o,slots:i,slotProps:(a=r.slotProps)!=null?a:n},vNe)},[r,o,i,n])},xNe=e=>P({},e,{rowsMeta:{currentPageTotalHeight:0,positions:[]}}),sF=(e,t,n)=>typeof e=="number"&&e>0?e:t,wNe=(e,t)=>{const{getRowHeight:n,getRowSpacing:r,getEstimatedRowHeight:o}=t,i=g.useRef(Object.create(null)),a=g.useRef(-1),s=g.useRef(!1),l=it(e,oh),u=it(e,Yr),c=it(e,qV),f=it(e,zi),p=xd(e,t),y=it(e,rh),v=sF(t.rowHeight,vw.rowHeight),b=Math.floor(v*l),C=g.useCallback(()=>{var z,L;s.current=!1;const O=B=>{i.current[B.id]||(i.current[B.id]={sizes:{baseCenter:b},isResized:!1,autoHeight:!1,needsFirstMeasurement:!0});const{isResized:D,needsFirstMeasurement:W,sizes:U}=i.current[B.id];let Z=typeof b=="number"&&b>0?b:52;const Y=U.baseCenter;if(D)Z=Y;else if(n){const ge=n(P({},B,{densityFactor:l}));if(ge==="auto"){if(W){const xe=o?o(P({},B,{densityFactor:l})):b;Z=xe??b}else Z=Y;s.current=!0,i.current[B.id].autoHeight=!0}else Z=sF(ge,b),i.current[B.id].needsFirstMeasurement=!1,i.current[B.id].autoHeight=!1}else i.current[B.id].needsFirstMeasurement=!1;const se={};for(const ge in U)/^base[A-Z]/.test(ge)&&(se[ge]=U[ge]);if(se.baseCenter=Z,r){var Q,ne;const ge=e.current.getRowIndexRelativeToVisibleRows(B.id),xe=r(P({},B,{isFirstVisible:ge===0,isLastVisible:ge===p.rows.length-1,indexRelativeToCurrentPage:ge}));se.spacingTop=(Q=xe.top)!=null?Q:0,se.spacingBottom=(ne=xe.bottom)!=null?ne:0}const re=e.current.unstable_applyPipeProcessors("rowHeight",se,B);return i.current[B.id].sizes=re,re},j=[],H=p.rows.reduce((B,D)=>{j.push(B);let W=0,U=0;const Z=O(D);for(const Y in Z){const se=Z[Y];/^base[A-Z]/.test(Y)?W=se>W?se:W:U+=se}return B+W+U},0);y==null||(z=y.top)==null||z.forEach(B=>{O(B)}),y==null||(L=y.bottom)==null||L.forEach(B=>{O(B)}),e.current.setState(B=>P({},B,{rowsMeta:{currentPageTotalHeight:H,positions:j}})),s.current||(a.current=1/0),e.current.forceUpdate()},[e,p.rows,b,n,r,o,y,l]),x=g.useCallback(z=>{const L=i.current[z];return L?L.sizes.baseCenter:b},[b]),w=z=>{var L;return(L=i.current[z])==null?void 0:L.sizes},S=g.useCallback((z,L)=>{i.current[z].sizes.baseCenter=L,i.current[z].isResized=!0,i.current[z].needsFirstMeasurement=!1,C()},[C]),$=g.useMemo(()=>_u(C,t.rowPositionsDebounceMs),[C,t.rowPositionsDebounceMs]),T=g.useCallback((z,L,O)=>{if(!i.current[z]||!i.current[z].autoHeight)return;const j=i.current[z].sizes[`base${De(O)}`]!==L;i.current[z].needsFirstMeasurement=!1,i.current[z].sizes[`base${De(O)}`]=L,j&&$()},[$]),k=g.useCallback(z=>{var L;return((L=i.current[z])==null?void 0:L.autoHeight)||!1},[]),M=g.useCallback(()=>a.current,[]),E=g.useCallback(z=>{s.current&&z>a.current&&(a.current=z)},[]),N=g.useCallback(()=>{i.current={},C()},[C]);g.useEffect(()=>{C()},[b,u,c,f,C]),ZT(e,"rowHeight",C);const I={unstable_setLastMeasuredRowIndex:E,unstable_getRowHeight:x,unstable_getRowInternalSizes:w,unstable_setRowHeight:S,unstable_storeRowHeightMeasurement:T,resetRowHeights:N},A={getLastMeasuredRowIndex:M,rowHasAutoHeight:k};Xt(e,I,"public"),Xt(e,A,"private")},CNe=e=>{const t=g.useCallback((o={})=>e.current.unstable_applyPipeProcessors("exportState",{},o),[e]),n=g.useCallback(o=>{e.current.unstable_applyPipeProcessors("restoreState",{callbacks:[]},{stateToRestore:o}).callbacks.forEach(a=>{a()}),e.current.forceUpdate()},[e]);Xt(e,{exportState:t,restoreState:n},"public")},SNe=e=>{const t=g.useRef({}),n=g.useCallback((u,c,f)=>{const p=t.current;p[u]||(p[u]={}),p[u][c]=f},[]),r=g.useCallback((u,c)=>{var f;return(f=t.current[u])==null?void 0:f[c]},[]),o=g.useCallback(u=>{const{columnIndex:c,rowId:f,minFirstColumnIndex:p,maxLastColumnIndex:y,columns:v}=u,b=v.length,C=v[c],x=typeof C.colSpan=="function"?C.colSpan(e.current.getCellParams(f,C.field)):C.colSpan;if(!x||x===1)return n(f,c,{spannedByColSpan:!1,cellProps:{colSpan:1,width:C.computedWidth}}),{colSpan:1};let w=C.computedWidth;for(let S=1;S=p&&${for(let y=c;y1&&(y+=v.colSpan-1)}},[o]),a={unstable_getCellColSpanInfo:r},s={calculateColSpan:i};Xt(e,a,"public"),Xt(e,s,"private");const l=g.useCallback(()=>{t.current={}},[]);bt(e,"columnOrderChange",l)},SU=(e,t,n)=>{if(AV(e)){if(n[e.field]!==void 0)throw new Error(["MUI: columnGroupingModel contains duplicated field",`column field ${e.field} occurs two times in the grouping model:`,`- ${n[e.field].join(" > ")}`,`- ${t.join(" > ")}`].join(` +`));n[e.field]=t;return}const{groupId:r,children:o}=e;o.forEach(i=>{SU(i,[...t,r],n)})},Dk=e=>{if(!e)return{};const t={};return e.forEach(n=>{SU(n,[],t)}),t},Nk=(e,t,n)=>{const r=l=>{var u;return(u=t[l])!=null?u:[]},o=[],i=Math.max(...e.map(l=>r(l).length)),a=(l,u,c)=>il(r(l).slice(0,c+1),r(u).slice(0,c+1)),s=(l,u)=>!!(n!=null&&n.left&&n.left.includes(l)&&!n.left.includes(u)||n!=null&&n.right&&!n.right.includes(l)&&n.right.includes(u));for(let l=0;l{var p;const y=(p=r(f)[l])!=null?p:null;if(c.length===0)return[{columnFields:[f],groupId:y}];const v=c[c.length-1],b=v.columnFields[v.columnFields.length-1];return v.groupId!==y||!a(b,f,l)||s(b,f)?[...c,{columnFields:[f],groupId:y}]:[...c.slice(0,c.length-1),{columnFields:[...v.columnFields,f],groupId:y}]},[]);o.push(u)}return o},$Ne=["groupId","children"],e3=e=>{let t={};return e.forEach(n=>{if(AV(n))return;const{groupId:r,children:o}=n,i=be(n,$Ne);if(!r)throw new Error("MUI: An element of the columnGroupingModel does not have either `field` or `groupId`.");o||console.warn(`MUI: group groupId=${r} has no children.`);const a=P({},i,{groupId:r}),s=e3(o);if(s[r]!==void 0||t[r]!==void 0)throw new Error(`MUI: The groupId ${r} is used multiple times in the columnGroupingModel.`);t=P({},t,s,{[r]:a})}),P({},t)},_Ne=(e,t,n)=>{var r,o,i,a;if(!((r=t.experimentalFeatures)!=null&&r.columnGrouping))return e;const s=ol(n),l=aw(n),u=e3((o=t.columnGroupingModel)!=null?o:[]),c=Dk((i=t.columnGroupingModel)!=null?i:[]),f=Nk(s,c,(a=n.current.state.pinnedColumns)!=null?a:{}),p=l.length===0?0:Math.max(...l.map(y=>{var v,b;return(v=(b=c[y])==null?void 0:b.length)!=null?v:0}));return P({},e,{columnGrouping:{lookup:u,unwrappedGroupingModel:c,headerStructure:f,maxDepth:p}})},kNe=(e,t)=>{var n;const r=g.useCallback(l=>{var u;return(u=PAe(e)[l])!=null?u:[]},[e]),o=g.useCallback(()=>wV(e),[e]);Xt(e,{unstable_getColumnGroupPath:r,unstable_getAllGroupDetails:o},"public");const a=g.useCallback(()=>{var l;const u=Dk((l=t.columnGroupingModel)!=null?l:[]);e.current.setState(c=>{var f,p,y;const v=(f=(p=c.columns)==null?void 0:p.orderedFields)!=null?f:[],b=(y=c.pinnedColumns)!=null?y:{},C=Nk(v,u,b);return P({},c,{columnGrouping:P({},c.columnGrouping,{headerStructure:C})})})},[e,t.columnGroupingModel]),s=g.useCallback(l=>{var u,c,f,p;if(!((u=t.experimentalFeatures)!=null&&u.columnGrouping))return;const y=(c=(f=(p=e.current).getPinnedColumns)==null?void 0:f.call(p))!=null?c:{},v=ol(e),b=aw(e),C=e3(l??[]),x=Dk(l??[]),w=Nk(v,x,y),S=b.length===0?0:Math.max(...b.map($=>{var T,k;return(T=(k=x[$])==null?void 0:k.length)!=null?T:0}));e.current.setState($=>P({},$,{columnGrouping:{lookup:C,unwrappedGroupingModel:x,headerStructure:w,maxDepth:S}}))},[e,(n=t.experimentalFeatures)==null?void 0:n.columnGrouping]);bt(e,"columnIndexChange",a),bt(e,"columnsChange",()=>{s(t.columnGroupingModel)}),bt(e,"columnVisibilityModelChange",()=>{s(t.columnGroupingModel)}),g.useEffect(()=>{s(t.columnGroupingModel)},[s,t.columnGroupingModel])},PNe=(e,t)=>{const n=gje(e,t);return EDe(n,t),kDe(n),Fo(PDe,n,t),Fo(Bje,n,t),Fo(wDe,n,t),Fo(bDe,n,t),Fo(iDe,n,t),Fo(RDe,n,t),Fo(uDe,n,t),Fo(tDe,n,t),Fo(Uje,n,t),Fo(Xje,n,t),Fo(xNe,n,t),Fo(Lje,n,t),Fo(_Ne,n,t),Fo(fFe,n,t),lDe(n,t),MDe(n,t),Hje(n,t),CDe(n,t),s8e(n,t),SNe(n),kNe(n,t),xDe(n,t),aDe(n,t),cDe(n,t),oDe(n,t),ODe(n,t),Gje(n,t),Qje(n,t),wNe(n,t),ADe(n,t),jje(n),Yje(n,t),eDe(n,t),Fje(n,t),jDe(n,t),FDe(n,t),CNe(n),pFe(n,t),n},MNe=e=>{const{classes:t}=e;return Ke({root:["virtualScroller"]},Jt,t)},TNe=Lr("div",{name:"MuiDataGrid",slot:"VirtualScroller",overridesResolver:(e,t)=>t.virtualScroller})({overflow:"auto",height:"100%",position:"relative","@media print":{overflow:"hidden"},zIndex:0}),INe=g.forwardRef(function(t,n){const r=dt(),o=MNe(r);return m.jsx(TNe,P({ref:n},t,{className:Ne(o.root,t.className),ownerState:r}))}),ENe=(e,t)=>{const{classes:n}=e;return Ke({root:["virtualScrollerContent",t&&"virtualScrollerContent--overflowed"]},Jt,n)},RNe=Lr("div",{name:"MuiDataGrid",slot:"VirtualScrollerContent",overridesResolver:(e,t)=>t.virtualScrollerContent})({}),ONe=g.forwardRef(function(t,n){var r;const o=dt(),i=!o.autoHeight&&((r=t.style)==null?void 0:r.minHeight)==="auto",a=ENe(o,i);return m.jsx(RNe,P({ref:n},t,{ownerState:o,className:Ne(a.root,t.className)}))}),ANe=["className"],FNe=e=>{const{classes:t}=e;return Ke({root:["virtualScrollerRenderZone"]},Jt,t)},LNe=Lr("div",{name:"MuiDataGrid",slot:"VirtualScrollerRenderZone",overridesResolver:(e,t)=>t.virtualScrollerRenderZone})({position:"absolute",display:"flex",flexDirection:"column"}),jNe=g.forwardRef(function(t,n){const{className:r}=t,o=be(t,ANe),i=dt(),a=FNe(i);return m.jsx(LNe,P({ref:n,className:Ne(a.root,r),ownerState:i},o))}),DNe=["className"],NNe=g.forwardRef(function(t,n){const{className:r}=t,o=be(t,DNe),{getRootProps:i,getContentProps:a,getRenderZoneProps:s,getRows:l}=HDe({ref:n});return m.jsxs(INe,P({className:r},i(o),{children:[m.jsx(e8e,{}),m.jsx(ONe,P({},a(),{children:m.jsx(jNe,P({},s(),{children:l()}))}))]}))}),$U=g.forwardRef(function(t,n){const r=bNe(t),o=PNe(r.apiRef,r);return m.jsx(nje,{privateApiRef:o,props:r,children:m.jsxs(o9e,P({className:r.className,style:r.style,sx:r.sx,ref:n},r.forwardedProps,{children:[m.jsx(P7e,{}),m.jsx(UAe,{VirtualScrollerComponent:NNe}),m.jsx(GAe,{})]}))})}),Ms=g.memo($U);vw.filterDebounceMs;vw.filterDebounceMs;$U.propTypes={apiRef:R.shape({current:R.object.isRequired}),"aria-label":R.string,"aria-labelledby":R.string,autoHeight:R.bool,autoPageSize:R.bool,cellModesModel:R.object,checkboxSelection:R.bool,classes:R.object,clipboardCopyCellDelimiter:R.string,columnBuffer:R.number,columnGroupingModel:R.arrayOf(R.object),columnHeaderHeight:R.number,columns:Hoe(R.array.isRequired),columnThreshold:R.number,columnVisibilityModel:R.object,components:R.object,componentsProps:R.object,density:R.oneOf(["comfortable","compact","standard"]),disableColumnFilter:R.bool,disableColumnMenu:R.bool,disableColumnSelector:R.bool,disableDensitySelector:R.bool,disableEval:R.bool,disableRowSelectionOnClick:R.bool,disableVirtualization:R.bool,editMode:R.oneOf(["cell","row"]),experimentalFeatures:R.shape({ariaV7:R.bool,columnGrouping:R.bool,warnIfFocusStateIsNotSynced:R.bool}),filterDebounceMs:R.number,filterMode:R.oneOf(["client","server"]),filterModel:R.shape({items:R.arrayOf(R.shape({field:R.string.isRequired,id:R.oneOfType([R.number,R.string]),operator:R.string.isRequired,value:R.any})).isRequired,logicOperator:R.oneOf(["and","or"]),quickFilterExcludeHiddenColumns:R.bool,quickFilterLogicOperator:R.oneOf(["and","or"]),quickFilterValues:R.array}),forwardedProps:R.object,getCellClassName:R.func,getDetailPanelContent:R.func,getEstimatedRowHeight:R.func,getRowClassName:R.func,getRowHeight:R.func,getRowId:R.func,getRowSpacing:R.func,hideFooter:R.bool,hideFooterPagination:R.bool,hideFooterSelectedRowCount:R.bool,ignoreDiacritics:R.bool,initialState:R.object,isCellEditable:R.func,isRowSelectable:R.func,keepNonExistentRowsSelected:R.bool,loading:R.bool,localeText:R.object,logger:R.shape({debug:R.func.isRequired,error:R.func.isRequired,info:R.func.isRequired,warn:R.func.isRequired}),logLevel:R.oneOf(["debug","error","info","warn",!1]),nonce:R.string,onCellClick:R.func,onCellDoubleClick:R.func,onCellEditStart:R.func,onCellEditStop:R.func,onCellKeyDown:R.func,onCellModesModelChange:R.func,onClipboardCopy:R.func,onColumnHeaderClick:R.func,onColumnHeaderDoubleClick:R.func,onColumnHeaderEnter:R.func,onColumnHeaderLeave:R.func,onColumnHeaderOut:R.func,onColumnHeaderOver:R.func,onColumnOrderChange:R.func,onColumnVisibilityModelChange:R.func,onFilterModelChange:R.func,onMenuClose:R.func,onMenuOpen:R.func,onPaginationModelChange:R.func,onPreferencePanelClose:R.func,onPreferencePanelOpen:R.func,onProcessRowUpdateError:R.func,onResize:R.func,onRowClick:R.func,onRowDoubleClick:R.func,onRowEditCommit:R.func,onRowEditStart:R.func,onRowEditStop:R.func,onRowModesModelChange:R.func,onRowSelectionModelChange:R.func,onSortModelChange:R.func,onStateChange:R.func,pageSizeOptions:R.arrayOf(R.oneOfType([R.number,R.shape({label:R.string.isRequired,value:R.number.isRequired})]).isRequired),pagination:e=>e.pagination===!1?new Error(["MUI: `` is not a valid prop.","Infinite scrolling is not available in the MIT version.","","You need to upgrade to DataGridPro or DataGridPremium component to disable the pagination."].join(` +`)):null,paginationMode:R.oneOf(["client","server"]),paginationModel:R.shape({page:R.number.isRequired,pageSize:R.number.isRequired}),processRowUpdate:R.func,rowBuffer:R.number,rowCount:R.number,rowHeight:R.number,rowModesModel:R.object,rowPositionsDebounceMs:R.number,rows:R.arrayOf(R.object).isRequired,rowSelection:R.bool,rowSelectionModel:R.oneOfType([R.arrayOf(R.oneOfType([R.number,R.string]).isRequired),R.number,R.string]),rowSpacingType:R.oneOf(["border","margin"]),rowThreshold:R.number,scrollbarSize:R.number,showCellVerticalBorder:R.bool,showColumnVerticalBorder:R.bool,slotProps:R.object,slots:R.object,sortingMode:R.oneOf(["client","server"]),sortingOrder:R.arrayOf(R.oneOf(["asc","desc"])),sortModel:R.arrayOf(R.shape({field:R.string.isRequired,sort:R.oneOf(["asc","desc"])})),sx:R.oneOfType([R.arrayOf(R.oneOfType([R.func,R.object,R.bool])),R.func,R.object]),unstable_ignoreValueFormatterDuringExport:R.oneOfType([R.shape({clipboardExport:R.bool,csvExport:R.bool}),R.bool])};const zNe=ke(e=>m.jsx(c0,{elevation:0,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},...e}))(({theme:e})=>({"& .MuiPaper-root":{borderRadius:6,marginTop:e.spacing(1),minWidth:180,color:e.palette.mode==="light"?"rgb(55, 65, 81)":e.palette.grey[300],boxShadow:"rgb(255, 255, 255) 0px 0px 0px 0px, rgba(0, 0, 0, 0.05) 0px 0px 0px 1px, rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05) 0px 4px 6px -2px","& .MuiMenu-list":{padding:"4px 0"},"& .MuiMenuItem-root":{"& .MuiSvgIcon-root":{fontSize:18,color:e.palette.text.secondary,marginRight:e.spacing(1.5)},"&:active":{backgroundColor:Rt(e.palette.primary.main,e.palette.action.selectedOpacity)}}}}));function Ts(){const[e,t]=g.useState(null),n=!!e,r=i=>{t(i.currentTarget)},o=()=>{t(null)};return m.jsxs(m.Fragment,{children:[m.jsx(Rr,{id:"demo-customized-button","aria-controls":n?"demo-customized-menu":void 0,"aria-haspopup":"true","aria-expanded":n?"true":void 0,onClick:r,children:m.jsx(Ebe,{})}),m.jsxs(zNe,{id:"demo-customized-menu",MenuListProps:{"aria-labelledby":"demo-customized-button"},anchorEl:e,open:n,onClose:o,children:[m.jsxs(rr,{onClick:o,disableRipple:!0,children:[m.jsx(h0,{}),"Edit"]}),m.jsxs(rr,{onClick:o,disableRipple:!0,children:[m.jsx(Tbe,{}),"Duplicate"]}),m.jsx(Hc,{sx:{my:.5}}),m.jsxs(rr,{onClick:o,disableRipple:!0,children:[m.jsx(Cbe,{}),"Archive"]}),m.jsxs(rr,{onClick:o,disableRipple:!0,children:[m.jsx(Ibe,{}),"More"]})]})]})}function Is(){const e=Wt(),t=_n(e.palette.mode);return m.jsxs(m9e,{sx:{marginBottom:"1rem"},children:[m.jsx(n7e,{style:{color:t.primary[100]}}),m.jsx(l7e,{style:{color:t.primary[100]}}),m.jsx(o7e,{style:{color:t.primary[100]}}),m.jsx(g7e,{style:{color:t.primary[100]}}),m.jsx(w7e,{style:{color:t.primary[100]}})]})}const BNe=[...sAe,{field:"options",headerName:"",sortable:!1,flex:1,minWidth:60,maxWidth:60,renderCell:()=>m.jsx(Ve,{children:m.jsx(Ts,{})})}];function HNe(){return m.jsx(Ve,{sx:{height:400,width:"100%"},children:m.jsx(Ms,{rows:lAe,columns:BNe,disableColumnFilter:!0,disableColumnSelector:!0,disableDensitySelector:!0,slots:{toolbar:Is},slotProps:{filterPanel:{sx:{maxWidth:"100vw"}},toolbar:{showQuickFilter:!0}},editMode:"row",initialState:{columns:{columnVisibilityModel:{remainingTerm:!1}},filter:{filterModel:{items:[],quickFilterExcludeHiddenColumns:!0}},pagination:{paginationModel:{page:0,pageSize:10}}},pageSizeOptions:[5,10]})})}const WNe=()=>m.jsx(gr,{title:"Income Sources",content:m.jsx(HNe,{}),height:500});var t3={},VNe=ei;Object.defineProperty(t3,"__esModule",{value:!0});var _U=t3.default=void 0,UNe=VNe(ti()),GNe=m,qNe=(0,UNe.default)((0,GNe.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"AddOutlined");_U=t3.default=qNe;var n3={},KNe=ei;Object.defineProperty(n3,"__esModule",{value:!0});var kU=n3.default=void 0,YNe=KNe(ti()),XNe=m,QNe=(0,YNe.default)((0,XNe.jsx)("path",{d:"M18 4H6C3.79 4 2 5.79 2 8v8c0 2.21 1.79 4 4 4h12c2.21 0 4-1.79 4-4V8c0-2.21-1.79-4-4-4zm-1.86 9.77c-.24.2-.57.28-.88.2L4.15 11.25C4.45 10.52 5.16 10 6 10h12c.67 0 1.26.34 1.63.84l-3.49 2.93zM6 6h12c1.1 0 2 .9 2 2v.55c-.59-.34-1.27-.55-2-.55H6c-.73 0-1.41.21-2 .55V8c0-1.1.9-2 2-2z"}),"WalletOutlined");kU=n3.default=QNe;var ZNe=function(t){return JNe(t)&&!eze(t)};function JNe(e){return!!e&&typeof e=="object"}function eze(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||rze(e)}var tze=typeof Symbol=="function"&&Symbol.for,nze=tze?Symbol.for("react.element"):60103;function rze(e){return e.$$typeof===nze}function oze(e){return Array.isArray(e)?[]:{}}function xb(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Vg(oze(e),e,t):e}function ize(e,t,n){return e.concat(t).map(function(r){return xb(r,n)})}function aze(e,t,n){var r={};return n.isMergeableObject(e)&&Object.keys(e).forEach(function(o){r[o]=xb(e[o],n)}),Object.keys(t).forEach(function(o){!n.isMergeableObject(t[o])||!e[o]?r[o]=xb(t[o],n):r[o]=Vg(e[o],t[o],n)}),r}function Vg(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||ize,n.isMergeableObject=n.isMergeableObject||ZNe;var r=Array.isArray(t),o=Array.isArray(e),i=r===o;return i?r?n.arrayMerge(e,t,n):aze(e,t,n):xb(t,n)}Vg.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,o){return Vg(r,o,n)},{})};var zk=Vg,sze=typeof global=="object"&&global&&global.Object===Object&&global;const PU=sze;var lze=typeof self=="object"&&self&&self.Object===Object&&self,uze=PU||lze||Function("return this")();const Es=uze;var cze=Es.Symbol;const bu=cze;var MU=Object.prototype,dze=MU.hasOwnProperty,fze=MU.toString,tm=bu?bu.toStringTag:void 0;function pze(e){var t=dze.call(e,tm),n=e[tm];try{e[tm]=void 0;var r=!0}catch{}var o=fze.call(e);return r&&(t?e[tm]=n:delete e[tm]),o}var hze=Object.prototype,mze=hze.toString;function gze(e){return mze.call(e)}var vze="[object Null]",yze="[object Undefined]",lF=bu?bu.toStringTag:void 0;function wd(e){return e==null?e===void 0?yze:vze:lF&&lF in Object(e)?pze(e):gze(e)}function TU(e,t){return function(n){return e(t(n))}}var bze=TU(Object.getPrototypeOf,Object);const r3=bze;function Cd(e){return e!=null&&typeof e=="object"}var xze="[object Object]",wze=Function.prototype,Cze=Object.prototype,IU=wze.toString,Sze=Cze.hasOwnProperty,$ze=IU.call(Object);function uF(e){if(!Cd(e)||wd(e)!=xze)return!1;var t=r3(e);if(t===null)return!0;var n=Sze.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&IU.call(n)==$ze}var cF=Array.isArray,dF=Object.keys,_ze=Object.prototype.hasOwnProperty,kze=typeof Element<"u";function Bk(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){var n=cF(e),r=cF(t),o,i,a;if(n&&r){if(i=e.length,i!=t.length)return!1;for(o=i;o--!==0;)if(!Bk(e[o],t[o]))return!1;return!0}if(n!=r)return!1;var s=e instanceof Date,l=t instanceof Date;if(s!=l)return!1;if(s&&l)return e.getTime()==t.getTime();var u=e instanceof RegExp,c=t instanceof RegExp;if(u!=c)return!1;if(u&&c)return e.toString()==t.toString();var f=dF(e);if(i=f.length,i!==dF(t).length)return!1;for(o=i;o--!==0;)if(!_ze.call(t,f[o]))return!1;if(kze&&e instanceof Element&&t instanceof Element)return e===t;for(o=i;o--!==0;)if(a=f[o],!(a==="_owner"&&e.$$typeof)&&!Bk(e[a],t[a]))return!1;return!0}return e!==e&&t!==t}var Pze=function(t,n){try{return Bk(t,n)}catch(r){if(r.message&&r.message.match(/stack|recursion/i)||r.number===-2146828260)return console.warn("Warning: react-fast-compare does not handle circular references.",r.name,r.message),!1;throw r}};const Ju=Fr(Pze);var Mze=!0;function Tze(e,t){if(!Mze){if(e)return;var n="Warning: "+t;typeof console<"u"&&console.warn(n);try{throw Error(n)}catch{}}}function Ize(){this.__data__=[],this.size=0}function EU(e,t){return e===t||e!==e&&t!==t}function yw(e,t){for(var n=e.length;n--;)if(EU(e[n][0],t))return n;return-1}var Eze=Array.prototype,Rze=Eze.splice;function Oze(e){var t=this.__data__,n=yw(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Rze.call(t,n,1),--this.size,!0}function Aze(e){var t=this.__data__,n=yw(t,e);return n<0?void 0:t[n][1]}function Fze(e){return yw(this.__data__,e)>-1}function Lze(e,t){var n=this.__data__,r=yw(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function yl(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=WBe}var VBe="[object Arguments]",UBe="[object Array]",GBe="[object Boolean]",qBe="[object Date]",KBe="[object Error]",YBe="[object Function]",XBe="[object Map]",QBe="[object Number]",ZBe="[object Object]",JBe="[object RegExp]",eHe="[object Set]",tHe="[object String]",nHe="[object WeakMap]",rHe="[object ArrayBuffer]",oHe="[object DataView]",iHe="[object Float32Array]",aHe="[object Float64Array]",sHe="[object Int8Array]",lHe="[object Int16Array]",uHe="[object Int32Array]",cHe="[object Uint8Array]",dHe="[object Uint8ClampedArray]",fHe="[object Uint16Array]",pHe="[object Uint32Array]",Qn={};Qn[iHe]=Qn[aHe]=Qn[sHe]=Qn[lHe]=Qn[uHe]=Qn[cHe]=Qn[dHe]=Qn[fHe]=Qn[pHe]=!0;Qn[VBe]=Qn[UBe]=Qn[rHe]=Qn[GBe]=Qn[oHe]=Qn[qBe]=Qn[KBe]=Qn[YBe]=Qn[XBe]=Qn[QBe]=Qn[ZBe]=Qn[JBe]=Qn[eHe]=Qn[tHe]=Qn[nHe]=!1;function hHe(e){return Cd(e)&&DU(e.length)&&!!Qn[wd(e)]}function o3(e){return function(t){return e(t)}}var NU=typeof gi=="object"&&gi&&!gi.nodeType&&gi,jm=NU&&typeof vi=="object"&&vi&&!vi.nodeType&&vi,mHe=jm&&jm.exports===NU,l$=mHe&&PU.process,gHe=function(){try{var e=jm&&jm.require&&jm.require("util").types;return e||l$&&l$.binding&&l$.binding("util")}catch{}}();const Rp=gHe;var vF=Rp&&Rp.isTypedArray,vHe=vF?o3(vF):hHe;const yHe=vHe;var bHe=Object.prototype,xHe=bHe.hasOwnProperty;function zU(e,t){var n=R0(e),r=!n&&ABe(e),o=!n&&!r&&jU(e),i=!n&&!r&&!o&&yHe(e),a=n||r||o||i,s=a?TBe(e.length,String):[],l=s.length;for(var u in e)(t||xHe.call(e,u))&&!(a&&(u=="length"||o&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||HBe(u,l)))&&s.push(u);return s}var wHe=Object.prototype;function i3(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||wHe;return e===n}var CHe=TU(Object.keys,Object);const SHe=CHe;var $He=Object.prototype,_He=$He.hasOwnProperty;function kHe(e){if(!i3(e))return SHe(e);var t=[];for(var n in Object(e))_He.call(e,n)&&n!="constructor"&&t.push(n);return t}function BU(e){return e!=null&&DU(e.length)&&!RU(e)}function a3(e){return BU(e)?zU(e):kHe(e)}function PHe(e,t){return e&&xw(t,a3(t),e)}function MHe(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var THe=Object.prototype,IHe=THe.hasOwnProperty;function EHe(e){if(!E0(e))return MHe(e);var t=i3(e),n=[];for(var r in e)r=="constructor"&&(t||!IHe.call(e,r))||n.push(r);return n}function s3(e){return BU(e)?zU(e,!0):EHe(e)}function RHe(e,t){return e&&xw(t,s3(t),e)}var HU=typeof gi=="object"&&gi&&!gi.nodeType&&gi,yF=HU&&typeof vi=="object"&&vi&&!vi.nodeType&&vi,OHe=yF&&yF.exports===HU,bF=OHe?Es.Buffer:void 0,xF=bF?bF.allocUnsafe:void 0;function AHe(e,t){if(t)return e.slice();var n=e.length,r=xF?xF(n):new e.constructor(n);return e.copy(r),r}function WU(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n=0)&&(n[o]=e[o]);return n}var ww=g.createContext(void 0);ww.displayName="FormikContext";var kVe=ww.Provider;ww.Consumer;function PVe(){var e=g.useContext(ww);return e||Tze(!1),e}var Di=function(t){return typeof t=="function"},Cw=function(t){return t!==null&&typeof t=="object"},MVe=function(t){return String(Math.floor(Number(t)))===t},u$=function(t){return Object.prototype.toString.call(t)==="[object String]"},TVe=function(t){return g.Children.count(t)===0},c$=function(t){return Cw(t)&&Di(t.then)};function li(e,t,n,r){r===void 0&&(r=0);for(var o=JU(t);e&&r=0?[]:{}}}return(i===0?e:o)[a[i]]===n?e:(n===void 0?delete o[a[i]]:o[a[i]]=n,i===0&&n===void 0&&delete r[a[i]],r)}function tG(e,t,n,r){n===void 0&&(n=new WeakMap),r===void 0&&(r={});for(var o=0,i=Object.keys(e);o0?ee.map(function(ye){return I(ye,li(K,ye))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(pe).then(function(ye){return ye.reduce(function(je,Ae,Ie){return Ae==="DO_NOT_DELETE_YOU_WILL_BE_FIRED"||Ae&&(je=Tc(je,ee[Ie],Ae)),je},{})})},[I]),z=g.useCallback(function(K){return Promise.all([A(K),p.validationSchema?N(K):{},p.validate?E(K):{}]).then(function(ee){var pe=ee[0],ye=ee[1],je=ee[2],Ae=zk.all([pe,ye,je],{arrayMerge:FVe});return Ae})},[p.validate,p.validationSchema,A,E,N]),L=ji(function(K){return K===void 0&&(K=k.values),M({type:"SET_ISVALIDATING",payload:!0}),z(K).then(function(ee){return x.current&&(M({type:"SET_ISVALIDATING",payload:!1}),M({type:"SET_ERRORS",payload:ee})),ee})});g.useEffect(function(){a&&x.current===!0&&Ju(y.current,p.initialValues)&&L(y.current)},[a,L]);var O=g.useCallback(function(K){var ee=K&&K.values?K.values:y.current,pe=K&&K.errors?K.errors:v.current?v.current:p.initialErrors||{},ye=K&&K.touched?K.touched:b.current?b.current:p.initialTouched||{},je=K&&K.status?K.status:C.current?C.current:p.initialStatus;y.current=ee,v.current=pe,b.current=ye,C.current=je;var Ae=function(){M({type:"RESET_FORM",payload:{isSubmitting:!!K&&!!K.isSubmitting,errors:pe,touched:ye,status:je,values:ee,isValidating:!!K&&!!K.isValidating,submitCount:K&&K.submitCount&&typeof K.submitCount=="number"?K.submitCount:0}})};if(p.onReset){var Ie=p.onReset(k.values,Pe);c$(Ie)?Ie.then(Ae):Ae()}else Ae()},[p.initialErrors,p.initialStatus,p.initialTouched,p.onReset]);g.useEffect(function(){x.current===!0&&!Ju(y.current,p.initialValues)&&u&&(y.current=p.initialValues,O(),a&&L(y.current))},[u,p.initialValues,O,a,L]),g.useEffect(function(){u&&x.current===!0&&!Ju(v.current,p.initialErrors)&&(v.current=p.initialErrors||Gu,M({type:"SET_ERRORS",payload:p.initialErrors||Gu}))},[u,p.initialErrors]),g.useEffect(function(){u&&x.current===!0&&!Ju(b.current,p.initialTouched)&&(b.current=p.initialTouched||s1,M({type:"SET_TOUCHED",payload:p.initialTouched||s1}))},[u,p.initialTouched]),g.useEffect(function(){u&&x.current===!0&&!Ju(C.current,p.initialStatus)&&(C.current=p.initialStatus,M({type:"SET_STATUS",payload:p.initialStatus}))},[u,p.initialStatus,p.initialTouched]);var j=ji(function(K){if(w.current[K]&&Di(w.current[K].validate)){var ee=li(k.values,K),pe=w.current[K].validate(ee);return c$(pe)?(M({type:"SET_ISVALIDATING",payload:!0}),pe.then(function(ye){return ye}).then(function(ye){M({type:"SET_FIELD_ERROR",payload:{field:K,value:ye}}),M({type:"SET_ISVALIDATING",payload:!1})})):(M({type:"SET_FIELD_ERROR",payload:{field:K,value:pe}}),Promise.resolve(pe))}else if(p.validationSchema)return M({type:"SET_ISVALIDATING",payload:!0}),N(k.values,K).then(function(ye){return ye}).then(function(ye){M({type:"SET_FIELD_ERROR",payload:{field:K,value:li(ye,K)}}),M({type:"SET_ISVALIDATING",payload:!1})});return Promise.resolve()}),H=g.useCallback(function(K,ee){var pe=ee.validate;w.current[K]={validate:pe}},[]),B=g.useCallback(function(K){delete w.current[K]},[]),D=ji(function(K,ee){M({type:"SET_TOUCHED",payload:K});var pe=ee===void 0?o:ee;return pe?L(k.values):Promise.resolve()}),W=g.useCallback(function(K){M({type:"SET_ERRORS",payload:K})},[]),U=ji(function(K,ee){var pe=Di(K)?K(k.values):K;M({type:"SET_VALUES",payload:pe});var ye=ee===void 0?n:ee;return ye?L(pe):Promise.resolve()}),Z=g.useCallback(function(K,ee){M({type:"SET_FIELD_ERROR",payload:{field:K,value:ee}})},[]),Y=ji(function(K,ee,pe){M({type:"SET_FIELD_VALUE",payload:{field:K,value:ee}});var ye=pe===void 0?n:pe;return ye?L(Tc(k.values,K,ee)):Promise.resolve()}),se=g.useCallback(function(K,ee){var pe=ee,ye=K,je;if(!u$(K)){K.persist&&K.persist();var Ae=K.target?K.target:K.currentTarget,Ie=Ae.type,Ce=Ae.name,Ze=Ae.id,Ct=Ae.value,et=Ae.checked,Be=Ae.outerHTML,te=Ae.options,X=Ae.multiple;pe=ee||Ce||Ze,ye=/number|range/.test(Ie)?(je=parseFloat(Ct),isNaN(je)?"":je):/checkbox/.test(Ie)?jVe(li(k.values,pe),et,Ct):te&&X?LVe(te):Ct}pe&&Y(pe,ye)},[Y,k.values]),Q=ji(function(K){if(u$(K))return function(ee){return se(ee,K)};se(K)}),ne=ji(function(K,ee,pe){ee===void 0&&(ee=!0),M({type:"SET_FIELD_TOUCHED",payload:{field:K,value:ee}});var ye=pe===void 0?o:pe;return ye?L(k.values):Promise.resolve()}),re=g.useCallback(function(K,ee){K.persist&&K.persist();var pe=K.target,ye=pe.name,je=pe.id,Ae=pe.outerHTML,Ie=ee||ye||je;ne(Ie,!0)},[ne]),ge=ji(function(K){if(u$(K))return function(ee){return re(ee,K)};re(K)}),xe=g.useCallback(function(K){Di(K)?M({type:"SET_FORMIK_STATE",payload:K}):M({type:"SET_FORMIK_STATE",payload:function(){return K}})},[]),fe=g.useCallback(function(K){M({type:"SET_STATUS",payload:K})},[]),Se=g.useCallback(function(K){M({type:"SET_ISSUBMITTING",payload:K})},[]),de=ji(function(){return M({type:"SUBMIT_ATTEMPT"}),L().then(function(K){var ee=K instanceof Error,pe=!ee&&Object.keys(K).length===0;if(pe){var ye;try{if(ye=$e(),ye===void 0)return}catch(je){throw je}return Promise.resolve(ye).then(function(je){return x.current&&M({type:"SUBMIT_SUCCESS"}),je}).catch(function(je){if(x.current)throw M({type:"SUBMIT_FAILURE"}),je})}else if(x.current&&(M({type:"SUBMIT_FAILURE"}),ee))throw K})}),ie=ji(function(K){K&&K.preventDefault&&Di(K.preventDefault)&&K.preventDefault(),K&&K.stopPropagation&&Di(K.stopPropagation)&&K.stopPropagation(),de().catch(function(ee){console.warn("Warning: An unhandled error was caught from submitForm()",ee)})}),Pe={resetForm:O,validateForm:L,validateField:j,setErrors:W,setFieldError:Z,setFieldTouched:ne,setFieldValue:Y,setStatus:fe,setSubmitting:Se,setTouched:D,setValues:U,setFormikState:xe,submitForm:de},$e=ji(function(){return c(k.values,Pe)}),me=ji(function(K){K&&K.preventDefault&&Di(K.preventDefault)&&K.preventDefault(),K&&K.stopPropagation&&Di(K.stopPropagation)&&K.stopPropagation(),O()}),ue=g.useCallback(function(K){return{value:li(k.values,K),error:li(k.errors,K),touched:!!li(k.touched,K),initialValue:li(y.current,K),initialTouched:!!li(b.current,K),initialError:li(v.current,K)}},[k.errors,k.touched,k.values]),ce=g.useCallback(function(K){return{setValue:function(pe,ye){return Y(K,pe,ye)},setTouched:function(pe,ye){return ne(K,pe,ye)},setError:function(pe){return Z(K,pe)}}},[Y,ne,Z]),Te=g.useCallback(function(K){var ee=Cw(K),pe=ee?K.name:K,ye=li(k.values,pe),je={name:pe,value:ye,onChange:Q,onBlur:ge};if(ee){var Ae=K.type,Ie=K.value,Ce=K.as,Ze=K.multiple;Ae==="checkbox"?Ie===void 0?je.checked=!!ye:(je.checked=!!(Array.isArray(ye)&&~ye.indexOf(Ie)),je.value=Ie):Ae==="radio"?(je.checked=ye===Ie,je.value=Ie):Ce==="select"&&Ze&&(je.value=je.value||[],je.multiple=!0)}return je},[ge,Q,k.values]),Le=g.useMemo(function(){return!Ju(y.current,k.values)},[y.current,k.values]),Re=g.useMemo(function(){return typeof s<"u"?Le?k.errors&&Object.keys(k.errors).length===0:s!==!1&&Di(s)?s(p):s:k.errors&&Object.keys(k.errors).length===0},[s,Le,k.errors,p]),Oe=Nr({},k,{initialValues:y.current,initialErrors:v.current,initialTouched:b.current,initialStatus:C.current,handleBlur:ge,handleChange:Q,handleReset:me,handleSubmit:ie,resetForm:O,setErrors:W,setFormikState:xe,setFieldTouched:ne,setFieldValue:Y,setFieldError:Z,setStatus:fe,setSubmitting:Se,setTouched:D,setValues:U,submitForm:de,validateForm:L,validateField:j,isValid:Re,dirty:Le,unregisterField:B,registerField:H,getFieldProps:Te,getFieldMeta:ue,getFieldHelpers:ce,validateOnBlur:o,validateOnChange:n,validateOnMount:a});return Oe}function RVe(e){var t=EVe(e),n=e.component,r=e.children,o=e.render,i=e.innerRef;return g.useImperativeHandle(i,function(){return t}),g.createElement(kVe,{value:t},n?g.createElement(n,t):o?o(t):r?Di(r)?r(t):TVe(r)?null:g.Children.only(r):null)}function OVe(e){var t={};if(e.inner){if(e.inner.length===0)return Tc(t,e.path,e.message);for(var o=e.inner,n=Array.isArray(o),r=0,o=n?o:o[Symbol.iterator]();;){var i;if(n){if(r>=o.length)break;i=o[r++]}else{if(r=o.next(),r.done)break;i=r.value}var a=i;li(t,a.path)||(t=Tc(t,a.path,a.message))}}return t}function AVe(e,t,n,r){n===void 0&&(n=!1);var o=Gk(e);return t[n?"validateSync":"validate"](o,{abortEarly:!1,context:r||o})}function Gk(e){var t=Array.isArray(e)?[]:{};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=String(n);Array.isArray(e[r])===!0?t[r]=e[r].map(function(o){return Array.isArray(o)===!0||uF(o)?Gk(o):o!==""?o:void 0}):uF(e[r])?t[r]=Gk(e[r]):t[r]=e[r]!==""?e[r]:void 0}return t}function FVe(e,t,n){var r=e.slice();return t.forEach(function(i,a){if(typeof r[a]>"u"){var s=n.clone!==!1,l=s&&n.isMergeableObject(i);r[a]=l?zk(Array.isArray(i)?[]:{},i,n):i}else n.isMergeableObject(i)?r[a]=zk(e[a],i,n):e.indexOf(i)===-1&&r.push(i)}),r}function LVe(e){return Array.from(e).filter(function(t){return t.selected}).map(function(t){return t.value})}function jVe(e,t,n){if(typeof e=="boolean")return!!t;var r=[],o=!1,i=-1;if(Array.isArray(e))r=e,i=e.indexOf(n),o=i>=0;else if(!n||n=="true"||n=="false")return!!t;return t&&n&&!o?r.concat(n):o?r.slice(0,i).concat(r.slice(i+1)):r}var DVe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?g.useLayoutEffect:g.useEffect;function ji(e){var t=g.useRef(e);return DVe(function(){t.current=e}),g.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var zVe=/[^.^\]^[]+|(?=\[\]|\.\.)/g,nG=/^\d+$/,BVe=/^\d/,HVe=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,WVe=/^\s*(['"]?)(.*?)(\1)\s*$/,p3=512,LF=new _d(p3),jF=new _d(p3),DF=new _d(p3),Ic={Cache:_d,split:qk,normalizePath:d$,setter:function(e){var t=d$(e);return jF.get(e)||jF.set(e,function(r,o){for(var i=0,a=t.length,s=r;ie.match(KVe)||[],$w=e=>e[0].toUpperCase()+e.slice(1),m3=(e,t)=>Sw(e).join(t).toLowerCase(),rG=e=>Sw(e).reduce((t,n)=>`${t}${t?n[0].toUpperCase()+n.slice(1).toLowerCase():n.toLowerCase()}`,""),YVe=e=>$w(rG(e)),XVe=e=>m3(e,"_"),QVe=e=>m3(e,"-"),ZVe=e=>$w(m3(e," ")),JVe=e=>Sw(e).map($w).join(" ");var f$={words:Sw,upperFirst:$w,camelCase:rG,pascalCase:YVe,snakeCase:XVe,kebabCase:QVe,sentenceCase:ZVe,titleCase:JVe},g3={exports:{}};g3.exports=function(e){return oG(eUe(e),e)};g3.exports.array=oG;function oG(e,t){var n=e.length,r=new Array(n),o={},i=n,a=tUe(t),s=nUe(e);for(t.forEach(function(u){if(!s.has(u[0])||!s.has(u[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});i--;)o[i]||l(e[i],i,new Set);return r;function l(u,c,f){if(f.has(u)){var p;try{p=", node was:"+JSON.stringify(u)}catch{p=""}throw new Error("Cyclic dependency"+p)}if(!s.has(u))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(u));if(!o[c]){o[c]=!0;var y=a.get(u)||new Set;if(y=Array.from(y),c=y.length){f.add(u);do{var v=y[--c];l(v,s.get(v),f)}while(c);f.delete(u)}r[--n]=u}}}function eUe(e){for(var t=new Set,n=0,r=e.length;n"",uUe=/^Symbol\((.*)\)(.*)$/;function cUe(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function NF(e,t=!1){if(e==null||e===!0||e===!1)return""+e;const n=typeof e;if(n==="number")return cUe(e);if(n==="string")return t?`"${e}"`:e;if(n==="function")return"[Function "+(e.name||"anonymous")+"]";if(n==="symbol")return lUe.call(e).replace(uUe,"Symbol($1)");const r=iUe.call(e).slice(8,-1);return r==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):r==="Error"||e instanceof Error?"["+aUe.call(e)+"]":r==="RegExp"?sUe.call(e):null}function du(e,t){let n=NF(e,t);return n!==null?n:JSON.stringify(e,function(r,o){let i=NF(this[r],t);return i!==null?i:o},2)}function iG(e){return e==null?[]:[].concat(e)}let aG,dUe=/\$\{\s*(\w+)\s*\}/g;aG=Symbol.toStringTag;class zo extends Error{static formatError(t,n){const r=n.label||n.path||"this";return r!==n.path&&(n=Object.assign({},n,{path:r})),typeof t=="string"?t.replace(dUe,(o,i)=>du(n[i])):typeof t=="function"?t(n):t}static isError(t){return t&&t.name==="ValidationError"}constructor(t,n,r,o,i){super(),this.value=void 0,this.path=void 0,this.type=void 0,this.errors=void 0,this.params=void 0,this.inner=void 0,this[aG]="Error",this.name="ValidationError",this.value=n,this.path=r,this.type=o,this.errors=[],this.inner=[],iG(t).forEach(a=>{if(zo.isError(a)){this.errors.push(...a.errors);const s=a.inner.length?a.inner:[a];this.inner.push(...s)}else this.errors.push(a)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0],!i&&Error.captureStackTrace&&Error.captureStackTrace(this,zo)}}let qa={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:n,originalValue:r})=>{const o=r!=null&&r!==n?` (cast from the value \`${du(r,!0)}\`).`:".";return t!=="mixed"?`${e} must be a \`${t}\` type, but the final value was: \`${du(n,!0)}\``+o:`${e} must match the configured type. The validated value was: \`${du(n,!0)}\``+o}},ya={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},jl={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},Kk={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},fUe={isValue:"${path} field must be ${value}"},Yk={noUnknown:"${path} field has unspecified keys: ${unknown}"},pUe={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},hUe={notType:e=>{const{path:t,value:n,spec:r}=e,o=r.types.length;if(Array.isArray(n)){if(n.lengtho)return`${t} tuple value has too many items, expected a length of ${o} but got ${n.length} for value: \`${du(n,!0)}\``}return zo.formatError(qa.notType,e)}};Object.assign(Object.create(null),{mixed:qa,string:ya,number:jl,date:Kk,object:Yk,array:pUe,boolean:fUe,tuple:hUe});const v3=e=>e&&e.__isYupSchema__;class wb{static fromOptions(t,n){if(!n.then&&!n.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:r,then:o,otherwise:i}=n,a=typeof r=="function"?r:(...s)=>s.every(l=>l===r);return new wb(t,(s,l)=>{var u;let c=a(...s)?o:i;return(u=c==null?void 0:c(l))!=null?u:l})}constructor(t,n){this.fn=void 0,this.refs=t,this.refs=t,this.fn=n}resolve(t,n){let r=this.refs.map(i=>i.getValue(n==null?void 0:n.value,n==null?void 0:n.parent,n==null?void 0:n.context)),o=this.fn(r,t,n);if(o===void 0||o===t)return t;if(!v3(o))throw new TypeError("conditions must return a schema object");return o.resolve(n)}}const l1={context:"$",value:"."};class kd{constructor(t,n={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,typeof t!="string")throw new TypeError("ref must be a string, got: "+t);if(this.key=t.trim(),t==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===l1.context,this.isValue=this.key[0]===l1.value,this.isSibling=!this.isContext&&!this.isValue;let r=this.isContext?l1.context:this.isValue?l1.value:"";this.path=this.key.slice(r.length),this.getter=this.path&&Ic.getter(this.path,!0),this.map=n.map}getValue(t,n,r){let o=this.isContext?r:this.isValue?t:n;return this.getter&&(o=this.getter(o||{})),this.map&&(o=this.map(o)),o}cast(t,n){return this.getValue(t,n==null?void 0:n.parent,n==null?void 0:n.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(t){return t&&t.__isYupRef}}kd.prototype.__isYupRef=!0;const Js=e=>e==null;function sf(e){function t({value:n,path:r="",options:o,originalValue:i,schema:a},s,l){const{name:u,test:c,params:f,message:p,skipAbsent:y}=e;let{parent:v,context:b,abortEarly:C=a.spec.abortEarly,disableStackTrace:x=a.spec.disableStackTrace}=o;function w(A){return kd.isRef(A)?A.getValue(n,v,b):A}function S(A={}){var z;const L=Object.assign({value:n,originalValue:i,label:a.spec.label,path:A.path||r,spec:a.spec},f,A.params);for(const j of Object.keys(L))L[j]=w(L[j]);const O=new zo(zo.formatError(A.message||p,L),n,L.path,A.type||u,(z=A.disableStackTrace)!=null?z:x);return O.params=L,O}const $=C?s:l;let T={path:r,parent:v,type:u,from:o.from,createError:S,resolve:w,options:o,originalValue:i,schema:a};const k=A=>{zo.isError(A)?$(A):A?l(null):$(S())},M=A=>{zo.isError(A)?$(A):s(A)};if(y&&Js(n))return k(!0);let N;try{var I;if(N=c.call(T,n,T),typeof((I=N)==null?void 0:I.then)=="function"){if(o.sync)throw new Error(`Validation test of type: "${T.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(N).then(k,M)}}catch(A){M(A);return}k(N)}return t.OPTIONS=e,t}function mUe(e,t,n,r=n){let o,i,a;return t?(Ic.forEach(t,(s,l,u)=>{let c=l?s.slice(1,s.length-1):s;e=e.resolve({context:r,parent:o,value:n});let f=e.type==="tuple",p=u?parseInt(c,10):0;if(e.innerType||f){if(f&&!u)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${a}" must contain an index to the tuple element, e.g. "${a}[0]"`);if(n&&p>=n.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${s}, in the path: ${t}. because there is no value at that index. `);o=n,n=n&&n[p],e=f?e.spec.types[p]:e.innerType}if(!u){if(!e.fields||!e.fields[c])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${a} which is a type: "${e.type}")`);o=n,n=n&&n[c],e=e.fields[c]}i=c,a=l?"["+s+"]":"."+s}),{schema:e,parent:o,parentPath:i}):{parent:o,parentPath:t,schema:e}}class Cb extends Set{describe(){const t=[];for(const n of this.values())t.push(kd.isRef(n)?n.describe():n);return t}resolveAll(t){let n=[];for(const r of this.values())n.push(t(r));return n}clone(){return new Cb(this.values())}merge(t,n){const r=this.clone();return t.forEach(o=>r.add(o)),n.forEach(o=>r.delete(o)),r}}function Of(e,t=new Map){if(v3(e)||!e||typeof e!="object")return e;if(t.has(e))return t.get(e);let n;if(e instanceof Date)n=new Date(e.getTime()),t.set(e,n);else if(e instanceof RegExp)n=new RegExp(e),t.set(e,n);else if(Array.isArray(e)){n=new Array(e.length),t.set(e,n);for(let r=0;r{this.typeError(qa.notType)}),this.type=t.type,this._typeCheck=t.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},t==null?void 0:t.spec),this.withMutation(n=>{n.nonNullable()})}get _type(){return this.type}clone(t){if(this._mutate)return t&&Object.assign(this.spec,t),this;const n=Object.create(Object.getPrototypeOf(this));return n.type=this.type,n._typeCheck=this._typeCheck,n._whitelist=this._whitelist.clone(),n._blacklist=this._blacklist.clone(),n.internalTests=Object.assign({},this.internalTests),n.exclusiveTests=Object.assign({},this.exclusiveTests),n.deps=[...this.deps],n.conditions=[...this.conditions],n.tests=[...this.tests],n.transforms=[...this.transforms],n.spec=Of(Object.assign({},this.spec,t)),n}label(t){let n=this.clone();return n.spec.label=t,n}meta(...t){if(t.length===0)return this.spec.meta;let n=this.clone();return n.spec.meta=Object.assign(n.spec.meta||{},t[0]),n}withMutation(t){let n=this._mutate;this._mutate=!0;let r=t(this);return this._mutate=n,r}concat(t){if(!t||t===this)return this;if(t.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${t.type}`);let n=this,r=t.clone();const o=Object.assign({},n.spec,r.spec);return r.spec=o,r.internalTests=Object.assign({},n.internalTests,r.internalTests),r._whitelist=n._whitelist.merge(t._whitelist,t._blacklist),r._blacklist=n._blacklist.merge(t._blacklist,t._whitelist),r.tests=n.tests,r.exclusiveTests=n.exclusiveTests,r.withMutation(i=>{t.tests.forEach(a=>{i.test(a.OPTIONS)})}),r.transforms=[...n.transforms,...r.transforms],r}isType(t){return t==null?!!(this.spec.nullable&&t===null||this.spec.optional&&t===void 0):this._typeCheck(t)}resolve(t){let n=this;if(n.conditions.length){let r=n.conditions;n=n.clone(),n.conditions=[],n=r.reduce((o,i)=>i.resolve(o,t),n),n=n.resolve(t)}return n}resolveOptions(t){var n,r,o,i;return Object.assign({},t,{from:t.from||[],strict:(n=t.strict)!=null?n:this.spec.strict,abortEarly:(r=t.abortEarly)!=null?r:this.spec.abortEarly,recursive:(o=t.recursive)!=null?o:this.spec.recursive,disableStackTrace:(i=t.disableStackTrace)!=null?i:this.spec.disableStackTrace})}cast(t,n={}){let r=this.resolve(Object.assign({value:t},n)),o=n.assert==="ignore-optionality",i=r._cast(t,n);if(n.assert!==!1&&!r.isType(i)){if(o&&Js(i))return i;let a=du(t),s=du(i);throw new TypeError(`The value of ${n.path||"field"} could not be cast to a value that satisfies the schema type: "${r.type}". + +attempted value: ${a} +`+(s!==a?`result of cast: ${s}`:""))}return i}_cast(t,n){let r=t===void 0?t:this.transforms.reduce((o,i)=>i.call(this,o,t,this),t);return r===void 0&&(r=this.getDefault(n)),r}_validate(t,n={},r,o){let{path:i,originalValue:a=t,strict:s=this.spec.strict}=n,l=t;s||(l=this._cast(l,Object.assign({assert:!1},n)));let u=[];for(let c of Object.values(this.internalTests))c&&u.push(c);this.runTests({path:i,value:l,originalValue:a,options:n,tests:u},r,c=>{if(c.length)return o(c,l);this.runTests({path:i,value:l,originalValue:a,options:n,tests:this.tests},r,o)})}runTests(t,n,r){let o=!1,{tests:i,value:a,originalValue:s,path:l,options:u}=t,c=b=>{o||(o=!0,n(b,a))},f=b=>{o||(o=!0,r(b,a))},p=i.length,y=[];if(!p)return f([]);let v={value:a,originalValue:s,path:l,options:u,schema:this};for(let b=0;bthis.resolve(c)._validate(u,c,p,y)}validate(t,n){var r;let o=this.resolve(Object.assign({},n,{value:t})),i=(r=n==null?void 0:n.disableStackTrace)!=null?r:o.spec.disableStackTrace;return new Promise((a,s)=>o._validate(t,n,(l,u)=>{zo.isError(l)&&(l.value=u),s(l)},(l,u)=>{l.length?s(new zo(l,u,void 0,void 0,i)):a(u)}))}validateSync(t,n){var r;let o=this.resolve(Object.assign({},n,{value:t})),i,a=(r=n==null?void 0:n.disableStackTrace)!=null?r:o.spec.disableStackTrace;return o._validate(t,Object.assign({},n,{sync:!0}),(s,l)=>{throw zo.isError(s)&&(s.value=l),s},(s,l)=>{if(s.length)throw new zo(s,t,void 0,void 0,a);i=l}),i}isValid(t,n){return this.validate(t,n).then(()=>!0,r=>{if(zo.isError(r))return!1;throw r})}isValidSync(t,n){try{return this.validateSync(t,n),!0}catch(r){if(zo.isError(r))return!1;throw r}}_getDefault(t){let n=this.spec.default;return n==null?n:typeof n=="function"?n.call(this,t):Of(n)}getDefault(t){return this.resolve(t||{})._getDefault(t)}default(t){return arguments.length===0?this._getDefault():this.clone({default:t})}strict(t=!0){return this.clone({strict:t})}nullability(t,n){const r=this.clone({nullable:t});return r.internalTests.nullable=sf({message:n,name:"nullable",test(o){return o===null?this.schema.spec.nullable:!0}}),r}optionality(t,n){const r=this.clone({optional:t});return r.internalTests.optionality=sf({message:n,name:"optionality",test(o){return o===void 0?this.schema.spec.optional:!0}}),r}optional(){return this.optionality(!0)}defined(t=qa.defined){return this.optionality(!1,t)}nullable(){return this.nullability(!0)}nonNullable(t=qa.notNull){return this.nullability(!1,t)}required(t=qa.required){return this.clone().withMutation(n=>n.nonNullable(t).defined(t))}notRequired(){return this.clone().withMutation(t=>t.nullable().optional())}transform(t){let n=this.clone();return n.transforms.push(t),n}test(...t){let n;if(t.length===1?typeof t[0]=="function"?n={test:t[0]}:n=t[0]:t.length===2?n={name:t[0],test:t[1]}:n={name:t[0],message:t[1],test:t[2]},n.message===void 0&&(n.message=qa.default),typeof n.test!="function")throw new TypeError("`test` is a required parameters");let r=this.clone(),o=sf(n),i=n.exclusive||n.name&&r.exclusiveTests[n.name]===!0;if(n.exclusive&&!n.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return n.name&&(r.exclusiveTests[n.name]=!!n.exclusive),r.tests=r.tests.filter(a=>!(a.OPTIONS.name===n.name&&(i||a.OPTIONS.test===o.OPTIONS.test))),r.tests.push(o),r}when(t,n){!Array.isArray(t)&&typeof t!="string"&&(n=t,t=".");let r=this.clone(),o=iG(t).map(i=>new kd(i));return o.forEach(i=>{i.isSibling&&r.deps.push(i.key)}),r.conditions.push(typeof n=="function"?new wb(o,n):wb.fromOptions(o,n)),r}typeError(t){let n=this.clone();return n.internalTests.typeError=sf({message:t,name:"typeError",skipAbsent:!0,test(r){return this.schema._typeCheck(r)?!0:this.createError({params:{type:this.schema.type}})}}),n}oneOf(t,n=qa.oneOf){let r=this.clone();return t.forEach(o=>{r._whitelist.add(o),r._blacklist.delete(o)}),r.internalTests.whiteList=sf({message:n,name:"oneOf",skipAbsent:!0,test(o){let i=this.schema._whitelist,a=i.resolveAll(this.resolve);return a.includes(o)?!0:this.createError({params:{values:Array.from(i).join(", "),resolved:a}})}}),r}notOneOf(t,n=qa.notOneOf){let r=this.clone();return t.forEach(o=>{r._blacklist.add(o),r._whitelist.delete(o)}),r.internalTests.blacklist=sf({message:n,name:"notOneOf",test(o){let i=this.schema._blacklist,a=i.resolveAll(this.resolve);return a.includes(o)?this.createError({params:{values:Array.from(i).join(", "),resolved:a}}):!0}}),r}strip(t=!0){let n=this.clone();return n.spec.strip=t,n}describe(t){const n=(t?this.resolve(t):this).clone(),{label:r,meta:o,optional:i,nullable:a}=n.spec;return{meta:o,label:r,optional:i,nullable:a,default:n.getDefault(t),type:n.type,oneOf:n._whitelist.describe(),notOneOf:n._blacklist.describe(),tests:n.tests.map(l=>({name:l.OPTIONS.name,params:l.OPTIONS.params})).filter((l,u,c)=>c.findIndex(f=>f.name===l.name)===u)}}}Fa.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])Fa.prototype[`${e}At`]=function(t,n,r={}){const{parent:o,parentPath:i,schema:a}=mUe(this,t,n,r.context);return a[e](o&&o[i],Object.assign({},r,{parent:o,path:t}))};for(const e of["equals","is"])Fa.prototype[e]=Fa.prototype.oneOf;for(const e of["not","nope"])Fa.prototype[e]=Fa.prototype.notOneOf;let gUe=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,vUe=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,yUe=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,bUe=e=>Js(e)||e===e.trim(),xUe={}.toString();function sG(){return new lG}class lG extends Fa{constructor(){super({type:"string",check(t){return t instanceof String&&(t=t.valueOf()),typeof t=="string"}}),this.withMutation(()=>{this.transform((t,n,r)=>{if(!r.spec.coerce||r.isType(t)||Array.isArray(t))return t;const o=t!=null&&t.toString?t.toString():t;return o===xUe?t:o})})}required(t){return super.required(t).withMutation(n=>n.test({message:t||qa.required,name:"required",skipAbsent:!0,test:r=>!!r.length}))}notRequired(){return super.notRequired().withMutation(t=>(t.tests=t.tests.filter(n=>n.OPTIONS.name!=="required"),t))}length(t,n=ya.length){return this.test({message:n,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(r){return r.length===this.resolve(t)}})}min(t,n=ya.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(r){return r.length>=this.resolve(t)}})}max(t,n=ya.max){return this.test({name:"max",exclusive:!0,message:n,params:{max:t},skipAbsent:!0,test(r){return r.length<=this.resolve(t)}})}matches(t,n){let r=!1,o,i;return n&&(typeof n=="object"?{excludeEmptyString:r=!1,message:o,name:i}=n:o=n),this.test({name:i||"matches",message:o||ya.matches,params:{regex:t},skipAbsent:!0,test:a=>a===""&&r||a.search(t)!==-1})}email(t=ya.email){return this.matches(gUe,{name:"email",message:t,excludeEmptyString:!0})}url(t=ya.url){return this.matches(vUe,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=ya.uuid){return this.matches(yUe,{name:"uuid",message:t,excludeEmptyString:!1})}ensure(){return this.default("").transform(t=>t===null?"":t)}trim(t=ya.trim){return this.transform(n=>n!=null?n.trim():n).test({message:t,name:"trim",test:bUe})}lowercase(t=ya.lowercase){return this.transform(n=>Js(n)?n:n.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>Js(n)||n===n.toLowerCase()})}uppercase(t=ya.uppercase){return this.transform(n=>Js(n)?n:n.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>Js(n)||n===n.toUpperCase()})}}sG.prototype=lG.prototype;let wUe=e=>e!=+e;function Xk(){return new uG}class uG extends Fa{constructor(){super({type:"number",check(t){return t instanceof Number&&(t=t.valueOf()),typeof t=="number"&&!wUe(t)}}),this.withMutation(()=>{this.transform((t,n,r)=>{if(!r.spec.coerce)return t;let o=t;if(typeof o=="string"){if(o=o.replace(/\s/g,""),o==="")return NaN;o=+o}return r.isType(o)||o===null?o:parseFloat(o)})})}min(t,n=jl.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(r){return r>=this.resolve(t)}})}max(t,n=jl.max){return this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(r){return r<=this.resolve(t)}})}lessThan(t,n=jl.lessThan){return this.test({message:n,name:"max",exclusive:!0,params:{less:t},skipAbsent:!0,test(r){return rthis.resolve(t)}})}positive(t=jl.positive){return this.moreThan(0,t)}negative(t=jl.negative){return this.lessThan(0,t)}integer(t=jl.integer){return this.test({name:"integer",message:t,skipAbsent:!0,test:n=>Number.isInteger(n)})}truncate(){return this.transform(t=>Js(t)?t:t|0)}round(t){var n;let r=["ceil","floor","round","trunc"];if(t=((n=t)==null?void 0:n.toLowerCase())||"round",t==="trunc")return this.truncate();if(r.indexOf(t.toLowerCase())===-1)throw new TypeError("Only valid options for round() are: "+r.join(", "));return this.transform(o=>Js(o)?o:Math[t](o))}}Xk.prototype=uG.prototype;const CUe=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function Bs(e,t=0){return Number(e)||t}function SUe(e){const t=CUe.exec(e);if(!t)return Date.parse?Date.parse(e):Number.NaN;const n={year:Bs(t[1]),month:Bs(t[2],1)-1,day:Bs(t[3],1),hour:Bs(t[4]),minute:Bs(t[5]),second:Bs(t[6]),millisecond:t[7]?Bs(t[7].substring(0,3)):0,z:t[8]||void 0,plusMinus:t[9]||void 0,hourOffset:Bs(t[10]),minuteOffset:Bs(t[11])};if(n.z===void 0&&n.plusMinus===void 0)return new Date(n.year,n.month,n.day,n.hour,n.minute,n.second,n.millisecond).valueOf();let r=0;return n.z!=="Z"&&n.plusMinus!==void 0&&(r=n.hourOffset*60+n.minuteOffset,n.plusMinus==="+"&&(r=0-r)),Date.UTC(n.year,n.month,n.day,n.hour,n.minute+r,n.second,n.millisecond)}let $Ue=new Date(""),_Ue=e=>Object.prototype.toString.call(e)==="[object Date]";class _w extends Fa{constructor(){super({type:"date",check(t){return _Ue(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,n,r)=>!r.spec.coerce||r.isType(t)||t===null?t:(t=SUe(t),isNaN(t)?_w.INVALID_DATE:new Date(t)))})}prepareParam(t,n){let r;if(kd.isRef(t))r=t;else{let o=this.cast(t);if(!this._typeCheck(o))throw new TypeError(`\`${n}\` must be a Date or a value that can be \`cast()\` to a Date`);r=o}return r}min(t,n=Kk.min){let r=this.prepareParam(t,"min");return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(o){return o>=this.resolve(r)}})}max(t,n=Kk.max){let r=this.prepareParam(t,"max");return this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(o){return o<=this.resolve(r)}})}}_w.INVALID_DATE=$Ue;_w.prototype;function kUe(e,t=[]){let n=[],r=new Set,o=new Set(t.map(([a,s])=>`${a}-${s}`));function i(a,s){let l=Ic.split(a)[0];r.add(l),o.has(`${s}-${l}`)||n.push([s,l])}for(const a of Object.keys(e)){let s=e[a];r.add(a),kd.isRef(s)&&s.isSibling?i(s.path,a):v3(s)&&"deps"in s&&s.deps.forEach(l=>i(l,a))}return oUe.array(Array.from(r),n).reverse()}function zF(e,t){let n=1/0;return e.some((r,o)=>{var i;if((i=t.path)!=null&&i.includes(r))return n=o,!0}),n}function cG(e){return(t,n)=>zF(e,t)-zF(e,n)}const PUe=(e,t,n)=>{if(typeof e!="string")return e;let r=e;try{r=JSON.parse(e)}catch{}return n.isType(r)?r:e};function q1(e){if("fields"in e){const t={};for(const[n,r]of Object.entries(e.fields))t[n]=q1(r);return e.setFields(t)}if(e.type==="array"){const t=e.optional();return t.innerType&&(t.innerType=q1(t.innerType)),t}return e.type==="tuple"?e.optional().clone({types:e.spec.types.map(q1)}):"optional"in e?e.optional():e}const MUe=(e,t)=>{const n=[...Ic.normalizePath(t)];if(n.length===1)return n[0]in e;let r=n.pop(),o=Ic.getter(Ic.join(n),!0)(e);return!!(o&&r in o)};let BF=e=>Object.prototype.toString.call(e)==="[object Object]";function TUe(e,t){let n=Object.keys(e.fields);return Object.keys(t).filter(r=>n.indexOf(r)===-1)}const IUe=cG([]);function dG(e){return new fG(e)}class fG extends Fa{constructor(t){super({type:"object",check(n){return BF(n)||typeof n=="function"}}),this.fields=Object.create(null),this._sortErrors=IUe,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{t&&this.shape(t)})}_cast(t,n={}){var r;let o=super._cast(t,n);if(o===void 0)return this.getDefault(n);if(!this._typeCheck(o))return o;let i=this.fields,a=(r=n.stripUnknown)!=null?r:this.spec.noUnknown,s=[].concat(this._nodes,Object.keys(o).filter(f=>!this._nodes.includes(f))),l={},u=Object.assign({},n,{parent:l,__validating:n.__validating||!1}),c=!1;for(const f of s){let p=i[f],y=f in o;if(p){let v,b=o[f];u.path=(n.path?`${n.path}.`:"")+f,p=p.resolve({value:b,context:n.context,parent:l});let C=p instanceof Fa?p.spec:void 0,x=C==null?void 0:C.strict;if(C!=null&&C.strip){c=c||f in o;continue}v=!n.__validating||!x?p.cast(o[f],u):o[f],v!==void 0&&(l[f]=v)}else y&&!a&&(l[f]=o[f]);(y!==f in l||l[f]!==o[f])&&(c=!0)}return c?l:o}_validate(t,n={},r,o){let{from:i=[],originalValue:a=t,recursive:s=this.spec.recursive}=n;n.from=[{schema:this,value:a},...i],n.__validating=!0,n.originalValue=a,super._validate(t,n,r,(l,u)=>{if(!s||!BF(u)){o(l,u);return}a=a||u;let c=[];for(let f of this._nodes){let p=this.fields[f];!p||kd.isRef(p)||c.push(p.asNestedTest({options:n,key:f,parent:u,parentPath:n.path,originalParent:a}))}this.runTests({tests:c,value:u,originalValue:a,options:n},r,f=>{o(f.sort(this._sortErrors).concat(l),u)})})}clone(t){const n=super.clone(t);return n.fields=Object.assign({},this.fields),n._nodes=this._nodes,n._excludedEdges=this._excludedEdges,n._sortErrors=this._sortErrors,n}concat(t){let n=super.concat(t),r=n.fields;for(let[o,i]of Object.entries(this.fields)){const a=r[o];r[o]=a===void 0?i:a}return n.withMutation(o=>o.setFields(r,[...this._excludedEdges,...t._excludedEdges]))}_getDefault(t){if("default"in this.spec)return super._getDefault(t);if(!this._nodes.length)return;let n={};return this._nodes.forEach(r=>{var o;const i=this.fields[r];let a=t;(o=a)!=null&&o.value&&(a=Object.assign({},a,{parent:a.value,value:a.value[r]})),n[r]=i&&"getDefault"in i?i.getDefault(a):void 0}),n}setFields(t,n){let r=this.clone();return r.fields=t,r._nodes=kUe(t,n),r._sortErrors=cG(Object.keys(t)),n&&(r._excludedEdges=n),r}shape(t,n=[]){return this.clone().withMutation(r=>{let o=r._excludedEdges;return n.length&&(Array.isArray(n[0])||(n=[n]),o=[...r._excludedEdges,...n]),r.setFields(Object.assign(r.fields,t),o)})}partial(){const t={};for(const[n,r]of Object.entries(this.fields))t[n]="optional"in r&&r.optional instanceof Function?r.optional():r;return this.setFields(t)}deepPartial(){return q1(this)}pick(t){const n={};for(const r of t)this.fields[r]&&(n[r]=this.fields[r]);return this.setFields(n,this._excludedEdges.filter(([r,o])=>t.includes(r)&&t.includes(o)))}omit(t){const n=[];for(const r of Object.keys(this.fields))t.includes(r)||n.push(r);return this.pick(n)}from(t,n,r){let o=Ic.getter(t,!0);return this.transform(i=>{if(!i)return i;let a=i;return MUe(i,t)&&(a=Object.assign({},i),r||delete a[t],a[n]=o(i)),a})}json(){return this.transform(PUe)}noUnknown(t=!0,n=Yk.noUnknown){typeof t!="boolean"&&(n=t,t=!0);let r=this.test({name:"noUnknown",exclusive:!0,message:n,test(o){if(o==null)return!0;const i=TUe(this.schema,o);return!t||i.length===0||this.createError({params:{unknown:i.join(", ")}})}});return r.spec.noUnknown=t,r}unknown(t=!0,n=Yk.noUnknown){return this.noUnknown(!t,n)}transformKeys(t){return this.transform(n=>{if(!n)return n;const r={};for(const o of Object.keys(n))r[t(o)]=n[o];return r})}camelCase(){return this.transformKeys(f$.camelCase)}snakeCase(){return this.transformKeys(f$.snakeCase)}constantCase(){return this.transformKeys(t=>f$.snakeCase(t).toUpperCase())}describe(t){const n=(t?this.resolve(t):this).clone(),r=super.describe(t);r.fields={};for(const[i,a]of Object.entries(n.fields)){var o;let s=t;(o=s)!=null&&o.value&&(s=Object.assign({},s,{parent:s.value,value:s.value[i]})),r.fields[i]=a.describe(s)}return r}}dG.prototype=fG.prototype;const EUe={title:"",currentAmount:0,limit:0},RUe=dG().shape({title:sG().required("required"),currentAmount:Xk().required("required"),limit:Xk().required("required")}),OUe=()=>{const e=t=>{console.log(t)};return m.jsxs(Ve,{children:[m.jsx(Ge,{variant:"h4",sx:{textAlign:"center"},children:"Set a new limit"}),m.jsx(RVe,{onSubmit:e,initialValues:EUe,validationSchema:RUe,children:({values:t,errors:n,touched:r,handleBlur:o,handleChange:i,handleSubmit:a})=>m.jsx("form",{onSubmit:a,children:m.jsxs(Ve,{sx:{display:"flex",gap:3,flexDirection:"column",mt:2},children:[m.jsx(lu,{fullWidth:!0,variant:"filled",color:"info",type:"text",label:"Title",onBlur:o,onChange:i,value:t.title,name:"title",error:!!r.title&&!!n.title,helperText:r.title&&n.title}),m.jsxs(Ve,{sx:{display:"flex",gap:2},children:[m.jsx(lu,{variant:"filled",color:"info",type:"number",label:"Current Amount",onBlur:o,onChange:i,value:t.currentAmount,name:"currentAmount",error:!!r.currentAmount&&!!n.currentAmount,helperText:r.currentAmount&&n.currentAmount}),m.jsx(lu,{variant:"filled",color:"info",type:"number",label:"Limit",onBlur:o,onChange:i,value:t.limit,name:"limit",error:!!r.limit&&!!n.limit,helperText:r.limit&&n.limit})]}),m.jsx(Oa,{type:"submit",color:"info",variant:"contained",size:"large",children:"Submit"})]})})})]})},AUe={position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:400,bgcolor:"background.paper",border:"2px solid #000",boxShadow:24,p:4};function FUe({content:e}){const[t,n]=g.useState(!1),r=()=>n(!0),o=()=>n(!1),i=Wt(),a=_n(i.palette.mode);return m.jsxs(m.Fragment,{children:[m.jsx(Oa,{sx:{backgroundColor:a.primary[500],borderRadius:"1rem",color:a.primary[100],display:"flex",gap:"1rem",justifyContent:"start",padding:"1rem",width:"100%","& .MuiBox-root":{alignItems:"center",display:"flex",gap:"1rem"},"&:hover":{backgroundColor:`${a.primary[700]} !important`}},onClick:r,children:e}),m.jsx(gN,{open:t,onClose:o,"aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",children:m.jsx(Ve,{sx:AUe,children:m.jsx(OUe,{})})})]})}const LUe=()=>{const e=Wt(),t=_n(e.palette.mode),n={alignItems:"center",backgroundColor:t.primary[500],borderRadius:"1rem",cursor:"pointer",display:"flex",gap:"1rem",gridTemplateColumns:"repeat(auto-fit, minmax(clamp(250px, 16vw, 860px), 1fr))",padding:"1rem",transition:".2s",width:"100%"},r=cAe.map((o,i)=>m.jsxs(Ve,{sx:n,children:[m.jsx(dg,{sx:{backgroundColor:`${t.blueAccent[300]}`,"& :hover, & .MuiAvatar-root svg:hover":{backgroundColor:`${t.blueAccent[300]} !important`}},children:m.jsx(kU,{})}),m.jsxs(Ve,{children:[m.jsx(Ve,{children:m.jsx(Ge,{variant:"h5",sx:{fontWeight:600},children:o.title})}),m.jsxs(Ve,{sx:{display:"flex"},children:[m.jsxs(Ge,{variant:"h6",sx:{color:t.grey[300]},children:[o.currentValue," /"]}),m.jsxs(Ge,{variant:"h6",sx:{fontWeight:600},children:[" ",o.limit]})]})]})]},i));return m.jsxs(m.Fragment,{children:[m.jsx(FUe,{content:m.jsxs(Ve,{children:[m.jsx(dg,{sx:{backgroundColor:`${t.blueAccent[300]}`,"& :hover, & .MuiAvatar-root svg:hover":{backgroundColor:`${t.blueAccent[300]} !important`}},children:m.jsx(_U,{})}),m.jsx(Ve,{children:m.jsx(Ge,{variant:"h5",sx:{fontWeight:600},children:"Set New Limit"})})]})}),r]})},jUe=()=>m.jsx(gr,{title:"Expense Limits",content:m.jsx(wN,{sx:{display:"grid",gap:"1rem",gridTemplateColumns:"repeat(auto-fit, minmax(250px, 1fr))",height:"100%",overflowY:"scroll",overflowX:"hidden",paddingRight:"1rem"},children:m.jsx(LUe,{})}),height:500}),DUe=[...dAe,{field:"options",headerName:"",sortable:!1,flex:1,minWidth:60,maxWidth:60,renderCell:()=>m.jsx(Ve,{children:m.jsx(Ts,{})})}];function NUe(){return m.jsx(Ve,{style:{height:400,width:"100%"},children:m.jsx(Ms,{rows:fAe,columns:DUe,disableColumnFilter:!0,disableColumnSelector:!0,disableDensitySelector:!0,slots:{toolbar:Is},slotProps:{filterPanel:{sx:{maxWidth:"100vw"}},toolbar:{showQuickFilter:!0}},editMode:"row",initialState:{columns:{columnVisibilityModel:{remainingTerm:!1}},filter:{filterModel:{items:[],quickFilterExcludeHiddenColumns:!0}},pagination:{paginationModel:{page:0,pageSize:10}}},pageSizeOptions:[5,10]})})}const zUe=()=>m.jsx(gr,{title:"Savings",content:m.jsx(NUe,{}),height:500});function BUe(){return m.jsx(m.Fragment,{children:m.jsxs(Ve,{sx:{padding:2},children:[m.jsxs(Ve,{sx:{paddingBlock:2},children:[m.jsx(Ge,{variant:"h1",children:"Budget"}),m.jsx(Ge,{variant:"h6",children:"Track and control your spending"})]}),m.jsxs(Lt,{container:!0,spacing:2,children:[m.jsx(Lt,{item:!0,xs:12,md:6,lg:8,children:m.jsx(WNe,{})}),m.jsx(Lt,{item:!0,xs:12,md:6,lg:4,children:m.jsx(hV,{})}),m.jsx(Lt,{item:!0,xs:12,md:6,lg:6,children:m.jsx(jUe,{})}),m.jsx(Lt,{item:!0,xs:12,md:6,lg:6,children:m.jsx(zUe,{})})]})]})})}const HUe={inputProps:{"aria-label":"Color switch demo"}};function HF(){return m.jsx(m.Fragment,{children:m.jsx(LN,{...HUe,defaultChecked:!0,color:"secondary"})})}const WUe=[{field:"id",headerName:"ID",flex:1,minWidth:80,maxWidth:80},{field:"billName",headerName:"Bill Name",type:"string",flex:1,minWidth:160,maxWidth:160},{field:"vendor",headerName:"Vendor",type:"string",flex:1,minWidth:140,maxWidth:140},{field:"status",headerName:"Status",type:"string",flex:1,minWidth:110,maxWidth:110},{field:"paymentDate",headerName:"Payment Date",type:"string",sortable:!0,flex:1,minWidth:140,maxWidth:140},{field:"dueDate",headerName:"Due Date",description:"The date by which the bill payment is due.",type:"string",sortable:!0,flex:1,minWidth:120,maxWidth:120},{field:"amount",headerName:"Amount",type:"number",sortable:!0,flex:1,minWidth:130,maxWidth:130},{field:"frequency",headerName:"Frequency",type:"string",sortable:!0,flex:1,minWidth:130,maxWidth:130},{field:"paymentMethod",headerName:"Payment Method",type:"string",sortable:!0,flex:1,minWidth:160,maxWidth:160},{field:"category",headerName:"Category",type:"string",sortable:!0,flex:1,minWidth:130,maxWidth:130},{field:"notes",headerName:"Notes",type:"string",sortable:!1,flex:1,minWidth:160,maxWidth:190}],VUe=[{id:1,billName:"Electricity",vendor:"ABC Electric",status:"Paid",paymentDate:"2021-01-12",dueDate:"2021-02-01",amount:100,frequency:"Monthly",paymentMethod:"Credit Card",category:"Utilities",notes:"Usage charge for January"},{id:2,billName:"Phone",vendor:"XYZ Telecom",status:"Unpaid",paymentDate:null,dueDate:"2021-02-15",amount:50,frequency:"Monthly",paymentMethod:"Direct Debit",category:"Utilities",notes:"Includes data and calling plan"},{id:3,billName:"Rent",vendor:"XYZ Apartments",status:"Unpaid",paymentDate:null,dueDate:"2021-03-01",amount:1e3,frequency:"Monthly",paymentMethod:"Bank Transfer",category:"Housing",notes:"Due at the beginning of each month"},{id:4,billName:"Internet",vendor:"XYZ Telecom",status:"Paid",paymentDate:"2021-01-18",dueDate:"2021-02-05",amount:60,frequency:"Monthly",paymentMethod:"Direct Debit",category:"Utilities",notes:"High-speed unlimited plan"},{id:5,billName:"Gym Membership",vendor:"Fitness Club",status:"Paid",paymentDate:"2021-01-25",dueDate:"2021-02-10",amount:80,frequency:"Monthly",paymentMethod:"Credit Card",category:"Health & Fitness",notes:"Access to gym and fitness classes"},{id:6,billName:"Insurance",vendor:"ABC Insurance",status:"Unpaid",paymentDate:null,dueDate:"2021-03-20",amount:200,frequency:"Quarterly",paymentMethod:"Cheque",category:"Insurance",notes:"Car insurance premium"},{id:7,billName:"Credit Card",vendor:"Bank XYZ",status:"Unpaid",paymentDate:null,dueDate:"2021-02-28",amount:150,frequency:"Monthly",paymentMethod:"Online Payment",category:"Credit Card",notes:"Last month's expenses"},{id:8,billName:"Subscription",vendor:"XYZ Streaming",status:"Paid",paymentDate:"2021-01-15",dueDate:"2021-02-01",amount:15,frequency:"Monthly",paymentMethod:"Online Payment",category:"Entertainment",notes:"Access to movies and shows"}],UUe=[{id:"Rent",color:"hsl(261, 70%, 50%)",data:[{x:"Jan",y:400},{x:"Feb",y:400},{x:"Mar",y:400},{x:"Apr",y:400},{x:"May",y:400},{x:"Jun",y:500},{x:"Jul",y:500},{x:"Aug",y:500},{x:"Sep",y:500},{x:"Oct",y:500},{x:"Nov",y:500},{x:"Dec",y:500}]},{id:"Utilities",color:"hsl(111, 70%, 50%)",data:[{x:"Jan",y:525},{x:"Feb",y:600},{x:"Mar",y:350},{x:"Apr",y:385},{x:"May",y:410},{x:"Jun",y:470},{x:"Jul",y:510},{x:"Aug",y:430},{x:"Sep",y:590},{x:"Oct",y:550},{x:"Nov",y:450},{x:"Dec",y:590}]},{id:"Internet",color:"hsl(20, 70%, 50%)",data:[{x:"Jan",y:489},{x:"Feb",y:437},{x:"Mar",y:471},{x:"Apr",y:578},{x:"May",y:550},{x:"Jun",y:536},{x:"Jul",y:675},{x:"Aug",y:613},{x:"Sep",y:400},{x:"Oct",y:675},{x:"Nov",y:684},{x:"Dec",y:450}]},{id:"Phone",color:"hsl(258, 70%, 50%)",data:[{x:"Jan",y:220},{x:"Feb",y:284},{x:"Mar",y:217},{x:"Apr",y:312},{x:"May",y:344},{x:"Jun",y:339},{x:"Jul",y:319},{x:"Aug",y:597},{x:"Sep",y:553},{x:"Oct",y:551},{x:"Nov",y:593},{x:"Dec",y:656}]},{id:"Other",color:"hsl(101, 70%, 50%)",data:[{x:"Jan",y:622},{x:"Feb",y:610},{x:"Mar",y:635},{x:"Apr",y:653},{x:"May",y:657},{x:"Jun",y:700},{x:"Jul",y:696},{x:"Aug",y:688},{x:"Sep",y:670},{x:"Oct",y:652},{x:"Nov",y:535},{x:"Dec",y:666}]}],GUe=[...WUe,{field:"notification",headerName:"Notification",type:"boolean",sortable:!0,flex:1,minWidth:130,maxWidth:130,renderCell:()=>m.jsx(Ve,{children:m.jsx(HF,{})})},{field:"recordPayment",headerName:"Record Payment",sortable:!1,flex:1,minWidth:220,maxWidth:220,renderCell:e=>m.jsx(Ve,{children:m.jsx(Oa,{variant:"contained",size:"small",color:"secondary",tabIndex:e.hasFocus?0:-1,children:"Make a payment record"})})},{field:"autoPay",headerName:"Auto Pay",sortable:!1,description:"Indicate whether the bill is set up for automatic payment or requires manual payment.",flex:1,minWidth:130,maxWidth:130,renderCell:()=>m.jsx(Ve,{children:m.jsx(HF,{})})},{field:"options",headerName:"",sortable:!1,flex:1,minWidth:90,maxWidth:90,renderCell:()=>m.jsx(Ve,{children:m.jsx(Ts,{})})}];function qUe(){return m.jsx(Ve,{sx:{height:400,width:"100%"},children:m.jsx(Ms,{rows:VUe,columns:GUe,disableColumnFilter:!0,disableColumnSelector:!0,disableDensitySelector:!0,slots:{toolbar:Is},slotProps:{filterPanel:{sx:{maxWidth:"100vw"}},toolbar:{showQuickFilter:!0}},editMode:"row",initialState:{columns:{columnVisibilityModel:{remainingTerm:!1}},filter:{filterModel:{items:[],quickFilterExcludeHiddenColumns:!0}},pagination:{paginationModel:{page:0,pageSize:10}}},pageSizeOptions:[5,10]})})}const KUe=()=>m.jsx(gr,{title:"Bills Summary",content:m.jsx(qUe,{}),height:500});function YUe(){}var XUe=YUe,p$=FW,QUe=XUe,ZUe=CT,JUe=1/0,eGe=p$&&1/ZUe(new p$([,-0]))[1]==JUe?function(e){return new p$(e)}:QUe,tGe=eGe,nGe=pT,rGe=lW,oGe=uW,iGe=hT,aGe=tGe,sGe=CT,lGe=200;function uGe(e,t,n){var r=-1,o=rGe,i=e.length,a=!0,s=[],l=s;if(n)a=!1,o=oGe;else if(i>=lGe){var u=t?null:aGe(e);if(u)return sGe(u);a=!1,o=iGe,l=new nGe}else l=t?[]:s;e:for(;++rt||i&&a&&l&&!s&&!u||r&&a&&l||!n&&l||!o)return 1;if(!r&&!i&&!u&&e=s)return l;var u=n[r];return l*(u=="desc"?-1:1)}}return e.index-t.index}var Eqe=Iqe,h$=m2,Rqe=w0,Oqe=gG,Aqe=$qe,Fqe=kqe,Lqe=Yp,jqe=Eqe,Dqe=p2,Nqe=fa;function zqe(e,t,n){t.length?t=h$(t,function(i){return Nqe(i)?function(a){return Rqe(a,i.length===1?i[0]:i)}:i}):t=[Dqe];var r=-1;t=h$(t,Lqe(Oqe));var o=Aqe(e,function(i,a,s){var l=h$(t,function(u){return u(i)});return{criteria:l,index:++r,value:i}});return Fqe(o,function(i,a){return jqe(i,a,n)})}var Bqe=zqe,Hqe=TW,Wqe=Bqe,Vqe=B5,UF=IB,Uqe=Vqe(function(e,t){if(e==null)return[];var n=t.length;return n>1&&UF(e,t[0],t[1])?t=[]:n>2&&UF(t[0],t[1],t[2])&&(t=[t[0]]),Wqe(e,Hqe(t,1),[])}),Gqe=Uqe;const qqe=Fr(Gqe);var Kqe=fd,Yqe=ks,Xqe="[object Date]";function Qqe(e){return Yqe(e)&&Kqe(e)==Xqe}var Zqe=Qqe,Jqe=Zqe,eKe=Yp,GF=d2,qF=GF&&GF.isDate,tKe=qF?eKe(qF):Jqe,nKe=tKe;const rKe=Fr(nKe);function nc(){return nc=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?(x=p.align[C?"left":"right"],w=p.baseline.center):(o==="after"&&l>0||o==="before"&&l<0)&&(x=p.align[C?"right":"left"],w=p.baseline.center)):(t=function(S){var $;return{x:0,y:($=y(S))!=null?$:0}},v.lineX=a*(o==="after"?1:-1),b.textX=(a+s)*(o==="after"?1:-1),x=o==="after"?p.align.left:p.align.right),{ticks:f.map(function(S){return La({key:S instanceof Date?""+S.valueOf():""+S,value:S},t(S),v,b)}),textAlign:x,textBaseline:w}},SG=function(e,t){if(e===void 0||typeof e=="function")return e;if(t.type==="time"){var n=C0(e);return function(r){return n(r instanceof Date?r:new Date(r))}}return Tu(e)},Qk=function(e){var t,n=e.width,r=e.height,o=e.scale,i=e.axis,a=e.values,s=(t=a,(Array.isArray(t)?a:void 0)||wG(o,a)),l="bandwidth"in o?bG(o):o,u=i==="x"?s.map(function(c){var f,p;return{key:c instanceof Date?""+c.valueOf():""+c,x1:(f=l(c))!=null?f:0,x2:(p=l(c))!=null?p:0,y1:0,y2:r}}):s.map(function(c){var f,p;return{key:c instanceof Date?""+c.valueOf():""+c,x1:0,x2:n,y1:(f=l(c))!=null?f:0,y2:(p=l(c))!=null?p:0}});return u},SKe=g.memo(function(e){var t,n=e.value,r=e.format,o=e.lineX,i=e.lineY,a=e.onClick,s=e.textBaseline,l=e.textAnchor,u=e.animatedProps,c=An(),f=(t=r==null?void 0:r(n))!=null?t:n,p=g.useMemo(function(){var y={opacity:u.opacity};return a?{style:La({},y,{cursor:"pointer"}),onClick:function(v){return a(v,f)}}:{style:y}},[u.opacity,a,f]);return m.jsxs(Rn.g,La({transform:u.transform},p,{children:[m.jsx("line",{x1:0,x2:o,y1:0,y2:i,style:c.axis.ticks.line}),m.jsx(Rn.text,{dominantBaseline:s,textAnchor:l,transform:u.textTransform,style:c.axis.ticks.text,children:""+f})]}))}),$Ke=g.memo(function(e){var t=e.axis,n=e.scale,r=e.x,o=r===void 0?0:r,i=e.y,a=i===void 0?0:i,s=e.length,l=e.ticksPosition,u=e.tickValues,c=e.tickSize,f=c===void 0?5:c,p=e.tickPadding,y=p===void 0?5:p,v=e.tickRotation,b=v===void 0?0:v,C=e.format,x=e.renderTick,w=x===void 0?SKe:x,S=e.legend,$=e.legendPosition,T=$===void 0?"end":$,k=e.legendOffset,M=k===void 0?0:k,E=e.onClick,N=e.ariaHidden,I=An(),A=g.useMemo(function(){return SG(C,n)},[C,n]),z=CG({axis:t,scale:n,ticksPosition:l,tickValues:u,tickSize:f,tickPadding:y,tickRotation:b}),L=z.ticks,O=z.textAlign,j=z.textBaseline,H=null;if(S!==void 0){var B,D=0,W=0,U=0;t==="y"?(U=-90,D=M,T==="start"?(B="start",W=s):T==="middle"?(B="middle",W=s/2):T==="end"&&(B="end")):(W=M,T==="start"?B="start":T==="middle"?(B="middle",D=s/2):T==="end"&&(B="end",D=s)),H=m.jsx("text",{transform:"translate("+D+", "+W+") rotate("+U+")",textAnchor:B,style:La({dominantBaseline:"central"},I.axis.legend.text),children:S})}var Z=Io(),Y=Z.animate,se=Z.config,Q=Ss({transform:"translate("+o+","+a+")",lineX2:t==="x"?s:0,lineY2:t==="x"?0:s,config:se,immediate:!Y}),ne=dd(L,{keys:function(re){return re.key},initial:function(re){return{opacity:1,transform:"translate("+re.x+","+re.y+")",textTransform:"translate("+re.textX+","+re.textY+") rotate("+b+")"}},from:function(re){return{opacity:0,transform:"translate("+re.x+","+re.y+")",textTransform:"translate("+re.textX+","+re.textY+") rotate("+b+")"}},enter:function(re){return{opacity:1,transform:"translate("+re.x+","+re.y+")",textTransform:"translate("+re.textX+","+re.textY+") rotate("+b+")"}},update:function(re){return{opacity:1,transform:"translate("+re.x+","+re.y+")",textTransform:"translate("+re.textX+","+re.textY+") rotate("+b+")"}},leave:{opacity:0},config:se,immediate:!Y});return m.jsxs(Rn.g,{transform:Q.transform,"aria-hidden":N,children:[ne(function(re,ge,xe,fe){return g.createElement(w,La({tickIndex:fe,format:A,rotate:b,textBaseline:j,textAnchor:O,animatedProps:re},ge,E?{onClick:E}:{}))}),m.jsx(Rn.line,{style:I.axis.domain.line,x1:0,x2:Q.lineX2,y1:0,y2:Q.lineY2}),H]})}),_Ke={ticksPosition:R.oneOf(["before","after"]),tickValues:R.oneOfType([R.number,R.arrayOf(R.oneOfType([R.number,R.string,R.instanceOf(Date)])),R.string]),tickSize:R.number,tickPadding:R.number,tickRotation:R.number,format:R.oneOfType([R.func,R.string]),renderTick:R.func,legend:R.node,legendPosition:R.oneOf(["start","middle","end"]),legendOffset:R.number,ariaHidden:R.bool},u1=R.shape(_Ke),$G=["top","right","bottom","left"],_G=g.memo(function(e){var t=e.xScale,n=e.yScale,r=e.width,o=e.height,i={top:e.top,right:e.right,bottom:e.bottom,left:e.left};return m.jsx(m.Fragment,{children:$G.map(function(a){var s=i[a];if(!s)return null;var l=a==="top"||a==="bottom";return m.jsx($Ke,La({},s,{axis:l?"x":"y",x:a==="right"?r:0,y:a==="bottom"?o:0,scale:l?t:n,length:l?r:o,ticksPosition:a==="top"||a==="left"?"before":"after"}),a)})})}),kKe=g.memo(function(e){var t=e.animatedProps,n=An();return m.jsx(Rn.line,La({},t,n.grid.line))}),XF=g.memo(function(e){var t=e.lines,n=Io(),r=n.animate,o=n.config,i=dd(t,{keys:function(a){return a.key},initial:function(a){return{opacity:1,x1:a.x1,x2:a.x2,y1:a.y1,y2:a.y2}},from:function(a){return{opacity:0,x1:a.x1,x2:a.x2,y1:a.y1,y2:a.y2}},enter:function(a){return{opacity:1,x1:a.x1,x2:a.x2,y1:a.y1,y2:a.y2}},update:function(a){return{opacity:1,x1:a.x1,x2:a.x2,y1:a.y1,y2:a.y2}},leave:{opacity:0},config:o,immediate:!r});return m.jsx("g",{children:i(function(a,s){return g.createElement(kKe,La({},s,{key:s.key,animatedProps:a}))})})}),kG=g.memo(function(e){var t=e.width,n=e.height,r=e.xScale,o=e.yScale,i=e.xValues,a=e.yValues,s=g.useMemo(function(){return!!r&&Qk({width:t,height:n,scale:r,axis:"x",values:i})},[r,i,t,n]),l=g.useMemo(function(){return!!o&&Qk({width:t,height:n,scale:o,axis:"y",values:a})},[n,t,o,a]);return m.jsxs(m.Fragment,{children:[s&&m.jsx(XF,{lines:s}),l&&m.jsx(XF,{lines:l})]})}),PKe=function(e,t){var n,r=t.axis,o=t.scale,i=t.x,a=i===void 0?0:i,s=t.y,l=s===void 0?0:s,u=t.length,c=t.ticksPosition,f=t.tickValues,p=t.tickSize,y=p===void 0?5:p,v=t.tickPadding,b=v===void 0?5:v,C=t.tickRotation,x=C===void 0?0:C,w=t.format,S=t.legend,$=t.legendPosition,T=$===void 0?"end":$,k=t.legendOffset,M=k===void 0?0:k,E=t.theme,N=CG({axis:r,scale:o,ticksPosition:c,tickValues:f,tickSize:y,tickPadding:b,tickRotation:x,engine:"canvas"}),I=N.ticks,A=N.textAlign,z=N.textBaseline;e.save(),e.translate(a,l),e.textAlign=A,e.textBaseline=z,e.font=(E.axis.ticks.text.fontWeight?E.axis.ticks.text.fontWeight+" ":"")+E.axis.ticks.text.fontSize+"px "+E.axis.ticks.text.fontFamily,((n=E.axis.domain.line.strokeWidth)!=null?n:0)>0&&(e.lineWidth=Number(E.axis.domain.line.strokeWidth),e.lineCap="square",E.axis.domain.line.stroke&&(e.strokeStyle=E.axis.domain.line.stroke),e.beginPath(),e.moveTo(0,0),e.lineTo(r==="x"?u:0,r==="x"?0:u),e.stroke());var L=typeof w=="function"?w:function(D){return""+D};if(I.forEach(function(D){var W;((W=E.axis.ticks.line.strokeWidth)!=null?W:0)>0&&(e.lineWidth=Number(E.axis.ticks.line.strokeWidth),e.lineCap="square",E.axis.ticks.line.stroke&&(e.strokeStyle=E.axis.ticks.line.stroke),e.beginPath(),e.moveTo(D.x,D.y),e.lineTo(D.x+D.lineX,D.y+D.lineY),e.stroke());var U=L(D.value);e.save(),e.translate(D.x+D.textX,D.y+D.textY),e.rotate(ea(x)),E.axis.ticks.text.fill&&(e.fillStyle=E.axis.ticks.text.fill),e.fillText(String(U),0,0),e.restore()}),S!==void 0){var O=0,j=0,H=0,B="center";r==="y"?(H=-90,O=M,T==="start"?(B="start",j=u):T==="middle"?(B="center",j=u/2):T==="end"&&(B="end")):(j=M,T==="start"?B="start":T==="middle"?(B="center",O=u/2):T==="end"&&(B="end",O=u)),e.translate(O,j),e.rotate(ea(H)),e.font=(E.axis.legend.text.fontWeight?E.axis.legend.text.fontWeight+" ":"")+E.axis.legend.text.fontSize+"px "+E.axis.legend.text.fontFamily,E.axis.legend.text.fill&&(e.fillStyle=E.axis.legend.text.fill),e.textAlign=B,e.textBaseline="middle",e.fillText(S,0,0)}e.restore()},PG=function(e,t){var n=t.xScale,r=t.yScale,o=t.width,i=t.height,a=t.top,s=t.right,l=t.bottom,u=t.left,c=t.theme,f={top:a,right:s,bottom:l,left:u};$G.forEach(function(p){var y=f[p];if(!y)return null;var v=p==="top"||p==="bottom",b=p==="top"||p==="left"?"before":"after",C=v?n:r,x=SG(y.format,C);PKe(e,La({},y,{axis:v?"x":"y",x:p==="right"?o:0,y:p==="bottom"?i:0,scale:C,format:x,length:v?o:i,ticksPosition:b,theme:c}))})},Sb=function(e,t){var n=t.width,r=t.height,o=t.scale,i=t.axis,a=t.values;Qk({width:n,height:r,scale:o,axis:i,values:a}).forEach(function(s){e.beginPath(),e.moveTo(s.x1,s.y1),e.lineTo(s.x2,s.y2),e.stroke()})};const QF=Math.pow(2,-52),c1=new Uint32Array(512);class $b{static from(t,n=RKe,r=OKe){const o=t.length,i=new Float64Array(o*2);for(let a=0;a>1;if(n>0&&typeof t[0]!="number")throw new Error("Expected coords to contain numbers.");this.coords=t;const r=Math.max(2*n-5,0);this._triangles=new Uint32Array(r*3),this._halfedges=new Int32Array(r*3),this._hashSize=Math.ceil(Math.sqrt(n)),this._hullPrev=new Uint32Array(n),this._hullNext=new Uint32Array(n),this._hullTri=new Uint32Array(n),this._hullHash=new Int32Array(this._hashSize).fill(-1),this._ids=new Uint32Array(n),this._dists=new Float64Array(n),this.update()}update(){const{coords:t,_hullPrev:n,_hullNext:r,_hullTri:o,_hullHash:i}=this,a=t.length>>1;let s=1/0,l=1/0,u=-1/0,c=-1/0;for(let I=0;Iu&&(u=A),z>c&&(c=z),this._ids[I]=I}const f=(s+u)/2,p=(l+c)/2;let y=1/0,v,b,C;for(let I=0;I0&&(b=I,y=A)}let S=t[2*b],$=t[2*b+1],T=1/0;for(let I=0;IL&&(I[A++]=O,L=this._dists[O])}this.hull=I.subarray(0,A),this.triangles=new Uint32Array(0),this.halfedges=new Uint32Array(0);return}if(d1(x,w,S,$,k,M)){const I=b,A=S,z=$;b=C,S=k,$=M,C=I,k=A,M=z}const E=EKe(x,w,S,$,k,M);this._cx=E.x,this._cy=E.y;for(let I=0;I0&&Math.abs(O-A)<=QF&&Math.abs(j-z)<=QF||(A=O,z=j,L===v||L===b||L===C))continue;let H=0;for(let Z=0,Y=this._hashKey(O,j);Z0?3-n:1+n)/4}function m$(e,t,n,r){const o=e-n,i=t-r;return o*o+i*i}function g$(e,t,n,r,o,i){const a=(r-t)*(o-e),s=(n-e)*(i-t);return Math.abs(a-s)>=33306690738754716e-32*Math.abs(a+s)?a-s:0}function d1(e,t,n,r,o,i){return(g$(o,i,e,t,n,r)||g$(e,t,n,r,o,i)||g$(n,r,o,i,e,t))<0}function TKe(e,t,n,r,o,i,a,s){const l=e-a,u=t-s,c=n-a,f=r-s,p=o-a,y=i-s,v=l*l+u*u,b=c*c+f*f,C=p*p+y*y;return l*(f*C-b*y)-u*(c*C-b*p)+v*(c*y-f*p)<0}function IKe(e,t,n,r,o,i){const a=n-e,s=r-t,l=o-e,u=i-t,c=a*a+s*s,f=l*l+u*u,p=.5/(a*u-s*l),y=(u*c-s*f)*p,v=(a*f-l*c)*p;return y*y+v*v}function EKe(e,t,n,r,o,i){const a=n-e,s=r-t,l=o-e,u=i-t,c=a*a+s*s,f=l*l+u*u,p=.5/(a*u-s*l),y=e+(u*c-s*f)*p,v=t+(a*f-l*c)*p;return{x:y,y:v}}function Af(e,t,n,r){if(r-n<=20)for(let o=n+1;o<=r;o++){const i=e[o],a=t[i];let s=o-1;for(;s>=n&&t[e[s]]>a;)e[s+1]=e[s--];e[s+1]=i}else{const o=n+r>>1;let i=n+1,a=r;nm(e,o,i),t[e[n]]>t[e[r]]&&nm(e,n,r),t[e[i]]>t[e[r]]&&nm(e,i,r),t[e[n]]>t[e[i]]&&nm(e,n,i);const s=e[i],l=t[s];for(;;){do i++;while(t[e[i]]l);if(a=a-n?(Af(e,t,i,r),Af(e,t,n,a-1)):(Af(e,t,n,a-1),Af(e,t,i,r))}}function nm(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function RKe(e){return e[0]}function OKe(e){return e[1]}const ZF=1e-6;let fc=class{constructor(){this._x0=this._y0=this._x1=this._y1=null,this._=""}moveTo(t,n){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")}lineTo(t,n){this._+=`L${this._x1=+t},${this._y1=+n}`}arc(t,n,r){t=+t,n=+n,r=+r;const o=t+r,i=n;if(r<0)throw new Error("negative radius");this._x1===null?this._+=`M${o},${i}`:(Math.abs(this._x1-o)>ZF||Math.abs(this._y1-i)>ZF)&&(this._+="L"+o+","+i),r&&(this._+=`A${r},${r},0,1,1,${t-r},${n}A${r},${r},0,1,1,${this._x1=o},${this._y1=i}`)}rect(t,n,r,o){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${+r}v${+o}h${-r}Z`}value(){return this._||null}};class Zk{constructor(){this._=[]}moveTo(t,n){this._.push([t,n])}closePath(){this._.push(this._[0].slice())}lineTo(t,n){this._.push([t,n])}value(){return this._.length?this._:null}}class AKe{constructor(t,[n,r,o,i]=[0,0,960,500]){if(!((o=+o)>=(n=+n))||!((i=+i)>=(r=+r)))throw new Error("invalid bounds");this.delaunay=t,this._circumcenters=new Float64Array(t.points.length*2),this.vectors=new Float64Array(t.points.length*2),this.xmax=o,this.xmin=n,this.ymax=i,this.ymin=r,this._init()}update(){return this.delaunay.update(),this._init(),this}_init(){const{delaunay:{points:t,hull:n,triangles:r},vectors:o}=this,i=this.circumcenters=this._circumcenters.subarray(0,r.length/3*2);for(let y=0,v=0,b=r.length,C,x;y1;)i-=2;for(let a=2;a4)for(let a=0;a0){if(n>=this.ymax)return null;(a=(this.ymax-n)/o)0){if(t>=this.xmax)return null;(a=(this.xmax-t)/r)this.xmax?2:0)|(nthis.ymax?8:0)}}const FKe=2*Math.PI,uf=Math.pow;function LKe(e){return e[0]}function jKe(e){return e[1]}function DKe(e){const{triangles:t,coords:n}=e;for(let r=0;r1e-10)return!1}return!0}function NKe(e,t,n){return[e+Math.sin(e+t)*n,t+Math.cos(e-t)*n]}class y3{static from(t,n=LKe,r=jKe,o){return new y3("length"in t?zKe(t,n,r,o):Float64Array.from(BKe(t,n,r,o)))}constructor(t){this._delaunator=new $b(t),this.inedges=new Int32Array(t.length/2),this._hullIndex=new Int32Array(t.length/2),this.points=this._delaunator.coords,this._init()}update(){return this._delaunator.update(),this._init(),this}_init(){const t=this._delaunator,n=this.points;if(t.hull&&t.hull.length>2&&DKe(t)){this.collinear=Int32Array.from({length:n.length/2},(p,y)=>y).sort((p,y)=>n[2*p]-n[2*y]||n[2*p+1]-n[2*y+1]);const l=this.collinear[0],u=this.collinear[this.collinear.length-1],c=[n[2*l],n[2*l+1],n[2*u],n[2*u+1]],f=1e-8*Math.hypot(c[3]-c[1],c[2]-c[0]);for(let p=0,y=n.length/2;p0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=o[0],this.triangles[1]=o[1],this.triangles[2]=o[1],a[o[0]]=1,o.length===2&&(a[o[1]]=0))}voronoi(t){return new AKe(this,t)}*neighbors(t){const{inedges:n,hull:r,_hullIndex:o,halfedges:i,triangles:a,collinear:s}=this;if(s){const f=s.indexOf(t);f>0&&(yield s[f-1]),f=0&&i!==r&&i!==o;)r=i;return i}_step(t,n,r){const{inedges:o,hull:i,_hullIndex:a,halfedges:s,triangles:l,points:u}=this;if(o[t]===-1||!u.length)return(t+1)%(u.length>>1);let c=t,f=uf(n-u[t*2],2)+uf(r-u[t*2+1],2);const p=o[t];let y=p;do{let v=l[y];const b=uf(n-u[v*2],2)+uf(r-u[v*2+1],2);if(b-1?re.filter(function(ge){return ge!==ne}):[].concat(re,[ne])})},[]),se=function(ne){var re=ne.series,ge=ne.getPointColor,xe=ne.getPointBorderColor,fe=ne.formatX,Se=ne.formatY;return g.useMemo(function(){return re.reduce(function(de,ie){return[].concat(de,ie.data.filter(function(Pe){return Pe.position.x!==null&&Pe.position.y!==null}).map(function(Pe,$e){var me={id:ie.id+"."+$e,index:de.length+$e,serieId:ie.id,serieColor:ie.color,x:Pe.position.x,y:Pe.position.y};return me.color=ge(ie),me.borderColor=xe(me),me.data=eo({},Pe.data,{xFormatted:fe(Pe.data.x),yFormatted:Se(Pe.data.y)}),me}))},[])},[re,ge,xe,fe,Se])}({series:Z,getPointColor:I,getPointBorderColor:A,formatX:k,formatY:M}),Q=eYe({enableSlices:T,points:se,width:l,height:u});return{legendData:U,toggleSerie:Y,lineGenerator:ZKe({curve:y}),areaGenerator:JKe({curve:y,yScale:B,areaBaselineValue:b}),getColor:E,series:Z,xScale:H,yScale:B,slices:Q,points:se}},AG=function(e){var t=e.areaBlendMode,n=e.areaOpacity,r=e.color,o=e.fill,i=e.path,a=Io(),s=a.animate,l=a.config,u=PT(i),c=Ss({color:r,config:l,immediate:!s});return m.jsx(Rn.path,{d:u,fill:o||c.color,fillOpacity:n,strokeWidth:0,style:{mixBlendMode:t}})};AG.propTypes={areaBlendMode:MT.isRequired,areaOpacity:R.number.isRequired,color:R.string,fill:R.string,path:R.string.isRequired};var FG=function(e){var t=e.areaGenerator,n=e.areaOpacity,r=e.areaBlendMode,o=e.lines.slice(0).reverse();return m.jsx("g",{children:o.map(function(i){return m.jsx(AG,eo({path:t(i.data.map(function(a){return a.position}))},eo({areaOpacity:n,areaBlendMode:r},i)),i.id)})})};FG.propTypes={areaGenerator:R.func.isRequired,areaOpacity:R.number.isRequired,areaBlendMode:MT.isRequired,lines:R.arrayOf(R.object).isRequired};var tYe=g.memo(FG),LG=function(e){var t=e.lineGenerator,n=e.points,r=e.color,o=e.thickness,i=g.useMemo(function(){return t(n)},[t,n]),a=PT(i);return m.jsx(Rn.path,{d:a,fill:"none",strokeWidth:o,stroke:r})};LG.propTypes={points:R.arrayOf(R.shape({x:R.oneOfType([R.string,R.number]),y:R.oneOfType([R.string,R.number])})),lineGenerator:R.func.isRequired,color:R.string.isRequired,thickness:R.number.isRequired};var nYe=g.memo(LG),jG=function(e){var t=e.lines,n=e.lineGenerator,r=e.lineWidth;return t.slice(0).reverse().map(function(o){var i=o.id,a=o.data,s=o.color;return m.jsx(nYe,{id:i,points:a.map(function(l){return l.position}),lineGenerator:n,color:s,thickness:r},i)})};jG.propTypes={lines:R.arrayOf(R.shape({id:R.oneOfType([R.string,R.number]).isRequired,color:R.string.isRequired,data:R.arrayOf(R.shape({data:R.shape({x:R.oneOfType([R.string,R.number,R.instanceOf(Date)]),y:R.oneOfType([R.string,R.number,R.instanceOf(Date)])}).isRequired,position:R.shape({x:R.number,y:R.number}).isRequired})).isRequired})).isRequired,lineWidth:R.number.isRequired,lineGenerator:R.func.isRequired};var rYe=g.memo(jG),DG=function(e){var t=e.slice,n=e.axis,r=e.debug,o=e.tooltip,i=e.isCurrent,a=e.setCurrent,s=e.onMouseEnter,l=e.onMouseMove,u=e.onMouseLeave,c=e.onClick,f=Hp(),p=f.showTooltipFromEvent,y=f.hideTooltip,v=g.useCallback(function(w){p(g.createElement(o,{slice:t,axis:n}),w,"right"),a(t),s&&s(t,w)},[p,o,t,s]),b=g.useCallback(function(w){p(g.createElement(o,{slice:t,axis:n}),w,"right"),l&&l(t,w)},[p,o,t,l]),C=g.useCallback(function(w){y(),a(null),u&&u(t,w)},[y,t,u]),x=g.useCallback(function(w){c&&c(t,w)},[t,c]);return m.jsx("rect",{x:t.x0,y:t.y0,width:t.width,height:t.height,stroke:"red",strokeWidth:r?1:0,strokeOpacity:.75,fill:"red",fillOpacity:i&&r?.35:0,onMouseEnter:v,onMouseMove:b,onMouseLeave:C,onClick:x,"data-testid":"slice-"+t.id})};DG.propTypes={slice:R.object.isRequired,axis:R.oneOf(["x","y"]).isRequired,debug:R.bool.isRequired,height:R.number.isRequired,tooltip:R.oneOfType([R.func,R.object]),isCurrent:R.bool.isRequired,setCurrent:R.func.isRequired,onMouseEnter:R.func,onMouseMove:R.func,onMouseLeave:R.func,onClick:R.func};var oYe=g.memo(DG),NG=function(e){var t=e.slices,n=e.axis,r=e.debug,o=e.height,i=e.tooltip,a=e.current,s=e.setCurrent,l=e.onMouseEnter,u=e.onMouseMove,c=e.onMouseLeave,f=e.onClick;return t.map(function(p){return m.jsx(oYe,{slice:p,axis:n,debug:r,height:o,tooltip:i,setCurrent:s,isCurrent:a!==null&&a.id===p.id,onMouseEnter:l,onMouseMove:u,onMouseLeave:c,onClick:f},p.id)})};NG.propTypes={slices:R.arrayOf(R.shape({id:R.oneOfType([R.number,R.string,R.instanceOf(Date)]).isRequired,x:R.number.isRequired,y:R.number.isRequired,points:R.arrayOf(R.object).isRequired})).isRequired,axis:R.oneOf(["x","y"]).isRequired,debug:R.bool.isRequired,height:R.number.isRequired,tooltip:R.oneOfType([R.func,R.object]).isRequired,current:R.object,setCurrent:R.func.isRequired,onMouseEnter:R.func,onMouseMove:R.func,onMouseLeave:R.func,onClick:R.func};var iYe=g.memo(NG),zG=function(e){var t=e.points,n=e.symbol,r=e.size,o=e.borderWidth,i=e.enableLabel,a=e.label,s=e.labelYOffset,l=An(),u=BOe(a),c=t.slice(0).reverse().map(function(f){return{id:f.id,x:f.x,y:f.y,datum:f.data,fill:f.color,stroke:f.borderColor,label:i?u(f.data):null}});return m.jsx("g",{children:c.map(function(f){return m.jsx(DOe,{x:f.x,y:f.y,datum:f.datum,symbol:n,size:r,color:f.fill,borderWidth:o,borderColor:f.stroke,label:f.label,labelYOffset:s,theme:l},f.id)})})};zG.propTypes={points:R.arrayOf(R.object),symbol:R.func,size:R.number.isRequired,color:R.func.isRequired,borderWidth:R.number.isRequired,borderColor:R.func.isRequired,enableLabel:R.bool.isRequired,label:R.oneOfType([R.string,R.func]).isRequired,labelYOffset:R.number};var aYe=g.memo(zG),BG=function(e){var t=e.points,n=e.width,r=e.height,o=e.margin,i=e.setCurrent,a=e.onMouseEnter,s=e.onMouseMove,l=e.onMouseLeave,u=e.onClick,c=e.tooltip,f=e.debug,p=Hp(),y=p.showTooltipAt,v=p.hideTooltip,b=g.useCallback(function(S,$){y(g.createElement(c,{point:S}),[S.x+o.left,S.y+o.top],"top"),i(S),a&&a(S,$)},[i,y,c,a,o]),C=g.useCallback(function(S,$){y(g.createElement(c,{point:S}),[S.x+o.left,S.y+o.top],"top"),i(S),s&&s(S,$)},[i,y,c,s]),x=g.useCallback(function(S,$){v(),i(null),l&&l(S,$)},[v,i,l]),w=g.useCallback(function(S,$){u&&u(S,$)},[u]);return m.jsx(VKe,{nodes:t,width:n,height:r,onMouseEnter:b,onMouseMove:C,onMouseLeave:x,onClick:w,debug:f})};BG.propTypes={points:R.arrayOf(R.object).isRequired,width:R.number.isRequired,height:R.number.isRequired,margin:R.object.isRequired,setCurrent:R.func.isRequired,onMouseEnter:R.func,onMouseMove:R.func,onMouseLeave:R.func,onClick:R.func,tooltip:R.oneOfType([R.func,R.object]).isRequired,debug:R.bool.isRequired};var sYe=g.memo(BG),Jk=function(e){var t=e.data,n=e.xScale,r=e.xFormat,o=e.yScale,i=e.yFormat,a=e.layers,s=e.curve,l=e.areaBaselineValue,u=e.colors,c=e.margin,f=e.width,p=e.height,y=e.axisTop,v=e.axisRight,b=e.axisBottom,C=e.axisLeft,x=e.enableGridX,w=e.enableGridY,S=e.gridXValues,$=e.gridYValues,T=e.lineWidth,k=e.enableArea,M=e.areaOpacity,E=e.areaBlendMode,N=e.enablePoints,I=e.pointSymbol,A=e.pointSize,z=e.pointColor,L=e.pointBorderWidth,O=e.pointBorderColor,j=e.enablePointLabel,H=e.pointLabel,B=e.pointLabelYOffset,D=e.defs,W=e.fill,U=e.markers,Z=e.legends,Y=e.isInteractive,se=e.useMesh,Q=e.debugMesh,ne=e.onMouseEnter,re=e.onMouseMove,ge=e.onMouseLeave,xe=e.onClick,fe=e.tooltip,Se=e.enableSlices,de=e.debugSlices,ie=e.sliceTooltip,Pe=e.enableCrosshair,$e=e.crosshairType,me=e.role,ue=$0(f,p,c),ce=ue.margin,Te=ue.innerWidth,Le=ue.innerHeight,Re=ue.outerWidth,Oe=ue.outerHeight,K=OG({data:t,xScale:n,xFormat:r,yScale:o,yFormat:i,width:Te,height:Le,colors:u,curve:s,areaBaselineValue:l,pointColor:z,pointBorderColor:O,enableSlices:Se}),ee=K.legendData,pe=K.toggleSerie,ye=K.lineGenerator,je=K.areaGenerator,Ae=K.series,Ie=K.xScale,Ce=K.yScale,Ze=K.slices,Ct=K.points,et=An(),Be=ys(z,et),te=ys(O,et),X=g.useState(null),oe=X[0],Ee=X[1],Ue=g.useState(null),Ye=Ue[0],at=Ue[1],Je={grid:m.jsx(kG,{theme:et,width:Te,height:Le,xScale:x?Ie:null,yScale:w?Ce:null,xValues:S,yValues:$},"grid"),markers:m.jsx(QW,{markers:U,width:Te,height:Le,xScale:Ie,yScale:Ce,theme:et},"markers"),axes:m.jsx(_G,{xScale:Ie,yScale:Ce,width:Te,height:Le,theme:et,top:y,right:v,bottom:b,left:C},"axes"),areas:null,lines:m.jsx(rYe,{lines:Ae,lineGenerator:ye,lineWidth:T},"lines"),slices:null,points:null,crosshair:null,mesh:null,legends:Z.map(function(_t,ht){return m.jsx(OT,eo({},_t,{containerWidth:Te,containerHeight:Le,data:_t.data||ee,theme:et,toggleSerie:_t.toggleSerie?pe:void 0}),"legend."+ht)})},nt=TT(D,Ae,W);return k&&(Je.areas=m.jsx(tYe,{areaGenerator:je,areaOpacity:M,areaBlendMode:E,lines:Ae},"areas")),Y&&Se!==!1&&(Je.slices=m.jsx(iYe,{slices:Ze,axis:Se,debug:de,height:Le,tooltip:ie,current:Ye,setCurrent:at,onMouseEnter:ne,onMouseMove:re,onMouseLeave:ge,onClick:xe},"slices")),N&&(Je.points=m.jsx(aYe,{points:Ct,symbol:I,size:A,color:Be,borderWidth:L,borderColor:te,enableLabel:j,label:H,labelYOffset:B},"points")),Y&&Pe&&(oe!==null&&(Je.crosshair=m.jsx(sk,{width:Te,height:Le,x:oe.x,y:oe.y,type:$e},"crosshair")),Ye!==null&&(Je.crosshair=m.jsx(sk,{width:Te,height:Le,x:Ye.x,y:Ye.y,type:Se},"crosshair"))),Y&&se&&Se===!1&&(Je.mesh=m.jsx(sYe,{points:Ct,width:Te,height:Le,margin:ce,current:oe,setCurrent:Ee,onMouseEnter:ne,onMouseMove:re,onMouseLeave:ge,onClick:xe,tooltip:fe,debug:Q},"mesh")),m.jsx(ow,{defs:nt,width:Re,height:Oe,margin:ce,role:me,children:a.map(function(_t,ht){return typeof _t=="function"?m.jsx(g.Fragment,{children:_t(eo({},e,{innerWidth:Te,innerHeight:Le,series:Ae,slices:Ze,points:Ct,xScale:Ie,yScale:Ce,lineGenerator:ye,areaGenerator:je,currentPoint:oe,setCurrentPoint:Ee,currentSlice:Ye,setCurrentSlice:at}))},ht):Je[_t]})})};Jk.propTypes=YKe,Jk.defaultProps=Ws;var lYe=ZW(Jk),O0=function(e){return m.jsx(nh,{children:function(t){var n=t.width,r=t.height;return m.jsx(lYe,eo({width:n,height:r},e))}})},eP=function(e){var t=e.width,n=e.height,r=e.margin,o=e.pixelRatio,i=e.data,a=e.xScale,s=e.xFormat,l=e.yScale,u=e.yFormat,c=e.curve,f=e.layers,p=e.colors,y=e.lineWidth,v=e.enableArea,b=e.areaBaselineValue,C=e.areaOpacity,x=e.enablePoints,w=e.pointSize,S=e.pointColor,$=e.pointBorderWidth,T=e.pointBorderColor,k=e.enableGridX,M=e.gridXValues,E=e.enableGridY,N=e.gridYValues,I=e.axisTop,A=e.axisRight,z=e.axisBottom,L=e.axisLeft,O=e.legends,j=e.isInteractive,H=e.debugMesh,B=e.onMouseLeave,D=e.onClick,W=e.tooltip,U=e.canvasRef,Z=g.useRef(null),Y=$0(t,n,r),se=Y.margin,Q=Y.innerWidth,ne=Y.innerHeight,re=Y.outerWidth,ge=Y.outerHeight,xe=An(),fe=g.useState(null),Se=fe[0],de=fe[1],ie=OG({data:i,xScale:a,xFormat:s,yScale:l,yFormat:u,width:Q,height:ne,colors:p,curve:c,areaBaselineValue:b,pointColor:S,pointBorderColor:T}),Pe=ie.lineGenerator,$e=ie.areaGenerator,me=ie.series,ue=ie.xScale,ce=ie.yScale,Te=ie.points,Le=MG({points:Te,width:Q,height:ne,debug:H}),Re=Le.delaunay,Oe=Le.voronoi;g.useEffect(function(){U&&(U.current=Z.current),Z.current.width=re*o,Z.current.height=ge*o;var Ce=Z.current.getContext("2d");Ce.scale(o,o),Ce.fillStyle=xe.background,Ce.fillRect(0,0,re,ge),Ce.translate(se.left,se.top),f.forEach(function(Ze){if(typeof Ze=="function"&&Ze({ctx:Ce,innerWidth:Q,innerHeight:ne,series:me,points:Te,xScale:ue,yScale:ce,lineWidth:y,lineGenerator:Pe,areaGenerator:$e,currentPoint:Se,setCurrentPoint:de}),Ze==="grid"&&xe.grid.line.strokeWidth>0&&(Ce.lineWidth=xe.grid.line.strokeWidth,Ce.strokeStyle=xe.grid.line.stroke,k&&Sb(Ce,{width:Q,height:ne,scale:ue,axis:"x",values:M}),E&&Sb(Ce,{width:Q,height:ne,scale:ce,axis:"y",values:N})),Ze==="axes"&&PG(Ce,{xScale:ue,yScale:ce,width:Q,height:ne,top:I,right:A,bottom:z,left:L,theme:xe}),Ze==="areas"&&v===!0&&(Ce.save(),Ce.globalAlpha=C,$e.context(Ce),me.forEach(function(et){Ce.fillStyle=et.color,Ce.beginPath(),$e(et.data.map(function(Be){return Be.position})),Ce.fill()}),Ce.restore()),Ze==="lines"&&(Pe.context(Ce),me.forEach(function(et){Ce.strokeStyle=et.color,Ce.lineWidth=y,Ce.beginPath(),Pe(et.data.map(function(Be){return Be.position})),Ce.stroke()})),Ze==="points"&&x===!0&&w>0&&Te.forEach(function(et){Ce.fillStyle=et.color,Ce.beginPath(),Ce.arc(et.x,et.y,w/2,0,2*Math.PI),Ce.fill(),$>0&&(Ce.strokeStyle=et.borderColor,Ce.lineWidth=$,Ce.stroke())}),Ze==="mesh"&&H===!0&&(UKe(Ce,Oe),Se&&GKe(Ce,Oe,Se.index)),Ze==="legends"){var Ct=me.map(function(et){return{id:et.id,label:et.id,color:et.color}}).reverse();O.forEach(function(et){fV(Ce,eo({},et,{data:et.data||Ct,containerWidth:Q,containerHeight:ne,theme:xe}))})}})},[Z,re,ge,f,xe,Pe,me,ue,ce,k,M,E,N,I,A,z,L,O,Te,x,w,Se]);var K=g.useCallback(function(Ce){var Ze=Fm(Z.current,Ce),Ct=Ze[0],et=Ze[1];if(!eV(se.left,se.top,Q,ne,Ct,et))return null;var Be=Re.find(Ct-se.left,et-se.top);return Te[Be]},[Z,se,Q,ne,Re]),ee=Hp(),pe=ee.showTooltipFromEvent,ye=ee.hideTooltip,je=g.useCallback(function(Ce){var Ze=K(Ce);de(Ze),Ze?pe(g.createElement(W,{point:Ze}),Ce):ye()},[K,de,pe,ye,W]),Ae=g.useCallback(function(Ce){ye(),de(null),Se&&B&&B(Se,Ce)},[ye,de,B]),Ie=g.useCallback(function(Ce){if(D){var Ze=K(Ce);Ze&&D(Ze,Ce)}},[K,D]);return m.jsx("canvas",{ref:Z,width:re*o,height:ge*o,style:{width:re,height:ge,cursor:j?"auto":"normal"},onMouseEnter:j?je:void 0,onMouseMove:j?je:void 0,onMouseLeave:j?Ae:void 0,onClick:j?Ie:void 0})};eP.propTypes=XKe,eP.defaultProps=QKe;var uYe=ZW(eP),cYe=g.forwardRef(function(e,t){return m.jsx(uYe,eo({},e,{canvasRef:t}))});g.forwardRef(function(e,t){return m.jsx(nh,{children:function(n){var r=n.width,o=n.height;return m.jsx(cYe,eo({width:r,height:o},e,{ref:t}))}})});const dYe=({data:e})=>{const t=Wt(),n=_n(t.palette.mode);return m.jsx(O0,{data:e,margin:{top:40,right:10,bottom:100,left:50},xScale:{type:"point"},yScale:{type:"linear",min:"auto",max:900,stacked:!1,reverse:!1},yFormat:" >-.2f",curve:"linear",axisTop:null,axisRight:null,axisBottom:{tickSize:5,tickPadding:5,tickRotation:0,legend:"Months",legendOffset:36,legendPosition:"middle"},axisLeft:{tickSize:5,tickPadding:5,tickRotation:0,legend:"Amount spent",legendOffset:-40,legendPosition:"middle"},theme:{axis:{legend:{text:{fill:`${n.primary[100]}`}},ticks:{text:{fontSize:11,fill:`${n.primary[100]}`,outlineWidth:0,outlineColor:"transparent"}}},tooltip:{container:{background:`${n.primary[500]}`,color:`${n.primary[100]}`,position:"fixed",maxWidth:"10rem"},basic:{maxWidth:"10rem"},table:{maxWidth:"10rem"}}},enableGridX:!0,enableGridY:!1,colors:{scheme:"set1"},pointSize:10,pointColor:{theme:"background"},pointBorderWidth:2,pointBorderColor:{from:"serieColor"},pointLabelYOffset:-12,useMesh:!0,legends:[{anchor:"bottom-left",direction:"row",justify:!1,translateX:0,translateY:80,itemWidth:94,itemHeight:15,itemsSpacing:6,symbolSize:19,symbolShape:"circle",itemDirection:"left-to-right",itemTextColor:`${n.primary[100]}`,effects:[{on:"hover",style:{itemBackground:"rgba(0, 0, 0, .03)",itemOpacity:1}}]}]})},fYe=()=>m.jsx(gr,{title:"Bill Payment Trends",content:m.jsx(Mi,{style:{height:"400px",padding:0},className:"Mui-Chart",children:m.jsx(dYe,{data:UUe})}),height:500});function pYe(){return m.jsx(m.Fragment,{children:m.jsxs(Ve,{sx:{padding:2},children:[m.jsxs(Ve,{sx:{paddingBlock:2},children:[m.jsx(Ge,{variant:"h1",children:"Bills"}),m.jsx(Ge,{variant:"h6",children:"Stay on Top of Your Financial Obligations"})]}),m.jsxs(Lt,{container:!0,spacing:2,children:[m.jsx(Lt,{item:!0,xs:12,md:12,children:m.jsx(KUe,{})}),m.jsx(Lt,{item:!0,xs:12,md:12,children:m.jsx(fYe,{})})]})]})})}const hYe=({data:e})=>{const t=Wt(),n=_n(t.palette.mode);return m.jsx(O0,{data:e,margin:{top:40,right:10,bottom:100,left:50},xScale:{type:"point"},yScale:{type:"linear",min:"auto",max:"auto",stacked:!1,reverse:!1},yFormat:" >-.2f",axisTop:null,axisRight:null,axisBottom:{tickSize:5,tickPadding:5,tickRotation:0,legend:"Months",legendOffset:36,legendPosition:"middle"},axisLeft:{tickSize:5,tickPadding:5,tickRotation:0,legend:"Amount spent",legendOffset:-40,legendPosition:"middle"},enableGridX:!1,enableGridY:!1,theme:{axis:{legend:{text:{fill:`${n.primary[100]}`}},ticks:{text:{fontSize:11,fill:`${n.primary[100]}`,outlineWidth:0,outlineColor:"transparent"}}},tooltip:{container:{background:`${n.primary[500]}`,color:`${n.primary[100]}`,position:"fixed",maxWidth:"10rem"}}},colors:{scheme:"set1"},pointSize:10,pointColor:{theme:"background"},pointBorderWidth:2,pointBorderColor:{from:"serieColor"},pointLabelYOffset:-12,useMesh:!0,legends:[{anchor:"bottom-left",direction:"row",justify:!1,translateX:0,translateY:80,itemWidth:94,itemHeight:15,itemsSpacing:6,symbolSize:19,symbolShape:"circle",itemDirection:"left-to-right",itemTextColor:`${n.primary[100]}`,effects:[{on:"hover",style:{itemBackground:"rgba(0, 0, 0, .03)",itemOpacity:1}}]}]})},mYe=[{id:"Rent",color:"hsl(152, 70%, 50%)",data:[{x:"JAN",y:350},{x:"FEB",y:400},{x:"MAR",y:550},{x:"APR",y:500},{x:"MAY",y:410},{x:"JUN",y:430},{x:"JUL",y:510},{x:"AUG",y:460},{x:"SEP",y:640},{x:"OCT",y:690},{x:"NOV",y:450},{x:"DEC",y:480}]},{id:"Utilities",color:"hsl(30, 70%, 50%)",data:[{x:"JAN",y:600},{x:"FEB",y:550},{x:"MAR",y:400},{x:"APR",y:625},{x:"MAY",y:480},{x:"JUN",y:570},{x:"JUL",y:700},{x:"AUG",y:750},{x:"SEP",y:450},{x:"OCT",y:560},{x:"NOV",y:490},{x:"DEC",y:600}]},{id:"Internet",color:"hsl(201, 70%, 50%)",data:[{x:"JAN",y:630},{x:"FEB",y:690},{x:"MAR",y:700},{x:"APR",y:750},{x:"MAY",y:730},{x:"JUN",y:690},{x:"JUL",y:600},{x:"AUG",y:800},{x:"SEP",y:780},{x:"OCT",y:760},{x:"NOV",y:800},{x:"DEC",y:700}]},{id:"Phone",color:"hsl(203, 70%, 50%)",data:[{x:"JAN",y:776},{x:"FEB",y:615},{x:"MAR",y:790},{x:"APR",y:785},{x:"MAY",y:683},{x:"JUN",y:788},{x:"JUL",y:784},{x:"AUG",y:678},{x:"SEP",y:694},{x:"OCT",y:879},{x:"NOV",y:887},{x:"DEC",y:790}]},{id:"Other",color:"hsl(253, 70%, 50%)",data:[{x:"JAN",y:700},{x:"FEB",y:580},{x:"MAR",y:436},{x:"APR",y:440},{x:"MAY",y:510},{x:"JUN",y:490},{x:"JUL",y:460},{x:"AUG",y:500},{x:"SEP",y:480},{x:"OCT",y:510},{x:"NOV",y:530},{x:"DEC",y:650}]}],gYe=[{id:"Expenses",data:[{x:"JAN",y:1300},{x:"FEB",y:700},{x:"MAR",y:900},{x:"APR",y:1100},{x:"MAY",y:1e3},{x:"JUN",y:1900},{x:"JUL",y:1300},{x:"AUG",y:2100},{x:"SEP",y:1400},{x:"OCT",y:1200},{x:"NOV",y:2300},{x:"DEC",y:1800}]},{id:"Income",data:[{x:"JAN",y:5500},{x:"FEB",y:5300},{x:"MAR",y:5400},{x:"APR",y:5600},{x:"MAY",y:5700},{x:"JUN",y:4900},{x:"JUL",y:5100},{x:"AUG",y:5300},{x:"SEP",y:6e3},{x:"OCT",y:6500},{x:"NOV",y:6300},{x:"DEC",y:6100}]}],vYe=[{day:"Mon",rent:20,utilities:120,internet:15,phone:10,other:150},{day:"Tue",rent:40,utilities:90,internet:30,phone:40,other:120},{day:"Wed",rent:30,utilities:75,internet:35,phone:45,other:70},{day:"Thu",rent:60,utilities:50,internet:55,phone:25,other:60},{day:"Fri",rent:70,utilities:40,internet:20,phone:10,other:100},{day:"Sat",rent:60,utilities:50,internet:45,phone:65,other:80},{day:"Sun",rent:50,utilities:70,internet:50,phone:60,other:100}],yYe=[{category:"Groceries",budget:500,actual:400},{category:"Rent",budget:1e3,actual:950},{category:"Transportation",budget:200,actual:180},{category:"Entertainment",budget:300,actual:350},{category:"Healthcare",budget:150,actual:120},{category:"Utilities",budget:250,actual:200},{category:"Other Expenses",budget:400,actual:420}],bYe=()=>m.jsx(gr,{title:"Trend Analysis",content:m.jsx(Mi,{style:{height:"400px",padding:0},className:"Mui-Chart",children:m.jsx(hYe,{data:mYe})}),height:500});function xYe(e,t){for(var n=-1,r=e==null?0:e.length;++no?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r1),i}),cZe(e,pZe(e),n),r&&(n=sZe(n,hZe|mZe|gZe,dZe));for(var o=t.length;o--;)lZe(n,t[o]);return n}),yZe=vZe;const bZe=Fr(yZe);function xs(){return xs=Object.assign?Object.assign.bind():function(e){for(var t=1;t180?(C-=l,x-=l):x+=l,{points:[[f,p],[t,n],[x,n]],text:[C,n-c],angle:y+90}},KG=function(e){var t=e.data,n=e.annotations,r=e.getPosition,o=e.getDimensions;return g.useMemo(function(){return CZe({data:t,annotations:n,getPosition:r,getDimensions:o})},[t,n,r,o])},$Ze=function(e){var t=e.annotations;return g.useMemo(function(){return t.map(function(n){return xs({},n,{computed:qG(xs({},n))})})},[t])},_Ze=function(e){return g.useMemo(function(){return qG(e)},[e])},kZe=function(e){var t=e.datum,n=e.x,r=e.y,o=e.note,i=An(),a=Io(),s=a.animate,l=a.config,u=Ss({x:n,y:r,config:l,immediate:!s});return typeof o=="function"?g.createElement(o,{x:n,y:r,datum:t}):m.jsxs(m.Fragment,{children:[i.annotations.text.outlineWidth>0&&m.jsx(Rn.text,{x:u.x,y:u.y,style:xs({},i.annotations.text,{strokeLinejoin:"round",strokeWidth:2*i.annotations.text.outlineWidth,stroke:i.annotations.text.outlineColor}),children:o}),m.jsx(Rn.text,{x:u.x,y:u.y,style:bZe(i.annotations.text,["outlineWidth","outlineColor"]),children:o})]})},sL=function(e){var t=e.points,n=e.isOutline,r=n!==void 0&&n,o=An(),i=g.useMemo(function(){var l=t[0];return t.slice(1).reduce(function(u,c){return u+" L"+c[0]+","+c[1]},"M"+l[0]+","+l[1])},[t]),a=PT(i);if(r&&o.annotations.link.outlineWidth<=0)return null;var s=xs({},o.annotations.link);return r&&(s.strokeLinecap="square",s.strokeWidth=o.annotations.link.strokeWidth+2*o.annotations.link.outlineWidth,s.stroke=o.annotations.link.outlineColor,s.opacity=o.annotations.link.outlineOpacity),m.jsx(Rn.path,{fill:"none",d:a,style:s})},PZe=function(e){var t=e.x,n=e.y,r=e.size,o=An(),i=Io(),a=i.animate,s=i.config,l=Ss({x:t,y:n,radius:r/2,config:s,immediate:!a});return m.jsxs(m.Fragment,{children:[o.annotations.outline.outlineWidth>0&&m.jsx(Rn.circle,{cx:l.x,cy:l.y,r:l.radius,style:xs({},o.annotations.outline,{fill:"none",strokeWidth:o.annotations.outline.strokeWidth+2*o.annotations.outline.outlineWidth,stroke:o.annotations.outline.outlineColor,opacity:o.annotations.outline.outlineOpacity})}),m.jsx(Rn.circle,{cx:l.x,cy:l.y,r:l.radius,style:o.annotations.outline})]})},MZe=function(e){var t=e.x,n=e.y,r=e.size,o=r===void 0?tP.dotSize:r,i=An(),a=Io(),s=a.animate,l=a.config,u=Ss({x:t,y:n,radius:o/2,config:l,immediate:!s});return m.jsxs(m.Fragment,{children:[i.annotations.outline.outlineWidth>0&&m.jsx(Rn.circle,{cx:u.x,cy:u.y,r:u.radius,style:xs({},i.annotations.outline,{fill:"none",strokeWidth:2*i.annotations.outline.outlineWidth,stroke:i.annotations.outline.outlineColor,opacity:i.annotations.outline.outlineOpacity})}),m.jsx(Rn.circle,{cx:u.x,cy:u.y,r:u.radius,style:i.annotations.symbol})]})},TZe=function(e){var t=e.x,n=e.y,r=e.width,o=e.height,i=e.borderRadius,a=i===void 0?6:i,s=An(),l=Io(),u=l.animate,c=l.config,f=Ss({x:t-r/2,y:n-o/2,width:r,height:o,config:c,immediate:!u});return m.jsxs(m.Fragment,{children:[s.annotations.outline.outlineWidth>0&&m.jsx(Rn.rect,{x:f.x,y:f.y,rx:a,ry:a,width:f.width,height:f.height,style:xs({},s.annotations.outline,{fill:"none",strokeWidth:s.annotations.outline.strokeWidth+2*s.annotations.outline.outlineWidth,stroke:s.annotations.outline.outlineColor,opacity:s.annotations.outline.outlineOpacity})}),m.jsx(Rn.rect,{x:f.x,y:f.y,rx:a,ry:a,width:f.width,height:f.height,style:s.annotations.outline})]})},IZe=function(e){var t=e.datum,n=e.x,r=e.y,o=e.note,i=_Ze(e);if(!xZe(o))throw new Error("note should be a valid react element");return m.jsxs(m.Fragment,{children:[m.jsx(sL,{points:i.points,isOutline:!0}),Kg(e)&&m.jsx(PZe,{x:n,y:r,size:e.size}),nP(e)&&m.jsx(MZe,{x:n,y:r,size:e.size}),Yg(e)&&m.jsx(TZe,{x:n,y:r,width:e.width,height:e.height,borderRadius:e.borderRadius}),m.jsx(sL,{points:i.points}),m.jsx(kZe,{datum:t,x:i.text[0],y:i.text[1],note:o})]})},lL=function(e,t){t.forEach(function(n,r){var o=n[0],i=n[1];r===0?e.moveTo(o,i):e.lineTo(o,i)})},EZe=function(e,t){var n=t.annotations,r=t.theme;n.length!==0&&(e.save(),n.forEach(function(o){if(!wZe(o.note))throw new Error("note is invalid for canvas implementation");r.annotations.link.outlineWidth>0&&(e.lineCap="square",e.strokeStyle=r.annotations.link.outlineColor,e.lineWidth=r.annotations.link.strokeWidth+2*r.annotations.link.outlineWidth,e.beginPath(),lL(e,o.computed.points),e.stroke(),e.lineCap="butt"),Kg(o)&&r.annotations.outline.outlineWidth>0&&(e.strokeStyle=r.annotations.outline.outlineColor,e.lineWidth=r.annotations.outline.strokeWidth+2*r.annotations.outline.outlineWidth,e.beginPath(),e.arc(o.x,o.y,o.size/2,0,2*Math.PI),e.stroke()),nP(o)&&r.annotations.symbol.outlineWidth>0&&(e.strokeStyle=r.annotations.symbol.outlineColor,e.lineWidth=2*r.annotations.symbol.outlineWidth,e.beginPath(),e.arc(o.x,o.y,o.size/2,0,2*Math.PI),e.stroke()),Yg(o)&&r.annotations.outline.outlineWidth>0&&(e.strokeStyle=r.annotations.outline.outlineColor,e.lineWidth=r.annotations.outline.strokeWidth+2*r.annotations.outline.outlineWidth,e.beginPath(),e.rect(o.x-o.width/2,o.y-o.height/2,o.width,o.height),e.stroke()),e.strokeStyle=r.annotations.link.stroke,e.lineWidth=r.annotations.link.strokeWidth,e.beginPath(),lL(e,o.computed.points),e.stroke(),Kg(o)&&(e.strokeStyle=r.annotations.outline.stroke,e.lineWidth=r.annotations.outline.strokeWidth,e.beginPath(),e.arc(o.x,o.y,o.size/2,0,2*Math.PI),e.stroke()),nP(o)&&(e.fillStyle=r.annotations.symbol.fill,e.beginPath(),e.arc(o.x,o.y,o.size/2,0,2*Math.PI),e.fill()),Yg(o)&&(e.strokeStyle=r.annotations.outline.stroke,e.lineWidth=r.annotations.outline.strokeWidth,e.beginPath(),e.rect(o.x-o.width/2,o.y-o.height/2,o.width,o.height),e.stroke()),typeof o.note=="function"?o.note(e,{datum:o.datum,x:o.computed.text[0],y:o.computed.text[1],theme:r}):(e.font=r.annotations.text.fontSize+"px "+r.annotations.text.fontFamily,e.textAlign="left",e.textBaseline="alphabetic",e.fillStyle=r.annotations.text.fill,e.strokeStyle=r.annotations.text.outlineColor,e.lineWidth=2*r.annotations.text.outlineWidth,r.annotations.text.outlineWidth>0&&(e.lineJoin="round",e.strokeText(o.note,o.computed.text[0],o.computed.text[1]),e.lineJoin="miter"),e.fillText(o.note,o.computed.text[0],o.computed.text[1]))}),e.restore())};function Fn(){return Fn=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}var uL,RZe=function(e){var t=e.bars,n=e.annotations,r=KG({data:t,annotations:n,getPosition:function(o){return{x:o.x+o.width/2,y:o.y+o.height/2}},getDimensions:function(o){var i=o.height,a=o.width;return{width:a,height:i,size:Math.max(a,i)}}});return m.jsx(m.Fragment,{children:r.map(function(o,i){return m.jsx(IZe,Fn({},o),i)})})},OZe=function(e){var t=e.width,n=e.height,r=e.legends,o=e.toggleSerie;return m.jsx(m.Fragment,{children:r.map(function(i,a){var s,l=i[0],u=i[1];return m.jsx(OT,Fn({},l,{containerWidth:t,containerHeight:n,data:(s=l.data)!=null?s:u,toggleSerie:l.toggleSerie&&l.dataFrom==="keys"?o:void 0}),a)})})},AZe=["data"],FZe=function(e){var t,n=e.bar,r=n.data,o=sh(n,AZe),i=e.style,a=i.borderColor,s=i.color,l=i.height,u=i.labelColor,c=i.labelOpacity,f=i.labelX,p=i.labelY,y=i.transform,v=i.width,b=e.borderRadius,C=e.borderWidth,x=e.label,w=e.shouldRenderLabel,S=e.isInteractive,$=e.onClick,T=e.onMouseEnter,k=e.onMouseLeave,M=e.tooltip,E=e.isFocusable,N=e.ariaLabel,I=e.ariaLabelledBy,A=e.ariaDescribedBy,z=An(),L=Hp(),O=L.showTooltipFromEvent,j=L.showTooltipAt,H=L.hideTooltip,B=g.useMemo(function(){return function(){return g.createElement(M,Fn({},o,r))}},[M,o,r]),D=g.useCallback(function(Q){$==null||$(Fn({color:o.color},r),Q)},[o,r,$]),W=g.useCallback(function(Q){return O(B(),Q)},[O,B]),U=g.useCallback(function(Q){T==null||T(r,Q),O(B(),Q)},[r,T,O,B]),Z=g.useCallback(function(Q){k==null||k(r,Q),H()},[r,H,k]),Y=g.useCallback(function(){j(B(),[o.absX+o.width/2,o.absY])},[j,B,o]),se=g.useCallback(function(){H()},[H]);return m.jsxs(Rn.g,{transform:y,children:[m.jsx(Rn.rect,{width:mu(v,function(Q){return Math.max(Q,0)}),height:mu(l,function(Q){return Math.max(Q,0)}),rx:b,ry:b,fill:(t=r.fill)!=null?t:s,strokeWidth:C,stroke:a,focusable:E,tabIndex:E?0:void 0,"aria-label":N?N(r):void 0,"aria-labelledby":I?I(r):void 0,"aria-describedby":A?A(r):void 0,onMouseEnter:S?U:void 0,onMouseMove:S?W:void 0,onMouseLeave:S?Z:void 0,onClick:S?D:void 0,onFocus:S&&E?Y:void 0,onBlur:S&&E?se:void 0}),w&&m.jsx(Rn.text,{x:f,y:p,textAnchor:"middle",dominantBaseline:"central",fillOpacity:c,style:Fn({},z.labels.text,{pointerEvents:"none",fill:u}),children:x})]})},LZe=["color","label"],jZe=function(e){var t=e.color,n=e.label,r=sh(e,LZe);return m.jsx(I5,{id:n,value:r.formattedValue,enableChip:!0,color:t})},nr={indexBy:"id",keys:["value"],groupMode:"stacked",layout:"vertical",reverse:!1,minValue:"auto",maxValue:"auto",valueScale:{type:"linear"},indexScale:{type:"band",round:!0},padding:.1,innerPadding:0,axisBottom:{},axisLeft:{},enableGridX:!1,enableGridY:!0,enableLabel:!0,label:"formattedValue",labelSkipWidth:0,labelSkipHeight:0,labelTextColor:{from:"theme",theme:"labels.text.fill"},colorBy:"id",colors:{scheme:"nivo"},borderRadius:0,borderWidth:0,borderColor:{from:"color"},isInteractive:!0,tooltip:jZe,tooltipLabel:function(e){return e.id+" - "+e.indexValue},legends:[],initialHiddenIds:[],annotations:[],markers:[]},hr=Fn({},nr,{layers:["grid","axes","bars","markers","legends","annotations"],barComponent:FZe,defs:[],fill:[],animate:!0,motionConfig:"default",role:"img",isFocusable:!1}),Lo=Fn({},nr,{layers:["grid","axes","bars","legends","annotations"],pixelRatio:typeof window<"u"&&(uL=window.devicePixelRatio)!=null?uL:1}),YG=function(e,t,n,r,o,i){return qg(r,{all:e.map(t),min:0,max:0},o,i).padding(n)},XG=function(e,t){return e.map(function(n){return Fn({},t.reduce(function(r,o){return r[o]=null,r},{}),n)})},kw=function(e){return Object.keys(e).reduce(function(t,n){return e[n]&&(t[n]=e[n]),t},{})},Pw=function(e){return[e,Number(e)]},DZe=["layout","minValue","maxValue","reverse","width","height","padding","innerPadding","valueScale","indexScale","hiddenIds"],b3=function(e,t){return e>t},QG=function(e,t){return e0?r==="vertical"?zZe.apply(void 0,W):BZe.apply(void 0,W):[]}},WZe=["data","layout","minValue","maxValue","reverse","width","height","padding","valueScale","indexScale","hiddenIds"],VZe=function e(t){var n;return t.some(Array.isArray)?e((n=[]).concat.apply(n,t)):t},UZe=function(e,t,n){var r=e.formatValue,o=e.getColor,i=e.getIndex,a=e.getTooltipLabel,s=e.innerPadding,l=e.stackedData,u=e.xScale,c=e.yScale,f=e.margin,p=[];return l.forEach(function(y){return u.domain().forEach(function(v,b){var C,x,w=y[b],S=(C=u(i(w.data)))!=null?C:0,$=((x=function(I){return c(I[n?0:1])}(w))!=null?x:0)+.5*s,T=function(I,A){var z;return((z=c(I[n?1:0]))!=null?z:0)-A}(w,$)-s,k=Pw(w.data[y.key]),M=k[0],E=k[1],N={id:y.key,value:M===null?M:E,formattedValue:r(E),hidden:!1,index:b,indexValue:v,data:kw(w.data)};p.push({key:y.key+"."+v,index:p.length,data:N,x:S,y:$,absX:f.left+S,absY:f.top+$,width:t,height:T,color:o(N),label:a(N)})})}),p},GZe=function(e,t,n){var r=e.formatValue,o=e.getColor,i=e.getIndex,a=e.getTooltipLabel,s=e.innerPadding,l=e.stackedData,u=e.xScale,c=e.yScale,f=e.margin,p=[];return l.forEach(function(y){return c.domain().forEach(function(v,b){var C,x,w=y[b],S=(C=c(i(w.data)))!=null?C:0,$=((x=function(I){return u(I[n?1:0])}(w))!=null?x:0)+.5*s,T=function(I,A){var z;return((z=u(I[n?0:1]))!=null?z:0)-A}(w,$)-s,k=Pw(w.data[y.key]),M=k[0],E=k[1],N={id:y.key,value:M===null?M:E,formattedValue:r(E),hidden:!1,index:b,indexValue:v,data:kw(w.data)};p.push({key:y.key+"."+v,index:p.length,data:N,x:$,y:S,absX:f.left+$,absY:f.top+S,width:T,height:t,color:o(N),label:a(N)})})}),p},qZe=function(e){var t,n=e.data,r=e.layout,o=e.minValue,i=e.maxValue,a=e.reverse,s=e.width,l=e.height,u=e.padding,c=u===void 0?0:u,f=e.valueScale,p=e.indexScale,y=e.hiddenIds,v=y===void 0?[]:y,b=sh(e,WZe),C=b.keys.filter(function(D){return!v.includes(D)}),x=bEe().keys(C).offset($W)(XG(n,C)),w=r==="vertical"?["y","x",s]:["x","y",l],S=w[0],$=w[1],T=w[2],k=YG(n,b.getIndex,c,p,T,$),M=Fn({max:i,min:o,reverse:a},f),E=(t=VZe(x),f.type==="log"?t.filter(function(D){return D!==0}):t),N=Math.min.apply(Math,E),I=Math.max.apply(Math,E),A=qg(M,{all:E,min:N,max:I},S==="x"?s:l,S),z=r==="vertical"?[k,A]:[A,k],L=z[0],O=z[1],j=b.innerPadding>0?b.innerPadding:0,H=k.bandwidth(),B=[Fn({},b,{innerPadding:j,stackedData:x,xScale:L,yScale:O}),H,M.reverse];return{xScale:L,yScale:O,bars:H>0?r==="vertical"?UZe.apply(void 0,B):GZe.apply(void 0,B):[]}},KZe=function(e){var t=e.bars,n=e.direction,r=e.from,o=e.groupMode,i=e.layout,a=e.legendLabel,s=e.reverse,l=JW(a??(r==="indexes"?"indexValue":"id"));return r==="indexes"?function(u,c,f){var p=wi.uniqBy(u.map(function(y){var v,b;return{id:(v=y.data.indexValue)!=null?v:"",label:f(y.data),hidden:y.data.hidden,color:(b=y.color)!=null?b:"#000"}}),function(y){return y.id});return c==="horizontal"&&p.reverse(),p}(t,i,l):function(u,c,f,p,y,v){var b=wi.uniqBy(u.map(function(C){var x;return{id:C.data.id,label:v(C.data),hidden:C.data.hidden,color:(x=C.color)!=null?x:"#000"}}),function(C){return C.id});return(c==="vertical"&&p==="stacked"&&f==="column"&&y!==!0||c==="horizontal"&&p==="stacked"&&y===!0)&&b.reverse(),b}(t,i,n,o,s,l)},JG=function(e){var t=e.indexBy,n=t===void 0?nr.indexBy:t,r=e.keys,o=r===void 0?nr.keys:r,i=e.label,a=i===void 0?nr.label:i,s=e.tooltipLabel,l=s===void 0?nr.tooltipLabel:s,u=e.valueFormat,c=e.colors,f=c===void 0?nr.colors:c,p=e.colorBy,y=p===void 0?nr.colorBy:p,v=e.borderColor,b=v===void 0?nr.borderColor:v,C=e.labelTextColor,x=C===void 0?nr.labelTextColor:C,w=e.groupMode,S=w===void 0?nr.groupMode:w,$=e.layout,T=$===void 0?nr.layout:$,k=e.reverse,M=k===void 0?nr.reverse:k,E=e.data,N=e.minValue,I=N===void 0?nr.minValue:N,A=e.maxValue,z=A===void 0?nr.maxValue:A,L=e.margin,O=e.width,j=e.height,H=e.padding,B=H===void 0?nr.padding:H,D=e.innerPadding,W=D===void 0?nr.innerPadding:D,U=e.valueScale,Z=U===void 0?nr.valueScale:U,Y=e.indexScale,se=Y===void 0?nr.indexScale:Y,Q=e.initialHiddenIds,ne=Q===void 0?nr.initialHiddenIds:Q,re=e.enableLabel,ge=re===void 0?nr.enableLabel:re,xe=e.labelSkipWidth,fe=xe===void 0?nr.labelSkipWidth:xe,Se=e.labelSkipHeight,de=Se===void 0?nr.labelSkipHeight:Se,ie=e.legends,Pe=ie===void 0?nr.legends:ie,$e=e.legendLabel,me=g.useState(ne??[]),ue=me[0],ce=me[1],Te=g.useCallback(function(X){ce(function(oe){return oe.indexOf(X)>-1?oe.filter(function(Ee){return Ee!==X}):[].concat(oe,[X])})},[]),Le=_c(n),Re=_c(a),Oe=_c(l),K=Lg(u),ee=An(),pe=ET(f,y),ye=ys(b,ee),je=ys(x,ee),Ae=(S==="grouped"?HZe:qZe)({layout:T,reverse:M,data:E,getIndex:Le,keys:o,minValue:I,maxValue:z,width:O,height:j,getColor:pe,padding:B,innerPadding:W,valueScale:Z,indexScale:se,hiddenIds:ue,formatValue:K,getTooltipLabel:Oe,margin:L}),Ie=Ae.bars,Ce=Ae.xScale,Ze=Ae.yScale,Ct=g.useMemo(function(){return Ie.filter(function(X){return X.data.value!==null}).map(function(X,oe){return Fn({},X,{index:oe})})},[Ie]),et=g.useCallback(function(X){var oe=X.width,Ee=X.height;return!!ge&&!(fe>0&&oe0&&Ee0&&(ut.strokeStyle=Fe,ut.lineWidth=Tt),ut.beginPath(),rt>0){var gt=Math.min(rt,tt);ut.moveTo(_e+gt,we),ut.lineTo(_e+Gt-gt,we),ut.quadraticCurveTo(_e+Gt,we,_e+Gt,we+gt),ut.lineTo(_e+Gt,we+tt-gt),ut.quadraticCurveTo(_e+Gt,we+tt,_e+Gt-gt,we+tt),ut.lineTo(_e+gt,we+tt),ut.quadraticCurveTo(_e,we+tt,_e,we+tt-gt),ut.lineTo(_e,we+gt),ut.quadraticCurveTo(_e,we,_e+gt,we),ut.closePath()}else ut.rect(_e,we,Gt,tt);ut.fill(),Tt>0&&ut.stroke(),ct&&(ut.textBaseline="middle",ut.textAlign="center",ut.fillStyle=kn,ut.fillText(en,_e+Gt/2,we+tt/2))}:O,H=e.enableLabel,B=H===void 0?Lo.enableLabel:H,D=e.label,W=e.labelSkipWidth,U=W===void 0?Lo.labelSkipWidth:W,Z=e.labelSkipHeight,Y=Z===void 0?Lo.labelSkipHeight:Z,se=e.labelTextColor,Q=e.colorBy,ne=e.colors,re=e.borderRadius,ge=re===void 0?Lo.borderRadius:re,xe=e.borderWidth,fe=xe===void 0?Lo.borderWidth:xe,Se=e.borderColor,de=e.annotations,ie=de===void 0?Lo.annotations:de,Pe=e.legendLabel,$e=e.tooltipLabel,me=e.valueFormat,ue=e.isInteractive,ce=ue===void 0?Lo.isInteractive:ue,Te=e.tooltip,Le=Te===void 0?Lo.tooltip:Te,Re=e.onClick,Oe=e.onMouseEnter,K=e.onMouseLeave,ee=e.legends,pe=e.pixelRatio,ye=pe===void 0?Lo.pixelRatio:pe,je=e.canvasRef,Ae=g.useRef(null),Ie=An(),Ce=$0(i,a,o),Ze=Ce.margin,Ct=Ce.innerWidth,et=Ce.innerHeight,Be=Ce.outerWidth,te=Ce.outerHeight,X=JG({indexBy:n,label:D,tooltipLabel:$e,valueFormat:me,colors:ne,colorBy:Q,borderColor:Se,labelTextColor:se,groupMode:s,layout:l,reverse:u,data:t,keys:r,minValue:c,maxValue:f,margin:Ze,width:Ct,height:et,padding:v,innerPadding:b,valueScale:p,indexScale:y,enableLabel:B,labelSkipWidth:U,labelSkipHeight:Y,legends:ee,legendLabel:Pe}),oe=X.bars,Ee=X.barsWithValue,Ue=X.xScale,Ye=X.yScale,at=X.getLabel,Je=X.getTooltipLabel,nt=X.getBorderColor,_t=X.getLabelColor,ht=X.shouldRenderBarLabel,lt=X.legendsWithData,Ot=Hp(),Dt=Ot.showTooltipFromEvent,fn=Ot.hideTooltip,hn=$Ze({annotations:KG({data:oe,annotations:ie,getPosition:function(ut){return{x:ut.x,y:ut.y}},getDimensions:function(ut){var mt=ut.width,At=ut.height;return{width:mt,height:At,size:Math.max(mt,At)}}})}),Pt=g.useMemo(function(){return{borderRadius:ge,borderWidth:fe,isInteractive:ce,isFocusable:!1,labelSkipWidth:U,labelSkipHeight:Y,margin:Ze,width:i,height:a,innerWidth:Ct,innerHeight:et,bars:oe,legendData:lt,enableLabel:B,xScale:Ue,yScale:Ye,tooltip:Le,getTooltipLabel:Je,onClick:Re,onMouseEnter:Oe,onMouseLeave:K}},[ge,fe,ce,U,Y,Ze,i,a,Ct,et,oe,lt,B,Ue,Ye,Le,Je,Re,Oe,K]);g.useEffect(function(){var ut,mt=(ut=Ae.current)==null?void 0:ut.getContext("2d");Ae.current&&mt&&(Ae.current.width=Be*ye,Ae.current.height=te*ye,mt.scale(ye,ye),mt.fillStyle=Ie.background,mt.fillRect(0,0,Be,te),mt.translate(Ze.left,Ze.top),L.forEach(function(At){At==="grid"?typeof Ie.grid.line.strokeWidth=="number"&&Ie.grid.line.strokeWidth>0&&(mt.lineWidth=Ie.grid.line.strokeWidth,mt.strokeStyle=Ie.grid.line.stroke,M&&Sb(mt,{width:i,height:a,scale:Ue,axis:"x",values:I}),N&&Sb(mt,{width:i,height:a,scale:Ye,axis:"y",values:A})):At==="axes"?PG(mt,{xScale:Ue,yScale:Ye,width:Ct,height:et,top:C,right:x,bottom:S,left:T,theme:Ie}):At==="bars"?Ee.forEach(function(Ft){j(mt,{bar:Ft,borderColor:nt(Ft),borderRadius:ge,borderWidth:fe,label:at(Ft.data),labelColor:_t(Ft),shouldRenderLabel:ht(Ft)})}):At==="legends"?lt.forEach(function(Ft){var tt=Ft[0],Gt=Ft[1];fV(mt,Fn({},tt,{data:Gt,containerWidth:Ct,containerHeight:et,theme:Ie}))}):At==="annotations"?EZe(mt,{annotations:hn,theme:Ie}):typeof At=="function"&&At(mt,Pt)}),mt.save())},[S,T,x,C,Ee,ge,fe,hn,M,N,nt,at,_t,I,A,s,a,et,Ct,Pt,L,l,lt,Ze.left,Ze.top,te,Be,ye,j,Ue,Ye,u,ht,Ie,i]);var zt=g.useCallback(function(ut){if(oe&&Ae.current){var mt=Fm(Ae.current,ut),At=mt[0],Ft=mt[1],tt=v$(oe,Ze,At,Ft);tt!==void 0?(Dt(g.createElement(Le,Fn({},tt.data,{color:tt.color,label:tt.label,value:Number(tt.data.value)})),ut),ut.type==="mouseenter"&&(Oe==null||Oe(tt.data,ut))):fn()}},[fn,Ze,Oe,oe,Dt,Le]),un=g.useCallback(function(ut){if(oe&&Ae.current){fn();var mt=Fm(Ae.current,ut),At=mt[0],Ft=mt[1],tt=v$(oe,Ze,At,Ft);tt&&(K==null||K(tt.data,ut))}},[fn,Ze,K,oe]),cn=g.useCallback(function(ut){if(oe&&Ae.current){var mt=Fm(Ae.current,ut),At=mt[0],Ft=mt[1],tt=v$(oe,Ze,At,Ft);tt!==void 0&&(Re==null||Re(Fn({},tt.data,{color:tt.color}),ut))}},[Ze,Re,oe]);return m.jsx("canvas",{ref:function(ut){Ae.current=ut,je&&"current"in je&&(je.current=ut)},width:Be*ye,height:te*ye,style:{width:Be,height:te,cursor:ce?"auto":"normal"},onMouseEnter:ce?zt:void 0,onMouseMove:ce?zt:void 0,onMouseLeave:ce?un:void 0,onClick:ce?cn:void 0})},eJe=g.forwardRef(function(e,t){var n=e.isInteractive,r=e.renderWrapper,o=e.theme,i=sh(e,ZZe);return m.jsx(_0,{isInteractive:n,renderWrapper:r,theme:o,animate:!1,children:m.jsx(JZe,Fn({},i,{canvasRef:t}))})}),lh=function(e){return m.jsx(nh,{children:function(t){var n=t.width,r=t.height;return m.jsx(QZe,Fn({width:n,height:r},e))}})};g.forwardRef(function(e,t){return m.jsx(nh,{children:function(n){var r=n.width,o=n.height;return m.jsx(eJe,Fn({width:r,height:o},e,{ref:t}))}})});const tJe=({data:e})=>{const t=Wt(),n=_n(t.palette.mode);return m.jsx(lh,{data:e,keys:["rent","utilities","internet","phone","other"],indexBy:"day",margin:{top:0,right:20,bottom:40,left:50},padding:.3,groupMode:"stacked",valueScale:{type:"linear"},indexScale:{type:"band",round:!0},valueFormat:" =-$0,~",colors:{scheme:"purple_orange"},defs:[{id:"dots",background:"inherit",color:"#38bcb2",size:4,padding:1,stagger:!0},{id:"lines",background:"inherit",color:"#eed312",rotation:-45,lineWidth:6,spacing:10}],borderColor:{from:"color",modifiers:[["darker",1.6]]},axisTop:null,axisRight:null,axisBottom:{tickSize:5,tickPadding:5,tickRotation:0,legend:"Weeks",legendPosition:"middle",legendOffset:32},axisLeft:{tickSize:5,tickPadding:5,tickRotation:0,legend:"Amount spent",legendPosition:"middle",legendOffset:-40},theme:{axis:{legend:{text:{fill:`${n.primary[100]}`}},ticks:{text:{fontSize:11,fill:`${n.primary[100]}`,outlineWidth:0,outlineColor:"transparent"}}},tooltip:{container:{background:`${n.primary[500]}`,color:`${n.primary[100]}`,position:"fixed",maxWidth:"10rem"}}},labelSkipWidth:12,labelSkipHeight:12,labelTextColor:{from:"color",modifiers:[["darker",1.6]]},legends:[],role:"application",ariaLabel:"Nivo bar chart demo",barAriaLabel:r=>r.id+": "+r.formattedValue+" in country: "+r.indexValue})},eq=()=>m.jsx(gr,{title:"Spending Breakdown",content:m.jsx(Mi,{style:{height:"400px",padding:0},className:"Mui-Chart",children:m.jsx(tJe,{data:vYe})}),height:500}),nJe=({data:e})=>{const t=Wt(),n=_n(t.palette.mode);return m.jsx(lh,{data:e,keys:["budget","actual"],indexBy:"category",margin:{top:0,right:20,bottom:40,left:50},padding:.3,groupMode:"grouped",layout:"vertical",valueScale:{type:"linear"},indexScale:{type:"band",round:!0},valueFormat:" =-$0,~",colors:[`${n.blueAccent[300]}`,`${n.blueAccent[500]}`],defs:[{id:"dots",background:"inherit",color:"#38bcb2",size:4,padding:1,stagger:!0},{id:"lines",background:"inherit",color:"#eed312",rotation:-45,lineWidth:6,spacing:10}],fill:[{match:{id:"fries"},id:"dots"},{match:{id:"sandwich"},id:"lines"}],borderColor:{from:"color",modifiers:[["darker",1.6]]},axisTop:null,axisRight:null,axisBottom:{tickSize:5,tickPadding:5,tickRotation:0,legend:"country",legendPosition:"middle",legendOffset:32},axisLeft:{tickSize:5,tickPadding:5,tickRotation:0,legend:"food",legendPosition:"middle",legendOffset:-40},theme:{axis:{legend:{text:{fill:`${n.primary[100]}`}},ticks:{text:{fontSize:11,fill:`${n.primary[100]}`,outlineWidth:0,outlineColor:"transparent"}}},tooltip:{container:{background:`${n.primary[500]}`,color:`${n.primary[100]}`,position:"fixed",maxWidth:"15rem"}}},labelSkipWidth:12,labelSkipHeight:12,labelTextColor:{from:"color",modifiers:[["darker",1.6]]},legends:[],role:"application",ariaLabel:"Nivo bar chart demo",barAriaLabel:r=>r.id+": "+r.formattedValue+" in country: "+r.indexValue})},rJe=()=>m.jsx(gr,{title:"Budget Comparison",content:m.jsx(Mi,{style:{height:"400px",padding:0},className:"Mui-Chart",children:m.jsx(nJe,{data:yYe})}),height:500}),oJe=({data:e})=>{const t=Wt(),n=_n(t.palette.mode);return m.jsx(O0,{data:e,margin:{top:40,right:10,bottom:100,left:50},xScale:{type:"point"},yScale:{type:"linear",min:0,max:"auto",stacked:!1,reverse:!1},yFormat:" >-.2f",curve:"monotoneX",axisTop:null,axisRight:null,axisBottom:{tickSize:5,tickPadding:5,tickRotation:0,legend:"Months",legendOffset:36,legendPosition:"middle"},axisLeft:{tickSize:5,tickPadding:5,tickRotation:-40,legend:"Amount spent",legendOffset:-40,legendPosition:"middle"},theme:{dots:{text:{fill:`${n.primary[100]}`}},axis:{legend:{text:{fill:`${n.primary[100]}`}},ticks:{text:{fontSize:11,fill:`${n.primary[100]}`,outlineWidth:0,outlineColor:"transparent"}}},tooltip:{container:{background:`${n.primary[500]}`,color:`${n.primary[100]}`,position:"fixed",maxWidth:"10rem"}}},enableGridX:!1,enableGridY:!1,enableArea:!0,colors:[`${n.redAccent[600]}`,`${n.greenAccent[600]}`],pointSize:10,pointColor:{theme:"background"},pointBorderWidth:2,pointBorderColor:{from:"serieColor"},pointLabelYOffset:-12,useMesh:!0,legends:[{anchor:"bottom-left",direction:"row",justify:!1,translateX:0,translateY:80,itemWidth:94,itemHeight:15,itemsSpacing:6,symbolSize:19,symbolShape:"circle",itemDirection:"left-to-right",itemTextColor:`${n.primary[100]}`,effects:[{on:"hover",style:{itemBackground:"rgba(0, 0, 0, .03)",itemOpacity:1}}]}]})};function tq(){return m.jsx(gr,{title:"Financial Overview",content:m.jsx(Mi,{style:{height:"400px",padding:0},className:"Mui-Chart",children:m.jsx(oJe,{data:gYe})}),height:500})}const iJe=()=>m.jsx(m.Fragment,{children:m.jsxs(Ve,{sx:{padding:2},children:[m.jsxs(Ve,{sx:{paddingBlock:2},children:[m.jsx(Ge,{variant:"h1",children:"Reports & Analysis"}),m.jsx(Ge,{variant:"h6",children:"Gain insights into your financial health"})]}),m.jsxs(Lt,{container:!0,spacing:2,children:[m.jsx(Lt,{item:!0,xs:12,md:6,children:m.jsx(bYe,{})}),m.jsx(Lt,{item:!0,xs:12,md:6,children:m.jsx(tq,{})}),m.jsx(Lt,{item:!0,xs:12,md:6,children:m.jsx(eq,{})}),m.jsx(Lt,{item:!0,xs:12,md:6,children:m.jsx(rJe,{})})]})]})}),aJe=[{field:"id",headerName:"ID",flex:1,minWidth:80,maxWidth:80},{field:"creditor",headerName:"Creditor",flex:1,minWidth:160,maxWidth:160},{field:"debtType",headerName:"Debt Type",flex:1,minWidth:120,maxWidth:120},{field:"balance",headerName:"Balance",flex:1,minWidth:110,maxWidth:110},{field:"interestRate",headerName:"Interest",flex:1,minWidth:110,maxWidth:110},{field:"minimumPayment",headerName:"Min. Payment",flex:1,minWidth:140,maxWidth:140},{field:"dueDate",headerName:"Due Date",flex:1,minWidth:120,maxWidth:120},{field:"status",headerName:"Status",flex:1,minWidth:100,maxWidth:100},{field:"remainingTerm",headerName:"Remaining Term",flex:1,minWidth:160,maxWidth:160},{field:"frequency",headerName:"Frequency",sortable:!0,flex:1,minWidth:120,maxWidth:120},{field:"paymentMethod",headerName:"Payment Method",sortable:!0,flex:1,minWidth:160,maxWidth:130},{field:"paymentProgress",headerName:"Progress",flex:1,minWidth:120,maxWidth:120}],sJe=[{id:1,creditor:"ABC Bank",debtType:"Credit Card",balance:"1000",interestRate:"18.5",minimumPayment:"50",dueDate:"2023.09.30",status:"Active",remainingTerm:"3 years",frequency:"Monthly",paymentMethod:"Direct Debit",paymentProgress:"45%"},{id:2,creditor:"XYZ Loan",debtType:"Personal Loan",balance:"5000",interestRate:"12.5",minimumPayment:"200",dueDate:"2024.05.15",status:"Active",remainingTerm:"4 years",frequency:"Monthly",paymentMethod:"Check Payment",paymentProgress:"20%"},{id:3,creditor:"DEF Bank",debtType:"Mortgage",balance:"150000",interestRate:"4.2",minimumPayment:"1000",dueDate:"2030.12.01",status:"Active",remainingTerm:"10 years",frequency:"Monthly",paymentMethod:"Bank Transfer",paymentProgress:"10%"},{id:4,creditor:"GHI Bank",debtType:"Student Loan",balance:"25000",interestRate:"6.8",minimumPayment:"150",dueDate:"2032.02.13",status:"Active",remainingTerm:"12 years",frequency:"Monthly",paymentMethod:"Direct Debit",paymentProgress:"30%"},{id:5,creditor:"JKL Group",debtType:"Medical Bill",balance:"800",interestRate:"0",minimumPayment:"50",dueDate:"2022.10.05",status:"Active",remainingTerm:"2 years",frequency:"Monthly",paymentMethod:"PayPal",paymentProgress:"80%"},{id:6,creditor:"MNO Credit Union",debtType:"Car Loan",balance:"12000",interestRate:"8.9",minimumPayment:"350",dueDate:"2025.07.21",status:"Active",remainingTerm:"5 years",frequency:"Monthly",paymentMethod:"Credit payment",paymentProgress:"60%"},{id:7,creditor:"PQR Bank",debtType:"Credit Card",balance:"3000",interestRate:"21.9",minimumPayment:"100",dueDate:"2023.11.12",status:"Active",remainingTerm:"3 years",frequency:"Monthly",paymentMethod:"Bank Transfer",paymentProgress:"15%"},{id:8,creditor:"STU Loan Services",debtType:"Personal Loan",balance:"6000",interestRate:"15.2",minimumPayment:"250",dueDate:"2024.09.09",status:"Active",remainingTerm:"4 years",frequency:"Monthly",paymentMethod:"PayPal",paymentProgress:"50%"}],lJe=[{field:"id",headerName:"ID",flex:1,minWidth:80,maxWidth:80},{field:"date",headerName:"Date",flex:1,minWidth:120,maxWidth:120},{field:"description",headerName:"Description",flex:1,minWidth:150,maxWidth:150},{field:"type",headerName:"Type",flex:1,minWidth:120,maxWidth:120},{field:"category",headerName:"Category",flex:1,minWidth:130,maxWidth:160},{field:"amount",headerName:"Amount",flex:1,minWidth:110,maxWidth:110},{field:"paymentMethod",headerName:"Payment Method",sortable:!0,flex:1,minWidth:160,maxWidth:130},{field:"status",headerName:"Status",flex:1,minWidth:100,maxWidth:100},{field:"reference",headerName:"Reference Number",flex:1,minWidth:170,maxWidth:170}],uJe=[{id:1,date:"2022.01.05",description:"Rent Payment",type:"Expense",category:"Housing",amount:"$1000",paymentMethod:"Online Transfer",status:"Paid",reference:"ACB123456789"},{id:2,date:"2022.01.08",description:"Grocery Shopping",type:"Expense",category:"Groceries",amount:"$150",paymentMethod:"Credit Card",status:"Paid",reference:"XYZ987654321"},{id:3,date:"2022.01.12",description:"Car Insurance",type:"Bill Payment",category:"Insurance",amount:"$250",paymentMethod:"Online Transfer",status:"Paid",reference:"DEF456789012"},{id:3,date:"2022.01.12",description:"Car Insurance",type:"Bill Payment",category:"Insurance",amount:"$250",paymentMethod:"Online Transfer",status:"Paid",reference:"DEF456789012"},{id:4,date:"2022.01.15",description:"Salary Deposit",type:"Income",category:"Employment",amount:"$3000",paymentMethod:"Direct Deposit",status:"Paid",reference:"PQR234567890"},{id:5,date:"2022.02.02",description:"Restaurant Dining",type:"Expense",category:"Dining Out",amount:"$50",paymentMethod:"Credit Card",status:"Paid",reference:"ZYX765432109"},{id:6,date:"2022.02.05",description:"Electricity Bill",type:"Bill Payment",category:"Utilities",amount:"$80",paymentMethod:"Online Transfer",status:"Paid",reference:"CAB987654321"},{id:7,date:"2022.02.12",description:"Health Insurance",type:"Bill Payment",category:"Insurance",amount:"$200",paymentMethod:"Online Transfer",status:"Paid",reference:"FED567890123"},{id:8,date:"2022.02.18",description:"Petrol Purchase",type:"Expense",category:"Transportation",amount:"$40",paymentMethod:"Cash",status:"Paid",reference:"WXY876543210"}],cJe=[{year:2018,income:74,debt:97},{year:2019,income:194,debt:4},{year:2020,income:33,debt:140},{year:2021,income:46,debt:98},{year:2022,income:182,debt:89},{year:2023,income:196,debt:12}],dJe=[{category:"Housing",value:30},{category:"Credit Card",value:20},{category:"Student Loan",value:10},{category:"Car Loan",value:15}],fJe=[...aJe,{field:"options",headerName:"",sortable:!1,flex:1,minWidth:90,maxWidth:90,renderCell:()=>m.jsx(Ve,{children:m.jsx(Ts,{})})}];function pJe(){return m.jsx(Ve,{style:{height:400,width:"100%"},children:m.jsx(Ms,{rows:sJe,columns:fJe,disableColumnFilter:!0,disableColumnSelector:!0,disableDensitySelector:!0,slots:{toolbar:Is},slotProps:{filterPanel:{sx:{maxWidth:"100vw"}},toolbar:{showQuickFilter:!0}},editMode:"row",initialState:{columns:{columnVisibilityModel:{remainingTerm:!1}},filter:{filterModel:{items:[],quickFilterExcludeHiddenColumns:!0}},pagination:{paginationModel:{page:0,pageSize:5}}},pageSizeOptions:[5,10]})})}function nq(){return m.jsx(gr,{title:"Debt Overview",content:m.jsx(pJe,{}),height:500})}const hJe=[...lJe,{field:"options",headerName:"",sortable:!1,flex:1,minWidth:90,maxWidth:90,renderCell:()=>m.jsx(Ve,{children:m.jsx(Ts,{})})}];function mJe(){return m.jsx(Ve,{style:{height:400,width:"100%"},children:m.jsx(Ms,{rows:uJe,columns:hJe,disableColumnFilter:!0,disableColumnSelector:!0,disableDensitySelector:!0,slots:{toolbar:Is},slotProps:{filterPanel:{sx:{maxWidth:"100vw"}},toolbar:{showQuickFilter:!0}},editMode:"row",initialState:{columns:{columnVisibilityModel:{status:!1,category:!1,paymentMethod:!1,reference:!1}},filter:{filterModel:{items:[],quickFilterExcludeHiddenColumns:!0}},pagination:{paginationModel:{page:0,pageSize:5}}},pageSizeOptions:[5,10]})})}function gJe(){return m.jsx(gr,{title:"Debt Payment History",content:m.jsx(mJe,{}),height:500})}const vJe=({data:e})=>{const t=Wt(),n=_n(t.palette.mode);return m.jsx(lh,{data:e,keys:["income","debt"],indexBy:"year",margin:{top:50,right:130,bottom:100,left:60},padding:.3,groupMode:"grouped",layout:"horizontal",valueScale:{type:"linear"},indexScale:{type:"band",round:!0},valueFormat:r=>r+"%",colors:[`${n.blueAccent[300]}`,`${n.blueAccent[500]}`],borderColor:{from:"color",modifiers:[["darker",1.6]]},axisTop:null,axisRight:null,axisBottom:{tickSize:5,tickPadding:5,tickRotation:0,legend:"Ratio (%)",legendPosition:"middle",legendOffset:32},axisLeft:{tickSize:5,tickPadding:5,tickRotation:0,legend:"Year",legendPosition:"middle",legendOffset:-40},theme:{axis:{legend:{text:{fill:`${n.primary[100]}`}},ticks:{text:{fontSize:11,fill:`${n.primary[100]}`,outlineWidth:0,outlineColor:"transparent"}}},tooltip:{container:{background:`${n.primary[500]}`,color:`${n.primary[100]}`,position:"fixed",maxWidth:"10rem"},basic:{maxWidth:"10rem"},table:{maxWidth:"10rem"}}},labelSkipWidth:12,labelSkipHeight:12,labelTextColor:{from:"color",modifiers:[["darker",1.6]]},legends:[{dataFrom:"keys",anchor:"bottom-left",direction:"row",justify:!1,translateX:0,translateY:80,itemsSpacing:2,itemWidth:100,itemHeight:20,itemDirection:"left-to-right",itemTextColor:`${n.primary[100]}`,itemOpacity:.85,symbolSize:20,effects:[{on:"hover",style:{itemOpacity:1}}]}],role:"application",ariaLabel:"Nivo bar chart demo",barAriaLabel:r=>r.id+": "+r.formattedValue+" in country: "+r.indexValue})};function yJe(){return m.jsx(gr,{title:"Debt-to-Income Ratio",content:m.jsx(Mi,{style:{height:"400px",padding:0},className:"Mui-Chart",children:m.jsx(vJe,{data:cJe})}),height:500})}const bJe=({data:e})=>{const t=Wt(),n=_n(t.palette.mode);return m.jsx(lh,{data:e,keys:["value"],indexBy:"category",margin:{top:40,right:10,bottom:40,left:80},padding:.3,groupMode:"stacked",layout:"horizontal",valueScale:{type:"linear"},indexScale:{type:"band",round:!0},valueFormat:r=>r+"%",colors:`${n.blueAccent[400]}`,borderColor:{from:"color",modifiers:[["darker",1.6]]},axisTop:null,axisRight:null,axisBottom:{tickSize:5,tickPadding:5,tickRotation:0,legend:"Ratio (%)",legendPosition:"middle",legendOffset:32},axisLeft:{tickSize:5,tickPadding:5,tickRotation:0,legend:"Category",legendPosition:"middle",legendOffset:-40},theme:{axis:{legend:{text:{fill:`${n.primary[100]}`}},ticks:{text:{fontSize:11,fill:`${n.primary[100]}`,outlineWidth:0,outlineColor:"transparent"}}},tooltip:{container:{background:`${n.primary[500]}`,color:`${n.primary[100]}`,position:"fixed",maxWidth:"15rem"},basic:{maxWidth:"15rem"},table:{maxWidth:"15rem"}}},labelSkipWidth:12,labelSkipHeight:12,labelTextColor:{from:"color",modifiers:[["darker",1.6]]},legends:[],role:"application",ariaLabel:"Nivo bar chart demo",barAriaLabel:r=>r.id+": "+r.formattedValue+" in country: "+r.indexValue})};function xJe(){return m.jsx(gr,{title:"Debt Burden Ratio",content:m.jsx(Mi,{style:{height:"400px",padding:0},className:"Mui-Chart",children:m.jsx(bJe,{data:dJe})}),height:500})}function wJe(){return m.jsx(m.Fragment,{children:m.jsxs(Ve,{sx:{padding:2},children:[m.jsxs(Ve,{sx:{paddingBlock:2,width:"100%"},children:[m.jsx(Ge,{variant:"h1",children:"Debt Management"}),m.jsx(Ge,{variant:"h6",children:"Efficiently manage and conquer your debts over time"})]}),m.jsxs(Lt,{container:!0,spacing:2,sx:{width:"100%"},children:[m.jsx(Lt,{item:!0,xs:12,md:6,lg:8,children:m.jsx(nq,{})}),m.jsx(Lt,{item:!0,xs:12,md:6,lg:4,children:m.jsx(gJe,{})}),m.jsx(Lt,{item:!0,xs:12,md:6,lg:6,children:m.jsx(yJe,{})}),m.jsx(Lt,{item:!0,xs:12,md:6,lg:6,children:m.jsx(xJe,{})})]})]})})}const CJe=()=>{const e=Wt(),t=_n(e.palette.mode);return m.jsx(m.Fragment,{children:m.jsxs(Ve,{sx:{alignItems:"center",display:"flex",gap:"clamp(0.5em, 5%, 3em)",paddingBlock:"clamp(0.5em, 5%, 2em)"},children:[m.jsx(Ve,{children:m.jsx(dg,{alt:"User Picture",src:$z,sx:{height:90,width:90}})}),m.jsxs(Ve,{sx:{display:"flex",flexDirection:"column",gap:.5,justifyContent:"center"},children:[m.jsx(Ge,{variant:"h3",children:"John Smith"}),m.jsx(Ge,{variant:"h5",color:t.grey[100],children:"Lawyer"}),m.jsx(Ge,{variant:"h6",color:t.grey[100],children:"New York, USA"})]}),m.jsx(Ve,{sx:{ml:"auto"},children:m.jsx(Oa,{color:"success",endIcon:m.jsx(h0,{}),variant:"outlined",children:m.jsx(Ge,{variant:"h6",children:"Edit"})})})]})})},SJe=()=>{const e=Wt(),t=_n(e.palette.mode);return m.jsx(m.Fragment,{children:m.jsxs(Ve,{className:"settingWrapper",children:[m.jsx(Ve,{children:m.jsx(Ge,{variant:"h5",children:"Address"})}),m.jsxs(Ve,{className:"settingLayout",children:[m.jsxs(Ve,{className:"settingItem",children:[m.jsx(Ge,{color:t.grey[300],variant:"h6",children:"Country"}),m.jsx(Ge,{variant:"h5",children:"USA"})]}),m.jsxs(Ve,{className:"settingItem",children:[m.jsx(Ge,{color:t.grey[300],variant:"h6",children:"Postal Code"}),m.jsx(Ge,{variant:"h5",children:"ERT 2345"})]}),m.jsxs(Ve,{className:"settingItem",children:[m.jsx(Ge,{color:t.grey[300],variant:"h6",children:"City/State"}),m.jsx(Ge,{variant:"h5",children:"New York"})]}),m.jsxs(Ve,{className:"settingItem",children:[m.jsx(Ge,{color:t.grey[300],variant:"h6",children:"Tax ID"}),m.jsx(Ge,{variant:"h5",children:"S651A6S6DADS"})]}),m.jsx(Ve,{className:"settingItem btn",children:m.jsx(Oa,{color:"success",endIcon:m.jsx(h0,{}),variant:"outlined",children:m.jsx(Ge,{variant:"h6",children:"Edit"})})})]})]})})},$Je=()=>{const e=Wt(),t=_n(e.palette.mode);return m.jsx(m.Fragment,{children:m.jsxs(Ve,{className:"settingWrapper",children:[m.jsx(Ve,{children:m.jsx(Ge,{variant:"h5",children:"Personal Information"})}),m.jsxs(Ve,{className:"settingLayout threeRows",children:[m.jsxs(Ve,{className:"settingItem",children:[m.jsx(Ge,{color:t.grey[300],variant:"h6",children:"First Name"}),m.jsx(Ge,{variant:"h5",children:"John"})]}),m.jsxs(Ve,{className:"settingItem",children:[m.jsx(Ge,{color:t.grey[300],variant:"h6",children:"Email Address"}),m.jsx(Ge,{variant:"h5",children:"johnsmith@gmail.com"})]}),m.jsxs(Ve,{className:"settingItem",children:[m.jsx(Ge,{color:t.grey[300],variant:"h6",children:"Bio"}),m.jsx(Ge,{variant:"h5",children:"Lawyer"})]}),m.jsxs(Ve,{className:"settingItem",children:[m.jsx(Ge,{color:t.grey[300],variant:"h6",children:"Last Name"}),m.jsx(Ge,{variant:"h5",children:"Smith"})]}),m.jsxs(Ve,{className:"settingItem",children:[m.jsx(Ge,{color:t.grey[300],variant:"h6",children:"Birthday"}),m.jsx(Ge,{variant:"h5",children:"03.04.1985"})]}),m.jsxs(Ve,{className:"settingItem",children:[m.jsx(Ge,{color:t.grey[300],variant:"h6",children:"Phone Number"}),m.jsx(Ge,{variant:"h5",children:"+808 54 99 65 25"})]}),m.jsx(Ve,{className:"settingItem btn",children:m.jsx(Oa,{color:"success",endIcon:m.jsx(h0,{}),variant:"outlined",children:m.jsx(Ge,{variant:"h6",children:"Edit"})})})]})]})})},_Je=()=>{const e=Wt(),t=_n(e.palette.mode);return m.jsx(m.Fragment,{children:m.jsxs(Ve,{className:"settingWrapper",children:[m.jsx(Ve,{children:m.jsx(Ge,{variant:"h5",children:"Account Preferences"})}),m.jsxs(Ve,{className:"settingLayout",children:[m.jsxs(Ve,{className:"settingItem",children:[m.jsx(Ge,{color:t.grey[300],variant:"h6",children:"Language"}),m.jsx(Ge,{variant:"h5",children:"English"})]}),m.jsxs(Ve,{className:"settingItem",children:[m.jsx(Ge,{color:t.grey[300],variant:"h6",children:"Currency"}),m.jsx(Ge,{variant:"h5",children:"USD"})]}),m.jsxs(Ve,{className:"settingItem",children:[m.jsx(Ge,{color:t.grey[300],variant:"h6",children:"Date and Time Format"}),m.jsx(Ge,{variant:"h5",children:"D/M/Y"})]}),m.jsxs(Ve,{className:"settingItem",children:[m.jsx(Ge,{color:t.grey[300],variant:"h6",children:"Timezone"}),m.jsx(Ge,{variant:"h5",children:"UTC+0"})]}),m.jsx(Ve,{className:"settingItem btn",children:m.jsx(Oa,{color:"success",endIcon:m.jsx(h0,{}),variant:"outlined",children:m.jsx(Ge,{variant:"h6",children:"Edit"})})})]})]})})},kJe=()=>m.jsx(m.Fragment,{children:m.jsxs(Ve,{className:"settingWrapper",children:[m.jsx(Ve,{children:m.jsx(Ge,{variant:"h5",children:"Two-factor Authentication"})}),m.jsxs(Lhe,{children:[m.jsx(L_,{control:m.jsx(F_,{color:"success"}),labelPlacement:"end",label:m.jsx(Ge,{variant:"h5",children:"SMS Authentication: This option allows you to receive a verification code via SMS to your registered phone number. You can enter this code to complete the authentication process."}),sx:{m:0,marginBlock:1}}),m.jsx(L_,{control:m.jsx(F_,{color:"success"}),labelPlacement:"end",label:m.jsx(Ge,{variant:"h5",children:"Email Authentication: You can receive a verification code via email. They will need to enter this code to authenticate themselves successfully."}),sx:{m:0,marginBlock:1}})]})]})}),PJe=()=>m.jsx(m.Fragment,{children:m.jsxs(Ve,{className:"settingWrapper",children:[m.jsx(Ve,{children:m.jsx(Ge,{variant:"h5",children:"Change Password"})}),m.jsxs(Ve,{sx:{display:"flex",flexWrap:"wrap",flexDirection:"row",gap:2,justifyContent:"space-between",mt:2,width:"100%"},children:[m.jsx(lu,{label:"Old Password",variant:"outlined",className:"textfield"}),m.jsx(lu,{label:"New Password",variant:"outlined",className:"textfield"}),m.jsx(lu,{label:"Confirm New Password",variant:"outlined",className:"textfield"})]})]})});function MJe(){const e=Wt(),t=_n(e.palette.mode);return m.jsx(m.Fragment,{children:m.jsxs(Ve,{sx:{padding:2},children:[m.jsxs(Ve,{sx:{paddingBlock:2,width:"100%"},children:[m.jsx(Ge,{variant:"h1",children:"Settings"}),m.jsx(Ge,{variant:"h6",children:"Manage your app's settings"})]}),m.jsxs(Ve,{sx:{backgroundColor:t.primary[400],padding:4},children:[m.jsxs(Ve,{sx:{paddingBlock:2,width:"100%"},children:[m.jsx(Ge,{variant:"h3",children:"My Profile"}),m.jsx(Ge,{variant:"h6",children:"Update your profile here."})]}),m.jsxs(Lt,{container:!0,spacing:2,children:[m.jsx(Lt,{item:!0,xs:12,sm:12,md:12,lg:6,children:m.jsx(CJe,{})}),m.jsx(Lt,{item:!0,xs:12,sm:12,md:12,lg:6,children:m.jsx(_Je,{})}),m.jsx(Lt,{item:!0,xs:12,sm:12,md:12,lg:6,children:m.jsx($Je,{})}),m.jsx(Lt,{item:!0,xs:12,sm:12,md:12,lg:6,children:m.jsx(SJe,{})}),m.jsx(Lt,{item:!0,xs:12,sm:12,md:12,lg:6,children:m.jsx(kJe,{})}),m.jsx(Lt,{item:!0,xs:12,sm:12,md:12,lg:6,children:m.jsx(PJe,{})})]}),m.jsxs(Ve,{sx:{display:"flex",gap:2,mt:5},children:[m.jsx(Oa,{variant:"contained",color:"success",children:m.jsx(Ge,{variant:"h5",children:"Save"})}),m.jsx(Oa,{variant:"outlined",color:"info",children:m.jsx(Ge,{variant:"h5",children:"Cancel"})})]})]})]})})}const rq=[{id:1,assetName:"Apple",assetType:"Stocks",currentPrice:"$145.64",quantity:"10",costBasis:"$1,400.00",currentValue:145640,gainOrLoss:"+$56.40",annualReturn:"12%",allocation:"10%",investment:"Stocks"},{id:2,assetName:"Amazon",assetType:"Stocks",currentPrice:"$3,654.12",quantity:"2",costBasis:"$7,500.00",currentValue:730824,gainOrLoss:"-$191.76",annualReturn:"-2.56%",allocation:"15%",investment:"Bonds"},{id:3,assetName:"Vanguard Total Bond Market Index",assetType:"Mutual Funds",currentPrice:"$110.35",quantity:"50",costBasis:"$5,700.00",currentValue:551750,gainOrLoss:"-$182.50",annualReturn:"-3.20%",allocation:"15%",investment:"Real Estate"},{id:4,assetName:"Tesla",assetType:"Stocks",currentPrice:"$652.23",quantity:"5",costBasis:"$3,000.00",currentValue:326115,gainOrLoss:"+$261.15",annualReturn:"21%",allocation:"10%",investment:"Cryptocurrency"},{id:5,assetName:"Bitcoin",assetType:"Cryptocurrency",currentPrice:"$32,800.20",quantity:"0.25",costBasis:"$8,200.10",currentValue:820005,gainOrLoss:"-$0.05",annualReturn:"0.01%",allocation:"10%",investment:"Mutual Funds"},{id:6,assetName:"Microsoft",assetType:"Stocks",currentPrice:"$290.67",quantity:"12",costBasis:"$3,000.00",currentValue:348804,gainOrLoss:"+$488.04",annualReturn:"15%",allocation:"15%",investment:"Index Funds"},{id:7,assetName:"JPMorgan Chase & Co",assetType:"Stocks",currentPrice:"$159.28",quantity:"8",costBasis:"$1,250.00",currentValue:127424,gainOrLoss:"+$24.24",annualReturn:"4%",allocation:"5%",investment:"Commodities"},{id:8,assetName:"Ethereum",assetType:"Cryptocurrency",currentPrice:"$2,621.76",quantity:"0.5",costBasis:"$1,257.97",currentValue:131088,gainOrLoss:"+$52.91",annualReturn:"19%",allocation:"10%",investment:"Savings Account"}],TJe=[{field:"id",headerName:"ID",flex:1,minWidth:80,maxWidth:80},{field:"investmentName",headerName:"Name",flex:1,minWidth:160,maxWidth:160},{field:"investmentType",headerName:"Type",flex:1,minWidth:120,maxWidth:120},{field:"investmentSymbol",headerName:"Symbol",flex:1,minWidth:110,maxWidth:110},{field:"purchaseDate",headerName:"Purchase Date",flex:1,minWidth:120,maxWidth:120},{field:"sharesOrAmount",headerName:"Shares/Amount",flex:1,minWidth:110,maxWidth:110},{field:"purchasePrice",headerName:"Purchase Price",flex:1,minWidth:140,maxWidth:140},{field:"currentValue",headerName:"Current Value",flex:1,minWidth:100,maxWidth:100},{field:"gainOrLoss",headerName:"Gain/Loss",flex:1,minWidth:160,maxWidth:160}],IJe=[{id:1,investmentName:"Apple Inc.",investmentType:"Stocks",investmentSymbol:"AAPL",purchaseDate:"2020.01.01",sharesOrAmount:"10",purchasePrice:"$150.00",currentValue:"$180.00",gainOrLoss:"+20%"},{id:2,investmentName:"Vanguard Total Stock Market Index Fund",investmentType:"Mutual Funds",investmentSymbol:"VTSMX",purchaseDate:"2019.06.15",sharesOrAmount:"$5000",purchasePrice:"$100.00",currentValue:"$5500.00",gainOrLoss:"+10%"},{id:3,investmentName:"Microsoft Corporation",investmentType:"Stocks",investmentSymbol:"MSFT",purchaseDate:"2020.03.01",sharesOrAmount:"5",purchasePrice:"$170.00",currentValue:"$200.00",gainOrLoss:"+17.65%"},{id:4,investmentName:"iShares Core U.S. Aggregate Bond ETF",investmentType:"ETFs",investmentSymbol:"AGG",purchaseDate:"2018.09.01",sharesOrAmount:"$2000",purchasePrice:"$108.50",currentValue:"$2200.00",gainOrLoss:"+10%"},{id:5,investmentName:"Tesla Inc.",investmentType:"Stocks",investmentSymbol:"TSLA",purchaseDate:"2019.12.01",sharesOrAmount:"2",purchasePrice:"$400.00",currentValue:"$800.00",gainOrLoss:"+100%"},{id:6,investmentName:"Vanguard Total International Stock Index Fund",investmentType:"Mutual Funds",investmentSymbol:"VGTSX",purchaseDate:"2020.06.15",sharesOrAmount:"$3000",purchasePrice:"$50.00",currentValue:"$3300.00",gainOrLoss:"+10%"},{id:7,investmentName:"Amazon.com Inc.",investmentType:"Stocks",investmentSymbol:"AMZN",purchaseDate:"2017.04.01",sharesOrAmount:"1",purchasePrice:"$900.00",currentValue:"$3000.00",gainOrLoss:"+233.33%"},{id:8,investmentName:"SPDR Gold Shares",investmentType:"ETFs",investmentSymbol:"GLD",purchaseDate:"2019.01.01",sharesOrAmount:"$500",purchasePrice:"$110.00",currentValue:"$600.00",gainOrLoss:"+20%"}],EJe=[{id:"Investment",data:[{x:"2023-01-01",y:1e3},{x:"2023-02-01",y:1200},{x:"2023-03-01",y:900},{x:"2023-04-01",y:1500},{x:"2023-05-01",y:1300}]},{id:"Benchmark",data:[{x:"2023-01-01",y:1100},{x:"2023-02-01",y:1300},{x:"2023-03-01",y:950},{x:"2023-04-01",y:1400},{x:"2023-05-01",y:1600}]},{id:"Savings",data:[{x:"2023-01-01",y:500},{x:"2023-02-01",y:600},{x:"2023-03-01",y:550},{x:"2023-04-01",y:800},{x:"2023-05-01",y:750}]},{id:"401(k)",data:[{x:"2023-01-01",y:2e3},{x:"2023-02-01",y:2200},{x:"2023-03-01",y:1900},{x:"2023-04-01",y:2300},{x:"2023-05-01",y:2100}]},{id:"IRA",data:[{x:"2023-01-01",y:1500},{x:"2023-02-01",y:1700},{x:"2023-03-01",y:1400},{x:"2023-04-01",y:1800},{x:"2023-05-01",y:1600}]}],RJe=[{field:"id",headerName:"ID",flex:1,minWidth:80,maxWidth:80},{field:"transactionDate",headerName:"Transaction Date",type:"Date",flex:1,minWidth:120,maxWidth:120,editable:!0},{field:"transactionType",headerName:"Transaction Type",flex:1,minWidth:120,maxWidth:120,editable:!0},{field:"stockSymbol",headerName:"Stock Symbol",flex:1,minWidth:110,maxWidth:110,editable:!0},{field:"stockName",headerName:"Stock Name",flex:1,minWidth:160,maxWidth:160,editable:!0},{field:"quantity",headerName:"Quantity",flex:1,minWidth:110,maxWidth:110,editable:!0},{field:"pricePerShare",headerName:"Price per Share",flex:1,minWidth:140,maxWidth:140,editable:!0},{field:"totalCost",headerName:"Total Cost",flex:1,minWidth:100,maxWidth:100,editable:!0},{field:"status",headerName:"Status",flex:1,minWidth:160,maxWidth:160,editable:!0}],OJe=[{id:1,transactionDate:"2021.07.01",transactionType:"Buy",stockSymbol:"AAPL",stockName:"Apple Inc.",quantity:"10",pricePerShare:"$150.00",totalCost:"$1500.00",status:"Completed"},{id:2,transactionDate:"2021.06.25",transactionType:"Buy",stockSymbol:"MSFT",stockName:"Microsoft Corporation",quantity:"5",pricePerShare:"$250.00",totalCost:"$1250.00",status:"Completed"},{id:3,transactionDate:"2021.07.10",transactionType:"Sell",stockSymbol:"AAPL",stockName:"Apple Inc.",quantity:"5",pricePerShare:"$160.00",totalCost:"$800.00",status:"Completed"},{id:4,transactionDate:"2021.07.15",transactionType:"Buy",stockSymbol:"GOOG",stockName:"Alphabet Inc.",quantity:"2",pricePerShare:"$2600.00",totalCost:"$5200.00",status:"Completed"},{id:5,transactionDate:"2021.07.20",transactionType:"Dividend",stockSymbol:"AAPL",stockName:"Apple Inc.",quantity:"-",pricePerShare:"-",totalCost:"$100.00",status:"Completed"},{id:6,transactionDate:"2021.07.22",transactionType:"Sell",stockSymbol:"MSFT",stockName:"Microsoft Corporation",quantity:"3",pricePerShare:"$260.00",totalCost:"$780.00",status:"Completed"},{id:7,transactionDate:"2021.07.30",transactionType:"Buy",stockSymbol:"AAPL",stockName:"Apple Inc.",quantity:"7",pricePerShare:"$155.00",totalCost:"$1085.00",status:"Completed"},{id:8,transactionDate:"2021.08.01",transactionType:"Buy",stockSymbol:"TSLA",stockName:"Tesla, Inc.",quantity:"3",pricePerShare:"$700.00",totalCost:"$2100.00",status:"Pending"}],AJe=[{field:"id",headerName:"ID",flex:1,minWidth:80,maxWidth:80},{field:"assetName",headerName:"Asset Name",flex:1,minWidth:160,maxWidth:160},{field:"assetType",headerName:"Asset Type",flex:1,minWidth:130,maxWidth:130},{field:"currentPrice",headerName:"Current Price",flex:1,minWidth:140,maxWidth:140},{field:"quantity",headerName:"Quantity",flex:1,minWidth:110,maxWidth:110},{field:"costBasis",headerName:"Cost Basis",flex:1,minWidth:120,maxWidth:120},{field:"currentValue",headerName:"Current Value",flex:1,minWidth:140,maxWidth:140},{field:"gainOrLoss",headerName:"Unrealized Gain/Loss",flex:1,minWidth:180,maxWidth:180},{field:"annualReturn",headerName:"Annual Return",flex:1,minWidth:140,maxWidth:140},{field:"allocation",headerName:"Allocation",flex:1,minWidth:120,maxWidth:120},{field:"options",headerName:"",sortable:!1,flex:1,minWidth:90,maxWidth:90,renderCell:()=>m.jsx(Ve,{children:m.jsx(Ts,{})})}];function FJe(){return m.jsx(Ve,{style:{height:400,width:"100%"},children:m.jsx(Ms,{rows:rq,columns:AJe,disableColumnFilter:!0,disableColumnSelector:!0,disableDensitySelector:!0,slots:{toolbar:Is},slotProps:{filterPanel:{sx:{maxWidth:"100vw"}},toolbar:{showQuickFilter:!0}},editMode:"row",initialState:{columns:{columnVisibilityModel:{remainingTerm:!1}},pagination:{paginationModel:{page:0,pageSize:5}}},pageSizeOptions:[5,10]})})}function LJe(){return m.jsx(FJe,{})}const jJe=({data:e})=>{const t=Wt(),n=_n(t.palette.mode);return m.jsx(lh,{data:e,keys:["currentValue"],indexBy:"investment",margin:{top:0,right:0,bottom:40,left:60},padding:.3,valueScale:{type:"linear"},indexScale:{type:"band",round:!0},valueFormat:" =-$0,~",colors:`${n.blueAccent[400]}`,borderColor:{from:"color",modifiers:[["darker",1.6]]},axisTop:null,axisRight:null,axisBottom:{tickSize:5,tickPadding:5,tickRotation:0,legend:"Category",legendPosition:"middle",legendOffset:32},axisLeft:{tickSize:5,tickPadding:5,tickRotation:-40,legend:"Amount",legendPosition:"middle",legendOffset:-50},theme:{axis:{legend:{text:{fill:`${n.primary[100]}`}},ticks:{text:{fontSize:11,fill:`${n.primary[100]}`,outlineWidth:0,outlineColor:"transparent"}}},tooltip:{container:{background:`${n.primary[500]}`,color:`${n.primary[100]}`,position:"fixed",maxWidth:"20rem"}}},labelSkipWidth:12,labelSkipHeight:12,labelTextColor:{from:"color",modifiers:[["darker",1.6]]},legends:[],role:"application",ariaLabel:"Nivo bar chart demo",barAriaLabel:r=>r.id+": "+r.formattedValue+" in country: "+r.indexValue})};function DJe(){return m.jsx(Ve,{style:{height:"400px"},children:m.jsx(jJe,{data:rq})})}function cL(e){const{children:t,value:n,index:r,...o}=e;return m.jsx(Ve,{role:"tabpanel",hidden:n!==r,id:`simple-tabpanel-${r}`,"aria-labelledby":`simple-tab-${r}`,...o,children:n===r&&m.jsx(Ve,{sx:{mt:3},children:m.jsx(Ge,{children:t})})})}function dL(e){return{id:`simple-tab-${e}`,"aria-controls":`simple-tabpanel-${e}`}}function NJe(){const[e,t]=g.useState(0),n=Wt(),r=_n(n.palette.mode),o=(i,a)=>{t(a)};return m.jsx(gr,{title:"Portfolio Overview",content:m.jsxs(Mi,{style:{height:"500px",padding:0},className:"Mui-Chart",children:[m.jsxs(Uve,{value:e,onChange:o,"aria-label":"basic tabs example",textColor:"secondary",indicatorColor:"secondary",sx:{"& button.Mui-selected":{color:r.blueAccent[400]},"& span.MuiTabs-indicator":{backgroundColor:r.blueAccent[400]}},children:[m.jsx(l6,{icon:m.jsx(Lbe,{}),...dL(1),label:"Chart","aria-label":"chart"}),m.jsx(l6,{icon:m.jsx(Dbe,{}),...dL(0),label:"Table","aria-label":"table"})]}),m.jsx(cL,{value:e,index:0,children:m.jsx(DJe,{})}),m.jsx(cL,{value:e,index:1,children:m.jsx(LJe,{})})]}),height:600})}const zJe=[...TJe,{field:"options",headerName:"",sortable:!1,flex:1,minWidth:90,maxWidth:90,renderCell:()=>m.jsx(Ve,{children:m.jsx(Ts,{})})}];function BJe(){return m.jsx(Ve,{style:{height:500,width:"100%"},children:m.jsx(Ms,{rows:IJe,columns:zJe,disableColumnFilter:!0,disableColumnSelector:!0,disableDensitySelector:!0,slots:{toolbar:Is},slotProps:{filterPanel:{sx:{maxWidth:"100vw"}},toolbar:{showQuickFilter:!0}},editMode:"row",initialState:{columns:{columnVisibilityModel:{remainingTerm:!1}},filter:{filterModel:{items:[],quickFilterExcludeHiddenColumns:!0}},pagination:{paginationModel:{page:0,pageSize:10}}},pageSizeOptions:[5,10]})})}function HJe(){return m.jsx(gr,{title:"Investment Details",content:m.jsx(BJe,{}),height:600})}const WJe=({data:e})=>{const t=Wt(),n=_n(t.palette.mode);return m.jsx(O0,{data:e,margin:{top:40,right:30,bottom:100,left:50},xScale:{type:"point"},yScale:{type:"linear",min:0,max:"auto",stacked:!0,reverse:!1},yFormat:" >-.2f",axisTop:null,axisRight:null,axisBottom:{tickSize:5,tickPadding:5,tickRotation:0,legend:"transportation",legendOffset:36,legendPosition:"middle"},axisLeft:{tickSize:5,tickPadding:5,tickRotation:0,legend:"count",legendOffset:-40,legendPosition:"middle"},theme:{axis:{legend:{text:{fill:`${n.primary[100]}`}},ticks:{text:{fontSize:11,fill:`${n.primary[100]}`,outlineWidth:0,outlineColor:"transparent"}}},tooltip:{container:{background:`${n.primary[500]}`,color:`${n.primary[100]}`,position:"fixed",maxWidth:"15rem"}}},enableGridX:!1,enableGridY:!1,colors:{scheme:"set1"},pointSize:10,pointColor:{theme:"background"},pointBorderWidth:2,pointBorderColor:{from:"serieColor"},pointLabelYOffset:-12,enableArea:!0,areaBaselineValue:80,useMesh:!0,legends:[{anchor:"bottom-left",direction:"row",justify:!1,translateX:0,translateY:80,itemWidth:94,itemHeight:15,itemsSpacing:6,symbolSize:19,symbolShape:"circle",itemDirection:"left-to-right",itemTextColor:`${n.primary[100]}`,effects:[{on:"hover",style:{itemBackground:"rgba(0, 0, 0, .03)",itemOpacity:1}}]}]})};function VJe(){return m.jsx(gr,{title:"Investment Performance",content:m.jsx(Mi,{style:{height:"400px",padding:0},className:"Mui-Chart",children:m.jsx(WJe,{data:EJe})}),height:500})}const UJe=[...RJe,{field:"options",headerName:"",sortable:!1,flex:1,minWidth:90,maxWidth:90,renderCell:()=>m.jsx(Ve,{children:m.jsx(Ts,{})})}];function GJe(){return m.jsx(Ve,{style:{height:400,width:"100%"},children:m.jsx(Ms,{rows:OJe,columns:UJe,disableColumnFilter:!0,disableColumnSelector:!0,disableDensitySelector:!0,slots:{toolbar:Is},slotProps:{filterPanel:{sx:{maxWidth:"100vw"}},toolbar:{showQuickFilter:!0}},editMode:"row",initialState:{columns:{columnVisibilityModel:{remainingTerm:!1}},filter:{filterModel:{items:[],quickFilterExcludeHiddenColumns:!0}},pagination:{paginationModel:{page:0,pageSize:10}}},pageSizeOptions:[5,10]})})}function oq(){return m.jsx(gr,{title:"Transaction History",content:m.jsx(GJe,{}),height:500})}function qJe(){return m.jsx(m.Fragment,{children:m.jsxs(Ve,{sx:{padding:2},children:[m.jsxs(Ve,{sx:{paddingBlock:2,width:"100%"},children:[m.jsx(Ge,{variant:"h1",children:"Investments"}),m.jsx(Ge,{variant:"h6",children:"Maximize your investment potential with personalized advice"})]}),m.jsxs(Lt,{container:!0,spacing:2,sx:{width:"100%"},children:[m.jsx(Lt,{item:!0,xs:12,md:6,children:m.jsx(NJe,{})}),m.jsx(Lt,{item:!0,xs:12,md:6,children:m.jsx(HJe,{})}),m.jsx(Lt,{item:!0,xs:12,md:6,children:m.jsx(VJe,{})}),m.jsx(Lt,{item:!0,xs:12,md:6,children:m.jsx(oq,{})})]})]})})}const KJe=({data:e})=>{const t=Wt(),n=_n(t.palette.mode);return m.jsx(O0,{data:e,margin:{top:40,right:10,bottom:40,left:50},xScale:{type:"point"},yScale:{type:"linear",min:0,max:1e4,stacked:!0,reverse:!1},yFormat:" >-.2f",axisTop:null,axisRight:null,axisBottom:{tickSize:5,tickPadding:5,tickRotation:0,legend:"Months",legendOffset:36,legendPosition:"middle"},axisLeft:{tickSize:5,tickPadding:5,tickRotation:0,legend:"Amount",legendOffset:-40,legendPosition:"middle"},theme:{axis:{legend:{text:{fill:`${n.primary[100]}`}},ticks:{text:{fontSize:11,fill:`${n.primary[100]}`,outlineWidth:0,outlineColor:"transparent"}}},tooltip:{container:{background:`${n.primary[500]}`,color:`${n.primary[100]}`,position:"fixed",maxWidth:"10rem"}}},colors:n.primary[100],pointSize:10,pointColor:{theme:"background"},pointBorderWidth:2,pointBorderColor:{from:"serieColor"},pointLabelYOffset:-12,enableArea:!0,areaBaselineValue:70,areaOpacity:.15,useMesh:!0,legends:[]})},YJe=[{id:"January 2020",data:[{x:"Jan",y:5e3},{x:"Feb",y:5500},{x:"Mar",y:5550},{x:"Apr",y:5800},{x:"May",y:6e3},{x:"Jun",y:6100},{x:"Jul",y:6250},{x:"Aug",y:6400},{x:"Sep",y:6500},{x:"Oct",y:6750},{x:"Nov",y:6800},{x:"Dec",y:7500}]}],XJe=[{field:"id",headerName:"ID",flex:1,minWidth:80,maxWidth:80},{field:"assetName",headerName:"Name",flex:1,minWidth:160,maxWidth:160},{field:"assetType",headerName:"Type",flex:1,minWidth:120,maxWidth:120},{field:"currentValue",headerName:"Current Value",flex:1,minWidth:140,maxWidth:140},{field:"currency",headerName:"Currency",flex:1,minWidth:120,maxWidth:120},{field:"acquisitionDate",headerName:"Acquisition Date",flex:1,minWidth:160,maxWidth:160},{field:"apprOrDepr",headerName:"Appreciation/Depreciation",flex:1,minWidth:210,maxWidth:100},{field:"description",headerName:"Remaining Term",flex:1,minWidth:160,maxWidth:160}],QJe=[{id:1,assetName:"House",assetType:"Property",currentValue:5e5,currency:"USD",acquisitionDate:"2020-01-01",apprOrDepr:"+20000",description:"Primary residence"},{id:2,assetName:"Car",assetType:"Vehicle",currentValue:25e3,currency:"USD",acquisitionDate:"2018-06-15",apprOrDepr:"-5000",description:"Sedan car"},{id:3,assetName:"Investment Portfolio",assetType:"Investment",currentValue:1e5,currency:"USD",acquisitionDate:"2019-03-01",apprOrDepr:"+15000",description:"Stocks, bonds, and ETFs"},{id:4,assetName:"Savings Account",assetType:"Bank Account",currentValue:5e3,currency:"USD",acquisitionDate:"2015-12-01",apprOrDepr:"+1000",description:"Emergency fund"},{id:5,assetName:"Antique Watch",assetType:"Collectible",currentValue:2e3,currency:"USD",acquisitionDate:"2021-06-20",apprOrDepr:"+500",description:"Limited edition"},{id:6,assetName:"Gold Jewelry",assetType:"Jewelry",currentValue:1500,currency:"USD",acquisitionDate:"2017-09-30",apprOrDepr:null,description:"Necklace and earrings"},{id:7,assetName:"Business",assetType:"Business Ownership",currentValue:1e5,currency:"USD",acquisitionDate:"2020-07-10",apprOrDepr:"+25000",description:"Restaurant"},{id:8,assetName:"Bitcoin",assetType:"Cryptocurrency",currentValue:5e3,currency:"USD",acquisitionDate:"2018-02-12",apprOrDepr:"-2000",description:"Digital currency"}],ZJe=[{field:"id",headerName:"ID",flex:1,minWidth:80,maxWidth:80},{field:"name",headerName:"Name",flex:1,minWidth:160,maxWidth:160},{field:"type",headerName:"Type",flex:1,minWidth:120,maxWidth:120},{field:"amount",headerName:"Amount",flex:1,minWidth:110,maxWidth:110},{field:"interestRate",headerName:"Interest Rate",flex:1,minWidth:140,maxWidth:140},{field:"minimumPayment",headerName:"Minimum Payment",flex:1,minWidth:170,maxWidth:170},{field:"dueDate",headerName:"Due Date",flex:1,minWidth:150,maxWidth:150},{field:"loanTerm",headerName:"Loan Term",flex:1,minWidth:120,maxWidth:120},{field:"status",headerName:"Status",flex:1,minWidth:100,maxWidth:160}],JJe=[{id:1,name:"Student Loan",type:"Education",amount:3e4,interestRate:6,minimumPayment:200,dueDate:"15th of every month",loanTerm:"10 years",status:"Active"},{id:2,name:"Credit Card 1",type:"Credit Card",amount:5e3,interestRate:18,minimumPayment:100,dueDate:"25th of every month",loanTerm:"N/A",status:"Active"},{id:3,name:"Car Loan",type:"Auto Loan",amount:25e3,interestRate:4.5,minimumPayment:400,dueDate:"5th of every month",loanTerm:"5 years",status:"Active"},{id:4,name:"Mortgage",type:"Home Loan",amount:2e5,interestRate:3.5,minimumPayment:1e3,dueDate:"1st of every month",loanTerm:"30 years",status:"Active"},{id:5,name:"Personal Loan",type:"Loan",amount:1e4,interestRate:8,minimumPayment:150,dueDate:"10th of every month",loanTerm:"3 years",status:"Active"},{id:6,name:"Credit Card 2",type:"Credit Card",amount:2e3,interestRate:15,minimumPayment:50,dueDate:"20th of every month",loanTerm:"N/A",status:"Active"},{id:7,name:"Medical Loan",type:"Loan",amount:5e3,interestRate:7,minimumPayment:150,dueDate:"8th of every month",loanTerm:"2 years",status:"Active"},{id:8,name:"Business Loan",type:"Loan",amount:5e4,interestRate:10,minimumPayment:500,dueDate:"18th of every month",loanTerm:"5 years",status:"Active"}],eet=[{date:"2022-01-01",cash:5e3,investments:1e4,loans:-2e3,creditCardDebt:-500,property:25e3,other:500},{date:"2022-02-01",cash:5500,investments:10500,loans:-1800,creditCardDebt:-400,property:26e3,other:600},{date:"2022-03-01",cash:6e3,investments:11200,loans:-1600,creditCardDebt:-300,property:27e3,other:700},{date:"2022-04-01",cash:6500,investments:12e3,loans:-1400,creditCardDebt:-200,property:28e3,other:800},{date:"2022-05-01",cash:7e3,investments:12500,loans:-1200,creditCardDebt:-100,property:29e3,other:900},{date:"2022-06-01",cash:7500,investments:13e3,loans:-1e3,creditCardDebt:0,property:3e4,other:1e3}];function tet(){return m.jsx(gr,{title:"Net Worth History",content:m.jsx(Mi,{style:{height:"400px",padding:0},className:"Mui-Chart",children:m.jsx(KJe,{data:YJe})}),height:500})}const net=[...XJe,{field:"options",headerName:"",sortable:!1,flex:1,minWidth:90,maxWidth:90,renderCell:()=>m.jsx(Ve,{children:m.jsx(Ts,{})})}];function ret(){return m.jsx(Ve,{style:{height:400,width:"100%"},children:m.jsx(Ms,{rows:QJe,columns:net,disableColumnFilter:!0,disableColumnSelector:!0,disableDensitySelector:!0,slots:{toolbar:Is},slotProps:{filterPanel:{sx:{maxWidth:"100vw"}},toolbar:{showQuickFilter:!0}},editMode:"row",initialState:{columns:{columnVisibilityModel:{remainingTerm:!1}},filter:{filterModel:{items:[],quickFilterExcludeHiddenColumns:!0}},pagination:{paginationModel:{page:0,pageSize:5}}},pageSizeOptions:[5,10]})})}function oet(){return m.jsx(gr,{title:"Assets",content:m.jsx(ret,{}),height:500})}const iet=[...ZJe,{field:"options",headerName:"",sortable:!1,flex:1,minWidth:90,maxWidth:90,renderCell:()=>m.jsx(Ve,{children:m.jsx(Ts,{})})}];function aet(){return m.jsx(Ve,{style:{height:400,width:"100%"},children:m.jsx(Ms,{rows:JJe,columns:iet,disableColumnFilter:!0,disableColumnSelector:!0,disableDensitySelector:!0,slots:{toolbar:Is},slotProps:{filterPanel:{sx:{maxWidth:"100vw"}},toolbar:{showQuickFilter:!0}},editMode:"row",initialState:{columns:{columnVisibilityModel:{remainingTerm:!1}},filter:{filterModel:{items:[],quickFilterExcludeHiddenColumns:!0}},pagination:{paginationModel:{page:0,pageSize:5}}},pageSizeOptions:[5,10]})})}function set(){return m.jsx(gr,{title:"Liabilities",content:m.jsx(aet,{}),height:500})}const uet=({data:e})=>{const t=Wt(),n=_n(t.palette.mode);return m.jsx(lh,{data:e,keys:["cash","investments","loans","creditCardDebt","property","other"],indexBy:"date",margin:{top:40,right:10,bottom:40,left:50},padding:.3,layout:"vertical",valueScale:{type:"linear"},indexScale:{type:"band",round:!0},valueFormat:" =-$0,~",colors:{scheme:"purple_orange"},defs:[{id:"dots",background:"inherit",color:"#38bcb2",size:4,padding:1,stagger:!0},{id:"lines",background:"inherit",color:"#eed312",rotation:-45,lineWidth:6,spacing:10}],fill:[{match:{id:"fries"},id:"dots"},{match:{id:"sandwich"},id:"lines"}],borderColor:{from:"color",modifiers:[["darker",1.6]]},axisTop:null,axisRight:null,axisBottom:{tickSize:5,tickPadding:5,tickRotation:0,legend:"country",legendPosition:"middle",legendOffset:32},axisLeft:{tickSize:5,tickPadding:5,tickRotation:0,legend:"food",legendPosition:"middle",legendOffset:-40},theme:{axis:{legend:{text:{fill:`${n.primary[100]}`}},ticks:{text:{fontSize:11,fill:`${n.primary[100]}`,outlineWidth:0,outlineColor:"transparent"}}},tooltip:{container:{background:`${n.primary[500]}`,color:`${n.primary[100]}`,position:"fixed",maxWidth:"17.5rem"}}},labelSkipWidth:12,labelSkipHeight:12,labelTextColor:{from:"color",modifiers:[["darker",1.6]]},legends:[],role:"application",ariaLabel:"Nivo bar chart demo",barAriaLabel:r=>r.id+": "+r.formattedValue+" in country: "+r.indexValue})};function cet(){return m.jsx(gr,{title:"Assets vs Liabilities",content:m.jsx(Mi,{style:{height:"400px",padding:0},className:"Mui-Chart",children:m.jsx(uet,{data:eet})}),height:500})}function det(){return m.jsx(m.Fragment,{children:m.jsxs(Ve,{sx:{padding:2},children:[m.jsxs(Ve,{sx:{paddingBlock:2,width:"100%"},children:[m.jsx(Ge,{variant:"h1",children:"Net Worth"}),m.jsx(Ge,{variant:"h6",children:"Measure your financial success and set new targets"})]}),m.jsxs(Lt,{container:!0,spacing:2,sx:{width:"100%"},children:[m.jsx(Lt,{item:!0,xs:12,md:6,children:m.jsx(tet,{})}),m.jsx(Lt,{item:!0,xs:12,md:6,children:m.jsx(oet,{})}),m.jsx(Lt,{item:!0,xs:12,md:6,children:m.jsx(set,{})}),m.jsx(Lt,{item:!0,xs:12,md:6,children:m.jsx(cet,{})})]})]})})}const rP="DEFAULT_X_AXIS_KEY",fL="DEFAULT_Y_AXIS_KEY",fet={top:50,bottom:50,left:50,right:50};function Pd(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}const pL=Symbol("implicit");function iq(){var e=new l8,t=[],n=[],r=pL;function o(i){let a=e.get(i);if(a===void 0){if(r!==pL)return r;e.set(i,a=t.push(i)-1)}return n[a%n.length]}return o.domain=function(i){if(!arguments.length)return t.slice();t=[],e=new l8;for(const a of i)e.has(a)||e.set(a,t.push(a)-1);return o},o.range=function(i){return arguments.length?(n=Array.from(i),o):n.slice()},o.unknown=function(i){return arguments.length?(r=i,o):r},o.copy=function(){return iq(t,n).unknown(r)},Pd.apply(o,arguments),o}function _b(){var e=iq().unknown(void 0),t=e.domain,n=e.range,r=0,o=1,i,a,s=!1,l=0,u=0,c=.5;delete e.unknown;function f(){var p=t().length,y=ot&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function get(e,t,n){var r=e[0],o=e[1],i=t[0],a=t[1];return o2?vet:get,l=u=null,f}function f(p){return p==null||isNaN(p=+p)?i:(l||(l=s(e.map(r),t,n)))(r(a(p)))}return f.invert=function(p){return a(o((u||(u=s(t,e.map(r),Ig)))(p)))},f.domain=function(p){return arguments.length?(e=Array.from(p,het),c()):e.slice()},f.range=function(p){return arguments.length?(t=Array.from(p),c()):t.slice()},f.rangeRound=function(p){return t=Array.from(p),n=zB,c()},f.clamp=function(p){return arguments.length?(a=p?!0:rs,c()):a!==rs},f.interpolate=function(p){return arguments.length?(n=p,c()):n},f.unknown=function(p){return arguments.length?(i=p,f):i},function(p,y){return r=p,o=y,c()}}function sq(){return x3()(rs,rs)}function yet(e,t,n,r){var o=Cp(e,t,n),i;switch(r=$p(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(i=XB(o,a))&&(r.precision=i),Z5(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(i=QB(o,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=i-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(i=YB(o))&&(r.precision=i-(r.type==="%")*2);break}}return Tu(r)}function lq(e){var t=e.domain;return e.ticks=function(n){var r=t();return wp(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var o=t();return yet(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,a=r[o],s=r[i],l,u,c=10;for(s0;){if(u=K5(a,s,n),u===l)return r[o]=a,r[i]=s,t(r);if(u>0)a=Math.floor(a/u)*u,s=Math.ceil(s/u)*u;else if(u<0)a=Math.ceil(a*u)/u,s=Math.floor(s*u)/u;else break;l=u}return e},e}function uq(){var e=sq();return e.copy=function(){return Mw(e,uq())},Pd.apply(e,arguments),lq(e)}function cq(e,t){e=e.slice();var n=0,r=e.length-1,o=e[n],i=e[r],a;return iMath.pow(e,t)}function $et(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 yL(e){return(t,n)=>-e(-t,n)}function _et(e){const t=e(gL,vL),n=t.domain;let r=10,o,i;function a(){return o=$et(r),i=Cet(r),n()[0]<0?(o=yL(o),i=yL(i),e(bet,xet)):e(gL,vL),t}return t.base=function(s){return arguments.length?(r=+s,a()):r},t.domain=function(s){return arguments.length?(n(s),a()):n()},t.ticks=s=>{const l=n();let u=l[0],c=l[l.length-1];const f=c0){for(;p<=y;++p)for(v=1;vc)break;x.push(b)}}else for(;p<=y;++p)for(v=r-1;v>=1;--v)if(b=p>0?v/i(-p):v*i(p),!(bc)break;x.push(b)}x.length*2{if(s==null&&(s=10),l==null&&(l=r===10?"s":","),typeof l!="function"&&(!(r%1)&&(l=$p(l)).precision==null&&(l.trim=!0),l=Tu(l)),s===1/0)return l;const u=Math.max(1,r*s/t.ticks().length);return c=>{let f=c/i(Math.round(o(c)));return f*rn(cq(n(),{floor:s=>i(Math.floor(o(s))),ceil:s=>i(Math.ceil(o(s)))})),t}function dq(){const e=_et(x3()).domain([1,10]);return e.copy=()=>Mw(e,dq()).base(e.base()),Pd.apply(e,arguments),e}function bL(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function ket(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function Pet(e){return e<0?-e*e:e*e}function Met(e){var t=e(rs,rs),n=1;function r(){return n===1?e(rs,rs):n===.5?e(ket,Pet):e(bL(n),bL(1/n))}return t.exponent=function(o){return arguments.length?(n=+o,r()):n},lq(t)}function w3(){var e=Met(x3());return e.copy=function(){return Mw(e,w3()).exponent(e.exponent())},Pd.apply(e,arguments),e}function Tet(){return w3.apply(null,arguments).exponent(.5)}const y$=new Date,b$=new Date;function jr(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 a=o(i),s=o.ceil(i);return i-a(t(i=new Date(+i),a==null?1:Math.floor(a)),i),o.range=(i,a,s)=>{const l=[];if(i=o.ceil(i),s=s==null?1:Math.floor(s),!(i0))return l;let u;do l.push(u=new Date(+i)),t(i,s),e(i);while(ujr(a=>{if(a>=a)for(;e(a),!i(a);)a.setTime(a-1)},(a,s)=>{if(a>=a)if(s<0)for(;++s<=0;)for(;t(a,-1),!i(a););else for(;--s>=0;)for(;t(a,1),!i(a););}),n&&(o.count=(i,a)=>(y$.setTime(+i),b$.setTime(+a),e(y$),e(b$),Math.floor(n(y$,b$))),o.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?o.filter(r?a=>r(a)%i===0:a=>o.count(0,a)%i===0):o)),o}const kb=jr(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);kb.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?jr(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):kb);kb.range;const el=1e3,Xi=el*60,tl=Xi*60,ml=tl*24,C3=ml*7,xL=ml*30,x$=ml*365,pc=jr(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*el)},(e,t)=>(t-e)/el,e=>e.getUTCSeconds());pc.range;const S3=jr(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*el)},(e,t)=>{e.setTime(+e+t*Xi)},(e,t)=>(t-e)/Xi,e=>e.getMinutes());S3.range;const $3=jr(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Xi)},(e,t)=>(t-e)/Xi,e=>e.getUTCMinutes());$3.range;const _3=jr(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*el-e.getMinutes()*Xi)},(e,t)=>{e.setTime(+e+t*tl)},(e,t)=>(t-e)/tl,e=>e.getHours());_3.range;const k3=jr(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*tl)},(e,t)=>(t-e)/tl,e=>e.getUTCHours());k3.range;const P3=jr(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Xi)/ml,e=>e.getDate()-1);P3.range;const fq=jr(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ml,e=>e.getUTCDate()-1);fq.range;const pq=jr(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ml,e=>Math.floor(e/ml));pq.range;function Md(e){return jr(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())*Xi)/C3)}const M3=Md(0),Iet=Md(1),Eet=Md(2),Ret=Md(3),Oet=Md(4),Aet=Md(5),Fet=Md(6);M3.range;Iet.range;Eet.range;Ret.range;Oet.range;Aet.range;Fet.range;function Td(e){return jr(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)/C3)}const T3=Td(0),Let=Td(1),jet=Td(2),Det=Td(3),Net=Td(4),zet=Td(5),Bet=Td(6);T3.range;Let.range;jet.range;Det.range;Net.range;zet.range;Bet.range;const I3=jr(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());I3.range;const E3=jr(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());E3.range;const Tw=jr(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());Tw.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:jr(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)});Tw.range;const Iw=jr(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());Iw.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:jr(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)});Iw.range;function hq(e,t,n,r,o,i){const a=[[pc,1,el],[pc,5,5*el],[pc,15,15*el],[pc,30,30*el],[i,1,Xi],[i,5,5*Xi],[i,15,15*Xi],[i,30,30*Xi],[o,1,tl],[o,3,3*tl],[o,6,6*tl],[o,12,12*tl],[r,1,ml],[r,2,2*ml],[n,1,C3],[t,1,xL],[t,3,3*xL],[e,1,x$]];function s(u,c,f){const p=cC).right(a,p);if(y===a.length)return e.every(Cp(u/x$,c/x$,f));if(y===0)return kb.every(Math.max(Cp(u,c,f),1));const[v,b]=a[p/a[y-1][2]{var t,n;const{axis:r}=e,o=Math.min(...(t=r.data)!=null?t:[]),i=Math.max(...(n=r.data)!=null?n:[]);return[o,i]},gq=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[a,s]=t[i].stackedData.reduce((l,u)=>[Math.min(...u,...l[0]===null?[]:[l[0]]),Math.max(...u,...l[1]===null?[]:[l[1]])],t[i].stackedData[0]);return[o[0]===null?a:Math.min(a,o[0]),o[1]===null?s:Math.max(s,o[1])]},[null,null])},Xet=e=>Object.keys(e.series).some(n=>e.series[n].layout==="horizontal")?gq(e):mq(e),Qet=e=>Object.keys(e.series).some(n=>e.series[n].layout==="horizontal")?mq(e):gq(e),Pb=(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])],Zet=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 a=t[i].data.reduce((s,{x:l})=>Pb(s,[l,l]),[null,null]);return Pb(o,a)},[null,null])},Jet=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 a=t[i].data.reduce((s,{y:l})=>Pb(s,[l,l]),[null,null]);return Pb(o,a)},[null,null])},ett=e=>{var t,n;const{axis:r}=e,o=Math.min(...(t=r.data)!=null?t:[]),i=Math.max(...(n=r.data)!=null?n:[]);return[o,i]},ttt=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 s=t[i].area!==void 0?c=>c:c=>[c[1],c[1]],[l,u]=t[i].stackedData.reduce((c,f)=>{const[p,y]=s(f);return[Math.min(p,y,c[0]),Math.max(p,y,c[1])]},s(t[i].stackedData[0]));return o[0]===null||o[1]===null?[l,u]:[Math.min(l,o[0]),Math.max(u,o[1])]},[null,null])};function Mb(e){return e.scaleType==="band"}function wL(e){return e.scaleType==="point"}function CL(e,t,n){switch(e){case"log":return dq(t,n);case"pow":return w3(t,n);case"sqrt":return Tet(t,n);case"time":return Ket(t,n);case"utc":return Yet(t,n);default:return uq(t,n)}}const ntt=(e,t,n)=>{const r=P({},fet,n);return g.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])},rtt=ntt,O3=g.createContext({top:0,left:0,bottom:0,right:0,height:300,width:400}),A3=g.createContext({current:null});function ott({width:e,height:t,margin:n,svgRef:r,children:o}){const i=rtt(e,t,n);return m.jsx(A3.Provider,{value:r,children:m.jsx(O3.Provider,{value:i,children:o})})}function In(e){return function(){return e}}const SL=1e-12,itt=Math.PI,w$=2*itt,iP=Math.PI,aP=2*iP,tc=1e-6,att=aP-tc;function vq(e){this._+=e[0];for(let t=1,n=e.length;t=0))throw new Error(`invalid digits: ${e}`);if(t>15)return vq;const n=10**t;return function(r){this._+=r[0];for(let o=1,i=r.length;otc)if(!(Math.abs(f*l-u*c)>tc)||!i)this._append`L${this._x1=t},${this._y1=n}`;else{let y=r-a,v=o-s,b=l*l+u*u,C=y*y+v*v,x=Math.sqrt(b),w=Math.sqrt(p),S=i*Math.tan((iP-Math.acos((b+p-C)/(2*x*w)))/2),$=S/w,T=S/x;Math.abs($-1)>tc&&this._append`L${t+$*c},${n+$*f}`,this._append`A${i},${i},0,0,${+(f*y>c*v)},${this._x1=t+T*l},${this._y1=n+T*u}`}}arc(t,n,r,o,i,a){if(t=+t,n=+n,r=+r,a=!!a,r<0)throw new Error(`negative radius: ${r}`);let s=r*Math.cos(o),l=r*Math.sin(o),u=t+s,c=n+l,f=1^a,p=a?o-i:i-o;this._x1===null?this._append`M${u},${c}`:(Math.abs(this._x1-u)>tc||Math.abs(this._y1-c)>tc)&&this._append`L${u},${c}`,r&&(p<0&&(p=p%aP+aP),p>att?this._append`A${r},${r},0,1,${f},${t-s},${n-l}A${r},${r},0,1,${f},${this._x1=u},${this._y1=c}`:p>tc&&this._append`A${r},${r},0,${+(p>=iP)},${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 yq(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 ltt(t)}function Ew(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function bq(e){this._context=e}bq.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(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;default:this._context.lineTo(e,t);break}}};function F3(e){return new bq(e)}function xq(e){return e[0]}function wq(e){return e[1]}function Cq(e,t){var n=In(!0),r=null,o=F3,i=null,a=yq(s);e=typeof e=="function"?e:e===void 0?xq:In(e),t=typeof t=="function"?t:t===void 0?wq:In(t);function s(l){var u,c=(l=Ew(l)).length,f,p=!1,y;for(r==null&&(i=o(y=a())),u=0;u<=c;++u)!(u=y;--v)s.point(S[v],$[v]);s.lineEnd(),s.areaEnd()}x&&(S[p]=+e(C,p,f),$[p]=+t(C,p,f),s.point(r?+r(C,p,f):S[p],n?+n(C,p,f):$[p]))}if(w)return s=null,w+""||null}function c(){return Cq().defined(o).curve(a).context(i)}return u.x=function(f){return arguments.length?(e=typeof f=="function"?f:In(+f),r=null,u):e},u.x0=function(f){return arguments.length?(e=typeof f=="function"?f:In(+f),u):e},u.x1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:In(+f),u):r},u.y=function(f){return arguments.length?(t=typeof f=="function"?f:In(+f),n=null,u):t},u.y0=function(f){return arguments.length?(t=typeof f=="function"?f:In(+f),u):t},u.y1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:In(+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:In(!!f),u):o},u.curve=function(f){return arguments.length?(a=f,i!=null&&(s=a(i)),u):a},u.context=function(f){return arguments.length?(f==null?i=s=null:s=a(i=f),u):i},u}function ctt(e,t){return te?1:t>=e?0:NaN}function dtt(e){return e}function ftt(){var e=dtt,t=ctt,n=null,r=In(0),o=In(w$),i=In(0);function a(s){var l,u=(s=Ew(s)).length,c,f,p=0,y=new Array(u),v=new Array(u),b=+r.apply(this,arguments),C=Math.min(w$,Math.max(-w$,o.apply(this,arguments)-b)),x,w=Math.min(Math.abs(C)/u,i.apply(this,arguments)),S=w*(C<0?-1:1),$;for(l=0;l0&&(p+=$);for(t!=null?y.sort(function(T,k){return t(v[T],v[k])}):n!=null&&y.sort(function(T,k){return n(s[T],s[k])}),l=0,f=p?(C-u*S)/p:0;l0?$*f:0)+S,v[c]={data:s[c],index:l,value:$,startAngle:b,endAngle:x,padAngle:w};return v}return a.value=function(s){return arguments.length?(e=typeof s=="function"?s:In(+s),a):e},a.sortValues=function(s){return arguments.length?(t=s,n=null,a):t},a.sort=function(s){return arguments.length?(n=s,t=null,a):n},a.startAngle=function(s){return arguments.length?(r=typeof s=="function"?s:In(+s),a):r},a.endAngle=function(s){return arguments.length?(o=typeof s=="function"?s:In(+s),a):o},a.padAngle=function(s){return arguments.length?(i=typeof s=="function"?s:In(+s),a):i},a}function $L(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 L3(e,t){this._context=e,this._k=(1-t)/6}L3.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:$L(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:$L(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 L3(r,t)}return n.tension=function(r){return e(+r)},n})(0);function ptt(e,t,n){var r=e._x1,o=e._y1,i=e._x2,a=e._y2;if(e._l01_a>SL){var s=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*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,o=(o*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>SL){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,a=(a*u+e._y1*e._l23_2a-n*e._l12_2a)/c}e._context.bezierCurveTo(r,o,i,a,e._x2,e._y2)}function Sq(e,t){this._context=e,this._alpha=t}Sq.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:ptt(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 htt=function e(t){function n(r){return t?new Sq(r,t):new L3(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function _L(e){return e<0?-1:1}function kL(e,t,n){var r=e._x1-e._x0,o=t-e._x1,i=(e._y1-e._y0)/(r||o<0&&-0),a=(n-e._y1)/(o||r<0&&-0),s=(i*o+a*r)/(r+o);return(_L(i)+_L(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(s))||0}function PL(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function C$(e,t,n){var r=e._x0,o=e._y0,i=e._x1,a=e._y1,s=(i-r)/3;e._context.bezierCurveTo(r+s,o+s*t,i-s,a-s*n,i,a)}function Tb(e){this._context=e}Tb.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:C$(this,this._t0,PL(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,C$(this,PL(this,n=kL(this,e,t)),n);break;default:C$(this,this._t0,n=kL(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function $q(e){this._context=new _q(e)}($q.prototype=Object.create(Tb.prototype)).point=function(e,t){Tb.prototype.point.call(this,t,e)};function _q(e){this._context=e}_q.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 ML(e){return new Tb(e)}function mtt(e){return new $q(e)}function kq(e){this._context=e}kq.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=TL(e),o=TL(t),i=0,a=1;a=0;--t)o[t]=(a[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 vtt(e){return new Rw(e,.5)}function ytt(e){return new Rw(e,0)}function btt(e){return new Rw(e,1)}function Op(e,t){if((a=e.length)>1)for(var n=1,r,o,i=e[t[0]],a,s=i.length;n=0;)n[t]=t;return n}function xtt(e,t){return e[t]}function wtt(e){const t=[];return t.key=e,t}function Pq(){var e=In([]),t=Ap,n=Op,r=xtt;function o(i){var a=Array.from(e.apply(this,arguments),wtt),s,l=a.length,u=-1,c;for(const f of i)for(s=0,++u;s0){for(var n,r,o=0,i=e[0].length,a;o0)for(var n,r=0,o,i,a,s,l,u=e[t[0]].length;r0?(o[0]=a,o[1]=a+=i):i<0?(o[1]=s,o[0]=s+=i):(o[0]=0,o[1]=i)}function $tt(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,a;ri&&(i=o,n=t);return n}function Tq(e){var t=e.map(Iq);return Ap(e).sort(function(n,r){return t[n]-t[r]})}function Iq(e){for(var t=0,n=-1,r=e.length,o;++n{const{series:t,seriesOrder:n}=e,r=[],o={};return n.forEach(i=>{const{stack:a,stackOrder:s,stackOffset:l}=t[i];a===void 0?r.push({ids:[i],stackingOrder:S$.none,stackingOffset:$$.none}):o[a]===void 0?(o[a]=r.length,r.push({ids:[i],stackingOrder:S$[s??"none"],stackingOffset:$$[l??"diverging"]})):(r[o[a]].ids.push(i),s!==void 0&&(r[o[a]].stackingOrder=S$[s]),l!==void 0&&(r[o[a]].stackingOffset=$$[l]))}),r};function j3(e,t){const n={};return Object.keys(e).forEach(r=>{n[r]=P({valueFormatter:t},e[r])}),n}const Itt=(e,t)=>{const{seriesOrder:n,series:r}=e,o=Eq(e),i=t??[];n.forEach(s=>{const l=r[s].data;if(l!==void 0)l.forEach((u,c)=>{i.length<=c?i.push({[s]:u}):i[c][s]=u});else if(t===void 0)throw new Error([`MUI: bar series with id='${s}' has no data.`,"Either provide a data property to the series or use the dataset prop."].join(` +`))});const a={};return o.forEach(s=>{const{ids:l,stackingOffset:u,stackingOrder:c}=s,f=Pq().keys(l.map(p=>{const y=r[p].dataKey;return r[p].data===void 0&&y!==void 0?y:p})).order(c).offset(u)(i);l.forEach((p,y)=>{const v=r[p].dataKey;a[p]=P({layout:"vertical"},r[p],{data:v?t.map(b=>b[v]):r[p].data,stackedData:f[y].map(([b,C])=>[b,C])})})}),{seriesOrder:n,stackingGroups:o,series:j3(a,s=>s==null?void 0:s.toLocaleString())}},Ett=Itt,Rtt=({series:e,seriesOrder:t})=>({series:j3(e,n=>`(${n.x}, ${n.y})`),seriesOrder:t}),Ott=Rtt,Att=(e,t)=>{const{seriesOrder:n,series:r}=e,o=Eq(e),i=t??[];n.forEach(s=>{const l=r[s].data;l!==void 0&&l.forEach((u,c)=>{i.length<=c?i.push({[s]:u}):i[c][s]=u})});const a={};return o.forEach(s=>{const{ids:l,stackingOrder:u,stackingOffset:c}=s,f=Pq().keys(l.map(p=>{const y=r[p].dataKey;return r[p].data===void 0&&y!==void 0?y:p})).value((p,y)=>{var v;return(v=p[y])!=null?v:0}).order(u).offset(c)(i);l.forEach((p,y)=>{const v=r[p].dataKey;a[p]=P({},r[p],{data:v?t.map(b=>b[v]):r[p].data,stackedData:f[y].map(([b,C])=>[b,C])})})}),{seriesOrder:n,stackingGroups:o,series:j3(a,s=>s==null?void 0:s.toLocaleString())}},Ftt=Att,Ltt=(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}},jtt=e=>{const{seriesOrder:t,series:n}=e,r={};return t.forEach(o=>{var i,a,s,l;const u=ftt().startAngle(2*Math.PI*((i=n[o].startAngle)!=null?i:0)/360).endAngle(2*Math.PI*((a=n[o].endAngle)!=null?a:360)/360).padAngle(2*Math.PI*((s=n[o].paddingAngle)!=null?s:0)/360).sortValues(Ltt((l=n[o].sortingValues)!=null?l:"none"))(n[o].data.map(c=>c.value));r[o]=P({valueFormatter:c=>c.value.toLocaleString()},n[o],{data:n[o].data.map((c,f)=>{var p;return P({},c,{id:(p=c.id)!=null?p:`auto-generated-pie-id-${o}-${f}`},u[f])}).map(c=>{var f,p,y;return P({},c,{formattedValue:(f=(p=(y=n[o]).valueFormatter)==null?void 0:p.call(y,c))!=null?f:c.value.toLocaleString()})})})}),{seriesOrder:t,series:r}},Dtt=jtt,Ntt=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];function ztt(e,t,n=Ntt){return e.type==="pie"?P({},e,{data:e.data.map((r,o)=>P({color:n[o%n.length]},r))}):P({color:n[t%n.length]},e)}const Btt=["#02B2AF","#2E96FF","#B800D8","#60009B","#2731C8","#03008D"],Htt=["#02B2AF","#72CCFF","#DA00FF","#9001CB","#2E96FF","#3B48E0"],Wtt=e=>e==="dark"?Htt:Btt,Ou=g.createContext({}),_$={bar:Ett,scatter:Ott,line:Ftt,pie:Dtt},Vtt=(e,t,n)=>{const r={};e.forEach((i,a)=>{var s;const{id:l=`auto-generated-id-${a}`,type:u}=i;if(r[u]===void 0&&(r[u]={series:{},seriesOrder:[]}),((s=r[u])==null?void 0:s.series[l])!==void 0)throw new Error(`MUI: series' id "${l}" is not unique`);r[u].series[l]=P({id:l},ztt(i,a,t)),r[u].seriesOrder.push(l)});const o={};return Object.keys(_$).forEach(i=>{if(r[i]!==void 0){var a,s;o[i]=(a=(s=_$[i])==null?void 0:s.call(_$,r[i],n))!=null?a:r[i]}}),o};function Utt({series:e,dataset:t,colors:n=Wtt,children:r}){const o=Wt(),i=g.useMemo(()=>Vtt(e,typeof n=="function"?n(o.palette.mode):n,t),[e,n,o.palette.mode,t]);return m.jsx(Ou.Provider,{value:i,children:r})}function Ib(e){return e.bandwidth!==void 0}function IL(e){const{tickMaxStep:t,tickMinStep:n,tickNumber:r,range:o,domain:i}=e,a=n===void 0?999:Math.floor(Math.abs(i[1]-i[0])/n),s=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(a,Math.max(s,l))}const EL=.2,Gtt=.1,qtt={bar:Xet,scatter:Zet,line:ett},Ktt={bar:Qet,scatter:Jet,line:ttt},Au=g.createContext({xAxis:{},yAxis:{},xAxisIds:[],yAxisIds:[]});function Ytt({xAxis:e,yAxis:t,dataset:n,children:r}){const o=g.useContext(Ou),i=g.useContext(O3),a=g.useMemo(()=>e==null?void 0:e.map(u=>{const c=u.dataKey;if(c===void 0||u.data!==void 0)return u;if(n===void 0)throw Error("MUI: x-axis uses `dataKey` but no `dataset` is provided.");return P({},u,{data:n.map(f=>f[c])})}),[e,n]),s=g.useMemo(()=>t==null?void 0:t.map(u=>{const c=u.dataKey;if(c===void 0||u.data!==void 0)return u;if(n===void 0)throw Error("MUI: y-axis uses `dataKey` but no `dataset` is provided.");return P({},u,{data:n.map(f=>f[c])})}),[t,n]),l=g.useMemo(()=>{var u,c;const f=(x,w,S,$,T)=>{var k,M;const E=$[w],N=(k=(M=o[w])==null?void 0:M.series)!=null?k:{},[I,A]=E({series:N,axis:S,isDefaultAxis:T}),[z,L]=x;return z===null||L===null?[I,A]:I===null||A===null?[z,L]:[Math.min(I,z),Math.max(A,L)]},p=(x,w,S)=>Object.keys(w).reduce((T,k)=>f(T,k,x,w,S),[null,null]),y=[...(u=a==null?void 0:a.map((x,w)=>P({id:`deaultized-x-axis-${w}`},x)))!=null?u:[],...a===void 0||a.findIndex(({id:x})=>x===rP)===-1?[{id:rP,scaleType:"linear"}]:[]],v={};y.forEach((x,w)=>{var S,$,T,k,M;const E=w===0,[N,I]=p(x,qtt,E),A=[i.left,i.left+i.width];if(Mb(x)){var z,L;const U=(z=x.categoryGapRatio)!=null?z:EL,Z=(L=x.barGapRatio)!=null?L:Gtt;v[x.id]=P({categoryGapRatio:U,barGapRatio:Z},x,{scale:_b(x.data,A).paddingInner(U).paddingOuter(U/2),tickNumber:x.data.length})}if(wL(x)&&(v[x.id]=P({},x,{scale:hL(x.data,A),tickNumber:x.data.length})),x.scaleType==="band"||x.scaleType==="point")return;const O=(S=x.scaleType)!=null?S:"linear",j=[($=x.min)!=null?$:N,(T=x.max)!=null?T:I],H=IL(P({},x,{range:A,domain:j})),B=CL(O,j,A).nice(H),D=B.domain(),W=[(k=x.min)!=null?k:D[0],(M=x.max)!=null?M:D[1]];v[x.id]=P({},x,{scaleType:O,scale:B.domain(W),tickNumber:H})});const b=[...(c=s==null?void 0:s.map((x,w)=>P({id:`deaultized-y-axis-${w}`},x)))!=null?c:[],...s===void 0||s.findIndex(({id:x})=>x===fL)===-1?[{id:fL,scaleType:"linear"}]:[]],C={};return b.forEach((x,w)=>{var S,$,T,k,M;const E=w===0,[N,I]=p(x,Ktt,E),A=[i.top+i.height,i.top];if(Mb(x)){var z;const W=(z=x.categoryGapRatio)!=null?z:EL;C[x.id]=P({categoryGapRatio:W,barGapRatio:0},x,{scale:_b(x.data,[A[1],A[0]]).paddingInner(W).paddingOuter(W/2),tickNumber:x.data.length})}if(wL(x)&&(C[x.id]=P({},x,{scale:hL(x.data,[A[1],A[0]]),tickNumber:x.data.length})),x.scaleType==="band"||x.scaleType==="point")return;const L=(S=x.scaleType)!=null?S:"linear",O=[($=x.min)!=null?$:N,(T=x.max)!=null?T:I],j=IL(P({},x,{range:A,domain:O})),H=CL(L,O,A).nice(j),B=H.domain(),D=[(k=x.min)!=null?k:B[0],(M=x.max)!=null?M:B[1]];C[x.id]=P({},x,{scaleType:L,scale:H.domain(D),tickNumber:j})}),{xAxis:v,yAxis:C,xAxisIds:y.map(({id:x})=>x),yAxisIds:b.map(({id:x})=>x)}},[i.height,i.left,i.top,i.width,o,a,s]);return m.jsx(Au.Provider,{value:l,children:r})}function Xg(e){return Ib(e)?t=>e(t)+e.bandwidth()/2:t=>e(t)}function Xtt(e){return typeof e=="string"}function Qtt(e,t,n){return e===void 0||Xtt(e)?t:P({},t,{ownerState:P({},t.ownerState,n)})}const Ztt={disableDefaultClasses:!1},Jtt=g.createContext(Ztt);function ent(e){const{disableDefaultClasses:t}=g.useContext(Jtt);return n=>t?"":e(n)}function tnt(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function nnt(e,t,n){return typeof e=="function"?e(t,n):e}function RL(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function rnt(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const y=Ne(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),v=P({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),b=P({},n,o,r);return y.length>0&&(b.className=y),Object.keys(v).length>0&&(b.style=v),{props:b,internalRef:void 0}}const a=tnt(P({},o,r)),s=RL(r),l=RL(o),u=t(a),c=Ne(u==null?void 0:u.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),f=P({},u==null?void 0:u.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),p=P({},u,n,l,s);return c.length>0&&(p.className=c),Object.keys(f).length>0&&(p.style=f),{props:p,internalRef:u.ref}}const ont=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Id(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=be(e,ont),s=i?{}:nnt(r,o),{props:l,internalRef:u}=rnt(P({},a,{externalSlotProps:s})),c=rn(u,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return Qtt(n,P({},l,{ref:c}),o)}function int(e){return typeof e=="function"?e():e}const ant=g.forwardRef(function(t,n){const{children:r,container:o,disablePortal:i=!1}=t,[a,s]=g.useState(null),l=rn(g.isValidElement(r)?r.ref:null,n);if(dn(()=>{i||s(int(o)||document.body)},[o,i]),dn(()=>{if(a&&!i)return Dc(n,a),()=>{Dc(n,null)}},[n,a,i]),i){if(g.isValidElement(r)){const u={ref:l};return g.cloneElement(r,u)}return m.jsx(g.Fragment,{children:r})}return m.jsx(g.Fragment,{children:a&&Su.createPortal(r,a)})});function snt(e){return vt("MuiPopper",e)}yt("MuiPopper",["root"]);const lnt=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],unt=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function cnt(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function sP(e){return typeof e=="function"?e():e}function dnt(e){return e.nodeType!==void 0}const fnt=()=>Ke({root:["root"]},ent(snt)),pnt={},hnt=g.forwardRef(function(t,n){var r;const{anchorEl:o,children:i,direction:a,disablePortal:s,modifiers:l,open:u,placement:c,popperOptions:f,popperRef:p,slotProps:y={},slots:v={},TransitionProps:b}=t,C=be(t,lnt),x=g.useRef(null),w=rn(x,n),S=g.useRef(null),$=rn(S,p),T=g.useRef($);dn(()=>{T.current=$},[$]),g.useImperativeHandle(p,()=>S.current,[]);const k=cnt(c,a),[M,E]=g.useState(k),[N,I]=g.useState(sP(o));g.useEffect(()=>{S.current&&S.current.forceUpdate()}),g.useEffect(()=>{o&&I(sP(o))},[o]),dn(()=>{if(!N||!u)return;const j=D=>{E(D.placement)};let H=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:D})=>{j(D)}}];l!=null&&(H=H.concat(l)),f&&f.modifiers!=null&&(H=H.concat(f.modifiers));const B=aN(N,x.current,P({placement:k},f,{modifiers:H}));return T.current(B),()=>{B.destroy(),T.current(null)}},[N,s,l,u,f,k]);const A={placement:M};b!==null&&(A.TransitionProps=b);const z=fnt(),L=(r=v.root)!=null?r:"div",O=Id({elementType:L,externalSlotProps:y.root,externalForwardedProps:C,additionalProps:{role:"tooltip",ref:w},ownerState:t,className:z.root});return m.jsx(L,P({},O,{children:typeof i=="function"?i(A):i}))}),mnt=g.forwardRef(function(t,n){const{anchorEl:r,children:o,container:i,direction:a="ltr",disablePortal:s=!1,keepMounted:l=!1,modifiers:u,open:c,placement:f="bottom",popperOptions:p=pnt,popperRef:y,style:v,transition:b=!1,slotProps:C={},slots:x={}}=t,w=be(t,unt),[S,$]=g.useState(!0),T=()=>{$(!1)},k=()=>{$(!0)};if(!l&&!c&&(!b||S))return null;let M;if(i)M=i;else if(r){const I=sP(r);M=I&&dnt(I)?Gn(I).body:Gn(null).body}const E=!c&&l&&(!b||S)?"none":void 0,N=b?{in:c,onEnter:T,onExited:k}:void 0;return m.jsx(ant,{disablePortal:s,container:M,children:m.jsx(hnt,P({anchorEl:r,direction:a,disablePortal:s,modifiers:u,ref:n,open:b?!S:c,placement:f,popperOptions:p,popperRef:y,slotProps:C,slots:x},w,{style:P({position:"fixed",top:0,left:0,display:E},v),TransitionProps:N,children:o}))})});function gnt(e){const{children:t,defer:n=!1,fallback:r=null}=e,[o,i]=g.useState(!1);return dn(()=>{n||i(!0)},[n]),g.useEffect(()=>{n&&i(!0)},[n]),m.jsx(g.Fragment,{children:o?t:r})}const bl=g.createContext({item:null,axis:{x:null,y:null},dispatch:()=>null}),vnt=(e,t)=>{switch(t.type){case"enterItem":return P({},e,{item:t.data});case"leaveItem":return e.item===null||Object.keys(t.data).some(n=>t.data[n]!==e.item[n])?e:P({},e,{item:null});case"updateAxis":return P({},e,{axis:t.data});default:return e}};function ynt({children:e}){const[t,n]=g.useReducer(vnt,{item:null,axis:{x:null,y:null}}),r=g.useMemo(()=>P({},t,{dispatch:n}),[t]);return m.jsx(bl.Provider,{value:r,children:e})}function bnt(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 xnt(){const e=g.useContext(A3),[t,n]=g.useState(null);return g.useEffect(()=>{const r=e.current;if(r===null)return()=>{};const o=()=>{n(null)},i=a=>{n({x:a.clientX,y:a.clientY})};return r.addEventListener("mouseout",o),r.addEventListener("mousemove",i),()=>{r.removeEventListener("mouseout",o),r.removeEventListener("mousemove",i)}},[e]),t}function wnt(e,t){if(e==="item")return t!==null;const n=t.x!==null,r=t.y!==null;return n||r}function Cnt(e){return vt("MuiChartsTooltip",e)}const OL=yt("MuiChartsTooltip",["root","markCell","labelCell","valueCell"]),Rq=ke("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})),Oq=ke("table",{name:"MuiChartsTooltip",slot:"Table"})(({theme:e})=>({borderSpacing:0,"& thead td":{borderBottom:`solid ${(e.vars||e).palette.divider} 1px`}})),lP=ke("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)}})),hc=ke("td",{name:"MuiChartsTooltip",slot:"Cell"})(({theme:e})=>({verticalAlign:"middle",color:(e.vars||e).palette.text.secondary,[`&.${OL.labelCell}`]:{paddingLeft:e.spacing(1)},[`&.${OL.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)}})),Aq=ke(yse,{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 Snt(e){const{series:t,itemData:n,sx:r,classes:o}=e;if(n.dataIndex===void 0)return null;const{displayedLabel:i,color:a}=t.type==="pie"?{color:t.data[n.dataIndex].color,displayedLabel:t.data[n.dataIndex].label}:{color:t.color,displayedLabel:t.label},s=t.valueFormatter(t.data[n.dataIndex]);return m.jsx(Rq,{sx:r,className:o.root,children:m.jsx(Oq,{children:m.jsx("tbody",{children:m.jsxs(lP,{children:[m.jsx(hc,{className:o.markCell,children:m.jsx(Aq,{ownerState:{color:a}})}),m.jsx(hc,{className:o.labelCell,children:i}),m.jsx(hc,{className:o.valueCell,children:s})]})})})})}function $nt(e){const{content:t,itemData:n,sx:r,classes:o,contentProps:i}=e,a=g.useContext(Ou)[n.type].series[n.seriesId],s=t??Snt,l=Id({elementType:s,externalSlotProps:i,additionalProps:{itemData:n,series:a,sx:r,classes:o},ownerState:{}});return m.jsx(s,P({},l))}function _nt(e){var t;const{series:n,axis:r,dataIndex:o,axisValue:i,sx:a,classes:s}=e;if(o==null)return null;const l=(t=r.valueFormatter)!=null?t:u=>u.toLocaleString();return m.jsx(Rq,{sx:a,className:s.root,children:m.jsxs(Oq,{children:[i!=null&&!r.hideTooltip&&m.jsx("thead",{children:m.jsx(lP,{children:m.jsx(hc,{colSpan:3,children:m.jsx(Ge,{children:l(i)})})})}),m.jsx("tbody",{children:n.map(({color:u,id:c,label:f,valueFormatter:p,data:y})=>{const v=p(y[o]);return v==null?null:m.jsxs(lP,{children:[m.jsx(hc,{className:s.markCell,children:m.jsx(Aq,{ownerState:{color:u},boxShadow:1})}),m.jsx(hc,{className:s.labelCell,children:f?m.jsx(Ge,{children:f}):null}),m.jsx(hc,{className:s.valueCell,children:m.jsx(Ge,{children:v})})]},c)})})]})})}function knt(e){const{content:t,contentProps:n,axisData:r,sx:o,classes:i}=e,a=(r.x&&r.x.index)!==void 0,s=a?r.x&&r.x.index:r.y&&r.y.index,l=a?r.x&&r.x.value:r.y&&r.y.value,{xAxisIds:u,xAxis:c,yAxisIds:f,yAxis:p}=g.useContext(Au),y=g.useContext(Ou),v=a?u[0]:f[0],b=g.useMemo(()=>{const S=[];return Object.keys(y).filter($=>["bar","line","scatter"].includes($)).forEach($=>{y[$].seriesOrder.forEach(T=>{const k=y[$].series[T],M=a?k.xAxisKey:k.yAxisKey;(M===void 0||M===v)&&S.push(y[$].series[T])})}),S},[v,a,y]),C=g.useMemo(()=>a?c[v]:p[v],[v,a,c,p]),x=t??_nt,w=Id({elementType:x,externalSlotProps:n,additionalProps:{axisData:r,series:b,axis:C,dataIndex:s,axisValue:l,sx:o,classes:i},ownerState:{}});return m.jsx(x,P({},w))}const Pnt=e=>{const{classes:t}=e;return Ke({root:["root"],markCell:["markCell"],labelCell:["labelCell"],valueCell:["valueCell"]},Cnt,t)},Mnt=ke(mnt,{name:"MuiChartsTooltip",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({pointerEvents:"none",zIndex:e.zIndex.modal}));function Tnt(e){var t,n,r;const{trigger:o="axis",itemContent:i,axisContent:a,slots:s,slotProps:l}=e,u=xnt(),{item:c,axis:f}=g.useContext(bl),p=o==="item"?c:f,y=wnt(o,p),v=u!==null&&y,b=Pnt({classes:e.classes}),C=(t=s==null?void 0:s.popper)!=null?t:Mnt,x=Id({elementType:C,externalSlotProps:l==null?void 0:l.popper,additionalProps:{open:v,placement:"right-start",anchorEl:bnt(u)},ownerState:{}});return o==="none"?null:m.jsx(gnt,{children:v&&m.jsx(C,P({},x,{children:o==="item"?m.jsx($nt,{itemData:p,content:(n=s==null?void 0:s.itemContent)!=null?n:i,contentProps:l==null?void 0:l.itemContent,sx:{mx:2},classes:b}):m.jsx(knt,{axisData:p,content:(r=s==null?void 0:s.axisContent)!=null?r:a,contentProps:l==null?void 0:l.axisContent,sx:{mx:2},classes:b})}))})}function Int(e){return vt("MuiChartsAxisHighlight",e)}yt("MuiChartsAxisHighlight",["root"]);const Ent=()=>Ke({root:["root"]},Int),f1=ke("path",{name:"MuiChartsAxisHighlight",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e,theme:t})=>P({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 Rnt(e){const{x:t,y:n}=e,{xAxisIds:r,xAxis:o,yAxisIds:i,yAxis:a}=g.useContext(Au),s=Ent(),l=r[0],u=i[0],c=o[l].scale,f=a[u].scale,{axis:p}=g.useContext(bl),y=Xg(c),v=Xg(f);return m.jsxs(g.Fragment,{children:[t==="band"&&p.x!==null&&Ib(c)&&m.jsx(f1,{d:`M ${c(p.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:s.root,ownerState:{axisHighlight:"band"}}),n==="band"&&p.y!==null&&Ib(f)&&m.jsx(f1,{d:`M ${c.range()[0]} ${f(p.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:s.root,ownerState:{axisHighlight:"band"}}),t==="line"&&p.x!==null&&m.jsx(f1,{d:`M ${y(p.x.value)} ${f.range()[0]} L ${y(p.x.value)} ${f.range()[1]}`,className:s.root,ownerState:{axisHighlight:"line"}}),n==="line"&&p.y!==null&&m.jsx(f1,{d:`M ${c.range()[0]} ${v(p.y.value)} L ${c.range()[1]} ${v(p.y.value)}`,className:s.root,ownerState:{axisHighlight:"line"}})]})}const D3={highlighted:"none",faded:"none"},Fq=g.createContext({item:null,scope:D3,dispatch:()=>null}),Ont=(e,t)=>{switch(t.type){case"enterItem":return P({},e,{item:t.item,scope:P({},D3,t.scope)});case"leaveItem":return e.item===null||Object.keys(t.item).some(n=>t.item[n]!==e.item[n])?e:P({},e,{item:null});default:return e}};function Ant({children:e}){const[t,n]=g.useReducer(Ont,{item:null,scope:D3}),r=g.useMemo(()=>P({},t,{dispatch:n}),[t]);return m.jsx(Fq.Provider,{value:r,children:e})}const N3=e=>{const{dispatch:t}=g.useContext(bl),{dispatch:n}=g.useContext(Fq);return o=>({onMouseEnter:()=>{t({type:"enterItem",data:o}),n({type:"enterItem",item:o,scope:e})},onMouseLeave:()=>{t({type:"leaveItem",data:o}),n({type:"leaveItem",item:o})}})},z3=(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},B3=(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},Fnt=["id","dataIndex","classes","color","highlightScope","slots","slotProps","style"];function Lnt(e){return vt("MuiBarElement",e)}yt("MuiBarElement",["root"]);const jnt=e=>{const{classes:t,id:n}=e,r={root:["root",`series-${n}`]};return Ke(r,Lnt,t)},Dnt=ke(Rn.rect,{name:"MuiBarElement",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>({stroke:"none",shapeRendering:"crispEdges",fill:e.isHighlighted?ed(e.color).brighter(.5).formatHex():e.color,transition:"opacity 0.2s ease-in, fill 0.2s ease-in",opacity:e.isFaded&&.3||1}));function Nnt(e){var t;const{id:n,dataIndex:r,classes:o,color:i,highlightScope:a,slots:s,slotProps:l,style:u}=e,c=be(e,Fnt),f=N3(a),{item:p}=g.useContext(bl),y=z3(p,{type:"bar",seriesId:n,dataIndex:r},a),v=!y&&B3(p,{type:"bar",seriesId:n,dataIndex:r},a),b={id:n,dataIndex:r,classes:o,color:i,isFaded:v,isHighlighted:y},C=jnt(b),x=(t=s==null?void 0:s.bar)!=null?t:Dnt,w=Id({elementType:x,externalSlotProps:l==null?void 0:l.bar,additionalProps:P({},c,f({type:"bar",seriesId:n,dataIndex:r}),{style:u,className:C.root}),ownerState:b});return m.jsx(x,P({},w))}const znt=["skipAnimation"];function Bnt({bandWidth:e,numberOfGroups:t,gapRatio:n}){if(n===0)return{barWidth:e/t,offset:0};const r=e/(t+(t-1)*n),o=n*r;return{barWidth:r,offset:o}}const Hnt=()=>{var e;const t=(e=g.useContext(Ou).bar)!=null?e:{series:{},stackingGroups:[],seriesOrder:[]},n=g.useContext(Au),{series:r,stackingGroups:o}=t,{xAxis:i,yAxis:a,xAxisIds:s,yAxisIds:l}=n,u=s[0],c=l[0];return o.flatMap(({ids:p},y)=>p.flatMap(v=>{var b,C;const x=(b=r[v].xAxisKey)!=null?b:u,w=(C=r[v].yAxisKey)!=null?C:c,S=i[x],$=a[w],T=r[v].layout==="vertical";let k;if(T){if(!Mb(S))throw new Error(`Axis with id "${x}" shoud be of type "band" to display the bar series of id "${v}"`);if(i[x].data===void 0)throw new Error(`Axis with id "${x}" shoud have data property`);k=S}else{if(!Mb($))throw new Error(`Axis with id "${w}" shoud be of type "band" to display the bar series of id "${v}"`);if(a[w].data===void 0)throw new Error(`Axis with id "${x}" shoud have data property`);k=$}const M=S.scale,E=$.scale,N=k.scale.bandwidth(),{barWidth:I,offset:A}=Bnt({bandWidth:N,numberOfGroups:o.length,gapRatio:k.barGapRatio}),z=y*(I+A),{stackedData:L,color:O}=r[v];return L.map((j,H)=>{var B,D;const W=Math.min(...j),U=Math.max(...j);return{bottom:W,top:U,seriesId:v,dataIndex:H,layout:r[v].layout,x:T?M((B=i[x].data)==null?void 0:B[H])+z:M(W),y:T?E(U):E((D=a[w].data)==null?void 0:D[H])+z,xOrigin:M(0),yOrigin:E(0),height:T?Math.abs(E(W)-E(U)):I,width:T?I:Math.abs(M(W)-M(U)),color:O,highlightScope:r[v].highlightScope}})}))},AL=({layout:e,yOrigin:t,x:n,width:r,y:o,xOrigin:i,height:a})=>P({},e==="vertical"?{y:t,x:n,height:0,width:r}:{y:o,x:i,height:a,width:0}),FL=({x:e,width:t,y:n,height:r})=>({y:n,x:e,height:r,width:t});function Wnt(e){const t=Hnt(),{skipAnimation:n}=e,r=be(e,znt),o=dd(t,{keys:i=>`${i.seriesId}-${i.dataIndex}`,from:AL,leave:AL,enter:FL,update:FL,immediate:n});return m.jsx(g.Fragment,{children:o((i,{seriesId:a,dataIndex:s,color:l,highlightScope:u})=>m.jsx(Nnt,P({id:a,dataIndex:s,highlightScope:u,color:l},r,{style:i})))})}const Vnt=()=>{Xl(()=>{const e=window.matchMedia("(prefers-reduced-motion)"),t=n=>{la.assign({skipAnimation:n.matches||void 0})};return t(e),e.addEventListener("change",t),()=>{e.removeEventListener("change",t)}},[])},Unt=e=>{const t=g.useContext(A3),{width:n,height:r,top:o,left:i}=g.useContext(O3),{xAxis:a,yAxis:s,xAxisIds:l,yAxisIds:u}=g.useContext(Au),{dispatch:c}=g.useContext(bl),f=l[0],p=u[0],y=g.useRef({x:-1,y:-1});g.useEffect(()=>{const v=t.current;if(v===null||e)return()=>{};const b=(w,S)=>{if(f===null)return null;const{scale:$,data:T}=w;if(!Ib($)){const M=$.invert(S);if(T===void 0)return{value:M};const E=T==null?void 0:T.findIndex((N,I)=>N>M&&(I===0||Math.abs(M-N)<=Math.abs(M-T[I-1]))||N<=M&&(I===T.length-1||Math.abs(M-N)=0?T[E]:M,index:E}}const k=$.bandwidth()===0?Math.floor((S-Math.min(...$.range())+$.step()/2)/$.step()):Math.floor((S-Math.min(...$.range()))/$.step());return k<0||k>=T.length?null:{index:k,value:T[k]}},C=()=>{y.current={x:-1,y:-1},c({type:"updateAxis",data:{x:null,y:null}})},x=w=>{const S=t.current.createSVGPoint();S.x=w.clientX,S.y=w.clientY;const $=S.matrixTransform(t.current.getScreenCTM().inverse());y.current={x:$.x,y:$.y};const T=$.xi+n,k=$.yo+r;if(T||k){c({type:"updateAxis",data:{x:null,y:null}});return}const M=b(a[f],$.x),E=b(s[p],$.y);c({type:"updateAxis",data:{x:M,y:E}})};return v.addEventListener("mouseout",C),v.addEventListener("mousemove",x),()=>{v.removeEventListener("mouseout",C),v.removeEventListener("mousemove",x)}},[t,c,i,n,o,r,p,s,f,a,e])},Gnt=["children","width","height","viewBox","disableAxisListener","className"],qnt=ke("svg",{name:"MuiChartsSurface",slot:"Root"})(()=>({})),Knt=g.forwardRef(function(t,n){const{children:r,width:o,height:i,viewBox:a,disableAxisListener:s=!1}=t,l=be(t,Gnt),u=P({width:o,height:i,x:0,y:0},a);return Unt(s),m.jsxs(qnt,P({width:o,height:i,viewBox:`${u.x} ${u.y} ${u.width} ${u.height}`,ref:n},l,{children:[m.jsx("title",{children:t.title}),m.jsx("desc",{children:t.desc}),r]}))}),Ynt=g.forwardRef(function(t,n){const{width:r,height:o,series:i,margin:a,xAxis:s,yAxis:l,colors:u,dataset:c,sx:f,title:p,desc:y,disableAxisListener:v,children:b}=t,C=g.useRef(null),x=rn(n,C);return Vnt(),m.jsx(ott,{width:r,height:o,margin:a,svgRef:C,children:m.jsx(Utt,{series:i,colors:u,dataset:c,children:m.jsx(Ytt,{xAxis:s,yAxis:l,dataset:c,children:m.jsx(ynt,{children:m.jsx(Ant,{children:m.jsx(Knt,{width:r,height:o,ref:x,sx:f,title:p,desc:y,disableAxisListener:v,children:b})})})})})})}),Xnt=["width","height"],Qnt=(e,t)=>{const n=g.useRef(null),r=g.useRef(!1),[o,i]=g.useState(0),[a,s]=g.useState(0),l=g.useCallback(()=>{const u=n==null?void 0:n.current;if(!u)return;const f=ra(u).getComputedStyle(u),p=Math.floor(parseFloat(f.height))||0,y=Math.floor(parseFloat(f.width))||0;i(y),s(p)},[]);return g.useEffect(()=>{r.current=!0},[]),dn(()=>{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??a]},Znt=ke("div",{name:"MuiResponsiveChart",slot:"Container"})(({ownerState:e})=>{var t,n;return{width:(t=e.width)!=null?t:"100%",height:(n=e.height)!=null?n:"100%",display:"flex",position:"relative",flexGrow:1,flexDirection:"column",alignItems:"center",justifyContent:"center",overflow:"hidden","&>svg":{width:"100%",height:"100%"}}}),Jnt=g.forwardRef(function(t,n){const{width:r,height:o}=t,i=be(t,Xnt),[a,s,l]=Qnt(r,o);return m.jsx(Znt,{ref:a,ownerState:{width:r,height:o},children:s&&l?m.jsx(Ynt,P({},i,{width:s,height:l,ref:n})):null})}),ert=["id","classes","color","highlightScope","slots","slotProps"];function trt(e){return vt("MuiLineElement",e)}yt("MuiLineElement",["root","highlighted","faded"]);const nrt=e=>{const{classes:t,id:n,isFaded:r,isHighlighted:o}=e,i={root:["root",`series-${n}`,o&&"highlighted",r&&"faded"]};return Ke(i,trt,t)},Lq=ke("path",{name:"MuiLineElement",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>({strokeWidth:2,strokeLinejoin:"round",fill:"none",stroke:e.isHighlighted?ed(e.color).brighter(.5).formatHex():e.color,transition:"opacity 0.2s ease-in, stroke 0.2s ease-in",opacity:e.isFaded?.3:1}));Lq.propTypes={as:R.elementType,ownerState:R.shape({classes:R.object,color:R.string.isRequired,id:R.string.isRequired,isFaded:R.bool.isRequired,isHighlighted:R.bool.isRequired}).isRequired,sx:R.oneOfType([R.arrayOf(R.oneOfType([R.func,R.object,R.bool])),R.func,R.object])};function rrt(e){var t;const{id:n,classes:r,color:o,highlightScope:i,slots:a,slotProps:s}=e,l=be(e,ert),u=N3(i),{item:c}=g.useContext(bl),f=z3(c,{type:"line",seriesId:n},i),p=!f&&B3(c,{type:"line",seriesId:n},i),y={id:n,classes:r,color:o,isFaded:p,isHighlighted:f},v=nrt(y),b=(t=a==null?void 0:a.line)!=null?t:Lq,C=Id({elementType:b,externalSlotProps:s==null?void 0:s.line,additionalProps:P({},l,u({type:"line",seriesId:n}),{className:v.root}),ownerState:y});return m.jsx(b,P({},C))}function jq(e){switch(e){case"catmullRom":return htt.alpha(.5);case"linear":return F3;case"monotoneX":return ML;case"monotoneY":return mtt;case"natural":return gtt;case"step":return vtt;case"stepBefore":return ytt;case"stepAfter":return btt;default:return ML}}const ort=["slots","slotProps"];function irt(e){const{slots:t,slotProps:n}=e,r=be(e,ort),o=g.useContext(Ou).line,i=g.useContext(Au);if(o===void 0)return null;const{series:a,stackingGroups:s}=o,{xAxis:l,yAxis:u,xAxisIds:c,yAxisIds:f}=i,p=c[0],y=f[0];return m.jsx("g",P({},r,{children:s.flatMap(({ids:v})=>v.flatMap(b=>{var C;const{xAxisKey:x=p,yAxisKey:w=y,stackedData:S,data:$,connectNulls:T}=a[b],k=Xg(l[x].scale),M=u[w].scale,E=l[x].data,N=Cq().x(L=>k(L.x)).defined((L,O)=>T||$[O]!=null).y(L=>M(L.y[1])),I=jq(a[b].curve),A=(C=E==null?void 0:E.map((L,O)=>({x:L,y:S[O]})))!=null?C:[],z=T?A.filter((L,O)=>$[O]!=null):A;return m.jsx(rrt,{id:b,d:N.curve(I)(z)||void 0,color:a[b].color,highlightScope:a[b].highlightScope,slots:t,slotProps:n},b)}))}))}const art=["id","classes","color","highlightScope","slots","slotProps"];function srt(e){return vt("MuiAreaElement",e)}yt("MuiAreaElement",["root","highlighted","faded"]);const lrt=e=>{const{classes:t,id:n,isFaded:r,isHighlighted:o}=e,i={root:["root",`series-${n}`,o&&"highlighted",r&&"faded"]};return Ke(i,srt,t)},Dq=ke("path",{name:"MuiAreaElement",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>({stroke:"none",fill:e.isHighlighted?ed(e.color).brighter(1).formatHex():ed(e.color).brighter(.5).formatHex(),transition:"opacity 0.2s ease-in, fill 0.2s ease-in",opacity:e.isFaded?.3:1}));Dq.propTypes={as:R.elementType,ownerState:R.shape({classes:R.object,color:R.string.isRequired,id:R.string.isRequired,isFaded:R.bool.isRequired,isHighlighted:R.bool.isRequired}).isRequired,sx:R.oneOfType([R.arrayOf(R.oneOfType([R.func,R.object,R.bool])),R.func,R.object])};function urt(e){var t;const{id:n,classes:r,color:o,highlightScope:i,slots:a,slotProps:s}=e,l=be(e,art),u=N3(i),{item:c}=g.useContext(bl),f=z3(c,{type:"line",seriesId:n},i),p=!f&&B3(c,{type:"line",seriesId:n},i),y={id:n,classes:r,color:o,isFaded:p,isHighlighted:f},v=lrt(y),b=(t=a==null?void 0:a.area)!=null?t:Dq,C=Id({elementType:b,externalSlotProps:s==null?void 0:s.area,additionalProps:P({},l,u({type:"line",seriesId:n}),{className:v.root}),ownerState:y});return m.jsx(b,P({},C))}const crt=["slots","slotProps"];function drt(e){const{slots:t,slotProps:n}=e,r=be(e,crt),o=g.useContext(Ou).line,i=g.useContext(Au);if(o===void 0)return null;const{series:a,stackingGroups:s}=o,{xAxis:l,yAxis:u,xAxisIds:c,yAxisIds:f}=i,p=c[0],y=f[0];return m.jsx("g",P({},r,{children:s.flatMap(({ids:v})=>v.flatMap(b=>{var C;const{xAxisKey:x=p,yAxisKey:w=y,stackedData:S,data:$,connectNulls:T}=a[b],k=Xg(l[x].scale),M=u[w].scale,E=l[x].data,N=utt().x(L=>k(L.x)).defined((L,O)=>T||$[O]!=null).y0(L=>L.y&&M(L.y[0])).y1(L=>L.y&&M(L.y[1])),I=jq(a[b].curve),A=(C=E==null?void 0:E.map((L,O)=>({x:L,y:S[O]})))!=null?C:[],z=T?A.filter((L,O)=>$[O]!=null):A;return!!a[b].area&&m.jsx(urt,{id:b,d:N.curve(I)(z)||void 0,color:a[b].color,highlightScope:a[b].highlightScope,slots:t,slotProps:n},b)}))}))}const frt=["x","y","id","classes","color"];function prt(e){return vt("MuiHighlightElement",e)}yt("MuiHighlightElement",["root"]);const hrt=e=>{const{classes:t,id:n}=e,r={root:["root",`series-${n}`]};return Ke(r,prt,t)},mrt=ke("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 grt(e){const{x:t,y:n,id:r,classes:o,color:i}=e,a=be(e,frt),s={id:r,classes:o,color:i,x:t,y:n},l=hrt(s);return m.jsx(mrt,P({},a,{ownerState:s,className:l.root,cx:0,cy:0,r:a.r===void 0?5:a.r}))}const vrt=["slots","slotProps"];function yrt(e){var t,n;const{slots:r,slotProps:o}=e,i=be(e,vrt),a=g.useContext(Ou).line,s=g.useContext(Au),{axis:l}=g.useContext(bl),u=(t=l.x)==null?void 0:t.index;if(u===void 0||a===void 0)return null;const{series:c,stackingGroups:f}=a,{xAxis:p,yAxis:y,xAxisIds:v,yAxisIds:b}=s,C=v[0],x=b[0],w=(n=r==null?void 0:r.lineHighlight)!=null?n:grt;return m.jsx("g",P({},i,{children:f.flatMap(({ids:S})=>S.flatMap($=>{const{xAxisKey:T=C,yAxisKey:k=x,stackedData:M,data:E,disableHighlight:N}=c[$];if(N||E[u]==null)return null;const I=Xg(p[T].scale),A=y[k].scale,z=p[T].data;if(z===void 0)throw new Error(`Axis of id "${T}" should have data property to be able to display a line plot.`);const L=I(z[u]),O=A(M[u][1]);return m.jsx(w,P({id:$,color:c[$].color,x:L,y:O},o==null?void 0:o.lineHighlight),`${$}`)}))}))}const brt={top:5,bottom:5,left:5,right:5},xrt=g.forwardRef(function(t,n){const{xAxis:r,width:o,height:i,margin:a=brt,colors:s,sx:l,showTooltip:u,tooltip:c,showHighlight:f,axisHighlight:p,children:y,slots:v,slotProps:b,data:C,plotType:x="line",valueFormatter:w=M=>M.toString(),area:S,curve:$="linear"}=t,k=P({},f&&x==="bar"?{x:"band"}:{x:"none"},p);return m.jsxs(Jnt,{ref:n,series:[P({type:x,data:C,valueFormatter:w},x==="bar"?{}:{area:S,curve:$,disableHighlight:!f})],width:o,height:i,margin:a,xAxis:[P({id:rP,scaleType:x==="bar"?"band":"point",data:Array.from({length:C.length},(M,E)=>E),hideTooltip:r===void 0},r)],colors:s,sx:l,disableAxisListener:(!u||(c==null?void 0:c.trigger)!=="axis")&&(k==null?void 0:k.x)==="none"&&(k==null?void 0:k.y)==="none",children:[x==="bar"&&m.jsx(Wnt,{slots:v,slotProps:b,sx:{shapeRendering:"auto"}}),x==="line"&&m.jsxs(g.Fragment,{children:[m.jsx(drt,{slots:v,slotProps:b}),m.jsx(irt,{slots:v,slotProps:b}),m.jsx(yrt,{slots:v,slotProps:b})]}),m.jsx(Rnt,P({},k)),u&&m.jsx(Tnt,P({},c,{slotProps:b,slots:v})),y]})});function rm({title:e,value:t,icon:n,chartType:r}){const o=Wt(),i=_n(o.palette.mode);return m.jsxs(Ve,{sx:{alignItems:"center",backgroundColor:i.primary[400],borderRadius:"4px",boxShadow:4,display:"flex",gap:"2rem",flexWrap:"wrap",justifyContent:"space-between",padding:"1rem"},children:[m.jsxs(Ve,{sx:{display:"flex",flexDirection:"column",gap:"0.5rem",width:"max(30%, 50%)"},children:[n,m.jsxs(Ge,{variant:"h3",children:["$",t]}),m.jsx(Ge,{variant:"h6",color:i.grey[400],children:e})]}),m.jsx(Ve,{children:m.jsx(xrt,{height:50,width:100,data:[...r],showTooltip:!0,showHighlight:!0,plotType:"bar"})})]})}function wrt(){const e=Wt(),t=_n(e.palette.mode);return m.jsx(m.Fragment,{children:m.jsxs(Ve,{sx:{padding:2},children:[m.jsxs(Ve,{sx:{paddingBlock:2,width:"100%"},children:[m.jsx(Ge,{variant:"h1",children:"Overview"}),m.jsx(Ge,{variant:"h6",children:"A snapshot of your financial health"})]}),m.jsxs(Lt,{container:!0,spacing:2,sx:{width:"100%"},children:[m.jsx(Lt,{item:!0,xs:12,md:!0,children:m.jsx(rm,{title:"Income",value:220350,icon:m.jsx(Nbe,{sx:{color:t.greenAccent[600]}}),chartType:[1,4,2,5,7,2,4,6]})}),m.jsx(Lt,{item:!0,xs:12,md:!0,children:m.jsx(rm,{title:"Expenses",value:90550,icon:m.jsx(Fbe,{sx:{color:t.greenAccent[600]}}),chartType:[3,-10,-2,5,7,-2,4,6]})}),m.jsx(Lt,{item:!0,xs:12,md:!0,children:m.jsx(rm,{title:"Balance",value:470560,icon:m.jsx(kbe,{sx:{color:t.greenAccent[600]}}),chartType:[1,3,4,5,5,6,6,8]})}),m.jsx(Lt,{item:!0,xs:12,md:!0,children:m.jsx(rm,{title:"Savings",value:86723,icon:m.jsx(Obe,{sx:{color:t.greenAccent[600]}}),chartType:[3,-10,-2,3,4,-2,4,6]})}),m.jsx(Lt,{item:!0,xs:12,md:!0,children:m.jsx(rm,{title:"Investments",value:115550,icon:m.jsx($be,{sx:{color:t.greenAccent[600]}}),chartType:[1,4,2,5,7,2,4,6]})}),m.jsx(Lt,{item:!0,xs:12,sm:12,md:12,lg:8,children:m.jsx(tq,{})}),m.jsx(Lt,{item:!0,xs:12,sm:12,md:6,lg:4,children:m.jsx(nq,{})}),m.jsx(Lt,{item:!0,xs:12,sm:12,md:6,lg:4,children:m.jsx(oq,{})}),m.jsx(Lt,{item:!0,xs:12,sm:12,md:6,lg:4,children:m.jsx(eq,{})}),m.jsx(Lt,{item:!0,xs:12,sm:12,md:6,lg:4,children:m.jsx(hV,{})})]})]})})}function Crt(){return m.jsxs(Ve,{className:"error-page",sx:{padding:"1rem"},children:[m.jsx(Ve,{children:m.jsx(Ge,{variant:"h1",fontWeight:600,textAlign:"center",children:"404"})}),m.jsx(Ge,{variant:"h4",mt:4,textAlign:"center",children:"Sorry, but that's not a valid link!"}),m.jsx(Ge,{variant:"h6",fontWeight:400,textAlign:"center",children:"It may have been removed, had its name changed, or the address may be incorrect."})]})}const Srt=Aoe(S_(m.jsxs(Wa,{path:"/",element:m.jsx(Vxe,{}),errorElement:m.jsx(Crt,{}),children:[m.jsx(Wa,{path:"/",element:m.jsx(wrt,{})}),m.jsx(Wa,{path:"/budget",element:m.jsx(BUe,{})}),m.jsx(Wa,{path:"/bills",element:m.jsx(pYe,{})}),m.jsx(Wa,{path:"/reports",element:m.jsx(iJe,{})}),m.jsx(Wa,{path:"/debt",element:m.jsx(wJe,{})}),m.jsx(Wa,{path:"/investments",element:m.jsx(qJe,{})}),m.jsx(Wa,{path:"/networth",element:m.jsx(det,{})}),m.jsx(Wa,{path:"/settings",element:m.jsx(MJe,{})})]})));k$.createRoot(document.getElementById("root")).render(m.jsx(ot.StrictMode,{children:m.jsx(_oe,{router:Srt})}))});export default $rt(); diff --git a/assets/index-900ae9d8.js b/assets/index-900ae9d8.js deleted file mode 100644 index 462a8b5..0000000 --- a/assets/index-900ae9d8.js +++ /dev/null @@ -1,769 +0,0 @@ -var Eee=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Mnt=Eee((pi,hi)=>{function Iee(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var Vs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Or(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ree(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var SL={exports:{}},Pb={},$L={exports:{}},an={};/** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var qg=Symbol.for("react.element"),Oee=Symbol.for("react.portal"),Aee=Symbol.for("react.fragment"),Fee=Symbol.for("react.strict_mode"),Lee=Symbol.for("react.profiler"),Dee=Symbol.for("react.provider"),jee=Symbol.for("react.context"),Nee=Symbol.for("react.forward_ref"),zee=Symbol.for("react.suspense"),Bee=Symbol.for("react.memo"),Hee=Symbol.for("react.lazy"),eR=Symbol.iterator;function Wee(e){return e===null||typeof e!="object"?null:(e=eR&&e[eR]||e["@@iterator"],typeof e=="function"?e:null)}var _L={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},kL=Object.assign,PL={};function Rp(e,t,n){this.props=e,this.context=t,this.refs=PL,this.updater=n||_L}Rp.prototype.isReactComponent={};Rp.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Rp.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function ML(){}ML.prototype=Rp.prototype;function iP(e,t,n){this.props=e,this.context=t,this.refs=PL,this.updater=n||_L}var aP=iP.prototype=new ML;aP.constructor=iP;kL(aP,Rp.prototype);aP.isPureReactComponent=!0;var tR=Array.isArray,TL=Object.prototype.hasOwnProperty,sP={current:null},EL={key:!0,ref:!0,__self:!0,__source:!0};function IL(e,t,n){var r,o={},i=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)TL.call(t,r)&&!EL.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1>>1,Y=j[Z];if(0>>1;Zo(ne,U))reo(ge,ne)?(j[Z]=ge,j[re]=U,Z=re):(j[Z]=ne,j[Q]=U,Z=Q);else if(reo(ge,U))j[Z]=ge,j[re]=U,Z=re;else break e}}return W}function o(j,W){var U=j.sortIndex-W.sortIndex;return U!==0?U:j.id-W.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],u=[],c=1,f=null,p=3,y=!1,v=!1,b=!1,C=typeof setTimeout=="function"?setTimeout:null,x=typeof clearTimeout=="function"?clearTimeout:null,w=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function S(j){for(var W=n(u);W!==null;){if(W.callback===null)r(u);else if(W.startTime<=j)r(u),W.sortIndex=W.expirationTime,t(l,W);else break;W=n(u)}}function $(j){if(b=!1,S(j),!v)if(n(l)!==null)v=!0,H(T);else{var W=n(u);W!==null&&B($,W.startTime-j)}}function T(j,W){v=!1,b&&(b=!1,x(I),I=-1),y=!0;var U=p;try{for(S(W),f=n(l);f!==null&&(!(f.expirationTime>W)||j&&!A());){var Z=f.callback;if(typeof Z=="function"){f.callback=null,p=f.priorityLevel;var Y=Z(f.expirationTime<=W);W=e.unstable_now(),typeof Y=="function"?f.callback=Y:f===n(l)&&r(l),S(W)}else r(l);f=n(l)}if(f!==null)var se=!0;else{var Q=n(u);Q!==null&&B($,Q.startTime-W),se=!1}return se}finally{f=null,p=U,y=!1}}var k=!1,M=null,I=-1,N=5,E=-1;function A(){return!(e.unstable_now()-Ej||125Z?(j.sortIndex=U,t(u,j),n(l)===null&&j===n(u)&&(b?(x(I),I=-1):b=!0,B($,U-Z))):(j.sortIndex=Y,t(l,j),v||y||(v=!0,H(T))),j},e.unstable_shouldYield=A,e.unstable_wrapCallback=function(j){var W=p;return function(){var U=p;p=W;try{return j.apply(this,arguments)}finally{p=U}}}})(FL);AL.exports=FL;var ete=AL.exports;/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var LL=m,bi=ete;function Xe(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),S$=Object.prototype.hasOwnProperty,tte=/^[: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]*$/,rR={},oR={};function nte(e){return S$.call(oR,e)?!0:S$.call(rR,e)?!1:tte.test(e)?oR[e]=!0:(rR[e]=!0,!1)}function rte(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 ote(e,t,n,r){if(t===null||typeof t>"u"||rte(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 Mo(e,t,n,r,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var Jr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Jr[e]=new Mo(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Jr[t]=new Mo(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Jr[e]=new Mo(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Jr[e]=new Mo(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){Jr[e]=new Mo(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Jr[e]=new Mo(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Jr[e]=new Mo(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Jr[e]=new Mo(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Jr[e]=new Mo(e,5,!1,e.toLowerCase(),null,!1,!1)});var uP=/[\-:]([a-z])/g;function cP(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(uP,cP);Jr[t]=new Mo(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(uP,cP);Jr[t]=new Mo(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(uP,cP);Jr[t]=new Mo(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Jr[e]=new Mo(e,1,!1,e.toLowerCase(),null,!1,!1)});Jr.xlinkHref=new Mo("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Jr[e]=new Mo(e,1,!1,e.toLowerCase(),null,!0,!0)});function dP(e,t,n,r){var o=Jr.hasOwnProperty(t)?Jr[t]:null;(o!==null?o.type!==0:r||!(2s||o[a]!==i[s]){var l=` -`+o[a].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{BC=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?em(e):""}function ite(e){switch(e.tag){case 5:return em(e.type);case 16:return em("Lazy");case 13:return em("Suspense");case 19:return em("SuspenseList");case 0:case 2:case 15:return e=HC(e.type,!1),e;case 11:return e=HC(e.type.render,!1),e;case 1:return e=HC(e.type,!0),e;default:return""}}function P$(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 pf:return"Fragment";case ff:return"Portal";case $$:return"Profiler";case fP:return"StrictMode";case _$:return"Suspense";case k$:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case NL:return(e.displayName||"Context")+".Consumer";case jL:return(e._context.displayName||"Context")+".Provider";case pP:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case hP:return t=e.displayName||null,t!==null?t:P$(e.type)||"Memo";case Ol:t=e._payload,e=e._init;try{return P$(e(t))}catch{}}return null}function ate(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 P$(t);case 8:return t===fP?"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 su(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function BL(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function ste(e){var t=BL(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){r=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function vv(e){e._valueTracker||(e._valueTracker=ste(e))}function HL(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=BL(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function V1(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 M$(e,t){var n=t.checked;return ur({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function aR(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=su(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 WL(e,t){t=t.checked,t!=null&&dP(e,"checked",t,!1)}function T$(e,t){WL(e,t);var n=su(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")?E$(e,t.type,n):t.hasOwnProperty("defaultValue")&&E$(e,t.type,su(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function sR(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 E$(e,t,n){(t!=="number"||V1(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var tm=Array.isArray;function Rf(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=yv.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Fm(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var um={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},lte=["Webkit","ms","Moz","O"];Object.keys(um).forEach(function(e){lte.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),um[t]=um[e]})});function qL(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||um.hasOwnProperty(e)&&um[e]?(""+t).trim():t+"px"}function KL(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=qL(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var ute=ur({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 O$(e,t){if(t){if(ute[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Xe(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Xe(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Xe(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Xe(62))}}function A$(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 F$=null;function mP(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var L$=null,Of=null,Af=null;function cR(e){if(e=Xg(e)){if(typeof L$!="function")throw Error(Xe(280));var t=e.stateNode;t&&(t=Rb(t),L$(e.stateNode,e.type,t))}}function YL(e){Of?Af?Af.push(e):Af=[e]:Of=e}function XL(){if(Of){var e=Of,t=Af;if(Af=Of=null,cR(e),t)for(e=0;e>>=0,e===0?32:31-(xte(e)/wte|0)|0}var bv=64,xv=4194304;function nm(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 K1(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=n&268435455;if(a!==0){var s=a&~o;s!==0?r=nm(s):(i&=a,i!==0&&(r=nm(i)))}else a=n&~o,a!==0?r=nm(a):i!==0&&(r=nm(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 Kg(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-_a(t),e[t]=n}function _te(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=dm),bR=String.fromCharCode(32),xR=!1;function gD(e,t){switch(e){case"keyup":return Jte.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function vD(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var hf=!1;function tne(e,t){switch(e){case"compositionend":return vD(t);case"keypress":return t.which!==32?null:(xR=!0,bR);case"textInput":return e=t.data,e===bR&&xR?null:e;default:return null}}function nne(e,t){if(hf)return e==="compositionend"||!SP&&gD(e,t)?(e=hD(),d1=xP=zl=null,hf=!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=$R(n)}}function wD(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?wD(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function CD(){for(var e=window,t=V1();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=V1(e.document)}return t}function $P(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 dne(e){var t=CD(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&wD(n.ownerDocument.documentElement,n)){if(r!==null&&$P(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=_R(n,i);var a=_R(n,r);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,mf=null,H$=null,pm=null,W$=!1;function kR(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;W$||mf==null||mf!==V1(r)||(r=mf,"selectionStart"in r&&$P(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}),pm&&Bm(pm,r)||(pm=r,r=Q1(H$,"onSelect"),0yf||(e.current=Y$[yf],Y$[yf]=null,yf--)}function Un(e,t){yf++,Y$[yf]=e.current,e.current=t}var lu={},fo=vu(lu),Wo=vu(!1),Ec=lu;function Jf(e,t){var n=e.type.contextTypes;if(!n)return lu;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 Vo(e){return e=e.childContextTypes,e!=null}function J1(){Zn(Wo),Zn(fo)}function OR(e,t,n){if(fo.current!==lu)throw Error(Xe(168));Un(fo,t),Un(Wo,n)}function ID(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(Xe(108,ate(e)||"Unknown",o));return ur({},n,r)}function ey(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||lu,Ec=fo.current,Un(fo,e),Un(Wo,Wo.current),!0}function AR(e,t,n){var r=e.stateNode;if(!r)throw Error(Xe(169));n?(e=ID(e,t,Ec),r.__reactInternalMemoizedMergedChildContext=e,Zn(Wo),Zn(fo),Un(fo,e)):Zn(Wo),Un(Wo,n)}var Ws=null,Ob=!1,nS=!1;function RD(e){Ws===null?Ws=[e]:Ws.push(e)}function Sne(e){Ob=!0,RD(e)}function yu(){if(!nS&&Ws!==null){nS=!0;var e=0,t=En;try{var n=Ws;for(En=1;e>=a,o-=a,Gs=1<<32-_a(t)+o|n<I?(N=M,M=null):N=M.sibling;var E=p(x,M,S[I],$);if(E===null){M===null&&(M=N);break}e&&M&&E.alternate===null&&t(x,M),w=i(E,w,I),k===null?T=E:k.sibling=E,k=E,M=N}if(I===S.length)return n(x,M),rr&&Uu(x,I),T;if(M===null){for(;II?(N=M,M=null):N=M.sibling;var A=p(x,M,E.value,$);if(A===null){M===null&&(M=N);break}e&&M&&A.alternate===null&&t(x,M),w=i(A,w,I),k===null?T=A:k.sibling=A,k=A,M=N}if(E.done)return n(x,M),rr&&Uu(x,I),T;if(M===null){for(;!E.done;I++,E=S.next())E=f(x,E.value,$),E!==null&&(w=i(E,w,I),k===null?T=E:k.sibling=E,k=E);return rr&&Uu(x,I),T}for(M=r(x,M);!E.done;I++,E=S.next())E=y(M,x,I,E.value,$),E!==null&&(e&&E.alternate!==null&&M.delete(E.key===null?I:E.key),w=i(E,w,I),k===null?T=E:k.sibling=E,k=E);return e&&M.forEach(function(z){return t(x,z)}),rr&&Uu(x,I),T}function C(x,w,S,$){if(typeof S=="object"&&S!==null&&S.type===pf&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case gv:e:{for(var T=S.key,k=w;k!==null;){if(k.key===T){if(T=S.type,T===pf){if(k.tag===7){n(x,k.sibling),w=o(k,S.props.children),w.return=x,x=w;break e}}else if(k.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===Ol&&BR(T)===k.type){n(x,k.sibling),w=o(k,S.props),w.ref=kh(x,k,S),w.return=x,x=w;break e}n(x,k);break}else t(x,k);k=k.sibling}S.type===pf?(w=hc(S.props.children,x.mode,$,S.key),w.return=x,x=w):($=b1(S.type,S.key,S.props,null,x.mode,$),$.ref=kh(x,w,S),$.return=x,x=$)}return a(x);case ff:e:{for(k=S.key;w!==null;){if(w.key===k)if(w.tag===4&&w.stateNode.containerInfo===S.containerInfo&&w.stateNode.implementation===S.implementation){n(x,w.sibling),w=o(w,S.children||[]),w.return=x,x=w;break e}else{n(x,w);break}else t(x,w);w=w.sibling}w=cS(S,x.mode,$),w.return=x,x=w}return a(x);case Ol:return k=S._init,C(x,w,k(S._payload),$)}if(tm(S))return v(x,w,S,$);if(wh(S))return b(x,w,S,$);Pv(x,S)}return typeof S=="string"&&S!==""||typeof S=="number"?(S=""+S,w!==null&&w.tag===6?(n(x,w.sibling),w=o(w,S),w.return=x,x=w):(n(x,w),w=uS(S,x.mode,$),w.return=x,x=w),a(x)):n(x,w)}return C}var tp=zD(!0),BD=zD(!1),Qg={},ts=vu(Qg),Um=vu(Qg),Gm=vu(Qg);function rc(e){if(e===Qg)throw Error(Xe(174));return e}function OP(e,t){switch(Un(Gm,t),Un(Um,e),Un(ts,Qg),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:R$(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=R$(t,e)}Zn(ts),Un(ts,t)}function np(){Zn(ts),Zn(Um),Zn(Gm)}function HD(e){rc(Gm.current);var t=rc(ts.current),n=R$(t,e.type);t!==n&&(Un(Um,e),Un(ts,n))}function AP(e){Um.current===e&&(Zn(ts),Zn(Um))}var sr=vu(0);function ay(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 rS=[];function FP(){for(var e=0;en?n:4,e(!0);var r=oS.transition;oS.transition={};try{e(!1),t()}finally{En=n,oS.transition=r}}function o7(){return Ji().memoizedState}function Pne(e,t,n){var r=eu(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},i7(e))a7(t,n);else if(n=LD(e,t,n,r),n!==null){var o=ko();ka(n,e,r,o),s7(n,t,r)}}function Mne(e,t,n){var r=eu(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(i7(e))a7(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,s=i(a,n);if(o.hasEagerState=!0,o.eagerState=s,Ma(s,a)){var l=t.interleaved;l===null?(o.next=o,IP(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=LD(e,t,o,r),n!==null&&(o=ko(),ka(n,e,r,o),s7(n,t,r))}}function i7(e){var t=e.alternate;return e===lr||t!==null&&t===lr}function a7(e,t){hm=sy=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function s7(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,vP(e,n)}}var ly={readContext:Zi,useCallback:no,useContext:no,useEffect:no,useImperativeHandle:no,useInsertionEffect:no,useLayoutEffect:no,useMemo:no,useReducer:no,useRef:no,useState:no,useDebugValue:no,useDeferredValue:no,useTransition:no,useMutableSource:no,useSyncExternalStore:no,useId:no,unstable_isNewReconciler:!1},Tne={readContext:Zi,useCallback:function(e,t){return za().memoizedState=[e,t===void 0?null:t],e},useContext:Zi,useEffect:WR,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,m1(4194308,4,JD.bind(null,t,e),n)},useLayoutEffect:function(e,t){return m1(4194308,4,e,t)},useInsertionEffect:function(e,t){return m1(4,2,e,t)},useMemo:function(e,t){var n=za();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=za();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=Pne.bind(null,lr,e),[r.memoizedState,e]},useRef:function(e){var t=za();return e={current:e},t.memoizedState=e},useState:HR,useDebugValue:zP,useDeferredValue:function(e){return za().memoizedState=e},useTransition:function(){var e=HR(!1),t=e[0];return e=kne.bind(null,e[1]),za().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=lr,o=za();if(rr){if(n===void 0)throw Error(Xe(407));n=n()}else{if(n=t(),Nr===null)throw Error(Xe(349));Rc&30||UD(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,WR(qD.bind(null,r,i,e),[e]),r.flags|=2048,Ym(9,GD.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=za(),t=Nr.identifierPrefix;if(rr){var n=qs,r=Gs;n=(r&~(1<<32-_a(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=qm++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[Ya]=t,e[Vm]=r,g7(e,t,!1,!1),t.stateNode=e;e:{switch(a=A$(n,r),n){case"dialog":Kn("cancel",e),Kn("close",e),o=r;break;case"iframe":case"object":case"embed":Kn("load",e),o=r;break;case"video":case"audio":for(o=0;oop&&(t.flags|=128,r=!0,Ph(i,!1),t.lanes=4194304)}else{if(!r)if(e=ay(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ph(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!rr)return ro(t),null}else 2*xr()-i.renderingStartTime>op&&n!==1073741824&&(t.flags|=128,r=!0,Ph(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(n=i.last,n!==null?n.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=xr(),t.sibling=null,n=sr.current,Un(sr,r?n&1|2:n&1),t):(ro(t),null);case 22:case 23:return GP(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ai&1073741824&&(ro(t),t.subtreeFlags&6&&(t.flags|=8192)):ro(t),null;case 24:return null;case 25:return null}throw Error(Xe(156,t.tag))}function Dne(e,t){switch(kP(t),t.tag){case 1:return Vo(t.type)&&J1(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return np(),Zn(Wo),Zn(fo),FP(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return AP(t),null;case 13:if(Zn(sr),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Xe(340));ep()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Zn(sr),null;case 4:return np(),null;case 10:return EP(t.type._context),null;case 22:case 23:return GP(),null;case 24:return null;default:return null}}var Tv=!1,uo=!1,jne=typeof WeakSet=="function"?WeakSet:Set,pt=null;function Cf(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){hr(e,t,r)}else n.current=null}function s_(e,t,n){try{n()}catch(r){hr(e,t,r)}}var ZR=!1;function Nne(e,t){if(V$=Y1,e=CD(),$P(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var a=0,s=-1,l=-1,u=0,c=0,f=e,p=null;t:for(;;){for(var y;f!==n||o!==0&&f.nodeType!==3||(s=a+o),f!==i||r!==0&&f.nodeType!==3||(l=a+r),f.nodeType===3&&(a+=f.nodeValue.length),(y=f.firstChild)!==null;)p=f,f=y;for(;;){if(f===e)break t;if(p===n&&++u===o&&(s=a),p===i&&++c===r&&(l=a),(y=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=y}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(U$={focusedElem:e,selectionRange:n},Y1=!1,pt=t;pt!==null;)if(t=pt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,pt=e;else for(;pt!==null;){t=pt;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var b=v.memoizedProps,C=v.memoizedState,x=t.stateNode,w=x.getSnapshotBeforeUpdate(t.elementType===t.type?b:ma(t.type,b),C);x.__reactInternalSnapshotBeforeUpdate=w}break;case 3:var S=t.stateNode.containerInfo;S.nodeType===1?S.textContent="":S.nodeType===9&&S.documentElement&&S.removeChild(S.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Xe(163))}}catch($){hr(t,t.return,$)}if(e=t.sibling,e!==null){e.return=t.return,pt=e;break}pt=t.return}return v=ZR,ZR=!1,v}function mm(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&&s_(t,n,i)}o=o.next}while(o!==r)}}function Lb(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 l_(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 b7(e){var t=e.alternate;t!==null&&(e.alternate=null,b7(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ya],delete t[Vm],delete t[K$],delete t[wne],delete t[Cne])),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 x7(e){return e.tag===5||e.tag===3||e.tag===4}function JR(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||x7(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 u_(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=Z1));else if(r!==4&&(e=e.child,e!==null))for(u_(e,t,n),e=e.sibling;e!==null;)u_(e,t,n),e=e.sibling}function c_(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(c_(e,t,n),e=e.sibling;e!==null;)c_(e,t,n),e=e.sibling}var Gr=null,va=!1;function $l(e,t,n){for(n=n.child;n!==null;)w7(e,t,n),n=n.sibling}function w7(e,t,n){if(es&&typeof es.onCommitFiberUnmount=="function")try{es.onCommitFiberUnmount(Mb,n)}catch{}switch(n.tag){case 5:uo||Cf(n,t);case 6:var r=Gr,o=va;Gr=null,$l(e,t,n),Gr=r,va=o,Gr!==null&&(va?(e=Gr,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Gr.removeChild(n.stateNode));break;case 18:Gr!==null&&(va?(e=Gr,n=n.stateNode,e.nodeType===8?tS(e.parentNode,n):e.nodeType===1&&tS(e,n),Nm(e)):tS(Gr,n.stateNode));break;case 4:r=Gr,o=va,Gr=n.stateNode.containerInfo,va=!0,$l(e,t,n),Gr=r,va=o;break;case 0:case 11:case 14:case 15:if(!uo&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&s_(n,t,a),o=o.next}while(o!==r)}$l(e,t,n);break;case 1:if(!uo&&(Cf(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){hr(n,t,s)}$l(e,t,n);break;case 21:$l(e,t,n);break;case 22:n.mode&1?(uo=(r=uo)||n.memoizedState!==null,$l(e,t,n),uo=r):$l(e,t,n);break;default:$l(e,t,n)}}function eO(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new jne),t.forEach(function(r){var o=Kne.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function pa(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=a),r&=~i}if(r=o,r=xr()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Bne(r/1960))-r,10e?16:e,Bl===null)var r=!1;else{if(e=Bl,Bl=null,dy=0,fn&6)throw Error(Xe(331));var o=fn;for(fn|=4,pt=e.current;pt!==null;){var i=pt,a=i.child;if(pt.flags&16){var s=i.deletions;if(s!==null){for(var l=0;lxr()-VP?pc(e,0):WP|=n),Uo(e,t)}function T7(e,t){t===0&&(e.mode&1?(t=xv,xv<<=1,!(xv&130023424)&&(xv=4194304)):t=1);var n=ko();e=il(e,t),e!==null&&(Kg(e,t,n),Uo(e,n))}function qne(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),T7(e,n)}function Kne(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(Xe(314))}r!==null&&r.delete(t),T7(e,n)}var E7;E7=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Wo.current)Bo=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Bo=!1,Fne(e,t,n);Bo=!!(e.flags&131072)}else Bo=!1,rr&&t.flags&1048576&&OD(t,ny,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;g1(e,t),e=t.pendingProps;var o=Jf(t,fo.current);Lf(t,n),o=DP(null,t,r,e,o,n);var i=jP();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,Vo(r)?(i=!0,ey(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,RP(t),o.updater=Ab,t.stateNode=o,o._reactInternals=t,e_(t,r,e,n),t=r_(null,t,r,!0,i,n)):(t.tag=0,rr&&i&&_P(t),yo(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(g1(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Xne(r),e=ma(r,e),o){case 0:t=n_(null,t,r,e,n);break e;case 1:t=YR(null,t,r,e,n);break e;case 11:t=qR(null,t,r,e,n);break e;case 14:t=KR(null,t,r,ma(r.type,e),n);break e}throw Error(Xe(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ma(r,o),n_(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ma(r,o),YR(e,t,r,o,n);case 3:e:{if(p7(t),e===null)throw Error(Xe(387));r=t.pendingProps,i=t.memoizedState,o=i.element,DD(e,t),iy(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=rp(Error(Xe(423)),t),t=XR(e,t,r,n,o);break e}else if(r!==o){o=rp(Error(Xe(424)),t),t=XR(e,t,r,n,o);break e}else for(fi=Ql(t.stateNode.containerInfo.firstChild),mi=t,rr=!0,ba=null,n=BD(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ep(),r===o){t=al(e,t,n);break e}yo(e,t,r,n)}t=t.child}return t;case 5:return HD(t),e===null&&Q$(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,G$(r,o)?a=null:i!==null&&G$(r,i)&&(t.flags|=32),f7(e,t),yo(e,t,a,n),t.child;case 6:return e===null&&Q$(t),null;case 13:return h7(e,t,n);case 4:return OP(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=tp(t,null,r,n):yo(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ma(r,o),qR(e,t,r,o,n);case 7:return yo(e,t,t.pendingProps,n),t.child;case 8:return yo(e,t,t.pendingProps.children,n),t.child;case 12:return yo(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,Un(ry,r._currentValue),r._currentValue=a,i!==null)if(Ma(i.value,a)){if(i.children===o.children&&!Wo.current){t=al(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){a=i.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=Js(-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),Z$(i.return,n,t),s.lanes|=n;break}l=l.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(Xe(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),Z$(a,n,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}yo(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Lf(t,n),o=Zi(o),r=r(o),t.flags|=1,yo(e,t,r,n),t.child;case 14:return r=t.type,o=ma(r,t.pendingProps),o=ma(r.type,o),KR(e,t,r,o,n);case 15:return c7(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ma(r,o),g1(e,t),t.tag=1,Vo(r)?(e=!0,ey(t)):e=!1,Lf(t,n),ND(t,r,o),e_(t,r,o,n),r_(null,t,r,!0,e,n);case 19:return m7(e,t,n);case 22:return d7(e,t,n)}throw Error(Xe(156,t.tag))};function I7(e,t){return rD(e,t)}function Yne(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 Ui(e,t,n,r){return new Yne(e,t,n,r)}function KP(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Xne(e){if(typeof e=="function")return KP(e)?1:0;if(e!=null){if(e=e.$$typeof,e===pP)return 11;if(e===hP)return 14}return 2}function tu(e,t){var n=e.alternate;return n===null?(n=Ui(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 b1(e,t,n,r,o,i){var a=2;if(r=e,typeof e=="function")KP(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case pf:return hc(n.children,o,i,t);case fP:a=8,o|=8;break;case $$:return e=Ui(12,n,t,o|2),e.elementType=$$,e.lanes=i,e;case _$:return e=Ui(13,n,t,o),e.elementType=_$,e.lanes=i,e;case k$:return e=Ui(19,n,t,o),e.elementType=k$,e.lanes=i,e;case zL:return jb(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case jL:a=10;break e;case NL:a=9;break e;case pP:a=11;break e;case hP:a=14;break e;case Ol:a=16,r=null;break e}throw Error(Xe(130,e==null?e:typeof e,""))}return t=Ui(a,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function hc(e,t,n,r){return e=Ui(7,e,r,t),e.lanes=n,e}function jb(e,t,n,r){return e=Ui(22,e,r,t),e.elementType=zL,e.lanes=n,e.stateNode={isHidden:!1},e}function uS(e,t,n){return e=Ui(6,e,null,t),e.lanes=n,e}function cS(e,t,n){return t=Ui(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Qne(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=VC(0),this.expirationTimes=VC(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=VC(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function YP(e,t,n,r,o,i,a,s,l){return e=new Qne(e,t,n,s,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Ui(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},RP(i),e}function Zne(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(F7)}catch(e){console.error(e)}}F7(),OL.exports=Ci;var bu=OL.exports;const Rv=Or(bu);var lO=bu;C$.createRoot=lO.createRoot,C$.hydrateRoot=lO.hydrateRoot;/** - * @remix-run/router v1.9.0 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function ar(){return ar=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Fc(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function ore(){return Math.random().toString(36).substr(2,8)}function cO(e,t){return{usr:e.state,key:e.key,idx:t}}function Qm(e,t,n,r){return n===void 0&&(n=null),ar({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?ys(t):t,{state:n,key:t&&t.key||r||ore()})}function Lc(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function ys(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function ire(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,s=wr.Pop,l=null,u=c();u==null&&(u=0,a.replaceState(ar({},a.state,{idx:u}),""));function c(){return(a.state||{idx:null}).idx}function f(){s=wr.Pop;let C=c(),x=C==null?null:C-u;u=C,l&&l({action:s,location:b.location,delta:x})}function p(C,x){s=wr.Push;let w=Qm(b.location,C,x);n&&n(w,C),u=c()+1;let S=cO(w,u),$=b.createHref(w);try{a.pushState(S,"",$)}catch(T){if(T instanceof DOMException&&T.name==="DataCloneError")throw T;o.location.assign($)}i&&l&&l({action:s,location:b.location,delta:1})}function y(C,x){s=wr.Replace;let w=Qm(b.location,C,x);n&&n(w,C),u=c();let S=cO(w,u),$=b.createHref(w);a.replaceState(S,"",$),i&&l&&l({action:s,location:b.location,delta:0})}function v(C){let x=o.location.origin!=="null"?o.location.origin:o.location.href,w=typeof C=="string"?C:Lc(C);return Kt(x,"No window.location.(origin|href) available to create URL for href: "+w),new URL(w,x)}let b={get action(){return s},get location(){return e(o,a)},listen(C){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(uO,f),l=C,()=>{o.removeEventListener(uO,f),l=null}},createHref(C){return t(o,C)},createURL:v,encodeLocation(C){let x=v(C);return{pathname:x.pathname,search:x.search,hash:x.hash}},push:p,replace:y,go(C){return a.go(C)}};return b}var br;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(br||(br={}));const are=new Set(["lazy","caseSensitive","path","id","index","children"]);function sre(e){return e.index===!0}function m_(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((o,i)=>{let a=[...n,i],s=typeof o.id=="string"?o.id:a.join("-");if(Kt(o.index!==!0||!o.children,"Cannot specify children on an index route"),Kt(!r[s],'Found a route id collision on id "'+s+`". Route id's must be globally unique within Data Router usages`),sre(o)){let l=ar({},o,t(o),{id:s});return r[s]=l,l}else{let l=ar({},o,t(o),{id:s,children:void 0});return r[s]=l,o.children&&(l.children=m_(o.children,t,a,r)),l}})}function $f(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?ys(t):t,o=Fp(r.pathname||"/",n);if(o==null)return null;let i=L7(e);ure(i);let a=null;for(let s=0;a==null&&s{let l={relativePath:s===void 0?i.path||"":s,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};l.relativePath.startsWith("/")&&(Kt(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=el([r,l.relativePath]),c=n.concat(l);i.children&&i.children.length>0&&(Kt(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),L7(i.children,t,c,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:gre(u,i.index),routesMeta:c})};return e.forEach((i,a)=>{var s;if(i.path===""||!((s=i.path)!=null&&s.includes("?")))o(i,a);else for(let l of D7(i.path))o(i,a,l)}),t}function D7(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let a=D7(r.join("/")),s=[];return s.push(...a.map(l=>l===""?i:[i,l].join("/"))),o&&s.push(...a),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function ure(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:vre(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const cre=/^:\w+$/,dre=3,fre=2,pre=1,hre=10,mre=-2,dO=e=>e==="*";function gre(e,t){let n=e.split("/"),r=n.length;return n.some(dO)&&(r+=mre),t&&(r+=fre),n.filter(o=>!dO(o)).reduce((o,i)=>o+(cre.test(i)?dre:i===""?pre:hre),r)}function vre(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function yre(e,t){let{routesMeta:n}=e,r={},o="/",i=[];for(let a=0;a{if(c==="*"){let p=s[f]||"";a=i.slice(0,i.length-p.length).replace(/(.)\/+$/,"$1")}return u[c]=Cre(s[f]||"",c),u},{}),pathname:i,pathnameBase:a,pattern:e}}function xre(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Fc(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(a,s)=>(r.push(s),"/([^\\/]+)"));return e.endsWith("*")?(r.push("*"),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function wre(e){try{return decodeURI(e)}catch(t){return Fc(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Cre(e,t){try{return decodeURIComponent(e)}catch(n){return Fc(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function Fp(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function Sre(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?ys(e):e;return{pathname:n?n.startsWith("/")?n:$re(n,t):t,search:kre(r),hash:Pre(o)}}function $re(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function dS(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function Wb(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function JP(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=ys(e):(o=ar({},e),Kt(!o.pathname||!o.pathname.includes("?"),dS("?","pathname","search",o)),Kt(!o.pathname||!o.pathname.includes("#"),dS("#","pathname","hash",o)),Kt(!o.search||!o.search.includes("#"),dS("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,s;if(r||a==null)s=n;else{let f=t.length-1;if(a.startsWith("..")){let p=a.split("/");for(;p[0]==="..";)p.shift(),f-=1;o.pathname=p.join("/")}s=f>=0?t[f]:"/"}let l=Sre(o,s),u=a&&a!=="/"&&a.endsWith("/"),c=(i||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const el=e=>e.join("/").replace(/\/\/+/g,"/"),_re=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),kre=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Pre=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class eM{constructor(t,n,r,o){o===void 0&&(o=!1),this.status=t,this.statusText=n||"",this.internal=o,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function j7(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const N7=["post","put","patch","delete"],Mre=new Set(N7),Tre=["get",...N7],Ere=new Set(Tre),Ire=new Set([301,302,303,307,308]),Rre=new Set([307,308]),fS={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Ore={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Th={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},z7=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Are=e=>({hasErrorBoundary:!!e.hasErrorBoundary});function Fre(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;Kt(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let o;if(e.mapRouteProperties)o=e.mapRouteProperties;else if(e.detectErrorBoundary){let te=e.detectErrorBoundary;o=X=>({hasErrorBoundary:te(X)})}else o=Are;let i={},a=m_(e.routes,o,void 0,i),s,l=e.basename||"/",u=ar({v7_normalizeFormMethod:!1,v7_prependBasename:!1},e.future),c=null,f=new Set,p=null,y=null,v=null,b=e.hydrationData!=null,C=$f(a,e.history.location,l),x=null;if(C==null){let te=Li(404,{pathname:e.history.location.pathname}),{matches:X,route:oe}=bO(a);C=X,x={[oe.id]:te}}let w=!C.some(te=>te.route.lazy)&&(!C.some(te=>te.route.loader)||e.hydrationData!=null),S,$={historyAction:e.history.action,location:e.history.location,matches:C,initialized:w,navigation:fS,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||x,fetchers:new Map,blockers:new Map},T=wr.Pop,k=!1,M,I=!1,N=!1,E=[],A=[],z=new Map,L=0,O=-1,D=new Map,H=new Set,B=new Map,j=new Map,W=new Map,U=!1;function Z(){return c=e.history.listen(te=>{let{action:X,location:oe,delta:Ie}=te;if(U){U=!1;return}Fc(W.size===0||Ie!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let Ve=Ae({currentLocation:$.location,nextLocation:oe,historyAction:X});if(Ve&&Ie!=null){U=!0,e.history.go(Ie*-1),De(Ve,{state:"blocked",location:oe,proceed(){De(Ve,{state:"proceeding",proceed:void 0,reset:void 0,location:oe}),e.history.go(Ie)},reset(){let Ke=new Map($.blockers);Ke.set(Ve,Th),Q({blockers:Ke})}});return}return xe(X,oe)}),$.initialized||xe(wr.Pop,$.location),S}function Y(){c&&c(),f.clear(),M&&M.abort(),$.fetchers.forEach((te,X)=>Le(X)),$.blockers.forEach((te,X)=>ye(X))}function se(te){return f.add(te),()=>f.delete(te)}function Q(te){$=ar({},$,te),f.forEach(X=>X($))}function ne(te,X){var oe,Ie;let Ve=$.actionData!=null&&$.navigation.formMethod!=null&&ya($.navigation.formMethod)&&$.navigation.state==="loading"&&((oe=te.state)==null?void 0:oe._isRedirect)!==!0,Ke;X.actionData?Object.keys(X.actionData).length>0?Ke=X.actionData:Ke=null:Ve?Ke=$.actionData:Ke=null;let at=X.loaderData?yO($.loaderData,X.loaderData,X.matches||[],X.errors):$.loaderData,Je=$.blockers;Je.size>0&&(Je=new Map(Je),Je.forEach((_t,ht)=>Je.set(ht,Th)));let nt=k===!0||$.navigation.formMethod!=null&&ya($.navigation.formMethod)&&((Ie=te.state)==null?void 0:Ie._isRedirect)!==!0;s&&(a=s,s=void 0),I||T===wr.Pop||(T===wr.Push?e.history.push(te,te.state):T===wr.Replace&&e.history.replace(te,te.state)),Q(ar({},X,{actionData:Ke,loaderData:at,historyAction:T,location:te,initialized:!0,navigation:fS,revalidation:"idle",restoreScrollPosition:et(te,X.matches||$.matches),preventScrollReset:nt,blockers:Je})),T=wr.Pop,k=!1,I=!1,N=!1,E=[],A=[]}async function re(te,X){if(typeof te=="number"){e.history.go(te);return}let oe=g_($.location,$.matches,l,u.v7_prependBasename,te,X==null?void 0:X.fromRouteId,X==null?void 0:X.relative),{path:Ie,submission:Ve,error:Ke}=fO(u.v7_normalizeFormMethod,!1,oe,X),at=$.location,Je=Qm($.location,Ie,X&&X.state);Je=ar({},Je,e.history.encodeLocation(Je));let nt=X&&X.replace!=null?X.replace:void 0,_t=wr.Push;nt===!0?_t=wr.Replace:nt===!1||Ve!=null&&ya(Ve.formMethod)&&Ve.formAction===$.location.pathname+$.location.search&&(_t=wr.Replace);let ht=X&&"preventScrollReset"in X?X.preventScrollReset===!0:void 0,lt=Ae({currentLocation:at,nextLocation:Je,historyAction:_t});if(lt){De(lt,{state:"blocked",location:Je,proceed(){De(lt,{state:"proceeding",proceed:void 0,reset:void 0,location:Je}),re(te,X)},reset(){let Rt=new Map($.blockers);Rt.set(lt,Th),Q({blockers:Rt})}});return}return await xe(_t,Je,{submission:Ve,pendingError:Ke,preventScrollReset:ht,replace:X&&X.replace})}function ge(){if(ce(),Q({revalidation:"loading"}),$.navigation.state!=="submitting"){if($.navigation.state==="idle"){xe($.historyAction,$.location,{startUninterruptedRevalidation:!0});return}xe(T||$.historyAction,$.navigation.location,{overrideNavigation:$.navigation})}}async function xe(te,X,oe){M&&M.abort(),M=null,T=te,I=(oe&&oe.startUninterruptedRevalidation)===!0,Ct($.location,$.matches),k=(oe&&oe.preventScrollReset)===!0;let Ie=s||a,Ve=oe&&oe.overrideNavigation,Ke=$f(Ie,X,l);if(!Ke){let Rt=Li(404,{pathname:X.pathname}),{matches:jt,route:dn}=bO(Ie);Ee(),ne(X,{matches:jt,loaderData:{},errors:{[dn.id]:Rt}});return}if($.initialized&&!N&&zre($.location,X)&&!(oe&&oe.submission&&ya(oe.submission.formMethod))){ne(X,{matches:Ke});return}M=new AbortController;let at=Ih(e.history,X,M.signal,oe&&oe.submission),Je,nt;if(oe&&oe.pendingError)nt={[_f(Ke).route.id]:oe.pendingError};else if(oe&&oe.submission&&ya(oe.submission.formMethod)){let Rt=await fe(at,X,oe.submission,Ke,{replace:oe.replace});if(Rt.shortCircuited)return;Je=Rt.pendingActionData,nt=Rt.pendingActionError,Ve=pS(X,oe.submission),at=new Request(at.url,{signal:at.signal})}let{shortCircuited:_t,loaderData:ht,errors:lt}=await Se(at,X,Ke,Ve,oe&&oe.submission,oe&&oe.fetcherSubmission,oe&&oe.replace,Je,nt);_t||(M=null,ne(X,ar({matches:Ke},Je?{actionData:Je}:{},{loaderData:ht,errors:lt})))}async function fe(te,X,oe,Ie,Ve){Ve===void 0&&(Ve={}),ce();let Ke=Vre(X,oe);Q({navigation:Ke});let at,Je=y_(Ie,X);if(!Je.route.action&&!Je.route.lazy)at={type:br.error,error:Li(405,{method:te.method,pathname:X.pathname,routeId:Je.route.id})};else if(at=await Eh("action",te,Je,Ie,i,o,l),te.signal.aborted)return{shortCircuited:!0};if(jf(at)){let nt;return Ve&&Ve.replace!=null?nt=Ve.replace:nt=at.location===$.location.pathname+$.location.search,await me($,at,{submission:oe,replace:nt}),{shortCircuited:!0}}if(ym(at)){let nt=_f(Ie,Je.route.id);return(Ve&&Ve.replace)!==!0&&(T=wr.Push),{pendingActionData:{},pendingActionError:{[nt.route.id]:at.error}}}if(oc(at))throw Li(400,{type:"defer-action"});return{pendingActionData:{[Je.route.id]:at.data}}}async function Se(te,X,oe,Ie,Ve,Ke,at,Je,nt){let _t=Ie||pS(X,Ve),ht=Ve||Ke||CO(_t),lt=s||a,[Rt,jt]=pO(e.history,$,oe,ht,X,N,E,A,B,H,lt,l,Je,nt);if(Ee(tt=>!(oe&&oe.some(Ut=>Ut.route.id===tt))||Rt&&Rt.some(Ut=>Ut.route.id===tt)),O=++L,Rt.length===0&&jt.length===0){let tt=K();return ne(X,ar({matches:oe,loaderData:{},errors:nt||null},Je?{actionData:Je}:{},tt?{fetchers:new Map($.fetchers)}:{})),{shortCircuited:!0}}if(!I){jt.forEach(Ut=>{let _e=$.fetchers.get(Ut.key),we=Rh(void 0,_e?_e.data:void 0);$.fetchers.set(Ut.key,we)});let tt=Je||$.actionData;Q(ar({navigation:_t},tt?Object.keys(tt).length===0?{actionData:null}:{actionData:tt}:{},jt.length>0?{fetchers:new Map($.fetchers)}:{}))}jt.forEach(tt=>{z.has(tt.key)&&Re(tt.key),tt.controller&&z.set(tt.key,tt.controller)});let dn=()=>jt.forEach(tt=>Re(tt.key));M&&M.signal.addEventListener("abort",dn);let{results:hn,loaderResults:Pt,fetcherResults:zt}=await ue($.matches,oe,Rt,jt,te);if(te.signal.aborted)return{shortCircuited:!0};M&&M.signal.removeEventListener("abort",dn),jt.forEach(tt=>z.delete(tt.key));let un=xO(hn);if(un){if(un.idx>=Rt.length){let tt=jt[un.idx-Rt.length].key;H.add(tt)}return await me($,un.result,{replace:at}),{shortCircuited:!0}}let{loaderData:cn,errors:ut}=vO($,oe,Rt,Pt,nt,jt,zt,j);j.forEach((tt,Ut)=>{tt.subscribe(_e=>{(_e||tt.done)&&j.delete(Ut)})});let mt=K(),Ot=ee(O),At=mt||Ot||jt.length>0;return ar({loaderData:cn,errors:ut},At?{fetchers:new Map($.fetchers)}:{})}function de(te){return $.fetchers.get(te)||Ore}function ie(te,X,oe,Ie){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");z.has(te)&&Re(te);let Ve=s||a,Ke=g_($.location,$.matches,l,u.v7_prependBasename,oe,X,Ie==null?void 0:Ie.relative),at=$f(Ve,Ke,l);if(!at){Te(te,X,Li(404,{pathname:Ke}));return}let{path:Je,submission:nt,error:_t}=fO(u.v7_normalizeFormMethod,!0,Ke,Ie);if(_t){Te(te,X,_t);return}let ht=y_(at,Je);if(k=(Ie&&Ie.preventScrollReset)===!0,nt&&ya(nt.formMethod)){Pe(te,X,Je,ht,at,nt);return}B.set(te,{routeId:X,path:Je}),$e(te,X,Je,ht,at,nt)}async function Pe(te,X,oe,Ie,Ve,Ke){if(ce(),B.delete(te),!Ie.route.action&&!Ie.route.lazy){let Fe=Li(405,{method:Ke.formMethod,pathname:oe,routeId:X});Te(te,X,Fe);return}let at=$.fetchers.get(te),Je=Ure(Ke,at);$.fetchers.set(te,Je),Q({fetchers:new Map($.fetchers)});let nt=new AbortController,_t=Ih(e.history,oe,nt.signal,Ke);z.set(te,nt);let ht=L,lt=await Eh("action",_t,Ie,Ve,i,o,l);if(_t.signal.aborted){z.get(te)===nt&&z.delete(te);return}if(jf(lt))if(z.delete(te),O>ht){let Fe=sf(void 0);$.fetchers.set(te,Fe),Q({fetchers:new Map($.fetchers)});return}else{H.add(te);let Fe=Rh(Ke);return $.fetchers.set(te,Fe),Q({fetchers:new Map($.fetchers)}),me($,lt,{fetcherSubmission:Ke})}if(ym(lt)){Te(te,X,lt.error);return}if(oc(lt))throw Li(400,{type:"defer-action"});let Rt=$.navigation.location||$.location,jt=Ih(e.history,Rt,nt.signal),dn=s||a,hn=$.navigation.state!=="idle"?$f(dn,$.navigation.location,l):$.matches;Kt(hn,"Didn't find any matches after fetcher action");let Pt=++L;D.set(te,Pt);let zt=Rh(Ke,lt.data);$.fetchers.set(te,zt);let[un,cn]=pO(e.history,$,hn,Ke,Rt,N,E,A,B,H,dn,l,{[Ie.route.id]:lt.data},void 0);cn.filter(Fe=>Fe.key!==te).forEach(Fe=>{let rt=Fe.key,Tt=$.fetchers.get(rt),en=Rh(void 0,Tt?Tt.data:void 0);$.fetchers.set(rt,en),z.has(rt)&&Re(rt),Fe.controller&&z.set(rt,Fe.controller)}),Q({fetchers:new Map($.fetchers)});let ut=()=>cn.forEach(Fe=>Re(Fe.key));nt.signal.addEventListener("abort",ut);let{results:mt,loaderResults:Ot,fetcherResults:At}=await ue($.matches,hn,un,cn,jt);if(nt.signal.aborted)return;nt.signal.removeEventListener("abort",ut),D.delete(te),z.delete(te),cn.forEach(Fe=>z.delete(Fe.key));let tt=xO(mt);if(tt){if(tt.idx>=un.length){let Fe=cn[tt.idx-un.length].key;H.add(Fe)}return me($,tt.result)}let{loaderData:Ut,errors:_e}=vO($,$.matches,un,Ot,void 0,cn,At,j);if($.fetchers.has(te)){let Fe=sf(lt.data);$.fetchers.set(te,Fe)}let we=ee(Pt);$.navigation.state==="loading"&&Pt>O?(Kt(T,"Expected pending action"),M&&M.abort(),ne($.navigation.location,{matches:hn,loaderData:Ut,errors:_e,fetchers:new Map($.fetchers)})):(Q(ar({errors:_e,loaderData:yO($.loaderData,Ut,hn,_e)},we||cn.length>0?{fetchers:new Map($.fetchers)}:{})),N=!1)}async function $e(te,X,oe,Ie,Ve,Ke){let at=$.fetchers.get(te),Je=Rh(Ke,at?at.data:void 0);$.fetchers.set(te,Je),Q({fetchers:new Map($.fetchers)});let nt=new AbortController,_t=Ih(e.history,oe,nt.signal);z.set(te,nt);let ht=L,lt=await Eh("loader",_t,Ie,Ve,i,o,l);if(oc(lt)&&(lt=await W7(lt,_t.signal,!0)||lt),z.get(te)===nt&&z.delete(te),_t.signal.aborted)return;if(jf(lt))if(O>ht){let jt=sf(void 0);$.fetchers.set(te,jt),Q({fetchers:new Map($.fetchers)});return}else{H.add(te),await me($,lt);return}if(ym(lt)){let jt=_f($.matches,X);$.fetchers.delete(te),Q({fetchers:new Map($.fetchers),errors:{[jt.route.id]:lt.error}});return}Kt(!oc(lt),"Unhandled fetcher deferred data");let Rt=sf(lt.data);$.fetchers.set(te,Rt),Q({fetchers:new Map($.fetchers)})}async function me(te,X,oe){let{submission:Ie,fetcherSubmission:Ve,replace:Ke}=oe===void 0?{}:oe;X.revalidate&&(N=!0);let at=Qm(te.location,X.location,{_isRedirect:!0});if(Kt(at,"Expected a location on the redirect navigation"),n){let Rt=!1;if(X.reloadDocument)Rt=!0;else if(z7.test(X.location)){const jt=e.history.createURL(X.location);Rt=jt.origin!==t.location.origin||Fp(jt.pathname,l)==null}if(Rt){Ke?t.location.replace(X.location):t.location.assign(X.location);return}}M=null;let Je=Ke===!0?wr.Replace:wr.Push,{formMethod:nt,formAction:_t,formEncType:ht}=te.navigation;!Ie&&!Ve&&nt&&_t&&ht&&(Ie=CO(te.navigation));let lt=Ie||Ve;if(Rre.has(X.status)&<&&ya(lt.formMethod))await xe(Je,at,{submission:ar({},lt,{formAction:X.location}),preventScrollReset:k});else{let Rt=pS(at,Ie);await xe(Je,at,{overrideNavigation:Rt,fetcherSubmission:Ve,preventScrollReset:k})}}async function ue(te,X,oe,Ie,Ve){let Ke=await Promise.all([...oe.map(nt=>Eh("loader",Ve,nt,X,i,o,l)),...Ie.map(nt=>nt.matches&&nt.match&&nt.controller?Eh("loader",Ih(e.history,nt.path,nt.controller.signal),nt.match,nt.matches,i,o,l):{type:br.error,error:Li(404,{pathname:nt.path})})]),at=Ke.slice(0,oe.length),Je=Ke.slice(oe.length);return await Promise.all([wO(te,oe,at,at.map(()=>Ve.signal),!1,$.loaderData),wO(te,Ie.map(nt=>nt.match),Je,Ie.map(nt=>nt.controller?nt.controller.signal:null),!0)]),{results:Ke,loaderResults:at,fetcherResults:Je}}function ce(){N=!0,E.push(...Ee()),B.forEach((te,X)=>{z.has(X)&&(A.push(X),Re(X))})}function Te(te,X,oe){let Ie=_f($.matches,X);Le(te),Q({errors:{[Ie.route.id]:oe},fetchers:new Map($.fetchers)})}function Le(te){let X=$.fetchers.get(te);z.has(te)&&!(X&&X.state==="loading"&&D.has(te))&&Re(te),B.delete(te),D.delete(te),H.delete(te),$.fetchers.delete(te)}function Re(te){let X=z.get(te);Kt(X,"Expected fetch controller: "+te),X.abort(),z.delete(te)}function Oe(te){for(let X of te){let oe=de(X),Ie=sf(oe.data);$.fetchers.set(X,Ie)}}function K(){let te=[],X=!1;for(let oe of H){let Ie=$.fetchers.get(oe);Kt(Ie,"Expected fetcher: "+oe),Ie.state==="loading"&&(H.delete(oe),te.push(oe),X=!0)}return Oe(te),X}function ee(te){let X=[];for(let[oe,Ie]of D)if(Ie0}function pe(te,X){let oe=$.blockers.get(te)||Th;return W.get(te)!==X&&W.set(te,X),oe}function ye(te){$.blockers.delete(te),W.delete(te)}function De(te,X){let oe=$.blockers.get(te)||Th;Kt(oe.state==="unblocked"&&X.state==="blocked"||oe.state==="blocked"&&X.state==="blocked"||oe.state==="blocked"&&X.state==="proceeding"||oe.state==="blocked"&&X.state==="unblocked"||oe.state==="proceeding"&&X.state==="unblocked","Invalid blocker state transition: "+oe.state+" -> "+X.state);let Ie=new Map($.blockers);Ie.set(te,X),Q({blockers:Ie})}function Ae(te){let{currentLocation:X,nextLocation:oe,historyAction:Ie}=te;if(W.size===0)return;W.size>1&&Fc(!1,"A router only supports one blocker at a time");let Ve=Array.from(W.entries()),[Ke,at]=Ve[Ve.length-1],Je=$.blockers.get(Ke);if(!(Je&&Je.state==="proceeding")&&at({currentLocation:X,nextLocation:oe,historyAction:Ie}))return Ke}function Ee(te){let X=[];return j.forEach((oe,Ie)=>{(!te||te(Ie))&&(oe.cancel(),X.push(Ie),j.delete(Ie))}),X}function Ce(te,X,oe){if(p=te,v=X,y=oe||null,!b&&$.navigation===fS){b=!0;let Ie=et($.location,$.matches);Ie!=null&&Q({restoreScrollPosition:Ie})}return()=>{p=null,v=null,y=null}}function Qe(te,X){return y&&y(te,X.map(Ie=>lre(Ie,$.loaderData)))||te.key}function Ct(te,X){if(p&&v){let oe=Qe(te,X);p[oe]=v()}}function et(te,X){if(p){let oe=Qe(te,X),Ie=p[oe];if(typeof Ie=="number")return Ie}return null}function Be(te){i={},s=m_(te,o,void 0,i)}return S={get basename(){return l},get state(){return $},get routes(){return a},initialize:Z,subscribe:se,enableScrollRestoration:Ce,navigate:re,fetch:ie,revalidate:ge,createHref:te=>e.history.createHref(te),encodeLocation:te=>e.history.encodeLocation(te),getFetcher:de,deleteFetcher:Le,dispose:Y,getBlocker:pe,deleteBlocker:ye,_internalFetchControllers:z,_internalActiveDeferreds:j,_internalSetRoutes:Be},S}function Lre(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function g_(e,t,n,r,o,i,a){let s,l;if(i!=null&&a!=="path"){s=[];for(let c of t)if(s.push(c),c.route.id===i){l=c;break}}else s=t,l=t[t.length-1];let u=JP(o||".",Wb(s).map(c=>c.pathnameBase),Fp(e.pathname,n)||e.pathname,a==="path");return o==null&&(u.search=e.search,u.hash=e.hash),(o==null||o===""||o===".")&&l&&l.route.index&&!tM(u.search)&&(u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(u.pathname=u.pathname==="/"?n:el([n,u.pathname])),Lc(u)}function fO(e,t,n,r){if(!r||!Lre(r))return{path:n};if(r.formMethod&&!Wre(r.formMethod))return{path:n,error:Li(405,{method:r.formMethod})};let o=()=>({path:n,error:Li(400,{type:"invalid-body"})}),i=r.formMethod||"get",a=e?i.toUpperCase():i.toLowerCase(),s=H7(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!ya(a))return o();let p=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((y,v)=>{let[b,C]=v;return""+y+b+"="+C+` -`},""):String(r.body);return{path:n,submission:{formMethod:a,formAction:s,formEncType:r.formEncType,formData:void 0,json:void 0,text:p}}}else if(r.formEncType==="application/json"){if(!ya(a))return o();try{let p=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:a,formAction:s,formEncType:r.formEncType,formData:void 0,json:p,text:void 0}}}catch{return o()}}}Kt(typeof FormData=="function","FormData is not available in this environment");let l,u;if(r.formData)l=v_(r.formData),u=r.formData;else if(r.body instanceof FormData)l=v_(r.body),u=r.body;else if(r.body instanceof URLSearchParams)l=r.body,u=gO(l);else if(r.body==null)l=new URLSearchParams,u=new FormData;else try{l=new URLSearchParams(r.body),u=gO(l)}catch{return o()}let c={formMethod:a,formAction:s,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(ya(c.formMethod))return{path:n,submission:c};let f=ys(n);return t&&f.search&&tM(f.search)&&l.append("index",""),f.search="?"+l,{path:Lc(f),submission:c}}function Dre(e,t){let n=e;if(t){let r=e.findIndex(o=>o.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function pO(e,t,n,r,o,i,a,s,l,u,c,f,p,y){let v=y?Object.values(y)[0]:p?Object.values(p)[0]:void 0,b=e.createURL(t.location),C=e.createURL(o),x=y?Object.keys(y)[0]:void 0,S=Dre(n,x).filter((T,k)=>{if(T.route.lazy)return!0;if(T.route.loader==null)return!1;if(jre(t.loaderData,t.matches[k],T)||a.some(N=>N===T.route.id))return!0;let M=t.matches[k],I=T;return hO(T,ar({currentUrl:b,currentParams:M.params,nextUrl:C,nextParams:I.params},r,{actionResult:v,defaultShouldRevalidate:i||b.pathname+b.search===C.pathname+C.search||b.search!==C.search||B7(M,I)}))}),$=[];return l.forEach((T,k)=>{if(!n.some(A=>A.route.id===T.routeId))return;let M=$f(c,T.path,f);if(!M){$.push({key:k,routeId:T.routeId,path:T.path,matches:null,match:null,controller:null});return}let I=t.fetchers.get(k),N=y_(M,T.path),E=!1;u.has(k)?E=!1:s.includes(k)?E=!0:I&&I.state!=="idle"&&I.data===void 0?E=i:E=hO(N,ar({currentUrl:b,currentParams:t.matches[t.matches.length-1].params,nextUrl:C,nextParams:n[n.length-1].params},r,{actionResult:v,defaultShouldRevalidate:i})),E&&$.push({key:k,routeId:T.routeId,path:T.path,matches:M,match:N,controller:new AbortController})}),[S,$]}function jre(e,t,n){let r=!t||n.route.id!==t.route.id,o=e[n.route.id]===void 0;return r||o}function B7(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function hO(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function mO(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let o=n[e.id];Kt(o,"No route found in manifest");let i={};for(let a in r){let l=o[a]!==void 0&&a!=="hasErrorBoundary";Fc(!l,'Route "'+o.id+'" has a static property "'+a+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+a+'" will be ignored.')),!l&&!are.has(a)&&(i[a]=r[a])}Object.assign(o,i),Object.assign(o,ar({},t(o),{lazy:void 0}))}async function Eh(e,t,n,r,o,i,a,s){s===void 0&&(s={});let l,u,c,f=v=>{let b,C=new Promise((x,w)=>b=w);return c=()=>b(),t.signal.addEventListener("abort",c),Promise.race([v({request:t,params:n.params,context:s.requestContext}),C])};try{let v=n.route[e];if(n.route.lazy)if(v){let b,C=await Promise.all([f(v).catch(x=>{b=x}),mO(n.route,i,o)]);if(b)throw b;u=C[0]}else if(await mO(n.route,i,o),v=n.route[e],v)u=await f(v);else if(e==="action"){let b=new URL(t.url),C=b.pathname+b.search;throw Li(405,{method:t.method,pathname:C,routeId:n.route.id})}else return{type:br.data,data:void 0};else if(v)u=await f(v);else{let b=new URL(t.url),C=b.pathname+b.search;throw Li(404,{pathname:C})}Kt(u!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(v){l=br.error,u=v}finally{c&&t.signal.removeEventListener("abort",c)}if(Hre(u)){let v=u.status;if(Ire.has(v)){let x=u.headers.get("Location");if(Kt(x,"Redirects returned/thrown from loaders/actions must have a Location header"),!z7.test(x))x=g_(new URL(t.url),r.slice(0,r.indexOf(n)+1),a,!0,x);else if(!s.isStaticRequest){let w=new URL(t.url),S=x.startsWith("//")?new URL(w.protocol+x):new URL(x),$=Fp(S.pathname,a)!=null;S.origin===w.origin&&$&&(x=S.pathname+S.search+S.hash)}if(s.isStaticRequest)throw u.headers.set("Location",x),u;return{type:br.redirect,status:v,location:x,revalidate:u.headers.get("X-Remix-Revalidate")!==null,reloadDocument:u.headers.get("X-Remix-Reload-Document")!==null}}if(s.isRouteRequest)throw{type:l===br.error?br.error:br.data,response:u};let b,C=u.headers.get("Content-Type");return C&&/\bapplication\/json\b/.test(C)?b=await u.json():b=await u.text(),l===br.error?{type:l,error:new eM(v,u.statusText,b),headers:u.headers}:{type:br.data,data:b,statusCode:u.status,headers:u.headers}}if(l===br.error)return{type:l,error:u};if(Bre(u)){var p,y;return{type:br.deferred,deferredData:u,statusCode:(p=u.init)==null?void 0:p.status,headers:((y=u.init)==null?void 0:y.headers)&&new Headers(u.init.headers)}}return{type:br.data,data:u}}function Ih(e,t,n,r){let o=e.createURL(H7(t)).toString(),i={signal:n};if(r&&ya(r.formMethod)){let{formMethod:a,formEncType:s}=r;i.method=a.toUpperCase(),s==="application/json"?(i.headers=new Headers({"Content-Type":s}),i.body=JSON.stringify(r.json)):s==="text/plain"?i.body=r.text:s==="application/x-www-form-urlencoded"&&r.formData?i.body=v_(r.formData):i.body=r.formData}return new Request(o,i)}function v_(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function gO(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function Nre(e,t,n,r,o){let i={},a=null,s,l=!1,u={};return n.forEach((c,f)=>{let p=t[f].route.id;if(Kt(!jf(c),"Cannot handle redirect results in processLoaderData"),ym(c)){let y=_f(e,p),v=c.error;r&&(v=Object.values(r)[0],r=void 0),a=a||{},a[y.route.id]==null&&(a[y.route.id]=v),i[p]=void 0,l||(l=!0,s=j7(c.error)?c.error.status:500),c.headers&&(u[p]=c.headers)}else oc(c)?(o.set(p,c.deferredData),i[p]=c.deferredData.data):i[p]=c.data,c.statusCode!=null&&c.statusCode!==200&&!l&&(s=c.statusCode),c.headers&&(u[p]=c.headers)}),r&&(a=r,i[Object.keys(r)[0]]=void 0),{loaderData:i,errors:a,statusCode:s||200,loaderHeaders:u}}function vO(e,t,n,r,o,i,a,s){let{loaderData:l,errors:u}=Nre(t,n,r,o,s);for(let c=0;cr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function bO(e){let t=e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Li(e,t){let{pathname:n,routeId:r,method:o,type:i}=t===void 0?{}:t,a="Unknown Server Error",s="Unknown @remix-run/router error";return e===400?(a="Bad Request",o&&n&&r?s="You made a "+o+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":i==="defer-action"?s="defer() is not supported in actions":i==="invalid-body"&&(s="Unable to encode submission body")):e===403?(a="Forbidden",s='Route "'+r+'" does not match URL "'+n+'"'):e===404?(a="Not Found",s='No route matches URL "'+n+'"'):e===405&&(a="Method Not Allowed",o&&n&&r?s="You made a "+o.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":o&&(s='Invalid request method "'+o.toUpperCase()+'"')),new eM(e||500,a,new Error(s),!0)}function xO(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(jf(n))return{result:n,idx:t}}}function H7(e){let t=typeof e=="string"?ys(e):e;return Lc(ar({},t,{hash:""}))}function zre(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function oc(e){return e.type===br.deferred}function ym(e){return e.type===br.error}function jf(e){return(e&&e.type)===br.redirect}function Bre(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function Hre(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function Wre(e){return Ere.has(e.toLowerCase())}function ya(e){return Mre.has(e.toLowerCase())}async function wO(e,t,n,r,o,i){for(let a=0;af.route.id===l.route.id),c=u!=null&&!B7(u,l)&&(i&&i[l.route.id])!==void 0;if(oc(s)&&(o||c)){let f=r[a];Kt(f,"Expected an AbortSignal for revalidating fetcher deferred result"),await W7(s,f,o).then(p=>{p&&(n[a]=p||n[a])})}}}async function W7(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:br.data,data:e.deferredData.unwrappedData}}catch(o){return{type:br.error,error:o}}return{type:br.data,data:e.deferredData.data}}}function tM(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function y_(e,t){let n=typeof t=="string"?ys(t).search:t.search;if(e[e.length-1].route.index&&tM(n||""))return e[e.length-1];let r=Wb(e);return r[r.length-1]}function CO(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:i,json:a}=e;if(!(!t||!n||!r)){if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o};if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:i,json:void 0,text:void 0};if(a!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:a,text:void 0}}}function pS(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function Vre(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function Rh(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function Ure(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function sf(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}/** - * React Router v6.16.0 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function hy(){return hy=Object.assign?Object.assign.bind():function(e){for(var t=1;tl.pathnameBase)),a=m.useRef(!1);return U7(()=>{a.current=!0}),m.useCallback(function(l,u){if(u===void 0&&(u={}),!a.current)return;if(typeof l=="number"){n.go(l);return}let c=JP(l,JSON.parse(i),o,u.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:el([t,c.pathname])),(u.replace?n.replace:n.push)(c,u.state,u)},[t,n,i,o,e])}const Yre=m.createContext(null);function Xre(e){let t=m.useContext(xu).outlet;return t&&m.createElement(Yre.Provider,{value:e},t)}function rM(e,t){let{relative:n}=t===void 0?{}:t,{matches:r}=m.useContext(xu),{pathname:o}=Jg(),i=JSON.stringify(Wb(r).map(a=>a.pathnameBase));return m.useMemo(()=>JP(e,JSON.parse(i),o,n==="path"),[e,i,o,n])}function Qre(e,t,n){Zg()||Kt(!1);let{navigator:r}=m.useContext(rd),{matches:o}=m.useContext(xu),i=o[o.length-1],a=i?i.params:{};i&&i.pathname;let s=i?i.pathnameBase:"/";i&&i.route;let l=Jg(),u;if(t){var c;let b=typeof t=="string"?ys(t):t;s==="/"||(c=b.pathname)!=null&&c.startsWith(s)||Kt(!1),u=b}else u=l;let f=u.pathname||"/",p=s==="/"?f:f.slice(s.length)||"/",y=$f(e,{pathname:p}),v=noe(y&&y.map(b=>Object.assign({},b,{params:Object.assign({},a,b.params),pathname:el([s,r.encodeLocation?r.encodeLocation(b.pathname).pathname:b.pathname]),pathnameBase:b.pathnameBase==="/"?s:el([s,r.encodeLocation?r.encodeLocation(b.pathnameBase).pathname:b.pathnameBase])})),o,n);return t&&v?m.createElement(Ub.Provider,{value:{location:hy({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:wr.Pop}},v):v}function Zre(){let e=aoe(),t=j7(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},i=null;return m.createElement(m.Fragment,null,m.createElement("h2",null,"Unexpected Application Error!"),m.createElement("h3",{style:{fontStyle:"italic"}},t),n?m.createElement("pre",{style:o},n):null,i)}const Jre=m.createElement(Zre,null);class eoe extends m.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error||n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error?m.createElement(xu.Provider,{value:this.props.routeContext},m.createElement(V7.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function toe(e){let{routeContext:t,match:n,children:r}=e,o=m.useContext(Vb);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),m.createElement(xu.Provider,{value:t},r)}function noe(e,t,n){var r;if(t===void 0&&(t=[]),n===void 0&&(n=null),e==null){var o;if((o=n)!=null&&o.errors)e=n.matches;else return null}let i=e,a=(r=n)==null?void 0:r.errors;if(a!=null){let s=i.findIndex(l=>l.route.id&&(a==null?void 0:a[l.route.id]));s>=0||Kt(!1),i=i.slice(0,Math.min(i.length,s+1))}return i.reduceRight((s,l,u)=>{let c=l.route.id?a==null?void 0:a[l.route.id]:null,f=null;n&&(f=l.route.errorElement||Jre);let p=t.concat(i.slice(0,u+1)),y=()=>{let v;return c?v=f:l.route.Component?v=m.createElement(l.route.Component,null):l.route.element?v=l.route.element:v=s,m.createElement(toe,{match:l,routeContext:{outlet:s,matches:p,isDataRoute:n!=null},children:v})};return n&&(l.route.ErrorBoundary||l.route.errorElement||u===0)?m.createElement(eoe,{location:n.location,revalidation:n.revalidation,component:f,error:c,children:y(),routeContext:{outlet:null,matches:p,isDataRoute:!0}}):y()},null)}var G7=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(G7||{}),my=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(my||{});function roe(e){let t=m.useContext(Vb);return t||Kt(!1),t}function ooe(e){let t=m.useContext(nM);return t||Kt(!1),t}function ioe(e){let t=m.useContext(xu);return t||Kt(!1),t}function q7(e){let t=ioe(),n=t.matches[t.matches.length-1];return n.route.id||Kt(!1),n.route.id}function aoe(){var e;let t=m.useContext(V7),n=ooe(my.UseRouteError),r=q7(my.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function soe(){let{router:e}=roe(G7.UseNavigateStable),t=q7(my.UseNavigateStable),n=m.useRef(!1);return U7(()=>{n.current=!0}),m.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,hy({fromRouteId:t},i)))},[e,t])}const loe="startTransition",SO=Qf[loe];function uoe(e){let{fallbackElement:t,router:n,future:r}=e,[o,i]=m.useState(n.state),{v7_startTransition:a}=r||{},s=m.useCallback(f=>{a&&SO?SO(()=>i(f)):i(f)},[i,a]);m.useLayoutEffect(()=>n.subscribe(s),[n,s]);let l=m.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:f=>n.navigate(f),push:(f,p,y)=>n.navigate(f,{state:p,preventScrollReset:y==null?void 0:y.preventScrollReset}),replace:(f,p,y)=>n.navigate(f,{replace:!0,state:p,preventScrollReset:y==null?void 0:y.preventScrollReset})}),[n]),u=n.basename||"/",c=m.useMemo(()=>({router:n,navigator:l,static:!1,basename:u}),[n,l,u]);return m.createElement(m.Fragment,null,m.createElement(Vb.Provider,{value:c},m.createElement(nM.Provider,{value:o},m.createElement(foe,{basename:u,location:o.location,navigationType:o.historyAction,navigator:l},o.initialized?m.createElement(coe,{routes:n.routes,state:o}):t))),null)}function coe(e){let{routes:t,state:n}=e;return Qre(t,void 0,n)}function doe(e){return Xre(e.context)}function Na(e){Kt(!1)}function foe(e){let{basename:t="/",children:n=null,location:r,navigationType:o=wr.Pop,navigator:i,static:a=!1}=e;Zg()&&Kt(!1);let s=t.replace(/^\/*/,"/"),l=m.useMemo(()=>({basename:s,navigator:i,static:a}),[s,i,a]);typeof r=="string"&&(r=ys(r));let{pathname:u="/",search:c="",hash:f="",state:p=null,key:y="default"}=r,v=m.useMemo(()=>{let b=Fp(u,s);return b==null?null:{location:{pathname:b,search:c,hash:f,state:p,key:y},navigationType:o}},[s,u,c,f,p,y,o]);return v==null?null:m.createElement(rd.Provider,{value:l},m.createElement(Ub.Provider,{children:n,value:v}))}new Promise(()=>{});function b_(e,t){t===void 0&&(t=[]);let n=[];return m.Children.forEach(e,(r,o)=>{if(!m.isValidElement(r))return;let i=[...t,o];if(r.type===m.Fragment){n.push.apply(n,b_(r.props.children,i));return}r.type!==Na&&Kt(!1),!r.props.index||!r.props.children||Kt(!1);let a={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(a.children=b_(r.props.children,i)),n.push(a)}),n}function poe(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:m.createElement(e.Component),Component:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:m.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** - * React Router DOM v6.16.0 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function ip(){return ip=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function hoe(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function moe(e,t){return e.button===0&&(!t||t==="_self")&&!hoe(e)}const goe=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],voe=["aria-current","caseSensitive","className","end","style","to","children"];function yoe(e,t){return Fre({basename:t==null?void 0:t.basename,future:ip({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:rre({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||boe(),routes:e,mapRouteProperties:poe}).initialize()}function boe(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=ip({},t,{errors:xoe(t.errors)})),t}function xoe(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,o]of t)if(o&&o.__type==="RouteErrorResponse")n[r]=new eM(o.status,o.statusText,o.data,o.internal===!0);else if(o&&o.__type==="Error"){if(o.__subType){let i=window[o.__subType];if(typeof i=="function")try{let a=new i(o.message);a.stack="",n[r]=a}catch{}}if(n[r]==null){let i=new Error(o.message);i.stack="",n[r]=i}}else n[r]=o;return n}const woe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Coe=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Soe=m.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:a,state:s,target:l,to:u,preventScrollReset:c}=t,f=K7(t,goe),{basename:p}=m.useContext(rd),y,v=!1;if(typeof u=="string"&&Coe.test(u)&&(y=u,woe))try{let w=new URL(window.location.href),S=u.startsWith("//")?new URL(w.protocol+u):new URL(u),$=Fp(S.pathname,p);S.origin===w.origin&&$!=null?u=$+S.search+S.hash:v=!0}catch{}let b=Gre(u,{relative:o}),C=_oe(u,{replace:a,state:s,target:l,preventScrollReset:c,relative:o});function x(w){r&&r(w),w.defaultPrevented||C(w)}return m.createElement("a",ip({},f,{href:y||b,onClick:v||i?r:x,ref:n,target:l}))}),$oe=m.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:o=!1,className:i="",end:a=!1,style:s,to:l,children:u}=t,c=K7(t,voe),f=rM(l,{relative:c.relative}),p=Jg(),y=m.useContext(nM),{navigator:v}=m.useContext(rd),b=v.encodeLocation?v.encodeLocation(f).pathname:f.pathname,C=p.pathname,x=y&&y.navigation&&y.navigation.location?y.navigation.location.pathname:null;o||(C=C.toLowerCase(),x=x?x.toLowerCase():null,b=b.toLowerCase());let w=C===b||!a&&C.startsWith(b)&&C.charAt(b.length)==="/",S=x!=null&&(x===b||!a&&x.startsWith(b)&&x.charAt(b.length)==="/"),$=w?r:void 0,T;typeof i=="function"?T=i({isActive:w,isPending:S}):T=[i,w?"active":null,S?"pending":null].filter(Boolean).join(" ");let k=typeof s=="function"?s({isActive:w,isPending:S}):s;return m.createElement(Soe,ip({},c,{"aria-current":$,className:T,ref:n,style:k,to:l}),typeof u=="function"?u({isActive:w,isPending:S}):u)});var $O;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher"})($O||($O={}));var _O;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(_O||(_O={}));function _oe(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:a}=t===void 0?{}:t,s=qre(),l=Jg(),u=rM(e,{relative:a});return m.useCallback(c=>{if(moe(c,n)){c.preventDefault();let f=r!==void 0?r:Lc(l)===Lc(u);s(e,{replace:f,state:o,preventScrollReset:i,relative:a})}},[l,s,u,r,o,n,e,i,a])}function koe(e,t){return()=>null}function P(){return P=Object.assign?Object.assign.bind():function(e){for(var t=1;t{t[n]=Y7(e[n])}),t}function co(e,t,n={clone:!0}){const r=n.clone?P({},e):e;return Us(e)&&Us(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(Us(t[o])&&o in e&&Us(e[o])?r[o]=co(e[o],t[o],n):n.clone?r[o]=Us(t[o])?Y7(t[o]):t[o]:r[o]=t[o])}),r}var X7={exports:{}},Poe="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Moe=Poe,Toe=Moe;function Q7(){}function Z7(){}Z7.resetWarningCache=Q7;var Eoe=function(){function e(r,o,i,a,s,l){if(l!==Toe){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Z7,resetWarningCache:Q7};return n.PropTypes=n,n};X7.exports=Eoe();var Ioe=X7.exports;const R=Or(Ioe);function uu(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;nn==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function wu(e,t=166){let n;function r(...o){const i=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(i,t)}return r.clear=()=>{clearTimeout(n)},r}function Aoe(e,t){return()=>null}function x1(e,t){var n,r;return m.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function Gn(e){return e&&e.ownerDocument||document}function ea(e){return Gn(e).defaultView||window}function Foe(e,t){return()=>null}function Dc(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const Loe=typeof window<"u"?m.useLayoutEffect:m.useEffect,pn=Loe;let kO=0;function Doe(e){const[t,n]=m.useState(e),r=e||t;return m.useEffect(()=>{t==null&&(kO+=1,n(`mui-${kO}`))},[t]),r}const PO=Qf["useId".toString()];function ln(e){if(PO!==void 0){const t=PO();return e??t}return Doe(e)}function joe(e,t,n,r,o){return null}function nu({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=m.useRef(e!==void 0),[i,a]=m.useState(t),s=o?e:i,l=m.useCallback(u=>{o||a(u)},[]);return[s,l]}function Dn(e){const t=m.useRef(e);return pn(()=>{t.current=e}),m.useRef((...n)=>(0,t.current)(...n)).current}function on(...e){return m.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{Dc(n,t)})},e)}let nx=!0,w_=!1,MO;const Noe={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function zoe(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&Noe[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function Boe(e){e.metaKey||e.altKey||e.ctrlKey||(nx=!0)}function hS(){nx=!1}function Hoe(){this.visibilityState==="hidden"&&w_&&(nx=!0)}function Woe(e){e.addEventListener("keydown",Boe,!0),e.addEventListener("mousedown",hS,!0),e.addEventListener("pointerdown",hS,!0),e.addEventListener("touchstart",hS,!0),e.addEventListener("visibilitychange",Hoe,!0)}function Voe(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return nx||zoe(t)}function aM(){const e=m.useCallback(o=>{o!=null&&Woe(o.ownerDocument)},[]),t=m.useRef(!1);function n(){return t.current?(w_=!0,window.clearTimeout(MO),MO=window.setTimeout(()=>{w_=!1},100),t.current=!1,!0):!1}function r(o){return Voe(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function ej(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let Ud;function tj(){if(Ud)return Ud;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),Ud="reverse",e.scrollLeft>0?Ud="default":(e.scrollLeft=1,e.scrollLeft===0&&(Ud="negative")),document.body.removeChild(e),Ud}function Uoe(e,t){const n=e.scrollLeft;if(t!=="rtl")return n;switch(tj()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}const Goe=e=>{const t=m.useRef({});return m.useEffect(()=>{t.current=e}),t.current},sM=Goe;function lM(e,t){const n=P({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=P({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},!i||!Object.keys(i)?n[r]=o:!o||!Object.keys(o)?n[r]=i:(n[r]=P({},i),Object.keys(o).forEach(a=>{n[r][a]=lM(o[a],i[a])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function qe(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((i,a)=>{if(a){const s=t(a);s!==""&&i.push(s),n&&n[a]&&i.push(n[a])}return i},[]).join(" ")}),r}const TO=e=>e,qoe=()=>{let e=TO;return{configure(t){e=t},generate(t){return e(t)},reset(){e=TO}}},Koe=qoe(),uM=Koe,Yoe={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function yt(e,t,n="Mui"){const r=Yoe[t];return r?`${n}-${r}`:`${uM.generate(e)}-${t}`}function bt(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=yt(e,o,n)}),r}const e0="$$material";function be(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}function nj(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Xoe=/^((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|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)-.*))$/,Qoe=nj(function(e){return Xoe.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function Zoe(e){if(e.sheet)return e.sheet;for(var t=0;t0?Kr(Lp,--Xo):0,ap--,Cr===10&&(ap=1,ox--),Cr}function gi(){return Cr=Xo2||Jm(Cr)>3?"":" "}function die(e,t){for(;--t&&gi()&&!(Cr<48||Cr>102||Cr>57&&Cr<65||Cr>70&&Cr<97););return t0(e,w1()+(t<6&&ns()==32&&gi()==32))}function S_(e){for(;gi();)switch(Cr){case e:return Xo;case 34:case 39:e!==34&&e!==39&&S_(Cr);break;case 40:e===41&&S_(e);break;case 92:gi();break}return Xo}function fie(e,t){for(;gi()&&e+Cr!==47+10;)if(e+Cr===42+42&&ns()===47)break;return"/*"+t0(t,Xo-1)+"*"+rx(e===47?e:gi())}function pie(e){for(;!Jm(ns());)gi();return t0(e,Xo)}function hie(e){return lj(S1("",null,null,null,[""],e=sj(e),0,[0],e))}function S1(e,t,n,r,o,i,a,s,l){for(var u=0,c=0,f=a,p=0,y=0,v=0,b=1,C=1,x=1,w=0,S="",$=o,T=i,k=r,M=S;C;)switch(v=w,w=gi()){case 40:if(v!=108&&Kr(M,f-1)==58){C_(M+=wn(C1(w),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:M+=C1(w);break;case 9:case 10:case 13:case 32:M+=cie(v);break;case 92:M+=die(w1()-1,7);continue;case 47:switch(ns()){case 42:case 47:Ov(mie(fie(gi(),w1()),t,n),l);break;default:M+="/"}break;case 123*b:s[u++]=Va(M)*x;case 125*b:case 59:case 0:switch(w){case 0:case 125:C=0;case 59+c:x==-1&&(M=wn(M,/\f/g,"")),y>0&&Va(M)-f&&Ov(y>32?IO(M+";",r,n,f-1):IO(wn(M," ","")+";",r,n,f-2),l);break;case 59:M+=";";default:if(Ov(k=EO(M,t,n,u,c,o,s,S,$=[],T=[],f),i),w===123)if(c===0)S1(M,t,k,k,$,i,f,s,T);else switch(p===99&&Kr(M,3)===110?100:p){case 100:case 108:case 109:case 115:S1(e,k,k,r&&Ov(EO(e,k,k,0,0,o,s,S,o,$=[],f),T),o,T,f,s,r?$:T);break;default:S1(M,k,k,k,[""],T,0,s,T)}}u=c=y=0,b=x=1,S=M="",f=a;break;case 58:f=1+Va(M),y=v;default:if(b<1){if(w==123)--b;else if(w==125&&b++==0&&uie()==125)continue}switch(M+=rx(w),w*b){case 38:x=c>0?1:(M+="\f",-1);break;case 44:s[u++]=(Va(M)-1)*x,x=1;break;case 64:ns()===45&&(M+=C1(gi())),p=ns(),c=f=Va(S=M+=pie(w1())),w++;break;case 45:v===45&&Va(M)==2&&(b=0)}}return i}function EO(e,t,n,r,o,i,a,s,l,u,c){for(var f=o-1,p=o===0?i:[""],y=fM(p),v=0,b=0,C=0;v0?p[x]+" "+w:wn(w,/&\f/g,p[x])))&&(l[C++]=S);return ix(e,t,n,o===0?cM:s,l,u,c)}function mie(e,t,n){return ix(e,t,n,rj,rx(lie()),Zm(e,2,-2),0)}function IO(e,t,n,r){return ix(e,t,n,dM,Zm(e,0,r),Zm(e,r+1,-1),r)}function Nf(e,t){for(var n="",r=fM(e),o=0;o6)switch(Kr(e,t+1)){case 109:if(Kr(e,t+4)!==45)break;case 102:return wn(e,/(.+:)(.+)-([^]+)/,"$1"+bn+"$2-$3$1"+gy+(Kr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~C_(e,"stretch")?uj(wn(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Kr(e,t+1)!==115)break;case 6444:switch(Kr(e,Va(e)-3-(~C_(e,"!important")&&10))){case 107:return wn(e,":",":"+bn)+e;case 101:return wn(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+bn+(Kr(e,14)===45?"inline-":"")+"box$3$1"+bn+"$2$3$1"+io+"$2box$3")+e}break;case 5936:switch(Kr(e,t+11)){case 114:return bn+e+io+wn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return bn+e+io+wn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return bn+e+io+wn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return bn+e+io+e+e}return e}var $ie=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case dM:t.return=uj(t.value,t.length);break;case oj:return Nf([Oh(t,{value:wn(t.value,"@","@"+bn)})],o);case cM:if(t.length)return sie(t.props,function(i){switch(aie(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Nf([Oh(t,{props:[wn(i,/:(read-\w+)/,":"+gy+"$1")]})],o);case"::placeholder":return Nf([Oh(t,{props:[wn(i,/:(plac\w+)/,":"+bn+"input-$1")]}),Oh(t,{props:[wn(i,/:(plac\w+)/,":"+gy+"$1")]}),Oh(t,{props:[wn(i,/:(plac\w+)/,io+"input-$1")]})],o)}return""})}},_ie=[$ie],kie=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(b){var C=b.getAttribute("data-emotion");C.indexOf(" ")!==-1&&(document.head.appendChild(b),b.setAttribute("data-s",""))})}var o=t.stylisPlugins||_ie,i={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(b){for(var C=b.getAttribute("data-emotion").split(" "),x=1;x=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var jie={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Nie=/[A-Z]|^ms/g,zie=/_EMO_([^_]+?)_([^]*?)_EMO_/g,gj=function(t){return t.charCodeAt(1)===45},AO=function(t){return t!=null&&typeof t!="boolean"},mS=nj(function(e){return gj(e)?e:e.replace(Nie,"-$&").toLowerCase()}),FO=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(zie,function(r,o,i){return Ua={name:o,styles:i,next:Ua},o})}return jie[t]!==1&&!gj(t)&&typeof n=="number"&&n!==0?n+"px":n};function eg(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return Ua={name:n.name,styles:n.styles,next:Ua},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)Ua={name:r.name,styles:r.styles,next:Ua},r=r.next;var o=n.styles+";";return o}return Bie(e,t,n)}case"function":{if(e!==void 0){var i=Ua,a=n(e);return Ua=i,eg(e,t,a)}break}}if(t==null)return n;var s=t[n];return s!==void 0?s:n}function Bie(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o96?Kie:Yie},NO=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(a){return t.__emotion_forwardProp(a)&&i(a)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},Xie=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return hj(n,r,o),Wie(function(){return mj(n,r,o)}),null},Qie=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,a;n!==void 0&&(i=n.label,a=n.target);var s=NO(t,n,r),l=s||jO(o),u=!l("as");return function(){var c=arguments,f=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&f.push("label:"+i+";"),c[0]==null||c[0].raw===void 0)f.push.apply(f,c);else{f.push(c[0][0]);for(var p=c.length,y=1;yt(Jie(o)?n:o):t;return g.jsx(qie,{styles:r})}/** - * @mui/styled-engine v5.14.18 - * - * @license MIT - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */function xj(e,t){return $_(e,t)}const tae=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},nae=["values","unit","step"],rae=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>P({},n,{[r.key]:r.val}),{})};function oae(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=be(e,nae),i=rae(t),a=Object.keys(i);function s(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n})`}function l(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-r/100}${n})`}function u(p,y){const v=a.indexOf(y);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n}) and (max-width:${(v!==-1&&typeof t[a[v]]=="number"?t[a[v]]:y)-r/100}${n})`}function c(p){return a.indexOf(p)+1`@media (min-width:${vM[e]}px)`};function Qo(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||zO;return t.reduce((a,s,l)=>(a[i.up(i.keys[l])]=n(t[l]),a),{})}if(typeof t=="object"){const i=r.breakpoints||zO;return Object.keys(t).reduce((a,s)=>{if(Object.keys(i.values||vM).indexOf(s)!==-1){const l=i.up(s);a[l]=n(t[s],s)}else{const l=s;a[l]=t[l]}return a},{})}return n(t)}function wj(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function Cj(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function sae(e,...t){const n=wj(e),r=[n,...t].reduce((o,i)=>co(o,i),{});return Cj(Object.keys(n),r)}function lae(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((o,i)=>{i{e[o]!=null&&(n[o]=!0)}),n}function mc({values:e,breakpoints:t,base:n}){const r=n||lae(e,t),o=Object.keys(r);if(o.length===0)return e;let i;return o.reduce((a,s,l)=>(Array.isArray(e)?(a[s]=e[l]!=null?e[l]:e[i],i=l):typeof e=="object"?(a[s]=e[s]!=null?e[s]:e[i],i=s):a[s]=e,a),{})}function gx(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function vy(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=gx(e,n)||r,t&&(o=t(o,r,e)),o}function $n(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=a=>{if(a[t]==null)return null;const s=a[t],l=a.theme,u=gx(l,r)||{};return Qo(a,s,f=>{let p=vy(u,o,f);return f===p&&typeof f=="string"&&(p=vy(u,o,`${t}${f==="default"?"":je(f)}`,f)),n===!1?p:{[n]:p}})};return i.propTypes={},i.filterProps=[t],i}function uae(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const cae={m:"margin",p:"padding"},dae={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},BO={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},fae=uae(e=>{if(e.length>2)if(BO[e])e=BO[e];else return[e];const[t,n]=e.split(""),r=cae[t],o=dae[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),yM=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],bM=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...yM,...bM];function n0(e,t,n,r){var o;const i=(o=gx(e,t,!1))!=null?o:n;return typeof i=="number"?a=>typeof a=="string"?a:i*a:Array.isArray(i)?a=>typeof a=="string"?a:i[a]:typeof i=="function"?i:()=>{}}function xM(e){return n0(e,"spacing",8)}function jc(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function pae(e,t){return n=>e.reduce((r,o)=>(r[o]=jc(t,n),r),{})}function hae(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=fae(n),i=pae(o,r),a=e[n];return Qo(e,a,i)}function Sj(e,t){const n=xM(e.theme);return Object.keys(e).map(r=>hae(e,t,r,n)).reduce(bm,{})}function dr(e){return Sj(e,yM)}dr.propTypes={};dr.filterProps=yM;function fr(e){return Sj(e,bM)}fr.propTypes={};fr.filterProps=bM;function mae(e=8){if(e.mui)return e;const t=xM({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(i=>{const a=t(i);return typeof a=="number"?`${a}px`:a}).join(" ");return n.mui=!0,n}function vx(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>t[i]?bm(o,t[i](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function Xa(e){return typeof e!="number"?e:`${e}px solid`}const gae=$n({prop:"border",themeKey:"borders",transform:Xa}),vae=$n({prop:"borderTop",themeKey:"borders",transform:Xa}),yae=$n({prop:"borderRight",themeKey:"borders",transform:Xa}),bae=$n({prop:"borderBottom",themeKey:"borders",transform:Xa}),xae=$n({prop:"borderLeft",themeKey:"borders",transform:Xa}),wae=$n({prop:"borderColor",themeKey:"palette"}),Cae=$n({prop:"borderTopColor",themeKey:"palette"}),Sae=$n({prop:"borderRightColor",themeKey:"palette"}),$ae=$n({prop:"borderBottomColor",themeKey:"palette"}),_ae=$n({prop:"borderLeftColor",themeKey:"palette"}),yx=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=n0(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:jc(t,r)});return Qo(e,e.borderRadius,n)}return null};yx.propTypes={};yx.filterProps=["borderRadius"];vx(gae,vae,yae,bae,xae,wae,Cae,Sae,$ae,_ae,yx);const bx=e=>{if(e.gap!==void 0&&e.gap!==null){const t=n0(e.theme,"spacing",8),n=r=>({gap:jc(t,r)});return Qo(e,e.gap,n)}return null};bx.propTypes={};bx.filterProps=["gap"];const xx=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=n0(e.theme,"spacing",8),n=r=>({columnGap:jc(t,r)});return Qo(e,e.columnGap,n)}return null};xx.propTypes={};xx.filterProps=["columnGap"];const wx=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=n0(e.theme,"spacing",8),n=r=>({rowGap:jc(t,r)});return Qo(e,e.rowGap,n)}return null};wx.propTypes={};wx.filterProps=["rowGap"];const kae=$n({prop:"gridColumn"}),Pae=$n({prop:"gridRow"}),Mae=$n({prop:"gridAutoFlow"}),Tae=$n({prop:"gridAutoColumns"}),Eae=$n({prop:"gridAutoRows"}),Iae=$n({prop:"gridTemplateColumns"}),Rae=$n({prop:"gridTemplateRows"}),Oae=$n({prop:"gridTemplateAreas"}),Aae=$n({prop:"gridArea"});vx(bx,xx,wx,kae,Pae,Mae,Tae,Eae,Iae,Rae,Oae,Aae);function zf(e,t){return t==="grey"?t:e}const Fae=$n({prop:"color",themeKey:"palette",transform:zf}),Lae=$n({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:zf}),Dae=$n({prop:"backgroundColor",themeKey:"palette",transform:zf});vx(Fae,Lae,Dae);function di(e){return e<=1&&e!==0?`${e*100}%`:e}const jae=$n({prop:"width",transform:di}),wM=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o;const i=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||vM[n];return i?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:di(n)}};return Qo(e,e.maxWidth,t)}return null};wM.filterProps=["maxWidth"];const Nae=$n({prop:"minWidth",transform:di}),zae=$n({prop:"height",transform:di}),Bae=$n({prop:"maxHeight",transform:di}),Hae=$n({prop:"minHeight",transform:di});$n({prop:"size",cssProperty:"width",transform:di});$n({prop:"size",cssProperty:"height",transform:di});const Wae=$n({prop:"boxSizing"});vx(jae,wM,Nae,zae,Bae,Hae,Wae);const Vae={border:{themeKey:"borders",transform:Xa},borderTop:{themeKey:"borders",transform:Xa},borderRight:{themeKey:"borders",transform:Xa},borderBottom:{themeKey:"borders",transform:Xa},borderLeft:{themeKey:"borders",transform:Xa},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:yx},color:{themeKey:"palette",transform:zf},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:zf},backgroundColor:{themeKey:"palette",transform:zf},p:{style:fr},pt:{style:fr},pr:{style:fr},pb:{style:fr},pl:{style:fr},px:{style:fr},py:{style:fr},padding:{style:fr},paddingTop:{style:fr},paddingRight:{style:fr},paddingBottom:{style:fr},paddingLeft:{style:fr},paddingX:{style:fr},paddingY:{style:fr},paddingInline:{style:fr},paddingInlineStart:{style:fr},paddingInlineEnd:{style:fr},paddingBlock:{style:fr},paddingBlockStart:{style:fr},paddingBlockEnd:{style:fr},m:{style:dr},mt:{style:dr},mr:{style:dr},mb:{style:dr},ml:{style:dr},mx:{style:dr},my:{style:dr},margin:{style:dr},marginTop:{style:dr},marginRight:{style:dr},marginBottom:{style:dr},marginLeft:{style:dr},marginX:{style:dr},marginY:{style:dr},marginInline:{style:dr},marginInlineStart:{style:dr},marginInlineEnd:{style:dr},marginBlock:{style:dr},marginBlockStart:{style:dr},marginBlockEnd:{style:dr},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:bx},rowGap:{style:wx},columnGap:{style:xx},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:di},maxWidth:{style:wM},minWidth:{transform:di},height:{transform:di},maxHeight:{transform:di},minHeight:{transform:di},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},Cx=Vae;function Uae(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function Gae(e,t){return typeof e=="function"?e(t):e}function qae(){function e(n,r,o,i){const a={[n]:r,theme:o},s=i[n];if(!s)return{[n]:r};const{cssProperty:l=n,themeKey:u,transform:c,style:f}=s;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const p=gx(o,u)||{};return f?f(a):Qo(a,r,v=>{let b=vy(p,c,v);return v===b&&typeof v=="string"&&(b=vy(p,c,`${n}${v==="default"?"":je(v)}`,v)),l===!1?b:{[l]:b}})}function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const a=(r=i.unstable_sxConfig)!=null?r:Cx;function s(l){let u=l;if(typeof l=="function")u=l(i);else if(typeof l!="object")return l;if(!u)return null;const c=wj(i.breakpoints),f=Object.keys(c);let p=c;return Object.keys(u).forEach(y=>{const v=Gae(u[y],i);if(v!=null)if(typeof v=="object")if(a[y])p=bm(p,e(y,v,i,a));else{const b=Qo({theme:i},v,C=>({[y]:C}));Uae(b,v)?p[y]=t({sx:v,theme:i}):p=bm(p,b)}else p=bm(p,e(y,v,i,a))}),Cj(f,p)}return Array.isArray(o)?o.map(s):s(o)}return t}const $j=qae();$j.filterProps=["sx"];const Sx=$j,Kae=["breakpoints","palette","spacing","shape"];function $x(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=be(e,Kae),s=oae(n),l=mae(o);let u=co({breakpoints:s,direction:"ltr",components:{},palette:P({mode:"light"},r),spacing:l,shape:P({},aae,i)},a);return u=t.reduce((c,f)=>co(c,f),u),u.unstable_sxConfig=P({},Cx,a==null?void 0:a.unstable_sxConfig),u.unstable_sx=function(f){return Sx({sx:f,theme:this})},u}function Yae(e){return Object.keys(e).length===0}function _j(e=null){const t=m.useContext(tg);return!t||Yae(t)?e:t}const Xae=$x();function _x(e=Xae){return _j(e)}function Qae({styles:e,themeId:t,defaultTheme:n={}}){const r=_x(n),o=typeof e=="function"?e(t&&r[t]||r):e;return g.jsx(eae,{styles:o})}const Zae=["sx"],Jae=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:Cx;return Object.keys(e).forEach(i=>{o[i]?r.systemProps[i]=e[i]:r.otherProps[i]=e[i]}),r};function kx(e){const{sx:t}=e,n=be(e,Zae),{systemProps:r,otherProps:o}=Jae(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...a)=>{const s=t(...a);return Us(s)?P({},r,s):r}:i=P({},r,t),P({},o,{sx:i})}function kj(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;ts!=="theme"&&s!=="sx"&&s!=="as"})(Sx);return m.forwardRef(function(l,u){const c=_x(n),f=kx(l),{className:p,component:y="div"}=f,v=be(f,ese);return g.jsx(i,P({as:y,ref:u,className:ze(p,o?o(r):r),theme:t&&c[t]||c},v))})}const tse=Pj(),nse=tse,rse=["variant"];function HO(e){return e.length===0}function Mj(e){const{variant:t}=e,n=be(e,rse);let r=t||"";return Object.keys(n).sort().forEach(o=>{o==="color"?r+=HO(r)?e[o]:je(e[o]):r+=`${HO(r)?o:je(o)}${je(e[o].toString())}`}),r}const ose=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function ise(e){return Object.keys(e).length===0}function ase(e){return typeof e=="string"&&e.charCodeAt(0)>96}const sse=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,yy=e=>{const t={};return e&&e.forEach(n=>{const r=Mj(n.props);t[r]=n.style}),t},lse=(e,t)=>{let n=[];return t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants),yy(n)},by=(e,t,n)=>{const{ownerState:r={}}=e,o=[];return n&&n.forEach(i=>{let a=!0;Object.keys(i.props).forEach(s=>{r[s]!==i.props[s]&&e[s]!==i.props[s]&&(a=!1)}),a&&o.push(t[Mj(i.props)])}),o},use=(e,t,n,r)=>{var o;const i=n==null||(o=n.components)==null||(o=o[r])==null?void 0:o.variants;return by(e,t,i)};function xm(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const cse=$x(),dse=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function $1({defaultTheme:e,theme:t,themeId:n}){return ise(t)?e:t[n]||t}function fse(e){return e?(t,n)=>n[e]:null}const WO=({styledArg:e,props:t,defaultTheme:n,themeId:r})=>{const o=e(P({},t,{theme:$1(P({},t,{defaultTheme:n,themeId:r}))}));let i;if(o&&o.variants&&(i=o.variants,delete o.variants),i){const a=by(t,yy(i),i);return[o,...a]}return o};function Tj(e={}){const{themeId:t,defaultTheme:n=cse,rootShouldForwardProp:r=xm,slotShouldForwardProp:o=xm}=e,i=a=>Sx(P({},a,{theme:$1(P({},a,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(a,s={})=>{tae(a,$=>$.filter(T=>!(T!=null&&T.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:c,skipSx:f,overridesResolver:p=fse(dse(u))}=s,y=be(s,ose),v=c!==void 0?c:u&&u!=="Root"&&u!=="root"||!1,b=f||!1;let C,x=xm;u==="Root"||u==="root"?x=r:u?x=o:ase(a)&&(x=void 0);const w=xj(a,P({shouldForwardProp:x,label:C},y)),S=($,...T)=>{const k=T?T.map(E=>{if(typeof E=="function"&&E.__emotion_real!==E)return A=>WO({styledArg:E,props:A,defaultTheme:n,themeId:t});if(Us(E)){let A=E,z;return E&&E.variants&&(z=E.variants,delete A.variants,A=L=>{let O=E;return by(L,yy(z),z).forEach(H=>{O=co(O,H)}),O}),A}return E}):[];let M=$;if(Us($)){let E;$&&$.variants&&(E=$.variants,delete M.variants,M=A=>{let z=$;return by(A,yy(E),E).forEach(O=>{z=co(z,O)}),z})}else typeof $=="function"&&$.__emotion_real!==$&&(M=E=>WO({styledArg:$,props:E,defaultTheme:n,themeId:t}));l&&p&&k.push(E=>{const A=$1(P({},E,{defaultTheme:n,themeId:t})),z=sse(l,A);if(z){const L={};return Object.entries(z).forEach(([O,D])=>{L[O]=typeof D=="function"?D(P({},E,{theme:A})):D}),p(E,L)}return null}),l&&!v&&k.push(E=>{const A=$1(P({},E,{defaultTheme:n,themeId:t}));return use(E,lse(l,A),A,l)}),b||k.push(i);const I=k.length-T.length;if(Array.isArray($)&&I>0){const E=new Array(I).fill("");M=[...$,...E],M.raw=[...$.raw,...E]}const N=w(M,...k);return a.muiName&&(N.muiName=a.muiName),N};return w.withConfig&&(S.withConfig=w.withConfig),S}}const pse=Tj(),Ar=pse;function hse(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:lM(t.components[n].defaultProps,r)}function Ej({props:e,name:t,defaultTheme:n,themeId:r}){let o=_x(n);return r&&(o=o[r]||o),hse({theme:o,name:t,props:e})}function CM(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function mse(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function Nc(e){if(e.type)return e;if(e.charAt(0)==="#")return Nc(mse(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(uu(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error(uu(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}function Px(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function gse(e){e=Nc(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(u,c=(u+n/30)%12)=>o-i*Math.max(Math.min(c-3,9-c,1),-1);let s="rgb";const l=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(s+="a",l.push(t[3])),Px({type:s,values:l})}function VO(e){e=Nc(e);let t=e.type==="hsl"||e.type==="hsla"?Nc(gse(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function vse(e,t){const n=VO(e),r=VO(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Lt(e,t){return e=Nc(e),t=CM(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Px(e)}function Mx(e,t){if(e=Nc(e),t=CM(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Px(e)}function Tx(e,t){if(e=Nc(e),t=CM(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Px(e)}const yse=["component","direction","spacing","divider","children","className","useFlexGap"],bse=$x(),xse=Ar("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function wse(e){return Ej({props:e,name:"MuiStack",defaultTheme:bse})}function Cse(e,t){const n=m.Children.toArray(e).filter(Boolean);return n.reduce((r,o,i)=>(r.push(o),i({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],$se=({ownerState:e,theme:t})=>{let n=P({display:"flex",flexDirection:"column"},Qo({theme:t},mc({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=xM(t),o=Object.keys(t.breakpoints.values).reduce((l,u)=>((typeof e.spacing=="object"&&e.spacing[u]!=null||typeof e.direction=="object"&&e.direction[u]!=null)&&(l[u]=!0),l),{}),i=mc({values:e.direction,base:o}),a=mc({values:e.spacing,base:o});typeof i=="object"&&Object.keys(i).forEach((l,u,c)=>{if(!i[l]){const p=u>0?i[c[u-1]]:"column";i[l]=p}}),n=co(n,Qo({theme:t},a,(l,u)=>e.useFlexGap?{gap:jc(r,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${Sse(u?i[u]:e.direction)}`]:jc(r,l)}}))}return n=sae(t.breakpoints,n),n};function _se(e={}){const{createStyledComponent:t=xse,useThemeProps:n=wse,componentName:r="MuiStack"}=e,o=()=>qe({root:["root"]},l=>yt(r,l),{}),i=t($se);return m.forwardRef(function(l,u){const c=n(l),f=kx(c),{component:p="div",direction:y="column",spacing:v=0,divider:b,children:C,className:x,useFlexGap:w=!1}=f,S=be(f,yse),$={direction:y,spacing:v,useFlexGap:w},T=o();return g.jsx(i,P({as:p,ownerState:$,ref:u,className:ze(T.root,x)},S,{children:b?Cse(C,b):C}))})}function kse(e,t){return P({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const Pse={black:"#000",white:"#fff"},rg=Pse,Mse={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"},Tse=Mse,Ese={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"},Gd=Ese,Ise={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"},qd=Ise,Rse={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"},Ah=Rse,Ose={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"},Kd=Ose,Ase={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"},Yd=Ase,Fse={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"},Xd=Fse,Lse=["mode","contrastThreshold","tonalOffset"],UO={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:rg.white,default:rg.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},gS={text:{primary:rg.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:rg.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function GO(e,t,n,r){const o=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Tx(e.main,o):t==="dark"&&(e.dark=Mx(e.main,i)))}function Dse(e="light"){return e==="dark"?{main:Kd[200],light:Kd[50],dark:Kd[400]}:{main:Kd[700],light:Kd[400],dark:Kd[800]}}function jse(e="light"){return e==="dark"?{main:Gd[200],light:Gd[50],dark:Gd[400]}:{main:Gd[500],light:Gd[300],dark:Gd[700]}}function Nse(e="light"){return e==="dark"?{main:qd[500],light:qd[300],dark:qd[700]}:{main:qd[700],light:qd[400],dark:qd[800]}}function zse(e="light"){return e==="dark"?{main:Yd[400],light:Yd[300],dark:Yd[700]}:{main:Yd[700],light:Yd[500],dark:Yd[900]}}function Bse(e="light"){return e==="dark"?{main:Xd[400],light:Xd[300],dark:Xd[700]}:{main:Xd[800],light:Xd[500],dark:Xd[900]}}function Hse(e="light"){return e==="dark"?{main:Ah[400],light:Ah[300],dark:Ah[700]}:{main:"#ed6c02",light:Ah[500],dark:Ah[900]}}function Wse(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=be(e,Lse),i=e.primary||Dse(t),a=e.secondary||jse(t),s=e.error||Nse(t),l=e.info||zse(t),u=e.success||Bse(t),c=e.warning||Hse(t);function f(b){return vse(b,gS.text.primary)>=n?gS.text.primary:UO.text.primary}const p=({color:b,name:C,mainShade:x=500,lightShade:w=300,darkShade:S=700})=>{if(b=P({},b),!b.main&&b[x]&&(b.main=b[x]),!b.hasOwnProperty("main"))throw new Error(uu(11,C?` (${C})`:"",x));if(typeof b.main!="string")throw new Error(uu(12,C?` (${C})`:"",JSON.stringify(b.main)));return GO(b,"light",w,r),GO(b,"dark",S,r),b.contrastText||(b.contrastText=f(b.main)),b},y={dark:gS,light:UO};return co(P({common:P({},rg),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:u,name:"success"}),grey:Tse,contrastThreshold:n,getContrastText:f,augmentColor:p,tonalOffset:r},y[t]),o)}const Vse=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function Use(e){return Math.round(e*1e5)/1e5}const qO={textTransform:"uppercase"},KO='"Roboto", "Helvetica", "Arial", sans-serif';function Gse(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=KO,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:f}=n,p=be(n,Vse),y=o/14,v=f||(x=>`${x/u*y}rem`),b=(x,w,S,$,T)=>P({fontFamily:r,fontWeight:x,fontSize:v(w),lineHeight:S},r===KO?{letterSpacing:`${Use($/w)}em`}:{},T,c),C={h1:b(i,96,1.167,-1.5),h2:b(i,60,1.2,-.5),h3:b(a,48,1.167,0),h4:b(a,34,1.235,.25),h5:b(a,24,1.334,0),h6:b(s,20,1.6,.15),subtitle1:b(a,16,1.75,.15),subtitle2:b(s,14,1.57,.1),body1:b(a,16,1.5,.15),body2:b(a,14,1.43,.15),button:b(s,14,1.75,.4,qO),caption:b(a,12,1.66,.4),overline:b(a,12,2.66,1,qO),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return co(P({htmlFontSize:u,pxToRem:v,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},C),p,{clone:!1})}const qse=.2,Kse=.14,Yse=.12;function tr(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${qse})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Kse})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Yse})`].join(",")}const Xse=["none",tr(0,2,1,-1,0,1,1,0,0,1,3,0),tr(0,3,1,-2,0,2,2,0,0,1,5,0),tr(0,3,3,-2,0,3,4,0,0,1,8,0),tr(0,2,4,-1,0,4,5,0,0,1,10,0),tr(0,3,5,-1,0,5,8,0,0,1,14,0),tr(0,3,5,-1,0,6,10,0,0,1,18,0),tr(0,4,5,-2,0,7,10,1,0,2,16,1),tr(0,5,5,-3,0,8,10,1,0,3,14,2),tr(0,5,6,-3,0,9,12,1,0,3,16,2),tr(0,6,6,-3,0,10,14,1,0,4,18,3),tr(0,6,7,-4,0,11,15,1,0,4,20,3),tr(0,7,8,-4,0,12,17,2,0,5,22,4),tr(0,7,8,-4,0,13,19,2,0,5,24,4),tr(0,7,9,-4,0,14,21,2,0,5,26,4),tr(0,8,9,-5,0,15,22,2,0,6,28,5),tr(0,8,10,-5,0,16,24,2,0,6,30,5),tr(0,8,11,-5,0,17,26,2,0,6,32,5),tr(0,9,11,-5,0,18,28,2,0,7,34,6),tr(0,9,12,-6,0,19,29,2,0,7,36,6),tr(0,10,13,-6,0,20,31,3,0,8,38,7),tr(0,10,13,-6,0,21,33,3,0,8,40,7),tr(0,10,14,-6,0,22,35,3,0,8,42,7),tr(0,11,14,-7,0,23,36,3,0,9,44,8),tr(0,11,15,-7,0,24,38,3,0,9,46,8)],Qse=Xse,Zse=["duration","easing","delay"],Jse={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},ele={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function YO(e){return`${Math.round(e)}ms`}function tle(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function nle(e){const t=P({},Jse,e.easing),n=P({},ele,e.duration);return P({getAutoHeightDuration:tle,create:(o=["all"],i={})=>{const{duration:a=n.standard,easing:s=t.easeInOut,delay:l=0}=i;return be(i,Zse),(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof a=="string"?a:YO(a)} ${s} ${typeof l=="string"?l:YO(l)}`).join(",")}},e,{easing:t,duration:n})}const rle={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},ole=rle,ile=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function SM(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=be(e,ile);if(e.vars)throw new Error(uu(18));const s=Wse(r),l=$x(e);let u=co(l,{mixins:kse(l.breakpoints,n),palette:s,shadows:Qse.slice(),typography:Gse(s,i),transitions:nle(o),zIndex:P({},ole)});return u=co(u,a),u=t.reduce((c,f)=>co(c,f),u),u.unstable_sxConfig=P({},Cx,a==null?void 0:a.unstable_sxConfig),u.unstable_sx=function(f){return Sx({sx:f,theme:this})},u}function ale(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function sle(e){return parseFloat(e)}const lle=SM(),Ex=lle;function Xt(){const e=_x(Ex);return e[e0]||e}function $t({props:e,name:t}){return Ej({props:e,name:t,defaultTheme:Ex,themeId:e0})}const Ra=e=>xm(e)&&e!=="classes",ule=xm,cle=Tj({themeId:e0,defaultTheme:Ex,rootShouldForwardProp:Ra}),ke=cle,dle=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},XO=dle,jn=e=>({...e==="dark"?{grey:{100:"#e0e0e0",200:"#c2c2c2",300:"#a3a3a3",400:"#858585",500:"#666666",600:"#525252",700:"#3d3d3d",800:"#292929",900:"#141414"},primary:{100:"#d0d1d5",200:"#a1a4ab",300:"#727681",400:"#362842",500:"#201134",600:"#101624",700:"#0c101b",800:"#080b12",900:"#040509"},greenAccent:{100:"#dbf5ee",200:"#b7ebde",300:"#94e2cd",400:"#70d8bd",500:"#4cceac",600:"#3da58a",700:"#2e7c67",800:"#1e5245",900:"#0f2922"},redAccent:{100:"#f8dcdb",200:"#f1b9b7",300:"#e99592",400:"#e2726e",500:"#db4f4a",600:"#af3f3b",700:"#832f2c",800:"#58201e",900:"#2c100f"},blueAccent:{100:"#dcd5e6",200:"#b9aacd",300:"#9780b3",400:"#74559a",500:"#512b81",600:"#412267",700:"#311a4d",800:"#201134",900:"#10091a"}}:{grey:{100:"#141414",200:"#292929",300:"#3d3d3d",400:"#525252",500:"#666666",600:"#858585",700:"#a3a3a3",800:"#c2c2c2",900:"#e0e0e0"},primary:{100:"#040509",200:"#080b12",300:"#0c101b",400:"#f2f0f0",500:"#d0d1d5",600:"#434957",700:"#727681",800:"#a1a4ab",900:"#141b2d"},greenAccent:{100:"#0f2922",200:"#1e5245",300:"#2e7c67",400:"#3da58a",500:"#4cceac",600:"#70d8bd",700:"#94e2cd",800:"#b7ebde",900:"#dbf5ee"},redAccent:{100:"#2c100f",200:"#58201e",300:"#832f2c",400:"#af3f3b",500:"#db4f4a",600:"#e2726e",700:"#e99592",800:"#f1b9b7",900:"#f8dcdb"},blueAccent:{100:"#151632",200:"#2a2d64",300:"#3e4396",400:"#535ac8",500:"#6870fa",600:"#868dfb",700:"#a4a9fc",800:"#c3c6fd",900:"#e1e2fe"}}}),fle=e=>{const t=jn(e);return{breakpoints:{values:{xs:0,sm:600,md:933,lg:1200,xl:1536}},palette:{mode:e,...e==="dark"?{primary:{main:t.primary[500]},secondary:{main:t.greenAccent[500]},neutral:{dark:t.grey[700],main:t.grey[500],light:t.grey[100]},background:{default:t.primary[500]}}:{primary:{main:t.primary[100]},secondary:{main:t.greenAccent[500]},neutral:{dark:t.grey[700],main:t.grey[500],light:t.grey[100]},background:{default:"#fcfcfc"}}},typography:{fontFamily:["Hanken Grotesk","sans-serif"].join(","),fontSize:12,h1:{fontFamily:["Hanken Grotesk","sans-serif"].join(","),fontSize:40,"@media (max-width:1399.98px)":{fontSize:40},"@media (max-width:1199.98px)":{fontSize:40},"@media (max-width:991.98px)":{fontSize:40},"@media (max-width:767.98px)":{fontSize:36},"@media (max-width:575.98px)":{fontSize:32}},h2:{fontFamily:["Hanken Grotesk","sans-serif"].join(","),fontSize:32},h3:{fontFamily:["Hanken Grotesk","sans-serif"].join(","),fontSize:24,"@media (max-width:1399.98px)":{fontSize:24},"@media (max-width:1199.98px)":{fontSize:24},"@media (max-width:991.98px)":{fontSize:24},"@media (max-width:767.98px)":{fontSize:20},"@media (max-width:575.98px)":{fontSize:16}},h4:{fontFamily:["Hanken Grotesk","sans-serif"].join(","),fontSize:20,"@media (max-width:1399.98px)":{fontSize:20},"@media (max-width:1199.98px)":{fontSize:20},"@media (max-width:991.98px)":{fontSize:20},"@media (max-width:767.98px)":{fontSize:16},"@media (max-width:575.98px)":{fontSize:14}},h5:{fontFamily:["Hanken Grotesk","sans-serif"].join(","),fontSize:16,"@media (max-width:1399.98px)":{fontSize:16},"@media (max-width:1199.98px)":{fontSize:16},"@media (max-width:991.98px)":{fontSize:16},"@media (max-width:767.98px)":{fontSize:14},"@media (max-width:575.98px)":{fontSize:12}},h6:{fontFamily:["Hanken Grotesk","sans-serif"].join(","),fontSize:14,"@media (max-width:1399.98px)":{fontSize:14},"@media (max-width:1199.98px)":{fontSize:14},"@media (max-width:991.98px)":{fontSize:14},"@media (max-width:767.98px)":{fontSize:12},"@media (max-width:575.98px)":{fontSize:12}}}}},Ij=m.createContext({toggleColorMode:()=>{}}),ple=e=>{const[t,n]=m.useState(e),r=m.useCallback(()=>{n(i=>i==="dark"?"light":"dark")},[]);return{theme:m.useMemo(()=>SM(fle(t)),[t]),toggleColorMode:r}};function hle(e){return yt("MuiSvgIcon",e)}bt("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const mle=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],gle=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${je(t)}`,`fontSize${je(n)}`]};return qe(o,hle,r)},vle=ke("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${je(n.color)}`],t[`fontSize${je(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,i,a,s,l,u,c,f,p,y,v;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((i=e.typography)==null||(a=i.pxToRem)==null?void 0:a.call(i,20))||"1.25rem",medium:((s=e.typography)==null||(l=s.pxToRem)==null?void 0:l.call(s,24))||"1.5rem",large:((u=e.typography)==null||(c=u.pxToRem)==null?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:(f=(p=(e.vars||e).palette)==null||(p=p[t.color])==null?void 0:p.main)!=null?f:{action:(y=(e.vars||e).palette)==null||(y=y.action)==null?void 0:y.active,disabled:(v=(e.vars||e).palette)==null||(v=v.action)==null?void 0:v.disabled,inherit:void 0}[t.color]}}),Rj=m.forwardRef(function(t,n){const r=$t({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:a="inherit",component:s="svg",fontSize:l="medium",htmlColor:u,inheritViewBox:c=!1,titleAccess:f,viewBox:p="0 0 24 24"}=r,y=be(r,mle),v=m.isValidElement(o)&&o.type==="svg",b=P({},r,{color:a,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:c,viewBox:p,hasSvgAsChild:v}),C={};c||(C.viewBox=p);const x=gle(b);return g.jsxs(vle,P({as:s,className:ze(x.root,i),focusable:"false",color:u,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:n},C,y,v&&o.props,{ownerState:b,children:[v?o.props.children:o,f?g.jsx("title",{children:f}):null]}))});Rj.muiName="SvgIcon";const QO=Rj;function xt(e,t){function n(r,o){return g.jsx(QO,P({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return n.muiName=QO.muiName,m.memo(m.forwardRef(n))}const yle={configure:e=>{uM.configure(e)}},ble=Object.freeze(Object.defineProperty({__proto__:null,capitalize:je,createChainedFunction:x_,createSvgIcon:xt,debounce:wu,deprecatedPropType:Aoe,isMuiElement:x1,ownerDocument:Gn,ownerWindow:ea,requirePropFactory:Foe,setRef:Dc,unstable_ClassNameGenerator:yle,unstable_useEnhancedEffect:pn,unstable_useId:ln,unsupportedProp:joe,useControlled:nu,useEventCallback:Dn,useForkRef:on,useIsFocusVisible:aM},Symbol.toStringTag,{value:"Module"}));function __(e,t){return __=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},__(e,t)}function Oj(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,__(e,t)}const ZO={disabled:!1},xy=ot.createContext(null);var xle=function(t){return t.scrollTop},om="unmounted",qu="exited",Ku="entering",lf="entered",k_="exiting",fl=function(e){Oj(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var a=o,s=a&&!a.isMounting?r.enter:r.appear,l;return i.appearStatus=null,r.in?s?(l=qu,i.appearStatus=Ku):l=lf:r.unmountOnExit||r.mountOnEnter?l=om:l=qu,i.state={status:l},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var a=o.in;return a&&i.status===om?{status:qu}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var a=this.state.status;this.props.in?a!==Ku&&a!==lf&&(i=Ku):(a===Ku||a===lf)&&(i=k_)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,a,s;return i=a=s=o,o!=null&&typeof o!="number"&&(i=o.exit,a=o.enter,s=o.appear!==void 0?o.appear:a),{exit:i,enter:a,appear:s}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===Ku){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:Rv.findDOMNode(this);a&&xle(a)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===qu&&this.setState({status:om})},n.performEnter=function(o){var i=this,a=this.props.enter,s=this.context?this.context.isMounting:o,l=this.props.nodeRef?[s]:[Rv.findDOMNode(this),s],u=l[0],c=l[1],f=this.getTimeouts(),p=s?f.appear:f.enter;if(!o&&!a||ZO.disabled){this.safeSetState({status:lf},function(){i.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:Ku},function(){i.props.onEntering(u,c),i.onTransitionEnd(p,function(){i.safeSetState({status:lf},function(){i.props.onEntered(u,c)})})})},n.performExit=function(){var o=this,i=this.props.exit,a=this.getTimeouts(),s=this.props.nodeRef?void 0:Rv.findDOMNode(this);if(!i||ZO.disabled){this.safeSetState({status:qu},function(){o.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:k_},function(){o.props.onExiting(s),o.onTransitionEnd(a.exit,function(){o.safeSetState({status:qu},function(){o.props.onExited(s)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,a=!0;return this.nextCallback=function(s){a&&(a=!1,i.nextCallback=null,o(s))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:Rv.findDOMNode(this),s=o==null&&!this.props.addEndListener;if(!a||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],u=l[0],c=l[1];this.props.addEndListener(u,c)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===om)return null;var i=this.props,a=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var s=be(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ot.createElement(xy.Provider,{value:null},typeof a=="function"?a(o,s):ot.cloneElement(ot.Children.only(a),s))},t}(ot.Component);fl.contextType=xy;fl.propTypes={};function Qd(){}fl.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Qd,onEntering:Qd,onEntered:Qd,onExit:Qd,onExiting:Qd,onExited:Qd};fl.UNMOUNTED=om;fl.EXITED=qu;fl.ENTERING=Ku;fl.ENTERED=lf;fl.EXITING=k_;const Aj=fl;function wle(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $M(e,t){var n=function(i){return t&&m.isValidElement(i)?t(i):i},r=Object.create(null);return e&&m.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function Cle(e,t){e=e||{},t=t||{};function n(c){return c in t?t[c]:e[c]}var r=Object.create(null),o=[];for(var i in e)i in t?o.length&&(r[i]=o,o=[]):o.push(i);var a,s={};for(var l in t){if(r[l])for(a=0;ae.scrollTop;function wy(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:(n=a.transitionDuration)!=null?n:typeof o=="number"?o:o[t.mode]||0,easing:(r=a.transitionTimingFunction)!=null?r:typeof i=="object"?i[t.mode]:i,delay:a.transitionDelay}}function Mle(e){return yt("MuiPaper",e)}bt("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const Tle=["className","component","elevation","square","variant"],Ele=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,i={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return qe(i,Mle,o)},Ile=ke("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return P({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&P({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Lt("#fff",XO(t.elevation))}, ${Lt("#fff",XO(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),Rle=m.forwardRef(function(t,n){const r=$t({props:t,name:"MuiPaper"}),{className:o,component:i="div",elevation:a=1,square:s=!1,variant:l="elevation"}=r,u=be(r,Tle),c=P({},r,{component:i,elevation:a,square:s,variant:l}),f=Ele(c);return g.jsx(Ile,P({as:i,ownerState:c,className:ze(f.root,o),ref:n},u))}),id=Rle;function Ole(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:s,onExited:l,timeout:u}=e,[c,f]=m.useState(!1),p=ze(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),y={width:a,height:a,top:-(a/2)+i,left:-(a/2)+o},v=ze(n.child,c&&n.childLeaving,r&&n.childPulsate);return!s&&!c&&f(!0),m.useEffect(()=>{if(!s&&l!=null){const b=setTimeout(l,u);return()=>{clearTimeout(b)}}},[l,s,u]),g.jsx("span",{className:p,style:y,children:g.jsx("span",{className:v})})}const Ale=bt("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Ni=Ale,Fle=["center","classes","className"];let Ix=e=>e,JO,e4,t4,n4;const P_=550,Lle=80,Dle=od(JO||(JO=Ix` - 0% { - transform: scale(0); - opacity: 0.1; - } - - 100% { - transform: scale(1); - opacity: 0.3; - } -`)),jle=od(e4||(e4=Ix` - 0% { - opacity: 1; - } - - 100% { - opacity: 0; - } -`)),Nle=od(t4||(t4=Ix` - 0% { - transform: scale(1); - } - - 50% { - transform: scale(0.92); - } - - 100% { - transform: scale(1); - } -`)),zle=ke("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Ble=ke(Ole,{name:"MuiTouchRipple",slot:"Ripple"})(n4||(n4=Ix` - opacity: 0; - position: absolute; - - &.${0} { - opacity: 0.3; - transform: scale(1); - animation-name: ${0}; - animation-duration: ${0}ms; - animation-timing-function: ${0}; - } - - &.${0} { - animation-duration: ${0}ms; - } - - & .${0} { - opacity: 1; - display: block; - width: 100%; - height: 100%; - border-radius: 50%; - background-color: currentColor; - } - - & .${0} { - opacity: 0; - animation-name: ${0}; - animation-duration: ${0}ms; - animation-timing-function: ${0}; - } - - & .${0} { - position: absolute; - /* @noflip */ - left: 0px; - top: 0; - animation-name: ${0}; - animation-duration: 2500ms; - animation-timing-function: ${0}; - animation-iteration-count: infinite; - animation-delay: 200ms; - } -`),Ni.rippleVisible,Dle,P_,({theme:e})=>e.transitions.easing.easeInOut,Ni.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Ni.child,Ni.childLeaving,jle,P_,({theme:e})=>e.transitions.easing.easeInOut,Ni.childPulsate,Nle,({theme:e})=>e.transitions.easing.easeInOut),Hle=m.forwardRef(function(t,n){const r=$t({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a}=r,s=be(r,Fle),[l,u]=m.useState([]),c=m.useRef(0),f=m.useRef(null);m.useEffect(()=>{f.current&&(f.current(),f.current=null)},[l]);const p=m.useRef(!1),y=m.useRef(0),v=m.useRef(null),b=m.useRef(null);m.useEffect(()=>()=>{y.current&&clearTimeout(y.current)},[]);const C=m.useCallback($=>{const{pulsate:T,rippleX:k,rippleY:M,rippleSize:I,cb:N}=$;u(E=>[...E,g.jsx(Ble,{classes:{ripple:ze(i.ripple,Ni.ripple),rippleVisible:ze(i.rippleVisible,Ni.rippleVisible),ripplePulsate:ze(i.ripplePulsate,Ni.ripplePulsate),child:ze(i.child,Ni.child),childLeaving:ze(i.childLeaving,Ni.childLeaving),childPulsate:ze(i.childPulsate,Ni.childPulsate)},timeout:P_,pulsate:T,rippleX:k,rippleY:M,rippleSize:I},c.current)]),c.current+=1,f.current=N},[i]),x=m.useCallback(($={},T={},k=()=>{})=>{const{pulsate:M=!1,center:I=o||T.pulsate,fakeElement:N=!1}=T;if(($==null?void 0:$.type)==="mousedown"&&p.current){p.current=!1;return}($==null?void 0:$.type)==="touchstart"&&(p.current=!0);const E=N?null:b.current,A=E?E.getBoundingClientRect():{width:0,height:0,left:0,top:0};let z,L,O;if(I||$===void 0||$.clientX===0&&$.clientY===0||!$.clientX&&!$.touches)z=Math.round(A.width/2),L=Math.round(A.height/2);else{const{clientX:D,clientY:H}=$.touches&&$.touches.length>0?$.touches[0]:$;z=Math.round(D-A.left),L=Math.round(H-A.top)}if(I)O=Math.sqrt((2*A.width**2+A.height**2)/3),O%2===0&&(O+=1);else{const D=Math.max(Math.abs((E?E.clientWidth:0)-z),z)*2+2,H=Math.max(Math.abs((E?E.clientHeight:0)-L),L)*2+2;O=Math.sqrt(D**2+H**2)}$!=null&&$.touches?v.current===null&&(v.current=()=>{C({pulsate:M,rippleX:z,rippleY:L,rippleSize:O,cb:k})},y.current=setTimeout(()=>{v.current&&(v.current(),v.current=null)},Lle)):C({pulsate:M,rippleX:z,rippleY:L,rippleSize:O,cb:k})},[o,C]),w=m.useCallback(()=>{x({},{pulsate:!0})},[x]),S=m.useCallback(($,T)=>{if(clearTimeout(y.current),($==null?void 0:$.type)==="touchend"&&v.current){v.current(),v.current=null,y.current=setTimeout(()=>{S($,T)});return}v.current=null,u(k=>k.length>0?k.slice(1):k),f.current=T},[]);return m.useImperativeHandle(n,()=>({pulsate:w,start:x,stop:S}),[w,x,S]),g.jsx(zle,P({className:ze(Ni.root,i.root,a),ref:b},s,{children:g.jsx(Ple,{component:null,exit:!0,children:l})}))}),Wle=Hle;function Vle(e){return yt("MuiButtonBase",e)}const Ule=bt("MuiButtonBase",["root","disabled","focusVisible"]),Gle=Ule,qle=["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"],Kle=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=qe({root:["root",t&&"disabled",n&&"focusVisible"]},Vle,o);return n&&r&&(a.root+=` ${r}`),a},Yle=ke("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"},[`&.${Gle.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Xle=m.forwardRef(function(t,n){const r=$t({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:a,className:s,component:l="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:f=!1,focusRipple:p=!1,LinkComponent:y="a",onBlur:v,onClick:b,onContextMenu:C,onDragLeave:x,onFocus:w,onFocusVisible:S,onKeyDown:$,onKeyUp:T,onMouseDown:k,onMouseLeave:M,onMouseUp:I,onTouchEnd:N,onTouchMove:E,onTouchStart:A,tabIndex:z=0,TouchRippleProps:L,touchRippleRef:O,type:D}=r,H=be(r,qle),B=m.useRef(null),j=m.useRef(null),W=on(j,O),{isFocusVisibleRef:U,onFocus:Z,onBlur:Y,ref:se}=aM(),[Q,ne]=m.useState(!1);u&&Q&&ne(!1),m.useImperativeHandle(o,()=>({focusVisible:()=>{ne(!0),B.current.focus()}}),[]);const[re,ge]=m.useState(!1);m.useEffect(()=>{ge(!0)},[]);const xe=re&&!c&&!u;m.useEffect(()=>{Q&&p&&!c&&re&&j.current.pulsate()},[c,p,Q,re]);function fe(Ce,Qe,Ct=f){return Dn(et=>(Qe&&Qe(et),!Ct&&j.current&&j.current[Ce](et),!0))}const Se=fe("start",k),de=fe("stop",C),ie=fe("stop",x),Pe=fe("stop",I),$e=fe("stop",Ce=>{Q&&Ce.preventDefault(),M&&M(Ce)}),me=fe("start",A),ue=fe("stop",N),ce=fe("stop",E),Te=fe("stop",Ce=>{Y(Ce),U.current===!1&&ne(!1),v&&v(Ce)},!1),Le=Dn(Ce=>{B.current||(B.current=Ce.currentTarget),Z(Ce),U.current===!0&&(ne(!0),S&&S(Ce)),w&&w(Ce)}),Re=()=>{const Ce=B.current;return l&&l!=="button"&&!(Ce.tagName==="A"&&Ce.href)},Oe=m.useRef(!1),K=Dn(Ce=>{p&&!Oe.current&&Q&&j.current&&Ce.key===" "&&(Oe.current=!0,j.current.stop(Ce,()=>{j.current.start(Ce)})),Ce.target===Ce.currentTarget&&Re()&&Ce.key===" "&&Ce.preventDefault(),$&&$(Ce),Ce.target===Ce.currentTarget&&Re()&&Ce.key==="Enter"&&!u&&(Ce.preventDefault(),b&&b(Ce))}),ee=Dn(Ce=>{p&&Ce.key===" "&&j.current&&Q&&!Ce.defaultPrevented&&(Oe.current=!1,j.current.stop(Ce,()=>{j.current.pulsate(Ce)})),T&&T(Ce),b&&Ce.target===Ce.currentTarget&&Re()&&Ce.key===" "&&!Ce.defaultPrevented&&b(Ce)});let pe=l;pe==="button"&&(H.href||H.to)&&(pe=y);const ye={};pe==="button"?(ye.type=D===void 0?"button":D,ye.disabled=u):(!H.href&&!H.to&&(ye.role="button"),u&&(ye["aria-disabled"]=u));const De=on(n,se,B),Ae=P({},r,{centerRipple:i,component:l,disabled:u,disableRipple:c,disableTouchRipple:f,focusRipple:p,tabIndex:z,focusVisible:Q}),Ee=Kle(Ae);return g.jsxs(Yle,P({as:pe,className:ze(Ee.root,s),ownerState:Ae,onBlur:Te,onClick:b,onContextMenu:de,onFocus:Le,onKeyDown:K,onKeyUp:ee,onMouseDown:Se,onMouseLeave:$e,onMouseUp:Pe,onDragLeave:ie,onTouchEnd:ue,onTouchMove:ce,onTouchStart:me,ref:De,tabIndex:u?-1:z,type:D},ye,H,{children:[a,xe?g.jsx(Wle,P({ref:W,center:i},L)):null]}))}),cu=Xle;function Qle(e){return yt("MuiIconButton",e)}const Zle=bt("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),Jle=Zle,eue=["edge","children","className","color","disabled","disableFocusRipple","size"],tue=e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e,a={root:["root",n&&"disabled",r!=="default"&&`color${je(r)}`,o&&`edge${je(o)}`,`size${je(i)}`]};return qe(a,Qle,t)},nue=ke(cu,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${je(n.color)}`],n.edge&&t[`edge${je(n.edge)}`],t[`size${je(n.size)}`]]}})(({theme:e,ownerState:t})=>P({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Lt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return P({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&P({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":P({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Lt(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${Jle.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),rue=m.forwardRef(function(t,n){const r=$t({props:t,name:"MuiIconButton"}),{edge:o=!1,children:i,className:a,color:s="default",disabled:l=!1,disableFocusRipple:u=!1,size:c="medium"}=r,f=be(r,eue),p=P({},r,{edge:o,color:s,disabled:l,disableFocusRipple:u,size:c}),y=tue(p);return g.jsx(nue,P({className:ze(y.root,a),centerRipple:!0,focusRipple:!u,disabled:l,ref:n,ownerState:p},f,{children:i}))}),wo=rue,oue=xt(g.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");function iue(e){return yt("MuiTypography",e)}bt("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const aue=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],sue=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e,s={root:["root",i,e.align!=="inherit"&&`align${je(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return qe(s,iue,a)},lue=ke("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${je(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>P({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})),r4={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},uue={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},cue=e=>uue[e]||e,due=m.forwardRef(function(t,n){const r=$t({props:t,name:"MuiTypography"}),o=cue(r.color),i=kx(P({},r,{color:o})),{align:a="inherit",className:s,component:l,gutterBottom:u=!1,noWrap:c=!1,paragraph:f=!1,variant:p="body1",variantMapping:y=r4}=i,v=be(i,aue),b=P({},i,{align:a,color:o,className:s,component:l,gutterBottom:u,noWrap:c,paragraph:f,variant:p,variantMapping:y}),C=l||(f?"p":y[p]||r4[p])||"span",x=sue(b);return g.jsx(lue,P({as:C,ref:n,ownerState:b,className:ze(x.root,s)},v))}),Ze=due;function fue(e){return yt("MuiAppBar",e)}bt("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent"]);const pue=["className","color","enableColorOnDark","position"],hue=e=>{const{color:t,position:n,classes:r}=e,o={root:["root",`color${je(t)}`,`position${je(n)}`]};return qe(o,fue,r)},Av=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,mue=ke(id,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${je(n.position)}`],t[`color${je(n.color)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return P({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&P({},t.color==="default"&&{backgroundColor:n,color:e.palette.getContrastText(n)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&P({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&P({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:Av(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:Av(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:Av(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:Av(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),gue=m.forwardRef(function(t,n){const r=$t({props:t,name:"MuiAppBar"}),{className:o,color:i="primary",enableColorOnDark:a=!1,position:s="fixed"}=r,l=be(r,pue),u=P({},r,{color:i,position:s,enableColorOnDark:a}),c=hue(u);return g.jsx(mue,P({square:!0,component:"header",ownerState:u,elevation:4,className:ze(c.root,o,s==="fixed"&&"mui-fixed"),ref:n},l))}),vue=gue;function og(e){return typeof e=="string"}function im(e,t,n){return e===void 0||og(e)?t:P({},t,{ownerState:P({},t.ownerState,n)})}const yue={disableDefaultClasses:!1},bue=m.createContext(yue);function xue(e){const{disableDefaultClasses:t}=m.useContext(bue);return n=>t?"":e(n)}function Lj(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function wue(e,t,n){return typeof e=="function"?e(t,n):e}function o4(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function Cue(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const y=ze(o==null?void 0:o.className,r==null?void 0:r.className,i,n==null?void 0:n.className),v=P({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),b=P({},n,o,r);return y.length>0&&(b.className=y),Object.keys(v).length>0&&(b.style=v),{props:b,internalRef:void 0}}const a=Lj(P({},o,r)),s=o4(r),l=o4(o),u=t(a),c=ze(u==null?void 0:u.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),f=P({},u==null?void 0:u.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),p=P({},u,n,l,s);return c.length>0&&(p.className=c),Object.keys(f).length>0&&(p.style=f),{props:p,internalRef:u.ref}}const Sue=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function xi(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=be(e,Sue),s=i?{}:wue(r,o),{props:l,internalRef:u}=Cue(P({},a,{externalSlotProps:s})),c=on(u,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return im(n,P({},l,{ref:c}),o)}function $ue(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,i=sM({badgeContent:t,max:r});let a=n;n===!1&&t===0&&!o&&(a=!0);const{badgeContent:s,max:l=r}=a?i:e,u=s&&Number(s)>l?`${l}+`:s;return{badgeContent:s,invisible:a,max:l,displayValue:u}}function i4(e){return e.substring(2).toLowerCase()}function _ue(e,t){return t.documentElement.clientWidth(setTimeout(()=>{l.current=!0},0),()=>{l.current=!1}),[]);const c=on(t.ref,s),f=Dn(v=>{const b=u.current;u.current=!1;const C=Gn(s.current);if(!l.current||!s.current||"clientX"in v&&_ue(v,C))return;if(a.current){a.current=!1;return}let x;v.composedPath?x=v.composedPath().indexOf(s.current)>-1:x=!C.documentElement.contains(v.target)||s.current.contains(v.target),!x&&(n||!b)&&o(v)}),p=v=>b=>{u.current=!0;const C=t.props[v];C&&C(b)},y={ref:c};return i!==!1&&(y[i]=p(i)),m.useEffect(()=>{if(i!==!1){const v=i4(i),b=Gn(s.current),C=()=>{a.current=!0};return b.addEventListener(v,f),b.addEventListener("touchmove",C),()=>{b.removeEventListener(v,f),b.removeEventListener("touchmove",C)}}},[f,i]),r!==!1&&(y[r]=p(r)),m.useEffect(()=>{if(r!==!1){const v=i4(r),b=Gn(s.current);return b.addEventListener(v,f),()=>{b.removeEventListener(v,f)}}},[f,r]),g.jsx(m.Fragment,{children:m.cloneElement(t,y)})}const kue=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Pue(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 Mue(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 Tue(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||Mue(e))}function Eue(e){const t=[],n=[];return Array.from(e.querySelectorAll(kue)).forEach((r,o)=>{const i=Pue(r);i===-1||!Tue(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 Iue(){return!0}function jj(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=Eue,isEnabled:a=Iue,open:s}=e,l=m.useRef(!1),u=m.useRef(null),c=m.useRef(null),f=m.useRef(null),p=m.useRef(null),y=m.useRef(!1),v=m.useRef(null),b=on(t.ref,v),C=m.useRef(null);m.useEffect(()=>{!s||!v.current||(y.current=!n)},[n,s]),m.useEffect(()=>{if(!s||!v.current)return;const S=Gn(v.current);return v.current.contains(S.activeElement)||(v.current.hasAttribute("tabIndex")||v.current.setAttribute("tabIndex","-1"),y.current&&v.current.focus()),()=>{o||(f.current&&f.current.focus&&(l.current=!0,f.current.focus()),f.current=null)}},[s]),m.useEffect(()=>{if(!s||!v.current)return;const S=Gn(v.current),$=M=>{C.current=M,!(r||!a()||M.key!=="Tab")&&S.activeElement===v.current&&M.shiftKey&&(l.current=!0,c.current&&c.current.focus())},T=()=>{const M=v.current;if(M===null)return;if(!S.hasFocus()||!a()||l.current){l.current=!1;return}if(M.contains(S.activeElement)||r&&S.activeElement!==u.current&&S.activeElement!==c.current)return;if(S.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!y.current)return;let I=[];if((S.activeElement===u.current||S.activeElement===c.current)&&(I=i(v.current)),I.length>0){var N,E;const A=!!((N=C.current)!=null&&N.shiftKey&&((E=C.current)==null?void 0:E.key)==="Tab"),z=I[0],L=I[I.length-1];typeof z!="string"&&typeof L!="string"&&(A?L.focus():z.focus())}else M.focus()};S.addEventListener("focusin",T),S.addEventListener("keydown",$,!0);const k=setInterval(()=>{S.activeElement&&S.activeElement.tagName==="BODY"&&T()},50);return()=>{clearInterval(k),S.removeEventListener("focusin",T),S.removeEventListener("keydown",$,!0)}},[n,r,o,a,s,i]);const x=S=>{f.current===null&&(f.current=S.relatedTarget),y.current=!0,p.current=S.target;const $=t.props.onFocus;$&&$(S)},w=S=>{f.current===null&&(f.current=S.relatedTarget),y.current=!0};return g.jsxs(m.Fragment,{children:[g.jsx("div",{tabIndex:s?0:-1,onFocus:w,ref:u,"data-testid":"sentinelStart"}),m.cloneElement(t,{ref:b,onFocus:x}),g.jsx("div",{tabIndex:s?0:-1,onFocus:w,ref:c,"data-testid":"sentinelEnd"})]})}var Go="top",ta="bottom",na="right",qo="left",kM="auto",r0=[Go,ta,na,qo],sp="start",ig="end",Rue="clippingParents",Nj="viewport",Fh="popper",Oue="reference",a4=r0.reduce(function(e,t){return e.concat([t+"-"+sp,t+"-"+ig])},[]),zj=[].concat(r0,[kM]).reduce(function(e,t){return e.concat([t,t+"-"+sp,t+"-"+ig])},[]),Aue="beforeRead",Fue="read",Lue="afterRead",Due="beforeMain",jue="main",Nue="afterMain",zue="beforeWrite",Bue="write",Hue="afterWrite",Wue=[Aue,Fue,Lue,Due,jue,Nue,zue,Bue,Hue];function ds(e){return e?(e.nodeName||"").toLowerCase():null}function wi(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function zc(e){var t=wi(e).Element;return e instanceof t||e instanceof Element}function Yi(e){var t=wi(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function PM(e){if(typeof ShadowRoot>"u")return!1;var t=wi(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Vue(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];!Yi(i)||!ds(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(a){var s=o[a];s===!1?i.removeAttribute(a):i.setAttribute(a,s===!0?"":s)}))})}function Uue(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=a.reduce(function(l,u){return l[u]="",l},{});!Yi(o)||!ds(o)||(Object.assign(o.style,s),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}const Gue={name:"applyStyles",enabled:!0,phase:"write",fn:Vue,effect:Uue,requires:["computeStyles"]};function rs(e){return e.split("-")[0]}var gc=Math.max,Cy=Math.min,lp=Math.round;function M_(){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 Bj(){return!/^((?!chrome|android).)*safari/i.test(M_())}function up(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&Yi(e)&&(o=e.offsetWidth>0&&lp(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&lp(r.height)/e.offsetHeight||1);var a=zc(e)?wi(e):window,s=a.visualViewport,l=!Bj()&&n,u=(r.left+(l&&s?s.offsetLeft:0))/o,c=(r.top+(l&&s?s.offsetTop:0))/i,f=r.width/o,p=r.height/i;return{width:f,height:p,top:c,right:u+f,bottom:c+p,left:u,x:u,y:c}}function MM(e){var t=up(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 Hj(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&PM(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function sl(e){return wi(e).getComputedStyle(e)}function que(e){return["table","td","th"].indexOf(ds(e))>=0}function Cu(e){return((zc(e)?e.ownerDocument:e.document)||window.document).documentElement}function Rx(e){return ds(e)==="html"?e:e.assignedSlot||e.parentNode||(PM(e)?e.host:null)||Cu(e)}function s4(e){return!Yi(e)||sl(e).position==="fixed"?null:e.offsetParent}function Kue(e){var t=/firefox/i.test(M_()),n=/Trident/i.test(M_());if(n&&Yi(e)){var r=sl(e);if(r.position==="fixed")return null}var o=Rx(e);for(PM(o)&&(o=o.host);Yi(o)&&["html","body"].indexOf(ds(o))<0;){var i=sl(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 o0(e){for(var t=wi(e),n=s4(e);n&&que(n)&&sl(n).position==="static";)n=s4(n);return n&&(ds(n)==="html"||ds(n)==="body"&&sl(n).position==="static")?t:n||Kue(e)||t}function TM(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function wm(e,t,n){return gc(e,Cy(t,n))}function Yue(e,t,n){var r=wm(e,t,n);return r>n?n:r}function Wj(){return{top:0,right:0,bottom:0,left:0}}function Vj(e){return Object.assign({},Wj(),e)}function Uj(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Xue=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Vj(typeof t!="number"?t:Uj(t,r0))};function Que(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=rs(n.placement),l=TM(s),u=[qo,na].indexOf(s)>=0,c=u?"height":"width";if(!(!i||!a)){var f=Xue(o.padding,n),p=MM(i),y=l==="y"?Go:qo,v=l==="y"?ta:na,b=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],C=a[l]-n.rects.reference[l],x=o0(i),w=x?l==="y"?x.clientHeight||0:x.clientWidth||0:0,S=b/2-C/2,$=f[y],T=w-p[c]-f[v],k=w/2-p[c]/2+S,M=wm($,k,T),I=l;n.modifiersData[r]=(t={},t[I]=M,t.centerOffset=M-k,t)}}function Zue(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)||Hj(t.elements.popper,o)&&(t.elements.arrow=o))}const Jue={name:"arrow",enabled:!0,phase:"main",fn:Que,effect:Zue,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function cp(e){return e.split("-")[1]}var ece={top:"auto",right:"auto",bottom:"auto",left:"auto"};function tce(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:lp(n*o)/o||0,y:lp(r*o)/o||0}}function l4(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,f=e.isFixed,p=a.x,y=p===void 0?0:p,v=a.y,b=v===void 0?0:v,C=typeof c=="function"?c({x:y,y:b}):{x:y,y:b};y=C.x,b=C.y;var x=a.hasOwnProperty("x"),w=a.hasOwnProperty("y"),S=qo,$=Go,T=window;if(u){var k=o0(n),M="clientHeight",I="clientWidth";if(k===wi(n)&&(k=Cu(n),sl(k).position!=="static"&&s==="absolute"&&(M="scrollHeight",I="scrollWidth")),k=k,o===Go||(o===qo||o===na)&&i===ig){$=ta;var N=f&&k===T&&T.visualViewport?T.visualViewport.height:k[M];b-=N-r.height,b*=l?1:-1}if(o===qo||(o===Go||o===ta)&&i===ig){S=na;var E=f&&k===T&&T.visualViewport?T.visualViewport.width:k[I];y-=E-r.width,y*=l?1:-1}}var A=Object.assign({position:s},u&&ece),z=c===!0?tce({x:y,y:b},wi(n)):{x:y,y:b};if(y=z.x,b=z.y,l){var L;return Object.assign({},A,(L={},L[$]=w?"0":"",L[S]=x?"0":"",L.transform=(T.devicePixelRatio||1)<=1?"translate("+y+"px, "+b+"px)":"translate3d("+y+"px, "+b+"px, 0)",L))}return Object.assign({},A,(t={},t[$]=w?b+"px":"",t[S]=x?y+"px":"",t.transform="",t))}function nce(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,a=i===void 0?!0:i,s=n.roundOffsets,l=s===void 0?!0:s,u={placement:rs(t.placement),variation:cp(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,l4(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,l4(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 rce={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:nce,data:{}};var Fv={passive:!0};function oce(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,a=r.resize,s=a===void 0?!0:a,l=wi(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(c){c.addEventListener("scroll",n.update,Fv)}),s&&l.addEventListener("resize",n.update,Fv),function(){i&&u.forEach(function(c){c.removeEventListener("scroll",n.update,Fv)}),s&&l.removeEventListener("resize",n.update,Fv)}}const ice={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:oce,data:{}};var ace={left:"right",right:"left",bottom:"top",top:"bottom"};function _1(e){return e.replace(/left|right|bottom|top/g,function(t){return ace[t]})}var sce={start:"end",end:"start"};function u4(e){return e.replace(/start|end/g,function(t){return sce[t]})}function EM(e){var t=wi(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function IM(e){return up(Cu(e)).left+EM(e).scrollLeft}function lce(e,t){var n=wi(e),r=Cu(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;var u=Bj();(u||!u&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s+IM(e),y:l}}function uce(e){var t,n=Cu(e),r=EM(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=gc(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=gc(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+IM(e),l=-r.scrollTop;return sl(o||n).direction==="rtl"&&(s+=gc(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}function RM(e){var t=sl(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Gj(e){return["html","body","#document"].indexOf(ds(e))>=0?e.ownerDocument.body:Yi(e)&&RM(e)?e:Gj(Rx(e))}function Cm(e,t){var n;t===void 0&&(t=[]);var r=Gj(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=wi(r),a=o?[i].concat(i.visualViewport||[],RM(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(Cm(Rx(a)))}function T_(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function cce(e,t){var n=up(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 c4(e,t,n){return t===Nj?T_(lce(e,n)):zc(t)?cce(t,n):T_(uce(Cu(e)))}function dce(e){var t=Cm(Rx(e)),n=["absolute","fixed"].indexOf(sl(e).position)>=0,r=n&&Yi(e)?o0(e):e;return zc(r)?t.filter(function(o){return zc(o)&&Hj(o,r)&&ds(o)!=="body"}):[]}function fce(e,t,n,r){var o=t==="clippingParents"?dce(e):[].concat(t),i=[].concat(o,[n]),a=i[0],s=i.reduce(function(l,u){var c=c4(e,u,r);return l.top=gc(c.top,l.top),l.right=Cy(c.right,l.right),l.bottom=Cy(c.bottom,l.bottom),l.left=gc(c.left,l.left),l},c4(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function qj(e){var t=e.reference,n=e.element,r=e.placement,o=r?rs(r):null,i=r?cp(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(o){case Go:l={x:a,y:t.y-n.height};break;case ta:l={x:a,y:t.y+t.height};break;case na:l={x:t.x+t.width,y:s};break;case qo:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var u=o?TM(o):null;if(u!=null){var c=u==="y"?"height":"width";switch(i){case sp:l[u]=l[u]-(t[c]/2-n[c]/2);break;case ig:l[u]=l[u]+(t[c]/2-n[c]/2);break}}return l}function ag(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,a=i===void 0?e.strategy:i,s=n.boundary,l=s===void 0?Rue:s,u=n.rootBoundary,c=u===void 0?Nj:u,f=n.elementContext,p=f===void 0?Fh:f,y=n.altBoundary,v=y===void 0?!1:y,b=n.padding,C=b===void 0?0:b,x=Vj(typeof C!="number"?C:Uj(C,r0)),w=p===Fh?Oue:Fh,S=e.rects.popper,$=e.elements[v?w:p],T=fce(zc($)?$:$.contextElement||Cu(e.elements.popper),l,c,a),k=up(e.elements.reference),M=qj({reference:k,element:S,strategy:"absolute",placement:o}),I=T_(Object.assign({},S,M)),N=p===Fh?I:k,E={top:T.top-N.top+x.top,bottom:N.bottom-T.bottom+x.bottom,left:T.left-N.left+x.left,right:N.right-T.right+x.right},A=e.modifiersData.offset;if(p===Fh&&A){var z=A[o];Object.keys(E).forEach(function(L){var O=[na,ta].indexOf(L)>=0?1:-1,D=[Go,ta].indexOf(L)>=0?"y":"x";E[L]+=z[D]*O})}return E}function pce(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?zj:l,c=cp(r),f=c?s?a4:a4.filter(function(v){return cp(v)===c}):r0,p=f.filter(function(v){return u.indexOf(v)>=0});p.length===0&&(p=f);var y=p.reduce(function(v,b){return v[b]=ag(e,{placement:b,boundary:o,rootBoundary:i,padding:a})[rs(b)],v},{});return Object.keys(y).sort(function(v,b){return y[v]-y[b]})}function hce(e){if(rs(e)===kM)return[];var t=_1(e);return[u4(e),t,u4(t)]}function mce(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,s=a===void 0?!0:a,l=n.fallbackPlacements,u=n.padding,c=n.boundary,f=n.rootBoundary,p=n.altBoundary,y=n.flipVariations,v=y===void 0?!0:y,b=n.allowedAutoPlacements,C=t.options.placement,x=rs(C),w=x===C,S=l||(w||!v?[_1(C)]:hce(C)),$=[C].concat(S).reduce(function(Q,ne){return Q.concat(rs(ne)===kM?pce(t,{placement:ne,boundary:c,rootBoundary:f,padding:u,flipVariations:v,allowedAutoPlacements:b}):ne)},[]),T=t.rects.reference,k=t.rects.popper,M=new Map,I=!0,N=$[0],E=0;E<$.length;E++){var A=$[E],z=rs(A),L=cp(A)===sp,O=[Go,ta].indexOf(z)>=0,D=O?"width":"height",H=ag(t,{placement:A,boundary:c,rootBoundary:f,altBoundary:p,padding:u}),B=O?L?na:qo:L?ta:Go;T[D]>k[D]&&(B=_1(B));var j=_1(B),W=[];if(i&&W.push(H[z]<=0),s&&W.push(H[B]<=0,H[j]<=0),W.every(function(Q){return Q})){N=A,I=!1;break}M.set(A,W)}if(I)for(var U=v?3:1,Z=function(ne){var re=$.find(function(ge){var xe=M.get(ge);if(xe)return xe.slice(0,ne).every(function(fe){return fe})});if(re)return N=re,"break"},Y=U;Y>0;Y--){var se=Z(Y);if(se==="break")break}t.placement!==N&&(t.modifiersData[r]._skip=!0,t.placement=N,t.reset=!0)}}const gce={name:"flip",enabled:!0,phase:"main",fn:mce,requiresIfExists:["offset"],data:{_skip:!1}};function d4(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 f4(e){return[Go,na,ta,qo].some(function(t){return e[t]>=0})}function vce(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=ag(t,{elementContext:"reference"}),s=ag(t,{altBoundary:!0}),l=d4(a,r),u=d4(s,o,i),c=f4(l),f=f4(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 yce={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:vce};function bce(e,t,n){var r=rs(e),o=[qo,Go].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[qo,na].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function xce(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,a=zj.reduce(function(c,f){return c[f]=bce(f,t.rects,i),c},{}),s=a[t.placement],l=s.x,u=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}const wce={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:xce};function Cce(e){var t=e.state,n=e.name;t.modifiersData[n]=qj({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Sce={name:"popperOffsets",enabled:!0,phase:"read",fn:Cce,data:{}};function $ce(e){return e==="x"?"y":"x"}function _ce(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,s=a===void 0?!1:a,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,f=n.padding,p=n.tether,y=p===void 0?!0:p,v=n.tetherOffset,b=v===void 0?0:v,C=ag(t,{boundary:l,rootBoundary:u,padding:f,altBoundary:c}),x=rs(t.placement),w=cp(t.placement),S=!w,$=TM(x),T=$ce($),k=t.modifiersData.popperOffsets,M=t.rects.reference,I=t.rects.popper,N=typeof b=="function"?b(Object.assign({},t.rects,{placement:t.placement})):b,E=typeof N=="number"?{mainAxis:N,altAxis:N}:Object.assign({mainAxis:0,altAxis:0},N),A=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,z={x:0,y:0};if(k){if(i){var L,O=$==="y"?Go:qo,D=$==="y"?ta:na,H=$==="y"?"height":"width",B=k[$],j=B+C[O],W=B-C[D],U=y?-I[H]/2:0,Z=w===sp?M[H]:I[H],Y=w===sp?-I[H]:-M[H],se=t.elements.arrow,Q=y&&se?MM(se):{width:0,height:0},ne=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Wj(),re=ne[O],ge=ne[D],xe=wm(0,M[H],Q[H]),fe=S?M[H]/2-U-xe-re-E.mainAxis:Z-xe-re-E.mainAxis,Se=S?-M[H]/2+U+xe+ge+E.mainAxis:Y+xe+ge+E.mainAxis,de=t.elements.arrow&&o0(t.elements.arrow),ie=de?$==="y"?de.clientTop||0:de.clientLeft||0:0,Pe=(L=A==null?void 0:A[$])!=null?L:0,$e=B+fe-Pe-ie,me=B+Se-Pe,ue=wm(y?Cy(j,$e):j,B,y?gc(W,me):W);k[$]=ue,z[$]=ue-B}if(s){var ce,Te=$==="x"?Go:qo,Le=$==="x"?ta:na,Re=k[T],Oe=T==="y"?"height":"width",K=Re+C[Te],ee=Re-C[Le],pe=[Go,qo].indexOf(x)!==-1,ye=(ce=A==null?void 0:A[T])!=null?ce:0,De=pe?K:Re-M[Oe]-I[Oe]-ye+E.altAxis,Ae=pe?Re+M[Oe]+I[Oe]-ye-E.altAxis:ee,Ee=y&&pe?Yue(De,Re,Ae):wm(y?De:K,Re,y?Ae:ee);k[T]=Ee,z[T]=Ee-Re}t.modifiersData[r]=z}}const kce={name:"preventOverflow",enabled:!0,phase:"main",fn:_ce,requiresIfExists:["offset"]};function Pce(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Mce(e){return e===wi(e)||!Yi(e)?EM(e):Pce(e)}function Tce(e){var t=e.getBoundingClientRect(),n=lp(t.width)/e.offsetWidth||1,r=lp(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Ece(e,t,n){n===void 0&&(n=!1);var r=Yi(t),o=Yi(t)&&Tce(t),i=Cu(t),a=up(e,o,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((ds(t)!=="body"||RM(i))&&(s=Mce(t)),Yi(t)?(l=up(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=IM(i))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function Ice(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&o(l)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function Rce(e){var t=Ice(e);return Wue.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function Oce(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Ace(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 p4={placement:"bottom",modifiers:[],strategy:"absolute"};function h4(){for(var e=arguments.length,t=new Array(e),n=0;n{i||s(Dce(o)||document.body)},[o,i]),pn(()=>{if(a&&!i)return Dc(n,a),()=>{Dc(n,null)}},[n,a,i]),i){if(m.isValidElement(r)){const u={ref:l};return m.cloneElement(r,u)}return g.jsx(m.Fragment,{children:r})}return g.jsx(m.Fragment,{children:a&&bu.createPortal(r,a)})});function jce(e){return yt("MuiPopper",e)}bt("MuiPopper",["root"]);const Nce=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],zce=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function Bce(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function E_(e){return typeof e=="function"?e():e}function Hce(e){return e.nodeType!==void 0}const Wce=()=>qe({root:["root"]},xue(jce)),Vce={},Uce=m.forwardRef(function(t,n){var r;const{anchorEl:o,children:i,direction:a,disablePortal:s,modifiers:l,open:u,placement:c,popperOptions:f,popperRef:p,slotProps:y={},slots:v={},TransitionProps:b}=t,C=be(t,Nce),x=m.useRef(null),w=on(x,n),S=m.useRef(null),$=on(S,p),T=m.useRef($);pn(()=>{T.current=$},[$]),m.useImperativeHandle(p,()=>S.current,[]);const k=Bce(c,a),[M,I]=m.useState(k),[N,E]=m.useState(E_(o));m.useEffect(()=>{S.current&&S.current.forceUpdate()}),m.useEffect(()=>{o&&E(E_(o))},[o]),pn(()=>{if(!N||!u)return;const D=j=>{I(j.placement)};let H=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:j})=>{D(j)}}];l!=null&&(H=H.concat(l)),f&&f.modifiers!=null&&(H=H.concat(f.modifiers));const B=Kj(N,x.current,P({placement:k},f,{modifiers:H}));return T.current(B),()=>{B.destroy(),T.current(null)}},[N,s,l,u,f,k]);const A={placement:M};b!==null&&(A.TransitionProps=b);const z=Wce(),L=(r=v.root)!=null?r:"div",O=xi({elementType:L,externalSlotProps:y.root,externalForwardedProps:C,additionalProps:{role:"tooltip",ref:w},ownerState:t,className:z.root});return g.jsx(L,P({},O,{children:typeof i=="function"?i(A):i}))}),Gce=m.forwardRef(function(t,n){const{anchorEl:r,children:o,container:i,direction:a="ltr",disablePortal:s=!1,keepMounted:l=!1,modifiers:u,open:c,placement:f="bottom",popperOptions:p=Vce,popperRef:y,style:v,transition:b=!1,slotProps:C={},slots:x={}}=t,w=be(t,zce),[S,$]=m.useState(!0),T=()=>{$(!1)},k=()=>{$(!0)};if(!l&&!c&&(!b||S))return null;let M;if(i)M=i;else if(r){const E=E_(r);M=E&&Hce(E)?Gn(E).body:Gn(null).body}const I=!c&&l&&(!b||S)?"none":void 0,N=b?{in:c,onEnter:T,onExited:k}:void 0;return g.jsx(Yj,{disablePortal:s,container:M,children:g.jsx(Uce,P({anchorEl:r,direction:a,disablePortal:s,modifiers:u,ref:n,open:b?!S:c,placement:f,popperOptions:p,popperRef:y,slotProps:C,slots:x},w,{style:P({position:"fixed",top:0,left:0,display:I},v),TransitionProps:N,children:o}))})});function qce(e){const t=Gn(e);return t.body===e?ea(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Sm(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function m4(e){return parseInt(ea(e).getComputedStyle(e).paddingRight,10)||0}function Kce(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 g4(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,a=>{const s=i.indexOf(a)===-1,l=!Kce(a);s&&l&&Sm(a,o)})}function vS(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function Yce(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(qce(r)){const a=ej(Gn(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${m4(r)+a}px`;const s=Gn(r).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${m4(l)+a}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=Gn(r).body;else{const a=r.parentElement,s=ea(r);i=(a==null?void 0:a.nodeName)==="HTML"&&s.getComputedStyle(a).overflowY==="scroll"?a:r}n.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{n.forEach(({value:i,el:a,property:s})=>{i?a.style.setProperty(s,i):a.style.removeProperty(s)})}}function Xce(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class Qce{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&&Sm(t.modalRef,!1);const o=Xce(n);g4(n,t.mount,t.modalRef,o,!0);const i=vS(this.containers,a=>a.container===n);return i!==-1?(this.containers[i].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=vS(this.containers,i=>i.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=Yce(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=vS(this.containers,a=>a.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&&Sm(t.modalRef,n),g4(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(o,1);else{const a=i.modals[i.modals.length-1];a.modalRef&&Sm(a.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function Zce(e){return typeof e=="function"?e():e}function Jce(e){return e?e.props.hasOwnProperty("in"):!1}const ede=new Qce;function tde(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=ede,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:u,open:c,rootRef:f}=e,p=m.useRef({}),y=m.useRef(null),v=m.useRef(null),b=on(v,f),[C,x]=m.useState(!c),w=Jce(l);let S=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(S=!1);const $=()=>Gn(y.current),T=()=>(p.current.modalRef=v.current,p.current.mount=y.current,p.current),k=()=>{o.mount(T(),{disableScrollLock:r}),v.current&&(v.current.scrollTop=0)},M=Dn(()=>{const H=Zce(t)||$().body;o.add(T(),H),v.current&&k()}),I=m.useCallback(()=>o.isTopModal(T()),[o]),N=Dn(H=>{y.current=H,H&&(c&&I()?k():v.current&&Sm(v.current,S))}),E=m.useCallback(()=>{o.remove(T(),S)},[S,o]);m.useEffect(()=>()=>{E()},[E]),m.useEffect(()=>{c?M():(!w||!i)&&E()},[c,E,w,i,M]);const A=H=>B=>{var j;(j=H.onKeyDown)==null||j.call(H,B),!(B.key!=="Escape"||!I())&&(n||(B.stopPropagation(),u&&u(B,"escapeKeyDown")))},z=H=>B=>{var j;(j=H.onClick)==null||j.call(H,B),B.target===B.currentTarget&&u&&u(B,"backdropClick")};return{getRootProps:(H={})=>{const B=Lj(e);delete B.onTransitionEnter,delete B.onTransitionExited;const j=P({},B,H);return P({role:"presentation"},j,{onKeyDown:A(j),ref:b})},getBackdropProps:(H={})=>{const B=H;return P({"aria-hidden":!0},B,{onClick:z(B),open:c})},getTransitionProps:()=>{const H=()=>{x(!1),a&&a()},B=()=>{x(!0),s&&s(),i&&E()};return{onEnter:x_(H,l==null?void 0:l.props.onEnter),onExited:x_(B,l==null?void 0:l.props.onExited)}},rootRef:b,portalRef:N,isTopModal:I,exited:C,hasTransition:w}}const nde=["onChange","maxRows","minRows","style","value"];function Lv(e){return parseInt(e,10)||0}const rde={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function v4(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflow}const ode=m.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:i=1,style:a,value:s}=t,l=be(t,nde),{current:u}=m.useRef(s!=null),c=m.useRef(null),f=on(n,c),p=m.useRef(null),y=m.useRef(0),[v,b]=m.useState({outerHeightStyle:0}),C=m.useCallback(()=>{const $=c.current,k=ea($).getComputedStyle($);if(k.width==="0px")return{outerHeightStyle:0};const M=p.current;M.style.width=k.width,M.value=$.value||t.placeholder||"x",M.value.slice(-1)===` -`&&(M.value+=" ");const I=k.boxSizing,N=Lv(k.paddingBottom)+Lv(k.paddingTop),E=Lv(k.borderBottomWidth)+Lv(k.borderTopWidth),A=M.scrollHeight;M.value="x";const z=M.scrollHeight;let L=A;i&&(L=Math.max(Number(i)*z,L)),o&&(L=Math.min(Number(o)*z,L)),L=Math.max(L,z);const O=L+(I==="border-box"?N+E:0),D=Math.abs(L-A)<=1;return{outerHeightStyle:O,overflow:D}},[o,i,t.placeholder]),x=($,T)=>{const{outerHeightStyle:k,overflow:M}=T;return y.current<20&&(k>0&&Math.abs(($.outerHeightStyle||0)-k)>1||$.overflow!==M)?(y.current+=1,{overflow:M,outerHeightStyle:k}):$},w=m.useCallback(()=>{const $=C();v4($)||b(T=>x(T,$))},[C]);pn(()=>{const $=()=>{const A=C();v4(A)||bu.flushSync(()=>{b(z=>x(z,A))})},T=()=>{y.current=0,$()};let k;const M=wu(T),I=c.current,N=ea(I);N.addEventListener("resize",M);let E;return typeof ResizeObserver<"u"&&(E=new ResizeObserver(T),E.observe(I)),()=>{M.clear(),cancelAnimationFrame(k),N.removeEventListener("resize",M),E&&E.disconnect()}},[C]),pn(()=>{w()}),m.useEffect(()=>{y.current=0},[s]);const S=$=>{y.current=0,u||w(),r&&r($)};return g.jsxs(m.Fragment,{children:[g.jsx("textarea",P({value:s,onChange:S,ref:f,rows:i,style:P({height:v.outerHeightStyle,overflow:v.overflow?"hidden":void 0},a)},l)),g.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:p,tabIndex:-1,style:P({},rde.shadow,a,{paddingTop:0,paddingBottom:0})})]})});function y4(e){return typeof e.normalize<"u"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function Xj(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:o="any",stringify:i,trim:a=!1}=e;return(s,{inputValue:l,getOptionLabel:u})=>{let c=a?l.trim():l;n&&(c=c.toLowerCase()),t&&(c=y4(c));const f=c?s.filter(p=>{let y=(i||u)(p);return n&&(y=y.toLowerCase()),t&&(y=y4(y)),o==="start"?y.indexOf(c)===0:y.indexOf(c)>-1}):s;return typeof r=="number"?f.slice(0,r):f}}function yS(e,t){for(let n=0;n{var t;return e.current!==null&&((t=e.current.parentElement)==null?void 0:t.contains(document.activeElement))};function sde(e){const{unstable_isActiveElementInListbox:t=ade,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:o=!1,autoSelect:i=!1,blurOnSelect:a=!1,clearOnBlur:s=!e.freeSolo,clearOnEscape:l=!1,componentName:u="useAutocomplete",defaultValue:c=e.multiple?[]:null,disableClearable:f=!1,disableCloseOnSelect:p=!1,disabled:y,disabledItemsFocusable:v=!1,disableListWrap:b=!1,filterOptions:C=ide,filterSelectedOptions:x=!1,freeSolo:w=!1,getOptionDisabled:S,getOptionLabel:$=_e=>{var we;return(we=_e.label)!=null?we:_e},groupBy:T,handleHomeEndKeys:k=!e.freeSolo,id:M,includeInputInList:I=!1,inputValue:N,isOptionEqualToValue:E=(_e,we)=>_e===we,multiple:A=!1,onChange:z,onClose:L,onHighlightChange:O,onInputChange:D,onOpen:H,open:B,openOnFocus:j=!1,options:W,readOnly:U=!1,selectOnFocus:Z=!e.freeSolo,value:Y}=e,se=ln(M);let Q=$;Q=_e=>{const we=$(_e);return typeof we!="string"?String(we):we};const ne=m.useRef(!1),re=m.useRef(!0),ge=m.useRef(null),xe=m.useRef(null),[fe,Se]=m.useState(null),[de,ie]=m.useState(-1),Pe=o?0:-1,$e=m.useRef(Pe),[me,ue]=nu({controlled:Y,default:c,name:u}),[ce,Te]=nu({controlled:N,default:"",name:u,state:"inputValue"}),[Le,Re]=m.useState(!1),Oe=m.useCallback((_e,we)=>{if(!(A?me.length!(x&&(A?me:[me]).some(we=>we!==null&&E(_e,we)))),{inputValue:De&&pe?"":ce,getOptionLabel:Q}):[],Ce=sM({filteredOptions:Ee,value:me,inputValue:ce});m.useEffect(()=>{const _e=me!==Ce.value;Le&&!_e||w&&!_e||Oe(null,me)},[me,Oe,Le,Ce.value,w]);const Qe=K&&Ee.length>0&&!U,Ct=Dn(_e=>{_e===-1?ge.current.focus():fe.querySelector(`[data-tag-index="${_e}"]`).focus()});m.useEffect(()=>{A&&de>me.length-1&&(ie(-1),Ct(-1))},[me,A,de,Ct]);function et(_e,we){if(!xe.current||_e===-1)return-1;let Fe=_e;for(;;){if(we==="next"&&Fe===Ee.length||we==="previous"&&Fe===-1)return-1;const rt=xe.current.querySelector(`[data-option-index="${Fe}"]`),Tt=v?!1:!rt||rt.disabled||rt.getAttribute("aria-disabled")==="true";if(rt&&!rt.hasAttribute("tabindex")||Tt)Fe+=we==="next"?1:-1;else return Fe}}const Be=Dn(({event:_e,index:we,reason:Fe="auto"})=>{if($e.current=we,we===-1?ge.current.removeAttribute("aria-activedescendant"):ge.current.setAttribute("aria-activedescendant",`${se}-option-${we}`),O&&O(_e,we===-1?null:Ee[we],Fe),!xe.current)return;const rt=xe.current.querySelector(`[role="option"].${n}-focused`);rt&&(rt.classList.remove(`${n}-focused`),rt.classList.remove(`${n}-focusVisible`));let Tt=xe.current;if(xe.current.getAttribute("role")!=="listbox"&&(Tt=xe.current.parentElement.querySelector('[role="listbox"]')),!Tt)return;if(we===-1){Tt.scrollTop=0;return}const en=xe.current.querySelector(`[data-option-index="${we}"]`);if(en&&(en.classList.add(`${n}-focused`),Fe==="keyboard"&&en.classList.add(`${n}-focusVisible`),Tt.scrollHeight>Tt.clientHeight&&Fe!=="mouse"&&Fe!=="touch")){const _n=en,ct=Tt.clientHeight+Tt.scrollTop,gt=_n.offsetTop+_n.offsetHeight;gt>ct?Tt.scrollTop=gt-Tt.clientHeight:_n.offsetTop-_n.offsetHeight*(T?1.3:0){if(!Ae)return;const en=et((()=>{const _n=Ee.length-1;if(we==="reset")return Pe;if(we==="start")return 0;if(we==="end")return _n;const ct=$e.current+we;return ct<0?ct===-1&&I?-1:b&&$e.current!==-1||Math.abs(we)>1?0:_n:ct>_n?ct===_n+1&&I?-1:b||Math.abs(we)>1?_n:0:ct})(),Fe);if(Be({index:en,reason:rt,event:_e}),r&&we!=="reset")if(en===-1)ge.current.value=ce;else{const _n=Q(Ee[en]);ge.current.value=_n,_n.toLowerCase().indexOf(ce.toLowerCase())===0&&ce.length>0&&ge.current.setSelectionRange(ce.length,_n.length)}}),X=()=>{const _e=(we,Fe)=>{const rt=we?Q(we):"",Tt=Fe?Q(Fe):"";return rt===Tt};if($e.current!==-1&&Ce.filteredOptions&&Ce.filteredOptions.length!==Ee.length&&Ce.inputValue===ce&&(A?me.length===Ce.value.length&&Ce.value.every((we,Fe)=>Q(me[Fe])===Q(we)):_e(Ce.value,me))){const we=Ce.filteredOptions[$e.current];if(we&&Ee.some(rt=>Q(rt)===Q(we)))return!0}return!1},oe=m.useCallback(()=>{if(!Ae||X())return;const _e=A?me[0]:me;if(Ee.length===0||_e==null){te({diff:"reset"});return}if(xe.current){if(_e!=null){const we=Ee[$e.current];if(A&&we&&yS(me,rt=>E(we,rt))!==-1)return;const Fe=yS(Ee,rt=>E(rt,_e));Fe===-1?te({diff:"reset"}):Be({index:Fe});return}if($e.current>=Ee.length-1){Be({index:Ee.length-1});return}Be({index:$e.current})}},[Ee.length,A?!1:me,x,te,Be,Ae,ce,A]),Ie=Dn(_e=>{Dc(xe,_e),_e&&oe()});m.useEffect(()=>{oe()},[oe]);const Ve=_e=>{K||(ee(!0),ye(!0),H&&H(_e))},Ke=(_e,we)=>{K&&(ee(!1),L&&L(_e,we))},at=(_e,we,Fe,rt)=>{if(A){if(me.length===we.length&&me.every((Tt,en)=>Tt===we[en]))return}else if(me===we)return;z&&z(_e,we,Fe,rt),ue(we)},Je=m.useRef(!1),nt=(_e,we,Fe="selectOption",rt="options")=>{let Tt=Fe,en=we;if(A){en=Array.isArray(me)?me.slice():[];const _n=yS(en,ct=>E(we,ct));_n===-1?en.push(we):rt!=="freeSolo"&&(en.splice(_n,1),Tt="removeOption")}Oe(_e,en),at(_e,en,Tt,{option:we}),!p&&(!_e||!_e.ctrlKey&&!_e.metaKey)&&Ke(_e,Tt),(a===!0||a==="touch"&&Je.current||a==="mouse"&&!Je.current)&&ge.current.blur()};function _t(_e,we){if(_e===-1)return-1;let Fe=_e;for(;;){if(we==="next"&&Fe===me.length||we==="previous"&&Fe===-1)return-1;const rt=fe.querySelector(`[data-tag-index="${Fe}"]`);if(!rt||!rt.hasAttribute("tabindex")||rt.disabled||rt.getAttribute("aria-disabled")==="true")Fe+=we==="next"?1:-1;else return Fe}}const ht=(_e,we)=>{if(!A)return;ce===""&&Ke(_e,"toggleInput");let Fe=de;de===-1?ce===""&&we==="previous"&&(Fe=me.length-1):(Fe+=we==="next"?1:-1,Fe<0&&(Fe=0),Fe===me.length&&(Fe=-1)),Fe=_t(Fe,we),ie(Fe),Ct(Fe)},lt=_e=>{ne.current=!0,Te(""),D&&D(_e,"","clear"),at(_e,A?[]:null,"clear")},Rt=_e=>we=>{if(_e.onKeyDown&&_e.onKeyDown(we),!we.defaultMuiPrevented&&(de!==-1&&["ArrowLeft","ArrowRight"].indexOf(we.key)===-1&&(ie(-1),Ct(-1)),we.which!==229))switch(we.key){case"Home":Ae&&k&&(we.preventDefault(),te({diff:"start",direction:"next",reason:"keyboard",event:we}));break;case"End":Ae&&k&&(we.preventDefault(),te({diff:"end",direction:"previous",reason:"keyboard",event:we}));break;case"PageUp":we.preventDefault(),te({diff:-b4,direction:"previous",reason:"keyboard",event:we}),Ve(we);break;case"PageDown":we.preventDefault(),te({diff:b4,direction:"next",reason:"keyboard",event:we}),Ve(we);break;case"ArrowDown":we.preventDefault(),te({diff:1,direction:"next",reason:"keyboard",event:we}),Ve(we);break;case"ArrowUp":we.preventDefault(),te({diff:-1,direction:"previous",reason:"keyboard",event:we}),Ve(we);break;case"ArrowLeft":ht(we,"previous");break;case"ArrowRight":ht(we,"next");break;case"Enter":if($e.current!==-1&&Ae){const Fe=Ee[$e.current],rt=S?S(Fe):!1;if(we.preventDefault(),rt)return;nt(we,Fe,"selectOption"),r&&ge.current.setSelectionRange(ge.current.value.length,ge.current.value.length)}else w&&ce!==""&&De===!1&&(A&&we.preventDefault(),nt(we,ce,"createOption","freeSolo"));break;case"Escape":Ae?(we.preventDefault(),we.stopPropagation(),Ke(we,"escape")):l&&(ce!==""||A&&me.length>0)&&(we.preventDefault(),we.stopPropagation(),lt(we));break;case"Backspace":if(A&&!U&&ce===""&&me.length>0){const Fe=de===-1?me.length-1:de,rt=me.slice();rt.splice(Fe,1),at(we,rt,"removeOption",{option:me[Fe]})}break;case"Delete":if(A&&!U&&ce===""&&me.length>0&&de!==-1){const Fe=de,rt=me.slice();rt.splice(Fe,1),at(we,rt,"removeOption",{option:me[Fe]})}break}},jt=_e=>{Re(!0),j&&!ne.current&&Ve(_e)},dn=_e=>{if(t(xe)){ge.current.focus();return}Re(!1),re.current=!0,ne.current=!1,i&&$e.current!==-1&&Ae?nt(_e,Ee[$e.current],"blur"):i&&w&&ce!==""?nt(_e,ce,"blur","freeSolo"):s&&Oe(_e,me),Ke(_e,"blur")},hn=_e=>{const we=_e.target.value;ce!==we&&(Te(we),ye(!1),D&&D(_e,we,"input")),we===""?!f&&!A&&at(_e,null,"clear"):Ve(_e)},Pt=_e=>{const we=Number(_e.currentTarget.getAttribute("data-option-index"));$e.current!==we&&Be({event:_e,index:we,reason:"mouse"})},zt=_e=>{Be({event:_e,index:Number(_e.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Je.current=!0},un=_e=>{const we=Number(_e.currentTarget.getAttribute("data-option-index"));nt(_e,Ee[we],"selectOption"),Je.current=!1},cn=_e=>we=>{const Fe=me.slice();Fe.splice(_e,1),at(we,Fe,"removeOption",{option:me[_e]})},ut=_e=>{K?Ke(_e,"toggleInput"):Ve(_e)},mt=_e=>{_e.currentTarget.contains(_e.target)&&_e.target.getAttribute("id")!==se&&_e.preventDefault()},Ot=_e=>{_e.currentTarget.contains(_e.target)&&(ge.current.focus(),Z&&re.current&&ge.current.selectionEnd-ge.current.selectionStart===0&&ge.current.select(),re.current=!1)},At=_e=>{!y&&(ce===""||!K)&&ut(_e)};let tt=w&&ce.length>0;tt=tt||(A?me.length>0:me!==null);let Ut=Ee;return T&&(Ut=Ee.reduce((_e,we,Fe)=>{const rt=T(we);return _e.length>0&&_e[_e.length-1].group===rt?_e[_e.length-1].options.push(we):_e.push({key:Fe,index:Fe,group:rt,options:[we]}),_e},[])),y&&Le&&dn(),{getRootProps:(_e={})=>P({"aria-owns":Qe?`${se}-listbox`:null},_e,{onKeyDown:Rt(_e),onMouseDown:mt,onClick:Ot}),getInputLabelProps:()=>({id:`${se}-label`,htmlFor:se}),getInputProps:()=>({id:se,value:ce,onBlur:dn,onFocus:jt,onChange:hn,onMouseDown:At,"aria-activedescendant":Ae?"":null,"aria-autocomplete":r?"both":"list","aria-controls":Qe?`${se}-listbox`:void 0,"aria-expanded":Qe,autoComplete:"off",ref:ge,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:y}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:lt}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:ut}),getTagProps:({index:_e})=>P({key:_e,"data-tag-index":_e,tabIndex:-1},!U&&{onDelete:cn(_e)}),getListboxProps:()=>({role:"listbox",id:`${se}-listbox`,"aria-labelledby":`${se}-label`,ref:Ie,onMouseDown:_e=>{_e.preventDefault()}}),getOptionProps:({index:_e,option:we})=>{const Fe=(A?me:[me]).some(Tt=>Tt!=null&&E(we,Tt)),rt=S?S(we):!1;return{key:Q(we),tabIndex:-1,role:"option",id:`${se}-option-${_e}`,onMouseMove:Pt,onClick:un,onTouchStart:zt,"data-option-index":_e,"aria-disabled":rt,"aria-selected":Fe}},id:se,inputValue:ce,value:me,dirty:tt,expanded:Ae&&fe,popupOpen:Ae,focused:Le||de!==-1,anchorEl:fe,setAnchorEl:Se,focusedTag:de,groupedOptions:Ut}}const lde=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],ude=ke(Gce,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),cde=m.forwardRef(function(t,n){var r;const o=_j(),i=$t({props:t,name:"MuiPopper"}),{anchorEl:a,component:s,components:l,componentsProps:u,container:c,disablePortal:f,keepMounted:p,modifiers:y,open:v,placement:b,popperOptions:C,popperRef:x,transition:w,slots:S,slotProps:$}=i,T=be(i,lde),k=(r=S==null?void 0:S.root)!=null?r:l==null?void 0:l.Root,M=P({anchorEl:a,container:c,disablePortal:f,keepMounted:p,modifiers:y,open:v,placement:b,popperOptions:C,popperRef:x,transition:w},T);return g.jsx(ude,P({as:s,direction:o==null?void 0:o.direction,slots:{root:k},slotProps:$??u},M,{ref:n}))}),ad=cde;function dde(e){return yt("MuiListSubheader",e)}bt("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const fde=["className","color","component","disableGutters","disableSticky","inset"],pde=e=>{const{classes:t,color:n,disableGutters:r,inset:o,disableSticky:i}=e,a={root:["root",n!=="default"&&`color${je(n)}`,!r&&"gutters",o&&"inset",!i&&"sticky"]};return qe(a,dde,t)},hde=ke("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${je(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(({theme:e,ownerState:t})=>P({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},t.color==="primary"&&{color:(e.vars||e).palette.primary.main},t.color==="inherit"&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper})),Qj=m.forwardRef(function(t,n){const r=$t({props:t,name:"MuiListSubheader"}),{className:o,color:i="default",component:a="li",disableGutters:s=!1,disableSticky:l=!1,inset:u=!1}=r,c=be(r,fde),f=P({},r,{color:i,component:a,disableGutters:s,disableSticky:l,inset:u}),p=pde(f);return g.jsx(hde,P({as:a,className:ze(p.root,o),ref:n,ownerState:f},c))});Qj.muiSkipListHighlight=!0;const mde=Qj,gde=xt(g.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function vde(e){return yt("MuiChip",e)}const yde=bt("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),mn=yde,bde=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],xde=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:i,onDelete:a,clickable:s,variant:l}=e,u={root:["root",l,n&&"disabled",`size${je(r)}`,`color${je(o)}`,s&&"clickable",s&&`clickableColor${je(o)}`,a&&"deletable",a&&`deletableColor${je(o)}`,`${l}${je(o)}`],label:["label",`label${je(r)}`],avatar:["avatar",`avatar${je(r)}`,`avatarColor${je(o)}`],icon:["icon",`icon${je(r)}`,`iconColor${je(i)}`],deleteIcon:["deleteIcon",`deleteIcon${je(r)}`,`deleteIconColor${je(o)}`,`deleteIcon${je(l)}Color${je(o)}`]};return qe(u,vde,t)},wde=ke("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:i,onDelete:a,size:s,variant:l}=n;return[{[`& .${mn.avatar}`]:t.avatar},{[`& .${mn.avatar}`]:t[`avatar${je(s)}`]},{[`& .${mn.avatar}`]:t[`avatarColor${je(r)}`]},{[`& .${mn.icon}`]:t.icon},{[`& .${mn.icon}`]:t[`icon${je(s)}`]},{[`& .${mn.icon}`]:t[`iconColor${je(o)}`]},{[`& .${mn.deleteIcon}`]:t.deleteIcon},{[`& .${mn.deleteIcon}`]:t[`deleteIcon${je(s)}`]},{[`& .${mn.deleteIcon}`]:t[`deleteIconColor${je(r)}`]},{[`& .${mn.deleteIcon}`]:t[`deleteIcon${je(l)}Color${je(r)}`]},t.root,t[`size${je(s)}`],t[`color${je(r)}`],i&&t.clickable,i&&r!=="default"&&t[`clickableColor${je(r)})`],a&&t.deletable,a&&r!=="default"&&t[`deletableColor${je(r)}`],t[l],t[`${l}${je(r)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return P({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${mn.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${mn.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${mn.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${mn.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${mn.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${mn.icon}`]:P({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&P({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},t.color!=="default"&&{color:"inherit"})),[`& .${mn.deleteIcon}`]:P({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:Lt(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:Lt(e.palette.text.primary,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:Lt(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${mn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Lt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${mn.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>P({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Lt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${mn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Lt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${mn.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>P({},t.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${mn.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${mn.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${mn.avatar}`]:{marginLeft:4},[`& .${mn.avatarSmall}`]:{marginLeft:2},[`& .${mn.icon}`]:{marginLeft:4},[`& .${mn.iconSmall}`]:{marginLeft:2},[`& .${mn.deleteIcon}`]:{marginRight:5},[`& .${mn.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Lt(e.palette[t.color].main,.7)}`,[`&.${mn.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Lt(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${mn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Lt(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${mn.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Lt(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),Cde=ke("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${je(r)}`]]}})(({ownerState:e})=>P({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function x4(e){return e.key==="Backspace"||e.key==="Delete"}const Sde=m.forwardRef(function(t,n){const r=$t({props:t,name:"MuiChip"}),{avatar:o,className:i,clickable:a,color:s="default",component:l,deleteIcon:u,disabled:c=!1,icon:f,label:p,onClick:y,onDelete:v,onKeyDown:b,onKeyUp:C,size:x="medium",variant:w="filled",tabIndex:S,skipFocusWhenDisabled:$=!1}=r,T=be(r,bde),k=m.useRef(null),M=on(k,n),I=W=>{W.stopPropagation(),v&&v(W)},N=W=>{W.currentTarget===W.target&&x4(W)&&W.preventDefault(),b&&b(W)},E=W=>{W.currentTarget===W.target&&(v&&x4(W)?v(W):W.key==="Escape"&&k.current&&k.current.blur()),C&&C(W)},A=a!==!1&&y?!0:a,z=A||v?cu:l||"div",L=P({},r,{component:z,disabled:c,size:x,color:s,iconColor:m.isValidElement(f)&&f.props.color||s,onDelete:!!v,clickable:A,variant:w}),O=xde(L),D=z===cu?P({component:l||"div",focusVisibleClassName:O.focusVisible},v&&{disableRipple:!0}):{};let H=null;v&&(H=u&&m.isValidElement(u)?m.cloneElement(u,{className:ze(u.props.className,O.deleteIcon),onClick:I}):g.jsx(gde,{className:ze(O.deleteIcon),onClick:I}));let B=null;o&&m.isValidElement(o)&&(B=m.cloneElement(o,{className:ze(O.avatar,o.props.className)}));let j=null;return f&&m.isValidElement(f)&&(j=m.cloneElement(f,{className:ze(O.icon,f.props.className)})),g.jsxs(wde,P({as:z,className:ze(O.root,i),disabled:A&&c?!0:void 0,onClick:y,onKeyDown:N,onKeyUp:E,ref:M,tabIndex:$&&c?-1:S,ownerState:L},D,T,{children:[B||j,g.jsx(Cde,{className:ze(O.label),ownerState:L,children:p}),H]}))}),Zj=Sde;function Su({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 $de=m.createContext(void 0),Ox=$de;function bs(){return m.useContext(Ox)}function Jj(e){return g.jsx(Qae,P({},e,{defaultTheme:Ex,themeId:e0}))}function w4(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Sy(e,t=!1){return e&&(w4(e.value)&&e.value!==""||t&&w4(e.defaultValue)&&e.defaultValue!=="")}function _de(e){return e.startAdornment}function kde(e){return yt("MuiInputBase",e)}const Pde=bt("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),li=Pde,Mde=["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"],Ax=(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${je(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Fx=(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]},Tde=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:s,fullWidth:l,hiddenLabel:u,multiline:c,readOnly:f,size:p,startAdornment:y,type:v}=e,b={root:["root",`color${je(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",p&&p!=="medium"&&`size${je(p)}`,c&&"multiline",y&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",f&&"readOnly"],input:["input",r&&"disabled",v==="search"&&"inputTypeSearch",c&&"inputMultiline",p==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",y&&"inputAdornedStart",i&&"inputAdornedEnd",f&&"readOnly"]};return qe(b,kde,t)},Lx=ke("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Ax})(({theme:e,ownerState:t})=>P({},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",[`&.${li.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&P({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),Dx=ke("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Fx})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=P({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 P({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] + .${li.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},[`&.${li.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"})}),Ede=g.jsx(Jj,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Ide=m.forwardRef(function(t,n){var r;const o=$t({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:a,autoFocus:s,className:l,components:u={},componentsProps:c={},defaultValue:f,disabled:p,disableInjectingGlobalStyles:y,endAdornment:v,fullWidth:b=!1,id:C,inputComponent:x="input",inputProps:w={},inputRef:S,maxRows:$,minRows:T,multiline:k=!1,name:M,onBlur:I,onChange:N,onClick:E,onFocus:A,onKeyDown:z,onKeyUp:L,placeholder:O,readOnly:D,renderSuffix:H,rows:B,slotProps:j={},slots:W={},startAdornment:U,type:Z="text",value:Y}=o,se=be(o,Mde),Q=w.value!=null?w.value:Y,{current:ne}=m.useRef(Q!=null),re=m.useRef(),ge=m.useCallback(Ee=>{},[]),xe=on(re,S,w.ref,ge),[fe,Se]=m.useState(!1),de=bs(),ie=Su({props:o,muiFormControl:de,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ie.focused=de?de.focused:fe,m.useEffect(()=>{!de&&p&&fe&&(Se(!1),I&&I())},[de,p,fe,I]);const Pe=de&&de.onFilled,$e=de&&de.onEmpty,me=m.useCallback(Ee=>{Sy(Ee)?Pe&&Pe():$e&&$e()},[Pe,$e]);pn(()=>{ne&&me({value:Q})},[Q,me,ne]);const ue=Ee=>{if(ie.disabled){Ee.stopPropagation();return}A&&A(Ee),w.onFocus&&w.onFocus(Ee),de&&de.onFocus?de.onFocus(Ee):Se(!0)},ce=Ee=>{I&&I(Ee),w.onBlur&&w.onBlur(Ee),de&&de.onBlur?de.onBlur(Ee):Se(!1)},Te=(Ee,...Ce)=>{if(!ne){const Qe=Ee.target||re.current;if(Qe==null)throw new Error(uu(1));me({value:Qe.value})}w.onChange&&w.onChange(Ee,...Ce),N&&N(Ee,...Ce)};m.useEffect(()=>{me(re.current)},[]);const Le=Ee=>{re.current&&Ee.currentTarget===Ee.target&&re.current.focus(),E&&E(Ee)};let Re=x,Oe=w;k&&Re==="input"&&(B?Oe=P({type:void 0,minRows:B,maxRows:B},Oe):Oe=P({type:void 0,maxRows:$,minRows:T},Oe),Re=ode);const K=Ee=>{me(Ee.animationName==="mui-auto-fill-cancel"?re.current:{value:"x"})};m.useEffect(()=>{de&&de.setAdornedStart(!!U)},[de,U]);const ee=P({},o,{color:ie.color||"primary",disabled:ie.disabled,endAdornment:v,error:ie.error,focused:ie.focused,formControl:de,fullWidth:b,hiddenLabel:ie.hiddenLabel,multiline:k,size:ie.size,startAdornment:U,type:Z}),pe=Tde(ee),ye=W.root||u.Root||Lx,De=j.root||c.root||{},Ae=W.input||u.Input||Dx;return Oe=P({},Oe,(r=j.input)!=null?r:c.input),g.jsxs(m.Fragment,{children:[!y&&Ede,g.jsxs(ye,P({},De,!og(ye)&&{ownerState:P({},ee,De.ownerState)},{ref:n,onClick:Le},se,{className:ze(pe.root,De.className,l,D&&"MuiInputBase-readOnly"),children:[U,g.jsx(Ox.Provider,{value:null,children:g.jsx(Ae,P({ownerState:ee,"aria-invalid":ie.error,"aria-describedby":i,autoComplete:a,autoFocus:s,defaultValue:f,disabled:ie.disabled,id:C,onAnimationStart:K,name:M,placeholder:O,readOnly:D,required:ie.required,rows:B,value:Q,onKeyDown:z,onKeyUp:L,type:Z},Oe,!og(Ae)&&{as:Re,ownerState:P({},ee,Oe.ownerState)},{ref:xe,className:ze(pe.input,Oe.className,D&&"MuiInputBase-readOnly"),onBlur:ce,onChange:Te,onFocus:ue}))}),v,H?H(P({},ie,{startAdornment:U})):null]}))]})}),sd=Ide;function Rde(e){return yt("MuiInput",e)}const Ode=P({},li,bt("MuiInput",["root","underline","input"])),Nl=Ode;function Ade(e){return yt("MuiOutlinedInput",e)}const Fde=P({},li,bt("MuiOutlinedInput",["root","notchedOutline","input"])),Ba=Fde;function Lde(e){return yt("MuiFilledInput",e)}const Dde=P({},li,bt("MuiFilledInput",["root","underline","input"])),ui=Dde,eN=xt(g.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function jde(e){return yt("MuiAutocomplete",e)}const Nde=bt("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]),nn=Nde;var C4,S4;const zde=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],Bde=["ref"],Hde=e=>{const{classes:t,disablePortal:n,expanded:r,focused:o,fullWidth:i,hasClearIcon:a,hasPopupIcon:s,inputFocused:l,popupOpen:u,size:c}=e,f={root:["root",r&&"expanded",o&&"focused",i&&"fullWidth",a&&"hasClearIcon",s&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",l&&"inputFocused"],tag:["tag",`tagSize${je(c)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",u&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return qe(f,jde,t)},Wde=ke("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:o,hasPopupIcon:i,inputFocused:a,size:s}=n;return[{[`& .${nn.tag}`]:t.tag},{[`& .${nn.tag}`]:t[`tagSize${je(s)}`]},{[`& .${nn.inputRoot}`]:t.inputRoot},{[`& .${nn.input}`]:t.input},{[`& .${nn.input}`]:a&&t.inputFocused},t.root,r&&t.fullWidth,i&&t.hasPopupIcon,o&&t.hasClearIcon]}})(({ownerState:e})=>P({[`&.${nn.focused} .${nn.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${nn.clearIndicator}`]:{visibility:"visible"}}},e.fullWidth&&{width:"100%"},{[`& .${nn.tag}`]:P({margin:3,maxWidth:"calc(100% - 6px)"},e.size==="small"&&{margin:2,maxWidth:"calc(100% - 4px)"}),[`& .${nn.inputRoot}`]:{flexWrap:"wrap",[`.${nn.hasPopupIcon}&, .${nn.hasClearIcon}&`]:{paddingRight:26+4},[`.${nn.hasPopupIcon}.${nn.hasClearIcon}&`]:{paddingRight:52+4},[`& .${nn.input}`]:{width:0,minWidth:30}},[`& .${Nl.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Nl.root}.${li.sizeSmall}`]:{[`& .${Nl.input}`]:{padding:"2px 4px 3px 0"}},[`& .${Ba.root}`]:{padding:9,[`.${nn.hasPopupIcon}&, .${nn.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${nn.hasPopupIcon}.${nn.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${nn.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${nn.endAdornment}`]:{right:9}},[`& .${Ba.root}.${li.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${nn.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${ui.root}`]:{paddingTop:19,paddingLeft:8,[`.${nn.hasPopupIcon}&, .${nn.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${nn.hasPopupIcon}.${nn.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${ui.input}`]:{padding:"7px 4px"},[`& .${nn.endAdornment}`]:{right:9}},[`& .${ui.root}.${li.sizeSmall}`]:{paddingBottom:1,[`& .${ui.input}`]:{padding:"2.5px 4px"}},[`& .${li.hiddenLabel}`]:{paddingTop:8},[`& .${ui.root}.${li.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${nn.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${ui.root}.${li.hiddenLabel}.${li.sizeSmall}`]:{[`& .${nn.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${nn.input}`]:P({flexGrow:1,textOverflow:"ellipsis",opacity:0},e.inputFocused&&{opacity:1})})),Vde=ke("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),Ude=ke(wo,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),Gde=ke(wo,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>P({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})(({ownerState:e})=>P({padding:2,marginRight:-2},e.popupOpen&&{transform:"rotate(180deg)"})),qde=ke(ad,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${nn.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(({theme:e,ownerState:t})=>P({zIndex:(e.vars||e).zIndex.modal},t.disablePortal&&{position:"absolute"})),Kde=ke(id,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>P({},e.typography.body1,{overflow:"auto"})),Yde=ke("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),Xde=ke("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),Qde=ke("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${nn.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${nn.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${nn.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Lt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${nn.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Lt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${nn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Lt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),Zde=ke(mde,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),Jde=ke("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${nn.option}`]:{paddingLeft:24}}),efe=m.forwardRef(function(t,n){var r,o,i,a;const s=$t({props:t,name:"MuiAutocomplete"}),{autoComplete:l=!1,autoHighlight:u=!1,autoSelect:c=!1,blurOnSelect:f=!1,ChipProps:p,className:y,clearIcon:v=C4||(C4=g.jsx(oue,{fontSize:"small"})),clearOnBlur:b=!s.freeSolo,clearOnEscape:C=!1,clearText:x="Clear",closeText:w="Close",componentsProps:S={},defaultValue:$=s.multiple?[]:null,disableClearable:T=!1,disableCloseOnSelect:k=!1,disabled:M=!1,disabledItemsFocusable:I=!1,disableListWrap:N=!1,disablePortal:E=!1,filterSelectedOptions:A=!1,forcePopupIcon:z="auto",freeSolo:L=!1,fullWidth:O=!1,getLimitTagsText:D=Fe=>`+${Fe}`,getOptionLabel:H,groupBy:B,handleHomeEndKeys:j=!s.freeSolo,includeInputInList:W=!1,limitTags:U=-1,ListboxComponent:Z="ul",ListboxProps:Y,loading:se=!1,loadingText:Q="Loading…",multiple:ne=!1,noOptionsText:re="No options",openOnFocus:ge=!1,openText:xe="Open",PaperComponent:fe=id,PopperComponent:Se=ad,popupIcon:de=S4||(S4=g.jsx(eN,{})),readOnly:ie=!1,renderGroup:Pe,renderInput:$e,renderOption:me,renderTags:ue,selectOnFocus:ce=!s.freeSolo,size:Te="medium",slotProps:Le={}}=s,Re=be(s,zde),{getRootProps:Oe,getInputProps:K,getInputLabelProps:ee,getPopupIndicatorProps:pe,getClearProps:ye,getTagProps:De,getListboxProps:Ae,getOptionProps:Ee,value:Ce,dirty:Qe,expanded:Ct,id:et,popupOpen:Be,focused:te,focusedTag:X,anchorEl:oe,setAnchorEl:Ie,inputValue:Ve,groupedOptions:Ke}=sde(P({},s,{componentName:"Autocomplete"})),at=!T&&!M&&Qe&&!ie,Je=(!L||z===!0)&&z!==!1,{onMouseDown:nt}=K(),{ref:_t}=Y??{},ht=Ae(),{ref:lt}=ht,Rt=be(ht,Bde),jt=on(lt,_t),hn=H||(Fe=>{var rt;return(rt=Fe.label)!=null?rt:Fe}),Pt=P({},s,{disablePortal:E,expanded:Ct,focused:te,fullWidth:O,getOptionLabel:hn,hasClearIcon:at,hasPopupIcon:Je,inputFocused:X===-1,popupOpen:Be,size:Te}),zt=Hde(Pt);let un;if(ne&&Ce.length>0){const Fe=rt=>P({className:zt.tag,disabled:M},De(rt));ue?un=ue(Ce,Fe,Pt):un=Ce.map((rt,Tt)=>g.jsx(Zj,P({label:hn(rt),size:Te},Fe({index:Tt}),p)))}if(U>-1&&Array.isArray(un)){const Fe=un.length-U;!te&&Fe>0&&(un=un.splice(0,U),un.push(g.jsx("span",{className:zt.tag,children:D(Fe)},un.length)))}const ut=Pe||(Fe=>g.jsxs("li",{children:[g.jsx(Zde,{className:zt.groupLabel,ownerState:Pt,component:"div",children:Fe.group}),g.jsx(Jde,{className:zt.groupUl,ownerState:Pt,children:Fe.children})]},Fe.key)),Ot=me||((Fe,rt)=>g.jsx("li",P({},Fe,{children:hn(rt)}))),At=(Fe,rt)=>{const Tt=Ee({option:Fe,index:rt});return Ot(P({},Tt,{className:zt.option}),Fe,{selected:Tt["aria-selected"],index:rt,inputValue:Ve},Pt)},tt=(r=Le.clearIndicator)!=null?r:S.clearIndicator,Ut=(o=Le.paper)!=null?o:S.paper,_e=(i=Le.popper)!=null?i:S.popper,we=(a=Le.popupIndicator)!=null?a:S.popupIndicator;return g.jsxs(m.Fragment,{children:[g.jsx(Wde,P({ref:n,className:ze(zt.root,y),ownerState:Pt},Oe(Re),{children:$e({id:et,disabled:M,fullWidth:!0,size:Te==="small"?"small":void 0,InputLabelProps:ee(),InputProps:P({ref:Ie,className:zt.inputRoot,startAdornment:un,onClick:Fe=>{Fe.target===Fe.currentTarget&&nt(Fe)}},(at||Je)&&{endAdornment:g.jsxs(Vde,{className:zt.endAdornment,ownerState:Pt,children:[at?g.jsx(Ude,P({},ye(),{"aria-label":x,title:x,ownerState:Pt},tt,{className:ze(zt.clearIndicator,tt==null?void 0:tt.className),children:v})):null,Je?g.jsx(Gde,P({},pe(),{disabled:M,"aria-label":Be?w:xe,title:Be?w:xe,ownerState:Pt},we,{className:ze(zt.popupIndicator,we==null?void 0:we.className),children:de})):null]})}),inputProps:P({className:zt.input,disabled:M,readOnly:ie},K())})})),oe?g.jsx(qde,P({as:Se,disablePortal:E,style:{width:oe?oe.clientWidth:null},ownerState:Pt,role:"presentation",anchorEl:oe,open:Be},_e,{className:ze(zt.popper,_e==null?void 0:_e.className),children:g.jsxs(Kde,P({ownerState:Pt,as:fe},Ut,{className:ze(zt.paper,Ut==null?void 0:Ut.className),children:[se&&Ke.length===0?g.jsx(Yde,{className:zt.loading,ownerState:Pt,children:Q}):null,Ke.length===0&&!L&&!se?g.jsx(Xde,{className:zt.noOptions,ownerState:Pt,role:"presentation",onMouseDown:Fe=>{Fe.preventDefault()},children:re}):null,Ke.length>0?g.jsx(Qde,P({as:Z,className:zt.listbox,ownerState:Pt},Rt,Y,{ref:jt,children:Ke.map((Fe,rt)=>B?ut({key:Fe.key,group:Fe.group,children:Fe.options.map((Tt,en)=>At(Tt,Fe.index+en))}):At(Fe,rt))})):null]}))})):null]})}),tN=efe,tfe=xt(g.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function nfe(e){return yt("MuiAvatar",e)}bt("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const rfe=["alt","children","className","component","imgProps","sizes","src","srcSet","variant"],ofe=e=>{const{classes:t,variant:n,colorDefault:r}=e;return qe({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},nfe,t)},ife=ke("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(({theme:e,ownerState:t})=>P({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none"},t.variant==="rounded"&&{borderRadius:(e.vars||e).shape.borderRadius},t.variant==="square"&&{borderRadius:0},t.colorDefault&&P({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[600]}))),afe=ke("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),sfe=ke(tfe,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function lfe({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[o,i]=m.useState(!1);return m.useEffect(()=>{if(!n&&!r)return;i(!1);let a=!0;const s=new Image;return s.onload=()=>{a&&i("loaded")},s.onerror=()=>{a&&i("error")},s.crossOrigin=e,s.referrerPolicy=t,s.src=n,r&&(s.srcset=r),()=>{a=!1}},[e,t,n,r]),o}const ufe=m.forwardRef(function(t,n){const r=$t({props:t,name:"MuiAvatar"}),{alt:o,children:i,className:a,component:s="div",imgProps:l,sizes:u,src:c,srcSet:f,variant:p="circular"}=r,y=be(r,rfe);let v=null;const b=lfe(P({},l,{src:c,srcSet:f})),C=c||f,x=C&&b!=="error",w=P({},r,{colorDefault:!x,component:s,variant:p}),S=ofe(w);return x?v=g.jsx(afe,P({alt:o,srcSet:f,src:c,sizes:u,ownerState:w,className:S.img},l)):i!=null?v=i:C&&o?v=o[0]:v=g.jsx(sfe,{ownerState:w,className:S.fallback}),g.jsx(ife,P({as:s,ownerState:w,className:ze(S.root,a),ref:n},y,{children:v}))}),$y=ufe,cfe=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],dfe={entering:{opacity:1},entered:{opacity:1}},ffe=m.forwardRef(function(t,n){const r=Xt(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:s,easing:l,in:u,onEnter:c,onEntered:f,onEntering:p,onExit:y,onExited:v,onExiting:b,style:C,timeout:x=o,TransitionComponent:w=Aj}=t,S=be(t,cfe),$=m.useRef(null),T=on($,s.ref,n),k=O=>D=>{if(O){const H=$.current;D===void 0?O(H):O(H,D)}},M=k(p),I=k((O,D)=>{Fj(O);const H=wy({style:C,timeout:x,easing:l},{mode:"enter"});O.style.webkitTransition=r.transitions.create("opacity",H),O.style.transition=r.transitions.create("opacity",H),c&&c(O,D)}),N=k(f),E=k(b),A=k(O=>{const D=wy({style:C,timeout:x,easing:l},{mode:"exit"});O.style.webkitTransition=r.transitions.create("opacity",D),O.style.transition=r.transitions.create("opacity",D),y&&y(O)}),z=k(v),L=O=>{i&&i($.current,O)};return g.jsx(w,P({appear:a,in:u,nodeRef:$,onEnter:I,onEntered:N,onEntering:M,onExit:A,onExited:z,onExiting:E,addEndListener:L,timeout:x},S,{children:(O,D)=>m.cloneElement(s,P({style:P({opacity:0,visibility:O==="exited"&&!u?"hidden":void 0},dfe[O],C,s.props.style),ref:T},D))}))}),pfe=ffe;function hfe(e){return yt("MuiBackdrop",e)}bt("MuiBackdrop",["root","invisible"]);const mfe=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],gfe=e=>{const{classes:t,invisible:n}=e;return qe({root:["root",n&&"invisible"]},hfe,t)},vfe=ke("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>P({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"})),yfe=m.forwardRef(function(t,n){var r,o,i;const a=$t({props:t,name:"MuiBackdrop"}),{children:s,className:l,component:u="div",components:c={},componentsProps:f={},invisible:p=!1,open:y,slotProps:v={},slots:b={},TransitionComponent:C=pfe,transitionDuration:x}=a,w=be(a,mfe),S=P({},a,{component:u,invisible:p}),$=gfe(S),T=(r=v.root)!=null?r:f.root;return g.jsx(C,P({in:y,timeout:x},w,{children:g.jsx(vfe,P({"aria-hidden":!0},T,{as:(o=(i=b.root)!=null?i:c.Root)!=null?o:u,className:ze($.root,l,T==null?void 0:T.className),ownerState:P({},S,T==null?void 0:T.ownerState),classes:$,ref:n,children:s}))}))}),bfe=yfe;function xfe(e){return yt("MuiBadge",e)}const wfe=bt("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),_l=wfe,Cfe=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],bS=10,xS=4,Sfe=e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:i,classes:a={}}=e,s={root:["root"],badge:["badge",i,r&&"invisible",`anchorOrigin${je(n.vertical)}${je(n.horizontal)}`,`anchorOrigin${je(n.vertical)}${je(n.horizontal)}${je(o)}`,`overlap${je(o)}`,t!=="default"&&`color${je(t)}`]};return qe(s,xfe,a)},$fe=ke("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),_fe=ke("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${je(n.anchorOrigin.vertical)}${je(n.anchorOrigin.horizontal)}${je(n.overlap)}`],n.color!=="default"&&t[`color${je(n.color)}`],n.invisible&&t.invisible]}})(({theme:e,ownerState:t})=>P({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:bS*2,lineHeight:1,padding:"0 6px",height:bS*2,borderRadius:bS,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen})},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.variant==="dot"&&{borderRadius:xS,height:xS*2,minWidth:xS*2,padding:0},t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular"&&{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${_l.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}},t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular"&&{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${_l.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}},t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular"&&{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${_l.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}},t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular"&&{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${_l.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular"&&{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${_l.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}},t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular"&&{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${_l.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}},t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular"&&{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${_l.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}},t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular"&&{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${_l.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},t.invisible&&{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})})),kfe=m.forwardRef(function(t,n){var r,o,i,a,s,l;const u=$t({props:t,name:"MuiBadge"}),{anchorOrigin:c={vertical:"top",horizontal:"right"},className:f,component:p,components:y={},componentsProps:v={},children:b,overlap:C="rectangular",color:x="default",invisible:w=!1,max:S=99,badgeContent:$,slots:T,slotProps:k,showZero:M=!1,variant:I="standard"}=u,N=be(u,Cfe),{badgeContent:E,invisible:A,max:z,displayValue:L}=$ue({max:S,invisible:w,badgeContent:$,showZero:M}),O=sM({anchorOrigin:c,color:x,overlap:C,variant:I,badgeContent:$}),D=A||E==null&&I!=="dot",{color:H=x,overlap:B=C,anchorOrigin:j=c,variant:W=I}=D?O:u,U=W!=="dot"?L:void 0,Z=P({},u,{badgeContent:E,invisible:D,max:z,displayValue:U,showZero:M,anchorOrigin:j,color:H,overlap:B,variant:W}),Y=Sfe(Z),se=(r=(o=T==null?void 0:T.root)!=null?o:y.Root)!=null?r:$fe,Q=(i=(a=T==null?void 0:T.badge)!=null?a:y.Badge)!=null?i:_fe,ne=(s=k==null?void 0:k.root)!=null?s:v.root,re=(l=k==null?void 0:k.badge)!=null?l:v.badge,ge=xi({elementType:se,externalSlotProps:ne,externalForwardedProps:N,additionalProps:{ref:n,as:p},ownerState:Z,className:ze(ne==null?void 0:ne.className,Y.root,f)}),xe=xi({elementType:Q,externalSlotProps:re,ownerState:Z,className:ze(Y.badge,re==null?void 0:re.className)});return g.jsxs(se,P({},ge,{children:[b,g.jsx(Q,P({},xe,{children:U}))]}))}),OM=kfe,Pfe=SM(),Mfe=Pj({themeId:e0,defaultTheme:Pfe,defaultClassName:"MuiBox-root",generateClassName:uM.generate}),Ue=Mfe;function Tfe(e){return yt("MuiButton",e)}const Efe=bt("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","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),Dv=Efe,Ife=m.createContext({}),Rfe=Ife,Ofe=m.createContext(void 0),Afe=Ofe,Ffe=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Lfe=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e,s={root:["root",i,`${i}${je(t)}`,`size${je(o)}`,`${i}Size${je(o)}`,t==="inherit"&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${je(o)}`],endIcon:["endIcon",`iconSize${je(o)}`]},l=qe(s,Tfe,a);return P({},a,l)},nN=e=>P({},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}}),Dfe=ke(cu,{shouldForwardProp:e=>Ra(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${je(n.color)}`],t[`size${je(n.size)}`],t[`${n.variant}Size${je(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({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 P({},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":P({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Lt(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})`:Lt(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})`:Lt(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":P({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Dv.focusVisible}`]:P({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Dv.disabled}`]:P({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 ${Lt(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"},[`&.${Dv.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Dv.disabled}`]:{boxShadow:"none"}}),jfe=ke("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${je(n.size)}`]]}})(({ownerState:e})=>P({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},nN(e))),Nfe=ke("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${je(n.size)}`]]}})(({ownerState:e})=>P({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},nN(e))),zfe=m.forwardRef(function(t,n){const r=m.useContext(Rfe),o=m.useContext(Afe),i=lM(r,t),a=$t({props:i,name:"MuiButton"}),{children:s,color:l="primary",component:u="button",className:c,disabled:f=!1,disableElevation:p=!1,disableFocusRipple:y=!1,endIcon:v,focusVisibleClassName:b,fullWidth:C=!1,size:x="medium",startIcon:w,type:S,variant:$="text"}=a,T=be(a,Ffe),k=P({},a,{color:l,component:u,disabled:f,disableElevation:p,disableFocusRipple:y,fullWidth:C,size:x,type:S,variant:$}),M=Lfe(k),I=w&&g.jsx(jfe,{className:M.startIcon,ownerState:k,children:w}),N=v&&g.jsx(Nfe,{className:M.endIcon,ownerState:k,children:v}),E=o||"";return g.jsxs(Dfe,P({ownerState:k,className:ze(r.className,M.root,c,E),component:u,disabled:f,focusRipple:!y,focusVisibleClassName:ze(M.focusVisible,b),ref:n,type:S},T,{classes:M,children:[I,s,N]}))}),fs=zfe;function Bfe(e){return yt("MuiCard",e)}bt("MuiCard",["root"]);const Hfe=["className","raised"],Wfe=e=>{const{classes:t}=e;return qe({root:["root"]},Bfe,t)},Vfe=ke(id,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),Ufe=m.forwardRef(function(t,n){const r=$t({props:t,name:"MuiCard"}),{className:o,raised:i=!1}=r,a=be(r,Hfe),s=P({},r,{raised:i}),l=Wfe(s);return g.jsx(Vfe,P({className:ze(l.root,o),elevation:i?8:void 0,ref:n,ownerState:s},a))}),Gfe=Ufe;function qfe(e){return yt("MuiCardContent",e)}bt("MuiCardContent",["root"]);const Kfe=["className","component"],Yfe=e=>{const{classes:t}=e;return qe({root:["root"]},qfe,t)},Xfe=ke("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),Qfe=m.forwardRef(function(t,n){const r=$t({props:t,name:"MuiCardContent"}),{className:o,component:i="div"}=r,a=be(r,Kfe),s=P({},r,{component:i}),l=Yfe(s);return g.jsx(Xfe,P({as:i,className:ze(l.root,o),ownerState:s,ref:n},a))}),_i=Qfe;function Zfe(e){return yt("MuiCardHeader",e)}const Jfe=bt("MuiCardHeader",["root","avatar","action","content","title","subheader"]),$4=Jfe,epe=["action","avatar","className","component","disableTypography","subheader","subheaderTypographyProps","title","titleTypographyProps"],tpe=e=>{const{classes:t}=e;return qe({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},Zfe,t)},npe=ke("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(e,t)=>P({[`& .${$4.title}`]:t.title,[`& .${$4.subheader}`]:t.subheader},t.root)})({display:"flex",alignItems:"center",padding:16}),rpe=ke("div",{name:"MuiCardHeader",slot:"Avatar",overridesResolver:(e,t)=>t.avatar})({display:"flex",flex:"0 0 auto",marginRight:16}),ope=ke("div",{name:"MuiCardHeader",slot:"Action",overridesResolver:(e,t)=>t.action})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),ipe=ke("div",{name:"MuiCardHeader",slot:"Content",overridesResolver:(e,t)=>t.content})({flex:"1 1 auto"}),ape=m.forwardRef(function(t,n){const r=$t({props:t,name:"MuiCardHeader"}),{action:o,avatar:i,className:a,component:s="div",disableTypography:l=!1,subheader:u,subheaderTypographyProps:c,title:f,titleTypographyProps:p}=r,y=be(r,epe),v=P({},r,{component:s,disableTypography:l}),b=tpe(v);let C=f;C!=null&&C.type!==Ze&&!l&&(C=g.jsx(Ze,P({variant:i?"body2":"h5",className:b.title,component:"span",display:"block"},p,{children:C})));let x=u;return x!=null&&x.type!==Ze&&!l&&(x=g.jsx(Ze,P({variant:i?"body2":"body1",className:b.subheader,color:"text.secondary",component:"span",display:"block"},c,{children:x}))),g.jsxs(npe,P({className:ze(b.root,a),as:s,ref:n,ownerState:v},y,{children:[i&&g.jsx(rpe,{className:b.avatar,ownerState:v,children:i}),g.jsxs(ipe,{className:b.content,ownerState:v,children:[C,x]}),o&&g.jsx(ope,{className:b.action,ownerState:v,children:o})]}))}),spe=ape;function lpe(e){return yt("PrivateSwitchBase",e)}bt("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const upe=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],cpe=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,i={root:["root",n&&"checked",r&&"disabled",o&&`edge${je(o)}`],input:["input"]};return qe(i,lpe,t)},dpe=ke(cu)(({ownerState:e})=>P({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),fpe=ke("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),ppe=m.forwardRef(function(t,n){const{autoFocus:r,checked:o,checkedIcon:i,className:a,defaultChecked:s,disabled:l,disableFocusRipple:u=!1,edge:c=!1,icon:f,id:p,inputProps:y,inputRef:v,name:b,onBlur:C,onChange:x,onFocus:w,readOnly:S,required:$=!1,tabIndex:T,type:k,value:M}=t,I=be(t,upe),[N,E]=nu({controlled:o,default:!!s,name:"SwitchBase",state:"checked"}),A=bs(),z=W=>{w&&w(W),A&&A.onFocus&&A.onFocus(W)},L=W=>{C&&C(W),A&&A.onBlur&&A.onBlur(W)},O=W=>{if(W.nativeEvent.defaultPrevented)return;const U=W.target.checked;E(U),x&&x(W,U)};let D=l;A&&typeof D>"u"&&(D=A.disabled);const H=k==="checkbox"||k==="radio",B=P({},t,{checked:N,disabled:D,disableFocusRipple:u,edge:c}),j=cpe(B);return g.jsxs(dpe,P({component:"span",className:ze(j.root,a),centerRipple:!0,focusRipple:!u,disabled:D,tabIndex:null,role:void 0,onFocus:z,onBlur:L,ownerState:B,ref:n},I,{children:[g.jsx(fpe,P({autoFocus:r,checked:o,defaultChecked:s,className:j.input,disabled:D,id:H?p:void 0,name:b,onChange:O,readOnly:S,ref:v,required:$,ownerState:B,tabIndex:T,type:k},k==="checkbox"&&M===void 0?{}:{value:M},y)),N?i:f]}))}),rN=ppe,hpe=xt(g.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"),mpe=xt(g.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"),gpe=xt(g.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 vpe(e){return yt("MuiCheckbox",e)}const ype=bt("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),wS=ype,bpe=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],xpe=e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,i={root:["root",n&&"indeterminate",`color${je(r)}`,`size${je(o)}`]},a=qe(i,vpe,t);return P({},t,a)},wpe=ke(rN,{shouldForwardProp:e=>Ra(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,n.color!=="default"&&t[`color${je(n.color)}`]]}})(({theme:e,ownerState:t})=>P({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})`:Lt(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${wS.checked}, &.${wS.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${wS.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),Cpe=g.jsx(mpe,{}),Spe=g.jsx(hpe,{}),$pe=g.jsx(gpe,{}),_pe=m.forwardRef(function(t,n){var r,o;const i=$t({props:t,name:"MuiCheckbox"}),{checkedIcon:a=Cpe,color:s="primary",icon:l=Spe,indeterminate:u=!1,indeterminateIcon:c=$pe,inputProps:f,size:p="medium",className:y}=i,v=be(i,bpe),b=u?c:l,C=u?c:a,x=P({},i,{color:s,indeterminate:u,size:p}),w=xpe(x);return g.jsx(wpe,P({type:"checkbox",inputProps:P({"data-indeterminate":u},f),icon:m.cloneElement(b,{fontSize:(r=b.props.fontSize)!=null?r:p}),checkedIcon:m.cloneElement(C,{fontSize:(o=C.props.fontSize)!=null?o:p}),ownerState:x,ref:n,className:ze(w.root,y)},v,{classes:w}))}),I_=_pe;function kpe(e){return yt("MuiCircularProgress",e)}bt("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Ppe=["className","color","disableShrink","size","style","thickness","value","variant"];let jx=e=>e,_4,k4,P4,M4;const kl=44,Mpe=od(_4||(_4=jx` - 0% { - transform: rotate(0deg); - } - - 100% { - transform: rotate(360deg); - } -`)),Tpe=od(k4||(k4=jx` - 0% { - stroke-dasharray: 1px, 200px; - stroke-dashoffset: 0; - } - - 50% { - stroke-dasharray: 100px, 200px; - stroke-dashoffset: -15px; - } - - 100% { - stroke-dasharray: 100px, 200px; - stroke-dashoffset: -125px; - } -`)),Epe=e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,i={root:["root",n,`color${je(r)}`],svg:["svg"],circle:["circle",`circle${je(n)}`,o&&"circleDisableShrink"]};return qe(i,kpe,t)},Ipe=ke("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${je(n.color)}`]]}})(({ownerState:e,theme:t})=>P({display:"inline-block"},e.variant==="determinate"&&{transition:t.transitions.create("transform")},e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&ng(P4||(P4=jx` - animation: ${0} 1.4s linear infinite; - `),Mpe)),Rpe=ke("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),Ope=ke("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${je(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>P({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&ng(M4||(M4=jx` - animation: ${0} 1.4s ease-in-out infinite; - `),Tpe)),Ape=m.forwardRef(function(t,n){const r=$t({props:t,name:"MuiCircularProgress"}),{className:o,color:i="primary",disableShrink:a=!1,size:s=40,style:l,thickness:u=3.6,value:c=0,variant:f="indeterminate"}=r,p=be(r,Ppe),y=P({},r,{color:i,disableShrink:a,size:s,thickness:u,value:c,variant:f}),v=Epe(y),b={},C={},x={};if(f==="determinate"){const w=2*Math.PI*((kl-u)/2);b.strokeDasharray=w.toFixed(3),x["aria-valuenow"]=Math.round(c),b.strokeDashoffset=`${((100-c)/100*w).toFixed(3)}px`,C.transform="rotate(-90deg)"}return g.jsx(Ipe,P({className:ze(v.root,o),style:P({width:s,height:s},C,l),ownerState:y,ref:n,role:"progressbar"},x,p,{children:g.jsx(Rpe,{className:v.svg,ownerState:y,viewBox:`${kl/2} ${kl/2} ${kl} ${kl}`,children:g.jsx(Ope,{className:v.circle,style:b,ownerState:y,cx:kl,cy:kl,r:(kl-u)/2,fill:"none",strokeWidth:u})})}))}),Fpe=Ape,Lpe=(e,t)=>P({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),Dpe=e=>P({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}}),jpe=(e,t=!1)=>{var n;const r={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([a,s])=>{var l;r[e.getColorSchemeSelector(a).replace(/\s*&/,"")]={colorScheme:(l=s.palette)==null?void 0:l.mode}});let o=P({html:Lpe(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:P({margin:0},Dpe(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 Npe(e){const t=$t({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return g.jsxs(m.Fragment,{children:[g.jsx(Jj,{styles:o=>jpe(o,r)}),n]})}function zpe(e){return yt("MuiModal",e)}bt("MuiModal",["root","hidden","backdrop"]);const Bpe=["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"],Hpe=e=>{const{open:t,exited:n,classes:r}=e;return qe({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},zpe,r)},Wpe=ke("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})=>P({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),Vpe=ke(bfe,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Upe=m.forwardRef(function(t,n){var r,o,i,a,s,l;const u=$t({name:"MuiModal",props:t}),{BackdropComponent:c=Vpe,BackdropProps:f,className:p,closeAfterTransition:y=!1,children:v,container:b,component:C,components:x={},componentsProps:w={},disableAutoFocus:S=!1,disableEnforceFocus:$=!1,disableEscapeKeyDown:T=!1,disablePortal:k=!1,disableRestoreFocus:M=!1,disableScrollLock:I=!1,hideBackdrop:N=!1,keepMounted:E=!1,onBackdropClick:A,open:z,slotProps:L,slots:O}=u,D=be(u,Bpe),H=P({},u,{closeAfterTransition:y,disableAutoFocus:S,disableEnforceFocus:$,disableEscapeKeyDown:T,disablePortal:k,disableRestoreFocus:M,disableScrollLock:I,hideBackdrop:N,keepMounted:E}),{getRootProps:B,getBackdropProps:j,getTransitionProps:W,portalRef:U,isTopModal:Z,exited:Y,hasTransition:se}=tde(P({},H,{rootRef:n})),Q=P({},H,{exited:Y}),ne=Hpe(Q),re={};if(v.props.tabIndex===void 0&&(re.tabIndex="-1"),se){const{onEnter:Pe,onExited:$e}=W();re.onEnter=Pe,re.onExited=$e}const ge=(r=(o=O==null?void 0:O.root)!=null?o:x.Root)!=null?r:Wpe,xe=(i=(a=O==null?void 0:O.backdrop)!=null?a:x.Backdrop)!=null?i:c,fe=(s=L==null?void 0:L.root)!=null?s:w.root,Se=(l=L==null?void 0:L.backdrop)!=null?l:w.backdrop,de=xi({elementType:ge,externalSlotProps:fe,externalForwardedProps:D,getSlotProps:B,additionalProps:{ref:n,as:C},ownerState:Q,className:ze(p,fe==null?void 0:fe.className,ne==null?void 0:ne.root,!Q.open&&Q.exited&&(ne==null?void 0:ne.hidden))}),ie=xi({elementType:xe,externalSlotProps:Se,additionalProps:f,getSlotProps:Pe=>j(P({},Pe,{onClick:$e=>{A&&A($e),Pe!=null&&Pe.onClick&&Pe.onClick($e)}})),className:ze(Se==null?void 0:Se.className,f==null?void 0:f.className,ne==null?void 0:ne.backdrop),ownerState:Q});return!E&&!z&&(!se||Y)?null:g.jsx(Yj,{ref:U,container:b,disablePortal:k,children:g.jsxs(ge,P({},de,{children:[!N&&c?g.jsx(xe,P({},ie)):null,g.jsx(jj,{disableEnforceFocus:$,disableAutoFocus:S,disableRestoreFocus:M,isEnabled:Z,open:z,children:m.cloneElement(v,re)})]}))})}),oN=Upe;function Gpe(e){return yt("MuiDivider",e)}const qpe=bt("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),T4=qpe,Kpe=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Ype=e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:s,variant:l}=e;return qe({root:["root",t&&"absolute",l,i&&"light",a==="vertical"&&"vertical",o&&"flexItem",n&&"withChildren",n&&a==="vertical"&&"withChildrenVertical",s==="right"&&a!=="vertical"&&"textAlignRight",s==="left"&&a!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",a==="vertical"&&"wrapperVertical"]},Gpe,r)},Xpe=ke("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})=>P({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)`:Lt(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})=>P({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>P({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>P({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>P({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),Qpe=ke("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>P({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)`})),iN=m.forwardRef(function(t,n){const r=$t({props:t,name:"MuiDivider"}),{absolute:o=!1,children:i,className:a,component:s=i?"div":"hr",flexItem:l=!1,light:u=!1,orientation:c="horizontal",role:f=s!=="hr"?"separator":void 0,textAlign:p="center",variant:y="fullWidth"}=r,v=be(r,Kpe),b=P({},r,{absolute:o,component:s,flexItem:l,light:u,orientation:c,role:f,textAlign:p,variant:y}),C=Ype(b);return g.jsx(Xpe,P({as:s,className:ze(C.root,a),role:f,ref:n,ownerState:b},v,{children:i?g.jsx(Qpe,{className:C.wrapper,ownerState:b,children:i}):null}))});iN.muiSkipListHighlight=!0;const aN=iN,Zpe=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Jpe=e=>{const{classes:t,disableUnderline:n}=e,o=qe({root:["root",!n&&"underline"],input:["input"]},Lde,t);return P({},t,o)},ehe=ke(Lx,{shouldForwardProp:e=>Ra(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Ax(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)",a=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return P({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:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${ui.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${ui.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!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"},[`&.${ui.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ui.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(.${ui.disabled}, .${ui.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${ui.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&P({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17}))}),the=ke(Dx,{name:"MuiFilledInput",slot:"Input",overridesResolver:Fx})(({theme:e,ownerState:t})=>P({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.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9})),sN=m.forwardRef(function(t,n){var r,o,i,a;const s=$t({props:t,name:"MuiFilledInput"}),{components:l={},componentsProps:u,fullWidth:c=!1,inputComponent:f="input",multiline:p=!1,slotProps:y,slots:v={},type:b="text"}=s,C=be(s,Zpe),x=P({},s,{fullWidth:c,inputComponent:f,multiline:p,type:b}),w=Jpe(s),S={root:{ownerState:x},input:{ownerState:x}},$=y??u?co(y??u,S):S,T=(r=(o=v.root)!=null?o:l.Root)!=null?r:ehe,k=(i=(a=v.input)!=null?a:l.Input)!=null?i:the;return g.jsx(sd,P({slots:{root:T,input:k},componentsProps:$,fullWidth:c,inputComponent:f,multiline:p,ref:n,type:b},C,{classes:w}))});sN.muiName="Input";const lN=sN;function nhe(e){return yt("MuiFormControl",e)}bt("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const rhe=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],ohe=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${je(n)}`,r&&"fullWidth"]};return qe(o,nhe,t)},ihe=ke("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>P({},t.root,t[`margin${je(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>P({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%"})),ahe=m.forwardRef(function(t,n){const r=$t({props:t,name:"MuiFormControl"}),{children:o,className:i,color:a="primary",component:s="div",disabled:l=!1,error:u=!1,focused:c,fullWidth:f=!1,hiddenLabel:p=!1,margin:y="none",required:v=!1,size:b="medium",variant:C="outlined"}=r,x=be(r,rhe),w=P({},r,{color:a,component:s,disabled:l,error:u,fullWidth:f,hiddenLabel:p,margin:y,required:v,size:b,variant:C}),S=ohe(w),[$,T]=m.useState(()=>{let L=!1;return o&&m.Children.forEach(o,O=>{if(!x1(O,["Input","Select"]))return;const D=x1(O,["Select"])?O.props.input:O;D&&_de(D.props)&&(L=!0)}),L}),[k,M]=m.useState(()=>{let L=!1;return o&&m.Children.forEach(o,O=>{x1(O,["Input","Select"])&&(Sy(O.props,!0)||Sy(O.props.inputProps,!0))&&(L=!0)}),L}),[I,N]=m.useState(!1);l&&I&&N(!1);const E=c!==void 0&&!l?c:I;let A;const z=m.useMemo(()=>({adornedStart:$,setAdornedStart:T,color:a,disabled:l,error:u,filled:k,focused:E,fullWidth:f,hiddenLabel:p,size:b,onBlur:()=>{N(!1)},onEmpty:()=>{M(!1)},onFilled:()=>{M(!0)},onFocus:()=>{N(!0)},registerEffect:A,required:v,variant:C}),[$,a,l,u,k,E,f,p,A,v,b,C]);return g.jsx(Ox.Provider,{value:z,children:g.jsx(ihe,P({as:s,ownerState:w,className:ze(S.root,i),ref:n},x,{children:o}))})}),uN=ahe,she=_se({createStyledComponent:ke("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>$t({props:e,name:"MuiStack"})}),cN=she;function lhe(e){return yt("MuiFormControlLabel",e)}const uhe=bt("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),am=uhe,che=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],dhe=e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:i}=e,a={root:["root",n&&"disabled",`labelPlacement${je(r)}`,o&&"error",i&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return qe(a,lhe,t)},fhe=ke("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${am.label}`]:t.label},t.root,t[`labelPlacement${je(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>P({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${am.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},{[`& .${am.label}`]:{[`&.${am.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),phe=ke("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${am.error}`]:{color:(e.vars||e).palette.error.main}})),hhe=m.forwardRef(function(t,n){var r,o;const i=$t({props:t,name:"MuiFormControlLabel"}),{className:a,componentsProps:s={},control:l,disabled:u,disableTypography:c,label:f,labelPlacement:p="end",required:y,slotProps:v={}}=i,b=be(i,che),C=bs(),x=(r=u??l.props.disabled)!=null?r:C==null?void 0:C.disabled,w=y??l.props.required,S={disabled:x,required:w};["checked","name","onChange","value","inputRef"].forEach(N=>{typeof l.props[N]>"u"&&typeof i[N]<"u"&&(S[N]=i[N])});const $=Su({props:i,muiFormControl:C,states:["error"]}),T=P({},i,{disabled:x,labelPlacement:p,required:w,error:$.error}),k=dhe(T),M=(o=v.typography)!=null?o:s.typography;let I=f;return I!=null&&I.type!==Ze&&!c&&(I=g.jsx(Ze,P({component:"span"},M,{className:ze(k.label,M==null?void 0:M.className),children:I}))),g.jsxs(fhe,P({className:ze(k.root,a),ownerState:T,ref:n},b,{children:[m.cloneElement(l,S),w?g.jsxs(cN,{direction:"row",alignItems:"center",children:[I,g.jsxs(phe,{ownerState:T,"aria-hidden":!0,className:k.asterisk,children:[" ","*"]})]}):I]}))}),R_=hhe;function mhe(e){return yt("MuiFormGroup",e)}bt("MuiFormGroup",["root","row","error"]);const ghe=["className","row"],vhe=e=>{const{classes:t,row:n,error:r}=e;return qe({root:["root",n&&"row",r&&"error"]},mhe,t)},yhe=ke("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})(({ownerState:e})=>P({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),bhe=m.forwardRef(function(t,n){const r=$t({props:t,name:"MuiFormGroup"}),{className:o,row:i=!1}=r,a=be(r,ghe),s=bs(),l=Su({props:r,muiFormControl:s,states:["error"]}),u=P({},r,{row:i,error:l.error}),c=vhe(u);return g.jsx(yhe,P({className:ze(c.root,o),ownerState:u,ref:n},a))}),xhe=bhe;function whe(e){return yt("MuiFormHelperText",e)}const Che=bt("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),E4=Che;var I4;const She=["children","className","component","disabled","error","filled","focused","margin","required","variant"],$he=e=>{const{classes:t,contained:n,size:r,disabled:o,error:i,filled:a,focused:s,required:l}=e,u={root:["root",o&&"disabled",i&&"error",r&&`size${je(r)}`,n&&"contained",s&&"focused",a&&"filled",l&&"required"]};return qe(u,whe,t)},_he=ke("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${je(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>P({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${E4.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${E4.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),khe=m.forwardRef(function(t,n){const r=$t({props:t,name:"MuiFormHelperText"}),{children:o,className:i,component:a="p"}=r,s=be(r,She),l=bs(),u=Su({props:r,muiFormControl:l,states:["variant","size","disabled","error","filled","focused","required"]}),c=P({},r,{component:a,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=$he(c);return g.jsx(_he,P({as:a,ownerState:c,className:ze(f.root,i),ref:n},s,{children:o===" "?I4||(I4=g.jsx("span",{className:"notranslate",children:"​"})):o}))}),Phe=khe;function Mhe(e){return yt("MuiFormLabel",e)}const The=bt("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),$m=The,Ehe=["children","className","color","component","disabled","error","filled","focused","required"],Ihe=e=>{const{classes:t,color:n,focused:r,disabled:o,error:i,filled:a,required:s}=e,l={root:["root",`color${je(n)}`,o&&"disabled",i&&"error",a&&"filled",r&&"focused",s&&"required"],asterisk:["asterisk",i&&"error"]};return qe(l,Mhe,t)},Rhe=ke("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>P({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>P({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${$m.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${$m.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${$m.error}`]:{color:(e.vars||e).palette.error.main}})),Ohe=ke("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${$m.error}`]:{color:(e.vars||e).palette.error.main}})),Ahe=m.forwardRef(function(t,n){const r=$t({props:t,name:"MuiFormLabel"}),{children:o,className:i,component:a="label"}=r,s=be(r,Ehe),l=bs(),u=Su({props:r,muiFormControl:l,states:["color","required","focused","disabled","error","filled"]}),c=P({},r,{color:u.color||"primary",component:a,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),f=Ihe(c);return g.jsxs(Rhe,P({as:a,ownerState:c,className:ze(f.root,i),ref:n},s,{children:[o,u.required&&g.jsxs(Ohe,{ownerState:c,"aria-hidden":!0,className:f.asterisk,children:[" ","*"]})]}))}),Fhe=Ahe,Lhe=m.createContext(),R4=Lhe;function Dhe(e){return yt("MuiGrid",e)}const jhe=[0,1,2,3,4,5,6,7,8,9,10],Nhe=["column-reverse","column","row-reverse","row"],zhe=["nowrap","wrap-reverse","wrap"],Lh=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],sg=bt("MuiGrid",["root","container","item","zeroMinWidth",...jhe.map(e=>`spacing-xs-${e}`),...Nhe.map(e=>`direction-xs-${e}`),...zhe.map(e=>`wrap-xs-${e}`),...Lh.map(e=>`grid-xs-${e}`),...Lh.map(e=>`grid-sm-${e}`),...Lh.map(e=>`grid-md-${e}`),...Lh.map(e=>`grid-lg-${e}`),...Lh.map(e=>`grid-xl-${e}`)]),Bhe=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function Bf(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function Hhe({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 a=mc({values:t.columns,breakpoints:e.breakpoints.values}),s=typeof a=="object"?a[o]:a;if(s==null)return r;const l=`${Math.round(n/s*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} + ${Bf(c)})`;u={flexBasis:f,maxWidth:f}}}i=P({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 Whe({theme:e,ownerState:t}){const n=mc({values:t.direction,breakpoints:e.breakpoints.values});return Qo({theme:e},n,r=>{const o={flexDirection:r};return r.indexOf("column")===0&&(o[`& > .${sg.item}`]={maxWidth:"none"}),o})}function dN({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 Vhe({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let o={};if(n&&r!==0){const i=mc({values:r,breakpoints:e.breakpoints.values});let a;typeof i=="object"&&(a=dN({breakpoints:e.breakpoints.values,values:i})),o=Qo({theme:e},i,(s,l)=>{var u;const c=e.spacing(s);return c!=="0px"?{marginTop:`-${Bf(c)}`,[`& > .${sg.item}`]:{paddingTop:Bf(c)}}:(u=a)!=null&&u.includes(l)?{}:{marginTop:0,[`& > .${sg.item}`]:{paddingTop:0}}})}return o}function Uhe({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let o={};if(n&&r!==0){const i=mc({values:r,breakpoints:e.breakpoints.values});let a;typeof i=="object"&&(a=dN({breakpoints:e.breakpoints.values,values:i})),o=Qo({theme:e},i,(s,l)=>{var u;const c=e.spacing(s);return c!=="0px"?{width:`calc(100% + ${Bf(c)})`,marginLeft:`-${Bf(c)}`,[`& > .${sg.item}`]:{paddingLeft:Bf(c)}}:(u=a)!=null&&u.includes(l)?{}:{width:"100%",marginLeft:0,[`& > .${sg.item}`]:{paddingLeft:0}}})}return o}function Ghe(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 qhe=ke("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:o,item:i,spacing:a,wrap:s,zeroMinWidth:l,breakpoints:u}=n;let c=[];r&&(c=Ghe(a,u,t));const f=[];return u.forEach(p=>{const y=n[p];y&&f.push(t[`grid-${p}-${String(y)}`])}),[t.root,r&&t.container,i&&t.item,l&&t.zeroMinWidth,...c,o!=="row"&&t[`direction-xs-${String(o)}`],s!=="wrap"&&t[`wrap-xs-${String(s)}`],...f]}})(({ownerState:e})=>P({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}),Whe,Vhe,Uhe,Hhe);function Khe(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 Yhe=e=>{const{classes:t,container:n,direction:r,item:o,spacing:i,wrap:a,zeroMinWidth:s,breakpoints:l}=e;let u=[];n&&(u=Khe(i,l));const c=[];l.forEach(p=>{const y=e[p];y&&c.push(`grid-${p}-${String(y)}`)});const f={root:["root",n&&"container",o&&"item",s&&"zeroMinWidth",...u,r!=="row"&&`direction-xs-${String(r)}`,a!=="wrap"&&`wrap-xs-${String(a)}`,...c]};return qe(f,Dhe,t)},Xhe=m.forwardRef(function(t,n){const r=$t({props:t,name:"MuiGrid"}),{breakpoints:o}=Xt(),i=kx(r),{className:a,columns:s,columnSpacing:l,component:u="div",container:c=!1,direction:f="row",item:p=!1,rowSpacing:y,spacing:v=0,wrap:b="wrap",zeroMinWidth:C=!1}=i,x=be(i,Bhe),w=y||v,S=l||v,$=m.useContext(R4),T=c?s||12:$,k={},M=P({},x);o.keys.forEach(E=>{x[E]!=null&&(k[E]=x[E],delete M[E])});const I=P({},i,{columns:T,container:c,direction:f,item:p,rowSpacing:w,columnSpacing:S,wrap:b,zeroMinWidth:C,spacing:v},k,{breakpoints:o.keys}),N=Yhe(I);return g.jsx(R4.Provider,{value:T,children:g.jsx(qhe,P({ownerState:I,className:ze(N.root,a),as:u,ref:n},M))})}),Ft=Xhe,Qhe=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function O_(e){return`scale(${e}, ${e**2})`}const Zhe={entering:{opacity:1,transform:O_(1)},entered:{opacity:1,transform:"none"}},CS=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),fN=m.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:i,easing:a,in:s,onEnter:l,onEntered:u,onEntering:c,onExit:f,onExited:p,onExiting:y,style:v,timeout:b="auto",TransitionComponent:C=Aj}=t,x=be(t,Qhe),w=m.useRef(),S=m.useRef(),$=Xt(),T=m.useRef(null),k=on(T,i.ref,n),M=D=>H=>{if(D){const B=T.current;H===void 0?D(B):D(B,H)}},I=M(c),N=M((D,H)=>{Fj(D);const{duration:B,delay:j,easing:W}=wy({style:v,timeout:b,easing:a},{mode:"enter"});let U;b==="auto"?(U=$.transitions.getAutoHeightDuration(D.clientHeight),S.current=U):U=B,D.style.transition=[$.transitions.create("opacity",{duration:U,delay:j}),$.transitions.create("transform",{duration:CS?U:U*.666,delay:j,easing:W})].join(","),l&&l(D,H)}),E=M(u),A=M(y),z=M(D=>{const{duration:H,delay:B,easing:j}=wy({style:v,timeout:b,easing:a},{mode:"exit"});let W;b==="auto"?(W=$.transitions.getAutoHeightDuration(D.clientHeight),S.current=W):W=H,D.style.transition=[$.transitions.create("opacity",{duration:W,delay:B}),$.transitions.create("transform",{duration:CS?W:W*.666,delay:CS?B:B||W*.333,easing:j})].join(","),D.style.opacity=0,D.style.transform=O_(.75),f&&f(D)}),L=M(p),O=D=>{b==="auto"&&(w.current=setTimeout(D,S.current||0)),r&&r(T.current,D)};return m.useEffect(()=>()=>{clearTimeout(w.current)},[]),g.jsx(C,P({appear:o,in:s,nodeRef:T,onEnter:N,onEntered:E,onEntering:I,onExit:z,onExited:L,onExiting:A,addEndListener:O,timeout:b==="auto"?null:b},x,{children:(D,H)=>m.cloneElement(i,P({style:P({opacity:0,transform:O_(.75),visibility:D==="exited"&&!s?"hidden":void 0},Zhe[D],v,i.props.style),ref:k},H))}))});fN.muiSupportAuto=!0;const _y=fN,Jhe=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],eme=e=>{const{classes:t,disableUnderline:n}=e,o=qe({root:["root",!n&&"underline"],input:["input"]},Rde,t);return P({},t,o)},tme=ke(Lx,{shouldForwardProp:e=>Ra(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Ax(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})`),P({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"},[`&.${Nl.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Nl.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(.${Nl.disabled}, .${Nl.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Nl.disabled}:before`]:{borderBottomStyle:"dotted"}})}),nme=ke(Dx,{name:"MuiInput",slot:"Input",overridesResolver:Fx})({}),pN=m.forwardRef(function(t,n){var r,o,i,a;const s=$t({props:t,name:"MuiInput"}),{disableUnderline:l,components:u={},componentsProps:c,fullWidth:f=!1,inputComponent:p="input",multiline:y=!1,slotProps:v,slots:b={},type:C="text"}=s,x=be(s,Jhe),w=eme(s),$={root:{ownerState:{disableUnderline:l}}},T=v??c?co(v??c,$):$,k=(r=(o=b.root)!=null?o:u.Root)!=null?r:tme,M=(i=(a=b.input)!=null?a:u.Input)!=null?i:nme;return g.jsx(sd,P({slots:{root:k,input:M},slotProps:T,fullWidth:f,inputComponent:p,multiline:y,ref:n,type:C},x,{classes:w}))});pN.muiName="Input";const hN=pN;function rme(e){return yt("MuiInputAdornment",e)}const ome=bt("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),O4=ome;var A4;const ime=["children","className","component","disablePointerEvents","disableTypography","position","variant"],ame=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${je(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},sme=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:a}=e,s={root:["root",n&&"disablePointerEvents",o&&`position${je(o)}`,a,r&&"hiddenLabel",i&&`size${je(i)}`]};return qe(s,rme,t)},lme=ke("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:ame})(({theme:e,ownerState:t})=>P({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${O4.positionStart}&:not(.${O4.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),ume=m.forwardRef(function(t,n){const r=$t({props:t,name:"MuiInputAdornment"}),{children:o,className:i,component:a="div",disablePointerEvents:s=!1,disableTypography:l=!1,position:u,variant:c}=r,f=be(r,ime),p=bs()||{};let y=c;c&&p.variant,p&&!y&&(y=p.variant);const v=P({},r,{hiddenLabel:p.hiddenLabel,size:p.size,disablePointerEvents:s,position:u,variant:y}),b=sme(v);return g.jsx(Ox.Provider,{value:null,children:g.jsx(lme,P({as:a,ownerState:v,className:ze(b.root,i),ref:n},f,{children:typeof o=="string"&&!l?g.jsx(Ze,{color:"text.secondary",children:o}):g.jsxs(m.Fragment,{children:[u==="start"?A4||(A4=g.jsx("span",{className:"notranslate",children:"​"})):null,o]})}))})}),cme=ume;function dme(e){return yt("MuiInputLabel",e)}bt("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const fme=["disableAnimation","margin","shrink","variant","className"],pme=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:i,variant:a,required:s}=e,l={root:["root",n&&"formControl",!i&&"animated",o&&"shrink",r&&r!=="normal"&&`size${je(r)}`,a],asterisk:[s&&"asterisk"]},u=qe(l,dme,t);return P({},t,u)},hme=ke(Fhe,{shouldForwardProp:e=>Ra(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${$m.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,t[n.variant]]}})(({theme:e,ownerState:t})=>P({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"&&P({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&&P({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"&&P({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)"}))),mme=m.forwardRef(function(t,n){const r=$t({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:i,className:a}=r,s=be(r,fme),l=bs();let u=i;typeof u>"u"&&l&&(u=l.filled||l.focused||l.adornedStart);const c=Su({props:r,muiFormControl:l,states:["size","variant","required"]}),f=P({},r,{disableAnimation:o,formControl:l,shrink:u,size:c.size,variant:c.variant,required:c.required}),p=pme(f);return g.jsx(hme,P({"data-shrink":u,ownerState:f,ref:n,className:ze(p.root,a)},s,{classes:p}))}),mN=mme,gme=m.createContext({}),lg=gme;function vme(e){return yt("MuiList",e)}bt("MuiList",["root","padding","dense","subheader"]);const yme=["children","className","component","dense","disablePadding","subheader"],bme=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return qe({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},vme,t)},xme=ke("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})=>P({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),wme=m.forwardRef(function(t,n){const r=$t({props:t,name:"MuiList"}),{children:o,className:i,component:a="ul",dense:s=!1,disablePadding:l=!1,subheader:u}=r,c=be(r,yme),f=m.useMemo(()=>({dense:s}),[s]),p=P({},r,{component:a,dense:s,disablePadding:l}),y=bme(p);return g.jsx(lg.Provider,{value:f,children:g.jsxs(xme,P({as:a,className:ze(y.root,i),ref:n,ownerState:p},c,{children:[u,o]}))})}),Cme=wme;function Sme(e){return yt("MuiListItemIcon",e)}const $me=bt("MuiListItemIcon",["root","alignItemsFlexStart"]),F4=$me,_me=["className"],kme=e=>{const{alignItems:t,classes:n}=e;return qe({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},Sme,n)},Pme=ke("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>P({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),Mme=m.forwardRef(function(t,n){const r=$t({props:t,name:"MuiListItemIcon"}),{className:o}=r,i=be(r,_me),a=m.useContext(lg),s=P({},r,{alignItems:a.alignItems}),l=kme(s);return g.jsx(Pme,P({className:ze(l.root,o),ownerState:s,ref:n},i))}),vc=Mme;function Tme(e){return yt("MuiListItemText",e)}const Eme=bt("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),ky=Eme,Ime=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],Rme=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:i}=e;return qe({root:["root",n&&"inset",i&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},Tme,t)},Ome=ke("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${ky.primary}`]:t.primary},{[`& .${ky.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>P({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),Ame=m.forwardRef(function(t,n){const r=$t({props:t,name:"MuiListItemText"}),{children:o,className:i,disableTypography:a=!1,inset:s=!1,primary:l,primaryTypographyProps:u,secondary:c,secondaryTypographyProps:f}=r,p=be(r,Ime),{dense:y}=m.useContext(lg);let v=l??o,b=c;const C=P({},r,{disableTypography:a,inset:s,primary:!!v,secondary:!!b,dense:y}),x=Rme(C);return v!=null&&v.type!==Ze&&!a&&(v=g.jsx(Ze,P({variant:y?"body2":"body1",className:x.primary,component:u!=null&&u.variant?void 0:"span",display:"block"},u,{children:v}))),b!=null&&b.type!==Ze&&!a&&(b=g.jsx(Ze,P({variant:"body2",className:x.secondary,color:"text.secondary",display:"block"},f,{children:b}))),g.jsxs(Ome,P({className:ze(x.root,i),ownerState:C,ref:n},p,{children:[v,b]}))}),Hf=Ame,Fme=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function SS(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function L4(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function gN(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 Dh(e,t,n,r,o,i){let a=!1,s=o(e,t,t?n:!1);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const l=r?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!gN(s,i)||l)s=o(e,s,n);else return s.focus(),!0}return!1}const Lme=m.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:i=!1,children:a,className:s,disabledItemsFocusable:l=!1,disableListWrap:u=!1,onKeyDown:c,variant:f="selectedMenu"}=t,p=be(t,Fme),y=m.useRef(null),v=m.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});pn(()=>{o&&y.current.focus()},[o]),m.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(S,$)=>{const T=!y.current.style.width;if(S.clientHeight{const $=y.current,T=S.key,k=Gn($).activeElement;if(T==="ArrowDown")S.preventDefault(),Dh($,k,u,l,SS);else if(T==="ArrowUp")S.preventDefault(),Dh($,k,u,l,L4);else if(T==="Home")S.preventDefault(),Dh($,null,u,l,SS);else if(T==="End")S.preventDefault(),Dh($,null,u,l,L4);else if(T.length===1){const M=v.current,I=T.toLowerCase(),N=performance.now();M.keys.length>0&&(N-M.lastTime>500?(M.keys=[],M.repeating=!0,M.previousKeyMatched=!0):M.repeating&&I!==M.keys[0]&&(M.repeating=!1)),M.lastTime=N,M.keys.push(I);const E=k&&!M.repeating&&gN(k,M);M.previousKeyMatched&&(E||Dh($,k,!1,l,SS,M))?S.preventDefault():M.previousKeyMatched=!1}c&&c(S)},C=on(y,n);let x=-1;m.Children.forEach(a,(S,$)=>{if(!m.isValidElement(S)){x===$&&(x+=1,x>=a.length&&(x=-1));return}S.props.disabled||(f==="selectedMenu"&&S.props.selected||x===-1)&&(x=$),x===$&&(S.props.disabled||S.props.muiSkipListHighlight||S.type.muiSkipListHighlight)&&(x+=1,x>=a.length&&(x=-1))});const w=m.Children.map(a,(S,$)=>{if($===x){const T={};return i&&(T.autoFocus=!0),S.props.tabIndex===void 0&&f==="selectedMenu"&&(T.tabIndex=0),m.cloneElement(S,T)}return S});return g.jsx(Cme,P({role:"menu",ref:C,className:s,onKeyDown:b,tabIndex:o?0:-1},p,{children:w}))}),i0=Lme;function Dme(e){return yt("MuiPopover",e)}bt("MuiPopover",["root","paper"]);const jme=["onEntering"],Nme=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],zme=["slotProps"];function D4(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function j4(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function N4(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function $S(e){return typeof e=="function"?e():e}const Bme=e=>{const{classes:t}=e;return qe({root:["root"],paper:["paper"]},Dme,t)},Hme=ke(oN,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),vN=ke(id,{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}),Wme=m.forwardRef(function(t,n){var r,o,i;const a=$t({props:t,name:"MuiPopover"}),{action:s,anchorEl:l,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:f="anchorEl",children:p,className:y,container:v,elevation:b=8,marginThreshold:C=16,open:x,PaperProps:w={},slots:S,slotProps:$,transformOrigin:T={vertical:"top",horizontal:"left"},TransitionComponent:k=_y,transitionDuration:M="auto",TransitionProps:{onEntering:I}={},disableScrollLock:N=!1}=a,E=be(a.TransitionProps,jme),A=be(a,Nme),z=(r=$==null?void 0:$.paper)!=null?r:w,L=m.useRef(),O=on(L,z.ref),D=P({},a,{anchorOrigin:u,anchorReference:f,elevation:b,marginThreshold:C,externalPaperSlotProps:z,transformOrigin:T,TransitionComponent:k,transitionDuration:M,TransitionProps:E}),H=Bme(D),B=m.useCallback(()=>{if(f==="anchorPosition")return c;const Pe=$S(l),me=(Pe&&Pe.nodeType===1?Pe:Gn(L.current).body).getBoundingClientRect();return{top:me.top+D4(me,u.vertical),left:me.left+j4(me,u.horizontal)}},[l,u.horizontal,u.vertical,c,f]),j=m.useCallback(Pe=>({vertical:D4(Pe,T.vertical),horizontal:j4(Pe,T.horizontal)}),[T.horizontal,T.vertical]),W=m.useCallback(Pe=>{const $e={width:Pe.offsetWidth,height:Pe.offsetHeight},me=j($e);if(f==="none")return{top:null,left:null,transformOrigin:N4(me)};const ue=B();let ce=ue.top-me.vertical,Te=ue.left-me.horizontal;const Le=ce+$e.height,Re=Te+$e.width,Oe=ea($S(l)),K=Oe.innerHeight-C,ee=Oe.innerWidth-C;if(C!==null&&ceK){const pe=Le-K;ce-=pe,me.vertical+=pe}if(C!==null&&Teee){const pe=Re-ee;Te-=pe,me.horizontal+=pe}return{top:`${Math.round(ce)}px`,left:`${Math.round(Te)}px`,transformOrigin:N4(me)}},[l,f,B,j,C]),[U,Z]=m.useState(x),Y=m.useCallback(()=>{const Pe=L.current;if(!Pe)return;const $e=W(Pe);$e.top!==null&&(Pe.style.top=$e.top),$e.left!==null&&(Pe.style.left=$e.left),Pe.style.transformOrigin=$e.transformOrigin,Z(!0)},[W]);m.useEffect(()=>(N&&window.addEventListener("scroll",Y),()=>window.removeEventListener("scroll",Y)),[l,N,Y]);const se=(Pe,$e)=>{I&&I(Pe,$e),Y()},Q=()=>{Z(!1)};m.useEffect(()=>{x&&Y()}),m.useImperativeHandle(s,()=>x?{updatePosition:()=>{Y()}}:null,[x,Y]),m.useEffect(()=>{if(!x)return;const Pe=wu(()=>{Y()}),$e=ea(l);return $e.addEventListener("resize",Pe),()=>{Pe.clear(),$e.removeEventListener("resize",Pe)}},[l,x,Y]);let ne=M;M==="auto"&&!k.muiSupportAuto&&(ne=void 0);const re=v||(l?Gn($S(l)).body:void 0),ge=(o=S==null?void 0:S.root)!=null?o:Hme,xe=(i=S==null?void 0:S.paper)!=null?i:vN,fe=xi({elementType:xe,externalSlotProps:P({},z,{style:U?z.style:P({},z.style,{opacity:0})}),additionalProps:{elevation:b,ref:O},ownerState:D,className:ze(H.paper,z==null?void 0:z.className)}),Se=xi({elementType:ge,externalSlotProps:($==null?void 0:$.root)||{},externalForwardedProps:A,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:re,open:x},ownerState:D,className:ze(H.root,y)}),{slotProps:de}=Se,ie=be(Se,zme);return g.jsx(ge,P({},ie,!og(ge)&&{slotProps:de,disableScrollLock:N},{children:g.jsx(k,P({appear:!0,in:x,onEntering:se,onExited:Q,timeout:ne},E,{children:g.jsx(xe,P({},fe,{children:p}))}))}))}),Vme=Wme;function Ume(e){return yt("MuiMenu",e)}bt("MuiMenu",["root","paper","list"]);const Gme=["onEntering"],qme=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Kme={vertical:"top",horizontal:"right"},Yme={vertical:"top",horizontal:"left"},Xme=e=>{const{classes:t}=e;return qe({root:["root"],paper:["paper"],list:["list"]},Ume,t)},Qme=ke(Vme,{shouldForwardProp:e=>Ra(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Zme=ke(vN,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Jme=ke(i0,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),ege=m.forwardRef(function(t,n){var r,o;const i=$t({props:t,name:"MuiMenu"}),{autoFocus:a=!0,children:s,className:l,disableAutoFocusItem:u=!1,MenuListProps:c={},onClose:f,open:p,PaperProps:y={},PopoverClasses:v,transitionDuration:b="auto",TransitionProps:{onEntering:C}={},variant:x="selectedMenu",slots:w={},slotProps:S={}}=i,$=be(i.TransitionProps,Gme),T=be(i,qme),k=Xt(),M=k.direction==="rtl",I=P({},i,{autoFocus:a,disableAutoFocusItem:u,MenuListProps:c,onEntering:C,PaperProps:y,transitionDuration:b,TransitionProps:$,variant:x}),N=Xme(I),E=a&&!u&&p,A=m.useRef(null),z=(W,U)=>{A.current&&A.current.adjustStyleForScrollbar(W,k),C&&C(W,U)},L=W=>{W.key==="Tab"&&(W.preventDefault(),f&&f(W,"tabKeyDown"))};let O=-1;m.Children.map(s,(W,U)=>{m.isValidElement(W)&&(W.props.disabled||(x==="selectedMenu"&&W.props.selected||O===-1)&&(O=U))});const D=(r=w.paper)!=null?r:Zme,H=(o=S.paper)!=null?o:y,B=xi({elementType:w.root,externalSlotProps:S.root,ownerState:I,className:[N.root,l]}),j=xi({elementType:D,externalSlotProps:H,ownerState:I,className:N.paper});return g.jsx(Qme,P({onClose:f,anchorOrigin:{vertical:"bottom",horizontal:M?"right":"left"},transformOrigin:M?Kme:Yme,slots:{paper:D,root:w.root},slotProps:{root:B,paper:j},open:p,ref:n,transitionDuration:b,TransitionProps:P({onEntering:z},$),ownerState:I},T,{classes:v,children:g.jsx(Jme,P({onKeyDown:L,actions:A,autoFocus:a&&(O===-1||u),autoFocusItem:E,variant:x},c,{className:ze(N.list,c.className),children:s}))}))}),yN=ege;function tge(e){return yt("MuiMenuItem",e)}const nge=bt("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),jh=nge,rge=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],oge=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},ige=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e,l=qe({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},tge,a);return P({},a,l)},age=ke(cu,{shouldForwardProp:e=>Ra(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:oge})(({theme:e,ownerState:t})=>P({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${jh.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Lt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${jh.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Lt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${jh.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Lt(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})`:Lt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${jh.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${jh.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${T4.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${T4.inset}`]:{marginLeft:52},[`& .${ky.root}`]:{marginTop:0,marginBottom:0},[`& .${ky.inset}`]:{paddingLeft:36},[`& .${F4.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&P({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${F4.root} svg`]:{fontSize:"1.25rem"}}))),sge=m.forwardRef(function(t,n){const r=$t({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:i="li",dense:a=!1,divider:s=!1,disableGutters:l=!1,focusVisibleClassName:u,role:c="menuitem",tabIndex:f,className:p}=r,y=be(r,rge),v=m.useContext(lg),b=m.useMemo(()=>({dense:a||v.dense||!1,disableGutters:l}),[v.dense,a,l]),C=m.useRef(null);pn(()=>{o&&C.current&&C.current.focus()},[o]);const x=P({},r,{dense:b.dense,divider:s,disableGutters:l}),w=ige(r),S=on(C,n);let $;return r.disabled||($=f!==void 0?f:-1),g.jsx(lg.Provider,{value:b,children:g.jsx(age,P({ref:S,role:c,tabIndex:$,component:i,focusVisibleClassName:ze(w.focusVisible,u),className:ze(w.root,p)},y,{ownerState:x,classes:w}))})}),Co=sge;function lge(e){return yt("MuiNativeSelect",e)}const uge=bt("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),AM=uge,cge=["className","disabled","error","IconComponent","inputRef","variant"],dge=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e,s={select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${je(n)}`,i&&"iconOpen",r&&"disabled"]};return qe(s,lge,t)},bN=({ownerState:e,theme:t})=>P({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":P({},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"},[`&.${AM.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}}),fge=ke("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Ra,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${AM.multiple}`]:t.multiple}]}})(bN),xN=({ownerState:e,theme:t})=>P({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${AM.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),pge=ke("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${je(n.variant)}`],n.open&&t.iconOpen]}})(xN),hge=m.forwardRef(function(t,n){const{className:r,disabled:o,error:i,IconComponent:a,inputRef:s,variant:l="standard"}=t,u=be(t,cge),c=P({},t,{disabled:o,variant:l,error:i}),f=dge(c);return g.jsxs(m.Fragment,{children:[g.jsx(fge,P({ownerState:c,className:ze(f.select,r),disabled:o,ref:s||n},u)),t.multiple?null:g.jsx(pge,{as:a,ownerState:c,className:f.icon})]})}),mge=hge;var z4;const gge=["children","classes","className","label","notched"],vge=ke("fieldset")({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%"}),yge=ke("legend")(({ownerState:e,theme:t})=>P({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&&P({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 bge(e){const{className:t,label:n,notched:r}=e,o=be(e,gge),i=n!=null&&n!=="",a=P({},e,{notched:r,withLabel:i});return g.jsx(vge,P({"aria-hidden":!0,className:t,ownerState:a},o,{children:g.jsx(yge,{ownerState:a,children:i?g.jsx("span",{children:n}):z4||(z4=g.jsx("span",{className:"notranslate",children:"​"}))})}))}const xge=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],wge=e=>{const{classes:t}=e,r=qe({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Ade,t);return P({},t,r)},Cge=ke(Lx,{shouldForwardProp:e=>Ra(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Ax})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return P({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Ba.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Ba.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${Ba.focused} .${Ba.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Ba.error} .${Ba.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Ba.disabled} .${Ba.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&P({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),Sge=ke(bge,{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}}),$ge=ke(Dx,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Fx})(({theme:e,ownerState:t})=>P({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})),wN=m.forwardRef(function(t,n){var r,o,i,a,s;const l=$t({props:t,name:"MuiOutlinedInput"}),{components:u={},fullWidth:c=!1,inputComponent:f="input",label:p,multiline:y=!1,notched:v,slots:b={},type:C="text"}=l,x=be(l,xge),w=wge(l),S=bs(),$=Su({props:l,muiFormControl:S,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),T=P({},l,{color:$.color||"primary",disabled:$.disabled,error:$.error,focused:$.focused,formControl:S,fullWidth:c,hiddenLabel:$.hiddenLabel,multiline:y,size:$.size,type:C}),k=(r=(o=b.root)!=null?o:u.Root)!=null?r:Cge,M=(i=(a=b.input)!=null?a:u.Input)!=null?i:$ge;return g.jsx(sd,P({slots:{root:k,input:M},renderSuffix:I=>g.jsx(Sge,{ownerState:T,className:w.notchedOutline,label:p!=null&&p!==""&&$.required?s||(s=g.jsxs(m.Fragment,{children:[p," ","*"]})):p,notched:typeof v<"u"?v:!!(I.startAdornment||I.filled||I.focused)}),fullWidth:c,inputComponent:f,multiline:y,ref:n,type:C},x,{classes:P({},w,{notchedOutline:null})}))});wN.muiName="Input";const CN=wN,B4=xt(g.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),H4=xt(g.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage");function _ge(e){return yt("MuiSelect",e)}const kge=bt("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Nh=kge;var W4;const Pge=["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"],Mge=ke("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Nh.select}`]:t.select},{[`&.${Nh.select}`]:t[n.variant]},{[`&.${Nh.error}`]:t.error},{[`&.${Nh.multiple}`]:t.multiple}]}})(bN,{[`&.${Nh.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Tge=ke("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${je(n.variant)}`],n.open&&t.iconOpen]}})(xN),Ege=ke("input",{shouldForwardProp:e=>ule(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 V4(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function Ige(e){return e==null||typeof e=="string"&&!e.trim()}const Rge=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e,s={select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${je(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return qe(s,_ge,t)},Oge=m.forwardRef(function(t,n){var r;const{"aria-describedby":o,"aria-label":i,autoFocus:a,autoWidth:s,children:l,className:u,defaultOpen:c,defaultValue:f,disabled:p,displayEmpty:y,error:v=!1,IconComponent:b,inputRef:C,labelId:x,MenuProps:w={},multiple:S,name:$,onBlur:T,onChange:k,onClose:M,onFocus:I,onOpen:N,open:E,readOnly:A,renderValue:z,SelectDisplayProps:L={},tabIndex:O,value:D,variant:H="standard"}=t,B=be(t,Pge),[j,W]=nu({controlled:D,default:f,name:"Select"}),[U,Z]=nu({controlled:E,default:c,name:"Select"}),Y=m.useRef(null),se=m.useRef(null),[Q,ne]=m.useState(null),{current:re}=m.useRef(E!=null),[ge,xe]=m.useState(),fe=on(n,C),Se=m.useCallback(Be=>{se.current=Be,Be&&ne(Be)},[]),de=Q==null?void 0:Q.parentNode;m.useImperativeHandle(fe,()=>({focus:()=>{se.current.focus()},node:Y.current,value:j}),[j]),m.useEffect(()=>{c&&U&&Q&&!re&&(xe(s?null:de.clientWidth),se.current.focus())},[Q,s]),m.useEffect(()=>{a&&se.current.focus()},[a]),m.useEffect(()=>{if(!x)return;const Be=Gn(se.current).getElementById(x);if(Be){const te=()=>{getSelection().isCollapsed&&se.current.focus()};return Be.addEventListener("click",te),()=>{Be.removeEventListener("click",te)}}},[x]);const ie=(Be,te)=>{Be?N&&N(te):M&&M(te),re||(xe(s?null:de.clientWidth),Z(Be))},Pe=Be=>{Be.button===0&&(Be.preventDefault(),se.current.focus(),ie(!0,Be))},$e=Be=>{ie(!1,Be)},me=m.Children.toArray(l),ue=Be=>{const te=me.find(X=>X.props.value===Be.target.value);te!==void 0&&(W(te.props.value),k&&k(Be,te))},ce=Be=>te=>{let X;if(te.currentTarget.hasAttribute("tabindex")){if(S){X=Array.isArray(j)?j.slice():[];const oe=j.indexOf(Be.props.value);oe===-1?X.push(Be.props.value):X.splice(oe,1)}else X=Be.props.value;if(Be.props.onClick&&Be.props.onClick(te),j!==X&&(W(X),k)){const oe=te.nativeEvent||te,Ie=new oe.constructor(oe.type,oe);Object.defineProperty(Ie,"target",{writable:!0,value:{value:X,name:$}}),k(Ie,Be)}S||ie(!1,te)}},Te=Be=>{A||[" ","ArrowUp","ArrowDown","Enter"].indexOf(Be.key)!==-1&&(Be.preventDefault(),ie(!0,Be))},Le=Q!==null&&U,Re=Be=>{!Le&&T&&(Object.defineProperty(Be,"target",{writable:!0,value:{value:j,name:$}}),T(Be))};delete B["aria-invalid"];let Oe,K;const ee=[];let pe=!1;(Sy({value:j})||y)&&(z?Oe=z(j):pe=!0);const ye=me.map(Be=>{if(!m.isValidElement(Be))return null;let te;if(S){if(!Array.isArray(j))throw new Error(uu(2));te=j.some(X=>V4(X,Be.props.value)),te&&pe&&ee.push(Be.props.children)}else te=V4(j,Be.props.value),te&&pe&&(K=Be.props.children);return m.cloneElement(Be,{"aria-selected":te?"true":"false",onClick:ce(Be),onKeyUp:X=>{X.key===" "&&X.preventDefault(),Be.props.onKeyUp&&Be.props.onKeyUp(X)},role:"option",selected:te,value:void 0,"data-value":Be.props.value})});pe&&(S?ee.length===0?Oe=null:Oe=ee.reduce((Be,te,X)=>(Be.push(te),X{const{classes:t}=e;return t},FM={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Ra(e)&&e!=="variant",slot:"Root"},jge=ke(hN,FM)(""),Nge=ke(CN,FM)(""),zge=ke(lN,FM)(""),SN=m.forwardRef(function(t,n){const r=$t({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:i,classes:a={},className:s,defaultOpen:l=!1,displayEmpty:u=!1,IconComponent:c=eN,id:f,input:p,inputProps:y,label:v,labelId:b,MenuProps:C,multiple:x=!1,native:w=!1,onClose:S,onOpen:$,open:T,renderValue:k,SelectDisplayProps:M,variant:I="outlined"}=r,N=be(r,Fge),E=w?mge:Age,A=bs(),z=Su({props:r,muiFormControl:A,states:["variant","error"]}),L=z.variant||I,O=P({},r,{variant:L,classes:a}),D=Dge(O),H=be(D,Lge),B=p||{standard:g.jsx(jge,{ownerState:O}),outlined:g.jsx(Nge,{label:v,ownerState:O}),filled:g.jsx(zge,{ownerState:O})}[L],j=on(n,B.ref);return g.jsx(m.Fragment,{children:m.cloneElement(B,P({inputComponent:E,inputProps:P({children:i,error:z.error,IconComponent:c,variant:L,type:void 0,multiple:x},w?{id:f}:{autoWidth:o,defaultOpen:l,displayEmpty:u,labelId:b,MenuProps:C,onClose:S,onOpen:$,open:T,renderValue:k,SelectDisplayProps:P({id:f},M)},y,{classes:y?co(H,y.classes):H},p?p.props.inputProps:{})},x&&w&&L==="outlined"?{notched:!0}:{},{ref:j,className:ze(B.props.className,s,D.root)},!p&&{variant:L},N))})});SN.muiName="Select";const LM=SN;function Bge(e){return yt("MuiSkeleton",e)}bt("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const Hge=["animation","className","component","height","style","variant","width"];let Py=e=>e,U4,G4,q4,K4;const Wge=e=>{const{classes:t,variant:n,animation:r,hasChildren:o,width:i,height:a}=e;return qe({root:["root",n,r,o&&"withChildren",o&&!i&&"fitContent",o&&!a&&"heightAuto"]},Bge,t)},Vge=od(U4||(U4=Py` - 0% { - opacity: 1; - } - - 50% { - opacity: 0.4; - } - - 100% { - opacity: 1; - } -`)),Uge=od(G4||(G4=Py` - 0% { - transform: translateX(-100%); - } - - 50% { - /* +0.5s of delay between each loop */ - transform: translateX(100%); - } - - 100% { - transform: translateX(100%); - } -`)),Gge=ke("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.animation!==!1&&t[n.animation],n.hasChildren&&t.withChildren,n.hasChildren&&!n.width&&t.fitContent,n.hasChildren&&!n.height&&t.heightAuto]}})(({theme:e,ownerState:t})=>{const n=ale(e.shape.borderRadius)||"px",r=sle(e.shape.borderRadius);return P({display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:Lt(e.palette.text.primary,e.palette.mode==="light"?.11:.13),height:"1.2em"},t.variant==="text"&&{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${r}${n}/${Math.round(r/.6*10)/10}${n}`,"&:empty:before":{content:'"\\00a0"'}},t.variant==="circular"&&{borderRadius:"50%"},t.variant==="rounded"&&{borderRadius:(e.vars||e).shape.borderRadius},t.hasChildren&&{"& > *":{visibility:"hidden"}},t.hasChildren&&!t.width&&{maxWidth:"fit-content"},t.hasChildren&&!t.height&&{height:"auto"})},({ownerState:e})=>e.animation==="pulse"&&ng(q4||(q4=Py` - animation: ${0} 2s ease-in-out 0.5s infinite; - `),Vge),({ownerState:e,theme:t})=>e.animation==="wave"&&ng(K4||(K4=Py` - position: relative; - overflow: hidden; - - /* Fix bug in Safari https://bugs.webkit.org/show_bug.cgi?id=68196 */ - -webkit-mask-image: -webkit-radial-gradient(white, black); - - &::after { - animation: ${0} 2s linear 0.5s infinite; - background: linear-gradient( - 90deg, - transparent, - ${0}, - transparent - ); - content: ''; - position: absolute; - transform: translateX(-100%); /* Avoid flash during server-side hydration */ - bottom: 0; - left: 0; - right: 0; - top: 0; - } - `),Uge,(t.vars||t).palette.action.hover)),qge=m.forwardRef(function(t,n){const r=$t({props:t,name:"MuiSkeleton"}),{animation:o="pulse",className:i,component:a="span",height:s,style:l,variant:u="text",width:c}=r,f=be(r,Hge),p=P({},r,{animation:o,component:a,variant:u,hasChildren:!!f.children}),y=Wge(p);return g.jsx(Gge,P({as:a,ref:n,className:ze(y.root,i),ownerState:p},f,{style:P({width:c,height:s},l)}))}),Kge=qge;function Yge(e){return yt("MuiTooltip",e)}const Xge=bt("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Hl=Xge,Qge=["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 Zge(e){return Math.round(e*1e5)/1e5}const Jge=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e,a={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${je(i.split("-")[0])}`],arrow:["arrow"]};return qe(a,Yge,t)},e0e=ke(ad,{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})=>P({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Hl.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Hl.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Hl.arrow}`]:P({},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"] .${Hl.arrow}`]:P({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),t0e=ke("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${je(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>P({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Lt(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:`${Zge(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${Hl.popper}[data-popper-placement*="left"] &`]:P({transformOrigin:"right center"},t.isRtl?P({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):P({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Hl.popper}[data-popper-placement*="right"] &`]:P({transformOrigin:"left center"},t.isRtl?P({marginRight:"14px"},t.touch&&{marginRight:"24px"}):P({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Hl.popper}[data-popper-placement*="top"] &`]:P({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Hl.popper}[data-popper-placement*="bottom"] &`]:P({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),n0e=ke("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:Lt(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let jv=!1,_S=null,zh={x:0,y:0};function Nv(e,t){return n=>{t&&t(n),e(n)}}const r0e=m.forwardRef(function(t,n){var r,o,i,a,s,l,u,c,f,p,y,v,b,C,x,w,S,$,T;const k=$t({props:t,name:"MuiTooltip"}),{arrow:M=!1,children:I,components:N={},componentsProps:E={},describeChild:A=!1,disableFocusListener:z=!1,disableHoverListener:L=!1,disableInteractive:O=!1,disableTouchListener:D=!1,enterDelay:H=100,enterNextDelay:B=0,enterTouchDelay:j=700,followCursor:W=!1,id:U,leaveDelay:Z=0,leaveTouchDelay:Y=1500,onClose:se,onOpen:Q,open:ne,placement:re="bottom",PopperComponent:ge,PopperProps:xe={},slotProps:fe={},slots:Se={},title:de,TransitionComponent:ie=_y,TransitionProps:Pe}=k,$e=be(k,Qge),me=m.isValidElement(I)?I:g.jsx("span",{children:I}),ue=Xt(),ce=ue.direction==="rtl",[Te,Le]=m.useState(),[Re,Oe]=m.useState(null),K=m.useRef(!1),ee=O||W,pe=m.useRef(),ye=m.useRef(),De=m.useRef(),Ae=m.useRef(),[Ee,Ce]=nu({controlled:ne,default:!1,name:"Tooltip",state:"open"});let Qe=Ee;const Ct=ln(U),et=m.useRef(),Be=m.useCallback(()=>{et.current!==void 0&&(document.body.style.WebkitUserSelect=et.current,et.current=void 0),clearTimeout(Ae.current)},[]);m.useEffect(()=>()=>{clearTimeout(pe.current),clearTimeout(ye.current),clearTimeout(De.current),Be()},[Be]);const te=gt=>{clearTimeout(_S),jv=!0,Ce(!0),Q&&!Qe&&Q(gt)},X=Dn(gt=>{clearTimeout(_S),_S=setTimeout(()=>{jv=!1},800+Z),Ce(!1),se&&Qe&&se(gt),clearTimeout(pe.current),pe.current=setTimeout(()=>{K.current=!1},ue.transitions.duration.shortest)}),oe=gt=>{K.current&>.type!=="touchstart"||(Te&&Te.removeAttribute("title"),clearTimeout(ye.current),clearTimeout(De.current),H||jv&&B?ye.current=setTimeout(()=>{te(gt)},jv?B:H):te(gt))},Ie=gt=>{clearTimeout(ye.current),clearTimeout(De.current),De.current=setTimeout(()=>{X(gt)},Z)},{isFocusVisibleRef:Ve,onBlur:Ke,onFocus:at,ref:Je}=aM(),[,nt]=m.useState(!1),_t=gt=>{Ke(gt),Ve.current===!1&&(nt(!1),Ie(gt))},ht=gt=>{Te||Le(gt.currentTarget),at(gt),Ve.current===!0&&(nt(!0),oe(gt))},lt=gt=>{K.current=!0;const or=me.props;or.onTouchStart&&or.onTouchStart(gt)},Rt=oe,jt=Ie,dn=gt=>{lt(gt),clearTimeout(De.current),clearTimeout(pe.current),Be(),et.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Ae.current=setTimeout(()=>{document.body.style.WebkitUserSelect=et.current,oe(gt)},j)},hn=gt=>{me.props.onTouchEnd&&me.props.onTouchEnd(gt),Be(),clearTimeout(De.current),De.current=setTimeout(()=>{X(gt)},Y)};m.useEffect(()=>{if(!Qe)return;function gt(or){(or.key==="Escape"||or.key==="Esc")&&X(or)}return document.addEventListener("keydown",gt),()=>{document.removeEventListener("keydown",gt)}},[X,Qe]);const Pt=on(me.ref,Je,Le,n);!de&&de!==0&&(Qe=!1);const zt=m.useRef(),un=gt=>{const or=me.props;or.onMouseMove&&or.onMouseMove(gt),zh={x:gt.clientX,y:gt.clientY},zt.current&&zt.current.update()},cn={},ut=typeof de=="string";A?(cn.title=!Qe&&ut&&!L?de:null,cn["aria-describedby"]=Qe?Ct:null):(cn["aria-label"]=ut?de:null,cn["aria-labelledby"]=Qe&&!ut?Ct:null);const mt=P({},cn,$e,me.props,{className:ze($e.className,me.props.className),onTouchStart:lt,ref:Pt},W?{onMouseMove:un}:{}),Ot={};D||(mt.onTouchStart=dn,mt.onTouchEnd=hn),L||(mt.onMouseOver=Nv(Rt,mt.onMouseOver),mt.onMouseLeave=Nv(jt,mt.onMouseLeave),ee||(Ot.onMouseOver=Rt,Ot.onMouseLeave=jt)),z||(mt.onFocus=Nv(ht,mt.onFocus),mt.onBlur=Nv(_t,mt.onBlur),ee||(Ot.onFocus=ht,Ot.onBlur=_t));const At=m.useMemo(()=>{var gt;let or=[{name:"arrow",enabled:!!Re,options:{element:Re,padding:4}}];return(gt=xe.popperOptions)!=null&>.modifiers&&(or=or.concat(xe.popperOptions.modifiers)),P({},xe.popperOptions,{modifiers:or})},[Re,xe]),tt=P({},k,{isRtl:ce,arrow:M,disableInteractive:ee,placement:re,PopperComponentProp:ge,touch:K.current}),Ut=Jge(tt),_e=(r=(o=Se.popper)!=null?o:N.Popper)!=null?r:e0e,we=(i=(a=(s=Se.transition)!=null?s:N.Transition)!=null?a:ie)!=null?i:_y,Fe=(l=(u=Se.tooltip)!=null?u:N.Tooltip)!=null?l:t0e,rt=(c=(f=Se.arrow)!=null?f:N.Arrow)!=null?c:n0e,Tt=im(_e,P({},xe,(p=fe.popper)!=null?p:E.popper,{className:ze(Ut.popper,xe==null?void 0:xe.className,(y=(v=fe.popper)!=null?v:E.popper)==null?void 0:y.className)}),tt),en=im(we,P({},Pe,(b=fe.transition)!=null?b:E.transition),tt),_n=im(Fe,P({},(C=fe.tooltip)!=null?C:E.tooltip,{className:ze(Ut.tooltip,(x=(w=fe.tooltip)!=null?w:E.tooltip)==null?void 0:x.className)}),tt),ct=im(rt,P({},(S=fe.arrow)!=null?S:E.arrow,{className:ze(Ut.arrow,($=(T=fe.arrow)!=null?T:E.arrow)==null?void 0:$.className)}),tt);return g.jsxs(m.Fragment,{children:[m.cloneElement(me,mt),g.jsx(_e,P({as:ge??ad,placement:re,anchorEl:W?{getBoundingClientRect:()=>({top:zh.y,left:zh.x,right:zh.x,bottom:zh.y,width:0,height:0})}:Te,popperRef:zt,open:Te?Qe:!1,id:Ct,transition:!0},Ot,Tt,{popperOptions:At,children:({TransitionProps:gt})=>g.jsx(we,P({timeout:ue.transitions.duration.shorter},gt,en,{children:g.jsxs(Fe,P({},_n,{children:[de,M?g.jsx(rt,P({},ct,{ref:Oe})):null]}))}))}))]})}),o0e=r0e;function i0e(e){return yt("MuiSwitch",e)}const a0e=bt("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),lo=a0e,s0e=["className","color","edge","size","sx"],l0e=e=>{const{classes:t,edge:n,size:r,color:o,checked:i,disabled:a}=e,s={root:["root",n&&`edge${je(n)}`,`size${je(r)}`],switchBase:["switchBase",`color${je(o)}`,i&&"checked",a&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=qe(s,i0e,t);return P({},t,l)},u0e=ke("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${je(n.edge)}`],t[`size${je(n.size)}`]]}})(({ownerState:e})=>P({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},e.edge==="start"&&{marginLeft:-8},e.edge==="end"&&{marginRight:-8},e.size==="small"&&{width:40,height:24,padding:7,[`& .${lo.thumb}`]:{width:16,height:16},[`& .${lo.switchBase}`]:{padding:4,[`&.${lo.checked}`]:{transform:"translateX(16px)"}}})),c0e=ke(rN,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${lo.input}`]:t.input},n.color!=="default"&&t[`color${je(n.color)}`]]}})(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${lo.checked}`]:{transform:"translateX(20px)"},[`&.${lo.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${lo.checked} + .${lo.track}`]:{opacity:.5},[`&.${lo.disabled} + .${lo.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${lo.input}`]:{left:"-100%",width:"300%"}}),({theme:e,ownerState:t})=>P({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Lt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${lo.checked}`]:{color:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Lt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${lo.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t.color}DisabledColor`]:`${e.palette.mode==="light"?Tx(e.palette[t.color].main,.62):Mx(e.palette[t.color].main,.55)}`}},[`&.${lo.checked} + .${lo.track}`]:{backgroundColor:(e.vars||e).palette[t.color].main}})),d0e=ke("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`})),f0e=ke("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),p0e=m.forwardRef(function(t,n){const r=$t({props:t,name:"MuiSwitch"}),{className:o,color:i="primary",edge:a=!1,size:s="medium",sx:l}=r,u=be(r,s0e),c=P({},r,{color:i,edge:a,size:s}),f=l0e(c),p=g.jsx(f0e,{className:f.thumb,ownerState:c});return g.jsxs(u0e,{className:ze(f.root,o),sx:l,ownerState:c,children:[g.jsx(c0e,P({type:"checkbox",icon:p,checkedIcon:p,ref:n,ownerState:c},u,{classes:P({},f,{root:f.switchBase})})),g.jsx(d0e,{className:f.track,ownerState:c})]})}),$N=p0e;function h0e(e){return yt("MuiTab",e)}const m0e=bt("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),Hu=m0e,g0e=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],v0e=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:o,icon:i,label:a,selected:s,disabled:l}=e,u={root:["root",i&&a&&"labelIcon",`textColor${je(n)}`,r&&"fullWidth",o&&"wrapped",s&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]};return qe(u,h0e,t)},y0e=ke(cu,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${je(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>P({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${Hu.iconWrapper}`]:P({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:e.spacing(1)},t.iconPosition==="end"&&{marginLeft:e.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${Hu.selected}`]:{opacity:1},[`&.${Hu.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Hu.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${Hu.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Hu.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${Hu.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),b0e=m.forwardRef(function(t,n){const r=$t({props:t,name:"MuiTab"}),{className:o,disabled:i=!1,disableFocusRipple:a=!1,fullWidth:s,icon:l,iconPosition:u="top",indicator:c,label:f,onChange:p,onClick:y,onFocus:v,selected:b,selectionFollowsFocus:C,textColor:x="inherit",value:w,wrapped:S=!1}=r,$=be(r,g0e),T=P({},r,{disabled:i,disableFocusRipple:a,selected:b,icon:!!l,iconPosition:u,label:!!f,fullWidth:s,textColor:x,wrapped:S}),k=v0e(T),M=l&&f&&m.isValidElement(l)?m.cloneElement(l,{className:ze(k.iconWrapper,l.props.className)}):l,I=E=>{!b&&p&&p(E,w),y&&y(E)},N=E=>{C&&!b&&p&&p(E,w),v&&v(E)};return g.jsxs(y0e,P({focusRipple:!a,className:ze(k.root,o),ref:n,role:"tab","aria-selected":b,disabled:i,onClick:I,onFocus:N,ownerState:T,tabIndex:b?0:-1},$,{children:[u==="top"||u==="start"?g.jsxs(m.Fragment,{children:[M,f]}):g.jsxs(m.Fragment,{children:[f,M]}),c]}))}),Y4=b0e,x0e=m.createContext(),w0e=x0e,C0e=m.createContext(),S0e=C0e;function $0e(e){return yt("MuiTableCell",e)}const _0e=bt("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),k0e=_0e,P0e=["align","className","component","padding","scope","size","sortDirection","variant"],M0e=e=>{const{classes:t,variant:n,align:r,padding:o,size:i,stickyHeader:a}=e,s={root:["root",n,a&&"stickyHeader",r!=="inherit"&&`align${je(r)}`,o!=="normal"&&`padding${je(o)}`,`size${je(i)}`]};return qe(s,$0e,t)},T0e=ke("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${je(n.size)}`],n.padding!=="normal"&&t[`padding${je(n.padding)}`],n.align!=="inherit"&&t[`align${je(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>P({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid - ${e.palette.mode==="light"?Tx(Lt(e.palette.divider,1),.88):Mx(Lt(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${k0e.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),E0e=m.forwardRef(function(t,n){const r=$t({props:t,name:"MuiTableCell"}),{align:o="inherit",className:i,component:a,padding:s,scope:l,size:u,sortDirection:c,variant:f}=r,p=be(r,P0e),y=m.useContext(w0e),v=m.useContext(S0e),b=v&&v.variant==="head";let C;a?C=a:C=b?"th":"td";let x=l;C==="td"?x=void 0:!x&&b&&(x="col");const w=f||v&&v.variant,S=P({},r,{align:o,component:C,padding:s||(y&&y.padding?y.padding:"normal"),size:u||(y&&y.size?y.size:"medium"),sortDirection:c,stickyHeader:w==="head"&&y&&y.stickyHeader,variant:w}),$=M0e(S);let T=null;return c&&(T=c==="asc"?"ascending":"descending"),g.jsx(T0e,P({as:C,ref:n,className:ze($.root,i),"aria-sort":T,scope:x,ownerState:S},p))}),A_=E0e;function I0e(e){return yt("MuiToolbar",e)}bt("MuiToolbar",["root","gutters","regular","dense"]);const R0e=["className","component","disableGutters","variant"],O0e=e=>{const{classes:t,disableGutters:n,variant:r}=e;return qe({root:["root",!n&&"gutters",r]},I0e,t)},A0e=ke("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(({theme:e,ownerState:t})=>P({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),F0e=m.forwardRef(function(t,n){const r=$t({props:t,name:"MuiToolbar"}),{className:o,component:i="div",disableGutters:a=!1,variant:s="regular"}=r,l=be(r,R0e),u=P({},r,{component:i,disableGutters:a,variant:s}),c=O0e(u);return g.jsx(A0e,P({as:i,className:ze(c.root,o),ref:n,ownerState:u},l))}),_N=F0e,F_=xt(g.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),L_=xt(g.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");var X4,Q4,Z4,J4,eA,tA,nA,rA;const L0e=["backIconButtonProps","count","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton"],D0e=m.forwardRef(function(t,n){const{backIconButtonProps:r,count:o,getItemAriaLabel:i,nextIconButtonProps:a,onPageChange:s,page:l,rowsPerPage:u,showFirstButton:c,showLastButton:f}=t,p=be(t,L0e),y=Xt(),v=w=>{s(w,0)},b=w=>{s(w,l-1)},C=w=>{s(w,l+1)},x=w=>{s(w,Math.max(0,Math.ceil(o/u)-1))};return g.jsxs("div",P({ref:n},p,{children:[c&&g.jsx(wo,{onClick:v,disabled:l===0,"aria-label":i("first",l),title:i("first",l),children:y.direction==="rtl"?X4||(X4=g.jsx(H4,{})):Q4||(Q4=g.jsx(B4,{}))}),g.jsx(wo,P({onClick:b,disabled:l===0,color:"inherit","aria-label":i("previous",l),title:i("previous",l)},r,{children:y.direction==="rtl"?Z4||(Z4=g.jsx(L_,{})):J4||(J4=g.jsx(F_,{}))})),g.jsx(wo,P({onClick:C,disabled:o!==-1?l>=Math.ceil(o/u)-1:!1,color:"inherit","aria-label":i("next",l),title:i("next",l)},a,{children:y.direction==="rtl"?eA||(eA=g.jsx(F_,{})):tA||(tA=g.jsx(L_,{}))})),f&&g.jsx(wo,{onClick:x,disabled:l>=Math.ceil(o/u)-1,"aria-label":i("last",l),title:i("last",l),children:y.direction==="rtl"?nA||(nA=g.jsx(B4,{})):rA||(rA=g.jsx(H4,{}))})]}))}),j0e=D0e;function N0e(e){return yt("MuiTablePagination",e)}const z0e=bt("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]),yc=z0e;var oA;const B0e=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton"],H0e=ke(A_,{name:"MuiTablePagination",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({overflow:"auto",color:(e.vars||e).palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}})),W0e=ke(_N,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>P({[`& .${yc.actions}`]:t.actions},t.toolbar)})(({theme:e})=>({minHeight:52,paddingRight:2,[`${e.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[e.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${yc.actions}`]:{flexShrink:0,marginLeft:20}})),V0e=ke("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),U0e=ke("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})(({theme:e})=>P({},e.typography.body2,{flexShrink:0})),G0e=ke(LM,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>P({[`& .${yc.selectIcon}`]:t.selectIcon,[`& .${yc.select}`]:t.select},t.input,t.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${yc.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),q0e=ke(Co,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),K0e=ke("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})(({theme:e})=>P({},e.typography.body2,{flexShrink:0}));function Y0e({from:e,to:t,count:n}){return`${e}–${t} of ${n!==-1?n:`more than ${t}`}`}function X0e(e){return`Go to ${e} page`}const Q0e=e=>{const{classes:t}=e;return qe({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},N0e,t)},Z0e=m.forwardRef(function(t,n){const r=$t({props:t,name:"MuiTablePagination"}),{ActionsComponent:o=j0e,backIconButtonProps:i,className:a,colSpan:s,component:l=A_,count:u,getItemAriaLabel:c=X0e,labelDisplayedRows:f=Y0e,labelRowsPerPage:p="Rows per page:",nextIconButtonProps:y,onPageChange:v,onRowsPerPageChange:b,page:C,rowsPerPage:x,rowsPerPageOptions:w=[10,25,50,100],SelectProps:S={},showFirstButton:$=!1,showLastButton:T=!1}=r,k=be(r,B0e),M=r,I=Q0e(M),N=S.native?"option":q0e;let E;(l===A_||l==="td")&&(E=s||1e3);const A=ln(S.id),z=ln(S.labelId),L=()=>u===-1?(C+1)*x:x===-1?u:Math.min(u,(C+1)*x);return g.jsx(H0e,P({colSpan:E,ref:n,as:l,ownerState:M,className:ze(I.root,a)},k,{children:g.jsxs(W0e,{className:I.toolbar,children:[g.jsx(V0e,{className:I.spacer}),w.length>1&&g.jsx(U0e,{className:I.selectLabel,id:z,children:p}),w.length>1&&g.jsx(G0e,P({variant:"standard"},!S.variant&&{input:oA||(oA=g.jsx(sd,{}))},{value:x,onChange:b,id:A,labelId:z},S,{classes:P({},S.classes,{root:ze(I.input,I.selectRoot,(S.classes||{}).root),select:ze(I.select,(S.classes||{}).select),icon:ze(I.selectIcon,(S.classes||{}).icon)}),children:w.map(O=>m.createElement(N,P({},!og(N)&&{ownerState:M},{className:I.menuItem,key:O.label?O.label:O,value:O.value?O.value:O}),O.label?O.label:O))})),g.jsx(K0e,{className:I.displayedRows,children:f({from:u===0?0:C*x+1,to:L(),count:u===-1?-1:u,page:C})}),g.jsx(o,{className:I.actions,backIconButtonProps:i,count:u,nextIconButtonProps:y,onPageChange:v,page:C,rowsPerPage:x,showFirstButton:$,showLastButton:T,getItemAriaLabel:c})]})}))}),J0e=Z0e;function eve(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function tve(e,t,n,r={},o=()=>{}){const{ease:i=eve,duration:a=300}=r;let s=null;const l=t[e];let u=!1;const c=()=>{u=!0},f=p=>{if(u){o(new Error("Animation cancelled"));return}s===null&&(s=p);const y=Math.min(1,(p-s)/a);if(t[e]=i(y)*(n-l)+l,y>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(f)};return l===n?(o(new Error("Element already at target position")),c):(requestAnimationFrame(f),c)}const nve=["onChange"],rve={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function ove(e){const{onChange:t}=e,n=be(e,nve),r=m.useRef(),o=m.useRef(null),i=()=>{r.current=o.current.offsetHeight-o.current.clientHeight};return pn(()=>{const a=wu(()=>{const l=r.current;i(),l!==r.current&&t(r.current)}),s=ea(o.current);return s.addEventListener("resize",a),()=>{a.clear(),s.removeEventListener("resize",a)}},[t]),m.useEffect(()=>{i(),t(r.current)},[t]),g.jsx("div",P({style:rve,ref:o},n))}function ive(e){return yt("MuiTabScrollButton",e)}const ave=bt("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),sve=ave,lve=["className","slots","slotProps","direction","orientation","disabled"],uve=e=>{const{classes:t,orientation:n,disabled:r}=e;return qe({root:["root",n,r&&"disabled"]},ive,t)},cve=ke(cu,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:e})=>P({width:40,flexShrink:0,opacity:.8,[`&.${sve.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),dve=m.forwardRef(function(t,n){var r,o;const i=$t({props:t,name:"MuiTabScrollButton"}),{className:a,slots:s={},slotProps:l={},direction:u}=i,c=be(i,lve),p=Xt().direction==="rtl",y=P({isRtl:p},i),v=uve(y),b=(r=s.StartScrollButtonIcon)!=null?r:F_,C=(o=s.EndScrollButtonIcon)!=null?o:L_,x=xi({elementType:b,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:y}),w=xi({elementType:C,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:y});return g.jsx(cve,P({component:"div",className:ze(v.root,a),ref:n,role:null,ownerState:y,tabIndex:null},c,{children:u==="left"?g.jsx(b,P({},x)):g.jsx(C,P({},w))}))}),fve=dve;function pve(e){return yt("MuiTabs",e)}const hve=bt("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),kS=hve,mve=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],iA=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,aA=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,zv=(e,t,n)=>{let r=!1,o=n(e,t);for(;o;){if(o===e.firstChild){if(r)return;r=!0}const i=o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||i)o=n(e,o);else{o.focus();return}}},gve=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:o,scrollableY:i,centered:a,scrollButtonsHideMobile:s,classes:l}=e;return qe({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",o&&"scrollableX",i&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",a&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},pve,l)},vve=ke("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${kS.scrollButtons}`]:t.scrollButtons},{[`& .${kS.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>P({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${kS.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),yve=ke("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})(({ownerState:e})=>P({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),bve=ke("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})(({ownerState:e})=>P({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),xve=ke("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>P({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),wve=ke(ove)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),sA={},Cve=m.forwardRef(function(t,n){const r=$t({props:t,name:"MuiTabs"}),o=Xt(),i=o.direction==="rtl",{"aria-label":a,"aria-labelledby":s,action:l,centered:u=!1,children:c,className:f,component:p="div",allowScrollButtonsMobile:y=!1,indicatorColor:v="primary",onChange:b,orientation:C="horizontal",ScrollButtonComponent:x=fve,scrollButtons:w="auto",selectionFollowsFocus:S,slots:$={},slotProps:T={},TabIndicatorProps:k={},TabScrollButtonProps:M={},textColor:I="primary",value:N,variant:E="standard",visibleScrollbar:A=!1}=r,z=be(r,mve),L=E==="scrollable",O=C==="vertical",D=O?"scrollTop":"scrollLeft",H=O?"top":"left",B=O?"bottom":"right",j=O?"clientHeight":"clientWidth",W=O?"height":"width",U=P({},r,{component:p,allowScrollButtonsMobile:y,indicatorColor:v,orientation:C,vertical:O,scrollButtons:w,textColor:I,variant:E,visibleScrollbar:A,fixed:!L,hideScrollbar:L&&!A,scrollableX:L&&!O,scrollableY:L&&O,centered:u&&!L,scrollButtonsHideMobile:!y}),Z=gve(U),Y=xi({elementType:$.StartScrollButtonIcon,externalSlotProps:T.startScrollButtonIcon,ownerState:U}),se=xi({elementType:$.EndScrollButtonIcon,externalSlotProps:T.endScrollButtonIcon,ownerState:U}),[Q,ne]=m.useState(!1),[re,ge]=m.useState(sA),[xe,fe]=m.useState(!1),[Se,de]=m.useState(!1),[ie,Pe]=m.useState(!1),[$e,me]=m.useState({overflow:"hidden",scrollbarWidth:0}),ue=new Map,ce=m.useRef(null),Te=m.useRef(null),Le=()=>{const X=ce.current;let oe;if(X){const Ve=X.getBoundingClientRect();oe={clientWidth:X.clientWidth,scrollLeft:X.scrollLeft,scrollTop:X.scrollTop,scrollLeftNormalized:Uoe(X,o.direction),scrollWidth:X.scrollWidth,top:Ve.top,bottom:Ve.bottom,left:Ve.left,right:Ve.right}}let Ie;if(X&&N!==!1){const Ve=Te.current.children;if(Ve.length>0){const Ke=Ve[ue.get(N)];Ie=Ke?Ke.getBoundingClientRect():null}}return{tabsMeta:oe,tabMeta:Ie}},Re=Dn(()=>{const{tabsMeta:X,tabMeta:oe}=Le();let Ie=0,Ve;if(O)Ve="top",oe&&X&&(Ie=oe.top-X.top+X.scrollTop);else if(Ve=i?"right":"left",oe&&X){const at=i?X.scrollLeftNormalized+X.clientWidth-X.scrollWidth:X.scrollLeft;Ie=(i?-1:1)*(oe[Ve]-X[Ve]+at)}const Ke={[Ve]:Ie,[W]:oe?oe[W]:0};if(isNaN(re[Ve])||isNaN(re[W]))ge(Ke);else{const at=Math.abs(re[Ve]-Ke[Ve]),Je=Math.abs(re[W]-Ke[W]);(at>=1||Je>=1)&&ge(Ke)}}),Oe=(X,{animation:oe=!0}={})=>{oe?tve(D,ce.current,X,{duration:o.transitions.duration.standard}):ce.current[D]=X},K=X=>{let oe=ce.current[D];O?oe+=X:(oe+=X*(i?-1:1),oe*=i&&tj()==="reverse"?-1:1),Oe(oe)},ee=()=>{const X=ce.current[j];let oe=0;const Ie=Array.from(Te.current.children);for(let Ve=0;VeX){Ve===0&&(oe=X);break}oe+=Ke[j]}return oe},pe=()=>{K(-1*ee())},ye=()=>{K(ee())},De=m.useCallback(X=>{me({overflow:null,scrollbarWidth:X})},[]),Ae=()=>{const X={};X.scrollbarSizeListener=L?g.jsx(wve,{onChange:De,className:ze(Z.scrollableX,Z.hideScrollbar)}):null;const Ie=L&&(w==="auto"&&(xe||Se)||w===!0);return X.scrollButtonStart=Ie?g.jsx(x,P({slots:{StartScrollButtonIcon:$.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:Y},orientation:C,direction:i?"right":"left",onClick:pe,disabled:!xe},M,{className:ze(Z.scrollButtons,M.className)})):null,X.scrollButtonEnd=Ie?g.jsx(x,P({slots:{EndScrollButtonIcon:$.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:se},orientation:C,direction:i?"left":"right",onClick:ye,disabled:!Se},M,{className:ze(Z.scrollButtons,M.className)})):null,X},Ee=Dn(X=>{const{tabsMeta:oe,tabMeta:Ie}=Le();if(!(!Ie||!oe)){if(Ie[H]oe[B]){const Ve=oe[D]+(Ie[B]-oe[B]);Oe(Ve,{animation:X})}}}),Ce=Dn(()=>{L&&w!==!1&&Pe(!ie)});m.useEffect(()=>{const X=wu(()=>{ce.current&&Re()}),oe=ea(ce.current);oe.addEventListener("resize",X);let Ie;return typeof ResizeObserver<"u"&&(Ie=new ResizeObserver(X),Array.from(Te.current.children).forEach(Ve=>{Ie.observe(Ve)})),()=>{X.clear(),oe.removeEventListener("resize",X),Ie&&Ie.disconnect()}},[Re]),m.useEffect(()=>{const X=Array.from(Te.current.children),oe=X.length;if(typeof IntersectionObserver<"u"&&oe>0&&L&&w!==!1){const Ie=X[0],Ve=X[oe-1],Ke={root:ce.current,threshold:.99},at=ht=>{fe(!ht[0].isIntersecting)},Je=new IntersectionObserver(at,Ke);Je.observe(Ie);const nt=ht=>{de(!ht[0].isIntersecting)},_t=new IntersectionObserver(nt,Ke);return _t.observe(Ve),()=>{Je.disconnect(),_t.disconnect()}}},[L,w,ie,c==null?void 0:c.length]),m.useEffect(()=>{ne(!0)},[]),m.useEffect(()=>{Re()}),m.useEffect(()=>{Ee(sA!==re)},[Ee,re]),m.useImperativeHandle(l,()=>({updateIndicator:Re,updateScrollButtons:Ce}),[Re,Ce]);const Qe=g.jsx(xve,P({},k,{className:ze(Z.indicator,k.className),ownerState:U,style:P({},re,k.style)}));let Ct=0;const et=m.Children.map(c,X=>{if(!m.isValidElement(X))return null;const oe=X.props.value===void 0?Ct:X.props.value;ue.set(oe,Ct);const Ie=oe===N;return Ct+=1,m.cloneElement(X,P({fullWidth:E==="fullWidth",indicator:Ie&&!Q&&Qe,selected:Ie,selectionFollowsFocus:S,onChange:b,textColor:I,value:oe},Ct===1&&N===!1&&!X.props.tabIndex?{tabIndex:0}:{}))}),Be=X=>{const oe=Te.current,Ie=Gn(oe).activeElement;if(Ie.getAttribute("role")!=="tab")return;let Ke=C==="horizontal"?"ArrowLeft":"ArrowUp",at=C==="horizontal"?"ArrowRight":"ArrowDown";switch(C==="horizontal"&&i&&(Ke="ArrowRight",at="ArrowLeft"),X.key){case Ke:X.preventDefault(),zv(oe,Ie,aA);break;case at:X.preventDefault(),zv(oe,Ie,iA);break;case"Home":X.preventDefault(),zv(oe,null,iA);break;case"End":X.preventDefault(),zv(oe,null,aA);break}},te=Ae();return g.jsxs(vve,P({className:ze(Z.root,f),ownerState:U,ref:n,as:p},z,{children:[te.scrollButtonStart,te.scrollbarSizeListener,g.jsxs(yve,{className:Z.scroller,ownerState:U,style:{overflow:$e.overflow,[O?`margin${i?"Left":"Right"}`:"marginBottom"]:A?void 0:-$e.scrollbarWidth},ref:ce,children:[g.jsx(bve,{"aria-label":a,"aria-labelledby":s,"aria-orientation":C==="vertical"?"vertical":null,className:Z.flexContainer,ownerState:U,onKeyDown:Be,ref:Te,role:"tablist",children:et}),Q&&Qe]}),te.scrollButtonEnd]}))}),Sve=Cve;function $ve(e){return yt("MuiTextField",e)}bt("MuiTextField",["root"]);const _ve=["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"],kve={standard:hN,filled:lN,outlined:CN},Pve=e=>{const{classes:t}=e;return qe({root:["root"]},$ve,t)},Mve=ke(uN,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Tve=m.forwardRef(function(t,n){const r=$t({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:i=!1,children:a,className:s,color:l="primary",defaultValue:u,disabled:c=!1,error:f=!1,FormHelperTextProps:p,fullWidth:y=!1,helperText:v,id:b,InputLabelProps:C,inputProps:x,InputProps:w,inputRef:S,label:$,maxRows:T,minRows:k,multiline:M=!1,name:I,onBlur:N,onChange:E,onFocus:A,placeholder:z,required:L=!1,rows:O,select:D=!1,SelectProps:H,type:B,value:j,variant:W="outlined"}=r,U=be(r,_ve),Z=P({},r,{autoFocus:i,color:l,disabled:c,error:f,fullWidth:y,multiline:M,required:L,select:D,variant:W}),Y=Pve(Z),se={};W==="outlined"&&(C&&typeof C.shrink<"u"&&(se.notched=C.shrink),se.label=$),D&&((!H||!H.native)&&(se.id=void 0),se["aria-describedby"]=void 0);const Q=ln(b),ne=v&&Q?`${Q}-helper-text`:void 0,re=$&&Q?`${Q}-label`:void 0,ge=kve[W],xe=g.jsx(ge,P({"aria-describedby":ne,autoComplete:o,autoFocus:i,defaultValue:u,fullWidth:y,multiline:M,name:I,rows:O,maxRows:T,minRows:k,type:B,value:j,id:Q,inputRef:S,onBlur:N,onChange:E,onFocus:A,placeholder:z,inputProps:x},se,w));return g.jsxs(Mve,P({className:ze(Y.root,s),disabled:c,error:f,fullWidth:y,ref:n,required:L,color:l,variant:W,ownerState:Z},U,{children:[$!=null&&$!==""&&g.jsx(mN,P({htmlFor:Q,id:re},C,{children:$})),D?g.jsx(LM,P({"aria-describedby":ne,id:Q,labelId:re,value:j,input:xe},H,{children:a})):xe,v&&g.jsx(Phe,P({id:ne},p,{children:v}))]}))}),ru=Tve;/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var ci=function(){return ci=Object.assign||function(t){for(var n,r=1,o=arguments.length;r0?Yr(Dp,--Zo):0,dp--,Sr===10&&(dp=1,zx--),Sr}function vi(){return Sr=Zo2||cg(Sr)>3?"":" "}function Vve(e,t){for(;--t&&vi()&&!(Sr<48||Sr>102||Sr>57&&Sr<65||Sr>70&&Sr<97););return a0(e,k1()+(t<6&&os()==32&&vi()==32))}function N_(e){for(;vi();)switch(Sr){case e:return Zo;case 34:case 39:e!==34&&e!==39&&N_(Sr);break;case 40:e===41&&N_(e);break;case 92:vi();break}return Zo}function Uve(e,t){for(;vi()&&e+Sr!==47+10;)if(e+Sr===42+42&&os()===47)break;return"/*"+a0(t,Zo-1)+"*"+Nx(e===47?e:vi())}function Gve(e){for(;!cg(os());)vi();return a0(e,Zo)}function lA(e){return IN(M1("",null,null,null,[""],e=EN(e),0,[0],e))}function M1(e,t,n,r,o,i,a,s,l){for(var u=0,c=0,f=a,p=0,y=0,v=0,b=1,C=1,x=1,w=0,S="",$=o,T=i,k=r,M=S;C;)switch(v=w,w=vi()){case 40:if(v!=108&&Yr(M,f-1)==58){j_(M+=Sn(P1(w),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:M+=P1(w);break;case 9:case 10:case 13:case 32:M+=Wve(v);break;case 92:M+=Vve(k1()-1,7);continue;case 47:switch(os()){case 42:case 47:Bv(qve(Uve(vi(),k1()),t,n),l);break;default:M+="/"}break;case 123*b:s[u++]=Ga(M)*x;case 125*b:case 59:case 0:switch(w){case 0:case 125:C=0;case 59+c:y>0&&Ga(M)-f&&Bv(y>32?cA(M+";",r,n,f-1):cA(Sn(M," ","")+";",r,n,f-2),l);break;case 59:M+=";";default:if(Bv(k=uA(M,t,n,u,c,o,s,S,$=[],T=[],f),i),w===123)if(c===0)M1(M,t,k,k,$,i,f,s,T);else switch(p===99&&Yr(M,3)===110?100:p){case 100:case 109:case 115:M1(e,k,k,r&&Bv(uA(e,k,k,0,0,o,s,S,o,$=[],f),T),o,T,f,s,r?$:T);break;default:M1(M,k,k,k,[""],T,0,s,T)}}u=c=y=0,b=x=1,S=M="",f=a;break;case 58:f=1+Ga(M),y=v;default:if(b<1){if(w==123)--b;else if(w==125&&b++==0&&Hve()==125)continue}switch(M+=Nx(w),w*b){case 38:x=c>0?1:(M+="\f",-1);break;case 44:s[u++]=(Ga(M)-1)*x,x=1;break;case 64:os()===45&&(M+=P1(vi())),p=os(),c=f=Ga(S=M+=Gve(k1())),w++;break;case 45:v===45&&Ga(M)==2&&(b=0)}}return i}function uA(e,t,n,r,o,i,a,s,l,u,c){for(var f=o-1,p=o===0?i:[""],y=zM(p),v=0,b=0,C=0;v0?p[x]+" "+w:Sn(w,/&\f/g,p[x])))&&(l[C++]=S);return Bx(e,t,n,o===0?jM:s,l,u,c)}function qve(e,t,n){return Bx(e,t,n,kN,Nx(Bve()),ug(e,2,-2),0)}function cA(e,t,n,r){return Bx(e,t,n,NM,ug(e,0,r),ug(e,r+1,-1),r)}function bc(e,t){for(var n="",r=zM(e),o=0;o6)switch(Yr(e,t+1)){case 109:if(Yr(e,t+4)!==45)break;case 102:return Sn(e,/(.+:)(.+)-([^]+)/,"$1"+xn+"$2-$3$1"+My+(Yr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~j_(e,"stretch")?RN(Sn(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Yr(e,t+1)!==115)break;case 6444:switch(Yr(e,Ga(e)-3-(~j_(e,"!important")&&10))){case 107:return Sn(e,":",":"+xn)+e;case 101:return Sn(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+xn+(Yr(e,14)===45?"inline-":"")+"box$3$1"+xn+"$2$3$1"+ao+"$2box$3")+e}break;case 5936:switch(Yr(e,t+11)){case 114:return xn+e+ao+Sn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return xn+e+ao+Sn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return xn+e+ao+Sn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return xn+e+ao+e+e}return e}var t1e=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case NM:t.return=RN(t.value,t.length);break;case PN:return bc([Bh(t,{value:Sn(t.value,"@","@"+xn)})],o);case jM:if(t.length)return zve(t.props,function(i){switch(Nve(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return bc([Bh(t,{props:[Sn(i,/:(read-\w+)/,":"+My+"$1")]})],o);case"::placeholder":return bc([Bh(t,{props:[Sn(i,/:(plac\w+)/,":"+xn+"input-$1")]}),Bh(t,{props:[Sn(i,/:(plac\w+)/,":"+My+"$1")]}),Bh(t,{props:[Sn(i,/:(plac\w+)/,ao+"input-$1")]})],o)}return""})}},T1=typeof document<"u",n1e=T1?void 0:Yve(function(){return DM(function(){var e={};return function(t){return e[t]}})}),r1e=[t1e],ON=function(t){var n=t.key;if(T1&&n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function($){var T=$.getAttribute("data-emotion");T.indexOf(" ")!==-1&&(document.head.appendChild($),$.setAttribute("data-s",""))})}var o=t.stylisPlugins||r1e,i={},a,s=[];T1&&(a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function($){for(var T=$.getAttribute("data-emotion").split(" "),k=1;k=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var f1e={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},p1e=/[A-Z]|^ms/g,h1e=/_EMO_([^_]+?)_([^]*?)_EMO_/g,LN=function(t){return t.charCodeAt(1)===45},mA=function(t){return t!=null&&typeof t!="boolean"},PS=DM(function(e){return LN(e)?e:e.replace(p1e,"-$&").toLowerCase()}),gA=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(h1e,function(r,o,i){return qa={name:o,styles:i,next:qa},o})}return f1e[t]!==1&&!LN(t)&&typeof n=="number"&&n!==0?n+"px":n};function dg(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return qa={name:n.name,styles:n.styles,next:qa},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)qa={name:r.name,styles:r.styles,next:qa},r=r.next;var o=n.styles+";";return o}return m1e(e,t,n)}case"function":{if(e!==void 0){var i=qa,a=n(e);return qa=i,dg(e,t,a)}break}}if(t==null)return n;var s=t[n];return s!==void 0?s:n}function m1e(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o96?v1e:y1e},bA=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(a){return t.__emotion_forwardProp(a)&&i(a)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},b1e=typeof document<"u",x1e=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;FN(n,r,o);var i=a1e(function(){return c1e(n,r,o)});if(!b1e&&i!==void 0){for(var a,s=r.name,l=r.next;l!==void 0;)s+=" "+l.name,l=l.next;return m.createElement("style",(a={},a["data-emotion"]=n.key+" "+s,a.dangerouslySetInnerHTML={__html:i},a.nonce=n.sheet.nonce,a))}return null},w1e=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,a;n!==void 0&&(i=n.label,a=n.target);var s=bA(t,n,r),l=s||yA(o),u=!l("as");return function(){var c=arguments,f=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&f.push("label:"+i+";"),c[0]==null||c[0].raw===void 0)f.push.apply(f,c);else{f.push(c[0][0]);for(var p=c.length,y=1;y"u")return!1;var t=sa(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function J1e(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];!Xi(i)||!ps(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(a){var s=o[a];s===!1?i.removeAttribute(a):i.setAttribute(a,s===!0?"":s)}))})}function eye(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=a.reduce(function(l,u){return l[u]="",l},{});!Xi(o)||!ps(o)||(Object.assign(o.style,s),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}var tye={name:"applyStyles",enabled:!0,phase:"write",fn:J1e,effect:eye,requires:["computeStyles"]};function is(e){return e.split("-")[0]}var xc=Math.max,Iy=Math.min,pp=Math.round;function B_(){var e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function GN(){return!/^((?!chrome|android).)*safari/i.test(B_())}function hp(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&Xi(e)&&(o=e.offsetWidth>0&&pp(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&pp(r.height)/e.offsetHeight||1);var a=Hc(e)?sa(e):window,s=a.visualViewport,l=!GN()&&n,u=(r.left+(l&&s?s.offsetLeft:0))/o,c=(r.top+(l&&s?s.offsetTop:0))/i,f=r.width/o,p=r.height/i;return{width:f,height:p,top:c,right:u+f,bottom:c+p,left:u,x:u,y:c}}function VM(e){var t=hp(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 qN(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&WM(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ll(e){return sa(e).getComputedStyle(e)}function nye(e){return["table","td","th"].indexOf(ps(e))>=0}function $u(e){return((Hc(e)?e.ownerDocument:e.document)||window.document).documentElement}function Wx(e){return ps(e)==="html"?e:e.assignedSlot||e.parentNode||(WM(e)?e.host:null)||$u(e)}function FA(e){return!Xi(e)||ll(e).position==="fixed"?null:e.offsetParent}function rye(e){var t=/firefox/i.test(B_()),n=/Trident/i.test(B_());if(n&&Xi(e)){var r=ll(e);if(r.position==="fixed")return null}var o=Wx(e);for(WM(o)&&(o=o.host);Xi(o)&&["html","body"].indexOf(ps(o))<0;){var i=ll(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 l0(e){for(var t=sa(e),n=FA(e);n&&nye(n)&&ll(n).position==="static";)n=FA(n);return n&&(ps(n)==="html"||ps(n)==="body"&&ll(n).position==="static")?t:n||rye(e)||t}function UM(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function _m(e,t,n){return xc(e,Iy(t,n))}function oye(e,t,n){var r=_m(e,t,n);return r>n?n:r}function KN(){return{top:0,right:0,bottom:0,left:0}}function YN(e){return Object.assign({},KN(),e)}function XN(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var iye=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,YN(typeof t!="number"?t:XN(t,s0))};function aye(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=is(n.placement),l=UM(s),u=[Yo,oa].indexOf(s)>=0,c=u?"height":"width";if(!(!i||!a)){var f=iye(o.padding,n),p=VM(i),y=l==="y"?Ko:Yo,v=l==="y"?ra:oa,b=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],C=a[l]-n.rects.reference[l],x=l0(i),w=x?l==="y"?x.clientHeight||0:x.clientWidth||0:0,S=b/2-C/2,$=f[y],T=w-p[c]-f[v],k=w/2-p[c]/2+S,M=_m($,k,T),I=l;n.modifiersData[r]=(t={},t[I]=M,t.centerOffset=M-k,t)}}function sye(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)||qN(t.elements.popper,o)&&(t.elements.arrow=o))}var lye={name:"arrow",enabled:!0,phase:"main",fn:aye,effect:sye,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function mp(e){return e.split("-")[1]}var uye={top:"auto",right:"auto",bottom:"auto",left:"auto"};function cye(e){var t=e.x,n=e.y,r=window,o=r.devicePixelRatio||1;return{x:pp(t*o)/o||0,y:pp(n*o)/o||0}}function LA(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,f=e.isFixed,p=a.x,y=p===void 0?0:p,v=a.y,b=v===void 0?0:v,C=typeof c=="function"?c({x:y,y:b}):{x:y,y:b};y=C.x,b=C.y;var x=a.hasOwnProperty("x"),w=a.hasOwnProperty("y"),S=Yo,$=Ko,T=window;if(u){var k=l0(n),M="clientHeight",I="clientWidth";if(k===sa(n)&&(k=$u(n),ll(k).position!=="static"&&s==="absolute"&&(M="scrollHeight",I="scrollWidth")),k=k,o===Ko||(o===Yo||o===oa)&&i===fg){$=ra;var N=f&&k===T&&T.visualViewport?T.visualViewport.height:k[M];b-=N-r.height,b*=l?1:-1}if(o===Yo||(o===Ko||o===ra)&&i===fg){S=oa;var E=f&&k===T&&T.visualViewport?T.visualViewport.width:k[I];y-=E-r.width,y*=l?1:-1}}var A=Object.assign({position:s},u&&uye),z=c===!0?cye({x:y,y:b}):{x:y,y:b};if(y=z.x,b=z.y,l){var L;return Object.assign({},A,(L={},L[$]=w?"0":"",L[S]=x?"0":"",L.transform=(T.devicePixelRatio||1)<=1?"translate("+y+"px, "+b+"px)":"translate3d("+y+"px, "+b+"px, 0)",L))}return Object.assign({},A,(t={},t[$]=w?b+"px":"",t[S]=x?y+"px":"",t.transform="",t))}function dye(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,a=i===void 0?!0:i,s=n.roundOffsets,l=s===void 0?!0:s,u={placement:is(t.placement),variation:mp(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,LA(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,LA(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})}var fye={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:dye,data:{}},Hv={passive:!0};function pye(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,a=r.resize,s=a===void 0?!0:a,l=sa(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(c){c.addEventListener("scroll",n.update,Hv)}),s&&l.addEventListener("resize",n.update,Hv),function(){i&&u.forEach(function(c){c.removeEventListener("scroll",n.update,Hv)}),s&&l.removeEventListener("resize",n.update,Hv)}}var hye={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:pye,data:{}},mye={left:"right",right:"left",bottom:"top",top:"bottom"};function E1(e){return e.replace(/left|right|bottom|top/g,function(t){return mye[t]})}var gye={start:"end",end:"start"};function DA(e){return e.replace(/start|end/g,function(t){return gye[t]})}function GM(e){var t=sa(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function qM(e){return hp($u(e)).left+GM(e).scrollLeft}function vye(e,t){var n=sa(e),r=$u(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;var u=GN();(u||!u&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s+qM(e),y:l}}function yye(e){var t,n=$u(e),r=GM(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=xc(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=xc(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+qM(e),l=-r.scrollTop;return ll(o||n).direction==="rtl"&&(s+=xc(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}function KM(e){var t=ll(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function QN(e){return["html","body","#document"].indexOf(ps(e))>=0?e.ownerDocument.body:Xi(e)&&KM(e)?e:QN(Wx(e))}function km(e,t){var n;t===void 0&&(t=[]);var r=QN(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=sa(r),a=o?[i].concat(i.visualViewport||[],KM(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(km(Wx(a)))}function H_(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function bye(e,t){var n=hp(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 jA(e,t,n){return t===VN?H_(vye(e,n)):Hc(t)?bye(t,n):H_(yye($u(e)))}function xye(e){var t=km(Wx(e)),n=["absolute","fixed"].indexOf(ll(e).position)>=0,r=n&&Xi(e)?l0(e):e;return Hc(r)?t.filter(function(o){return Hc(o)&&qN(o,r)&&ps(o)!=="body"}):[]}function wye(e,t,n,r){var o=t==="clippingParents"?xye(e):[].concat(t),i=[].concat(o,[n]),a=i[0],s=i.reduce(function(l,u){var c=jA(e,u,r);return l.top=xc(c.top,l.top),l.right=Iy(c.right,l.right),l.bottom=Iy(c.bottom,l.bottom),l.left=xc(c.left,l.left),l},jA(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function ZN(e){var t=e.reference,n=e.element,r=e.placement,o=r?is(r):null,i=r?mp(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(o){case Ko:l={x:a,y:t.y-n.height};break;case ra:l={x:a,y:t.y+t.height};break;case oa:l={x:t.x+t.width,y:s};break;case Yo:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var u=o?UM(o):null;if(u!=null){var c=u==="y"?"height":"width";switch(i){case fp:l[u]=l[u]-(t[c]/2-n[c]/2);break;case fg:l[u]=l[u]+(t[c]/2-n[c]/2);break}}return l}function pg(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,a=i===void 0?e.strategy:i,s=n.boundary,l=s===void 0?B1e:s,u=n.rootBoundary,c=u===void 0?VN:u,f=n.elementContext,p=f===void 0?Hh:f,y=n.altBoundary,v=y===void 0?!1:y,b=n.padding,C=b===void 0?0:b,x=YN(typeof C!="number"?C:XN(C,s0)),w=p===Hh?H1e:Hh,S=e.rects.popper,$=e.elements[v?w:p],T=wye(Hc($)?$:$.contextElement||$u(e.elements.popper),l,c,a),k=hp(e.elements.reference),M=ZN({reference:k,element:S,strategy:"absolute",placement:o}),I=H_(Object.assign({},S,M)),N=p===Hh?I:k,E={top:T.top-N.top+x.top,bottom:N.bottom-T.bottom+x.bottom,left:T.left-N.left+x.left,right:N.right-T.right+x.right},A=e.modifiersData.offset;if(p===Hh&&A){var z=A[o];Object.keys(E).forEach(function(L){var O=[oa,ra].indexOf(L)>=0?1:-1,D=[Ko,ra].indexOf(L)>=0?"y":"x";E[L]+=z[D]*O})}return E}function Cye(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?UN:l,c=mp(r),f=c?s?AA:AA.filter(function(v){return mp(v)===c}):s0,p=f.filter(function(v){return u.indexOf(v)>=0});p.length===0&&(p=f);var y=p.reduce(function(v,b){return v[b]=pg(e,{placement:b,boundary:o,rootBoundary:i,padding:a})[is(b)],v},{});return Object.keys(y).sort(function(v,b){return y[v]-y[b]})}function Sye(e){if(is(e)===HM)return[];var t=E1(e);return[DA(e),t,DA(t)]}function $ye(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,s=a===void 0?!0:a,l=n.fallbackPlacements,u=n.padding,c=n.boundary,f=n.rootBoundary,p=n.altBoundary,y=n.flipVariations,v=y===void 0?!0:y,b=n.allowedAutoPlacements,C=t.options.placement,x=is(C),w=x===C,S=l||(w||!v?[E1(C)]:Sye(C)),$=[C].concat(S).reduce(function(Q,ne){return Q.concat(is(ne)===HM?Cye(t,{placement:ne,boundary:c,rootBoundary:f,padding:u,flipVariations:v,allowedAutoPlacements:b}):ne)},[]),T=t.rects.reference,k=t.rects.popper,M=new Map,I=!0,N=$[0],E=0;E<$.length;E++){var A=$[E],z=is(A),L=mp(A)===fp,O=[Ko,ra].indexOf(z)>=0,D=O?"width":"height",H=pg(t,{placement:A,boundary:c,rootBoundary:f,altBoundary:p,padding:u}),B=O?L?oa:Yo:L?ra:Ko;T[D]>k[D]&&(B=E1(B));var j=E1(B),W=[];if(i&&W.push(H[z]<=0),s&&W.push(H[B]<=0,H[j]<=0),W.every(function(Q){return Q})){N=A,I=!1;break}M.set(A,W)}if(I)for(var U=v?3:1,Z=function(ne){var re=$.find(function(ge){var xe=M.get(ge);if(xe)return xe.slice(0,ne).every(function(fe){return fe})});if(re)return N=re,"break"},Y=U;Y>0;Y--){var se=Z(Y);if(se==="break")break}t.placement!==N&&(t.modifiersData[r]._skip=!0,t.placement=N,t.reset=!0)}}var _ye={name:"flip",enabled:!0,phase:"main",fn:$ye,requiresIfExists:["offset"],data:{_skip:!1}};function NA(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 zA(e){return[Ko,oa,ra,Yo].some(function(t){return e[t]>=0})}function kye(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=pg(t,{elementContext:"reference"}),s=pg(t,{altBoundary:!0}),l=NA(a,r),u=NA(s,o,i),c=zA(l),f=zA(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})}var Pye={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:kye};function Mye(e,t,n){var r=is(e),o=[Yo,Ko].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[Yo,oa].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function Tye(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,a=UN.reduce(function(c,f){return c[f]=Mye(f,t.rects,i),c},{}),s=a[t.placement],l=s.x,u=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}var Eye={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Tye};function Iye(e){var t=e.state,n=e.name;t.modifiersData[n]=ZN({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var Rye={name:"popperOffsets",enabled:!0,phase:"read",fn:Iye,data:{}};function Oye(e){return e==="x"?"y":"x"}function Aye(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,s=a===void 0?!1:a,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,f=n.padding,p=n.tether,y=p===void 0?!0:p,v=n.tetherOffset,b=v===void 0?0:v,C=pg(t,{boundary:l,rootBoundary:u,padding:f,altBoundary:c}),x=is(t.placement),w=mp(t.placement),S=!w,$=UM(x),T=Oye($),k=t.modifiersData.popperOffsets,M=t.rects.reference,I=t.rects.popper,N=typeof b=="function"?b(Object.assign({},t.rects,{placement:t.placement})):b,E=typeof N=="number"?{mainAxis:N,altAxis:N}:Object.assign({mainAxis:0,altAxis:0},N),A=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,z={x:0,y:0};if(k){if(i){var L,O=$==="y"?Ko:Yo,D=$==="y"?ra:oa,H=$==="y"?"height":"width",B=k[$],j=B+C[O],W=B-C[D],U=y?-I[H]/2:0,Z=w===fp?M[H]:I[H],Y=w===fp?-I[H]:-M[H],se=t.elements.arrow,Q=y&&se?VM(se):{width:0,height:0},ne=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:KN(),re=ne[O],ge=ne[D],xe=_m(0,M[H],Q[H]),fe=S?M[H]/2-U-xe-re-E.mainAxis:Z-xe-re-E.mainAxis,Se=S?-M[H]/2+U+xe+ge+E.mainAxis:Y+xe+ge+E.mainAxis,de=t.elements.arrow&&l0(t.elements.arrow),ie=de?$==="y"?de.clientTop||0:de.clientLeft||0:0,Pe=(L=A==null?void 0:A[$])!=null?L:0,$e=B+fe-Pe-ie,me=B+Se-Pe,ue=_m(y?Iy(j,$e):j,B,y?xc(W,me):W);k[$]=ue,z[$]=ue-B}if(s){var ce,Te=$==="x"?Ko:Yo,Le=$==="x"?ra:oa,Re=k[T],Oe=T==="y"?"height":"width",K=Re+C[Te],ee=Re-C[Le],pe=[Ko,Yo].indexOf(x)!==-1,ye=(ce=A==null?void 0:A[T])!=null?ce:0,De=pe?K:Re-M[Oe]-I[Oe]-ye+E.altAxis,Ae=pe?Re+M[Oe]+I[Oe]-ye-E.altAxis:ee,Ee=y&&pe?oye(De,Re,Ae):_m(y?De:K,Re,y?Ae:ee);k[T]=Ee,z[T]=Ee-Re}t.modifiersData[r]=z}}var Fye={name:"preventOverflow",enabled:!0,phase:"main",fn:Aye,requiresIfExists:["offset"]};function Lye(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Dye(e){return e===sa(e)||!Xi(e)?GM(e):Lye(e)}function jye(e){var t=e.getBoundingClientRect(),n=pp(t.width)/e.offsetWidth||1,r=pp(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Nye(e,t,n){n===void 0&&(n=!1);var r=Xi(t),o=Xi(t)&&jye(t),i=$u(t),a=hp(e,o,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((ps(t)!=="body"||KM(i))&&(s=Dye(t)),Xi(t)?(l=hp(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=qM(i))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function zye(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&o(l)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function Bye(e){var t=zye(e);return Z1e.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function Hye(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Wye(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 BA={placement:"bottom",modifiers:[],strategy:"absolute"};function HA(){for(var e=arguments.length,t=new Array(e),n=0;n .`,` { - `,`; - - `,`; - } -`],[` - position: relative; - width: 100%; - - `,`; - - `,`; - - > .`,` { - `,`; - - `,`; - } -`])),function(e){var t=e.menuItemStyles;return t},function(e){var t=e.rootStyles;return t},Mn.button,function(e){var t=e.level,n=e.disabled,r=e.active,o=e.collapsed,i=e.rtl;return JN({level:t,disabled:n,active:r,collapsed:o,rtl:i})},function(e){var t=e.buttonStyles;return t}),Xye=function(e,t){var n,r=e.children,o=e.className,i=e.label,a=e.icon,s=e.title,l=e.prefix,u=e.suffix,c=e.open,f=e.defaultOpen,p=e.active,y=p===void 0?!1:p,v=e.disabled,b=v===void 0?!1:v,C=e.rootStyles,x=e.component,w=e.onOpenChange,S=e.onClick,$=e.onKeyUp,T=Bc(e,["children","className","label","icon","title","prefix","suffix","open","defaultOpen","active","disabled","rootStyles","component","onOpenChange","onClick","onKeyUp"]),k=ot.useContext(Ey),M=ot.useContext(Hx),I=M.collapsed,N=M.rtl,E=M.transitionDuration,A=BM(),z=A.renderExpandIcon,L=A.closeOnClick,O=A.menuItemStyles,D=A.transitionDuration,H=ot.useState(!!f),B=H[0],j=H[1],W=ot.useState(!1),U=W[0],Z=W[1],Y=ot.useState(!1),se=Y[0],Q=Y[1],ne=ot.useRef(null),re=ot.useRef(null),ge=ot.useRef(),xe=qye({level:k,buttonRef:ne,contentRef:re}).popperInstance,fe=function(){var ue=re.current;if(ue){ue.style.display="block",ue.style.overflow="hidden",ue.style.height="auto";var ce=ue.offsetHeight;ue.style.height="0px",ue.offsetHeight,ue.style.height="".concat(ce,"px"),ge.current=setTimeout(function(){ue.style.overflow="auto",ue.style.height="auto"},D)}},Se=function(){var ue=re.current;ue&&(ue.style.overflow="hidden",ue.style.height="".concat(ue.offsetHeight,"px"),ue.offsetHeight,ue.style.height="0px",ge.current=setTimeout(function(){ue.style.overflow="auto",ue.style.display="none"},D))},de=function(){if(!(k===0&&I)){clearTimeout(Number(ge.current));var ue=c??B;ue?Se():fe(),w==null||w(!ue),typeof c>"u"&&j(!B)}},ie=function(ue){S==null||S(ue),de()},Pe=function(ue){$==null||$(ue),ue.key==="Enter"&&de()},$e=function(ue){if(O){var ce={level:k,disabled:b,active:y,isSubmenu:!0,open:c??B},Te=O.root,Le=O.button,Re=O.label,Oe=O.icon,K=O.prefix,ee=O.suffix,pe=O.subMenuContent,ye=O.SubMenuExpandIcon;switch(ue){case"root":return typeof Te=="function"?Te(ce):Te;case"button":return typeof Le=="function"?Le(ce):Le;case"label":return typeof Re=="function"?Re(ce):Re;case"icon":return typeof Oe=="function"?Oe(ce):Oe;case"prefix":return typeof K=="function"?K(ce):K;case"suffix":return typeof ee=="function"?ee(ce):ee;case"SubMenuExpandIcon":return typeof ye=="function"?ye(ce):ye;case"subMenuContent":return typeof pe=="function"?pe(ce):pe;default:return}}};ot.useEffect(function(){setTimeout(function(){return xe==null?void 0:xe.update()},E),I&&k===0&&Z(!1)},[I,k,N,E,xe]),ot.useEffect(function(){var ue=function(Re){var Oe,K,ee;!U&&(!((Oe=ne.current)===null||Oe===void 0)&&Oe.contains(Re))?Z(!0):(L&&!(!((K=Re.closest(".".concat(Mn.menuItemRoot)))===null||K===void 0)&&K.classList.contains(Mn.subMenuRoot))||!(!((ee=re.current)===null||ee===void 0)&&ee.contains(Re))&&U)&&Z(!1)},ce=function(Re){ue(Re.target)},Te=function(Re){Re.key==="Enter"?ue(Re.target):Re.key==="Escape"&&Z(!1)},Le=function(){document.removeEventListener("click",ce),document.removeEventListener("keyup",Te)};return Le(),I&&k===0&&(document.addEventListener("click",ce,!1),document.addEventListener("keyup",Te,!1)),function(){Le()}},[I,k,L,U]),ot.useEffect(function(){Q(!0)},[]);var me=(n={},n[Mn.active]=y,n[Mn.disabled]=b,n[Mn.open]=c??B,n);return ot.createElement(Yye,{ref:t,className:Tr(Mn.menuItemRoot,Mn.subMenuRoot,me,o),menuItemStyles:$e("root"),level:k,collapsed:I,rtl:N,disabled:b,active:y,buttonStyles:$e("button"),rootStyles:C},ot.createElement(ez,ci({"data-testid":"".concat(Mn.button,"-test-id"),ref:ne,title:s,className:Tr(Mn.button,me),onClick:ie,onKeyUp:Pe,component:x,tabIndex:0},T),a&&ot.createElement(BN,{rtl:N,className:Tr(Mn.icon,me),rootStyles:$e("icon")},a),l&&ot.createElement(HN,{collapsed:I,transitionDuration:E,firstLevel:k===0,className:Tr(Mn.prefix,me),rtl:N,rootStyles:$e("prefix")},l),ot.createElement(zN,{className:Tr(Mn.label,me),rootStyles:$e("label")},i),u&&ot.createElement(WN,{collapsed:I,transitionDuration:E,firstLevel:k===0,className:Tr(Mn.suffix,me),rootStyles:$e("suffix")},u),ot.createElement(j1e,{rtl:N,className:Tr(Mn.SubMenuExpandIcon,me),collapsed:I,level:k,rootStyles:$e("SubMenuExpandIcon")},z?z({level:k,disabled:b,active:y,open:c??B}):I&&k===0?ot.createElement(z1e,null):ot.createElement(N1e,{rtl:N,open:c??B}))),ot.createElement(D1e,{ref:re,openWhenCollapsed:U,open:c??B,firstLevel:k===0,collapsed:I,defaultOpen:c&&!se||f,className:Tr(Mn.subMenuContent,me),rootStyles:$e("subMenuContent")},ot.createElement(Ey.Provider,{value:k+1},r)))};ot.forwardRef(Xye);var WA,Qye=zr.li(VA||(VA=po([` - width: 100%; - position: relative; - - `,`; - - `,`; - - > .`,` { - `,`; - - `,`; - } -`],[` - width: 100%; - position: relative; - - `,`; - - `,`; - - > .`,` { - `,`; - - `,`; - } -`])),function(e){var t=e.menuItemStyles;return t},function(e){var t=e.rootStyles;return t},Mn.button,function(e){var t=e.level,n=e.disabled,r=e.active,o=e.collapsed,i=e.rtl;return JN({level:t,disabled:n,active:r,collapsed:o,rtl:i})},function(e){var t=e.buttonStyles;return t}),Zye=function(e,t){var n,r=e.children,o=e.icon,i=e.className,a=e.prefix,s=e.suffix,l=e.active,u=l===void 0?!1:l,c=e.disabled,f=c===void 0?!1:c,p=e.component,y=e.rootStyles,v=Bc(e,["children","icon","className","prefix","suffix","active","disabled","component","rootStyles"]),b=ot.useContext(Ey),C=ot.useContext(Hx),x=C.collapsed,w=C.rtl,S=C.transitionDuration,$=BM().menuItemStyles,T=function(M){if($){var I={level:b,disabled:f,active:u,isSubmenu:!1},N=$.root,E=$.button,A=$.label,z=$.icon,L=$.prefix,O=$.suffix;switch(M){case"root":return typeof N=="function"?N(I):N;case"button":return typeof E=="function"?E(I):E;case"label":return typeof A=="function"?A(I):A;case"icon":return typeof z=="function"?z(I):z;case"prefix":return typeof L=="function"?L(I):L;case"suffix":return typeof O=="function"?O(I):O;default:return}}},k=(n={},n[Mn.active]=u,n[Mn.disabled]=f,n);return ot.createElement(Qye,{ref:t,className:Tr(Mn.menuItemRoot,k,i),menuItemStyles:T("root"),level:b,collapsed:x,rtl:w,disabled:f,active:u,buttonStyles:T("button"),rootStyles:y},ot.createElement(ez,ci({className:Tr(Mn.button,k),"data-testid":"".concat(Mn.button,"-test-id"),component:p,tabIndex:0},v),o&&ot.createElement(BN,{rtl:w,className:Tr(Mn.icon,k),rootStyles:T("icon")},o),a&&ot.createElement(HN,{collapsed:x,transitionDuration:S,firstLevel:b===0,className:Tr(Mn.prefix,k),rtl:w,rootStyles:T("prefix")},a),ot.createElement(zN,{className:Tr(Mn.label,k),rootStyles:T("label")},r),s&&ot.createElement(WN,{collapsed:x,transitionDuration:S,firstLevel:b===0,className:Tr(Mn.suffix,k),rootStyles:T("suffix")},s)))},tz=ot.forwardRef(Zye),VA;const Jye=xt(g.jsx("path",{d:"M6.5 10h-2v7h2v-7zm6 0h-2v7h2v-7zm8.5 9H2v2h19v-2zm-2.5-9h-2v7h2v-7zm-7-6.74L16.71 6H6.29l5.21-2.74m0-2.26L2 6v2h19V6l-9.5-5z"}),"AccountBalanceOutlined"),ebe=xt(g.jsx("path",{d:"m20.54 5.23-1.39-1.68C18.88 3.21 18.47 3 18 3H6c-.47 0-.88.21-1.16.55L3.46 5.23C3.17 5.57 3 6.02 3 6.5V19c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6.5c0-.48-.17-.93-.46-1.27zM12 17.5 6.5 12H10v-2h4v2h3.5L12 17.5zM5.12 5l.81-1h12l.94 1H5.12z"}),"Archive"),tbe=xt(g.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-2zm0 16H5V5h14v14zM7 10h2v7H7zm4-3h2v10h-2zm4 6h2v4h-2z"}),"AssessmentOutlined"),nbe=xt(g.jsx("path",{d:"M11.8 10.9c-2.27-.59-3-1.2-3-2.15 0-1.09 1.01-1.85 2.7-1.85 1.78 0 2.44.85 2.5 2.1h2.21c-.07-1.72-1.12-3.3-3.21-3.81V3h-3v2.16c-1.94.42-3.5 1.68-3.5 3.61 0 2.31 1.91 3.46 4.7 4.13 2.5.6 3 1.48 3 2.41 0 .69-.49 1.79-2.7 1.79-2.06 0-2.87-.92-2.98-2.1h-2.2c.12 2.19 1.76 3.42 3.68 3.83V21h3v-2.15c1.95-.37 3.5-1.5 3.5-3.55 0-2.84-2.43-3.81-4.7-4.4z"}),"AttachMoney"),rbe=xt(g.jsx("path",{d:"M11.8 10.9c-2.27-.59-3-1.2-3-2.15 0-1.09 1.01-1.85 2.7-1.85 1.78 0 2.44.85 2.5 2.1h2.21c-.07-1.72-1.12-3.3-3.21-3.81V3h-3v2.16c-1.94.42-3.5 1.68-3.5 3.61 0 2.31 1.91 3.46 4.7 4.13 2.5.6 3 1.48 3 2.41 0 .69-.49 1.79-2.7 1.79-2.06 0-2.87-.92-2.98-2.1h-2.2c.12 2.19 1.76 3.42 3.68 3.83V21h3v-2.15c1.95-.37 3.5-1.5 3.5-3.55 0-2.84-2.43-3.81-4.7-4.4z"}),"AttachMoneyOutlined"),obe=xt(g.jsx("path",{d:"M13 7.83c.85-.3 1.53-.98 1.83-1.83H18l-3 7c0 1.66 1.57 3 3.5 3s3.5-1.34 3.5-3l-3-7h2V4h-6.17c-.41-1.17-1.52-2-2.83-2s-2.42.83-2.83 2H3v2h2l-3 7c0 1.66 1.57 3 3.5 3S9 14.66 9 13L6 6h3.17c.3.85.98 1.53 1.83 1.83V19H2v2h20v-2h-9V7.83zM20.37 13h-3.74l1.87-4.36L20.37 13zm-13 0H3.63L5.5 8.64 7.37 13zM12 6c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1z"}),"Balance"),ibe=xt(g.jsx("path",{d:"M13 2.05v3.03c3.39.49 6 3.39 6 6.92 0 .9-.18 1.75-.48 2.54l2.6 1.53c.56-1.24.88-2.62.88-4.07 0-5.18-3.95-9.45-9-9.95zM12 19c-3.87 0-7-3.13-7-7 0-3.53 2.61-6.43 6-6.92V2.05c-5.06.5-9 4.76-9 9.95 0 5.52 4.47 10 9.99 10 3.31 0 6.24-1.61 8.06-4.09l-2.6-1.53C16.17 17.98 14.21 19 12 19z"}),"DataUsageOutlined"),u0=xt(g.jsx("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}),"Edit"),abe=xt(g.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.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm-5.5-2.5 7.51-3.49L17.5 6.5 9.99 9.99 6.5 17.5zm5.5-6.6c.61 0 1.1.49 1.1 1.1s-.49 1.1-1.1 1.1-1.1-.49-1.1-1.1.49-1.1 1.1-1.1z"}),"ExploreOutlined"),sbe=xt(g.jsx("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm-1 4 6 6v10c0 1.1-.9 2-2 2H7.99C6.89 23 6 22.1 6 21l.01-14c0-1.1.89-2 1.99-2h7zm-1 7h5.5L14 6.5V12z"}),"FileCopy"),UA=xt(g.jsx("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"MenuOutlined"),lbe=xt(g.jsx("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreHoriz"),ube=xt(g.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreVert"),cbe=xt(g.jsx("path",{d:"M14 2H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V8l-6-6zM6 20V4h7v4h5v12H6zm5-1h2v-1h1c.55 0 1-.45 1-1v-3c0-.55-.45-1-1-1h-3v-1h4v-2h-2V9h-2v1h-1c-.55 0-1 .45-1 1v3c0 .55.45 1 1 1h3v1H9v2h2v1z"}),"RequestQuoteOutlined"),dbe=xt(g.jsx("path",{d:"m19.83 7.5-2.27-2.27c.07-.42.18-.81.32-1.15.08-.18.12-.37.12-.58 0-.83-.67-1.5-1.5-1.5-1.64 0-3.09.79-4 2h-5C4.46 4 2 6.46 2 9.5S4.5 21 4.5 21H10v-2h2v2h5.5l1.68-5.59 2.82-.94V7.5h-2.17zM13 9H8V7h5v2zm3 2c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1z"}),"Savings"),fbe=xt(g.jsx("path",{d:"M19.43 12.98c.04-.32.07-.64.07-.98 0-.34-.03-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l-2-3.46c-.09-.16-.26-.25-.44-.25-.06 0-.12.01-.17.03l-2.49 1c-.52-.4-1.08-.73-1.69-.98l-.38-2.65C14.46 2.18 14.25 2 14 2h-4c-.25 0-.46.18-.49.42l-.38 2.65c-.61.25-1.17.59-1.69.98l-2.49-1c-.06-.02-.12-.03-.18-.03-.17 0-.34.09-.43.25l-2 3.46c-.13.22-.07.49.12.64l2.11 1.65c-.04.32-.07.65-.07.98 0 .33.03.66.07.98l-2.11 1.65c-.19.15-.24.42-.12.64l2 3.46c.09.16.26.25.44.25.06 0 .12-.01.17-.03l2.49-1c.52.4 1.08.73 1.69.98l.38 2.65c.03.24.24.42.49.42h4c.25 0 .46-.18.49-.42l.38-2.65c.61-.25 1.17-.59 1.69-.98l2.49 1c.06.02.12.03.18.03.17 0 .34-.09.43-.25l2-3.46c.12-.22.07-.49-.12-.64l-2.11-1.65zm-1.98-1.71c.04.31.05.52.05.73 0 .21-.02.43-.05.73l-.14 1.13.89.7 1.08.84-.7 1.21-1.27-.51-1.04-.42-.9.68c-.43.32-.84.56-1.25.73l-1.06.43-.16 1.13-.2 1.35h-1.4l-.19-1.35-.16-1.13-1.06-.43c-.43-.18-.83-.41-1.23-.71l-.91-.7-1.06.43-1.27.51-.7-1.21 1.08-.84.89-.7-.14-1.13c-.03-.31-.05-.54-.05-.74s.02-.43.05-.73l.14-1.13-.89-.7-1.08-.84.7-1.21 1.27.51 1.04.42.9-.68c.43-.32.84-.56 1.25-.73l1.06-.43.16-1.13.2-1.35h1.39l.19 1.35.16 1.13 1.06.43c.43.18.83.41 1.23.71l.91.7 1.06-.43 1.27-.51.7 1.21-1.07.85-.89.7.14 1.13zM12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm0 6c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z"}),"SettingsOutlined"),pbe=xt(g.jsx("path",{d:"M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zm10 0c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2zm-8.9-5h7.45c.75 0 1.41-.41 1.75-1.03L21 4.96 19.25 4l-3.7 7H8.53L4.27 2H1v2h2l3.6 7.59-1.35 2.44C4.52 15.37 5.48 17 7 17h12v-2H7l1.1-2zM12 2l4 4-4 4-1.41-1.41L12.17 7H8V5h4.17l-1.59-1.59L12 2z"}),"ShoppingCartCheckout"),hbe=xt(g.jsx("path",{d:"M4 9h4v11H4zm0-5h4v4H4zm6 3h4v4h-4zm6 3h4v4h-4zm0 5h4v5h-4zm-6-3h4v8h-4z"}),"StackedBarChart"),mbe=xt(g.jsx("path",{d:"M16 17.01V10h-2v7.01h-3L15 21l4-3.99h-3zM9 3 5 6.99h3V14h2V6.99h3L9 3zm7 14.01V10h-2v7.01h-3L15 21l4-3.99h-3zM9 3 5 6.99h3V14h2V6.99h3L9 3z"}),"SwapVertOutlined"),gbe=xt(g.jsx("path",{d:"M10 10.02h5V21h-5zM17 21h3c1.1 0 2-.9 2-2v-9h-5v11zm3-18H5c-1.1 0-2 .9-2 2v3h19V5c0-1.1-.9-2-2-2zM3 19c0 1.1.9 2 2 2h3V10H3v9z"}),"TableChart"),vbe=xt(g.jsx("path",{d:"M20 6h-4V4c0-1.11-.89-2-2-2h-4c-1.11 0-2 .89-2 2v2H4c-1.11 0-1.99.89-1.99 2L2 19c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zm-6 0h-4V4h4v2z"}),"Work"),Vx=ot.createContext({hideSidebar:!1,setHideSidebar:()=>{}}),ybe="/fintrack/assets/logo-b74d1d14.svg",Pl=({icon:e,onClick:t,linkTo:n,style:r,text:o})=>g.jsx(tz,{icon:e,onClick:t,component:g.jsx($oe,{to:n}),children:g.jsx(Ze,{style:r,children:o})});function bbe(){const e=Xt(),t=jn(e.palette.mode),[n,r]=m.useState(!1),{hideSidebar:o,setHideSidebar:i}=m.useContext(Vx),a=()=>{i(s=>s===!0?!s:s)};return g.jsx(Ue,{sx:{borderRight:`1px solid ${t.primary[500]} !important`,display:{xs:o?"block":"none",sm:o?"block":"none",md:o?"block":"none",lg:o?"none":"block"},"& .ps-sidebar-root":{border:"none"},"& .ps-sidebar-container":{background:`${t.primary[400]} !important`,height:"100%",minHeight:"100vh"},"& .ps-menu-icon svg":{fill:`${t.primary[100]} !important`},"& .ps-menu-root .MuiBox-root li a":{borderRadius:"15px"}},children:g.jsx(I1e,{collapsed:n,className:"hidden",width:"290px",children:g.jsxs(A1e,{menuItemStyles:{button:{"&:hover, &.active":{backgroundColor:`${t.primary[500]}`,color:"#b6c8d9"}}},children:[g.jsx(tz,{onClick:()=>r(!n),icon:n?g.jsx(UA,{}):void 0,style:{margin:"10px 0 20px 0",color:t.grey[100]},children:!n&&g.jsxs(Ue,{display:"flex",justifyContent:"space-between",alignItems:"center",ml:"15px",children:[g.jsxs(Ue,{sx:{alignItems:"center",display:"flex",flexDirection:"row"},children:[g.jsx($y,{src:ybe,sx:{height:25,width:25}}),g.jsx(Ze,{variant:"h3",color:t.grey[100],ml:.5,children:"FinTrack"})]}),g.jsx(wo,{onClick:()=>r(!n),children:g.jsx(UA,{})})]})}),g.jsxs(Ue,{paddingInline:n?void 0:"5%",children:[g.jsx(Ze,{variant:"h6",color:t.grey[300],sx:{m:"15px 0 5px 20px"},children:"Menu"}),g.jsx(Pl,{icon:g.jsx(abe,{}),onClick:a,linkTo:"/",style:{color:t.grey[100]},text:"Overview"}),g.jsx(Pl,{icon:g.jsx(ibe,{}),onClick:a,linkTo:"/budget",style:{color:t.grey[100]},text:"Budget"}),g.jsx(Pl,{icon:g.jsx(cbe,{}),onClick:a,linkTo:"/bills",style:{color:t.grey[100]},text:"Bills"}),g.jsx(Pl,{icon:g.jsx(tbe,{}),onClick:a,linkTo:"/reports",style:{color:t.grey[100]},text:"Reports & Analytics"}),g.jsx(Pl,{icon:g.jsx(mbe,{}),onClick:a,linkTo:"/debt",style:{color:t.grey[100]},text:"Debt Management"}),g.jsx(Pl,{icon:g.jsx(rbe,{}),onClick:a,linkTo:"/investments",style:{color:t.grey[100]},text:"Investments"}),g.jsx(Pl,{icon:g.jsx(Jye,{}),onClick:a,linkTo:"/networth",style:{color:t.grey[100]},text:"Net Worth"}),g.jsx(Pl,{icon:g.jsx(fbe,{}),onClick:a,linkTo:"/settings",style:{color:t.grey[100]},text:"Settings"})]})]})})})}var YM={},nz={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(nz);var _u=nz.exports,MS={};const xbe=Ree(ble);var GA;function ku(){return GA||(GA=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=xbe}(MS)),MS}var wbe=_u;Object.defineProperty(YM,"__esModule",{value:!0});var rz=YM.default=void 0,Cbe=wbe(ku()),Sbe=g,$be=(0,Cbe.default)((0,Sbe.jsx)("path",{d:"M12 9c1.65 0 3 1.35 3 3s-1.35 3-3 3-3-1.35-3-3 1.35-3 3-3m0-2c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zM2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1zm18 0h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1s.45 1 1 1zM11 2v2c0 .55.45 1 1 1s1-.45 1-1V2c0-.55-.45-1-1-1s-1 .45-1 1zm0 18v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1zM5.99 4.58c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0s.39-1.03 0-1.41L5.99 4.58zm12.37 12.37c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0 .39-.39.39-1.03 0-1.41l-1.06-1.06zm1.06-10.96c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0l1.06-1.06zM7.05 18.36c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0l1.06-1.06z"}),"LightModeOutlined");rz=YM.default=$be;var XM={},_be=_u;Object.defineProperty(XM,"__esModule",{value:!0});var oz=XM.default=void 0,kbe=_be(ku()),Pbe=g,Mbe=(0,kbe.default)((0,Pbe.jsx)("path",{d:"M9.37 5.51c-.18.64-.27 1.31-.27 1.99 0 4.08 3.32 7.4 7.4 7.4.68 0 1.35-.09 1.99-.27C17.45 17.19 14.93 19 12 19c-3.86 0-7-3.14-7-7 0-2.93 1.81-5.45 4.37-6.49zM12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9 9-4.03 9-9c0-.46-.04-.92-.1-1.36-.98 1.37-2.58 2.26-4.4 2.26-2.98 0-5.4-2.42-5.4-5.4 0-1.81.89-3.42 2.26-4.4-.44-.06-.9-.1-1.36-.1z"}),"DarkModeOutlined");oz=XM.default=Mbe;var QM={},Tbe=_u;Object.defineProperty(QM,"__esModule",{value:!0});var iz=QM.default=void 0,Ebe=Tbe(ku()),Ibe=g,Rbe=(0,Ebe.default)((0,Ibe.jsx)("path",{d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.9 2 2 2zm6-6v-5c0-3.07-1.63-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.64 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2zm-2 1H8v-6c0-2.48 1.51-4.5 4-4.5s4 2.02 4 4.5v6z"}),"NotificationsOutlined");iz=QM.default=Rbe;var ZM={},Obe=_u;Object.defineProperty(ZM,"__esModule",{value:!0});var az=ZM.default=void 0,Abe=Obe(ku()),Fbe=g,Lbe=(0,Abe.default)((0,Fbe.jsx)("path",{d:"M12 6c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m0 10c2.7 0 5.8 1.29 6 2H6c.23-.72 3.31-2 6-2m0-12C9.79 4 8 5.79 8 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm0 10c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"PersonOutlined");az=ZM.default=Lbe;var JM={},Dbe=_u;Object.defineProperty(JM,"__esModule",{value:!0});var sz=JM.default=void 0,jbe=Dbe(ku()),Nbe=g,zbe=(0,jbe.default)((0,Nbe.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),"Search");sz=JM.default=zbe;var e5={},Bbe=_u;Object.defineProperty(e5,"__esModule",{value:!0});var lz=e5.default=void 0,Hbe=Bbe(ku()),Wbe=g,Vbe=(0,Hbe.default)((0,Wbe.jsx)("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu");lz=e5.default=Vbe;function Ube(){const e=Xt(),t=jn(e.palette.mode),n=m.useContext(Ij),{setHideSidebar:r}=m.useContext(Vx),o=()=>{r(i=>!i)};return g.jsx(Ue,{display:"flex",justifyContent:"space-between",p:2,width:"100%",children:g.jsx(vue,{position:"static",children:g.jsxs(_N,{sx:{backgroundColor:t.primary[400],display:"flex",justifyContent:"space-between"},children:[g.jsx(wo,{sx:{display:{md:"block",lg:"block",xl:"none"}},size:"large",edge:"start","aria-label":"menu",onClick:o,children:g.jsx(lz,{})}),g.jsxs(Ue,{sx:{backgroundColor:t.primary[500],borderRadius:"3px",display:"flex"},children:[g.jsx(sd,{sx:{ml:2,flex:1},placeholder:"Search"}),g.jsx(wo,{type:"button",sx:{p:1},children:g.jsx(sz,{})})]}),g.jsxs(Ue,{sx:{display:"flex"},children:[g.jsx(wo,{onClick:n.toggleColorMode,children:e.palette.mode==="dark"?g.jsx(oz,{}):g.jsx(rz,{})}),g.jsx(wo,{children:g.jsx(iz,{})}),g.jsx(wo,{children:g.jsx(az,{})})]})]})})})}function Gbe(){const{setHideSidebar:e}=m.useContext(Vx),t=()=>{e(n=>n===!0?!n:n)};return g.jsxs("main",{children:[g.jsx(Ube,{}),g.jsx(Ue,{onClick:t,children:g.jsx(doe,{})})]})}function qbe(){const{theme:e,toggleColorMode:t}=ple("light"),[n,r]=m.useState(!1);return g.jsx(Ij.Provider,{value:{toggleColorMode:t},children:g.jsxs(Gie,{theme:e,children:[g.jsx(Npe,{}),g.jsx(Ue,{className:"app",children:g.jsxs(Vx.Provider,{value:{hideSidebar:n,setHideSidebar:r},children:[g.jsx(bbe,{}),g.jsx(Gbe,{})]})})]})})}const mr=({title:e,content:t,height:n=400,padding:r=1})=>{const o=Xt(),i=jn(o.palette.mode);return g.jsxs(Gfe,{sx:{background:i.primary[400],height:`${n}px`,padding:`${r}rem`,margin:"0 auto",width:"100%"},children:[g.jsx(spe,{title:g.jsx(Ze,{variant:"h5",fontWeight:600,children:e})}),g.jsx(_i,{sx:{"& .MuiDataGrid-root":{border:"none"},"& .MuiDataGrid-columnHeaders":{backgroundColor:i.blueAccent[800],borderBottom:"none"},boxSizing:"border-box",height:"90%"},children:t})]})};var Kbe=Object.defineProperty,Ybe=(e,t)=>{for(var n in t)Kbe(e,n,{get:t[n],enumerable:!0})},ia={};Ybe(ia,{assign:()=>Zbe,colors:()=>ou,createStringInterpolator:()=>s5,skipAnimation:()=>mz,to:()=>hz,willAdvance:()=>l5});var t5=d0(),Ht=e=>c0(e,t5),n5=d0();Ht.write=e=>c0(e,n5);var Ux=d0();Ht.onStart=e=>c0(e,Ux);var r5=d0();Ht.onFrame=e=>c0(e,r5);var o5=d0();Ht.onFinish=e=>c0(e,o5);var Wf=[];Ht.setTimeout=(e,t)=>{const n=Ht.now()+t,r=()=>{const i=Wf.findIndex(a=>a.cancel==r);~i&&Wf.splice(i,1),Vl-=~i?1:0},o={time:n,handler:e,cancel:r};return Wf.splice(uz(n),0,o),Vl+=1,cz(),o};var uz=e=>~(~Wf.findIndex(t=>t.time>e)||~Wf.length);Ht.cancel=e=>{Ux.delete(e),r5.delete(e),o5.delete(e),t5.delete(e),n5.delete(e)};Ht.sync=e=>{W_=!0,Ht.batchedUpdates(e),W_=!1};Ht.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...o){t=o,Ht.onStart(n)}return r.handler=e,r.cancel=()=>{Ux.delete(n),t=null},r};var i5=typeof window<"u"?window.requestAnimationFrame:()=>{};Ht.use=e=>i5=e;Ht.now=typeof performance<"u"?()=>performance.now():Date.now;Ht.batchedUpdates=e=>e();Ht.catch=console.error;Ht.frameLoop="always";Ht.advance=()=>{Ht.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):fz()};var Wl=-1,Vl=0,W_=!1;function c0(e,t){W_?(t.delete(e),e(0)):(t.add(e),cz())}function cz(){Wl<0&&(Wl=0,Ht.frameLoop!=="demand"&&i5(dz))}function Xbe(){Wl=-1}function dz(){~Wl&&(i5(dz),Ht.batchedUpdates(fz))}function fz(){const e=Wl;Wl=Ht.now();const t=uz(Wl);if(t&&(pz(Wf.splice(0,t),n=>n.handler()),Vl-=t),!Vl){Xbe();return}Ux.flush(),t5.flush(e?Math.min(64,Wl-e):16.667),r5.flush(),n5.flush(),o5.flush()}function d0(){let e=new Set,t=e;return{add(n){Vl+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return Vl-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,Vl-=t.size,pz(t,r=>r(n)&&e.add(r)),Vl+=e.size,t=e)}}}function pz(e,t){e.forEach(n=>{try{t(n)}catch(r){Ht.catch(r)}})}function V_(){}var Qbe=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Ye={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 Hs(e,t){if(Ye.arr(e)){if(!Ye.arr(t)||e.length!==t.length)return!1;for(let n=0;ne.forEach(t);function hs(e,t,n){if(Ye.arr(e)){for(let r=0;rYe.und(e)?[]:Ye.arr(e)?e:[e];function Pm(e,t){if(e.size){const n=Array.from(e);e.clear(),Dt(n,t)}}var sm=(e,...t)=>Pm(e,n=>n(...t)),a5=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),s5,hz,ou=null,mz=!1,l5=V_,Zbe=e=>{e.to&&(hz=e.to),e.now&&(Ht.now=e.now),e.colors!==void 0&&(ou=e.colors),e.skipAnimation!=null&&(mz=e.skipAnimation),e.createStringInterpolator&&(s5=e.createStringInterpolator),e.requestAnimationFrame&&Ht.use(e.requestAnimationFrame),e.batchedUpdates&&(Ht.batchedUpdates=e.batchedUpdates),e.willAdvance&&(l5=e.willAdvance),e.frameLoop&&(Ht.frameLoop=e.frameLoop)},Mm=new Set,Vi=[],TS=[],Ry=0,Gx={get idle(){return!Mm.size&&!Vi.length},start(e){Ry>e.priority?(Mm.add(e),Ht.onStart(Jbe)):(gz(e),Ht(U_))},advance:U_,sort(e){if(Ry)Ht.onFrame(()=>Gx.sort(e));else{const t=Vi.indexOf(e);~t&&(Vi.splice(t,1),vz(e))}},clear(){Vi=[],Mm.clear()}};function Jbe(){Mm.forEach(gz),Mm.clear(),Ht(U_)}function gz(e){Vi.includes(e)||vz(e)}function vz(e){Vi.splice(exe(Vi,t=>t.priority>e.priority),0,e)}function U_(e){const t=TS;for(let n=0;n0}function exe(e,t){const n=e.findIndex(t);return n<0?e.length:n}var txe=(e,t,n)=>Math.min(Math.max(n,e),t),nxe={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},Sa="[-+]?\\d*\\.?\\d+",Oy=Sa+"%";function qx(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var rxe=new RegExp("rgb"+qx(Sa,Sa,Sa)),oxe=new RegExp("rgba"+qx(Sa,Sa,Sa,Sa)),ixe=new RegExp("hsl"+qx(Sa,Oy,Oy)),axe=new RegExp("hsla"+qx(Sa,Oy,Oy,Sa)),sxe=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,lxe=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,uxe=/^#([0-9a-fA-F]{6})$/,cxe=/^#([0-9a-fA-F]{8})$/;function dxe(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=uxe.exec(e))?parseInt(t[1]+"ff",16)>>>0:ou&&ou[e]!==void 0?ou[e]:(t=rxe.exec(e))?(Zd(t[1])<<24|Zd(t[2])<<16|Zd(t[3])<<8|255)>>>0:(t=oxe.exec(e))?(Zd(t[1])<<24|Zd(t[2])<<16|Zd(t[3])<<8|YA(t[4]))>>>0:(t=sxe.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=cxe.exec(e))?parseInt(t[1],16)>>>0:(t=lxe.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=ixe.exec(e))?(qA(KA(t[1]),Wv(t[2]),Wv(t[3]))|255)>>>0:(t=axe.exec(e))?(qA(KA(t[1]),Wv(t[2]),Wv(t[3]))|YA(t[4]))>>>0:null}function ES(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 qA(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,i=ES(o,r,e+1/3),a=ES(o,r,e),s=ES(o,r,e-1/3);return Math.round(i*255)<<24|Math.round(a*255)<<16|Math.round(s*255)<<8}function Zd(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function KA(e){return(parseFloat(e)%360+360)%360/360}function YA(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function Wv(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function XA(e){let t=dxe(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 hg=(e,t,n)=>{if(Ye.fun(e))return e;if(Ye.arr(e))return hg({range:e,output:t,extrapolate:n});if(Ye.str(e.output[0]))return s5(e);const r=e,o=r.output,i=r.range||[0,1],a=r.extrapolateLeft||r.extrapolate||"extend",s=r.extrapolateRight||r.extrapolate||"extend",l=r.easing||(u=>u);return u=>{const c=pxe(u,i);return fxe(u,i[c],i[c+1],o[c],o[c+1],l,a,s,r.map)}};function fxe(e,t,n,r,o,i,a,s,l){let u=l?l(e):e;if(un){if(s==="identity")return u;s==="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 pxe(e,t){for(var n=1;n=e);++n);return n-1}var hxe=(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 txe(0,1,o/e)},Ay=1.70158,Vv=Ay*1.525,QA=Ay+1,ZA=2*Math.PI/3,JA=2*Math.PI/4.5,Uv=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,mxe={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=>QA*e*e*e-Ay*e*e,easeOutBack:e=>1+QA*Math.pow(e-1,3)+Ay*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*((Vv+1)*2*e-Vv)/2:(Math.pow(2*e-2,2)*((Vv+1)*(e*2-2)+Vv)+2)/2,easeInElastic:e=>e===0?0:e===1?1:-Math.pow(2,10*e-10)*Math.sin((e*10-10.75)*ZA),easeOutElastic:e=>e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e*10-.75)*ZA)+1,easeInOutElastic:e=>e===0?0:e===1?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*JA))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*JA)/2+1,easeInBounce:e=>1-Uv(1-e),easeOutBounce:Uv,easeInOutBounce:e=>e<.5?(1-Uv(1-2*e))/2:(1+Uv(2*e-1))/2,steps:hxe},mg=Symbol.for("FluidValue.get"),gp=Symbol.for("FluidValue.observers"),Wi=e=>!!(e&&e[mg]),Lo=e=>e&&e[mg]?e[mg]():e,e6=e=>e[gp]||null;function gxe(e,t){e.eventObserved?e.eventObserved(t):e(t)}function gg(e,t){const n=e[gp];n&&n.forEach(r=>{gxe(r,t)})}var yz=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");vxe(this,e)}},vxe=(e,t)=>bz(e,mg,t);function jp(e,t){if(e[mg]){let n=e[gp];n||bz(e,gp,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function vg(e,t){const n=e[gp];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[gp]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var bz=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),I1=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,yxe=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,t6=new RegExp(`(${I1.source})(%|[a-z]+)`,"i"),bxe=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Kx=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,xz=e=>{const[t,n]=xxe(e);if(!t||a5())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&&Kx.test(n))return xz(n);if(n)return n}return e},xxe=e=>{const t=Kx.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},IS,wxe=(e,t,n,r,o)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${o})`,wz=e=>{IS||(IS=ou?new RegExp(`(${Object.keys(ou).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(i=>Lo(i).replace(Kx,xz).replace(yxe,XA).replace(IS,XA)),n=t.map(i=>i.match(I1).map(Number)),o=n[0].map((i,a)=>n.map(s=>{if(!(a in s))throw Error('The arity of each "output" value must be equal');return s[a]})).map(i=>hg({...e,output:i}));return i=>{var l;const a=!t6.test(t[0])&&((l=t.find(u=>t6.test(u)))==null?void 0:l.replace(I1,""));let s=0;return t[0].replace(I1,()=>`${o[s++](i)}${a||""}`).replace(bxe,wxe)}},u5="react-spring: ",Cz=e=>{const t=e;let n=!1;if(typeof t!="function")throw new TypeError(`${u5}once requires a function parameter`);return(...r)=>{n||(t(...r),n=!0)}},Cxe=Cz(console.warn);function Sxe(){Cxe(`${u5}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var $xe=Cz(console.warn);function _xe(){$xe(`${u5}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 Yx(e){return Ye.str(e)&&(e[0]=="#"||/\d/.test(e)||!a5()&&Kx.test(e)||e in(ou||{}))}var Ul=a5()?m.useEffect:m.useLayoutEffect,kxe=()=>{const e=m.useRef(!1);return Ul(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function c5(){const e=m.useState()[1],t=kxe();return()=>{t.current&&e(Math.random())}}function Pxe(e,t){const[n]=m.useState(()=>({inputs:t,result:e()})),r=m.useRef(),o=r.current;let i=o;return i?t&&i.inputs&&Mxe(t,i.inputs)||(i={inputs:t,result:e()}):i=n,m.useEffect(()=>{r.current=i,o==n&&(n.inputs=n.result=void 0)},[i]),i.result}function Mxe(e,t){if(e.length!==t.length)return!1;for(let n=0;nm.useEffect(e,Txe),Txe=[];function G_(e){const t=m.useRef();return m.useEffect(()=>{t.current=e}),t.current}var yg=Symbol.for("Animated:node"),Exe=e=>!!e&&e[yg]===e,Ha=e=>e&&e[yg],f5=(e,t)=>Qbe(e,yg,t),Xx=e=>e&&e[yg]&&e[yg].getPayload(),Sz=class{constructor(){f5(this,this)}getPayload(){return this.payload||[]}},f0=class extends Sz{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,Ye.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new f0(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return Ye.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,Ye.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},bg=class extends f0{constructor(e){super(0),this._string=null,this._toString=hg({output:[e,e]})}static create(e){return new bg(e)}getValue(){const e=this._string;return e??(this._string=this._toString(this._value))}setValue(e){if(Ye.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=hg({output:[this.getValue(),e]})),this._value=0,super.reset()}},Fy={dependencies:null},Qx=class extends Sz{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return hs(this.source,(n,r)=>{Exe(n)?t[r]=n.getValue(e):Wi(n)?t[r]=Lo(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&Dt(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return hs(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){Fy.dependencies&&Wi(e)&&Fy.dependencies.add(e);const t=Xx(e);t&&Dt(t,n=>this.add(n))}},$z=class extends Qx{constructor(e){super(e)}static create(e){return new $z(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(Ixe)),!0)}};function Ixe(e){return(Yx(e)?bg:f0).create(e)}function q_(e){const t=Ha(e);return t?t.constructor:Ye.arr(e)?$z:Yx(e)?bg:f0}var n6=(e,t)=>{const n=!Ye.fun(e)||e.prototype&&e.prototype.isReactComponent;return m.forwardRef((r,o)=>{const i=m.useRef(null),a=n&&m.useCallback(v=>{i.current=Axe(o,v)},[o]),[s,l]=Oxe(r,t),u=c5(),c=()=>{const v=i.current;if(n&&!v)return;(v?t.applyAnimatedValues(v,s.getValue(!0)):!1)===!1&&u()},f=new Rxe(c,l),p=m.useRef();Ul(()=>(p.current=f,Dt(l,v=>jp(v,f)),()=>{p.current&&(Dt(p.current.deps,v=>vg(v,p.current)),Ht.cancel(p.current.update))})),m.useEffect(c,[]),d5(()=>()=>{const v=p.current;Dt(v.deps,b=>vg(b,v))});const y=t.getComponentProps(s.getValue());return m.createElement(e,{...y,ref:a})})},Rxe=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&Ht.write(this.update)}};function Oxe(e,t){const n=new Set;return Fy.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new Qx(e),Fy.dependencies=null,[e,n]}function Axe(e,t){return e&&(Ye.fun(e)?e(t):e.current=t),t}var r6=Symbol.for("AnimatedComponent"),Fxe=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=o=>new Qx(o),getComponentProps:r=o=>o}={})=>{const o={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},i=a=>{const s=o6(a)||"Anonymous";return Ye.str(a)?a=i[a]||(i[a]=n6(a,o)):a=a[r6]||(a[r6]=n6(a,o)),a.displayName=`Animated(${s})`,a};return hs(e,(a,s)=>{Ye.arr(e)&&(s=o6(a)),i[s]=i(a)}),{animated:i}},o6=e=>Ye.str(e)?e:e&&Ye.str(e.displayName)?e.displayName:Ye.fun(e)&&e.name||null;function Do(e,...t){return Ye.fun(e)?e(...t):e}var Tm=(e,t)=>e===!0||!!(t&&e&&(Ye.fun(e)?e(t):So(e).includes(t))),_z=(e,t)=>Ye.obj(e)?t&&e[t]:e,kz=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,Lxe=e=>e,Zx=(e,t=Lxe)=>{let n=Dxe;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);Ye.und(i)||(r[o]=i)}return r},Dxe=["config","onProps","onStart","onChange","onPause","onResume","onRest"],jxe={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 Nxe(e){const t={};let n=0;if(hs(e,(r,o)=>{jxe[o]||(t[o]=r,n++)}),n)return t}function p5(e){const t=Nxe(e);if(t){const n={to:t};return hs(e,(r,o)=>o in t||(n[o]=r)),n}return{...e}}function xg(e){return e=Lo(e),Ye.arr(e)?e.map(xg):Yx(e)?ia.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function Pz(e){for(const t in e)return!0;return!1}function K_(e){return Ye.fun(e)||Ye.arr(e)&&Ye.obj(e[0])}function Y_(e,t){var n;(n=e.ref)==null||n.delete(e),t==null||t.delete(e)}function Mz(e,t){var n;t&&e.ref!==t&&((n=e.ref)==null||n.delete(e),t.add(e),e.ref=t)}var h5={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}},X_={...h5.default,mass:1,damping:1,easing:mxe.linear,clamp:!1},zxe=class{constructor(){this.velocity=0,Object.assign(this,X_)}};function Bxe(e,t,n){n&&(n={...n},i6(n,t),t={...n,...t}),i6(e,t),Object.assign(e,t);for(const a in X_)e[a]==null&&(e[a]=X_[a]);let{frequency:r,damping:o}=e;const{mass:i}=e;return Ye.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 i6(e,t){if(!Ye.und(t.decay))e.duration=void 0;else{const n=!Ye.und(t.tension)||!Ye.und(t.friction);(n||!Ye.und(t.frequency)||!Ye.und(t.damping)||!Ye.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}var a6=[],Hxe=class{constructor(){this.changed=!1,this.values=a6,this.toValues=null,this.fromValues=a6,this.config=new zxe,this.immediate=!1}};function Tz(e,{key:t,props:n,defaultProps:r,state:o,actions:i}){return new Promise((a,s)=>{let l,u,c=Tm(n.cancel??(r==null?void 0:r.cancel),t);if(c)y();else{Ye.und(n.pause)||(o.paused=Tm(n.pause,t));let v=r==null?void 0:r.pause;v!==!0&&(v=o.paused||Tm(v,t)),l=Do(n.delay||0,t),v?(o.resumeQueue.add(p),i.pause()):(i.resume(),p())}function f(){o.resumeQueue.add(p),o.timeouts.delete(u),u.cancel(),l=u.time-Ht.now()}function p(){l>0&&!ia.skipAnimation?(o.delayed=!0,u=Ht.setTimeout(y,l),o.pauseQueue.add(f),o.timeouts.add(u)):y()}function y(){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},a)}catch(v){s(v)}}})}var m5=(e,t)=>t.length==1?t[0]:t.some(n=>n.cancelled)?Vf(e.get()):t.every(n=>n.noop)?Ez(e.get()):xa(e.get(),t.every(n=>n.finished)),Ez=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),xa=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),Vf=e=>({value:e,cancelled:!0,finished:!1});function Iz(e,t,n,r){const{callId:o,parentId:i,onRest:a}=t,{asyncTo:s,promise:l}=n;return!i&&e===s&&!t.reset?l:n.promise=(async()=>{n.asyncId=o,n.asyncTo=e;const u=Zx(t,(C,x)=>x==="onRest"?void 0:C);let c,f;const p=new Promise((C,x)=>(c=C,f=x)),y=C=>{const x=o<=(n.cancelId||0)&&Vf(r)||o!==n.asyncId&&xa(r,!1);if(x)throw C.result=x,f(C),C},v=(C,x)=>{const w=new s6,S=new l6;return(async()=>{if(ia.skipAnimation)throw wg(n),S.result=xa(r,!1),f(S),S;y(w);const $=Ye.obj(C)?{...C}:{...x,to:C};$.parentId=o,hs(u,(k,M)=>{Ye.und($[M])&&($[M]=k)});const T=await r.start($);return y(w),n.paused&&await new Promise(k=>{n.resumeQueue.add(k)}),T})()};let b;if(ia.skipAnimation)return wg(n),xa(r,!1);try{let C;Ye.arr(e)?C=(async x=>{for(const w of x)await v(w)})(e):C=Promise.resolve(e(v,r.stop.bind(r))),await Promise.all([C.then(c),p]),b=xa(r.get(),!0,!1)}catch(C){if(C instanceof s6)b=C.result;else if(C instanceof l6)b=C.result;else throw C}finally{o==n.asyncId&&(n.asyncId=i,n.asyncTo=i?s:void 0,n.promise=i?l:void 0)}return Ye.fun(a)&&Ht.batchedUpdates(()=>{a(b,r,r.item)}),b})()}function wg(e,t){Pm(e.timeouts,n=>n.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var s6=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.")}},l6=class extends Error{constructor(){super("SkipAnimationSignal")}},Q_=e=>e instanceof g5,Wxe=1,g5=class extends yz{constructor(){super(...arguments),this.id=Wxe++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=Ha(this);return e&&e.getValue()}to(...e){return ia.to(this,e)}interpolate(...e){return Sxe(),ia.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){gg(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||Gx.sort(this),gg(this,{type:"priority",parent:this,priority:e})}},Wc=Symbol.for("SpringPhase"),Rz=1,Z_=2,J_=4,RS=e=>(e[Wc]&Rz)>0,Ml=e=>(e[Wc]&Z_)>0,Wh=e=>(e[Wc]&J_)>0,u6=(e,t)=>t?e[Wc]|=Z_|Rz:e[Wc]&=~Z_,c6=(e,t)=>t?e[Wc]|=J_:e[Wc]&=~J_,Vxe=class extends g5{constructor(e,t){if(super(),this.animation=new Hxe,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,!Ye.und(e)||!Ye.und(t)){const n=Ye.obj(e)?{...e}:{...t,from:e};Ye.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(Ml(this)||this._state.asyncTo)||Wh(this)}get goal(){return Lo(this.animation.to)}get velocity(){const e=Ha(this);return e instanceof f0?e.lastVelocity||0:e.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return RS(this)}get isAnimating(){return Ml(this)}get isPaused(){return Wh(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,a=Xx(r.to);!a&&Wi(r.to)&&(o=So(Lo(r.to))),r.values.forEach((u,c)=>{if(u.done)return;const f=u.constructor==bg?1:a?a[c].lastPosition:o[c];let p=r.immediate,y=f;if(!p){if(y=u.lastPosition,i.tension<=0){u.done=!0;return}let v=u.elapsedTime+=e;const b=r.fromValues[c],C=u.v0!=null?u.v0:u.v0=Ye.arr(i.velocity)?i.velocity[c]:i.velocity;let x;const w=i.precision||(b==f?.005:Math.min(1,Math.abs(f-b)*.001));if(Ye.und(i.duration))if(i.decay){const S=i.decay===!0?.998:i.decay,$=Math.exp(-(1-S)*v);y=b+C/(1-S)*(1-$),p=Math.abs(u.lastPosition-y)<=w,x=C*$}else{x=u.lastVelocity==null?C:u.lastVelocity;const S=i.restVelocity||w/10,$=i.clamp?0:i.bounce,T=!Ye.und($),k=b==f?u.v0>0:bS,!(!M&&(p=Math.abs(f-y)<=w,p)));++A){T&&(I=y==f||y>f==k,I&&(x=-x*$,y=f));const z=-i.tension*1e-6*(y-f),L=-i.friction*.001*x,O=(z+L)/i.mass;x=x+O*N,y=y+x*N}}else{let S=1;i.duration>0&&(this._memoizedDuration!==i.duration&&(this._memoizedDuration=i.duration,u.durationProgress>0&&(u.elapsedTime=i.duration*u.durationProgress,v=u.elapsedTime+=e)),S=(i.progress||0)+v/this._memoizedDuration,S=S>1?1:S<0?0:S,u.durationProgress=S),y=b+i.easing(S)*(f-b),x=(y-u.lastPosition)/e,p=S==1}u.lastVelocity=x,Number.isNaN(y)&&(console.warn("Got NaN while animating:",this),p=!0)}a&&!a[c].done&&(p=!1),p?u.done=!0:t=!1,u.setValue(y,i.round)&&(n=!0)});const s=Ha(this),l=s.getValue();if(t){const u=Lo(r.to);(l!==u||n)&&!i.decay?(s.setValue(u),this._onChange(u)):n&&i.decay&&this._onChange(l),this._stop()}else n&&this._onChange(l)}set(e){return Ht.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(Ml(this)){const{to:e,config:t}=this.animation;Ht.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 Ye.und(e)?(n=this.queue||[],this.queue=[]):n=[Ye.obj(e)?e:{...t,to:e}],Promise.all(n.map(r=>this._update(r))).then(r=>m5(this,r))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),wg(this._state,e&&this._lastCallId),Ht.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=Ye.obj(n)?n[t]:n,(n==null||K_(n))&&(n=void 0),r=Ye.obj(r)?r[t]:r,r==null&&(r=void 0);const o={to:n,from:r};return RS(this)||(e.reverse&&([n,r]=[r,n]),r=Lo(r),Ye.und(r)?Ha(this)||this._set(n):this._set(r)),o}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,Zx(e,(a,s)=>/^on/.test(s)?_z(a,n):a)),f6(this,e,"onProps"),Uh(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 Tz(++this._lastCallId,{key:n,props:e,defaultProps:r,state:i,actions:{pause:()=>{Wh(this)||(c6(this,!0),sm(i.pauseQueue),Uh(this,"onPause",xa(this,Vh(this,this.animation.to)),this))},resume:()=>{Wh(this)&&(c6(this,!1),Ml(this)&&this._resume(),sm(i.resumeQueue),Uh(this,"onResume",xa(this,Vh(this,this.animation.to)),this))},start:this._merge.bind(this,o)}}).then(a=>{if(e.loop&&a.finished&&!(t&&a.noop)){const s=Oz(e);if(s)return this._update(s,!0)}return a})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(Vf(this));const r=!Ye.und(e.to),o=!Ye.und(e.from);if(r||o)if(t.callId>this._lastToId)this._lastToId=t.callId;else return n(Vf(this));const{key:i,defaultProps:a,animation:s}=this,{to:l,from:u}=s;let{to:c=l,from:f=u}=e;o&&!r&&(!t.default||Ye.und(c))&&(c=f),t.reverse&&([c,f]=[f,c]);const p=!Hs(f,u);p&&(s.from=f),f=Lo(f);const y=!Hs(c,l);y&&this._focus(c);const v=K_(t.to),{config:b}=s,{decay:C,velocity:x}=b;(r||o)&&(b.velocity=0),t.config&&!v&&Bxe(b,Do(t.config,i),t.config!==a.config?Do(a.config,i):void 0);let w=Ha(this);if(!w||Ye.und(c))return n(xa(this,!0));const S=Ye.und(t.reset)?o&&!t.default:!Ye.und(f)&&Tm(t.reset,i),$=S?f:this.get(),T=xg(c),k=Ye.num(T)||Ye.arr(T)||Yx(T),M=!v&&(!k||Tm(a.immediate||t.immediate,i));if(y){const A=q_(c);if(A!==w.constructor)if(M)w=this._set(T);else throw Error(`Cannot animate between ${w.constructor.name} and ${A.name}, as the "to" prop suggests`)}const I=w.constructor;let N=Wi(c),E=!1;if(!N){const A=S||!RS(this)&&p;(y||A)&&(E=Hs(xg($),T),N=!E),(!Hs(s.immediate,M)&&!M||!Hs(b.decay,C)||!Hs(b.velocity,x))&&(N=!0)}if(E&&Ml(this)&&(s.changed&&!S?N=!0:N||this._stop(l)),!v&&((N||Wi(l))&&(s.values=w.getPayload(),s.toValues=Wi(c)?null:I==bg?[1]:So(T)),s.immediate!=M&&(s.immediate=M,!M&&!S&&this._set(l)),N)){const{onRest:A}=s;Dt(Gxe,L=>f6(this,t,L));const z=xa(this,Vh(this,l));sm(this._pendingCalls,z),this._pendingCalls.add(n),s.changed&&Ht.batchedUpdates(()=>{var L;s.changed=!S,A==null||A(z,this),S?Do(a.onRest,z):(L=s.onStart)==null||L.call(s,z,this)})}S&&this._set($),v?n(Iz(t.to,t,this._state,this)):N?this._start():Ml(this)&&!y?this._pendingCalls.add(n):n(Ez($))}_focus(e){const t=this.animation;e!==t.to&&(e6(this)&&this._detach(),t.to=e,e6(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;Wi(t)&&(jp(t,this),Q_(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;Wi(e)&&vg(e,this)}_set(e,t=!0){const n=Lo(e);if(!Ye.und(n)){const r=Ha(this);if(!r||!Hs(n,r.getValue())){const o=q_(n);!r||r.constructor!=o?f5(this,o.create(n)):r.setValue(n),r&&Ht.batchedUpdates(()=>{this._onChange(n,t)})}}return Ha(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,Uh(this,"onStart",xa(this,Vh(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),Do(this.animation.onChange,e,this)),Do(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;Ha(this).reset(Lo(e.to)),e.immediate||(e.fromValues=e.values.map(t=>t.lastPosition)),Ml(this)||(u6(this,!0),Wh(this)||this._resume())}_resume(){ia.skipAnimation?this.finish():Gx.start(this)}_stop(e,t){if(Ml(this)){u6(this,!1);const n=this.animation;Dt(n.values,o=>{o.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),gg(this,{type:"idle",parent:this});const r=t?Vf(this.get()):xa(this.get(),Vh(this,e??n.to));sm(this._pendingCalls,r),n.changed&&(n.changed=!1,Uh(this,"onRest",r,this))}}};function Vh(e,t){const n=xg(t),r=xg(e.get());return Hs(r,n)}function Oz(e,t=e.loop,n=e.to){const r=Do(t);if(r){const o=r!==!0&&p5(r),i=(o||e).reverse,a=!o||o.reset;return Cg({...e,loop:t,default:!1,pause:void 0,to:!i||K_(n)?n:void 0,from:a?e.from:void 0,reset:a,...o})}}function Cg(e){const{to:t,from:n}=e=p5(e),r=new Set;return Ye.obj(t)&&d6(t,r),Ye.obj(n)&&d6(n,r),e.keys=r.size?Array.from(r):null,e}function Uxe(e){const t=Cg(e);return Ye.und(t.default)&&(t.default=Zx(t)),t}function d6(e,t){hs(e,(n,r)=>n!=null&&t.add(r))}var Gxe=["onStart","onRest","onChange","onPause","onResume"];function f6(e,t,n){e.animation[n]=t[n]!==kz(t,n)?_z(t[n],e.key):void 0}function Uh(e,t,...n){var r,o,i,a;(o=(r=e.animation)[t])==null||o.call(r,...n),(a=(i=e.defaultProps)[t])==null||a.call(i,...n)}var qxe=["onStart","onChange","onRest"],Kxe=1,Az=class{constructor(e,t){this.id=Kxe++,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];Ye.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(Cg(e)),this}start(e){let{queue:t}=this;return e?t=So(e).map(Cg):this.queue=[],this._flush?this._flush(this,t):(Nz(this,t),ek(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;Dt(So(t),r=>n[r].stop(!!e))}else wg(this._state,this._lastAsyncId),this.each(n=>n.stop(!!e));return this}pause(e){if(Ye.und(e))this.start({pause:!0});else{const t=this.springs;Dt(So(e),n=>t[n].pause())}return this}resume(e){if(Ye.und(e))this.start({pause:!1});else{const t=this.springs;Dt(So(e),n=>t[n].resume())}return this}each(e){hs(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,Pm(e,([s,l])=>{l.value=this.get(),s(l,this,this._item)}));const i=!r&&this._started,a=o||i&&n.size?this.get():null;o&&t.size&&Pm(t,([s,l])=>{l.value=a,s(l,this,this._item)}),i&&(this._started=!1,Pm(n,([s,l])=>{l.value=a,s(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;Ht.onFrame(this._onFrame)}};function ek(e,t){return Promise.all(t.map(n=>Fz(e,n))).then(n=>m5(e,n))}async function Fz(e,t,n){const{keys:r,to:o,from:i,loop:a,onRest:s,onResolve:l}=t,u=Ye.obj(t.default)&&t.default;a&&(t.loop=!1),o===!1&&(t.to=null),i===!1&&(t.from=null);const c=Ye.arr(o)||Ye.fun(o)?o:void 0;c?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):Dt(qxe,b=>{const C=t[b];if(Ye.fun(C)){const x=e._events[b];t[b]=({finished:w,cancelled:S})=>{const $=x.get(C);$?(w||($.finished=!1),S&&($.cancelled=!0)):x.set(C,{value:null,finished:w||!1,cancelled:S||!1})},u&&(u[b]=t[b])}});const f=e._state;t.pause===!f.paused?(f.paused=t.pause,sm(t.pause?f.pauseQueue:f.resumeQueue)):f.paused&&(t.pause=!0);const p=(r||Object.keys(e.springs)).map(b=>e.springs[b].start(t)),y=t.cancel===!0||kz(t,"cancel")===!0;(c||y&&f.asyncId)&&p.push(Tz(++e._lastAsyncId,{props:t,state:f,actions:{pause:V_,resume:V_,start(b,C){y?(wg(f,e._lastAsyncId),C(Vf(e))):(b.onRest=s,C(Iz(c,b,f,e)))}}})),f.paused&&await new Promise(b=>{f.resumeQueue.add(b)});const v=m5(e,await Promise.all(p));if(a&&v.finished&&!(n&&v.noop)){const b=Oz(t,a,o);if(b)return Nz(e,[b]),Fz(e,b,!0)}return l&&Ht.batchedUpdates(()=>l(v,e,e.item)),v}function tk(e,t){const n={...e.springs};return t&&Dt(So(t),r=>{Ye.und(r.keys)&&(r=Cg(r)),Ye.obj(r.to)||(r={...r,to:void 0}),jz(n,r,o=>Dz(o))}),Lz(e,n),n}function Lz(e,t){hs(t,(n,r)=>{e.springs[r]||(e.springs[r]=n,jp(n,e))})}function Dz(e,t){const n=new Vxe;return n.key=e,t&&jp(n,t),n}function jz(e,t,n){t.keys&&Dt(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function Nz(e,t){Dt(t,n=>{jz(e.springs,n,r=>Dz(r,e))})}var p0=({children:e,...t})=>{const n=m.useContext(Ly),r=t.pause||!!n.pause,o=t.immediate||!!n.immediate;t=Pxe(()=>({pause:r,immediate:o}),[r,o]);const{Provider:i}=Ly;return m.createElement(i,{value:t},e)},Ly=Yxe(p0,{});p0.Provider=Ly.Provider;p0.Consumer=Ly.Consumer;function Yxe(e,t){return Object.assign(e,m.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}var zz=()=>{const e=[],t=function(r){_xe();const o=[];return Dt(e,(i,a)=>{if(Ye.und(r))o.push(i.start());else{const s=n(r,i,a);s&&o.push(i.start(s))}}),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 Dt(e,r=>r.pause(...arguments)),this},t.resume=function(){return Dt(e,r=>r.resume(...arguments)),this},t.set=function(r){Dt(e,(o,i)=>{const a=Ye.fun(r)?r(i,o):r;a&&o.set(a)})},t.start=function(r){const o=[];return Dt(e,(i,a)=>{if(Ye.und(r))o.push(i.start());else{const s=this._getProps(r,i,a);s&&o.push(i.start(s))}}),o},t.stop=function(){return Dt(e,r=>r.stop(...arguments)),this},t.update=function(r){return Dt(e,(o,i)=>o.update(this._getProps(r,o,i))),this};const n=function(r,o,i){return Ye.fun(r)?r(i,o):r};return t._getProps=n,t};function Xxe(e,t,n){const r=Ye.fun(t)&&t;r&&!n&&(n=[]);const o=m.useMemo(()=>r||arguments.length==3?zz():void 0,[]),i=m.useRef(0),a=c5(),s=m.useMemo(()=>({ctrls:[],queue:[],flush(x,w){const S=tk(x,w);return i.current>0&&!s.queue.length&&!Object.keys(S).some(T=>!x.springs[T])?ek(x,w):new Promise(T=>{Lz(x,S),s.queue.push(()=>{T(ek(x,w))}),a()})}}),[]),l=m.useRef([...s.ctrls]),u=[],c=G_(e)||0;m.useMemo(()=>{Dt(l.current.slice(e,c),x=>{Y_(x,o),x.stop(!0)}),l.current.length=e,f(c,e)},[e]),m.useMemo(()=>{f(0,Math.min(c,e))},n);function f(x,w){for(let S=x;Stk(x,u[w])),y=m.useContext(p0),v=G_(y),b=y!==v&&Pz(y);Ul(()=>{i.current++,s.ctrls=l.current;const{queue:x}=s;x.length&&(s.queue=[],Dt(x,w=>w())),Dt(l.current,(w,S)=>{o==null||o.add(w),b&&w.start({default:y});const $=u[S];$&&(Mz(w,$.ref),w.ref?w.queue.push($):w.start($))})}),d5(()=>()=>{Dt(s.ctrls,x=>x.stop(!0))});const C=p.map(x=>({...x}));return o?[C,o]:C}function xs(e,t){const n=Ye.fun(e),[[r],o]=Xxe(1,n?e:[e],n?t||[]:t);return n||arguments.length==2?[r,o]:r}function ld(e,t,n){const r=Ye.fun(t)&&t,{reset:o,sort:i,trail:a=0,expires:s=!0,exitBeforeEnter:l=!1,onDestroyed:u,ref:c,config:f}=r?r():t,p=m.useMemo(()=>r||arguments.length==3?zz():void 0,[]),y=So(e),v=[],b=m.useRef(null),C=o?null:b.current;Ul(()=>{b.current=v}),d5(()=>(Dt(v,O=>{p==null||p.add(O.ctrl),O.ctrl.ref=p}),()=>{Dt(b.current,O=>{O.expired&&clearTimeout(O.expirationId),Y_(O.ctrl,p),O.ctrl.stop(!0)})}));const x=Zxe(y,r?r():t,C),w=o&&b.current||[];Ul(()=>Dt(w,({ctrl:O,item:D,key:H})=>{Y_(O,p),Do(u,D,H)}));const S=[];if(C&&Dt(C,(O,D)=>{O.expired?(clearTimeout(O.expirationId),w.push(O)):(D=S[D]=x.indexOf(O.key),~D&&(v[D]=O))}),Dt(y,(O,D)=>{v[D]||(v[D]={key:x[D],item:O,phase:"mount",ctrl:new Az},v[D].ctrl.item=O)}),S.length){let O=-1;const{leave:D}=r?r():t;Dt(S,(H,B)=>{const j=C[B];~H?(O=v.indexOf(j),v[O]={...j,item:y[H]}):D&&v.splice(++O,0,j)})}Ye.fun(i)&&v.sort((O,D)=>i(O.item,D.item));let $=-a;const T=c5(),k=Zx(t),M=new Map,I=m.useRef(new Map),N=m.useRef(!1);Dt(v,(O,D)=>{const H=O.key,B=O.phase,j=r?r():t;let W,U;const Z=Do(j.delay||0,H);if(B=="mount")W=j.enter,U="enter";else{const ne=x.indexOf(H)<0;if(B!="leave")if(ne)W=j.leave,U="leave";else if(W=j.update)U="update";else return;else if(!ne)W=j.enter,U="enter";else return}if(W=Do(W,O.item,D),W=Ye.obj(W)?p5(W):{to:W},!W.config){const ne=f||k.config;W.config=Do(ne,O.item,D,U)}$+=a;const Y={...k,delay:Z+$,ref:c,immediate:j.immediate,reset:!1,...W};if(U=="enter"&&Ye.und(Y.from)){const ne=r?r():t,re=Ye.und(ne.initial)||C?ne.from:ne.initial;Y.from=Do(re,O.item,D)}const{onResolve:se}=Y;Y.onResolve=ne=>{Do(se,ne);const re=b.current,ge=re.find(xe=>xe.key===H);if(ge&&!(ne.cancelled&&ge.phase!="update")&&ge.ctrl.idle){const xe=re.every(fe=>fe.ctrl.idle);if(ge.phase=="leave"){const fe=Do(s,ge.item);if(fe!==!1){const Se=fe===!0?0:fe;if(ge.expired=!0,!xe&&Se>0){Se<=2147483647&&(ge.expirationId=setTimeout(T,Se));return}}}xe&&re.some(fe=>fe.expired)&&(I.current.delete(ge),l&&(N.current=!0),T())}};const Q=tk(O.ctrl,Y);U==="leave"&&l?I.current.set(O,{phase:U,springs:Q,payload:Y}):M.set(O,{phase:U,springs:Q,payload:Y})});const E=m.useContext(p0),A=G_(E),z=E!==A&&Pz(E);Ul(()=>{z&&Dt(v,O=>{O.ctrl.start({default:E})})},[E]),Dt(M,(O,D)=>{if(I.current.size){const H=v.findIndex(B=>B.key===D.key);v.splice(H,1)}}),Ul(()=>{Dt(I.current.size?I.current:M,({phase:O,payload:D},H)=>{const{ctrl:B}=H;H.phase=O,p==null||p.add(B),z&&O=="enter"&&B.start({default:E}),D&&(Mz(B,D.ref),(B.ref||p)&&!N.current?B.update(D):(B.start(D),N.current&&(N.current=!1)))})},o?void 0:n);const L=O=>m.createElement(m.Fragment,null,v.map((D,H)=>{const{springs:B}=M.get(D)||D.ctrl,j=O({...B},D.item,D,H);return j&&j.type?m.createElement(j.type,{...j.props,key:Ye.str(D.key)||Ye.num(D.key)?D.key:D.ctrl.id,ref:j.ref}):j}));return p?[L,p]:L}var Qxe=1;function Zxe(e,{key:t,keys:n=t},r){if(n===null){const o=new Set;return e.map(i=>{const a=r&&r.find(s=>s.item===i&&s.phase!=="leave"&&!o.has(s));return a?(o.add(a),a.key):Qxe++})}return Ye.und(n)?e:Ye.fun(n)?e.map(n):So(n)}var Bz=class extends g5{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=hg(...t);const n=this._get(),r=q_(n);f5(this,r.create(n))}advance(e){const t=this._get(),n=this.get();Hs(t,n)||(Ha(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&p6(this._active)&&OS(this)}_get(){const e=Ye.arr(this.source)?this.source.map(Lo):So(Lo(this.source));return this.calc(...e)}_start(){this.idle&&!p6(this._active)&&(this.idle=!1,Dt(Xx(this),e=>{e.done=!1}),ia.skipAnimation?(Ht.batchedUpdates(()=>this.advance()),OS(this)):Gx.start(this))}_attach(){let e=1;Dt(So(this.source),t=>{Wi(t)&&jp(t,this),Q_(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){Dt(So(this.source),e=>{Wi(e)&&vg(e,this)}),this._active.clear(),OS(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=So(this.source).reduce((t,n)=>Math.max(t,(Q_(n)?n.priority:0)+1),0))}};function Jxe(e){return e.idle!==!1}function p6(e){return!e.size||Array.from(e).every(Jxe)}function OS(e){e.idle||(e.idle=!0,Dt(Xx(e),t=>{t.done=!0}),gg(e,{type:"idle",parent:e}))}var du=(e,...t)=>new Bz(e,t);ia.assign({createStringInterpolator:wz,to:(e,t)=>new Bz(e,t)});var Hz=/^--/;function ewe(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!Hz.test(e)&&!(Em.hasOwnProperty(e)&&Em[e])?t+"px":(""+t).trim()}var h6={};function twe(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:a,viewBox:s,...l}=t,u=Object.values(l),c=Object.keys(l).map(f=>n||e.hasAttribute(f)?f:h6[f]||(h6[f]=f.replace(/([A-Z])/g,p=>"-"+p.toLowerCase())));o!==void 0&&(e.textContent=o);for(const f in r)if(r.hasOwnProperty(f)){const p=ewe(f,r[f]);Hz.test(f)?e.style.setProperty(f,p):e.style[f]=p}c.forEach((f,p)=>{e.setAttribute(f,u[p])}),i!==void 0&&(e.scrollTop=i),a!==void 0&&(e.scrollLeft=a),s!==void 0&&e.setAttribute("viewBox",s)}var Em={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},nwe=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),rwe=["Webkit","Ms","Moz","O"];Em=Object.keys(Em).reduce((e,t)=>(rwe.forEach(n=>e[nwe(n,t)]=e[t]),e),Em);var owe=/^(matrix|translate|scale|rotate|skew)/,iwe=/^(translate)/,awe=/^(rotate|skew)/,AS=(e,t)=>Ye.num(e)&&e!==0?e+t:e,R1=(e,t)=>Ye.arr(e)?e.every(n=>R1(n,t)):Ye.num(e)?e===t:parseFloat(e)===t,swe=class extends Qx{constructor({x:e,y:t,z:n,...r}){const o=[],i=[];(e||t||n)&&(o.push([e||0,t||0,n||0]),i.push(a=>[`translate3d(${a.map(s=>AS(s,"px")).join(",")})`,R1(a,0)])),hs(r,(a,s)=>{if(s==="transform")o.push([a||""]),i.push(l=>[l,l===""]);else if(owe.test(s)){if(delete r[s],Ye.und(a))return;const l=iwe.test(s)?"px":awe.test(s)?"deg":"";o.push(So(a)),i.push(s==="rotate3d"?([u,c,f,p])=>[`rotate3d(${u},${c},${f},${AS(p,l)})`,R1(p,0)]:u=>[`${s}(${u.map(c=>AS(c,l)).join(",")})`,R1(u,s.startsWith("scale")?1:0)])}}),o.length&&(r.transform=new lwe(o,i)),super(r)}},lwe=class extends yz{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 Dt(this.inputs,(n,r)=>{const o=Lo(n[0]),[i,a]=this.transforms[r](Ye.arr(o)?o:n.map(Lo));e+=" "+i,t=t&&a}),t?"none":e}observerAdded(e){e==1&&Dt(this.inputs,t=>Dt(t,n=>Wi(n)&&jp(n,this)))}observerRemoved(e){e==0&&Dt(this.inputs,t=>Dt(t,n=>Wi(n)&&vg(n,this)))}eventObserved(e){e.type=="change"&&(this._value=null),gg(this,e)}},uwe=["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"];ia.assign({batchedUpdates:bu.unstable_batchedUpdates,createStringInterpolator:wz,colors:nxe});var cwe=Fxe(uwe,{applyAnimatedValues:twe,createAnimatedStyle:e=>new swe(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),In=cwe.animated;function Vc(){return Vc=Object.assign?Object.assign.bind():function(e){for(var t=1;t0&&f.height>0,C=Math.round(n[0]),x=Math.round(n[1]);b&&(r==="top"?(C-=f.width/2,x-=f.height+14):r==="right"?(C+=14,x-=f.height/2):r==="bottom"?(C-=f.width/2,x+=14):r==="left"?(C-=f.width+14,x-=f.height/2):r==="center"&&(C-=f.width/2,x-=f.height/2),y={transform:m6(C,x)},p.current||(v=!0),p.current=[C,x]);var w=xs({to:y,config:l,immediate:!s||v}),S=Vc({},dwe,i.tooltip,{transform:(t=w.transform)!=null?t:m6(C,x)});return g.jsx(In.div,{ref:c,style:S,children:o})});Wz.displayName="TooltipWrapper";var Vz=m.memo(function(e){var t=e.size,n=t===void 0?12:t,r=e.color,o=e.style;return g.jsx("span",{style:Vc({display:"block",width:n,height:n,background:r},o===void 0?{}:o)})}),v5=m.memo(function(e){var t,n=e.id,r=e.value,o=e.format,i=e.enableChip,a=i!==void 0&&i,s=e.color,l=e.renderContent,u=On(),c=Rg(o);if(typeof l=="function")t=l();else{var f=r;c!==void 0&&f!==void 0&&(f=c(f)),t=g.jsxs("div",{style:u.tooltip.basic,children:[a&&g.jsx(Vz,{color:s,style:u.tooltip.chip}),f!==void 0?g.jsxs("span",{children:[n,": ",g.jsx("strong",{children:""+f})]}):n]})}return g.jsx("div",{style:u.tooltip.container,children:t})}),fwe={width:"100%",borderCollapse:"collapse"},Uz=m.memo(function(e){var t,n=e.title,r=e.rows,o=r===void 0?[]:r,i=e.renderContent,a=On();return o.length?(t=typeof i=="function"?i():g.jsxs("div",{children:[n&&n,g.jsx("table",{style:Vc({},fwe,a.tooltip.table),children:g.jsx("tbody",{children:o.map(function(s,l){return g.jsx("tr",{children:s.map(function(u,c){return g.jsx("td",{style:a.tooltip.tableCell,children:u},c)})},l)})})})]}),g.jsx("div",{style:a.tooltip.container,children:t})):null});Uz.displayName="TableTooltip";var nk=m.memo(function(e){var t=e.x0,n=e.x1,r=e.y0,o=e.y1,i=On(),a=To(),s=a.animate,l=a.config,u=m.useMemo(function(){return Vc({},i.crosshair.line,{pointerEvents:"none"})},[i.crosshair.line]),c=xs({x1:t,x2:n,y1:r,y2:o,config:l,immediate:!s});return g.jsx(In.line,Vc({},c,{fill:"none",style:u}))});nk.displayName="CrosshairLine";var rk=m.memo(function(e){var t,n,r=e.width,o=e.height,i=e.type,a=e.x,s=e.y;return i==="cross"?(t={x0:a,x1:a,y0:0,y1:o},n={x0:0,x1:r,y0:s,y1:s}):i==="top-left"?(t={x0:a,x1:a,y0:0,y1:s},n={x0:0,x1:a,y0:s,y1:s}):i==="top"?t={x0:a,x1:a,y0:0,y1:s}:i==="top-right"?(t={x0:a,x1:a,y0:0,y1:s},n={x0:a,x1:r,y0:s,y1:s}):i==="right"?n={x0:a,x1:r,y0:s,y1:s}:i==="bottom-right"?(t={x0:a,x1:a,y0:s,y1:o},n={x0:a,x1:r,y0:s,y1:s}):i==="bottom"?t={x0:a,x1:a,y0:s,y1:o}:i==="bottom-left"?(t={x0:a,x1:a,y0:s,y1:o},n={x0:0,x1:a,y0:s,y1:s}):i==="left"?n={x0:0,x1:a,y0:s,y1:s}:i==="x"?t={x0:a,x1:a,y0:0,y1:o}:i==="y"&&(n={x0:0,x1:r,y0:s,y1:s}),g.jsxs(g.Fragment,{children:[t&&g.jsx(nk,{x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1}),n&&g.jsx(nk,{x0:n.x0,x1:n.x1,y0:n.y0,y1:n.y1})]})});rk.displayName="Crosshair";var Gz=m.createContext({showTooltipAt:function(){},showTooltipFromEvent:function(){},hideTooltip:function(){}}),ok={isVisible:!1,position:[null,null],content:null,anchor:null},qz=m.createContext(ok),pwe=function(e){var t=m.useState(ok),n=t[0],r=t[1],o=m.useCallback(function(s,l,u){var c=l[0],f=l[1];u===void 0&&(u="top"),r({isVisible:!0,position:[c,f],anchor:u,content:s})},[r]),i=m.useCallback(function(s,l,u){u===void 0&&(u="top");var c=e.current.getBoundingClientRect(),f=e.current.offsetWidth,p=f===c.width?1:f/c.width,y=(l.clientX-c.left)*p,v=(l.clientY-c.top)*p;u!=="left"&&u!=="right"||(u=y-1}var Owe=Rwe,Awe=Jx;function Fwe(e,t){var n=this.__data__,r=Awe(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var Lwe=Fwe,Dwe=bwe,jwe=Pwe,Nwe=Ewe,zwe=Owe,Bwe=Lwe;function zp(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&e<=KSe}var $5=YSe,XSe=tw,QSe=$5;function ZSe(e){return e!=null&&QSe(e.length)&&!XSe(e)}var Up=ZSe,JSe=Up,e$e=Ss;function t$e(e){return e$e(e)&&JSe(e)}var sB=t$e,Ny={exports:{}};function n$e(){return!1}var r$e=n$e;Ny.exports;(function(e,t){var n=ws,r=r$e,o=t&&!t.nodeType&&t,i=o&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===o,s=a?n.Buffer:void 0,l=s?s.isBuffer:void 0,u=l||r;e.exports=u})(Ny,Ny.exports);var aw=Ny.exports,o$e=ud,i$e=C5,a$e=Ss,s$e="[object Object]",l$e=Function.prototype,u$e=Object.prototype,lB=l$e.toString,c$e=u$e.hasOwnProperty,d$e=lB.call(Object);function f$e(e){if(!a$e(e)||o$e(e)!=s$e)return!1;var t=i$e(e);if(t===null)return!0;var n=c$e.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&lB.call(n)==d$e}var _5=f$e;const p$e=Or(_5);var h$e=ud,m$e=$5,g$e=Ss,v$e="[object Arguments]",y$e="[object Array]",b$e="[object Boolean]",x$e="[object Date]",w$e="[object Error]",C$e="[object Function]",S$e="[object Map]",$$e="[object Number]",_$e="[object Object]",k$e="[object RegExp]",P$e="[object Set]",M$e="[object String]",T$e="[object WeakMap]",E$e="[object ArrayBuffer]",I$e="[object DataView]",R$e="[object Float32Array]",O$e="[object Float64Array]",A$e="[object Int8Array]",F$e="[object Int16Array]",L$e="[object Int32Array]",D$e="[object Uint8Array]",j$e="[object Uint8ClampedArray]",N$e="[object Uint16Array]",z$e="[object Uint32Array]",Xn={};Xn[R$e]=Xn[O$e]=Xn[A$e]=Xn[F$e]=Xn[L$e]=Xn[D$e]=Xn[j$e]=Xn[N$e]=Xn[z$e]=!0;Xn[v$e]=Xn[y$e]=Xn[E$e]=Xn[b$e]=Xn[I$e]=Xn[x$e]=Xn[w$e]=Xn[C$e]=Xn[S$e]=Xn[$$e]=Xn[_$e]=Xn[k$e]=Xn[P$e]=Xn[M$e]=Xn[T$e]=!1;function B$e(e){return g$e(e)&&m$e(e.length)&&!!Xn[h$e(e)]}var H$e=B$e;function W$e(e){return function(t){return e(t)}}var Gp=W$e,zy={exports:{}};zy.exports;(function(e,t){var n=Kz,r=t&&!t.nodeType&&t,o=r&&!0&&e&&!e.nodeType&&e,i=o&&o.exports===r,a=i&&n.process,s=function(){try{var l=o&&o.require&&o.require("util").types;return l||a&&a.binding&&a.binding("util")}catch{}}();e.exports=s})(zy,zy.exports);var sw=zy.exports,V$e=H$e,U$e=Gp,k6=sw,P6=k6&&k6.isTypedArray,G$e=P6?U$e(P6):V$e,k5=G$e;function q$e(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var uB=q$e,K$e=x5,Y$e=h0,X$e=Object.prototype,Q$e=X$e.hasOwnProperty;function Z$e(e,t,n){var r=e[t];(!(Q$e.call(e,t)&&Y$e(r,n))||n===void 0&&!(t in e))&&K$e(e,t,n)}var P5=Z$e,J$e=P5,e_e=x5;function t_e(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i-1&&e%1==0&&e0){if(++t>=dke)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var mke=hke,gke=cke,vke=mke,yke=vke(gke),pB=yke,bke=uw,xke=fB,wke=pB;function Cke(e,t){return wke(xke(e,t,bke),e+"")}var M5=Cke,Ske=h0,$ke=Up,_ke=lw,kke=Cs;function Pke(e,t,n){if(!kke(n))return!1;var r=typeof t;return(r=="number"?$ke(n)&&_ke(t,n.length):r=="string"&&t in n)?Ske(n[t],e):!1}var hB=Pke,Mke=M5,Tke=hB;function Eke(e){return Mke(function(t,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(i=e.length>3&&typeof i=="function"?(o--,i):void 0,a&&Tke(n[0],n[1],a)&&(i=o<3?void 0:i,o=1),t=Object(t);++r>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Gv(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Gv(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=APe.exec(e))?new $o(t[1],t[2],t[3],1):(t=FPe.exec(e))?new $o(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=LPe.exec(e))?Gv(t[1],t[2],t[3],t[4]):(t=DPe.exec(e))?Gv(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=jPe.exec(e))?V6(t[1],t[2]/100,t[3]/100,1):(t=NPe.exec(e))?V6(t[1],t[2]/100,t[3]/100,t[4]):j6.hasOwnProperty(e)?B6(j6[e]):e==="transparent"?new $o(NaN,NaN,NaN,0):null}function B6(e){return new $o(e>>16&255,e>>8&255,e&255,1)}function Gv(e,t,n,r){return r<=0&&(e=t=n=NaN),new $o(e,t,n,r)}function bB(e){return e instanceof Xp||(e=$g(e)),e?(e=e.rgb(),new $o(e.r,e.g,e.b,e.opacity)):new $o}function By(e,t,n,r){return arguments.length===1?bB(e):new $o(e,t,n,r??1)}function $o(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}fw($o,By,I5(Xp,{brighter:function(e){return e=e==null?vp:Math.pow(vp,e),new $o(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=e==null?Uc:Math.pow(Uc,e),new $o(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){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:H6,formatHex:H6,formatRgb:W6,toString:W6}));function H6(){return"#"+LS(this.r)+LS(this.g)+LS(this.b)}function W6(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(e===1?")":", "+e+")")}function LS(e){return e=Math.max(0,Math.min(255,Math.round(e)||0)),(e<16?"0":"")+e.toString(16)}function V6(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Qa(e,t,n,r)}function xB(e){if(e instanceof Qa)return new Qa(e.h,e.s,e.l,e.opacity);if(e instanceof Xp||(e=$g(e)),!e)return new Qa;if(e instanceof Qa)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),a=NaN,s=i-o,l=(i+o)/2;return s?(t===i?a=(n-r)/s+(n0&&l<1?0:a,new Qa(a,s,l,e.opacity)}function BPe(e,t,n,r){return arguments.length===1?xB(e):new Qa(e,t,n,r??1)}function Qa(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}fw(Qa,BPe,I5(Xp,{brighter:function(e){return e=e==null?vp:Math.pow(vp,e),new Qa(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=e==null?Uc:Math.pow(Uc,e),new Qa(this.h,this.s,this.l*e,this.opacity)},rgb:function(){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 $o(DS(e>=240?e-240:e+120,o,r),DS(e,o,r),DS(e<120?e+240:e-120,o,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"hsl(":"hsla(")+(this.h||0)+", "+(this.s||0)*100+"%, "+(this.l||0)*100+"%"+(e===1?")":", "+e+")")}}));function DS(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 HPe=Math.PI/180,WPe=180/Math.PI;var wB=-.14861,R5=1.78277,O5=-.29227,pw=-.90649,_g=1.97294,U6=_g*pw,G6=_g*R5,q6=R5*O5-pw*wB;function VPe(e){if(e instanceof wc)return new wc(e.h,e.s,e.l,e.opacity);e instanceof $o||(e=bB(e));var t=e.r/255,n=e.g/255,r=e.b/255,o=(q6*r+U6*t-G6*n)/(q6+U6-G6),i=r-o,a=(_g*(n-o)-O5*i)/pw,s=Math.sqrt(a*a+i*i)/(_g*o*(1-o)),l=s?Math.atan2(a,i)*WPe-120:NaN;return new wc(l<0?l+360:l,s,o,e.opacity)}function ik(e,t,n,r){return arguments.length===1?VPe(e):new wc(e,t,n,r??1)}function wc(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}fw(wc,ik,I5(Xp,{brighter:function(e){return e=e==null?vp:Math.pow(vp,e),new wc(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=e==null?Uc:Math.pow(Uc,e),new wc(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*HPe,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),o=Math.sin(e);return new $o(255*(t+n*(wB*r+R5*o)),255*(t+n*(O5*r+pw*o)),255*(t+n*(_g*r)),this.opacity)}}));function UPe(e,t,n,r,o){var i=e*e,a=i*e;return((1-3*e+3*i-a)*t+(4-6*i+3*a)*n+(1+3*e+3*i-3*a)*r+a*o)/6}function GPe(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),o=e[r],i=e[r+1],a=r>0?e[r-1]:2*o-i,s=r()=>e;function CB(e,t){return function(n){return e+n*t}}function qPe(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 KPe(e,t){var n=t-e;return n?CB(e,n>180||n<-180?n-360*Math.round(n/360):n):hw(isNaN(e)?t:e)}function YPe(e){return(e=+e)==1?Gf:function(t,n){return n-t?qPe(t,n,e):hw(isNaN(t)?n:t)}}function Gf(e,t){var n=t-e;return n?CB(e,n):hw(isNaN(e)?t:e)}const K6=function e(t){var n=YPe(t);function r(o,i){var a=n((o=By(o)).r,(i=By(i)).r),s=n(o.g,i.g),l=n(o.b,i.b),u=Gf(o.opacity,i.opacity);return function(c){return o.r=a(c),o.g=s(c),o.b=l(c),o.opacity=u(c),o+""}}return r.gamma=e,r}(1);function XPe(e){return function(t){var n=t.length,r=new Array(n),o=new Array(n),i=new Array(n),a,s;for(a=0;an&&(i=t.slice(n,i),s[a]?s[a]+=i:s[++a]=i),(r=r[0])===(o=o[0])?s[a]?s[a]+=o:s[++a]=o:(s[++a]=null,l.push({i:a,x:kg(r,o)})),n=jS.lastIndex;return n - * Copyright OpenJS Foundation and other contributors - * Released under MIT license - * Based on Underscore.js 1.8.3 - * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */Hy.exports;(function(e,t){(function(){var n,r="4.17.21",o=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",s="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",u=500,c="__lodash_placeholder__",f=1,p=2,y=4,v=1,b=2,C=1,x=2,w=4,S=8,$=16,T=32,k=64,M=128,I=256,N=512,E=30,A="...",z=800,L=16,O=1,D=2,H=3,B=1/0,j=9007199254740991,W=17976931348623157e292,U=0/0,Z=4294967295,Y=Z-1,se=Z>>>1,Q=[["ary",M],["bind",C],["bindKey",x],["curry",S],["curryRight",$],["flip",N],["partial",T],["partialRight",k],["rearg",I]],ne="[object Arguments]",re="[object Array]",ge="[object AsyncFunction]",xe="[object Boolean]",fe="[object Date]",Se="[object DOMException]",de="[object Error]",ie="[object Function]",Pe="[object GeneratorFunction]",$e="[object Map]",me="[object Number]",ue="[object Null]",ce="[object Object]",Te="[object Promise]",Le="[object Proxy]",Re="[object RegExp]",Oe="[object Set]",K="[object String]",ee="[object Symbol]",pe="[object Undefined]",ye="[object WeakMap]",De="[object WeakSet]",Ae="[object ArrayBuffer]",Ee="[object DataView]",Ce="[object Float32Array]",Qe="[object Float64Array]",Ct="[object Int8Array]",et="[object Int16Array]",Be="[object Int32Array]",te="[object Uint8Array]",X="[object Uint8ClampedArray]",oe="[object Uint16Array]",Ie="[object Uint32Array]",Ve=/\b__p \+= '';/g,Ke=/\b(__p \+=) '' \+/g,at=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Je=/&(?:amp|lt|gt|quot|#39);/g,nt=/[&<>"']/g,_t=RegExp(Je.source),ht=RegExp(nt.source),lt=/<%-([\s\S]+?)%>/g,Rt=/<%([\s\S]+?)%>/g,jt=/<%=([\s\S]+?)%>/g,dn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,hn=/^\w*$/,Pt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,zt=/[\\^$.*+?()[\]{}|]/g,un=RegExp(zt.source),cn=/^\s+/,ut=/\s/,mt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ot=/\{\n\/\* \[wrapped with (.+)\] \*/,At=/,? & /,tt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ut=/[()=,{}\[\]\/\s]/,_e=/\\(\\)?/g,we=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Fe=/\w*$/,rt=/^[-+]0x[0-9a-f]+$/i,Tt=/^0b[01]+$/i,en=/^\[object .+?Constructor\]$/,_n=/^0o[0-7]+$/i,ct=/^(?:0|[1-9]\d*)$/,gt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,or=/($^)/,Md=/['\n\r\u2028\u2029\\]/g,Td="\\ud800-\\udfff",Sq="\\u0300-\\u036f",$q="\\ufe20-\\ufe2f",_q="\\u20d0-\\u20ff",T3=Sq+$q+_q,E3="\\u2700-\\u27bf",I3="a-z\\xdf-\\xf6\\xf8-\\xff",kq="\\xac\\xb1\\xd7\\xf7",Pq="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Mq="\\u2000-\\u206f",Tq=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",R3="A-Z\\xc0-\\xd6\\xd8-\\xde",O3="\\ufe0e\\ufe0f",A3=kq+Pq+Mq+Tq,T2="['’]",Eq="["+Td+"]",F3="["+A3+"]",T0="["+T3+"]",L3="\\d+",Iq="["+E3+"]",D3="["+I3+"]",j3="[^"+Td+A3+L3+E3+I3+R3+"]",E2="\\ud83c[\\udffb-\\udfff]",Rq="(?:"+T0+"|"+E2+")",N3="[^"+Td+"]",I2="(?:\\ud83c[\\udde6-\\uddff]){2}",R2="[\\ud800-\\udbff][\\udc00-\\udfff]",Ed="["+R3+"]",z3="\\u200d",B3="(?:"+D3+"|"+j3+")",Oq="(?:"+Ed+"|"+j3+")",H3="(?:"+T2+"(?:d|ll|m|re|s|t|ve))?",W3="(?:"+T2+"(?:D|LL|M|RE|S|T|VE))?",V3=Rq+"?",U3="["+O3+"]?",Aq="(?:"+z3+"(?:"+[N3,I2,R2].join("|")+")"+U3+V3+")*",Fq="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Lq="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",G3=U3+V3+Aq,Dq="(?:"+[Iq,I2,R2].join("|")+")"+G3,jq="(?:"+[N3+T0+"?",T0,I2,R2,Eq].join("|")+")",Nq=RegExp(T2,"g"),zq=RegExp(T0,"g"),O2=RegExp(E2+"(?="+E2+")|"+jq+G3,"g"),Bq=RegExp([Ed+"?"+D3+"+"+H3+"(?="+[F3,Ed,"$"].join("|")+")",Oq+"+"+W3+"(?="+[F3,Ed+B3,"$"].join("|")+")",Ed+"?"+B3+"+"+H3,Ed+"+"+W3,Lq,Fq,L3,Dq].join("|"),"g"),Hq=RegExp("["+z3+Td+T3+O3+"]"),Wq=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Vq=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Uq=-1,qn={};qn[Ce]=qn[Qe]=qn[Ct]=qn[et]=qn[Be]=qn[te]=qn[X]=qn[oe]=qn[Ie]=!0,qn[ne]=qn[re]=qn[Ae]=qn[xe]=qn[Ee]=qn[fe]=qn[de]=qn[ie]=qn[$e]=qn[me]=qn[ce]=qn[Re]=qn[Oe]=qn[K]=qn[ye]=!1;var zn={};zn[ne]=zn[re]=zn[Ae]=zn[Ee]=zn[xe]=zn[fe]=zn[Ce]=zn[Qe]=zn[Ct]=zn[et]=zn[Be]=zn[$e]=zn[me]=zn[ce]=zn[Re]=zn[Oe]=zn[K]=zn[ee]=zn[te]=zn[X]=zn[oe]=zn[Ie]=!0,zn[de]=zn[ie]=zn[ye]=!1;var Gq={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},qq={"&":"&","<":"<",">":">",'"':""","'":"'"},Kq={"&":"&","<":"<",">":">",""":'"',"'":"'"},Yq={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Xq=parseFloat,Qq=parseInt,q3=typeof Vs=="object"&&Vs&&Vs.Object===Object&&Vs,Zq=typeof self=="object"&&self&&self.Object===Object&&self,Vr=q3||Zq||Function("return this")(),A2=t&&!t.nodeType&&t,Ou=A2&&!0&&e&&!e.nodeType&&e,K3=Ou&&Ou.exports===A2,F2=K3&&q3.process,ki=function(){try{var he=Ou&&Ou.require&&Ou.require("util").types;return he||F2&&F2.binding&&F2.binding("util")}catch{}}(),Y3=ki&&ki.isArrayBuffer,X3=ki&&ki.isDate,Q3=ki&&ki.isMap,Z3=ki&&ki.isRegExp,J3=ki&&ki.isSet,eE=ki&&ki.isTypedArray;function Jo(he,Ne,Me){switch(Me.length){case 0:return he.call(Ne);case 1:return he.call(Ne,Me[0]);case 2:return he.call(Ne,Me[0],Me[1]);case 3:return he.call(Ne,Me[0],Me[1],Me[2])}return he.apply(Ne,Me)}function Jq(he,Ne,Me,ft){for(var Nt=-1,yn=he==null?0:he.length;++Nt-1}function L2(he,Ne,Me){for(var ft=-1,Nt=he==null?0:he.length;++ft-1;);return Me}function lE(he,Ne){for(var Me=he.length;Me--&&Id(Ne,he[Me],0)>-1;);return Me}function lK(he,Ne){for(var Me=he.length,ft=0;Me--;)he[Me]===Ne&&++ft;return ft}var uK=z2(Gq),cK=z2(qq);function dK(he){return"\\"+Yq[he]}function fK(he,Ne){return he==null?n:he[Ne]}function Rd(he){return Hq.test(he)}function pK(he){return Wq.test(he)}function hK(he){for(var Ne,Me=[];!(Ne=he.next()).done;)Me.push(Ne.value);return Me}function V2(he){var Ne=-1,Me=Array(he.size);return he.forEach(function(ft,Nt){Me[++Ne]=[Nt,ft]}),Me}function uE(he,Ne){return function(Me){return he(Ne(Me))}}function vl(he,Ne){for(var Me=-1,ft=he.length,Nt=0,yn=[];++Me-1}function tY(d,h){var _=this.__data__,F=q0(_,d);return F<0?(++this.size,_.push([d,h])):_[F][1]=h,this}Ts.prototype.clear=QK,Ts.prototype.delete=ZK,Ts.prototype.get=JK,Ts.prototype.has=eY,Ts.prototype.set=tY;function Es(d){var h=-1,_=d==null?0:d.length;for(this.clear();++h<_;){var F=d[h];this.set(F[0],F[1])}}function nY(){this.size=0,this.__data__={hash:new Fu,map:new(lh||Ts),string:new Fu}}function rY(d){var h=iv(this,d).delete(d);return this.size-=h?1:0,h}function oY(d){return iv(this,d).get(d)}function iY(d){return iv(this,d).has(d)}function aY(d,h){var _=iv(this,d),F=_.size;return _.set(d,h),this.size+=_.size==F?0:1,this}Es.prototype.clear=nY,Es.prototype.delete=rY,Es.prototype.get=oY,Es.prototype.has=iY,Es.prototype.set=aY;function Lu(d){var h=-1,_=d==null?0:d.length;for(this.__data__=new Es;++h<_;)this.add(d[h])}function sY(d){return this.__data__.set(d,l),this}function lY(d){return this.__data__.has(d)}Lu.prototype.add=Lu.prototype.push=sY,Lu.prototype.has=lY;function ca(d){var h=this.__data__=new Ts(d);this.size=h.size}function uY(){this.__data__=new Ts,this.size=0}function cY(d){var h=this.__data__,_=h.delete(d);return this.size=h.size,_}function dY(d){return this.__data__.get(d)}function fY(d){return this.__data__.has(d)}function pY(d,h){var _=this.__data__;if(_ instanceof Ts){var F=_.__data__;if(!lh||F.length=h?d:h)),d}function Ei(d,h,_,F,V,q){var J,ae=h&f,ve=h&p,He=h&y;if(_&&(J=V?_(d,F,V,q):_(d)),J!==n)return J;if(!ir(d))return d;var We=Bt(d);if(We){if(J=iX(d),!ae)return Eo(d,J)}else{var Ge=to(d),st=Ge==ie||Ge==Pe;if(Sl(d))return UE(d,ae);if(Ge==ce||Ge==ne||st&&!V){if(J=ve||st?{}:cI(d),!ae)return ve?KY(d,vY(J,d)):qY(d,wE(J,d))}else{if(!zn[Ge])return V?d:{};J=aX(d,Ge,ae)}}q||(q=new ca);var wt=q.get(d);if(wt)return wt;q.set(d,J),NI(d)?d.forEach(function(It){J.add(Ei(It,h,_,It,d,q))}):DI(d)&&d.forEach(function(It,tn){J.set(tn,Ei(It,h,_,tn,d,q))});var Et=He?ve?gC:mC:ve?Ro:Lr,qt=We?n:Et(d);return Pi(qt||d,function(It,tn){qt&&(tn=It,It=d[tn]),fh(J,tn,Ei(It,h,_,tn,d,q))}),J}function yY(d){var h=Lr(d);return function(_){return CE(_,d,h)}}function CE(d,h,_){var F=_.length;if(d==null)return!F;for(d=Ln(d);F--;){var V=_[F],q=h[V],J=d[V];if(J===n&&!(V in d)||!q(J))return!1}return!0}function SE(d,h,_){if(typeof d!="function")throw new Mi(a);return bh(function(){d.apply(n,_)},h)}function ph(d,h,_,F){var V=-1,q=E0,J=!0,ae=d.length,ve=[],He=h.length;if(!ae)return ve;_&&(h=er(h,ei(_))),F?(q=L2,J=!1):h.length>=o&&(q=ah,J=!1,h=new Lu(h));e:for(;++VV?0:V+_),F=F===n||F>V?V:Gt(F),F<0&&(F+=V),F=_>F?0:BI(F);_0&&_(ae)?h>1?Ur(ae,h-1,_,F,V):gl(V,ae):F||(V[V.length]=ae)}return V}var Q2=QE(),kE=QE(!0);function Aa(d,h){return d&&Q2(d,h,Lr)}function Z2(d,h){return d&&kE(d,h,Lr)}function Y0(d,h){return ml(h,function(_){return Fs(d[_])})}function ju(d,h){h=wl(h,d);for(var _=0,F=h.length;d!=null&&_h}function wY(d,h){return d!=null&&kn.call(d,h)}function CY(d,h){return d!=null&&h in Ln(d)}function SY(d,h,_){return d>=eo(h,_)&&d=120&&We.length>=120)?new Lu(J&&We):n}We=d[0];var Ge=-1,st=ae[0];e:for(;++Ge-1;)ae!==d&&z0.call(ae,ve,1),z0.call(d,ve,1);return d}function DE(d,h){for(var _=d?h.length:0,F=_-1;_--;){var V=h[_];if(_==F||V!==q){var q=V;As(V)?z0.call(d,V,1):lC(d,V)}}return d}function iC(d,h){return d+W0(vE()*(h-d+1))}function LY(d,h,_,F){for(var V=-1,q=Pr(H0((h-d)/(_||1)),0),J=Me(q);q--;)J[F?q:++V]=d,d+=_;return J}function aC(d,h){var _="";if(!d||h<1||h>j)return _;do h%2&&(_+=d),h=W0(h/2),h&&(d+=d);while(h);return _}function Zt(d,h){return SC(pI(d,h,Oo),d+"")}function DY(d){return xE(Wd(d))}function jY(d,h){var _=Wd(d);return av(_,Du(h,0,_.length))}function gh(d,h,_,F){if(!ir(d))return d;h=wl(h,d);for(var V=-1,q=h.length,J=q-1,ae=d;ae!=null&&++VV?0:V+h),_=_>V?V:_,_<0&&(_+=V),V=h>_?0:_-h>>>0,h>>>=0;for(var q=Me(V);++F>>1,J=d[q];J!==null&&!ni(J)&&(_?J<=h:J=o){var He=h?null:ZY(d);if(He)return R0(He);J=!1,V=ah,ve=new Lu}else ve=h?[]:ae;e:for(;++F=F?d:Ii(d,h,_)}var VE=TK||function(d){return Vr.clearTimeout(d)};function UE(d,h){if(h)return d.slice();var _=d.length,F=fE?fE(_):new d.constructor(_);return d.copy(F),F}function fC(d){var h=new d.constructor(d.byteLength);return new j0(h).set(new j0(d)),h}function WY(d,h){var _=h?fC(d.buffer):d.buffer;return new d.constructor(_,d.byteOffset,d.byteLength)}function VY(d){var h=new d.constructor(d.source,Fe.exec(d));return h.lastIndex=d.lastIndex,h}function UY(d){return dh?Ln(dh.call(d)):{}}function GE(d,h){var _=h?fC(d.buffer):d.buffer;return new d.constructor(_,d.byteOffset,d.length)}function qE(d,h){if(d!==h){var _=d!==n,F=d===null,V=d===d,q=ni(d),J=h!==n,ae=h===null,ve=h===h,He=ni(h);if(!ae&&!He&&!q&&d>h||q&&J&&ve&&!ae&&!He||F&&J&&ve||!_&&ve||!V)return 1;if(!F&&!q&&!He&&d=ae)return ve;var He=_[F];return ve*(He=="desc"?-1:1)}}return d.index-h.index}function KE(d,h,_,F){for(var V=-1,q=d.length,J=_.length,ae=-1,ve=h.length,He=Pr(q-J,0),We=Me(ve+He),Ge=!F;++ae1?_[V-1]:n,J=V>2?_[2]:n;for(q=d.length>3&&typeof q=="function"?(V--,q):n,J&&go(_[0],_[1],J)&&(q=V<3?n:q,V=1),h=Ln(h);++F-1?V[q?h[J]:J]:n}}function eI(d){return Os(function(h){var _=h.length,F=_,V=Ti.prototype.thru;for(d&&h.reverse();F--;){var q=h[F];if(typeof q!="function")throw new Mi(a);if(V&&!J&&ov(q)=="wrapper")var J=new Ti([],!0)}for(F=J?F:_;++F<_;){q=h[F];var ae=ov(q),ve=ae=="wrapper"?vC(q):n;ve&&wC(ve[0])&&ve[1]==(M|S|T|I)&&!ve[4].length&&ve[9]==1?J=J[ov(ve[0])].apply(J,ve[3]):J=q.length==1&&wC(q)?J[ae]():J.thru(q)}return function(){var He=arguments,We=He[0];if(J&&He.length==1&&Bt(We))return J.plant(We).value();for(var Ge=0,st=_?h[Ge].apply(this,He):We;++Ge<_;)st=h[Ge].call(this,st);return st}})}function ev(d,h,_,F,V,q,J,ae,ve,He){var We=h&M,Ge=h&C,st=h&x,wt=h&(S|$),Et=h&N,qt=st?n:vh(d);function It(){for(var tn=arguments.length,sn=Me(tn),ri=tn;ri--;)sn[ri]=arguments[ri];if(wt)var vo=Bd(It),oi=lK(sn,vo);if(F&&(sn=KE(sn,F,V,wt)),q&&(sn=YE(sn,q,J,wt)),tn-=oi,wt&&tn1&&sn.reverse(),We&&veae))return!1;var He=q.get(d),We=q.get(h);if(He&&We)return He==h&&We==d;var Ge=-1,st=!0,wt=_&b?new Lu:n;for(q.set(d,h),q.set(h,d);++Ge1?"& ":"")+h[F],h=h.join(_>2?", ":" "),d.replace(mt,`{ -/* [wrapped with `+h+`] */ -`)}function lX(d){return Bt(d)||Bu(d)||!!(mE&&d&&d[mE])}function As(d,h){var _=typeof d;return h=h??j,!!h&&(_=="number"||_!="symbol"&&ct.test(d))&&d>-1&&d%1==0&&d0){if(++h>=z)return arguments[0]}else h=0;return d.apply(n,arguments)}}function av(d,h){var _=-1,F=d.length,V=F-1;for(h=h===n?F:h;++_1?d[h-1]:n;return _=typeof _=="function"?(d.pop(),_):n,_I(d,_)});function kI(d){var h=G(d);return h.__chain__=!0,h}function bQ(d,h){return h(d),d}function sv(d,h){return h(d)}var xQ=Os(function(d){var h=d.length,_=h?d[0]:0,F=this.__wrapped__,V=function(q){return X2(q,d)};return h>1||this.__actions__.length||!(F instanceof rn)||!As(_)?this.thru(V):(F=F.slice(_,+_+(h?1:0)),F.__actions__.push({func:sv,args:[V],thisArg:n}),new Ti(F,this.__chain__).thru(function(q){return h&&!q.length&&q.push(n),q}))});function wQ(){return kI(this)}function CQ(){return new Ti(this.value(),this.__chain__)}function SQ(){this.__values__===n&&(this.__values__=zI(this.value()));var d=this.__index__>=this.__values__.length,h=d?n:this.__values__[this.__index__++];return{done:d,value:h}}function $Q(){return this}function _Q(d){for(var h,_=this;_ instanceof G0;){var F=bI(_);F.__index__=0,F.__values__=n,h?V.__wrapped__=F:h=F;var V=F;_=_.__wrapped__}return V.__wrapped__=d,h}function kQ(){var d=this.__wrapped__;if(d instanceof rn){var h=d;return this.__actions__.length&&(h=new rn(this)),h=h.reverse(),h.__actions__.push({func:sv,args:[$C],thisArg:n}),new Ti(h,this.__chain__)}return this.thru($C)}function PQ(){return HE(this.__wrapped__,this.__actions__)}var MQ=J0(function(d,h,_){kn.call(d,_)?++d[_]:Is(d,_,1)});function TQ(d,h,_){var F=Bt(d)?tE:bY;return _&&go(d,h,_)&&(h=n),F(d,Mt(h,3))}function EQ(d,h){var _=Bt(d)?ml:_E;return _(d,Mt(h,3))}var IQ=JE(xI),RQ=JE(wI);function OQ(d,h){return Ur(lv(d,h),1)}function AQ(d,h){return Ur(lv(d,h),B)}function FQ(d,h,_){return _=_===n?1:Gt(_),Ur(lv(d,h),_)}function PI(d,h){var _=Bt(d)?Pi:bl;return _(d,Mt(h,3))}function MI(d,h){var _=Bt(d)?eK:$E;return _(d,Mt(h,3))}var LQ=J0(function(d,h,_){kn.call(d,_)?d[_].push(h):Is(d,_,[h])});function DQ(d,h,_,F){d=Io(d)?d:Wd(d),_=_&&!F?Gt(_):0;var V=d.length;return _<0&&(_=Pr(V+_,0)),pv(d)?_<=V&&d.indexOf(h,_)>-1:!!V&&Id(d,h,_)>-1}var jQ=Zt(function(d,h,_){var F=-1,V=typeof h=="function",q=Io(d)?Me(d.length):[];return bl(d,function(J){q[++F]=V?Jo(h,J,_):hh(J,h,_)}),q}),NQ=J0(function(d,h,_){Is(d,_,h)});function lv(d,h){var _=Bt(d)?er:IE;return _(d,Mt(h,3))}function zQ(d,h,_,F){return d==null?[]:(Bt(h)||(h=h==null?[]:[h]),_=F?n:_,Bt(_)||(_=_==null?[]:[_]),FE(d,h,_))}var BQ=J0(function(d,h,_){d[_?0:1].push(h)},function(){return[[],[]]});function HQ(d,h,_){var F=Bt(d)?D2:iE,V=arguments.length<3;return F(d,Mt(h,4),_,V,bl)}function WQ(d,h,_){var F=Bt(d)?tK:iE,V=arguments.length<3;return F(d,Mt(h,4),_,V,$E)}function VQ(d,h){var _=Bt(d)?ml:_E;return _(d,dv(Mt(h,3)))}function UQ(d){var h=Bt(d)?xE:DY;return h(d)}function GQ(d,h,_){(_?go(d,h,_):h===n)?h=1:h=Gt(h);var F=Bt(d)?hY:jY;return F(d,h)}function qQ(d){var h=Bt(d)?mY:zY;return h(d)}function KQ(d){if(d==null)return 0;if(Io(d))return pv(d)?Od(d):d.length;var h=to(d);return h==$e||h==Oe?d.size:nC(d).length}function YQ(d,h,_){var F=Bt(d)?j2:BY;return _&&go(d,h,_)&&(h=n),F(d,Mt(h,3))}var XQ=Zt(function(d,h){if(d==null)return[];var _=h.length;return _>1&&go(d,h[0],h[1])?h=[]:_>2&&go(h[0],h[1],h[2])&&(h=[h[0]]),FE(d,Ur(h,1),[])}),uv=EK||function(){return Vr.Date.now()};function QQ(d,h){if(typeof h!="function")throw new Mi(a);return d=Gt(d),function(){if(--d<1)return h.apply(this,arguments)}}function TI(d,h,_){return h=_?n:h,h=d&&h==null?d.length:h,Rs(d,M,n,n,n,n,h)}function EI(d,h){var _;if(typeof h!="function")throw new Mi(a);return d=Gt(d),function(){return--d>0&&(_=h.apply(this,arguments)),d<=1&&(h=n),_}}var kC=Zt(function(d,h,_){var F=C;if(_.length){var V=vl(_,Bd(kC));F|=T}return Rs(d,F,h,_,V)}),II=Zt(function(d,h,_){var F=C|x;if(_.length){var V=vl(_,Bd(II));F|=T}return Rs(h,F,d,_,V)});function RI(d,h,_){h=_?n:h;var F=Rs(d,S,n,n,n,n,n,h);return F.placeholder=RI.placeholder,F}function OI(d,h,_){h=_?n:h;var F=Rs(d,$,n,n,n,n,n,h);return F.placeholder=OI.placeholder,F}function AI(d,h,_){var F,V,q,J,ae,ve,He=0,We=!1,Ge=!1,st=!0;if(typeof d!="function")throw new Mi(a);h=Oi(h)||0,ir(_)&&(We=!!_.leading,Ge="maxWait"in _,q=Ge?Pr(Oi(_.maxWait)||0,h):q,st="trailing"in _?!!_.trailing:st);function wt(vr){var fa=F,Ds=V;return F=V=n,He=vr,J=d.apply(Ds,fa),J}function Et(vr){return He=vr,ae=bh(tn,h),We?wt(vr):J}function qt(vr){var fa=vr-ve,Ds=vr-He,JI=h-fa;return Ge?eo(JI,q-Ds):JI}function It(vr){var fa=vr-ve,Ds=vr-He;return ve===n||fa>=h||fa<0||Ge&&Ds>=q}function tn(){var vr=uv();if(It(vr))return sn(vr);ae=bh(tn,qt(vr))}function sn(vr){return ae=n,st&&F?wt(vr):(F=V=n,J)}function ri(){ae!==n&&VE(ae),He=0,F=ve=V=ae=n}function vo(){return ae===n?J:sn(uv())}function oi(){var vr=uv(),fa=It(vr);if(F=arguments,V=this,ve=vr,fa){if(ae===n)return Et(ve);if(Ge)return VE(ae),ae=bh(tn,h),wt(ve)}return ae===n&&(ae=bh(tn,h)),J}return oi.cancel=ri,oi.flush=vo,oi}var ZQ=Zt(function(d,h){return SE(d,1,h)}),JQ=Zt(function(d,h,_){return SE(d,Oi(h)||0,_)});function eZ(d){return Rs(d,N)}function cv(d,h){if(typeof d!="function"||h!=null&&typeof h!="function")throw new Mi(a);var _=function(){var F=arguments,V=h?h.apply(this,F):F[0],q=_.cache;if(q.has(V))return q.get(V);var J=d.apply(this,F);return _.cache=q.set(V,J)||q,J};return _.cache=new(cv.Cache||Es),_}cv.Cache=Es;function dv(d){if(typeof d!="function")throw new Mi(a);return function(){var h=arguments;switch(h.length){case 0:return!d.call(this);case 1:return!d.call(this,h[0]);case 2:return!d.call(this,h[0],h[1]);case 3:return!d.call(this,h[0],h[1],h[2])}return!d.apply(this,h)}}function tZ(d){return EI(2,d)}var nZ=HY(function(d,h){h=h.length==1&&Bt(h[0])?er(h[0],ei(Mt())):er(Ur(h,1),ei(Mt()));var _=h.length;return Zt(function(F){for(var V=-1,q=eo(F.length,_);++V=h}),Bu=ME(function(){return arguments}())?ME:function(d){return cr(d)&&kn.call(d,"callee")&&!hE.call(d,"callee")},Bt=Me.isArray,vZ=Y3?ei(Y3):_Y;function Io(d){return d!=null&&fv(d.length)&&!Fs(d)}function gr(d){return cr(d)&&Io(d)}function yZ(d){return d===!0||d===!1||cr(d)&&mo(d)==xe}var Sl=RK||jC,bZ=X3?ei(X3):kY;function xZ(d){return cr(d)&&d.nodeType===1&&!xh(d)}function wZ(d){if(d==null)return!0;if(Io(d)&&(Bt(d)||typeof d=="string"||typeof d.splice=="function"||Sl(d)||Hd(d)||Bu(d)))return!d.length;var h=to(d);if(h==$e||h==Oe)return!d.size;if(yh(d))return!nC(d).length;for(var _ in d)if(kn.call(d,_))return!1;return!0}function CZ(d,h){return mh(d,h)}function SZ(d,h,_){_=typeof _=="function"?_:n;var F=_?_(d,h):n;return F===n?mh(d,h,n,_):!!F}function MC(d){if(!cr(d))return!1;var h=mo(d);return h==de||h==Se||typeof d.message=="string"&&typeof d.name=="string"&&!xh(d)}function $Z(d){return typeof d=="number"&&gE(d)}function Fs(d){if(!ir(d))return!1;var h=mo(d);return h==ie||h==Pe||h==ge||h==Le}function LI(d){return typeof d=="number"&&d==Gt(d)}function fv(d){return typeof d=="number"&&d>-1&&d%1==0&&d<=j}function ir(d){var h=typeof d;return d!=null&&(h=="object"||h=="function")}function cr(d){return d!=null&&typeof d=="object"}var DI=Q3?ei(Q3):MY;function _Z(d,h){return d===h||tC(d,h,yC(h))}function kZ(d,h,_){return _=typeof _=="function"?_:n,tC(d,h,yC(h),_)}function PZ(d){return jI(d)&&d!=+d}function MZ(d){if(dX(d))throw new Nt(i);return TE(d)}function TZ(d){return d===null}function EZ(d){return d==null}function jI(d){return typeof d=="number"||cr(d)&&mo(d)==me}function xh(d){if(!cr(d)||mo(d)!=ce)return!1;var h=N0(d);if(h===null)return!0;var _=kn.call(h,"constructor")&&h.constructor;return typeof _=="function"&&_ instanceof _&&F0.call(_)==kK}var TC=Z3?ei(Z3):TY;function IZ(d){return LI(d)&&d>=-j&&d<=j}var NI=J3?ei(J3):EY;function pv(d){return typeof d=="string"||!Bt(d)&&cr(d)&&mo(d)==K}function ni(d){return typeof d=="symbol"||cr(d)&&mo(d)==ee}var Hd=eE?ei(eE):IY;function RZ(d){return d===n}function OZ(d){return cr(d)&&to(d)==ye}function AZ(d){return cr(d)&&mo(d)==De}var FZ=rv(rC),LZ=rv(function(d,h){return d<=h});function zI(d){if(!d)return[];if(Io(d))return pv(d)?ua(d):Eo(d);if(sh&&d[sh])return hK(d[sh]());var h=to(d),_=h==$e?V2:h==Oe?R0:Wd;return _(d)}function Ls(d){if(!d)return d===0?d:0;if(d=Oi(d),d===B||d===-B){var h=d<0?-1:1;return h*W}return d===d?d:0}function Gt(d){var h=Ls(d),_=h%1;return h===h?_?h-_:h:0}function BI(d){return d?Du(Gt(d),0,Z):0}function Oi(d){if(typeof d=="number")return d;if(ni(d))return U;if(ir(d)){var h=typeof d.valueOf=="function"?d.valueOf():d;d=ir(h)?h+"":h}if(typeof d!="string")return d===0?d:+d;d=aE(d);var _=Tt.test(d);return _||_n.test(d)?Qq(d.slice(2),_?2:8):rt.test(d)?U:+d}function HI(d){return Fa(d,Ro(d))}function DZ(d){return d?Du(Gt(d),-j,j):d===0?d:0}function Cn(d){return d==null?"":ti(d)}var jZ=Nd(function(d,h){if(yh(h)||Io(h)){Fa(h,Lr(h),d);return}for(var _ in h)kn.call(h,_)&&fh(d,_,h[_])}),WI=Nd(function(d,h){Fa(h,Ro(h),d)}),hv=Nd(function(d,h,_,F){Fa(h,Ro(h),d,F)}),NZ=Nd(function(d,h,_,F){Fa(h,Lr(h),d,F)}),zZ=Os(X2);function BZ(d,h){var _=jd(d);return h==null?_:wE(_,h)}var HZ=Zt(function(d,h){d=Ln(d);var _=-1,F=h.length,V=F>2?h[2]:n;for(V&&go(h[0],h[1],V)&&(F=1);++_1),q}),Fa(d,gC(d),_),F&&(_=Ei(_,f|p|y,JY));for(var V=h.length;V--;)lC(_,h[V]);return _});function aJ(d,h){return UI(d,dv(Mt(h)))}var sJ=Os(function(d,h){return d==null?{}:AY(d,h)});function UI(d,h){if(d==null)return{};var _=er(gC(d),function(F){return[F]});return h=Mt(h),LE(d,_,function(F,V){return h(F,V[0])})}function lJ(d,h,_){h=wl(h,d);var F=-1,V=h.length;for(V||(V=1,d=n);++Fh){var F=d;d=h,h=F}if(_||d%1||h%1){var V=vE();return eo(d+V*(h-d+Xq("1e-"+((V+"").length-1))),h)}return iC(d,h)}var bJ=zd(function(d,h,_){return h=h.toLowerCase(),d+(_?KI(h):h)});function KI(d){return RC(Cn(d).toLowerCase())}function YI(d){return d=Cn(d),d&&d.replace(gt,uK).replace(zq,"")}function xJ(d,h,_){d=Cn(d),h=ti(h);var F=d.length;_=_===n?F:Du(Gt(_),0,F);var V=_;return _-=h.length,_>=0&&d.slice(_,V)==h}function wJ(d){return d=Cn(d),d&&ht.test(d)?d.replace(nt,cK):d}function CJ(d){return d=Cn(d),d&&un.test(d)?d.replace(zt,"\\$&"):d}var SJ=zd(function(d,h,_){return d+(_?"-":"")+h.toLowerCase()}),$J=zd(function(d,h,_){return d+(_?" ":"")+h.toLowerCase()}),_J=ZE("toLowerCase");function kJ(d,h,_){d=Cn(d),h=Gt(h);var F=h?Od(d):0;if(!h||F>=h)return d;var V=(h-F)/2;return nv(W0(V),_)+d+nv(H0(V),_)}function PJ(d,h,_){d=Cn(d),h=Gt(h);var F=h?Od(d):0;return h&&F>>0,_?(d=Cn(d),d&&(typeof h=="string"||h!=null&&!TC(h))&&(h=ti(h),!h&&Rd(d))?Cl(ua(d),0,_):d.split(h,_)):[]}var AJ=zd(function(d,h,_){return d+(_?" ":"")+RC(h)});function FJ(d,h,_){return d=Cn(d),_=_==null?0:Du(Gt(_),0,d.length),h=ti(h),d.slice(_,_+h.length)==h}function LJ(d,h,_){var F=G.templateSettings;_&&go(d,h,_)&&(h=n),d=Cn(d),h=hv({},h,F,iI);var V=hv({},h.imports,F.imports,iI),q=Lr(V),J=W2(V,q),ae,ve,He=0,We=h.interpolate||or,Ge="__p += '",st=U2((h.escape||or).source+"|"+We.source+"|"+(We===jt?we:or).source+"|"+(h.evaluate||or).source+"|$","g"),wt="//# sourceURL="+(kn.call(h,"sourceURL")?(h.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Uq+"]")+` -`;d.replace(st,function(It,tn,sn,ri,vo,oi){return sn||(sn=ri),Ge+=d.slice(He,oi).replace(Md,dK),tn&&(ae=!0,Ge+=`' + -__e(`+tn+`) + -'`),vo&&(ve=!0,Ge+=`'; -`+vo+`; -__p += '`),sn&&(Ge+=`' + -((__t = (`+sn+`)) == null ? '' : __t) + -'`),He=oi+It.length,It}),Ge+=`'; -`;var Et=kn.call(h,"variable")&&h.variable;if(!Et)Ge=`with (obj) { -`+Ge+` -} -`;else if(Ut.test(Et))throw new Nt(s);Ge=(ve?Ge.replace(Ve,""):Ge).replace(Ke,"$1").replace(at,"$1;"),Ge="function("+(Et||"obj")+`) { -`+(Et?"":`obj || (obj = {}); -`)+"var __t, __p = ''"+(ae?", __e = _.escape":"")+(ve?`, __j = Array.prototype.join; -function print() { __p += __j.call(arguments, '') } -`:`; -`)+Ge+`return __p -}`;var qt=QI(function(){return yn(q,wt+"return "+Ge).apply(n,J)});if(qt.source=Ge,MC(qt))throw qt;return qt}function DJ(d){return Cn(d).toLowerCase()}function jJ(d){return Cn(d).toUpperCase()}function NJ(d,h,_){if(d=Cn(d),d&&(_||h===n))return aE(d);if(!d||!(h=ti(h)))return d;var F=ua(d),V=ua(h),q=sE(F,V),J=lE(F,V)+1;return Cl(F,q,J).join("")}function zJ(d,h,_){if(d=Cn(d),d&&(_||h===n))return d.slice(0,cE(d)+1);if(!d||!(h=ti(h)))return d;var F=ua(d),V=lE(F,ua(h))+1;return Cl(F,0,V).join("")}function BJ(d,h,_){if(d=Cn(d),d&&(_||h===n))return d.replace(cn,"");if(!d||!(h=ti(h)))return d;var F=ua(d),V=sE(F,ua(h));return Cl(F,V).join("")}function HJ(d,h){var _=E,F=A;if(ir(h)){var V="separator"in h?h.separator:V;_="length"in h?Gt(h.length):_,F="omission"in h?ti(h.omission):F}d=Cn(d);var q=d.length;if(Rd(d)){var J=ua(d);q=J.length}if(_>=q)return d;var ae=_-Od(F);if(ae<1)return F;var ve=J?Cl(J,0,ae).join(""):d.slice(0,ae);if(V===n)return ve+F;if(J&&(ae+=ve.length-ae),TC(V)){if(d.slice(ae).search(V)){var He,We=ve;for(V.global||(V=U2(V.source,Cn(Fe.exec(V))+"g")),V.lastIndex=0;He=V.exec(We);)var Ge=He.index;ve=ve.slice(0,Ge===n?ae:Ge)}}else if(d.indexOf(ti(V),ae)!=ae){var st=ve.lastIndexOf(V);st>-1&&(ve=ve.slice(0,st))}return ve+F}function WJ(d){return d=Cn(d),d&&_t.test(d)?d.replace(Je,yK):d}var VJ=zd(function(d,h,_){return d+(_?" ":"")+h.toUpperCase()}),RC=ZE("toUpperCase");function XI(d,h,_){return d=Cn(d),h=_?n:h,h===n?pK(d)?wK(d):oK(d):d.match(h)||[]}var QI=Zt(function(d,h){try{return Jo(d,n,h)}catch(_){return MC(_)?_:new Nt(_)}}),UJ=Os(function(d,h){return Pi(h,function(_){_=La(_),Is(d,_,kC(d[_],d))}),d});function GJ(d){var h=d==null?0:d.length,_=Mt();return d=h?er(d,function(F){if(typeof F[1]!="function")throw new Mi(a);return[_(F[0]),F[1]]}):[],Zt(function(F){for(var V=-1;++Vj)return[];var _=Z,F=eo(d,Z);h=Mt(h),d-=Z;for(var V=H2(F,h);++_0||h<0)?new rn(_):(d<0?_=_.takeRight(-d):d&&(_=_.drop(d)),h!==n&&(h=Gt(h),_=h<0?_.dropRight(-h):_.take(h-d)),_)},rn.prototype.takeRightWhile=function(d){return this.reverse().takeWhile(d).reverse()},rn.prototype.toArray=function(){return this.take(Z)},Aa(rn.prototype,function(d,h){var _=/^(?:filter|find|map|reject)|While$/.test(h),F=/^(?:head|last)$/.test(h),V=G[F?"take"+(h=="last"?"Right":""):h],q=F||/^find/.test(h);V&&(G.prototype[h]=function(){var J=this.__wrapped__,ae=F?[1]:arguments,ve=J instanceof rn,He=ae[0],We=ve||Bt(J),Ge=function(tn){var sn=V.apply(G,gl([tn],ae));return F&&st?sn[0]:sn};We&&_&&typeof He=="function"&&He.length!=1&&(ve=We=!1);var st=this.__chain__,wt=!!this.__actions__.length,Et=q&&!st,qt=ve&&!wt;if(!q&&We){J=qt?J:new rn(this);var It=d.apply(J,ae);return It.__actions__.push({func:sv,args:[Ge],thisArg:n}),new Ti(It,st)}return Et&&qt?d.apply(this,ae):(It=this.thru(Ge),Et?F?It.value()[0]:It.value():It)})}),Pi(["pop","push","shift","sort","splice","unshift"],function(d){var h=O0[d],_=/^(?:push|sort|unshift)$/.test(d)?"tap":"thru",F=/^(?:pop|shift)$/.test(d);G.prototype[d]=function(){var V=arguments;if(F&&!this.__chain__){var q=this.value();return h.apply(Bt(q)?q:[],V)}return this[_](function(J){return h.apply(Bt(J)?J:[],V)})}}),Aa(rn.prototype,function(d,h){var _=G[h];if(_){var F=_.name+"";kn.call(Dd,F)||(Dd[F]=[]),Dd[F].push({name:h,func:_})}}),Dd[ev(n,x).name]=[{name:"wrapper",func:n}],rn.prototype.clone=WK,rn.prototype.reverse=VK,rn.prototype.value=UK,G.prototype.at=xQ,G.prototype.chain=wQ,G.prototype.commit=CQ,G.prototype.next=SQ,G.prototype.plant=_Q,G.prototype.reverse=kQ,G.prototype.toJSON=G.prototype.valueOf=G.prototype.value=PQ,G.prototype.first=G.prototype.head,sh&&(G.prototype[sh]=$Q),G},Ad=CK();Ou?((Ou.exports=Ad)._=Ad,A2._=Ad):Vr._=Ad}).call(Vs)})(Hy,Hy.exports);var yi=Hy.exports;function iMe(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var kB=iMe;const St=Or(kB);function PB(e,t){return et?1:e>=t?0:NaN}function gw(e){let t=e,n=e;e.length===1&&(t=(a,s)=>e(a)-s,n=aMe(e));function r(a,s,l,u){for(l==null&&(l=0),u==null&&(u=a.length);l>>1;n(a[c],s)<0?l=c+1:u=c}return l}function o(a,s,l,u){for(l==null&&(l=0),u==null&&(u=a.length);l>>1;n(a[c],s)>0?u=c:l=c+1}return l}function i(a,s,l,u){l==null&&(l=0),u==null&&(u=a.length);const c=r(a,s,l,u-1);return c>l&&t(a[c-1],s)>-t(a[c],s)?c-1:c}return{left:r,center:i,right:o}}function aMe(e){return(t,n)=>PB(e(t),n)}function sMe(e){return e===null?NaN:+e}const lMe=gw(PB),uMe=lMe.right;gw(sMe).center;const MB=uMe;class Y6 extends Map{constructor(t,n=fMe){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(X6(this,t))}has(t){return super.has(X6(this,t))}set(t,n){return super.set(cMe(this,t),n)}delete(t){return super.delete(dMe(this,t))}}function X6({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function cMe({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function dMe({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(n),e.delete(r)),n}function fMe(e){return e!==null&&typeof e=="object"?e.valueOf():e}var sk=Math.sqrt(50),lk=Math.sqrt(10),uk=Math.sqrt(2);function yp(e,t,n){var r,o=-1,i,a,s;if(t=+t,e=+e,n=+n,e===t&&n>0)return[e];if((r=t0){let l=Math.round(e/s),u=Math.round(t/s);for(l*st&&--u,a=new Array(i=u-l+1);++ot&&--u,a=new Array(i=u-l+1);++o=0?(i>=sk?10:i>=lk?5:i>=uk?2:1)*Math.pow(10,o):-Math.pow(10,-o)/(i>=sk?10:i>=lk?5:i>=uk?2:1)}function bp(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),o=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),i=r/o;return i>=sk?o*=10:i>=lk?o*=5:i>=uk&&(o*=2),tt&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function vMe(e,t,n){var r=e[0],o=e[1],i=t[0],a=t[1];return o2?yMe:vMe,l=u=null,f}function f(p){return p==null||isNaN(p=+p)?i:(l||(l=s(e.map(r),t,n)))(r(a(p)))}return f.invert=function(p){return a(o((u||(u=s(t,e.map(r),kg)))(p)))},f.domain=function(p){return arguments.length?(e=Array.from(p,mMe),c()):e.slice()},f.range=function(p){return arguments.length?(t=Array.from(p),c()):t.slice()},f.rangeRound=function(p){return t=Array.from(p),n=$B,c()},f.clamp=function(p){return arguments.length?(a=p?!0:kf,c()):a!==kf},f.interpolate=function(p){return arguments.length?(n=p,c()):n},f.unknown=function(p){return arguments.length?(i=p,f):i},function(p,y){return r=p,o=y,c()}}function IB(){return D5()(kf,kf)}function bMe(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Wy(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 xp(e){return e=Wy(Math.abs(e)),e?e[1]:NaN}function xMe(e,t){return function(n,r){for(var o=n.length,i=[],a=0,s=e[0],l=0;o>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),i.push(n.substring(o-=s,o+s)),!((l+=s+1)>r));)s=e[a=(a+1)%e.length];return i.reverse().join(t)}}function wMe(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var CMe=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function wp(e){if(!(t=CMe.exec(e)))throw new Error("invalid format: "+e);var t;return new j5({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]})}wp.prototype=j5.prototype;function j5(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+""}j5.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 SMe(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 RB;function $Me(e,t){var n=Wy(e,t);if(!n)return e+"";var r=n[0],o=n[1],i=o-(RB=Math.max(-8,Math.min(8,Math.floor(o/3)))*3)+1,a=r.length;return i===a?r:i>a?r+new Array(i-a+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+Wy(e,Math.max(0,t+i-1))[0]}function J6(e,t){var n=Wy(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 eF={"%":function(e,t){return(e*100).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:bMe,e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return J6(e*100,t)},r:J6,s:$Me,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function tF(e){return e}var nF=Array.prototype.map,rF=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function _Me(e){var t=e.grouping===void 0||e.thousands===void 0?tF:xMe(nF.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?tF:wMe(nF.call(e.numerals,String)),a=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"-":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function u(f){f=wp(f);var p=f.fill,y=f.align,v=f.sign,b=f.symbol,C=f.zero,x=f.width,w=f.comma,S=f.precision,$=f.trim,T=f.type;T==="n"?(w=!0,T="g"):eF[T]||(S===void 0&&(S=12),$=!0,T="g"),(C||p==="0"&&y==="=")&&(C=!0,p="0",y="=");var k=b==="$"?n:b==="#"&&/[boxX]/.test(T)?"0"+T.toLowerCase():"",M=b==="$"?r:/[%p]/.test(T)?a:"",I=eF[T],N=/[defgprs%]/.test(T);S=S===void 0?6:/[gprs]/.test(T)?Math.max(1,Math.min(21,S)):Math.max(0,Math.min(20,S));function E(A){var z=k,L=M,O,D,H;if(T==="c")L=I(A)+L,A="";else{A=+A;var B=A<0||1/A<0;if(A=isNaN(A)?l:I(Math.abs(A),S),$&&(A=SMe(A)),B&&+A==0&&v!=="+"&&(B=!1),z=(B?v==="("?v:s:v==="-"||v==="("?"":v)+z,L=(T==="s"?rF[8+RB/3]:"")+L+(B&&v==="("?")":""),N){for(O=-1,D=A.length;++OH||H>57){L=(H===46?o+A.slice(O+1):A.slice(O))+L,A=A.slice(0,O);break}}}w&&!C&&(A=t(A,1/0));var j=z.length+A.length+L.length,W=j>1)+z+A+L+W.slice(j);break;default:A=W+z+A+L;break}return i(A)}return E.toString=function(){return f+""},E}function c(f,p){var y=u((f=wp(f),f.type="f",f)),v=Math.max(-8,Math.min(8,Math.floor(xp(p)/3)))*3,b=Math.pow(10,-v),C=rF[8+v/3];return function(x){return y(b*x)+C}}return{format:u,formatPrefix:c}}var qv,Pu,N5;kMe({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function kMe(e){return qv=_Me(e),Pu=qv.format,N5=qv.formatPrefix,qv}function OB(e){return Math.max(0,-xp(Math.abs(e)))}function AB(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(xp(t)/3)))*3-xp(Math.abs(e)))}function FB(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,xp(t)-xp(e))+1}function PMe(e,t,n,r){var o=bp(e,t,n),i;switch(r=wp(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(i=AB(o,a))&&(r.precision=i),N5(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(i=FB(o,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=i-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(i=OB(o))&&(r.precision=i-(r.type==="%")*2);break}}return Pu(r)}function LB(e){var t=e.domain;return e.ticks=function(n){var r=t();return yp(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var o=t();return PMe(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,a=r[o],s=r[i],l,u,c=10;for(s0;){if(u=F5(a,s,n),u===l)return r[o]=a,r[i]=s,t(r);if(u>0)a=Math.floor(a/u)*u,s=Math.ceil(s/u)*u;else if(u<0)a=Math.ceil(a*u)/u,s=Math.floor(s*u)/u;else break;l=u}return e},e}function DB(){var e=IB();return e.copy=function(){return vw(e,DB())},dd.apply(e,arguments),LB(e)}function jB(e,t){e=e.slice();var n=0,r=e.length-1,o=e[n],i=e[r],a;return i0){for(;p<=y;++p)for(b=1,v=i(p);bc)break;w.push(C)}}else for(;p<=y;++p)for(b=r-1,v=i(p);b>=1;--b)if(C=v*b,!(Cc)break;w.push(C)}w.length*20))return l;do l.push(u=new Date(+i)),t(i,s),e(i);while(u=a)for(;e(a),!i(a);)a.setTime(a-1)},function(a,s){if(a>=a)if(s<0)for(;++s<=0;)for(;t(a,-1),!i(a););else for(;--s>=0;)for(;t(a,1),!i(a););})},n&&(o.count=function(i,a){return NS.setTime(+i),zS.setTime(+a),e(NS),e(zS),Math.floor(n(NS,zS))},o.every=function(i){return i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?o.filter(r?function(a){return r(a)%i===0}:function(a){return o.count(0,a)%i===0}):o}),o}var Vy=Hr(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});Vy.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Hr(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):Vy};const FMe=Vy;Vy.range;const Ks=1e3,Gi=Ks*60,Ys=Gi*60,Gc=Ys*24,z5=Gc*7,uF=Gc*30,BS=Gc*365;var BB=Hr(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*Ks)},function(e,t){return(t-e)/Ks},function(e){return e.getUTCSeconds()});const Pf=BB;BB.range;var HB=Hr(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ks)},function(e,t){e.setTime(+e+t*Gi)},function(e,t){return(t-e)/Gi},function(e){return e.getMinutes()});const WB=HB;HB.range;var VB=Hr(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ks-e.getMinutes()*Gi)},function(e,t){e.setTime(+e+t*Ys)},function(e,t){return(t-e)/Ys},function(e){return e.getHours()});const UB=VB;VB.range;var GB=Hr(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Gi)/Gc,e=>e.getDate()-1);const qB=GB;GB.range;function fd(e){return Hr(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+n*7)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Gi)/z5})}var B5=fd(0),LMe=fd(1),DMe=fd(2),jMe=fd(3),NMe=fd(4),zMe=fd(5),BMe=fd(6);B5.range;LMe.range;DMe.range;jMe.range;NMe.range;zMe.range;BMe.range;var KB=Hr(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()});const YB=KB;KB.range;var H5=Hr(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});H5.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:Hr(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)})};const XB=H5;H5.range;var QB=Hr(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*Gi)},function(e,t){return(t-e)/Gi},function(e){return e.getUTCMinutes()});const ZB=QB;QB.range;var JB=Hr(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*Ys)},function(e,t){return(t-e)/Ys},function(e){return e.getUTCHours()});const eH=JB;JB.range;var tH=Hr(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/Gc},function(e){return e.getUTCDate()-1});const nH=tH;tH.range;function pd(e){return Hr(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n*7)},function(t,n){return(n-t)/z5})}var W5=pd(0),HMe=pd(1),WMe=pd(2),VMe=pd(3),UMe=pd(4),GMe=pd(5),qMe=pd(6);W5.range;HMe.range;WMe.range;VMe.range;UMe.range;GMe.range;qMe.range;var rH=Hr(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12},function(e){return e.getUTCMonth()});const oH=rH;rH.range;var V5=Hr(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});V5.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:Hr(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})};const iH=V5;V5.range;function aH(e,t,n,r,o,i){const a=[[Pf,1,Ks],[Pf,5,5*Ks],[Pf,15,15*Ks],[Pf,30,30*Ks],[i,1,Gi],[i,5,5*Gi],[i,15,15*Gi],[i,30,30*Gi],[o,1,Ys],[o,3,3*Ys],[o,6,6*Ys],[o,12,12*Ys],[r,1,Gc],[r,2,2*Gc],[n,1,z5],[t,1,uF],[t,3,3*uF],[e,1,BS]];function s(u,c,f){const p=cC).right(a,p);if(y===a.length)return e.every(bp(u/BS,c/BS,f));if(y===0)return FMe.every(Math.max(bp(u,c,f),1));const[v,b]=a[p/a[y-1][2]0))return l;do l.push(u=new Date(+i)),t(i,s),e(i);while(u=a)for(;e(a),!i(a);)a.setTime(a-1)},function(a,s){if(a>=a)if(s<0)for(;++s<=0;)for(;t(a,-1),!i(a););else for(;--s>=0;)for(;t(a,1),!i(a););})},n&&(o.count=function(i,a){return HS.setTime(+i),WS.setTime(+a),e(HS),e(WS),Math.floor(n(HS,WS))},o.every=function(i){return i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?o.filter(r?function(a){return r(a)%i===0}:function(a){return o.count(0,a)%i===0}):o}),o}var Uy=_r(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});Uy.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?_r(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):Uy};const cF=Uy;Uy.range;var Gy=1e3,qc=6e4,qy=36e5,sH=864e5,lH=6048e5,uH=_r(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*Gy)},function(e,t){return(t-e)/Gy},function(e){return e.getUTCSeconds()});const dF=uH;uH.range;var cH=_r(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Gy)},function(e,t){e.setTime(+e+t*qc)},function(e,t){return(t-e)/qc},function(e){return e.getMinutes()});const ZMe=cH;cH.range;var dH=_r(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Gy-e.getMinutes()*qc)},function(e,t){e.setTime(+e+t*qy)},function(e,t){return(t-e)/qy},function(e){return e.getHours()});const JMe=dH;dH.range;var fH=_r(function(e){e.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*qc)/sH},function(e){return e.getDate()-1});const pH=fH;fH.range;function hd(e){return _r(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+n*7)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*qc)/lH})}var Ky=hd(0),Pg=hd(1),hH=hd(2),mH=hd(3),Kc=hd(4),gH=hd(5),vH=hd(6);Ky.range;Pg.range;hH.range;mH.range;Kc.range;gH.range;vH.range;var yH=_r(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()});const e5e=yH;yH.range;var U5=_r(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});U5.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:_r(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)})};const Cp=U5;U5.range;var bH=_r(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*qc)},function(e,t){return(t-e)/qc},function(e){return e.getUTCMinutes()});const t5e=bH;bH.range;var xH=_r(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*qy)},function(e,t){return(t-e)/qy},function(e){return e.getUTCHours()});const n5e=xH;xH.range;var wH=_r(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/sH},function(e){return e.getUTCDate()-1});const CH=wH;wH.range;function md(e){return _r(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n*7)},function(t,n){return(n-t)/lH})}var Yy=md(0),Mg=md(1),SH=md(2),$H=md(3),Yc=md(4),_H=md(5),kH=md(6);Yy.range;Mg.range;SH.range;$H.range;Yc.range;_H.range;kH.range;var PH=_r(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12},function(e){return e.getUTCMonth()});const r5e=PH;PH.range;var G5=_r(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});G5.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:_r(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})};const Sp=G5;G5.range;function VS(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function US(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function qh(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function o5e(e){var t=e.dateTime,n=e.date,r=e.time,o=e.periods,i=e.days,a=e.shortDays,s=e.months,l=e.shortMonths,u=Kh(o),c=Yh(o),f=Kh(i),p=Yh(i),y=Kh(a),v=Yh(a),b=Kh(s),C=Yh(s),x=Kh(l),w=Yh(l),S={a:B,A:j,b:W,B:U,c:null,d:vF,e:vF,f:P5e,g:D5e,G:N5e,H:$5e,I:_5e,j:k5e,L:MH,m:M5e,M:T5e,p:Z,q:Y,Q:xF,s:wF,S:E5e,u:I5e,U:R5e,V:O5e,w:A5e,W:F5e,x:null,X:null,y:L5e,Y:j5e,Z:z5e,"%":bF},$={a:se,A:Q,b:ne,B:re,c:null,d:yF,e:yF,f:V5e,g:eTe,G:nTe,H:B5e,I:H5e,j:W5e,L:EH,m:U5e,M:G5e,p:ge,q:xe,Q:xF,s:wF,S:q5e,u:K5e,U:Y5e,V:X5e,w:Q5e,W:Z5e,x:null,X:null,y:J5e,Y:tTe,Z:rTe,"%":bF},T={a:E,A,b:z,B:L,c:O,d:mF,e:mF,f:x5e,g:hF,G:pF,H:gF,I:gF,j:g5e,L:b5e,m:m5e,M:v5e,p:N,q:h5e,Q:C5e,s:S5e,S:y5e,u:u5e,U:c5e,V:d5e,w:l5e,W:f5e,x:D,X:H,y:hF,Y:pF,Z:p5e,"%":w5e};S.x=k(n,S),S.X=k(r,S),S.c=k(t,S),$.x=k(n,$),$.X=k(r,$),$.c=k(t,$);function k(fe,Se){return function(de){var ie=[],Pe=-1,$e=0,me=fe.length,ue,ce,Te;for(de instanceof Date||(de=new Date(+de));++Pe53)return null;"w"in ie||(ie.w=1),"Z"in ie?($e=US(qh(ie.y,0,1)),me=$e.getUTCDay(),$e=me>4||me===0?Mg.ceil($e):Mg($e),$e=CH.offset($e,(ie.V-1)*7),ie.y=$e.getUTCFullYear(),ie.m=$e.getUTCMonth(),ie.d=$e.getUTCDate()+(ie.w+6)%7):($e=VS(qh(ie.y,0,1)),me=$e.getDay(),$e=me>4||me===0?Pg.ceil($e):Pg($e),$e=pH.offset($e,(ie.V-1)*7),ie.y=$e.getFullYear(),ie.m=$e.getMonth(),ie.d=$e.getDate()+(ie.w+6)%7)}else("W"in ie||"U"in ie)&&("w"in ie||(ie.w="u"in ie?ie.u%7:"W"in ie?1:0),me="Z"in ie?US(qh(ie.y,0,1)).getUTCDay():VS(qh(ie.y,0,1)).getDay(),ie.m=0,ie.d="W"in ie?(ie.w+6)%7+ie.W*7-(me+5)%7:ie.w+ie.U*7-(me+6)%7);return"Z"in ie?(ie.H+=ie.Z/100|0,ie.M+=ie.Z%100,US(ie)):VS(ie)}}function I(fe,Se,de,ie){for(var Pe=0,$e=Se.length,me=de.length,ue,ce;Pe<$e;){if(ie>=me)return-1;if(ue=Se.charCodeAt(Pe++),ue===37){if(ue=Se.charAt(Pe++),ce=T[ue in fF?Se.charAt(Pe++):ue],!ce||(ie=ce(fe,de,ie))<0)return-1}else if(ue!=de.charCodeAt(ie++))return-1}return ie}function N(fe,Se,de){var ie=u.exec(Se.slice(de));return ie?(fe.p=c.get(ie[0].toLowerCase()),de+ie[0].length):-1}function E(fe,Se,de){var ie=y.exec(Se.slice(de));return ie?(fe.w=v.get(ie[0].toLowerCase()),de+ie[0].length):-1}function A(fe,Se,de){var ie=f.exec(Se.slice(de));return ie?(fe.w=p.get(ie[0].toLowerCase()),de+ie[0].length):-1}function z(fe,Se,de){var ie=x.exec(Se.slice(de));return ie?(fe.m=w.get(ie[0].toLowerCase()),de+ie[0].length):-1}function L(fe,Se,de){var ie=b.exec(Se.slice(de));return ie?(fe.m=C.get(ie[0].toLowerCase()),de+ie[0].length):-1}function O(fe,Se,de){return I(fe,t,Se,de)}function D(fe,Se,de){return I(fe,n,Se,de)}function H(fe,Se,de){return I(fe,r,Se,de)}function B(fe){return a[fe.getDay()]}function j(fe){return i[fe.getDay()]}function W(fe){return l[fe.getMonth()]}function U(fe){return s[fe.getMonth()]}function Z(fe){return o[+(fe.getHours()>=12)]}function Y(fe){return 1+~~(fe.getMonth()/3)}function se(fe){return a[fe.getUTCDay()]}function Q(fe){return i[fe.getUTCDay()]}function ne(fe){return l[fe.getUTCMonth()]}function re(fe){return s[fe.getUTCMonth()]}function ge(fe){return o[+(fe.getUTCHours()>=12)]}function xe(fe){return 1+~~(fe.getUTCMonth()/3)}return{format:function(fe){var Se=k(fe+="",S);return Se.toString=function(){return fe},Se},parse:function(fe){var Se=M(fe+="",!1);return Se.toString=function(){return fe},Se},utcFormat:function(fe){var Se=k(fe+="",$);return Se.toString=function(){return fe},Se},utcParse:function(fe){var Se=M(fe+="",!0);return Se.toString=function(){return fe},Se}}}var fF={"-":"",_:" ",0:"0"},Wr=/^\s*\d+/,i5e=/^%/,a5e=/[\\^$*+?|[\]().{}]/g;function vn(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",i=o.length;return r+(i[t.toLowerCase(),n]))}function l5e(e,t,n){var r=Wr.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function u5e(e,t,n){var r=Wr.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function c5e(e,t,n){var r=Wr.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function d5e(e,t,n){var r=Wr.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function f5e(e,t,n){var r=Wr.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function pF(e,t,n){var r=Wr.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function hF(e,t,n){var r=Wr.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function p5e(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 h5e(e,t,n){var r=Wr.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function m5e(e,t,n){var r=Wr.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function mF(e,t,n){var r=Wr.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function g5e(e,t,n){var r=Wr.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function gF(e,t,n){var r=Wr.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function v5e(e,t,n){var r=Wr.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function y5e(e,t,n){var r=Wr.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function b5e(e,t,n){var r=Wr.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function x5e(e,t,n){var r=Wr.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function w5e(e,t,n){var r=i5e.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function C5e(e,t,n){var r=Wr.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function S5e(e,t,n){var r=Wr.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function vF(e,t){return vn(e.getDate(),t,2)}function $5e(e,t){return vn(e.getHours(),t,2)}function _5e(e,t){return vn(e.getHours()%12||12,t,2)}function k5e(e,t){return vn(1+pH.count(Cp(e),e),t,3)}function MH(e,t){return vn(e.getMilliseconds(),t,3)}function P5e(e,t){return MH(e,t)+"000"}function M5e(e,t){return vn(e.getMonth()+1,t,2)}function T5e(e,t){return vn(e.getMinutes(),t,2)}function E5e(e,t){return vn(e.getSeconds(),t,2)}function I5e(e){var t=e.getDay();return t===0?7:t}function R5e(e,t){return vn(Ky.count(Cp(e)-1,e),t,2)}function TH(e){var t=e.getDay();return t>=4||t===0?Kc(e):Kc.ceil(e)}function O5e(e,t){return e=TH(e),vn(Kc.count(Cp(e),e)+(Cp(e).getDay()===4),t,2)}function A5e(e){return e.getDay()}function F5e(e,t){return vn(Pg.count(Cp(e)-1,e),t,2)}function L5e(e,t){return vn(e.getFullYear()%100,t,2)}function D5e(e,t){return e=TH(e),vn(e.getFullYear()%100,t,2)}function j5e(e,t){return vn(e.getFullYear()%1e4,t,4)}function N5e(e,t){var n=e.getDay();return e=n>=4||n===0?Kc(e):Kc.ceil(e),vn(e.getFullYear()%1e4,t,4)}function z5e(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+vn(t/60|0,"0",2)+vn(t%60,"0",2)}function yF(e,t){return vn(e.getUTCDate(),t,2)}function B5e(e,t){return vn(e.getUTCHours(),t,2)}function H5e(e,t){return vn(e.getUTCHours()%12||12,t,2)}function W5e(e,t){return vn(1+CH.count(Sp(e),e),t,3)}function EH(e,t){return vn(e.getUTCMilliseconds(),t,3)}function V5e(e,t){return EH(e,t)+"000"}function U5e(e,t){return vn(e.getUTCMonth()+1,t,2)}function G5e(e,t){return vn(e.getUTCMinutes(),t,2)}function q5e(e,t){return vn(e.getUTCSeconds(),t,2)}function K5e(e){var t=e.getUTCDay();return t===0?7:t}function Y5e(e,t){return vn(Yy.count(Sp(e)-1,e),t,2)}function IH(e){var t=e.getUTCDay();return t>=4||t===0?Yc(e):Yc.ceil(e)}function X5e(e,t){return e=IH(e),vn(Yc.count(Sp(e),e)+(Sp(e).getUTCDay()===4),t,2)}function Q5e(e){return e.getUTCDay()}function Z5e(e,t){return vn(Mg.count(Sp(e)-1,e),t,2)}function J5e(e,t){return vn(e.getUTCFullYear()%100,t,2)}function eTe(e,t){return e=IH(e),vn(e.getUTCFullYear()%100,t,2)}function tTe(e,t){return vn(e.getUTCFullYear()%1e4,t,4)}function nTe(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Yc(e):Yc.ceil(e),vn(e.getUTCFullYear()%1e4,t,4)}function rTe(){return"+0000"}function bF(){return"%"}function xF(e){return+e}function wF(e){return Math.floor(+e/1e3)}var Jd,v0,RH,q5,OH;oTe({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 oTe(e){return Jd=o5e(e),v0=Jd.format,RH=Jd.parse,q5=Jd.utcFormat,OH=Jd.utcParse,Jd}function iTe(e){return new Date(e)}function aTe(e){return e instanceof Date?+e:+new Date(+e)}function K5(e,t,n,r,o,i,a,s,l,u){var c=IB(),f=c.invert,p=c.domain,y=u(".%L"),v=u(":%S"),b=u("%I:%M"),C=u("%I %p"),x=u("%a %d"),w=u("%b %d"),S=u("%B"),$=u("%Y");function T(k){return(l(k)QPe(e[e.length-1]);var yw=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(Qt);const uTe=Nn(yw);var bw=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(Qt);const cTe=Nn(bw);var xw=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(Qt);const dTe=Nn(xw);var ww=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(Qt);const fTe=Nn(ww);var Cw=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(Qt);const pTe=Nn(Cw);var Sw=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(Qt);const hTe=Nn(Sw);var $w=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(Qt);const mTe=Nn($w);var _w=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(Qt);const gTe=Nn(_w);var kw=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(Qt);const vTe=Nn(kw);var Pw=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(Qt);const yTe=Nn(Pw);var Mw=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(Qt);const bTe=Nn(Mw);var Tw=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(Qt);const xTe=Nn(Tw);var Ew=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(Qt);const wTe=Nn(Ew);var Iw=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(Qt);const CTe=Nn(Iw);var Rw=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(Qt);const STe=Nn(Rw);var Ow=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(Qt);const $Te=Nn(Ow);var Aw=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(Qt);const _Te=Nn(Aw);var Fw=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(Qt);const kTe=Nn(Fw);var Lw=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(Qt);const PTe=Nn(Lw);var Dw=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(Qt);const MTe=Nn(Dw);var jw=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(Qt);const TTe=Nn(jw);var Nw=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(Qt);const ETe=Nn(Nw);var zw=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(Qt);const ITe=Nn(zw);var Bw=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(Qt);const RTe=Nn(Bw);var Hw=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(Qt);const OTe=Nn(Hw);var Ww=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(Qt);const ATe=Nn(Ww);var Vw=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(Qt);const FTe=Nn(Vw);function LTe(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(-4.54-e*(35.34-e*(2381.73-e*(6402.7-e*(7024.72-e*2710.57)))))))+", "+Math.max(0,Math.min(255,Math.round(32.49+e*(170.73+e*(52.82-e*(131.46-e*(176.58-e*67.37)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+e*(442.36-e*(2482.43-e*(6167.24-e*(6614.94-e*2475.67)))))))+")"}function Uw(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function X5(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Qp(){}var Xc=.7,$p=1/Xc,qf="\\s*([+-]?\\d+)\\s*",Tg="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",ss="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",DTe=/^#([0-9a-f]{3,8})$/,jTe=new RegExp("^rgb\\("+[qf,qf,qf]+"\\)$"),NTe=new RegExp("^rgb\\("+[ss,ss,ss]+"\\)$"),zTe=new RegExp("^rgba\\("+[qf,qf,qf,Tg]+"\\)$"),BTe=new RegExp("^rgba\\("+[ss,ss,ss,Tg]+"\\)$"),HTe=new RegExp("^hsl\\("+[Tg,ss,ss]+"\\)$"),WTe=new RegExp("^hsla\\("+[Tg,ss,ss,Tg]+"\\)$"),CF={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Uw(Qp,Q5,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:SF,formatHex:SF,formatHsl:VTe,formatRgb:$F,toString:$F});function SF(){return this.rgb().formatHex()}function VTe(){return VH(this).formatHsl()}function $F(){return this.rgb().formatRgb()}function Q5(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=DTe.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?_F(t):n===3?new _o(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Kv(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Kv(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=jTe.exec(e))?new _o(t[1],t[2],t[3],1):(t=NTe.exec(e))?new _o(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=zTe.exec(e))?Kv(t[1],t[2],t[3],t[4]):(t=BTe.exec(e))?Kv(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=HTe.exec(e))?MF(t[1],t[2]/100,t[3]/100,1):(t=WTe.exec(e))?MF(t[1],t[2]/100,t[3]/100,t[4]):CF.hasOwnProperty(e)?_F(CF[e]):e==="transparent"?new _o(NaN,NaN,NaN,0):null}function _F(e){return new _o(e>>16&255,e>>8&255,e&255,1)}function Kv(e,t,n,r){return r<=0&&(e=t=n=NaN),new _o(e,t,n,r)}function HH(e){return e instanceof Qp||(e=Q5(e)),e?(e=e.rgb(),new _o(e.r,e.g,e.b,e.opacity)):new _o}function WH(e,t,n,r){return arguments.length===1?HH(e):new _o(e,t,n,r??1)}function _o(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Uw(_o,WH,X5(Qp,{brighter:function(e){return e=e==null?$p:Math.pow($p,e),new _o(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=e==null?Xc:Math.pow(Xc,e),new _o(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){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:kF,formatHex:kF,formatRgb:PF,toString:PF}));function kF(){return"#"+GS(this.r)+GS(this.g)+GS(this.b)}function PF(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(e===1?")":", "+e+")")}function GS(e){return e=Math.max(0,Math.min(255,Math.round(e)||0)),(e<16?"0":"")+e.toString(16)}function MF(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Za(e,t,n,r)}function VH(e){if(e instanceof Za)return new Za(e.h,e.s,e.l,e.opacity);if(e instanceof Qp||(e=Q5(e)),!e)return new Za;if(e instanceof Za)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),a=NaN,s=i-o,l=(i+o)/2;return s?(t===i?a=(n-r)/s+(n0&&l<1?0:a,new Za(a,s,l,e.opacity)}function UTe(e,t,n,r){return arguments.length===1?VH(e):new Za(e,t,n,r??1)}function Za(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Uw(Za,UTe,X5(Qp,{brighter:function(e){return e=e==null?$p:Math.pow($p,e),new Za(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=e==null?Xc:Math.pow(Xc,e),new Za(this.h,this.s,this.l*e,this.opacity)},rgb:function(){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 _o(qS(e>=240?e-240:e+120,o,r),qS(e,o,r),qS(e<120?e+240:e-120,o,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"hsl(":"hsla(")+(this.h||0)+", "+(this.s||0)*100+"%, "+(this.l||0)*100+"%"+(e===1?")":", "+e+")")}}));function qS(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 GTe=Math.PI/180,qTe=180/Math.PI;var UH=-.14861,Z5=1.78277,J5=-.29227,Gw=-.90649,Eg=1.97294,TF=Eg*Gw,EF=Eg*Z5,IF=Z5*J5-Gw*UH;function KTe(e){if(e instanceof Cc)return new Cc(e.h,e.s,e.l,e.opacity);e instanceof _o||(e=HH(e));var t=e.r/255,n=e.g/255,r=e.b/255,o=(IF*r+TF*t-EF*n)/(IF+TF-EF),i=r-o,a=(Eg*(n-o)-J5*i)/Gw,s=Math.sqrt(a*a+i*i)/(Eg*o*(1-o)),l=s?Math.atan2(a,i)*qTe-120:NaN;return new Cc(l<0?l+360:l,s,o,e.opacity)}function fu(e,t,n,r){return arguments.length===1?KTe(e):new Cc(e,t,n,r??1)}function Cc(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Uw(Cc,fu,X5(Qp,{brighter:function(e){return e=e==null?$p:Math.pow($p,e),new Cc(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=e==null?Xc:Math.pow(Xc,e),new Cc(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*GTe,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),o=Math.sin(e);return new _o(255*(t+n*(UH*r+Z5*o)),255*(t+n*(J5*r+Gw*o)),255*(t+n*(Eg*r)),this.opacity)}}));const YTe=A5(fu(300,.5,0),fu(-240,.5,1));var XTe=A5(fu(-100,.75,.35),fu(80,1.5,.8)),QTe=A5(fu(260,.75,.35),fu(80,1.5,.8)),Yv=fu();function ZTe(e){(e<0||e>1)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return Yv.h=360*e-100,Yv.s=1.5-1.5*t,Yv.l=.8-.9*t,Yv+""}var Xv=WH(),JTe=Math.PI/3,e3e=Math.PI*2/3;function t3e(e){var t;return e=(.5-e)*Math.PI,Xv.r=255*(t=Math.sin(e))*t,Xv.g=255*(t=Math.sin(e+JTe))*t,Xv.b=255*(t=Math.sin(e+e3e))*t,Xv+""}function n3e(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+e*(1172.33-e*(10793.56-e*(33300.12-e*(38394.49-e*14825.05)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+e*(557.33+e*(1225.33-e*(3574.96-e*(1073.77+e*707.56)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+e*(3211.1-e*(15327.97-e*(27814-e*(22569.18-e*6838.66)))))))+")"}function qw(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}const r3e=qw(Qt("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var o3e=qw(Qt("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),i3e=qw(Qt("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),a3e=qw(Qt("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921")),s3e="__lodash_hash_undefined__";function l3e(e){return this.__data__.set(e,s3e),this}var u3e=l3e;function c3e(e){return this.__data__.has(e)}var d3e=c3e,f3e=b5,p3e=u3e,h3e=d3e;function Xy(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new f3e;++t-1}var GH=P3e;function M3e(e,t,n){for(var r=-1,o=e==null?0:e.length;++r=L3e&&(i=F3e,a=!1,t=new E3e(t));e:for(;++oYu)if(!(Math.abs(c*s-l*u)>Yu)||!o)this._+="L"+(this._x1=e)+","+(this._y1=t);else{var p=n-i,y=r-a,v=s*s+l*l,b=p*p+y*y,C=Math.sqrt(v),x=Math.sqrt(f),w=o*Math.tan((dk-Math.acos((v+f-b)/(2*C*x)))/2),S=w/x,$=w/C;Math.abs(S-1)>Yu&&(this._+="L"+(e+S*u)+","+(t+S*c)),this._+="A"+o+","+o+",0,0,"+ +(c*p>u*y)+","+(this._x1=e+$*s)+","+(this._y1=t+$*l)}},arc:function(e,t,n,r,o,i){e=+e,t=+t,n=+n,i=!!i;var a=n*Math.cos(r),s=n*Math.sin(r),l=e+a,u=t+s,c=1^i,f=i?r-o:o-r;if(n<0)throw new Error("negative radius: "+n);this._x1===null?this._+="M"+l+","+u:(Math.abs(this._x1-l)>Yu||Math.abs(this._y1-u)>Yu)&&(this._+="L"+l+","+u),n&&(f<0&&(f=f%fk+fk),f>V3e?this._+="A"+n+","+n+",0,1,"+c+","+(e-a)+","+(t-s)+"A"+n+","+n+",0,1,"+c+","+(this._x1=l)+","+(this._y1=u):f>Yu&&(this._+="A"+n+","+n+",0,"+ +(f>=dk)+","+c+","+(this._x1=e+n*Math.cos(o))+","+(this._y1=t+n*Math.sin(o))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};function gn(e){return function(){return e}}var RF=Math.abs,oo=Math.atan2,Wu=Math.cos,U3e=Math.max,KS=Math.min,ja=Math.sin,Mf=Math.sqrt,so=1e-12,Ig=Math.PI,Qy=Ig/2,O1=2*Ig;function G3e(e){return e>1?0:e<-1?Ig:Math.acos(e)}function OF(e){return e>=1?Qy:e<=-1?-Qy:Math.asin(e)}function q3e(e){return e.innerRadius}function K3e(e){return e.outerRadius}function Y3e(e){return e.startAngle}function X3e(e){return e.endAngle}function Q3e(e){return e&&e.padAngle}function Z3e(e,t,n,r,o,i,a,s){var l=n-e,u=r-t,c=a-o,f=s-i,p=f*l-c*u;if(!(p*pO*O+D*D&&(I=E,N=A),{cx:I,cy:N,x01:-c,y01:-f,x11:I*(o/T-1),y11:N*(o/T-1)}}function J3e(){var e=q3e,t=K3e,n=gn(0),r=null,o=Y3e,i=X3e,a=Q3e,s=null;function l(){var u,c,f=+e.apply(this,arguments),p=+t.apply(this,arguments),y=o.apply(this,arguments)-Qy,v=i.apply(this,arguments)-Qy,b=RF(v-y),C=v>y;if(s||(s=u=Kw()),pso))s.moveTo(0,0);else if(b>O1-so)s.moveTo(p*Wu(y),p*ja(y)),s.arc(0,0,p,y,v,!C),f>so&&(s.moveTo(f*Wu(v),f*ja(v)),s.arc(0,0,f,v,y,C));else{var x=y,w=v,S=y,$=v,T=b,k=b,M=a.apply(this,arguments)/2,I=M>so&&(r?+r.apply(this,arguments):Mf(f*f+p*p)),N=KS(RF(p-f)/2,+n.apply(this,arguments)),E=N,A=N,z,L;if(I>so){var O=OF(I/f*ja(M)),D=OF(I/p*ja(M));(T-=O*2)>so?(O*=C?1:-1,S+=O,$-=O):(T=0,S=$=(y+v)/2),(k-=D*2)>so?(D*=C?1:-1,x+=D,w-=D):(k=0,x=w=(y+v)/2)}var H=p*Wu(x),B=p*ja(x),j=f*Wu($),W=f*ja($);if(N>so){var U=p*Wu(w),Z=p*ja(w),Y=f*Wu(S),se=f*ja(S),Q;if(bso?A>so?(z=Qv(Y,se,H,B,p,A,C),L=Qv(U,Z,j,W,p,A,C),s.moveTo(z.cx+z.x01,z.cy+z.y01),Aso)||!(T>so)?s.lineTo(j,W):E>so?(z=Qv(j,W,U,Z,f,-E,C),L=Qv(H,B,Y,se,f,-E,C),s.lineTo(z.cx+z.x01,z.cy+z.y01),E=p;--y)s.point(w[y],S[y]);s.lineEnd(),s.areaEnd()}C&&(w[f]=+e(b,f,c),S[f]=+n(b,f,c),s.point(t?+t(b,f,c):w[f],r?+r(b,f,c):S[f]))}if(x)return s=null,x+""||null}function u(){return rT().defined(o).curve(a).context(i)}return l.x=function(c){return arguments.length?(e=typeof c=="function"?c:gn(+c),t=null,l):e},l.x0=function(c){return arguments.length?(e=typeof c=="function"?c:gn(+c),l):e},l.x1=function(c){return arguments.length?(t=c==null?null:typeof c=="function"?c:gn(+c),l):t},l.y=function(c){return arguments.length?(n=typeof c=="function"?c:gn(+c),r=null,l):n},l.y0=function(c){return arguments.length?(n=typeof c=="function"?c:gn(+c),l):n},l.y1=function(c){return arguments.length?(r=c==null?null:typeof c=="function"?c:gn(+c),l):r},l.lineX0=l.lineY0=function(){return u().x(e).y(n)},l.lineY1=function(){return u().x(e).y(r)},l.lineX1=function(){return u().x(t).y(n)},l.defined=function(c){return arguments.length?(o=typeof c=="function"?c:gn(!!c),l):o},l.curve=function(c){return arguments.length?(a=c,i!=null&&(s=a(i)),l):a},l.context=function(c){return arguments.length?(c==null?i=s=null:s=a(i=c),l):i},l}function tEe(e,t){return te?1:t>=e?0:NaN}function nEe(e){return e}function rEe(){var e=nEe,t=tEe,n=null,r=gn(0),o=gn(O1),i=gn(0);function a(s){var l,u=s.length,c,f,p=0,y=new Array(u),v=new Array(u),b=+r.apply(this,arguments),C=Math.min(O1,Math.max(-O1,o.apply(this,arguments)-b)),x,w=Math.min(Math.abs(C)/u,i.apply(this,arguments)),S=w*(C<0?-1:1),$;for(l=0;l0&&(p+=$);for(t!=null?y.sort(function(T,k){return t(v[T],v[k])}):n!=null&&y.sort(function(T,k){return n(s[T],s[k])}),l=0,f=p?(C-u*S)/p:0;l0?$*f:0)+S,v[c]={data:s[c],index:l,value:$,startAngle:b,endAngle:x,padAngle:w};return v}return a.value=function(s){return arguments.length?(e=typeof s=="function"?s:gn(+s),a):e},a.sortValues=function(s){return arguments.length?(t=s,n=null,a):t},a.sort=function(s){return arguments.length?(n=s,t=null,a):n},a.startAngle=function(s){return arguments.length?(r=typeof s=="function"?s:gn(+s),a):r},a.endAngle=function(s){return arguments.length?(o=typeof s=="function"?s:gn(+s),a):o},a.padAngle=function(s){return arguments.length?(i=typeof s=="function"?s:gn(+s),a):i},a}var AF=Array.prototype.slice;function pu(){}function Zy(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function Yw(e){this._context=e}Yw.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Zy(this,this._x1,this._y1);case 2:this._context.lineTo(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;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Zy(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function oEe(e){return new Yw(e)}function ZH(e){this._context=e}ZH.prototype={areaStart:pu,areaEnd:pu,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Zy(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function iEe(e){return new ZH(e)}function JH(e){this._context=e}JH.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:Zy(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function aEe(e){return new JH(e)}function eW(e,t){this._basis=new Yw(e),this._beta=t}eW.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r=e[0],o=t[0],i=e[n]-r,a=t[n]-o,s=-1,l;++s<=n;)l=s/n,this._basis.point(this._beta*e[s]+(1-this._beta)*(r+l*i),this._beta*t[s]+(1-this._beta)*(o+l*a));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const sEe=function e(t){function n(r){return t===1?new Yw(r):new eW(r,t)}return n.beta=function(r){return e(+r)},n}(.85);function Jy(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 oT(e,t){this._context=e,this._k=(1-t)/6}oT.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:Jy(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:Jy(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}};const lEe=function e(t){function n(r){return new oT(r,t)}return n.tension=function(r){return e(+r)},n}(0);function iT(e,t){this._context=e,this._k=(1-t)/6}iT.prototype={areaStart:pu,areaEnd:pu,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Jy(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}};const uEe=function e(t){function n(r){return new iT(r,t)}return n.tension=function(r){return e(+r)},n}(0);function aT(e,t){this._context=e,this._k=(1-t)/6}aT.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(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Jy(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}};const cEe=function e(t){function n(r){return new aT(r,t)}return n.tension=function(r){return e(+r)},n}(0);function sT(e,t,n){var r=e._x1,o=e._y1,i=e._x2,a=e._y2;if(e._l01_a>so){var s=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*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,o=(o*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>so){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,a=(a*u+e._y1*e._l23_2a-n*e._l12_2a)/c}e._context.bezierCurveTo(r,o,i,a,e._x2,e._y2)}function tW(e,t){this._context=e,this._alpha=t}tW.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:sT(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 dEe=function e(t){function n(r){return t?new tW(r,t):new oT(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function nW(e,t){this._context=e,this._alpha=t}nW.prototype={areaStart:pu,areaEnd:pu,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=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 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},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._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:sT(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 fEe=function e(t){function n(r){return t?new nW(r,t):new iT(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function rW(e,t){this._context=e,this._alpha=t}rW.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(){(this._line||this._line!==0&&this._point===3)&&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;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:sT(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 pEe=function e(t){function n(r){return t?new rW(r,t):new aT(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function oW(e){this._context=e}oW.prototype={areaStart:pu,areaEnd:pu,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function hEe(e){return new oW(e)}function FF(e){return e<0?-1:1}function LF(e,t,n){var r=e._x1-e._x0,o=t-e._x1,i=(e._y1-e._y0)/(r||o<0&&-0),a=(n-e._y1)/(o||r<0&&-0),s=(i*o+a*r)/(r+o);return(FF(i)+FF(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(s))||0}function DF(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function YS(e,t,n){var r=e._x0,o=e._y0,i=e._x1,a=e._y1,s=(i-r)/3;e._context.bezierCurveTo(r+s,o+s*t,i-s,a-s*n,i,a)}function eb(e){this._context=e}eb.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:YS(this,this._t0,DF(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,YS(this,DF(this,n=LF(this,e,t)),n);break;default:YS(this,this._t0,n=LF(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function iW(e){this._context=new aW(e)}(iW.prototype=Object.create(eb.prototype)).point=function(e,t){eb.prototype.point.call(this,t,e)};function aW(e){this._context=e}aW.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 mEe(e){return new eb(e)}function gEe(e){return new iW(e)}function sW(e){this._context=e}sW.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=jF(e),o=jF(t),i=0,a=1;a=0;--t)o[t]=(a[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 yEe(e){return new Xw(e,.5)}function bEe(e){return new Xw(e,0)}function xEe(e){return new Xw(e,1)}function _p(e,t){if((a=e.length)>1)for(var n=1,r,o,i=e[t[0]],a,s=i.length;n=0;)n[t]=t;return n}function wEe(e,t){return e[t]}function CEe(){var e=gn([]),t=kp,n=_p,r=wEe;function o(i){var a=e.apply(this,arguments),s,l=i.length,u=a.length,c=new Array(u),f;for(s=0;s0){for(var n,r,o=0,i=e[0].length,a;o0)for(var n,r=0,o,i,a,s,l,u=e[t[0]].length;r0?(o[0]=a,o[1]=a+=i):i<0?(o[1]=s,o[0]=s+=i):(o[0]=0,o[1]=i)}function $Ee(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,a;ri&&(i=o,n=t);return n}function uW(e){var t=e.map(cW);return kp(e).sort(function(n,r){return t[n]-t[r]})}function cW(e){for(var t=0,n=-1,r=e.length,o;++n0&&n(s)?t>1?fW(s,t-1,n,r,o):oIe(o,s):r||(o[o.length]=s)}return o}var pW=fW,aIe=pW;function sIe(e){var t=e==null?0:e.length;return t?aIe(e,1):[]}var lIe=sIe,uIe=lIe,cIe=fB,dIe=pB;function fIe(e){return dIe(cIe(e,void 0,uIe),e+"")}var hW=fIe,pIe=ZEe,hIe=hW,mIe=hIe(function(e,t){return e==null?{}:pIe(e,t)}),gIe=mIe;const vIe=Or(gIe);function yIe(e,t){for(var n=-1,r=e==null?0:e.length;++ns))return!1;var u=i.get(e),c=i.get(t);if(u&&c)return u==t&&c==e;var f=-1,p=!0,y=n&$Ie?new xIe:void 0;for(i.set(e,t),i.set(t,e);++f=0||(o[n]=e[n]);return o}var hu={fill:R.string,fontSize:R.number,fontFamily:R.string},sOe=R.shape({domain:R.shape({line:R.shape({stroke:R.string.isRequired,strokeWidth:R.number.isRequired,strokeDasharray:R.string}).isRequired}).isRequired,ticks:R.shape({line:R.shape({stroke:R.string.isRequired,strokeWidth:R.number.isRequired,strokeDasharray:R.string}).isRequired,text:R.shape(Rr({},hu)).isRequired}).isRequired,legend:R.shape({text:R.shape(Rr({},hu)).isRequired}).isRequired}),lOe=R.shape({line:R.shape({stroke:R.string.isRequired,strokeWidth:R.number.isRequired,strokeDasharray:R.string}).isRequired}),uOe=R.shape({hidden:R.shape({symbol:R.shape({fill:R.string.isRequired,opacity:R.number}).isRequired,text:R.shape(Rr({},hu,{opacity:R.number})).isRequired}).isRequired,text:R.shape(Rr({},hu)).isRequired}),cOe=R.shape({text:R.shape(Rr({},hu)).isRequired}),dOe=R.shape({text:R.shape(Rr({},hu)).isRequired}),fOe=R.shape({text:R.shape(Rr({},hu)).isRequired}),pOe=R.shape({line:R.shape({stroke:R.string.isRequired,strokeWidth:R.number.isRequired,strokeDasharray:R.string}).isRequired}),hOe=R.shape({text:R.shape(Rr({},hu,{outlineWidth:R.number.isRequired,outlineColor:R.string.isRequired})).isRequired,link:R.shape({stroke:R.string.isRequired,strokeWidth:R.number.isRequired,outlineWidth:R.number.isRequired,outlineColor:R.string.isRequired}).isRequired,outline:R.shape({stroke:R.string.isRequired,strokeWidth:R.number.isRequired,outlineWidth:R.number.isRequired,outlineColor:R.string.isRequired}).isRequired,symbol:R.shape({fill:R.string.isRequired,outlineWidth:R.number.isRequired,outlineColor:R.string.isRequired}).isRequired});R.shape({background:R.string.isRequired,fontFamily:R.string.isRequired,fontSize:R.number.isRequired,textColor:R.string.isRequired,axis:sOe.isRequired,grid:lOe.isRequired,legends:uOe.isRequired,labels:cOe.isRequired,dots:dOe.isRequired,markers:fOe,crosshair:pOe.isRequired,annotations:hOe.isRequired});var mOe={background:"transparent",fontFamily:"sans-serif",fontSize:11,textColor:"#333333",axis:{domain:{line:{stroke:"transparent",strokeWidth:1}},ticks:{line:{stroke:"#777777",strokeWidth:1},text:{}},legend:{text:{fontSize:12}}},grid:{line:{stroke:"#dddddd",strokeWidth:1}},legends:{hidden:{symbol:{fill:"#333333",opacity:.6},text:{fill:"#333333",opacity:.6}},text:{},ticks:{line:{stroke:"#777777",strokeWidth:1},text:{fontSize:10}},title:{text:{}}},labels:{text:{}},markers:{lineColor:"#000000",lineStrokeWidth:1,text:{}},dots:{text:{}},tooltip:{container:{background:"white",color:"inherit",fontSize:"inherit",borderRadius:"2px",boxShadow:"0 1px 2px rgba(0, 0, 0, 0.25)",padding:"5px 9px"},basic:{whiteSpace:"pre",display:"flex",alignItems:"center"},chip:{marginRight:7},table:{},tableCell:{padding:"3px 5px"},tableCellValue:{fontWeight:"bold"}},crosshair:{line:{stroke:"#000000",strokeWidth:1,strokeOpacity:.75,strokeDasharray:"6 6"}},annotations:{text:{fontSize:13,outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1},link:{stroke:"#000000",strokeWidth:1,outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1},outline:{fill:"none",stroke:"#000000",strokeWidth:2,outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1},symbol:{fill:"#000000",outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1}}},gOe=["axis.ticks.text","axis.legend.text","legends.title.text","legends.text","legends.ticks.text","legends.title.text","labels.text","dots.text","markers.text","annotations.text"],vOe=function(e,t){var n=Lke({},e,t);return gOe.forEach(function(r){iu(n,r+".fontFamily")===void 0&&ac(n,r+".fontFamily",n.fontFamily),iu(n,r+".fontSize")===void 0&&ac(n,r+".fontSize",n.fontSize),iu(n,r+".fill")===void 0&&ac(n,r+".fill",n.textColor)}),n},CW=m.createContext(),pT=function(e){var t=e.children,n=e.animate,r=e.config,o=m.useMemo(function(){var i=yi.isString(r)?h5[r]:r;return{animate:n,config:i}},[n,r]);return g.jsx(CW.Provider,{value:o,children:t})},xk={animate:R.bool,motionConfig:R.oneOfType([R.oneOf(Object.keys(h5)),R.shape({mass:R.number,tension:R.number,friction:R.number,clamp:R.bool,precision:R.number,velocity:R.number,duration:R.number,easing:R.func})])};pT.propTypes={children:R.node.isRequired,animate:xk.animate,config:xk.motionConfig};var yOe={animate:!0,config:"default"};pT.defaultProps=yOe;var To=function(){return m.useContext(CW)},hT=function(e){var t=To(),n=t.animate,r=t.config,o=function(s){var l=m.useRef();return m.useEffect(function(){l.current=s},[s]),l.current}(e),i=m.useMemo(function(){return SB(o,e)},[o,e]),a=xs({from:{value:0},to:{value:1},reset:!0,config:r,immediate:!n}).value;return du(a,i)},bOe={nivo:["#d76445","#f47560","#e8c1a0","#97e3d5","#61cdbb","#00b0a7"],BrBG:St(yw),PRGn:St(bw),PiYG:St(xw),PuOr:St(ww),RdBu:St(Cw),RdGy:St(Sw),RdYlBu:St($w),RdYlGn:St(_w),spectral:St(kw),blues:St(Nw),greens:St(zw),greys:St(Bw),oranges:St(Vw),purples:St(Hw),reds:St(Ww),BuGn:St(Pw),BuPu:St(Mw),GnBu:St(Tw),OrRd:St(Ew),PuBuGn:St(Iw),PuBu:St(Rw),PuRd:St(Ow),RdPu:St(Aw),YlGnBu:St(Fw),YlGn:St(Lw),YlOrBr:St(Dw),YlOrRd:St(jw)},xOe=Object.keys(bOe);St(yw),St(bw),St(xw),St(ww),St(Cw),St(Sw),St($w),St(_w),St(kw),St(Nw),St(zw),St(Bw),St(Vw),St(Hw),St(Ww),St(Pw),St(Mw),St(Tw),St(Ew),St(Iw),St(Rw),St(Ow),St(Aw),St(Fw),St(Lw),St(Dw),St(jw);R.oneOfType([R.oneOf(xOe),R.func,R.arrayOf(R.string)]);var wk={basis:oEe,basisClosed:iEe,basisOpen:aEe,bundle:sEe,cardinal:lEe,cardinalClosed:uEe,cardinalOpen:cEe,catmullRom:dEe,catmullRomClosed:fEe,catmullRomOpen:pEe,linear:nT,linearClosed:hEe,monotoneX:mEe,monotoneY:gEe,natural:vEe,step:yEe,stepAfter:xEe,stepBefore:bEe},Zw=Object.keys(wk);R.oneOf(Zw);Zw.filter(function(e){return e.endsWith("Closed")});KH(Zw,"bundle","basisClosed","basisOpen","cardinalClosed","cardinalOpen","catmullRomClosed","catmullRomOpen","linearClosed");var wOe=KH(Zw,"bundle","basisClosed","basisOpen","cardinalClosed","cardinalOpen","catmullRomClosed","catmullRomOpen","linearClosed"),COe=R.oneOf(wOe),SW=function(e){if(!wk[e])throw new TypeError("'"+e+"', is not a valid curve interpolator identifier.");return wk[e]},SOe={defs:R.arrayOf(R.shape({id:R.string.isRequired})).isRequired,fill:R.arrayOf(R.shape({id:R.string.isRequired,match:R.oneOfType([R.oneOf(["*"]),R.object,R.func]).isRequired})).isRequired},$Oe={ascending:uW,descending:MEe,insideOut:TEe,none:kp,reverse:EEe},_Oe=Object.keys($Oe);R.oneOf(_Oe);var kOe={expand:SEe,diverging:lW,none:_p,silhouette:$Ee,wiggle:_Ee},POe=Object.keys(kOe);R.oneOf(POe);R.shape({top:R.number,right:R.number,bottom:R.number,left:R.number}).isRequired;var MOe=["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],mT=R.oneOf(MOe);sc(Y5);var TOe={top:0,right:0,bottom:0,left:0},b0=function(e,t,n){return n===void 0&&(n={}),m.useMemo(function(){var r=Rr({},TOe,n);return{margin:r,innerWidth:e-r.left-r.right,innerHeight:t-r.top-r.bottom,outerWidth:e,outerHeight:t}},[e,t,n.top,n.right,n.bottom,n.left])},$W=function(){var e=m.useRef(null),t=m.useState({left:0,top:0,width:0,height:0}),n=t[0],r=t[1],o=m.useState(function(){return typeof ResizeObserver>"u"?null:new ResizeObserver(function(i){var a=i[0];return r(a.contentRect)})})[0];return m.useEffect(function(){return e.current&&o!==null&&o.observe(e.current),function(){o!==null&&o.disconnect()}},[]),[e,n]},EOe=function(e){return m.useMemo(function(){return vOe(mOe,e)},[e])},IOe=function(e){return typeof e=="function"?e:typeof e=="string"?e.indexOf("time:")===0?v0(e.slice("5")):Pu(e):function(t){return""+t}},Rg=function(e){return m.useMemo(function(){return IOe(e)},[e])},_W=m.createContext(),ROe={},kW=function(e){var t=e.theme,n=t===void 0?ROe:t,r=e.children,o=EOe(n);return g.jsx(_W.Provider,{value:o,children:r})};kW.propTypes={children:R.node.isRequired,theme:R.object};var On=function(){return m.useContext(_W)},PW=function(e){var t=e.children,n=e.condition,r=e.wrapper;return n?m.cloneElement(r,{},t):t};PW.propTypes={children:R.node.isRequired,condition:R.bool.isRequired,wrapper:R.element.isRequired};var OOe={position:"relative"},x0=function(e){var t=e.children,n=e.theme,r=e.renderWrapper,o=r===void 0||r,i=e.isInteractive,a=i===void 0||i,s=e.animate,l=e.motionConfig,u=m.useRef(null);return g.jsx(kW,{theme:n,children:g.jsx(pT,{animate:s,config:l,children:g.jsx(vwe,{container:u,children:g.jsxs(PW,{condition:o,wrapper:g.jsx("div",{style:OOe,ref:u}),children:[t,a&&g.jsx(gwe,{})]})})})})};x0.propTypes={children:R.element.isRequired,isInteractive:R.bool,renderWrapper:R.bool,theme:R.object,animate:R.bool,motionConfig:R.string};R.func.isRequired,R.bool,R.bool,R.object.isRequired,R.bool.isRequired,R.string;var Jp=function(e){var t=e.children,n=$W(),r=n[0],o=n[1],i=o.width>0&&o.height>0;return g.jsx("div",{ref:r,style:{width:"100%",height:"100%"},children:i&&t({width:o.width,height:o.height})})};Jp.propTypes={children:R.func.isRequired};var AOe=["id","colors"],MW=function(e){var t=e.id,n=e.colors,r=fT(e,AOe);return g.jsx("linearGradient",Rr({id:t,x1:0,x2:0,y1:0,y2:1},r,{children:n.map(function(o){var i=o.offset,a=o.color,s=o.opacity;return g.jsx("stop",{offset:i+"%",stopColor:a,stopOpacity:s!==void 0?s:1},i)})}))};MW.propTypes={id:R.string.isRequired,colors:R.arrayOf(R.shape({offset:R.number.isRequired,color:R.string.isRequired,opacity:R.number})).isRequired,gradientTransform:R.string};var TW={linearGradient:MW},A1=m.memo(function(e){var t=e.id,n=e.background,r=e.color,o=e.size,i=e.padding,a=e.stagger,s=o+i,l=o/2,u=i/2;return a===!0&&(s=2*o+2*i),g.jsxs("pattern",{id:t,width:s,height:s,patternUnits:"userSpaceOnUse",children:[g.jsx("rect",{width:s,height:s,fill:n}),g.jsx("circle",{cx:u+l,cy:u+l,r:l,fill:r}),a&&g.jsx("circle",{cx:1.5*i+o+l,cy:1.5*i+o+l,r:l,fill:r})]})});A1.displayName="PatternDots",A1.propTypes={id:R.string.isRequired,color:R.string.isRequired,background:R.string.isRequired,size:R.number.isRequired,padding:R.number.isRequired,stagger:R.bool.isRequired},A1.defaultProps={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1};var Qi=function(e){return e*Math.PI/180},Jw=function(e){return 180*e/Math.PI},FOe=function(e){return e.startAngle+(e.endAngle-e.startAngle)/2},Sc=function(e,t){return{x:Math.cos(e)*t,y:Math.sin(e)*t}},LOe=function(e){var t=e%360;return t<0&&(t+=360),t},DOe={svg:{align:{left:"start",center:"middle",right:"end",start:"start",middle:"middle",end:"end"},baseline:{top:"text-before-edge",center:"central",bottom:"alphabetic"}},canvas:{align:{left:"left",center:"center",right:"right",start:"left",middle:"center",end:"right"},baseline:{top:"top",center:"middle",bottom:"bottom"}}},F1=m.memo(function(e){var t=e.id,n=e.spacing,r=e.rotation,o=e.background,i=e.color,a=e.lineWidth,s=Math.round(r)%360,l=Math.abs(n);s>180?s-=360:s>90?s-=180:s<-180?s+=360:s<-90&&(s+=180);var u,c=l,f=l;return s===0?u=` - M 0 0 L `+c+` 0 - M 0 `+f+" L "+c+" "+f+` - `:s===90?u=` - M 0 0 L 0 `+f+` - M `+c+" 0 L "+c+" "+f+` - `:(c=Math.abs(l/Math.sin(Qi(s))),f=l/Math.sin(Qi(90-s)),u=s>0?` - M 0 `+-f+" L "+2*c+" "+f+` - M `+-c+" "+-f+" L "+c+" "+f+` - M `+-c+" 0 L "+c+" "+2*f+` - `:` - M `+-c+" "+f+" L "+c+" "+-f+` - M `+-c+" "+2*f+" L "+2*c+" "+-f+` - M 0 `+2*f+" L "+2*c+` 0 - `),g.jsxs("pattern",{id:t,width:c,height:f,patternUnits:"userSpaceOnUse",children:[g.jsx("rect",{width:c,height:f,fill:o,stroke:"rgba(255, 0, 0, 0.1)",strokeWidth:0}),g.jsx("path",{d:u,strokeWidth:a,stroke:i,strokeLinecap:"square"})]})});F1.displayName="PatternLines",F1.propTypes={id:R.string.isRequired,spacing:R.number.isRequired,rotation:R.number.isRequired,background:R.string.isRequired,color:R.string.isRequired,lineWidth:R.number.isRequired},F1.defaultProps={spacing:5,rotation:0,color:"#000000",background:"#ffffff",lineWidth:2};var L1=m.memo(function(e){var t=e.id,n=e.background,r=e.color,o=e.size,i=e.padding,a=e.stagger,s=o+i,l=i/2;return a===!0&&(s=2*o+2*i),g.jsxs("pattern",{id:t,width:s,height:s,patternUnits:"userSpaceOnUse",children:[g.jsx("rect",{width:s,height:s,fill:n}),g.jsx("rect",{x:l,y:l,width:o,height:o,fill:r}),a&&g.jsx("rect",{x:1.5*i+o,y:1.5*i+o,width:o,height:o,fill:r})]})});L1.displayName="PatternSquares",L1.propTypes={id:R.string.isRequired,color:R.string.isRequired,background:R.string.isRequired,size:R.number.isRequired,padding:R.number.isRequired,stagger:R.bool.isRequired},L1.defaultProps={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1};var EW={patternDots:A1,patternLines:F1,patternSquares:L1},jOe=["type"],Ck=Rr({},TW,EW),IW=function(e){var t=e.defs;return!t||t.length<1?null:g.jsx("defs",{"aria-hidden":!0,children:t.map(function(n){var r=n.type,o=fT(n,jOe);return Ck[r]?m.createElement(Ck[r],Rr({key:o.id},o)):null})})};IW.propTypes={defs:R.arrayOf(R.shape({type:R.oneOf(Object.keys(Ck)).isRequired,id:R.string.isRequired}))};var NOe=m.memo(IW),e2=function(e){var t=e.width,n=e.height,r=e.margin,o=e.defs,i=e.children,a=e.role,s=e.ariaLabel,l=e.ariaLabelledBy,u=e.ariaDescribedBy,c=e.isFocusable,f=On();return g.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:n,role:a,"aria-label":s,"aria-labelledby":l,"aria-describedby":u,focusable:c,tabIndex:c?0:void 0,children:[g.jsx(NOe,{defs:o}),g.jsx("rect",{width:t,height:n,fill:f.background}),g.jsx("g",{transform:"translate("+r.left+","+r.top+")",children:i})]})};e2.propTypes={width:R.number.isRequired,height:R.number.isRequired,margin:R.shape({top:R.number.isRequired,left:R.number.isRequired}).isRequired,defs:R.array,children:R.oneOfType([R.arrayOf(R.node),R.node]).isRequired,role:R.string,isFocusable:R.bool,ariaLabel:R.string,ariaLabelledBy:R.string,ariaDescribedBy:R.string};var RW=function(e){var t=e.size,n=e.color,r=e.borderWidth,o=e.borderColor;return g.jsx("circle",{r:t/2,fill:n,stroke:o,strokeWidth:r,style:{pointerEvents:"none"}})};RW.propTypes={size:R.number.isRequired,color:R.string.isRequired,borderWidth:R.number.isRequired,borderColor:R.string.isRequired};var zOe=m.memo(RW),OW=function(e){var t=e.x,n=e.y,r=e.symbol,o=r===void 0?zOe:r,i=e.size,a=e.datum,s=e.color,l=e.borderWidth,u=e.borderColor,c=e.label,f=e.labelTextAnchor,p=f===void 0?"middle":f,y=e.labelYOffset,v=y===void 0?-12:y,b=On(),C=To(),x=C.animate,w=C.config,S=xs({transform:"translate("+t+", "+n+")",config:w,immediate:!x});return g.jsxs(In.g,{transform:S.transform,style:{pointerEvents:"none"},children:[m.createElement(o,{size:i,color:s,datum:a,borderWidth:l,borderColor:u}),c&&g.jsx("text",{textAnchor:p,y:v,style:b.dots.text,children:c})]})};OW.propTypes={x:R.number.isRequired,y:R.number.isRequired,datum:R.object.isRequired,size:R.number.isRequired,color:R.string.isRequired,borderWidth:R.number.isRequired,borderColor:R.string.isRequired,symbol:R.oneOfType([R.func,R.object]),label:R.oneOfType([R.string,R.number]),labelTextAnchor:R.oneOf(["start","middle","end"]),labelYOffset:R.number};var BOe=m.memo(OW),Sk=function(e){var t=e.width,n=e.height,r=e.axis,o=e.scale,i=e.value,a=e.lineStyle,s=e.textStyle,l=e.legend,u=e.legendPosition,c=e.legendOffsetX,f=e.legendOffsetY,p=e.legendOrientation,y=On(),v=0,b=0,C=0,x=0;r==="y"?(C=o(i),b=t):(v=o(i),x=n);var w=null;if(l){var S=function($){var T=$.axis,k=$.width,M=$.height,I=$.position,N=$.offsetX,E=$.offsetY,A=$.orientation,z=0,L=0,O=A==="vertical"?-90:0,D="start";if(T==="x")switch(I){case"top-left":z=-N,L=E,D="end";break;case"top":L=-E,D=A==="horizontal"?"middle":"start";break;case"top-right":z=N,L=E,D=A==="horizontal"?"start":"end";break;case"right":z=N,L=M/2,D=A==="horizontal"?"start":"middle";break;case"bottom-right":z=N,L=M-E,D="start";break;case"bottom":L=M+E,D=A==="horizontal"?"middle":"end";break;case"bottom-left":L=M-E,z=-N,D=A==="horizontal"?"end":"start";break;case"left":z=-N,L=M/2,D=A==="horizontal"?"end":"middle"}else switch(I){case"top-left":z=N,L=-E,D="start";break;case"top":z=k/2,L=-E,D=A==="horizontal"?"middle":"start";break;case"top-right":z=k-N,L=-E,D=A==="horizontal"?"end":"start";break;case"right":z=k+N,D=A==="horizontal"?"start":"middle";break;case"bottom-right":z=k-N,L=E,D="end";break;case"bottom":z=k/2,L=E,D=A==="horizontal"?"middle":"end";break;case"bottom-left":z=N,L=E,D=A==="horizontal"?"start":"end";break;case"left":z=-N,D=A==="horizontal"?"end":"middle"}return{x:z,y:L,rotation:O,textAnchor:D}}({axis:r,width:t,height:n,position:u,offsetX:c,offsetY:f,orientation:p});w=g.jsx("text",{transform:"translate("+S.x+", "+S.y+") rotate("+S.rotation+")",textAnchor:S.textAnchor,dominantBaseline:"central",style:s,children:l})}return g.jsxs("g",{transform:"translate("+v+", "+C+")",children:[g.jsx("line",{x1:0,x2:b,y1:0,y2:x,stroke:y.markers.lineColor,strokeWidth:y.markers.lineStrokeWidth,style:a}),w]})};Sk.propTypes={width:R.number.isRequired,height:R.number.isRequired,axis:R.oneOf(["x","y"]).isRequired,scale:R.func.isRequired,value:R.oneOfType([R.number,R.string,R.instanceOf(Date)]).isRequired,lineStyle:R.object,textStyle:R.object,legend:R.string,legendPosition:R.oneOf(["top-left","top","top-right","right","bottom-right","bottom","bottom-left","left"]),legendOffsetX:R.number.isRequired,legendOffsetY:R.number.isRequired,legendOrientation:R.oneOf(["horizontal","vertical"]).isRequired},Sk.defaultProps={legendPosition:"top-right",legendOffsetX:14,legendOffsetY:14,legendOrientation:"horizontal"};var HOe=m.memo(Sk),AW=function(e){var t=e.markers,n=e.width,r=e.height,o=e.xScale,i=e.yScale;return t&&t.length!==0?t.map(function(a,s){return g.jsx(HOe,Rr({},a,{width:n,height:r,scale:a.axis==="y"?i:o}),s)}):null};AW.propTypes={width:R.number.isRequired,height:R.number.isRequired,xScale:R.func.isRequired,yScale:R.func.isRequired,markers:R.arrayOf(R.shape({axis:R.oneOf(["x","y"]).isRequired,value:R.oneOfType([R.number,R.string,R.instanceOf(Date)]).isRequired,lineStyle:R.object,textStyle:R.object}))};var FW=m.memo(AW),WOe=["theme","renderWrapper","animate","motionConfig"],LW=function(e){return function(t){var n,r;function o(){return t.apply(this,arguments)||this}return r=t,(n=o).prototype=Object.create(r.prototype),n.prototype.constructor=n,bk(n,r),o.prototype.render=function(){var i=this.props,a=i.theme,s=i.renderWrapper,l=i.animate,u=i.motionConfig,c=fT(i,WOe);return g.jsx(x0,{theme:a,renderWrapper:s,isInteractive:c.isInteractive,animate:l,motionConfig:u,children:g.jsx(e,Rr({},c))})},o}(m.Component)},VOe=function(e,t){var n,r=Dy(e)?e:function(o){return iu(o,e)};return t&&(n=Dy(t)?t:Pu(t)),n?function(o){return n(r(o))}:r},DW=function(e){return Dy(e)?e:function(t){return iu(t,e)}},$c=function(e){return m.useMemo(function(){return DW(e)},[e])},jW=function(e,t,n,r,o,i){return e<=o&&o<=e+n&&t<=i&&i<=t+r},Im=function(e,t){var n,r=t.clientX,o=t.clientY,i=e.getBoundingClientRect(),a=(n=e.getBBox!==void 0?e.getBBox():{width:e.offsetWidth,height:e.offsetHeight}).width===i.width?1:n.width/i.width;return[(r-i.left)*a,(o-i.top)*a]},UOe=Object.keys(TW),GOe=Object.keys(EW),qOe=function(e,t,n){if(e==="*")return!0;if(Dy(e))return e(t);if(p$e(e)){var r=n?iu(t,n):t;return aOe(vIe(r,Object.keys(e)),e)}return!1},gT=function(e,t,n,r){var o=r===void 0?{}:r,i=o.dataKey,a=o.colorKey,s=a===void 0?"color":a,l=o.targetKey,u=l===void 0?"fill":l,c=[],f={};return e.length&&t.length&&(c=[].concat(e),t.forEach(function(p){for(var y=function(){var b=n[v],C=b.id,x=b.match;if(qOe(x,p,i)){var w=e.find(function(E){return E.id===C});if(w){if(GOe.includes(w.type))if(w.background==="inherit"||w.color==="inherit"){var S=iu(p,s),$=w.background,T=w.color,k=C;w.background==="inherit"&&(k=k+".bg."+S,$=S),w.color==="inherit"&&(k=k+".fg."+S,T=S),ac(p,u,"url(#"+k+")"),f[k]||(c.push(Rr({},w,{id:k,background:$,color:T})),f[k]=1)}else ac(p,u,"url(#"+C+")");else if(UOe.includes(w.type))if(w.colors.map(function(E){return E.color}).includes("inherit")){var M=iu(p,s),I=C,N=Rr({},w,{colors:w.colors.map(function(E,A){return E.color!=="inherit"?E:(I=I+"."+A+"."+M,Rr({},E,{color:E.color==="inherit"?M:E.color}))})});N.id=I,ac(p,u,"url(#"+I+")"),f[I]||(c.push(N),f[I]=1)}else ac(p,u,"url(#"+C+")")}return"break"}},v=0;v>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Jv(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Jv(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=YOe.exec(e))?new Ho(t[1],t[2],t[3],1):(t=XOe.exec(e))?new Ho(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=QOe.exec(e))?Jv(t[1],t[2],t[3],t[4]):(t=ZOe.exec(e))?Jv(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=JOe.exec(e))?c8(t[1],t[2]/100,t[3]/100,1):(t=e4e.exec(e))?c8(t[1],t[2]/100,t[3]/100,t[4]):o8.hasOwnProperty(e)?s8(o8[e]):e==="transparent"?new Ho(NaN,NaN,NaN,0):null}function s8(e){return new Ho(e>>16&255,e>>8&255,e&255,1)}function Jv(e,t,n,r){return r<=0&&(e=t=n=NaN),new Ho(e,t,n,r)}function r4e(e){return e instanceof w0||(e=Qc(e)),e?(e=e.rgb(),new Ho(e.r,e.g,e.b,e.opacity)):new Ho}function zW(e,t,n,r){return arguments.length===1?r4e(e):new Ho(e,t,n,r??1)}function Ho(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}vT(Ho,zW,NW(w0,{brighter(e){return e=e==null?tb:Math.pow(tb,e),new Ho(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Og:Math.pow(Og,e),new Ho(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ho(_c(this.r),_c(this.g),_c(this.b),nb(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:l8,formatHex:l8,formatHex8:o4e,formatRgb:u8,toString:u8}));function l8(){return`#${lc(this.r)}${lc(this.g)}${lc(this.b)}`}function o4e(){return`#${lc(this.r)}${lc(this.g)}${lc(this.b)}${lc((isNaN(this.opacity)?1:this.opacity)*255)}`}function u8(){const e=nb(this.opacity);return`${e===1?"rgb(":"rgba("}${_c(this.r)}, ${_c(this.g)}, ${_c(this.b)}${e===1?")":`, ${e})`}`}function nb(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function _c(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function lc(e){return e=_c(e),(e<16?"0":"")+e.toString(16)}function c8(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Ca(e,t,n,r)}function BW(e){if(e instanceof Ca)return new Ca(e.h,e.s,e.l,e.opacity);if(e instanceof w0||(e=Qc(e)),!e)return new Ca;if(e instanceof Ca)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),a=NaN,s=i-o,l=(i+o)/2;return s?(t===i?a=(n-r)/s+(n0&&l<1?0:a,new Ca(a,s,l,e.opacity)}function i4e(e,t,n,r){return arguments.length===1?BW(e):new Ca(e,t,n,r??1)}function Ca(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}vT(Ca,i4e,NW(w0,{brighter(e){return e=e==null?tb:Math.pow(tb,e),new Ca(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Og:Math.pow(Og,e),new Ca(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 Ho(ZS(e>=240?e-240:e+120,o,r),ZS(e,o,r),ZS(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new Ca(d8(this.h),e1(this.s),e1(this.l),nb(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=nb(this.opacity);return`${e===1?"hsl(":"hsla("}${d8(this.h)}, ${e1(this.s)*100}%, ${e1(this.l)*100}%${e===1?")":`, ${e})`}`}}));function d8(e){return e=(e||0)%360,e<0?e+360:e}function e1(e){return Math.max(0,Math.min(1,e||0))}function ZS(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}function rb(){return rb=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var HW={nivo:["#e8c1a0","#f47560","#f1e15b","#e8a838","#61cdbb","#97e3d5"],category10:AH,accent:FH,dark2:LH,paired:DH,pastel1:jH,pastel2:NH,set1:zH,set2:BH,set3:Y5},s4e=Object.keys(HW),WW={brown_blueGreen:yw,purpleRed_green:bw,pink_yellowGreen:xw,purple_orange:ww,red_blue:Cw,red_grey:Sw,red_yellow_blue:$w,red_yellow_green:_w,spectral:kw},l4e=Object.keys(WW),u4e={brown_blueGreen:uTe,purpleRed_green:cTe,pink_yellowGreen:dTe,purple_orange:fTe,red_blue:pTe,red_grey:hTe,red_yellow_blue:mTe,red_yellow_green:gTe,spectral:vTe},VW={blues:Nw,greens:zw,greys:Bw,oranges:Vw,purples:Hw,reds:Ww,blue_green:Pw,blue_purple:Mw,green_blue:Tw,orange_red:Ew,purple_blue_green:Iw,purple_blue:Rw,purple_red:Ow,red_purple:Aw,yellow_green_blue:Fw,yellow_green:Lw,yellow_orange_brown:Dw,yellow_orange_red:jw},c4e=Object.keys(VW),d4e={blues:ETe,greens:ITe,greys:RTe,oranges:FTe,purples:OTe,reds:ATe,turbo:n3e,viridis:r3e,inferno:i3e,magma:o3e,plasma:a3e,cividis:LTe,warm:XTe,cool:QTe,cubehelixDefault:YTe,blue_green:yTe,blue_purple:bTe,green_blue:xTe,orange_red:wTe,purple_blue_green:CTe,purple_blue:STe,purple_red:$Te,red_purple:_Te,yellow_green_blue:kTe,yellow_green:PTe,yellow_orange_brown:MTe,yellow_orange_red:TTe},D1=rb({},HW,WW,VW),f4e=Object.keys(D1),p4e=function(e){return s4e.includes(e)},h4e=function(e){return l4e.includes(e)},m4e=function(e){return c4e.includes(e)},g4e={rainbow:ZTe,sinebow:t3e};rb({},u4e,d4e,g4e);var v4e=function(e,t){if(typeof e=="function")return e;if(yi.isPlainObject(e)){if(function(l){return l.theme!==void 0}(e)){if(t===void 0)throw new Error("Unable to use color from theme as no theme was provided");var n=yi.get(t,e.theme);if(n===void 0)throw new Error("Color from theme is undefined at path: '"+e.theme+"'");return function(){return n}}if(function(l){return l.from!==void 0}(e)){var r=function(l){return yi.get(l,e.from)};if(Array.isArray(e.modifiers)){for(var o,i=[],a=function(){var l=o.value,u=l[0],c=l[1];if(u==="brighter")i.push(function(f){return f.brighter(c)});else if(u==="darker")i.push(function(f){return f.darker(c)});else{if(u!=="opacity")throw new Error("Invalid color modifier: '"+u+"', must be one of: 'brighter', 'darker', 'opacity'");i.push(function(f){return f.opacity=c,f})}},s=a4e(e.modifiers);!(o=s()).done;)a();return i.length===0?r:function(l){return i.reduce(function(u,c){return c(u)},zW(r(l))).toString()}}return r}throw new Error("Invalid color spec, you should either specify 'theme' or 'from' when using a config object")}return function(){return e}},ms=function(e,t){return m.useMemo(function(){return v4e(e,t)},[e,t])},y4e=R.oneOfType([R.func,R.arrayOf(R.string),R.shape({scheme:R.oneOf(f4e).isRequired,size:R.number}),R.shape({datum:R.string.isRequired}),R.string]);R.oneOfType([R.string,R.func,R.shape({theme:R.string.isRequired}),R.shape({from:R.string.isRequired,modifiers:R.arrayOf(R.array)})]);var b4e=function(e,t){if(typeof e=="function")return e;var n=typeof t=="function"?t:function(f){return yi.get(f,t)};if(Array.isArray(e)){var r=sc(e),o=function(f){return r(n(f))};return o.scale=r,o}if(yi.isPlainObject(e)){if(function(f){return f.datum!==void 0}(e))return function(f){return yi.get(f,e.datum)};if(function(f){return f.scheme!==void 0}(e)){if(p4e(e.scheme)){var i=sc(D1[e.scheme]),a=function(f){return i(n(f))};return a.scale=i,a}if(h4e(e.scheme)){if(e.size!==void 0&&(e.size<3||e.size>11))throw new Error("Invalid size '"+e.size+"' for diverging color scheme '"+e.scheme+"', must be between 3~11");var s=sc(D1[e.scheme][e.size||11]),l=function(f){return s(n(f))};return l.scale=s,l}if(m4e(e.scheme)){if(e.size!==void 0&&(e.size<3||e.size>9))throw new Error("Invalid size '"+e.size+"' for sequential color scheme '"+e.scheme+"', must be between 3~9");var u=sc(D1[e.scheme][e.size||9]),c=function(f){return u(n(f))};return c.scale=u,c}}throw new Error("Invalid colors, when using an object, you should either pass a 'datum' or a 'scheme' property")}return function(){return e}},yT=function(e,t){return m.useMemo(function(){return b4e(e,t)},[e,t])};function Vn(){return Vn=Object.assign?Object.assign.bind():function(e){for(var t=1;t=t})},S4e={startAngle:{enter:function(e){return Vn({},e,{endAngle:e.startAngle})},update:function(e){return e},leave:function(e){return Vn({},e,{startAngle:e.endAngle})}},middleAngle:{enter:function(e){var t=e.startAngle+(e.endAngle-e.startAngle)/2;return Vn({},e,{startAngle:t,endAngle:t})},update:function(e){return e},leave:function(e){var t=e.startAngle+(e.endAngle-e.startAngle)/2;return Vn({},e,{startAngle:t,endAngle:t})}},endAngle:{enter:function(e){return Vn({},e,{startAngle:e.endAngle})},update:function(e){return e},leave:function(e){return Vn({},e,{endAngle:e.startAngle})}},innerRadius:{enter:function(e){return Vn({},e,{outerRadius:e.innerRadius})},update:function(e){return e},leave:function(e){return Vn({},e,{innerRadius:e.outerRadius})}},centerRadius:{enter:function(e){var t=e.innerRadius+(e.outerRadius-e.innerRadius)/2;return Vn({},e,{innerRadius:t,outerRadius:t})},update:function(e){return e},leave:function(e){var t=e.innerRadius+(e.outerRadius-e.innerRadius)/2;return Vn({},e,{innerRadius:t,outerRadius:t})}},outerRadius:{enter:function(e){return Vn({},e,{innerRadius:e.outerRadius})},update:function(e){return e},leave:function(e){return Vn({},e,{outerRadius:e.innerRadius})}},pushIn:{enter:function(e){return Vn({},e,{innerRadius:e.innerRadius-e.outerRadius+e.innerRadius,outerRadius:e.innerRadius})},update:function(e){return e},leave:function(e){return Vn({},e,{innerRadius:e.outerRadius,outerRadius:e.outerRadius+e.outerRadius-e.innerRadius})}},pushOut:{enter:function(e){return Vn({},e,{innerRadius:e.outerRadius,outerRadius:e.outerRadius+e.outerRadius-e.innerRadius})},update:function(e){return e},leave:function(e){return Vn({},e,{innerRadius:e.innerRadius-e.outerRadius+e.innerRadius,outerRadius:e.innerRadius})}}},GW=function(e,t){return m.useMemo(function(){var n=S4e[e];return{enter:function(r){return Vn({progress:0},n.enter(r.arc),t?t.enter(r):{})},update:function(r){return Vn({progress:1},n.update(r.arc),t?t.update(r):{})},leave:function(r){return Vn({progress:0},n.leave(r.arc),t?t.leave(r):{})}}},[e,t])},$4e=function(e,t){var n=FOe(e)-Math.PI/2,r=e.innerRadius+(e.outerRadius-e.innerRadius)*t;return Sc(n,r)},_4e=function(e){return function(t,n,r,o){return du([t,n,r,o],function(i,a,s,l){var u=$4e({startAngle:i,endAngle:a,innerRadius:s,outerRadius:l},e);return"translate("+u.x+","+u.y+")"})}},k4e=function(e,t,n,r){t===void 0&&(t=.5),n===void 0&&(n="innerRadius");var o=To(),i=o.animate,a=o.config,s=GW(n,r);return{transition:ld(e,{keys:function(l){return l.id},initial:s.update,from:s.enter,enter:s.update,update:s.update,leave:s.leave,config:a,immediate:!i}),interpolate:_4e(t)}},P4e=function(e){var t=e.center,n=e.data,r=e.transitionMode,o=e.label,i=e.radiusOffset,a=e.skipAngle,s=e.textColor,l=e.component,u=l===void 0?w4e:l,c=$c(o),f=On(),p=ms(s,f),y=m.useMemo(function(){return n.filter(function(w){return Math.abs(Jw(w.arc.endAngle-w.arc.startAngle))>=a})},[n,a]),v=k4e(y,i,r),b=v.transition,C=v.interpolate,x=u;return g.jsx("g",{transform:"translate("+t[0]+","+t[1]+")",children:b(function(w,S){return m.createElement(x,{key:S.id,datum:S,label:c(S),style:Vn({},w,{transform:C(w.startAngle,w.endAngle,w.innerRadius,w.outerRadius),textColor:p(S)})})})})},M4e=function(e){var t=e.label,n=e.style,r=On();return g.jsxs(In.g,{opacity:n.opacity,children:[g.jsx(In.path,{fill:"none",stroke:n.linkColor,strokeWidth:n.thickness,d:n.path}),g.jsx(In.text,{transform:n.textPosition,textAnchor:n.textAnchor,dominantBaseline:"central",style:Vn({},r.labels.text,{fill:n.textColor}),children:t})]})},T4e=function(e){var t=UW(e.startAngle+(e.endAngle-e.startAngle)/2-Math.PI/2);return t1.5*Math.PI?"start":"end"},qW=function(e,t,n,r){var o,i,a=UW(e.startAngle+(e.endAngle-e.startAngle)/2-Math.PI/2),s=Sc(a,e.outerRadius+t),l=Sc(a,e.outerRadius+t+n);return a1.5*Math.PI?(o="after",i={x:l.x+r,y:l.y}):(o="before",i={x:l.x-r,y:l.y}),{side:o,points:[s,l,i]}},E4e=rT().x(function(e){return e.x}).y(function(e){return e.y}),I4e=function(e,t,n,r,o,i,a){return du([e,t,n,r,o,i,a],function(s,l,u,c,f,p,y){var v=qW({startAngle:s,endAngle:l,innerRadius:u,outerRadius:c},f,p,y).points;return E4e(v)})},R4e=function(e,t,n,r){return du([e,t,n,r],function(o,i,a,s){return T4e({startAngle:o,endAngle:i,innerRadius:a,outerRadius:s})})},O4e=function(e,t,n,r,o,i,a,s){return du([e,t,n,r,o,i,a,s],function(l,u,c,f,p,y,v,b){var C=qW({startAngle:l,endAngle:u,innerRadius:c,outerRadius:f},p,y,v),x=C.points,w=C.side,S=x[2];return w==="before"?S.x-=b:S.x+=b,"translate("+S.x+","+S.y+")"})},A4e=function(e){var t=e.data,n=e.offset,r=n===void 0?0:n,o=e.diagonalLength,i=e.straightLength,a=e.skipAngle,s=a===void 0?0:a,l=e.textOffset,u=e.linkColor,c=e.textColor,f=To(),p=f.animate,y=f.config,v=On(),b=ms(u,v),C=ms(c,v),x=function(S,$){return m.useMemo(function(){return C4e(S,$)},[S,$])}(t,s),w=function(S){var $=S.offset,T=S.diagonalLength,k=S.straightLength,M=S.textOffset,I=S.getLinkColor,N=S.getTextColor;return m.useMemo(function(){return{enter:function(E){return{startAngle:E.arc.startAngle,endAngle:E.arc.endAngle,innerRadius:E.arc.innerRadius,outerRadius:E.arc.outerRadius,offset:$,diagonalLength:0,straightLength:0,textOffset:M,linkColor:I(E),textColor:N(E),opacity:0}},update:function(E){return{startAngle:E.arc.startAngle,endAngle:E.arc.endAngle,innerRadius:E.arc.innerRadius,outerRadius:E.arc.outerRadius,offset:$,diagonalLength:T,straightLength:k,textOffset:M,linkColor:I(E),textColor:N(E),opacity:1}},leave:function(E){return{startAngle:E.arc.startAngle,endAngle:E.arc.endAngle,innerRadius:E.arc.innerRadius,outerRadius:E.arc.outerRadius,offset:$,diagonalLength:0,straightLength:0,textOffset:M,linkColor:I(E),textColor:N(E),opacity:0}}}},[T,k,M,I,N])}({offset:r,diagonalLength:o,straightLength:i,textOffset:l,getLinkColor:b,getTextColor:C});return{transition:ld(x,{keys:function(S){return S.id},initial:w.update,from:w.enter,enter:w.update,update:w.update,leave:w.leave,config:y,immediate:!p}),interpolateLink:I4e,interpolateTextAnchor:R4e,interpolateTextPosition:O4e}},F4e=function(e){var t=e.center,n=e.data,r=e.label,o=e.skipAngle,i=e.offset,a=e.diagonalLength,s=e.straightLength,l=e.strokeWidth,u=e.textOffset,c=e.textColor,f=e.linkColor,p=e.component,y=p===void 0?M4e:p,v=$c(r),b=A4e({data:n,skipAngle:o,offset:i,diagonalLength:a,straightLength:s,textOffset:u,linkColor:f,textColor:c}),C=b.transition,x=b.interpolateLink,w=b.interpolateTextAnchor,S=b.interpolateTextPosition,$=y;return g.jsx("g",{transform:"translate("+t[0]+","+t[1]+")",children:C(function(T,k){return m.createElement($,{key:k.id,datum:k,label:v(k),style:Vn({},T,{thickness:l,path:x(T.startAngle,T.endAngle,T.innerRadius,T.outerRadius,T.offset,T.diagonalLength,T.straightLength),textAnchor:w(T.startAngle,T.endAngle,T.innerRadius,T.outerRadius),textPosition:S(T.startAngle,T.endAngle,T.innerRadius,T.outerRadius,T.offset,T.diagonalLength,T.straightLength,T.textOffset)})})})})},L4e=function(e){var t=e.datum,n=e.style,r=e.onClick,o=e.onMouseEnter,i=e.onMouseMove,a=e.onMouseLeave,s=m.useCallback(function(f){return r==null?void 0:r(t,f)},[r,t]),l=m.useCallback(function(f){return o==null?void 0:o(t,f)},[o,t]),u=m.useCallback(function(f){return i==null?void 0:i(t,f)},[i,t]),c=m.useCallback(function(f){return a==null?void 0:a(t,f)},[a,t]);return g.jsx(In.path,{d:n.path,opacity:n.opacity,fill:t.fill||n.color,stroke:n.borderColor,strokeWidth:n.borderWidth,onClick:r?s:void 0,onMouseEnter:o?l:void 0,onMouseMove:i?u:void 0,onMouseLeave:a?c:void 0})},D4e=function(e,t,n,r,o){return du([e,t,n,r],function(i,a,s,l){return o({startAngle:i,endAngle:a,innerRadius:Math.max(0,s),outerRadius:Math.max(0,l)})})},j4e=function(e,t,n){t===void 0&&(t="innerRadius");var r=To(),o=r.animate,i=r.config,a=GW(t,n);return{transition:ld(e,{keys:function(s){return s.id},initial:a.update,from:a.enter,enter:a.update,update:a.update,leave:a.leave,config:i,immediate:!o}),interpolate:D4e}},N4e=function(e){var t=e.center,n=e.data,r=e.arcGenerator,o=e.borderWidth,i=e.borderColor,a=e.onClick,s=e.onMouseEnter,l=e.onMouseMove,u=e.onMouseLeave,c=e.transitionMode,f=e.component,p=f===void 0?L4e:f,y=On(),v=ms(i,y),b=j4e(n,c,{enter:function(S){return{opacity:0,color:S.color,borderColor:v(S)}},update:function(S){return{opacity:1,color:S.color,borderColor:v(S)}},leave:function(S){return{opacity:0,color:S.color,borderColor:v(S)}}}),C=b.transition,x=b.interpolate,w=p;return g.jsx("g",{transform:"translate("+t[0]+","+t[1]+")",children:C(function(S,$){return m.createElement(w,{key:$.id,datum:$,style:Vn({},S,{borderWidth:o,path:x(S.startAngle,S.endAngle,S.innerRadius,S.outerRadius,r)}),onClick:a,onMouseEnter:s,onMouseMove:l,onMouseLeave:u})})})},z4e=function(e,t,n,r,o,i){i===void 0&&(i=!0);var a=[],s=Sc(Qi(r),n);a.push([s.x,s.y]);var l=Sc(Qi(o),n);a.push([l.x,l.y]);for(var u=Math.round(Math.min(r,o));u<=Math.round(Math.max(r,o));u++)if(u%90==0){var c=Sc(Qi(u),n);a.push([c.x,c.y])}a=a.map(function(C){var x=C[0],w=C[1];return[e+x,t+w]}),i&&a.push([e,t]);var f=a.map(function(C){return C[0]}),p=a.map(function(C){return C[1]}),y=Math.min.apply(Math,f),v=Math.max.apply(Math,f),b=Math.min.apply(Math,p);return{points:a,x:y,y:b,width:v-y,height:Math.max.apply(Math,p)-b}},B4e=function(e){var t=e===void 0?{}:e,n=t.cornerRadius,r=n===void 0?0:n,o=t.padAngle,i=o===void 0?0:o;return m.useMemo(function(){return J3e().innerRadius(function(a){return a.innerRadius}).outerRadius(function(a){return a.outerRadius}).cornerRadius(r).padAngle(i)},[r,i])},H4e=function(e){var t=e.x,n=e.y,r=e.size,o=e.fill,i=e.opacity,a=i===void 0?1:i,s=e.borderWidth,l=s===void 0?0:s,u=e.borderColor;return g.jsx("circle",{r:r/2,cx:t+r/2,cy:n+r/2,fill:o,opacity:a,strokeWidth:l,stroke:u===void 0?"transparent":u,style:{pointerEvents:"none"}})},W4e=function(e){var t=e.x,n=e.y,r=e.size,o=e.fill,i=e.opacity,a=i===void 0?1:i,s=e.borderWidth,l=s===void 0?0:s,u=e.borderColor;return g.jsx("g",{transform:"translate("+t+","+n+")",children:g.jsx("path",{d:` - M`+r/2+` 0 - L`+.8*r+" "+r/2+` - L`+r/2+" "+r+` - L`+.2*r+" "+r/2+` - L`+r/2+` 0 - `,fill:o,opacity:a,strokeWidth:l,stroke:u===void 0?"transparent":u,style:{pointerEvents:"none"}})})},V4e=function(e){var t=e.x,n=e.y,r=e.size,o=e.fill,i=e.opacity,a=i===void 0?1:i,s=e.borderWidth,l=s===void 0?0:s,u=e.borderColor;return g.jsx("rect",{x:t,y:n,fill:o,opacity:a,strokeWidth:l,stroke:u===void 0?"transparent":u,width:r,height:r,style:{pointerEvents:"none"}})},U4e=function(e){var t=e.x,n=e.y,r=e.size,o=e.fill,i=e.opacity,a=i===void 0?1:i,s=e.borderWidth,l=s===void 0?0:s,u=e.borderColor;return g.jsx("g",{transform:"translate("+t+","+n+")",children:g.jsx("path",{d:` - M`+r/2+` 0 - L`+r+" "+r+` - L0 `+r+` - L`+r/2+` 0 - `,fill:o,opacity:a,strokeWidth:l,stroke:u===void 0?"transparent":u,style:{pointerEvents:"none"}})})};function uc(){return uc=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}var p8,Z4e=function(e){var t=e.width,n=e.height,r=e.legends,o=e.data,i=e.toggleSerie;return g.jsx(g.Fragment,{children:r.map(function(a,s){var l;return g.jsx(xT,ul({},a,{containerWidth:t,containerHeight:n,data:(l=a.data)!=null?l:o,toggleSerie:a.toggleSerie?i:void 0}),s)})})},kt={id:"id",value:"value",sortByValue:!1,innerRadius:0,padAngle:0,cornerRadius:0,layers:["arcLinkLabels","arcs","arcLabels","legends"],startAngle:0,endAngle:360,fit:!0,activeInnerRadiusOffset:0,activeOuterRadiusOffset:0,borderWidth:0,borderColor:{from:"color",modifiers:[["darker",1]]},enableArcLabels:!0,arcLabel:"formattedValue",arcLabelsSkipAngle:0,arcLabelsRadiusOffset:.5,arcLabelsTextColor:{theme:"labels.text.fill"},enableArcLinkLabels:!0,arcLinkLabel:"id",arcLinkLabelsSkipAngle:0,arcLinkLabelsOffset:0,arcLinkLabelsDiagonalLength:16,arcLinkLabelsStraightLength:24,arcLinkLabelsThickness:1,arcLinkLabelsTextOffset:6,arcLinkLabelsTextColor:{theme:"labels.text.fill"},arcLinkLabelsColor:{theme:"axis.ticks.line.stroke"},colors:{scheme:"nivo"},defs:[],fill:[],isInteractive:!0,animate:!0,motionConfig:"gentle",transitionMode:"innerRadius",tooltip:function(e){var t=e.datum;return g.jsx(v5,{id:t.id,value:t.formattedValue,enableChip:!0,color:t.color})},legends:[],role:"img",pixelRatio:typeof window<"u"&&(p8=window.devicePixelRatio)!=null?p8:1},J4e=["points"],eAe=function(e){var t=e.data,n=e.id,r=n===void 0?kt.id:n,o=e.value,i=o===void 0?kt.value:o,a=e.valueFormat,s=e.colors,l=s===void 0?kt.colors:s,u=$c(r),c=$c(i),f=Rg(a),p=yT(l,"id");return m.useMemo(function(){return t.map(function(y){var v,b=u(y),C=c(y),x={id:b,label:(v=y.label)!=null?v:b,hidden:!1,value:C,formattedValue:f(C),data:y};return ul({},x,{color:p(x)})})},[t,u,c,f,p])},tAe=function(e){var t=e.data,n=e.startAngle,r=e.endAngle,o=e.innerRadius,i=e.outerRadius,a=e.padAngle,s=e.sortByValue,l=e.activeId,u=e.activeInnerRadiusOffset,c=e.activeOuterRadiusOffset,f=e.hiddenIds,p=m.useMemo(function(){var y=rEe().value(function(v){return v.value}).startAngle(Qi(n)).endAngle(Qi(r)).padAngle(Qi(a));return s||y.sortValues(null),y},[n,r,a,s]);return m.useMemo(function(){var y=t.filter(function(v){return!f.includes(v.id)});return{dataWithArc:p(y).map(function(v){var b=Math.abs(v.endAngle-v.startAngle);return ul({},v.data,{arc:{index:v.index,startAngle:v.startAngle,endAngle:v.endAngle,innerRadius:l===v.data.id?o-u:o,outerRadius:l===v.data.id?i+c:i,thickness:i-o,padAngle:v.padAngle,angle:b,angleDeg:Jw(b)}})}),legendData:t.map(function(v){return ul({},v,{hidden:f.includes(v.id)})})}},[p,t,f,l,o,u,i,c])},nAe=function(e){var t=e.data,n=e.width,r=e.height,o=e.innerRadius,i=o===void 0?kt.innerRadius:o,a=e.startAngle,s=a===void 0?kt.startAngle:a,l=e.endAngle,u=l===void 0?kt.endAngle:l,c=e.padAngle,f=c===void 0?kt.padAngle:c,p=e.sortByValue,y=p===void 0?kt.sortByValue:p,v=e.cornerRadius,b=v===void 0?kt.cornerRadius:v,C=e.fit,x=C===void 0?kt.fit:C,w=e.activeInnerRadiusOffset,S=w===void 0?kt.activeInnerRadiusOffset:w,$=e.activeOuterRadiusOffset,T=$===void 0?kt.activeOuterRadiusOffset:$,k=m.useState(null),M=k[0],I=k[1],N=m.useState([]),E=N[0],A=N[1],z=m.useMemo(function(){var D,H=Math.min(n,r)/2,B=H*Math.min(i,1),j=n/2,W=r/2;if(x){var U=z4e(j,W,H,s-90,u-90),Z=U.points,Y=QW(U,J4e),se=Math.min(n/Y.width,r/Y.height),Q={width:Y.width*se,height:Y.height*se};Q.x=(n-Q.width)/2,Q.y=(r-Q.height)/2,j=(j-Y.x)/Y.width*Y.width*se+Q.x,W=(W-Y.y)/Y.height*Y.height*se+Q.y,D={box:Y,ratio:se,points:Z},H*=se,B*=se}return{centerX:j,centerY:W,radius:H,innerRadius:B,debug:D}},[n,r,i,s,u,x,b]),L=tAe({data:t,startAngle:s,endAngle:u,innerRadius:z.innerRadius,outerRadius:z.radius,padAngle:f,sortByValue:y,activeId:M,activeInnerRadiusOffset:S,activeOuterRadiusOffset:T,hiddenIds:E}),O=m.useCallback(function(D){A(function(H){return H.indexOf(D)>-1?H.filter(function(B){return B!==D}):[].concat(H,[D])})},[]);return ul({arcGenerator:B4e({cornerRadius:b,padAngle:Qi(f)}),setActiveId:I,toggleSerie:O},L,z)},rAe=function(e){var t=e.dataWithArc,n=e.arcGenerator,r=e.centerX,o=e.centerY,i=e.radius,a=e.innerRadius;return m.useMemo(function(){return{dataWithArc:t,arcGenerator:n,centerX:r,centerY:o,radius:i,innerRadius:a}},[t,n,r,o,i,a])},oAe=function(e){var t=e.center,n=e.data,r=e.arcGenerator,o=e.borderWidth,i=e.borderColor,a=e.isInteractive,s=e.onClick,l=e.onMouseEnter,u=e.onMouseMove,c=e.onMouseLeave,f=e.setActiveId,p=e.tooltip,y=e.transitionMode,v=Np(),b=v.showTooltipFromEvent,C=v.hideTooltip,x=m.useMemo(function(){if(a)return function(T,k){s==null||s(T,k)}},[a,s]),w=m.useMemo(function(){if(a)return function(T,k){b(m.createElement(p,{datum:T}),k),f(T.id),l==null||l(T,k)}},[a,b,f,l,p]),S=m.useMemo(function(){if(a)return function(T,k){b(m.createElement(p,{datum:T}),k),u==null||u(T,k)}},[a,b,u,p]),$=m.useMemo(function(){if(a)return function(T,k){C(),f(null),c==null||c(T,k)}},[a,C,f,c]);return g.jsx(N4e,{center:t,data:n,arcGenerator:r,borderWidth:o,borderColor:i,transitionMode:y,onClick:x,onMouseEnter:w,onMouseMove:S,onMouseLeave:$})},iAe=["isInteractive","animate","motionConfig","theme","renderWrapper"],aAe=function(e){var t=e.data,n=e.id,r=n===void 0?kt.id:n,o=e.value,i=o===void 0?kt.value:o,a=e.valueFormat,s=e.sortByValue,l=s===void 0?kt.sortByValue:s,u=e.layers,c=u===void 0?kt.layers:u,f=e.startAngle,p=f===void 0?kt.startAngle:f,y=e.endAngle,v=y===void 0?kt.endAngle:y,b=e.padAngle,C=b===void 0?kt.padAngle:b,x=e.fit,w=x===void 0?kt.fit:x,S=e.innerRadius,$=S===void 0?kt.innerRadius:S,T=e.cornerRadius,k=T===void 0?kt.cornerRadius:T,M=e.activeInnerRadiusOffset,I=M===void 0?kt.activeInnerRadiusOffset:M,N=e.activeOuterRadiusOffset,E=N===void 0?kt.activeOuterRadiusOffset:N,A=e.width,z=e.height,L=e.margin,O=e.colors,D=O===void 0?kt.colors:O,H=e.borderWidth,B=H===void 0?kt.borderWidth:H,j=e.borderColor,W=j===void 0?kt.borderColor:j,U=e.enableArcLabels,Z=U===void 0?kt.enableArcLabels:U,Y=e.arcLabel,se=Y===void 0?kt.arcLabel:Y,Q=e.arcLabelsSkipAngle,ne=Q===void 0?kt.arcLabelsSkipAngle:Q,re=e.arcLabelsTextColor,ge=re===void 0?kt.arcLabelsTextColor:re,xe=e.arcLabelsRadiusOffset,fe=xe===void 0?kt.arcLabelsRadiusOffset:xe,Se=e.arcLabelsComponent,de=e.enableArcLinkLabels,ie=de===void 0?kt.enableArcLinkLabels:de,Pe=e.arcLinkLabel,$e=Pe===void 0?kt.arcLinkLabel:Pe,me=e.arcLinkLabelsSkipAngle,ue=me===void 0?kt.arcLinkLabelsSkipAngle:me,ce=e.arcLinkLabelsOffset,Te=ce===void 0?kt.arcLinkLabelsOffset:ce,Le=e.arcLinkLabelsDiagonalLength,Re=Le===void 0?kt.arcLinkLabelsDiagonalLength:Le,Oe=e.arcLinkLabelsStraightLength,K=Oe===void 0?kt.arcLinkLabelsStraightLength:Oe,ee=e.arcLinkLabelsThickness,pe=ee===void 0?kt.arcLinkLabelsThickness:ee,ye=e.arcLinkLabelsTextOffset,De=ye===void 0?kt.arcLinkLabelsTextOffset:ye,Ae=e.arcLinkLabelsTextColor,Ee=Ae===void 0?kt.arcLinkLabelsTextColor:Ae,Ce=e.arcLinkLabelsColor,Qe=Ce===void 0?kt.arcLinkLabelsColor:Ce,Ct=e.arcLinkLabelComponent,et=e.defs,Be=et===void 0?kt.defs:et,te=e.fill,X=te===void 0?kt.fill:te,oe=e.isInteractive,Ie=oe===void 0?kt.isInteractive:oe,Ve=e.onClick,Ke=e.onMouseEnter,at=e.onMouseMove,Je=e.onMouseLeave,nt=e.tooltip,_t=nt===void 0?kt.tooltip:nt,ht=e.transitionMode,lt=ht===void 0?kt.transitionMode:ht,Rt=e.legends,jt=Rt===void 0?kt.legends:Rt,dn=e.role,hn=dn===void 0?kt.role:dn,Pt=b0(A,z,L),zt=Pt.outerWidth,un=Pt.outerHeight,cn=Pt.margin,ut=Pt.innerWidth,mt=Pt.innerHeight,Ot=eAe({data:t,id:r,value:i,valueFormat:a,colors:D}),At=nAe({data:Ot,width:ut,height:mt,fit:w,innerRadius:$,startAngle:p,endAngle:v,padAngle:C,sortByValue:l,cornerRadius:k,activeInnerRadiusOffset:I,activeOuterRadiusOffset:E}),tt=At.dataWithArc,Ut=At.legendData,_e=At.arcGenerator,we=At.centerX,Fe=At.centerY,rt=At.radius,Tt=At.innerRadius,en=At.setActiveId,_n=At.toggleSerie,ct=gT(Be,tt,X),gt={arcLinkLabels:null,arcs:null,arcLabels:null,legends:null};ie&&c.includes("arcLinkLabels")&&(gt.arcLinkLabels=g.jsx(F4e,{center:[we,Fe],data:tt,label:$e,skipAngle:ue,offset:Te,diagonalLength:Re,straightLength:K,strokeWidth:pe,textOffset:De,textColor:Ee,linkColor:Qe,component:Ct},"arcLinkLabels")),c.includes("arcs")&&(gt.arcs=g.jsx(oAe,{center:[we,Fe],data:tt,arcGenerator:_e,borderWidth:B,borderColor:W,isInteractive:Ie,onClick:Ve,onMouseEnter:Ke,onMouseMove:at,onMouseLeave:Je,setActiveId:en,tooltip:_t,transitionMode:lt},"arcs")),Z&&c.includes("arcLabels")&&(gt.arcLabels=g.jsx(P4e,{center:[we,Fe],data:tt,label:se,radiusOffset:fe,skipAngle:ne,textColor:ge,transitionMode:lt,component:Se},"arcLabels")),jt.length>0&&c.includes("legends")&&(gt.legends=g.jsx(Z4e,{width:ut,height:mt,data:Ut,legends:jt,toggleSerie:_n},"legends"));var or=rAe({dataWithArc:tt,arcGenerator:_e,centerX:we,centerY:Fe,radius:rt,innerRadius:Tt});return g.jsx(e2,{width:zt,height:un,margin:cn,defs:ct,role:hn,children:c.map(function(Md,Td){return gt[Md]!==void 0?gt[Md]:typeof Md=="function"?g.jsx(m.Fragment,{children:m.createElement(Md,or)},Td):null})})},sAe=function(e){var t=e.isInteractive,n=t===void 0?kt.isInteractive:t,r=e.animate,o=r===void 0?kt.animate:r,i=e.motionConfig,a=i===void 0?kt.motionConfig:i,s=e.theme,l=e.renderWrapper,u=QW(e,iAe);return g.jsx(x0,{animate:o,isInteractive:n,motionConfig:a,renderWrapper:l,theme:s,children:g.jsx(aAe,ul({isInteractive:n},u))})},lAe=function(e){return g.jsx(Jp,{children:function(t){var n=t.width,r=t.height;return g.jsx(sAe,ul({width:n,height:r},e))}})};const uAe=({data:e})=>{const t=Xt(),n=jn(t.palette.mode);return g.jsx(lAe,{data:e,margin:{top:20,right:80,bottom:20,left:80},activeOuterRadiusOffset:8,colors:{scheme:"blues"},borderColor:{from:"color",modifiers:[["darker",.2]]},enableArcLinkLabels:!0,arcLinkLabelsSkipAngle:10,arcLinkLabelsTextColor:n.primary[100],arcLinkLabelsThickness:2,arcLinkLabelsColor:{from:"color",modifiers:[]},arcLabelsSkipAngle:10,arcLabelsTextColor:"#000",arcLabelsRadiusOffset:.7,valueFormat:r=>`${Number(r).toLocaleString("ru-RU",{minimumFractionDigits:2})}%`,motionConfig:{mass:1,tension:170,friction:26,clamp:!1,precision:.01,velocity:0},theme:{tooltip:{container:{background:`${n.primary[500]}`,color:`${n.primary[100]}`}}}})},cAe=[{field:"id",headerName:"ID",type:"number",flex:1,minWidth:80,maxWidth:80},{field:"sourceName",headerName:"Source name",type:"string",flex:1,minWidth:160,maxWidth:160,editable:!0},{field:"amount",headerName:"Amount ($)",type:"number",flex:1,minWidth:110,maxWidth:110,editable:!0},{field:"paymentMethod",headerName:"Payment Method",type:"string",sortable:!0,flex:.3,minWidth:160,maxWidth:150,editable:!0},{field:"frequency",headerName:"Frequency",type:"string",flex:1,minWidth:120,maxWidth:90},{field:"status",headerName:"Status",type:"boolean",flex:1,minWidth:100,maxWidth:100},{field:"received",headerName:"Received",type:"string",flex:1,minWidth:120,maxWidth:100},{field:"category",headerName:"Category",type:"string",flex:1,minWidth:140,maxWidth:140},{field:"description",headerName:"Description",type:"string",flex:1,minWidth:140,maxWidth:140},{field:"nextPayment",headerName:"Next Payment",type:"string",flex:1,minWidth:120,maxWidth:120},{field:"taxRate",headerName:"Tax Rate (%)",type:"number",flex:1,minWidth:120,maxWidth:100}],dAe=[{id:1,amount:1e3,paymentMethod:"credit card",sourceName:"Job Salary",status:"Active",frequency:"Monthly",received:"05.01.2023",category:"Employment ",description:"Monthly pay",nextPayment:"05.02.2023",taxRate:20},{id:2,amount:500,paymentMethod:"online",sourceName:"Freelance Work",status:"Active",frequency:"Weekly",received:"07.01.2023",category:"Freelance",description:"Web design",nextPayment:"14.01.2023",taxRate:30},{id:3,amount:300,paymentMethod:"online",sourceName:"Rental Income",status:"Active",frequency:"Monthly",received:"15.01.2023",category:"Property ",description:"Rent",nextPayment:"15.02.2023",taxRate:20},{id:4,amount:300,paymentMethod:"Venmo",sourceName:"Side Gig",status:"Active",frequency:"Weekly",received:"31.12.2022",category:"Business",description:"Photography",nextPayment:"01.03.2023",taxRate:15},{id:5,amount:150,paymentMethod:"cash",sourceName:"Side Hustle",status:"Active",frequency:"Bi-weekly",received:"01.01.2023",category:"Gig",description:"Event DJ",nextPayment:"14.01.2023",taxRate:10},{id:6,amount:100,paymentMethod:"credit card",sourceName:"Gift Money",status:"Active",frequency:"One-time",received:"01.01.2023",category:"Personal",description:"Birthday",nextPayment:null,taxRate:5},{id:7,amount:250,paymentMethod:"Bank Transfer",sourceName:"Dividend",status:"Active",frequency:"Yearly",received:"29.12.2023",category:"Investment",description:"Stocks",nextPayment:"2024.01.15",taxRate:10},{id:8,amount:400,paymentMethod:"PayPal",sourceName:"Rent",status:"Active",frequency:"Monthly",received:"03.02.2023",category:"Housing",description:"Apartment",nextPayment:"03.03.2023",taxRate:15},{id:9,amount:400,paymentMethod:"PayPal",sourceName:"Sale",status:"Active",frequency:"One-time",received:"20.01.2023",category:"Personal",description:"Electronics",nextPayment:null,taxRate:20}],fAe=[{id:"Electricity",label:"Electricity",value:19,color:"hsl(173, 70%, 50%)"},{id:"Phone",label:"Phone",value:7,color:"hsl(352, 70%, 50%)"},{id:"Gas",label:"Gas",value:10,color:"hsl(180, 70%, 50%)"},{id:"WaterSewer",label:"Water and sewer",value:18,color:"hsl(128, 70%, 50%)"},{id:"Cable",label:"Cable",value:5,color:"hsl(269, 70%, 50%)"},{id:"Waste",label:"Waste removal",value:6,color:"hsl(24, 85%, 56%)"},{id:"Other",label:"Other",value:35,color:"hsl(240, 9%, 81%)"}],pAe=[{title:"Housing",currentValue:"2,500",limit:"3,000"},{title:"Utilities",currentValue:"600",limit:"1,500"},{title:"Transportation",currentValue:"900",limit:"2,000"},{title:"Food",currentValue:"1,250",limit:"2,500"},{title:"Health Insurance",currentValue:"500",limit:"1,500"},{title:"Personal Care",currentValue:"80",limit:"500"},{title:"Clothing",currentValue:"200",limit:"500"},{title:"Entertainment",currentValue:"50",limit:"300"},{title:"Travel",currentValue:"1,200",limit:"5,000"},{title:"Education",currentValue:"800",limit:"2,000"},{title:"Debt Repayment",currentValue:"3,000",limit:"4,000"},{title:"Insurance",currentValue:"1,750",limit:"3,000"},{title:"Phone Bill",currentValue:"2,500",limit:"3,000"},{title:"Internet Bill",currentValue:"2,500",limit:"3,000"},{title:"Charity and Donations",currentValue:"500",limit:"1,000"}],hAe=[{field:"id",headerName:"ID",flex:1,minWidth:80,maxWidth:80},{field:"title",headerName:"Title",flex:1,minWidth:160,maxWidth:190},{field:"amount",headerName:"Amount",flex:1,minWidth:110,maxWidth:130},{field:"description",headerName:"Description",flex:1,minWidth:160,maxWidth:190},{field:"goal",headerName:"Goal",flex:1,minWidth:110,maxWidth:130},{field:"targetDate",headerName:"Target Date",flex:1,minWidth:130,maxWidth:160},{field:"progress",headerName:"Progress"},{field:"category",headerName:"Category",flex:1,minWidth:120,maxWidth:100},{field:"status",headerName:"Status",description:"This column has a value getter and is not sortable.",flex:1,minWidth:130,maxWidth:160}],mAe=[{id:1,title:"Emergency",amount:"$1000",description:"Emergency Fund",goal:"$5000",targetDate:"12.31.2023",progress:"20%",category:"General",status:"Incomplete"},{id:2,title:"Vacation",amount:"$2000",description:"Saving for vacation",goal:"$5000",targetDate:"06.30.2024",progress:"40%",category:"Travel",status:"Incomplete"},{id:3,title:"Car",amount:"$500",description:"Saving for a new car",goal:"$10000",targetDate:"10.15.2024",progress:"5%",category:"Vehicle",status:"Incomplete"},{id:4,title:"Education",amount:"$2500",description:"College fund",goal:"$15000",targetDate:"12.31.2024",progress:"16.67%",category:"Education",status:"Incomplete"}],ZW=()=>g.jsx(mr,{title:"Budget Allocation",content:g.jsx(_i,{style:{height:"400px",padding:0},children:g.jsx(uAe,{data:fAe})}),height:500}),JW=m.createContext(void 0);function Wt(){const e=m.useContext(JW);if(e===void 0)throw new Error(["MUI: Could not find the data grid context.","It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.","This can also happen if you are bundling multiple versions of the data grid."].join(` -`));return e}const eV=m.createContext(void 0),dt=()=>{const e=m.useContext(eV);if(!e)throw new Error("MUI: useGridRootProps should only be used inside the DataGrid, DataGridPro or DataGridPremium component.");return e},tV=m.createContext(void 0);function Mu(){const e=m.useContext(tV);if(e===void 0)throw new Error(["MUI: Could not find the data grid private context.","It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.","This can also happen if you are bundling multiple versions of the data grid."].join(` -`));return e}const h8={};function wT(e,t){const n=m.useRef(h8);return n.current===h8&&(n.current=e(t)),n}const gAe=[];function nV(e){m.useEffect(e,gAe)}const $s=(e,t="warning")=>{let n=!1;const r=Array.isArray(e)?e.join(` -`):e;return()=>{n||(n=!0,t==="error"?console.error(r):console.warn(r))}},vAe=Object.is;function rV(e,t){if(e===t)return!0;if(!(e instanceof Object)||!(t instanceof Object))return!1;let n=0,r=0;for(const o in e)if(n+=1,!vAe(e[o],t[o])||!(o in t))return!1;for(const o in t)r+=1;return n===r}$s(["MUI: `useGridSelector` has been called before the initialization of the state.","This hook can only be used inside the context of the grid."]);function yAe(e){return e.acceptsApiRef}function m8(e,t){return yAe(t)?t(e):t(e.current.state)}const bAe=Object.is,CT=rV,xAe=()=>({state:null,equals:null,selector:null}),it=(e,t,n=bAe)=>{const r=wT(xAe),o=r.current.selector!==null,[i,a]=m.useState(o?null:m8(e,t));return r.current.state=i,r.current.equals=n,r.current.selector=t,nV(()=>e.current.store.subscribe(()=>{const s=m8(e,r.current.selector);r.current.equals(r.current.state,s)||(r.current.state=s,a(s))})),i};function Jt(e){return yt("MuiDataGrid",e)}const le=bt("MuiDataGrid",["actionsCell","aggregationColumnHeader","aggregationColumnHeader--alignLeft","aggregationColumnHeader--alignCenter","aggregationColumnHeader--alignRight","aggregationColumnHeaderLabel","autoHeight","autosizing","booleanCell","cell--editable","cell--editing","cell--textCenter","cell--textLeft","cell--textRight","cell--withRenderer","cell--rangeTop","cell--rangeBottom","cell--rangeLeft","cell--rangeRight","cell--selectionMode","cell","cellContent","cellCheckbox","cellSkeleton","checkboxInput","columnHeader--alignCenter","columnHeader--alignLeft","columnHeader--alignRight","columnHeader--dragging","columnHeader--moving","columnHeader--numeric","columnHeader--sortable","columnHeader--sorted","columnHeader--filtered","columnHeader","columnHeaderCheckbox","columnHeaderDraggableContainer","columnHeaderDropZone","columnHeaderTitle","columnHeaderTitleContainer","columnHeaderTitleContainerContent","columnGroupHeader","columnHeader--filledGroup","columnHeader--emptyGroup","columnHeader--showColumnBorder","columnHeaders","columnHeadersInner","columnHeadersInner--scrollable","columnSeparator--resizable","columnSeparator--resizing","columnSeparator--sideLeft","columnSeparator--sideRight","columnSeparator","columnsPanel","columnsPanelRow","detailPanel","detailPanels","detailPanelToggleCell","detailPanelToggleCell--expanded","footerCell","panel","panelHeader","panelWrapper","panelContent","panelFooter","paper","editBooleanCell","editInputCell","filterForm","filterFormDeleteIcon","filterFormLogicOperatorInput","filterFormColumnInput","filterFormOperatorInput","filterFormValueInput","filterIcon","footerContainer","headerFilterRow","iconButtonContainer","iconSeparator","main","menu","menuIcon","menuIconButton","menuOpen","menuList","overlay","overlayWrapper","overlayWrapperInner","root","root--densityStandard","root--densityComfortable","root--densityCompact","root--disableUserSelection","row","row--editable","row--editing","row--lastVisible","row--dragging","row--dynamicHeight","row--detailPanelExpanded","rowReorderCellPlaceholder","rowCount","rowReorderCellContainer","rowReorderCell","rowReorderCell--draggable","scrollArea--left","scrollArea--right","scrollArea","selectedRowCount","sortIcon","toolbarContainer","toolbarFilterList","virtualScroller","virtualScrollerContent","virtualScrollerContent--overflowed","virtualScrollerRenderZone","pinnedColumns","pinnedColumns--left","pinnedColumns--right","pinnedColumnHeaders","pinnedColumnHeaders--left","pinnedColumnHeaders--right","withBorderColor","cell--withRightBorder","columnHeader--withRightBorder","treeDataGroupingCell","treeDataGroupingCellToggle","groupingCriteriaCell","groupingCriteriaCellToggle","pinnedRows","pinnedRows--top","pinnedRows--bottom","pinnedRowsRenderZone"]);var ob="NOT_FOUND";function wAe(e){var t;return{get:function(r){return t&&e(t.key,r)?t.value:ob},put:function(r,o){t={key:r,value:o}},getEntries:function(){return t?[t]:[]},clear:function(){t=void 0}}}function CAe(e,t){var n=[];function r(s){var l=n.findIndex(function(c){return t(s,c.key)});if(l>-1){var u=n[l];return l>0&&(n.splice(l,1),n.unshift(u)),u.value}return ob}function o(s,l){r(s)===ob&&(n.unshift({key:s,value:l}),n.length>e&&n.pop())}function i(){return n}function a(){n=[]}return{get:r,put:o,getEntries:i,clear:a}}var SAe=function(t,n){return t===n};function $Ae(e){return function(n,r){if(n===null||r===null||n.length!==r.length)return!1;for(var o=n.length,i=0;i1?t-1:0),r=1;r{if(a.length>0)throw new Error("Unsupported number of selectors");let s;if(e&&t&&n&&r&&o&&i)s=(l,u)=>{const c=uf(l),f=u??(c?l.current.instanceId:cf),p=c?l.current.state:l,y=e(p,f),v=t(p,f),b=n(p,f),C=r(p,f),x=o(p,f);return i(y,v,b,C,x)};else if(e&&t&&n&&r&&o)s=(l,u)=>{const c=uf(l),f=u??(c?l.current.instanceId:cf),p=c?l.current.state:l,y=e(p,f),v=t(p,f),b=n(p,f),C=r(p,f);return o(y,v,b,C)};else if(e&&t&&n&&r)s=(l,u)=>{const c=uf(l),f=u??(c?l.current.instanceId:cf),p=c?l.current.state:l,y=e(p,f),v=t(p,f),b=n(p,f);return r(y,v,b)};else if(e&&t&&n)s=(l,u)=>{const c=uf(l),f=u??(c?l.current.instanceId:cf),p=c?l.current.state:l,y=e(p,f),v=t(p,f);return n(y,v)};else if(e&&t)s=(l,u)=>{const c=uf(l),f=u??(c?l.current.instanceId:cf),p=c?l.current.state:l,y=e(p,f);return t(y)};else throw new Error("Missing arguments");return s.acceptsApiRef=!0,s},Jn=(...e)=>{const t=(...n)=>{var r,o;const[i,a]=n,s=uf(i),l=s?i.current.instanceId:a??cf,u=s?i.current.state:i,{cache:c}=MAe;if(c.get(l)&&(r=c.get(l))!=null&&r.get(e)){var f;return(f=c.get(l))==null?void 0:f.get(e)(u,l)}const p=PAe(...e);return c.get(l)||c.set(l,new Map),(o=c.get(l))==null||o.set(e,p),p(u,l)};return t.acceptsApiRef=!0,t},kc=e=>e.columns,tl=Vt(kc,e=>e.orderedFields),gd=Vt(kc,e=>e.lookup),us=Jn(tl,gd,(e,t)=>e.map(n=>t[n])),$a=Vt(kc,e=>e.columnVisibilityModel),Xr=Jn(us,$a,(e,t)=>e.filter(n=>t[n.field]!==!1)),n2=Jn(Xr,e=>e.map(t=>t.field)),Pp=Jn(Xr,e=>{const t=[];let n=0;for(let r=0;r{const n=e.length;return n===0?0:t[n-1]+e[n-1].computedWidth}),oV=Jn(us,e=>e.filter(t=>t.filterable)),TAe=Jn(us,e=>e.reduce((t,n)=>(n.filterable&&(t[n.field]=n),t),{})),r2=e=>e.columnGrouping,EAe=Jn(r2,e=>{var t;return(t=e==null?void 0:e.unwrappedGroupingModel)!=null?t:{}}),iV=Jn(r2,e=>{var t;return(t=e==null?void 0:e.lookup)!=null?t:{}}),IAe=Jn(r2,e=>{var t;return(t=e==null?void 0:e.headerStructure)!=null?t:[]}),C0=Vt(r2,e=>{var t;return(t=e==null?void 0:e.maxDepth)!=null?t:0}),Oa=e=>e.rows,o2=Vt(Oa,e=>e.totalRowCount),RAe=Vt(Oa,e=>e.loading),OAe=Vt(Oa,e=>e.totalTopLevelRowCount),Gl=Vt(Oa,e=>e.dataRowIdToModelLookup),ib=Vt(Oa,e=>e.dataRowIdToIdLookup),wa=Vt(Oa,e=>e.tree),AAe=Vt(Oa,e=>e.groupingName),g8=Vt(Oa,e=>e.treeDepths),i2=Jn(Oa,e=>{const t=Object.entries(e.treeDepths);return t.length===0?1:t.filter(([,n])=>n>0).map(([n])=>Number(n)).sort((n,r)=>r-n)[0]+1}),t1=Vt(Oa,e=>e.dataRowIds),FAe=Vt(Oa,e=>e==null?void 0:e.additionalRowGroups),eh=Jn(FAe,e=>{var t,n;const r=e==null?void 0:e.pinnedRows;return{bottom:r==null||(t=r.bottom)==null?void 0:t.map(o=>{var i;return{id:o.id,model:(i=o.model)!=null?i:{}}}),top:r==null||(n=r.top)==null?void 0:n.map(o=>{var i;return{id:o.id,model:(i=o.model)!=null?i:{}}})}}),LAe=Vt(eh,e=>{var t,n;return((e==null||(t=e.top)==null?void 0:t.length)||0)+((e==null||(n=e.bottom)==null?void 0:n.length)||0)}),aV=()=>{var e;const t=Mu(),n=dt(),r=it(t,Xr),o=it(t,o2),i=it(t,C0),a=it(t,LAe);let s="grid";return(e=n.experimentalFeatures)!=null&&e.ariaV7&&n.treeData&&(s="treegrid"),{role:s,"aria-colcount":r.length,"aria-rowcount":i+1+a+o,"aria-multiselectable":!n.disableMultipleRowSelection}},DAe=e=>{const{classes:t}=e;return qe({root:["main"]},Jt,t)},jAe=Ar("div",{name:"MuiDataGrid",slot:"Main",overridesResolver:(e,t)=>t.main})(()=>({position:"relative",flexGrow:1,display:"flex",flexDirection:"column",overflow:"hidden"})),NAe=m.forwardRef((e,t)=>{var n;const r=dt(),o=DAe(r),i=(n=r.experimentalFeatures)!=null&&n.ariaV7?aV:null,a=typeof i=="function"?i():null;return g.jsx(jAe,P({ref:t,className:o.root,ownerState:r},a,{children:e.children}))}),sV=e=>e.sorting,$T=Vt(sV,e=>e.sortedRows),_T=Jn($T,Gl,(e,t)=>e.map(n=>{var r;return{id:n,model:(r=t[n])!=null?r:{}}})),Di=Vt(sV,e=>e.sortModel),zAe=Jn(Di,e=>e.reduce((n,r,o)=>(n[r.field]={sortDirection:r.sort,sortIndex:e.length>1?o+1:void 0},n),{})),kT=e=>e.filter,qr=Vt(kT,e=>e.filterModel),BAe=Vt(qr,e=>e.quickFilterValues),HAe=e=>e.visibleRowsLookup,lV=Vt(kT,e=>e.filteredRowsLookup);Vt(kT,e=>e.filteredDescendantCountLookup);const Tu=Jn(HAe,_T,(e,t)=>t.filter(n=>e[n.id]!==!1)),Rm=Jn(Tu,e=>e.map(t=>t.id)),WAe=Jn(lV,_T,(e,t)=>t.filter(n=>e[n.id]!==!1)),VAe=Jn(WAe,e=>e.map(t=>t.id)),uV=Jn(Tu,wa,i2,(e,t,n)=>n<2?e:e.filter(r=>{var o;return((o=t[r.id])==null?void 0:o.depth)===0})),cV=Vt(Tu,e=>e.length),a2=Vt(uV,e=>e.length),dV=Jn(qr,gd,(e,t)=>{var n;return(n=e.items)==null?void 0:n.filter(r=>{var o,i;if(!r.field)return!1;const a=t[r.field];if(!(a!=null&&a.filterOperators)||(a==null||(o=a.filterOperators)==null?void 0:o.length)===0)return!1;const s=a.filterOperators.find(l=>l.value===r.operator);return s?!s.InputComponent||r.value!=null&&((i=r.value)==null?void 0:i.toString())!=="":!1})}),UAe=Jn(dV,e=>e.reduce((n,r)=>(n[r.field]?n[r.field].push(r):n[r.field]=[r],n),{})),s2=e=>e.focus,si=Vt(s2,e=>e.cell),GAe=Vt(s2,e=>e.columnHeader);Vt(s2,e=>e.columnHeaderFilter);const ab=Vt(s2,e=>e.columnGroupHeader),l2=e=>e.tabIndex,sb=Vt(l2,e=>e.cell),fV=Vt(l2,e=>e.columnHeader);Vt(l2,e=>e.columnHeaderFilter);const qAe=Vt(l2,e=>e.columnGroupHeader),PT=e=>e.density,pV=Vt(PT,e=>e.value),th=Vt(PT,e=>e.factor),$k=e=>e.columnMenu;function KAe(e){const{VirtualScrollerComponent:t,ColumnHeadersProps:n,children:r}=e,o=Mu(),i=dt(),a=m.useRef(null),s=it(o,Xr),l=it(o,UAe),u=it(o,zAe),c=it(o,Pp),f=it(o,fV),p=it(o,sb),y=it(o,qAe),v=it(o,GAe),b=it(o,ab),C=it(o,th),x=it(o,C0),w=it(o,$k),S=it(o,$a),$=it(o,IAe),T=!(y===null&&f===null&&p===null);pn(()=>{o.current.computeSizeAndPublishResizeEvent();const E=a.current;if(typeof ResizeObserver>"u")return()=>{};let A;const z=new ResizeObserver(()=>{A=requestAnimationFrame(()=>{o.current.computeSizeAndPublishResizeEvent()})});return E&&z.observe(E),()=>{A&&window.cancelAnimationFrame(A),E&&z.unobserve(E)}},[o]);const k=m.useRef(null),M=m.useRef(null),I=m.useRef(null);o.current.register("private",{columnHeadersContainerElementRef:M,columnHeadersElementRef:k,virtualScrollerRef:I,mainElementRef:a});const N=!!o.current.getRootDimensions();return g.jsxs(NAe,{ref:a,children:[g.jsx(i.slots.columnHeaders,P({ref:M,innerRef:k,visibleColumns:s,filterColumnLookup:l,sortColumnLookup:u,columnPositions:c,columnHeaderTabIndexState:f,columnGroupHeaderTabIndexState:y,columnHeaderFocus:v,columnGroupHeaderFocus:b,densityFactor:C,headerGroupingMaxDepth:x,columnMenuState:w,columnVisibility:S,columnGroupsHeaderStructure:$,hasOtherElementInTabSequence:T},n)),N&&g.jsx(t,{ref:I}),r]})}function YAe(){var e;const t=dt();return t.hideFooter?null:g.jsx(t.slots.footer,P({},(e=t.slotProps)==null?void 0:e.footer))}const xo="auto-generated-group-node-root",Yf=Symbol("mui.id_autogenerated"),XAe=()=>({type:"group",id:xo,depth:-1,groupingField:null,groupingKey:null,isAutoGenerated:!0,children:[],childrenFromPath:{},childrenExpanded:!0,parent:null});function QAe(e,t,n="A row was provided without id in the rows prop:"){if(e==null)throw new Error(["MUI: The data grid component requires all rows to have a unique `id` property.","Alternatively, you can use the `getRowId` prop to specify a custom id for each row.",n,JSON.stringify(t)].join(` -`))}const lb=(e,t,n)=>{const r=t?t(e):e.id;return QAe(r,e,n),r},j1=({rows:e,getRowId:t,loading:n,rowCount:r})=>{const o={type:"full",rows:[]},i={},a={};for(let s=0;s{const n=e[xo];return Math.max(t,n.children.length+(n.footerId==null?0:1))},mV=({apiRef:e,rowCountProp:t=0,loadingProp:n,previousTree:r,previousTreeDepths:o})=>{const i=e.current.caches.rows,{tree:a,treeDepths:s,dataRowIds:l,groupingName:u}=e.current.applyStrategyProcessor("rowTreeCreation",{previousTree:r,previousTreeDepths:o,updates:i.updates,dataRowIdToIdLookup:i.dataRowIdToIdLookup,dataRowIdToModelLookup:i.dataRowIdToModelLookup}),c=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:a,treeDepths:s,dataRowIdToIdLookup:i.dataRowIdToIdLookup,dataRowIds:l,dataRowIdToModelLookup:i.dataRowIdToModelLookup});return e.current.caches.rows.updates={type:"partial",actions:{insert:[],modify:[],remove:[]},idToActionLookup:{}},P({},c,{totalRowCount:Math.max(t,c.dataRowIds.length),totalTopLevelRowCount:hV({tree:c.tree,rowCountProp:t}),groupingName:u,loading:n})},Fg=e=>e.type==="skeletonRow"||e.type==="footer"||e.type==="group"&&e.isAutoGenerated||e.type==="pinnedRow"&&e.isAutoGenerated,MT=(e,t,n)=>{const r=e[t];if(r.type!=="group")return[];const o=[];for(let i=0;i{var r,o,i;if(e.updates.type==="full")throw new Error("MUI: Unable to prepare a partial update if a full update is not applied yet");const a=new Map;n.forEach(p=>{const y=lb(p,t,"A row was provided without id when calling updateRows():");a.has(y)?a.set(y,P({},a.get(y),p)):a.set(y,p)});const s={type:"partial",actions:{insert:[...(r=e.updates.actions.insert)!=null?r:[]],modify:[...(o=e.updates.actions.modify)!=null?o:[]],remove:[...(i=e.updates.actions.remove)!=null?i:[]]},idToActionLookup:P({},e.updates.idToActionLookup)},l=P({},e.dataRowIdToModelLookup),u=P({},e.dataRowIdToIdLookup),c={insert:{},modify:{},remove:{}};a.forEach((p,y)=>{const v=s.idToActionLookup[y];if(p._action==="delete"){if(v==="remove"||!l[y])return;v!=null&&(c[v][y]=!0),s.actions.remove.push(y),delete l[y],delete u[y];return}const b=l[y];if(b){v==="remove"?(c.remove[y]=!0,s.actions.modify.push(y)):v==null&&s.actions.modify.push(y),l[y]=P({},b,p);return}v==="remove"?(c.remove[y]=!0,s.actions.insert.push(y)):v==null&&s.actions.insert.push(y),l[y]=p,u[y]=y});const f=Object.keys(c);for(let p=0;p0&&(s.actions[y]=s.actions[y].filter(b=>!v[b]))}return{dataRowIdToModelLookup:l,dataRowIdToIdLookup:u,updates:s,rowsBeforePartialUpdates:e.rowsBeforePartialUpdates,loadingPropBeforePartialUpdates:e.loadingPropBeforePartialUpdates,rowCountPropBeforePartialUpdates:e.rowCountPropBeforePartialUpdates}};function gV(e){var t,n;const r=eh(e),o=(r==null||(t=r.top)==null?void 0:t.reduce((a,s)=>(a+=e.current.unstable_getRowHeight(s.id),a),0))||0,i=(r==null||(n=r.bottom)==null?void 0:n.reduce((a,s)=>(a+=e.current.unstable_getRowHeight(s.id),a),0))||0;return{top:o,bottom:i}}function vV(e,t){const n=th(e);return`var(--DataGrid-overlayHeight, ${2*Math.floor(t*n)}px)`}const JAe=Ar("div",{name:"MuiDataGrid",slot:"OverlayWrapper",shouldForwardProp:e=>e!=="overlayType",overridesResolver:(e,t)=>t.overlayWrapper})(({overlayType:e})=>({position:"sticky",top:0,left:0,width:0,height:0,zIndex:e==="loadingOverlay"?5:4})),e6e=Ar("div",{name:"MuiDataGrid",slot:"OverlayWrapperInner",shouldForwardProp:e=>e!=="overlayType",overridesResolver:(e,t)=>t.overlayWrapperInner})({}),t6e=e=>{const{classes:t}=e;return qe({root:["overlayWrapper"],inner:["overlayWrapperInner"]},Jt,t)};function n6e(e){var t,n;const r=Wt(),o=dt(),[i,a]=m.useState(()=>{var c,f;return(c=(f=r.current.getRootDimensions())==null?void 0:f.viewportInnerSize)!=null?c:null}),s=m.useCallback(()=>{var c,f;a((c=(f=r.current.getRootDimensions())==null?void 0:f.viewportInnerSize)!=null?c:null)},[r]);pn(()=>r.current.subscribeEvent("viewportInnerSizeChange",s),[r,s]);let l=(t=i==null?void 0:i.height)!=null?t:0;o.autoHeight&&l===0&&(l=vV(r,o.rowHeight));const u=t6e(P({},e,{classes:o.classes}));return i?g.jsx(JAe,{className:ze(u.root),overlayType:e.overlayType,children:g.jsx(e6e,P({className:ze(u.inner),style:{height:l,width:(n=i==null?void 0:i.width)!=null?n:0}},e))}):null}function r6e(){const e=Wt(),t=dt(),n=it(e,o2),r=it(e,cV),o=it(e,RAe),i=!o&&n===0,a=!o&&n>0&&r===0;let s=null,l="";if(i){var u;s=g.jsx(t.slots.noRowsOverlay,P({},(u=t.slotProps)==null?void 0:u.noRowsOverlay)),l="noRowsOverlay"}if(a){var c;s=g.jsx(t.slots.noResultsOverlay,P({},(c=t.slotProps)==null?void 0:c.noResultsOverlay)),l="noResultsOverlay"}if(o){var f;s=g.jsx(t.slots.loadingOverlay,P({},(f=t.slotProps)==null?void 0:f.loadingOverlay)),l="loadingOverlay"}return s===null?null:g.jsx(n6e,{overlayType:l,children:s})}function u2(e){return m.memo(e,rV)}let JS;function o6e(){return JS===void 0&&document.createElement("div").focus({get preventScroll(){return JS=!0,!1}}),JS}var gs=function(e){return e.Cell="cell",e.Row="row",e}(gs||{}),Pn=function(e){return e.Edit="edit",e.View="view",e}(Pn||{}),Bn=function(e){return e.Edit="edit",e.View="view",e}(Bn||{}),zo=function(e){return e.And="and",e.Or="or",e}(zo||{}),Tl=function(e){return e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown",e}(Tl||{}),ga=function(e){return e.cellFocusOut="cellFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown",e}(ga||{}),El=function(e){return e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown",e}(El||{}),Ns=function(e){return e.rowFocusOut="rowFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown",e}(Ns||{});function yV(e){return e.field!==void 0}function i6e(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function a6e(e,t){return e.closest(`.${t}`)}function TT(e){return e.replace(/["\\]/g,"\\$&")}function s6e(e,t){return e.querySelector(`[role="columnheader"][data-field="${TT(t)}"]`)}function bV(e){return`.${le.row}[data-id="${TT(String(e))}"]`}function l6e(e,t){return e.querySelector(bV(t))}function u6e(e,{id:t,field:n}){const r=bV(t),o=`.${le.cell}[data-field="${TT(n)}"]`,i=`${r} ${o}`;return e.querySelector(i)}function Yt(e,t,n){const r=m.useRef(!0);m.useEffect(()=>{r.current=!1,e.current.register(n,t)},[e,n,t]),r.current&&e.current.register(n,t)}class Tf extends Error{}function c6e(e,t){const{getRowId:n}=t,r=m.useCallback(v=>({field:v,colDef:e.current.getColumn(v)}),[e]),o=m.useCallback(v=>{const b=e.current.getRow(v);if(!b)throw new Tf(`No row with id #${v} found`);return{id:v,columns:e.current.getAllColumns(),row:b}},[e]),i=m.useCallback((v,b)=>{const C=e.current.getRow(v),x=e.current.getRowNode(v);if(!C||!x)throw new Tf(`No row with id #${v} found`);const w=si(e),S=sb(e);return{id:v,field:b,row:C,rowNode:x,value:C[b],colDef:e.current.getColumn(b),cellMode:e.current.getCellMode(v,b),api:e.current,hasFocus:w!==null&&w.field===b&&w.id===v,tabIndex:S&&S.field===b&&S.id===v?0:-1}},[e]),a=m.useCallback((v,b)=>{const C=e.current.getColumn(b),x=e.current.getCellValue(v,b),w=e.current.getRow(v),S=e.current.getRowNode(v);if(!w||!S)throw new Tf(`No row with id #${v} found`);const $=si(e),T=sb(e),k={id:v,field:b,row:w,rowNode:S,colDef:C,cellMode:e.current.getCellMode(v,b),hasFocus:$!==null&&$.field===b&&$.id===v,tabIndex:T&&T.field===b&&T.id===v?0:-1,value:x,formattedValue:x,isEditable:!1};return C&&C.valueFormatter&&(k.formattedValue=C.valueFormatter({id:v,field:k.field,value:k.value,api:e.current})),k.isEditable=C&&e.current.isCellEditable(k),k},[e]),s=m.useCallback((v,b)=>{const C=e.current.getColumn(b);if(!C||!C.valueGetter){const x=e.current.getRow(v);if(!x)throw new Tf(`No row with id #${v} found`);return x[b]}return C.valueGetter(i(v,b))},[e,i]),l=m.useCallback((v,b)=>{var C;const x=Yf in v?v[Yf]:(C=n==null?void 0:n(v))!=null?C:v.id,w=b.field;return!b||!b.valueGetter?v[w]:b.valueGetter(i(x,w))},[i,n]),u=m.useCallback((v,b)=>{var C;const x=l(v,b);if(!b||!b.valueFormatter)return x;const w=(C=n?n(v):v.id)!=null?C:v[Yf],S=b.field;return b.valueFormatter({id:w,field:S,value:x,api:e.current})},[e,n,l]),c=m.useCallback(v=>e.current.rootElementRef.current?s6e(e.current.rootElementRef.current,v):null,[e]),f=m.useCallback(v=>e.current.rootElementRef.current?l6e(e.current.rootElementRef.current,v):null,[e]),p=m.useCallback((v,b)=>e.current.rootElementRef.current?u6e(e.current.rootElementRef.current,{id:v,field:b}):null,[e]);Yt(e,{getCellValue:s,getCellParams:a,getCellElement:p,getRowValue:l,getRowFormattedValue:u,getRowParams:o,getRowElement:f,getColumnHeaderParams:r,getColumnHeaderElement:c},"public")}const d6e=["changeReason","unstable_updateValueOnRender"],f6e=["column","rowId","editCellState","align","children","colIndex","height","width","className","showRightBorder","extendRowFullWidth","row","colSpan","disableDragEvents","isNotVisible","onClick","onDoubleClick","onMouseDown","onMouseUp","onMouseOver","onKeyDown","onKeyUp","onDragEnter","onDragOver"],p6e=["changeReason","unstable_updateValueOnRender"],ub={id:-1,field:"__unset__",row:{},rowNode:{id:-1,depth:0,type:"leaf",parent:-1,groupingKey:null},colDef:{type:"string",field:"__unset__",computedWidth:0},cellMode:Pn.View,hasFocus:!1,tabIndex:-1,value:null,formattedValue:"__unset__",isEditable:!1,api:{}},h6e=e=>{const{align:t,showRightBorder:n,isEditable:r,isSelected:o,isSelectionMode:i,classes:a}=e,s={root:["cell",`cell--text${je(t)}`,r&&"cell--editable",o&&"selected",n&&"cell--withRightBorder",i&&!r&&"cell--selectionMode","withBorderColor"],content:["cellContent"]};return qe(s,Jt,a)},m6e=m.forwardRef((e,t)=>{const{column:n,rowId:r,editCellState:o}=e,i=Wt(),a=dt(),s=n.field,l=it(i,()=>{try{const N=i.current.getCellParams(r,s);return N.api=i.current,N}catch(I){if(I instanceof Tf)return ub;throw I}},CT),u=it(i,()=>i.current.unstable_applyPipeProcessors("isCellSelected",!1,{id:r,field:s}));if(l===ub)return null;const{cellMode:c,hasFocus:f,isEditable:p,value:y,formattedValue:v}=l,b=n.type==="actions",C=(c==="view"||!p)&&!b?l.tabIndex:-1,{classes:x,getCellClassName:w}=a,S=i.current.unstable_applyPipeProcessors("cellClassName",[],{id:r,field:s});n.cellClassName&&S.push(typeof n.cellClassName=="function"?n.cellClassName(l):n.cellClassName),w&&S.push(w(l));let $;if(o==null&&n.renderCell&&($=n.renderCell(l),S.push(le["cell--withRenderer"]),S.push(x==null?void 0:x["cell--withRenderer"])),o!=null&&n.renderEditCell){const I=i.current.getRowWithUpdatedValues(r,n.field),N=be(o,d6e),E=P({},l,{row:I},N);$=n.renderEditCell(E),S.push(le["cell--editing"]),S.push(x==null?void 0:x["cell--editing"])}const{slots:T}=a,k=T.cell,M=P({},e,{ref:t,field:s,formattedValue:v,hasFocus:f,isEditable:p,isSelected:u,value:y,cellMode:c,children:$,tabIndex:C,className:ze(S)});return m.createElement(k,M)}),g6e=u2(m6e),v6e=m.forwardRef((e,t)=>{var n,r,o,i;const{column:a,rowId:s,editCellState:l,align:u,colIndex:c,height:f,width:p,className:y,showRightBorder:v,colSpan:b,disableDragEvents:C,isNotVisible:x,onClick:w,onDoubleClick:S,onMouseDown:$,onMouseUp:T,onMouseOver:k,onKeyDown:M,onKeyUp:I,onDragEnter:N,onDragOver:E}=e,A=be(e,f6e),z=Wt(),L=dt(),O=a.field,D=it(z,()=>{try{const ee=z.current.getCellParams(s,O);return ee.api=z.current,ee}catch(K){if(K instanceof Tf)return ub;throw K}},CT),H=it(z,()=>z.current.unstable_applyPipeProcessors("isCellSelected",!1,{id:s,field:O})),{cellMode:B,hasFocus:j,isEditable:W,value:U,formattedValue:Z}=D,Y=a.type==="actions"&&((n=(r=a).getActions)==null?void 0:n.call(r,z.current.getRowParams(s)).some(K=>!K.props.disabled)),se=(B==="view"||!W)&&!Y?D.tabIndex:-1,{classes:Q,getCellClassName:ne}=L,re=z.current.unstable_applyPipeProcessors("cellClassName",[],{id:s,field:O});a.cellClassName&&re.push(typeof a.cellClassName=="function"?a.cellClassName(D):a.cellClassName),ne&&re.push(ne(D));const ge=Z??U,xe=m.useRef(null),fe=on(t,xe),Se=m.useRef(null),de=(o=L.unstable_cellSelection)!=null?o:!1,ie={align:u,showRightBorder:v,isEditable:W,classes:L.classes,isSelected:H,isSelectionMode:de},Pe=h6e(ie),$e=m.useCallback(K=>ee=>{const pe=z.current.getCellParams(s,O||"");z.current.publishEvent(K,pe,ee),T&&T(ee)},[z,O,T,s]),me=m.useCallback(K=>ee=>{const pe=z.current.getCellParams(s,O||"");z.current.publishEvent(K,pe,ee),$&&$(ee)},[z,O,$,s]),ue=m.useCallback((K,ee)=>pe=>{if(!z.current.getRow(s))return;const ye=z.current.getCellParams(s,O||"");z.current.publishEvent(K,ye,pe),ee&&ee(pe)},[z,O,s]),ce=m.useMemo(()=>x?{padding:0,opacity:0,width:0,border:0}:{minWidth:p,maxWidth:p,minHeight:f,maxHeight:f==="auto"?"none":f},[p,f,x]);if(m.useEffect(()=>{if(!j||B===Pn.Edit)return;const K=Gn(z.current.rootElementRef.current);if(xe.current&&!xe.current.contains(K.activeElement)){const ee=xe.current.querySelector('[tabindex="0"]'),pe=Se.current||ee||xe.current;if(o6e())pe.focus({preventScroll:!0});else{const ye=z.current.getScrollPosition();pe.focus(),z.current.scroll(ye)}}},[j,B,z]),D===ub)return null;let Te=A.onFocus,Le;if(l==null&&a.renderCell&&(Le=a.renderCell(D),re.push(le["cell--withRenderer"]),re.push(Q==null?void 0:Q["cell--withRenderer"])),l!=null&&a.renderEditCell){const K=z.current.getRowWithUpdatedValues(s,a.field),ee=be(l,p6e),pe=P({},D,{row:K},ee);Le=a.renderEditCell(pe),re.push(le["cell--editing"]),re.push(Q==null?void 0:Q["cell--editing"])}if(Le===void 0){const K=ge==null?void 0:ge.toString();Le=g.jsx("div",{className:Pe.content,title:K,role:"presentation",children:K})}m.isValidElement(Le)&&Y&&(Le=m.cloneElement(Le,{focusElementRef:Se}));const Re=C?null:{onDragEnter:ue("cellDragEnter",N),onDragOver:ue("cellDragOver",E)},Oe=(i=L.experimentalFeatures)==null?void 0:i.ariaV7;return g.jsx("div",P({ref:fe,className:ze(y,re,Pe.root),role:Oe?"gridcell":"cell","data-field":O,"data-colindex":c,"aria-colindex":c+1,"aria-colspan":b,style:ce,tabIndex:se,onClick:ue("cellClick",w),onDoubleClick:ue("cellDoubleClick",S),onMouseOver:ue("cellMouseOver",k),onMouseDown:me("cellMouseDown"),onMouseUp:$e("cellMouseUp"),onKeyDown:ue("cellKeyDown",M),onKeyUp:ue("cellKeyUp",I)},Re,A,{onFocus:Te,children:Le}))}),_k=u2(v6e),y6e=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","hasFocus","tabIndex"],b6e=e=>{const{classes:t}=e;return qe({root:["booleanCell"]},Jt,t)};function x6e(e){const{value:t}=e,n=be(e,y6e),r=Wt(),o=dt(),i={classes:o.classes},a=b6e(i),s=m.useMemo(()=>t?o.slots.booleanCellTrueIcon:o.slots.booleanCellFalseIcon,[o.slots.booleanCellFalseIcon,o.slots.booleanCellTrueIcon,t]);return g.jsx(s,P({fontSize:"small",className:a.root,titleAccess:r.current.getLocaleText(t?"booleanCellTrueLabel":"booleanCellFalseLabel"),"data-value":!!t},n))}const w6e=m.memo(x6e),C6e=e=>Fg(e.rowNode)?"":g.jsx(w6e,P({},e)),S6e=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange"],$6e=e=>{const{classes:t}=e;return qe({root:["editBooleanCell"]},Jt,t)};function _6e(e){var t;const{id:n,value:r,field:o,className:i,hasFocus:a,onValueChange:s}=e,l=be(e,S6e),u=Wt(),c=m.useRef(null),f=ln(),[p,y]=m.useState(r),v=dt(),b={classes:v.classes},C=$6e(b),x=m.useCallback(async w=>{const S=w.target.checked;s&&await s(w,S),y(S),await u.current.setEditCellValue({id:n,field:o,value:S},w)},[u,o,n,s]);return m.useEffect(()=>{y(r)},[r]),pn(()=>{a&&c.current.focus()},[a]),g.jsx("label",P({htmlFor:f,className:ze(C.root,i)},l,{children:g.jsx(v.slots.baseCheckbox,P({id:f,inputRef:c,checked:!!p,onChange:x,size:"small"},(t=v.slotProps)==null?void 0:t.baseCheckbox))}))}const k6e=e=>g.jsx(_6e,P({},e)),P6e=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","inputProps","isValidating","isProcessingProps","onValueChange"],M6e=ke(sd)({fontSize:"inherit"}),T6e=e=>{const{classes:t}=e;return qe({root:["editInputCell"]},Jt,t)};function E6e(e){const{id:t,value:n,field:r,colDef:o,hasFocus:i,inputProps:a,onValueChange:s}=e,l=be(e,P6e),u=o.type==="dateTime",c=Wt(),f=m.useRef(),p=m.useMemo(()=>{let M;n==null?M=null:n instanceof Date?M=n:M=new Date((n??"").toString());let I;return M==null||Number.isNaN(M.getTime())?I="":I=new Date(M.getTime()-M.getTimezoneOffset()*60*1e3).toISOString().substr(0,u?16:10),{parsed:M,formatted:I}},[n,u]),[y,v]=m.useState(p),C={classes:dt().classes},x=T6e(C),w=m.useRef(!1),S=m.useCallback(M=>{if(M==="")return null;const[I,N]=M.split("T"),[E,A,z]=I.split("-"),L=new Date;if(L.setFullYear(Number(E),Number(A)-1,Number(z)),L.setHours(0,0,0,0),N){const[O,D]=N.split(":");L.setHours(Number(O),Number(D),0,0)}return L},[]),$=m.useCallback(async M=>{const I=M.target.value,N=S(I);s&&await s(M,N),v({parsed:N,formatted:I}),c.current.setEditCellValue({id:t,field:r,value:N},M)},[c,r,t,s,S]);m.useEffect(()=>{v(M=>{var I,N;return p.parsed!==M.parsed&&((I=p.parsed)==null?void 0:I.getTime())!==((N=M.parsed)==null?void 0:N.getTime())?p:M})},[p]),pn(()=>{i&&f.current.focus()},[i]);const T=c.current.unstable_getEditCellMeta(t,r),k=M=>{if(f.current=M,T!=null&&T.unstable_updateValueOnRender&&!w.current){const I=f.current.value,N=S(I);v({parsed:N,formatted:I}),c.current.setEditCellValue({id:t,field:r,value:N}),w.current=!0}};return g.jsx(M6e,P({inputRef:k,fullWidth:!0,className:x.root,type:u?"datetime-local":"date",inputProps:P({max:u?"9999-12-31T23:59":"9999-12-31"},a),value:y.formatted,onChange:$},l))}const xV=e=>g.jsx(E6e,P({},e)),I6e=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","isValidating","debounceMs","isProcessingProps","onValueChange"],R6e=e=>{const{classes:t}=e;return qe({root:["editInputCell"]},Jt,t)},O6e=ke(sd,{name:"MuiDataGrid",slot:"EditInputCell",overridesResolver:(e,t)=>t.editInputCell})(({theme:e})=>P({},e.typography.body2,{padding:"1px 0","& input":{padding:"0 16px",height:"100%"}})),A6e=m.forwardRef((e,t)=>{const n=dt(),{id:r,value:o,field:i,colDef:a,hasFocus:s,debounceMs:l=200,isProcessingProps:u,onValueChange:c}=e,f=be(e,I6e),p=Wt(),y=m.useRef(),[v,b]=m.useState(o),C=R6e(n),x=m.useCallback(async S=>{const $=S.target.value;c&&await c(S,$);const T=p.current.getColumn(i);let k=$;T.valueParser&&(k=T.valueParser($,p.current.getCellParams(r,i))),b(k),p.current.setEditCellValue({id:r,field:i,value:k,debounceMs:l,unstable_skipValueParser:!0},S)},[p,l,i,r,c]),w=p.current.unstable_getEditCellMeta(r,i);return m.useEffect(()=>{(w==null?void 0:w.changeReason)!=="debouncedSetEditCellValue"&&b(o)},[w,o]),pn(()=>{s&&y.current.focus()},[s]),g.jsx(O6e,P({ref:t,inputRef:y,className:C.root,ownerState:n,fullWidth:!0,type:a.type==="number"?a.type:"text",value:v??"",onChange:x,endAdornment:u?g.jsx(n.slots.loadIcon,{fontSize:"small",color:"action"}):void 0},f))}),F6e=e=>g.jsx(A6e,P({},e)),cb=e=>e==="Escape",L6e=e=>e==="Enter",c2=e=>e==="Tab",wV=e=>e===" ",D6e=e=>e.indexOf("Arrow")===0,j6e=e=>e==="Home"||e==="End",N6e=e=>e.indexOf("Page")===0;function CV(e){return e.key.length===1&&!e.ctrlKey&&!e.metaKey}const db=e=>j6e(e)||D6e(e)||N6e(e)||wV(e),z6e=e=>!!e.key,ET=e=>c2(e)||cb(e);function Pc(e){return(e==null?void 0:e.type)==="singleSelect"}function kk(e,t,n){if(t===void 0)return;const r=t.find(o=>{const i=n(o);return String(i)===String(e)});return n(r)}const B6e=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange","initialOpen","getOptionLabel","getOptionValue"],H6e=["MenuProps"];function W6e(e){return!!e.key}function V6e(e){var t,n,r;const o=dt(),{id:i,value:a,field:s,row:l,colDef:u,hasFocus:c,error:f,onValueChange:p,initialOpen:y=o.editMode===gs.Cell,getOptionLabel:v,getOptionValue:b}=e,C=be(e,B6e),x=Wt(),w=m.useRef(),S=m.useRef(),[$,T]=m.useState(y),M=(n=(((t=o.slotProps)==null?void 0:t.baseSelect)||{}).native)!=null?n:!1,I=((r=o.slotProps)==null?void 0:r.baseSelect)||{},{MenuProps:N}=I,E=be(I,H6e);if(pn(()=>{if(c){var B;(B=S.current)==null||B.focus()}},[c]),!Pc(u))return null;let A;if(typeof(u==null?void 0:u.valueOptions)=="function"?A=u==null?void 0:u.valueOptions({id:i,row:l,field:s}):A=u==null?void 0:u.valueOptions,!A)return null;const z=b||u.getOptionValue,L=v||u.getOptionLabel,O=async B=>{if(!Pc(u)||!A)return;T(!1);const j=B.target,W=kk(j.value,A,z);p&&await p(B,W),await x.current.setEditCellValue({id:i,field:s,value:W},B)},D=(B,j)=>{if(o.editMode===gs.Row){T(!1);return}if(j==="backdropClick"||cb(B.key)){const W=x.current.getCellParams(i,s);x.current.publishEvent("cellEditStop",P({},W,{reason:cb(B.key)?ga.escapeKeyDown:ga.cellFocusOut}))}},H=B=>{W6e(B)&&B.key==="Enter"||T(!0)};return!A||!u?null:g.jsx(o.slots.baseSelect,P({ref:w,inputRef:S,value:a,onChange:O,open:$,onOpen:H,MenuProps:P({onClose:D},N),error:f,native:M,fullWidth:!0},C,E,{children:A.map(B=>{var j;const W=z(B);return m.createElement(o.slots.baseSelectOption,P({},((j=o.slotProps)==null?void 0:j.baseSelectOption)||{},{native:M,key:W,value:W}),L(B))})}))}const U6e=e=>g.jsx(V6e,P({},e)),G6e=["open","target","onClose","children","position","className","onExited"],q6e=e=>{const{classes:t}=e;return qe({root:["menu"]},Jt,t)},K6e=ke(ad,{name:"MuiDataGrid",slot:"Menu",overridesResolver:(e,t)=>t.menu})(({theme:e})=>({zIndex:e.zIndex.modal,[`& .${le.menuList}`]:{outline:0}})),Y6e={"bottom-start":"top left","bottom-end":"top right"};function d2(e){var t;const{open:n,target:r,onClose:o,children:i,position:a,className:s,onExited:l}=e,u=be(e,G6e),c=Wt(),f=dt(),p=q6e(f),y=m.useRef(null);pn(()=>{if(n)y.current=document.activeElement instanceof HTMLElement?document.activeElement:null;else{var C,x;(C=y.current)==null||(x=C.focus)==null||x.call(C),y.current=null}},[n]),m.useEffect(()=>{const C=n?"menuOpen":"menuClose";c.current.publishEvent(C,{target:r})},[c,n,r]);const v=C=>x=>{C&&C(),l&&l(x)},b=C=>{C.target&&(r===C.target||r!=null&&r.contains(C.target))||o(C)};return g.jsx(K6e,P({as:f.slots.basePopper,className:ze(s,p.root),ownerState:f,open:n,anchorEl:r,transition:!0,placement:a},u,(t=f.slotProps)==null?void 0:t.basePopper,{children:({TransitionProps:C,placement:x})=>g.jsx(Dj,{onClickAway:b,mouseEvent:"onMouseDown",children:g.jsx(_y,P({},C,{style:{transformOrigin:Y6e[x]},onExited:v(C==null?void 0:C.onExited),children:g.jsx(id,{children:i})}))})}))}const X6e=["api","colDef","id","hasFocus","isEditable","field","value","formattedValue","row","rowNode","cellMode","tabIndex","position","focusElementRef"],Q6e=e=>typeof e.getActions=="function";function Z6e(e){var t;const{colDef:n,id:r,hasFocus:o,tabIndex:i,position:a="bottom-end",focusElementRef:s}=e,l=be(e,X6e),[u,c]=m.useState(-1),[f,p]=m.useState(!1),y=Wt(),v=m.useRef(null),b=m.useRef(null),C=m.useRef(!1),x=m.useRef({}),w=Xt(),S=ln(),$=ln(),T=dt();if(!Q6e(n))throw new Error("MUI: Missing the `getActions` property in the `GridColDef`.");const k=n.getActions(y.current.getRowParams(r)),M=k.filter(H=>!H.props.showInMenu),I=k.filter(H=>H.props.showInMenu),N=M.length+(I.length?1:0);m.useLayoutEffect(()=>{o||Object.entries(x.current).forEach(([H,B])=>{B==null||B.stop({},()=>{delete x.current[H]})})},[o]),m.useEffect(()=>{if(u<0||!v.current||u>=v.current.children.length)return;v.current.children[u].focus({preventScroll:!0})},[u]),m.useEffect(()=>{o||(c(-1),C.current=!1)},[o]),m.useImperativeHandle(s,()=>({focus(){if(!C.current){const H=k.findIndex(B=>!B.props.disabled);c(H)}}}),[k]),m.useEffect(()=>{u>=N&&c(N-1)},[u,N]);const E=()=>{p(!0),c(N-1),C.current=!0},A=()=>{p(!1)},z=H=>B=>{x.current[H]=B},L=(H,B)=>j=>{c(H),C.current=!0,B&&B(j)},O=H=>{if(N<=1)return;const B=(W,U)=>{var Z;if(W<0||W>k.length)return W;const Y=w.direction==="rtl"?-1:1,se=(U==="left"?-1:1)*Y;return(Z=k[W+se])!=null&&Z.props.disabled?B(W+se,U):W+se};let j=u;H.key==="ArrowRight"?j=B(u,"right"):H.key==="ArrowLeft"&&(j=B(u,"left")),!(j<0||j>=N)&&j!==u&&(H.preventDefault(),H.stopPropagation(),c(j))},D=H=>{H.key==="Tab"&&H.preventDefault(),["Tab","Enter","Escape"].includes(H.key)&&A()};return g.jsxs("div",P({role:"menu",ref:v,tabIndex:-1,className:le.actionsCell,onKeyDown:O},l,{children:[M.map((H,B)=>m.cloneElement(H,{key:B,touchRippleRef:z(B),onClick:L(B,H.props.onClick),tabIndex:u===B?i:-1})),I.length>0&&$&&g.jsx(T.slots.baseIconButton,P({ref:b,id:$,"aria-label":y.current.getLocaleText("actionsCellMore"),"aria-haspopup":"menu","aria-expanded":f,"aria-controls":f?S:void 0,role:"menuitem",size:"small",onClick:E,touchRippleRef:z($),tabIndex:u===M.length?i:-1},(t=T.slotProps)==null?void 0:t.baseIconButton,{children:g.jsx(T.slots.moreActionsIcon,{fontSize:"small"})})),I.length>0&&g.jsx(d2,{open:f,target:b.current,position:a,onClose:A,onClick:A,children:g.jsx(i0,{id:S,className:le.menuList,onKeyDown:D,"aria-labelledby":$,variant:"menu",autoFocusItem:!0,children:I.map((H,B)=>m.cloneElement(H,{key:B}))})})]}))}const J6e=e=>g.jsx(Z6e,P({},e)),eFe=["field","align","width","contentWidth"],tFe=e=>{const{align:t,classes:n}=e,r={root:["cell","cellSkeleton",`cell--text${je(t)}`,"withBorderColor"]};return qe(r,Jt,n)};function nFe(e){const{align:t,width:n,contentWidth:r}=e,o=be(e,eFe),a={classes:dt().classes,align:t},s=tFe(a);return g.jsx("div",P({className:s.root,style:{width:n}},o,{children:g.jsx(Kge,{width:`${r}%`})}))}function rFe(e){return e.vars?e.vars.palette.TableCell.border:e.palette.mode==="light"?Tx(Lt(e.palette.divider,1),.88):Mx(Lt(e.palette.divider,1),.68)}const v8={[`.${le.columnSeparator}, .${le["columnSeparator--resizing"]}`]:{visibility:"visible",width:"auto"}},y8={[`& .${le.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${le.menuIcon}`]:{width:"auto",visibility:"visible"}},oFe=ke("div",{name:"MuiDataGrid",slot:"Root",overridesResolver:(e,t)=>[{[`&.${le.autoHeight}`]:t.autoHeight},{[`&.${le.aggregationColumnHeader}`]:t.aggregationColumnHeader},{[`&.${le["aggregationColumnHeader--alignLeft"]}`]:t["aggregationColumnHeader--alignLeft"]},{[`&.${le["aggregationColumnHeader--alignCenter"]}`]:t["aggregationColumnHeader--alignCenter"]},{[`&.${le["aggregationColumnHeader--alignRight"]}`]:t["aggregationColumnHeader--alignRight"]},{[`&.${le.aggregationColumnHeaderLabel}`]:t.aggregationColumnHeaderLabel},{[`&.${le["root--disableUserSelection"]} .${le.cell}`]:t["root--disableUserSelection"]},{[`&.${le.autosizing}`]:t.autosizing},{[`& .${le.editBooleanCell}`]:t.editBooleanCell},{[`& .${le["cell--editing"]}`]:t["cell--editing"]},{[`& .${le["cell--textCenter"]}`]:t["cell--textCenter"]},{[`& .${le["cell--textLeft"]}`]:t["cell--textLeft"]},{[`& .${le["cell--textRight"]}`]:t["cell--textRight"]},{[`& .${le["cell--withRenderer"]}`]:t["cell--withRenderer"]},{[`& .${le.cell}`]:t.cell},{[`& .${le["cell--rangeTop"]}`]:t["cell--rangeTop"]},{[`& .${le["cell--rangeBottom"]}`]:t["cell--rangeBottom"]},{[`& .${le["cell--rangeLeft"]}`]:t["cell--rangeLeft"]},{[`& .${le["cell--rangeRight"]}`]:t["cell--rangeRight"]},{[`& .${le["cell--withRightBorder"]}`]:t["cell--withRightBorder"]},{[`& .${le.cellContent}`]:t.cellContent},{[`& .${le.cellCheckbox}`]:t.cellCheckbox},{[`& .${le.cellSkeleton}`]:t.cellSkeleton},{[`& .${le.checkboxInput}`]:t.checkboxInput},{[`& .${le["columnHeader--alignCenter"]}`]:t["columnHeader--alignCenter"]},{[`& .${le["columnHeader--alignLeft"]}`]:t["columnHeader--alignLeft"]},{[`& .${le["columnHeader--alignRight"]}`]:t["columnHeader--alignRight"]},{[`& .${le["columnHeader--dragging"]}`]:t["columnHeader--dragging"]},{[`& .${le["columnHeader--moving"]}`]:t["columnHeader--moving"]},{[`& .${le["columnHeader--numeric"]}`]:t["columnHeader--numeric"]},{[`& .${le["columnHeader--sortable"]}`]:t["columnHeader--sortable"]},{[`& .${le["columnHeader--sorted"]}`]:t["columnHeader--sorted"]},{[`& .${le["columnHeader--withRightBorder"]}`]:t["columnHeader--withRightBorder"]},{[`& .${le.columnHeader}`]:t.columnHeader},{[`& .${le.headerFilterRow}`]:t.headerFilterRow},{[`& .${le.columnHeaderCheckbox}`]:t.columnHeaderCheckbox},{[`& .${le.columnHeaderDraggableContainer}`]:t.columnHeaderDraggableContainer},{[`& .${le.columnHeaderTitleContainer}`]:t.columnHeaderTitleContainer},{[`& .${le["columnSeparator--resizable"]}`]:t["columnSeparator--resizable"]},{[`& .${le["columnSeparator--resizing"]}`]:t["columnSeparator--resizing"]},{[`& .${le.columnSeparator}`]:t.columnSeparator},{[`& .${le.filterIcon}`]:t.filterIcon},{[`& .${le.iconSeparator}`]:t.iconSeparator},{[`& .${le.menuIcon}`]:t.menuIcon},{[`& .${le.menuIconButton}`]:t.menuIconButton},{[`& .${le.menuOpen}`]:t.menuOpen},{[`& .${le.menuList}`]:t.menuList},{[`& .${le["row--editable"]}`]:t["row--editable"]},{[`& .${le["row--editing"]}`]:t["row--editing"]},{[`& .${le["row--dragging"]}`]:t["row--dragging"]},{[`& .${le.row}`]:t.row},{[`& .${le.rowReorderCellPlaceholder}`]:t.rowReorderCellPlaceholder},{[`& .${le.rowReorderCell}`]:t.rowReorderCell},{[`& .${le["rowReorderCell--draggable"]}`]:t["rowReorderCell--draggable"]},{[`& .${le.sortIcon}`]:t.sortIcon},{[`& .${le.withBorderColor}`]:t.withBorderColor},{[`& .${le.treeDataGroupingCell}`]:t.treeDataGroupingCell},{[`& .${le.treeDataGroupingCellToggle}`]:t.treeDataGroupingCellToggle},{[`& .${le.detailPanelToggleCell}`]:t.detailPanelToggleCell},{[`& .${le["detailPanelToggleCell--expanded"]}`]:t["detailPanelToggleCell--expanded"]},t.root]})(({theme:e})=>{const t=rFe(e),n=e.shape.borderRadius;return P({"--unstable_DataGrid-radius":typeof n=="number"?`${n}px`:n,"--unstable_DataGrid-headWeight":e.typography.fontWeightMedium,"--unstable_DataGrid-overlayBackground":e.vars?`rgba(${e.vars.palette.background.defaultChannel} / ${e.vars.palette.action.disabledOpacity})`:Lt(e.palette.background.default,e.palette.action.disabledOpacity),"--DataGrid-cellOffsetMultiplier":2,flex:1,boxSizing:"border-box",position:"relative",borderWidth:"1px",borderStyle:"solid",borderColor:t,borderRadius:"var(--unstable_DataGrid-radius)",color:(e.vars||e).palette.text.primary},e.typography.body2,{outline:"none",height:"100%",display:"flex",minWidth:0,minHeight:0,flexDirection:"column",overflowAnchor:"none",[`&.${le.autoHeight}`]:{height:"auto",[`& .${le["row--lastVisible"]} .${le.cell}`]:{borderBottomColor:"transparent"}},[`&.${le.autosizing}`]:{[`& .${le.columnHeaderTitleContainerContent} > *`]:{overflow:"visible !important"},[`& .${le.cell} > *`]:{overflow:"visible !important",whiteSpace:"nowrap"}},[`& .${le["virtualScrollerContent--overflowed"]} .${le["row--lastVisible"]} .${le.cell}`]:{borderBottomColor:"transparent"},[`& .${le.columnHeader}, & .${le.cell}`]:{WebkitTapHighlightColor:"transparent",lineHeight:null,padding:"0 10px",boxSizing:"border-box"},[`& .${le.columnHeader}:focus-within, & .${le.cell}:focus-within`]:{outline:`solid ${e.vars?`rgba(${e.vars.palette.primary.mainChannel} / 0.5)`:Lt(e.palette.primary.main,.5)} 1px`,outlineWidth:1,outlineOffset:-1},[`& .${le.columnHeader}:focus, & .${le.cell}:focus`]:{outline:`solid ${e.palette.primary.main} 1px`},[`& .${le.columnHeaderCheckbox}, & .${le.cellCheckbox}`]:{padding:0,justifyContent:"center",alignItems:"center"},[`& .${le.columnHeader}`]:{position:"relative",display:"flex",alignItems:"center"},[`& .${le["columnHeader--sorted"]} .${le.iconButtonContainer}, & .${le["columnHeader--filtered"]} .${le.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${le.columnHeader}:not(.${le["columnHeader--sorted"]}) .${le.sortIcon}`]:{opacity:0,transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.shorter})},[`& .${le.columnHeaderTitleContainer}`]:{display:"flex",alignItems:"center",minWidth:0,flex:1,whiteSpace:"nowrap",overflow:"hidden",position:"relative"},[`& .${le.columnHeaderTitleContainerContent}`]:{overflow:"hidden",display:"flex",alignItems:"center"},[`& .${le["columnHeader--filledGroup"]} .${le.columnHeaderTitleContainer}`]:{borderBottomWidth:"1px",borderBottomStyle:"solid",boxSizing:"border-box"},[`& .${le["columnHeader--filledGroup"]}.${le["columnHeader--showColumnBorder"]} .${le.columnHeaderTitleContainer}`]:{borderBottom:"none"},[`& .${le["columnHeader--filledGroup"]}.${le["columnHeader--showColumnBorder"]}`]:{borderBottomWidth:"1px",borderBottomStyle:"solid",boxSizing:"border-box"},[`& .${le.headerFilterRow}`]:{borderTop:`1px solid ${t}`},[`& .${le.sortIcon}, & .${le.filterIcon}`]:{fontSize:"inherit"},[`& .${le["columnHeader--sortable"]}`]:{cursor:"pointer"},[`& .${le["columnHeader--alignCenter"]} .${le.columnHeaderTitleContainer}`]:{justifyContent:"center"},[`& .${le["columnHeader--alignRight"]} .${le.columnHeaderDraggableContainer}, & .${le["columnHeader--alignRight"]} .${le.columnHeaderTitleContainer}`]:{flexDirection:"row-reverse"},[`& .${le["columnHeader--alignCenter"]} .${le.menuIcon}, & .${le["columnHeader--alignRight"]} .${le.menuIcon}`]:{marginRight:"auto",marginLeft:-6},[`& .${le["columnHeader--alignRight"]} .${le.menuIcon}, & .${le["columnHeader--alignRight"]} .${le.menuIcon}`]:{marginRight:"auto",marginLeft:-10},[`& .${le["columnHeader--moving"]}`]:{backgroundColor:(e.vars||e).palette.action.hover},[`& .${le.columnSeparator}`]:{visibility:"hidden",position:"absolute",zIndex:100,display:"flex",flexDirection:"column",justifyContent:"center",color:t},"@media (hover: hover)":{[`& .${le.columnHeaders}:hover`]:v8,[`& .${le.columnHeader}:hover`]:y8,[`& .${le.columnHeader}:not(.${le["columnHeader--sorted"]}):hover .${le.sortIcon}`]:{opacity:.5}},"@media (hover: none)":{[`& .${le.columnHeaders}`]:v8,[`& .${le.columnHeader}`]:y8},[`& .${le["columnSeparator--sideLeft"]}`]:{left:-12},[`& .${le["columnSeparator--sideRight"]}`]:{right:-12},[`& .${le["columnSeparator--resizable"]}`]:{cursor:"col-resize",touchAction:"none","&:hover":{color:(e.vars||e).palette.text.primary,"@media (hover: none)":{color:t}},[`&.${le["columnSeparator--resizing"]}`]:{color:(e.vars||e).palette.text.primary},"& svg":{pointerEvents:"none"}},[`& .${le.iconSeparator}`]:{color:"inherit"},[`& .${le.menuIcon}`]:{width:0,visibility:"hidden",fontSize:20,marginRight:-10,display:"flex",alignItems:"center"},[`.${le.menuOpen}`]:{visibility:"visible",width:"auto"},[`& .${le.row}`]:{display:"flex",width:"fit-content",breakInside:"avoid","&:hover, &.Mui-hovered":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},"&.Mui-selected":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Lt(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover, &.Mui-hovered":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc( - ${e.vars.palette.action.selectedOpacity} + - ${e.vars.palette.action.hoverOpacity} - ))`:Lt(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})`:Lt(e.palette.primary.main,e.palette.action.selectedOpacity)}}}},[`& .${le.cell}`]:{display:"flex",alignItems:"center",borderBottom:"1px solid","&.Mui-selected":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Lt(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover, &.Mui-hovered":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity+e.palette.action.hoverOpacity})`:Lt(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})`:Lt(e.palette.primary.main,e.palette.action.selectedOpacity)}}}},[`&.${le["root--disableUserSelection"]} .${le.cell}`]:{userSelect:"none"},[`& .${le.row}:not(.${le["row--dynamicHeight"]}) > .${le.cell}`]:{overflow:"hidden",whiteSpace:"nowrap"},[`& .${le.cellContent}`]:{overflow:"hidden",textOverflow:"ellipsis"},[`& .${le.cell}.${le["cell--selectionMode"]}`]:{cursor:"default"},[`& .${le.cell}.${le["cell--editing"]}`]:{padding:1,display:"flex",boxShadow:e.shadows[2],backgroundColor:(e.vars||e).palette.background.paper,"&:focus-within":{outline:`solid ${(e.vars||e).palette.primary.main} 1px`,outlineOffset:"-1px"}},[`& .${le["row--editing"]}`]:{boxShadow:e.shadows[2]},[`& .${le["row--editing"]} .${le.cell}`]:{boxShadow:e.shadows[0],backgroundColor:(e.vars||e).palette.background.paper},[`& .${le.editBooleanCell}`]:{display:"flex",height:"100%",width:"100%",alignItems:"center",justifyContent:"center"},[`& .${le.booleanCell}[data-value="true"]`]:{color:(e.vars||e).palette.text.secondary},[`& .${le.booleanCell}[data-value="false"]`]:{color:(e.vars||e).palette.text.disabled},[`& .${le.actionsCell}`]:{display:"inline-flex",alignItems:"center",gridGap:e.spacing(1)},[`& .${le.rowReorderCell}`]:{display:"inline-flex",flex:1,alignItems:"center",justifyContent:"center",opacity:(e.vars||e).palette.action.disabledOpacity},[`& .${le["rowReorderCell--draggable"]}`]:{cursor:"move",opacity:1},[`& .${le.rowReorderCellContainer}`]:{padding:0,alignItems:"stretch"},[`.${le.withBorderColor}`]:{borderColor:t},[`& .${le["cell--withRightBorder"]}`]:{borderRightWidth:"1px",borderRightStyle:"solid"},[`& .${le["columnHeader--withRightBorder"]}`]:{borderRightWidth:"1px",borderRightStyle:"solid"},[`& .${le["cell--textLeft"]}`]:{justifyContent:"flex-start"},[`& .${le["cell--textRight"]}`]:{justifyContent:"flex-end"},[`& .${le["cell--textCenter"]}`]:{justifyContent:"center"},[`& .${le.columnHeaderDraggableContainer}`]:{display:"flex",width:"100%",height:"100%"},[`& .${le.rowReorderCellPlaceholder}`]:{display:"none"},[`& .${le["columnHeader--dragging"]}, & .${le["row--dragging"]}`]:{background:(e.vars||e).palette.background.paper,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:(e.vars||e).palette.action.disabledOpacity},[`& .${le["row--dragging"]}`]:{background:(e.vars||e).palette.background.paper,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:(e.vars||e).palette.action.disabledOpacity,[`& .${le.rowReorderCellPlaceholder}`]:{display:"flex"}},[`& .${le.treeDataGroupingCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${le.treeDataGroupingCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:e.spacing(2)},[`& .${le.groupingCriteriaCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${le.groupingCriteriaCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:e.spacing(2)}})}),iFe=["children","className"],aFe=e=>{const{autoHeight:t,density:n,classes:r}=e,o={root:["root",t&&"autoHeight",`root--density${je(n)}`,"withBorderColor"]};return qe(o,Jt,r)},sFe=m.forwardRef(function(t,n){var r;const o=dt(),{children:i,className:a}=t,s=be(t,iFe),l=Mu(),u=it(l,pV),c=m.useRef(null),f=on(c,n),p=(r=o.experimentalFeatures)!=null&&r.ariaV7?null:aV,y=typeof p=="function"?p():null,v=P({},o,{density:u}),b=aFe(v);l.current.register("public",{rootElementRef:c});const[C,x]=m.useState(!1);return pn(()=>{x(!0)},[]),C?g.jsx(oFe,P({ref:f,className:ze(a,b.root),ownerState:v},y,s,{children:i})):null}),lFe=["className"],uFe=e=>{const{classes:t}=e;return qe({root:["footerContainer","withBorderColor"]},Jt,t)},cFe=Ar("div",{name:"MuiDataGrid",slot:"FooterContainer",overridesResolver:(e,t)=>t.footerContainer})({display:"flex",justifyContent:"space-between",alignItems:"center",minHeight:52,borderTop:"1px solid"}),dFe=m.forwardRef(function(t,n){const{className:r}=t,o=be(t,lFe),i=dt(),a=uFe(i);return g.jsx(cFe,P({ref:n,className:ze(a.root,r),ownerState:i},o))}),fFe=["className"],pFe=e=>{const{classes:t}=e;return qe({root:["overlay"]},Jt,t)},hFe=Ar("div",{name:"MuiDataGrid",slot:"Overlay",overridesResolver:(e,t)=>t.overlay})({width:"100%",height:"100%",display:"flex",alignSelf:"center",alignItems:"center",justifyContent:"center",backgroundColor:"var(--unstable_DataGrid-overlayBackground)"}),IT=m.forwardRef(function(t,n){const{className:r}=t,o=be(t,fFe),i=dt(),a=pFe(i);return g.jsx(hFe,P({ref:n,className:ze(a.root,r),ownerState:i},o))}),mFe=["className","children"],gFe=e=>{const{classes:t}=e;return qe({root:["toolbarContainer"]},Jt,t)},vFe=Ar("div",{name:"MuiDataGrid",slot:"ToolbarContainer",overridesResolver:(e,t)=>t.toolbarContainer})(({theme:e})=>({display:"flex",alignItems:"center",flexWrap:"wrap",gap:e.spacing(1),padding:e.spacing(.5,.5,0)})),yFe=m.forwardRef(function(t,n){const{className:r,children:o}=t,i=be(t,mFe),a=dt(),s=gFe(a);return o?g.jsx(vFe,P({ref:n,className:ze(r,s.root),ownerState:a},i,{children:o})):null}),bFe=["className"],xFe=e=>{const{classes:t}=e;return qe({root:["iconButtonContainer"]},Jt,t)},wFe=Ar("div",{name:"MuiDataGrid",slot:"IconButtonContainer",overridesResolver:(e,t)=>t.iconButtonContainer})(()=>({display:"flex",visibility:"hidden",width:0})),SV=m.forwardRef(function(t,n){const{className:r}=t,o=be(t,bFe),i=dt(),a=xFe(i);return g.jsx(wFe,P({ref:n,className:ze(a.root,r),ownerState:i},o))}),CFe=e=>{const{classes:t}=e;return qe({icon:["sortIcon"]},Jt,t)};function SFe(e,t,n,r){let o;const i={};return t==="asc"?o=e.columnSortedAscendingIcon:t==="desc"?o=e.columnSortedDescendingIcon:(o=e.columnUnsortedIcon,i.sortingOrder=r),o?g.jsx(o,P({fontSize:"small",className:n},i)):null}function $Fe(e){var t;const{direction:n,index:r,sortingOrder:o}=e,i=Wt(),a=dt(),s=P({},e,{classes:a.classes}),l=CFe(s),u=SFe(a.slots,n,l.icon,o);if(!u)return null;const c=g.jsx(a.slots.baseIconButton,P({tabIndex:-1,"aria-label":i.current.getLocaleText("columnHeaderSortIconLabel"),title:i.current.getLocaleText("columnHeaderSortIconLabel"),size:"small"},(t=a.slotProps)==null?void 0:t.baseIconButton,{children:u}));return g.jsxs(SV,{children:[r!=null&&g.jsx(OM,{badgeContent:r,color:"default",children:c}),r==null&&c]})}const _Fe=m.memo($Fe),kFe=e=>{const{classes:t,open:n}=e;return qe({root:["menuIcon",n&&"menuOpen"],button:["menuIconButton"]},Jt,t)},PFe=m.memo(e=>{var t,n;const{colDef:r,open:o,columnMenuId:i,columnMenuButtonId:a,iconButtonRef:s}=e,l=Wt(),u=dt(),c=P({},e,{classes:u.classes}),f=kFe(c),p=m.useCallback(y=>{y.preventDefault(),y.stopPropagation(),l.current.toggleColumnMenu(r.field)},[l,r.field]);return g.jsx("div",{className:f.root,children:g.jsx(u.slots.baseTooltip,P({title:l.current.getLocaleText("columnMenuLabel"),enterDelay:1e3},(t=u.slotProps)==null?void 0:t.baseTooltip,{children:g.jsx(u.slots.baseIconButton,P({ref:s,tabIndex:-1,className:f.button,"aria-label":l.current.getLocaleText("columnMenuLabel"),size:"small",onClick:p,"aria-haspopup":"menu","aria-expanded":o,"aria-controls":o?i:void 0,id:a},(n=u.slotProps)==null?void 0:n.baseIconButton,{children:g.jsx(u.slots.columnMenuIcon,{fontSize:"small"})}))}))})});function MFe({columnMenuId:e,columnMenuButtonId:t,ContentComponent:n,contentComponentProps:r,field:o,open:i,target:a,onExited:s}){const l=Wt(),u=l.current.getColumn(o),c=Dn(f=>{f&&(f.stopPropagation(),a!=null&&a.contains(f.target))||l.current.hideColumnMenu()});return!a||!u?null:g.jsx(d2,{placement:`bottom-${u.align==="right"?"start":"end"}`,open:i,target:a,onClose:c,onExited:s,children:g.jsx(n,P({colDef:u,hideMenu:c,open:i,id:e,labelledby:t},r))})}const TFe=["className"],EFe=e=>{const{classes:t}=e;return qe({root:["columnHeaderTitle"]},Jt,t)},IFe=Ar("div",{name:"MuiDataGrid",slot:"ColumnHeaderTitle",overridesResolver:(e,t)=>t.columnHeaderTitle})({textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",fontWeight:"var(--unstable_DataGrid-headWeight)"}),RFe=m.forwardRef(function(t,n){const{className:r}=t,o=be(t,TFe),i=dt(),a=EFe(i);return g.jsx(IFe,P({ref:n,className:ze(a.root,r),ownerState:i},o))});function OFe(e){var t;const{label:n,description:r}=e,o=dt(),i=m.useRef(null),[a,s]=m.useState(""),l=m.useCallback(()=>{if(!r&&i!=null&&i.current){const u=i6e(i.current);s(u?n:"")}},[r,n]);return g.jsx(o.slots.baseTooltip,P({title:r||a},(t=o.slotProps)==null?void 0:t.baseTooltip,{children:g.jsx(RFe,{onMouseOver:l,ref:i,children:n})}))}const AFe=["resizable","resizing","height","side"];var $V=function(e){return e.Left="left",e.Right="right",e}($V||{});const FFe=e=>{const{resizable:t,resizing:n,classes:r,side:o}=e,i={root:["columnSeparator",t&&"columnSeparator--resizable",n&&"columnSeparator--resizing",o&&`columnSeparator--side${je(o)}`],icon:["iconSeparator"]};return qe(i,Jt,r)};function LFe(e){const{height:t,side:n=$V.Right}=e,r=be(e,AFe),o=dt(),i=P({},e,{side:n,classes:o.classes}),a=FFe(i),s=m.useCallback(l=>{l.preventDefault(),l.stopPropagation()},[]);return g.jsx("div",P({className:a.root,style:{minHeight:t,opacity:o.showColumnVerticalBorder?0:1}},r,{onClick:s,children:g.jsx(o.slots.columnResizeIcon,{className:a.icon})}))}const DFe=m.memo(LFe),jFe=["classes","columnMenuOpen","colIndex","height","isResizing","sortDirection","hasFocus","tabIndex","separatorSide","isDraggable","headerComponent","description","elementId","width","columnMenuIconButton","columnMenu","columnTitleIconButtons","headerClassName","label","resizable","draggableContainerProps","columnHeaderSeparatorProps"],_V=m.forwardRef(function(t,n){const{classes:r,columnMenuOpen:o,colIndex:i,height:a,isResizing:s,sortDirection:l,hasFocus:u,tabIndex:c,separatorSide:f,isDraggable:p,headerComponent:y,description:v,width:b,columnMenuIconButton:C=null,columnMenu:x=null,columnTitleIconButtons:w=null,headerClassName:S,label:$,resizable:T,draggableContainerProps:k,columnHeaderSeparatorProps:M}=t,I=be(t,jFe),N=Mu(),E=dt(),A=m.useRef(null),[z,L]=m.useState(o),O=on(A,n);let D="none";return l!=null&&(D=l==="asc"?"ascending":"descending"),m.useEffect(()=>{z||L(o)},[z,o]),m.useLayoutEffect(()=>{const H=N.current.state.columnMenu;if(u&&!H.open){const j=A.current.querySelector('[tabindex="0"]')||A.current;j==null||j.focus(),N.current.columnHeadersContainerElementRef.current.scrollLeft=0}},[N,u]),g.jsxs("div",P({ref:O,className:ze(r.root,S),style:{height:a,width:b,minWidth:b,maxWidth:b},role:"columnheader",tabIndex:c,"aria-colindex":i+1,"aria-sort":D,"aria-label":y==null?$:void 0},I,{children:[g.jsxs("div",P({className:r.draggableContainer,draggable:p,role:"presentation"},k,{children:[g.jsxs("div",{className:r.titleContainer,role:"presentation",children:[g.jsx("div",{className:r.titleContainerContent,children:y!==void 0?y:g.jsx(OFe,{label:$,description:v,columnWidth:b})}),w]}),C]})),g.jsx(DFe,P({resizable:!E.disableColumnResize&&!!T,resizing:s,height:a,side:f},M)),x]}))}),NFe=e=>{const{colDef:t,classes:n,isDragging:r,sortDirection:o,showRightBorder:i,filterItemsCounter:a}=e,s=o!=null,l=a!=null&&a>0,u=t.type==="number",c={root:["columnHeader",t.headerAlign==="left"&&"columnHeader--alignLeft",t.headerAlign==="center"&&"columnHeader--alignCenter",t.headerAlign==="right"&&"columnHeader--alignRight",t.sortable&&"columnHeader--sortable",r&&"columnHeader--moving",s&&"columnHeader--sorted",l&&"columnHeader--filtered",u&&"columnHeader--numeric","withBorderColor",i&&"columnHeader--withRightBorder"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer"],titleContainerContent:["columnHeaderTitleContainerContent"]};return qe(c,Jt,n)};function zFe(e){var t,n,r,o;const{colDef:i,columnMenuOpen:a,colIndex:s,headerHeight:l,isResizing:u,sortDirection:c,sortIndex:f,filterItemsCounter:p,hasFocus:y,tabIndex:v,disableReorder:b,separatorSide:C}=e,x=Mu(),w=dt(),S=m.useRef(null),$=ln(),T=ln(),k=m.useRef(null),[M,I]=m.useState(a),N=m.useMemo(()=>!w.disableColumnReorder&&!b&&!i.disableReorder,[w.disableColumnReorder,b,i.disableReorder]);let E;i.renderHeader&&(E=i.renderHeader(x.current.getColumnHeaderParams(i.field)));const A=P({},e,{classes:w.classes,showRightBorder:w.showColumnVerticalBorder}),z=NFe(A),L=m.useCallback(Q=>ne=>{ne.currentTarget.contains(ne.target)&&x.current.publishEvent(Q,x.current.getColumnHeaderParams(i.field),ne)},[x,i.field]),O=m.useMemo(()=>({onClick:L("columnHeaderClick"),onDoubleClick:L("columnHeaderDoubleClick"),onMouseOver:L("columnHeaderOver"),onMouseOut:L("columnHeaderOut"),onMouseEnter:L("columnHeaderEnter"),onMouseLeave:L("columnHeaderLeave"),onKeyDown:L("columnHeaderKeyDown"),onFocus:L("columnHeaderFocus"),onBlur:L("columnHeaderBlur")}),[L]),D=m.useMemo(()=>N?{onDragStart:L("columnHeaderDragStart"),onDragEnter:L("columnHeaderDragEnter"),onDragOver:L("columnHeaderDragOver"),onDragEnd:L("columnHeaderDragEnd")}:{},[N,L]),H=m.useMemo(()=>({onMouseDown:L("columnSeparatorMouseDown"),onDoubleClick:L("columnSeparatorDoubleClick")}),[L]);m.useEffect(()=>{M||I(a)},[M,a]);const B=m.useCallback(()=>{I(!1)},[]),j=!w.disableColumnMenu&&!i.disableColumnMenu&&g.jsx(PFe,{colDef:i,columnMenuId:$,columnMenuButtonId:T,open:M,iconButtonRef:k}),W=g.jsx(MFe,{columnMenuId:$,columnMenuButtonId:T,field:i.field,open:a,target:k.current,ContentComponent:w.slots.columnMenu,contentComponentProps:(t=w.slotProps)==null?void 0:t.columnMenu,onExited:B}),U=(n=i.sortingOrder)!=null?n:w.sortingOrder,Z=g.jsxs(m.Fragment,{children:[!w.disableColumnFilter&&g.jsx(w.slots.columnHeaderFilterIconButton,P({field:i.field,counter:p},(r=w.slotProps)==null?void 0:r.columnHeaderFilterIconButton)),i.sortable&&!i.hideSortIcons&&g.jsx(_Fe,{direction:c,index:f,sortingOrder:U})]});m.useLayoutEffect(()=>{const Q=x.current.state.columnMenu;if(y&&!Q.open){const re=S.current.querySelector('[tabindex="0"]')||S.current;re==null||re.focus(),x.current.columnHeadersContainerElementRef.current.scrollLeft=0}},[x,y]);const Y=typeof i.headerClassName=="function"?i.headerClassName({field:i.field,colDef:i}):i.headerClassName,se=(o=i.headerName)!=null?o:i.field;return g.jsx(_V,P({ref:S,classes:z,columnMenuOpen:a,colIndex:s,height:l,isResizing:u,sortDirection:c,hasFocus:y,tabIndex:v,separatorSide:C,isDraggable:N,headerComponent:E,description:i.description,elementId:i.field,width:i.computedWidth,columnMenuIconButton:j,columnTitleIconButtons:Z,headerClassName:Y,label:se,resizable:!w.disableColumnResize&&!!i.resizable,"data-field":i.field,columnMenu:W,draggableContainerProps:D,columnHeaderSeparatorProps:H},O))}const Lg=()=>({items:[],logicOperator:zo.And,quickFilterValues:[],quickFilterLogicOperator:zo.And}),b8=1e3;class BFe{constructor(t=b8){this.timeouts=new Map,this.cleanupTimeout=b8,this.cleanupTimeout=t}register(t,n,r){this.timeouts||(this.timeouts=new Map);const o=setTimeout(()=>{typeof n=="function"&&n(),this.timeouts.delete(r.cleanupToken)},this.cleanupTimeout);this.timeouts.set(r.cleanupToken,o)}unregister(t){const n=this.timeouts.get(t.cleanupToken);n&&(this.timeouts.delete(t.cleanupToken),clearTimeout(n))}reset(){this.timeouts&&(this.timeouts.forEach((t,n)=>{this.unregister({cleanupToken:n})}),this.timeouts=void 0)}}class HFe{constructor(){this.registry=new FinalizationRegistry(t=>{typeof t=="function"&&t()})}register(t,n,r){this.registry.register(t,n,r)}unregister(t){this.registry.unregister(t)}reset(){}}var cs=function(e){return e.DataGrid="DataGrid",e.DataGridPro="DataGridPro",e}(cs||{});class WFe{}function VFe(e){let t=0;return function(r,o,i,a){e.registry===null&&(e.registry=typeof FinalizationRegistry<"u"?new HFe:new BFe);const[s]=m.useState(new WFe),l=m.useRef(null),u=m.useRef();u.current=i;const c=m.useRef(null);if(!l.current&&u.current){const f=(p,y,v)=>{if(!y.defaultMuiPrevented){var b;(b=u.current)==null||b.call(u,p,y,v)}};l.current=r.current.subscribeEvent(o,f,a),t+=1,c.current={cleanupToken:t},e.registry.register(s,()=>{var p;(p=l.current)==null||p.call(l),l.current=null,c.current=null},c.current)}else!u.current&&l.current&&(l.current(),l.current=null,c.current&&(e.registry.unregister(c.current),c.current=null));m.useEffect(()=>{if(!l.current&&u.current){const f=(p,y,v)=>{if(!y.defaultMuiPrevented){var b;(b=u.current)==null||b.call(u,p,y,v)}};l.current=r.current.subscribeEvent(o,f,a)}return c.current&&e.registry&&(e.registry.unregister(c.current),c.current=null),()=>{var f;(f=l.current)==null||f.call(l),l.current=null}},[r,o,a])}}const UFe={registry:null},vt=VFe(UFe),GFe={isFirst:!0};function Yn(e,t,n){vt(e,t,n,GFe)}function ho(e,t){const n=m.useRef(null);if(n.current)return n.current;const r=e.current.getLogger(t);return n.current=r,r}function qFe(e){return typeof e=="number"&&!Number.isNaN(e)}function kV(e){return typeof e=="function"}function RT(e){return typeof e=="object"&&e!==null}function KFe(){try{const e="__some_random_key_you_are_not_going_to_use__";return window.localStorage.setItem(e,e),window.localStorage.removeItem(e),!0}catch{return!1}}function N1(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}const Mp=(e,t,n)=>Math.max(t,Math.min(n,e));function nl(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)){const o=e.length;if(o!==t.length)return!1;for(let i=0;i{let t=e+=1831565813;return t=Math.imul(t^t>>>15,t|1),t^=t+Math.imul(t^t>>>7,t|61),((t^t>>>14)>>>0)/4294967296}}function XFe(e,t,n){const r=YFe(e);return()=>t+(n-t)*r()}function PV(e){return typeof structuredClone=="function"?structuredClone(e):JSON.parse(JSON.stringify(e))}const QFe=(e,t,n,r,o)=>{const i=ho(e,"useNativeEventListener"),[a,s]=m.useState(!1),l=m.useRef(r),u=m.useCallback(c=>l.current&&l.current(c),[]);m.useEffect(()=>{l.current=r},[r]),m.useEffect(()=>{let c;if(kV(t)?c=t():c=t&&t.current?t.current:null,c&&n&&!a){i.debug(`Binding native ${n} event`),c.addEventListener(n,u,o);const f=c;s(!0);const p=()=>{i.debug(`Clearing native ${n} event`),f.removeEventListener(n,u,o)};e.current.subscribeEvent("unmount",p)}},[t,u,n,a,i,o,e])},S0=e=>{const t=m.useRef(!0);t.current&&(t.current=!1,e())},ZFe=100,JFe=e=>e?0:100,MV=(e,t)=>t>0&&e>0?Math.ceil(e/t):0;$s(["MUI: the 'rowCount' prop is undefined while using paginationMode='server'","For more detail, see http://mui.com/components/data-grid/pagination/#basic-implementation"],"error");const TV=e=>({page:0,pageSize:e?0:100}),e8e=(e,t=0)=>t===0?e:Math.max(Math.min(e,t-1),0),EV=(e,t)=>{if(t===cs.DataGrid&&e>ZFe)throw new Error(["MUI: `pageSize` cannot exceed 100 in the MIT version of the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join(` -`))},IV=e=>e.pagination,zi=Vt(IV,e=>e.paginationModel),t8e=Vt(zi,e=>e.page),n8e=Vt(zi,e=>e.pageSize);Vt(zi,a2,(e,t)=>MV(t,e.pageSize));const OT=Jn(zi,wa,i2,Tu,uV,(e,t,n,r,o)=>{const i=o.length,a=Math.min(e.pageSize*e.page,i-1),s=Math.min(a+e.pageSize-1,i-1);if(a===-1||s===-1)return null;if(n<2)return{firstRowIndex:a,lastRowIndex:s};const l=o[a],u=s-a+1,c=r.findIndex(v=>v.id===l.id);let f=c,p=0;for(;f0)&&(f+=1),b===0&&(p+=1))}return{firstRowIndex:c,lastRowIndex:f-1}}),r8e=Jn(Tu,OT,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),RV=Jn(Rm,OT,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),Zc=e=>e.preferencePanel;var Ta=function(e){return e.filters="filters",e.columns="columns",e}(Ta||{});const Dg=e=>e.rowsMeta,ji=e=>e.rowSelection,o8e=Vt(ji,e=>e.length),i8e=Jn(ji,Gl,(e,t)=>new Map(e.map(n=>[n,t[n]]))),fb=Jn(ji,e=>e.reduce((t,n)=>(t[n]=n,t),{})),a8e=$s(["MUI: The `sortModel` can only contain a single item when the `disableMultipleColumnsSorting` prop is set to `true`.","If you are using the community version of the `DataGrid`, this prop is always `true`."],"error"),OV=(e,t)=>t&&e.length>1?(a8e(),[e[0]]):e,x8=(e,t)=>n=>P({},n,{sorting:P({},n.sorting,{sortModel:OV(e,t)})}),s8e=e=>e==="desc",l8e=(e,t)=>{const n=t.current.getColumn(e.field);if(!n)return null;const r=s8e(e.sort)?(...i)=>-1*n.sortComparator(...i):n.sortComparator;return{getSortCellParams:i=>({id:i,field:n.field,rowNode:t.current.getRowNode(i),value:t.current.getCellValue(i,n.field),api:t.current}),comparator:r}},u8e=(e,t,n)=>e.reduce((r,o,i)=>{if(r!==0)return r;const a=t.params[i],s=n.params[i];return r=o.comparator(a.value,s.value,a,s),r},0),c8e=(e,t)=>{const n=e.map(r=>l8e(r,t)).filter(r=>!!r);return n.length===0?null:r=>r.map(o=>({node:o,params:n.map(i=>i.getSortCellParams(o.id))})).sort((o,i)=>u8e(n,o,i)).map(o=>o.node.id)},w8=(e,t)=>{const n=e.indexOf(t);return!t||n===-1||n+1===e.length?e[0]:e[n+1]},AT=(e,t)=>e==null&&t!=null?-1:t==null&&e!=null?1:e==null&&t==null?0:null,d8e=new Intl.Collator,f8e=(e,t)=>{const n=AT(e,t);return n!==null?n:typeof e=="string"?d8e.compare(e.toString(),t.toString()):e-t},AV=(e,t)=>{const n=AT(e,t);return n!==null?n:Number(e)-Number(t)},FV=(e,t)=>{const n=AT(e,t);return n!==null?n:e>t?1:ee.headerFiltering,p8e=Vt(LV,e=>e.editing),h8e=Vt(LV,e=>e.menuOpen),m8e=(e,t)=>{const n={enabled:!t.disableVirtualization,enabledForColumns:!0};return P({},e,{virtualization:n})};function g8e(e,t){const n=i=>{e.current.setState(a=>P({},a,{virtualization:P({},a.virtualization,{enabled:i})}))};Yt(e,{unstable_setVirtualization:n,unstable_setColumnVirtualization:i=>{e.current.setState(a=>P({},a,{virtualization:P({},a.virtualization,{enabledForColumns:i})}))}},"public"),m.useEffect(()=>{n(!t.disableVirtualization)},[t.disableVirtualization])}const DV=e=>e.virtualization,v8e=Vt(DV,e=>e.enabled),jV=Vt(DV,e=>e.enabledForColumns),y8e=e=>{const{classes:t}=e;return qe({icon:["filterIcon"]},Jt,t)};function b8e(e){var t,n;const{counter:r,field:o,onClick:i}=e,a=Wt(),s=dt(),l=P({},e,{classes:s.classes}),u=y8e(l),c=it(a,Zc),f=ln(),p=ln(),y=m.useCallback(C=>{C.preventDefault(),C.stopPropagation();const{open:x,openedPanelValue:w}=Zc(a.current.state);x&&w===Ta.filters?a.current.hideFilterPanel():a.current.showFilterPanel(void 0,p,f),i&&i(a.current.getColumnHeaderParams(o),C)},[a,o,i,p,f]);if(!r)return null;const v=c.open&&c.labelId===f,b=g.jsx(s.slots.baseIconButton,P({id:f,onClick:y,color:"default","aria-label":a.current.getLocaleText("columnHeaderFiltersLabel"),size:"small",tabIndex:-1,"aria-haspopup":"menu","aria-expanded":v,"aria-controls":v?p:void 0},(t=s.slotProps)==null?void 0:t.baseIconButton,{children:g.jsx(s.slots.columnFilteredIcon,{className:u.icon,fontSize:"small"})}));return g.jsx(s.slots.baseTooltip,P({title:a.current.getLocaleText("columnHeaderFiltersTooltipActive")(r),enterDelay:1e3},(n=s.slotProps)==null?void 0:n.baseTooltip,{children:g.jsxs(SV,{children:[r>1&&g.jsx(OM,{badgeContent:r,color:"default",children:b}),r===1&&b]})}))}const x8e=["field","id","value","formattedValue","row","rowNode","colDef","isEditable","cellMode","hasFocus","tabIndex","api"],w8e=e=>{const{classes:t}=e;return qe({root:["checkboxInput"]},Jt,t)},C8e=m.forwardRef(function(t,n){var r;const{field:o,id:i,value:a,rowNode:s,hasFocus:l,tabIndex:u}=t,c=be(t,x8e),f=Wt(),p=dt(),y={classes:p.classes},v=w8e(y),b=m.useRef(null),C=m.useRef(null),x=on(b,n),w=f.current.getCellElement(i,o),S=M=>{const I={value:M.target.checked,id:i};f.current.publishEvent("rowSelectionCheckboxChange",I,M)};m.useLayoutEffect(()=>{u===0&&w&&(w.tabIndex=-1)},[w,u]),m.useEffect(()=>{if(l){var M;const I=(M=b.current)==null?void 0:M.querySelector("input");I==null||I.focus({preventScroll:!0})}else C.current&&C.current.stop({})},[l]);const $=m.useCallback(M=>{wV(M.key)&&M.stopPropagation()},[]);if(s.type==="footer"||s.type==="pinnedRow")return null;const T=f.current.isRowSelectable(i),k=f.current.getLocaleText(a?"checkboxSelectionUnselectRow":"checkboxSelectionSelectRow");return g.jsx(p.slots.baseCheckbox,P({ref:x,tabIndex:u,checked:a,onChange:S,className:v.root,inputProps:{"aria-label":k},onKeyDown:$,disabled:!T,touchRippleRef:C},(r=p.slotProps)==null?void 0:r.baseCheckbox,c))}),S8e=C8e,$8e=["field","colDef"],_8e=e=>{const{classes:t}=e;return qe({root:["checkboxInput"]},Jt,t)},k8e=m.forwardRef(function(t,n){var r;const o=be(t,$8e),[,i]=m.useState(!1),a=Wt(),s=dt(),l={classes:s.classes},u=_8e(l),c=it(a,fV),f=it(a,ji),p=it(a,Rm),y=it(a,RV),v=m.useMemo(()=>typeof s.isRowSelectable!="function"?f:f.filter(I=>a.current.getRow(I)?s.isRowSelectable(a.current.getRowParams(I)):!1),[a,s.isRowSelectable,f]),b=m.useMemo(()=>(!s.pagination||!s.checkboxSelectionVisibleOnly?p:y).reduce((N,E)=>(N[E]=!0,N),{}),[s.pagination,s.checkboxSelectionVisibleOnly,y,p]),C=m.useMemo(()=>v.filter(I=>b[I]).length,[v,b]),x=C>0&&C0,S=I=>{const N={value:I.target.checked};a.current.publishEvent("headerSelectionCheckboxChange",N)},$=c!==null&&c.field===t.field?0:-1;m.useLayoutEffect(()=>{const I=a.current.getColumnHeaderElement(t.field);$===0&&I&&(I.tabIndex=-1)},[$,a,t.field]);const T=m.useCallback(I=>{I.key===" "&&a.current.publishEvent("headerSelectionCheckboxChange",{value:!w})},[a,w]),k=m.useCallback(()=>{i(I=>!I)},[]);m.useEffect(()=>a.current.subscribeEvent("rowSelectionChange",k),[a,k]);const M=a.current.getLocaleText(w?"checkboxSelectionUnselectAllRows":"checkboxSelectionSelectAllRows");return g.jsx(s.slots.baseCheckbox,P({ref:n,indeterminate:x,checked:w,onChange:S,className:u.root,inputProps:{"aria-label":M},tabIndex:$,onKeyDown:T},(r=s.slotProps)==null?void 0:r.baseCheckbox,o))}),C8=xt(g.jsx("path",{d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}),"ArrowUpward"),S8=xt(g.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward"),$8=xt(g.jsx("path",{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"KeyboardArrowRight"),_8=xt(g.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),P8e=xt(g.jsx("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"}),"FilterList"),k8=xt(g.jsx("path",{d:"M4.25 5.61C6.27 8.2 10 13 10 13v6c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-6s3.72-4.8 5.74-7.39c.51-.66.04-1.61-.79-1.61H5.04c-.83 0-1.3.95-.79 1.61z"}),"FilterAlt"),M8e=xt(g.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),"Search");xt(g.jsx("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu");xt(g.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckCircle");const T8e=xt(g.jsx("path",{d:"M6 5H3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm14 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm-7 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1z"}),"ColumnIcon"),E8e=xt(g.jsx("path",{d:"M11 19V5h2v14z"}),"Separator"),I8e=xt(g.jsx("path",{d:"M4 15h16v-2H4v2zm0 4h16v-2H4v2zm0-8h16V9H4v2zm0-6v2h16V5H4z"}),"ViewHeadline"),R8e=xt(g.jsx("path",{d:"M21,8H3V4h18V8z M21,10H3v4h18V10z M21,16H3v4h18V16z"}),"TableRows"),O8e=xt(g.jsx("path",{d:"M4 18h17v-6H4v6zM4 5v6h17V5H4z"}),"ViewStream"),A8e=xt(g.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"TripleDotsVertical"),e$=xt(g.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),P8=xt(g.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add"),F8e=xt(g.jsx("path",{d:"M19 13H5v-2h14v2z"}),"Remove"),L8e=xt(g.jsx("path",{d:"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4v3z"}),"Load"),M8=xt(g.jsx("path",{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"Drag"),D8e=xt(g.jsx("path",{d:"M19 12v7H5v-7H3v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zm-6 .67l2.59-2.58L17 11.5l-5 5-5-5 1.41-1.41L11 12.67V3h2z"}),"SaveAlt"),j8e=xt(g.jsx("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),N8e=xt(g.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreVert"),z8e=xt(g.jsx("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"}),"VisibilityOff"),B8e=xt(g.jsx("g",{children:g.jsx("path",{d:"M14.67,5v14H9.33V5H14.67z M15.67,19H21V5h-5.33V19z M8.33,19V5H3v14H8.33z"})}),"ViewColumn"),H8e=xt(g.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear");xt(g.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"}),"Delete");const W8e=xt(g.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zm2.46-7.12l1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14l-2.13-2.12zM15.5 4l-1-1h-5l-1 1H5v2h14V4z"}),"Delete"),V8e=["hideMenu","colDef","id","labelledby","className","children","open"],U8e=ke(i0)(()=>({minWidth:248})),G8e=m.forwardRef(function(t,n){const{hideMenu:r,id:o,labelledby:i,className:a,children:s,open:l}=t,u=be(t,V8e),c=m.useCallback(f=>{c2(f.key)&&f.preventDefault(),ET(f.key)&&r(f)},[r]);return g.jsx(U8e,P({id:o,ref:n,className:ze(le.menuList,a),"aria-labelledby":i,onKeyDown:c,autoFocus:l},u,{children:s}))}),q8e=["displayOrder"],K8e=e=>{const t=Mu(),{defaultSlots:n,defaultSlotProps:r,slots:o={},slotProps:i={},hideMenu:a,colDef:s,addDividers:l=!0}=e,u=m.useMemo(()=>P({},n,o),[n,o]),c=m.useMemo(()=>{if(!i||Object.keys(i).length===0)return r;const y=P({},i);return Object.entries(r).forEach(([v,b])=>{y[v]=P({},b,i[v]||{})}),y},[r,i]),f=t.current.unstable_applyPipeProcessors("columnMenu",[],e.colDef),p=m.useMemo(()=>{const y=Object.keys(n);return Object.keys(o).filter(v=>!y.includes(v))},[o,n]);return m.useMemo(()=>{const b=Array.from(new Set([...f,...p])).filter(C=>u[C]!=null).sort((C,x)=>{const w=c[C],S=c[x],$=Number.isFinite(w==null?void 0:w.displayOrder)?w.displayOrder:100,T=Number.isFinite(S==null?void 0:S.displayOrder)?S.displayOrder:100;return $-T});return b.reduce((C,x,w)=>{let S={colDef:s,onClick:a};const $=c[x];if($){const T=be($,q8e);S=P({},S,T)}return l&&w!==b.length-1?[...C,[u[x],S],[aN,{}]]:[...C,[u[x],S]]},[])},[l,s,f,a,u,c,p])};function Y8e(e){const{colDef:t,onClick:n}=e,r=Wt(),o=dt(),s=Xr(r).filter(u=>u.disableColumnMenu!==!0).length===1,l=m.useCallback(u=>{s||(r.current.setColumnVisibility(t.field,!1),n(u))},[r,t.field,n,s]);return o.disableColumnSelector||t.hideable===!1?null:g.jsxs(Co,{onClick:l,disabled:s,children:[g.jsx(vc,{children:g.jsx(o.slots.columnMenuHideIcon,{fontSize:"small"})}),g.jsx(Hf,{children:r.current.getLocaleText("columnMenuHideColumn")})]})}function X8e(e){const{onClick:t}=e,n=Wt(),r=dt(),o=m.useCallback(i=>{t(i),n.current.showPreferences(Ta.columns)},[n,t]);return r.disableColumnSelector?null:g.jsxs(Co,{onClick:o,children:[g.jsx(vc,{children:g.jsx(r.slots.columnMenuManageColumnsIcon,{fontSize:"small"})}),g.jsx(Hf,{children:n.current.getLocaleText("columnMenuManageColumns")})]})}function Q8e(e){return g.jsxs(m.Fragment,{children:[g.jsx(Y8e,P({},e)),g.jsx(X8e,P({},e))]})}function Z8e(e){const{colDef:t,onClick:n}=e,r=Wt(),o=dt(),i=m.useCallback(a=>{n(a),r.current.showFilterPanel(t.field)},[r,t.field,n]);return o.disableColumnFilter||!t.filterable?null:g.jsxs(Co,{onClick:i,children:[g.jsx(vc,{children:g.jsx(o.slots.columnMenuFilterIcon,{fontSize:"small"})}),g.jsx(Hf,{children:r.current.getLocaleText("columnMenuFilter")})]})}function J8e(e){var t;const{colDef:n,onClick:r}=e,o=Wt(),i=it(o,Di),a=dt(),s=m.useMemo(()=>{if(!n)return null;const f=i.find(p=>p.field===n.field);return f==null?void 0:f.sort},[n,i]),l=(t=n.sortingOrder)!=null?t:a.sortingOrder,u=m.useCallback(f=>{r(f);const p=f.currentTarget.getAttribute("data-value")||null;o.current.sortColumn(n,p===s?null:p)},[o,n,r,s]);if(!n||!n.sortable||!l.some(f=>!!f))return null;const c=f=>{const p=o.current.getLocaleText(f);return typeof p=="function"?p(n):p};return g.jsxs(m.Fragment,{children:[l.includes("asc")&&s!=="asc"?g.jsxs(Co,{onClick:u,"data-value":"asc",children:[g.jsx(vc,{children:g.jsx(a.slots.columnMenuSortAscendingIcon,{fontSize:"small"})}),g.jsx(Hf,{children:c("columnMenuSortAsc")})]}):null,l.includes("desc")&&s!=="desc"?g.jsxs(Co,{onClick:u,"data-value":"desc",children:[g.jsx(vc,{children:g.jsx(a.slots.columnMenuSortDescendingIcon,{fontSize:"small"})}),g.jsx(Hf,{children:c("columnMenuSortDesc")})]}):null,l.includes(null)&&s!=null?g.jsxs(Co,{onClick:u,children:[g.jsx(vc,{}),g.jsx(Hf,{children:o.current.getLocaleText("columnMenuUnsort")})]}):null]})}const e9e=["defaultSlots","defaultSlotProps","slots","slotProps"],t9e={columnMenuSortItem:J8e,columnMenuFilterItem:Z8e,columnMenuColumnsItem:Q8e},n9e={columnMenuSortItem:{displayOrder:10},columnMenuFilterItem:{displayOrder:20},columnMenuColumnsItem:{displayOrder:30}},r9e=m.forwardRef(function(t,n){const{defaultSlots:r,defaultSlotProps:o,slots:i,slotProps:a}=t,s=be(t,e9e),l=K8e(P({},s,{defaultSlots:r,defaultSlotProps:o,slots:i,slotProps:a}));return g.jsx(G8e,P({ref:n},s,{children:l.map(([u,c],f)=>g.jsx(u,P({},c),f))}))}),o9e=m.forwardRef(function(t,n){return g.jsx(r9e,P({},t,{ref:n,defaultSlots:t9e,defaultSlotProps:n9e}))}),i9e=["className"],a9e=e=>{const{classes:t}=e;return qe({root:["panelContent"]},Jt,t)},s9e=Ar("div",{name:"MuiDataGrid",slot:"PanelContent",overridesResolver:(e,t)=>t.panelContent})({display:"flex",flexDirection:"column",overflow:"auto",flex:"1 1",maxHeight:400});function NV(e){const{className:t}=e,n=be(e,i9e),r=dt(),o=a9e(r);return g.jsx(s9e,P({className:ze(t,o.root),ownerState:r},n))}const l9e=["className"],u9e=e=>{const{classes:t}=e;return qe({root:["panelFooter"]},Jt,t)},c9e=Ar("div",{name:"MuiDataGrid",slot:"PanelFooter",overridesResolver:(e,t)=>t.panelFooter})(({theme:e})=>({padding:e.spacing(.5),display:"flex",justifyContent:"space-between"}));function zV(e){const{className:t}=e,n=be(e,l9e),r=dt(),o=u9e(r);return g.jsx(c9e,P({className:ze(t,o.root),ownerState:r},n))}const d9e=["className"],f9e=e=>{const{classes:t}=e;return qe({root:["panelHeader"]},Jt,t)},p9e=Ar("div",{name:"MuiDataGrid",slot:"PanelHeader",overridesResolver:(e,t)=>t.panelHeader})(({theme:e})=>({padding:e.spacing(1)}));function h9e(e){const{className:t}=e,n=be(e,d9e),r=dt(),o=f9e(r);return g.jsx(p9e,P({className:ze(t,o.root),ownerState:r},n))}const m9e=["className","slotProps"],g9e=e=>{const{classes:t}=e;return qe({root:["panelWrapper"]},Jt,t)},v9e=ke("div",{name:"MuiDataGrid",slot:"PanelWrapper",overridesResolver:(e,t)=>t.panelWrapper})({display:"flex",flexDirection:"column",flex:1,"&:focus":{outline:0}}),y9e=()=>!0,BV=m.forwardRef(function(t,n){const{className:r,slotProps:o={}}=t,i=be(t,m9e),a=dt(),s=g9e(a);return g.jsx(jj,P({open:!0,disableEnforceFocus:!0,isEnabled:y9e},o.TrapFocus,{children:g.jsx(v9e,P({ref:n,tabIndex:-1,className:ze(r,s.root),ownerState:a},i))}))}),b9e=!1,x9e=["sort","searchPredicate","autoFocusSearchField","disableHideAllButton","disableShowAllButton","getTogglableColumns"],w9e=e=>{const{classes:t}=e;return qe({root:["columnsPanel"],columnsPanelRow:["columnsPanelRow"]},Jt,t)},C9e=ke("div",{name:"MuiDataGrid",slot:"ColumnsPanel",overridesResolver:(e,t)=>t.columnsPanel})({padding:"8px 0px 8px 8px"}),S9e=ke("div",{name:"MuiDataGrid",slot:"ColumnsPanelRow",overridesResolver:(e,t)=>t.columnsPanelRow})(({theme:e})=>({display:"flex",justifyContent:"space-between",padding:"1px 8px 1px 7px",[`& .${lo.root}`]:{marginRight:e.spacing(.5)}})),$9e=ke(wo)({justifyContent:"flex-end"}),T8=new Intl.Collator,_9e=(e,t)=>(e.headerName||e.field).toLowerCase().indexOf(t)>-1;function k9e(e){var t,n,r;const o=Wt(),i=m.useRef(null),a=it(o,us),s=it(o,$a),l=dt(),[u,c]=m.useState(""),f=w9e(l),{sort:p,searchPredicate:y=_9e,autoFocusSearchField:v=!0,disableHideAllButton:b=!1,disableShowAllButton:C=!1,getTogglableColumns:x}=e,w=be(e,x9e),S=m.useMemo(()=>{switch(p){case"asc":return[...a].sort((A,z)=>T8.compare(A.headerName||A.field,z.headerName||z.field));case"desc":return[...a].sort((A,z)=>-T8.compare(A.headerName||A.field,z.headerName||z.field));default:return a}},[a,p]),$=A=>{const{name:z}=A.target;o.current.setColumnVisibility(z,s[z]===!1)},T=m.useCallback(A=>{const z=$a(o),L=P({},z),O=x?x(a):null;return a.forEach(D=>{D.hideable&&(O==null||O.includes(D.field))&&(A?delete L[D.field]:L[D.field]=!1)}),o.current.setColumnVisibilityModel(L)},[o,a,x]),k=m.useCallback(A=>{c(A.target.value)},[]),M=m.useMemo(()=>{const A=x?x(S):null,z=A?S.filter(({field:L})=>A.includes(L)):S;return u?z.filter(L=>y(L,u.toLowerCase())):z},[S,u,y,x]),I=m.useRef(null);m.useEffect(()=>{v?i.current.focus():I.current&&typeof I.current.focus=="function"&&I.current.focus()},[v]);let N=!1;const E=A=>N===!1&&A.hideable!==!1?(N=!0,!0):!1;return g.jsxs(BV,P({},w,{children:[g.jsx(h9e,{children:g.jsx(l.slots.baseTextField,P({label:o.current.getLocaleText("columnsPanelTextFieldLabel"),placeholder:o.current.getLocaleText("columnsPanelTextFieldPlaceholder"),inputRef:i,value:u,onChange:k,variant:"standard",fullWidth:!0},(t=l.slotProps)==null?void 0:t.baseTextField))}),g.jsx(NV,{children:g.jsx(C9e,{className:f.root,ownerState:l,children:M.map(A=>{var z;return g.jsxs(S9e,{className:f.columnsPanelRow,ownerState:l,children:[g.jsx(R_,{control:g.jsx(l.slots.baseSwitch,P({disabled:A.hideable===!1,checked:s[A.field]!==!1,onClick:$,name:A.field,size:"small",inputRef:E(A)?I:void 0},(z=l.slotProps)==null?void 0:z.baseSwitch)),label:A.headerName||A.field}),!l.disableColumnReorder&&b9e&&g.jsx($9e,{draggable:!0,"aria-label":o.current.getLocaleText("columnsPanelDragIconLabel"),title:o.current.getLocaleText("columnsPanelDragIconLabel"),size:"small",disabled:!0,children:g.jsx(l.slots.columnReorderIcon,{})})]},A.field)})})}),C&&b?null:g.jsxs(zV,{children:[b?g.jsx("span",{}):g.jsx(l.slots.baseButton,P({onClick:()=>T(!1)},(n=l.slotProps)==null?void 0:n.baseButton,{disabled:b,children:o.current.getLocaleText("columnsPanelHideAllButton")})),C?null:g.jsx(l.slots.baseButton,P({onClick:()=>T(!0)},(r=l.slotProps)==null?void 0:r.baseButton,{disabled:C,children:o.current.getLocaleText("columnsPanelShowAllButton")}))]})]}))}const P9e=["children","className","classes"],M9e=bt("MuiDataGrid",["panel","paper"]),T9e=ke(ad,{name:"MuiDataGrid",slot:"Panel",overridesResolver:(e,t)=>t.panel})(({theme:e})=>({zIndex:e.zIndex.modal})),E9e=ke(id,{name:"MuiDataGrid",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,minWidth:300,maxHeight:450,display:"flex"})),I9e=m.forwardRef((e,t)=>{const{children:n,className:r}=e,o=be(e,P9e),i=Wt(),a=dt(),s=M9e,[l,u]=m.useState(!1),c=m.useCallback(()=>{i.current.hidePreferences()},[i]),f=m.useCallback(b=>{cb(b.key)&&i.current.hidePreferences()},[i]),p=m.useMemo(()=>[{name:"flip",enabled:!1},{name:"isPlaced",enabled:!0,phase:"main",fn:()=>{u(!0)},effect:()=>()=>{u(!1)}}],[]),[y,v]=m.useState(null);return m.useEffect(()=>{var b;const C=(b=i.current.rootElementRef)==null||(b=b.current)==null?void 0:b.querySelector(`.${le.columnHeaders}`);C&&v(C)},[i]),y?g.jsx(T9e,P({ref:t,placement:"bottom-start",className:ze(r,s.panel),ownerState:a,anchorEl:y,modifiers:p},o,{children:g.jsx(Dj,{mouseEvent:"onMouseUp",onClickAway:c,children:g.jsx(E9e,{className:s.paper,ownerState:a,elevation:8,onKeyDown:f,children:l&&n})})})):null}),R9e=m.forwardRef(function(t,n){var r,o,i;const a=Wt(),s=it(a,us),l=dt(),u=it(a,Zc),c=a.current.unstable_applyPipeProcessors("preferencePanel",null,(r=u.openedPanelValue)!=null?r:Ta.filters);return g.jsx(l.slots.panel,P({ref:n,as:l.slots.basePopper,open:s.length>0&&u.open,id:u.panelId,"aria-labelledby":u.labelId},(o=l.slotProps)==null?void 0:o.panel,t,(i=l.slotProps)==null?void 0:i.basePopper,{children:c}))}),O9e=["item","hasMultipleFilters","deleteFilter","applyFilterChanges","multiFilterOperator","showMultiFilterOperators","disableMultiFilterOperator","applyMultiFilterOperatorChanges","focusElementRef","logicOperators","columnsSort","filterColumns","deleteIconProps","logicOperatorInputProps","operatorInputProps","columnInputProps","valueInputProps","children"],A9e=["InputComponentProps"],F9e=e=>{const{classes:t}=e;return qe({root:["filterForm"],deleteIcon:["filterFormDeleteIcon"],logicOperatorInput:["filterFormLogicOperatorInput"],columnInput:["filterFormColumnInput"],operatorInput:["filterFormOperatorInput"],valueInput:["filterFormValueInput"]},Jt,t)},L9e=ke("div",{name:"MuiDataGrid",slot:"FilterForm",overridesResolver:(e,t)=>t.filterForm})(({theme:e})=>({display:"flex",padding:e.spacing(1)})),D9e=ke("div",{name:"MuiDataGrid",slot:"FilterFormDeleteIcon",overridesResolver:(e,t)=>t.filterFormDeleteIcon})(({theme:e})=>({flexShrink:0,justifyContent:"flex-end",marginRight:e.spacing(.5),marginBottom:e.spacing(.2)})),j9e=ke("div",{name:"MuiDataGrid",slot:"FilterFormLogicOperatorInput",overridesResolver:(e,t)=>t.filterFormLogicOperatorInput})({minWidth:55,marginRight:5,justifyContent:"end"}),N9e=ke("div",{name:"MuiDataGrid",slot:"FilterFormColumnInput",overridesResolver:(e,t)=>t.filterFormColumnInput})({width:150}),z9e=ke("div",{name:"MuiDataGrid",slot:"FilterFormOperatorInput",overridesResolver:(e,t)=>t.filterFormOperatorInput})({width:120}),B9e=ke("div",{name:"MuiDataGrid",slot:"FilterFormValueInput",overridesResolver:(e,t)=>t.filterFormValueInput})({width:190}),H9e=e=>{switch(e){case zo.And:return"filterPanelOperatorAnd";case zo.Or:return"filterPanelOperatorOr";default:throw new Error("MUI: Invalid `logicOperator` property in the `GridFilterPanel`.")}},Xh=e=>e.headerName||e.field,E8=new Intl.Collator,W9e=m.forwardRef(function(t,n){var r,o,i,a,s,l,u,c,f,p;const{item:y,hasMultipleFilters:v,deleteFilter:b,applyFilterChanges:C,multiFilterOperator:x,showMultiFilterOperators:w,disableMultiFilterOperator:S,applyMultiFilterOperatorChanges:$,focusElementRef:T,logicOperators:k=[zo.And,zo.Or],columnsSort:M,filterColumns:I,deleteIconProps:N={},logicOperatorInputProps:E={},operatorInputProps:A={},columnInputProps:z={},valueInputProps:L={}}=t,O=be(t,O9e),D=Wt(),H=it(D,oV),B=it(D,qr),j=ln(),W=ln(),U=ln(),Z=ln(),Y=dt(),se=F9e(Y),Q=m.useRef(null),ne=m.useRef(null),re=v&&k.length>0,ge=((r=Y.slotProps)==null?void 0:r.baseFormControl)||{},fe=(i=(((o=Y.slotProps)==null?void 0:o.baseSelect)||{}).native)!=null?i:!0,Se=((a=Y.slotProps)==null?void 0:a.baseInputLabel)||{},de=((s=Y.slotProps)==null?void 0:s.baseSelectOption)||{},{InputComponentProps:ie}=L,Pe=be(L,A9e),$e=m.useMemo(()=>{if(I===void 0||typeof I!="function")return H;const K=I({field:y.field,columns:H,currentFilters:(B==null?void 0:B.items)||[]});return H.filter(ee=>K.includes(ee.field))},[I,B==null?void 0:B.items,H,y.field]),me=m.useMemo(()=>{switch(M){case"asc":return $e.sort((K,ee)=>E8.compare(Xh(K),Xh(ee)));case"desc":return $e.sort((K,ee)=>-E8.compare(Xh(K),Xh(ee)));default:return $e}},[$e,M]),ue=y.field?D.current.getColumn(y.field):null,ce=m.useMemo(()=>{var K;return!y.operator||!ue?null:(K=ue.filterOperators)==null?void 0:K.find(ee=>ee.value===y.operator)},[y,ue]),Te=m.useCallback(K=>{const ee=K.target.value,pe=D.current.getColumn(ee);if(pe.field===ue.field)return;const ye=pe.filterOperators.find(Ae=>Ae.value===y.operator)||pe.filterOperators[0],De=!ye.InputComponent||ye.InputComponent!==(ce==null?void 0:ce.InputComponent);C(P({},y,{field:ee,operator:ye.value,value:De?void 0:y.value}))},[D,C,y,ue,ce]),Le=m.useCallback(K=>{const ee=K.target.value,pe=ue==null?void 0:ue.filterOperators.find(De=>De.value===ee),ye=!(pe!=null&&pe.InputComponent)||(pe==null?void 0:pe.InputComponent)!==(ce==null?void 0:ce.InputComponent);C(P({},y,{operator:ee,value:ye?void 0:y.value}))},[C,y,ue,ce]),Re=m.useCallback(K=>{const ee=K.target.value===zo.And.toString()?zo.And:zo.Or;$(ee)},[$]),Oe=()=>{Y.disableMultipleColumnsFiltering?y.value===void 0?b(y):C(P({},y,{value:void 0})):b(y)};return m.useImperativeHandle(T,()=>({focus:()=>{if(ce!=null&&ce.InputComponent){var K;Q==null||(K=Q.current)==null||K.focus()}else ne.current.focus()}}),[ce]),g.jsxs(L9e,P({ref:n,className:se.root,"data-id":y.id,ownerState:Y},O,{children:[g.jsx(D9e,P({variant:"standard",as:Y.slots.baseFormControl},ge,N,{className:ze(se.deleteIcon,ge.className,N.className),ownerState:Y,children:g.jsx(Y.slots.baseIconButton,P({"aria-label":D.current.getLocaleText("filterPanelDeleteIconLabel"),title:D.current.getLocaleText("filterPanelDeleteIconLabel"),onClick:Oe,size:"small"},(l=Y.slotProps)==null?void 0:l.baseIconButton,{children:g.jsx(Y.slots.filterPanelDeleteIcon,{fontSize:"small"})}))})),g.jsx(j9e,P({variant:"standard",as:Y.slots.baseFormControl},ge,E,{sx:P({display:re?"flex":"none",visibility:w?"visible":"hidden"},ge.sx||{},E.sx||{}),className:ze(se.logicOperatorInput,ge.className,E.className),ownerState:Y,children:g.jsx(Y.slots.baseSelect,P({inputProps:{"aria-label":D.current.getLocaleText("filterPanelLogicOperator")},value:x,onChange:Re,disabled:!!S||k.length===1,native:fe},(u=Y.slotProps)==null?void 0:u.baseSelect,{children:k.map(K=>m.createElement(Y.slots.baseSelectOption,P({},de,{native:fe,key:K.toString(),value:K.toString()}),D.current.getLocaleText(H9e(K))))}))})),g.jsxs(N9e,P({variant:"standard",as:Y.slots.baseFormControl},ge,z,{className:ze(se.columnInput,ge.className,z.className),ownerState:Y,children:[g.jsx(Y.slots.baseInputLabel,P({},Se,{htmlFor:j,id:W,children:D.current.getLocaleText("filterPanelColumns")})),g.jsx(Y.slots.baseSelect,P({labelId:W,id:j,label:D.current.getLocaleText("filterPanelColumns"),value:y.field||"",onChange:Te,native:fe},(c=Y.slotProps)==null?void 0:c.baseSelect,{children:me.map(K=>m.createElement(Y.slots.baseSelectOption,P({},de,{native:fe,key:K.field,value:K.field}),Xh(K)))}))]})),g.jsxs(z9e,P({variant:"standard",as:Y.slots.baseFormControl},ge,A,{className:ze(se.operatorInput,ge.className,A.className),ownerState:Y,children:[g.jsx(Y.slots.baseInputLabel,P({},Se,{htmlFor:U,id:Z,children:D.current.getLocaleText("filterPanelOperator")})),g.jsx(Y.slots.baseSelect,P({labelId:Z,label:D.current.getLocaleText("filterPanelOperator"),id:U,value:y.operator,onChange:Le,native:fe,inputRef:ne},(f=Y.slotProps)==null?void 0:f.baseSelect,{children:ue==null||(p=ue.filterOperators)==null?void 0:p.map(K=>m.createElement(Y.slots.baseSelectOption,P({},de,{native:fe,key:K.value,value:K.value}),K.label||D.current.getLocaleText(`filterOperator${je(K.value)}`)))}))]})),g.jsx(B9e,P({variant:"standard",as:Y.slots.baseFormControl},ge,Pe,{className:ze(se.valueInput,ge.className,Pe.className),ownerState:Y,children:ce!=null&&ce.InputComponent?g.jsx(ce.InputComponent,P({apiRef:D,item:y,applyValue:C,focusElementRef:Q},ce.InputComponentProps,ie)):null}))]}))});class FT{constructor(){this.currentId=0,this.clear=()=>{this.currentId!==0&&(clearTimeout(this.currentId),this.currentId=0)},this.disposeEffect=()=>this.clear}static create(){return new FT}start(t,n){this.clear(),this.currentId=setTimeout(n,t)}}function LT(){const e=wT(FT.create).current;return nV(e.disposeEffect),e}const V9e=["item","applyValue","type","apiRef","focusElementRef","tabIndex","disabled","isFilterActive","clearButton","InputProps"];function Ka(e){var t,n;const{item:r,applyValue:o,type:i,apiRef:a,focusElementRef:s,tabIndex:l,disabled:u,clearButton:c,InputProps:f}=e,p=be(e,V9e),y=LT(),[v,b]=m.useState((t=r.value)!=null?t:""),[C,x]=m.useState(!1),w=ln(),S=dt(),$=m.useCallback(T=>{const{value:k}=T.target;b(String(k)),x(!0),y.start(S.filterDebounceMs,()=>{const M=P({},r,{value:k,fromInput:w});o(M),x(!1)})},[w,o,r,S.filterDebounceMs,y]);return m.useEffect(()=>{if(r.fromInput!==w){var k;b(String((k=r.value)!=null?k:""))}},[w,r]),g.jsx(S.slots.baseTextField,P({id:w,label:a.current.getLocaleText("filterPanelInputLabel"),placeholder:a.current.getLocaleText("filterPanelInputPlaceholder"),value:v,onChange:$,variant:"standard",type:i||"text",InputProps:P({},C||c?{endAdornment:C?g.jsx(S.slots.loadIcon,{fontSize:"small",color:"action"}):c}:{},{disabled:u},f,{inputProps:P({tabIndex:l},f==null?void 0:f.inputProps)}),InputLabelProps:{shrink:!0},inputRef:s},p,(n=S.slotProps)==null?void 0:n.baseTextField))}const U9e=["item","applyValue","type","apiRef","focusElementRef","InputProps","isFilterActive","clearButton","tabIndex","disabled"];function ef(e){var t,n;const{item:r,applyValue:o,type:i,apiRef:a,focusElementRef:s,InputProps:l,clearButton:u,tabIndex:c,disabled:f}=e,p=be(e,U9e),y=LT(),[v,b]=m.useState((t=r.value)!=null?t:""),[C,x]=m.useState(!1),w=ln(),S=dt(),$=m.useCallback(T=>{const k=T.target.value;b(String(k)),x(!0),y.start(S.filterDebounceMs,()=>{o(P({},r,{value:k})),x(!1)})},[o,r,S.filterDebounceMs,y]);return m.useEffect(()=>{var T;const k=(T=r.value)!=null?T:"";b(String(k))},[r.value]),g.jsx(S.slots.baseTextField,P({fullWidth:!0,id:w,label:a.current.getLocaleText("filterPanelInputLabel"),placeholder:a.current.getLocaleText("filterPanelInputPlaceholder"),value:v,onChange:$,variant:"standard",type:i||"text",InputLabelProps:{shrink:!0},inputRef:s,InputProps:P({},C||u?{endAdornment:C?g.jsx(S.slots.loadIcon,{fontSize:"small",color:"action"}):u}:{},{disabled:f},l,{inputProps:P({max:i==="datetime-local"?"9999-12-31T23:59":"9999-12-31",tabIndex:c},l==null?void 0:l.inputProps)})},p,(n=S.slotProps)==null?void 0:n.baseTextField))}const G9e=["item","applyValue","type","apiRef","focusElementRef","getOptionLabel","getOptionValue","placeholder","tabIndex","label","isFilterActive","clearButton","InputLabelProps"],q9e=({column:{valueOptions:e,field:t},OptionComponent:n,getOptionLabel:r,getOptionValue:o,isSelectNative:i,baseSelectOptionProps:a})=>(typeof e=="function"?["",...e({field:t})]:["",...e||[]]).map(l=>{const u=o(l),c=r(l);return m.createElement(n,P({},a,{native:i,key:u,value:u}),c)}),K9e=ke("div")({display:"flex",alignItems:"flex-end",width:"100%","& button":{margin:"auto 0px 5px 5px"}});function I8(e){var t,n,r,o,i,a,s,l;const{item:u,applyValue:c,type:f,apiRef:p,focusElementRef:y,getOptionLabel:v,getOptionValue:b,placeholder:C,tabIndex:x,label:w,clearButton:S}=e,$=be(e,G9e),[T,k]=m.useState((t=u.value)!=null?t:""),M=ln(),I=ln(),N=dt(),E=(n=(r=N.slotProps)==null||(r=r.baseSelect)==null?void 0:r.native)!=null?n:!0;let A=null;if(u.field){const B=p.current.getColumn(u.field);Pc(B)&&(A=B)}const z=b||((o=A)==null?void 0:o.getOptionValue),L=v||((i=A)==null?void 0:i.getOptionLabel),O=m.useMemo(()=>{if(A)return typeof A.valueOptions=="function"?A.valueOptions({field:A.field}):A.valueOptions},[A]),D=m.useCallback(B=>{let j=B.target.value;j=kk(j,O,z),k(String(j)),c(P({},u,{value:j}))},[O,z,c,u]);if(m.useEffect(()=>{var B;let j;if(O!==void 0){if(j=kk(u.value,O,z),j!==u.value){c(P({},u,{value:j}));return}}else j=u.value;j=(B=j)!=null?B:"",k(String(j))},[u,O,c,z]),!Pc(A)||!Pc(A))return null;const H=w??p.current.getLocaleText("filterPanelInputLabel");return g.jsxs(K9e,{children:[g.jsxs(N.slots.baseFormControl,{children:[g.jsx(N.slots.baseInputLabel,P({},(a=N.slotProps)==null?void 0:a.baseInputLabel,{id:I,htmlFor:M,shrink:!0,variant:"standard",children:H})),g.jsx(N.slots.baseSelect,P({id:M,label:H,labelId:I,value:T,onChange:D,variant:"standard",type:f||"text",inputProps:{tabIndex:x,ref:y,placeholder:C??p.current.getLocaleText("filterPanelInputPlaceholder")},native:E},$,(s=N.slotProps)==null?void 0:s.baseSelect,{children:q9e({column:A,OptionComponent:N.slots.baseSelectOption,getOptionLabel:L,getOptionValue:z,isSelectNative:E,baseSelectOptionProps:(l=N.slotProps)==null?void 0:l.baseSelectOption})}))]}),S]})}const Y9e=["item","applyValue","apiRef","focusElementRef","isFilterActive","clearButton","tabIndex","label","InputLabelProps"],X9e=ke("div")({display:"flex",alignItems:"center",width:"100%","& button":{margin:"auto 0px 5px 5px"}});function Q9e(e){var t,n,r,o;const{item:i,applyValue:a,apiRef:s,focusElementRef:l,clearButton:u,tabIndex:c,label:f}=e,p=be(e,Y9e),[y,v]=m.useState(i.value||""),b=dt(),C=ln(),x=ln(),w=((t=b.slotProps)==null?void 0:t.baseSelect)||{},S=(n=w.native)!=null?n:!0,$=((r=b.slotProps)==null?void 0:r.baseSelectOption)||{},T=m.useCallback(M=>{const I=M.target.value;v(I),a(P({},i,{value:I}))},[a,i]);m.useEffect(()=>{v(i.value||"")},[i.value]);const k=f??s.current.getLocaleText("filterPanelInputLabel");return g.jsxs(X9e,{children:[g.jsxs(b.slots.baseFormControl,{fullWidth:!0,children:[g.jsx(b.slots.baseInputLabel,P({},(o=b.slotProps)==null?void 0:o.baseInputLabel,{id:C,shrink:!0,variant:"standard",children:k})),g.jsxs(b.slots.baseSelect,P({labelId:C,id:x,label:k,value:y,onChange:T,variant:"standard",native:S,displayEmpty:!0,inputProps:{ref:l,tabIndex:c}},p,w,{children:[g.jsx(b.slots.baseSelectOption,P({},$,{native:S,value:"",children:s.current.getLocaleText("filterValueAny")})),g.jsx(b.slots.baseSelectOption,P({},$,{native:S,value:"true",children:s.current.getLocaleText("filterValueTrue")})),g.jsx(b.slots.baseSelectOption,P({},$,{native:S,value:"false",children:s.current.getLocaleText("filterValueFalse")}))]}))]}),u]})}const Z9e=["logicOperators","columnsSort","filterFormProps","getColumnForNewFilter","children","disableAddFilterButton","disableRemoveAllButton"],R8=e=>({field:e.field,operator:e.filterOperators[0].value,id:Math.round(Math.random()*1e5)}),J9e=m.forwardRef(function(t,n){var r,o;const i=Wt(),a=dt(),s=it(i,qr),l=it(i,oV),u=m.useRef(null),c=m.useRef(null),{logicOperators:f=[zo.And,zo.Or],columnsSort:p,filterFormProps:y,getColumnForNewFilter:v,disableAddFilterButton:b=!1,disableRemoveAllButton:C=!1}=t,x=be(t,Z9e),w=i.current.upsertFilterItem,S=m.useCallback(A=>{i.current.setFilterLogicOperator(A)},[i]),$=m.useCallback(()=>{let A;if(v&&typeof v=="function"){const z=v({currentFilters:(s==null?void 0:s.items)||[],columns:l});if(z===null)return null;A=l.find(({field:L})=>L===z)}else A=l.find(z=>{var L;return(L=z.filterOperators)==null?void 0:L.length});return A?R8(A):null},[s==null?void 0:s.items,l,v]),T=m.useCallback(()=>{if(v===void 0||typeof v!="function")return $();const A=s.items.length?s.items:[$()].filter(Boolean),z=v({currentFilters:A,columns:l});if(z===null)return null;const L=l.find(({field:O})=>O===z);return L?R8(L):null},[s.items,l,v,$]),k=m.useMemo(()=>s.items.length?s.items:(c.current||(c.current=$()),c.current?[c.current]:[]),[s.items,$]),M=k.length>1,I=()=>{const A=T();A&&i.current.upsertFilterItems([...k,A])},N=m.useCallback(A=>{const z=k.length===1;i.current.deleteFilterItem(A),z&&i.current.hideFilterPanel()},[i,k.length]),E=()=>{k.length===1&&k[0].value===void 0&&(i.current.deleteFilterItem(k[0]),i.current.hideFilterPanel()),i.current.setFilterModel(P({},s,{items:[]}))};return m.useEffect(()=>{f.length>0&&s.logicOperator&&!f.includes(s.logicOperator)&&S(f[0])},[f,S,s.logicOperator]),m.useEffect(()=>{k.length>0&&u.current.focus()},[k.length]),g.jsxs(BV,P({ref:n},x,{children:[g.jsx(NV,{children:k.map((A,z)=>g.jsx(W9e,P({item:A,applyFilterChanges:w,deleteFilter:N,hasMultipleFilters:M,showMultiFilterOperators:z>0,multiFilterOperator:s.logicOperator,disableMultiFilterOperator:z!==1,applyMultiFilterOperatorChanges:S,focusElementRef:z===k.length-1?u:null,logicOperators:f,columnsSort:p},y),A.id==null?z:A.id))}),!a.disableMultipleColumnsFiltering&&!(b&&C)?g.jsxs(zV,{children:[b?g.jsx("span",{}):g.jsx(a.slots.baseButton,P({onClick:I,startIcon:g.jsx(a.slots.filterPanelAddIcon,{})},(r=a.slotProps)==null?void 0:r.baseButton,{children:i.current.getLocaleText("filterPanelAddFilter")})),C?null:g.jsx(a.slots.baseButton,P({onClick:E,startIcon:g.jsx(a.slots.filterPanelRemoveAllIcon,{})},(o=a.slotProps)==null?void 0:o.baseButton,{children:i.current.getLocaleText("filterPanelRemoveAll")}))]}):null]}))}),eLe=["item","applyValue","type","apiRef","focusElementRef","color","error","helperText","size","variant"];function HV(e){const{item:t,applyValue:n,type:r,apiRef:o,focusElementRef:i,color:a,error:s,helperText:l,size:u,variant:c}=e,f=be(e,eLe),p={color:a,error:s,helperText:l,size:u,variant:c},[y,v]=m.useState(t.value||[]),b=ln(),C=dt();m.useEffect(()=>{var w;const S=(w=t.value)!=null?w:[];v(S.map(String))},[t.value]);const x=m.useCallback((w,S)=>{v(S.map(String)),n(P({},t,{value:[...S]}))},[n,t]);return g.jsx(tN,P({multiple:!0,freeSolo:!0,options:[],filterOptions:(w,S)=>{const{inputValue:$}=S;return $==null||$===""?[]:[$]},id:b,value:y,onChange:x,renderTags:(w,S)=>w.map(($,T)=>g.jsx(C.slots.baseChip,P({variant:"outlined",size:"small",label:$},S({index:T})))),renderInput:w=>{var S;return g.jsx(C.slots.baseTextField,P({},w,{label:o.current.getLocaleText("filterPanelInputLabel"),placeholder:o.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:P({},w.InputLabelProps,{shrink:!0}),inputRef:i,type:r||"text"},p,(S=C.slotProps)==null?void 0:S.baseTextField))}},f))}const tLe=["item","applyValue","type","apiRef","focusElementRef","color","error","helperText","size","variant","getOptionLabel","getOptionValue"],nLe=Xj();function rLe(e){var t,n;const{item:r,applyValue:o,apiRef:i,focusElementRef:a,color:s,error:l,helperText:u,size:c,variant:f="standard",getOptionLabel:p,getOptionValue:y}=e,v=be(e,tLe),b={color:s,error:l,helperText:u,size:c,variant:f},C=ln(),x=dt();let w=null;if(r.field){const E=i.current.getColumn(r.field);Pc(E)&&(w=E)}const S=y||((t=w)==null?void 0:t.getOptionValue),$=p||((n=w)==null?void 0:n.getOptionLabel),T=m.useCallback((E,A)=>S(E)===S(A),[S]),k=m.useMemo(()=>{var E;return(E=w)!=null&&E.valueOptions?typeof w.valueOptions=="function"?w.valueOptions({field:w.field}):w.valueOptions:[]},[w]),M=m.useMemo(()=>k==null?void 0:k.map(S),[k,S]),I=m.useMemo(()=>Array.isArray(r.value)?k!==void 0?r.value.map(A=>M==null?void 0:M.findIndex(z=>z===A)).filter(A=>A>=0).map(A=>k[A]):r.value:[],[r.value,k,M]);m.useEffect(()=>{(!Array.isArray(r.value)||I.length!==r.value.length)&&o(P({},r,{value:I.map(S)}))},[r,I,o,S]);const N=m.useCallback((E,A)=>{o(P({},r,{value:A.map(S)}))},[o,r,S]);return g.jsx(tN,P({multiple:!0,options:k,isOptionEqualToValue:T,filterOptions:nLe,id:C,value:I,onChange:N,getOptionLabel:$,renderTags:(E,A)=>E.map((z,L)=>g.jsx(x.slots.baseChip,P({variant:"outlined",size:"small",label:$(z)},A({index:L})))),renderInput:E=>{var A;return g.jsx(x.slots.baseTextField,P({},E,{label:i.current.getLocaleText("filterPanelInputLabel"),placeholder:i.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:P({},E.InputLabelProps,{shrink:!0}),inputRef:a,type:"singleSelect"},b,(A=x.slotProps)==null?void 0:A.baseTextField))}},v))}const oLe=["onClick"],iLe=m.forwardRef(function(t,n){var r;const{onClick:o}=t,i=be(t,oLe),a=ln(),s=ln(),l=Wt(),u=dt(),c=it(l,Zc),f=y=>{c.open&&c.openedPanelValue===Ta.columns?l.current.hidePreferences():l.current.showPreferences(Ta.columns,s,a),o==null||o(y)};if(u.disableColumnSelector)return null;const p=c.open&&c.panelId===s;return g.jsx(u.slots.baseButton,P({ref:n,id:a,size:"small","aria-label":l.current.getLocaleText("toolbarColumnsLabel"),"aria-haspopup":"menu","aria-expanded":p,"aria-controls":p?s:void 0,startIcon:g.jsx(u.slots.columnSelectorIcon,{})},i,{onClick:f},(r=u.slotProps)==null?void 0:r.baseButton,{children:l.current.getLocaleText("toolbarColumns")}))}),aLe=["onClick"],sLe=m.forwardRef(function(t,n){var r;const{onClick:o}=t,i=be(t,aLe),a=Wt(),s=dt(),l=it(a,pV),u=ln(),c=ln(),[f,p]=m.useState(!1),y=m.useRef(null),v=on(n,y),b=[{icon:g.jsx(s.slots.densityCompactIcon,{}),label:a.current.getLocaleText("toolbarDensityCompact"),value:"compact"},{icon:g.jsx(s.slots.densityStandardIcon,{}),label:a.current.getLocaleText("toolbarDensityStandard"),value:"standard"},{icon:g.jsx(s.slots.densityComfortableIcon,{}),label:a.current.getLocaleText("toolbarDensityComfortable"),value:"comfortable"}],C=m.useMemo(()=>{switch(l){case"compact":return g.jsx(s.slots.densityCompactIcon,{});case"comfortable":return g.jsx(s.slots.densityComfortableIcon,{});default:return g.jsx(s.slots.densityStandardIcon,{})}},[l,s]),x=k=>{p(M=>!M),o==null||o(k)},w=()=>{p(!1)},S=k=>{a.current.setDensity(k),p(!1)},$=k=>{c2(k.key)&&k.preventDefault(),ET(k.key)&&p(!1)};if(s.disableDensitySelector)return null;const T=b.map((k,M)=>g.jsxs(Co,{onClick:()=>S(k.value),selected:k.value===l,children:[g.jsx(vc,{children:k.icon}),k.label]},M));return g.jsxs(m.Fragment,{children:[g.jsx(s.slots.baseButton,P({ref:v,size:"small",startIcon:C,"aria-label":a.current.getLocaleText("toolbarDensityLabel"),"aria-haspopup":"menu","aria-expanded":f,"aria-controls":f?c:void 0,id:u},i,{onClick:x},(r=s.slotProps)==null?void 0:r.baseButton,{children:a.current.getLocaleText("toolbarDensity")})),g.jsx(d2,{open:f,target:y.current,onClose:w,position:"bottom-start",children:g.jsx(i0,{id:c,className:le.menuList,"aria-labelledby":u,onKeyDown:$,autoFocusItem:f,children:T})})]})}),lLe=["componentsProps"],uLe=e=>{const{classes:t}=e;return qe({root:["toolbarFilterList"]},Jt,t)},cLe=ke("ul",{name:"MuiDataGrid",slot:"ToolbarFilterList",overridesResolver:(e,t)=>t.toolbarFilterList})(({theme:e})=>({margin:e.spacing(1,1,.5),padding:e.spacing(0,1)})),dLe=m.forwardRef(function(t,n){var r,o;const{componentsProps:i={}}=t,a=be(t,lLe),s=i.button||{},l=Wt(),u=dt(),c=it(l,dV),f=it(l,gd),p=it(l,Zc),y=uLe(u),v=ln(),b=ln(),C=m.useMemo(()=>{if(p.open)return l.current.getLocaleText("toolbarFiltersTooltipHide");if(c.length===0)return l.current.getLocaleText("toolbarFiltersTooltipShow");const S=T=>f[T.field].filterOperators.find(k=>k.value===T.operator).label||l.current.getLocaleText(`filterOperator${je(T.operator)}`).toString(),$=T=>{const{getValueAsString:k}=f[T.field].filterOperators.find(M=>M.value===T.operator);return k?k(T.value):T.value};return g.jsxs("div",{children:[l.current.getLocaleText("toolbarFiltersTooltipActive")(c.length),g.jsx(cLe,{className:y.root,ownerState:u,children:c.map((T,k)=>P({},f[T.field]&&g.jsx("li",{children:`${f[T.field].headerName||T.field} - ${S(T)} - ${T.value!=null?$(T):""}`},k)))})]})},[l,u,p.open,c,f,y]),x=S=>{var $;const{open:T,openedPanelValue:k}=p;T&&k===Ta.filters?l.current.hidePreferences():l.current.showPreferences(Ta.filters,b,v),($=s.onClick)==null||$.call(s,S)};if(u.disableColumnFilter)return null;const w=p.open&&p.panelId===b;return g.jsx(u.slots.baseTooltip,P({title:C,enterDelay:1e3},a,(r=u.slotProps)==null?void 0:r.baseTooltip,{children:g.jsx(u.slots.baseButton,P({ref:n,id:v,size:"small","aria-label":l.current.getLocaleText("toolbarFiltersLabel"),"aria-controls":w?b:void 0,"aria-expanded":w,"aria-haspopup":!0,startIcon:g.jsx(OM,{badgeContent:c.length,color:"primary",children:g.jsx(u.slots.openFilterButtonIcon,{})})},s,{onClick:x},(o=u.slotProps)==null?void 0:o.baseButton,{children:l.current.getLocaleText("toolbarFilters")}))}))}),fLe=["children","onClick"],pLe=m.forwardRef(function(t,n){var r;const{children:o,onClick:i}=t,a=be(t,fLe),s=Wt(),l=dt(),u=ln(),c=ln(),[f,p]=m.useState(!1),y=m.useRef(null),v=on(n,y),b=w=>{p(S=>!S),i==null||i(w)},C=()=>p(!1),x=w=>{c2(w.key)&&w.preventDefault(),ET(w.key)&&C()};return o==null?null:g.jsxs(m.Fragment,{children:[g.jsx(l.slots.baseButton,P({ref:v,size:"small",startIcon:g.jsx(l.slots.exportIcon,{}),"aria-expanded":f,"aria-label":s.current.getLocaleText("toolbarExportLabel"),"aria-haspopup":"menu","aria-controls":f?c:void 0,id:u},a,{onClick:b},(r=l.slotProps)==null?void 0:r.baseButton,{children:s.current.getLocaleText("toolbarExport")})),g.jsx(d2,{open:f,target:y.current,onClose:C,position:"bottom-start",children:g.jsx(i0,{id:c,className:le.menuList,"aria-labelledby":u,onKeyDown:x,autoFocusItem:f,children:m.Children.map(o,w=>m.isValidElement(w)?m.cloneElement(w,{hideMenu:C}):w)})})]})}),hLe=["hideMenu","options"],mLe=["hideMenu","options"],gLe=["csvOptions","printOptions","excelOptions"];function vLe(e){const t=Wt(),{hideMenu:n,options:r}=e,o=be(e,hLe);return g.jsx(Co,P({onClick:()=>{t.current.exportDataAsCsv(r),n==null||n()}},o,{children:t.current.getLocaleText("toolbarExportCSV")}))}function yLe(e){const t=Wt(),{hideMenu:n,options:r}=e,o=be(e,mLe);return g.jsx(Co,P({onClick:()=>{t.current.exportDataAsPrint(r),n==null||n()}},o,{children:t.current.getLocaleText("toolbarExportPrint")}))}const bLe=m.forwardRef(function(t,n){const{csvOptions:r={},printOptions:o={},excelOptions:i}=t,a=be(t,gLe),l=Wt().current.unstable_applyPipeProcessors("exportMenu",[],{excelOptions:i,csvOptions:r,printOptions:o}).sort((u,c)=>u.componentName>c.componentName?1:-1);return l.length===0?null:g.jsx(pLe,P({},a,{ref:n,children:l.map((u,c)=>m.cloneElement(u.component,{key:c}))}))}),xLe=["quickFilterParser","quickFilterFormatter","debounceMs"],wLe=ke(ru,{name:"MuiDataGrid",slot:"ToolbarQuickFilter",overridesResolver:(e,t)=>t.toolbarQuickFilter})(({theme:e})=>({width:"auto",paddingBottom:e.spacing(.5),"& input":{marginLeft:e.spacing(.5)},"& .MuiInput-underline:before":{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},"& input[type=search]::-ms-clear,\n& input[type=search]::-ms-reveal":{display:"none",width:0,height:0},'& input[type="search"]::-webkit-search-decoration,\n & input[type="search"]::-webkit-search-cancel-button,\n & input[type="search"]::-webkit-search-results-button,\n & input[type="search"]::-webkit-search-results-decoration':{display:"none"}})),CLe=e=>e.split(" ").filter(t=>t!==""),SLe=e=>e.join(" ");function $Le(e){var t,n;const r=Wt(),o=dt(),i=it(r,BAe),{quickFilterParser:a=CLe,quickFilterFormatter:s=SLe,debounceMs:l=o.filterDebounceMs}=e,u=be(e,xLe),[c,f]=m.useState(()=>s(i??[])),p=m.useRef(i);m.useEffect(()=>{nl(p.current,i)||(p.current=i,f(x=>nl(a(x),i)?x:s(i??[])))},[i,s,a]);const y=m.useCallback(x=>{const w=a(x);p.current=w,r.current.setQuickFilterValues(w)},[r,a]),v=m.useMemo(()=>wu(y,l),[y,l]),b=m.useCallback(x=>{const w=x.target.value;f(w),v(w)},[v]),C=m.useCallback(()=>{f(""),y("")},[y]);return g.jsx(wLe,P({as:o.slots.baseTextField,ownerState:o,variant:"standard",value:c,onChange:b,placeholder:r.current.getLocaleText("toolbarQuickFilterPlaceholder"),"aria-label":r.current.getLocaleText("toolbarQuickFilterLabel"),type:"search"},u,{InputProps:P({startAdornment:g.jsx(o.slots.quickFilterIcon,{fontSize:"small"}),endAdornment:g.jsx(o.slots.baseIconButton,P({"aria-label":r.current.getLocaleText("toolbarQuickFilterDeleteIconLabel"),size:"small",sx:{visibility:c?"visible":"hidden"},onClick:C},(t=o.slotProps)==null?void 0:t.baseIconButton,{children:g.jsx(o.slots.quickFilterClearIcon,{fontSize:"small"})}))},u.InputProps)},(n=o.slotProps)==null?void 0:n.baseTextField))}const _Le=["className","selectedRowCount"],kLe=e=>{const{classes:t}=e;return qe({root:["selectedRowCount"]},Jt,t)},PLe=Ar("div",{name:"MuiDataGrid",slot:"SelectedRowCount",overridesResolver:(e,t)=>t.selectedRowCount})(({theme:e})=>({alignItems:"center",display:"flex",margin:e.spacing(0,2),visibility:"hidden",width:0,height:0,[e.breakpoints.up("sm")]:{visibility:"visible",width:"auto",height:"auto"}})),MLe=m.forwardRef(function(t,n){const{className:r,selectedRowCount:o}=t,i=be(t,_Le),a=Wt(),s=dt(),l=kLe(s),u=a.current.getLocaleText("footerRowSelected")(o);return g.jsx(PLe,P({ref:n,className:ze(l.root,r),ownerState:s},i,{children:u}))}),TLe=m.forwardRef(function(t,n){var r,o;const i=Wt(),a=dt(),s=it(i,OAe),l=it(i,o8e),u=it(i,a2),c=!a.hideFooterSelectedRowCount&&l>0?g.jsx(MLe,{selectedRowCount:l}):g.jsx("div",{}),f=!a.hideFooterRowCount&&!a.pagination?g.jsx(a.slots.footerRowCount,P({},(r=a.slotProps)==null?void 0:r.footerRowCount,{rowCount:s,visibleRowCount:u})):null,p=a.pagination&&!a.hideFooterPagination&&a.slots.pagination&&g.jsx(a.slots.pagination,P({},(o=a.slotProps)==null?void 0:o.pagination));return g.jsxs(dFe,P({ref:n},t,{children:[c,f,p]}))});function ELe(){var e,t;const n=dt();return g.jsxs(m.Fragment,{children:[g.jsx(n.slots.preferencesPanel,P({},(e=n.slotProps)==null?void 0:e.preferencesPanel)),n.slots.toolbar&&g.jsx(n.slots.toolbar,P({},(t=n.slotProps)==null?void 0:t.toolbar))]})}const ILe=m.forwardRef(function(t,n){return g.jsx(IT,P({ref:n},t,{children:g.jsx(Fpe,{})}))}),RLe=m.forwardRef(function(t,n){const o=Wt().current.getLocaleText("noRowsLabel");return g.jsx(IT,P({ref:n},t,{children:o}))}),OLe=ke(J0e)(({theme:e})=>({[`& .${yc.selectLabel}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"block"}},[`& .${yc.input}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"inline-flex"}}})),ALe=m.forwardRef(function(t,n){const r=Wt(),o=dt(),i=it(r,zi),a=it(r,a2),s=m.useMemo(()=>{var y,v;return(y=(v=o.rowCount)!=null?v:a)!=null?y:0},[o.rowCount,a]),l=m.useMemo(()=>Math.floor(s/(i.pageSize||1)),[s,i.pageSize]),u=m.useCallback(y=>{const v=Number(y.target.value);r.current.setPageSize(v)},[r]),c=m.useCallback((y,v)=>{r.current.setPage(v)},[r]),p=(y=>{for(let v=0;v{const{classes:t}=e;return qe({root:["rowCount"]},Jt,t)},DLe=Ar("div",{name:"MuiDataGrid",slot:"RowCount",overridesResolver:(e,t)=>t.rowCount})(({theme:e})=>({alignItems:"center",display:"flex",margin:e.spacing(0,2)})),jLe=m.forwardRef(function(t,n){const{className:r,rowCount:o,visibleRowCount:i}=t,a=be(t,FLe),s=Wt(),l=dt(),u=LLe(l);if(o===0)return null;const c=i{let n,r;return t.pagination&&t.paginationMode==="client"?(r=OT(e),n=r8e(e)):(n=Tu(e),n.length===0?r=null:r={firstRowIndex:0,lastRowIndex:n.length-1}),{rows:n,range:r}},vd=(e,t)=>{const n=pb(e,t);return m.useMemo(()=>({rows:n.rows,range:n.range}),[n.rows,n.range])},Pk={current:null};function $0(e){return e.isInternal=!0,e}function hb(e){return e!==void 0&&e.isInternal===!0}function NLe(e){return $0((t,n)=>{const r=e(t,n);return r&&(o=>r(o.value,o.row,n,Pk.current))})}function _0(e){return e.map(t=>P({},t,{getApplyFilterFn:NLe(t.getApplyFilterFnV7),getApplyFilterFnV7:$0(t.getApplyFilterFnV7)}))}function WV(e){return $0((t,n,r)=>{const o=e(t,n,r);return o&&(i=>o(i.value,i.row,n,r))})}function VV(e){return{current:e.current.getPublicApi()}}const zLe=typeof window>"u"?globalThis:window,UV=zLe[atob("ZXZhbA==")];let Mk;try{Mk=UV("true")}catch{Mk=!1}const Tk=(e,t)=>{const n=P({},e);if(n.id==null&&(n.id=Math.round(Math.random()*1e5)),n.operator==null){const r=gd(t)[n.field];n.operator=r&&r.filterOperators[0].value}return n},BLe=$s(["MUI: The `filterModel` can only contain a single item when the `disableMultipleColumnsFiltering` prop is set to `true`.","If you are using the community version of the `DataGrid`, this prop is always `true`."],"error"),HLe=$s("MUI: The `id` field is required on `filterModel.items` when you use multiple filters.","error"),WLe=$s("MUI: The `operator` field is required on `filterModel.items`, one or more of your filtering item has no `operator` provided.","error"),GV=(e,t,n)=>{const r=e.items.length>1;let o;r&&t?(BLe(),o=[e.items[0]]):o=e.items;const i=r&&o.some(s=>s.id==null),a=o.some(s=>s.operator==null);return i&&HLe(),a&&WLe(),a||i?P({},e,{items:o.map(s=>Tk(s,n))}):e.items!==o?P({},e,{items:o}):e},O8=(e,t,n)=>r=>P({},r,{filterModel:GV(e,t,n)}),ql=e=>typeof e=="string"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e,qV=(e,t)=>{if(!e.field||!e.operator)return null;const n=t.current.getColumn(e.field);if(!n)return null;let r;if(n.valueParser){var o;const y=n.valueParser;r=Array.isArray(e.value)?(o=e.value)==null?void 0:o.map(v=>y(v)):y(e.value)}else r=e.value;const{ignoreDiacritics:i}=t.current.rootProps;i&&(r=ql(r));const a=P({},e,{value:r}),s=n.filterOperators;if(!(s!=null&&s.length))throw new Error(`MUI: No filter operators found for column '${n.field}'.`);const l=s.find(y=>y.value===a.operator);if(!l)throw new Error(`MUI: No filter operator found for column '${n.field}' and operator value '${a.operator}'.`);const u=!hb(l.getApplyFilterFn),c=!hb(l.getApplyFilterFnV7),f=VV(t);if(l.getApplyFilterFnV7&&!(u&&!c)){const y=l.getApplyFilterFnV7(a,n);return typeof y!="function"?null:{v7:!0,item:a,fn:v=>{let b=t.current.getRowValue(v,n);return i&&(b=ql(b)),y(b,v,n,f)}}}const p=l.getApplyFilterFn(a,n);return typeof p!="function"?null:{v7:!1,item:a,fn:y=>{const v=t.current.getCellParams(y,a.field);Pk.current=f,i&&(v.value=ql(v.value));const b=p(v);return Pk.current=null,b}}};let A8=1;const VLe=(e,t,n)=>{const{items:r}=e,o=r.map(l=>qV(l,t)).filter(l=>!!l);if(o.length===0)return null;if(!Mk||n)return(l,u)=>{const c={};for(let f=0;f`const shouldApply${u} = !shouldApplyFilter || shouldApplyFilter(${JSON.stringify(l.item.field)});`).join(` -`)} - - const result$$ = { - ${o.map((l,u)=>`${JSON.stringify(String(l.item.id))}: - !shouldApply${u} ? - false : - ${l.v7?`appliers[${u}].fn(row)`:`appliers[${u}].fn(getRowId(row))`}, - `).join(` -`)}}; - - return result$$; - })`,a=UV(i.replaceAll("$$",String(A8))),s=(l,u)=>a(t.current.getRowId,o,l,u);return A8+=1,s},ULe=(e,t)=>{var n,r,o;const i=(n=(r=e.quickFilterValues)==null?void 0:r.filter(Boolean))!=null?n:[];if(i.length===0)return null;const s=((o=e.quickFilterExcludeHiddenColumns)!=null?o:!1)?n2(t):tl(t),l=[],{ignoreDiacritics:u}=t.current.rootProps,c=VV(t);return s.forEach(f=>{const p=t.current.getColumn(f),y=p==null?void 0:p.getApplyQuickFilterFn,v=p==null?void 0:p.getApplyQuickFilterFnV7,b=!hb(y),C=!hb(v);v&&!(b&&!C)?l.push({column:p,appliers:i.map(x=>{const w=u?ql(x):x;return{v7:!0,fn:v(w,p,c)}})}):y&&l.push({column:p,appliers:i.map(x=>{const w=u?ql(x):x;return{v7:!1,fn:y(w,p,c)}})})}),function(p,y){const v={},b={};e:for(let x=0;x{const r=VLe(e,t,n),o=ULe(e,t);return function(a,s,l){var u,c;l.passingFilterItems=(u=r==null?void 0:r(a,s))!=null?u:null,l.passingQuickFilterValues=(c=o==null?void 0:o(a,s))!=null?c:null}},F8=e=>e!=null,qLe=(e,t,n)=>(e.cleanedFilterItems||(e.cleanedFilterItems=n.filter(r=>qV(r,t)!==null)),e.cleanedFilterItems),KLe=(e,t,n,r,o)=>{const i=qLe(o,r,n.items),a=e.filter(F8),s=t.filter(F8);if(a.length>0){var l;const c=p=>a.some(y=>y[p.id]);if(((l=n.logicOperator)!=null?l:Lg().logicOperator)===zo.And){if(!i.every(c))return!1}else if(!i.some(c))return!1}if(s.length>0&&n.quickFilterValues!=null){var u;const c=p=>s.some(y=>y[p]);if(((u=n.quickFilterLogicOperator)!=null?u:Lg().quickFilterLogicOperator)===zo.And){if(!n.quickFilterValues.every(c))return!1}else if(!n.quickFilterValues.some(c))return!1}return!0},L8=$0(e=>{if(!e)return null;const t=new RegExp(N1(e),"i");return(n,r,o,i)=>{let a=i.current.getRowFormattedValue(r,o);return i.current.ignoreDiacritics&&(a=ql(a)),a!=null?t.test(a.toString()):!1}}),YLe=(e=!1)=>_0([{value:"contains",getApplyFilterFnV7:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(N1(n),"i");return o=>o!=null?r.test(String(o)):!1},InputComponent:Ka},{value:"equals",getApplyFilterFnV7:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return o=>o!=null?r.compare(n,o.toString())===0:!1},InputComponent:Ka},{value:"startsWith",getApplyFilterFnV7:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(`^${N1(n)}.*$`,"i");return o=>o!=null?r.test(o.toString()):!1},InputComponent:Ka},{value:"endsWith",getApplyFilterFnV7:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(`.*${N1(n)}$`,"i");return o=>o!=null?r.test(o.toString()):!1},InputComponent:Ka},{value:"isEmpty",getApplyFilterFnV7:()=>t=>t===""||t==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFnV7:()=>t=>t!==""&&t!=null,requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFnV7:t=>{if(!Array.isArray(t.value)||t.value.length===0)return null;const n=e?t.value:t.value.map(o=>o.trim()),r=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return o=>o!=null?n.some(i=>r.compare(i,o.toString()||"")===0):!1},InputComponent:HV}]),Pa={width:100,minWidth:50,maxWidth:1/0,hideable:!0,sortable:!0,resizable:!0,filterable:!0,groupable:!0,pinnable:!0,aggregable:!0,editable:!1,sortComparator:f8e,type:"string",align:"left",filterOperators:YLe(),renderEditCell:F6e,getApplyQuickFilterFn:WV(L8),getApplyQuickFilterFnV7:L8},XLe=()=>_0([{value:"is",getApplyFilterFnV7:e=>{if(!e.value)return null;const t=e.value==="true";return n=>!!n===t},InputComponent:Q9e}]);function QLe({value:e,api:t}){return e?t.getLocaleText("booleanCellTrueLabel"):t.getLocaleText("booleanCellFalseLabel")}const ZLe=e=>{switch(e.toLowerCase().trim()){case"true":case"yes":case"1":return!0;case"false":case"no":case"0":case"null":case"undefined":return!1;default:return}},KV=P({},Pa,{type:"boolean",align:"center",headerAlign:"center",renderCell:C6e,renderEditCell:k6e,sortComparator:AV,valueFormatter:QLe,filterOperators:XLe(),getApplyQuickFilterFn:void 0,getApplyQuickFilterFnV7:void 0,aggregable:!1,pastedValueParser:e=>ZLe(e)}),Il="__check__",nh=P({},KV,{field:Il,type:"checkboxSelection",width:50,resizable:!1,sortable:!1,filterable:!1,aggregable:!1,disableColumnMenu:!0,disableReorder:!0,disableExport:!0,getApplyQuickFilterFn:void 0,getApplyQuickFilterFnV7:void 0,valueGetter:e=>fb(e.api.state,e.api.instanceId)[e.id]!==void 0,renderHeader:e=>g.jsx(k8e,P({},e)),renderCell:e=>g.jsx(S8e,P({},e))}),f2="actions",JLe=P({},Pa,{sortable:!1,filterable:!1,aggregable:!1,width:100,align:"center",headerAlign:"center",headerName:"",disableColumnMenu:!0,disableExport:!0,renderCell:J6e,getApplyQuickFilterFn:void 0,getApplyQuickFilterFnV7:void 0}),DT="__detail_panel_toggle__",bo=e=>e.editRows,eDe=["selected","hovered","rowId","row","index","style","position","rowHeight","className","visibleColumns","renderedColumns","containerWidth","firstColumnToRender","lastColumnToRender","isLastVisible","focusedCellColumnIndexNotInRange","isNotVisible","focusedCell","tabbableCell","onClick","onDoubleClick","onMouseEnter","onMouseLeave","onMouseOut","onMouseOver"],tDe=e=>{const{editable:t,editing:n,selected:r,isLastVisible:o,rowHeight:i,classes:a}=e;return qe({root:["row",r&&"selected",t&&"row--editable",n&&"row--editing",o&&"row--lastVisible",i==="auto"&&"row--dynamicHeight"]},Jt,a)};function nDe({width:e}){if(!e)return null;const t={width:e};return g.jsx("div",{className:`${le.cell} ${le.withBorderColor}`,style:t})}const rDe=m.forwardRef(function(t,n){const{selected:r,hovered:o,rowId:i,row:a,index:s,style:l,position:u,rowHeight:c,className:f,visibleColumns:p,renderedColumns:y,containerWidth:v,firstColumnToRender:b,isLastVisible:C=!1,focusedCellColumnIndexNotInRange:x,isNotVisible:w,focusedCell:S,onClick:$,onDoubleClick:T,onMouseEnter:k,onMouseLeave:M,onMouseOut:I,onMouseOver:N}=t,E=be(t,eDe),A=Wt(),z=m.useRef(null),L=dt(),O=vd(A,L),D=it(A,ST),H=it(A,Di),B=it(A,i2),j=it(A,C0),W=it(A,bo),U=on(z,n),Z=s+j+2,Y={selected:r,hovered:o,isLastVisible:C,classes:L.classes,editing:A.current.getRowMode(i)===Bn.Edit,editable:L.editMode===gs.Row,rowHeight:c},se=tDe(Y);m.useLayoutEffect(()=>{c==="auto"&&z.current&&typeof ResizeObserver>"u"&&A.current.unstable_storeRowHeightMeasurement(i,z.current.clientHeight,u)},[A,c,i,u]),m.useLayoutEffect(()=>{if(O.range){const De=A.current.getRowIndexRelativeToVisibleRows(i);De!=null&&A.current.unstable_setLastMeasuredRowIndex(De)}const ee=z.current;if(!ee||c!=="auto"||typeof ResizeObserver>"u")return;const ye=new ResizeObserver(De=>{const[Ae]=De,Ee=Ae.borderBoxSize&&Ae.borderBoxSize.length>0?Ae.borderBoxSize[0].blockSize:Ae.contentRect.height;A.current.unstable_storeRowHeightMeasurement(i,Ee,u)});return ye.observe(ee),()=>ye.disconnect()},[A,O.range,s,c,i,u]);const Q=m.useCallback((ee,pe)=>ye=>{ye.target.nodeType===1&&!ye.currentTarget.contains(ye.target)||A.current.getRow(i)&&(A.current.publishEvent(ee,A.current.getRowParams(i),ye),pe&&pe(ye))},[A,i]),ne=m.useCallback(ee=>{const pe=a6e(ee.target,le.cell),ye=pe==null?void 0:pe.getAttribute("data-field");if(ye){if(ye===nh.field||ye===DT||ye==="__reorder__"||A.current.getCellMode(i,ye)===Pn.Edit)return;const De=A.current.getColumn(ye);if((De==null?void 0:De.type)===f2)return}Q("rowClick",$)(ee)},[A,$,Q,i]),{slots:re,slotProps:ge,disableColumnReorder:xe}=L,fe=re.cell===_k?_k:g6e,Se=L.rowReordering,de=(ee,pe)=>{var ye,De;const Ae=xe&&ee.disableReorder||!Se&&!!H.length&&B>1&&Object.keys(W).length>0,Ee=(ye=(De=W[i])==null?void 0:De[ee.field])!=null?ye:null;let Ce=!1;return x!==void 0&&p[x].field===ee.field&&(Ce=!0),g.jsx(fe,P({column:ee,width:pe.width,rowId:i,height:c,showRightBorder:pe.showRightBorder,align:ee.align||"left",colIndex:pe.indexRelativeToAllColumns,colSpan:pe.colSpan,disableDragEvents:Ae,editCellState:Ee,isNotVisible:Ce},ge==null?void 0:ge.cell),ee.field)},ie=it(A,()=>P({},A.current.unstable_getRowInternalSizes(i)),CT);let Pe=c;if(Pe==="auto"&&ie){let ee=0;const pe=Object.entries(ie).reduce((ye,[De,Ae])=>/^base[A-Z]/.test(De)?(ee+=1,Ae>ye?Ae:ye):ye,0);pe>0&&ee>1&&(Pe=pe)}const $e=m.useMemo(()=>{if(w)return{opacity:0,width:0,height:0};const ee=P({},l,{maxHeight:c==="auto"?"none":c,minHeight:Pe});if(ie!=null&&ie.spacingTop){const pe=L.rowSpacingType==="border"?"borderTopWidth":"marginTop";ee[pe]=ie.spacingTop}if(ie!=null&&ie.spacingBottom){const pe=L.rowSpacingType==="border"?"borderBottomWidth":"marginBottom";let ye=ee[pe];typeof ye!="number"&&(ye=parseInt(ye||"0",10)),ye+=ie.spacingBottom,ee[pe]=ye}return ee},[w,c,l,Pe,ie,L.rowSpacingType]),me=A.current.unstable_applyPipeProcessors("rowClassName",[],i);if(typeof L.getRowClassName=="function"){var ue;const ee=s-(((ue=O.range)==null?void 0:ue.firstRowIndex)||0),pe=P({},A.current.getRowParams(i),{isFirstVisible:ee===0,isLastVisible:ee===O.rows.length-1,indexRelativeToCurrentPage:ee});me.push(L.getRowClassName(pe))}const ce=XFe(1e4,20,80),Te=A.current.getRowNode(i);if(!Te)return null;const Le=Te.type,Re=[];for(let ee=0;ee0&&g.jsx(nDe,{width:Oe})]}))}),oDe=u2(rDe);function iDe({privateApiRef:e,props:t,children:n}){const r=m.useRef(e.current.getPublicApi());return g.jsx(eV.Provider,{value:t,children:g.jsx(tV.Provider,{value:e,children:g.jsx(JW.Provider,{value:r,children:n})})})}const aDe=KFe()&&window.localStorage.getItem("DEBUG")!=null,lm=()=>{},sDe={debug:lm,info:lm,warn:lm,error:lm},D8=["debug","info","warn","error"];function j8(e,t,n=console){const r=D8.indexOf(t);if(r===-1)throw new Error(`MUI: Log level ${t} not recognized.`);return D8.reduce((i,a,s)=>(s>=r?i[a]=(...l)=>{const[u,...c]=l;n[a](`MUI: ${e} - ${u}`,...c)}:i[a]=lm,i),{})}const lDe=(e,t)=>{const n=m.useCallback(r=>aDe?j8(r,"debug",t.logger):t.logLevel?j8(r,t.logLevel.toString(),t.logger):sDe,[t.logLevel,t.logger]);Yt(e,{getLogger:n},"private")};class jT{static create(t){return new jT(t)}constructor(t){this.value=void 0,this.listeners=void 0,this.subscribe=n=>(this.listeners.add(n),()=>{this.listeners.delete(n)}),this.getSnapshot=()=>this.value,this.update=n=>{this.value=n,this.listeners.forEach(r=>r(n))},this.value=t,this.listeners=new Set}}class uDe{constructor(){this.maxListeners=20,this.warnOnce=!1,this.events={}}on(t,n,r={}){let o=this.events[t];o||(o={highPriority:new Map,regular:new Map},this.events[t]=o),r.isFirst?o.highPriority.set(n,!0):o.regular.set(n,!0)}removeListener(t,n){this.events[t]&&(this.events[t].regular.delete(n),this.events[t].highPriority.delete(n))}removeAllListeners(){this.events={}}emit(t,...n){const r=this.events[t];if(!r)return;const o=Array.from(r.highPriority.keys()),i=Array.from(r.regular.keys());for(let a=o.length-1;a>=0;a-=1){const s=o[a];r.highPriority.has(s)&&s.apply(this,n)}for(let a=0;ae.isPropagationStopped!==void 0;let N8=0;function dDe(e){var t;const n=(t=e.current)==null?void 0:t[YV];if(n)return n;const r={},o={state:r,store:jT.create(r),instanceId:{id:N8}};return N8+=1,o.getPublicApi=()=>e.current,o.register=(i,a)=>{Object.keys(a).forEach(s=>{const l=a[s],u=o[s];if((u==null?void 0:u.spying)===!0?u.target=l:o[s]=l,i==="public"){const c=e.current,f=c[s];(f==null?void 0:f.spying)===!0?f.target=l:c[s]=l}})},o.register("private",{caches:{},eventManager:new uDe}),o}function fDe(e){return{get state(){return e.current.state},get store(){return e.current.store},get instanceId(){return e.current.instanceId},[YV]:e.current}}function pDe(e,t){const n=m.useRef(),r=m.useRef();r.current||(r.current=dDe(n)),n.current||(n.current=fDe(r));const o=m.useCallback((...a)=>{const[s,l,u={}]=a;if(u.defaultMuiPrevented=!1,cDe(u)&&u.isPropagationStopped())return;const c=t.signature===cs.DataGridPro?{api:r.current.getPublicApi()}:{};r.current.eventManager.emit(s,l,u,c)},[r,t.signature]),i=m.useCallback((a,s,l)=>{r.current.eventManager.on(a,s,l);const u=r.current;return()=>{u.eventManager.removeListener(a,s)}},[r]);return Yt(r,{subscribeEvent:i,publishEvent:o},"public"),m.useImperativeHandle(e,()=>n.current,[n]),m.useEffect(()=>{const a=r.current;return()=>{a.publishEvent("unmount")}},[r]),r}const hDe=(e,t)=>{const n=m.useCallback(r=>{if(t.localeText[r]==null)throw new Error(`Missing translation for key ${r}.`);return t.localeText[r]},[t.localeText]);e.current.register("public",{getLocaleText:n})};function jg(e){"@babel/helpers - typeof";return jg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jg(e)}function mDe(e,t){if(jg(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(jg(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ng(e){var t=mDe(e,"string");return jg(t)==="symbol"?t:String(t)}const gDe=e=>{const t=m.useRef({}),n=m.useRef(!1),r=m.useCallback(c=>{n.current||!c||(n.current=!0,Object.values(c.appliers).forEach(f=>{f()}),n.current=!1)},[]),o=m.useCallback((c,f,p)=>{t.current[c]||(t.current[c]={processors:new Map,appliers:{}});const y=t.current[c];return y.processors.get(f)!==p&&(y.processors.set(f,p),r(y)),()=>{t.current[c].processors.set(f,null)}},[r]),i=m.useCallback((c,f,p)=>(t.current[c]||(t.current[c]={processors:new Map,appliers:{}}),t.current[c].appliers[f]=p,()=>{const y=t.current[c].appliers,v=be(y,[f].map(Ng));t.current[c].appliers=v}),[]),a=m.useCallback(c=>{const f=t.current[c];r(f)},[r]),s=m.useCallback((...c)=>{const[f,p,y]=c;return t.current[f]?Array.from(t.current[f].processors.values()).reduce((b,C)=>C?C(b,y):b,p):p},[]),l={registerPipeProcessor:o,registerPipeApplier:i,requestPipeProcessorsApplication:a},u={unstable_applyPipeProcessors:s};Yt(e,l,"private"),Yt(e,u,"public")},Ir=(e,t,n)=>{const r=m.useRef(),o=m.useRef(`mui-${Math.round(Math.random()*1e9)}`),i=m.useCallback(()=>{r.current=e.current.registerPipeProcessor(t,o.current,n)},[e,n,t]);S0(()=>{i()});const a=m.useRef(!0);m.useEffect(()=>(a.current?a.current=!1:i(),()=>{r.current&&(r.current(),r.current=null)}),[i])},NT=(e,t,n)=>{const r=m.useRef(),o=m.useRef(`mui-${Math.round(Math.random()*1e9)}`),i=m.useCallback(()=>{r.current=e.current.registerPipeApplier(t,o.current,n)},[e,n,t]);S0(()=>{i()});const a=m.useRef(!0);m.useEffect(()=>(a.current?a.current=!1:i(),()=>{r.current&&(r.current(),r.current=null)}),[i])},mb=(e,t,n,r)=>{const o=m.useCallback(()=>{e.current.registerStrategyProcessor(t,n,r)},[e,r,n,t]);S0(()=>{o()});const i=m.useRef(!0);m.useEffect(()=>{i.current?i.current=!1:o()},[o])},Jc="none",z8={rowTreeCreation:"rowTree",filtering:"rowTree",sorting:"rowTree",visibleRowsLookupCreation:"rowTree"},vDe=e=>{const t=m.useRef(new Map),n=m.useRef({}),r=m.useCallback((l,u,c)=>{const f=()=>{const v=n.current[u],b=be(v,[l].map(Ng));n.current[u]=b};n.current[u]||(n.current[u]={});const p=n.current[u],y=p[l];return p[l]=c,!y||y===c||l===e.current.getActiveStrategy(z8[u])&&e.current.publishEvent("activeStrategyProcessorChange",u),f},[e]),o=m.useCallback((l,u)=>{const c=e.current.getActiveStrategy(z8[l]);if(c==null)throw new Error("Can't apply a strategy processor before defining an active strategy");const f=n.current[l];if(!f||!f[c])throw new Error(`No processor found for processor "${l}" on strategy "${c}"`);const p=f[c];return p(u)},[e]),i=m.useCallback(l=>{var u;const f=Array.from(t.current.entries()).find(([,p])=>p.group!==l?!1:p.isAvailable());return(u=f==null?void 0:f[0])!=null?u:Jc},[]),a=m.useCallback((l,u,c)=>{t.current.set(u,{group:l,isAvailable:c}),e.current.publishEvent("strategyAvailabilityChange")},[e]);Yt(e,{registerStrategyProcessor:r,applyStrategyProcessor:o,getActiveStrategy:i,setStrategyAvailability:a},"private")},yDe=(e,t)=>{const n=m.useRef({}),[,r]=m.useState(),o=m.useCallback(c=>{n.current[c.stateId]=c},[]),i=m.useCallback((c,f)=>{let p;if(kV(c)?p=c(e.current.state):p=c,e.current.state===p)return!1;let y=!1;const v=[];if(Object.keys(n.current).forEach(b=>{const C=n.current[b],x=C.stateSelector(e.current.state,e.current.instanceId),w=C.stateSelector(p,e.current.instanceId);w!==x&&(v.push({stateId:C.stateId,hasPropChanged:w!==C.propModel}),C.propModel!==void 0&&w!==C.propModel&&(y=!0))}),v.length>1)throw new Error(`You're not allowed to update several sub-state in one transaction. You already updated ${v[0].stateId}, therefore, you're not allowed to update ${v.map(b=>b.stateId).join(", ")} in the same transaction.`);if(y||(e.current.state=p,e.current.publishEvent&&e.current.publishEvent("stateChange",p),e.current.store.update(p)),v.length===1){const{stateId:b,hasPropChanged:C}=v[0],x=n.current[b],w=x.stateSelector(p,e.current.instanceId);if(x.propOnChange&&C){const S=t.signature===cs.DataGridPro?{api:e.current,reason:f}:{reason:f};x.propOnChange(w,S)}y||e.current.publishEvent(x.changeEvent,w,{reason:f})}return!y},[e,t.signature]),a=m.useCallback((c,f,p)=>e.current.setState(y=>P({},y,{[c]:f(y[c])}),p),[e]),s=m.useCallback(()=>r(()=>e.current.state),[e]),l={setState:i,forceUpdate:s},u={updateControlState:a,registerControlState:o};Yt(e,l,"public"),Yt(e,u,"private")},bDe=(e,t)=>{const n=pDe(e,t);return lDe(n,t),yDe(n,t),gDe(n),vDe(n),hDe(n,t),n.current.register("private",{rootProps:t}),n},Ao=(e,t,n)=>{const r=m.useRef(!1);r.current||(t.current.state=e(t.current.state,n,t),r.current=!0)},xDe=/(\d+)-(\d+)-(\d+)/,wDe=/(\d+)-(\d+)-(\d+)T(\d+):(\d+)/;function tf(e,t,n,r){if(!e.value)return null;const[o,i,a,s,l]=e.value.match(n?wDe:xDe).slice(1).map(Number),u=new Date(o,i-1,a,s||0,l||0).getTime();return c=>{if(!c)return!1;if(r)return t(c.getTime(),u);const p=new Date(c).setHours(n?c.getHours():0,n?c.getMinutes():0,0,0);return t(p,u)}}const XV=e=>_0([{value:"is",getApplyFilterFnV7:t=>tf(t,(n,r)=>n===r,e),InputComponent:ef,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"not",getApplyFilterFnV7:t=>tf(t,(n,r)=>n!==r,e),InputComponent:ef,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"after",getApplyFilterFnV7:t=>tf(t,(n,r)=>n>r,e),InputComponent:ef,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrAfter",getApplyFilterFnV7:t=>tf(t,(n,r)=>n>=r,e),InputComponent:ef,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"before",getApplyFilterFnV7:t=>tf(t,(n,r)=>ntf(t,(n,r)=>n<=r,e),InputComponent:ef,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"isEmpty",getApplyFilterFnV7:()=>t=>t==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFnV7:()=>t=>t!=null,requiresFilterValue:!1}]);function QV({value:e,columnType:t,rowId:n,field:r}){if(!(e instanceof Date))throw new Error([`MUI: \`${t}\` column type only accepts \`Date\` objects as values.`,"Use `valueGetter` to transform the value into a `Date` object.",`Row ID: ${n}, field: "${r}".`].join(` -`))}function CDe({value:e,field:t,id:n}){return e?(QV({value:e,columnType:"date",rowId:n,field:t}),e.toLocaleDateString()):""}function SDe({value:e,field:t,id:n}){return e?(QV({value:e,columnType:"dateTime",rowId:n,field:t}),e.toLocaleString()):""}const $De=P({},Pa,{type:"date",sortComparator:FV,valueFormatter:CDe,filterOperators:XV(),renderEditCell:xV,pastedValueParser:e=>new Date(e)}),_De=P({},Pa,{type:"dateTime",sortComparator:FV,valueFormatter:SDe,filterOperators:XV(!0),renderEditCell:xV,pastedValueParser:e=>new Date(e)}),Fl=e=>e==null?null:Number(e),B8=$0(e=>e==null||Number.isNaN(e)||e===""?null:t=>Fl(t)===Fl(e)),kDe=()=>_0([{value:"=",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>Fl(t)===e.value,InputComponent:Ka,InputComponentProps:{type:"number"}},{value:"!=",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>Fl(t)!==e.value,InputComponent:Ka,InputComponentProps:{type:"number"}},{value:">",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:Fl(t)>e.value,InputComponent:Ka,InputComponentProps:{type:"number"}},{value:">=",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:Fl(t)>=e.value,InputComponent:Ka,InputComponentProps:{type:"number"}},{value:"<",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:Fl(t)e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:Fl(t)<=e.value,InputComponent:Ka,InputComponentProps:{type:"number"}},{value:"isEmpty",getApplyFilterFnV7:()=>e=>e==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFnV7:()=>e=>e!=null,requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFnV7:e=>!Array.isArray(e.value)||e.value.length===0?null:t=>t!=null&&e.value.includes(Number(t)),InputComponent:HV,InputComponentProps:{type:"number"}}]),PDe=P({},Pa,{type:"number",align:"right",headerAlign:"right",sortComparator:AV,valueParser:e=>e===""?null:Number(e),valueFormatter:({value:e})=>qFe(e)?e.toLocaleString():e||"",filterOperators:kDe(),getApplyQuickFilterFn:WV(B8),getApplyQuickFilterFnV7:B8}),nf=e=>e==null||!RT(e)?e:e.value,MDe=()=>_0([{value:"is",getApplyFilterFnV7:e=>e.value==null||e.value===""?null:t=>nf(t)===nf(e.value),InputComponent:I8},{value:"not",getApplyFilterFnV7:e=>e.value==null||e.value===""?null:t=>nf(t)!==nf(e.value),InputComponent:I8},{value:"isAnyOf",getApplyFilterFnV7:e=>{if(!Array.isArray(e.value)||e.value.length===0)return null;const t=e.value.map(nf);return n=>t.includes(nf(n))},InputComponent:rLe}]),TDe=e=>typeof e[0]=="object",EDe=e=>RT(e)?e.value:e,IDe=e=>RT(e)?e.label:String(e),RDe=P({},Pa,{type:"singleSelect",getOptionLabel:IDe,getOptionValue:EDe,valueFormatter(e){const{id:t,field:n,value:r,api:o}=e,i=e.api.getColumn(n);if(!Pc(i))return"";let a;if(typeof i.valueOptions=="function"?a=i.valueOptions({id:t,row:t?o.getRow(t):null,field:n}):a=i.valueOptions,r==null)return"";if(!a)return r;if(!TDe(a))return i.getOptionLabel(r);const s=a.find(l=>i.getOptionValue(l)===r);return s?i.getOptionLabel(s):""},renderEditCell:U6e,filterOperators:MDe(),pastedValueParser:(e,t)=>{const n=t.colDef,r=n.valueOptions,o=typeof r=="function"?r({field:n.field}):r||[],i=n.getOptionValue;if(o.find(s=>i(s)===e))return e}}),ZV="__default__",ODe=()=>({string:Pa,number:PDe,date:$De,dateTime:_De,boolean:KV,singleSelect:RDe,[f2]:JLe,[ZV]:Pa});function Ek(e,t){return typeof e=="string"&&[t,` -`,"\r",'"'].some(n=>e.includes(n))?`"${e.replace(/"/g,'""')}"`:e}const JV=(e,t)=>{const{delimiterCharacter:n,ignoreValueFormatter:r}=t;let o;if(r){var i;const s=e.colDef.type;if(s==="number")o=String(e.value);else if(s==="date"||s==="dateTime"){var a;o=(a=e.value)==null?void 0:a.toISOString()}else typeof((i=e.value)==null?void 0:i.toString)=="function"?o=e.value.toString():o=e.value}else o=e.formattedValue;return Ek(o,n)};$s(["MUI: When the value of a field is an object or a `renderCell` is provided, the CSV export might not display the value correctly.","You can provide a `valueFormatter` with a string representation to be used."]);class Ik{constructor(t){this.options=void 0,this.rowString="",this.isEmpty=!0,this.options=t}addValue(t){this.isEmpty||(this.rowString+=this.options.delimiterCharacter),t==null?this.rowString+="":typeof this.options.sanitizeCellValue=="function"?this.rowString+=this.options.sanitizeCellValue(t,this.options.delimiterCharacter):this.rowString+=t,this.isEmpty=!1}getRowString(){return this.rowString}}const ADe=({id:e,columns:t,getCellParams:n,delimiterCharacter:r,ignoreValueFormatter:o})=>{const i=new Ik({delimiterCharacter:r});return t.forEach(a=>{const s=n(e,a.field);i.addValue(JV(s,{delimiterCharacter:r,ignoreValueFormatter:o}))}),i.getRowString()};function FDe(e){const{columns:t,rowIds:n,delimiterCharacter:r,includeHeaders:o,includeColumnGroupsHeaders:i,ignoreValueFormatter:a,apiRef:s}=e,l=n.reduce((y,v)=>`${y}${ADe({id:v,columns:t,getCellParams:s.current.getCellParams,delimiterCharacter:r,ignoreValueFormatter:a})}\r -`,"").trim();if(!o)return l;const u=t.filter(y=>y.field!==nh.field),c=[];if(i){const y=s.current.unstable_getAllGroupDetails();let v=0;const b=u.reduce((C,x)=>{const w=s.current.unstable_getColumnGroupPath(x.field);return C[x.field]=w,v=Math.max(v,w.length),C},{});for(let C=0;C{const S=(b[w.field]||[])[C],$=y[S];x.addValue($?$.headerName||$.groupId:"")})}}const f=new Ik({delimiterCharacter:r,sanitizeCellValue:Ek});return u.forEach(y=>{f.addValue(y.headerName||y.field)}),c.push(f),`${`${c.map(y=>y.getRowString()).join(`\r -`)}\r -`}${l}`.trim()}function H8(e){const t=document.createElement("span");t.style.whiteSpace="pre",t.style.userSelect="all",t.style.opacity="0px",t.textContent=e,document.body.appendChild(t);const n=document.createRange();n.selectNode(t);const r=window.getSelection();r.removeAllRanges(),r.addRange(n);try{document.execCommand("copy")}finally{document.body.removeChild(t)}}function LDe(e){navigator.clipboard?navigator.clipboard.writeText(e).catch(()=>{H8(e)}):H8(e)}function DDe(e){var t;return!!((t=window.getSelection())!=null&&t.toString()||e&&(e.selectionEnd||0)-(e.selectionStart||0)>0)}const jDe=(e,t)=>{const n=t.unstable_ignoreValueFormatterDuringExport,r=(typeof n=="object"?n==null?void 0:n.clipboardExport:n)||!1,o=t.clipboardCopyCellDelimiter,i=m.useCallback(a=>{if(!((a.ctrlKey||a.metaKey)&&a.key==="c")||DDe(a.target))return;let s="";if(e.current.getSelectedRows().size>0)s=e.current.getDataAsCsv({includeHeaders:!1,delimiter:o});else{const u=si(e);if(u){const c=e.current.getCellParams(u.id,u.field);s=JV(c,{delimiterCharacter:o,ignoreValueFormatter:r})}}s=e.current.unstable_applyPipeProcessors("clipboardCopy",s),s&&(LDe(s),e.current.publishEvent("clipboardCopy",s))},[e,r,o]);QFe(e,e.current.rootElementRef,"keydown",i),Yn(e,"clipboardCopy",t.onClipboardCopy)},NDe=e=>P({},e,{columnMenu:{open:!1}}),zDe=e=>{const t=ho(e,"useGridColumnMenu"),n=m.useCallback(a=>{e.current.setState(l=>l.columnMenu.open&&l.columnMenu.field===a?l:(t.debug("Opening Column Menu"),P({},l,{columnMenu:{open:!0,field:a}})))&&(e.current.hidePreferences(),e.current.forceUpdate())},[e,t]),r=m.useCallback(()=>{const a=$k(e.current.state);if(a.field){const l=gd(e),u=$a(e),c=tl(e);let f=a.field;if(l[f]||(f=c[0]),u[f]===!1){const p=c.filter(v=>v===f?!0:u[v]!==!1),y=p.indexOf(f);f=p[y+1]||p[y-1]}e.current.setColumnHeaderFocus(f)}e.current.setState(l=>!l.columnMenu.open&&l.columnMenu.field===void 0?l:(t.debug("Hiding Column Menu"),P({},l,{columnMenu:P({},l.columnMenu,{open:!1,field:void 0})})))&&e.current.forceUpdate()},[e,t]),o=m.useCallback(a=>{t.debug("Toggle Column Menu");const s=$k(e.current.state);!s.open||s.field!==a?n(a):r()},[e,t,n,r]);Yt(e,{showColumnMenu:n,hideColumnMenu:r,toggleColumnMenu:o},"public"),vt(e,"columnResizeStart",r),vt(e,"virtualScrollerWheel",e.current.hideColumnMenu),vt(e,"virtualScrollerTouchMove",e.current.hideColumnMenu)},eU=["maxWidth","minWidth","width","flex"];function BDe({initialFreeSpace:e,totalFlexUnits:t,flexColumns:n}){const r=new Set(n.map(a=>a.field)),o={all:{},frozenFields:[],freeze:a=>{const s=o.all[a];s&&s.frozen!==!0&&(o.all[a].frozen=!0,o.frozenFields.push(a))}};function i(){if(o.frozenFields.length===r.size)return;const a={min:{},max:{}};let s=e,l=t,u=0;o.frozenFields.forEach(c=>{s-=o.all[c].computedWidth,l-=o.all[c].flex});for(let c=0;cf.maxWidth&&(u+=f.maxWidth-y,y=f.maxWidth,a.max[f.field]=!0),o.all[f.field]={frozen:!1,computedWidth:y,flex:f.flex}}u<0?Object.keys(a.max).forEach(c=>{o.freeze(c)}):u>0?Object.keys(a.min).forEach(c=>{o.freeze(c)}):n.forEach(({field:c})=>{o.freeze(c)}),i()}return i(),o.all}const Rk=(e,t)=>{const n={};let r=0,o=0;const i=[];e.orderedFields.forEach(s=>{const l=P({},e.lookup[s]);if(e.columnVisibilityModel[s]===!1)l.computedWidth=0;else{let u;l.flex&&l.flex>0?(r+=l.flex,u=0,i.push(l)):u=Mp(l.width||Pa.width,l.minWidth||Pa.minWidth,l.maxWidth||Pa.maxWidth),o+=u,l.computedWidth=u}n[s]=l});const a=Math.max(t-o,0);if(r>0&&t>0){const s=BDe({initialFreeSpace:a,totalFlexUnits:r,flexColumns:i});Object.keys(s).forEach(l=>{n[l].computedWidth=s[l].computedWidth})}return P({},e,{lookup:n})},HDe=(e,t)=>{if(!t)return e;const{orderedFields:n=[],dimensions:r={}}=t,o=Object.keys(r);if(o.length===0&&n.length===0)return e;const i={},a=[];for(let c=0;c!i[c])],l=P({},e.lookup);for(let c=0;c{p[y]=v===-1?1/0:v}),l[f]=p}return P({},e,{orderedFields:s,lookup:l})};function W8(e,t){let n=e[ZV];return t&&e[t]&&(n=e[t]),n}const df=({apiRef:e,columnsToUpsert:t,initialState:n,columnTypes:r,columnVisibilityModel:o=$a(e),keepOnlyColumnsToUpsert:i=!1})=>{var a,s,l;const u=!e.current.state.columns;let c;if(u)c={orderedFields:[],lookup:{},columnVisibilityModel:o};else{const v=kc(e.current.state);c={orderedFields:i?[]:[...v.orderedFields],lookup:P({},v.lookup),columnVisibilityModel:o}}let f={};i&&!u&&(f=Object.keys(c.lookup).reduce((v,b)=>P({},v,{[b]:!1}),{})),t.forEach(v=>{const{field:b}=v;f[b]=!0;let C=c.lookup[b];C==null?(C=P({},W8(r,v.type),{field:b,hasBeenResized:!1}),c.orderedFields.push(b)):i&&c.orderedFields.push(b),C&&C.type!==v.type&&(C=P({},W8(r,v.type),{field:b}));let x=C.hasBeenResized;eU.forEach(w=>{v[w]!==void 0&&(x=!0,v[w]===-1&&(v[w]=1/0))}),c.lookup[b]=P({},C,v,{hasBeenResized:x})}),i&&!u&&Object.keys(c.lookup).forEach(v=>{f[v]||delete c.lookup[v]});const p=e.current.unstable_applyPipeProcessors("hydrateColumns",c),y=HDe(p,n);return Rk(y,(a=(s=(l=e.current).getRootDimensions)==null||(s=s.call(l))==null?void 0:s.viewportInnerSize.width)!=null?a:0)},V8=e=>t=>P({},t,{columns:e});function Ok({firstColumnToRender:e,apiRef:t,firstRowToRender:n,lastRowToRender:r,visibleRows:o}){let i=e;for(let a=n;a{var r,o,i,a;const s=df({apiRef:n,columnTypes:tU,columnsToUpsert:t.columns,initialState:(r=t.initialState)==null?void 0:r.columns,columnVisibilityModel:(o=(i=t.columnVisibilityModel)!=null?i:(a=t.initialState)==null||(a=a.columns)==null?void 0:a.columnVisibilityModel)!=null?o:{},keepOnlyColumnsToUpsert:!0});return P({},e,{columns:s})};function UDe(e,t){var n,r;const o=ho(e,"useGridColumns"),i=tU,a=m.useRef(t.columns),s=m.useRef(i);e.current.registerControlState({stateId:"visibleColumns",propModel:t.columnVisibilityModel,propOnChange:t.onColumnVisibilityModelChange,stateSelector:$a,changeEvent:"columnVisibilityModelChange"});const l=m.useCallback(O=>{o.debug("Updating columns state."),e.current.setState(V8(O)),e.current.forceUpdate(),e.current.publishEvent("columnsChange",O.orderedFields)},[o,e]),u=m.useCallback(O=>gd(e)[O],[e]),c=m.useCallback(()=>us(e),[e]),f=m.useCallback(()=>Xr(e),[e]),p=m.useCallback((O,D=!0)=>(D?Xr(e):us(e)).findIndex(B=>B.field===O),[e]),y=m.useCallback(O=>{const D=p(O);return Pp(e)[D]},[e,p]),v=m.useCallback(O=>{$a(e)!==O&&(e.current.setState(H=>P({},H,{columns:df({apiRef:e,columnTypes:i,columnsToUpsert:[],initialState:void 0,columnVisibilityModel:O,keepOnlyColumnsToUpsert:!1})})),e.current.forceUpdate())},[e,i]),b=m.useCallback(O=>{const D=df({apiRef:e,columnTypes:i,columnsToUpsert:O,initialState:void 0,keepOnlyColumnsToUpsert:!1});l(D)},[e,l,i]),C=m.useCallback((O,D)=>{var H;const B=$a(e),j=(H=B[O])!=null?H:!0;if(D!==j){const W=P({},B,{[O]:D});e.current.setColumnVisibilityModel(W)}},[e]),x=m.useCallback(O=>tl(e).findIndex(H=>H===O),[e]),w=m.useCallback((O,D)=>{const H=tl(e),B=x(O);if(B===D)return;o.debug(`Moving column ${O} to index ${D}`);const j=[...H],W=j.splice(B,1)[0];j.splice(D,0,W),l(P({},kc(e.current.state),{orderedFields:j}));const U={column:e.current.getColumn(O),targetIndex:e.current.getColumnIndexRelativeToVisibleColumns(O),oldIndex:B};e.current.publishEvent("columnIndexChange",U)},[e,o,l,x]),S=m.useCallback((O,D)=>{var H,B;o.debug(`Updating column ${O} width to ${D}`);const j=kc(e.current.state),W=j.lookup[O],U=P({},W,{width:D,hasBeenResized:!0});l(Rk(P({},j,{lookup:P({},j.lookup,{[O]:U})}),(H=(B=e.current.getRootDimensions())==null?void 0:B.viewportInnerSize.width)!=null?H:0)),e.current.publishEvent("columnWidthChange",{element:e.current.getColumnHeaderElement(O),colDef:U,width:D})},[e,o,l]),$={getColumn:u,getAllColumns:c,getColumnIndex:p,getColumnPosition:y,getVisibleColumns:f,getColumnIndexRelativeToVisibleColumns:x,updateColumns:b,setColumnVisibilityModel:v,setColumnVisibility:C,setColumnWidth:S},T={setColumnIndex:w};Yt(e,$,"public"),Yt(e,T,t.signature===cs.DataGrid?"private":"public");const k=m.useCallback((O,D)=>{var H,B;const j={},W=$a(e);(!D.exportOnlyDirtyModels||t.columnVisibilityModel!=null||Object.keys((H=(B=t.initialState)==null||(B=B.columns)==null?void 0:B.columnVisibilityModel)!=null?H:{}).length>0||Object.keys(W).length>0)&&(j.columnVisibilityModel=W),j.orderedFields=tl(e);const Z=us(e),Y={};return Z.forEach(se=>{if(se.hasBeenResized){const Q={};eU.forEach(ne=>{let re=se[ne];re===1/0&&(re=-1),Q[ne]=re}),Y[se.field]=Q}}),Object.keys(Y).length>0&&(j.dimensions=Y),P({},O,{columns:j})},[e,t.columnVisibilityModel,(n=t.initialState)==null?void 0:n.columns]),M=m.useCallback((O,D)=>{var H;const B=(H=D.stateToRestore.columns)==null?void 0:H.columnVisibilityModel,j=D.stateToRestore.columns;if(B==null&&j==null)return O;const W=df({apiRef:e,columnTypes:i,columnsToUpsert:[],initialState:j,columnVisibilityModel:B,keepOnlyColumnsToUpsert:!1});return e.current.setState(V8(W)),j!=null&&e.current.publishEvent("columnsChange",W.orderedFields),O},[e,i]),I=m.useCallback((O,D)=>{if(D===Ta.columns){var H;const B=t.slots.columnsPanel;return g.jsx(B,P({},(H=t.slotProps)==null?void 0:H.columnsPanel))}return O},[t.slots.columnsPanel,(r=t.slotProps)==null?void 0:r.columnsPanel]),N=m.useCallback(O=>t.disableColumnSelector?O:[...O,"columnMenuColumnsItem"],[t.disableColumnSelector]);Ir(e,"columnMenu",N),Ir(e,"exportState",k),Ir(e,"restoreState",M),Ir(e,"preferencePanel",I);const E=m.useRef(null);vt(e,"viewportInnerSizeChange",O=>{E.current!==O.width&&(E.current=O.width,l(Rk(kc(e.current.state),O.width)))});const z=m.useCallback(()=>{o.info("Columns pipe processing have changed, regenerating the columns");const O=df({apiRef:e,columnTypes:i,columnsToUpsert:[],initialState:void 0,keepOnlyColumnsToUpsert:!1});l(O)},[e,o,l,i]);NT(e,"hydrateColumns",z);const L=m.useRef(!0);m.useEffect(()=>{if(L.current){L.current=!1;return}if(o.info(`GridColumns have changed, new length ${t.columns.length}`),a.current===t.columns&&s.current===i)return;const O=df({apiRef:e,columnTypes:i,initialState:void 0,columnsToUpsert:t.columns,keepOnlyColumnsToUpsert:!0});a.current=t.columns,s.current=i,l(O)},[o,e,l,t.columns,i]),m.useEffect(()=>{t.columnVisibilityModel!==void 0&&e.current.setColumnVisibilityModel(t.columnVisibilityModel)},[e,o,t.columnVisibilityModel])}const GDe=.7,qDe=1.3,nU={compact:GDe,comfortable:qDe,standard:1},KDe=(e,t)=>P({},e,{density:{value:t.density,factor:nU[t.density]}}),YDe=(e,t)=>{const n=ho(e,"useDensity"),r=m.useCallback(i=>{n.debug(`Set grid density to ${i}`),e.current.setState(a=>{const s=PT(a),l={value:i,factor:nU[i]};return nl(s,l)?a:P({},a,{density:l})}),e.current.forceUpdate()},[n,e]);m.useEffect(()=>{e.current.setDensity(t.density)},[e,t.density]),Yt(e,{setDensity:r},"public")};function XDe(e,t="csv",n=document.title||"untitled"){const r=`${n}.${t}`;if("download"in HTMLAnchorElement.prototype){const o=URL.createObjectURL(e),i=document.createElement("a");i.href=o,i.download=r,i.click(),setTimeout(()=>{URL.revokeObjectURL(o)});return}throw new Error("MUI: exportAs not supported")}const rU=({apiRef:e,options:t})=>{const n=us(e);return t.fields?t.fields.reduce((o,i)=>{const a=n.find(s=>s.field===i);return a&&o.push(a),o},[]):(t.allColumns?n:Xr(e)).filter(o=>!o.disableExport)},QDe=({apiRef:e})=>{var t,n;const r=VAe(e),o=wa(e),i=e.current.getSelectedRows(),a=r.filter(c=>o[c].type!=="footer"),s=eh(e),l=(s==null||(t=s.top)==null?void 0:t.map(c=>c.id))||[],u=(s==null||(n=s.bottom)==null?void 0:n.map(c=>c.id))||[];return a.unshift(...l),a.push(...u),i.size>0?a.filter(c=>i.has(c)):a},ZDe=(e,t)=>{const n=ho(e,"useGridCsvExport"),r=t.unstable_ignoreValueFormatterDuringExport,o=(typeof r=="object"?r==null?void 0:r.csvExport:r)||!1,i=m.useCallback((u={})=>{var c,f,p;n.debug("Get data as CSV");const y=rU({apiRef:e,options:u}),b=((c=u.getRowsToExport)!=null?c:QDe)({apiRef:e});return FDe({columns:y,rowIds:b,delimiterCharacter:u.delimiter||",",includeHeaders:(f=u.includeHeaders)!=null?f:!0,includeColumnGroupsHeaders:(p=u.includeColumnGroupsHeaders)!=null?p:!0,ignoreValueFormatter:o,apiRef:e})},[n,e,o]),a=m.useCallback(u=>{n.debug("Export data as CSV");const c=i(u),f=new Blob([u!=null&&u.utf8WithBom?new Uint8Array([239,187,191]):"",c],{type:"text/csv"});XDe(f,"csv",u==null?void 0:u.fileName)},[n,i]);Yt(e,{getDataAsCsv:i,exportDataAsCsv:a},"public");const l=m.useCallback((u,c)=>{var f;return(f=c.csvOptions)!=null&&f.disableToolbarButton?u:[...u,{component:g.jsx(vLe,{options:c.csvOptions}),componentName:"csvExport"}]},[]);Ir(e,"exportMenu",l)},JDe=(e,t)=>{var n,r;const o=P({},TV(t.autoPageSize),(n=t.paginationModel)!=null?n:(r=t.initialState)==null||(r=r.pagination)==null?void 0:r.paginationModel);return EV(o.pageSize,t.signature),P({},e,{pagination:{paginationModel:o}})},z1=(e,t,n)=>r=>{var o;let i=r.paginationModel;const a=(o=n==null?void 0:n.pageSize)!=null?o:i.pageSize,s=MV(e,a);n&&((n==null?void 0:n.page)!==i.page||(n==null?void 0:n.pageSize)!==i.pageSize)&&(i=n);const l=e8e(i.page,s);return l!==i.page&&(i=P({},i,{page:l})),EV(i.pageSize,t),{paginationModel:i}},e7e=(e,t)=>{var n;const r=ho(e,"useGridPagination"),o=it(e,a2),i=it(e,th),a=Math.floor(t.rowHeight*i);e.current.registerControlState({stateId:"pagination",propModel:t.paginationModel,propOnChange:t.onPaginationModelChange,stateSelector:zi,changeEvent:"paginationModelChange"});const s=m.useCallback(b=>{const C=zi(e);b!==C.page&&(r.debug(`Setting page to ${b}`),e.current.setPaginationModel({page:b,pageSize:C.pageSize}))},[e,r]),l=m.useCallback(b=>{const C=zi(e);b!==C.pageSize&&(r.debug(`Setting page size to ${b}`),e.current.setPaginationModel({pageSize:b,page:C.page}))},[e,r]),u=m.useCallback(b=>{var C;const x=zi(e);b!==x&&(r.debug("Setting 'paginationModel' to",b),e.current.updateControlState("pagination",z1((C=t.rowCount)!=null?C:o,t.signature,b),"setPaginationModel"),e.current.forceUpdate())},[e,r,t.rowCount,t.signature,o]);Yt(e,{setPage:s,setPageSize:l,setPaginationModel:u},"public");const f=m.useCallback((b,C)=>{var x;const w=zi(e);return!C.exportOnlyDirtyModels||t.paginationModel!=null||((x=t.initialState)==null||(x=x.pagination)==null?void 0:x.paginationModel)!=null||w.page!==0&&w.pageSize!==JFe(t.autoPageSize)?P({},b,{pagination:P({},b.pagination,{paginationModel:w})}):b},[e,t.paginationModel,(n=t.initialState)==null||(n=n.pagination)==null?void 0:n.paginationModel,t.autoPageSize]),p=m.useCallback((b,C)=>{var x,w,S;const $=(x=C.stateToRestore.pagination)!=null&&x.paginationModel?P({},TV(t.autoPageSize),(w=C.stateToRestore.pagination)==null?void 0:w.paginationModel):zi(e);return e.current.updateControlState("pagination",z1((S=t.rowCount)!=null?S:o,t.signature,$),"stateRestorePreProcessing"),b},[e,t.autoPageSize,t.rowCount,t.signature,o]);Ir(e,"exportState",f),Ir(e,"restoreState",p);const y=()=>{var b;const C=zi(e);(b=e.current.virtualScrollerRef)!=null&&b.current&&e.current.scrollToIndexes({rowIndex:C.page*C.pageSize}),e.current.forceUpdate()},v=m.useCallback(()=>{const b=e.current.getRootDimensions();if(!t.autoPageSize||!b)return;const C=gV(e),x=Math.floor((b.viewportInnerSize.height-C.top-C.bottom)/a);e.current.setPageSize(x)},[e,t.autoPageSize,a]);vt(e,"viewportInnerSizeChange",v),vt(e,"paginationModelChange",y),m.useEffect(()=>{},[t.rowCount,t.paginationMode]),m.useEffect(()=>{var b;e.current.updateControlState("pagination",z1((b=t.rowCount)!=null?b:o,t.signature,t.paginationModel))},[e,t.paginationModel,t.rowCount,t.paginationMode,o,t.signature]),m.useEffect(()=>{v()},[v])};function t7e(){return new Promise(e=>{requestAnimationFrame(()=>{e()})})}function n7e(e){const t=document.createElement("iframe");return t.style.position="absolute",t.style.width="0px",t.style.height="0px",t.title=e||document.title,t}const r7e=(e,t)=>{const n=ho(e,"useGridPrintExport"),r=m.useRef(null),o=m.useRef(null),i=m.useRef({}),a=m.useRef([]);m.useEffect(()=>{r.current=Gn(e.current.rootElementRef.current)},[e]);const s=m.useCallback((v,b,C)=>new Promise(x=>{const w=rU({apiRef:e,options:{fields:v,allColumns:b}}).map(T=>T.field),S=us(e),$={};S.forEach(T=>{$[T.field]=w.includes(T.field)}),C&&($[nh.field]=!0),e.current.setColumnVisibilityModel($),x()}),[e]),l=m.useCallback(v=>{const C=v({apiRef:e}).map(x=>e.current.getRow(x));e.current.setRows(C)},[e]),u=m.useCallback((v,b)=>{var C,x;const w=P({copyStyles:!0,hideToolbar:!1,hideFooter:!1,includeCheckboxes:!1},b),S=v.contentDocument;if(!S)return;const $=Dg(e.current.state),T=e.current.rootElementRef.current,k=T.cloneNode(!0),M=k.querySelector(`.${le.main}`);M.style.overflow="visible",k.style.contain="size";const N=k.querySelector(`.${le.columnHeaders}`).querySelector(`.${le.columnHeadersInner}`);N.style.width="100%";let E=((C=T.querySelector(`.${le.toolbarContainer}`))==null?void 0:C.offsetHeight)||0,A=((x=T.querySelector(`.${le.footerContainer}`))==null?void 0:x.offsetHeight)||0;if(w.hideToolbar){var z;(z=k.querySelector(`.${le.toolbarContainer}`))==null||z.remove(),E=0}if(w.hideFooter){var L;(L=k.querySelector(`.${le.footerContainer}`))==null||L.remove(),A=0}const O=$.currentPageTotalHeight+zT(e,t.columnHeaderHeight)+E+A;if(k.style.height=`${O}px`,k.style.boxSizing="content-box",b!=null&&b.getRowsToExport){const j=k.querySelector(`.${le.footerContainer}`);j.style.position="absolute",j.style.width="100%",j.style.top=`${O-A}px`}const D=document.createElement("div");D.appendChild(k),S.body.innerHTML=D.innerHTML;const H=typeof w.pageStyle=="function"?w.pageStyle():w.pageStyle;if(typeof H=="string"){const j=S.createElement("style");j.appendChild(S.createTextNode(H)),S.head.appendChild(j)}w.bodyClassName&&S.body.classList.add(...w.bodyClassName.split(" "));const B=[];if(w.copyStyles){const j=T.getRootNode(),U=(j.constructor.name==="ShadowRoot"?j:r.current).querySelectorAll("style, link[rel='stylesheet']");for(let Z=0;Z{se.addEventListener("load",()=>Q())})),S.head.appendChild(se)}}}Promise.all(B).then(()=>{v.contentWindow.print()})},[e,r,t.columnHeaderHeight]),c=m.useCallback(v=>{var b;r.current.body.removeChild(v),e.current.restoreState(o.current||{}),(b=o.current)!=null&&(b=b.columns)!=null&&b.columnVisibilityModel||e.current.setColumnVisibilityModel(i.current),e.current.unstable_setVirtualization(!0),e.current.setRows(a.current),o.current=null,i.current={},a.current=[]},[e]),p={exportDataAsPrint:m.useCallback(async v=>{if(n.debug("Export data as Print"),!e.current.rootElementRef.current)throw new Error("MUI: No grid root element available.");if(o.current=e.current.exportState(),i.current=$a(e),a.current=e.current.getSortedRows(),t.pagination){const C=cV(e),x={page:0,pageSize:C};e.current.updateControlState("pagination",z1(C,"DataGridPro",x)),e.current.forceUpdate()}await s(v==null?void 0:v.fields,v==null?void 0:v.allColumns,v==null?void 0:v.includeCheckboxes),v!=null&&v.getRowsToExport&&l(v.getRowsToExport),e.current.unstable_setVirtualization(!1),await t7e();const b=n7e(v==null?void 0:v.fileName);b.onload=()=>{u(b,v),b.contentWindow.matchMedia("print").addEventListener("change",x=>{x.matches===!1&&c(b)})},r.current.body.appendChild(b)},[t,n,e,u,c,s,l])};Yt(e,p,"public");const y=m.useCallback((v,b)=>{var C;return(C=b.printOptions)!=null&&C.disableToolbarButton?v:[...v,{component:g.jsx(yLe,{options:b.printOptions}),componentName:"printExport"}]},[]);Ir(e,"exportMenu",y)},o7e=(e,t,n)=>{var r,o,i;const a=(r=(o=t.filterModel)!=null?o:(i=t.initialState)==null||(i=i.filter)==null?void 0:i.filterModel)!=null?r:Lg();return P({},e,{filter:{filterModel:GV(a,t.disableMultipleColumnsFiltering,n),filteredRowsLookup:{},filteredDescendantCountLookup:{}},visibleRowsLookup:{}})},i7e=e=>e.filteredRowsLookup;function U8(e,t){return e.current.applyStrategyProcessor("visibleRowsLookupCreation",{tree:t.rows.tree,filteredRowsLookup:t.filter.filteredRowsLookup})}function a7e(){return t2(Object.values)}const s7e=(e,t)=>{var n,r;const o=ho(e,"useGridFilter");e.current.registerControlState({stateId:"filter",propModel:t.filterModel,propOnChange:t.onFilterModelChange,stateSelector:qr,changeEvent:"filterModelChange"});const i=m.useCallback(()=>{e.current.setState(E=>{const A=qr(E,e.current.instanceId),z=t.filterMode==="client"?GLe(A,e,t.disableEval):null,L=e.current.applyStrategyProcessor("filtering",{isRowMatchingFilters:z,filterModel:A??Lg()}),O=P({},E,{filter:P({},E.filter,L)}),D=U8(e,O);return P({},O,{visibleRowsLookup:D})}),e.current.publishEvent("filteredRowsSet")},[e,t.filterMode,t.disableEval]),a=m.useCallback((E,A)=>A==null||A.filterable===!1||t.disableColumnFilter?E:[...E,"columnMenuFilterItem"],[t.disableColumnFilter]),s=m.useCallback(()=>{i(),e.current.forceUpdate()},[e,i]),l=m.useCallback(E=>{const A=qr(e),z=[...A.items],L=z.findIndex(O=>O.id===E.id);L===-1?z.push(E):z[L]=E,e.current.setFilterModel(P({},A,{items:z}),"upsertFilterItem")},[e]),u=m.useCallback(E=>{const A=qr(e),z=[...A.items];E.forEach(L=>{const O=E.findIndex(D=>D.id===L.id);O===-1?z.push(L):z[O]=L}),e.current.setFilterModel(P({},A,{items:E}),"upsertFilterItems")},[e]),c=m.useCallback(E=>{const A=qr(e),z=A.items.filter(L=>L.id!==E.id);z.length!==A.items.length&&e.current.setFilterModel(P({},A,{items:z}),"deleteFilterItem")},[e]),f=m.useCallback((E,A,z)=>{if(o.debug("Displaying filter panel"),E){const L=qr(e),O=L.items.filter(j=>{var W;if(j.value!==void 0)return!(Array.isArray(j.value)&&j.value.length===0);const Z=(W=e.current.getColumn(j.field).filterOperators)==null?void 0:W.find(se=>se.value===j.operator);return!(typeof(Z==null?void 0:Z.requiresFilterValue)>"u"?!0:Z==null?void 0:Z.requiresFilterValue)});let D;const H=O.find(j=>j.field===E),B=e.current.getColumn(E);H?D=O:t.disableMultipleColumnsFiltering?D=[Tk({field:E,operator:B.filterOperators[0].value},e)]:D=[...O,Tk({field:E,operator:B.filterOperators[0].value},e)],e.current.setFilterModel(P({},L,{items:D}))}e.current.showPreferences(Ta.filters,A,z)},[e,o,t.disableMultipleColumnsFiltering]),p=m.useCallback(()=>{o.debug("Hiding filter panel"),e.current.hidePreferences()},[e,o]),y=m.useCallback(E=>{const A=qr(e);A.logicOperator!==E&&e.current.setFilterModel(P({},A,{logicOperator:E}),"changeLogicOperator")},[e]),v=m.useCallback(E=>{const A=qr(e);nl(A.quickFilterValues,E)||e.current.setFilterModel(P({},A,{quickFilterValues:[...E]}))},[e]),b=m.useCallback((E,A)=>{qr(e)!==E&&(o.debug("Setting filter model"),e.current.updateControlState("filter",O8(E,t.disableMultipleColumnsFiltering,e),A),e.current.unstable_applyFilters())},[e,o,t.disableMultipleColumnsFiltering]),C={setFilterLogicOperator:y,unstable_applyFilters:s,deleteFilterItem:c,upsertFilterItem:l,upsertFilterItems:u,setFilterModel:b,showFilterPanel:f,hideFilterPanel:p,setQuickFilterValues:v,ignoreDiacritics:t.ignoreDiacritics};Yt(e,C,"public");const x=m.useCallback((E,A)=>{var z;const L=qr(e);return!A.exportOnlyDirtyModels||t.filterModel!=null||((z=t.initialState)==null||(z=z.filter)==null?void 0:z.filterModel)!=null||!nl(L,Lg())?P({},E,{filter:{filterModel:L}}):E},[e,t.filterModel,(n=t.initialState)==null||(n=n.filter)==null?void 0:n.filterModel]),w=m.useCallback((E,A)=>{var z;const L=(z=A.stateToRestore.filter)==null?void 0:z.filterModel;return L==null?E:(e.current.updateControlState("filter",O8(L,t.disableMultipleColumnsFiltering,e),"restoreState"),P({},E,{callbacks:[...E.callbacks,e.current.unstable_applyFilters]}))},[e,t.disableMultipleColumnsFiltering]),S=m.useCallback((E,A)=>{if(A===Ta.filters){var z;const L=t.slots.filterPanel;return g.jsx(L,P({},(z=t.slotProps)==null?void 0:z.filterPanel))}return E},[t.slots.filterPanel,(r=t.slotProps)==null?void 0:r.filterPanel]),{getRowId:$}=t,T=wT(a7e),k=m.useCallback(E=>{if(t.filterMode!=="client"||!E.isRowMatchingFilters)return{filteredRowsLookup:{},filteredDescendantCountLookup:{}};const A=Gl(e),z={},{isRowMatchingFilters:L}=E,O={},D={passingFilterItems:null,passingQuickFilterValues:null},H=T.current(e.current.state.rows.dataRowIdToModelLookup);for(let W=0;W{o.debug("onColUpdated - GridColumns changed, applying filters");const E=qr(e),A=TAe(e),z=E.items.filter(L=>L.field&&A[L.field]);z.length{E==="filtering"&&e.current.unstable_applyFilters()},[e]),N=m.useCallback(()=>{e.current.setState(E=>P({},E,{visibleRowsLookup:U8(e,E)})),e.current.forceUpdate()},[e]);vt(e,"rowsSet",i),vt(e,"columnsChange",M),vt(e,"activeStrategyProcessorChange",I),vt(e,"rowExpansionChange",N),vt(e,"columnVisibilityModelChange",()=>{const E=qr(e);E.quickFilterValues&&E.quickFilterExcludeHiddenColumns&&e.current.unstable_applyFilters()}),S0(()=>{e.current.unstable_applyFilters()}),pn(()=>{t.filterModel!==void 0&&e.current.setFilterModel(t.filterModel)},[e,o,t.filterModel])},l7e=e=>P({},e,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},tabIndex:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}),u7e=(e,t)=>{const n=ho(e,"useGridFocus"),r=m.useRef(null),o=m.useCallback((M,I)=>{M&&e.current.getRow(M.id)&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(M.id,M.field),I)},[e]),i=m.useCallback((M,I)=>{const N=si(e);(N==null?void 0:N.id)===M&&(N==null?void 0:N.field)===I||(e.current.setState(E=>(n.debug(`Focusing on cell with id=${M} and field=${I}`),P({},E,{tabIndex:{cell:{id:M,field:I},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},focus:{cell:{id:M,field:I},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))),e.current.forceUpdate(),e.current.getRow(M)&&(N&&o(N,{}),e.current.publishEvent("cellFocusIn",e.current.getCellParams(M,I))))},[e,n,o]),a=m.useCallback((M,I={})=>{const N=si(e);o(N,I),e.current.setState(E=>(n.debug(`Focusing on column header with colIndex=${M}`),P({},E,{tabIndex:{columnHeader:{field:M},columnHeaderFilter:null,cell:null,columnGroupHeader:null},focus:{columnHeader:{field:M},columnHeaderFilter:null,cell:null,columnGroupHeader:null}}))),e.current.forceUpdate()},[e,n,o]),s=m.useCallback((M,I={})=>{const N=si(e);o(N,I),e.current.setState(E=>(n.debug(`Focusing on column header filter with colIndex=${M}`),P({},E,{tabIndex:{columnHeader:null,columnHeaderFilter:{field:M},cell:null,columnGroupHeader:null},focus:{columnHeader:null,columnHeaderFilter:{field:M},cell:null,columnGroupHeader:null}}))),e.current.forceUpdate()},[e,n,o]),l=m.useCallback((M,I,N={})=>{const E=si(e);E&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(E.id,E.field),N),e.current.setState(A=>P({},A,{tabIndex:{columnGroupHeader:{field:M,depth:I},columnHeader:null,columnHeaderFilter:null,cell:null},focus:{columnGroupHeader:{field:M,depth:I},columnHeader:null,columnHeaderFilter:null,cell:null}})),e.current.forceUpdate()},[e]),u=m.useCallback(()=>ab(e),[e]),c=m.useCallback((M,I,N)=>{let E=e.current.getColumnIndex(I);const A=Xr(e),z=pb(e,{pagination:t.pagination,paginationMode:t.paginationMode}),L=eh(e),O=[].concat(L.top||[],z.rows,L.bottom||[]);let D=O.findIndex(W=>W.id===M);N==="right"?E+=1:N==="left"?E-=1:D+=1,E>=A.length?(D+=1,D=0&&(E=A.length-1)),D=Mp(D,0,O.length-1);const H=O[D];if(!H)return;const B=e.current.unstable_getCellColSpanInfo(H.id,E);B&&B.spannedByColSpan&&(N==="left"||N==="below"?E=B.leftVisibleCellIndex:N==="right"&&(E=B.rightVisibleCellIndex)),E=Mp(E,0,A.length-1);const j=A[E];e.current.setCellFocus(H.id,j.field)},[e,t.pagination,t.paginationMode]),f=m.useCallback(({id:M,field:I})=>{e.current.setCellFocus(M,I)},[e]),p=m.useCallback((M,I)=>{I.key==="Enter"||I.key==="Tab"||I.key==="Shift"||db(I.key)||e.current.setCellFocus(M.id,M.field)},[e]),y=m.useCallback(({field:M},I)=>{I.target===I.currentTarget&&e.current.setColumnHeaderFocus(M,I)},[e]),v=m.useCallback(({fields:M,depth:I},N)=>{if(N.target!==N.currentTarget)return;const E=ab(e);E!==null&&E.depth===I&&M.includes(E.field)||e.current.setColumnGroupHeaderFocus(M[0],I,N)},[e]),b=m.useCallback((M,I)=>{var N;(N=I.relatedTarget)!=null&&N.className.includes(le.columnHeader)||(n.debug("Clearing focus"),e.current.setState(E=>P({},E,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})))},[n,e]),C=m.useCallback(M=>{r.current=M},[]),x=m.useCallback(M=>{const I=r.current;r.current=null;const N=si(e);if(!e.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:M,cell:I}))return;if(!N){I&&e.current.setCellFocus(I.id,I.field);return}if((I==null?void 0:I.id)===N.id&&(I==null?void 0:I.field)===N.field)return;const A=e.current.getCellElement(N.id,N.field);A!=null&&A.contains(M.target)||(I?e.current.setCellFocus(I.id,I.field):(e.current.setState(z=>P({},z,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})),e.current.forceUpdate(),o(N,M)))},[e,o]),w=m.useCallback(M=>{if(M.cellMode==="view")return;const I=si(e);((I==null?void 0:I.id)!==M.id||(I==null?void 0:I.field)!==M.field)&&e.current.setCellFocus(M.id,M.field)},[e]),S=m.useCallback(()=>{const M=si(e);M&&!e.current.getRow(M.id)&&e.current.setState(I=>P({},I,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))},[e]),$=Dn(()=>{const M=si(e);if(!M)return;const I=pb(e,{pagination:t.pagination,paginationMode:t.paginationMode});if(I.rows.find(A=>A.id===M.id))return;const E=Xr(e);e.current.setState(A=>P({},A,{tabIndex:{cell:{id:I.rows[0].id,field:E[0].field},columnGroupHeader:null,columnHeader:null,columnHeaderFilter:null}}))}),T={setCellFocus:i,setColumnHeaderFocus:a,setColumnHeaderFilterFocus:s},k={moveFocusToRelativeCell:c,setColumnGroupHeaderFocus:l,getColumnGroupHeaderFocus:u};Yt(e,T,"public"),Yt(e,k,"private"),m.useEffect(()=>{const M=Gn(e.current.rootElementRef.current);return M.addEventListener("mouseup",x),()=>{M.removeEventListener("mouseup",x)}},[e,x]),vt(e,"columnHeaderBlur",b),vt(e,"cellDoubleClick",f),vt(e,"cellMouseDown",C),vt(e,"cellKeyDown",p),vt(e,"cellModeChange",w),vt(e,"columnHeaderFocus",y),vt(e,"columnGroupHeaderFocus",v),vt(e,"rowsSet",S),vt(e,"paginationModelChange",$)};function c7e(e,t){const n=eh(e)||{};return[...n.top||[],...t,...n.bottom||[]]}const t$=({currentColIndex:e,firstColIndex:t,lastColIndex:n,direction:r})=>{if(r==="rtl"){if(et)return e-1;return null},n$=({currentColIndex:e,firstColIndex:t,lastColIndex:n,direction:r})=>{if(r==="rtl"){if(e>t)return e-1}else if(r==="ltr"&&e{const n=ho(e,"useGridKeyboardNavigation"),r=vd(e,t).rows,o=Xt(),i=m.useMemo(()=>c7e(e,r),[e,r]),a=t.signature!=="DataGrid"&&t.unstable_headerFilters,s=m.useCallback((x,w,S="left")=>{const $=Tu(e),T=e.current.unstable_getCellColSpanInfo(w,x);T&&T.spannedByColSpan&&(S==="left"?x=T.leftVisibleCellIndex:S==="right"&&(x=T.rightVisibleCellIndex));const k=$.findIndex(I=>I.id===w);n.debug(`Navigating to cell row ${k}, col ${x}`),e.current.scrollToIndexes({colIndex:x,rowIndex:k});const M=e.current.getVisibleColumns()[x].field;e.current.setCellFocus(w,M)},[e,n]),l=m.useCallback((x,w)=>{n.debug(`Navigating to header col ${x}`),e.current.scrollToIndexes({colIndex:x});const S=e.current.getVisibleColumns()[x].field;e.current.setColumnHeaderFocus(S,w)},[e,n]),u=m.useCallback((x,w)=>{n.debug(`Navigating to header filter col ${x}`),e.current.scrollToIndexes({colIndex:x});const S=e.current.getVisibleColumns()[x].field;e.current.setColumnHeaderFilterFocus(S,w)},[e,n]),c=m.useCallback((x,w,S)=>{n.debug(`Navigating to header col ${x}`),e.current.scrollToIndexes({colIndex:x});const{field:$}=e.current.getVisibleColumns()[x];e.current.setColumnGroupHeaderFocus($,w,S)},[e,n]),f=m.useCallback(x=>{var w;return(w=i[x])==null?void 0:w.id},[i]),p=m.useCallback((x,w)=>{const S=w.currentTarget.querySelector(`.${le.columnHeaderTitleContainerContent}`);if(!!S&&S.contains(w.target)&&x.field!==nh.field||!e.current.getRootDimensions())return;const k=e.current.getViewportPageSize(),M=x.field?e.current.getColumnIndex(x.field):0,I=i.length>0?0:null,N=i.length-1,E=0,A=Xr(e).length-1,z=C0(e);let L=!0;switch(w.key){case"ArrowDown":{I!==null&&(a?u(M,w):s(M,f(I)));break}case"ArrowRight":{const O=n$({currentColIndex:M,firstColIndex:E,lastColIndex:A,direction:o.direction});O!==null&&l(O,w);break}case"ArrowLeft":{const O=t$({currentColIndex:M,firstColIndex:E,lastColIndex:A,direction:o.direction});O!==null&&l(O,w);break}case"ArrowUp":{z>0&&c(M,z-1,w);break}case"PageDown":{I!==null&&N!==null&&s(M,f(Math.min(I+k,N)));break}case"Home":{l(E,w);break}case"End":{l(A,w);break}case"Enter":{(w.ctrlKey||w.metaKey)&&e.current.toggleColumnMenu(x.field);break}case" ":break;default:L=!1}L&&w.preventDefault()},[e,i.length,a,u,s,f,o.direction,l,c]),y=m.useCallback((x,w)=>{if(!e.current.getRootDimensions())return;const $=p8e(e)===x.field,T=h8e(e)===x.field;if($||T||!db(w.key))return;const k=e.current.getViewportPageSize(),M=x.field?e.current.getColumnIndex(x.field):0,I=0,N=i.length-1,E=0,A=Xr(e).length-1;let z=!0;switch(w.key){case"ArrowDown":{const L=f(I);L!=null&&s(M,L);break}case"ArrowRight":{const L=n$({currentColIndex:M,firstColIndex:E,lastColIndex:A,direction:o.direction});L!==null&&u(L,w);break}case"ArrowLeft":{const L=t$({currentColIndex:M,firstColIndex:E,lastColIndex:A,direction:o.direction});L!==null?u(L,w):e.current.setColumnHeaderFilterFocus(x.field,w);break}case"ArrowUp":{l(M,w);break}case"PageDown":{N!==null&&s(M,f(Math.min(I+k,N)));break}case"Home":{u(E,w);break}case"End":{u(A,w);break}case" ":break;default:z=!1}z&&w.preventDefault()},[e,i.length,u,o.direction,l,s,f]),v=m.useCallback((x,w)=>{if(!e.current.getRootDimensions())return;const $=ab(e);if($===null)return;const{field:T,depth:k}=$,{fields:M,depth:I,maxDepth:N}=x,E=e.current.getViewportPageSize(),A=e.current.getColumnIndex(T),z=T?e.current.getColumnIndex(T):0,L=0,O=i.length-1,D=0,H=Xr(e).length-1;let B=!0;switch(w.key){case"ArrowDown":{I===N-1?l(A,w):c(A,k+1,w);break}case"ArrowUp":{I>0&&c(A,k-1,w);break}case"ArrowRight":{const j=M.length-M.indexOf(T)-1;A+j+1<=H&&c(A+j+1,k,w);break}case"ArrowLeft":{const j=M.indexOf(T);A-j-1>=D&&c(A-j-1,k,w);break}case"PageDown":{O!==null&&s(z,f(Math.min(L+E,O)));break}case"Home":{c(D,k,w);break}case"End":{c(H,k,w);break}case" ":break;default:B=!1}B&&w.preventDefault()},[e,i.length,l,c,s,f]),b=m.useCallback((x,w)=>{if(!w.currentTarget.contains(w.target))return;const S=e.current.getCellParams(x.id,x.field);if(S.cellMode===Pn.Edit||!db(w.key)||!e.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:w,cell:S}))return;const T=e.current.getRootDimensions();if(i.length===0||!T)return;const k=o.direction,M=e.current.getViewportPageSize(),I=x.field?e.current.getColumnIndex(x.field):0,N=i.findIndex(D=>D.id===x.id),E=0,A=i.length-1,z=0,L=Xr(e).length-1;let O=!0;switch(w.key){case"ArrowDown":{NE?s(I,f(N-1)):a?u(I,w):l(I,w);break}case"ArrowRight":{const D=n$({currentColIndex:I,firstColIndex:z,lastColIndex:L,direction:k});D!==null&&s(D,f(N),k==="rtl"?"left":"right");break}case"ArrowLeft":{const D=t$({currentColIndex:I,firstColIndex:z,lastColIndex:L,direction:k});D!==null&&s(D,f(N),k==="rtl"?"right":"left");break}case"Tab":{w.shiftKey&&I>z?s(I-1,f(N),"left"):!w.shiftKey&&I=E?s(I,f(D)):l(I,w);break}case"Home":{w.ctrlKey||w.metaKey||w.shiftKey?s(z,f(E)):s(z,f(N));break}case"End":{w.ctrlKey||w.metaKey||w.shiftKey?s(L,f(A)):s(L,f(N));break}default:O=!1}O&&w.preventDefault()},[e,i,o.direction,s,f,a,u,l]),C=m.useCallback((x,{event:w})=>w.key===" "?!1:x,[]);Ir(e,"canStartEditing",C),vt(e,"columnHeaderKeyDown",p),vt(e,"headerFilterKeyDown",y),vt(e,"columnGroupHeaderKeyDown",v),vt(e,"cellKeyDown",b)},f7e=(e,t)=>{var n,r;return P({},e,{preferencePanel:(n=(r=t.initialState)==null?void 0:r.preferencePanel)!=null?n:{open:!1}})},p7e=(e,t)=>{var n;const r=ho(e,"useGridPreferencesPanel"),o=m.useRef(),i=m.useRef(),a=m.useCallback(()=>{r.debug("Hiding Preferences Panel");const p=Zc(e.current.state);p.openedPanelValue&&e.current.publishEvent("preferencePanelClose",{openedPanelValue:p.openedPanelValue}),e.current.setState(y=>P({},y,{preferencePanel:{open:!1}})),e.current.forceUpdate()},[e,r]),s=m.useCallback(()=>{i.current=setTimeout(()=>clearTimeout(o.current),0)},[]),l=m.useCallback(()=>{o.current=setTimeout(a,100)},[a]),u=m.useCallback((p,y,v)=>{r.debug("Opening Preferences Panel"),s(),e.current.setState(b=>P({},b,{preferencePanel:P({},b.preferencePanel,{open:!0,openedPanelValue:p,panelId:y,labelId:v})})),e.current.publishEvent("preferencePanelOpen",{openedPanelValue:p}),e.current.forceUpdate()},[r,s,e]);Yt(e,{showPreferences:u,hidePreferences:l},"public");const c=m.useCallback((p,y)=>{var v;const b=Zc(e.current.state);return!y.exportOnlyDirtyModels||((v=t.initialState)==null?void 0:v.preferencePanel)!=null||b.open?P({},p,{preferencePanel:b}):p},[e,(n=t.initialState)==null?void 0:n.preferencePanel]),f=m.useCallback((p,y)=>{const v=y.stateToRestore.preferencePanel;return v!=null&&e.current.setState(b=>P({},b,{preferencePanel:v})),p},[e]);Ir(e,"exportState",c),Ir(e,"restoreState",f),m.useEffect(()=>()=>{clearTimeout(o.current),clearTimeout(i.current)},[])},h7e=["id","field"],m7e=["id","field"],g7e=$s(["MUI: A call to `processRowUpdate` threw an error which was not handled because `onProcessRowUpdateError` is missing.","To handle the error pass a callback to the `onProcessRowUpdateError` prop, e.g. ` ...} />`.","For more detail, see http://mui.com/components/data-grid/editing/#server-side-persistence."],"error"),v7e=(e,t)=>{const[n,r]=m.useState({}),o=m.useRef(n),i=m.useRef({}),{processRowUpdate:a,onProcessRowUpdateError:s,cellModesModel:l,onCellModesModelChange:u}=t,c=O=>(...D)=>{t.editMode===gs.Cell&&O(...D)},f=m.useCallback((O,D)=>{const H=e.current.getCellParams(O,D);if(!e.current.isCellEditable(H))throw new Error(`MUI: The cell with id=${O} and field=${D} is not editable.`)},[e]),p=m.useCallback((O,D,H)=>{if(e.current.getCellMode(O,D)!==H)throw new Error(`MUI: The cell with id=${O} and field=${D} is not in ${H} mode.`)},[e]),y=m.useCallback((O,D)=>{if(!O.isEditable||O.cellMode===Pn.Edit)return;const H=P({},O,{reason:Tl.cellDoubleClick});e.current.publishEvent("cellEditStart",H,D)},[e]),v=m.useCallback((O,D)=>{if(O.cellMode===Pn.View||e.current.getCellMode(O.id,O.field)===Pn.View)return;const H=P({},O,{reason:ga.cellFocusOut});e.current.publishEvent("cellEditStop",H,D)},[e]),b=m.useCallback((O,D)=>{if(O.cellMode===Pn.Edit){if(D.which===229)return;let H;if(D.key==="Escape"?H=ga.escapeKeyDown:D.key==="Enter"?H=ga.enterKeyDown:D.key==="Tab"&&(H=D.shiftKey?ga.shiftTabKeyDown:ga.tabKeyDown,D.preventDefault()),H){const B=P({},O,{reason:H});e.current.publishEvent("cellEditStop",B,D)}}else if(O.isEditable){let H;if(!e.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:D,cellParams:O,editMode:"cell"}))return;if(CV(D)||(D.ctrlKey||D.metaKey)&&D.key==="v"?H=Tl.printableKeyDown:D.key==="Enter"?H=Tl.enterKeyDown:(D.key==="Delete"||D.key==="Backspace")&&(H=Tl.deleteKeyDown),H){const j=P({},O,{reason:H,key:D.key});e.current.publishEvent("cellEditStart",j,D)}}},[e]),C=m.useCallback(O=>{const{id:D,field:H,reason:B,key:j,colDef:W}=O,U={id:D,field:H};if(B===Tl.printableKeyDown)if(m.version.startsWith("17"))U.deleteValue=!0;else{const Z=W.valueParser?W.valueParser(j):j;U.initialValue=Z}else B===Tl.deleteKeyDown&&(U.deleteValue=!0);e.current.startCellEditMode(U)},[e]),x=m.useCallback(O=>{const{id:D,field:H,reason:B}=O;e.current.runPendingEditCellValueMutation(D,H);let j;B===ga.enterKeyDown?j="below":B===ga.tabKeyDown?j="right":B===ga.shiftTabKeyDown&&(j="left");const W=B==="escapeKeyDown";e.current.stopCellEditMode({id:D,field:H,ignoreModifications:W,cellToFocusAfter:j})},[e]);vt(e,"cellDoubleClick",c(y)),vt(e,"cellFocusOut",c(v)),vt(e,"cellKeyDown",c(b)),vt(e,"cellEditStart",c(C)),vt(e,"cellEditStop",c(x)),Yn(e,"cellEditStart",t.onCellEditStart),Yn(e,"cellEditStop",t.onCellEditStop);const w=m.useCallback((O,D)=>{const H=bo(e.current.state);return H[O]&&H[O][D]?Pn.Edit:Pn.View},[e]),S=Dn(O=>{const D=O!==t.cellModesModel;u&&D&&u(O,{}),!(t.cellModesModel&&D)&&(r(O),o.current=O,e.current.publishEvent("cellModesModelChange",O))}),$=m.useCallback((O,D,H)=>{const B=P({},o.current);if(H!==null)B[O]=P({},B[O],{[D]:P({},H)});else{const j=B[O],W=be(j,[D].map(Ng));B[O]=W,Object.keys(B[O]).length===0&&delete B[O]}S(B)},[S]),T=m.useCallback((O,D,H)=>{e.current.setState(B=>{const j=P({},B.editRows);return H!==null?j[O]=P({},j[O],{[D]:P({},H)}):(delete j[O][D],Object.keys(j[O]).length===0&&delete j[O]),P({},B,{editRows:j})}),e.current.forceUpdate()},[e]),k=m.useCallback(O=>{const{id:D,field:H}=O,B=be(O,h7e);f(D,H),p(D,H,Pn.View),$(D,H,P({mode:Pn.Edit},B))},[f,p,$]),M=Dn(O=>{const{id:D,field:H,deleteValue:B,initialValue:j}=O;let W=e.current.getCellValue(D,H),U=!1;(B||j)&&(W=B?"":j,U=!0),T(D,H,{value:W,error:!1,isProcessingProps:!1,unstable_updateValueOnRender:U}),e.current.setCellFocus(D,H)}),I=m.useCallback(O=>{const{id:D,field:H}=O,B=be(O,m7e);p(D,H,Pn.Edit),$(D,H,P({mode:Pn.View},B))},[p,$]),N=Dn(async O=>{const{id:D,field:H,ignoreModifications:B,cellToFocusAfter:j="none"}=O;p(D,H,Pn.Edit),e.current.runPendingEditCellValueMutation(D,H);const W=()=>{T(D,H,null),$(D,H,null),j!=="none"&&e.current.moveFocusToRelativeCell(D,H,j)};if(B){W();return}const U=bo(e.current.state),{error:Z,isProcessingProps:Y}=U[D][H];if(Z||Y){i.current[D][H].mode=Pn.Edit,$(D,H,{mode:Pn.Edit});return}const se=e.current.getRowWithUpdatedValuesFromCellEditing(D,H);if(a){const Q=ne=>{i.current[D][H].mode=Pn.Edit,$(D,H,{mode:Pn.Edit}),s?s(ne):g7e()};try{const ne=e.current.getRow(D);Promise.resolve(a(se,ne)).then(re=>{e.current.updateRows([re]),W()}).catch(Q)}catch(ne){Q(ne)}}else e.current.updateRows([se]),W()}),E=m.useCallback(async O=>{var D;const{id:H,field:B,value:j,debounceMs:W,unstable_skipValueParser:U}=O;f(H,B),p(H,B,Pn.Edit);const Z=e.current.getColumn(B),Y=e.current.getRow(H);let se=j;Z.valueParser&&!U&&(se=Z.valueParser(j,e.current.getCellParams(H,B)));let Q=bo(e.current.state),ne=P({},Q[H][B],{value:se,changeReason:W?"debouncedSetEditCellValue":"setEditCellValue"});if(Z.preProcessEditCellProps){const re=j!==Q[H][B].value;ne=P({},ne,{isProcessingProps:!0}),T(H,B,ne),ne=await Promise.resolve(Z.preProcessEditCellProps({id:H,row:Y,props:ne,hasChanged:re}))}return e.current.getCellMode(H,B)===Pn.View?!1:(Q=bo(e.current.state),ne=P({},ne,{isProcessingProps:!1}),ne.value=Z.preProcessEditCellProps?Q[H][B].value:se,T(H,B,ne),Q=bo(e.current.state),!((D=Q[H])!=null&&(D=D[B])!=null&&D.error))},[e,f,p,T]),A=m.useCallback((O,D)=>{const H=e.current.getColumn(D),B=bo(e.current.state),j=e.current.getRow(O);if(!B[O]||!B[O][D])return e.current.getRow(O);const{value:W}=B[O][D];return H.valueSetter?H.valueSetter({value:W,row:j}):P({},j,{[D]:W})},[e]),z={getCellMode:w,startCellEditMode:k,stopCellEditMode:I},L={setCellEditingEditCellValue:E,getRowWithUpdatedValuesFromCellEditing:A};Yt(e,z,"public"),Yt(e,L,"private"),m.useEffect(()=>{l&&S(l)},[l,S]),m.useEffect(()=>{const O=ib(e),D=i.current;i.current=PV(n),Object.entries(n).forEach(([H,B])=>{Object.entries(B).forEach(([j,W])=>{var U,Z;const Y=((U=D[H])==null||(U=U[j])==null?void 0:U.mode)||Pn.View,se=(Z=O[H])!=null?Z:H;W.mode===Pn.Edit&&Y===Pn.View?M(P({id:se,field:j},W)):W.mode===Pn.View&&Y===Pn.Edit&&N(P({id:se,field:j},W))})})},[e,n,M,N])},y7e=["id"],b7e=["id"],x7e=$s(["MUI: A call to `processRowUpdate` threw an error which was not handled because `onProcessRowUpdateError` is missing.","To handle the error pass a callback to the `onProcessRowUpdateError` prop, e.g. ` ...} />`.","For more detail, see http://mui.com/components/data-grid/editing/#server-side-persistence."],"error"),w7e=(e,t)=>{const[n,r]=m.useState({}),o=m.useRef(n),i=m.useRef({}),a=m.useRef(null),s=m.useRef(null),{processRowUpdate:l,onProcessRowUpdateError:u,rowModesModel:c,onRowModesModelChange:f}=t,p=j=>(...W)=>{t.editMode===gs.Row&&j(...W)},y=m.useCallback((j,W)=>{const U=e.current.getCellParams(j,W);if(!e.current.isCellEditable(U))throw new Error(`MUI: The cell with id=${j} and field=${W} is not editable.`)},[e]),v=m.useCallback((j,W)=>{if(e.current.getRowMode(j)!==W)throw new Error(`MUI: The row with id=${j} is not in ${W} mode.`)},[e]),b=m.useCallback((j,W)=>{if(!j.isEditable||e.current.getRowMode(j.id)===Bn.Edit)return;const U=e.current.getRowParams(j.id),Z=P({},U,{field:j.field,reason:El.cellDoubleClick});e.current.publishEvent("rowEditStart",Z,W)},[e]),C=m.useCallback(j=>{s.current=j},[]),x=m.useCallback((j,W)=>{j.isEditable&&e.current.getRowMode(j.id)!==Bn.View&&(s.current=null,a.current=setTimeout(()=>{var U;if(a.current=null,((U=s.current)==null?void 0:U.id)!==j.id){if(!e.current.getRow(j.id)||e.current.getRowMode(j.id)===Bn.View)return;const Z=e.current.getRowParams(j.id),Y=P({},Z,{field:j.field,reason:Ns.rowFocusOut});e.current.publishEvent("rowEditStop",Y,W)}}))},[e]);m.useEffect(()=>()=>{clearTimeout(a.current)},[]);const w=m.useCallback((j,W)=>{if(j.cellMode===Bn.Edit){if(W.which===229)return;let U;if(W.key==="Escape")U=Ns.escapeKeyDown;else if(W.key==="Enter")U=Ns.enterKeyDown;else if(W.key==="Tab"){const Z=n2(e).filter(Y=>e.current.getColumn(Y).type===f2?!0:e.current.isCellEditable(e.current.getCellParams(j.id,Y)));if(W.shiftKey?j.field===Z[0]&&(U=Ns.shiftTabKeyDown):j.field===Z[Z.length-1]&&(U=Ns.tabKeyDown),W.preventDefault(),!U){const Y=Z.findIndex(Q=>Q===j.field),se=Z[W.shiftKey?Y-1:Y+1];e.current.setCellFocus(j.id,se)}}if(U){const Z=P({},e.current.getRowParams(j.id),{reason:U,field:j.field});e.current.publishEvent("rowEditStop",Z,W)}}else if(j.isEditable){let U;if(!e.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:W,cellParams:j,editMode:"row"}))return;if(CV(W)||(W.ctrlKey||W.metaKey)&&W.key==="v"?U=El.printableKeyDown:W.key==="Enter"?U=El.enterKeyDown:(W.key==="Delete"||W.key==="Backspace")&&(U=El.deleteKeyDown),U){const Y=e.current.getRowParams(j.id),se=P({},Y,{field:j.field,key:W.key,reason:U});e.current.publishEvent("rowEditStart",se,W)}}},[e]),S=m.useCallback(j=>{const{id:W,field:U,reason:Z,key:Y,columns:se}=j,Q={id:W,fieldToFocus:U};if(Z===El.printableKeyDown)if(m.version.startsWith("17"))Q.deleteValue=!!U;else{const ne=se.find(re=>re.field===U);Q.initialValue=ne.valueParser?ne.valueParser(Y):Y}else Z===El.deleteKeyDown&&(Q.deleteValue=!!U);e.current.startRowEditMode(Q)},[e]),$=m.useCallback(j=>{const{id:W,reason:U,field:Z}=j;e.current.runPendingEditCellValueMutation(W);let Y;U===Ns.enterKeyDown?Y="below":U===Ns.tabKeyDown?Y="right":U===Ns.shiftTabKeyDown&&(Y="left");const se=U==="escapeKeyDown";e.current.stopRowEditMode({id:W,ignoreModifications:se,field:Z,cellToFocusAfter:Y})},[e]);vt(e,"cellDoubleClick",p(b)),vt(e,"cellFocusIn",p(C)),vt(e,"cellFocusOut",p(x)),vt(e,"cellKeyDown",p(w)),vt(e,"rowEditStart",p(S)),vt(e,"rowEditStop",p($)),Yn(e,"rowEditStart",t.onRowEditStart),Yn(e,"rowEditStop",t.onRowEditStop);const T=m.useCallback(j=>{if(t.editMode===gs.Cell)return Bn.View;const W=bo(e.current.state);return W[j]&&Object.keys(W[j]).length>0?Bn.Edit:Bn.View},[e,t.editMode]),k=Dn(j=>{const W=j!==t.rowModesModel;f&&W&&f(j,{}),!(t.rowModesModel&&W)&&(r(j),o.current=j,e.current.publishEvent("rowModesModelChange",j))}),M=m.useCallback((j,W)=>{const U=P({},o.current);W!==null?U[j]=P({},W):delete U[j],k(U)},[k]),I=m.useCallback((j,W)=>{e.current.setState(U=>{const Z=P({},U.editRows);return W!==null?Z[j]=W:delete Z[j],P({},U,{editRows:Z})}),e.current.forceUpdate()},[e]),N=m.useCallback((j,W,U)=>{e.current.setState(Z=>{const Y=P({},Z.editRows);return U!==null?Y[j]=P({},Y[j],{[W]:P({},U)}):(delete Y[j][W],Object.keys(Y[j]).length===0&&delete Y[j]),P({},Z,{editRows:Y})}),e.current.forceUpdate()},[e]),E=m.useCallback(j=>{const{id:W}=j,U=be(j,y7e);v(W,Bn.View),M(W,P({mode:Bn.Edit},U))},[v,M]),A=Dn(j=>{const{id:W,fieldToFocus:U,deleteValue:Z,initialValue:Y}=j,Q=tl(e).reduce((ne,re)=>{if(!e.current.getCellParams(W,re).isEditable)return ne;let xe=e.current.getCellValue(W,re),fe=!1;return U===re&&(Z||Y)&&(xe=Z?"":Y,fe=!0),ne[re]={value:xe,error:!1,isProcessingProps:!1,unstable_updateValueOnRender:fe},ne},{});I(W,Q),U&&e.current.setCellFocus(W,U)}),z=m.useCallback(j=>{const{id:W}=j,U=be(j,b7e);v(W,Bn.Edit),M(W,P({mode:Bn.View},U))},[v,M]),L=Dn(j=>{const{id:W,ignoreModifications:U,field:Z,cellToFocusAfter:Y="none"}=j;e.current.runPendingEditCellValueMutation(W);const se=()=>{Y!=="none"&&Z&&e.current.moveFocusToRelativeCell(W,Z,Y),I(W,null),M(W,null)};if(U){se();return}const Q=bo(e.current.state),ne=e.current.getRow(W);if(Object.values(Q[W]).some(fe=>fe.isProcessingProps)){i.current[W].mode=Bn.Edit;return}if(Object.values(Q[W]).some(fe=>fe.error)){i.current[W].mode=Bn.Edit,M(W,{mode:Bn.Edit});return}const xe=e.current.getRowWithUpdatedValuesFromRowEditing(W);if(l){const fe=Se=>{i.current[W].mode=Bn.Edit,M(W,{mode:Bn.Edit}),u?u(Se):x7e()};try{Promise.resolve(l(xe,ne)).then(Se=>{e.current.updateRows([Se]),se()}).catch(fe)}catch(Se){fe(Se)}}else e.current.updateRows([xe]),se()}),O=m.useCallback(j=>{const{id:W,field:U,value:Z,debounceMs:Y,unstable_skipValueParser:se}=j;y(W,U);const Q=e.current.getColumn(U),ne=e.current.getRow(W);let re=Z;Q.valueParser&&!se&&(re=Q.valueParser(Z,e.current.getCellParams(W,U)));let ge=bo(e.current.state),xe=P({},ge[W][U],{value:re,changeReason:Y?"debouncedSetEditCellValue":"setEditCellValue"});return Q.preProcessEditCellProps||N(W,U,xe),new Promise(fe=>{const Se=[];if(Q.preProcessEditCellProps){const de=xe.value!==ge[W][U].value;xe=P({},xe,{isProcessingProps:!0}),N(W,U,xe);const ie=ge[W],Pe=be(ie,[U].map(Ng)),$e=Promise.resolve(Q.preProcessEditCellProps({id:W,row:ne,props:xe,hasChanged:de,otherFieldsProps:Pe})).then(me=>{if(e.current.getRowMode(W)===Bn.View){fe(!1);return}ge=bo(e.current.state),me=P({},me,{isProcessingProps:!1}),me.value=Q.preProcessEditCellProps?ge[W][U].value:re,N(W,U,me)});Se.push($e)}Object.entries(ge[W]).forEach(([de,ie])=>{if(de===U)return;const Pe=e.current.getColumn(de);if(!Pe.preProcessEditCellProps)return;ie=P({},ie,{isProcessingProps:!0}),N(W,de,ie),ge=bo(e.current.state);const $e=ge[W],me=be($e,[de].map(Ng)),ue=Promise.resolve(Pe.preProcessEditCellProps({id:W,row:ne,props:ie,hasChanged:!1,otherFieldsProps:me})).then(ce=>{if(e.current.getRowMode(W)===Bn.View){fe(!1);return}ce=P({},ce,{isProcessingProps:!1}),N(W,de,ce)});Se.push(ue)}),Promise.all(Se).then(()=>{e.current.getRowMode(W)===Bn.Edit?(ge=bo(e.current.state),fe(!ge[W][U].error)):fe(!1)})})},[e,y,N]),D=m.useCallback(j=>{const W=bo(e.current.state),U=e.current.getRow(j);if(!W[j])return e.current.getRow(j);let Z=P({},U);return Object.entries(W[j]).forEach(([Y,se])=>{const Q=e.current.getColumn(Y);Q.valueSetter?Z=Q.valueSetter({value:se.value,row:Z}):Z[Y]=se.value}),Z},[e]),H={getRowMode:T,startRowEditMode:E,stopRowEditMode:z},B={setRowEditingEditCellValue:O,getRowWithUpdatedValuesFromRowEditing:D};Yt(e,H,"public"),Yt(e,B,"private"),m.useEffect(()=>{c&&k(c)},[c,k]),m.useEffect(()=>{const j=ib(e),W=i.current;i.current=PV(n),Object.entries(n).forEach(([U,Z])=>{var Y,se;const Q=((Y=W[U])==null?void 0:Y.mode)||Bn.View,ne=(se=j[U])!=null?se:U;Z.mode===Bn.Edit&&Q===Bn.View?A(P({id:ne},Z)):Z.mode===Bn.View&&Q===Bn.Edit&&L(P({id:ne},Z))})},[e,n,A,L])},C7e=e=>P({},e,{editRows:{}}),S7e=(e,t)=>{v7e(e,t),w7e(e,t);const n=m.useRef({}),{isCellEditable:r}=t,o=m.useCallback(p=>Fg(p.rowNode)||!p.colDef.editable||!p.colDef.renderEditCell?!1:r?r(p):!0,[r]),i=(p,y,v,b)=>{if(!v){b();return}if(n.current[p]||(n.current[p]={}),n.current[p][y]){const[w]=n.current[p][y];clearTimeout(w)}const C=()=>{const[w]=n.current[p][y];clearTimeout(w),b(),delete n.current[p][y]},x=setTimeout(()=>{b(),delete n.current[p][y]},v);n.current[p][y]=[x,C]};m.useEffect(()=>{const p=n.current;return()=>{Object.entries(p).forEach(([y,v])=>{Object.keys(v).forEach(b=>{const[C]=p[y][b];clearTimeout(C),delete p[y][b]})})}},[]);const a=m.useCallback((p,y)=>{if(n.current[p]){if(!y)Object.keys(n.current[p]).forEach(v=>{const[,b]=n.current[p][v];b()});else if(n.current[p][y]){const[,v]=n.current[p][y];v()}}},[]),s=m.useCallback(p=>{const{id:y,field:v,debounceMs:b}=p;return new Promise(C=>{i(y,v,b,async()=>{const x=t.editMode===gs.Row?e.current.setRowEditingEditCellValue:e.current.setCellEditingEditCellValue;if(e.current.getCellMode(y,v)===Pn.Edit){const w=await x(p);C(w)}})})},[e,t.editMode]),l=m.useCallback((p,y)=>t.editMode===gs.Cell?e.current.getRowWithUpdatedValuesFromCellEditing(p,y):e.current.getRowWithUpdatedValuesFromRowEditing(p),[e,t.editMode]),u=m.useCallback((p,y)=>{var v,b;return(v=(b=bo(e.current.state)[p])==null?void 0:b[y])!=null?v:null},[e]),c={isCellEditable:o,setEditCellValue:s,getRowWithUpdatedValues:l,unstable_getEditCellMeta:u},f={runPendingEditCellValueMutation:a};Yt(e,c,"public"),Yt(e,f,"private")},$7e=(e,t,n)=>(n.current.caches.rows=j1({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),P({},e,{rows:mV({apiRef:n,rowCountProp:t.rowCount,loadingProp:t.loading,previousTree:null,previousTreeDepths:null})})),_7e=(e,t)=>{const n=ho(e,"useGridRows"),r=vd(e,t),o=m.useRef(Date.now()),i=LT(),a=m.useCallback(L=>{const O=Gl(e)[L];if(O)return O;const D=e.current.getRowNode(L);return D&&Fg(D)?{[Yf]:L}:null},[e]),s=t.getRowId,l=m.useCallback(L=>Yf in L?L[Yf]:s?s(L):L.id,[s]),u=m.useMemo(()=>r.rows.reduce((L,{id:O},D)=>(L[O]=D,L),{}),[r.rows]),c=m.useCallback(({cache:L,throttle:O})=>{const D=()=>{o.current=Date.now(),e.current.setState(B=>P({},B,{rows:mV({apiRef:e,rowCountProp:t.rowCount,loadingProp:t.loading,previousTree:wa(e),previousTreeDepths:g8(e)})})),e.current.publishEvent("rowsSet"),e.current.forceUpdate()};if(i.clear(),e.current.caches.rows=L,!O){D();return}const H=t.throttleRowsMs-(Date.now()-o.current);if(H>0){i.start(H,D);return}D()},[t.throttleRowsMs,t.rowCount,t.loading,e,i]),f=m.useCallback(L=>{n.debug(`Updating all rows, new length ${L.length}`);const O=j1({rows:L,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),D=e.current.caches.rows;O.rowsBeforePartialUpdates=D.rowsBeforePartialUpdates,c({cache:O,throttle:!0})},[n,t.getRowId,t.loading,t.rowCount,c,e]),p=m.useCallback(L=>{if(t.signature===cs.DataGrid&&L.length>1)throw new Error(["MUI: You can't update several rows at once in `apiRef.current.updateRows` on the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join(` -`));const O=[];L.forEach(H=>{const B=lb(H,t.getRowId,"A row was provided without id when calling updateRows():"),j=e.current.getRowNode(B);if((j==null?void 0:j.type)==="pinnedRow"){const W=e.current.caches.pinnedRows,U=W.idLookup[B];U&&(W.idLookup[B]=P({},U,H))}else O.push(H)});const D=ZAe({updates:O,getRowId:t.getRowId,previousCache:e.current.caches.rows});c({cache:D,throttle:!0})},[t.signature,t.getRowId,c,e]),y=m.useCallback(()=>{const L=t1(e),O=Gl(e);return new Map(L.map(D=>{var H;return[D,(H=O[D])!=null?H:{}]}))},[e]),v=m.useCallback(()=>o2(e),[e]),b=m.useCallback(()=>t1(e),[e]),C=m.useCallback(L=>u[L],[u]),x=m.useCallback((L,O)=>{const D=e.current.getRowNode(L);if(!D)throw new Error(`MUI: No row with id #${L} found`);if(D.type!=="group")throw new Error("MUI: Only group nodes can be expanded or collapsed");const H=P({},D,{childrenExpanded:O});e.current.setState(B=>P({},B,{rows:P({},B.rows,{tree:P({},B.rows.tree,{[L]:H})})})),e.current.forceUpdate(),e.current.publishEvent("rowExpansionChange",H)},[e]),w=m.useCallback(L=>{var O;return(O=wa(e)[L])!=null?O:null},[e]),S=m.useCallback(({skipAutoGeneratedRows:L=!0,groupId:O,applySorting:D,applyFiltering:H})=>{const B=wa(e);let j;if(D){const W=B[O];if(!W)return[];const U=$T(e);j=[];const Z=U.findIndex(Y=>Y===O)+1;for(let Y=Z;YW.depth;Y+=1){const se=U[Y];(!L||!Fg(B[se]))&&j.push(se)}}else j=MT(B,O,L);if(H){const W=lV(e);j=j.filter(U=>W[U]!==!1)}return j},[e]),$=m.useCallback((L,O)=>{const D=e.current.getRowNode(L);if(!D)throw new Error(`MUI: No row with id #${L} found`);if(D.parent!==xo)throw new Error("MUI: The row reordering do not support reordering of grouped rows yet");if(D.type!=="leaf")throw new Error("MUI: The row reordering do not support reordering of footer or grouping rows");e.current.setState(H=>{const B=wa(H,e.current.instanceId)[xo],j=B.children,W=j.findIndex(Z=>Z===L);if(W===-1||W===O)return H;n.debug(`Moving row ${L} to index ${O}`);const U=[...j];return U.splice(O,0,U.splice(W,1)[0]),P({},H,{rows:P({},H.rows,{tree:P({},H.rows.tree,{[xo]:P({},B,{children:U})})})})}),e.current.publishEvent("rowsSet")},[e,n]),T=m.useCallback((L,O)=>{if(t.signature===cs.DataGrid&&O.length>1)throw new Error(["MUI: You can't replace rows using `apiRef.current.unstable_replaceRows` on the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join(` -`));if(O.length===0)return;if(i2(e)>1)throw new Error("`apiRef.current.unstable_replaceRows` is not compatible with tree data and row grouping");const H=P({},wa(e)),B=P({},Gl(e)),j=P({},ib(e)),W=H[xo],U=[...W.children];for(let Y=0;YH[Y].type==="leaf");e.current.caches.rows.dataRowIdToModelLookup=B,e.current.caches.rows.dataRowIdToIdLookup=j,e.current.setState(Y=>P({},Y,{rows:P({},Y.rows,{dataRowIdToModelLookup:B,dataRowIdToIdLookup:j,dataRowIds:Z,tree:H})})),e.current.publishEvent("rowsSet")},[e,t.signature,t.getRowId]),k={getRow:a,getRowId:l,getRowModels:y,getRowsCount:v,getAllRowIds:b,setRows:f,updateRows:p,getRowNode:w,getRowIndexRelativeToVisibleRows:C,unstable_replaceRows:T},M={setRowIndex:$,setRowChildrenExpansion:x,getRowGroupChildren:S},I=m.useCallback(()=>{n.info("Row grouping pre-processing have changed, regenerating the row tree");let L;e.current.caches.rows.rowsBeforePartialUpdates===t.rows?L=P({},e.current.caches.rows,{updates:{type:"full",rows:t1(e)}}):L=j1({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),c({cache:L,throttle:!1})},[n,e,t.rows,t.getRowId,t.loading,t.rowCount,c]),N=m.useCallback(L=>{L==="rowTreeCreation"&&I()},[I]),E=m.useCallback(()=>{e.current.getActiveStrategy("rowTree")!==AAe(e)&&I()},[e,I]);vt(e,"activeStrategyProcessorChange",N),vt(e,"strategyAvailabilityChange",E);const A=m.useCallback(()=>{e.current.setState(L=>{const O=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:wa(L,e.current.instanceId),treeDepths:g8(L,e.current.instanceId),dataRowIds:t1(L,e.current.instanceId),dataRowIdToModelLookup:Gl(L,e.current.instanceId),dataRowIdToIdLookup:ib(L,e.current.instanceId)});return P({},L,{rows:P({},L.rows,O,{totalTopLevelRowCount:hV({tree:O.tree,rowCountProp:t.rowCount})})})}),e.current.publishEvent("rowsSet"),e.current.forceUpdate()},[e,t.rowCount]);NT(e,"hydrateRows",A),Yt(e,k,"public"),Yt(e,M,t.signature===cs.DataGrid?"private":"public");const z=m.useRef(!0);m.useEffect(()=>{if(z.current){z.current=!1;return}const L=e.current.caches.rows.rowsBeforePartialUpdates===t.rows,O=e.current.caches.rows.loadingPropBeforePartialUpdates===t.loading,D=e.current.caches.rows.rowCountPropBeforePartialUpdates===t.rowCount;if(L){O||(e.current.setState(H=>P({},H,{rows:P({},H.rows,{loading:t.loading})})),e.current.caches.rows.loadingPropBeforePartialUpdates=t.loading,e.current.forceUpdate()),D||(e.current.setState(H=>P({},H,{rows:P({},H.rows,{totalRowCount:Math.max(t.rowCount||0,H.rows.totalRowCount),totalTopLevelRowCount:Math.max(t.rowCount||0,H.rows.totalTopLevelRowCount)})})),e.current.caches.rows.rowCountPropBeforePartialUpdates=t.rowCount,e.current.forceUpdate());return}n.debug(`Updating all rows, new length ${t.rows.length}`),c({cache:j1({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),throttle:!1})},[t.rows,t.rowCount,t.getRowId,t.loading,n,c,e])},k7e=e=>{const t={[xo]:P({},XAe(),{children:e})};for(let n=0;n{const n=P({},e),r={};for(let a=0;a!r[a])),n[xo]=P({},o,{children:i}),{groupingName:Jc,tree:n,treeDepths:{0:i.length},dataRowIds:i}},M7e=e=>e.updates.type==="full"?k7e(e.updates.rows):P7e({previousTree:e.previousTree,actions:e.updates.actions}),T7e=e=>{mb(e,Jc,"rowTreeCreation",M7e)},oU=(e,t)=>e==null||Array.isArray(e)?e:t&&t[0]===e?t:[e],E7e=(e,t)=>{var n;return P({},e,{rowSelection:t.rowSelection?(n=oU(t.rowSelectionModel))!=null?n:[]:[]})},I7e=(e,t)=>{const n=ho(e,"useGridSelection"),r=O=>(...D)=>{t.rowSelection&&O(...D)},o=m.useMemo(()=>oU(t.rowSelectionModel,ji(e.current.state)),[e,t.rowSelectionModel]),i=m.useRef(null);e.current.registerControlState({stateId:"rowSelection",propModel:o,propOnChange:t.onRowSelectionModelChange,stateSelector:ji,changeEvent:"rowSelectionChange"});const{checkboxSelection:a,disableMultipleRowSelection:s,disableRowSelectionOnClick:l,isRowSelectable:u}=t,c=!s||a,f=vd(e,t),p=m.useCallback(O=>{var D;let H=O;const B=(D=i.current)!=null?D:O,j=e.current.isRowSelected(O);if(j){const W=Rm(e),U=W.findIndex(Y=>Y===B),Z=W.findIndex(Y=>Y===H);if(U===Z)return;U>Z?H=W[Z+1]:H=W[Z-1]}i.current=O,e.current.selectRowRange({startId:B,endId:H},!j)},[e]),y=m.useCallback(O=>{if(t.signature===cs.DataGrid&&!t.checkboxSelection&&Array.isArray(O)&&O.length>1)throw new Error(["MUI: `rowSelectionModel` can only contain 1 item in DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock multiple selection."].join(` -`));ji(e.current.state)!==O&&(n.debug("Setting selection model"),e.current.setState(H=>P({},H,{rowSelection:t.rowSelection?O:[]})),e.current.forceUpdate())},[e,n,t.rowSelection,t.signature,t.checkboxSelection]),v=m.useCallback(O=>ji(e.current.state).includes(O),[e]),b=m.useCallback(O=>{if(u&&!u(e.current.getRowParams(O)))return!1;const D=e.current.getRowNode(O);return!((D==null?void 0:D.type)==="footer"||(D==null?void 0:D.type)==="pinnedRow")},[e,u]),C=m.useCallback(()=>i8e(e),[e]),x=m.useCallback((O,D=!0,H=!1)=>{if(e.current.isRowSelectable(O))if(i.current=O,H)n.debug(`Setting selection for row ${O}`),e.current.setRowSelectionModel(D?[O]:[]);else{n.debug(`Toggling selection for row ${O}`);const j=ji(e.current.state).filter(U=>U!==O);D&&j.push(O),(j.length<2||c)&&e.current.setRowSelectionModel(j)}},[e,n,c]),w=m.useCallback((O,D=!0,H=!1)=>{n.debug("Setting selection for several rows");const B=O.filter(U=>e.current.isRowSelectable(U));let j;if(H)j=D?B:[];else{const U=P({},fb(e));B.forEach(Z=>{D?U[Z]=Z:delete U[Z]}),j=Object.values(U)}(j.length<2||c)&&e.current.setRowSelectionModel(j)},[e,n,c]),S=m.useCallback(({startId:O,endId:D},H=!0,B=!1)=>{if(!e.current.getRow(O)||!e.current.getRow(D))return;n.debug(`Expanding selection from row ${O} to row ${D}`);const j=Rm(e),W=j.indexOf(O),U=j.indexOf(D),[Z,Y]=W>U?[U,W]:[W,U],se=j.slice(Z,Y+1);e.current.selectRows(se,H,B)},[e,n]),$={selectRow:x,setRowSelectionModel:y,getSelectedRows:C,isRowSelected:v,isRowSelectable:b},T={selectRows:w,selectRowRange:S};Yt(e,$,"public"),Yt(e,T,t.signature===cs.DataGrid?"private":"public");const k=m.useCallback(()=>{if(t.keepNonExistentRowsSelected)return;const O=ji(e.current.state),D=Gl(e),H=P({},fb(e));let B=!1;O.forEach(j=>{D[j]||(delete H[j],B=!0)}),B&&e.current.setRowSelectionModel(Object.values(H))},[e,t.keepNonExistentRowsSelected]),M=m.useCallback((O,D)=>{const H=D.metaKey||D.ctrlKey,B=!a&&!H&&!z6e(D),j=!c||B,W=e.current.isRowSelected(O);j?e.current.selectRow(O,B?!0:!W,!0):e.current.selectRow(O,!W,!1)},[e,c,a]),I=m.useCallback((O,D)=>{var H;if(l)return;const B=(H=D.target.closest(`.${le.cell}`))==null?void 0:H.getAttribute("data-field");if(B===nh.field||B===DT)return;if(B){const W=e.current.getColumn(B);if((W==null?void 0:W.type)===f2)return}e.current.getRowNode(O.id).type!=="pinnedRow"&&(D.shiftKey&&(c||a)?p(O.id):M(O.id,D))},[l,c,a,e,p,M]),N=m.useCallback((O,D)=>{if(c&&D.shiftKey){var H;(H=window.getSelection())==null||H.removeAllRanges()}},[c]),E=m.useCallback((O,D)=>{D.nativeEvent.shiftKey?p(O.id):e.current.selectRow(O.id,O.value)},[e,p]),A=m.useCallback(O=>{const H=t.checkboxSelectionVisibleOnly&&t.pagination?RV(e):Rm(e);e.current.selectRows(H,O.value)},[e,t.checkboxSelectionVisibleOnly,t.pagination]),z=m.useCallback((O,D)=>{if(e.current.getCellMode(O.id,O.field)!==Pn.Edit&&D.currentTarget.contains(D.target)){if(db(D.key)&&D.shiftKey){const H=si(e);if(H&&H.id!==O.id){D.preventDefault();const B=e.current.isRowSelected(H.id);if(!c){e.current.selectRow(H.id,!B,!0);return}const j=e.current.getRowIndexRelativeToVisibleRows(H.id),W=e.current.getRowIndexRelativeToVisibleRows(O.id);let U,Z;j>W?B?(U=W,Z=j-1):(U=W,Z=j):B?(U=j+1,Z=W):(U=j,Z=W);const Y=f.rows.slice(U,Z+1).map(se=>se.id);e.current.selectRows(Y,!B);return}}if(D.key===" "&&D.shiftKey){D.preventDefault(),M(O.id,D);return}D.key==="a"&&(D.ctrlKey||D.metaKey)&&(D.preventDefault(),w(e.current.getAllRowIds(),!0))}},[e,M,w,f.rows,c]);vt(e,"sortedRowsSet",r(k)),vt(e,"rowClick",r(I)),vt(e,"rowSelectionCheckboxChange",r(E)),vt(e,"headerSelectionCheckboxChange",A),vt(e,"cellMouseDown",r(N)),vt(e,"cellKeyDown",r(z)),m.useEffect(()=>{o!==void 0&&e.current.setRowSelectionModel(o)},[e,o,t.rowSelection]),m.useEffect(()=>{t.rowSelection||e.current.setRowSelectionModel([])},[e,t.rowSelection]);const L=o!=null;m.useEffect(()=>{if(L||!t.rowSelection)return;const O=ji(e.current.state);if(b){const D=O.filter(H=>b(H));D.length{if(!t.rowSelection||L)return;const O=ji(e.current.state);!c&&O.length>1&&e.current.setRowSelectionModel([])},[e,c,a,L,t.rowSelection])},R7e={noRowsLabel:"No rows",noResultsOverlayLabel:"No results found.",toolbarDensity:"Density",toolbarDensityLabel:"Density",toolbarDensityCompact:"Compact",toolbarDensityStandard:"Standard",toolbarDensityComfortable:"Comfortable",toolbarColumns:"Columns",toolbarColumnsLabel:"Select columns",toolbarFilters:"Filters",toolbarFiltersLabel:"Show filters",toolbarFiltersTooltipHide:"Hide filters",toolbarFiltersTooltipShow:"Show filters",toolbarFiltersTooltipActive:e=>e!==1?`${e} active filters`:`${e} active filter`,toolbarQuickFilterPlaceholder:"Search…",toolbarQuickFilterLabel:"Search",toolbarQuickFilterDeleteIconLabel:"Clear",toolbarExport:"Export",toolbarExportLabel:"Export",toolbarExportCSV:"Download as CSV",toolbarExportPrint:"Print",toolbarExportExcel:"Download as Excel",columnsPanelTextFieldLabel:"Find column",columnsPanelTextFieldPlaceholder:"Column title",columnsPanelDragIconLabel:"Reorder column",columnsPanelShowAllButton:"Show all",columnsPanelHideAllButton:"Hide all",filterPanelAddFilter:"Add filter",filterPanelRemoveAll:"Remove all",filterPanelDeleteIconLabel:"Delete",filterPanelLogicOperator:"Logic operator",filterPanelOperator:"Operator",filterPanelOperatorAnd:"And",filterPanelOperatorOr:"Or",filterPanelColumns:"Columns",filterPanelInputLabel:"Value",filterPanelInputPlaceholder:"Filter value",filterOperatorContains:"contains",filterOperatorEquals:"equals",filterOperatorStartsWith:"starts with",filterOperatorEndsWith:"ends with",filterOperatorIs:"is",filterOperatorNot:"is not",filterOperatorAfter:"is after",filterOperatorOnOrAfter:"is on or after",filterOperatorBefore:"is before",filterOperatorOnOrBefore:"is on or before",filterOperatorIsEmpty:"is empty",filterOperatorIsNotEmpty:"is not empty",filterOperatorIsAnyOf:"is any of","filterOperator=":"=","filterOperator!=":"!=","filterOperator>":">","filterOperator>=":">=","filterOperator<":"<","filterOperator<=":"<=",headerFilterOperatorContains:"Contains",headerFilterOperatorEquals:"Equals",headerFilterOperatorStartsWith:"Starts with",headerFilterOperatorEndsWith:"Ends with",headerFilterOperatorIs:"Is",headerFilterOperatorNot:"Is not",headerFilterOperatorAfter:"Is after",headerFilterOperatorOnOrAfter:"Is on or after",headerFilterOperatorBefore:"Is before",headerFilterOperatorOnOrBefore:"Is on or before",headerFilterOperatorIsEmpty:"Is empty",headerFilterOperatorIsNotEmpty:"Is not empty",headerFilterOperatorIsAnyOf:"Is any of","headerFilterOperator=":"Equals","headerFilterOperator!=":"Not equals","headerFilterOperator>":"Greater than","headerFilterOperator>=":"Greater than or equal to","headerFilterOperator<":"Less than","headerFilterOperator<=":"Less than or equal to",filterValueAny:"any",filterValueTrue:"true",filterValueFalse:"false",columnMenuLabel:"Menu",columnMenuShowColumns:"Show columns",columnMenuManageColumns:"Manage columns",columnMenuFilter:"Filter",columnMenuHideColumn:"Hide column",columnMenuUnsort:"Unsort",columnMenuSortAsc:"Sort by ASC",columnMenuSortDesc:"Sort by DESC",columnHeaderFiltersTooltipActive:e=>e!==1?`${e} active filters`:`${e} active filter`,columnHeaderFiltersLabel:"Show filters",columnHeaderSortIconLabel:"Sort",footerRowSelected:e=>e!==1?`${e.toLocaleString()} rows selected`:`${e.toLocaleString()} row selected`,footerTotalRows:"Total Rows:",footerTotalVisibleRows:(e,t)=>`${e.toLocaleString()} of ${t.toLocaleString()}`,checkboxSelectionHeaderName:"Checkbox selection",checkboxSelectionSelectAllRows:"Select all rows",checkboxSelectionUnselectAllRows:"Unselect all rows",checkboxSelectionSelectRow:"Select row",checkboxSelectionUnselectRow:"Unselect row",booleanCellTrueLabel:"yes",booleanCellFalseLabel:"no",actionsCellMore:"more",pinToLeft:"Pin to left",pinToRight:"Pin to right",unpin:"Unpin",treeDataGroupingHeaderName:"Group",treeDataExpand:"see children",treeDataCollapse:"hide children",groupingColumnHeaderName:"Group",groupColumn:e=>`Group by ${e}`,unGroupColumn:e=>`Stop grouping by ${e}`,detailPanelToggle:"Detail panel toggle",expandDetailPanel:"Expand",collapseDetailPanel:"Collapse",MuiTablePagination:{},rowReorderingHeaderName:"Row reordering",aggregationMenuItemHeader:"Aggregation",aggregationFunctionLabelSum:"sum",aggregationFunctionLabelAvg:"avg",aggregationFunctionLabelMin:"min",aggregationFunctionLabelMax:"max",aggregationFunctionLabelSize:"size"},O7e=e=>{const{classes:t}=e;return m.useMemo(()=>qe({cellCheckbox:["cellCheckbox"],columnHeaderCheckbox:["columnHeaderCheckbox"]},Jt,t),[t])},A7e=(e,t)=>{const n={classes:t.classes},r=O7e(n),o=m.useCallback(i=>{const a=P({},nh,{cellClassName:r.cellCheckbox,headerClassName:r.columnHeaderCheckbox,headerName:e.current.getLocaleText("checkboxSelectionHeaderName")}),s=t.checkboxSelection,l=i.lookup[Il]!=null;return s&&!l?(i.lookup[Il]=a,i.orderedFields=[Il,...i.orderedFields]):!s&&l?(delete i.lookup[Il],i.orderedFields=i.orderedFields.filter(u=>u!==Il)):s&&l&&(i.lookup[Il]=P({},a,i.lookup[Il])),i},[e,r,t.checkboxSelection]);Ir(e,"hydrateColumns",o)},F7e=(e,t)=>{var n,r,o;const i=(n=(r=t.sortModel)!=null?r:(o=t.initialState)==null||(o=o.sorting)==null?void 0:o.sortModel)!=null?n:[];return P({},e,{sorting:{sortModel:OV(i,t.disableMultipleColumnsSorting),sortedRows:[]}})},L7e=(e,t)=>{var n;const r=ho(e,"useGridSorting");e.current.registerControlState({stateId:"sortModel",propModel:t.sortModel,propOnChange:t.onSortModelChange,stateSelector:Di,changeEvent:"sortModelChange"});const o=m.useCallback((k,M)=>{const I=Di(e),N=I.findIndex(A=>A.field===k);let E=[...I];return N>-1?M?E.splice(N,1,M):E.splice(N,1):E=[...I,M],E},[e]),i=m.useCallback((k,M)=>{var I;const E=Di(e).find(z=>z.field===k.field);if(E){var A;const z=M===void 0?w8((A=k.sortingOrder)!=null?A:t.sortingOrder,E.sort):M;return z==null?void 0:P({},E,{sort:z})}return{field:k.field,sort:M===void 0?w8((I=k.sortingOrder)!=null?I:t.sortingOrder):M}},[e,t.sortingOrder]),a=m.useCallback((k,M)=>M==null||M.sortable===!1?k:(M.sortingOrder||t.sortingOrder).some(N=>!!N)?[...k,"columnMenuSortItem"]:k,[t.sortingOrder]),s=m.useCallback(()=>{e.current.setState(k=>{if(t.sortingMode==="server")return r.debug("Skipping sorting rows as sortingMode = server"),P({},k,{sorting:P({},k.sorting,{sortedRows:MT(wa(e),xo,!1)})});const M=Di(k,e.current.instanceId),I=c8e(M,e),N=e.current.applyStrategyProcessor("sorting",{sortRowList:I});return P({},k,{sorting:P({},k.sorting,{sortedRows:N})})}),e.current.publishEvent("sortedRowsSet"),e.current.forceUpdate()},[e,r,t.sortingMode]),l=m.useCallback(k=>{Di(e)!==k&&(r.debug("Setting sort model"),e.current.setState(x8(k,t.disableMultipleColumnsSorting)),e.current.forceUpdate(),e.current.applySorting())},[e,r,t.disableMultipleColumnsSorting]),u=m.useCallback((k,M,I)=>{if(!k.sortable)return;const N=i(k,M);let E;!I||t.disableMultipleColumnsSorting?E=N?[N]:[]:E=o(k.field,N),e.current.setSortModel(E)},[e,o,i,t.disableMultipleColumnsSorting]),c=m.useCallback(()=>Di(e),[e]),f=m.useCallback(()=>_T(e).map(M=>M.model),[e]),p=m.useCallback(()=>$T(e),[e]),y=m.useCallback(k=>e.current.getSortedRowIds()[k],[e]);Yt(e,{getSortModel:c,getSortedRows:f,getSortedRowIds:p,getRowIdFromRowIndex:y,setSortModel:l,sortColumn:u,applySorting:s},"public");const b=m.useCallback((k,M)=>{var I;const N=Di(e);return!M.exportOnlyDirtyModels||t.sortModel!=null||((I=t.initialState)==null||(I=I.sorting)==null?void 0:I.sortModel)!=null||N.length>0?P({},k,{sorting:{sortModel:N}}):k},[e,t.sortModel,(n=t.initialState)==null||(n=n.sorting)==null?void 0:n.sortModel]),C=m.useCallback((k,M)=>{var I;const N=(I=M.stateToRestore.sorting)==null?void 0:I.sortModel;return N==null?k:(e.current.setState(x8(N,t.disableMultipleColumnsSorting)),P({},k,{callbacks:[...k.callbacks,e.current.applySorting]}))},[e,t.disableMultipleColumnsSorting]),x=m.useCallback(k=>{const M=wa(e),I=M[xo],N=k.sortRowList?k.sortRowList(I.children.map(E=>M[E])):[...I.children];return I.footerId!=null&&N.push(I.footerId),N},[e]);Ir(e,"exportState",b),Ir(e,"restoreState",C),mb(e,Jc,"sorting",x);const w=m.useCallback(({colDef:k},M)=>{const I=M.shiftKey||M.metaKey||M.ctrlKey;u(k,void 0,I)},[u]),S=m.useCallback(({colDef:k},M)=>{L6e(M.key)&&!M.ctrlKey&&!M.metaKey&&u(k,void 0,M.shiftKey)},[u]),$=m.useCallback(()=>{const k=Di(e),M=gd(e);if(k.length>0){const I=k.filter(N=>M[N.field]);I.length{k==="sorting"&&e.current.applySorting()},[e]);Ir(e,"columnMenu",a),vt(e,"columnHeaderClick",w),vt(e,"columnHeaderKeyDown",S),vt(e,"rowsSet",e.current.applySorting),vt(e,"columnsChange",$),vt(e,"activeStrategyProcessorChange",T),S0(()=>{e.current.applySorting()}),pn(()=>{t.sortModel!==void 0&&e.current.setSortModel(t.sortModel)},[e,t.sortModel])};function G8(e){const{clientHeight:t,scrollTop:n,offsetHeight:r,offsetTop:o}=e,i=o+r;if(r>t)return o;if(i-t>n)return i-t;if(o{const n=Xt(),r=ho(e,"useGridScroll"),o=e.current.columnHeadersElementRef,i=e.current.virtualScrollerRef,a=it(e,Tu),s=m.useCallback(f=>{const p=o2(e),y=Xr(e);if(!(f.rowIndex==null)&&p===0||y.length===0)return!1;r.debug(`Scrolling to cell at row ${f.rowIndex}, col: ${f.colIndex} `);let b={};if(f.colIndex!=null){const S=Pp(e);let $;if(typeof f.rowIndex<"u"){var C;const T=(C=a[f.rowIndex])==null?void 0:C.id,k=e.current.unstable_getCellColSpanInfo(T,f.colIndex);k&&!k.spannedByColSpan&&($=k.cellProps.width)}typeof $>"u"&&($=y[f.colIndex].computedWidth),b.left=G8({clientHeight:i.current.clientWidth,scrollTop:Math.abs(i.current.scrollLeft),offsetHeight:$,offsetTop:S[f.colIndex]})}if(f.rowIndex!=null){var x,w;const S=Dg(e.current.state),$=t8e(e),T=n8e(e),k=t.pagination?f.rowIndex-$*T:f.rowIndex,M=S.positions[k+1]?S.positions[k+1]-S.positions[k]:S.currentPageTotalHeight-S.positions[k],I=((x=i.current.querySelector(`.${le["pinnedRows--top"]}`))==null?void 0:x.clientHeight)||0,N=((w=i.current.querySelector(`.${le["pinnedRows--bottom"]}`))==null?void 0:w.clientHeight)||0;b.top=G8({clientHeight:i.current.clientHeight-I-N,scrollTop:i.current.scrollTop,offsetHeight:M,offsetTop:S.positions[k]})}return b=e.current.unstable_applyPipeProcessors("scrollToIndexes",b,f),typeof b.left!==void 0||typeof b.top!==void 0?(e.current.scroll(b),!0):!1},[r,e,i,t.pagination,a]),l=m.useCallback(f=>{if(i.current&&f.left!=null&&o.current){const p=n.direction==="rtl"?-1:1;o.current.scrollLeft=f.left,i.current.scrollLeft=p*f.left,r.debug(`Scrolling left: ${f.left}`)}i.current&&f.top!=null&&(i.current.scrollTop=f.top,r.debug(`Scrolling top: ${f.top}`)),r.debug("Scrolling, updating container, and viewport")},[i,n.direction,o,r]),u=m.useCallback(()=>i!=null&&i.current?{top:i.current.scrollTop,left:i.current.scrollLeft}:{top:0,left:0},[i]);Yt(e,{scroll:l,scrollToIndexes:s,getScrollPosition:u},"public")};function j7e(e,t){Yn(e,"columnHeaderClick",t.onColumnHeaderClick),Yn(e,"columnHeaderDoubleClick",t.onColumnHeaderDoubleClick),Yn(e,"columnHeaderOver",t.onColumnHeaderOver),Yn(e,"columnHeaderOut",t.onColumnHeaderOut),Yn(e,"columnHeaderEnter",t.onColumnHeaderEnter),Yn(e,"columnHeaderLeave",t.onColumnHeaderLeave),Yn(e,"cellClick",t.onCellClick),Yn(e,"cellDoubleClick",t.onCellDoubleClick),Yn(e,"cellKeyDown",t.onCellKeyDown),Yn(e,"preferencePanelClose",t.onPreferencePanelClose),Yn(e,"preferencePanelOpen",t.onPreferencePanelOpen),Yn(e,"menuOpen",t.onMenuOpen),Yn(e,"menuClose",t.onMenuClose),Yn(e,"rowDoubleClick",t.onRowDoubleClick),Yn(e,"rowClick",t.onRowClick),Yn(e,"stateChange",t.onStateChange)}const N7e=({content:e,container:t,scrollBarSize:n})=>{const r=e.width>t.width,o=e.height>t.height;let i=!1,a=!1;return(r||o)&&(i=r,a=e.height+(i?n:0)>t.height,a&&(i=e.width+n>t.width)),{hasScrollX:i,hasScrollY:a}};function z7e(e,t){const n=ho(e,"useResizeContainer"),r=m.useRef(!1),o=m.useRef(null),i=m.useRef(null),a=it(e,Dg),s=it(e,th),l=Math.floor(t.rowHeight*s),u=zT(e,t.columnHeaderHeight),c=m.useCallback(()=>{var M;const I=(M=e.current.rootElementRef)==null?void 0:M.current,N=ST(e),E=gV(e);if(!o.current)return;let A;if(t.scrollbarSize!=null)A=t.scrollbarSize;else if(!N||!I)A=0;else{const W=Gn(I).createElement("div");W.style.width="99px",W.style.height="99px",W.style.position="absolute",W.style.overflow="scroll",W.className="scrollDiv",I.appendChild(W),A=W.offsetWidth-W.clientWidth,I.removeChild(W)}let z,L,O;if(t.autoHeight)O=!1,L=Math.round(N)>Math.round(o.current.width),z={width:o.current.width,height:a.currentPageTotalHeight+(L?A:0)};else{z={width:o.current.width,height:Math.max(o.current.height-u,0)};const j=N7e({content:{width:Math.round(N),height:a.currentPageTotalHeight},container:{width:Math.round(z.width),height:z.height-E.top-E.bottom},scrollBarSize:A});O=j.hasScrollY,L=j.hasScrollX}const D={width:z.width-(O?A:0),height:z.height-(L?A:0)},H={viewportOuterSize:z,viewportInnerSize:D,hasScrollX:L,hasScrollY:O,scrollBarSize:A},B=i.current;i.current=H,(H.viewportInnerSize.width!==(B==null?void 0:B.viewportInnerSize.width)||H.viewportInnerSize.height!==(B==null?void 0:B.viewportInnerSize.height))&&e.current.publishEvent("viewportInnerSizeChange",H.viewportInnerSize)},[e,t.scrollbarSize,t.autoHeight,a.currentPageTotalHeight,u]),[f,p]=m.useState(),y=m.useMemo(()=>wu(p,60),[]),v=m.useRef();pn(()=>{f&&(c(),e.current.publishEvent("debouncedResize",o.current))},[e,f,c]);const b=m.useCallback(()=>{e.current.computeSizeAndPublishResizeEvent()},[e]),C=m.useCallback(()=>i.current,[]),x=m.useCallback(()=>{const M=e.current.getRootDimensions();if(!M)return 0;const I=pb(e,{pagination:t.pagination,paginationMode:t.paginationMode});if(t.getRowHeight){const E=e.current.getRenderContext(),A=E.lastRowIndex-E.firstRowIndex;return Math.min(A-1,I.rows.length)}const N=Math.floor(M.viewportInnerSize.height/l);return Math.min(N,I.rows.length)},[e,t.pagination,t.paginationMode,t.getRowHeight,l]),w=m.useCallback(()=>{var M,I,N;const E=(M=e.current.mainElementRef)==null?void 0:M.current;if(!E)return;const z=ea(E).getComputedStyle(E),L=parseFloat(z.height)||0,O=parseFloat(z.width)||0,D=L!==((I=v.current)==null?void 0:I.height),H=O!==((N=v.current)==null?void 0:N.width);if(!v.current||D||H){const B={width:O,height:L};e.current.publishEvent("resize",B),v.current=B}},[e]),S={resize:b,getRootDimensions:C},$={getViewportPageSize:x,updateGridDimensionsRef:c,computeSizeAndPublishResizeEvent:w};Yt(e,S,"public"),Yt(e,$,"private");const T=m.useRef(!0),k=m.useCallback(M=>{o.current=M;const I=/jsdom/.test(window.navigator.userAgent);if(M.height===0&&!r.current&&!t.autoHeight&&!I&&(n.error(["The parent DOM element of the data grid has an empty height.","Please make sure that this element has an intrinsic height.","The grid displays with a height of 0px.","","More details: https://mui.com/r/x-data-grid-no-dimensions."].join(` -`)),r.current=!0),M.width===0&&!r.current&&!I&&(n.error(["The parent DOM element of the data grid has an empty width.","Please make sure that this element has an intrinsic width.","The grid displays with a width of 0px.","","More details: https://mui.com/r/x-data-grid-no-dimensions."].join(` -`)),r.current=!0),T.current){p(M),T.current=!1;return}y(M)},[t.autoHeight,y,n]);pn(()=>c(),[c]),Yn(e,"sortedRowsSet",c),Yn(e,"paginationModelChange",c),Yn(e,"columnsChange",c),vt(e,"resize",k),Yn(e,"debouncedResize",t.onResize)}const B7e=["style"],H7e=["style"];function Xf(e,t,n=0,r=t.length){if(t.length<=0)return-1;if(n>=r)return n;const o=n+Math.floor((r-n)/2),i=t[o];return e<=i?Xf(e,t,n,o):Xf(e,t,o+1,r)}function W7e(e,t,n){let r=1;for(;n[Mp(e-n,r,o),Mp(t+n,r,o)],iU=(e,t)=>e===t?!0:e.firstRowIndex===t.firstRowIndex&&e.lastRowIndex===t.lastRowIndex&&e.firstColumnIndex===t.firstColumnIndex&&e.lastColumnIndex===t.lastColumnIndex,V7e={maxSize:3},U7e=e=>{var t,n;const r=Mu(),o=dt(),i=it(r,Xr),a=it(r,v8e),s=it(r,jV),{ref:l,onRenderZonePositioning:u,renderZoneMinColumnIndex:c=0,renderZoneMaxColumnIndex:f=i.length,getRowProps:p}=e,y=Xt(),v=it(r,Pp),b=it(r,ST),C=it(r,si),x=it(r,sb),w=it(r,Dg),S=it(r,fb),$=vd(r,o),T=m.useRef(null),k=m.useRef(null),M=on(l,k),[I,N]=m.useState(null),E=m.useRef(I),A=m.useRef({top:0,left:0}),[z,L]=m.useState({width:null,height:null}),O=m.useRef(b),[D,H]=m.useState(null),B=m.useRef(Object.create(null)),j=m.useRef(),W=m.useRef(),U=m.useRef(t2((ue,ce,Te,Le,Re,Oe)=>{let K;const ee=ue.slice(ce,Te);return Oe>-1&&(ce>Oe&&Oe>=Le||TeC!==null?i.findIndex(ue=>ue.field===C.field):-1,[C,i]),Y=m.useCallback(ue=>{var ce,Te;const Le=r.current.getLastMeasuredRowIndex();let Re=Le===1/0;(ce=$.range)!=null&&ce.lastRowIndex&&!Re&&(Re=Le>=$.range.lastRowIndex);const Oe=Mp(Le-(((Te=$.range)==null?void 0:Te.firstRowIndex)||0),0,w.positions.length);return Re||w.positions[Oe]>=ue?Xf(ue,w.positions):W7e(ue,w.positions,Oe)},[r,(t=$.range)==null?void 0:t.firstRowIndex,(n=$.range)==null?void 0:n.lastRowIndex,w.positions]),se=m.useCallback(()=>{if(!a)return{firstRowIndex:0,lastRowIndex:$.rows.length,firstColumnIndex:0,lastColumnIndex:i.length};const{top:ue,left:ce}=A.current,Te=Math.min(Y(ue),w.positions.length-1),Le=o.autoHeight?Te+$.rows.length:Y(ue+z.height);let Re=0,Oe=v.length;if(s){let K=!1;const[ee,pe]=Ll({firstIndex:Te,lastIndex:Le,minFirstIndex:0,maxLastIndex:$.rows.length,buffer:o.rowBuffer});for(let ye=ee;ye{a?(k.current.scrollLeft=0,k.current.scrollTop=0):T.current.style.transform="translate3d(0px, 0px, 0px)"},[a]),pn(()=>{L({width:k.current.clientWidth,height:k.current.clientHeight})},[w.currentPageTotalHeight]);const Q=m.useCallback(()=>{k.current&&L({width:k.current.clientWidth,height:k.current.clientHeight})},[]);vt(r,"debouncedResize",Q);const ne=m.useCallback(ue=>{const[ce,Te]=Ll({firstIndex:ue.firstRowIndex,lastIndex:ue.lastRowIndex,minFirstIndex:0,maxLastIndex:$.rows.length,buffer:o.rowBuffer}),[Le]=Ll({firstIndex:ue.firstColumnIndex,lastIndex:ue.lastColumnIndex,minFirstIndex:c,maxLastIndex:f,buffer:o.columnBuffer}),Re=Ok({firstColumnToRender:Le,apiRef:r,firstRowToRender:ce,lastRowToRender:Te,visibleRows:$.rows}),Oe=y.direction==="ltr"?1:-1,K=Dg(r.current.state).positions[ce],ee=Oe*Pp(r)[Re];T.current.style.transform=`translate3d(${ee}px, ${K}px, 0px)`,typeof u=="function"&&u({top:K,left:ee})},[r,$.rows,u,c,f,o.columnBuffer,o.rowBuffer,y.direction]),re=m.useCallback(()=>E.current,[]),ge=m.useCallback(ue=>{if(E.current&&iU(ue,E.current)){ne(ue);return}N(ue),ne(ue);const[ce,Te]=Ll({firstIndex:ue.firstRowIndex,lastIndex:ue.lastRowIndex,minFirstIndex:0,maxLastIndex:$.rows.length,buffer:o.rowBuffer});r.current.publishEvent("renderedRowsIntervalChange",{firstRowToRender:ce,lastRowToRender:Te}),E.current=ue},[r,N,E,$.rows.length,o.rowBuffer,ne]);pn(()=>{if(z.width==null)return;const ue=se();ge(ue);const{top:ce,left:Te}=A.current,Le={top:ce,left:Te,renderContext:ue};r.current.publishEvent("scrollPositionChange",Le)},[r,se,z.width,ge]);const xe=Dn(ue=>{const{scrollTop:ce,scrollLeft:Te}=ue.currentTarget;if(A.current.top=ce,A.current.left=Te,!E.current||ce<0||y.direction==="ltr"&&Te<0||y.direction==="rtl"&&Te>0)return;const Le=a?se():E.current,Re=Math.abs(Le.firstRowIndex-E.current.firstRowIndex),Oe=Math.abs(Le.lastRowIndex-E.current.lastRowIndex),K=Math.abs(Le.firstColumnIndex-E.current.firstColumnIndex),ee=Math.abs(Le.lastColumnIndex-E.current.lastColumnIndex),pe=Re>=o.rowThreshold||Oe>=o.rowThreshold||K>=o.columnThreshold||ee>=o.columnThreshold||O.current!==b;r.current.publishEvent("scrollPositionChange",{top:ce,left:Te,renderContext:pe?Le:E.current},ue),pe&&(bu.flushSync(()=>{ge(Le)}),O.current=b)}),fe=Dn(ue=>{r.current.publishEvent("virtualScrollerWheel",{},ue)}),Se=Dn(ue=>{r.current.publishEvent("virtualScrollerTouchMove",{},ue)}),de=m.useMemo(()=>C!==null?$.rows.findIndex(ue=>ue.id===C.id):-1,[C,$.rows]);vt(r,"rowMouseOver",(ue,ce)=>{var Te;ce.currentTarget.contains(ce.relatedTarget)||H((Te=ue.id)!=null?Te:null)}),vt(r,"rowMouseOut",(ue,ce)=>{ce.currentTarget.contains(ce.relatedTarget)||H(null)});const ie=(ue={renderContext:I})=>{var ce;const{onRowRender:Te,renderContext:Le,minFirstColumn:Re=c,maxLastColumn:Oe=f,availableSpace:K=z.width,rowIndexOffset:ee=0,position:pe="center"}=ue;if(!Le||K==null)return null;const ye=a?o.rowBuffer:0,De=a?o.columnBuffer:0,[Ae,Ee]=Ll({firstIndex:Le.firstRowIndex,lastIndex:Le.lastRowIndex,minFirstIndex:0,maxLastIndex:$.rows.length,buffer:ye}),Ce=[];if(ue.rows)ue.rows.forEach(ht=>{Ce.push(ht),r.current.calculateColSpan({rowId:ht.id,minFirstColumn:Re,maxLastColumn:Oe,columns:i})});else{if(!$.range)return null;for(let ht=Ae;ht-1){const ht=$.rows[de];(Ae>de||EeAe?Ce.push(ht):Ce.unshift(ht),r.current.calculateColSpan({rowId:ht.id,minFirstColumn:Re,maxLastColumn:Oe,columns:i}))}const[Ct,et]=Ll({firstIndex:Le.firstColumnIndex,lastIndex:Le.lastColumnIndex,minFirstIndex:Re,maxLastIndex:Oe,buffer:De}),Be=Ok({firstColumnToRender:Ct,apiRef:r,firstRowToRender:Ae,lastRowToRender:Ee,visibleRows:$.rows});let te=!1;(Be>Z||et=z.width,$e=m.useMemo(()=>{const ue=Math.max(w.currentPageTotalHeight,1);let ce=!1;k!=null&&k.current&&ue<=(k==null?void 0:k.current.clientHeight)&&(ce=!0);const Te={width:Pe?b:"auto",height:ue,minHeight:ce?"100%":"auto"};return o.autoHeight&&$.rows.length===0&&(Te.height=vV(r,o.rowHeight)),Te},[r,k,b,w.currentPageTotalHeight,Pe,o.autoHeight,o.rowHeight,$.rows.length]);m.useEffect(()=>{r.current.publishEvent("virtualScrollerContentSizeChange")},[r,$e]);const me=m.useMemo(()=>{const ue={};return Pe||(ue.overflowX="hidden"),o.autoHeight&&(ue.overflowY="hidden"),ue},[Pe,o.autoHeight]);return r.current.register("private",{getRenderContext:re}),{renderContext:I,updateRenderZonePosition:ne,getRows:ie,getRootProps:(ue={})=>P({ref:M,onScroll:xe,onWheel:fe,onTouchMove:Se},ue,{style:ue.style?P({},ue.style,me):me,role:"presentation"}),getContentProps:({style:ue}={})=>({style:ue?P({},ue,$e):$e,role:"presentation"}),getRenderZoneProps:()=>({ref:T,role:"rowgroup"})}},G7e=e=>{const{classes:t,headerAlign:n,isDragging:r,showColumnBorder:o,groupId:i}=e;return qe({root:["columnHeader",n==="left"&&"columnHeader--alignLeft",n==="center"&&"columnHeader--alignCenter",n==="right"&&"columnHeader--alignRight",r&&"columnHeader--moving",o&&"columnHeader--showColumnBorder",o&&"columnHeader--withRightBorder","withBorderColor",i===null?"columnHeader--emptyGroup":"columnHeader--filledGroup"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer","withBorderColor"],titleContainerContent:["columnHeaderTitleContainerContent"]},Jt,t)};function q7e(e){var t;const{groupId:n,width:r,depth:o,maxDepth:i,fields:a,height:s,colIndex:l,hasFocus:u,tabIndex:c,isLastColumn:f}=e,p=dt(),y=m.useRef(null),v=Wt(),b=it(v,iV),C=n?b[n]:{},{headerName:x=n??"",description:w="",headerAlign:S=void 0}=C;let $;const T=n&&((t=b[n])==null?void 0:t.renderHeaderGroup),k=m.useMemo(()=>({groupId:n,headerName:x,description:w,depth:o,maxDepth:i,fields:a,colIndex:l,isLastColumn:f}),[n,x,w,o,i,a,l,f]);n&&T&&($=T(k));const M=p.showColumnVerticalBorder,I=P({},e,{classes:p.classes,showColumnBorder:M,headerAlign:S,depth:o,isDragging:!1}),N=x??n,E=ln(),A=n===null?`empty-group-cell-${E}`:n,z=G7e(I);m.useLayoutEffect(()=>{if(u){const B=y.current.querySelector('[tabindex="0"]')||y.current;B==null||B.focus()}},[v,u]);const L=m.useCallback(H=>B=>{B.currentTarget.contains(B.target)&&v.current.publishEvent(H,k,B)},[v,k]),O=m.useMemo(()=>({onKeyDown:L("columnGroupHeaderKeyDown"),onFocus:L("columnGroupHeaderFocus"),onBlur:L("columnGroupHeaderBlur")}),[L]),D=typeof C.headerClassName=="function"?C.headerClassName(k):C.headerClassName;return g.jsx(_V,P({ref:y,classes:z,columnMenuOpen:!1,colIndex:l,height:s,isResizing:!1,sortDirection:null,hasFocus:!1,tabIndex:c,isDraggable:!1,headerComponent:$,headerClassName:D,description:w,elementId:A,width:r,columnMenuIconButton:null,columnTitleIconButtons:null,resizable:!1,label:N,"aria-colspan":a.length,"data-fields":`|-${a.join("-|-")}-|`},O))}const q8=ke("div",{name:"MuiDataGrid",slot:"ColumnHeaderRow",overridesResolver:(e,t)=>t.columnHeaderRow})(()=>({display:"flex"}));function K7e(e){return!!e.target}const Y7e=e=>{const{innerRef:t,minColumnIndex:n=0,visibleColumns:r,sortColumnLookup:o,filterColumnLookup:i,columnPositions:a,columnHeaderTabIndexState:s,columnGroupHeaderTabIndexState:l,columnHeaderFocus:u,columnGroupHeaderFocus:c,densityFactor:f,headerGroupingMaxDepth:p,columnMenuState:y,columnVisibility:v,columnGroupsHeaderStructure:b,hasOtherElementInTabSequence:C}=e,x=Xt(),[w,S]=m.useState(""),[$,T]=m.useState(""),k=Mu(),M=it(k,jV),I=dt(),N=m.useRef(null),E=on(t,N),[A,z]=m.useState(null),L=m.useRef(A),O=m.useRef(0),D=vd(k,I),H=zT(k,I.columnHeaderHeight),B=Math.floor(I.columnHeaderHeight*f),j=m.useCallback(Se=>{A&&Se&&iU(A,Se)||z(Se)},[A]);m.useEffect(()=>{k.current.columnHeadersContainerElementRef.current.scrollLeft=0},[k]);const W=m.useRef(t2(WDe,{equalityCheck:(Se,de)=>["firstColumnIndex","minColumnIndex","columnBuffer"].every(ie=>Se[ie]===de[ie])})),U=m.useCallback(Se=>{const[de,ie]=Ll({firstIndex:Se.firstRowIndex,lastIndex:Se.lastRowIndex,minFirstIndex:0,maxLastIndex:D.rows.length,buffer:I.rowBuffer}),Pe=W.current({firstColumnIndex:Se.firstColumnIndex,minColumnIndex:n,columnBuffer:I.columnBuffer,firstRowToRender:de,lastRowToRender:ie,apiRef:k,visibleRows:D.rows}),$e=x.direction==="ltr"?1:-1,me=Pe>0?O.current-$e*a[Pe]:O.current;N.current.style.transform=`translate3d(${-me}px, 0px, 0px)`},[a,n,I.columnBuffer,k,D.rows,I.rowBuffer,x.direction]);m.useLayoutEffect(()=>{A&&U(A)},[A,U]);const Z=m.useCallback(({left:Se,renderContext:de=null},ie)=>{var Pe,$e;if(!N.current||O.current===Se&&((Pe=L.current)==null?void 0:Pe.firstColumnIndex)===(de==null?void 0:de.firstColumnIndex)&&(($e=L.current)==null?void 0:$e.lastColumnIndex)===(de==null?void 0:de.lastColumnIndex))return;O.current=Se;let me=!1;de!==L.current||!L.current?(K7e(ie)?(bu.flushSync(()=>{j(de)}),me=!0):j(de),L.current=de):me=!0,de&&me&&U(de)},[U,j]),Y=m.useCallback(Se=>T(Se.field),[]),se=m.useCallback(()=>T(""),[]),Q=m.useCallback(Se=>S(Se.field),[]),ne=m.useCallback(()=>S(""),[]);vt(k,"columnResizeStart",Y),vt(k,"columnResizeStop",se),vt(k,"columnHeaderDragStart",Q),vt(k,"columnHeaderDragEnd",ne),vt(k,"scrollPositionChange",Z);const re=Se=>{const{renderContext:de=A,minFirstColumn:ie=n,maxLastColumn:Pe=r.length}=Se||{};if(!de)return null;const[$e,me]=Ll({firstIndex:de.firstRowIndex,lastIndex:de.lastRowIndex,minFirstIndex:0,maxLastIndex:D.rows.length,buffer:I.rowBuffer}),ue=M?W.current({firstColumnIndex:de.firstColumnIndex,minColumnIndex:ie,columnBuffer:I.columnBuffer,apiRef:k,firstRowToRender:$e,lastRowToRender:me,visibleRows:D.rows}):0,ce=M?Math.min(de.lastColumnIndex+I.columnBuffer,Pe):Pe;return{renderedColumns:r.slice(ue,ce),firstColumnToRender:ue,lastColumnToRender:ce,minFirstColumn:ie,maxLastColumn:Pe}},ge=(Se,de={})=>{const ie=re(Se);if(ie==null)return null;const{renderedColumns:Pe,firstColumnToRender:$e}=ie,me=[];for(let ue=0;ue{if(p===0)return null;const de=re(Se);if(de==null||de.renderedColumns.length===0)return null;const{firstColumnToRender:ie,lastColumnToRender:Pe}=de,$e=[],me=[];for(let Te=0;Teet===Oe&&Be.includes(Re)),ee=r[Pe-1].field,pe=(ce=k.current.unstable_getColumnGroupPath(ee)[Te])!=null?ce:null,ye=Le.findIndex(({groupId:et,columnFields:Be})=>et===pe&&Be.includes(ee)),De=Le.slice(K,ye+1).map(et=>P({},et,{columnFields:et.columnFields.filter(Be=>v[Be]!==!1)})).filter(et=>et.columnFields.length>0),Ae=De[0].columnFields.indexOf(Re),Ce=De[0].columnFields.slice(0,Ae).reduce((et,Be)=>{var te;const X=k.current.getColumn(Be);return et+((te=X.computedWidth)!=null?te:0)},0);let Qe=ie;const Ct=De.map(({groupId:et,columnFields:Be})=>{const te=c!==null&&c.depth===Te&&Be.includes(c.field),X=l!==null&&l.depth===Te&&Be.includes(l.field)?0:-1,oe={groupId:et,width:Be.reduce((Ie,Ve)=>Ie+k.current.getColumn(Ve).computedWidth,0),fields:Be,colIndex:Qe,hasFocus:te,tabIndex:X};return Qe+=Be.length,oe});me.push({leftOverflow:Ce,elements:Ct})}return me.forEach((Te,Le)=>{$e.push(g.jsx(q8,{style:{height:`${B}px`,transform:`translateX(-${Te.leftOverflow}px)`},role:"row","aria-rowindex":Le+1,ownerState:I,children:Te.elements.map(({groupId:Re,width:Oe,fields:K,colIndex:ee,hasFocus:pe,tabIndex:ye},De)=>g.jsx(q7e,{groupId:Re,width:Oe,fields:K,colIndex:ee,depth:Le,isLastColumn:ee===r.length-K.length,maxDepth:me.length,height:B,hasFocus:pe,tabIndex:ye},De))},Le))}),$e},fe={minHeight:H,maxHeight:H,lineHeight:`${B}px`};return{renderContext:A,getColumnHeaders:ge,getColumnsToRender:re,getColumnGroupHeaders:xe,isDragging:!!w,getRootProps:(Se={})=>P({style:fe},Se),getInnerProps:()=>({ref:E,role:"rowgroup"}),headerHeight:B}},X7e=["className"],Q7e=e=>{const{classes:t}=e;return qe({root:["columnHeaders","withBorderColor"]},Jt,t)},Z7e=Ar("div",{name:"MuiDataGrid",slot:"ColumnHeaders",overridesResolver:(e,t)=>t.columnHeaders})({position:"relative",overflow:"hidden",display:"flex",alignItems:"center",boxSizing:"border-box",borderBottom:"1px solid",borderTopLeftRadius:"var(--unstable_DataGrid-radius)",borderTopRightRadius:"var(--unstable_DataGrid-radius)"}),J7e=m.forwardRef(function(t,n){const{className:r}=t,o=be(t,X7e),i=dt(),a=Q7e(i);return g.jsx(Z7e,P({ref:n,className:ze(r,a.root),ownerState:i},o,{role:"presentation"}))}),eje=["isDragging","className"],tje=e=>{const{isDragging:t,hasScrollX:n,classes:r}=e;return qe({root:["columnHeadersInner",t&&"columnHeaderDropZone",n&&"columnHeadersInner--scrollable"]},Jt,r)},nje=Ar("div",{name:"MuiDataGrid",slot:"columnHeadersInner",overridesResolver:(e,t)=>[{[`&.${le.columnHeaderDropZone}`]:t.columnHeaderDropZone},t.columnHeadersInner]})(()=>({display:"flex",alignItems:"flex-start",flexDirection:"column",[`&.${le.columnHeaderDropZone} .${le.columnHeaderDraggableContainer}`]:{cursor:"move"},[`&.${le["columnHeadersInner--scrollable"]} .${le.columnHeader}:last-child`]:{borderRight:"none"}})),rje=m.forwardRef(function(t,n){var r,o;const{isDragging:i,className:a}=t,s=be(t,eje),l=Wt(),u=dt(),c=P({},u,{isDragging:i,hasScrollX:(r=(o=l.current.getRootDimensions())==null?void 0:o.hasScrollX)!=null?r:!1}),f=tje(c);return g.jsx(nje,P({ref:n,className:ze(a,f.root),ownerState:c},s))}),oje=["innerRef","className","visibleColumns","sortColumnLookup","filterColumnLookup","columnPositions","columnHeaderTabIndexState","columnGroupHeaderTabIndexState","columnHeaderFocus","columnGroupHeaderFocus","densityFactor","headerGroupingMaxDepth","columnMenuState","columnVisibility","columnGroupsHeaderStructure","hasOtherElementInTabSequence"],ije=m.forwardRef(function(t,n){const{innerRef:r,visibleColumns:o,sortColumnLookup:i,filterColumnLookup:a,columnPositions:s,columnHeaderTabIndexState:l,columnGroupHeaderTabIndexState:u,columnHeaderFocus:c,columnGroupHeaderFocus:f,densityFactor:p,headerGroupingMaxDepth:y,columnMenuState:v,columnVisibility:b,columnGroupsHeaderStructure:C,hasOtherElementInTabSequence:x}=t,w=be(t,oje),{isDragging:S,getRootProps:$,getInnerProps:T,getColumnHeaders:k,getColumnGroupHeaders:M}=Y7e({innerRef:r,visibleColumns:o,sortColumnLookup:i,filterColumnLookup:a,columnPositions:s,columnHeaderTabIndexState:l,columnGroupHeaderTabIndexState:u,columnHeaderFocus:c,columnGroupHeaderFocus:f,densityFactor:p,headerGroupingMaxDepth:y,columnMenuState:v,columnVisibility:b,columnGroupsHeaderStructure:C,hasOtherElementInTabSequence:x});return g.jsx(J7e,P({ref:n},$(w),{children:g.jsxs(rje,P({isDragging:S},T(),{children:[M(),k()]}))}))}),aje=u2(ije),sje=m.forwardRef(function(t,n){const o=Wt().current.getLocaleText("noResultsOverlayLabel");return g.jsx(IT,P({ref:n},t,{children:o}))}),lje=["sortingOrder"],uje=m.memo(function(t){const{sortingOrder:n}=t,r=be(t,lje),o=dt(),[i]=n,a=i==="asc"?o.slots.columnSortedAscendingIcon:o.slots.columnSortedDescendingIcon;return a?g.jsx(a,P({},r)):null}),cje=["native"];function dje(e){let{native:t}=e,n=be(e,cje);return t?g.jsx("option",P({},n)):g.jsx(Co,P({},n))}const fje={BooleanCellTrueIcon:j8e,BooleanCellFalseIcon:e$,ColumnMenuIcon:A8e,OpenFilterButtonIcon:P8e,FilterPanelDeleteIcon:e$,ColumnFilteredIcon:k8,ColumnSelectorIcon:T8e,ColumnUnsortedIcon:uje,ColumnSortedAscendingIcon:C8,ColumnSortedDescendingIcon:S8,ColumnResizeIcon:E8e,DensityCompactIcon:I8e,DensityStandardIcon:R8e,DensityComfortableIcon:O8e,ExportIcon:D8e,MoreActionsIcon:N8e,TreeDataCollapseIcon:_8,TreeDataExpandIcon:$8,GroupingCriteriaCollapseIcon:_8,GroupingCriteriaExpandIcon:$8,DetailPanelExpandIcon:P8,DetailPanelCollapseIcon:F8e,RowReorderIcon:M8,QuickFilterIcon:M8e,QuickFilterClearIcon:e$,ColumnMenuHideIcon:z8e,ColumnMenuSortAscendingIcon:C8,ColumnMenuSortDescendingIcon:S8,ColumnMenuFilterIcon:k8,ColumnMenuManageColumnsIcon:B8e,ColumnMenuClearIcon:H8e,LoadIcon:L8e,FilterPanelAddIcon:P8,FilterPanelRemoveAllIcon:W8e,ColumnReorderIcon:M8},pje=P({},fje,{BaseCheckbox:I_,BaseTextField:ru,BaseFormControl:uN,BaseSelect:LM,BaseSwitch:$N,BaseButton:fs,BaseIconButton:wo,BaseInputAdornment:cme,BaseTooltip:o0e,BasePopper:ad,BaseInputLabel:mN,BaseSelectOption:dje,BaseChip:Zj}),hje=pje,mje=P({},hje,{Cell:_k,SkeletonCell:nFe,ColumnHeaderFilterIconButton:b8e,ColumnMenu:o9e,ColumnHeaders:aje,Footer:TLe,FooterRowCount:jLe,Toolbar:null,PreferencesPanel:R9e,LoadingOverlay:ILe,NoResultsOverlay:sje,NoRowsOverlay:RLe,Pagination:ALe,FilterPanel:J9e,ColumnsPanel:k9e,Panel:I9e,Row:oDe}),aU=e=>{if(e!==void 0)return Object.keys(e).reduce((t,n)=>P({},t,{[`${n.charAt(0).toLowerCase()}${n.slice(1)}`]:e[n]}),{})};function gje({defaultSlots:e,slots:t,components:n}){const r=t??(n?aU(n):null);if(!r||Object.keys(r).length===0)return e;const o=P({},e);return Object.keys(r).forEach(i=>{const a=i;r[a]!==void 0&&(o[a]=r[a])}),o}const vje=["components","componentsProps"];function yje(e){var t;const n=Object.keys(e);if(!n.some(i=>i.startsWith("aria-")||i.startsWith("data-")))return e;const r={},o=(t=e.forwardedProps)!=null?t:{};for(let i=0;i{const{components:t,componentsProps:n}=e,r=be(e,vje);return[t,n,yje(r)]},[e])}const xje={disableMultipleColumnsFiltering:!0,disableMultipleColumnsSorting:!0,disableMultipleRowSelection:!0,throttleRowsMs:void 0,hideFooterRowCount:!1,pagination:!0,checkboxSelectionVisibleOnly:!1,disableColumnReorder:!0,disableColumnResize:!0,keepColumnPositionIfDraggedOutside:!1,signature:"DataGrid"},p2={autoHeight:!1,autoPageSize:!1,checkboxSelection:!1,checkboxSelectionVisibleOnly:!1,columnBuffer:3,rowBuffer:3,columnThreshold:3,rowThreshold:3,rowSelection:!0,density:"standard",disableColumnFilter:!1,disableColumnMenu:!1,disableColumnSelector:!1,disableDensitySelector:!1,disableEval:!1,disableMultipleColumnsFiltering:!1,disableMultipleRowSelection:!1,disableMultipleColumnsSorting:!1,disableRowSelectionOnClick:!1,disableVirtualization:!1,editMode:gs.Cell,filterMode:"client",filterDebounceMs:150,columnHeaderHeight:56,hideFooter:!1,hideFooterPagination:!1,hideFooterRowCount:!1,hideFooterSelectedRowCount:!1,ignoreDiacritics:!1,logger:console,logLevel:"error",pagination:!1,paginationMode:"client",rowHeight:52,pageSizeOptions:[25,50,100],rowSpacingType:"margin",showCellVerticalBorder:!1,showColumnVerticalBorder:!1,sortingOrder:["asc","desc",null],sortingMode:"client",throttleRowsMs:0,disableColumnReorder:!1,disableColumnResize:!1,keepNonExistentRowsSelected:!1,keepColumnPositionIfDraggedOutside:!1,unstable_ignoreValueFormatterDuringExport:!1,clipboardCopyCellDelimiter:" ",rowPositionsDebounceMs:166},wje=aU(mje),Cje=e=>{const[t,n,r]=bje($t({props:e,name:"MuiDataGrid"})),o=m.useMemo(()=>P({},R7e,r.localeText),[r.localeText]),i=m.useMemo(()=>gje({defaultSlots:wje,slots:r.slots,components:t}),[t,r.slots]);return m.useMemo(()=>{var a;return P({},p2,r,{localeText:o,slots:i,slotProps:(a=r.slotProps)!=null?a:n},xje)},[r,o,i,n])},Sje=e=>P({},e,{rowsMeta:{currentPageTotalHeight:0,positions:[]}}),K8=(e,t,n)=>typeof e=="number"&&e>0?e:t,$je=(e,t)=>{const{getRowHeight:n,getRowSpacing:r,getEstimatedRowHeight:o}=t,i=m.useRef(Object.create(null)),a=m.useRef(-1),s=m.useRef(!1),l=it(e,th),u=it(e,qr),c=it(e,IV),f=it(e,Di),p=vd(e,t),y=it(e,eh),v=K8(t.rowHeight,p2.rowHeight),b=Math.floor(v*l),C=m.useCallback(()=>{var z,L;s.current=!1;const O=B=>{i.current[B.id]||(i.current[B.id]={sizes:{baseCenter:b},isResized:!1,autoHeight:!1,needsFirstMeasurement:!0});const{isResized:j,needsFirstMeasurement:W,sizes:U}=i.current[B.id];let Z=typeof b=="number"&&b>0?b:52;const Y=U.baseCenter;if(j)Z=Y;else if(n){const ge=n(P({},B,{densityFactor:l}));if(ge==="auto"){if(W){const xe=o?o(P({},B,{densityFactor:l})):b;Z=xe??b}else Z=Y;s.current=!0,i.current[B.id].autoHeight=!0}else Z=K8(ge,b),i.current[B.id].needsFirstMeasurement=!1,i.current[B.id].autoHeight=!1}else i.current[B.id].needsFirstMeasurement=!1;const se={};for(const ge in U)/^base[A-Z]/.test(ge)&&(se[ge]=U[ge]);if(se.baseCenter=Z,r){var Q,ne;const ge=e.current.getRowIndexRelativeToVisibleRows(B.id),xe=r(P({},B,{isFirstVisible:ge===0,isLastVisible:ge===p.rows.length-1,indexRelativeToCurrentPage:ge}));se.spacingTop=(Q=xe.top)!=null?Q:0,se.spacingBottom=(ne=xe.bottom)!=null?ne:0}const re=e.current.unstable_applyPipeProcessors("rowHeight",se,B);return i.current[B.id].sizes=re,re},D=[],H=p.rows.reduce((B,j)=>{D.push(B);let W=0,U=0;const Z=O(j);for(const Y in Z){const se=Z[Y];/^base[A-Z]/.test(Y)?W=se>W?se:W:U+=se}return B+W+U},0);y==null||(z=y.top)==null||z.forEach(B=>{O(B)}),y==null||(L=y.bottom)==null||L.forEach(B=>{O(B)}),e.current.setState(B=>P({},B,{rowsMeta:{currentPageTotalHeight:H,positions:D}})),s.current||(a.current=1/0),e.current.forceUpdate()},[e,p.rows,b,n,r,o,y,l]),x=m.useCallback(z=>{const L=i.current[z];return L?L.sizes.baseCenter:b},[b]),w=z=>{var L;return(L=i.current[z])==null?void 0:L.sizes},S=m.useCallback((z,L)=>{i.current[z].sizes.baseCenter=L,i.current[z].isResized=!0,i.current[z].needsFirstMeasurement=!1,C()},[C]),$=m.useMemo(()=>wu(C,t.rowPositionsDebounceMs),[C,t.rowPositionsDebounceMs]),T=m.useCallback((z,L,O)=>{if(!i.current[z]||!i.current[z].autoHeight)return;const D=i.current[z].sizes[`base${je(O)}`]!==L;i.current[z].needsFirstMeasurement=!1,i.current[z].sizes[`base${je(O)}`]=L,D&&$()},[$]),k=m.useCallback(z=>{var L;return((L=i.current[z])==null?void 0:L.autoHeight)||!1},[]),M=m.useCallback(()=>a.current,[]),I=m.useCallback(z=>{s.current&&z>a.current&&(a.current=z)},[]),N=m.useCallback(()=>{i.current={},C()},[C]);m.useEffect(()=>{C()},[b,u,c,f,C]),NT(e,"rowHeight",C);const E={unstable_setLastMeasuredRowIndex:I,unstable_getRowHeight:x,unstable_getRowInternalSizes:w,unstable_setRowHeight:S,unstable_storeRowHeightMeasurement:T,resetRowHeights:N},A={getLastMeasuredRowIndex:M,rowHasAutoHeight:k};Yt(e,E,"public"),Yt(e,A,"private")},_je=e=>{const t=m.useCallback((o={})=>e.current.unstable_applyPipeProcessors("exportState",{},o),[e]),n=m.useCallback(o=>{e.current.unstable_applyPipeProcessors("restoreState",{callbacks:[]},{stateToRestore:o}).callbacks.forEach(a=>{a()}),e.current.forceUpdate()},[e]);Yt(e,{exportState:t,restoreState:n},"public")},kje=e=>{const t=m.useRef({}),n=m.useCallback((u,c,f)=>{const p=t.current;p[u]||(p[u]={}),p[u][c]=f},[]),r=m.useCallback((u,c)=>{var f;return(f=t.current[u])==null?void 0:f[c]},[]),o=m.useCallback(u=>{const{columnIndex:c,rowId:f,minFirstColumnIndex:p,maxLastColumnIndex:y,columns:v}=u,b=v.length,C=v[c],x=typeof C.colSpan=="function"?C.colSpan(e.current.getCellParams(f,C.field)):C.colSpan;if(!x||x===1)return n(f,c,{spannedByColSpan:!1,cellProps:{colSpan:1,width:C.computedWidth}}),{colSpan:1};let w=C.computedWidth;for(let S=1;S=p&&${for(let y=c;y1&&(y+=v.colSpan-1)}},[o]),a={unstable_getCellColSpanInfo:r},s={calculateColSpan:i};Yt(e,a,"public"),Yt(e,s,"private");const l=m.useCallback(()=>{t.current={}},[]);vt(e,"columnOrderChange",l)},sU=(e,t,n)=>{if(yV(e)){if(n[e.field]!==void 0)throw new Error(["MUI: columnGroupingModel contains duplicated field",`column field ${e.field} occurs two times in the grouping model:`,`- ${n[e.field].join(" > ")}`,`- ${t.join(" > ")}`].join(` -`));n[e.field]=t;return}const{groupId:r,children:o}=e;o.forEach(i=>{sU(i,[...t,r],n)})},Ak=e=>{if(!e)return{};const t={};return e.forEach(n=>{sU(n,[],t)}),t},Fk=(e,t,n)=>{const r=l=>{var u;return(u=t[l])!=null?u:[]},o=[],i=Math.max(...e.map(l=>r(l).length)),a=(l,u,c)=>nl(r(l).slice(0,c+1),r(u).slice(0,c+1)),s=(l,u)=>!!(n!=null&&n.left&&n.left.includes(l)&&!n.left.includes(u)||n!=null&&n.right&&!n.right.includes(l)&&n.right.includes(u));for(let l=0;l{var p;const y=(p=r(f)[l])!=null?p:null;if(c.length===0)return[{columnFields:[f],groupId:y}];const v=c[c.length-1],b=v.columnFields[v.columnFields.length-1];return v.groupId!==y||!a(b,f,l)||s(b,f)?[...c,{columnFields:[f],groupId:y}]:[...c.slice(0,c.length-1),{columnFields:[...v.columnFields,f],groupId:y}]},[]);o.push(u)}return o},Pje=["groupId","children"],BT=e=>{let t={};return e.forEach(n=>{if(yV(n))return;const{groupId:r,children:o}=n,i=be(n,Pje);if(!r)throw new Error("MUI: An element of the columnGroupingModel does not have either `field` or `groupId`.");o||console.warn(`MUI: group groupId=${r} has no children.`);const a=P({},i,{groupId:r}),s=BT(o);if(s[r]!==void 0||t[r]!==void 0)throw new Error(`MUI: The groupId ${r} is used multiple times in the columnGroupingModel.`);t=P({},t,s,{[r]:a})}),P({},t)},Mje=(e,t,n)=>{var r,o,i,a;if(!((r=t.experimentalFeatures)!=null&&r.columnGrouping))return e;const s=tl(n),l=n2(n),u=BT((o=t.columnGroupingModel)!=null?o:[]),c=Ak((i=t.columnGroupingModel)!=null?i:[]),f=Fk(s,c,(a=n.current.state.pinnedColumns)!=null?a:{}),p=l.length===0?0:Math.max(...l.map(y=>{var v,b;return(v=(b=c[y])==null?void 0:b.length)!=null?v:0}));return P({},e,{columnGrouping:{lookup:u,unwrappedGroupingModel:c,headerStructure:f,maxDepth:p}})},Tje=(e,t)=>{var n;const r=m.useCallback(l=>{var u;return(u=EAe(e)[l])!=null?u:[]},[e]),o=m.useCallback(()=>iV(e),[e]);Yt(e,{unstable_getColumnGroupPath:r,unstable_getAllGroupDetails:o},"public");const a=m.useCallback(()=>{var l;const u=Ak((l=t.columnGroupingModel)!=null?l:[]);e.current.setState(c=>{var f,p,y;const v=(f=(p=c.columns)==null?void 0:p.orderedFields)!=null?f:[],b=(y=c.pinnedColumns)!=null?y:{},C=Fk(v,u,b);return P({},c,{columnGrouping:P({},c.columnGrouping,{headerStructure:C})})})},[e,t.columnGroupingModel]),s=m.useCallback(l=>{var u,c,f,p;if(!((u=t.experimentalFeatures)!=null&&u.columnGrouping))return;const y=(c=(f=(p=e.current).getPinnedColumns)==null?void 0:f.call(p))!=null?c:{},v=tl(e),b=n2(e),C=BT(l??[]),x=Ak(l??[]),w=Fk(v,x,y),S=b.length===0?0:Math.max(...b.map($=>{var T,k;return(T=(k=x[$])==null?void 0:k.length)!=null?T:0}));e.current.setState($=>P({},$,{columnGrouping:{lookup:C,unwrappedGroupingModel:x,headerStructure:w,maxDepth:S}}))},[e,(n=t.experimentalFeatures)==null?void 0:n.columnGrouping]);vt(e,"columnIndexChange",a),vt(e,"columnsChange",()=>{s(t.columnGroupingModel)}),vt(e,"columnVisibilityModelChange",()=>{s(t.columnGroupingModel)}),m.useEffect(()=>{s(t.columnGroupingModel)},[s,t.columnGroupingModel])},Eje=(e,t)=>{const n=bDe(e,t);return A7e(n,t),T7e(n),Ao(E7e,n,t),Ao(VDe,n,t),Ao($7e,n,t),Ao(C7e,n,t),Ao(l7e,n,t),Ao(F7e,n,t),Ao(f7e,n,t),Ao(o7e,n,t),Ao(KDe,n,t),Ao(JDe,n,t),Ao(Sje,n,t),Ao(NDe,n,t),Ao(Mje,n,t),Ao(m8e,n,t),d7e(n,t),I7e(n,t),UDe(n,t),_7e(n,t),c6e(n,t),kje(n),Tje(n,t),S7e(n,t),u7e(n,t),p7e(n,t),s7e(n,t),L7e(n,t),YDe(n,t),e7e(n,t),$je(n,t),D7e(n,t),zDe(n),ZDe(n,t),r7e(n,t),jDe(n,t),z7e(n,t),j7e(n,t),_je(n),g8e(n,t),n},Ije=e=>{const{classes:t}=e;return qe({root:["virtualScroller"]},Jt,t)},Rje=Ar("div",{name:"MuiDataGrid",slot:"VirtualScroller",overridesResolver:(e,t)=>t.virtualScroller})({overflow:"auto",height:"100%",position:"relative","@media print":{overflow:"hidden"},zIndex:0}),Oje=m.forwardRef(function(t,n){const r=dt(),o=Ije(r);return g.jsx(Rje,P({ref:n},t,{className:ze(o.root,t.className),ownerState:r}))}),Aje=(e,t)=>{const{classes:n}=e;return qe({root:["virtualScrollerContent",t&&"virtualScrollerContent--overflowed"]},Jt,n)},Fje=Ar("div",{name:"MuiDataGrid",slot:"VirtualScrollerContent",overridesResolver:(e,t)=>t.virtualScrollerContent})({}),Lje=m.forwardRef(function(t,n){var r;const o=dt(),i=!o.autoHeight&&((r=t.style)==null?void 0:r.minHeight)==="auto",a=Aje(o,i);return g.jsx(Fje,P({ref:n},t,{ownerState:o,className:ze(a.root,t.className)}))}),Dje=["className"],jje=e=>{const{classes:t}=e;return qe({root:["virtualScrollerRenderZone"]},Jt,t)},Nje=Ar("div",{name:"MuiDataGrid",slot:"VirtualScrollerRenderZone",overridesResolver:(e,t)=>t.virtualScrollerRenderZone})({position:"absolute",display:"flex",flexDirection:"column"}),zje=m.forwardRef(function(t,n){const{className:r}=t,o=be(t,Dje),i=dt(),a=jje(i);return g.jsx(Nje,P({ref:n,className:ze(a.root,r),ownerState:i},o))}),Bje=["className"],Hje=m.forwardRef(function(t,n){const{className:r}=t,o=be(t,Bje),{getRootProps:i,getContentProps:a,getRenderZoneProps:s,getRows:l}=U7e({ref:n});return g.jsxs(Oje,P({className:r},i(o),{children:[g.jsx(r6e,{}),g.jsx(Lje,P({},a(),{children:g.jsx(zje,P({},s(),{children:l()}))}))]}))}),lU=m.forwardRef(function(t,n){const r=Cje(t),o=Eje(r.apiRef,r);return g.jsx(iDe,{privateApiRef:o,props:r,children:g.jsxs(sFe,P({className:r.className,style:r.style,sx:r.sx,ref:n},r.forwardedProps,{children:[g.jsx(ELe,{}),g.jsx(KAe,{VirtualScrollerComponent:Hje}),g.jsx(YAe,{})]}))})}),_s=m.memo(lU);p2.filterDebounceMs;p2.filterDebounceMs;lU.propTypes={apiRef:R.shape({current:R.object.isRequired}),"aria-label":R.string,"aria-labelledby":R.string,autoHeight:R.bool,autoPageSize:R.bool,cellModesModel:R.object,checkboxSelection:R.bool,classes:R.object,clipboardCopyCellDelimiter:R.string,columnBuffer:R.number,columnGroupingModel:R.arrayOf(R.object),columnHeaderHeight:R.number,columns:koe(R.array.isRequired),columnThreshold:R.number,columnVisibilityModel:R.object,components:R.object,componentsProps:R.object,density:R.oneOf(["comfortable","compact","standard"]),disableColumnFilter:R.bool,disableColumnMenu:R.bool,disableColumnSelector:R.bool,disableDensitySelector:R.bool,disableEval:R.bool,disableRowSelectionOnClick:R.bool,disableVirtualization:R.bool,editMode:R.oneOf(["cell","row"]),experimentalFeatures:R.shape({ariaV7:R.bool,columnGrouping:R.bool,warnIfFocusStateIsNotSynced:R.bool}),filterDebounceMs:R.number,filterMode:R.oneOf(["client","server"]),filterModel:R.shape({items:R.arrayOf(R.shape({field:R.string.isRequired,id:R.oneOfType([R.number,R.string]),operator:R.string.isRequired,value:R.any})).isRequired,logicOperator:R.oneOf(["and","or"]),quickFilterExcludeHiddenColumns:R.bool,quickFilterLogicOperator:R.oneOf(["and","or"]),quickFilterValues:R.array}),forwardedProps:R.object,getCellClassName:R.func,getDetailPanelContent:R.func,getEstimatedRowHeight:R.func,getRowClassName:R.func,getRowHeight:R.func,getRowId:R.func,getRowSpacing:R.func,hideFooter:R.bool,hideFooterPagination:R.bool,hideFooterSelectedRowCount:R.bool,ignoreDiacritics:R.bool,initialState:R.object,isCellEditable:R.func,isRowSelectable:R.func,keepNonExistentRowsSelected:R.bool,loading:R.bool,localeText:R.object,logger:R.shape({debug:R.func.isRequired,error:R.func.isRequired,info:R.func.isRequired,warn:R.func.isRequired}),logLevel:R.oneOf(["debug","error","info","warn",!1]),nonce:R.string,onCellClick:R.func,onCellDoubleClick:R.func,onCellEditStart:R.func,onCellEditStop:R.func,onCellKeyDown:R.func,onCellModesModelChange:R.func,onClipboardCopy:R.func,onColumnHeaderClick:R.func,onColumnHeaderDoubleClick:R.func,onColumnHeaderEnter:R.func,onColumnHeaderLeave:R.func,onColumnHeaderOut:R.func,onColumnHeaderOver:R.func,onColumnOrderChange:R.func,onColumnVisibilityModelChange:R.func,onFilterModelChange:R.func,onMenuClose:R.func,onMenuOpen:R.func,onPaginationModelChange:R.func,onPreferencePanelClose:R.func,onPreferencePanelOpen:R.func,onProcessRowUpdateError:R.func,onResize:R.func,onRowClick:R.func,onRowDoubleClick:R.func,onRowEditCommit:R.func,onRowEditStart:R.func,onRowEditStop:R.func,onRowModesModelChange:R.func,onRowSelectionModelChange:R.func,onSortModelChange:R.func,onStateChange:R.func,pageSizeOptions:R.arrayOf(R.oneOfType([R.number,R.shape({label:R.string.isRequired,value:R.number.isRequired})]).isRequired),pagination:e=>e.pagination===!1?new Error(["MUI: `` is not a valid prop.","Infinite scrolling is not available in the MIT version.","","You need to upgrade to DataGridPro or DataGridPremium component to disable the pagination."].join(` -`)):null,paginationMode:R.oneOf(["client","server"]),paginationModel:R.shape({page:R.number.isRequired,pageSize:R.number.isRequired}),processRowUpdate:R.func,rowBuffer:R.number,rowCount:R.number,rowHeight:R.number,rowModesModel:R.object,rowPositionsDebounceMs:R.number,rows:R.arrayOf(R.object).isRequired,rowSelection:R.bool,rowSelectionModel:R.oneOfType([R.arrayOf(R.oneOfType([R.number,R.string]).isRequired),R.number,R.string]),rowSpacingType:R.oneOf(["border","margin"]),rowThreshold:R.number,scrollbarSize:R.number,showCellVerticalBorder:R.bool,showColumnVerticalBorder:R.bool,slotProps:R.object,slots:R.object,sortingMode:R.oneOf(["client","server"]),sortingOrder:R.arrayOf(R.oneOf(["asc","desc"])),sortModel:R.arrayOf(R.shape({field:R.string.isRequired,sort:R.oneOf(["asc","desc"])})),sx:R.oneOfType([R.arrayOf(R.oneOfType([R.func,R.object,R.bool])),R.func,R.object]),unstable_ignoreValueFormatterDuringExport:R.oneOfType([R.shape({clipboardExport:R.bool,csvExport:R.bool}),R.bool])};const Wje=ke(e=>g.jsx(yN,{elevation:0,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},...e}))(({theme:e})=>({"& .MuiPaper-root":{borderRadius:6,marginTop:e.spacing(1),minWidth:180,color:e.palette.mode==="light"?"rgb(55, 65, 81)":e.palette.grey[300],boxShadow:"rgb(255, 255, 255) 0px 0px 0px 0px, rgba(0, 0, 0, 0.05) 0px 0px 0px 1px, rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05) 0px 4px 6px -2px","& .MuiMenu-list":{padding:"4px 0"},"& .MuiMenuItem-root":{"& .MuiSvgIcon-root":{fontSize:18,color:e.palette.text.secondary,marginRight:e.spacing(1.5)},"&:active":{backgroundColor:Lt(e.palette.primary.main,e.palette.action.selectedOpacity)}}}}));function ks(){const[e,t]=m.useState(null),n=!!e,r=i=>{t(i.currentTarget)},o=()=>{t(null)};return g.jsxs(g.Fragment,{children:[g.jsx(wo,{id:"demo-customized-button","aria-controls":n?"demo-customized-menu":void 0,"aria-haspopup":"true","aria-expanded":n?"true":void 0,onClick:r,children:g.jsx(ube,{})}),g.jsxs(Wje,{id:"demo-customized-menu",MenuListProps:{"aria-labelledby":"demo-customized-button"},anchorEl:e,open:n,onClose:o,children:[g.jsxs(Co,{onClick:o,disableRipple:!0,children:[g.jsx(u0,{}),"Edit"]}),g.jsxs(Co,{onClick:o,disableRipple:!0,children:[g.jsx(sbe,{}),"Duplicate"]}),g.jsx(aN,{sx:{my:.5}}),g.jsxs(Co,{onClick:o,disableRipple:!0,children:[g.jsx(ebe,{}),"Archive"]}),g.jsxs(Co,{onClick:o,disableRipple:!0,children:[g.jsx(lbe,{}),"More"]})]})]})}function Ps(){const e=Xt(),t=jn(e.palette.mode);return g.jsxs(yFe,{sx:{marginBottom:"1rem"},children:[g.jsx(iLe,{style:{color:t.primary[100]}}),g.jsx(dLe,{style:{color:t.primary[100]}}),g.jsx(sLe,{style:{color:t.primary[100]}}),g.jsx(bLe,{style:{color:t.primary[100]}}),g.jsx($Le,{style:{color:t.primary[100]}})]})}const Vje=[...cAe,{field:"options",headerName:"",sortable:!1,flex:1,minWidth:60,maxWidth:60,renderCell:()=>g.jsx(Ue,{children:g.jsx(ks,{})})}];function Uje(){return g.jsx(Ue,{sx:{height:400,width:"100%"},children:g.jsx(_s,{rows:dAe,columns:Vje,disableColumnFilter:!0,disableColumnSelector:!0,disableDensitySelector:!0,slots:{toolbar:Ps},slotProps:{filterPanel:{sx:{maxWidth:"100vw"}},toolbar:{showQuickFilter:!0}},editMode:"row",initialState:{columns:{columnVisibilityModel:{remainingTerm:!1}},filter:{filterModel:{items:[],quickFilterExcludeHiddenColumns:!0}},pagination:{paginationModel:{page:0,pageSize:10}}},pageSizeOptions:[5,10]})})}const Gje=()=>g.jsx(mr,{title:"Income Sources",content:g.jsx(Uje,{}),height:500});var HT={},qje=_u;Object.defineProperty(HT,"__esModule",{value:!0});var uU=HT.default=void 0,Kje=qje(ku()),Yje=g,Xje=(0,Kje.default)((0,Yje.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"AddOutlined");uU=HT.default=Xje;var WT={},Qje=_u;Object.defineProperty(WT,"__esModule",{value:!0});var cU=WT.default=void 0,Zje=Qje(ku()),Jje=g,eNe=(0,Zje.default)((0,Jje.jsx)("path",{d:"M18 4H6C3.79 4 2 5.79 2 8v8c0 2.21 1.79 4 4 4h12c2.21 0 4-1.79 4-4V8c0-2.21-1.79-4-4-4zm-1.86 9.77c-.24.2-.57.28-.88.2L4.15 11.25C4.45 10.52 5.16 10 6 10h12c.67 0 1.26.34 1.63.84l-3.49 2.93zM6 6h12c1.1 0 2 .9 2 2v.55c-.59-.34-1.27-.55-2-.55H6c-.73 0-1.41.21-2 .55V8c0-1.1.9-2 2-2z"}),"WalletOutlined");cU=WT.default=eNe;var tNe=function(t){return nNe(t)&&!rNe(t)};function nNe(e){return!!e&&typeof e=="object"}function rNe(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||aNe(e)}var oNe=typeof Symbol=="function"&&Symbol.for,iNe=oNe?Symbol.for("react.element"):60103;function aNe(e){return e.$$typeof===iNe}function sNe(e){return Array.isArray(e)?[]:{}}function gb(e,t){return t.clone!==!1&&t.isMergeableObject(e)?zg(sNe(e),e,t):e}function lNe(e,t,n){return e.concat(t).map(function(r){return gb(r,n)})}function uNe(e,t,n){var r={};return n.isMergeableObject(e)&&Object.keys(e).forEach(function(o){r[o]=gb(e[o],n)}),Object.keys(t).forEach(function(o){!n.isMergeableObject(t[o])||!e[o]?r[o]=gb(t[o],n):r[o]=zg(e[o],t[o],n)}),r}function zg(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||lNe,n.isMergeableObject=n.isMergeableObject||tNe;var r=Array.isArray(t),o=Array.isArray(e),i=r===o;return i?r?n.arrayMerge(e,t,n):uNe(e,t,n):gb(t,n)}zg.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,o){return zg(r,o,n)},{})};var Lk=zg,cNe=typeof global=="object"&&global&&global.Object===Object&&global;const dU=cNe;var dNe=typeof self=="object"&&self&&self.Object===Object&&self,fNe=dU||dNe||Function("return this")();const Ms=fNe;var pNe=Ms.Symbol;const mu=pNe;var fU=Object.prototype,hNe=fU.hasOwnProperty,mNe=fU.toString,Qh=mu?mu.toStringTag:void 0;function gNe(e){var t=hNe.call(e,Qh),n=e[Qh];try{e[Qh]=void 0;var r=!0}catch{}var o=mNe.call(e);return r&&(t?e[Qh]=n:delete e[Qh]),o}var vNe=Object.prototype,yNe=vNe.toString;function bNe(e){return yNe.call(e)}var xNe="[object Null]",wNe="[object Undefined]",Y8=mu?mu.toStringTag:void 0;function yd(e){return e==null?e===void 0?wNe:xNe:Y8&&Y8 in Object(e)?gNe(e):bNe(e)}function pU(e,t){return function(n){return e(t(n))}}var CNe=pU(Object.getPrototypeOf,Object);const VT=CNe;function bd(e){return e!=null&&typeof e=="object"}var SNe="[object Object]",$Ne=Function.prototype,_Ne=Object.prototype,hU=$Ne.toString,kNe=_Ne.hasOwnProperty,PNe=hU.call(Object);function X8(e){if(!bd(e)||yd(e)!=SNe)return!1;var t=VT(e);if(t===null)return!0;var n=kNe.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&hU.call(n)==PNe}var Q8=Array.isArray,Z8=Object.keys,MNe=Object.prototype.hasOwnProperty,TNe=typeof Element<"u";function Dk(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){var n=Q8(e),r=Q8(t),o,i,a;if(n&&r){if(i=e.length,i!=t.length)return!1;for(o=i;o--!==0;)if(!Dk(e[o],t[o]))return!1;return!0}if(n!=r)return!1;var s=e instanceof Date,l=t instanceof Date;if(s!=l)return!1;if(s&&l)return e.getTime()==t.getTime();var u=e instanceof RegExp,c=t instanceof RegExp;if(u!=c)return!1;if(u&&c)return e.toString()==t.toString();var f=Z8(e);if(i=f.length,i!==Z8(t).length)return!1;for(o=i;o--!==0;)if(!MNe.call(t,f[o]))return!1;if(TNe&&e instanceof Element&&t instanceof Element)return e===t;for(o=i;o--!==0;)if(a=f[o],!(a==="_owner"&&e.$$typeof)&&!Dk(e[a],t[a]))return!1;return!0}return e!==e&&t!==t}var ENe=function(t,n){try{return Dk(t,n)}catch(r){if(r.message&&r.message.match(/stack|recursion/i)||r.number===-2146828260)return console.warn("Warning: react-fast-compare does not handle circular references.",r.name,r.message),!1;throw r}};const Qu=Or(ENe);var INe=!0;function RNe(e,t){if(!INe){if(e)return;var n="Warning: "+t;typeof console<"u"&&console.warn(n);try{throw Error(n)}catch{}}}function ONe(){this.__data__=[],this.size=0}function mU(e,t){return e===t||e!==e&&t!==t}function h2(e,t){for(var n=e.length;n--;)if(mU(e[n][0],t))return n;return-1}var ANe=Array.prototype,FNe=ANe.splice;function LNe(e){var t=this.__data__,n=h2(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():FNe.call(t,n,1),--this.size,!0}function DNe(e){var t=this.__data__,n=h2(t,e);return n<0?void 0:t[n][1]}function jNe(e){return h2(this.__data__,e)>-1}function NNe(e,t){var n=this.__data__,r=h2(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function pl(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=Gze}var qze="[object Arguments]",Kze="[object Array]",Yze="[object Boolean]",Xze="[object Date]",Qze="[object Error]",Zze="[object Function]",Jze="[object Map]",eBe="[object Number]",tBe="[object Object]",nBe="[object RegExp]",rBe="[object Set]",oBe="[object String]",iBe="[object WeakMap]",aBe="[object ArrayBuffer]",sBe="[object DataView]",lBe="[object Float32Array]",uBe="[object Float64Array]",cBe="[object Int8Array]",dBe="[object Int16Array]",fBe="[object Int32Array]",pBe="[object Uint8Array]",hBe="[object Uint8ClampedArray]",mBe="[object Uint16Array]",gBe="[object Uint32Array]",Qn={};Qn[lBe]=Qn[uBe]=Qn[cBe]=Qn[dBe]=Qn[fBe]=Qn[pBe]=Qn[hBe]=Qn[mBe]=Qn[gBe]=!0;Qn[qze]=Qn[Kze]=Qn[aBe]=Qn[Yze]=Qn[sBe]=Qn[Xze]=Qn[Qze]=Qn[Zze]=Qn[Jze]=Qn[eBe]=Qn[tBe]=Qn[nBe]=Qn[rBe]=Qn[oBe]=Qn[iBe]=!1;function vBe(e){return bd(e)&&CU(e.length)&&!!Qn[yd(e)]}function UT(e){return function(t){return e(t)}}var SU=typeof pi=="object"&&pi&&!pi.nodeType&&pi,Om=SU&&typeof hi=="object"&&hi&&!hi.nodeType&&hi,yBe=Om&&Om.exports===SU,o$=yBe&&dU.process,bBe=function(){try{var e=Om&&Om.require&&Om.require("util").types;return e||o$&&o$.binding&&o$.binding("util")}catch{}}();const Tp=bBe;var o9=Tp&&Tp.isTypedArray,xBe=o9?UT(o9):vBe;const wBe=xBe;var CBe=Object.prototype,SBe=CBe.hasOwnProperty;function $U(e,t){var n=P0(e),r=!n&&Dze(e),o=!n&&!r&&wU(e),i=!n&&!r&&!o&&wBe(e),a=n||r||o||i,s=a?Rze(e.length,String):[],l=s.length;for(var u in e)(t||SBe.call(e,u))&&!(a&&(u=="length"||o&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Uze(u,l)))&&s.push(u);return s}var $Be=Object.prototype;function GT(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||$Be;return e===n}var _Be=pU(Object.keys,Object);const kBe=_Be;var PBe=Object.prototype,MBe=PBe.hasOwnProperty;function TBe(e){if(!GT(e))return kBe(e);var t=[];for(var n in Object(e))MBe.call(e,n)&&n!="constructor"&&t.push(n);return t}function _U(e){return e!=null&&CU(e.length)&&!gU(e)}function qT(e){return _U(e)?$U(e):TBe(e)}function EBe(e,t){return e&&g2(t,qT(t),e)}function IBe(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var RBe=Object.prototype,OBe=RBe.hasOwnProperty;function ABe(e){if(!k0(e))return IBe(e);var t=GT(e),n=[];for(var r in e)r=="constructor"&&(t||!OBe.call(e,r))||n.push(r);return n}function KT(e){return _U(e)?$U(e,!0):ABe(e)}function FBe(e,t){return e&&g2(t,KT(t),e)}var kU=typeof pi=="object"&&pi&&!pi.nodeType&&pi,i9=kU&&typeof hi=="object"&&hi&&!hi.nodeType&&hi,LBe=i9&&i9.exports===kU,a9=LBe?Ms.Buffer:void 0,s9=a9?a9.allocUnsafe:void 0;function DBe(e,t){if(t)return e.slice();var n=e.length,r=s9?s9(n):new e.constructor(n);return e.copy(r),r}function PU(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n=0)&&(n[o]=e[o]);return n}var v2=m.createContext(void 0);v2.displayName="FormikContext";var TWe=v2.Provider;v2.Consumer;function EWe(){var e=m.useContext(v2);return e||RNe(!1),e}var Fi=function(t){return typeof t=="function"},y2=function(t){return t!==null&&typeof t=="object"},IWe=function(t){return String(Math.floor(Number(t)))===t},i$=function(t){return Object.prototype.toString.call(t)==="[object String]"},RWe=function(t){return m.Children.count(t)===0},a$=function(t){return y2(t)&&Fi(t.then)};function ii(e,t,n,r){r===void 0&&(r=0);for(var o=DU(t);e&&r=0?[]:{}}}return(i===0?e:o)[a[i]]===n?e:(n===void 0?delete o[a[i]]:o[a[i]]=n,i===0&&n===void 0&&delete r[a[i]],r)}function NU(e,t,n,r){n===void 0&&(n=new WeakMap),r===void 0&&(r={});for(var o=0,i=Object.keys(e);o0?ee.map(function(ye){return E(ye,ii(K,ye))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(pe).then(function(ye){return ye.reduce(function(De,Ae,Ee){return Ae==="DO_NOT_DELETE_YOU_WILL_BE_FIRED"||Ae&&(De=Mc(De,ee[Ee],Ae)),De},{})})},[E]),z=m.useCallback(function(K){return Promise.all([A(K),p.validationSchema?N(K):{},p.validate?I(K):{}]).then(function(ee){var pe=ee[0],ye=ee[1],De=ee[2],Ae=Lk.all([pe,ye,De],{arrayMerge:jWe});return Ae})},[p.validate,p.validationSchema,A,I,N]),L=Ai(function(K){return K===void 0&&(K=k.values),M({type:"SET_ISVALIDATING",payload:!0}),z(K).then(function(ee){return x.current&&(M({type:"SET_ISVALIDATING",payload:!1}),M({type:"SET_ERRORS",payload:ee})),ee})});m.useEffect(function(){a&&x.current===!0&&Qu(y.current,p.initialValues)&&L(y.current)},[a,L]);var O=m.useCallback(function(K){var ee=K&&K.values?K.values:y.current,pe=K&&K.errors?K.errors:v.current?v.current:p.initialErrors||{},ye=K&&K.touched?K.touched:b.current?b.current:p.initialTouched||{},De=K&&K.status?K.status:C.current?C.current:p.initialStatus;y.current=ee,v.current=pe,b.current=ye,C.current=De;var Ae=function(){M({type:"RESET_FORM",payload:{isSubmitting:!!K&&!!K.isSubmitting,errors:pe,touched:ye,status:De,values:ee,isValidating:!!K&&!!K.isValidating,submitCount:K&&K.submitCount&&typeof K.submitCount=="number"?K.submitCount:0}})};if(p.onReset){var Ee=p.onReset(k.values,Pe);a$(Ee)?Ee.then(Ae):Ae()}else Ae()},[p.initialErrors,p.initialStatus,p.initialTouched,p.onReset]);m.useEffect(function(){x.current===!0&&!Qu(y.current,p.initialValues)&&u&&(y.current=p.initialValues,O(),a&&L(y.current))},[u,p.initialValues,O,a,L]),m.useEffect(function(){u&&x.current===!0&&!Qu(v.current,p.initialErrors)&&(v.current=p.initialErrors||Vu,M({type:"SET_ERRORS",payload:p.initialErrors||Vu}))},[u,p.initialErrors]),m.useEffect(function(){u&&x.current===!0&&!Qu(b.current,p.initialTouched)&&(b.current=p.initialTouched||n1,M({type:"SET_TOUCHED",payload:p.initialTouched||n1}))},[u,p.initialTouched]),m.useEffect(function(){u&&x.current===!0&&!Qu(C.current,p.initialStatus)&&(C.current=p.initialStatus,M({type:"SET_STATUS",payload:p.initialStatus}))},[u,p.initialStatus,p.initialTouched]);var D=Ai(function(K){if(w.current[K]&&Fi(w.current[K].validate)){var ee=ii(k.values,K),pe=w.current[K].validate(ee);return a$(pe)?(M({type:"SET_ISVALIDATING",payload:!0}),pe.then(function(ye){return ye}).then(function(ye){M({type:"SET_FIELD_ERROR",payload:{field:K,value:ye}}),M({type:"SET_ISVALIDATING",payload:!1})})):(M({type:"SET_FIELD_ERROR",payload:{field:K,value:pe}}),Promise.resolve(pe))}else if(p.validationSchema)return M({type:"SET_ISVALIDATING",payload:!0}),N(k.values,K).then(function(ye){return ye}).then(function(ye){M({type:"SET_FIELD_ERROR",payload:{field:K,value:ii(ye,K)}}),M({type:"SET_ISVALIDATING",payload:!1})});return Promise.resolve()}),H=m.useCallback(function(K,ee){var pe=ee.validate;w.current[K]={validate:pe}},[]),B=m.useCallback(function(K){delete w.current[K]},[]),j=Ai(function(K,ee){M({type:"SET_TOUCHED",payload:K});var pe=ee===void 0?o:ee;return pe?L(k.values):Promise.resolve()}),W=m.useCallback(function(K){M({type:"SET_ERRORS",payload:K})},[]),U=Ai(function(K,ee){var pe=Fi(K)?K(k.values):K;M({type:"SET_VALUES",payload:pe});var ye=ee===void 0?n:ee;return ye?L(pe):Promise.resolve()}),Z=m.useCallback(function(K,ee){M({type:"SET_FIELD_ERROR",payload:{field:K,value:ee}})},[]),Y=Ai(function(K,ee,pe){M({type:"SET_FIELD_VALUE",payload:{field:K,value:ee}});var ye=pe===void 0?n:pe;return ye?L(Mc(k.values,K,ee)):Promise.resolve()}),se=m.useCallback(function(K,ee){var pe=ee,ye=K,De;if(!i$(K)){K.persist&&K.persist();var Ae=K.target?K.target:K.currentTarget,Ee=Ae.type,Ce=Ae.name,Qe=Ae.id,Ct=Ae.value,et=Ae.checked,Be=Ae.outerHTML,te=Ae.options,X=Ae.multiple;pe=ee||Ce||Qe,ye=/number|range/.test(Ee)?(De=parseFloat(Ct),isNaN(De)?"":De):/checkbox/.test(Ee)?zWe(ii(k.values,pe),et,Ct):te&&X?NWe(te):Ct}pe&&Y(pe,ye)},[Y,k.values]),Q=Ai(function(K){if(i$(K))return function(ee){return se(ee,K)};se(K)}),ne=Ai(function(K,ee,pe){ee===void 0&&(ee=!0),M({type:"SET_FIELD_TOUCHED",payload:{field:K,value:ee}});var ye=pe===void 0?o:pe;return ye?L(k.values):Promise.resolve()}),re=m.useCallback(function(K,ee){K.persist&&K.persist();var pe=K.target,ye=pe.name,De=pe.id,Ae=pe.outerHTML,Ee=ee||ye||De;ne(Ee,!0)},[ne]),ge=Ai(function(K){if(i$(K))return function(ee){return re(ee,K)};re(K)}),xe=m.useCallback(function(K){Fi(K)?M({type:"SET_FORMIK_STATE",payload:K}):M({type:"SET_FORMIK_STATE",payload:function(){return K}})},[]),fe=m.useCallback(function(K){M({type:"SET_STATUS",payload:K})},[]),Se=m.useCallback(function(K){M({type:"SET_ISSUBMITTING",payload:K})},[]),de=Ai(function(){return M({type:"SUBMIT_ATTEMPT"}),L().then(function(K){var ee=K instanceof Error,pe=!ee&&Object.keys(K).length===0;if(pe){var ye;try{if(ye=$e(),ye===void 0)return}catch(De){throw De}return Promise.resolve(ye).then(function(De){return x.current&&M({type:"SUBMIT_SUCCESS"}),De}).catch(function(De){if(x.current)throw M({type:"SUBMIT_FAILURE"}),De})}else if(x.current&&(M({type:"SUBMIT_FAILURE"}),ee))throw K})}),ie=Ai(function(K){K&&K.preventDefault&&Fi(K.preventDefault)&&K.preventDefault(),K&&K.stopPropagation&&Fi(K.stopPropagation)&&K.stopPropagation(),de().catch(function(ee){console.warn("Warning: An unhandled error was caught from submitForm()",ee)})}),Pe={resetForm:O,validateForm:L,validateField:D,setErrors:W,setFieldError:Z,setFieldTouched:ne,setFieldValue:Y,setStatus:fe,setSubmitting:Se,setTouched:j,setValues:U,setFormikState:xe,submitForm:de},$e=Ai(function(){return c(k.values,Pe)}),me=Ai(function(K){K&&K.preventDefault&&Fi(K.preventDefault)&&K.preventDefault(),K&&K.stopPropagation&&Fi(K.stopPropagation)&&K.stopPropagation(),O()}),ue=m.useCallback(function(K){return{value:ii(k.values,K),error:ii(k.errors,K),touched:!!ii(k.touched,K),initialValue:ii(y.current,K),initialTouched:!!ii(b.current,K),initialError:ii(v.current,K)}},[k.errors,k.touched,k.values]),ce=m.useCallback(function(K){return{setValue:function(pe,ye){return Y(K,pe,ye)},setTouched:function(pe,ye){return ne(K,pe,ye)},setError:function(pe){return Z(K,pe)}}},[Y,ne,Z]),Te=m.useCallback(function(K){var ee=y2(K),pe=ee?K.name:K,ye=ii(k.values,pe),De={name:pe,value:ye,onChange:Q,onBlur:ge};if(ee){var Ae=K.type,Ee=K.value,Ce=K.as,Qe=K.multiple;Ae==="checkbox"?Ee===void 0?De.checked=!!ye:(De.checked=!!(Array.isArray(ye)&&~ye.indexOf(Ee)),De.value=Ee):Ae==="radio"?(De.checked=ye===Ee,De.value=Ee):Ce==="select"&&Qe&&(De.value=De.value||[],De.multiple=!0)}return De},[ge,Q,k.values]),Le=m.useMemo(function(){return!Qu(y.current,k.values)},[y.current,k.values]),Re=m.useMemo(function(){return typeof s<"u"?Le?k.errors&&Object.keys(k.errors).length===0:s!==!1&&Fi(s)?s(p):s:k.errors&&Object.keys(k.errors).length===0},[s,Le,k.errors,p]),Oe=Dr({},k,{initialValues:y.current,initialErrors:v.current,initialTouched:b.current,initialStatus:C.current,handleBlur:ge,handleChange:Q,handleReset:me,handleSubmit:ie,resetForm:O,setErrors:W,setFormikState:xe,setFieldTouched:ne,setFieldValue:Y,setFieldError:Z,setStatus:fe,setSubmitting:Se,setTouched:j,setValues:U,submitForm:de,validateForm:L,validateField:D,isValid:Re,dirty:Le,unregisterField:B,registerField:H,getFieldProps:Te,getFieldMeta:ue,getFieldHelpers:ce,validateOnBlur:o,validateOnChange:n,validateOnMount:a});return Oe}function FWe(e){var t=AWe(e),n=e.component,r=e.children,o=e.render,i=e.innerRef;return m.useImperativeHandle(i,function(){return t}),m.createElement(TWe,{value:t},n?m.createElement(n,t):o?o(t):r?Fi(r)?r(t):RWe(r)?null:m.Children.only(r):null)}function LWe(e){var t={};if(e.inner){if(e.inner.length===0)return Mc(t,e.path,e.message);for(var o=e.inner,n=Array.isArray(o),r=0,o=n?o:o[Symbol.iterator]();;){var i;if(n){if(r>=o.length)break;i=o[r++]}else{if(r=o.next(),r.done)break;i=r.value}var a=i;ii(t,a.path)||(t=Mc(t,a.path,a.message))}}return t}function DWe(e,t,n,r){n===void 0&&(n=!1);var o=Hk(e);return t[n?"validateSync":"validate"](o,{abortEarly:!1,context:r||o})}function Hk(e){var t=Array.isArray(e)?[]:{};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=String(n);Array.isArray(e[r])===!0?t[r]=e[r].map(function(o){return Array.isArray(o)===!0||X8(o)?Hk(o):o!==""?o:void 0}):X8(e[r])?t[r]=Hk(e[r]):t[r]=e[r]!==""?e[r]:void 0}return t}function jWe(e,t,n){var r=e.slice();return t.forEach(function(i,a){if(typeof r[a]>"u"){var s=n.clone!==!1,l=s&&n.isMergeableObject(i);r[a]=l?Lk(Array.isArray(i)?[]:{},i,n):i}else n.isMergeableObject(i)?r[a]=Lk(e[a],i,n):e.indexOf(i)===-1&&r.push(i)}),r}function NWe(e){return Array.from(e).filter(function(t){return t.selected}).map(function(t){return t.value})}function zWe(e,t,n){if(typeof e=="boolean")return!!t;var r=[],o=!1,i=-1;if(Array.isArray(e))r=e,i=e.indexOf(n),o=i>=0;else if(!n||n=="true"||n=="false")return!!t;return t&&n&&!o?r.concat(n):o?r.slice(0,i).concat(r.slice(i+1)):r}var BWe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?m.useLayoutEffect:m.useEffect;function Ai(e){var t=m.useRef(e);return BWe(function(){t.current=e}),m.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var WWe=/[^.^\]^[]+|(?=\[\]|\.\.)/g,zU=/^\d+$/,VWe=/^\d/,UWe=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,GWe=/^\s*(['"]?)(.*?)(\1)\s*$/,e3=512,S9=new Cd(e3),$9=new Cd(e3),_9=new Cd(e3),Tc={Cache:Cd,split:Wk,normalizePath:s$,setter:function(e){var t=s$(e);return $9.get(e)||$9.set(e,function(r,o){for(var i=0,a=t.length,s=r;ie.match(QWe)||[],x2=e=>e[0].toUpperCase()+e.slice(1),n3=(e,t)=>b2(e).join(t).toLowerCase(),BU=e=>b2(e).reduce((t,n)=>`${t}${t?n[0].toUpperCase()+n.slice(1).toLowerCase():n.toLowerCase()}`,""),ZWe=e=>x2(BU(e)),JWe=e=>n3(e,"_"),eVe=e=>n3(e,"-"),tVe=e=>x2(n3(e," ")),nVe=e=>b2(e).map(x2).join(" ");var l$={words:b2,upperFirst:x2,camelCase:BU,pascalCase:ZWe,snakeCase:JWe,kebabCase:eVe,sentenceCase:tVe,titleCase:nVe},r3={exports:{}};r3.exports=function(e){return HU(rVe(e),e)};r3.exports.array=HU;function HU(e,t){var n=e.length,r=new Array(n),o={},i=n,a=oVe(t),s=iVe(e);for(t.forEach(function(u){if(!s.has(u[0])||!s.has(u[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});i--;)o[i]||l(e[i],i,new Set);return r;function l(u,c,f){if(f.has(u)){var p;try{p=", node was:"+JSON.stringify(u)}catch{p=""}throw new Error("Cyclic dependency"+p)}if(!s.has(u))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(u));if(!o[c]){o[c]=!0;var y=a.get(u)||new Set;if(y=Array.from(y),c=y.length){f.add(u);do{var v=y[--c];l(v,s.get(v),f)}while(c);f.delete(u)}r[--n]=u}}}function rVe(e){for(var t=new Set,n=0,r=e.length;n"",fVe=/^Symbol\((.*)\)(.*)$/;function pVe(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function k9(e,t=!1){if(e==null||e===!0||e===!1)return""+e;const n=typeof e;if(n==="number")return pVe(e);if(n==="string")return t?`"${e}"`:e;if(n==="function")return"[Function "+(e.name||"anonymous")+"]";if(n==="symbol")return dVe.call(e).replace(fVe,"Symbol($1)");const r=lVe.call(e).slice(8,-1);return r==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):r==="Error"||e instanceof Error?"["+uVe.call(e)+"]":r==="RegExp"?cVe.call(e):null}function au(e,t){let n=k9(e,t);return n!==null?n:JSON.stringify(e,function(r,o){let i=k9(this[r],t);return i!==null?i:o},2)}function WU(e){return e==null?[]:[].concat(e)}let VU,hVe=/\$\{\s*(\w+)\s*\}/g;VU=Symbol.toStringTag;class No extends Error{static formatError(t,n){const r=n.label||n.path||"this";return r!==n.path&&(n=Object.assign({},n,{path:r})),typeof t=="string"?t.replace(hVe,(o,i)=>au(n[i])):typeof t=="function"?t(n):t}static isError(t){return t&&t.name==="ValidationError"}constructor(t,n,r,o,i){super(),this.value=void 0,this.path=void 0,this.type=void 0,this.errors=void 0,this.params=void 0,this.inner=void 0,this[VU]="Error",this.name="ValidationError",this.value=n,this.path=r,this.type=o,this.errors=[],this.inner=[],WU(t).forEach(a=>{if(No.isError(a)){this.errors.push(...a.errors);const s=a.inner.length?a.inner:[a];this.inner.push(...s)}else this.errors.push(a)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0],!i&&Error.captureStackTrace&&Error.captureStackTrace(this,No)}}let Wa={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:n,originalValue:r})=>{const o=r!=null&&r!==n?` (cast from the value \`${au(r,!0)}\`).`:".";return t!=="mixed"?`${e} must be a \`${t}\` type, but the final value was: \`${au(n,!0)}\``+o:`${e} must match the configured type. The validated value was: \`${au(n,!0)}\``+o}},ha={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},Rl={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},Vk={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},mVe={isValue:"${path} field must be ${value}"},Uk={noUnknown:"${path} field has unspecified keys: ${unknown}"},gVe={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},vVe={notType:e=>{const{path:t,value:n,spec:r}=e,o=r.types.length;if(Array.isArray(n)){if(n.lengtho)return`${t} tuple value has too many items, expected a length of ${o} but got ${n.length} for value: \`${au(n,!0)}\``}return No.formatError(Wa.notType,e)}};Object.assign(Object.create(null),{mixed:Wa,string:ha,number:Rl,date:Vk,object:Uk,array:gVe,boolean:mVe,tuple:vVe});const o3=e=>e&&e.__isYupSchema__;class vb{static fromOptions(t,n){if(!n.then&&!n.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:r,then:o,otherwise:i}=n,a=typeof r=="function"?r:(...s)=>s.every(l=>l===r);return new vb(t,(s,l)=>{var u;let c=a(...s)?o:i;return(u=c==null?void 0:c(l))!=null?u:l})}constructor(t,n){this.fn=void 0,this.refs=t,this.refs=t,this.fn=n}resolve(t,n){let r=this.refs.map(i=>i.getValue(n==null?void 0:n.value,n==null?void 0:n.parent,n==null?void 0:n.context)),o=this.fn(r,t,n);if(o===void 0||o===t)return t;if(!o3(o))throw new TypeError("conditions must return a schema object");return o.resolve(n)}}const r1={context:"$",value:"."};class Sd{constructor(t,n={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,typeof t!="string")throw new TypeError("ref must be a string, got: "+t);if(this.key=t.trim(),t==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===r1.context,this.isValue=this.key[0]===r1.value,this.isSibling=!this.isContext&&!this.isValue;let r=this.isContext?r1.context:this.isValue?r1.value:"";this.path=this.key.slice(r.length),this.getter=this.path&&Tc.getter(this.path,!0),this.map=n.map}getValue(t,n,r){let o=this.isContext?r:this.isValue?t:n;return this.getter&&(o=this.getter(o||{})),this.map&&(o=this.map(o)),o}cast(t,n){return this.getValue(t,n==null?void 0:n.parent,n==null?void 0:n.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(t){return t&&t.__isYupRef}}Sd.prototype.__isYupRef=!0;const Xs=e=>e==null;function rf(e){function t({value:n,path:r="",options:o,originalValue:i,schema:a},s,l){const{name:u,test:c,params:f,message:p,skipAbsent:y}=e;let{parent:v,context:b,abortEarly:C=a.spec.abortEarly,disableStackTrace:x=a.spec.disableStackTrace}=o;function w(A){return Sd.isRef(A)?A.getValue(n,v,b):A}function S(A={}){var z;const L=Object.assign({value:n,originalValue:i,label:a.spec.label,path:A.path||r,spec:a.spec},f,A.params);for(const D of Object.keys(L))L[D]=w(L[D]);const O=new No(No.formatError(A.message||p,L),n,L.path,A.type||u,(z=A.disableStackTrace)!=null?z:x);return O.params=L,O}const $=C?s:l;let T={path:r,parent:v,type:u,from:o.from,createError:S,resolve:w,options:o,originalValue:i,schema:a};const k=A=>{No.isError(A)?$(A):A?l(null):$(S())},M=A=>{No.isError(A)?$(A):s(A)};if(y&&Xs(n))return k(!0);let N;try{var E;if(N=c.call(T,n,T),typeof((E=N)==null?void 0:E.then)=="function"){if(o.sync)throw new Error(`Validation test of type: "${T.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(N).then(k,M)}}catch(A){M(A);return}k(N)}return t.OPTIONS=e,t}function yVe(e,t,n,r=n){let o,i,a;return t?(Tc.forEach(t,(s,l,u)=>{let c=l?s.slice(1,s.length-1):s;e=e.resolve({context:r,parent:o,value:n});let f=e.type==="tuple",p=u?parseInt(c,10):0;if(e.innerType||f){if(f&&!u)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${a}" must contain an index to the tuple element, e.g. "${a}[0]"`);if(n&&p>=n.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${s}, in the path: ${t}. because there is no value at that index. `);o=n,n=n&&n[p],e=f?e.spec.types[p]:e.innerType}if(!u){if(!e.fields||!e.fields[c])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${a} which is a type: "${e.type}")`);o=n,n=n&&n[c],e=e.fields[c]}i=c,a=l?"["+s+"]":"."+s}),{schema:e,parent:o,parentPath:i}):{parent:o,parentPath:t,schema:e}}class yb extends Set{describe(){const t=[];for(const n of this.values())t.push(Sd.isRef(n)?n.describe():n);return t}resolveAll(t){let n=[];for(const r of this.values())n.push(t(r));return n}clone(){return new yb(this.values())}merge(t,n){const r=this.clone();return t.forEach(o=>r.add(o)),n.forEach(o=>r.delete(o)),r}}function Ef(e,t=new Map){if(o3(e)||!e||typeof e!="object")return e;if(t.has(e))return t.get(e);let n;if(e instanceof Date)n=new Date(e.getTime()),t.set(e,n);else if(e instanceof RegExp)n=new RegExp(e),t.set(e,n);else if(Array.isArray(e)){n=new Array(e.length),t.set(e,n);for(let r=0;r{this.typeError(Wa.notType)}),this.type=t.type,this._typeCheck=t.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},t==null?void 0:t.spec),this.withMutation(n=>{n.nonNullable()})}get _type(){return this.type}clone(t){if(this._mutate)return t&&Object.assign(this.spec,t),this;const n=Object.create(Object.getPrototypeOf(this));return n.type=this.type,n._typeCheck=this._typeCheck,n._whitelist=this._whitelist.clone(),n._blacklist=this._blacklist.clone(),n.internalTests=Object.assign({},this.internalTests),n.exclusiveTests=Object.assign({},this.exclusiveTests),n.deps=[...this.deps],n.conditions=[...this.conditions],n.tests=[...this.tests],n.transforms=[...this.transforms],n.spec=Ef(Object.assign({},this.spec,t)),n}label(t){let n=this.clone();return n.spec.label=t,n}meta(...t){if(t.length===0)return this.spec.meta;let n=this.clone();return n.spec.meta=Object.assign(n.spec.meta||{},t[0]),n}withMutation(t){let n=this._mutate;this._mutate=!0;let r=t(this);return this._mutate=n,r}concat(t){if(!t||t===this)return this;if(t.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${t.type}`);let n=this,r=t.clone();const o=Object.assign({},n.spec,r.spec);return r.spec=o,r.internalTests=Object.assign({},n.internalTests,r.internalTests),r._whitelist=n._whitelist.merge(t._whitelist,t._blacklist),r._blacklist=n._blacklist.merge(t._blacklist,t._whitelist),r.tests=n.tests,r.exclusiveTests=n.exclusiveTests,r.withMutation(i=>{t.tests.forEach(a=>{i.test(a.OPTIONS)})}),r.transforms=[...n.transforms,...r.transforms],r}isType(t){return t==null?!!(this.spec.nullable&&t===null||this.spec.optional&&t===void 0):this._typeCheck(t)}resolve(t){let n=this;if(n.conditions.length){let r=n.conditions;n=n.clone(),n.conditions=[],n=r.reduce((o,i)=>i.resolve(o,t),n),n=n.resolve(t)}return n}resolveOptions(t){var n,r,o,i;return Object.assign({},t,{from:t.from||[],strict:(n=t.strict)!=null?n:this.spec.strict,abortEarly:(r=t.abortEarly)!=null?r:this.spec.abortEarly,recursive:(o=t.recursive)!=null?o:this.spec.recursive,disableStackTrace:(i=t.disableStackTrace)!=null?i:this.spec.disableStackTrace})}cast(t,n={}){let r=this.resolve(Object.assign({value:t},n)),o=n.assert==="ignore-optionality",i=r._cast(t,n);if(n.assert!==!1&&!r.isType(i)){if(o&&Xs(i))return i;let a=au(t),s=au(i);throw new TypeError(`The value of ${n.path||"field"} could not be cast to a value that satisfies the schema type: "${r.type}". - -attempted value: ${a} -`+(s!==a?`result of cast: ${s}`:""))}return i}_cast(t,n){let r=t===void 0?t:this.transforms.reduce((o,i)=>i.call(this,o,t,this),t);return r===void 0&&(r=this.getDefault(n)),r}_validate(t,n={},r,o){let{path:i,originalValue:a=t,strict:s=this.spec.strict}=n,l=t;s||(l=this._cast(l,Object.assign({assert:!1},n)));let u=[];for(let c of Object.values(this.internalTests))c&&u.push(c);this.runTests({path:i,value:l,originalValue:a,options:n,tests:u},r,c=>{if(c.length)return o(c,l);this.runTests({path:i,value:l,originalValue:a,options:n,tests:this.tests},r,o)})}runTests(t,n,r){let o=!1,{tests:i,value:a,originalValue:s,path:l,options:u}=t,c=b=>{o||(o=!0,n(b,a))},f=b=>{o||(o=!0,r(b,a))},p=i.length,y=[];if(!p)return f([]);let v={value:a,originalValue:s,path:l,options:u,schema:this};for(let b=0;bthis.resolve(c)._validate(u,c,p,y)}validate(t,n){var r;let o=this.resolve(Object.assign({},n,{value:t})),i=(r=n==null?void 0:n.disableStackTrace)!=null?r:o.spec.disableStackTrace;return new Promise((a,s)=>o._validate(t,n,(l,u)=>{No.isError(l)&&(l.value=u),s(l)},(l,u)=>{l.length?s(new No(l,u,void 0,void 0,i)):a(u)}))}validateSync(t,n){var r;let o=this.resolve(Object.assign({},n,{value:t})),i,a=(r=n==null?void 0:n.disableStackTrace)!=null?r:o.spec.disableStackTrace;return o._validate(t,Object.assign({},n,{sync:!0}),(s,l)=>{throw No.isError(s)&&(s.value=l),s},(s,l)=>{if(s.length)throw new No(s,t,void 0,void 0,a);i=l}),i}isValid(t,n){return this.validate(t,n).then(()=>!0,r=>{if(No.isError(r))return!1;throw r})}isValidSync(t,n){try{return this.validateSync(t,n),!0}catch(r){if(No.isError(r))return!1;throw r}}_getDefault(t){let n=this.spec.default;return n==null?n:typeof n=="function"?n.call(this,t):Ef(n)}getDefault(t){return this.resolve(t||{})._getDefault(t)}default(t){return arguments.length===0?this._getDefault():this.clone({default:t})}strict(t=!0){return this.clone({strict:t})}nullability(t,n){const r=this.clone({nullable:t});return r.internalTests.nullable=rf({message:n,name:"nullable",test(o){return o===null?this.schema.spec.nullable:!0}}),r}optionality(t,n){const r=this.clone({optional:t});return r.internalTests.optionality=rf({message:n,name:"optionality",test(o){return o===void 0?this.schema.spec.optional:!0}}),r}optional(){return this.optionality(!0)}defined(t=Wa.defined){return this.optionality(!1,t)}nullable(){return this.nullability(!0)}nonNullable(t=Wa.notNull){return this.nullability(!1,t)}required(t=Wa.required){return this.clone().withMutation(n=>n.nonNullable(t).defined(t))}notRequired(){return this.clone().withMutation(t=>t.nullable().optional())}transform(t){let n=this.clone();return n.transforms.push(t),n}test(...t){let n;if(t.length===1?typeof t[0]=="function"?n={test:t[0]}:n=t[0]:t.length===2?n={name:t[0],test:t[1]}:n={name:t[0],message:t[1],test:t[2]},n.message===void 0&&(n.message=Wa.default),typeof n.test!="function")throw new TypeError("`test` is a required parameters");let r=this.clone(),o=rf(n),i=n.exclusive||n.name&&r.exclusiveTests[n.name]===!0;if(n.exclusive&&!n.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return n.name&&(r.exclusiveTests[n.name]=!!n.exclusive),r.tests=r.tests.filter(a=>!(a.OPTIONS.name===n.name&&(i||a.OPTIONS.test===o.OPTIONS.test))),r.tests.push(o),r}when(t,n){!Array.isArray(t)&&typeof t!="string"&&(n=t,t=".");let r=this.clone(),o=WU(t).map(i=>new Sd(i));return o.forEach(i=>{i.isSibling&&r.deps.push(i.key)}),r.conditions.push(typeof n=="function"?new vb(o,n):vb.fromOptions(o,n)),r}typeError(t){let n=this.clone();return n.internalTests.typeError=rf({message:t,name:"typeError",skipAbsent:!0,test(r){return this.schema._typeCheck(r)?!0:this.createError({params:{type:this.schema.type}})}}),n}oneOf(t,n=Wa.oneOf){let r=this.clone();return t.forEach(o=>{r._whitelist.add(o),r._blacklist.delete(o)}),r.internalTests.whiteList=rf({message:n,name:"oneOf",skipAbsent:!0,test(o){let i=this.schema._whitelist,a=i.resolveAll(this.resolve);return a.includes(o)?!0:this.createError({params:{values:Array.from(i).join(", "),resolved:a}})}}),r}notOneOf(t,n=Wa.notOneOf){let r=this.clone();return t.forEach(o=>{r._blacklist.add(o),r._whitelist.delete(o)}),r.internalTests.blacklist=rf({message:n,name:"notOneOf",test(o){let i=this.schema._blacklist,a=i.resolveAll(this.resolve);return a.includes(o)?this.createError({params:{values:Array.from(i).join(", "),resolved:a}}):!0}}),r}strip(t=!0){let n=this.clone();return n.spec.strip=t,n}describe(t){const n=(t?this.resolve(t):this).clone(),{label:r,meta:o,optional:i,nullable:a}=n.spec;return{meta:o,label:r,optional:i,nullable:a,default:n.getDefault(t),type:n.type,oneOf:n._whitelist.describe(),notOneOf:n._blacklist.describe(),tests:n.tests.map(l=>({name:l.OPTIONS.name,params:l.OPTIONS.params})).filter((l,u,c)=>c.findIndex(f=>f.name===l.name)===u)}}}Ea.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])Ea.prototype[`${e}At`]=function(t,n,r={}){const{parent:o,parentPath:i,schema:a}=yVe(this,t,n,r.context);return a[e](o&&o[i],Object.assign({},r,{parent:o,path:t}))};for(const e of["equals","is"])Ea.prototype[e]=Ea.prototype.oneOf;for(const e of["not","nope"])Ea.prototype[e]=Ea.prototype.notOneOf;let bVe=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,xVe=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,wVe=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,CVe=e=>Xs(e)||e===e.trim(),SVe={}.toString();function UU(){return new GU}class GU extends Ea{constructor(){super({type:"string",check(t){return t instanceof String&&(t=t.valueOf()),typeof t=="string"}}),this.withMutation(()=>{this.transform((t,n,r)=>{if(!r.spec.coerce||r.isType(t)||Array.isArray(t))return t;const o=t!=null&&t.toString?t.toString():t;return o===SVe?t:o})})}required(t){return super.required(t).withMutation(n=>n.test({message:t||Wa.required,name:"required",skipAbsent:!0,test:r=>!!r.length}))}notRequired(){return super.notRequired().withMutation(t=>(t.tests=t.tests.filter(n=>n.OPTIONS.name!=="required"),t))}length(t,n=ha.length){return this.test({message:n,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(r){return r.length===this.resolve(t)}})}min(t,n=ha.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(r){return r.length>=this.resolve(t)}})}max(t,n=ha.max){return this.test({name:"max",exclusive:!0,message:n,params:{max:t},skipAbsent:!0,test(r){return r.length<=this.resolve(t)}})}matches(t,n){let r=!1,o,i;return n&&(typeof n=="object"?{excludeEmptyString:r=!1,message:o,name:i}=n:o=n),this.test({name:i||"matches",message:o||ha.matches,params:{regex:t},skipAbsent:!0,test:a=>a===""&&r||a.search(t)!==-1})}email(t=ha.email){return this.matches(bVe,{name:"email",message:t,excludeEmptyString:!0})}url(t=ha.url){return this.matches(xVe,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=ha.uuid){return this.matches(wVe,{name:"uuid",message:t,excludeEmptyString:!1})}ensure(){return this.default("").transform(t=>t===null?"":t)}trim(t=ha.trim){return this.transform(n=>n!=null?n.trim():n).test({message:t,name:"trim",test:CVe})}lowercase(t=ha.lowercase){return this.transform(n=>Xs(n)?n:n.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>Xs(n)||n===n.toLowerCase()})}uppercase(t=ha.uppercase){return this.transform(n=>Xs(n)?n:n.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>Xs(n)||n===n.toUpperCase()})}}UU.prototype=GU.prototype;let $Ve=e=>e!=+e;function Gk(){return new qU}class qU extends Ea{constructor(){super({type:"number",check(t){return t instanceof Number&&(t=t.valueOf()),typeof t=="number"&&!$Ve(t)}}),this.withMutation(()=>{this.transform((t,n,r)=>{if(!r.spec.coerce)return t;let o=t;if(typeof o=="string"){if(o=o.replace(/\s/g,""),o==="")return NaN;o=+o}return r.isType(o)||o===null?o:parseFloat(o)})})}min(t,n=Rl.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(r){return r>=this.resolve(t)}})}max(t,n=Rl.max){return this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(r){return r<=this.resolve(t)}})}lessThan(t,n=Rl.lessThan){return this.test({message:n,name:"max",exclusive:!0,params:{less:t},skipAbsent:!0,test(r){return rthis.resolve(t)}})}positive(t=Rl.positive){return this.moreThan(0,t)}negative(t=Rl.negative){return this.lessThan(0,t)}integer(t=Rl.integer){return this.test({name:"integer",message:t,skipAbsent:!0,test:n=>Number.isInteger(n)})}truncate(){return this.transform(t=>Xs(t)?t:t|0)}round(t){var n;let r=["ceil","floor","round","trunc"];if(t=((n=t)==null?void 0:n.toLowerCase())||"round",t==="trunc")return this.truncate();if(r.indexOf(t.toLowerCase())===-1)throw new TypeError("Only valid options for round() are: "+r.join(", "));return this.transform(o=>Xs(o)?o:Math[t](o))}}Gk.prototype=qU.prototype;const _Ve=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function js(e,t=0){return Number(e)||t}function kVe(e){const t=_Ve.exec(e);if(!t)return Date.parse?Date.parse(e):Number.NaN;const n={year:js(t[1]),month:js(t[2],1)-1,day:js(t[3],1),hour:js(t[4]),minute:js(t[5]),second:js(t[6]),millisecond:t[7]?js(t[7].substring(0,3)):0,z:t[8]||void 0,plusMinus:t[9]||void 0,hourOffset:js(t[10]),minuteOffset:js(t[11])};if(n.z===void 0&&n.plusMinus===void 0)return new Date(n.year,n.month,n.day,n.hour,n.minute,n.second,n.millisecond).valueOf();let r=0;return n.z!=="Z"&&n.plusMinus!==void 0&&(r=n.hourOffset*60+n.minuteOffset,n.plusMinus==="+"&&(r=0-r)),Date.UTC(n.year,n.month,n.day,n.hour,n.minute+r,n.second,n.millisecond)}let PVe=new Date(""),MVe=e=>Object.prototype.toString.call(e)==="[object Date]";class w2 extends Ea{constructor(){super({type:"date",check(t){return MVe(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,n,r)=>!r.spec.coerce||r.isType(t)||t===null?t:(t=kVe(t),isNaN(t)?w2.INVALID_DATE:new Date(t)))})}prepareParam(t,n){let r;if(Sd.isRef(t))r=t;else{let o=this.cast(t);if(!this._typeCheck(o))throw new TypeError(`\`${n}\` must be a Date or a value that can be \`cast()\` to a Date`);r=o}return r}min(t,n=Vk.min){let r=this.prepareParam(t,"min");return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(o){return o>=this.resolve(r)}})}max(t,n=Vk.max){let r=this.prepareParam(t,"max");return this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(o){return o<=this.resolve(r)}})}}w2.INVALID_DATE=PVe;w2.prototype;function TVe(e,t=[]){let n=[],r=new Set,o=new Set(t.map(([a,s])=>`${a}-${s}`));function i(a,s){let l=Tc.split(a)[0];r.add(l),o.has(`${s}-${l}`)||n.push([s,l])}for(const a of Object.keys(e)){let s=e[a];r.add(a),Sd.isRef(s)&&s.isSibling?i(s.path,a):o3(s)&&"deps"in s&&s.deps.forEach(l=>i(l,a))}return sVe.array(Array.from(r),n).reverse()}function P9(e,t){let n=1/0;return e.some((r,o)=>{var i;if((i=t.path)!=null&&i.includes(r))return n=o,!0}),n}function KU(e){return(t,n)=>P9(e,t)-P9(e,n)}const EVe=(e,t,n)=>{if(typeof e!="string")return e;let r=e;try{r=JSON.parse(e)}catch{}return n.isType(r)?r:e};function H1(e){if("fields"in e){const t={};for(const[n,r]of Object.entries(e.fields))t[n]=H1(r);return e.setFields(t)}if(e.type==="array"){const t=e.optional();return t.innerType&&(t.innerType=H1(t.innerType)),t}return e.type==="tuple"?e.optional().clone({types:e.spec.types.map(H1)}):"optional"in e?e.optional():e}const IVe=(e,t)=>{const n=[...Tc.normalizePath(t)];if(n.length===1)return n[0]in e;let r=n.pop(),o=Tc.getter(Tc.join(n),!0)(e);return!!(o&&r in o)};let M9=e=>Object.prototype.toString.call(e)==="[object Object]";function RVe(e,t){let n=Object.keys(e.fields);return Object.keys(t).filter(r=>n.indexOf(r)===-1)}const OVe=KU([]);function YU(e){return new XU(e)}class XU extends Ea{constructor(t){super({type:"object",check(n){return M9(n)||typeof n=="function"}}),this.fields=Object.create(null),this._sortErrors=OVe,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{t&&this.shape(t)})}_cast(t,n={}){var r;let o=super._cast(t,n);if(o===void 0)return this.getDefault(n);if(!this._typeCheck(o))return o;let i=this.fields,a=(r=n.stripUnknown)!=null?r:this.spec.noUnknown,s=[].concat(this._nodes,Object.keys(o).filter(f=>!this._nodes.includes(f))),l={},u=Object.assign({},n,{parent:l,__validating:n.__validating||!1}),c=!1;for(const f of s){let p=i[f],y=f in o;if(p){let v,b=o[f];u.path=(n.path?`${n.path}.`:"")+f,p=p.resolve({value:b,context:n.context,parent:l});let C=p instanceof Ea?p.spec:void 0,x=C==null?void 0:C.strict;if(C!=null&&C.strip){c=c||f in o;continue}v=!n.__validating||!x?p.cast(o[f],u):o[f],v!==void 0&&(l[f]=v)}else y&&!a&&(l[f]=o[f]);(y!==f in l||l[f]!==o[f])&&(c=!0)}return c?l:o}_validate(t,n={},r,o){let{from:i=[],originalValue:a=t,recursive:s=this.spec.recursive}=n;n.from=[{schema:this,value:a},...i],n.__validating=!0,n.originalValue=a,super._validate(t,n,r,(l,u)=>{if(!s||!M9(u)){o(l,u);return}a=a||u;let c=[];for(let f of this._nodes){let p=this.fields[f];!p||Sd.isRef(p)||c.push(p.asNestedTest({options:n,key:f,parent:u,parentPath:n.path,originalParent:a}))}this.runTests({tests:c,value:u,originalValue:a,options:n},r,f=>{o(f.sort(this._sortErrors).concat(l),u)})})}clone(t){const n=super.clone(t);return n.fields=Object.assign({},this.fields),n._nodes=this._nodes,n._excludedEdges=this._excludedEdges,n._sortErrors=this._sortErrors,n}concat(t){let n=super.concat(t),r=n.fields;for(let[o,i]of Object.entries(this.fields)){const a=r[o];r[o]=a===void 0?i:a}return n.withMutation(o=>o.setFields(r,[...this._excludedEdges,...t._excludedEdges]))}_getDefault(t){if("default"in this.spec)return super._getDefault(t);if(!this._nodes.length)return;let n={};return this._nodes.forEach(r=>{var o;const i=this.fields[r];let a=t;(o=a)!=null&&o.value&&(a=Object.assign({},a,{parent:a.value,value:a.value[r]})),n[r]=i&&"getDefault"in i?i.getDefault(a):void 0}),n}setFields(t,n){let r=this.clone();return r.fields=t,r._nodes=TVe(t,n),r._sortErrors=KU(Object.keys(t)),n&&(r._excludedEdges=n),r}shape(t,n=[]){return this.clone().withMutation(r=>{let o=r._excludedEdges;return n.length&&(Array.isArray(n[0])||(n=[n]),o=[...r._excludedEdges,...n]),r.setFields(Object.assign(r.fields,t),o)})}partial(){const t={};for(const[n,r]of Object.entries(this.fields))t[n]="optional"in r&&r.optional instanceof Function?r.optional():r;return this.setFields(t)}deepPartial(){return H1(this)}pick(t){const n={};for(const r of t)this.fields[r]&&(n[r]=this.fields[r]);return this.setFields(n,this._excludedEdges.filter(([r,o])=>t.includes(r)&&t.includes(o)))}omit(t){const n=[];for(const r of Object.keys(this.fields))t.includes(r)||n.push(r);return this.pick(n)}from(t,n,r){let o=Tc.getter(t,!0);return this.transform(i=>{if(!i)return i;let a=i;return IVe(i,t)&&(a=Object.assign({},i),r||delete a[t],a[n]=o(i)),a})}json(){return this.transform(EVe)}noUnknown(t=!0,n=Uk.noUnknown){typeof t!="boolean"&&(n=t,t=!0);let r=this.test({name:"noUnknown",exclusive:!0,message:n,test(o){if(o==null)return!0;const i=RVe(this.schema,o);return!t||i.length===0||this.createError({params:{unknown:i.join(", ")}})}});return r.spec.noUnknown=t,r}unknown(t=!0,n=Uk.noUnknown){return this.noUnknown(!t,n)}transformKeys(t){return this.transform(n=>{if(!n)return n;const r={};for(const o of Object.keys(n))r[t(o)]=n[o];return r})}camelCase(){return this.transformKeys(l$.camelCase)}snakeCase(){return this.transformKeys(l$.snakeCase)}constantCase(){return this.transformKeys(t=>l$.snakeCase(t).toUpperCase())}describe(t){const n=(t?this.resolve(t):this).clone(),r=super.describe(t);r.fields={};for(const[i,a]of Object.entries(n.fields)){var o;let s=t;(o=s)!=null&&o.value&&(s=Object.assign({},s,{parent:s.value,value:s.value[i]})),r.fields[i]=a.describe(s)}return r}}YU.prototype=XU.prototype;const AVe={title:"",currentAmount:0,limit:0},FVe=YU().shape({title:UU().required("required"),currentAmount:Gk().required("required"),limit:Gk().required("required")}),LVe=()=>{const e=t=>{console.log(t)};return g.jsxs(Ue,{children:[g.jsx(Ze,{variant:"h4",sx:{textAlign:"center"},children:"Set a new limit"}),g.jsx(FWe,{onSubmit:e,initialValues:AVe,validationSchema:FVe,children:({values:t,errors:n,touched:r,handleBlur:o,handleChange:i,handleSubmit:a})=>g.jsx("form",{onSubmit:a,children:g.jsxs(Ue,{sx:{display:"flex",gap:3,flexDirection:"column",mt:2},children:[g.jsx(ru,{fullWidth:!0,variant:"filled",color:"info",type:"text",label:"Title",onBlur:o,onChange:i,value:t.title,name:"title",error:!!r.title&&!!n.title,helperText:r.title&&n.title}),g.jsxs(Ue,{sx:{display:"flex",gap:2},children:[g.jsx(ru,{variant:"filled",color:"info",type:"number",label:"Current Amount",onBlur:o,onChange:i,value:t.currentAmount,name:"currentAmount",error:!!r.currentAmount&&!!n.currentAmount,helperText:r.currentAmount&&n.currentAmount}),g.jsx(ru,{variant:"filled",color:"info",type:"number",label:"Limit",onBlur:o,onChange:i,value:t.limit,name:"limit",error:!!r.limit&&!!n.limit,helperText:r.limit&&n.limit})]}),g.jsx(fs,{type:"submit",color:"info",variant:"contained",size:"large",children:"Submit"})]})})})]})},DVe={position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:400,bgcolor:"background.paper",border:"2px solid #000",boxShadow:24,p:4};function jVe({content:e}){const[t,n]=m.useState(!1),r=()=>n(!0),o=()=>n(!1),i=Xt(),a=jn(i.palette.mode);return g.jsxs(g.Fragment,{children:[g.jsx(fs,{sx:{backgroundColor:a.primary[500],borderRadius:"1rem",color:a.primary[100],display:"flex",gap:"1rem",justifyContent:"start",padding:"1rem",width:"100%","& .MuiBox-root":{alignItems:"center",display:"flex",gap:"1rem"},"&:hover":{backgroundColor:`${a.primary[700]} !important`}},onClick:r,children:e}),g.jsx(oN,{open:t,onClose:o,"aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",children:g.jsx(Ue,{sx:DVe,children:g.jsx(LVe,{})})})]})}const NVe=()=>{const e=Xt(),t=jn(e.palette.mode),n={alignItems:"center",backgroundColor:t.primary[500],borderRadius:"1rem",cursor:"pointer",display:"flex",gap:"1rem",gridTemplateColumns:"repeat(auto-fit, minmax(clamp(250px, 16vw, 860px), 1fr))",padding:"1rem",transition:".2s",width:"100%"},r=pAe.map((o,i)=>g.jsxs(Ue,{sx:n,children:[g.jsx($y,{sx:{backgroundColor:`${t.blueAccent[300]}`,"& :hover, & .MuiAvatar-root svg:hover":{backgroundColor:`${t.blueAccent[300]} !important`}},children:g.jsx(cU,{})}),g.jsxs(Ue,{children:[g.jsx(Ue,{children:g.jsx(Ze,{variant:"h5",sx:{fontWeight:600},children:o.title})}),g.jsxs(Ue,{sx:{display:"flex"},children:[g.jsxs(Ze,{variant:"h6",sx:{color:t.grey[300]},children:[o.currentValue," /"]}),g.jsxs(Ze,{variant:"h6",sx:{fontWeight:600},children:[" ",o.limit]})]})]})]},i));return g.jsxs(g.Fragment,{children:[g.jsx(jVe,{content:g.jsxs(Ue,{children:[g.jsx($y,{sx:{backgroundColor:`${t.blueAccent[300]}`,"& :hover, & .MuiAvatar-root svg:hover":{backgroundColor:`${t.blueAccent[300]} !important`}},children:g.jsx(uU,{})}),g.jsx(Ue,{children:g.jsx(Ze,{variant:"h5",sx:{fontWeight:600},children:"Set New Limit"})})]})}),r]})},zVe=()=>g.jsx(mr,{title:"Expense Limits",content:g.jsx(cN,{sx:{display:"grid",gap:"1rem",gridTemplateColumns:"repeat(auto-fit, minmax(250px, 1fr))",height:"100%",overflowY:"scroll",overflowX:"hidden",paddingRight:"1rem"},children:g.jsx(NVe,{})}),height:500}),BVe=[...hAe,{field:"options",headerName:"",sortable:!1,flex:1,minWidth:60,maxWidth:60,renderCell:()=>g.jsx(Ue,{children:g.jsx(ks,{})})}];function HVe(){return g.jsx(Ue,{style:{height:400,width:"100%"},children:g.jsx(_s,{rows:mAe,columns:BVe,disableColumnFilter:!0,disableColumnSelector:!0,disableDensitySelector:!0,slots:{toolbar:Ps},slotProps:{filterPanel:{sx:{maxWidth:"100vw"}},toolbar:{showQuickFilter:!0}},editMode:"row",initialState:{columns:{columnVisibilityModel:{remainingTerm:!1}},filter:{filterModel:{items:[],quickFilterExcludeHiddenColumns:!0}},pagination:{paginationModel:{page:0,pageSize:10}}},pageSizeOptions:[5,10]})})}const WVe=()=>g.jsx(mr,{title:"Savings",content:g.jsx(HVe,{}),height:500});function VVe(){return g.jsx(g.Fragment,{children:g.jsxs(Ue,{sx:{padding:2},children:[g.jsxs(Ue,{sx:{paddingBlock:2},children:[g.jsx(Ze,{variant:"h1",children:"Budget"}),g.jsx(Ze,{variant:"h6",children:"Track and control your spending"})]}),g.jsxs(Ft,{container:!0,spacing:2,children:[g.jsx(Ft,{item:!0,xs:12,md:6,lg:8,children:g.jsx(Gje,{})}),g.jsx(Ft,{item:!0,xs:12,md:6,lg:4,children:g.jsx(ZW,{})}),g.jsx(Ft,{item:!0,xs:12,md:6,lg:6,children:g.jsx(zVe,{})}),g.jsx(Ft,{item:!0,xs:12,md:6,lg:6,children:g.jsx(WVe,{})})]})]})})}const UVe={inputProps:{"aria-label":"Color switch demo"}};function T9(){return g.jsx(g.Fragment,{children:g.jsx($N,{...UVe,defaultChecked:!0,color:"secondary"})})}const GVe=[{field:"id",headerName:"ID",flex:1,minWidth:80,maxWidth:80},{field:"billName",headerName:"Bill Name",type:"string",flex:1,minWidth:160,maxWidth:160},{field:"vendor",headerName:"Vendor",type:"string",flex:1,minWidth:140,maxWidth:140},{field:"status",headerName:"Status",type:"string",flex:1,minWidth:110,maxWidth:110},{field:"paymentDate",headerName:"Payment Date",type:"string",sortable:!0,flex:1,minWidth:140,maxWidth:140},{field:"dueDate",headerName:"Due Date",description:"The date by which the bill payment is due.",type:"string",sortable:!0,flex:1,minWidth:120,maxWidth:120},{field:"amount",headerName:"Amount",type:"number",sortable:!0,flex:1,minWidth:130,maxWidth:130},{field:"frequency",headerName:"Frequency",type:"string",sortable:!0,flex:1,minWidth:130,maxWidth:130},{field:"paymentMethod",headerName:"Payment Method",type:"string",sortable:!0,flex:1,minWidth:160,maxWidth:160},{field:"category",headerName:"Category",type:"string",sortable:!0,flex:1,minWidth:130,maxWidth:130},{field:"notes",headerName:"Notes",type:"string",sortable:!1,flex:1,minWidth:160,maxWidth:190}],qVe=[{id:1,billName:"Electricity",vendor:"ABC Electric",status:"Paid",paymentDate:"2021-01-12",dueDate:"2021-02-01",amount:100,frequency:"Monthly",paymentMethod:"Credit Card",category:"Utilities",notes:"Usage charge for January"},{id:2,billName:"Phone",vendor:"XYZ Telecom",status:"Unpaid",paymentDate:null,dueDate:"2021-02-15",amount:50,frequency:"Monthly",paymentMethod:"Direct Debit",category:"Utilities",notes:"Includes data and calling plan"},{id:3,billName:"Rent",vendor:"XYZ Apartments",status:"Unpaid",paymentDate:null,dueDate:"2021-03-01",amount:1e3,frequency:"Monthly",paymentMethod:"Bank Transfer",category:"Housing",notes:"Due at the beginning of each month"},{id:4,billName:"Internet",vendor:"XYZ Telecom",status:"Paid",paymentDate:"2021-01-18",dueDate:"2021-02-05",amount:60,frequency:"Monthly",paymentMethod:"Direct Debit",category:"Utilities",notes:"High-speed unlimited plan"},{id:5,billName:"Gym Membership",vendor:"Fitness Club",status:"Paid",paymentDate:"2021-01-25",dueDate:"2021-02-10",amount:80,frequency:"Monthly",paymentMethod:"Credit Card",category:"Health & Fitness",notes:"Access to gym and fitness classes"},{id:6,billName:"Insurance",vendor:"ABC Insurance",status:"Unpaid",paymentDate:null,dueDate:"2021-03-20",amount:200,frequency:"Quarterly",paymentMethod:"Cheque",category:"Insurance",notes:"Car insurance premium"},{id:7,billName:"Credit Card",vendor:"Bank XYZ",status:"Unpaid",paymentDate:null,dueDate:"2021-02-28",amount:150,frequency:"Monthly",paymentMethod:"Online Payment",category:"Credit Card",notes:"Last month's expenses"},{id:8,billName:"Subscription",vendor:"XYZ Streaming",status:"Paid",paymentDate:"2021-01-15",dueDate:"2021-02-01",amount:15,frequency:"Monthly",paymentMethod:"Online Payment",category:"Entertainment",notes:"Access to movies and shows"}],KVe=[{id:"Rent",color:"hsl(261, 70%, 50%)",data:[{x:"Jan",y:400},{x:"Feb",y:400},{x:"Mar",y:400},{x:"Apr",y:400},{x:"May",y:400},{x:"Jun",y:500},{x:"Jul",y:500},{x:"Aug",y:500},{x:"Sep",y:500},{x:"Oct",y:500},{x:"Nov",y:500},{x:"Dec",y:500}]},{id:"Utilities",color:"hsl(111, 70%, 50%)",data:[{x:"Jan",y:525},{x:"Feb",y:600},{x:"Mar",y:350},{x:"Apr",y:385},{x:"May",y:410},{x:"Jun",y:470},{x:"Jul",y:510},{x:"Aug",y:430},{x:"Sep",y:590},{x:"Oct",y:550},{x:"Nov",y:450},{x:"Dec",y:590}]},{id:"Internet",color:"hsl(20, 70%, 50%)",data:[{x:"Jan",y:489},{x:"Feb",y:437},{x:"Mar",y:471},{x:"Apr",y:578},{x:"May",y:550},{x:"Jun",y:536},{x:"Jul",y:675},{x:"Aug",y:613},{x:"Sep",y:400},{x:"Oct",y:675},{x:"Nov",y:684},{x:"Dec",y:450}]},{id:"Phone",color:"hsl(258, 70%, 50%)",data:[{x:"Jan",y:220},{x:"Feb",y:284},{x:"Mar",y:217},{x:"Apr",y:312},{x:"May",y:344},{x:"Jun",y:339},{x:"Jul",y:319},{x:"Aug",y:597},{x:"Sep",y:553},{x:"Oct",y:551},{x:"Nov",y:593},{x:"Dec",y:656}]},{id:"Other",color:"hsl(101, 70%, 50%)",data:[{x:"Jan",y:622},{x:"Feb",y:610},{x:"Mar",y:635},{x:"Apr",y:653},{x:"May",y:657},{x:"Jun",y:700},{x:"Jul",y:696},{x:"Aug",y:688},{x:"Sep",y:670},{x:"Oct",y:652},{x:"Nov",y:535},{x:"Dec",y:666}]}],YVe=[...GVe,{field:"notification",headerName:"Notification",type:"boolean",sortable:!0,flex:1,minWidth:130,maxWidth:130,renderCell:()=>g.jsx(Ue,{children:g.jsx(T9,{})})},{field:"recordPayment",headerName:"Record Payment",sortable:!1,flex:1,minWidth:220,maxWidth:220,renderCell:e=>g.jsx(Ue,{children:g.jsx(fs,{variant:"contained",size:"small",color:"secondary",tabIndex:e.hasFocus?0:-1,children:"Make a payment record"})})},{field:"autoPay",headerName:"Auto Pay",sortable:!1,description:"Indicate whether the bill is set up for automatic payment or requires manual payment.",flex:1,minWidth:130,maxWidth:130,renderCell:()=>g.jsx(Ue,{children:g.jsx(T9,{})})},{field:"options",headerName:"",sortable:!1,flex:1,minWidth:90,maxWidth:90,renderCell:()=>g.jsx(Ue,{children:g.jsx(ks,{})})}];function XVe(){return g.jsx(Ue,{sx:{height:400,width:"100%"},children:g.jsx(_s,{rows:qVe,columns:YVe,disableColumnFilter:!0,disableColumnSelector:!0,disableDensitySelector:!0,slots:{toolbar:Ps},slotProps:{filterPanel:{sx:{maxWidth:"100vw"}},toolbar:{showQuickFilter:!0}},editMode:"row",initialState:{columns:{columnVisibilityModel:{remainingTerm:!1}},filter:{filterModel:{items:[],quickFilterExcludeHiddenColumns:!0}},pagination:{paginationModel:{page:0,pageSize:10}}},pageSizeOptions:[5,10]})})}const QVe=()=>g.jsx(mr,{title:"Bills Summary",content:g.jsx(XVe,{}),height:500});function ZVe(){}var JVe=ZVe,u$=bW,eUe=JVe,tUe=uT,nUe=1/0,rUe=u$&&1/tUe(new u$([,-0]))[1]==nUe?function(e){return new u$(e)}:eUe,oUe=rUe,iUe=eT,aUe=GH,sUe=qH,lUe=tT,uUe=oUe,cUe=uT,dUe=200;function fUe(e,t,n){var r=-1,o=aUe,i=e.length,a=!0,s=[],l=s;if(n)a=!1,o=sUe;else if(i>=dUe){var u=t?null:uUe(e);if(u)return cUe(u);a=!1,o=lUe,l=new iUe}else l=t?[]:s;e:for(;++rt||i&&a&&l&&!s&&!u||r&&a&&l||!n&&l||!o)return 1;if(!r&&!i&&!u&&e=s)return l;var u=n[r];return l*(u=="desc"?-1:1)}}return e.index-t.index}var AGe=OGe,c$=dw,FGe=g0,LGe=eG,DGe=PGe,jGe=TGe,NGe=Gp,zGe=AGe,BGe=uw,HGe=la;function WGe(e,t,n){t.length?t=c$(t,function(i){return HGe(i)?function(a){return FGe(a,i.length===1?i[0]:i)}:i}):t=[BGe];var r=-1;t=c$(t,NGe(LGe));var o=DGe(e,function(i,a,s){var l=c$(t,function(u){return u(i)});return{criteria:l,index:++r,value:i}});return jGe(o,function(i,a){return zGe(i,a,n)})}var VGe=WGe,UGe=pW,GGe=VGe,qGe=M5,R9=hB,KGe=qGe(function(e,t){if(e==null)return[];var n=t.length;return n>1&&R9(e,t[0],t[1])?t=[]:n>2&&R9(t[0],t[1],t[2])&&(t=[t[0]]),GGe(e,UGe(t,1),[])}),YGe=KGe;const XGe=Or(YGe);var QGe=ud,ZGe=Ss,JGe="[object Date]";function eqe(e){return ZGe(e)&&QGe(e)==JGe}var tqe=eqe,nqe=tqe,rqe=Gp,O9=sw,A9=O9&&O9.isDate,oqe=A9?rqe(A9):nqe,iqe=oqe;const aqe=Or(iqe);function ec(){return ec=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?(x=p.align[C?"left":"right"],w=p.baseline.center):(o==="after"&&l>0||o==="before"&&l<0)&&(x=p.align[C?"right":"left"],w=p.baseline.center)):(t=function(S){var $;return{x:0,y:($=y(S))!=null?$:0}},v.lineX=a*(o==="after"?1:-1),b.textX=(a+s)*(o==="after"?1:-1),x=o==="after"?p.align.left:p.align.right),{ticks:f.map(function(S){return Ia({key:S instanceof Date?""+S.valueOf():""+S,value:S},t(S),v,b)}),textAlign:x,textBaseline:w}},sG=function(e,t){if(e===void 0||typeof e=="function")return e;if(t.type==="time"){var n=v0(e);return function(r){return n(r instanceof Date?r:new Date(r))}}return Pu(e)},qk=function(e){var t,n=e.width,r=e.height,o=e.scale,i=e.axis,a=e.values,s=(t=a,(Array.isArray(t)?a:void 0)||iG(o,a)),l="bandwidth"in o?rG(o):o,u=i==="x"?s.map(function(c){var f,p;return{key:c instanceof Date?""+c.valueOf():""+c,x1:(f=l(c))!=null?f:0,x2:(p=l(c))!=null?p:0,y1:0,y2:r}}):s.map(function(c){var f,p;return{key:c instanceof Date?""+c.valueOf():""+c,x1:0,x2:n,y1:(f=l(c))!=null?f:0,y2:(p=l(c))!=null?p:0}});return u},kqe=m.memo(function(e){var t,n=e.value,r=e.format,o=e.lineX,i=e.lineY,a=e.onClick,s=e.textBaseline,l=e.textAnchor,u=e.animatedProps,c=On(),f=(t=r==null?void 0:r(n))!=null?t:n,p=m.useMemo(function(){var y={opacity:u.opacity};return a?{style:Ia({},y,{cursor:"pointer"}),onClick:function(v){return a(v,f)}}:{style:y}},[u.opacity,a,f]);return g.jsxs(In.g,Ia({transform:u.transform},p,{children:[g.jsx("line",{x1:0,x2:o,y1:0,y2:i,style:c.axis.ticks.line}),g.jsx(In.text,{dominantBaseline:s,textAnchor:l,transform:u.textTransform,style:c.axis.ticks.text,children:""+f})]}))}),Pqe=m.memo(function(e){var t=e.axis,n=e.scale,r=e.x,o=r===void 0?0:r,i=e.y,a=i===void 0?0:i,s=e.length,l=e.ticksPosition,u=e.tickValues,c=e.tickSize,f=c===void 0?5:c,p=e.tickPadding,y=p===void 0?5:p,v=e.tickRotation,b=v===void 0?0:v,C=e.format,x=e.renderTick,w=x===void 0?kqe:x,S=e.legend,$=e.legendPosition,T=$===void 0?"end":$,k=e.legendOffset,M=k===void 0?0:k,I=e.onClick,N=e.ariaHidden,E=On(),A=m.useMemo(function(){return sG(C,n)},[C,n]),z=aG({axis:t,scale:n,ticksPosition:l,tickValues:u,tickSize:f,tickPadding:y,tickRotation:b}),L=z.ticks,O=z.textAlign,D=z.textBaseline,H=null;if(S!==void 0){var B,j=0,W=0,U=0;t==="y"?(U=-90,j=M,T==="start"?(B="start",W=s):T==="middle"?(B="middle",W=s/2):T==="end"&&(B="end")):(W=M,T==="start"?B="start":T==="middle"?(B="middle",j=s/2):T==="end"&&(B="end",j=s)),H=g.jsx("text",{transform:"translate("+j+", "+W+") rotate("+U+")",textAnchor:B,style:Ia({dominantBaseline:"central"},E.axis.legend.text),children:S})}var Z=To(),Y=Z.animate,se=Z.config,Q=xs({transform:"translate("+o+","+a+")",lineX2:t==="x"?s:0,lineY2:t==="x"?0:s,config:se,immediate:!Y}),ne=ld(L,{keys:function(re){return re.key},initial:function(re){return{opacity:1,transform:"translate("+re.x+","+re.y+")",textTransform:"translate("+re.textX+","+re.textY+") rotate("+b+")"}},from:function(re){return{opacity:0,transform:"translate("+re.x+","+re.y+")",textTransform:"translate("+re.textX+","+re.textY+") rotate("+b+")"}},enter:function(re){return{opacity:1,transform:"translate("+re.x+","+re.y+")",textTransform:"translate("+re.textX+","+re.textY+") rotate("+b+")"}},update:function(re){return{opacity:1,transform:"translate("+re.x+","+re.y+")",textTransform:"translate("+re.textX+","+re.textY+") rotate("+b+")"}},leave:{opacity:0},config:se,immediate:!Y});return g.jsxs(In.g,{transform:Q.transform,"aria-hidden":N,children:[ne(function(re,ge,xe,fe){return m.createElement(w,Ia({tickIndex:fe,format:A,rotate:b,textBaseline:D,textAnchor:O,animatedProps:re},ge,I?{onClick:I}:{}))}),g.jsx(In.line,{style:E.axis.domain.line,x1:0,x2:Q.lineX2,y1:0,y2:Q.lineY2}),H]})}),Mqe={ticksPosition:R.oneOf(["before","after"]),tickValues:R.oneOfType([R.number,R.arrayOf(R.oneOfType([R.number,R.string,R.instanceOf(Date)])),R.string]),tickSize:R.number,tickPadding:R.number,tickRotation:R.number,format:R.oneOfType([R.func,R.string]),renderTick:R.func,legend:R.node,legendPosition:R.oneOf(["start","middle","end"]),legendOffset:R.number,ariaHidden:R.bool},o1=R.shape(Mqe),lG=["top","right","bottom","left"],uG=m.memo(function(e){var t=e.xScale,n=e.yScale,r=e.width,o=e.height,i={top:e.top,right:e.right,bottom:e.bottom,left:e.left};return g.jsx(g.Fragment,{children:lG.map(function(a){var s=i[a];if(!s)return null;var l=a==="top"||a==="bottom";return g.jsx(Pqe,Ia({},s,{axis:l?"x":"y",x:a==="right"?r:0,y:a==="bottom"?o:0,scale:l?t:n,length:l?r:o,ticksPosition:a==="top"||a==="left"?"before":"after"}),a)})})}),Tqe=m.memo(function(e){var t=e.animatedProps,n=On();return g.jsx(In.line,Ia({},t,n.grid.line))}),D9=m.memo(function(e){var t=e.lines,n=To(),r=n.animate,o=n.config,i=ld(t,{keys:function(a){return a.key},initial:function(a){return{opacity:1,x1:a.x1,x2:a.x2,y1:a.y1,y2:a.y2}},from:function(a){return{opacity:0,x1:a.x1,x2:a.x2,y1:a.y1,y2:a.y2}},enter:function(a){return{opacity:1,x1:a.x1,x2:a.x2,y1:a.y1,y2:a.y2}},update:function(a){return{opacity:1,x1:a.x1,x2:a.x2,y1:a.y1,y2:a.y2}},leave:{opacity:0},config:o,immediate:!r});return g.jsx("g",{children:i(function(a,s){return m.createElement(Tqe,Ia({},s,{key:s.key,animatedProps:a}))})})}),cG=m.memo(function(e){var t=e.width,n=e.height,r=e.xScale,o=e.yScale,i=e.xValues,a=e.yValues,s=m.useMemo(function(){return!!r&&qk({width:t,height:n,scale:r,axis:"x",values:i})},[r,i,t,n]),l=m.useMemo(function(){return!!o&&qk({width:t,height:n,scale:o,axis:"y",values:a})},[n,t,o,a]);return g.jsxs(g.Fragment,{children:[s&&g.jsx(D9,{lines:s}),l&&g.jsx(D9,{lines:l})]})}),Eqe=function(e,t){var n,r=t.axis,o=t.scale,i=t.x,a=i===void 0?0:i,s=t.y,l=s===void 0?0:s,u=t.length,c=t.ticksPosition,f=t.tickValues,p=t.tickSize,y=p===void 0?5:p,v=t.tickPadding,b=v===void 0?5:v,C=t.tickRotation,x=C===void 0?0:C,w=t.format,S=t.legend,$=t.legendPosition,T=$===void 0?"end":$,k=t.legendOffset,M=k===void 0?0:k,I=t.theme,N=aG({axis:r,scale:o,ticksPosition:c,tickValues:f,tickSize:y,tickPadding:b,tickRotation:x,engine:"canvas"}),E=N.ticks,A=N.textAlign,z=N.textBaseline;e.save(),e.translate(a,l),e.textAlign=A,e.textBaseline=z,e.font=(I.axis.ticks.text.fontWeight?I.axis.ticks.text.fontWeight+" ":"")+I.axis.ticks.text.fontSize+"px "+I.axis.ticks.text.fontFamily,((n=I.axis.domain.line.strokeWidth)!=null?n:0)>0&&(e.lineWidth=Number(I.axis.domain.line.strokeWidth),e.lineCap="square",I.axis.domain.line.stroke&&(e.strokeStyle=I.axis.domain.line.stroke),e.beginPath(),e.moveTo(0,0),e.lineTo(r==="x"?u:0,r==="x"?0:u),e.stroke());var L=typeof w=="function"?w:function(j){return""+j};if(E.forEach(function(j){var W;((W=I.axis.ticks.line.strokeWidth)!=null?W:0)>0&&(e.lineWidth=Number(I.axis.ticks.line.strokeWidth),e.lineCap="square",I.axis.ticks.line.stroke&&(e.strokeStyle=I.axis.ticks.line.stroke),e.beginPath(),e.moveTo(j.x,j.y),e.lineTo(j.x+j.lineX,j.y+j.lineY),e.stroke());var U=L(j.value);e.save(),e.translate(j.x+j.textX,j.y+j.textY),e.rotate(Qi(x)),I.axis.ticks.text.fill&&(e.fillStyle=I.axis.ticks.text.fill),e.fillText(String(U),0,0),e.restore()}),S!==void 0){var O=0,D=0,H=0,B="center";r==="y"?(H=-90,O=M,T==="start"?(B="start",D=u):T==="middle"?(B="center",D=u/2):T==="end"&&(B="end")):(D=M,T==="start"?B="start":T==="middle"?(B="center",O=u/2):T==="end"&&(B="end",O=u)),e.translate(O,D),e.rotate(Qi(H)),e.font=(I.axis.legend.text.fontWeight?I.axis.legend.text.fontWeight+" ":"")+I.axis.legend.text.fontSize+"px "+I.axis.legend.text.fontFamily,I.axis.legend.text.fill&&(e.fillStyle=I.axis.legend.text.fill),e.textAlign=B,e.textBaseline="middle",e.fillText(S,0,0)}e.restore()},dG=function(e,t){var n=t.xScale,r=t.yScale,o=t.width,i=t.height,a=t.top,s=t.right,l=t.bottom,u=t.left,c=t.theme,f={top:a,right:s,bottom:l,left:u};lG.forEach(function(p){var y=f[p];if(!y)return null;var v=p==="top"||p==="bottom",b=p==="top"||p==="left"?"before":"after",C=v?n:r,x=sG(y.format,C);Eqe(e,Ia({},y,{axis:v?"x":"y",x:p==="right"?o:0,y:p==="bottom"?i:0,scale:C,format:x,length:v?o:i,ticksPosition:b,theme:c}))})},bb=function(e,t){var n=t.width,r=t.height,o=t.scale,i=t.axis,a=t.values;qk({width:n,height:r,scale:o,axis:i,values:a}).forEach(function(s){e.beginPath(),e.moveTo(s.x1,s.y1),e.lineTo(s.x2,s.y2),e.stroke()})};const j9=Math.pow(2,-52),i1=new Uint32Array(512);class xb{static from(t,n=Fqe,r=Lqe){const o=t.length,i=new Float64Array(o*2);for(let a=0;a>1;if(n>0&&typeof t[0]!="number")throw new Error("Expected coords to contain numbers.");this.coords=t;const r=Math.max(2*n-5,0);this._triangles=new Uint32Array(r*3),this._halfedges=new Int32Array(r*3),this._hashSize=Math.ceil(Math.sqrt(n)),this._hullPrev=new Uint32Array(n),this._hullNext=new Uint32Array(n),this._hullTri=new Uint32Array(n),this._hullHash=new Int32Array(this._hashSize).fill(-1),this._ids=new Uint32Array(n),this._dists=new Float64Array(n),this.update()}update(){const{coords:t,_hullPrev:n,_hullNext:r,_hullTri:o,_hullHash:i}=this,a=t.length>>1;let s=1/0,l=1/0,u=-1/0,c=-1/0;for(let E=0;Eu&&(u=A),z>c&&(c=z),this._ids[E]=E}const f=(s+u)/2,p=(l+c)/2;let y=1/0,v,b,C;for(let E=0;E0&&(b=E,y=A)}let S=t[2*b],$=t[2*b+1],T=1/0;for(let E=0;EL&&(E[A++]=O,L=this._dists[O])}this.hull=E.subarray(0,A),this.triangles=new Uint32Array(0),this.halfedges=new Uint32Array(0);return}if(a1(x,w,S,$,k,M)){const E=b,A=S,z=$;b=C,S=k,$=M,C=E,k=A,M=z}const I=Aqe(x,w,S,$,k,M);this._cx=I.x,this._cy=I.y;for(let E=0;E0&&Math.abs(O-A)<=j9&&Math.abs(D-z)<=j9||(A=O,z=D,L===v||L===b||L===C))continue;let H=0;for(let Z=0,Y=this._hashKey(O,D);Z0?3-n:1+n)/4}function d$(e,t,n,r){const o=e-n,i=t-r;return o*o+i*i}function f$(e,t,n,r,o,i){const a=(r-t)*(o-e),s=(n-e)*(i-t);return Math.abs(a-s)>=33306690738754716e-32*Math.abs(a+s)?a-s:0}function a1(e,t,n,r,o,i){return(f$(o,i,e,t,n,r)||f$(e,t,n,r,o,i)||f$(n,r,o,i,e,t))<0}function Rqe(e,t,n,r,o,i,a,s){const l=e-a,u=t-s,c=n-a,f=r-s,p=o-a,y=i-s,v=l*l+u*u,b=c*c+f*f,C=p*p+y*y;return l*(f*C-b*y)-u*(c*C-b*p)+v*(c*y-f*p)<0}function Oqe(e,t,n,r,o,i){const a=n-e,s=r-t,l=o-e,u=i-t,c=a*a+s*s,f=l*l+u*u,p=.5/(a*u-s*l),y=(u*c-s*f)*p,v=(a*f-l*c)*p;return y*y+v*v}function Aqe(e,t,n,r,o,i){const a=n-e,s=r-t,l=o-e,u=i-t,c=a*a+s*s,f=l*l+u*u,p=.5/(a*u-s*l),y=e+(u*c-s*f)*p,v=t+(a*f-l*c)*p;return{x:y,y:v}}function If(e,t,n,r){if(r-n<=20)for(let o=n+1;o<=r;o++){const i=e[o],a=t[i];let s=o-1;for(;s>=n&&t[e[s]]>a;)e[s+1]=e[s--];e[s+1]=i}else{const o=n+r>>1;let i=n+1,a=r;Zh(e,o,i),t[e[n]]>t[e[r]]&&Zh(e,n,r),t[e[i]]>t[e[r]]&&Zh(e,i,r),t[e[n]]>t[e[i]]&&Zh(e,n,i);const s=e[i],l=t[s];for(;;){do i++;while(t[e[i]]l);if(a=a-n?(If(e,t,i,r),If(e,t,n,a-1)):(If(e,t,n,a-1),If(e,t,i,r))}}function Zh(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function Fqe(e){return e[0]}function Lqe(e){return e[1]}const N9=1e-6;let cc=class{constructor(){this._x0=this._y0=this._x1=this._y1=null,this._=""}moveTo(t,n){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")}lineTo(t,n){this._+=`L${this._x1=+t},${this._y1=+n}`}arc(t,n,r){t=+t,n=+n,r=+r;const o=t+r,i=n;if(r<0)throw new Error("negative radius");this._x1===null?this._+=`M${o},${i}`:(Math.abs(this._x1-o)>N9||Math.abs(this._y1-i)>N9)&&(this._+="L"+o+","+i),r&&(this._+=`A${r},${r},0,1,1,${t-r},${n}A${r},${r},0,1,1,${this._x1=o},${this._y1=i}`)}rect(t,n,r,o){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${+r}v${+o}h${-r}Z`}value(){return this._||null}};class Kk{constructor(){this._=[]}moveTo(t,n){this._.push([t,n])}closePath(){this._.push(this._[0].slice())}lineTo(t,n){this._.push([t,n])}value(){return this._.length?this._:null}}class Dqe{constructor(t,[n,r,o,i]=[0,0,960,500]){if(!((o=+o)>=(n=+n))||!((i=+i)>=(r=+r)))throw new Error("invalid bounds");this.delaunay=t,this._circumcenters=new Float64Array(t.points.length*2),this.vectors=new Float64Array(t.points.length*2),this.xmax=o,this.xmin=n,this.ymax=i,this.ymin=r,this._init()}update(){return this.delaunay.update(),this._init(),this}_init(){const{delaunay:{points:t,hull:n,triangles:r},vectors:o}=this,i=this.circumcenters=this._circumcenters.subarray(0,r.length/3*2);for(let y=0,v=0,b=r.length,C,x;y1;)i-=2;for(let a=2;a4)for(let a=0;a0){if(n>=this.ymax)return null;(a=(this.ymax-n)/o)0){if(t>=this.xmax)return null;(a=(this.xmax-t)/r)this.xmax?2:0)|(nthis.ymax?8:0)}}const jqe=2*Math.PI,af=Math.pow;function Nqe(e){return e[0]}function zqe(e){return e[1]}function Bqe(e){const{triangles:t,coords:n}=e;for(let r=0;r1e-10)return!1}return!0}function Hqe(e,t,n){return[e+Math.sin(e+t)*n,t+Math.cos(e-t)*n]}class i3{static from(t,n=Nqe,r=zqe,o){return new i3("length"in t?Wqe(t,n,r,o):Float64Array.from(Vqe(t,n,r,o)))}constructor(t){this._delaunator=new xb(t),this.inedges=new Int32Array(t.length/2),this._hullIndex=new Int32Array(t.length/2),this.points=this._delaunator.coords,this._init()}update(){return this._delaunator.update(),this._init(),this}_init(){const t=this._delaunator,n=this.points;if(t.hull&&t.hull.length>2&&Bqe(t)){this.collinear=Int32Array.from({length:n.length/2},(p,y)=>y).sort((p,y)=>n[2*p]-n[2*y]||n[2*p+1]-n[2*y+1]);const l=this.collinear[0],u=this.collinear[this.collinear.length-1],c=[n[2*l],n[2*l+1],n[2*u],n[2*u+1]],f=1e-8*Math.hypot(c[3]-c[1],c[2]-c[0]);for(let p=0,y=n.length/2;p0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=o[0],this.triangles[1]=o[1],this.triangles[2]=o[1],a[o[0]]=1,o.length===2&&(a[o[1]]=0))}voronoi(t){return new Dqe(this,t)}*neighbors(t){const{inedges:n,hull:r,_hullIndex:o,halfedges:i,triangles:a,collinear:s}=this;if(s){const f=s.indexOf(t);f>0&&(yield s[f-1]),f=0&&i!==r&&i!==o;)r=i;return i}_step(t,n,r){const{inedges:o,hull:i,_hullIndex:a,halfedges:s,triangles:l,points:u}=this;if(o[t]===-1||!u.length)return(t+1)%(u.length>>1);let c=t,f=af(n-u[t*2],2)+af(r-u[t*2+1],2);const p=o[t];let y=p;do{let v=l[y];const b=af(n-u[v*2],2)+af(r-u[v*2+1],2);if(b-1?re.filter(function(ge){return ge!==ne}):[].concat(re,[ne])})},[]),se=function(ne){var re=ne.series,ge=ne.getPointColor,xe=ne.getPointBorderColor,fe=ne.formatX,Se=ne.formatY;return m.useMemo(function(){return re.reduce(function(de,ie){return[].concat(de,ie.data.filter(function(Pe){return Pe.position.x!==null&&Pe.position.y!==null}).map(function(Pe,$e){var me={id:ie.id+"."+$e,index:de.length+$e,serieId:ie.id,serieColor:ie.color,x:Pe.position.x,y:Pe.position.y};return me.color=ge(ie),me.borderColor=xe(me),me.data=Zr({},Pe.data,{xFormatted:fe(Pe.data.x),yFormatted:Se(Pe.data.y)}),me}))},[])},[re,ge,xe,fe,Se])}({series:Z,getPointColor:E,getPointBorderColor:A,formatX:k,formatY:M}),Q=rKe({enableSlices:T,points:se,width:l,height:u});return{legendData:U,toggleSerie:Y,lineGenerator:tKe({curve:y}),areaGenerator:nKe({curve:y,yScale:B,areaBaselineValue:b}),getColor:I,series:Z,xScale:H,yScale:B,slices:Q,points:se}},yG=function(e){var t=e.areaBlendMode,n=e.areaOpacity,r=e.color,o=e.fill,i=e.path,a=To(),s=a.animate,l=a.config,u=hT(i),c=xs({color:r,config:l,immediate:!s});return g.jsx(In.path,{d:u,fill:o||c.color,fillOpacity:n,strokeWidth:0,style:{mixBlendMode:t}})};yG.propTypes={areaBlendMode:mT.isRequired,areaOpacity:R.number.isRequired,color:R.string,fill:R.string,path:R.string.isRequired};var bG=function(e){var t=e.areaGenerator,n=e.areaOpacity,r=e.areaBlendMode,o=e.lines.slice(0).reverse();return g.jsx("g",{children:o.map(function(i){return g.jsx(yG,Zr({path:t(i.data.map(function(a){return a.position}))},Zr({areaOpacity:n,areaBlendMode:r},i)),i.id)})})};bG.propTypes={areaGenerator:R.func.isRequired,areaOpacity:R.number.isRequired,areaBlendMode:mT.isRequired,lines:R.arrayOf(R.object).isRequired};var oKe=m.memo(bG),xG=function(e){var t=e.lineGenerator,n=e.points,r=e.color,o=e.thickness,i=m.useMemo(function(){return t(n)},[t,n]),a=hT(i);return g.jsx(In.path,{d:a,fill:"none",strokeWidth:o,stroke:r})};xG.propTypes={points:R.arrayOf(R.shape({x:R.oneOfType([R.string,R.number]),y:R.oneOfType([R.string,R.number])})),lineGenerator:R.func.isRequired,color:R.string.isRequired,thickness:R.number.isRequired};var iKe=m.memo(xG),wG=function(e){var t=e.lines,n=e.lineGenerator,r=e.lineWidth;return t.slice(0).reverse().map(function(o){var i=o.id,a=o.data,s=o.color;return g.jsx(iKe,{id:i,points:a.map(function(l){return l.position}),lineGenerator:n,color:s,thickness:r},i)})};wG.propTypes={lines:R.arrayOf(R.shape({id:R.oneOfType([R.string,R.number]).isRequired,color:R.string.isRequired,data:R.arrayOf(R.shape({data:R.shape({x:R.oneOfType([R.string,R.number,R.instanceOf(Date)]),y:R.oneOfType([R.string,R.number,R.instanceOf(Date)])}).isRequired,position:R.shape({x:R.number,y:R.number}).isRequired})).isRequired})).isRequired,lineWidth:R.number.isRequired,lineGenerator:R.func.isRequired};var aKe=m.memo(wG),CG=function(e){var t=e.slice,n=e.axis,r=e.debug,o=e.tooltip,i=e.isCurrent,a=e.setCurrent,s=e.onMouseEnter,l=e.onMouseMove,u=e.onMouseLeave,c=e.onClick,f=Np(),p=f.showTooltipFromEvent,y=f.hideTooltip,v=m.useCallback(function(w){p(m.createElement(o,{slice:t,axis:n}),w,"right"),a(t),s&&s(t,w)},[p,o,t,s]),b=m.useCallback(function(w){p(m.createElement(o,{slice:t,axis:n}),w,"right"),l&&l(t,w)},[p,o,t,l]),C=m.useCallback(function(w){y(),a(null),u&&u(t,w)},[y,t,u]),x=m.useCallback(function(w){c&&c(t,w)},[t,c]);return g.jsx("rect",{x:t.x0,y:t.y0,width:t.width,height:t.height,stroke:"red",strokeWidth:r?1:0,strokeOpacity:.75,fill:"red",fillOpacity:i&&r?.35:0,onMouseEnter:v,onMouseMove:b,onMouseLeave:C,onClick:x,"data-testid":"slice-"+t.id})};CG.propTypes={slice:R.object.isRequired,axis:R.oneOf(["x","y"]).isRequired,debug:R.bool.isRequired,height:R.number.isRequired,tooltip:R.oneOfType([R.func,R.object]),isCurrent:R.bool.isRequired,setCurrent:R.func.isRequired,onMouseEnter:R.func,onMouseMove:R.func,onMouseLeave:R.func,onClick:R.func};var sKe=m.memo(CG),SG=function(e){var t=e.slices,n=e.axis,r=e.debug,o=e.height,i=e.tooltip,a=e.current,s=e.setCurrent,l=e.onMouseEnter,u=e.onMouseMove,c=e.onMouseLeave,f=e.onClick;return t.map(function(p){return g.jsx(sKe,{slice:p,axis:n,debug:r,height:o,tooltip:i,setCurrent:s,isCurrent:a!==null&&a.id===p.id,onMouseEnter:l,onMouseMove:u,onMouseLeave:c,onClick:f},p.id)})};SG.propTypes={slices:R.arrayOf(R.shape({id:R.oneOfType([R.number,R.string,R.instanceOf(Date)]).isRequired,x:R.number.isRequired,y:R.number.isRequired,points:R.arrayOf(R.object).isRequired})).isRequired,axis:R.oneOf(["x","y"]).isRequired,debug:R.bool.isRequired,height:R.number.isRequired,tooltip:R.oneOfType([R.func,R.object]).isRequired,current:R.object,setCurrent:R.func.isRequired,onMouseEnter:R.func,onMouseMove:R.func,onMouseLeave:R.func,onClick:R.func};var lKe=m.memo(SG),$G=function(e){var t=e.points,n=e.symbol,r=e.size,o=e.borderWidth,i=e.enableLabel,a=e.label,s=e.labelYOffset,l=On(),u=VOe(a),c=t.slice(0).reverse().map(function(f){return{id:f.id,x:f.x,y:f.y,datum:f.data,fill:f.color,stroke:f.borderColor,label:i?u(f.data):null}});return g.jsx("g",{children:c.map(function(f){return g.jsx(BOe,{x:f.x,y:f.y,datum:f.datum,symbol:n,size:r,color:f.fill,borderWidth:o,borderColor:f.stroke,label:f.label,labelYOffset:s,theme:l},f.id)})})};$G.propTypes={points:R.arrayOf(R.object),symbol:R.func,size:R.number.isRequired,color:R.func.isRequired,borderWidth:R.number.isRequired,borderColor:R.func.isRequired,enableLabel:R.bool.isRequired,label:R.oneOfType([R.string,R.func]).isRequired,labelYOffset:R.number};var uKe=m.memo($G),_G=function(e){var t=e.points,n=e.width,r=e.height,o=e.margin,i=e.setCurrent,a=e.onMouseEnter,s=e.onMouseMove,l=e.onMouseLeave,u=e.onClick,c=e.tooltip,f=e.debug,p=Np(),y=p.showTooltipAt,v=p.hideTooltip,b=m.useCallback(function(S,$){y(m.createElement(c,{point:S}),[S.x+o.left,S.y+o.top],"top"),i(S),a&&a(S,$)},[i,y,c,a,o]),C=m.useCallback(function(S,$){y(m.createElement(c,{point:S}),[S.x+o.left,S.y+o.top],"top"),i(S),s&&s(S,$)},[i,y,c,s]),x=m.useCallback(function(S,$){v(),i(null),l&&l(S,$)},[v,i,l]),w=m.useCallback(function(S,$){u&&u(S,$)},[u]);return g.jsx(qqe,{nodes:t,width:n,height:r,onMouseEnter:b,onMouseMove:C,onMouseLeave:x,onClick:w,debug:f})};_G.propTypes={points:R.arrayOf(R.object).isRequired,width:R.number.isRequired,height:R.number.isRequired,margin:R.object.isRequired,setCurrent:R.func.isRequired,onMouseEnter:R.func,onMouseMove:R.func,onMouseLeave:R.func,onClick:R.func,tooltip:R.oneOfType([R.func,R.object]).isRequired,debug:R.bool.isRequired};var cKe=m.memo(_G),Yk=function(e){var t=e.data,n=e.xScale,r=e.xFormat,o=e.yScale,i=e.yFormat,a=e.layers,s=e.curve,l=e.areaBaselineValue,u=e.colors,c=e.margin,f=e.width,p=e.height,y=e.axisTop,v=e.axisRight,b=e.axisBottom,C=e.axisLeft,x=e.enableGridX,w=e.enableGridY,S=e.gridXValues,$=e.gridYValues,T=e.lineWidth,k=e.enableArea,M=e.areaOpacity,I=e.areaBlendMode,N=e.enablePoints,E=e.pointSymbol,A=e.pointSize,z=e.pointColor,L=e.pointBorderWidth,O=e.pointBorderColor,D=e.enablePointLabel,H=e.pointLabel,B=e.pointLabelYOffset,j=e.defs,W=e.fill,U=e.markers,Z=e.legends,Y=e.isInteractive,se=e.useMesh,Q=e.debugMesh,ne=e.onMouseEnter,re=e.onMouseMove,ge=e.onMouseLeave,xe=e.onClick,fe=e.tooltip,Se=e.enableSlices,de=e.debugSlices,ie=e.sliceTooltip,Pe=e.enableCrosshair,$e=e.crosshairType,me=e.role,ue=b0(f,p,c),ce=ue.margin,Te=ue.innerWidth,Le=ue.innerHeight,Re=ue.outerWidth,Oe=ue.outerHeight,K=vG({data:t,xScale:n,xFormat:r,yScale:o,yFormat:i,width:Te,height:Le,colors:u,curve:s,areaBaselineValue:l,pointColor:z,pointBorderColor:O,enableSlices:Se}),ee=K.legendData,pe=K.toggleSerie,ye=K.lineGenerator,De=K.areaGenerator,Ae=K.series,Ee=K.xScale,Ce=K.yScale,Qe=K.slices,Ct=K.points,et=On(),Be=ms(z,et),te=ms(O,et),X=m.useState(null),oe=X[0],Ie=X[1],Ve=m.useState(null),Ke=Ve[0],at=Ve[1],Je={grid:g.jsx(cG,{theme:et,width:Te,height:Le,xScale:x?Ee:null,yScale:w?Ce:null,xValues:S,yValues:$},"grid"),markers:g.jsx(FW,{markers:U,width:Te,height:Le,xScale:Ee,yScale:Ce,theme:et},"markers"),axes:g.jsx(uG,{xScale:Ee,yScale:Ce,width:Te,height:Le,theme:et,top:y,right:v,bottom:b,left:C},"axes"),areas:null,lines:g.jsx(aKe,{lines:Ae,lineGenerator:ye,lineWidth:T},"lines"),slices:null,points:null,crosshair:null,mesh:null,legends:Z.map(function(_t,ht){return g.jsx(xT,Zr({},_t,{containerWidth:Te,containerHeight:Le,data:_t.data||ee,theme:et,toggleSerie:_t.toggleSerie?pe:void 0}),"legend."+ht)})},nt=gT(j,Ae,W);return k&&(Je.areas=g.jsx(oKe,{areaGenerator:De,areaOpacity:M,areaBlendMode:I,lines:Ae},"areas")),Y&&Se!==!1&&(Je.slices=g.jsx(lKe,{slices:Qe,axis:Se,debug:de,height:Le,tooltip:ie,current:Ke,setCurrent:at,onMouseEnter:ne,onMouseMove:re,onMouseLeave:ge,onClick:xe},"slices")),N&&(Je.points=g.jsx(uKe,{points:Ct,symbol:E,size:A,color:Be,borderWidth:L,borderColor:te,enableLabel:D,label:H,labelYOffset:B},"points")),Y&&Pe&&(oe!==null&&(Je.crosshair=g.jsx(rk,{width:Te,height:Le,x:oe.x,y:oe.y,type:$e},"crosshair")),Ke!==null&&(Je.crosshair=g.jsx(rk,{width:Te,height:Le,x:Ke.x,y:Ke.y,type:Se},"crosshair"))),Y&&se&&Se===!1&&(Je.mesh=g.jsx(cKe,{points:Ct,width:Te,height:Le,margin:ce,current:oe,setCurrent:Ie,onMouseEnter:ne,onMouseMove:re,onMouseLeave:ge,onClick:xe,tooltip:fe,debug:Q},"mesh")),g.jsx(e2,{defs:nt,width:Re,height:Oe,margin:ce,role:me,children:a.map(function(_t,ht){return typeof _t=="function"?g.jsx(m.Fragment,{children:_t(Zr({},e,{innerWidth:Te,innerHeight:Le,series:Ae,slices:Qe,points:Ct,xScale:Ee,yScale:Ce,lineGenerator:ye,areaGenerator:De,currentPoint:oe,setCurrentPoint:Ie,currentSlice:Ke,setCurrentSlice:at}))},ht):Je[_t]})})};Yk.propTypes=Zqe,Yk.defaultProps=zs;var dKe=LW(Yk),M0=function(e){return g.jsx(Jp,{children:function(t){var n=t.width,r=t.height;return g.jsx(dKe,Zr({width:n,height:r},e))}})},Xk=function(e){var t=e.width,n=e.height,r=e.margin,o=e.pixelRatio,i=e.data,a=e.xScale,s=e.xFormat,l=e.yScale,u=e.yFormat,c=e.curve,f=e.layers,p=e.colors,y=e.lineWidth,v=e.enableArea,b=e.areaBaselineValue,C=e.areaOpacity,x=e.enablePoints,w=e.pointSize,S=e.pointColor,$=e.pointBorderWidth,T=e.pointBorderColor,k=e.enableGridX,M=e.gridXValues,I=e.enableGridY,N=e.gridYValues,E=e.axisTop,A=e.axisRight,z=e.axisBottom,L=e.axisLeft,O=e.legends,D=e.isInteractive,H=e.debugMesh,B=e.onMouseLeave,j=e.onClick,W=e.tooltip,U=e.canvasRef,Z=m.useRef(null),Y=b0(t,n,r),se=Y.margin,Q=Y.innerWidth,ne=Y.innerHeight,re=Y.outerWidth,ge=Y.outerHeight,xe=On(),fe=m.useState(null),Se=fe[0],de=fe[1],ie=vG({data:i,xScale:a,xFormat:s,yScale:l,yFormat:u,width:Q,height:ne,colors:p,curve:c,areaBaselineValue:b,pointColor:S,pointBorderColor:T}),Pe=ie.lineGenerator,$e=ie.areaGenerator,me=ie.series,ue=ie.xScale,ce=ie.yScale,Te=ie.points,Le=fG({points:Te,width:Q,height:ne,debug:H}),Re=Le.delaunay,Oe=Le.voronoi;m.useEffect(function(){U&&(U.current=Z.current),Z.current.width=re*o,Z.current.height=ge*o;var Ce=Z.current.getContext("2d");Ce.scale(o,o),Ce.fillStyle=xe.background,Ce.fillRect(0,0,re,ge),Ce.translate(se.left,se.top),f.forEach(function(Qe){if(typeof Qe=="function"&&Qe({ctx:Ce,innerWidth:Q,innerHeight:ne,series:me,points:Te,xScale:ue,yScale:ce,lineWidth:y,lineGenerator:Pe,areaGenerator:$e,currentPoint:Se,setCurrentPoint:de}),Qe==="grid"&&xe.grid.line.strokeWidth>0&&(Ce.lineWidth=xe.grid.line.strokeWidth,Ce.strokeStyle=xe.grid.line.stroke,k&&bb(Ce,{width:Q,height:ne,scale:ue,axis:"x",values:M}),I&&bb(Ce,{width:Q,height:ne,scale:ce,axis:"y",values:N})),Qe==="axes"&&dG(Ce,{xScale:ue,yScale:ce,width:Q,height:ne,top:E,right:A,bottom:z,left:L,theme:xe}),Qe==="areas"&&v===!0&&(Ce.save(),Ce.globalAlpha=C,$e.context(Ce),me.forEach(function(et){Ce.fillStyle=et.color,Ce.beginPath(),$e(et.data.map(function(Be){return Be.position})),Ce.fill()}),Ce.restore()),Qe==="lines"&&(Pe.context(Ce),me.forEach(function(et){Ce.strokeStyle=et.color,Ce.lineWidth=y,Ce.beginPath(),Pe(et.data.map(function(Be){return Be.position})),Ce.stroke()})),Qe==="points"&&x===!0&&w>0&&Te.forEach(function(et){Ce.fillStyle=et.color,Ce.beginPath(),Ce.arc(et.x,et.y,w/2,0,2*Math.PI),Ce.fill(),$>0&&(Ce.strokeStyle=et.borderColor,Ce.lineWidth=$,Ce.stroke())}),Qe==="mesh"&&H===!0&&(Kqe(Ce,Oe),Se&&Yqe(Ce,Oe,Se.index)),Qe==="legends"){var Ct=me.map(function(et){return{id:et.id,label:et.id,color:et.color}}).reverse();O.forEach(function(et){XW(Ce,Zr({},et,{data:et.data||Ct,containerWidth:Q,containerHeight:ne,theme:xe}))})}})},[Z,re,ge,f,xe,Pe,me,ue,ce,k,M,I,N,E,A,z,L,O,Te,x,w,Se]);var K=m.useCallback(function(Ce){var Qe=Im(Z.current,Ce),Ct=Qe[0],et=Qe[1];if(!jW(se.left,se.top,Q,ne,Ct,et))return null;var Be=Re.find(Ct-se.left,et-se.top);return Te[Be]},[Z,se,Q,ne,Re]),ee=Np(),pe=ee.showTooltipFromEvent,ye=ee.hideTooltip,De=m.useCallback(function(Ce){var Qe=K(Ce);de(Qe),Qe?pe(m.createElement(W,{point:Qe}),Ce):ye()},[K,de,pe,ye,W]),Ae=m.useCallback(function(Ce){ye(),de(null),Se&&B&&B(Se,Ce)},[ye,de,B]),Ee=m.useCallback(function(Ce){if(j){var Qe=K(Ce);Qe&&j(Qe,Ce)}},[K,j]);return g.jsx("canvas",{ref:Z,width:re*o,height:ge*o,style:{width:re,height:ge,cursor:D?"auto":"normal"},onMouseEnter:D?De:void 0,onMouseMove:D?De:void 0,onMouseLeave:D?Ae:void 0,onClick:D?Ee:void 0})};Xk.propTypes=Jqe,Xk.defaultProps=eKe;var fKe=LW(Xk),pKe=m.forwardRef(function(e,t){return g.jsx(fKe,Zr({},e,{canvasRef:t}))});m.forwardRef(function(e,t){return g.jsx(Jp,{children:function(n){var r=n.width,o=n.height;return g.jsx(pKe,Zr({width:r,height:o},e,{ref:t}))}})});const hKe=({data:e})=>{const t=Xt(),n=jn(t.palette.mode);return g.jsx(M0,{data:e,margin:{top:40,right:10,bottom:100,left:50},xScale:{type:"point"},yScale:{type:"linear",min:"auto",max:900,stacked:!1,reverse:!1},yFormat:" >-.2f",curve:"linear",axisTop:null,axisRight:null,axisBottom:{tickSize:5,tickPadding:5,tickRotation:0,legend:"Months",legendOffset:36,legendPosition:"middle"},axisLeft:{tickSize:5,tickPadding:5,tickRotation:0,legend:"Amount spent",legendOffset:-40,legendPosition:"middle"},theme:{axis:{legend:{text:{fill:`${n.primary[100]}`}},ticks:{text:{fontSize:11,fill:`${n.primary[100]}`,outlineWidth:0,outlineColor:"transparent"}}},tooltip:{container:{background:`${n.primary[500]}`,color:`${n.primary[100]}`,position:"fixed",maxWidth:"10rem"},basic:{maxWidth:"10rem"},table:{maxWidth:"10rem"}}},enableGridX:!0,enableGridY:!1,colors:{scheme:"set1"},pointSize:10,pointColor:{theme:"background"},pointBorderWidth:2,pointBorderColor:{from:"serieColor"},pointLabelYOffset:-12,useMesh:!0,legends:[{anchor:"bottom-left",direction:"row",justify:!1,translateX:0,translateY:80,itemWidth:94,itemHeight:15,itemsSpacing:6,symbolSize:19,symbolShape:"circle",itemDirection:"left-to-right",itemTextColor:`${n.primary[100]}`,effects:[{on:"hover",style:{itemBackground:"rgba(0, 0, 0, .03)",itemOpacity:1}}]}]})},mKe=()=>g.jsx(mr,{title:"Bill Payment Trends",content:g.jsx(_i,{style:{height:"400px",padding:0},className:"Mui-Chart",children:g.jsx(hKe,{data:KVe})}),height:500});function gKe(){return g.jsx(g.Fragment,{children:g.jsxs(Ue,{sx:{padding:2},children:[g.jsxs(Ue,{sx:{paddingBlock:2},children:[g.jsx(Ze,{variant:"h1",children:"Bills"}),g.jsx(Ze,{variant:"h6",children:"Stay on Top of Your Financial Obligations"})]}),g.jsxs(Ft,{container:!0,spacing:2,children:[g.jsx(Ft,{item:!0,xs:12,md:12,children:g.jsx(QVe,{})}),g.jsx(Ft,{item:!0,xs:12,md:12,children:g.jsx(mKe,{})})]})]})})}const vKe=({data:e})=>{const t=Xt(),n=jn(t.palette.mode);return g.jsx(M0,{data:e,margin:{top:40,right:10,bottom:100,left:50},xScale:{type:"point"},yScale:{type:"linear",min:"auto",max:"auto",stacked:!1,reverse:!1},yFormat:" >-.2f",axisTop:null,axisRight:null,axisBottom:{tickSize:5,tickPadding:5,tickRotation:0,legend:"Months",legendOffset:36,legendPosition:"middle"},axisLeft:{tickSize:5,tickPadding:5,tickRotation:0,legend:"Amount spent",legendOffset:-40,legendPosition:"middle"},enableGridX:!1,enableGridY:!1,theme:{axis:{legend:{text:{fill:`${n.primary[100]}`}},ticks:{text:{fontSize:11,fill:`${n.primary[100]}`,outlineWidth:0,outlineColor:"transparent"}}},tooltip:{container:{background:`${n.primary[500]}`,color:`${n.primary[100]}`,position:"fixed",maxWidth:"10rem"}}},colors:{scheme:"set1"},pointSize:10,pointColor:{theme:"background"},pointBorderWidth:2,pointBorderColor:{from:"serieColor"},pointLabelYOffset:-12,useMesh:!0,legends:[{anchor:"bottom-left",direction:"row",justify:!1,translateX:0,translateY:80,itemWidth:94,itemHeight:15,itemsSpacing:6,symbolSize:19,symbolShape:"circle",itemDirection:"left-to-right",itemTextColor:`${n.primary[100]}`,effects:[{on:"hover",style:{itemBackground:"rgba(0, 0, 0, .03)",itemOpacity:1}}]}]})},yKe=[{id:"Rent",color:"hsl(152, 70%, 50%)",data:[{x:"JAN",y:350},{x:"FEB",y:400},{x:"MAR",y:550},{x:"APR",y:500},{x:"MAY",y:410},{x:"JUN",y:430},{x:"JUL",y:510},{x:"AUG",y:460},{x:"SEP",y:640},{x:"OCT",y:690},{x:"NOV",y:450},{x:"DEC",y:480}]},{id:"Utilities",color:"hsl(30, 70%, 50%)",data:[{x:"JAN",y:600},{x:"FEB",y:550},{x:"MAR",y:400},{x:"APR",y:625},{x:"MAY",y:480},{x:"JUN",y:570},{x:"JUL",y:700},{x:"AUG",y:750},{x:"SEP",y:450},{x:"OCT",y:560},{x:"NOV",y:490},{x:"DEC",y:600}]},{id:"Internet",color:"hsl(201, 70%, 50%)",data:[{x:"JAN",y:630},{x:"FEB",y:690},{x:"MAR",y:700},{x:"APR",y:750},{x:"MAY",y:730},{x:"JUN",y:690},{x:"JUL",y:600},{x:"AUG",y:800},{x:"SEP",y:780},{x:"OCT",y:760},{x:"NOV",y:800},{x:"DEC",y:700}]},{id:"Phone",color:"hsl(203, 70%, 50%)",data:[{x:"JAN",y:776},{x:"FEB",y:615},{x:"MAR",y:790},{x:"APR",y:785},{x:"MAY",y:683},{x:"JUN",y:788},{x:"JUL",y:784},{x:"AUG",y:678},{x:"SEP",y:694},{x:"OCT",y:879},{x:"NOV",y:887},{x:"DEC",y:790}]},{id:"Other",color:"hsl(253, 70%, 50%)",data:[{x:"JAN",y:700},{x:"FEB",y:580},{x:"MAR",y:436},{x:"APR",y:440},{x:"MAY",y:510},{x:"JUN",y:490},{x:"JUL",y:460},{x:"AUG",y:500},{x:"SEP",y:480},{x:"OCT",y:510},{x:"NOV",y:530},{x:"DEC",y:650}]}],bKe=[{id:"Expenses",data:[{x:"JAN",y:1300},{x:"FEB",y:700},{x:"MAR",y:900},{x:"APR",y:1100},{x:"MAY",y:1e3},{x:"JUN",y:1900},{x:"JUL",y:1300},{x:"AUG",y:2100},{x:"SEP",y:1400},{x:"OCT",y:1200},{x:"NOV",y:2300},{x:"DEC",y:1800}]},{id:"Income",data:[{x:"JAN",y:5500},{x:"FEB",y:5300},{x:"MAR",y:5400},{x:"APR",y:5600},{x:"MAY",y:5700},{x:"JUN",y:4900},{x:"JUL",y:5100},{x:"AUG",y:5300},{x:"SEP",y:6e3},{x:"OCT",y:6500},{x:"NOV",y:6300},{x:"DEC",y:6100}]}],xKe=[{day:"Mon",rent:20,utilities:120,internet:15,phone:10,other:150},{day:"Tue",rent:40,utilities:90,internet:30,phone:40,other:120},{day:"Wed",rent:30,utilities:75,internet:35,phone:45,other:70},{day:"Thu",rent:60,utilities:50,internet:55,phone:25,other:60},{day:"Fri",rent:70,utilities:40,internet:20,phone:10,other:100},{day:"Sat",rent:60,utilities:50,internet:45,phone:65,other:80},{day:"Sun",rent:50,utilities:70,internet:50,phone:60,other:100}],wKe=[{category:"Groceries",budget:500,actual:400},{category:"Rent",budget:1e3,actual:950},{category:"Transportation",budget:200,actual:180},{category:"Entertainment",budget:300,actual:350},{category:"Healthcare",budget:150,actual:120},{category:"Utilities",budget:250,actual:200},{category:"Other Expenses",budget:400,actual:420}],CKe=()=>g.jsx(mr,{title:"Trend Analysis",content:g.jsx(_i,{style:{height:"400px",padding:0},className:"Mui-Chart",children:g.jsx(vKe,{data:yKe})}),height:500});function SKe(e,t){for(var n=-1,r=e==null?0:e.length;++no?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r1),i}),pQe(e,gQe(e),n),r&&(n=cQe(n,vQe|yQe|bQe,hQe));for(var o=t.length;o--;)dQe(n,t[o]);return n}),wQe=xQe;const CQe=Or(wQe);function vs(){return vs=Object.assign?Object.assign.bind():function(e){for(var t=1;t180?(C-=l,x-=l):x+=l,{points:[[f,p],[t,n],[x,n]],text:[C,n-c],angle:y+90}},RG=function(e){var t=e.data,n=e.annotations,r=e.getPosition,o=e.getDimensions;return m.useMemo(function(){return _Qe({data:t,annotations:n,getPosition:r,getDimensions:o})},[t,n,r,o])},PQe=function(e){var t=e.annotations;return m.useMemo(function(){return t.map(function(n){return vs({},n,{computed:IG(vs({},n))})})},[t])},MQe=function(e){return m.useMemo(function(){return IG(e)},[e])},TQe=function(e){var t=e.datum,n=e.x,r=e.y,o=e.note,i=On(),a=To(),s=a.animate,l=a.config,u=xs({x:n,y:r,config:l,immediate:!s});return typeof o=="function"?m.createElement(o,{x:n,y:r,datum:t}):g.jsxs(g.Fragment,{children:[i.annotations.text.outlineWidth>0&&g.jsx(In.text,{x:u.x,y:u.y,style:vs({},i.annotations.text,{strokeLinejoin:"round",strokeWidth:2*i.annotations.text.outlineWidth,stroke:i.annotations.text.outlineColor}),children:o}),g.jsx(In.text,{x:u.x,y:u.y,style:CQe(i.annotations.text,["outlineWidth","outlineColor"]),children:o})]})},K9=function(e){var t=e.points,n=e.isOutline,r=n!==void 0&&n,o=On(),i=m.useMemo(function(){var l=t[0];return t.slice(1).reduce(function(u,c){return u+" L"+c[0]+","+c[1]},"M"+l[0]+","+l[1])},[t]),a=hT(i);if(r&&o.annotations.link.outlineWidth<=0)return null;var s=vs({},o.annotations.link);return r&&(s.strokeLinecap="square",s.strokeWidth=o.annotations.link.strokeWidth+2*o.annotations.link.outlineWidth,s.stroke=o.annotations.link.outlineColor,s.opacity=o.annotations.link.outlineOpacity),g.jsx(In.path,{fill:"none",d:a,style:s})},EQe=function(e){var t=e.x,n=e.y,r=e.size,o=On(),i=To(),a=i.animate,s=i.config,l=xs({x:t,y:n,radius:r/2,config:s,immediate:!a});return g.jsxs(g.Fragment,{children:[o.annotations.outline.outlineWidth>0&&g.jsx(In.circle,{cx:l.x,cy:l.y,r:l.radius,style:vs({},o.annotations.outline,{fill:"none",strokeWidth:o.annotations.outline.strokeWidth+2*o.annotations.outline.outlineWidth,stroke:o.annotations.outline.outlineColor,opacity:o.annotations.outline.outlineOpacity})}),g.jsx(In.circle,{cx:l.x,cy:l.y,r:l.radius,style:o.annotations.outline})]})},IQe=function(e){var t=e.x,n=e.y,r=e.size,o=r===void 0?Qk.dotSize:r,i=On(),a=To(),s=a.animate,l=a.config,u=xs({x:t,y:n,radius:o/2,config:l,immediate:!s});return g.jsxs(g.Fragment,{children:[i.annotations.outline.outlineWidth>0&&g.jsx(In.circle,{cx:u.x,cy:u.y,r:u.radius,style:vs({},i.annotations.outline,{fill:"none",strokeWidth:2*i.annotations.outline.outlineWidth,stroke:i.annotations.outline.outlineColor,opacity:i.annotations.outline.outlineOpacity})}),g.jsx(In.circle,{cx:u.x,cy:u.y,r:u.radius,style:i.annotations.symbol})]})},RQe=function(e){var t=e.x,n=e.y,r=e.width,o=e.height,i=e.borderRadius,a=i===void 0?6:i,s=On(),l=To(),u=l.animate,c=l.config,f=xs({x:t-r/2,y:n-o/2,width:r,height:o,config:c,immediate:!u});return g.jsxs(g.Fragment,{children:[s.annotations.outline.outlineWidth>0&&g.jsx(In.rect,{x:f.x,y:f.y,rx:a,ry:a,width:f.width,height:f.height,style:vs({},s.annotations.outline,{fill:"none",strokeWidth:s.annotations.outline.strokeWidth+2*s.annotations.outline.outlineWidth,stroke:s.annotations.outline.outlineColor,opacity:s.annotations.outline.outlineOpacity})}),g.jsx(In.rect,{x:f.x,y:f.y,rx:a,ry:a,width:f.width,height:f.height,style:s.annotations.outline})]})},OQe=function(e){var t=e.datum,n=e.x,r=e.y,o=e.note,i=MQe(e);if(!SQe(o))throw new Error("note should be a valid react element");return g.jsxs(g.Fragment,{children:[g.jsx(K9,{points:i.points,isOutline:!0}),Vg(e)&&g.jsx(EQe,{x:n,y:r,size:e.size}),Zk(e)&&g.jsx(IQe,{x:n,y:r,size:e.size}),Ug(e)&&g.jsx(RQe,{x:n,y:r,width:e.width,height:e.height,borderRadius:e.borderRadius}),g.jsx(K9,{points:i.points}),g.jsx(TQe,{datum:t,x:i.text[0],y:i.text[1],note:o})]})},Y9=function(e,t){t.forEach(function(n,r){var o=n[0],i=n[1];r===0?e.moveTo(o,i):e.lineTo(o,i)})},AQe=function(e,t){var n=t.annotations,r=t.theme;n.length!==0&&(e.save(),n.forEach(function(o){if(!$Qe(o.note))throw new Error("note is invalid for canvas implementation");r.annotations.link.outlineWidth>0&&(e.lineCap="square",e.strokeStyle=r.annotations.link.outlineColor,e.lineWidth=r.annotations.link.strokeWidth+2*r.annotations.link.outlineWidth,e.beginPath(),Y9(e,o.computed.points),e.stroke(),e.lineCap="butt"),Vg(o)&&r.annotations.outline.outlineWidth>0&&(e.strokeStyle=r.annotations.outline.outlineColor,e.lineWidth=r.annotations.outline.strokeWidth+2*r.annotations.outline.outlineWidth,e.beginPath(),e.arc(o.x,o.y,o.size/2,0,2*Math.PI),e.stroke()),Zk(o)&&r.annotations.symbol.outlineWidth>0&&(e.strokeStyle=r.annotations.symbol.outlineColor,e.lineWidth=2*r.annotations.symbol.outlineWidth,e.beginPath(),e.arc(o.x,o.y,o.size/2,0,2*Math.PI),e.stroke()),Ug(o)&&r.annotations.outline.outlineWidth>0&&(e.strokeStyle=r.annotations.outline.outlineColor,e.lineWidth=r.annotations.outline.strokeWidth+2*r.annotations.outline.outlineWidth,e.beginPath(),e.rect(o.x-o.width/2,o.y-o.height/2,o.width,o.height),e.stroke()),e.strokeStyle=r.annotations.link.stroke,e.lineWidth=r.annotations.link.strokeWidth,e.beginPath(),Y9(e,o.computed.points),e.stroke(),Vg(o)&&(e.strokeStyle=r.annotations.outline.stroke,e.lineWidth=r.annotations.outline.strokeWidth,e.beginPath(),e.arc(o.x,o.y,o.size/2,0,2*Math.PI),e.stroke()),Zk(o)&&(e.fillStyle=r.annotations.symbol.fill,e.beginPath(),e.arc(o.x,o.y,o.size/2,0,2*Math.PI),e.fill()),Ug(o)&&(e.strokeStyle=r.annotations.outline.stroke,e.lineWidth=r.annotations.outline.strokeWidth,e.beginPath(),e.rect(o.x-o.width/2,o.y-o.height/2,o.width,o.height),e.stroke()),typeof o.note=="function"?o.note(e,{datum:o.datum,x:o.computed.text[0],y:o.computed.text[1],theme:r}):(e.font=r.annotations.text.fontSize+"px "+r.annotations.text.fontFamily,e.textAlign="left",e.textBaseline="alphabetic",e.fillStyle=r.annotations.text.fill,e.strokeStyle=r.annotations.text.outlineColor,e.lineWidth=2*r.annotations.text.outlineWidth,r.annotations.text.outlineWidth>0&&(e.lineJoin="round",e.strokeText(o.note,o.computed.text[0],o.computed.text[1]),e.lineJoin="miter"),e.fillText(o.note,o.computed.text[0],o.computed.text[1]))}),e.restore())};function An(){return An=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}var X9,FQe=function(e){var t=e.bars,n=e.annotations,r=RG({data:t,annotations:n,getPosition:function(o){return{x:o.x+o.width/2,y:o.y+o.height/2}},getDimensions:function(o){var i=o.height,a=o.width;return{width:a,height:i,size:Math.max(a,i)}}});return g.jsx(g.Fragment,{children:r.map(function(o,i){return g.jsx(OQe,An({},o),i)})})},LQe=function(e){var t=e.width,n=e.height,r=e.legends,o=e.toggleSerie;return g.jsx(g.Fragment,{children:r.map(function(i,a){var s,l=i[0],u=i[1];return g.jsx(xT,An({},l,{containerWidth:t,containerHeight:n,data:(s=l.data)!=null?s:u,toggleSerie:l.toggleSerie&&l.dataFrom==="keys"?o:void 0}),a)})})},DQe=["data"],jQe=function(e){var t,n=e.bar,r=n.data,o=oh(n,DQe),i=e.style,a=i.borderColor,s=i.color,l=i.height,u=i.labelColor,c=i.labelOpacity,f=i.labelX,p=i.labelY,y=i.transform,v=i.width,b=e.borderRadius,C=e.borderWidth,x=e.label,w=e.shouldRenderLabel,S=e.isInteractive,$=e.onClick,T=e.onMouseEnter,k=e.onMouseLeave,M=e.tooltip,I=e.isFocusable,N=e.ariaLabel,E=e.ariaLabelledBy,A=e.ariaDescribedBy,z=On(),L=Np(),O=L.showTooltipFromEvent,D=L.showTooltipAt,H=L.hideTooltip,B=m.useMemo(function(){return function(){return m.createElement(M,An({},o,r))}},[M,o,r]),j=m.useCallback(function(Q){$==null||$(An({color:o.color},r),Q)},[o,r,$]),W=m.useCallback(function(Q){return O(B(),Q)},[O,B]),U=m.useCallback(function(Q){T==null||T(r,Q),O(B(),Q)},[r,T,O,B]),Z=m.useCallback(function(Q){k==null||k(r,Q),H()},[r,H,k]),Y=m.useCallback(function(){D(B(),[o.absX+o.width/2,o.absY])},[D,B,o]),se=m.useCallback(function(){H()},[H]);return g.jsxs(In.g,{transform:y,children:[g.jsx(In.rect,{width:du(v,function(Q){return Math.max(Q,0)}),height:du(l,function(Q){return Math.max(Q,0)}),rx:b,ry:b,fill:(t=r.fill)!=null?t:s,strokeWidth:C,stroke:a,focusable:I,tabIndex:I?0:void 0,"aria-label":N?N(r):void 0,"aria-labelledby":E?E(r):void 0,"aria-describedby":A?A(r):void 0,onMouseEnter:S?U:void 0,onMouseMove:S?W:void 0,onMouseLeave:S?Z:void 0,onClick:S?j:void 0,onFocus:S&&I?Y:void 0,onBlur:S&&I?se:void 0}),w&&g.jsx(In.text,{x:f,y:p,textAnchor:"middle",dominantBaseline:"central",fillOpacity:c,style:An({},z.labels.text,{pointerEvents:"none",fill:u}),children:x})]})},NQe=["color","label"],zQe=function(e){var t=e.color,n=e.label,r=oh(e,NQe);return g.jsx(v5,{id:n,value:r.formattedValue,enableChip:!0,color:t})},nr={indexBy:"id",keys:["value"],groupMode:"stacked",layout:"vertical",reverse:!1,minValue:"auto",maxValue:"auto",valueScale:{type:"linear"},indexScale:{type:"band",round:!0},padding:.1,innerPadding:0,axisBottom:{},axisLeft:{},enableGridX:!1,enableGridY:!0,enableLabel:!0,label:"formattedValue",labelSkipWidth:0,labelSkipHeight:0,labelTextColor:{from:"theme",theme:"labels.text.fill"},colorBy:"id",colors:{scheme:"nivo"},borderRadius:0,borderWidth:0,borderColor:{from:"color"},isInteractive:!0,tooltip:zQe,tooltipLabel:function(e){return e.id+" - "+e.indexValue},legends:[],initialHiddenIds:[],annotations:[],markers:[]},pr=An({},nr,{layers:["grid","axes","bars","markers","legends","annotations"],barComponent:jQe,defs:[],fill:[],animate:!0,motionConfig:"default",role:"img",isFocusable:!1}),Fo=An({},nr,{layers:["grid","axes","bars","legends","annotations"],pixelRatio:typeof window<"u"&&(X9=window.devicePixelRatio)!=null?X9:1}),OG=function(e,t,n,r,o,i){return Wg(r,{all:e.map(t),min:0,max:0},o,i).padding(n)},AG=function(e,t){return e.map(function(n){return An({},t.reduce(function(r,o){return r[o]=null,r},{}),n)})},C2=function(e){return Object.keys(e).reduce(function(t,n){return e[n]&&(t[n]=e[n]),t},{})},S2=function(e){return[e,Number(e)]},BQe=["layout","minValue","maxValue","reverse","width","height","padding","innerPadding","valueScale","indexScale","hiddenIds"],a3=function(e,t){return e>t},FG=function(e,t){return e0?r==="vertical"?WQe.apply(void 0,W):VQe.apply(void 0,W):[]}},GQe=["data","layout","minValue","maxValue","reverse","width","height","padding","valueScale","indexScale","hiddenIds"],qQe=function e(t){var n;return t.some(Array.isArray)?e((n=[]).concat.apply(n,t)):t},KQe=function(e,t,n){var r=e.formatValue,o=e.getColor,i=e.getIndex,a=e.getTooltipLabel,s=e.innerPadding,l=e.stackedData,u=e.xScale,c=e.yScale,f=e.margin,p=[];return l.forEach(function(y){return u.domain().forEach(function(v,b){var C,x,w=y[b],S=(C=u(i(w.data)))!=null?C:0,$=((x=function(E){return c(E[n?0:1])}(w))!=null?x:0)+.5*s,T=function(E,A){var z;return((z=c(E[n?1:0]))!=null?z:0)-A}(w,$)-s,k=S2(w.data[y.key]),M=k[0],I=k[1],N={id:y.key,value:M===null?M:I,formattedValue:r(I),hidden:!1,index:b,indexValue:v,data:C2(w.data)};p.push({key:y.key+"."+v,index:p.length,data:N,x:S,y:$,absX:f.left+S,absY:f.top+$,width:t,height:T,color:o(N),label:a(N)})})}),p},YQe=function(e,t,n){var r=e.formatValue,o=e.getColor,i=e.getIndex,a=e.getTooltipLabel,s=e.innerPadding,l=e.stackedData,u=e.xScale,c=e.yScale,f=e.margin,p=[];return l.forEach(function(y){return c.domain().forEach(function(v,b){var C,x,w=y[b],S=(C=c(i(w.data)))!=null?C:0,$=((x=function(E){return u(E[n?1:0])}(w))!=null?x:0)+.5*s,T=function(E,A){var z;return((z=u(E[n?0:1]))!=null?z:0)-A}(w,$)-s,k=S2(w.data[y.key]),M=k[0],I=k[1],N={id:y.key,value:M===null?M:I,formattedValue:r(I),hidden:!1,index:b,indexValue:v,data:C2(w.data)};p.push({key:y.key+"."+v,index:p.length,data:N,x:$,y:S,absX:f.left+$,absY:f.top+S,width:T,height:t,color:o(N),label:a(N)})})}),p},XQe=function(e){var t,n=e.data,r=e.layout,o=e.minValue,i=e.maxValue,a=e.reverse,s=e.width,l=e.height,u=e.padding,c=u===void 0?0:u,f=e.valueScale,p=e.indexScale,y=e.hiddenIds,v=y===void 0?[]:y,b=oh(e,GQe),C=b.keys.filter(function(j){return!v.includes(j)}),x=CEe().keys(C).offset(lW)(AG(n,C)),w=r==="vertical"?["y","x",s]:["x","y",l],S=w[0],$=w[1],T=w[2],k=OG(n,b.getIndex,c,p,T,$),M=An({max:i,min:o,reverse:a},f),I=(t=qQe(x),f.type==="log"?t.filter(function(j){return j!==0}):t),N=Math.min.apply(Math,I),E=Math.max.apply(Math,I),A=Wg(M,{all:I,min:N,max:E},S==="x"?s:l,S),z=r==="vertical"?[k,A]:[A,k],L=z[0],O=z[1],D=b.innerPadding>0?b.innerPadding:0,H=k.bandwidth(),B=[An({},b,{innerPadding:D,stackedData:x,xScale:L,yScale:O}),H,M.reverse];return{xScale:L,yScale:O,bars:H>0?r==="vertical"?KQe.apply(void 0,B):YQe.apply(void 0,B):[]}},QQe=function(e){var t=e.bars,n=e.direction,r=e.from,o=e.groupMode,i=e.layout,a=e.legendLabel,s=e.reverse,l=DW(a??(r==="indexes"?"indexValue":"id"));return r==="indexes"?function(u,c,f){var p=yi.uniqBy(u.map(function(y){var v,b;return{id:(v=y.data.indexValue)!=null?v:"",label:f(y.data),hidden:y.data.hidden,color:(b=y.color)!=null?b:"#000"}}),function(y){return y.id});return c==="horizontal"&&p.reverse(),p}(t,i,l):function(u,c,f,p,y,v){var b=yi.uniqBy(u.map(function(C){var x;return{id:C.data.id,label:v(C.data),hidden:C.data.hidden,color:(x=C.color)!=null?x:"#000"}}),function(C){return C.id});return(c==="vertical"&&p==="stacked"&&f==="column"&&y!==!0||c==="horizontal"&&p==="stacked"&&y===!0)&&b.reverse(),b}(t,i,n,o,s,l)},DG=function(e){var t=e.indexBy,n=t===void 0?nr.indexBy:t,r=e.keys,o=r===void 0?nr.keys:r,i=e.label,a=i===void 0?nr.label:i,s=e.tooltipLabel,l=s===void 0?nr.tooltipLabel:s,u=e.valueFormat,c=e.colors,f=c===void 0?nr.colors:c,p=e.colorBy,y=p===void 0?nr.colorBy:p,v=e.borderColor,b=v===void 0?nr.borderColor:v,C=e.labelTextColor,x=C===void 0?nr.labelTextColor:C,w=e.groupMode,S=w===void 0?nr.groupMode:w,$=e.layout,T=$===void 0?nr.layout:$,k=e.reverse,M=k===void 0?nr.reverse:k,I=e.data,N=e.minValue,E=N===void 0?nr.minValue:N,A=e.maxValue,z=A===void 0?nr.maxValue:A,L=e.margin,O=e.width,D=e.height,H=e.padding,B=H===void 0?nr.padding:H,j=e.innerPadding,W=j===void 0?nr.innerPadding:j,U=e.valueScale,Z=U===void 0?nr.valueScale:U,Y=e.indexScale,se=Y===void 0?nr.indexScale:Y,Q=e.initialHiddenIds,ne=Q===void 0?nr.initialHiddenIds:Q,re=e.enableLabel,ge=re===void 0?nr.enableLabel:re,xe=e.labelSkipWidth,fe=xe===void 0?nr.labelSkipWidth:xe,Se=e.labelSkipHeight,de=Se===void 0?nr.labelSkipHeight:Se,ie=e.legends,Pe=ie===void 0?nr.legends:ie,$e=e.legendLabel,me=m.useState(ne??[]),ue=me[0],ce=me[1],Te=m.useCallback(function(X){ce(function(oe){return oe.indexOf(X)>-1?oe.filter(function(Ie){return Ie!==X}):[].concat(oe,[X])})},[]),Le=$c(n),Re=$c(a),Oe=$c(l),K=Rg(u),ee=On(),pe=yT(f,y),ye=ms(b,ee),De=ms(x,ee),Ae=(S==="grouped"?UQe:XQe)({layout:T,reverse:M,data:I,getIndex:Le,keys:o,minValue:E,maxValue:z,width:O,height:D,getColor:pe,padding:B,innerPadding:W,valueScale:Z,indexScale:se,hiddenIds:ue,formatValue:K,getTooltipLabel:Oe,margin:L}),Ee=Ae.bars,Ce=Ae.xScale,Qe=Ae.yScale,Ct=m.useMemo(function(){return Ee.filter(function(X){return X.data.value!==null}).map(function(X,oe){return An({},X,{index:oe})})},[Ee]),et=m.useCallback(function(X){var oe=X.width,Ie=X.height;return!!ge&&!(fe>0&&oe0&&Ie0&&(ut.strokeStyle=Fe,ut.lineWidth=Tt),ut.beginPath(),rt>0){var gt=Math.min(rt,tt);ut.moveTo(_e+gt,we),ut.lineTo(_e+Ut-gt,we),ut.quadraticCurveTo(_e+Ut,we,_e+Ut,we+gt),ut.lineTo(_e+Ut,we+tt-gt),ut.quadraticCurveTo(_e+Ut,we+tt,_e+Ut-gt,we+tt),ut.lineTo(_e+gt,we+tt),ut.quadraticCurveTo(_e,we+tt,_e,we+tt-gt),ut.lineTo(_e,we+gt),ut.quadraticCurveTo(_e,we,_e+gt,we),ut.closePath()}else ut.rect(_e,we,Ut,tt);ut.fill(),Tt>0&&ut.stroke(),ct&&(ut.textBaseline="middle",ut.textAlign="center",ut.fillStyle=_n,ut.fillText(en,_e+Ut/2,we+tt/2))}:O,H=e.enableLabel,B=H===void 0?Fo.enableLabel:H,j=e.label,W=e.labelSkipWidth,U=W===void 0?Fo.labelSkipWidth:W,Z=e.labelSkipHeight,Y=Z===void 0?Fo.labelSkipHeight:Z,se=e.labelTextColor,Q=e.colorBy,ne=e.colors,re=e.borderRadius,ge=re===void 0?Fo.borderRadius:re,xe=e.borderWidth,fe=xe===void 0?Fo.borderWidth:xe,Se=e.borderColor,de=e.annotations,ie=de===void 0?Fo.annotations:de,Pe=e.legendLabel,$e=e.tooltipLabel,me=e.valueFormat,ue=e.isInteractive,ce=ue===void 0?Fo.isInteractive:ue,Te=e.tooltip,Le=Te===void 0?Fo.tooltip:Te,Re=e.onClick,Oe=e.onMouseEnter,K=e.onMouseLeave,ee=e.legends,pe=e.pixelRatio,ye=pe===void 0?Fo.pixelRatio:pe,De=e.canvasRef,Ae=m.useRef(null),Ee=On(),Ce=b0(i,a,o),Qe=Ce.margin,Ct=Ce.innerWidth,et=Ce.innerHeight,Be=Ce.outerWidth,te=Ce.outerHeight,X=DG({indexBy:n,label:j,tooltipLabel:$e,valueFormat:me,colors:ne,colorBy:Q,borderColor:Se,labelTextColor:se,groupMode:s,layout:l,reverse:u,data:t,keys:r,minValue:c,maxValue:f,margin:Qe,width:Ct,height:et,padding:v,innerPadding:b,valueScale:p,indexScale:y,enableLabel:B,labelSkipWidth:U,labelSkipHeight:Y,legends:ee,legendLabel:Pe}),oe=X.bars,Ie=X.barsWithValue,Ve=X.xScale,Ke=X.yScale,at=X.getLabel,Je=X.getTooltipLabel,nt=X.getBorderColor,_t=X.getLabelColor,ht=X.shouldRenderBarLabel,lt=X.legendsWithData,Rt=Np(),jt=Rt.showTooltipFromEvent,dn=Rt.hideTooltip,hn=PQe({annotations:RG({data:oe,annotations:ie,getPosition:function(ut){return{x:ut.x,y:ut.y}},getDimensions:function(ut){var mt=ut.width,Ot=ut.height;return{width:mt,height:Ot,size:Math.max(mt,Ot)}}})}),Pt=m.useMemo(function(){return{borderRadius:ge,borderWidth:fe,isInteractive:ce,isFocusable:!1,labelSkipWidth:U,labelSkipHeight:Y,margin:Qe,width:i,height:a,innerWidth:Ct,innerHeight:et,bars:oe,legendData:lt,enableLabel:B,xScale:Ve,yScale:Ke,tooltip:Le,getTooltipLabel:Je,onClick:Re,onMouseEnter:Oe,onMouseLeave:K}},[ge,fe,ce,U,Y,Qe,i,a,Ct,et,oe,lt,B,Ve,Ke,Le,Je,Re,Oe,K]);m.useEffect(function(){var ut,mt=(ut=Ae.current)==null?void 0:ut.getContext("2d");Ae.current&&mt&&(Ae.current.width=Be*ye,Ae.current.height=te*ye,mt.scale(ye,ye),mt.fillStyle=Ee.background,mt.fillRect(0,0,Be,te),mt.translate(Qe.left,Qe.top),L.forEach(function(Ot){Ot==="grid"?typeof Ee.grid.line.strokeWidth=="number"&&Ee.grid.line.strokeWidth>0&&(mt.lineWidth=Ee.grid.line.strokeWidth,mt.strokeStyle=Ee.grid.line.stroke,M&&bb(mt,{width:i,height:a,scale:Ve,axis:"x",values:E}),N&&bb(mt,{width:i,height:a,scale:Ke,axis:"y",values:A})):Ot==="axes"?dG(mt,{xScale:Ve,yScale:Ke,width:Ct,height:et,top:C,right:x,bottom:S,left:T,theme:Ee}):Ot==="bars"?Ie.forEach(function(At){D(mt,{bar:At,borderColor:nt(At),borderRadius:ge,borderWidth:fe,label:at(At.data),labelColor:_t(At),shouldRenderLabel:ht(At)})}):Ot==="legends"?lt.forEach(function(At){var tt=At[0],Ut=At[1];XW(mt,An({},tt,{data:Ut,containerWidth:Ct,containerHeight:et,theme:Ee}))}):Ot==="annotations"?AQe(mt,{annotations:hn,theme:Ee}):typeof Ot=="function"&&Ot(mt,Pt)}),mt.save())},[S,T,x,C,Ie,ge,fe,hn,M,N,nt,at,_t,E,A,s,a,et,Ct,Pt,L,l,lt,Qe.left,Qe.top,te,Be,ye,D,Ve,Ke,u,ht,Ee,i]);var zt=m.useCallback(function(ut){if(oe&&Ae.current){var mt=Im(Ae.current,ut),Ot=mt[0],At=mt[1],tt=p$(oe,Qe,Ot,At);tt!==void 0?(jt(m.createElement(Le,An({},tt.data,{color:tt.color,label:tt.label,value:Number(tt.data.value)})),ut),ut.type==="mouseenter"&&(Oe==null||Oe(tt.data,ut))):dn()}},[dn,Qe,Oe,oe,jt,Le]),un=m.useCallback(function(ut){if(oe&&Ae.current){dn();var mt=Im(Ae.current,ut),Ot=mt[0],At=mt[1],tt=p$(oe,Qe,Ot,At);tt&&(K==null||K(tt.data,ut))}},[dn,Qe,K,oe]),cn=m.useCallback(function(ut){if(oe&&Ae.current){var mt=Im(Ae.current,ut),Ot=mt[0],At=mt[1],tt=p$(oe,Qe,Ot,At);tt!==void 0&&(Re==null||Re(An({},tt.data,{color:tt.color}),ut))}},[Qe,Re,oe]);return g.jsx("canvas",{ref:function(ut){Ae.current=ut,De&&"current"in De&&(De.current=ut)},width:Be*ye,height:te*ye,style:{width:Be,height:te,cursor:ce?"auto":"normal"},onMouseEnter:ce?zt:void 0,onMouseMove:ce?zt:void 0,onMouseLeave:ce?un:void 0,onClick:ce?cn:void 0})},rZe=m.forwardRef(function(e,t){var n=e.isInteractive,r=e.renderWrapper,o=e.theme,i=oh(e,tZe);return g.jsx(x0,{isInteractive:n,renderWrapper:r,theme:o,animate:!1,children:g.jsx(nZe,An({},i,{canvasRef:t}))})}),ih=function(e){return g.jsx(Jp,{children:function(t){var n=t.width,r=t.height;return g.jsx(eZe,An({width:n,height:r},e))}})};m.forwardRef(function(e,t){return g.jsx(Jp,{children:function(n){var r=n.width,o=n.height;return g.jsx(rZe,An({width:r,height:o},e,{ref:t}))}})});const oZe=({data:e})=>{const t=Xt(),n=jn(t.palette.mode);return g.jsx(ih,{data:e,keys:["rent","utilities","internet","phone","other"],indexBy:"day",margin:{top:0,right:20,bottom:40,left:50},padding:.3,groupMode:"stacked",valueScale:{type:"linear"},indexScale:{type:"band",round:!0},valueFormat:" =-$0,~",colors:{scheme:"purple_orange"},defs:[{id:"dots",background:"inherit",color:"#38bcb2",size:4,padding:1,stagger:!0},{id:"lines",background:"inherit",color:"#eed312",rotation:-45,lineWidth:6,spacing:10}],borderColor:{from:"color",modifiers:[["darker",1.6]]},axisTop:null,axisRight:null,axisBottom:{tickSize:5,tickPadding:5,tickRotation:0,legend:"Weeks",legendPosition:"middle",legendOffset:32},axisLeft:{tickSize:5,tickPadding:5,tickRotation:0,legend:"Amount spent",legendPosition:"middle",legendOffset:-40},theme:{axis:{legend:{text:{fill:`${n.primary[100]}`}},ticks:{text:{fontSize:11,fill:`${n.primary[100]}`,outlineWidth:0,outlineColor:"transparent"}}},tooltip:{container:{background:`${n.primary[500]}`,color:`${n.primary[100]}`}}},labelSkipWidth:12,labelSkipHeight:12,labelTextColor:{from:"color",modifiers:[["darker",1.6]]},legends:[],role:"application",ariaLabel:"Nivo bar chart demo",barAriaLabel:r=>r.id+": "+r.formattedValue+" in country: "+r.indexValue})},jG=()=>g.jsx(mr,{title:"Spending Breakdown",content:g.jsx(_i,{style:{height:"400px",padding:0},className:"Mui-Chart",children:g.jsx(oZe,{data:xKe})}),height:500}),iZe=({data:e})=>{const t=Xt(),n=jn(t.palette.mode);return g.jsx(ih,{data:e,keys:["budget","actual"],indexBy:"category",margin:{top:0,right:20,bottom:40,left:50},padding:.3,groupMode:"grouped",layout:"vertical",valueScale:{type:"linear"},indexScale:{type:"band",round:!0},valueFormat:" =-$0,~",colors:[`${n.blueAccent[300]}`,`${n.blueAccent[500]}`],defs:[{id:"dots",background:"inherit",color:"#38bcb2",size:4,padding:1,stagger:!0},{id:"lines",background:"inherit",color:"#eed312",rotation:-45,lineWidth:6,spacing:10}],fill:[{match:{id:"fries"},id:"dots"},{match:{id:"sandwich"},id:"lines"}],borderColor:{from:"color",modifiers:[["darker",1.6]]},axisTop:null,axisRight:null,axisBottom:{tickSize:5,tickPadding:5,tickRotation:0,legend:"country",legendPosition:"middle",legendOffset:32},axisLeft:{tickSize:5,tickPadding:5,tickRotation:0,legend:"food",legendPosition:"middle",legendOffset:-40},theme:{axis:{legend:{text:{fill:`${n.primary[100]}`}},ticks:{text:{fontSize:11,fill:`${n.primary[100]}`,outlineWidth:0,outlineColor:"transparent"}}},tooltip:{container:{background:`${n.primary[500]}`,color:`${n.primary[100]}`}}},labelSkipWidth:12,labelSkipHeight:12,labelTextColor:{from:"color",modifiers:[["darker",1.6]]},legends:[],role:"application",ariaLabel:"Nivo bar chart demo",barAriaLabel:r=>r.id+": "+r.formattedValue+" in country: "+r.indexValue})},aZe=()=>g.jsx(mr,{title:"Budget Comparison",content:g.jsx(_i,{style:{height:"400px",padding:0},className:"Mui-Chart",children:g.jsx(iZe,{data:wKe})}),height:500}),sZe=({data:e})=>{const t=Xt(),n=jn(t.palette.mode);return g.jsx(M0,{data:e,margin:{top:40,right:10,bottom:100,left:50},xScale:{type:"point"},yScale:{type:"linear",min:0,max:"auto",stacked:!1,reverse:!1},yFormat:" >-.2f",curve:"monotoneX",axisTop:null,axisRight:null,axisBottom:{tickSize:5,tickPadding:5,tickRotation:0,legend:"Months",legendOffset:36,legendPosition:"middle"},axisLeft:{tickSize:5,tickPadding:5,tickRotation:-40,legend:"Amount spent",legendOffset:-40,legendPosition:"middle"},theme:{dots:{text:{fill:`${n.primary[100]}`}},axis:{legend:{text:{fill:`${n.primary[100]}`}},ticks:{text:{fontSize:11,fill:`${n.primary[100]}`,outlineWidth:0,outlineColor:"transparent"}}},tooltip:{container:{background:`${n.primary[500]}`,color:`${n.primary[100]}`,position:"fixed",maxWidth:"10rem"}}},enableGridX:!1,enableGridY:!1,enableArea:!0,colors:[`${n.redAccent[600]}`,`${n.greenAccent[600]}`],pointSize:10,pointColor:{theme:"background"},pointBorderWidth:2,pointBorderColor:{from:"serieColor"},pointLabelYOffset:-12,useMesh:!0,legends:[{anchor:"bottom-left",direction:"row",justify:!1,translateX:0,translateY:80,itemWidth:94,itemHeight:15,itemsSpacing:6,symbolSize:19,symbolShape:"circle",itemDirection:"left-to-right",itemTextColor:`${n.primary[100]}`,effects:[{on:"hover",style:{itemBackground:"rgba(0, 0, 0, .03)",itemOpacity:1}}]}]})};function NG(){return g.jsx(mr,{title:"Financial Overview",content:g.jsx(_i,{style:{height:"400px",padding:0},className:"Mui-Chart",children:g.jsx(sZe,{data:bKe})}),height:500})}const lZe=()=>g.jsx(g.Fragment,{children:g.jsxs(Ue,{sx:{padding:2},children:[g.jsxs(Ue,{sx:{paddingBlock:2},children:[g.jsx(Ze,{variant:"h1",children:"Reports & Analysis"}),g.jsx(Ze,{variant:"h6",children:"Gain insights into your financial health"})]}),g.jsxs(Ft,{container:!0,spacing:2,children:[g.jsx(Ft,{item:!0,xs:12,md:6,children:g.jsx(CKe,{})}),g.jsx(Ft,{item:!0,xs:12,md:6,children:g.jsx(NG,{})}),g.jsx(Ft,{item:!0,xs:12,md:6,children:g.jsx(jG,{})}),g.jsx(Ft,{item:!0,xs:12,md:6,children:g.jsx(aZe,{})})]})]})}),uZe=[{field:"id",headerName:"ID",flex:1,minWidth:80,maxWidth:80},{field:"creditor",headerName:"Creditor",flex:1,minWidth:160,maxWidth:160},{field:"debtType",headerName:"Debt Type",flex:1,minWidth:120,maxWidth:120},{field:"balance",headerName:"Balance",flex:1,minWidth:110,maxWidth:110},{field:"interestRate",headerName:"Interest",flex:1,minWidth:110,maxWidth:110},{field:"minimumPayment",headerName:"Min. Payment",flex:1,minWidth:140,maxWidth:140},{field:"dueDate",headerName:"Due Date",flex:1,minWidth:120,maxWidth:120},{field:"status",headerName:"Status",flex:1,minWidth:100,maxWidth:100},{field:"remainingTerm",headerName:"Remaining Term",flex:1,minWidth:160,maxWidth:160},{field:"frequency",headerName:"Frequency",sortable:!0,flex:1,minWidth:120,maxWidth:120},{field:"paymentMethod",headerName:"Payment Method",sortable:!0,flex:1,minWidth:160,maxWidth:130},{field:"paymentProgress",headerName:"Progress",flex:1,minWidth:120,maxWidth:120}],cZe=[{id:1,creditor:"ABC Bank",debtType:"Credit Card",balance:"1000",interestRate:"18.5",minimumPayment:"50",dueDate:"2023.09.30",status:"Active",remainingTerm:"3 years",frequency:"Monthly",paymentMethod:"Direct Debit",paymentProgress:"45%"},{id:2,creditor:"XYZ Loan",debtType:"Personal Loan",balance:"5000",interestRate:"12.5",minimumPayment:"200",dueDate:"2024.05.15",status:"Active",remainingTerm:"4 years",frequency:"Monthly",paymentMethod:"Check Payment",paymentProgress:"20%"},{id:3,creditor:"DEF Bank",debtType:"Mortgage",balance:"150000",interestRate:"4.2",minimumPayment:"1000",dueDate:"2030.12.01",status:"Active",remainingTerm:"10 years",frequency:"Monthly",paymentMethod:"Bank Transfer",paymentProgress:"10%"},{id:4,creditor:"GHI Bank",debtType:"Student Loan",balance:"25000",interestRate:"6.8",minimumPayment:"150",dueDate:"2032.02.13",status:"Active",remainingTerm:"12 years",frequency:"Monthly",paymentMethod:"Direct Debit",paymentProgress:"30%"},{id:5,creditor:"JKL Group",debtType:"Medical Bill",balance:"800",interestRate:"0",minimumPayment:"50",dueDate:"2022.10.05",status:"Active",remainingTerm:"2 years",frequency:"Monthly",paymentMethod:"PayPal",paymentProgress:"80%"},{id:6,creditor:"MNO Credit Union",debtType:"Car Loan",balance:"12000",interestRate:"8.9",minimumPayment:"350",dueDate:"2025.07.21",status:"Active",remainingTerm:"5 years",frequency:"Monthly",paymentMethod:"Credit payment",paymentProgress:"60%"},{id:7,creditor:"PQR Bank",debtType:"Credit Card",balance:"3000",interestRate:"21.9",minimumPayment:"100",dueDate:"2023.11.12",status:"Active",remainingTerm:"3 years",frequency:"Monthly",paymentMethod:"Bank Transfer",paymentProgress:"15%"},{id:8,creditor:"STU Loan Services",debtType:"Personal Loan",balance:"6000",interestRate:"15.2",minimumPayment:"250",dueDate:"2024.09.09",status:"Active",remainingTerm:"4 years",frequency:"Monthly",paymentMethod:"PayPal",paymentProgress:"50%"}],dZe=[{field:"id",headerName:"ID",flex:1,minWidth:80,maxWidth:80},{field:"date",headerName:"Date",flex:1,minWidth:120,maxWidth:120},{field:"description",headerName:"Description",flex:1,minWidth:150,maxWidth:150},{field:"type",headerName:"Type",flex:1,minWidth:120,maxWidth:120},{field:"category",headerName:"Category",flex:1,minWidth:130,maxWidth:160},{field:"amount",headerName:"Amount",flex:1,minWidth:110,maxWidth:110},{field:"paymentMethod",headerName:"Payment Method",sortable:!0,flex:1,minWidth:160,maxWidth:130},{field:"status",headerName:"Status",flex:1,minWidth:100,maxWidth:100},{field:"reference",headerName:"Reference Number",flex:1,minWidth:170,maxWidth:170}],fZe=[{id:1,date:"2022.01.05",description:"Rent Payment",type:"Expense",category:"Housing",amount:"$1000",paymentMethod:"Online Transfer",status:"Paid",reference:"ACB123456789"},{id:2,date:"2022.01.08",description:"Grocery Shopping",type:"Expense",category:"Groceries",amount:"$150",paymentMethod:"Credit Card",status:"Paid",reference:"XYZ987654321"},{id:3,date:"2022.01.12",description:"Car Insurance",type:"Bill Payment",category:"Insurance",amount:"$250",paymentMethod:"Online Transfer",status:"Paid",reference:"DEF456789012"},{id:3,date:"2022.01.12",description:"Car Insurance",type:"Bill Payment",category:"Insurance",amount:"$250",paymentMethod:"Online Transfer",status:"Paid",reference:"DEF456789012"},{id:4,date:"2022.01.15",description:"Salary Deposit",type:"Income",category:"Employment",amount:"$3000",paymentMethod:"Direct Deposit",status:"Paid",reference:"PQR234567890"},{id:5,date:"2022.02.02",description:"Restaurant Dining",type:"Expense",category:"Dining Out",amount:"$50",paymentMethod:"Credit Card",status:"Paid",reference:"ZYX765432109"},{id:6,date:"2022.02.05",description:"Electricity Bill",type:"Bill Payment",category:"Utilities",amount:"$80",paymentMethod:"Online Transfer",status:"Paid",reference:"CAB987654321"},{id:7,date:"2022.02.12",description:"Health Insurance",type:"Bill Payment",category:"Insurance",amount:"$200",paymentMethod:"Online Transfer",status:"Paid",reference:"FED567890123"},{id:8,date:"2022.02.18",description:"Petrol Purchase",type:"Expense",category:"Transportation",amount:"$40",paymentMethod:"Cash",status:"Paid",reference:"WXY876543210"}],pZe=[{year:2018,income:74,debt:97},{year:2019,income:194,debt:4},{year:2020,income:33,debt:140},{year:2021,income:46,debt:98},{year:2022,income:182,debt:89},{year:2023,income:196,debt:12}],hZe=[{category:"Housing",value:30},{category:"Credit Card",value:20},{category:"Student Loan",value:10},{category:"Car Loan",value:15}],mZe=[...uZe,{field:"options",headerName:"",sortable:!1,flex:1,minWidth:90,maxWidth:90,renderCell:()=>g.jsx(Ue,{children:g.jsx(ks,{})})}];function gZe(){return g.jsx(Ue,{style:{height:400,width:"100%"},children:g.jsx(_s,{rows:cZe,columns:mZe,disableColumnFilter:!0,disableColumnSelector:!0,disableDensitySelector:!0,slots:{toolbar:Ps},slotProps:{filterPanel:{sx:{maxWidth:"100vw"}},toolbar:{showQuickFilter:!0}},editMode:"row",initialState:{columns:{columnVisibilityModel:{remainingTerm:!1}},filter:{filterModel:{items:[],quickFilterExcludeHiddenColumns:!0}},pagination:{paginationModel:{page:0,pageSize:5}}},pageSizeOptions:[5,10]})})}function zG(){return g.jsx(mr,{title:"Debt Overview",content:g.jsx(gZe,{}),height:500})}const vZe=[...dZe,{field:"options",headerName:"",sortable:!1,flex:1,minWidth:90,maxWidth:90,renderCell:()=>g.jsx(Ue,{children:g.jsx(ks,{})})}];function yZe(){return g.jsx(Ue,{style:{height:400,width:"100%"},children:g.jsx(_s,{rows:fZe,columns:vZe,disableColumnFilter:!0,disableColumnSelector:!0,disableDensitySelector:!0,slots:{toolbar:Ps},slotProps:{filterPanel:{sx:{maxWidth:"100vw"}},toolbar:{showQuickFilter:!0}},editMode:"row",initialState:{columns:{columnVisibilityModel:{status:!1,category:!1,paymentMethod:!1,reference:!1}},filter:{filterModel:{items:[],quickFilterExcludeHiddenColumns:!0}},pagination:{paginationModel:{page:0,pageSize:5}}},pageSizeOptions:[5,10]})})}function bZe(){return g.jsx(mr,{title:"Debt Payment History",content:g.jsx(yZe,{}),height:500})}const xZe=({data:e})=>{const t=Xt(),n=jn(t.palette.mode);return g.jsx(ih,{data:e,keys:["income","debt"],indexBy:"year",margin:{top:50,right:130,bottom:100,left:60},padding:.3,groupMode:"grouped",layout:"horizontal",valueScale:{type:"linear"},indexScale:{type:"band",round:!0},valueFormat:r=>r+"%",colors:[`${n.blueAccent[300]}`,`${n.blueAccent[500]}`],borderColor:{from:"color",modifiers:[["darker",1.6]]},axisTop:null,axisRight:null,axisBottom:{tickSize:5,tickPadding:5,tickRotation:0,legend:"Ratio (%)",legendPosition:"middle",legendOffset:32},axisLeft:{tickSize:5,tickPadding:5,tickRotation:0,legend:"Year",legendPosition:"middle",legendOffset:-40},theme:{axis:{legend:{text:{fill:`${n.primary[100]}`}},ticks:{text:{fontSize:11,fill:`${n.primary[100]}`,outlineWidth:0,outlineColor:"transparent"}}},tooltip:{container:{background:`${n.primary[500]}`,color:`${n.primary[100]}`,position:"fixed",maxWidth:"10rem"},basic:{maxWidth:"10rem"},table:{maxWidth:"10rem"}}},labelSkipWidth:12,labelSkipHeight:12,labelTextColor:{from:"color",modifiers:[["darker",1.6]]},legends:[{dataFrom:"keys",anchor:"bottom-left",direction:"row",justify:!1,translateX:0,translateY:80,itemsSpacing:2,itemWidth:100,itemHeight:20,itemDirection:"left-to-right",itemTextColor:`${n.primary[100]}`,itemOpacity:.85,symbolSize:20,effects:[{on:"hover",style:{itemOpacity:1}}]}],role:"application",ariaLabel:"Nivo bar chart demo",barAriaLabel:r=>r.id+": "+r.formattedValue+" in country: "+r.indexValue})};function wZe(){return g.jsx(mr,{title:"Debt-to-Income Ratio",content:g.jsx(_i,{style:{height:"400px",padding:0},className:"Mui-Chart",children:g.jsx(xZe,{data:pZe})}),height:500})}const CZe=({data:e})=>{const t=Xt(),n=jn(t.palette.mode);return g.jsx(ih,{data:e,keys:["value"],indexBy:"category",margin:{top:40,right:10,bottom:40,left:80},padding:.3,groupMode:"stacked",layout:"horizontal",valueScale:{type:"linear"},indexScale:{type:"band",round:!0},valueFormat:r=>r+"%",colors:`${n.blueAccent[400]}`,borderColor:{from:"color",modifiers:[["darker",1.6]]},axisTop:null,axisRight:null,axisBottom:{tickSize:5,tickPadding:5,tickRotation:0,legend:"Ratio (%)",legendPosition:"middle",legendOffset:32},axisLeft:{tickSize:5,tickPadding:5,tickRotation:0,legend:"Category",legendPosition:"middle",legendOffset:-40},theme:{axis:{legend:{text:{fill:`${n.primary[100]}`}},ticks:{text:{fontSize:11,fill:`${n.primary[100]}`,outlineWidth:0,outlineColor:"transparent"}}},tooltip:{container:{background:`${n.primary[500]}`,color:`${n.primary[100]}`,position:"fixed",maxWidth:"15rem"},basic:{maxWidth:"15rem"},table:{maxWidth:"15rem"}}},labelSkipWidth:12,labelSkipHeight:12,labelTextColor:{from:"color",modifiers:[["darker",1.6]]},legends:[],role:"application",ariaLabel:"Nivo bar chart demo",barAriaLabel:r=>r.id+": "+r.formattedValue+" in country: "+r.indexValue})};function SZe(){return g.jsx(mr,{title:"Debt Burden Ratio",content:g.jsx(_i,{style:{height:"400px",padding:0},className:"Mui-Chart",children:g.jsx(CZe,{data:hZe})}),height:500})}function $Ze(){return g.jsx(g.Fragment,{children:g.jsxs(Ue,{sx:{padding:2},children:[g.jsxs(Ue,{sx:{paddingBlock:2,width:"100%"},children:[g.jsx(Ze,{variant:"h1",children:"Debt Management"}),g.jsx(Ze,{variant:"h6",children:"Efficiently manage and conquer your debts over time"})]}),g.jsxs(Ft,{container:!0,spacing:2,sx:{width:"100%"},children:[g.jsx(Ft,{item:!0,xs:12,md:6,lg:8,children:g.jsx(zG,{})}),g.jsx(Ft,{item:!0,xs:12,md:6,lg:4,children:g.jsx(bZe,{})}),g.jsx(Ft,{item:!0,xs:12,md:6,lg:6,children:g.jsx(wZe,{})}),g.jsx(Ft,{item:!0,xs:12,md:6,lg:6,children:g.jsx(SZe,{})})]})]})})}const _Ze="/fintrack/assets/user-19e22072.png",kZe=()=>{const e=Xt(),t=jn(e.palette.mode);return g.jsx(g.Fragment,{children:g.jsxs(Ue,{sx:{alignItems:"center",display:"flex",gap:"clamp(0.5em, 5%, 3em)",paddingBlock:"clamp(0.5em, 5%, 2em)"},children:[g.jsx(Ue,{children:g.jsx($y,{alt:"User Picture",src:_Ze,sx:{height:90,width:90}})}),g.jsxs(Ue,{sx:{display:"flex",flexDirection:"column",gap:.5,justifyContent:"center"},children:[g.jsx(Ze,{variant:"h3",children:"John Smith"}),g.jsx(Ze,{variant:"h5",color:t.grey[100],children:"Lawyer"}),g.jsx(Ze,{variant:"h6",color:t.grey[100],children:"New York, USA"})]}),g.jsx(Ue,{sx:{ml:"auto"},children:g.jsx(fs,{color:"success",endIcon:g.jsx(u0,{}),variant:"outlined",children:g.jsx(Ze,{variant:"h6",children:"Edit"})})})]})})},PZe=()=>{const e=Xt(),t=jn(e.palette.mode);return g.jsx(g.Fragment,{children:g.jsxs(Ue,{className:"settingWrapper",children:[g.jsx(Ue,{children:g.jsx(Ze,{variant:"h5",children:"Address"})}),g.jsxs(Ue,{className:"settingLayout",children:[g.jsxs(Ue,{className:"settingItem",children:[g.jsx(Ze,{color:t.grey[300],variant:"h6",children:"Country"}),g.jsx(Ze,{variant:"h5",children:"USA"})]}),g.jsxs(Ue,{className:"settingItem",children:[g.jsx(Ze,{color:t.grey[300],variant:"h6",children:"Postal Code"}),g.jsx(Ze,{variant:"h5",children:"ERT 2345"})]}),g.jsxs(Ue,{className:"settingItem",children:[g.jsx(Ze,{color:t.grey[300],variant:"h6",children:"City/State"}),g.jsx(Ze,{variant:"h5",children:"New York"})]}),g.jsxs(Ue,{className:"settingItem",children:[g.jsx(Ze,{color:t.grey[300],variant:"h6",children:"Tax ID"}),g.jsx(Ze,{variant:"h5",children:"S651A6S6DADS"})]}),g.jsx(Ue,{className:"settingItem btn",children:g.jsx(fs,{color:"success",endIcon:g.jsx(u0,{}),variant:"outlined",children:g.jsx(Ze,{variant:"h6",children:"Edit"})})})]})]})})},MZe=()=>{const e=Xt(),t=jn(e.palette.mode);return g.jsx(g.Fragment,{children:g.jsxs(Ue,{className:"settingWrapper",children:[g.jsx(Ue,{children:g.jsx(Ze,{variant:"h5",children:"Personal Information"})}),g.jsxs(Ue,{className:"settingLayout threeRows",children:[g.jsxs(Ue,{className:"settingItem",children:[g.jsx(Ze,{color:t.grey[300],variant:"h6",children:"First Name"}),g.jsx(Ze,{variant:"h5",children:"John"})]}),g.jsxs(Ue,{className:"settingItem",children:[g.jsx(Ze,{color:t.grey[300],variant:"h6",children:"Email Address"}),g.jsx(Ze,{variant:"h5",children:"johnsmith@gmail.com"})]}),g.jsxs(Ue,{className:"settingItem",children:[g.jsx(Ze,{color:t.grey[300],variant:"h6",children:"Bio"}),g.jsx(Ze,{variant:"h5",children:"Lawyer"})]}),g.jsxs(Ue,{className:"settingItem",children:[g.jsx(Ze,{color:t.grey[300],variant:"h6",children:"Last Name"}),g.jsx(Ze,{variant:"h5",children:"Smith"})]}),g.jsxs(Ue,{className:"settingItem",children:[g.jsx(Ze,{color:t.grey[300],variant:"h6",children:"Birthday"}),g.jsx(Ze,{variant:"h5",children:"03.04.1985"})]}),g.jsxs(Ue,{className:"settingItem",children:[g.jsx(Ze,{color:t.grey[300],variant:"h6",children:"Phone Number"}),g.jsx(Ze,{variant:"h5",children:"+808 54 99 65 25"})]}),g.jsx(Ue,{className:"settingItem btn",children:g.jsx(fs,{color:"success",endIcon:g.jsx(u0,{}),variant:"outlined",children:g.jsx(Ze,{variant:"h6",children:"Edit"})})})]})]})})},TZe=()=>{const e=Xt(),t=jn(e.palette.mode);return g.jsx(g.Fragment,{children:g.jsxs(Ue,{className:"settingWrapper",children:[g.jsx(Ue,{children:g.jsx(Ze,{variant:"h5",children:"Account Preferences"})}),g.jsxs(Ue,{className:"settingLayout",children:[g.jsxs(Ue,{className:"settingItem",children:[g.jsx(Ze,{color:t.grey[300],variant:"h6",children:"Language"}),g.jsx(Ze,{variant:"h5",children:"English"})]}),g.jsxs(Ue,{className:"settingItem",children:[g.jsx(Ze,{color:t.grey[300],variant:"h6",children:"Currency"}),g.jsx(Ze,{variant:"h5",children:"USD"})]}),g.jsxs(Ue,{className:"settingItem",children:[g.jsx(Ze,{color:t.grey[300],variant:"h6",children:"Date and Time Format"}),g.jsx(Ze,{variant:"h5",children:"D/M/Y"})]}),g.jsxs(Ue,{className:"settingItem",children:[g.jsx(Ze,{color:t.grey[300],variant:"h6",children:"Timezone"}),g.jsx(Ze,{variant:"h5",children:"UTC+0"})]}),g.jsx(Ue,{className:"settingItem btn",children:g.jsx(fs,{color:"success",endIcon:g.jsx(u0,{}),variant:"outlined",children:g.jsx(Ze,{variant:"h6",children:"Edit"})})})]})]})})},EZe=()=>g.jsx(g.Fragment,{children:g.jsxs(Ue,{className:"settingWrapper",children:[g.jsx(Ue,{children:g.jsx(Ze,{variant:"h5",children:"Two-factor Authentication"})}),g.jsxs(xhe,{children:[g.jsx(R_,{control:g.jsx(I_,{color:"success"}),labelPlacement:"end",label:g.jsx(Ze,{variant:"h5",children:"SMS Authentication: This option allows you to receive a verification code via SMS to your registered phone number. You can enter this code to complete the authentication process."}),sx:{m:0,marginBlock:1}}),g.jsx(R_,{control:g.jsx(I_,{color:"success"}),labelPlacement:"end",label:g.jsx(Ze,{variant:"h5",children:"Email Authentication: You can receive a verification code via email. They will need to enter this code to authenticate themselves successfully."}),sx:{m:0,marginBlock:1}})]})]})}),IZe=()=>g.jsx(g.Fragment,{children:g.jsxs(Ue,{className:"settingWrapper",children:[g.jsx(Ue,{children:g.jsx(Ze,{variant:"h5",children:"Change Password"})}),g.jsxs(Ue,{sx:{display:"flex",flexWrap:"wrap",flexDirection:"row",gap:2,justifyContent:"space-between",mt:2,width:"100%"},children:[g.jsx(ru,{label:"Old Password",variant:"outlined",className:"textfield"}),g.jsx(ru,{label:"New Password",variant:"outlined",className:"textfield"}),g.jsx(ru,{label:"Confirm New Password",variant:"outlined",className:"textfield"})]})]})});function RZe(){const e=Xt(),t=jn(e.palette.mode);return g.jsx(g.Fragment,{children:g.jsxs(Ue,{sx:{padding:2},children:[g.jsxs(Ue,{sx:{paddingBlock:2,width:"100%"},children:[g.jsx(Ze,{variant:"h1",children:"Settings"}),g.jsx(Ze,{variant:"h6",children:"Manage your app's settings"})]}),g.jsxs(Ue,{sx:{backgroundColor:t.primary[400],padding:4},children:[g.jsxs(Ue,{sx:{paddingBlock:2,width:"100%"},children:[g.jsx(Ze,{variant:"h3",children:"My Profile"}),g.jsx(Ze,{variant:"h6",children:"Update your profile here."})]}),g.jsxs(Ft,{container:!0,spacing:2,children:[g.jsx(Ft,{item:!0,xs:12,sm:12,md:12,lg:6,children:g.jsx(kZe,{})}),g.jsx(Ft,{item:!0,xs:12,sm:12,md:12,lg:6,children:g.jsx(TZe,{})}),g.jsx(Ft,{item:!0,xs:12,sm:12,md:12,lg:6,children:g.jsx(MZe,{})}),g.jsx(Ft,{item:!0,xs:12,sm:12,md:12,lg:6,children:g.jsx(PZe,{})}),g.jsx(Ft,{item:!0,xs:12,sm:12,md:12,lg:6,children:g.jsx(EZe,{})}),g.jsx(Ft,{item:!0,xs:12,sm:12,md:12,lg:6,children:g.jsx(IZe,{})})]}),g.jsxs(Ue,{sx:{display:"flex",gap:2,mt:5},children:[g.jsx(fs,{variant:"contained",color:"success",children:g.jsx(Ze,{variant:"h5",children:"Save"})}),g.jsx(fs,{variant:"outlined",color:"info",children:g.jsx(Ze,{variant:"h5",children:"Cancel"})})]})]})]})})}const BG=[{id:1,assetName:"Apple",assetType:"Stocks",currentPrice:"$145.64",quantity:"10",costBasis:"$1,400.00",currentValue:145640,gainOrLoss:"+$56.40",annualReturn:"12%",allocation:"10%",investment:"Stocks"},{id:2,assetName:"Amazon",assetType:"Stocks",currentPrice:"$3,654.12",quantity:"2",costBasis:"$7,500.00",currentValue:730824,gainOrLoss:"-$191.76",annualReturn:"-2.56%",allocation:"15%",investment:"Bonds"},{id:3,assetName:"Vanguard Total Bond Market Index",assetType:"Mutual Funds",currentPrice:"$110.35",quantity:"50",costBasis:"$5,700.00",currentValue:551750,gainOrLoss:"-$182.50",annualReturn:"-3.20%",allocation:"15%",investment:"Real Estate"},{id:4,assetName:"Tesla",assetType:"Stocks",currentPrice:"$652.23",quantity:"5",costBasis:"$3,000.00",currentValue:326115,gainOrLoss:"+$261.15",annualReturn:"21%",allocation:"10%",investment:"Cryptocurrency"},{id:5,assetName:"Bitcoin",assetType:"Cryptocurrency",currentPrice:"$32,800.20",quantity:"0.25",costBasis:"$8,200.10",currentValue:820005,gainOrLoss:"-$0.05",annualReturn:"0.01%",allocation:"10%",investment:"Mutual Funds"},{id:6,assetName:"Microsoft",assetType:"Stocks",currentPrice:"$290.67",quantity:"12",costBasis:"$3,000.00",currentValue:348804,gainOrLoss:"+$488.04",annualReturn:"15%",allocation:"15%",investment:"Index Funds"},{id:7,assetName:"JPMorgan Chase & Co",assetType:"Stocks",currentPrice:"$159.28",quantity:"8",costBasis:"$1,250.00",currentValue:127424,gainOrLoss:"+$24.24",annualReturn:"4%",allocation:"5%",investment:"Commodities"},{id:8,assetName:"Ethereum",assetType:"Cryptocurrency",currentPrice:"$2,621.76",quantity:"0.5",costBasis:"$1,257.97",currentValue:131088,gainOrLoss:"+$52.91",annualReturn:"19%",allocation:"10%",investment:"Savings Account"}],OZe=[{field:"id",headerName:"ID",flex:1,minWidth:80,maxWidth:80},{field:"investmentName",headerName:"Name",flex:1,minWidth:160,maxWidth:160},{field:"investmentType",headerName:"Type",flex:1,minWidth:120,maxWidth:120},{field:"investmentSymbol",headerName:"Symbol",flex:1,minWidth:110,maxWidth:110},{field:"purchaseDate",headerName:"Purchase Date",flex:1,minWidth:120,maxWidth:120},{field:"sharesOrAmount",headerName:"Shares/Amount",flex:1,minWidth:110,maxWidth:110},{field:"purchasePrice",headerName:"Purchase Price",flex:1,minWidth:140,maxWidth:140},{field:"currentValue",headerName:"Current Value",flex:1,minWidth:100,maxWidth:100},{field:"gainOrLoss",headerName:"Gain/Loss",flex:1,minWidth:160,maxWidth:160}],AZe=[{id:1,investmentName:"Apple Inc.",investmentType:"Stocks",investmentSymbol:"AAPL",purchaseDate:"2020.01.01",sharesOrAmount:"10",purchasePrice:"$150.00",currentValue:"$180.00",gainOrLoss:"+20%"},{id:2,investmentName:"Vanguard Total Stock Market Index Fund",investmentType:"Mutual Funds",investmentSymbol:"VTSMX",purchaseDate:"2019.06.15",sharesOrAmount:"$5000",purchasePrice:"$100.00",currentValue:"$5500.00",gainOrLoss:"+10%"},{id:3,investmentName:"Microsoft Corporation",investmentType:"Stocks",investmentSymbol:"MSFT",purchaseDate:"2020.03.01",sharesOrAmount:"5",purchasePrice:"$170.00",currentValue:"$200.00",gainOrLoss:"+17.65%"},{id:4,investmentName:"iShares Core U.S. Aggregate Bond ETF",investmentType:"ETFs",investmentSymbol:"AGG",purchaseDate:"2018.09.01",sharesOrAmount:"$2000",purchasePrice:"$108.50",currentValue:"$2200.00",gainOrLoss:"+10%"},{id:5,investmentName:"Tesla Inc.",investmentType:"Stocks",investmentSymbol:"TSLA",purchaseDate:"2019.12.01",sharesOrAmount:"2",purchasePrice:"$400.00",currentValue:"$800.00",gainOrLoss:"+100%"},{id:6,investmentName:"Vanguard Total International Stock Index Fund",investmentType:"Mutual Funds",investmentSymbol:"VGTSX",purchaseDate:"2020.06.15",sharesOrAmount:"$3000",purchasePrice:"$50.00",currentValue:"$3300.00",gainOrLoss:"+10%"},{id:7,investmentName:"Amazon.com Inc.",investmentType:"Stocks",investmentSymbol:"AMZN",purchaseDate:"2017.04.01",sharesOrAmount:"1",purchasePrice:"$900.00",currentValue:"$3000.00",gainOrLoss:"+233.33%"},{id:8,investmentName:"SPDR Gold Shares",investmentType:"ETFs",investmentSymbol:"GLD",purchaseDate:"2019.01.01",sharesOrAmount:"$500",purchasePrice:"$110.00",currentValue:"$600.00",gainOrLoss:"+20%"}],FZe=[{id:"Investment",data:[{x:"2023-01-01",y:1e3},{x:"2023-02-01",y:1200},{x:"2023-03-01",y:900},{x:"2023-04-01",y:1500},{x:"2023-05-01",y:1300}]},{id:"Benchmark",data:[{x:"2023-01-01",y:1100},{x:"2023-02-01",y:1300},{x:"2023-03-01",y:950},{x:"2023-04-01",y:1400},{x:"2023-05-01",y:1600}]},{id:"Savings",data:[{x:"2023-01-01",y:500},{x:"2023-02-01",y:600},{x:"2023-03-01",y:550},{x:"2023-04-01",y:800},{x:"2023-05-01",y:750}]},{id:"401(k)",data:[{x:"2023-01-01",y:2e3},{x:"2023-02-01",y:2200},{x:"2023-03-01",y:1900},{x:"2023-04-01",y:2300},{x:"2023-05-01",y:2100}]},{id:"IRA",data:[{x:"2023-01-01",y:1500},{x:"2023-02-01",y:1700},{x:"2023-03-01",y:1400},{x:"2023-04-01",y:1800},{x:"2023-05-01",y:1600}]}],LZe=[{field:"id",headerName:"ID",flex:1,minWidth:80,maxWidth:80},{field:"transactionDate",headerName:"Transaction Date",type:"Date",flex:1,minWidth:120,maxWidth:120,editable:!0},{field:"transactionType",headerName:"Transaction Type",flex:1,minWidth:120,maxWidth:120,editable:!0},{field:"stockSymbol",headerName:"Stock Symbol",flex:1,minWidth:110,maxWidth:110,editable:!0},{field:"stockName",headerName:"Stock Name",flex:1,minWidth:160,maxWidth:160,editable:!0},{field:"quantity",headerName:"Quantity",flex:1,minWidth:110,maxWidth:110,editable:!0},{field:"pricePerShare",headerName:"Price per Share",flex:1,minWidth:140,maxWidth:140,editable:!0},{field:"totalCost",headerName:"Total Cost",flex:1,minWidth:100,maxWidth:100,editable:!0},{field:"status",headerName:"Status",flex:1,minWidth:160,maxWidth:160,editable:!0}],DZe=[{id:1,transactionDate:"2021.07.01",transactionType:"Buy",stockSymbol:"AAPL",stockName:"Apple Inc.",quantity:"10",pricePerShare:"$150.00",totalCost:"$1500.00",status:"Completed"},{id:2,transactionDate:"2021.06.25",transactionType:"Buy",stockSymbol:"MSFT",stockName:"Microsoft Corporation",quantity:"5",pricePerShare:"$250.00",totalCost:"$1250.00",status:"Completed"},{id:3,transactionDate:"2021.07.10",transactionType:"Sell",stockSymbol:"AAPL",stockName:"Apple Inc.",quantity:"5",pricePerShare:"$160.00",totalCost:"$800.00",status:"Completed"},{id:4,transactionDate:"2021.07.15",transactionType:"Buy",stockSymbol:"GOOG",stockName:"Alphabet Inc.",quantity:"2",pricePerShare:"$2600.00",totalCost:"$5200.00",status:"Completed"},{id:5,transactionDate:"2021.07.20",transactionType:"Dividend",stockSymbol:"AAPL",stockName:"Apple Inc.",quantity:"-",pricePerShare:"-",totalCost:"$100.00",status:"Completed"},{id:6,transactionDate:"2021.07.22",transactionType:"Sell",stockSymbol:"MSFT",stockName:"Microsoft Corporation",quantity:"3",pricePerShare:"$260.00",totalCost:"$780.00",status:"Completed"},{id:7,transactionDate:"2021.07.30",transactionType:"Buy",stockSymbol:"AAPL",stockName:"Apple Inc.",quantity:"7",pricePerShare:"$155.00",totalCost:"$1085.00",status:"Completed"},{id:8,transactionDate:"2021.08.01",transactionType:"Buy",stockSymbol:"TSLA",stockName:"Tesla, Inc.",quantity:"3",pricePerShare:"$700.00",totalCost:"$2100.00",status:"Pending"}],jZe=[{field:"id",headerName:"ID",flex:1,minWidth:80,maxWidth:80},{field:"assetName",headerName:"Asset Name",flex:1,minWidth:160,maxWidth:160},{field:"assetType",headerName:"Asset Type",flex:1,minWidth:130,maxWidth:130},{field:"currentPrice",headerName:"Current Price",flex:1,minWidth:140,maxWidth:140},{field:"quantity",headerName:"Quantity",flex:1,minWidth:110,maxWidth:110},{field:"costBasis",headerName:"Cost Basis",flex:1,minWidth:120,maxWidth:120},{field:"currentValue",headerName:"Current Value",flex:1,minWidth:140,maxWidth:140},{field:"gainOrLoss",headerName:"Unrealized Gain/Loss",flex:1,minWidth:180,maxWidth:180},{field:"annualReturn",headerName:"Annual Return",flex:1,minWidth:140,maxWidth:140},{field:"allocation",headerName:"Allocation",flex:1,minWidth:120,maxWidth:120},{field:"options",headerName:"",sortable:!1,flex:1,minWidth:90,maxWidth:90,renderCell:()=>g.jsx(Ue,{children:g.jsx(ks,{})})}];function NZe(){return g.jsx(Ue,{style:{height:400,width:"100%"},children:g.jsx(_s,{rows:BG,columns:jZe,disableColumnFilter:!0,disableColumnSelector:!0,disableDensitySelector:!0,slots:{toolbar:Ps},slotProps:{filterPanel:{sx:{maxWidth:"100vw"}},toolbar:{showQuickFilter:!0}},editMode:"row",initialState:{columns:{columnVisibilityModel:{remainingTerm:!1}},pagination:{paginationModel:{page:0,pageSize:5}}},pageSizeOptions:[5,10]})})}function zZe(){return g.jsx(NZe,{})}const BZe=({data:e})=>{const t=Xt(),n=jn(t.palette.mode);return g.jsx(ih,{data:e,keys:["currentValue"],indexBy:"investment",margin:{top:0,right:0,bottom:40,left:60},padding:.3,valueScale:{type:"linear"},indexScale:{type:"band",round:!0},valueFormat:" =-$0,~",colors:`${n.blueAccent[400]}`,borderColor:{from:"color",modifiers:[["darker",1.6]]},axisTop:null,axisRight:null,axisBottom:{tickSize:5,tickPadding:5,tickRotation:0,legend:"Category",legendPosition:"middle",legendOffset:32},axisLeft:{tickSize:5,tickPadding:5,tickRotation:-40,legend:"Amount",legendPosition:"middle",legendOffset:-50},theme:{axis:{legend:{text:{fill:`${n.primary[100]}`}},ticks:{text:{fontSize:11,fill:`${n.primary[100]}`,outlineWidth:0,outlineColor:"transparent"}}},tooltip:{container:{background:`${n.primary[500]}`,color:`${n.primary[100]}`}}},labelSkipWidth:12,labelSkipHeight:12,labelTextColor:{from:"color",modifiers:[["darker",1.6]]},legends:[],role:"application",ariaLabel:"Nivo bar chart demo",barAriaLabel:r=>r.id+": "+r.formattedValue+" in country: "+r.indexValue})};function HZe(){return g.jsx(Ue,{style:{height:"400px"},children:g.jsx(BZe,{data:BG})})}function Q9(e){const{children:t,value:n,index:r,...o}=e;return g.jsx(Ue,{role:"tabpanel",hidden:n!==r,id:`simple-tabpanel-${r}`,"aria-labelledby":`simple-tab-${r}`,...o,children:n===r&&g.jsx(Ue,{sx:{mt:3},children:g.jsx(Ze,{children:t})})})}function Z9(e){return{id:`simple-tab-${e}`,"aria-controls":`simple-tabpanel-${e}`}}function WZe(){const[e,t]=m.useState(0),n=Xt(),r=jn(n.palette.mode),o=(i,a)=>{t(a)};return g.jsx(mr,{title:"Portfolio Overview",content:g.jsxs(_i,{style:{height:"500px",padding:0},className:"Mui-Chart",children:[g.jsxs(Sve,{value:e,onChange:o,"aria-label":"basic tabs example",textColor:"secondary",indicatorColor:"secondary",sx:{"& button.Mui-selected":{color:r.blueAccent[400]},"& span.MuiTabs-indicator":{backgroundColor:r.blueAccent[400]}},children:[g.jsx(Y4,{icon:g.jsx(hbe,{}),...Z9(1),label:"Chart","aria-label":"chart"}),g.jsx(Y4,{icon:g.jsx(gbe,{}),...Z9(0),label:"Table","aria-label":"table"})]}),g.jsx(Q9,{value:e,index:0,children:g.jsx(HZe,{})}),g.jsx(Q9,{value:e,index:1,children:g.jsx(zZe,{})})]}),height:600})}const VZe=[...OZe,{field:"options",headerName:"",sortable:!1,flex:1,minWidth:90,maxWidth:90,renderCell:()=>g.jsx(Ue,{children:g.jsx(ks,{})})}];function UZe(){return g.jsx(Ue,{style:{height:500,width:"100%"},children:g.jsx(_s,{rows:AZe,columns:VZe,disableColumnFilter:!0,disableColumnSelector:!0,disableDensitySelector:!0,slots:{toolbar:Ps},slotProps:{filterPanel:{sx:{maxWidth:"100vw"}},toolbar:{showQuickFilter:!0}},editMode:"row",initialState:{columns:{columnVisibilityModel:{remainingTerm:!1}},filter:{filterModel:{items:[],quickFilterExcludeHiddenColumns:!0}},pagination:{paginationModel:{page:0,pageSize:10}}},pageSizeOptions:[5,10]})})}function GZe(){return g.jsx(mr,{title:"Investment Details",content:g.jsx(UZe,{}),height:600})}const qZe=({data:e})=>{const t=Xt(),n=jn(t.palette.mode);return g.jsx(M0,{data:e,margin:{top:40,right:30,bottom:100,left:50},xScale:{type:"point"},yScale:{type:"linear",min:0,max:"auto",stacked:!0,reverse:!1},yFormat:" >-.2f",axisTop:null,axisRight:null,axisBottom:{tickSize:5,tickPadding:5,tickRotation:0,legend:"transportation",legendOffset:36,legendPosition:"middle"},axisLeft:{tickSize:5,tickPadding:5,tickRotation:0,legend:"count",legendOffset:-40,legendPosition:"middle"},theme:{axis:{legend:{text:{fill:`${n.primary[100]}`}},ticks:{text:{fontSize:11,fill:`${n.primary[100]}`,outlineWidth:0,outlineColor:"transparent"}}},tooltip:{container:{background:`${n.primary[500]}`,color:`${n.primary[100]}`,position:"fixed",maxWidth:"15rem"}}},enableGridX:!1,enableGridY:!1,colors:{scheme:"set1"},pointSize:10,pointColor:{theme:"background"},pointBorderWidth:2,pointBorderColor:{from:"serieColor"},pointLabelYOffset:-12,enableArea:!0,areaBaselineValue:80,useMesh:!0,legends:[{anchor:"bottom-left",direction:"row",justify:!1,translateX:0,translateY:80,itemWidth:94,itemHeight:15,itemsSpacing:6,symbolSize:19,symbolShape:"circle",itemDirection:"left-to-right",itemTextColor:`${n.primary[100]}`,effects:[{on:"hover",style:{itemBackground:"rgba(0, 0, 0, .03)",itemOpacity:1}}]}]})};function KZe(){return g.jsx(mr,{title:"Investment Performance",content:g.jsx(_i,{style:{height:"400px",padding:0},className:"Mui-Chart",children:g.jsx(qZe,{data:FZe})}),height:500})}const YZe=[...LZe,{field:"options",headerName:"",sortable:!1,flex:1,minWidth:90,maxWidth:90,renderCell:()=>g.jsx(Ue,{children:g.jsx(ks,{})})}];function XZe(){return g.jsx(Ue,{style:{height:400,width:"100%"},children:g.jsx(_s,{rows:DZe,columns:YZe,disableColumnFilter:!0,disableColumnSelector:!0,disableDensitySelector:!0,slots:{toolbar:Ps},slotProps:{filterPanel:{sx:{maxWidth:"100vw"}},toolbar:{showQuickFilter:!0}},editMode:"row",initialState:{columns:{columnVisibilityModel:{remainingTerm:!1}},filter:{filterModel:{items:[],quickFilterExcludeHiddenColumns:!0}},pagination:{paginationModel:{page:0,pageSize:10}}},pageSizeOptions:[5,10]})})}function HG(){return g.jsx(mr,{title:"Transaction History",content:g.jsx(XZe,{}),height:500})}function QZe(){return g.jsx(g.Fragment,{children:g.jsxs(Ue,{sx:{padding:2},children:[g.jsxs(Ue,{sx:{paddingBlock:2,width:"100%"},children:[g.jsx(Ze,{variant:"h1",children:"Investments"}),g.jsx(Ze,{variant:"h6",children:"Maximize your investment potential with personalized advice"})]}),g.jsxs(Ft,{container:!0,spacing:2,sx:{width:"100%"},children:[g.jsx(Ft,{item:!0,xs:12,md:6,children:g.jsx(WZe,{})}),g.jsx(Ft,{item:!0,xs:12,md:6,children:g.jsx(GZe,{})}),g.jsx(Ft,{item:!0,xs:12,md:6,children:g.jsx(KZe,{})}),g.jsx(Ft,{item:!0,xs:12,md:6,children:g.jsx(HG,{})})]})]})})}const ZZe=({data:e})=>{const t=Xt(),n=jn(t.palette.mode);return g.jsx(M0,{data:e,margin:{top:40,right:10,bottom:40,left:50},xScale:{type:"point"},yScale:{type:"linear",min:0,max:1e4,stacked:!0,reverse:!1},yFormat:" >-.2f",axisTop:null,axisRight:null,axisBottom:{tickSize:5,tickPadding:5,tickRotation:0,legend:"Months",legendOffset:36,legendPosition:"middle"},axisLeft:{tickSize:5,tickPadding:5,tickRotation:0,legend:"Amount",legendOffset:-40,legendPosition:"middle"},theme:{axis:{legend:{text:{fill:`${n.primary[100]}`}},ticks:{text:{fontSize:11,fill:`${n.primary[100]}`,outlineWidth:0,outlineColor:"transparent"}}},tooltip:{container:{background:`${n.primary[500]}`,color:`${n.primary[100]}`}}},colors:n.primary[100],pointSize:10,pointColor:{theme:"background"},pointBorderWidth:2,pointBorderColor:{from:"serieColor"},pointLabelYOffset:-12,enableArea:!0,areaBaselineValue:70,areaOpacity:.15,useMesh:!0,legends:[]})},JZe=[{id:"January 2020",data:[{x:"Jan",y:5e3},{x:"Feb",y:5500},{x:"Mar",y:5550},{x:"Apr",y:5800},{x:"May",y:6e3},{x:"Jun",y:6100},{x:"Jul",y:6250},{x:"Aug",y:6400},{x:"Sep",y:6500},{x:"Oct",y:6750},{x:"Nov",y:6800},{x:"Dec",y:7500}]}],eJe=[{field:"id",headerName:"ID",flex:1,minWidth:80,maxWidth:80},{field:"assetName",headerName:"Name",flex:1,minWidth:160,maxWidth:160},{field:"assetType",headerName:"Type",flex:1,minWidth:120,maxWidth:120},{field:"currentValue",headerName:"Current Value",flex:1,minWidth:140,maxWidth:140},{field:"currency",headerName:"Currency",flex:1,minWidth:120,maxWidth:120},{field:"acquisitionDate",headerName:"Acquisition Date",flex:1,minWidth:160,maxWidth:160},{field:"apprOrDepr",headerName:"Appreciation/Depreciation",flex:1,minWidth:210,maxWidth:100},{field:"description",headerName:"Remaining Term",flex:1,minWidth:160,maxWidth:160}],tJe=[{id:1,assetName:"House",assetType:"Property",currentValue:5e5,currency:"USD",acquisitionDate:"2020-01-01",apprOrDepr:"+20000",description:"Primary residence"},{id:2,assetName:"Car",assetType:"Vehicle",currentValue:25e3,currency:"USD",acquisitionDate:"2018-06-15",apprOrDepr:"-5000",description:"Sedan car"},{id:3,assetName:"Investment Portfolio",assetType:"Investment",currentValue:1e5,currency:"USD",acquisitionDate:"2019-03-01",apprOrDepr:"+15000",description:"Stocks, bonds, and ETFs"},{id:4,assetName:"Savings Account",assetType:"Bank Account",currentValue:5e3,currency:"USD",acquisitionDate:"2015-12-01",apprOrDepr:"+1000",description:"Emergency fund"},{id:5,assetName:"Antique Watch",assetType:"Collectible",currentValue:2e3,currency:"USD",acquisitionDate:"2021-06-20",apprOrDepr:"+500",description:"Limited edition"},{id:6,assetName:"Gold Jewelry",assetType:"Jewelry",currentValue:1500,currency:"USD",acquisitionDate:"2017-09-30",apprOrDepr:null,description:"Necklace and earrings"},{id:7,assetName:"Business",assetType:"Business Ownership",currentValue:1e5,currency:"USD",acquisitionDate:"2020-07-10",apprOrDepr:"+25000",description:"Restaurant"},{id:8,assetName:"Bitcoin",assetType:"Cryptocurrency",currentValue:5e3,currency:"USD",acquisitionDate:"2018-02-12",apprOrDepr:"-2000",description:"Digital currency"}],nJe=[{field:"id",headerName:"ID",flex:1,minWidth:80,maxWidth:80},{field:"name",headerName:"Name",flex:1,minWidth:160,maxWidth:160},{field:"type",headerName:"Type",flex:1,minWidth:120,maxWidth:120},{field:"amount",headerName:"Amount",flex:1,minWidth:110,maxWidth:110},{field:"interestRate",headerName:"Interest Rate",flex:1,minWidth:140,maxWidth:140},{field:"minimumPayment",headerName:"Minimum Payment",flex:1,minWidth:170,maxWidth:170},{field:"dueDate",headerName:"Due Date",flex:1,minWidth:150,maxWidth:150},{field:"loanTerm",headerName:"Loan Term",flex:1,minWidth:120,maxWidth:120},{field:"status",headerName:"Status",flex:1,minWidth:100,maxWidth:160}],rJe=[{id:1,name:"Student Loan",type:"Education",amount:3e4,interestRate:6,minimumPayment:200,dueDate:"15th of every month",loanTerm:"10 years",status:"Active"},{id:2,name:"Credit Card 1",type:"Credit Card",amount:5e3,interestRate:18,minimumPayment:100,dueDate:"25th of every month",loanTerm:"N/A",status:"Active"},{id:3,name:"Car Loan",type:"Auto Loan",amount:25e3,interestRate:4.5,minimumPayment:400,dueDate:"5th of every month",loanTerm:"5 years",status:"Active"},{id:4,name:"Mortgage",type:"Home Loan",amount:2e5,interestRate:3.5,minimumPayment:1e3,dueDate:"1st of every month",loanTerm:"30 years",status:"Active"},{id:5,name:"Personal Loan",type:"Loan",amount:1e4,interestRate:8,minimumPayment:150,dueDate:"10th of every month",loanTerm:"3 years",status:"Active"},{id:6,name:"Credit Card 2",type:"Credit Card",amount:2e3,interestRate:15,minimumPayment:50,dueDate:"20th of every month",loanTerm:"N/A",status:"Active"},{id:7,name:"Medical Loan",type:"Loan",amount:5e3,interestRate:7,minimumPayment:150,dueDate:"8th of every month",loanTerm:"2 years",status:"Active"},{id:8,name:"Business Loan",type:"Loan",amount:5e4,interestRate:10,minimumPayment:500,dueDate:"18th of every month",loanTerm:"5 years",status:"Active"}],oJe=[{date:"2022-01-01",cash:5e3,investments:1e4,loans:-2e3,creditCardDebt:-500,property:25e3,other:500},{date:"2022-02-01",cash:5500,investments:10500,loans:-1800,creditCardDebt:-400,property:26e3,other:600},{date:"2022-03-01",cash:6e3,investments:11200,loans:-1600,creditCardDebt:-300,property:27e3,other:700},{date:"2022-04-01",cash:6500,investments:12e3,loans:-1400,creditCardDebt:-200,property:28e3,other:800},{date:"2022-05-01",cash:7e3,investments:12500,loans:-1200,creditCardDebt:-100,property:29e3,other:900},{date:"2022-06-01",cash:7500,investments:13e3,loans:-1e3,creditCardDebt:0,property:3e4,other:1e3}];function iJe(){return g.jsx(mr,{title:"Net Worth History",content:g.jsx(_i,{style:{height:"400px",padding:0},className:"Mui-Chart",children:g.jsx(ZZe,{data:JZe})}),height:500})}const aJe=[...eJe,{field:"options",headerName:"",sortable:!1,flex:1,minWidth:90,maxWidth:90,renderCell:()=>g.jsx(Ue,{children:g.jsx(ks,{})})}];function sJe(){return g.jsx(Ue,{style:{height:400,width:"100%"},children:g.jsx(_s,{rows:tJe,columns:aJe,disableColumnFilter:!0,disableColumnSelector:!0,disableDensitySelector:!0,slots:{toolbar:Ps},slotProps:{filterPanel:{sx:{maxWidth:"100vw"}},toolbar:{showQuickFilter:!0}},editMode:"row",initialState:{columns:{columnVisibilityModel:{remainingTerm:!1}},filter:{filterModel:{items:[],quickFilterExcludeHiddenColumns:!0}},pagination:{paginationModel:{page:0,pageSize:5}}},pageSizeOptions:[5,10]})})}function lJe(){return g.jsx(mr,{title:"Assets",content:g.jsx(sJe,{}),height:500})}const uJe=[...nJe,{field:"options",headerName:"",sortable:!1,flex:1,minWidth:90,maxWidth:90,renderCell:()=>g.jsx(Ue,{children:g.jsx(ks,{})})}];function cJe(){return g.jsx(Ue,{style:{height:400,width:"100%"},children:g.jsx(_s,{rows:rJe,columns:uJe,disableColumnFilter:!0,disableColumnSelector:!0,disableDensitySelector:!0,slots:{toolbar:Ps},slotProps:{filterPanel:{sx:{maxWidth:"100vw"}},toolbar:{showQuickFilter:!0}},editMode:"row",initialState:{columns:{columnVisibilityModel:{remainingTerm:!1}},filter:{filterModel:{items:[],quickFilterExcludeHiddenColumns:!0}},pagination:{paginationModel:{page:0,pageSize:5}}},pageSizeOptions:[5,10]})})}function dJe(){return g.jsx(mr,{title:"Liabilities",content:g.jsx(cJe,{}),height:500})}const fJe=({data:e})=>{const t=Xt(),n=jn(t.palette.mode);return g.jsx(ih,{data:e,keys:["cash","investments","loans","creditCardDebt","property","other"],indexBy:"date",margin:{top:40,right:10,bottom:40,left:50},padding:.3,layout:"vertical",valueScale:{type:"linear"},indexScale:{type:"band",round:!0},valueFormat:" =-$0,~",colors:{scheme:"purple_orange"},defs:[{id:"dots",background:"inherit",color:"#38bcb2",size:4,padding:1,stagger:!0},{id:"lines",background:"inherit",color:"#eed312",rotation:-45,lineWidth:6,spacing:10}],fill:[{match:{id:"fries"},id:"dots"},{match:{id:"sandwich"},id:"lines"}],borderColor:{from:"color",modifiers:[["darker",1.6]]},axisTop:null,axisRight:null,axisBottom:{tickSize:5,tickPadding:5,tickRotation:0,legend:"country",legendPosition:"middle",legendOffset:32},axisLeft:{tickSize:5,tickPadding:5,tickRotation:0,legend:"food",legendPosition:"middle",legendOffset:-40},theme:{axis:{legend:{text:{fill:`${n.primary[100]}`}},ticks:{text:{fontSize:11,fill:`${n.primary[100]}`,outlineWidth:0,outlineColor:"transparent"}}},tooltip:{container:{background:`${n.primary[500]}`,color:`${n.primary[100]}`}}},labelSkipWidth:12,labelSkipHeight:12,labelTextColor:{from:"color",modifiers:[["darker",1.6]]},legends:[],role:"application",ariaLabel:"Nivo bar chart demo",barAriaLabel:r=>r.id+": "+r.formattedValue+" in country: "+r.indexValue})};function pJe(){return g.jsx(mr,{title:"Assets vs Liabilities",content:g.jsx(_i,{style:{height:"400px",padding:0},className:"Mui-Chart",children:g.jsx(fJe,{data:oJe})}),height:500})}function hJe(){return g.jsx(g.Fragment,{children:g.jsxs(Ue,{sx:{padding:2},children:[g.jsxs(Ue,{sx:{paddingBlock:2,width:"100%"},children:[g.jsx(Ze,{variant:"h1",children:"Net Worth"}),g.jsx(Ze,{variant:"h6",children:"Measure your financial success and set new targets"})]}),g.jsxs(Ft,{container:!0,spacing:2,sx:{width:"100%"},children:[g.jsx(Ft,{item:!0,xs:12,md:6,children:g.jsx(iJe,{})}),g.jsx(Ft,{item:!0,xs:12,md:6,children:g.jsx(lJe,{})}),g.jsx(Ft,{item:!0,xs:12,md:6,children:g.jsx(dJe,{})}),g.jsx(Ft,{item:!0,xs:12,md:6,children:g.jsx(pJe,{})})]})]})})}const Jk="DEFAULT_X_AXIS_KEY",J9="DEFAULT_Y_AXIS_KEY",mJe={top:50,bottom:50,left:50,right:50};function $d(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}const eL=Symbol("implicit");function WG(){var e=new Y6,t=[],n=[],r=eL;function o(i){let a=e.get(i);if(a===void 0){if(r!==eL)return r;e.set(i,a=t.push(i)-1)}return n[a%n.length]}return o.domain=function(i){if(!arguments.length)return t.slice();t=[],e=new Y6;for(const a of i)e.has(a)||e.set(a,t.push(a)-1);return o},o.range=function(i){return arguments.length?(n=Array.from(i),o):n.slice()},o.unknown=function(i){return arguments.length?(r=i,o):r},o.copy=function(){return WG(t,n).unknown(r)},$d.apply(o,arguments),o}function wb(){var e=WG().unknown(void 0),t=e.domain,n=e.range,r=0,o=1,i,a,s=!1,l=0,u=0,c=.5;delete e.unknown;function f(){var p=t().length,y=ot&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function bJe(e,t,n){var r=e[0],o=e[1],i=t[0],a=t[1];return o2?xJe:bJe,l=u=null,f}function f(p){return p==null||isNaN(p=+p)?i:(l||(l=s(e.map(r),t,n)))(r(a(p)))}return f.invert=function(p){return a(o((u||(u=s(t,e.map(r),kg)))(p)))},f.domain=function(p){return arguments.length?(e=Array.from(p,vJe),c()):e.slice()},f.range=function(p){return arguments.length?(t=Array.from(p),c()):t.slice()},f.rangeRound=function(p){return t=Array.from(p),n=$B,c()},f.clamp=function(p){return arguments.length?(a=p?!0:Ja,c()):a!==Ja},f.interpolate=function(p){return arguments.length?(n=p,c()):n},f.unknown=function(p){return arguments.length?(i=p,f):i},function(p,y){return r=p,o=y,c()}}function UG(){return s3()(Ja,Ja)}function wJe(e,t,n,r){var o=bp(e,t,n),i;switch(r=wp(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(i=AB(o,a))&&(r.precision=i),N5(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(i=FB(o,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=i-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(i=OB(o))&&(r.precision=i-(r.type==="%")*2);break}}return Pu(r)}function GG(e){var t=e.domain;return e.ticks=function(n){var r=t();return yp(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var o=t();return wJe(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,a=r[o],s=r[i],l,u,c=10;for(s0;){if(u=F5(a,s,n),u===l)return r[o]=a,r[i]=s,t(r);if(u>0)a=Math.floor(a/u)*u,s=Math.ceil(s/u)*u;else if(u<0)a=Math.ceil(a*u)/u,s=Math.floor(s*u)/u;else break;l=u}return e},e}function qG(){var e=UG();return e.copy=function(){return $2(e,qG())},$d.apply(e,arguments),GG(e)}function KG(e,t){e=e.slice();var n=0,r=e.length-1,o=e[n],i=e[r],a;return iMath.pow(e,t)}function kJe(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 iL(e){return(t,n)=>-e(-t,n)}function PJe(e){const t=e(rL,oL),n=t.domain;let r=10,o,i;function a(){return o=kJe(r),i=_Je(r),n()[0]<0?(o=iL(o),i=iL(i),e(CJe,SJe)):e(rL,oL),t}return t.base=function(s){return arguments.length?(r=+s,a()):r},t.domain=function(s){return arguments.length?(n(s),a()):n()},t.ticks=s=>{const l=n();let u=l[0],c=l[l.length-1];const f=c0){for(;p<=y;++p)for(v=1;vc)break;x.push(b)}}else for(;p<=y;++p)for(v=r-1;v>=1;--v)if(b=p>0?v/i(-p):v*i(p),!(bc)break;x.push(b)}x.length*2{if(s==null&&(s=10),l==null&&(l=r===10?"s":","),typeof l!="function"&&(!(r%1)&&(l=wp(l)).precision==null&&(l.trim=!0),l=Pu(l)),s===1/0)return l;const u=Math.max(1,r*s/t.ticks().length);return c=>{let f=c/i(Math.round(o(c)));return f*rn(KG(n(),{floor:s=>i(Math.floor(o(s))),ceil:s=>i(Math.ceil(o(s)))})),t}function YG(){const e=PJe(s3()).domain([1,10]);return e.copy=()=>$2(e,YG()).base(e.base()),$d.apply(e,arguments),e}function aL(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function MJe(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function TJe(e){return e<0?-e*e:e*e}function EJe(e){var t=e(Ja,Ja),n=1;function r(){return n===1?e(Ja,Ja):n===.5?e(MJe,TJe):e(aL(n),aL(1/n))}return t.exponent=function(o){return arguments.length?(n=+o,r()):n},GG(t)}function l3(){var e=EJe(s3());return e.copy=function(){return $2(e,l3()).exponent(e.exponent())},$d.apply(e,arguments),e}function IJe(){return l3.apply(null,arguments).exponent(.5)}const h$=new Date,m$=new Date;function Fr(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 a=o(i),s=o.ceil(i);return i-a(t(i=new Date(+i),a==null?1:Math.floor(a)),i),o.range=(i,a,s)=>{const l=[];if(i=o.ceil(i),s=s==null?1:Math.floor(s),!(i0))return l;let u;do l.push(u=new Date(+i)),t(i,s),e(i);while(uFr(a=>{if(a>=a)for(;e(a),!i(a);)a.setTime(a-1)},(a,s)=>{if(a>=a)if(s<0)for(;++s<=0;)for(;t(a,-1),!i(a););else for(;--s>=0;)for(;t(a,1),!i(a););}),n&&(o.count=(i,a)=>(h$.setTime(+i),m$.setTime(+a),e(h$),e(m$),Math.floor(n(h$,m$))),o.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?o.filter(r?a=>r(a)%i===0:a=>o.count(0,a)%i===0):o)),o}const Cb=Fr(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Cb.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Fr(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):Cb);Cb.range;const Qs=1e3,qi=Qs*60,Zs=qi*60,cl=Zs*24,u3=cl*7,sL=cl*30,g$=cl*365,dc=Fr(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Qs)},(e,t)=>(t-e)/Qs,e=>e.getUTCSeconds());dc.range;const c3=Fr(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Qs)},(e,t)=>{e.setTime(+e+t*qi)},(e,t)=>(t-e)/qi,e=>e.getMinutes());c3.range;const d3=Fr(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*qi)},(e,t)=>(t-e)/qi,e=>e.getUTCMinutes());d3.range;const f3=Fr(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Qs-e.getMinutes()*qi)},(e,t)=>{e.setTime(+e+t*Zs)},(e,t)=>(t-e)/Zs,e=>e.getHours());f3.range;const p3=Fr(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Zs)},(e,t)=>(t-e)/Zs,e=>e.getUTCHours());p3.range;const h3=Fr(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*qi)/cl,e=>e.getDate()-1);h3.range;const XG=Fr(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/cl,e=>e.getUTCDate()-1);XG.range;const QG=Fr(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/cl,e=>Math.floor(e/cl));QG.range;function _d(e){return Fr(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())*qi)/u3)}const m3=_d(0),RJe=_d(1),OJe=_d(2),AJe=_d(3),FJe=_d(4),LJe=_d(5),DJe=_d(6);m3.range;RJe.range;OJe.range;AJe.range;FJe.range;LJe.range;DJe.range;function kd(e){return Fr(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)/u3)}const g3=kd(0),jJe=kd(1),NJe=kd(2),zJe=kd(3),BJe=kd(4),HJe=kd(5),WJe=kd(6);g3.range;jJe.range;NJe.range;zJe.range;BJe.range;HJe.range;WJe.range;const v3=Fr(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());v3.range;const y3=Fr(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());y3.range;const _2=Fr(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());_2.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Fr(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)});_2.range;const k2=Fr(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());k2.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Fr(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)});k2.range;function ZG(e,t,n,r,o,i){const a=[[dc,1,Qs],[dc,5,5*Qs],[dc,15,15*Qs],[dc,30,30*Qs],[i,1,qi],[i,5,5*qi],[i,15,15*qi],[i,30,30*qi],[o,1,Zs],[o,3,3*Zs],[o,6,6*Zs],[o,12,12*Zs],[r,1,cl],[r,2,2*cl],[n,1,u3],[t,1,sL],[t,3,3*sL],[e,1,g$]];function s(u,c,f){const p=cC).right(a,p);if(y===a.length)return e.every(bp(u/g$,c/g$,f));if(y===0)return Cb.every(Math.max(bp(u,c,f),1));const[v,b]=a[p/a[y-1][2]{var t,n;const{axis:r}=e,o=Math.min(...(t=r.data)!=null?t:[]),i=Math.max(...(n=r.data)!=null?n:[]);return[o,i]},eq=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[a,s]=t[i].stackedData.reduce((l,u)=>[Math.min(...u,...l[0]===null?[]:[l[0]]),Math.max(...u,...l[1]===null?[]:[l[1]])],t[i].stackedData[0]);return[o[0]===null?a:Math.min(a,o[0]),o[1]===null?s:Math.max(s,o[1])]},[null,null])},ZJe=e=>Object.keys(e.series).some(n=>e.series[n].layout==="horizontal")?eq(e):JG(e),JJe=e=>Object.keys(e.series).some(n=>e.series[n].layout==="horizontal")?JG(e):eq(e),Sb=(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])],eet=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 a=t[i].data.reduce((s,{x:l})=>Sb(s,[l,l]),[null,null]);return Sb(o,a)},[null,null])},tet=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 a=t[i].data.reduce((s,{y:l})=>Sb(s,[l,l]),[null,null]);return Sb(o,a)},[null,null])},net=e=>{var t,n;const{axis:r}=e,o=Math.min(...(t=r.data)!=null?t:[]),i=Math.max(...(n=r.data)!=null?n:[]);return[o,i]},ret=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 s=t[i].area!==void 0?c=>c:c=>[c[1],c[1]],[l,u]=t[i].stackedData.reduce((c,f)=>{const[p,y]=s(f);return[Math.min(p,y,c[0]),Math.max(p,y,c[1])]},s(t[i].stackedData[0]));return o[0]===null||o[1]===null?[l,u]:[Math.min(l,o[0]),Math.max(u,o[1])]},[null,null])};function $b(e){return e.scaleType==="band"}function lL(e){return e.scaleType==="point"}function uL(e,t,n){switch(e){case"log":return YG(t,n);case"pow":return l3(t,n);case"sqrt":return IJe(t,n);case"time":return XJe(t,n);case"utc":return QJe(t,n);default:return qG(t,n)}}const oet=(e,t,n)=>{const r=P({},mJe,n);return m.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])},iet=oet,x3=m.createContext({top:0,left:0,bottom:0,right:0,height:300,width:400}),w3=m.createContext({current:null});function aet({width:e,height:t,margin:n,svgRef:r,children:o}){const i=iet(e,t,n);return g.jsx(w3.Provider,{value:r,children:g.jsx(x3.Provider,{value:i,children:o})})}function Tn(e){return function(){return e}}const cL=1e-12,set=Math.PI,v$=2*set,tP=Math.PI,nP=2*tP,Ju=1e-6,uet=nP-Ju;function tq(e){this._+=e[0];for(let t=1,n=e.length;t=0))throw new Error(`invalid digits: ${e}`);if(t>15)return tq;const n=10**t;return function(r){this._+=r[0];for(let o=1,i=r.length;oJu)if(!(Math.abs(f*l-u*c)>Ju)||!i)this._append`L${this._x1=t},${this._y1=n}`;else{let y=r-a,v=o-s,b=l*l+u*u,C=y*y+v*v,x=Math.sqrt(b),w=Math.sqrt(p),S=i*Math.tan((tP-Math.acos((b+p-C)/(2*x*w)))/2),$=S/w,T=S/x;Math.abs($-1)>Ju&&this._append`L${t+$*c},${n+$*f}`,this._append`A${i},${i},0,0,${+(f*y>c*v)},${this._x1=t+T*l},${this._y1=n+T*u}`}}arc(t,n,r,o,i,a){if(t=+t,n=+n,r=+r,a=!!a,r<0)throw new Error(`negative radius: ${r}`);let s=r*Math.cos(o),l=r*Math.sin(o),u=t+s,c=n+l,f=1^a,p=a?o-i:i-o;this._x1===null?this._append`M${u},${c}`:(Math.abs(this._x1-u)>Ju||Math.abs(this._y1-c)>Ju)&&this._append`L${u},${c}`,r&&(p<0&&(p=p%nP+nP),p>uet?this._append`A${r},${r},0,1,${f},${t-s},${n-l}A${r},${r},0,1,${f},${this._x1=u},${this._y1=c}`:p>Ju&&this._append`A${r},${r},0,${+(p>=tP)},${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 nq(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 det(t)}function P2(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function rq(e){this._context=e}rq.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(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;default:this._context.lineTo(e,t);break}}};function C3(e){return new rq(e)}function oq(e){return e[0]}function iq(e){return e[1]}function aq(e,t){var n=Tn(!0),r=null,o=C3,i=null,a=nq(s);e=typeof e=="function"?e:e===void 0?oq:Tn(e),t=typeof t=="function"?t:t===void 0?iq:Tn(t);function s(l){var u,c=(l=P2(l)).length,f,p=!1,y;for(r==null&&(i=o(y=a())),u=0;u<=c;++u)!(u=y;--v)s.point(S[v],$[v]);s.lineEnd(),s.areaEnd()}x&&(S[p]=+e(C,p,f),$[p]=+t(C,p,f),s.point(r?+r(C,p,f):S[p],n?+n(C,p,f):$[p]))}if(w)return s=null,w+""||null}function c(){return aq().defined(o).curve(a).context(i)}return u.x=function(f){return arguments.length?(e=typeof f=="function"?f:Tn(+f),r=null,u):e},u.x0=function(f){return arguments.length?(e=typeof f=="function"?f:Tn(+f),u):e},u.x1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:Tn(+f),u):r},u.y=function(f){return arguments.length?(t=typeof f=="function"?f:Tn(+f),n=null,u):t},u.y0=function(f){return arguments.length?(t=typeof f=="function"?f:Tn(+f),u):t},u.y1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:Tn(+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:Tn(!!f),u):o},u.curve=function(f){return arguments.length?(a=f,i!=null&&(s=a(i)),u):a},u.context=function(f){return arguments.length?(f==null?i=s=null:s=a(i=f),u):i},u}function pet(e,t){return te?1:t>=e?0:NaN}function het(e){return e}function met(){var e=het,t=pet,n=null,r=Tn(0),o=Tn(v$),i=Tn(0);function a(s){var l,u=(s=P2(s)).length,c,f,p=0,y=new Array(u),v=new Array(u),b=+r.apply(this,arguments),C=Math.min(v$,Math.max(-v$,o.apply(this,arguments)-b)),x,w=Math.min(Math.abs(C)/u,i.apply(this,arguments)),S=w*(C<0?-1:1),$;for(l=0;l0&&(p+=$);for(t!=null?y.sort(function(T,k){return t(v[T],v[k])}):n!=null&&y.sort(function(T,k){return n(s[T],s[k])}),l=0,f=p?(C-u*S)/p:0;l0?$*f:0)+S,v[c]={data:s[c],index:l,value:$,startAngle:b,endAngle:x,padAngle:w};return v}return a.value=function(s){return arguments.length?(e=typeof s=="function"?s:Tn(+s),a):e},a.sortValues=function(s){return arguments.length?(t=s,n=null,a):t},a.sort=function(s){return arguments.length?(n=s,t=null,a):n},a.startAngle=function(s){return arguments.length?(r=typeof s=="function"?s:Tn(+s),a):r},a.endAngle=function(s){return arguments.length?(o=typeof s=="function"?s:Tn(+s),a):o},a.padAngle=function(s){return arguments.length?(i=typeof s=="function"?s:Tn(+s),a):i},a}function dL(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 S3(e,t){this._context=e,this._k=(1-t)/6}S3.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:dL(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:dL(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 S3(r,t)}return n.tension=function(r){return e(+r)},n})(0);function get(e,t,n){var r=e._x1,o=e._y1,i=e._x2,a=e._y2;if(e._l01_a>cL){var s=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*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,o=(o*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>cL){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,a=(a*u+e._y1*e._l23_2a-n*e._l12_2a)/c}e._context.bezierCurveTo(r,o,i,a,e._x2,e._y2)}function sq(e,t){this._context=e,this._alpha=t}sq.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:get(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 vet=function e(t){function n(r){return t?new sq(r,t):new S3(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function fL(e){return e<0?-1:1}function pL(e,t,n){var r=e._x1-e._x0,o=t-e._x1,i=(e._y1-e._y0)/(r||o<0&&-0),a=(n-e._y1)/(o||r<0&&-0),s=(i*o+a*r)/(r+o);return(fL(i)+fL(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(s))||0}function hL(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function y$(e,t,n){var r=e._x0,o=e._y0,i=e._x1,a=e._y1,s=(i-r)/3;e._context.bezierCurveTo(r+s,o+s*t,i-s,a-s*n,i,a)}function _b(e){this._context=e}_b.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:y$(this,this._t0,hL(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,y$(this,hL(this,n=pL(this,e,t)),n);break;default:y$(this,this._t0,n=pL(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function lq(e){this._context=new uq(e)}(lq.prototype=Object.create(_b.prototype)).point=function(e,t){_b.prototype.point.call(this,t,e)};function uq(e){this._context=e}uq.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 mL(e){return new _b(e)}function yet(e){return new lq(e)}function cq(e){this._context=e}cq.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=gL(e),o=gL(t),i=0,a=1;a=0;--t)o[t]=(a[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 xet(e){return new M2(e,.5)}function wet(e){return new M2(e,0)}function Cet(e){return new M2(e,1)}function Ep(e,t){if((a=e.length)>1)for(var n=1,r,o,i=e[t[0]],a,s=i.length;n=0;)n[t]=t;return n}function $et(e,t){return e[t]}function _et(e){const t=[];return t.key=e,t}function dq(){var e=Tn([]),t=Ip,n=Ep,r=$et;function o(i){var a=Array.from(e.apply(this,arguments),_et),s,l=a.length,u=-1,c;for(const f of i)for(s=0,++u;s0){for(var n,r,o=0,i=e[0].length,a;o0)for(var n,r=0,o,i,a,s,l,u=e[t[0]].length;r0?(o[0]=a,o[1]=a+=i):i<0?(o[1]=s,o[0]=s+=i):(o[0]=0,o[1]=i)}function Met(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,a;ri&&(i=o,n=t);return n}function pq(e){var t=e.map(hq);return Ip(e).sort(function(n,r){return t[n]-t[r]})}function hq(e){for(var t=0,n=-1,r=e.length,o;++n{const{series:t,seriesOrder:n}=e,r=[],o={};return n.forEach(i=>{const{stack:a,stackOrder:s,stackOffset:l}=t[i];a===void 0?r.push({ids:[i],stackingOrder:b$.none,stackingOffset:x$.none}):o[a]===void 0?(o[a]=r.length,r.push({ids:[i],stackingOrder:b$[s??"none"],stackingOffset:x$[l??"diverging"]})):(r[o[a]].ids.push(i),s!==void 0&&(r[o[a]].stackingOrder=b$[s]),l!==void 0&&(r[o[a]].stackingOffset=x$[l]))}),r};function $3(e,t){const n={};return Object.keys(e).forEach(r=>{n[r]=P({valueFormatter:t},e[r])}),n}const Aet=(e,t)=>{const{seriesOrder:n,series:r}=e,o=mq(e),i=t??[];n.forEach(s=>{const l=r[s].data;if(l!==void 0)l.forEach((u,c)=>{i.length<=c?i.push({[s]:u}):i[c][s]=u});else if(t===void 0)throw new Error([`MUI: bar series with id='${s}' has no data.`,"Either provide a data property to the series or use the dataset prop."].join(` -`))});const a={};return o.forEach(s=>{const{ids:l,stackingOffset:u,stackingOrder:c}=s,f=dq().keys(l.map(p=>{const y=r[p].dataKey;return r[p].data===void 0&&y!==void 0?y:p})).order(c).offset(u)(i);l.forEach((p,y)=>{const v=r[p].dataKey;a[p]=P({layout:"vertical"},r[p],{data:v?t.map(b=>b[v]):r[p].data,stackedData:f[y].map(([b,C])=>[b,C])})})}),{seriesOrder:n,stackingGroups:o,series:$3(a,s=>s==null?void 0:s.toLocaleString())}},Fet=Aet,Let=({series:e,seriesOrder:t})=>({series:$3(e,n=>`(${n.x}, ${n.y})`),seriesOrder:t}),Det=Let,jet=(e,t)=>{const{seriesOrder:n,series:r}=e,o=mq(e),i=t??[];n.forEach(s=>{const l=r[s].data;l!==void 0&&l.forEach((u,c)=>{i.length<=c?i.push({[s]:u}):i[c][s]=u})});const a={};return o.forEach(s=>{const{ids:l,stackingOrder:u,stackingOffset:c}=s,f=dq().keys(l.map(p=>{const y=r[p].dataKey;return r[p].data===void 0&&y!==void 0?y:p})).value((p,y)=>{var v;return(v=p[y])!=null?v:0}).order(u).offset(c)(i);l.forEach((p,y)=>{const v=r[p].dataKey;a[p]=P({},r[p],{data:v?t.map(b=>b[v]):r[p].data,stackedData:f[y].map(([b,C])=>[b,C])})})}),{seriesOrder:n,stackingGroups:o,series:$3(a,s=>s==null?void 0:s.toLocaleString())}},Net=jet,zet=(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}},Bet=e=>{const{seriesOrder:t,series:n}=e,r={};return t.forEach(o=>{var i,a,s,l;const u=met().startAngle(2*Math.PI*((i=n[o].startAngle)!=null?i:0)/360).endAngle(2*Math.PI*((a=n[o].endAngle)!=null?a:360)/360).padAngle(2*Math.PI*((s=n[o].paddingAngle)!=null?s:0)/360).sortValues(zet((l=n[o].sortingValues)!=null?l:"none"))(n[o].data.map(c=>c.value));r[o]=P({valueFormatter:c=>c.value.toLocaleString()},n[o],{data:n[o].data.map((c,f)=>{var p;return P({},c,{id:(p=c.id)!=null?p:`auto-generated-pie-id-${o}-${f}`},u[f])}).map(c=>{var f,p,y;return P({},c,{formattedValue:(f=(p=(y=n[o]).valueFormatter)==null?void 0:p.call(y,c))!=null?f:c.value.toLocaleString()})})})}),{seriesOrder:t,series:r}},Het=Bet,Wet=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];function Vet(e,t,n=Wet){return e.type==="pie"?P({},e,{data:e.data.map((r,o)=>P({color:n[o%n.length]},r))}):P({color:n[t%n.length]},e)}const Uet=["#02B2AF","#2E96FF","#B800D8","#60009B","#2731C8","#03008D"],Get=["#02B2AF","#72CCFF","#DA00FF","#9001CB","#2E96FF","#3B48E0"],qet=e=>e==="dark"?Get:Uet,Iu=m.createContext({}),w$={bar:Fet,scatter:Det,line:Net,pie:Het},Ket=(e,t,n)=>{const r={};e.forEach((i,a)=>{var s;const{id:l=`auto-generated-id-${a}`,type:u}=i;if(r[u]===void 0&&(r[u]={series:{},seriesOrder:[]}),((s=r[u])==null?void 0:s.series[l])!==void 0)throw new Error(`MUI: series' id "${l}" is not unique`);r[u].series[l]=P({id:l},Vet(i,a,t)),r[u].seriesOrder.push(l)});const o={};return Object.keys(w$).forEach(i=>{if(r[i]!==void 0){var a,s;o[i]=(a=(s=w$[i])==null?void 0:s.call(w$,r[i],n))!=null?a:r[i]}}),o};function Yet({series:e,dataset:t,colors:n=qet,children:r}){const o=Xt(),i=m.useMemo(()=>Ket(e,typeof n=="function"?n(o.palette.mode):n,t),[e,n,o.palette.mode,t]);return g.jsx(Iu.Provider,{value:i,children:r})}function kb(e){return e.bandwidth!==void 0}function vL(e){const{tickMaxStep:t,tickMinStep:n,tickNumber:r,range:o,domain:i}=e,a=n===void 0?999:Math.floor(Math.abs(i[1]-i[0])/n),s=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(a,Math.max(s,l))}const yL=.2,Xet=.1,Qet={bar:ZJe,scatter:eet,line:net},Zet={bar:JJe,scatter:tet,line:ret},Ru=m.createContext({xAxis:{},yAxis:{},xAxisIds:[],yAxisIds:[]});function Jet({xAxis:e,yAxis:t,dataset:n,children:r}){const o=m.useContext(Iu),i=m.useContext(x3),a=m.useMemo(()=>e==null?void 0:e.map(u=>{const c=u.dataKey;if(c===void 0||u.data!==void 0)return u;if(n===void 0)throw Error("MUI: x-axis uses `dataKey` but no `dataset` is provided.");return P({},u,{data:n.map(f=>f[c])})}),[e,n]),s=m.useMemo(()=>t==null?void 0:t.map(u=>{const c=u.dataKey;if(c===void 0||u.data!==void 0)return u;if(n===void 0)throw Error("MUI: y-axis uses `dataKey` but no `dataset` is provided.");return P({},u,{data:n.map(f=>f[c])})}),[t,n]),l=m.useMemo(()=>{var u,c;const f=(x,w,S,$,T)=>{var k,M;const I=$[w],N=(k=(M=o[w])==null?void 0:M.series)!=null?k:{},[E,A]=I({series:N,axis:S,isDefaultAxis:T}),[z,L]=x;return z===null||L===null?[E,A]:E===null||A===null?[z,L]:[Math.min(E,z),Math.max(A,L)]},p=(x,w,S)=>Object.keys(w).reduce((T,k)=>f(T,k,x,w,S),[null,null]),y=[...(u=a==null?void 0:a.map((x,w)=>P({id:`deaultized-x-axis-${w}`},x)))!=null?u:[],...a===void 0||a.findIndex(({id:x})=>x===Jk)===-1?[{id:Jk,scaleType:"linear"}]:[]],v={};y.forEach((x,w)=>{var S,$,T,k,M;const I=w===0,[N,E]=p(x,Qet,I),A=[i.left,i.left+i.width];if($b(x)){var z,L;const U=(z=x.categoryGapRatio)!=null?z:yL,Z=(L=x.barGapRatio)!=null?L:Xet;v[x.id]=P({categoryGapRatio:U,barGapRatio:Z},x,{scale:wb(x.data,A).paddingInner(U).paddingOuter(U/2),tickNumber:x.data.length})}if(lL(x)&&(v[x.id]=P({},x,{scale:tL(x.data,A),tickNumber:x.data.length})),x.scaleType==="band"||x.scaleType==="point")return;const O=(S=x.scaleType)!=null?S:"linear",D=[($=x.min)!=null?$:N,(T=x.max)!=null?T:E],H=vL(P({},x,{range:A,domain:D})),B=uL(O,D,A).nice(H),j=B.domain(),W=[(k=x.min)!=null?k:j[0],(M=x.max)!=null?M:j[1]];v[x.id]=P({},x,{scaleType:O,scale:B.domain(W),tickNumber:H})});const b=[...(c=s==null?void 0:s.map((x,w)=>P({id:`deaultized-y-axis-${w}`},x)))!=null?c:[],...s===void 0||s.findIndex(({id:x})=>x===J9)===-1?[{id:J9,scaleType:"linear"}]:[]],C={};return b.forEach((x,w)=>{var S,$,T,k,M;const I=w===0,[N,E]=p(x,Zet,I),A=[i.top+i.height,i.top];if($b(x)){var z;const W=(z=x.categoryGapRatio)!=null?z:yL;C[x.id]=P({categoryGapRatio:W,barGapRatio:0},x,{scale:wb(x.data,[A[1],A[0]]).paddingInner(W).paddingOuter(W/2),tickNumber:x.data.length})}if(lL(x)&&(C[x.id]=P({},x,{scale:tL(x.data,[A[1],A[0]]),tickNumber:x.data.length})),x.scaleType==="band"||x.scaleType==="point")return;const L=(S=x.scaleType)!=null?S:"linear",O=[($=x.min)!=null?$:N,(T=x.max)!=null?T:E],D=vL(P({},x,{range:A,domain:O})),H=uL(L,O,A).nice(D),B=H.domain(),j=[(k=x.min)!=null?k:B[0],(M=x.max)!=null?M:B[1]];C[x.id]=P({},x,{scaleType:L,scale:H.domain(j),tickNumber:D})}),{xAxis:v,yAxis:C,xAxisIds:y.map(({id:x})=>x),yAxisIds:b.map(({id:x})=>x)}},[i.height,i.left,i.top,i.width,o,a,s]);return g.jsx(Ru.Provider,{value:l,children:r})}function Gg(e){return kb(e)?t=>e(t)+e.bandwidth()/2:t=>e(t)}function ett(e){return typeof e=="string"}function ttt(e,t,n){return e===void 0||ett(e)?t:P({},t,{ownerState:P({},t.ownerState,n)})}const ntt={disableDefaultClasses:!1},rtt=m.createContext(ntt);function ott(e){const{disableDefaultClasses:t}=m.useContext(rtt);return n=>t?"":e(n)}function itt(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function att(e,t,n){return typeof e=="function"?e(t,n):e}function bL(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function stt(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const y=ze(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),v=P({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),b=P({},n,o,r);return y.length>0&&(b.className=y),Object.keys(v).length>0&&(b.style=v),{props:b,internalRef:void 0}}const a=itt(P({},o,r)),s=bL(r),l=bL(o),u=t(a),c=ze(u==null?void 0:u.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),f=P({},u==null?void 0:u.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),p=P({},u,n,l,s);return c.length>0&&(p.className=c),Object.keys(f).length>0&&(p.style=f),{props:p,internalRef:u.ref}}const ltt=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Pd(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=be(e,ltt),s=i?{}:att(r,o),{props:l,internalRef:u}=stt(P({},a,{externalSlotProps:s})),c=on(u,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return ttt(n,P({},l,{ref:c}),o)}function utt(e){return typeof e=="function"?e():e}const ctt=m.forwardRef(function(t,n){const{children:r,container:o,disablePortal:i=!1}=t,[a,s]=m.useState(null),l=on(m.isValidElement(r)?r.ref:null,n);if(pn(()=>{i||s(utt(o)||document.body)},[o,i]),pn(()=>{if(a&&!i)return Dc(n,a),()=>{Dc(n,null)}},[n,a,i]),i){if(m.isValidElement(r)){const u={ref:l};return m.cloneElement(r,u)}return g.jsx(m.Fragment,{children:r})}return g.jsx(m.Fragment,{children:a&&bu.createPortal(r,a)})});function dtt(e){return yt("MuiPopper",e)}bt("MuiPopper",["root"]);const ftt=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],ptt=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function htt(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function rP(e){return typeof e=="function"?e():e}function mtt(e){return e.nodeType!==void 0}const gtt=()=>qe({root:["root"]},ott(dtt)),vtt={},ytt=m.forwardRef(function(t,n){var r;const{anchorEl:o,children:i,direction:a,disablePortal:s,modifiers:l,open:u,placement:c,popperOptions:f,popperRef:p,slotProps:y={},slots:v={},TransitionProps:b}=t,C=be(t,ftt),x=m.useRef(null),w=on(x,n),S=m.useRef(null),$=on(S,p),T=m.useRef($);pn(()=>{T.current=$},[$]),m.useImperativeHandle(p,()=>S.current,[]);const k=htt(c,a),[M,I]=m.useState(k),[N,E]=m.useState(rP(o));m.useEffect(()=>{S.current&&S.current.forceUpdate()}),m.useEffect(()=>{o&&E(rP(o))},[o]),pn(()=>{if(!N||!u)return;const D=j=>{I(j.placement)};let H=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:j})=>{D(j)}}];l!=null&&(H=H.concat(l)),f&&f.modifiers!=null&&(H=H.concat(f.modifiers));const B=Kj(N,x.current,P({placement:k},f,{modifiers:H}));return T.current(B),()=>{B.destroy(),T.current(null)}},[N,s,l,u,f,k]);const A={placement:M};b!==null&&(A.TransitionProps=b);const z=gtt(),L=(r=v.root)!=null?r:"div",O=Pd({elementType:L,externalSlotProps:y.root,externalForwardedProps:C,additionalProps:{role:"tooltip",ref:w},ownerState:t,className:z.root});return g.jsx(L,P({},O,{children:typeof i=="function"?i(A):i}))}),btt=m.forwardRef(function(t,n){const{anchorEl:r,children:o,container:i,direction:a="ltr",disablePortal:s=!1,keepMounted:l=!1,modifiers:u,open:c,placement:f="bottom",popperOptions:p=vtt,popperRef:y,style:v,transition:b=!1,slotProps:C={},slots:x={}}=t,w=be(t,ptt),[S,$]=m.useState(!0),T=()=>{$(!1)},k=()=>{$(!0)};if(!l&&!c&&(!b||S))return null;let M;if(i)M=i;else if(r){const E=rP(r);M=E&&mtt(E)?Gn(E).body:Gn(null).body}const I=!c&&l&&(!b||S)?"none":void 0,N=b?{in:c,onEnter:T,onExited:k}:void 0;return g.jsx(ctt,{disablePortal:s,container:M,children:g.jsx(ytt,P({anchorEl:r,direction:a,disablePortal:s,modifiers:u,ref:n,open:b?!S:c,placement:f,popperOptions:p,popperRef:y,slotProps:C,slots:x},w,{style:P({position:"fixed",top:0,left:0,display:I},v),TransitionProps:N,children:o}))})});function xtt(e){const{children:t,defer:n=!1,fallback:r=null}=e,[o,i]=m.useState(!1);return pn(()=>{n||i(!0)},[n]),m.useEffect(()=>{n&&i(!0)},[n]),g.jsx(m.Fragment,{children:o?t:r})}const hl=m.createContext({item:null,axis:{x:null,y:null},dispatch:()=>null}),wtt=(e,t)=>{switch(t.type){case"enterItem":return P({},e,{item:t.data});case"leaveItem":return e.item===null||Object.keys(t.data).some(n=>t.data[n]!==e.item[n])?e:P({},e,{item:null});case"updateAxis":return P({},e,{axis:t.data});default:return e}};function Ctt({children:e}){const[t,n]=m.useReducer(wtt,{item:null,axis:{x:null,y:null}}),r=m.useMemo(()=>P({},t,{dispatch:n}),[t]);return g.jsx(hl.Provider,{value:r,children:e})}function Stt(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 $tt(){const e=m.useContext(w3),[t,n]=m.useState(null);return m.useEffect(()=>{const r=e.current;if(r===null)return()=>{};const o=()=>{n(null)},i=a=>{n({x:a.clientX,y:a.clientY})};return r.addEventListener("mouseout",o),r.addEventListener("mousemove",i),()=>{r.removeEventListener("mouseout",o),r.removeEventListener("mousemove",i)}},[e]),t}function _tt(e,t){if(e==="item")return t!==null;const n=t.x!==null,r=t.y!==null;return n||r}function ktt(e){return yt("MuiChartsTooltip",e)}const xL=bt("MuiChartsTooltip",["root","markCell","labelCell","valueCell"]),gq=ke("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})),vq=ke("table",{name:"MuiChartsTooltip",slot:"Table"})(({theme:e})=>({borderSpacing:0,"& thead td":{borderBottom:`solid ${(e.vars||e).palette.divider} 1px`}})),oP=ke("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)}})),fc=ke("td",{name:"MuiChartsTooltip",slot:"Cell"})(({theme:e})=>({verticalAlign:"middle",color:(e.vars||e).palette.text.secondary,[`&.${xL.labelCell}`]:{paddingLeft:e.spacing(1)},[`&.${xL.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)}})),yq=ke(nse,{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 Ptt(e){const{series:t,itemData:n,sx:r,classes:o}=e;if(n.dataIndex===void 0)return null;const{displayedLabel:i,color:a}=t.type==="pie"?{color:t.data[n.dataIndex].color,displayedLabel:t.data[n.dataIndex].label}:{color:t.color,displayedLabel:t.label},s=t.valueFormatter(t.data[n.dataIndex]);return g.jsx(gq,{sx:r,className:o.root,children:g.jsx(vq,{children:g.jsx("tbody",{children:g.jsxs(oP,{children:[g.jsx(fc,{className:o.markCell,children:g.jsx(yq,{ownerState:{color:a}})}),g.jsx(fc,{className:o.labelCell,children:i}),g.jsx(fc,{className:o.valueCell,children:s})]})})})})}function Mtt(e){const{content:t,itemData:n,sx:r,classes:o,contentProps:i}=e,a=m.useContext(Iu)[n.type].series[n.seriesId],s=t??Ptt,l=Pd({elementType:s,externalSlotProps:i,additionalProps:{itemData:n,series:a,sx:r,classes:o},ownerState:{}});return g.jsx(s,P({},l))}function Ttt(e){var t;const{series:n,axis:r,dataIndex:o,axisValue:i,sx:a,classes:s}=e;if(o==null)return null;const l=(t=r.valueFormatter)!=null?t:u=>u.toLocaleString();return g.jsx(gq,{sx:a,className:s.root,children:g.jsxs(vq,{children:[i!=null&&!r.hideTooltip&&g.jsx("thead",{children:g.jsx(oP,{children:g.jsx(fc,{colSpan:3,children:g.jsx(Ze,{children:l(i)})})})}),g.jsx("tbody",{children:n.map(({color:u,id:c,label:f,valueFormatter:p,data:y})=>{const v=p(y[o]);return v==null?null:g.jsxs(oP,{children:[g.jsx(fc,{className:s.markCell,children:g.jsx(yq,{ownerState:{color:u},boxShadow:1})}),g.jsx(fc,{className:s.labelCell,children:f?g.jsx(Ze,{children:f}):null}),g.jsx(fc,{className:s.valueCell,children:g.jsx(Ze,{children:v})})]},c)})})]})})}function Ett(e){const{content:t,contentProps:n,axisData:r,sx:o,classes:i}=e,a=(r.x&&r.x.index)!==void 0,s=a?r.x&&r.x.index:r.y&&r.y.index,l=a?r.x&&r.x.value:r.y&&r.y.value,{xAxisIds:u,xAxis:c,yAxisIds:f,yAxis:p}=m.useContext(Ru),y=m.useContext(Iu),v=a?u[0]:f[0],b=m.useMemo(()=>{const S=[];return Object.keys(y).filter($=>["bar","line","scatter"].includes($)).forEach($=>{y[$].seriesOrder.forEach(T=>{const k=y[$].series[T],M=a?k.xAxisKey:k.yAxisKey;(M===void 0||M===v)&&S.push(y[$].series[T])})}),S},[v,a,y]),C=m.useMemo(()=>a?c[v]:p[v],[v,a,c,p]),x=t??Ttt,w=Pd({elementType:x,externalSlotProps:n,additionalProps:{axisData:r,series:b,axis:C,dataIndex:s,axisValue:l,sx:o,classes:i},ownerState:{}});return g.jsx(x,P({},w))}const Itt=e=>{const{classes:t}=e;return qe({root:["root"],markCell:["markCell"],labelCell:["labelCell"],valueCell:["valueCell"]},ktt,t)},Rtt=ke(btt,{name:"MuiChartsTooltip",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({pointerEvents:"none",zIndex:e.zIndex.modal}));function Ott(e){var t,n,r;const{trigger:o="axis",itemContent:i,axisContent:a,slots:s,slotProps:l}=e,u=$tt(),{item:c,axis:f}=m.useContext(hl),p=o==="item"?c:f,y=_tt(o,p),v=u!==null&&y,b=Itt({classes:e.classes}),C=(t=s==null?void 0:s.popper)!=null?t:Rtt,x=Pd({elementType:C,externalSlotProps:l==null?void 0:l.popper,additionalProps:{open:v,placement:"right-start",anchorEl:Stt(u)},ownerState:{}});return o==="none"?null:g.jsx(xtt,{children:v&&g.jsx(C,P({},x,{children:o==="item"?g.jsx(Mtt,{itemData:p,content:(n=s==null?void 0:s.itemContent)!=null?n:i,contentProps:l==null?void 0:l.itemContent,sx:{mx:2},classes:b}):g.jsx(Ett,{axisData:p,content:(r=s==null?void 0:s.axisContent)!=null?r:a,contentProps:l==null?void 0:l.axisContent,sx:{mx:2},classes:b})}))})}function Att(e){return yt("MuiChartsAxisHighlight",e)}bt("MuiChartsAxisHighlight",["root"]);const Ftt=()=>qe({root:["root"]},Att),s1=ke("path",{name:"MuiChartsAxisHighlight",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e,theme:t})=>P({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 Ltt(e){const{x:t,y:n}=e,{xAxisIds:r,xAxis:o,yAxisIds:i,yAxis:a}=m.useContext(Ru),s=Ftt(),l=r[0],u=i[0],c=o[l].scale,f=a[u].scale,{axis:p}=m.useContext(hl),y=Gg(c),v=Gg(f);return g.jsxs(m.Fragment,{children:[t==="band"&&p.x!==null&&kb(c)&&g.jsx(s1,{d:`M ${c(p.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:s.root,ownerState:{axisHighlight:"band"}}),n==="band"&&p.y!==null&&kb(f)&&g.jsx(s1,{d:`M ${c.range()[0]} ${f(p.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:s.root,ownerState:{axisHighlight:"band"}}),t==="line"&&p.x!==null&&g.jsx(s1,{d:`M ${y(p.x.value)} ${f.range()[0]} L ${y(p.x.value)} ${f.range()[1]}`,className:s.root,ownerState:{axisHighlight:"line"}}),n==="line"&&p.y!==null&&g.jsx(s1,{d:`M ${c.range()[0]} ${v(p.y.value)} L ${c.range()[1]} ${v(p.y.value)}`,className:s.root,ownerState:{axisHighlight:"line"}})]})}const _3={highlighted:"none",faded:"none"},bq=m.createContext({item:null,scope:_3,dispatch:()=>null}),Dtt=(e,t)=>{switch(t.type){case"enterItem":return P({},e,{item:t.item,scope:P({},_3,t.scope)});case"leaveItem":return e.item===null||Object.keys(t.item).some(n=>t.item[n]!==e.item[n])?e:P({},e,{item:null});default:return e}};function jtt({children:e}){const[t,n]=m.useReducer(Dtt,{item:null,scope:_3}),r=m.useMemo(()=>P({},t,{dispatch:n}),[t]);return g.jsx(bq.Provider,{value:r,children:e})}const k3=e=>{const{dispatch:t}=m.useContext(hl),{dispatch:n}=m.useContext(bq);return o=>({onMouseEnter:()=>{t({type:"enterItem",data:o}),n({type:"enterItem",item:o,scope:e})},onMouseLeave:()=>{t({type:"leaveItem",data:o}),n({type:"leaveItem",item:o})}})},P3=(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},M3=(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},Ntt=["id","dataIndex","classes","color","highlightScope","slots","slotProps","style"];function ztt(e){return yt("MuiBarElement",e)}bt("MuiBarElement",["root"]);const Btt=e=>{const{classes:t,id:n}=e,r={root:["root",`series-${n}`]};return qe(r,ztt,t)},Htt=ke(In.rect,{name:"MuiBarElement",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>({stroke:"none",shapeRendering:"crispEdges",fill:e.isHighlighted?Qc(e.color).brighter(.5).formatHex():e.color,transition:"opacity 0.2s ease-in, fill 0.2s ease-in",opacity:e.isFaded&&.3||1}));function Wtt(e){var t;const{id:n,dataIndex:r,classes:o,color:i,highlightScope:a,slots:s,slotProps:l,style:u}=e,c=be(e,Ntt),f=k3(a),{item:p}=m.useContext(hl),y=P3(p,{type:"bar",seriesId:n,dataIndex:r},a),v=!y&&M3(p,{type:"bar",seriesId:n,dataIndex:r},a),b={id:n,dataIndex:r,classes:o,color:i,isFaded:v,isHighlighted:y},C=Btt(b),x=(t=s==null?void 0:s.bar)!=null?t:Htt,w=Pd({elementType:x,externalSlotProps:l==null?void 0:l.bar,additionalProps:P({},c,f({type:"bar",seriesId:n,dataIndex:r}),{style:u,className:C.root}),ownerState:b});return g.jsx(x,P({},w))}const Vtt=["skipAnimation"];function Utt({bandWidth:e,numberOfGroups:t,gapRatio:n}){if(n===0)return{barWidth:e/t,offset:0};const r=e/(t+(t-1)*n),o=n*r;return{barWidth:r,offset:o}}const Gtt=()=>{var e;const t=(e=m.useContext(Iu).bar)!=null?e:{series:{},stackingGroups:[],seriesOrder:[]},n=m.useContext(Ru),{series:r,stackingGroups:o}=t,{xAxis:i,yAxis:a,xAxisIds:s,yAxisIds:l}=n,u=s[0],c=l[0];return o.flatMap(({ids:p},y)=>p.flatMap(v=>{var b,C;const x=(b=r[v].xAxisKey)!=null?b:u,w=(C=r[v].yAxisKey)!=null?C:c,S=i[x],$=a[w],T=r[v].layout==="vertical";let k;if(T){if(!$b(S))throw new Error(`Axis with id "${x}" shoud be of type "band" to display the bar series of id "${v}"`);if(i[x].data===void 0)throw new Error(`Axis with id "${x}" shoud have data property`);k=S}else{if(!$b($))throw new Error(`Axis with id "${w}" shoud be of type "band" to display the bar series of id "${v}"`);if(a[w].data===void 0)throw new Error(`Axis with id "${x}" shoud have data property`);k=$}const M=S.scale,I=$.scale,N=k.scale.bandwidth(),{barWidth:E,offset:A}=Utt({bandWidth:N,numberOfGroups:o.length,gapRatio:k.barGapRatio}),z=y*(E+A),{stackedData:L,color:O}=r[v];return L.map((D,H)=>{var B,j;const W=Math.min(...D),U=Math.max(...D);return{bottom:W,top:U,seriesId:v,dataIndex:H,layout:r[v].layout,x:T?M((B=i[x].data)==null?void 0:B[H])+z:M(W),y:T?I(U):I((j=a[w].data)==null?void 0:j[H])+z,xOrigin:M(0),yOrigin:I(0),height:T?Math.abs(I(W)-I(U)):E,width:T?E:Math.abs(M(W)-M(U)),color:O,highlightScope:r[v].highlightScope}})}))},wL=({layout:e,yOrigin:t,x:n,width:r,y:o,xOrigin:i,height:a})=>P({},e==="vertical"?{y:t,x:n,height:0,width:r}:{y:o,x:i,height:a,width:0}),CL=({x:e,width:t,y:n,height:r})=>({y:n,x:e,height:r,width:t});function qtt(e){const t=Gtt(),{skipAnimation:n}=e,r=be(e,Vtt),o=ld(t,{keys:i=>`${i.seriesId}-${i.dataIndex}`,from:wL,leave:wL,enter:CL,update:CL,immediate:n});return g.jsx(m.Fragment,{children:o((i,{seriesId:a,dataIndex:s,color:l,highlightScope:u})=>g.jsx(Wtt,P({id:a,dataIndex:s,highlightScope:u,color:l},r,{style:i})))})}const Ktt=()=>{Ul(()=>{const e=window.matchMedia("(prefers-reduced-motion)"),t=n=>{ia.assign({skipAnimation:n.matches||void 0})};return t(e),e.addEventListener("change",t),()=>{e.removeEventListener("change",t)}},[])},Ytt=e=>{const t=m.useContext(w3),{width:n,height:r,top:o,left:i}=m.useContext(x3),{xAxis:a,yAxis:s,xAxisIds:l,yAxisIds:u}=m.useContext(Ru),{dispatch:c}=m.useContext(hl),f=l[0],p=u[0],y=m.useRef({x:-1,y:-1});m.useEffect(()=>{const v=t.current;if(v===null||e)return()=>{};const b=(w,S)=>{if(f===null)return null;const{scale:$,data:T}=w;if(!kb($)){const M=$.invert(S);if(T===void 0)return{value:M};const I=T==null?void 0:T.findIndex((N,E)=>N>M&&(E===0||Math.abs(M-N)<=Math.abs(M-T[E-1]))||N<=M&&(E===T.length-1||Math.abs(M-N)=0?T[I]:M,index:I}}const k=$.bandwidth()===0?Math.floor((S-Math.min(...$.range())+$.step()/2)/$.step()):Math.floor((S-Math.min(...$.range()))/$.step());return k<0||k>=T.length?null:{index:k,value:T[k]}},C=()=>{y.current={x:-1,y:-1},c({type:"updateAxis",data:{x:null,y:null}})},x=w=>{const S=t.current.createSVGPoint();S.x=w.clientX,S.y=w.clientY;const $=S.matrixTransform(t.current.getScreenCTM().inverse());y.current={x:$.x,y:$.y};const T=$.xi+n,k=$.yo+r;if(T||k){c({type:"updateAxis",data:{x:null,y:null}});return}const M=b(a[f],$.x),I=b(s[p],$.y);c({type:"updateAxis",data:{x:M,y:I}})};return v.addEventListener("mouseout",C),v.addEventListener("mousemove",x),()=>{v.removeEventListener("mouseout",C),v.removeEventListener("mousemove",x)}},[t,c,i,n,o,r,p,s,f,a,e])},Xtt=["children","width","height","viewBox","disableAxisListener","className"],Qtt=ke("svg",{name:"MuiChartsSurface",slot:"Root"})(()=>({})),Ztt=m.forwardRef(function(t,n){const{children:r,width:o,height:i,viewBox:a,disableAxisListener:s=!1}=t,l=be(t,Xtt),u=P({width:o,height:i,x:0,y:0},a);return Ytt(s),g.jsxs(Qtt,P({width:o,height:i,viewBox:`${u.x} ${u.y} ${u.width} ${u.height}`,ref:n},l,{children:[g.jsx("title",{children:t.title}),g.jsx("desc",{children:t.desc}),r]}))}),Jtt=m.forwardRef(function(t,n){const{width:r,height:o,series:i,margin:a,xAxis:s,yAxis:l,colors:u,dataset:c,sx:f,title:p,desc:y,disableAxisListener:v,children:b}=t,C=m.useRef(null),x=on(n,C);return Ktt(),g.jsx(aet,{width:r,height:o,margin:a,svgRef:C,children:g.jsx(Yet,{series:i,colors:u,dataset:c,children:g.jsx(Jet,{xAxis:s,yAxis:l,dataset:c,children:g.jsx(Ctt,{children:g.jsx(jtt,{children:g.jsx(Ztt,{width:r,height:o,ref:x,sx:f,title:p,desc:y,disableAxisListener:v,children:b})})})})})})}),ent=["width","height"],tnt=(e,t)=>{const n=m.useRef(null),r=m.useRef(!1),[o,i]=m.useState(0),[a,s]=m.useState(0),l=m.useCallback(()=>{const u=n==null?void 0:n.current;if(!u)return;const f=ea(u).getComputedStyle(u),p=Math.floor(parseFloat(f.height))||0,y=Math.floor(parseFloat(f.width))||0;i(y),s(p)},[]);return m.useEffect(()=>{r.current=!0},[]),pn(()=>{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??a]},nnt=ke("div",{name:"MuiResponsiveChart",slot:"Container"})(({ownerState:e})=>{var t,n;return{width:(t=e.width)!=null?t:"100%",height:(n=e.height)!=null?n:"100%",display:"flex",position:"relative",flexGrow:1,flexDirection:"column",alignItems:"center",justifyContent:"center",overflow:"hidden","&>svg":{width:"100%",height:"100%"}}}),rnt=m.forwardRef(function(t,n){const{width:r,height:o}=t,i=be(t,ent),[a,s,l]=tnt(r,o);return g.jsx(nnt,{ref:a,ownerState:{width:r,height:o},children:s&&l?g.jsx(Jtt,P({},i,{width:s,height:l,ref:n})):null})}),ont=["id","classes","color","highlightScope","slots","slotProps"];function int(e){return yt("MuiLineElement",e)}bt("MuiLineElement",["root","highlighted","faded"]);const ant=e=>{const{classes:t,id:n,isFaded:r,isHighlighted:o}=e,i={root:["root",`series-${n}`,o&&"highlighted",r&&"faded"]};return qe(i,int,t)},xq=ke("path",{name:"MuiLineElement",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>({strokeWidth:2,strokeLinejoin:"round",fill:"none",stroke:e.isHighlighted?Qc(e.color).brighter(.5).formatHex():e.color,transition:"opacity 0.2s ease-in, stroke 0.2s ease-in",opacity:e.isFaded?.3:1}));xq.propTypes={as:R.elementType,ownerState:R.shape({classes:R.object,color:R.string.isRequired,id:R.string.isRequired,isFaded:R.bool.isRequired,isHighlighted:R.bool.isRequired}).isRequired,sx:R.oneOfType([R.arrayOf(R.oneOfType([R.func,R.object,R.bool])),R.func,R.object])};function snt(e){var t;const{id:n,classes:r,color:o,highlightScope:i,slots:a,slotProps:s}=e,l=be(e,ont),u=k3(i),{item:c}=m.useContext(hl),f=P3(c,{type:"line",seriesId:n},i),p=!f&&M3(c,{type:"line",seriesId:n},i),y={id:n,classes:r,color:o,isFaded:p,isHighlighted:f},v=ant(y),b=(t=a==null?void 0:a.line)!=null?t:xq,C=Pd({elementType:b,externalSlotProps:s==null?void 0:s.line,additionalProps:P({},l,u({type:"line",seriesId:n}),{className:v.root}),ownerState:y});return g.jsx(b,P({},C))}function wq(e){switch(e){case"catmullRom":return vet.alpha(.5);case"linear":return C3;case"monotoneX":return mL;case"monotoneY":return yet;case"natural":return bet;case"step":return xet;case"stepBefore":return wet;case"stepAfter":return Cet;default:return mL}}const lnt=["slots","slotProps"];function unt(e){const{slots:t,slotProps:n}=e,r=be(e,lnt),o=m.useContext(Iu).line,i=m.useContext(Ru);if(o===void 0)return null;const{series:a,stackingGroups:s}=o,{xAxis:l,yAxis:u,xAxisIds:c,yAxisIds:f}=i,p=c[0],y=f[0];return g.jsx("g",P({},r,{children:s.flatMap(({ids:v})=>v.flatMap(b=>{var C;const{xAxisKey:x=p,yAxisKey:w=y,stackedData:S,data:$,connectNulls:T}=a[b],k=Gg(l[x].scale),M=u[w].scale,I=l[x].data,N=aq().x(L=>k(L.x)).defined((L,O)=>T||$[O]!=null).y(L=>M(L.y[1])),E=wq(a[b].curve),A=(C=I==null?void 0:I.map((L,O)=>({x:L,y:S[O]})))!=null?C:[],z=T?A.filter((L,O)=>$[O]!=null):A;return g.jsx(snt,{id:b,d:N.curve(E)(z)||void 0,color:a[b].color,highlightScope:a[b].highlightScope,slots:t,slotProps:n},b)}))}))}const cnt=["id","classes","color","highlightScope","slots","slotProps"];function dnt(e){return yt("MuiAreaElement",e)}bt("MuiAreaElement",["root","highlighted","faded"]);const fnt=e=>{const{classes:t,id:n,isFaded:r,isHighlighted:o}=e,i={root:["root",`series-${n}`,o&&"highlighted",r&&"faded"]};return qe(i,dnt,t)},Cq=ke("path",{name:"MuiAreaElement",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>({stroke:"none",fill:e.isHighlighted?Qc(e.color).brighter(1).formatHex():Qc(e.color).brighter(.5).formatHex(),transition:"opacity 0.2s ease-in, fill 0.2s ease-in",opacity:e.isFaded?.3:1}));Cq.propTypes={as:R.elementType,ownerState:R.shape({classes:R.object,color:R.string.isRequired,id:R.string.isRequired,isFaded:R.bool.isRequired,isHighlighted:R.bool.isRequired}).isRequired,sx:R.oneOfType([R.arrayOf(R.oneOfType([R.func,R.object,R.bool])),R.func,R.object])};function pnt(e){var t;const{id:n,classes:r,color:o,highlightScope:i,slots:a,slotProps:s}=e,l=be(e,cnt),u=k3(i),{item:c}=m.useContext(hl),f=P3(c,{type:"line",seriesId:n},i),p=!f&&M3(c,{type:"line",seriesId:n},i),y={id:n,classes:r,color:o,isFaded:p,isHighlighted:f},v=fnt(y),b=(t=a==null?void 0:a.area)!=null?t:Cq,C=Pd({elementType:b,externalSlotProps:s==null?void 0:s.area,additionalProps:P({},l,u({type:"line",seriesId:n}),{className:v.root}),ownerState:y});return g.jsx(b,P({},C))}const hnt=["slots","slotProps"];function mnt(e){const{slots:t,slotProps:n}=e,r=be(e,hnt),o=m.useContext(Iu).line,i=m.useContext(Ru);if(o===void 0)return null;const{series:a,stackingGroups:s}=o,{xAxis:l,yAxis:u,xAxisIds:c,yAxisIds:f}=i,p=c[0],y=f[0];return g.jsx("g",P({},r,{children:s.flatMap(({ids:v})=>v.flatMap(b=>{var C;const{xAxisKey:x=p,yAxisKey:w=y,stackedData:S,data:$,connectNulls:T}=a[b],k=Gg(l[x].scale),M=u[w].scale,I=l[x].data,N=fet().x(L=>k(L.x)).defined((L,O)=>T||$[O]!=null).y0(L=>L.y&&M(L.y[0])).y1(L=>L.y&&M(L.y[1])),E=wq(a[b].curve),A=(C=I==null?void 0:I.map((L,O)=>({x:L,y:S[O]})))!=null?C:[],z=T?A.filter((L,O)=>$[O]!=null):A;return!!a[b].area&&g.jsx(pnt,{id:b,d:N.curve(E)(z)||void 0,color:a[b].color,highlightScope:a[b].highlightScope,slots:t,slotProps:n},b)}))}))}const gnt=["x","y","id","classes","color"];function vnt(e){return yt("MuiHighlightElement",e)}bt("MuiHighlightElement",["root"]);const ynt=e=>{const{classes:t,id:n}=e,r={root:["root",`series-${n}`]};return qe(r,vnt,t)},bnt=ke("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 xnt(e){const{x:t,y:n,id:r,classes:o,color:i}=e,a=be(e,gnt),s={id:r,classes:o,color:i,x:t,y:n},l=ynt(s);return g.jsx(bnt,P({},a,{ownerState:s,className:l.root,cx:0,cy:0,r:a.r===void 0?5:a.r}))}const wnt=["slots","slotProps"];function Cnt(e){var t,n;const{slots:r,slotProps:o}=e,i=be(e,wnt),a=m.useContext(Iu).line,s=m.useContext(Ru),{axis:l}=m.useContext(hl),u=(t=l.x)==null?void 0:t.index;if(u===void 0||a===void 0)return null;const{series:c,stackingGroups:f}=a,{xAxis:p,yAxis:y,xAxisIds:v,yAxisIds:b}=s,C=v[0],x=b[0],w=(n=r==null?void 0:r.lineHighlight)!=null?n:xnt;return g.jsx("g",P({},i,{children:f.flatMap(({ids:S})=>S.flatMap($=>{const{xAxisKey:T=C,yAxisKey:k=x,stackedData:M,data:I,disableHighlight:N}=c[$];if(N||I[u]==null)return null;const E=Gg(p[T].scale),A=y[k].scale,z=p[T].data;if(z===void 0)throw new Error(`Axis of id "${T}" should have data property to be able to display a line plot.`);const L=E(z[u]),O=A(M[u][1]);return g.jsx(w,P({id:$,color:c[$].color,x:L,y:O},o==null?void 0:o.lineHighlight),`${$}`)}))}))}const Snt={top:5,bottom:5,left:5,right:5},$nt=m.forwardRef(function(t,n){const{xAxis:r,width:o,height:i,margin:a=Snt,colors:s,sx:l,showTooltip:u,tooltip:c,showHighlight:f,axisHighlight:p,children:y,slots:v,slotProps:b,data:C,plotType:x="line",valueFormatter:w=M=>M.toString(),area:S,curve:$="linear"}=t,k=P({},f&&x==="bar"?{x:"band"}:{x:"none"},p);return g.jsxs(rnt,{ref:n,series:[P({type:x,data:C,valueFormatter:w},x==="bar"?{}:{area:S,curve:$,disableHighlight:!f})],width:o,height:i,margin:a,xAxis:[P({id:Jk,scaleType:x==="bar"?"band":"point",data:Array.from({length:C.length},(M,I)=>I),hideTooltip:r===void 0},r)],colors:s,sx:l,disableAxisListener:(!u||(c==null?void 0:c.trigger)!=="axis")&&(k==null?void 0:k.x)==="none"&&(k==null?void 0:k.y)==="none",children:[x==="bar"&&g.jsx(qtt,{slots:v,slotProps:b,sx:{shapeRendering:"auto"}}),x==="line"&&g.jsxs(m.Fragment,{children:[g.jsx(mnt,{slots:v,slotProps:b}),g.jsx(unt,{slots:v,slotProps:b}),g.jsx(Cnt,{slots:v,slotProps:b})]}),g.jsx(Ltt,P({},k)),u&&g.jsx(Ott,P({},c,{slotProps:b,slots:v})),y]})});function Jh({title:e,value:t,icon:n,chartType:r}){const o=Xt(),i=jn(o.palette.mode);return g.jsxs(Ue,{sx:{alignItems:"center",backgroundColor:i.primary[400],borderRadius:"1rem",display:"flex",gap:"2rem",flexWrap:"wrap",justifyContent:"space-between",padding:"1rem"},children:[g.jsxs(Ue,{sx:{display:"flex",flexDirection:"column",gap:"0.5rem"},children:[n,g.jsx(Ze,{variant:"h3",children:e}),g.jsxs(Ze,{variant:"h5",children:["$",t]})]}),g.jsx(Ue,{children:g.jsx($nt,{height:50,width:100,data:[...r],showTooltip:!0,showHighlight:!0,plotType:"bar"})})]})}function _nt(){const e=Xt(),t=jn(e.palette.mode);return g.jsx(g.Fragment,{children:g.jsxs(Ue,{sx:{padding:2},children:[g.jsxs(Ue,{sx:{paddingBlock:2,width:"100%"},children:[g.jsx(Ze,{variant:"h1",children:"Overview"}),g.jsx(Ze,{variant:"h6",children:"A snapshot of your financial health"})]}),g.jsxs(Ft,{container:!0,spacing:2,sx:{width:"100%"},children:[g.jsx(Ft,{item:!0,xs:12,md:!0,children:g.jsx(Jh,{title:"Income",value:220350,icon:g.jsx(vbe,{sx:{color:t.greenAccent[600]}}),chartType:[1,4,2,5,7,2,4,6]})}),g.jsx(Ft,{item:!0,xs:12,md:!0,children:g.jsx(Jh,{title:"Expenses",value:90550,icon:g.jsx(pbe,{sx:{color:t.greenAccent[600]}}),chartType:[3,-10,-2,5,7,-2,4,6]})}),g.jsx(Ft,{item:!0,xs:12,md:!0,children:g.jsx(Jh,{title:"Balance",value:470560,icon:g.jsx(obe,{sx:{color:t.greenAccent[600]}}),chartType:[1,3,4,5,5,6,6,8]})}),g.jsx(Ft,{item:!0,xs:12,md:!0,children:g.jsx(Jh,{title:"Savings",value:86723,icon:g.jsx(dbe,{sx:{color:t.greenAccent[600]}}),chartType:[3,-10,-2,3,4,-2,4,6]})}),g.jsx(Ft,{item:!0,xs:12,md:!0,children:g.jsx(Jh,{title:"Investments",value:115550,icon:g.jsx(nbe,{sx:{color:t.greenAccent[600]}}),chartType:[1,4,2,5,7,2,4,6]})}),g.jsx(Ft,{item:!0,xs:12,sm:12,md:12,lg:8,children:g.jsx(NG,{})}),g.jsx(Ft,{item:!0,xs:12,sm:12,md:6,lg:4,children:g.jsx(zG,{})}),g.jsx(Ft,{item:!0,xs:12,sm:12,md:6,lg:4,children:g.jsx(HG,{})}),g.jsx(Ft,{item:!0,xs:12,sm:12,md:6,lg:4,children:g.jsx(jG,{})}),g.jsx(Ft,{item:!0,xs:12,sm:12,md:6,lg:4,children:g.jsx(ZW,{})})]})]})})}function knt(){return g.jsxs(Ue,{className:"error-page",sx:{padding:"1rem"},children:[g.jsx(Ue,{children:g.jsx(Ze,{variant:"h1",fontWeight:600,textAlign:"center",children:"404"})}),g.jsx(Ze,{variant:"h4",mt:4,textAlign:"center",children:"Sorry, but that's not a valid link!"}),g.jsx(Ze,{variant:"h6",fontWeight:400,textAlign:"center",children:"It may have been removed, had its name changed, or the address may be incorrect."})]})}const Pnt=yoe(b_(g.jsxs(Na,{path:"/",element:g.jsx(qbe,{}),errorElement:g.jsx(knt,{}),children:[g.jsx(Na,{path:"/",element:g.jsx(_nt,{})}),g.jsx(Na,{path:"/budget",element:g.jsx(VVe,{})}),g.jsx(Na,{path:"/bills",element:g.jsx(gKe,{})}),g.jsx(Na,{path:"/reports",element:g.jsx(lZe,{})}),g.jsx(Na,{path:"/debt",element:g.jsx($Ze,{})}),g.jsx(Na,{path:"/investments",element:g.jsx(QZe,{})}),g.jsx(Na,{path:"/networth",element:g.jsx(hJe,{})}),g.jsx(Na,{path:"/settings",element:g.jsx(RZe,{})})]})));C$.createRoot(document.getElementById("root")).render(g.jsx(ot.StrictMode,{children:g.jsx(uoe,{router:Pnt})}))});export default Mnt(); diff --git a/assets/index-bb55cb5e.css b/assets/index-bb55cb5e.css new file mode 100644 index 0000000..2617d3c --- /dev/null +++ b/assets/index-bb55cb5e.css @@ -0,0 +1 @@ +@import"https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@300;400;500;600;700&display=swap";*{margin:0;padding:0}html,body,#root,.app,.content,main{height:max-content;overflow:auto;padding:0!important;width:100%}.app{display:flex;flex-direction:row;overflow:auto;position:relative}::-webkit-scrollbar{height:5px;width:5px}::-webkit-scrollbar-track{background:#e0e0e0;border-radius:20px}::-webkit-scrollbar-thumb{border-radius:20px;background:#888}::-webkit-scrollbar-thumb:hover{background:#555}a{text-decoration:none}aside{height:100%}.MuiGrid-root{width:unset!important}.error-page{align-items:center;display:flex;flex-direction:column;height:100vh;justify-content:center;padding:2rem}@media (max-width: 932px){.app{display:grid;grid-template-columns:1fr;height:100vh;position:relative}.MuiBox-root:has(aside){position:absolute;height:100%;z-index:1}main{position:absolute}.MuiCardContent-root.Mui-Chart{overflow-y:hidden;overflow-x:scroll;width:100%}.MuiCardContent-root.Mui-Chart div{width:1000px!important}}@media (min-width: 1200px){.MuiGrid-root{min-width:20%}}.settingWrapper{display:flex;gap:clamp(.5em,5%,3em);flex-direction:column;padding-block:clamp(.5em,5%,2em)}.settingLayout{display:grid;grid-auto-flow:column;grid-template-columns:repeat(3,1fr);grid-template-rows:1fr 1fr;row-gap:.5rem}.threeRows{grid-template-rows:repeat(3,1fr)}.settingItem{display:flex;flex-direction:column;justify-self:left;margin-block:.5}.settingItem.btn{grid-column-start:3;margin-left:auto}.textfield{flex:1}@media (max-width: 600px){.settingLayout{display:flex;flex-direction:column}}@media (max-width: 932px){.textfield{flex:auto}} diff --git a/assets/index-c7657b32.css b/assets/index-c7657b32.css deleted file mode 100644 index 35e930f..0000000 --- a/assets/index-c7657b32.css +++ /dev/null @@ -1 +0,0 @@ -@import"https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@300;400;500;600;700&display=swap";*{margin:0;padding:0}html,body,#root,.app,.content,main{height:max-content;overflow:auto;width:100%}.app{display:flex;flex-direction:row;overflow:auto;position:relative}::-webkit-scrollbar{height:5px;width:5px}::-webkit-scrollbar-track{background:#e0e0e0;border-radius:20px}::-webkit-scrollbar-thumb{border-radius:20px;background:#888}::-webkit-scrollbar-thumb:hover{background:#555}a{text-decoration:none}aside{height:100%}.MuiGrid-root{width:unset!important}.error-page{align-items:center;display:flex;flex-direction:column;height:100vh;justify-content:center;padding:2rem}@media (max-width: 932px){.app{display:grid;grid-template-columns:1fr;height:100vh;position:relative}.MuiBox-root:has(aside){position:absolute;height:100%;z-index:1}main{position:absolute}.MuiCardContent-root.Mui-Chart{overflow-y:hidden;overflow-x:scroll;width:100%}.MuiCardContent-root.Mui-Chart div{width:1000px!important}}@media (min-width: 1200px){.MuiGrid-root{min-width:20%}}.settingWrapper{display:flex;gap:clamp(.5em,5%,3em);flex-direction:column;padding-block:clamp(.5em,5%,2em)}.settingLayout{display:grid;grid-auto-flow:column;grid-template-columns:repeat(3,1fr);grid-template-rows:1fr 1fr;row-gap:.5rem}.threeRows{grid-template-rows:repeat(3,1fr)}.settingItem{display:flex;flex-direction:column;justify-self:left;margin-block:.5}.settingItem.btn{grid-column-start:3;margin-left:auto}.textfield{flex:1}@media (max-width: 600px){.settingLayout{display:flex;flex-direction:column}}@media (max-width: 932px){.textfield{flex:auto}} diff --git a/index.html b/index.html index 956901c..28071de 100644 --- a/index.html +++ b/index.html @@ -5,8 +5,8 @@ FinTrack - Personal Finance Manager - - + +