var rE=e=>{throw TypeError(e)};var B0=(e,t,n)=>t.has(e)||rE("Cannot "+n);var H=(e,t,n)=>(B0(e,t,"read from private field"),n?n.call(e):t.get(e)),qe=(e,t,n)=>t.has(e)?rE("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),_e=(e,t,n,r)=>(B0(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),at=(e,t,n)=>(B0(e,t,"access private method"),n);var Zh=(e,t,n,r)=>({set _(o){_e(e,t,o,n)},get _(){return H(e,t,r)}});function r3(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 Jh=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Bt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Fs(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 $R={exports:{}},Py={},ER={exports:{}},ut={};/** * @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 yh=Symbol.for("react.element"),o3=Symbol.for("react.portal"),i3=Symbol.for("react.fragment"),a3=Symbol.for("react.strict_mode"),s3=Symbol.for("react.profiler"),l3=Symbol.for("react.provider"),u3=Symbol.for("react.context"),c3=Symbol.for("react.forward_ref"),d3=Symbol.for("react.suspense"),f3=Symbol.for("react.memo"),p3=Symbol.for("react.lazy"),oE=Symbol.iterator;function h3(e){return e===null||typeof e!="object"?null:(e=oE&&e[oE]||e["@@iterator"],typeof e=="function"?e:null)}var kR={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},IR=Object.assign,TR={};function ld(e,t,n){this.props=e,this.context=t,this.refs=TR,this.updater=n||kR}ld.prototype.isReactComponent={};ld.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")};ld.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function MR(){}MR.prototype=ld.prototype;function kS(e,t,n){this.props=e,this.context=t,this.refs=TR,this.updater=n||kR}var IS=kS.prototype=new MR;IS.constructor=kS;IR(IS,ld.prototype);IS.isPureReactComponent=!0;var iE=Array.isArray,_R=Object.prototype.hasOwnProperty,TS={current:null},AR={key:!0,ref:!0,__self:!0,__source:!0};function RR(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)_R.call(t,r)&&!AR.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1>>1,B=T[z];if(0>>1;zo(ee,N))peo(be,ee)?(T[z]=be,T[pe]=N,z=pe):(T[z]=ee,T[W]=N,z=W);else if(peo(be,N))T[z]=be,T[pe]=N,z=pe;else break e}}return L}function o(T,L){var N=T.sortIndex-L.sortIndex;return N!==0?N:T.id-L.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],u=[],c=1,d=null,f=3,h=!1,p=!1,m=!1,y=typeof setTimeout=="function"?setTimeout:null,b=typeof clearTimeout=="function"?clearTimeout:null,x=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(T){for(var L=n(u);L!==null;){if(L.callback===null)r(u);else if(L.startTime<=T)r(u),L.sortIndex=L.expirationTime,t(l,L);else break;L=n(u)}}function S(T){if(m=!1,w(T),!p)if(n(l)!==null)p=!0,D(O);else{var L=n(u);L!==null&&F(S,L.startTime-T)}}function O(T,L){p=!1,m&&(m=!1,b(E),E=-1),h=!0;var N=f;try{for(w(L),d=n(l);d!==null&&(!(d.expirationTime>L)||T&&!A());){var z=d.callback;if(typeof z=="function"){d.callback=null,f=d.priorityLevel;var B=z(d.expirationTime<=L);L=e.unstable_now(),typeof B=="function"?d.callback=B:d===n(l)&&r(l),w(L)}else r(l);d=n(l)}if(d!==null)var V=!0;else{var W=n(u);W!==null&&F(S,W.startTime-L),V=!1}return V}finally{d=null,f=N,h=!1}}var C=!1,$=null,E=-1,M=5,_=-1;function A(){return!(e.unstable_now()-_T||125z?(T.sortIndex=N,t(u,T),n(l)===null&&T===n(u)&&(m?(b(E),E=-1):m=!0,F(S,N-z))):(T.sortIndex=B,t(l,T),p||h||(p=!0,D(O))),T},e.unstable_shouldYield=A,e.unstable_wrapCallback=function(T){var L=f;return function(){var N=f;f=L;try{return T.apply(this,arguments)}finally{f=N}}}})(NR);FR.exports=NR;var O3=FR.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 $3=v,lo=O3;function Pe(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"),hw=Object.prototype.hasOwnProperty,E3=/^[: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]*$/,sE={},lE={};function k3(e){return hw.call(lE,e)?!0:hw.call(sE,e)?!1:E3.test(e)?lE[e]=!0:(sE[e]=!0,!1)}function I3(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 T3(e,t,n,r){if(t===null||typeof t>"u"||I3(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 $r(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 tr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){tr[e]=new $r(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];tr[t]=new $r(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){tr[e]=new $r(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){tr[e]=new $r(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){tr[e]=new $r(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){tr[e]=new $r(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){tr[e]=new $r(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){tr[e]=new $r(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){tr[e]=new $r(e,5,!1,e.toLowerCase(),null,!1,!1)});var _S=/[\-:]([a-z])/g;function AS(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(_S,AS);tr[t]=new $r(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(_S,AS);tr[t]=new $r(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(_S,AS);tr[t]=new $r(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){tr[e]=new $r(e,1,!1,e.toLowerCase(),null,!1,!1)});tr.xlinkHref=new $r("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){tr[e]=new $r(e,1,!1,e.toLowerCase(),null,!0,!0)});function RS(e,t,n,r){var o=tr.hasOwnProperty(t)?tr[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{U0=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?bf(e):""}function M3(e){switch(e.tag){case 5:return bf(e.type);case 16:return bf("Lazy");case 13:return bf("Suspense");case 19:return bf("SuspenseList");case 0:case 2:case 15:return e=V0(e.type,!1),e;case 11:return e=V0(e.type.render,!1),e;case 1:return e=V0(e.type,!0),e;default:return""}}function yw(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 _u:return"Fragment";case Mu:return"Portal";case mw:return"Profiler";case jS:return"StrictMode";case gw:return"Suspense";case vw:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case HR:return(e.displayName||"Context")+".Consumer";case zR:return(e._context.displayName||"Context")+".Provider";case DS:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case LS:return t=e.displayName||null,t!==null?t:yw(e.type)||"Memo";case Xa:t=e._payload,e=e._init;try{return yw(e(t))}catch{}}return null}function _3(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 yw(t);case 8:return t===jS?"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 As(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function VR(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function A3(e){var t=VR(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 nm(e){e._valueTracker||(e._valueTracker=A3(e))}function WR(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=VR(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Og(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 bw(e,t){var n=t.checked;return an({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function cE(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=As(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 GR(e,t){t=t.checked,t!=null&&RS(e,"checked",t,!1)}function xw(e,t){GR(e,t);var n=As(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")?ww(e,t.type,n):t.hasOwnProperty("defaultValue")&&ww(e,t.type,As(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function dE(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 ww(e,t,n){(t!=="number"||Og(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var xf=Array.isArray;function Qu(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=rm.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Qf(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var If={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},R3=["Webkit","ms","Moz","O"];Object.keys(If).forEach(function(e){R3.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),If[t]=If[e]})});function YR(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||If.hasOwnProperty(e)&&If[e]?(""+t).trim():t+"px"}function QR(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=YR(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var j3=an({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 Pw(e,t){if(t){if(j3[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Pe(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Pe(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Pe(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Pe(62))}}function Ow(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 $w=null;function FS(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ew=null,Zu=null,Ju=null;function hE(e){if(e=wh(e)){if(typeof Ew!="function")throw Error(Pe(280));var t=e.stateNode;t&&(t=Iy(t),Ew(e.stateNode,e.type,t))}}function ZR(e){Zu?Ju?Ju.push(e):Ju=[e]:Zu=e}function JR(){if(Zu){var e=Zu,t=Ju;if(Ju=Zu=null,hE(e),t)for(e=0;e>>=0,e===0?32:31-(G3(e)/K3|0)|0}var om=64,im=4194304;function wf(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 Ig(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=wf(s):(i&=a,i!==0&&(r=wf(i)))}else a=n&~o,a!==0?r=wf(a):i!==0&&(r=wf(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 bh(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-pi(t),e[t]=n}function Q3(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=Mf),SE=" ",PE=!1;function bj(e,t){switch(e){case"keyup":return OH.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function xj(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Au=!1;function EH(e,t){switch(e){case"compositionend":return xj(t);case"keypress":return t.which!==32?null:(PE=!0,SE);case"textInput":return e=t.data,e===SE&&PE?null:e;default:return null}}function kH(e,t){if(Au)return e==="compositionend"||!GS&&bj(e,t)?(e=vj(),Zm=US=fs=null,Au=!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=kE(n)}}function Pj(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Pj(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Oj(){for(var e=window,t=Og();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Og(e.document)}return t}function KS(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 LH(e){var t=Oj(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Pj(n.ownerDocument.documentElement,n)){if(r!==null&&KS(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=IE(n,i);var a=IE(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,Ru=null,Aw=null,Af=null,Rw=!1;function TE(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Rw||Ru==null||Ru!==Og(r)||(r=Ru,"selectionStart"in r&&KS(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}),Af&&rp(Af,r)||(Af=r,r=_g(Aw,"onSelect"),0Lu||(e.current=Bw[Lu],Bw[Lu]=null,Lu--)}function Vt(e,t){Lu++,Bw[Lu]=e.current,e.current=t}var Rs={},hr=Bs(Rs),Dr=Bs(!1),Nl=Rs;function Pc(e,t){var n=e.type.contextTypes;if(!n)return Rs;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 Lr(e){return e=e.childContextTypes,e!=null}function Rg(){Yt(Dr),Yt(hr)}function LE(e,t,n){if(hr.current!==Rs)throw Error(Pe(168));Vt(hr,t),Vt(Dr,n)}function Rj(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(Pe(108,_3(e)||"Unknown",o));return an({},n,r)}function jg(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Rs,Nl=hr.current,Vt(hr,e),Vt(Dr,Dr.current),!0}function FE(e,t,n){var r=e.stateNode;if(!r)throw Error(Pe(169));n?(e=Rj(e,t,Nl),r.__reactInternalMemoizedMergedChildContext=e,Yt(Dr),Yt(hr),Vt(hr,e)):Yt(Dr),Vt(Dr,n)}var la=null,Ty=!1,ox=!1;function jj(e){la===null?la=[e]:la.push(e)}function XH(e){Ty=!0,jj(e)}function zs(){if(!ox&&la!==null){ox=!0;var e=0,t=Mt;try{var n=la;for(Mt=1;e>=a,o-=a,ha=1<<32-pi(t)+o|n<E?(M=$,$=null):M=$.sibling;var _=f(b,$,w[E],S);if(_===null){$===null&&($=M);break}e&&$&&_.alternate===null&&t(b,$),x=i(_,x,E),C===null?O=_:C.sibling=_,C=_,$=M}if(E===w.length)return n(b,$),Jt&&Zs(b,E),O;if($===null){for(;EE?(M=$,$=null):M=$.sibling;var A=f(b,$,_.value,S);if(A===null){$===null&&($=M);break}e&&$&&A.alternate===null&&t(b,$),x=i(A,x,E),C===null?O=A:C.sibling=A,C=A,$=M}if(_.done)return n(b,$),Jt&&Zs(b,E),O;if($===null){for(;!_.done;E++,_=w.next())_=d(b,_.value,S),_!==null&&(x=i(_,x,E),C===null?O=_:C.sibling=_,C=_);return Jt&&Zs(b,E),O}for($=r(b,$);!_.done;E++,_=w.next())_=h($,b,E,_.value,S),_!==null&&(e&&_.alternate!==null&&$.delete(_.key===null?E:_.key),x=i(_,x,E),C===null?O=_:C.sibling=_,C=_);return e&&$.forEach(function(j){return t(b,j)}),Jt&&Zs(b,E),O}function y(b,x,w,S){if(typeof w=="object"&&w!==null&&w.type===_u&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case tm:e:{for(var O=w.key,C=x;C!==null;){if(C.key===O){if(O=w.type,O===_u){if(C.tag===7){n(b,C.sibling),x=o(C,w.props.children),x.return=b,b=x;break e}}else if(C.elementType===O||typeof O=="object"&&O!==null&&O.$$typeof===Xa&&zE(O)===C.type){n(b,C.sibling),x=o(C,w.props),x.ref=qd(b,C,w),x.return=b,b=x;break e}n(b,C);break}else t(b,C);C=C.sibling}w.type===_u?(x=El(w.props.children,b.mode,S,w.key),x.return=b,b=x):(S=ag(w.type,w.key,w.props,null,b.mode,S),S.ref=qd(b,x,w),S.return=b,b=S)}return a(b);case Mu:e:{for(C=w.key;x!==null;){if(x.key===C)if(x.tag===4&&x.stateNode.containerInfo===w.containerInfo&&x.stateNode.implementation===w.implementation){n(b,x.sibling),x=o(x,w.children||[]),x.return=b,b=x;break e}else{n(b,x);break}else t(b,x);x=x.sibling}x=fx(w,b.mode,S),x.return=b,b=x}return a(b);case Xa:return C=w._init,y(b,x,C(w._payload),S)}if(xf(w))return p(b,x,w,S);if(Ud(w))return m(b,x,w,S);fm(b,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,x!==null&&x.tag===6?(n(b,x.sibling),x=o(x,w),x.return=b,b=x):(n(b,x),x=dx(w,b.mode,S),x.return=b,b=x),a(b)):n(b,x)}return y}var $c=Nj(!0),Bj=Nj(!1),Fg=Bs(null),Ng=null,Bu=null,QS=null;function ZS(){QS=Bu=Ng=null}function JS(e){var t=Fg.current;Yt(Fg),e._currentValue=t}function Uw(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function tc(e,t){Ng=e,QS=Bu=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Rr=!0),e.firstContext=null)}function No(e){var t=e._currentValue;if(QS!==e)if(e={context:e,memoizedValue:t,next:null},Bu===null){if(Ng===null)throw Error(Pe(308));Bu=e,Ng.dependencies={lanes:0,firstContext:e}}else Bu=Bu.next=e;return t}var sl=null;function eP(e){sl===null?sl=[e]:sl.push(e)}function zj(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,eP(t)):(n.next=o.next,o.next=n),t.interleaved=n,ka(e,r)}function ka(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Ya=!1;function tP(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Hj(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function wa(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Os(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,xt&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,ka(e,n)}return o=r.interleaved,o===null?(t.next=t,eP(r)):(t.next=o.next,o.next=t),r.interleaved=t,ka(e,n)}function eg(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,BS(e,n)}}function HE(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=a:i=i.next=a,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Bg(e,t,n,r){var o=e.updateQueue;Ya=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var l=s,u=l.next;l.next=null,a===null?i=u:a.next=u,a=l;var c=e.alternate;c!==null&&(c=c.updateQueue,s=c.lastBaseUpdate,s!==a&&(s===null?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l))}if(i!==null){var d=o.baseState;a=0,c=u=l=null,s=i;do{var f=s.lane,h=s.eventTime;if((r&f)===f){c!==null&&(c=c.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var p=e,m=s;switch(f=t,h=n,m.tag){case 1:if(p=m.payload,typeof p=="function"){d=p.call(h,d,f);break e}d=p;break e;case 3:p.flags=p.flags&-65537|128;case 0:if(p=m.payload,f=typeof p=="function"?p.call(h,d,f):p,f==null)break e;d=an({},d,f);break e;case 2:Ya=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,f=o.effects,f===null?o.effects=[s]:f.push(s))}else h={eventTime:h,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},c===null?(u=c=h,l=d):c=c.next=h,a|=f;if(s=s.next,s===null){if(s=o.shared.pending,s===null)break;f=s,s=f.next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}while(!0);if(c===null&&(l=d),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=c,t=o.shared.interleaved,t!==null){o=t;do a|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);Hl|=a,e.lanes=a,e.memoizedState=d}}function UE(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=ax.transition;ax.transition={};try{e(!1),t()}finally{Mt=n,ax.transition=r}}function iD(){return Bo().memoizedState}function JH(e,t,n){var r=Es(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},aD(e))sD(t,n);else if(n=zj(e,t,n,r),n!==null){var o=Sr();hi(n,e,r,o),lD(n,t,r)}}function e6(e,t,n){var r=Es(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(aD(e))sD(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,bi(s,a)){var l=t.interleaved;l===null?(o.next=o,eP(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=zj(e,t,o,r),n!==null&&(o=Sr(),hi(n,e,r,o),lD(n,t,r))}}function aD(e){var t=e.alternate;return e===on||t!==null&&t===on}function sD(e,t){Rf=Hg=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function lD(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,BS(e,n)}}var Ug={readContext:No,useCallback:or,useContext:or,useEffect:or,useImperativeHandle:or,useInsertionEffect:or,useLayoutEffect:or,useMemo:or,useReducer:or,useRef:or,useState:or,useDebugValue:or,useDeferredValue:or,useTransition:or,useMutableSource:or,useSyncExternalStore:or,useId:or,unstable_isNewReconciler:!1},t6={readContext:No,useCallback:function(e,t){return Ii().memoizedState=[e,t===void 0?null:t],e},useContext:No,useEffect:WE,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ng(4194308,4,eD.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ng(4194308,4,e,t)},useInsertionEffect:function(e,t){return ng(4,2,e,t)},useMemo:function(e,t){var n=Ii();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ii();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=JH.bind(null,on,e),[r.memoizedState,e]},useRef:function(e){var t=Ii();return e={current:e},t.memoizedState=e},useState:VE,useDebugValue:uP,useDeferredValue:function(e){return Ii().memoizedState=e},useTransition:function(){var e=VE(!1),t=e[0];return e=ZH.bind(null,e[1]),Ii().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=on,o=Ii();if(Jt){if(n===void 0)throw Error(Pe(407));n=n()}else{if(n=t(),zn===null)throw Error(Pe(349));zl&30||Gj(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,WE(qj.bind(null,r,i,e),[e]),r.flags|=2048,dp(9,Kj.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Ii(),t=zn.identifierPrefix;if(Jt){var n=ma,r=ha;n=(r&~(1<<32-pi(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=up++,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[Li]=t,e[ap]=r,yD(e,t,!1,!1),t.stateNode=e;e:{switch(a=Ow(n,r),n){case"dialog":Gt("cancel",e),Gt("close",e),o=r;break;case"iframe":case"object":case"embed":Gt("load",e),o=r;break;case"video":case"audio":for(o=0;oIc&&(t.flags|=128,r=!0,Xd(i,!1),t.lanes=4194304)}else{if(!r)if(e=zg(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Xd(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!Jt)return ir(t),null}else 2*hn()-i.renderingStartTime>Ic&&n!==1073741824&&(t.flags|=128,r=!0,Xd(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=hn(),t.sibling=null,n=tn.current,Vt(tn,r?n&1|2:n&1),t):(ir(t),null);case 22:case 23:return mP(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Zr&1073741824&&(ir(t),t.subtreeFlags&6&&(t.flags|=8192)):ir(t),null;case 24:return null;case 25:return null}throw Error(Pe(156,t.tag))}function u6(e,t){switch(XS(t),t.tag){case 1:return Lr(t.type)&&Rg(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ec(),Yt(Dr),Yt(hr),oP(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return rP(t),null;case 13:if(Yt(tn),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Pe(340));Oc()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Yt(tn),null;case 4:return Ec(),null;case 10:return JS(t.type._context),null;case 22:case 23:return mP(),null;case 24:return null;default:return null}}var hm=!1,cr=!1,c6=typeof WeakSet=="function"?WeakSet:Set,Fe=null;function zu(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){dn(e,t,r)}else n.current=null}function Zw(e,t,n){try{n()}catch(r){dn(e,t,r)}}var nk=!1;function d6(e,t){if(jw=Tg,e=Oj(),KS(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,d=e,f=null;t:for(;;){for(var h;d!==n||o!==0&&d.nodeType!==3||(s=a+o),d!==i||r!==0&&d.nodeType!==3||(l=a+r),d.nodeType===3&&(a+=d.nodeValue.length),(h=d.firstChild)!==null;)f=d,d=h;for(;;){if(d===e)break t;if(f===n&&++u===o&&(s=a),f===i&&++c===r&&(l=a),(h=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=h}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Dw={focusedElem:e,selectionRange:n},Tg=!1,Fe=t;Fe!==null;)if(t=Fe,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Fe=e;else for(;Fe!==null;){t=Fe;try{var p=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(p!==null){var m=p.memoizedProps,y=p.memoizedState,b=t.stateNode,x=b.getSnapshotBeforeUpdate(t.elementType===t.type?m:ei(t.type,m),y);b.__reactInternalSnapshotBeforeUpdate=x}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Pe(163))}}catch(S){dn(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,Fe=e;break}Fe=t.return}return p=nk,nk=!1,p}function jf(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&&Zw(t,n,i)}o=o.next}while(o!==r)}}function Ay(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 Jw(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 wD(e){var t=e.alternate;t!==null&&(e.alternate=null,wD(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Li],delete t[ap],delete t[Nw],delete t[KH],delete t[qH])),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 CD(e){return e.tag===5||e.tag===3||e.tag===4}function rk(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||CD(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 e1(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=Ag));else if(r!==4&&(e=e.child,e!==null))for(e1(e,t,n),e=e.sibling;e!==null;)e1(e,t,n),e=e.sibling}function t1(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(t1(e,t,n),e=e.sibling;e!==null;)t1(e,t,n),e=e.sibling}var Xn=null,oi=!1;function Ha(e,t,n){for(n=n.child;n!==null;)SD(e,t,n),n=n.sibling}function SD(e,t,n){if(Bi&&typeof Bi.onCommitFiberUnmount=="function")try{Bi.onCommitFiberUnmount(Oy,n)}catch{}switch(n.tag){case 5:cr||zu(n,t);case 6:var r=Xn,o=oi;Xn=null,Ha(e,t,n),Xn=r,oi=o,Xn!==null&&(oi?(e=Xn,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Xn.removeChild(n.stateNode));break;case 18:Xn!==null&&(oi?(e=Xn,n=n.stateNode,e.nodeType===8?rx(e.parentNode,n):e.nodeType===1&&rx(e,n),tp(e)):rx(Xn,n.stateNode));break;case 4:r=Xn,o=oi,Xn=n.stateNode.containerInfo,oi=!0,Ha(e,t,n),Xn=r,oi=o;break;case 0:case 11:case 14:case 15:if(!cr&&(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)&&Zw(n,t,a),o=o.next}while(o!==r)}Ha(e,t,n);break;case 1:if(!cr&&(zu(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){dn(n,t,s)}Ha(e,t,n);break;case 21:Ha(e,t,n);break;case 22:n.mode&1?(cr=(r=cr)||n.memoizedState!==null,Ha(e,t,n),cr=r):Ha(e,t,n);break;default:Ha(e,t,n)}}function ok(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new c6),t.forEach(function(r){var o=x6.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Zo(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=a),r&=~i}if(r=o,r=hn()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*p6(r/1960))-r,10e?16:e,ps===null)var r=!1;else{if(e=ps,ps=null,Gg=0,xt&6)throw Error(Pe(331));var o=xt;for(xt|=4,Fe=e.current;Fe!==null;){var i=Fe,a=i.child;if(Fe.flags&16){var s=i.deletions;if(s!==null){for(var l=0;lhn()-pP?$l(e,0):fP|=n),Fr(e,t)}function MD(e,t){t===0&&(e.mode&1?(t=im,im<<=1,!(im&130023424)&&(im=4194304)):t=1);var n=Sr();e=ka(e,t),e!==null&&(bh(e,t,n),Fr(e,n))}function b6(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),MD(e,n)}function x6(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(Pe(314))}r!==null&&r.delete(t),MD(e,n)}var _D;_D=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Dr.current)Rr=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Rr=!1,s6(e,t,n);Rr=!!(e.flags&131072)}else Rr=!1,Jt&&t.flags&1048576&&Dj(t,Lg,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;rg(e,t),e=t.pendingProps;var o=Pc(t,hr.current);tc(t,n),o=aP(null,t,r,e,o,n);var i=sP();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,Lr(r)?(i=!0,jg(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,tP(t),o.updater=_y,t.stateNode=o,o._reactInternals=t,Ww(t,r,e,n),t=qw(null,t,r,!0,i,n)):(t.tag=0,Jt&&i&&qS(t),yr(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(rg(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=C6(r),e=ei(r,e),o){case 0:t=Kw(null,t,r,e,n);break e;case 1:t=JE(null,t,r,e,n);break e;case 11:t=QE(null,t,r,e,n);break e;case 14:t=ZE(null,t,r,ei(r.type,e),n);break e}throw Error(Pe(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ei(r,o),Kw(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ei(r,o),JE(e,t,r,o,n);case 3:e:{if(mD(t),e===null)throw Error(Pe(387));r=t.pendingProps,i=t.memoizedState,o=i.element,Hj(e,t),Bg(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=kc(Error(Pe(423)),t),t=ek(e,t,r,n,o);break e}else if(r!==o){o=kc(Error(Pe(424)),t),t=ek(e,t,r,n,o);break e}else for(io=Ps(t.stateNode.containerInfo.firstChild),ao=t,Jt=!0,ai=null,n=Bj(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Oc(),r===o){t=Ia(e,t,n);break e}yr(e,t,r,n)}t=t.child}return t;case 5:return Uj(t),e===null&&Hw(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,Lw(r,o)?a=null:i!==null&&Lw(r,i)&&(t.flags|=32),hD(e,t),yr(e,t,a,n),t.child;case 6:return e===null&&Hw(t),null;case 13:return gD(e,t,n);case 4:return nP(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=$c(t,null,r,n):yr(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ei(r,o),QE(e,t,r,o,n);case 7:return yr(e,t,t.pendingProps,n),t.child;case 8:return yr(e,t,t.pendingProps.children,n),t.child;case 12:return yr(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,Vt(Fg,r._currentValue),r._currentValue=a,i!==null)if(bi(i.value,a)){if(i.children===o.children&&!Dr.current){t=Ia(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=wa(-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),Uw(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(Pe(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),Uw(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}yr(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,tc(t,n),o=No(o),r=r(o),t.flags|=1,yr(e,t,r,n),t.child;case 14:return r=t.type,o=ei(r,t.pendingProps),o=ei(r.type,o),ZE(e,t,r,o,n);case 15:return fD(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ei(r,o),rg(e,t),t.tag=1,Lr(r)?(e=!0,jg(t)):e=!1,tc(t,n),uD(t,r,o),Ww(t,r,o,n),qw(null,t,r,!0,e,n);case 19:return vD(e,t,n);case 22:return pD(e,t,n)}throw Error(Pe(156,t.tag))};function AD(e,t){return aj(e,t)}function w6(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 Ao(e,t,n,r){return new w6(e,t,n,r)}function vP(e){return e=e.prototype,!(!e||!e.isReactComponent)}function C6(e){if(typeof e=="function")return vP(e)?1:0;if(e!=null){if(e=e.$$typeof,e===DS)return 11;if(e===LS)return 14}return 2}function ks(e,t){var n=e.alternate;return n===null?(n=Ao(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 ag(e,t,n,r,o,i){var a=2;if(r=e,typeof e=="function")vP(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case _u:return El(n.children,o,i,t);case jS:a=8,o|=8;break;case mw:return e=Ao(12,n,t,o|2),e.elementType=mw,e.lanes=i,e;case gw:return e=Ao(13,n,t,o),e.elementType=gw,e.lanes=i,e;case vw:return e=Ao(19,n,t,o),e.elementType=vw,e.lanes=i,e;case UR:return jy(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case zR:a=10;break e;case HR:a=9;break e;case DS:a=11;break e;case LS:a=14;break e;case Xa:a=16,r=null;break e}throw Error(Pe(130,e==null?e:typeof e,""))}return t=Ao(a,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function El(e,t,n,r){return e=Ao(7,e,r,t),e.lanes=n,e}function jy(e,t,n,r){return e=Ao(22,e,r,t),e.elementType=UR,e.lanes=n,e.stateNode={isHidden:!1},e}function dx(e,t,n){return e=Ao(6,e,null,t),e.lanes=n,e}function fx(e,t,n){return t=Ao(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function S6(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=G0(0),this.expirationTimes=G0(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=G0(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function yP(e,t,n,r,o,i,a,s,l){return e=new S6(e,t,n,s,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Ao(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},tP(i),e}function P6(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(LD)}catch(e){console.error(e)}}LD(),LR.exports=po;var Sh=LR.exports;const vm=Bt(Sh);var fk=Sh;pw.createRoot=fk.createRoot,pw.hydrateRoot=fk.hydrateRoot;/** * @remix-run/router v1.23.2 * * 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 pp(){return pp=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function CP(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function T6(){return Math.random().toString(36).substr(2,8)}function hk(e,t){return{usr:e.state,key:e.key,idx:t}}function a1(e,t,n,r){return n===void 0&&(n=null),pp({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?dd(t):t,{state:n,key:t&&t.key||r||T6()})}function FD(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 dd(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 M6(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,s=hs.Pop,l=null,u=c();u==null&&(u=0,a.replaceState(pp({},a.state,{idx:u}),""));function c(){return(a.state||{idx:null}).idx}function d(){s=hs.Pop;let y=c(),b=y==null?null:y-u;u=y,l&&l({action:s,location:m.location,delta:b})}function f(y,b){s=hs.Push;let x=a1(m.location,y,b);u=c()+1;let w=hk(x,u),S=m.createHref(x);try{a.pushState(w,"",S)}catch(O){if(O instanceof DOMException&&O.name==="DataCloneError")throw O;o.location.assign(S)}i&&l&&l({action:s,location:m.location,delta:1})}function h(y,b){s=hs.Replace;let x=a1(m.location,y,b);u=c();let w=hk(x,u),S=m.createHref(x);a.replaceState(w,"",S),i&&l&&l({action:s,location:m.location,delta:0})}function p(y){let b=o.location.origin!=="null"?o.location.origin:o.location.href,x=typeof y=="string"?y:FD(y);return x=x.replace(/ $/,"%20"),An(b,"No window.location.(origin|href) available to create URL for href: "+x),new URL(x,b)}let m={get action(){return s},get location(){return e(o,a)},listen(y){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(pk,d),l=y,()=>{o.removeEventListener(pk,d),l=null}},createHref(y){return t(o,y)},createURL:p,encodeLocation(y){let b=p(y);return{pathname:b.pathname,search:b.search,hash:b.hash}},push:f,replace:h,go(y){return a.go(y)}};return m}var mk;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(mk||(mk={}));function _6(e,t,n){return n===void 0&&(n="/"),A6(e,t,n)}function A6(e,t,n,r){let o=typeof t=="string"?dd(t):t,i=zD(o.pathname||"/",n);if(i==null)return null;let a=ND(e);R6(a);let s=null;for(let l=0;s==null&&l{let l={relativePath:s===void 0?i.path||"":s,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};l.relativePath.startsWith("/")&&(An(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=kl([r,l.relativePath]),c=n.concat(l);i.children&&i.children.length>0&&(An(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),ND(i.children,t,c,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:z6(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 BD(i.path))o(i,a,l)}),t}function BD(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=BD(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 R6(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:H6(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const j6=/^:[\w-]+$/,D6=3,L6=2,F6=1,N6=10,B6=-2,gk=e=>e==="*";function z6(e,t){let n=e.split("/"),r=n.length;return n.some(gk)&&(r+=B6),t&&(r+=L6),n.filter(o=>!gk(o)).reduce((o,i)=>o+(j6.test(i)?D6:i===""?F6:N6),r)}function H6(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 U6(e,t,n){let{routesMeta:r}=e,o={},i="/",a=[];for(let s=0;s{let{paramName:f,isOptional:h}=c;if(f==="*"){let m=s[d]||"";a=i.slice(0,i.length-m.length).replace(/(.)\/+$/,"$1")}const p=s[d];return h&&!p?u[f]=void 0:u[f]=(p||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:a,pattern:e}}function W6(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),CP(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,s,l)=>(r.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function G6(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return CP(!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 zD(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)||"/"}const K6=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,q6=e=>K6.test(e);function X6(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?dd(e):e,i;if(n)if(q6(n))i=n;else{if(n.includes("//")){let a=n;n=n.replace(/\/\/+/g,"/"),CP(!1,"Pathnames cannot have embedded double slashes - normalizing "+(a+" -> "+n))}n.startsWith("/")?i=vk(n.substring(1),"/"):i=vk(n,t)}else i=t;return{pathname:i,search:eU(r),hash:tU(o)}}function vk(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 px(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 Y6(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Q6(e,t){let n=Y6(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Z6(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=dd(e):(o=pp({},e),An(!o.pathname||!o.pathname.includes("?"),px("?","pathname","search",o)),An(!o.pathname||!o.pathname.includes("#"),px("#","pathname","hash",o)),An(!o.search||!o.search.includes("#"),px("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,s;if(a==null)s=n;else{let d=t.length-1;if(!r&&a.startsWith("..")){let f=a.split("/");for(;f[0]==="..";)f.shift(),d-=1;o.pathname=f.join("/")}s=d>=0?t[d]:"/"}let l=X6(o,s),u=a&&a!=="/"&&a.endsWith("/"),c=(i||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const kl=e=>e.join("/").replace(/\/\/+/g,"/"),J6=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),eU=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,tU=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function nU(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const HD=["post","put","patch","delete"];new Set(HD);const rU=["get",...HD];new Set(rU);/** * React Router v6.30.3 * * 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 hp(){return hp=Object.assign?Object.assign.bind():function(e){for(var t=1;t{s.current=!0}),v.useCallback(function(u,c){if(c===void 0&&(c={}),!s.current)return;if(typeof u=="number"){r.go(u);return}let d=Z6(u,JSON.parse(a),i,c.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:kl([t,d.pathname])),(c.replace?r.replace:r.push)(d,c.state,c)},[t,r,a,i,e])}function aU(e,t){return sU(e,t)}function sU(e,t,n,r){Hy()||An(!1);let{navigator:o}=v.useContext(By),{matches:i}=v.useContext(fd),a=i[i.length-1],s=a?a.params:{};a&&a.pathname;let l=a?a.pathnameBase:"/";a&&a.route;let u=PP(),c;if(t){var d;let y=typeof t=="string"?dd(t):t;l==="/"||(d=y.pathname)!=null&&d.startsWith(l)||An(!1),c=y}else c=u;let f=c.pathname||"/",h=f;if(l!=="/"){let y=l.replace(/^\//,"").split("/");h="/"+f.replace(/^\//,"").split("/").slice(y.length).join("/")}let p=_6(e,{pathname:h}),m=fU(p&&p.map(y=>Object.assign({},y,{params:Object.assign({},s,y.params),pathname:kl([l,o.encodeLocation?o.encodeLocation(y.pathname).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?l:kl([l,o.encodeLocation?o.encodeLocation(y.pathnameBase).pathname:y.pathnameBase])})),i,n,r);return t&&m?v.createElement(zy.Provider,{value:{location:hp({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:hs.Pop}},m):m}function lU(){let e=gU(),t=nU(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return v.createElement(v.Fragment,null,v.createElement("h2",null,"Unexpected Application Error!"),v.createElement("h3",{style:{fontStyle:"italic"}},t),n?v.createElement("pre",{style:o},n):null,null)}const uU=v.createElement(lU,null);class cU extends v.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?v.createElement(fd.Provider,{value:this.props.routeContext},v.createElement(UD.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function dU(e){let{routeContext:t,match:n,children:r}=e,o=v.useContext(SP);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),v.createElement(fd.Provider,{value:t},r)}function fU(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,s=(o=n)==null?void 0:o.errors;if(s!=null){let c=a.findIndex(d=>d.route.id&&(s==null?void 0:s[d.route.id])!==void 0);c>=0||An(!1),a=a.slice(0,Math.min(a.length,c+1))}let l=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c=0?a=a.slice(0,u+1):a=[a[0]];break}}}return a.reduceRight((c,d,f)=>{let h,p=!1,m=null,y=null;n&&(h=s&&d.route.id?s[d.route.id]:void 0,m=d.route.errorElement||uU,l&&(u<0&&f===0?(yU("route-fallback"),p=!0,y=null):u===f&&(p=!0,y=d.route.hydrateFallbackElement||null)));let b=t.concat(a.slice(0,f+1)),x=()=>{let w;return h?w=m:p?w=y:d.route.Component?w=v.createElement(d.route.Component,null):d.route.element?w=d.route.element:w=c,v.createElement(dU,{match:d,routeContext:{outlet:c,matches:b,isDataRoute:n!=null},children:w})};return n&&(d.route.ErrorBoundary||d.route.errorElement||f===0)?v.createElement(cU,{location:n.location,revalidation:n.revalidation,component:m,error:h,children:x(),routeContext:{outlet:null,matches:b,isDataRoute:!0}}):x()},null)}var GD=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(GD||{}),KD=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}(KD||{});function pU(e){let t=v.useContext(SP);return t||An(!1),t}function hU(e){let t=v.useContext(oU);return t||An(!1),t}function mU(e){let t=v.useContext(fd);return t||An(!1),t}function qD(e){let t=mU(),n=t.matches[t.matches.length-1];return n.route.id||An(!1),n.route.id}function gU(){var e;let t=v.useContext(UD),n=hU(),r=qD();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function vU(){let{router:e}=pU(GD.UseNavigateStable),t=qD(KD.UseNavigateStable),n=v.useRef(!1);return VD(()=>{n.current=!0}),v.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,hp({fromRouteId:t},i)))},[e,t])}const yk={};function yU(e,t,n){yk[e]||(yk[e]=!0)}function bU(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function Ir(e){An(!1)}function xU(e){let{basename:t="/",children:n=null,location:r,navigationType:o=hs.Pop,navigator:i,static:a=!1,future:s}=e;Hy()&&An(!1);let l=t.replace(/^\/*/,"/"),u=v.useMemo(()=>({basename:l,navigator:i,static:a,future:hp({v7_relativeSplatPath:!1},s)}),[l,s,i,a]);typeof r=="string"&&(r=dd(r));let{pathname:c="/",search:d="",hash:f="",state:h=null,key:p="default"}=r,m=v.useMemo(()=>{let y=zD(c,l);return y==null?null:{location:{pathname:y,search:d,hash:f,state:h,key:p},navigationType:o}},[l,c,d,f,h,p,o]);return m==null?null:v.createElement(By.Provider,{value:u},v.createElement(zy.Provider,{children:n,value:m}))}function wU(e){let{children:t,location:n}=e;return aU(s1(t),n)}new Promise(()=>{});function s1(e,t){t===void 0&&(t=[]);let n=[];return v.Children.forEach(e,(r,o)=>{if(!v.isValidElement(r))return;let i=[...t,o];if(r.type===v.Fragment){n.push.apply(n,s1(r.props.children,i));return}r.type!==Ir&&An(!1),!r.props.index||!r.props.children||An(!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=s1(r.props.children,i)),n.push(a)}),n}/** * React Router DOM v6.30.3 * * 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 */const CU="6";try{window.__reactRouterVersion=CU}catch{}const SU="startTransition",bk=Pg[SU];function PU(e){let{basename:t,children:n,future:r,window:o}=e,i=v.useRef();i.current==null&&(i.current=I6({window:o,v5Compat:!0}));let a=i.current,[s,l]=v.useState({action:a.action,location:a.location}),{v7_startTransition:u}=r||{},c=v.useCallback(d=>{u&&bk?bk(()=>l(d)):l(d)},[l,u]);return v.useLayoutEffect(()=>a.listen(c),[a,c]),v.useEffect(()=>bU(r),[r]),v.createElement(xU,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:a,future:r})}var xk;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(xk||(xk={}));var wk;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(wk||(wk={}));function Ta(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n0?Qn(pd,--Ur):0,Tc--,Sn===10&&(Tc=1,Vy--),Sn}function so(){return Sn=Ur2||gp(Sn)>3?"":" "}function NU(e,t){for(;--t&&so()&&!(Sn<48||Sn>102||Sn>57&&Sn<65||Sn>70&&Sn<97););return Ph(e,sg()+(t<6&&Hi()==32&&so()==32))}function u1(e){for(;so();)switch(Sn){case e:return Ur;case 34:case 39:e!==34&&e!==39&&u1(Sn);break;case 40:e===41&&u1(e);break;case 92:so();break}return Ur}function BU(e,t){for(;so()&&e+Sn!==57;)if(e+Sn===84&&Hi()===47)break;return"/*"+Ph(t,Ur-1)+"*"+Uy(e===47?e:so())}function zU(e){for(;!gp(Hi());)so();return Ph(e,Ur)}function HU(e){return eL(ug("",null,null,null,[""],e=JD(e),0,[0],e))}function ug(e,t,n,r,o,i,a,s,l){for(var u=0,c=0,d=a,f=0,h=0,p=0,m=1,y=1,b=1,x=0,w="",S=o,O=i,C=r,$=w;y;)switch(p=x,x=so()){case 40:if(p!=108&&Qn($,d-1)==58){l1($+=Ot(lg(x),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:$+=lg(x);break;case 9:case 10:case 13:case 32:$+=FU(p);break;case 92:$+=NU(sg()-1,7);continue;case 47:switch(Hi()){case 42:case 47:ym(UU(BU(so(),sg()),t,n),l);break;default:$+="/"}break;case 123*m:s[u++]=Ri($)*b;case 125*m:case 59:case 0:switch(x){case 0:case 125:y=0;case 59+c:b==-1&&($=Ot($,/\f/g,"")),h>0&&Ri($)-d&&ym(h>32?Sk($+";",r,n,d-1):Sk(Ot($," ","")+";",r,n,d-2),l);break;case 59:$+=";";default:if(ym(C=Ck($,t,n,u,c,o,s,w,S=[],O=[],d),i),x===123)if(c===0)ug($,t,C,C,S,i,d,s,O);else switch(f===99&&Qn($,3)===110?100:f){case 100:case 108:case 109:case 115:ug(e,C,C,r&&ym(Ck(e,C,C,0,0,o,s,w,o,S=[],d),O),o,O,d,s,r?S:O);break;default:ug($,C,C,C,[""],O,0,s,O)}}u=c=h=0,m=b=1,w=$="",d=a;break;case 58:d=1+Ri($),h=p;default:if(m<1){if(x==123)--m;else if(x==125&&m++==0&&LU()==125)continue}switch($+=Uy(x),x*m){case 38:b=c>0?1:($+="\f",-1);break;case 44:s[u++]=(Ri($)-1)*b,b=1;break;case 64:Hi()===45&&($+=lg(so())),f=Hi(),c=d=Ri(w=$+=zU(sg())),x++;break;case 45:p===45&&Ri($)==2&&(m=0)}}return i}function Ck(e,t,n,r,o,i,a,s,l,u,c){for(var d=o-1,f=o===0?i:[""],h=EP(f),p=0,m=0,y=0;p0?f[b]+" "+x:Ot(x,/&\f/g,f[b])))&&(l[y++]=w);return Wy(e,t,n,o===0?OP:s,l,u,c)}function UU(e,t,n){return Wy(e,t,n,XD,Uy(DU()),mp(e,2,-2),0)}function Sk(e,t,n,r){return Wy(e,t,n,$P,mp(e,0,r),mp(e,r+1,-1),r)}function rc(e,t){for(var n="",r=EP(e),o=0;o6)switch(Qn(e,t+1)){case 109:if(Qn(e,t+4)!==45)break;case 102:return Ot(e,/(.+:)(.+)-([^]+)/,"$1"+Pt+"$2-$3$1"+Xg+(Qn(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~l1(e,"stretch")?nL(Ot(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Qn(e,t+1)!==115)break;case 6444:switch(Qn(e,Ri(e)-3-(~l1(e,"!important")&&10))){case 107:return Ot(e,":",":"+Pt)+e;case 101:return Ot(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Pt+(Qn(e,14)===45?"inline-":"")+"box$3$1"+Pt+"$2$3$1"+ar+"$2box$3")+e}break;case 5936:switch(Qn(e,t+11)){case 114:return Pt+e+ar+Ot(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Pt+e+ar+Ot(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Pt+e+ar+Ot(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Pt+e+ar+e+e}return e}var ZU=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case $P:t.return=nL(t.value,t.length);break;case YD:return rc([Qd(t,{value:Ot(t.value,"@","@"+Pt)})],o);case OP:if(t.length)return jU(t.props,function(i){switch(RU(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return rc([Qd(t,{props:[Ot(i,/:(read-\w+)/,":"+Xg+"$1")]})],o);case"::placeholder":return rc([Qd(t,{props:[Ot(i,/:(plac\w+)/,":"+Pt+"input-$1")]}),Qd(t,{props:[Ot(i,/:(plac\w+)/,":"+Xg+"$1")]}),Qd(t,{props:[Ot(i,/:(plac\w+)/,ar+"input-$1")]})],o)}return""})}},JU=[ZU],rL=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(m){var y=m.getAttribute("data-emotion");y.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var o=t.stylisPlugins||JU,i={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(m){for(var y=m.getAttribute("data-emotion").split(" "),b=1;b=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 c8={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},d8=/[A-Z]|^ms/g,f8=/_EMO_([^_]+?)_([^]*?)_EMO_/g,uL=function(t){return t.charCodeAt(1)===45},Ok=function(t){return t!=null&&typeof t!="boolean"},hx=tL(function(e){return uL(e)?e:e.replace(d8,"-$&").toLowerCase()}),$k=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(f8,function(r,o,i){return ji={name:o,styles:i,next:ji},o})}return c8[t]!==1&&!uL(t)&&typeof n=="number"&&n!==0?n+"px":n};function vp(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return ji={name:o.name,styles:o.styles,next:ji},o.name;var i=n;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)ji={name:a.name,styles:a.styles,next:ji},a=a.next;var s=i.styles+";";return s}return p8(e,t,n)}case"function":{if(e!==void 0){var l=ji,u=n(e);return ji=l,vp(e,t,u)}break}}var c=n;if(t==null)return c;var d=t[c];return d!==void 0?d:c}function p8(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o96?S8:P8},_k=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},O8=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return MP(n,r,o),dL(function(){return _P(n,r,o)}),null},$8=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=_k(t,n,r),l=s||Mk(o),u=!l("as");return function(){var c=arguments,d=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&d.push("label:"+i+";"),c[0]==null||c[0].raw===void 0)d.push.apply(d,c);else{var f=c[0];d.push(f[0]);for(var h=c.length,p=1;p(o[1].styles.match(/^@layer\s+[^{]*$/)||(o[1].styles=`@layer mui {${o[1].styles}}`),r(...o))}return n}const gx=new Map;function R8(e){const{injectFirst:t,enableCssLayer:n,children:r}=e,o=v.useMemo(()=>{const i=`${t}-${n}`;if(typeof document=="object"&&gx.has(i))return gx.get(i);const a=A8(t,n);return gx.set(i,a),a},[t,n]);return t||n?g.jsx(m8,{value:o,children:r}):r}function j8(e){return e==null||Object.keys(e).length===0}function vL(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?o=>t(j8(o)?n:o):t;return g.jsx(x8,{styles:r})}function jP(e,t){return d1(e,t)}const yL=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},Ak=[];function Yg(e){return Ak[0]=e,Oh(Ak)}const D8=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:vL,StyledEngineProvider:R8,ThemeContext:hd,css:Ma,default:jP,internal_processStyles:yL,internal_serializeStyles:Yg,keyframes:xi},Symbol.toStringTag,{value:"Module"}));function pa(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function bL(e){if(v.isValidElement(e)||!pa(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=bL(e[n])}),t}function Pr(e,t,n={clone:!0}){const r=n.clone?P({},e):e;return pa(e)&&pa(t)&&Object.keys(t).forEach(o=>{v.isValidElement(t[o])?r[o]=t[o]:pa(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&pa(e[o])?r[o]=Pr(e[o],t[o],n):n.clone?r[o]=pa(t[o])?bL(t[o]):t[o]:r[o]=t[o]}),r}const L8=Object.freeze(Object.defineProperty({__proto__:null,default:Pr,isPlainObject:pa},Symbol.toStringTag,{value:"Module"})),F8=["values","unit","step"],N8=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 xL(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=Q(e,F8),i=N8(t),a=Object.keys(i);function s(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n})`}function l(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-r/100}${n})`}function u(f,h){const p=a.indexOf(h);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n}) and (max-width:${(p!==-1&&typeof t[a[p]]=="number"?t[a[p]]:h)-r/100}${n})`}function c(f){return a.indexOf(f)+1`@media (min-width:${DP[e]}px)`};function Vr(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||Rk;return t.reduce((a,s,l)=>(a[i.up(i.keys[l])]=n(t[l]),a),{})}if(typeof t=="object"){const i=r.breakpoints||Rk;return Object.keys(t).reduce((a,s)=>{if(Object.keys(i.values||DP).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 wL(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function f1(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function z8(e,...t){const n=wL(e),r=[n,...t].reduce((o,i)=>Pr(o,i),{});return f1(Object.keys(n),r)}function H8(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 Il({values:e,breakpoints:t,base:n}){const r=n||H8(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 oe(e){if(typeof e!="string")throw new Error(Ta(7));return e.charAt(0).toUpperCase()+e.slice(1)}const U8=Object.freeze(Object.defineProperty({__proto__:null,default:oe},Symbol.toStringTag,{value:"Module"}));function nb(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 Qg(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=nb(e,n)||r,t&&(o=t(o,r,e)),o}function yn(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=nb(l,r)||{};return Vr(a,s,d=>{let f=Qg(u,o,d);return d===f&&typeof d=="string"&&(f=Qg(u,o,`${t}${d==="default"?"":oe(d)}`,d)),n===!1?f:{[n]:f}})};return i.propTypes={},i.filterProps=[t],i}function V8(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const W8={m:"margin",p:"padding"},G8={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},jk={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},K8=V8(e=>{if(e.length>2)if(jk[e])e=jk[e];else return[e];const[t,n]=e.split(""),r=W8[t],o=G8[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),LP=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],FP=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...LP,...FP];function $h(e,t,n,r){var o;const i=(o=nb(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 NP(e){return $h(e,"spacing",8)}function Wl(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 q8(e,t){return n=>e.reduce((r,o)=>(r[o]=Wl(t,n),r),{})}function X8(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=K8(n),i=q8(o,r),a=e[n];return Vr(e,a,i)}function CL(e,t){const n=NP(e.theme);return Object.keys(e).map(r=>X8(e,t,r,n)).reduce(Ff,{})}function ln(e){return CL(e,LP)}ln.propTypes={};ln.filterProps=LP;function un(e){return CL(e,FP)}un.propTypes={};un.filterProps=FP;function Y8(e=8){if(e.mui)return e;const t=NP({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 rb(...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]?Ff(o,t[i](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function Mo(e){return typeof e!="number"?e:`${e}px solid`}function Wo(e,t){return yn({prop:e,themeKey:"borders",transform:t})}const Q8=Wo("border",Mo),Z8=Wo("borderTop",Mo),J8=Wo("borderRight",Mo),eV=Wo("borderBottom",Mo),tV=Wo("borderLeft",Mo),nV=Wo("borderColor"),rV=Wo("borderTopColor"),oV=Wo("borderRightColor"),iV=Wo("borderBottomColor"),aV=Wo("borderLeftColor"),sV=Wo("outline",Mo),lV=Wo("outlineColor"),ob=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=$h(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Wl(t,r)});return Vr(e,e.borderRadius,n)}return null};ob.propTypes={};ob.filterProps=["borderRadius"];rb(Q8,Z8,J8,eV,tV,nV,rV,oV,iV,aV,ob,sV,lV);const ib=e=>{if(e.gap!==void 0&&e.gap!==null){const t=$h(e.theme,"spacing",8),n=r=>({gap:Wl(t,r)});return Vr(e,e.gap,n)}return null};ib.propTypes={};ib.filterProps=["gap"];const ab=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=$h(e.theme,"spacing",8),n=r=>({columnGap:Wl(t,r)});return Vr(e,e.columnGap,n)}return null};ab.propTypes={};ab.filterProps=["columnGap"];const sb=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=$h(e.theme,"spacing",8),n=r=>({rowGap:Wl(t,r)});return Vr(e,e.rowGap,n)}return null};sb.propTypes={};sb.filterProps=["rowGap"];const uV=yn({prop:"gridColumn"}),cV=yn({prop:"gridRow"}),dV=yn({prop:"gridAutoFlow"}),fV=yn({prop:"gridAutoColumns"}),pV=yn({prop:"gridAutoRows"}),hV=yn({prop:"gridTemplateColumns"}),mV=yn({prop:"gridTemplateRows"}),gV=yn({prop:"gridTemplateAreas"}),vV=yn({prop:"gridArea"});rb(ib,ab,sb,uV,cV,dV,fV,pV,hV,mV,gV,vV);function oc(e,t){return t==="grey"?t:e}const yV=yn({prop:"color",themeKey:"palette",transform:oc}),bV=yn({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:oc}),xV=yn({prop:"backgroundColor",themeKey:"palette",transform:oc});rb(yV,bV,xV);function ro(e){return e<=1&&e!==0?`${e*100}%`:e}const wV=yn({prop:"width",transform:ro}),BP=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])||DP[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:ro(n)}};return Vr(e,e.maxWidth,t)}return null};BP.filterProps=["maxWidth"];const CV=yn({prop:"minWidth",transform:ro}),SV=yn({prop:"height",transform:ro}),PV=yn({prop:"maxHeight",transform:ro}),OV=yn({prop:"minHeight",transform:ro});yn({prop:"size",cssProperty:"width",transform:ro});yn({prop:"size",cssProperty:"height",transform:ro});const $V=yn({prop:"boxSizing"});rb(wV,BP,CV,SV,PV,OV,$V);const Eh={border:{themeKey:"borders",transform:Mo},borderTop:{themeKey:"borders",transform:Mo},borderRight:{themeKey:"borders",transform:Mo},borderBottom:{themeKey:"borders",transform:Mo},borderLeft:{themeKey:"borders",transform:Mo},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Mo},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:ob},color:{themeKey:"palette",transform:oc},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:oc},backgroundColor:{themeKey:"palette",transform:oc},p:{style:un},pt:{style:un},pr:{style:un},pb:{style:un},pl:{style:un},px:{style:un},py:{style:un},padding:{style:un},paddingTop:{style:un},paddingRight:{style:un},paddingBottom:{style:un},paddingLeft:{style:un},paddingX:{style:un},paddingY:{style:un},paddingInline:{style:un},paddingInlineStart:{style:un},paddingInlineEnd:{style:un},paddingBlock:{style:un},paddingBlockStart:{style:un},paddingBlockEnd:{style:un},m:{style:ln},mt:{style:ln},mr:{style:ln},mb:{style:ln},ml:{style:ln},mx:{style:ln},my:{style:ln},margin:{style:ln},marginTop:{style:ln},marginRight:{style:ln},marginBottom:{style:ln},marginLeft:{style:ln},marginX:{style:ln},marginY:{style:ln},marginInline:{style:ln},marginInlineStart:{style:ln},marginInlineEnd:{style:ln},marginBlock:{style:ln},marginBlockStart:{style:ln},marginBlockEnd:{style:ln},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:ib},rowGap:{style:sb},columnGap:{style:ab},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:ro},maxWidth:{style:BP},minWidth:{transform:ro},height:{transform:ro},maxHeight:{transform:ro},minHeight:{transform:ro},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function EV(...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 kV(e,t){return typeof e=="function"?e(t):e}function SL(){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:d}=s;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const f=nb(o,u)||{};return d?d(a):Vr(a,r,p=>{let m=Qg(f,c,p);return p===m&&typeof p=="string"&&(m=Qg(f,c,`${n}${p==="default"?"":oe(p)}`,p)),l===!1?m:{[l]:m}})}function t(n){var r;const{sx:o,theme:i={},nested:a}=n||{};if(!o)return null;const s=(r=i.unstable_sxConfig)!=null?r:Eh;function l(u){let c=u;if(typeof u=="function")c=u(i);else if(typeof u!="object")return u;if(!c)return null;const d=wL(i.breakpoints),f=Object.keys(d);let h=d;return Object.keys(c).forEach(p=>{const m=kV(c[p],i);if(m!=null)if(typeof m=="object")if(s[p])h=Ff(h,e(p,m,i,s));else{const y=Vr({theme:i},m,b=>({[p]:b}));EV(y,m)?h[p]=t({sx:m,theme:i,nested:!0}):h=Ff(h,y)}else h=Ff(h,e(p,m,i,s))}),!a&&i.modularCssLayers?{"@layer sx":f1(f,h)}:f1(f,h)}return Array.isArray(o)?o.map(l):l(o)}return t}const md=SL();md.filterProps=["sx"];function PL(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const IV=["breakpoints","palette","spacing","shape"];function kh(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=Q(e,IV),s=xL(n),l=Y8(o);let u=Pr({breakpoints:s,direction:"ltr",components:{},palette:P({mode:"light"},r),spacing:l,shape:P({},B8,i)},a);return u.applyStyles=PL,u=t.reduce((c,d)=>Pr(c,d),u),u.unstable_sxConfig=P({},Eh,a==null?void 0:a.unstable_sxConfig),u.unstable_sx=function(d){return md({sx:d,theme:this})},u}const TV=Object.freeze(Object.defineProperty({__proto__:null,default:kh,private_createBreakpoints:xL,unstable_applyStyles:PL},Symbol.toStringTag,{value:"Module"}));function MV(e){return Object.keys(e).length===0}function zP(e=null){const t=v.useContext(hd);return!t||MV(t)?e:t}const _V=kh();function lb(e=_V){return zP(e)}function vx(e){const t=Yg(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function OL({styles:e,themeId:t,defaultTheme:n={}}){const r=lb(n),o=t&&r[t]||r;let i=typeof e=="function"?e(o):e;return o.modularCssLayers&&(Array.isArray(i)?i=i.map(a=>vx(typeof a=="function"?a(o):a)):i=vx(i)),g.jsx(vL,{styles:i})}const AV=["sx"],RV=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:Eh;return Object.keys(e).forEach(i=>{o[i]?r.systemProps[i]=e[i]:r.otherProps[i]=e[i]}),r};function Ih(e){const{sx:t}=e,n=Q(e,AV),{systemProps:r,otherProps:o}=RV(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...a)=>{const s=t(...a);return pa(s)?P({},r,s):r}:i=P({},r,t),P({},o,{sx:i})}const jV=Object.freeze(Object.defineProperty({__proto__:null,default:md,extendSxProp:Ih,unstable_createStyleFunctionSx:SL,unstable_defaultSxConfig:Eh},Symbol.toStringTag,{value:"Module"})),Dk=e=>e,DV=()=>{let e=Dk;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Dk}}},$L=DV();function EL(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;ts!=="theme"&&s!=="sx"&&s!=="as"})(md);return v.forwardRef(function(l,u){const c=lb(n),d=Ih(l),{className:f,component:h="div"}=d,p=Q(d,LV);return g.jsx(i,P({as:h,ref:u,className:Y(f,o?o(r):r),theme:t&&c[t]||c},p))})}const NV={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 Be(e,t,n="Mui"){const r=NV[t];return r?`${n}-${r}`:`${$L.generate(e)}-${t}`}function Le(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=Be(e,o,n)}),r}var kL={exports:{}},zt={};/** * @license React * react-is.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var HP=Symbol.for("react.transitional.element"),UP=Symbol.for("react.portal"),ub=Symbol.for("react.fragment"),cb=Symbol.for("react.strict_mode"),db=Symbol.for("react.profiler"),fb=Symbol.for("react.consumer"),pb=Symbol.for("react.context"),hb=Symbol.for("react.forward_ref"),mb=Symbol.for("react.suspense"),gb=Symbol.for("react.suspense_list"),vb=Symbol.for("react.memo"),yb=Symbol.for("react.lazy"),BV=Symbol.for("react.view_transition"),zV=Symbol.for("react.client.reference");function Go(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case HP:switch(e=e.type,e){case ub:case db:case cb:case mb:case gb:case BV:return e;default:switch(e=e&&e.$$typeof,e){case pb:case hb:case yb:case vb:return e;case fb:return e;default:return t}}case UP:return t}}}zt.ContextConsumer=fb;zt.ContextProvider=pb;zt.Element=HP;zt.ForwardRef=hb;zt.Fragment=ub;zt.Lazy=yb;zt.Memo=vb;zt.Portal=UP;zt.Profiler=db;zt.StrictMode=cb;zt.Suspense=mb;zt.SuspenseList=gb;zt.isContextConsumer=function(e){return Go(e)===fb};zt.isContextProvider=function(e){return Go(e)===pb};zt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===HP};zt.isForwardRef=function(e){return Go(e)===hb};zt.isFragment=function(e){return Go(e)===ub};zt.isLazy=function(e){return Go(e)===yb};zt.isMemo=function(e){return Go(e)===vb};zt.isPortal=function(e){return Go(e)===UP};zt.isProfiler=function(e){return Go(e)===db};zt.isStrictMode=function(e){return Go(e)===cb};zt.isSuspense=function(e){return Go(e)===mb};zt.isSuspenseList=function(e){return Go(e)===gb};zt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===ub||e===db||e===cb||e===mb||e===gb||typeof e=="object"&&e!==null&&(e.$$typeof===yb||e.$$typeof===vb||e.$$typeof===pb||e.$$typeof===fb||e.$$typeof===hb||e.$$typeof===zV||e.getModuleId!==void 0)};zt.typeOf=Go;kL.exports=zt;var Lk=kL.exports;const HV=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function IL(e){const t=`${e}`.match(HV);return t&&t[1]||""}function TL(e,t=""){return e.displayName||e.name||IL(e)||t}function Fk(e,t,n){const r=TL(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function UV(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return TL(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Lk.ForwardRef:return Fk(e,e.render,"ForwardRef");case Lk.Memo:return Fk(e,e.type,"memo");default:return}}}const VV=Object.freeze(Object.defineProperty({__proto__:null,default:UV,getFunctionName:IL},Symbol.toStringTag,{value:"Module"})),WV=["ownerState"],GV=["variants"],KV=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function qV(e){return Object.keys(e).length===0}function XV(e){return typeof e=="string"&&e.charCodeAt(0)>96}function yx(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function Nk(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const YV=kh(),QV=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function bm({defaultTheme:e,theme:t,themeId:n}){return qV(t)?e:t[n]||t}function ZV(e){return e?(t,n)=>n[e]:null}function cg(e,t,n){let{ownerState:r}=t,o=Q(t,WV);const i=typeof e=="function"?e(P({ownerState:r},o)):e;if(Array.isArray(i))return i.flatMap(a=>cg(a,P({ownerState:r},o),n));if(i&&typeof i=="object"&&Array.isArray(i.variants)){const{variants:a=[]}=i;let l=Q(i,GV);return a.forEach(u=>{let c=!0;if(typeof u.props=="function"?c=u.props(P({ownerState:r},o,r)):Object.keys(u.props).forEach(d=>{(r==null?void 0:r[d])!==u.props[d]&&o[d]!==u.props[d]&&(c=!1)}),c){Array.isArray(l)||(l=[l]);const d=typeof u.style=="function"?u.style(P({ownerState:r},o,r)):u.style;l.push(n?Nk(Yg(d),n):d)}}),l}return n?Nk(Yg(i),n):i}function JV(e={}){const{themeId:t,defaultTheme:n=YV,rootShouldForwardProp:r=yx,slotShouldForwardProp:o=yx}=e,i=a=>md(P({},a,{theme:bm(P({},a,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(a,s={})=>{yL(a,C=>C.filter($=>!($!=null&&$.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:c,skipSx:d,overridesResolver:f=ZV(QV(u))}=s,h=Q(s,KV),p=l&&l.startsWith("Mui")||u?"components":"custom",m=c!==void 0?c:u&&u!=="Root"&&u!=="root"||!1,y=d||!1;let b,x=yx;u==="Root"||u==="root"?x=r:u?x=o:XV(a)&&(x=void 0);const w=jP(a,P({shouldForwardProp:x,label:b},h)),S=C=>typeof C=="function"&&C.__emotion_real!==C||pa(C)?$=>{const E=bm({theme:$.theme,defaultTheme:n,themeId:t});return cg(C,P({},$,{theme:E}),E.modularCssLayers?p:void 0)}:C,O=(C,...$)=>{let E=S(C);const M=$?$.map(S):[];l&&f&&M.push(j=>{const R=bm(P({},j,{defaultTheme:n,themeId:t}));if(!R.components||!R.components[l]||!R.components[l].styleOverrides)return null;const I=R.components[l].styleOverrides,k={};return Object.entries(I).forEach(([D,F])=>{k[D]=cg(F,P({},j,{theme:R}),R.modularCssLayers?"theme":void 0)}),f(j,k)}),l&&!m&&M.push(j=>{var R;const I=bm(P({},j,{defaultTheme:n,themeId:t})),k=I==null||(R=I.components)==null||(R=R[l])==null?void 0:R.variants;return cg({variants:k},P({},j,{theme:I}),I.modularCssLayers?"theme":void 0)}),y||M.push(i);const _=M.length-$.length;if(Array.isArray(C)&&_>0){const j=new Array(_).fill("");E=[...C,...j],E.raw=[...C.raw,...j]}const A=w(E,...M);return a.muiName&&(A.muiName=a.muiName),A};return w.withConfig&&(O.withConfig=w.withConfig),O}}const Un=JV();function yp(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]=yp(o[a],i[a])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function e9(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:yp(t.components[n].defaultProps,r)}function ML({props:e,name:t,defaultTheme:n,themeId:r}){let o=lb(n);return r&&(o=o[r]||o),e9({theme:o,name:t,props:e})}const Et=typeof window<"u"?v.useLayoutEffect:v.useEffect;function il(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const t9=Object.freeze(Object.defineProperty({__proto__:null,default:il},Symbol.toStringTag,{value:"Module"}));function VP(e,t=0,n=1){return il(e,t,n)}function n9(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 bb(e){if(e.type)return e;if(e.charAt(0)==="#")return bb(n9(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(Ta(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(Ta(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}function WP(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 $t(e,t){return e=bb(e),t=VP(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,WP(e)}function r9(e,t){if(e=bb(e),t=VP(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 WP(e)}function o9(e,t){if(e=bb(e),t=VP(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 WP(e)}function i9(e,t){return()=>null}function Bk(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function Th(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 dg(e,t){var n,r;return v.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 Wt(e){return e&&e.ownerDocument||document}function Yi(e){return Wt(e).defaultView||window}function Zg(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let zk=0;function a9(e){const[t,n]=v.useState(e),r=e||t;return v.useEffect(()=>{t==null&&(zk+=1,n(`mui-${zk}`))},[t]),r}const Hk=Pg.useId;function Dt(e){if(Hk!==void 0){const t=Hk();return e??t}return a9(e)}function Is({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=v.useRef(e!==void 0),[i,a]=v.useState(t),s=o?e:i,l=v.useCallback(u=>{o||a(u)},[]);return[s,l]}function Lt(e){const t=v.useRef(e);return Et(()=>{t.current=e}),v.useRef((...n)=>(0,t.current)(...n)).current}function yt(...e){return v.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{Zg(n,t)})},e)}const Uk={};function s9(e,t){const n=v.useRef(Uk);return n.current===Uk&&(n.current=e(t)),n}const l9=[];function u9(e){v.useEffect(e,l9)}let GP=class _L{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new _L}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}};function Uu(){const e=s9(GP.create).current;return u9(e.disposeEffect),e}let xb=!0,p1=!1;const c9=new GP,d9={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 f9(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&d9[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function p9(e){e.metaKey||e.altKey||e.ctrlKey||(xb=!0)}function bx(){xb=!1}function h9(){this.visibilityState==="hidden"&&p1&&(xb=!0)}function m9(e){e.addEventListener("keydown",p9,!0),e.addEventListener("mousedown",bx,!0),e.addEventListener("pointerdown",bx,!0),e.addEventListener("touchstart",bx,!0),e.addEventListener("visibilitychange",h9,!0)}function g9(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return xb||f9(t)}function KP(){const e=v.useCallback(o=>{o!=null&&m9(o.ownerDocument)},[]),t=v.useRef(!1);function n(){return t.current?(p1=!0,c9.start(100,()=>{p1=!1}),t.current=!1,!0):!1}function r(o){return g9(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function AL(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const qP=e=>{const t=v.useRef({});return v.useEffect(()=>{t.current=e}),t.current},v9={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function Ce(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}function mi(e){return typeof e=="string"}function Vu(e,t,n){return e===void 0||mi(e)?t:P({},t,{ownerState:P({},t.ownerState,n)})}function Nf(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 Vk(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 RL(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const h=Y(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),p=P({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),m=P({},n,o,r);return h.length>0&&(m.className=h),Object.keys(p).length>0&&(m.style=p),{props:m,internalRef:void 0}}const a=Nf(P({},o,r)),s=Vk(r),l=Vk(o),u=t(a),c=Y(u==null?void 0:u.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),d=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),f=P({},u,n,l,s);return c.length>0&&(f.className=c),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:u.ref}}function jL(e,t,n){return typeof e=="function"?e(t,n):e}const y9=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Yn(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=Q(e,y9),s=i?{}:jL(r,o),{props:l,internalRef:u}=RL(P({},a,{externalSlotProps:s})),c=yt(u,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return Vu(n,P({},l,{ref:c}),o)}function Hs(e){if(parseInt(v.version,10)>=19){var t;return(e==null||(t=e.props)==null?void 0:t.ref)||null}return(e==null?void 0:e.ref)||null}const DL=v.createContext(null);function LL(){return v.useContext(DL)}const b9=typeof Symbol=="function"&&Symbol.for,x9=b9?Symbol.for("mui.nested"):"__THEME_NESTED__";function w9(e,t){return typeof t=="function"?t(e):P({},e,t)}function C9(e){const{children:t,theme:n}=e,r=LL(),o=v.useMemo(()=>{const i=r===null?n:w9(r,n);return i!=null&&(i[x9]=r!==null),i},[n,r]);return g.jsx(DL.Provider,{value:o,children:t})}const S9=["value"],FL=v.createContext();function P9(e){let{value:t}=e,n=Q(e,S9);return g.jsx(FL.Provider,P({value:t??!0},n))}const gd=()=>{const e=v.useContext(FL);return e??!1},NL=v.createContext(void 0);function O9({value:e,children:t}){return g.jsx(NL.Provider,{value:e,children:t})}function $9(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?yp(o.defaultProps,r):!o.styleOverrides&&!o.variants?yp(o,r):r}function E9({props:e,name:t}){const n=v.useContext(NL);return $9({props:e,name:t,theme:{components:n}})}function k9(e){const t=zP(),n=Dt()||"",{modularCssLayers:r}=e;let o="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return!r||t!==null?o="":typeof r=="string"?o=r.replace(/mui(?!\.)/g,o):o=`@layer ${o};`,Et(()=>{const i=document.querySelector("head");if(!i)return;const a=i.firstChild;if(o){var s;if(a&&(s=a.hasAttribute)!=null&&s.call(a,"data-mui-layer-order")&&a.getAttribute("data-mui-layer-order")===n)return;const u=document.createElement("style");u.setAttribute("data-mui-layer-order",n),u.textContent=o,i.prepend(u)}else{var l;(l=i.querySelector(`style[data-mui-layer-order="${n}"]`))==null||l.remove()}},[o,n]),o?g.jsx(OL,{styles:o}):null}const Wk={};function Gk(e,t,n,r=!1){return v.useMemo(()=>{const o=e&&t[e]||t;if(typeof n=="function"){const i=n(o),a=e?P({},t,{[e]:i}):i;return r?()=>a:a}return e?P({},t,{[e]:n}):P({},t,n)},[e,t,n,r])}function I9(e){const{children:t,theme:n,themeId:r}=e,o=zP(Wk),i=LL()||Wk,a=Gk(r,o,n),s=Gk(r,i,n,!0),l=a.direction==="rtl",u=k9(a);return g.jsx(C9,{theme:s,children:g.jsx(hd.Provider,{value:a,children:g.jsx(P9,{value:l,children:g.jsxs(O9,{value:a==null?void 0:a.components,children:[u,t]})})})})}function bp(e){"@babel/helpers - typeof";return bp=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},bp(e)}function T9(e,t){if(bp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(bp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function xp(e){var t=T9(e,"string");return bp(t)=="symbol"?t:t+""}const M9=["component","direction","spacing","divider","children","className","useFlexGap"],_9=kh(),A9=Un("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function R9(e){return ML({props:e,name:"MuiStack",defaultTheme:_9})}function j9(e,t){const n=v.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],L9=({ownerState:e,theme:t})=>{let n=P({display:"flex",flexDirection:"column"},Vr({theme:t},Il({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=NP(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=Il({values:e.direction,base:o}),a=Il({values:e.spacing,base:o});typeof i=="object"&&Object.keys(i).forEach((l,u,c)=>{if(!i[l]){const f=u>0?i[c[u-1]]:"column";i[l]=f}}),n=Pr(n,Vr({theme:t},a,(l,u)=>e.useFlexGap?{gap:Wl(r,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${D9(u?i[u]:e.direction)}`]:Wl(r,l)}}))}return n=z8(t.breakpoints,n),n};function F9(e={}){const{createStyledComponent:t=A9,useThemeProps:n=R9,componentName:r="MuiStack"}=e,o=()=>Ce({root:["root"]},l=>Be(r,l),{}),i=t(L9);return v.forwardRef(function(l,u){const c=n(l),d=Ih(c),{component:f="div",direction:h="column",spacing:p=0,divider:m,children:y,className:b,useFlexGap:x=!1}=d,w=Q(d,M9),S={direction:h,spacing:p,useFlexGap:x},O=o();return g.jsx(i,P({as:f,ownerState:S,ref:u,className:Y(O.root,b)},w,{children:m?j9(y,m):y}))})}function N9(e,t){return P({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var bn={},BL={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})(BL);var zL=BL.exports;const B9=Fs(OU),z9=Fs(t9);var HL=zL;Object.defineProperty(bn,"__esModule",{value:!0});var nt=bn.alpha=GL;bn.blend=Z9;bn.colorChannel=void 0;var js=bn.darken=YP;bn.decomposeColor=zo;bn.emphasize=KL;var H9=bn.getContrastRatio=K9;bn.getLuminance=Jg;bn.hexToRgb=UL;bn.hslToRgb=WL;var Ds=bn.lighten=QP;bn.private_safeAlpha=q9;bn.private_safeColorChannel=void 0;bn.private_safeDarken=X9;bn.private_safeEmphasize=Q9;bn.private_safeLighten=Y9;bn.recomposeColor=vd;bn.rgbToHex=G9;var Kk=HL(B9),U9=HL(z9);function XP(e,t=0,n=1){return(0,U9.default)(e,t,n)}function UL(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 V9(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function zo(e){if(e.type)return e;if(e.charAt(0)==="#")return zo(UL(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error((0,Kk.default)(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error((0,Kk.default)(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const VL=e=>{const t=zo(e);return t.values.slice(0,3).map((n,r)=>t.type.indexOf("hsl")!==-1&&r!==0?`${n}%`:n).join(" ")};bn.colorChannel=VL;const W9=(e,t)=>{try{return VL(e)}catch{return e}};bn.private_safeColorChannel=W9;function vd(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 G9(e){if(e.indexOf("#")===0)return e;const{values:t}=zo(e);return`#${t.map((n,r)=>V9(r===3?Math.round(255*n):n)).join("")}`}function WL(e){e=zo(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])),vd({type:s,values:l})}function Jg(e){e=zo(e);let t=e.type==="hsl"||e.type==="hsla"?zo(WL(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 K9(e,t){const n=Jg(e),r=Jg(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function GL(e,t){return e=zo(e),t=XP(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,vd(e)}function q9(e,t,n){try{return GL(e,t)}catch{return e}}function YP(e,t){if(e=zo(e),t=XP(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 vd(e)}function X9(e,t,n){try{return YP(e,t)}catch{return e}}function QP(e,t){if(e=zo(e),t=XP(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 vd(e)}function Y9(e,t,n){try{return QP(e,t)}catch{return e}}function KL(e,t=.15){return Jg(e)>.5?YP(e,t):QP(e,t)}function Q9(e,t,n){try{return KL(e,t)}catch{return e}}function Z9(e,t,n,r=1){const o=(l,u)=>Math.round((l**(1/r)*(1-n)+u**(1/r)*n)**r),i=zo(e),a=zo(t),s=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return vd({type:"rgb",values:s})}const wp={black:"#000",white:"#fff"},J9={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"},hu={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},mu={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Zd={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},gu={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},vu={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},yu={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},eW=["mode","contrastThreshold","tonalOffset"],qk={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:wp.white,default:wp.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}},xx={text:{primary:wp.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:wp.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 Xk(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=Ds(e.main,o):t==="dark"&&(e.dark=js(e.main,i)))}function tW(e="light"){return e==="dark"?{main:gu[200],light:gu[50],dark:gu[400]}:{main:gu[700],light:gu[400],dark:gu[800]}}function nW(e="light"){return e==="dark"?{main:hu[200],light:hu[50],dark:hu[400]}:{main:hu[500],light:hu[300],dark:hu[700]}}function rW(e="light"){return e==="dark"?{main:mu[500],light:mu[300],dark:mu[700]}:{main:mu[700],light:mu[400],dark:mu[800]}}function oW(e="light"){return e==="dark"?{main:vu[400],light:vu[300],dark:vu[700]}:{main:vu[700],light:vu[500],dark:vu[900]}}function iW(e="light"){return e==="dark"?{main:yu[400],light:yu[300],dark:yu[700]}:{main:yu[800],light:yu[500],dark:yu[900]}}function aW(e="light"){return e==="dark"?{main:Zd[400],light:Zd[300],dark:Zd[700]}:{main:"#ed6c02",light:Zd[500],dark:Zd[900]}}function sW(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=Q(e,eW),i=e.primary||tW(t),a=e.secondary||nW(t),s=e.error||rW(t),l=e.info||oW(t),u=e.success||iW(t),c=e.warning||aW(t);function d(m){return H9(m,xx.text.primary)>=n?xx.text.primary:qk.text.primary}const f=({color:m,name:y,mainShade:b=500,lightShade:x=300,darkShade:w=700})=>{if(m=P({},m),!m.main&&m[b]&&(m.main=m[b]),!m.hasOwnProperty("main"))throw new Error(Ta(11,y?` (${y})`:"",b));if(typeof m.main!="string")throw new Error(Ta(12,y?` (${y})`:"",JSON.stringify(m.main)));return Xk(m,"light",x,r),Xk(m,"dark",w,r),m.contrastText||(m.contrastText=d(m.main)),m},h={dark:xx,light:qk};return Pr(P({common:P({},wp),mode:t,primary:f({color:i,name:"primary"}),secondary:f({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:s,name:"error"}),warning:f({color:c,name:"warning"}),info:f({color:l,name:"info"}),success:f({color:u,name:"success"}),grey:J9,contrastThreshold:n,getContrastText:d,augmentColor:f,tonalOffset:r},h[t]),o)}const lW=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function uW(e){return Math.round(e*1e5)/1e5}const Yk={textTransform:"uppercase"},Qk='"Roboto", "Helvetica", "Arial", sans-serif';function cW(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=Qk,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,f=Q(n,lW),h=o/14,p=d||(b=>`${b/u*h}rem`),m=(b,x,w,S,O)=>P({fontFamily:r,fontWeight:b,fontSize:p(x),lineHeight:w},r===Qk?{letterSpacing:`${uW(S/x)}em`}:{},O,c),y={h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(s,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(s,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(s,14,1.75,.4,Yk),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,Yk),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Pr(P({htmlFontSize:u,pxToRem:p,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},y),f,{clone:!1})}const dW=.2,fW=.14,pW=.12;function Zt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${dW})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${fW})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${pW})`].join(",")}const hW=["none",Zt(0,2,1,-1,0,1,1,0,0,1,3,0),Zt(0,3,1,-2,0,2,2,0,0,1,5,0),Zt(0,3,3,-2,0,3,4,0,0,1,8,0),Zt(0,2,4,-1,0,4,5,0,0,1,10,0),Zt(0,3,5,-1,0,5,8,0,0,1,14,0),Zt(0,3,5,-1,0,6,10,0,0,1,18,0),Zt(0,4,5,-2,0,7,10,1,0,2,16,1),Zt(0,5,5,-3,0,8,10,1,0,3,14,2),Zt(0,5,6,-3,0,9,12,1,0,3,16,2),Zt(0,6,6,-3,0,10,14,1,0,4,18,3),Zt(0,6,7,-4,0,11,15,1,0,4,20,3),Zt(0,7,8,-4,0,12,17,2,0,5,22,4),Zt(0,7,8,-4,0,13,19,2,0,5,24,4),Zt(0,7,9,-4,0,14,21,2,0,5,26,4),Zt(0,8,9,-5,0,15,22,2,0,6,28,5),Zt(0,8,10,-5,0,16,24,2,0,6,30,5),Zt(0,8,11,-5,0,17,26,2,0,6,32,5),Zt(0,9,11,-5,0,18,28,2,0,7,34,6),Zt(0,9,12,-6,0,19,29,2,0,7,36,6),Zt(0,10,13,-6,0,20,31,3,0,8,38,7),Zt(0,10,13,-6,0,21,33,3,0,8,40,7),Zt(0,10,14,-6,0,22,35,3,0,8,42,7),Zt(0,11,14,-7,0,23,36,3,0,9,44,8),Zt(0,11,15,-7,0,24,38,3,0,9,46,8)],mW=["duration","easing","delay"],gW={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)"},vW={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Zk(e){return`${Math.round(e)}ms`}function yW(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function bW(e){const t=P({},gW,e.easing),n=P({},vW,e.duration);return P({getAutoHeightDuration:yW,create:(o=["all"],i={})=>{const{duration:a=n.standard,easing:s=t.easeInOut,delay:l=0}=i;return Q(i,mW),(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof a=="string"?a:Zk(a)} ${s} ${typeof l=="string"?l:Zk(l)}`).join(",")}},e,{easing:t,duration:n})}const xW={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},wW=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function ZP(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=Q(e,wW);if(e.vars&&e.generateCssVars===void 0)throw new Error(Ta(18));const s=sW(r),l=kh(e);let u=Pr(l,{mixins:N9(l.breakpoints,n),palette:s,shadows:hW.slice(),typography:cW(s,i),transitions:bW(o),zIndex:P({},xW)});return u=Pr(u,a),u=t.reduce((c,d)=>Pr(c,d),u),u.unstable_sxConfig=P({},Eh,a==null?void 0:a.unstable_sxConfig),u.unstable_sx=function(d){return md({sx:d,theme:this})},u}function CW(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function SW(e){return parseFloat(e)}const wb=ZP();function mr(){const e=lb(wb);return e[Vl]||e}function PW({props:e,name:t}){return ML({props:e,name:t,defaultTheme:wb,themeId:Vl})}var Mh={},wx={exports:{}},Jk;function OW(){return Jk||(Jk=1,function(e){function t(n,r){if(n==null)return{};var o={};for(var i in n)if({}.hasOwnProperty.call(n,i)){if(r.indexOf(i)!==-1)continue;o[i]=n[i]}return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(wx)),wx.exports}const qL=Fs(D8),$W=Fs(L8),EW=Fs(U8),kW=Fs(VV),IW=Fs(TV),TW=Fs(jV);var yd=zL;Object.defineProperty(Mh,"__esModule",{value:!0});var MW=Mh.default=VW;Mh.shouldForwardProp=fg;Mh.systemDefaultTheme=void 0;var So=yd(pL()),h1=yd(OW()),ev=FW(qL),_W=$W;yd(EW);yd(kW);var AW=yd(IW),RW=yd(TW);const jW=["ownerState"],DW=["variants"],LW=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function XL(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(XL=function(r){return r?n:t})(e)}function FW(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=XL(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function NW(e){return Object.keys(e).length===0}function BW(e){return typeof e=="string"&&e.charCodeAt(0)>96}function fg(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function eI(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const zW=Mh.systemDefaultTheme=(0,AW.default)(),HW=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function xm({defaultTheme:e,theme:t,themeId:n}){return NW(t)?e:t[n]||t}function UW(e){return e?(t,n)=>n[e]:null}function pg(e,t,n){let{ownerState:r}=t,o=(0,h1.default)(t,jW);const i=typeof e=="function"?e((0,So.default)({ownerState:r},o)):e;if(Array.isArray(i))return i.flatMap(a=>pg(a,(0,So.default)({ownerState:r},o),n));if(i&&typeof i=="object"&&Array.isArray(i.variants)){const{variants:a=[]}=i;let l=(0,h1.default)(i,DW);return a.forEach(u=>{let c=!0;if(typeof u.props=="function"?c=u.props((0,So.default)({ownerState:r},o,r)):Object.keys(u.props).forEach(d=>{(r==null?void 0:r[d])!==u.props[d]&&o[d]!==u.props[d]&&(c=!1)}),c){Array.isArray(l)||(l=[l]);const d=typeof u.style=="function"?u.style((0,So.default)({ownerState:r},o,r)):u.style;l.push(n?eI((0,ev.internal_serializeStyles)(d),n):d)}}),l}return n?eI((0,ev.internal_serializeStyles)(i),n):i}function VW(e={}){const{themeId:t,defaultTheme:n=zW,rootShouldForwardProp:r=fg,slotShouldForwardProp:o=fg}=e,i=a=>(0,RW.default)((0,So.default)({},a,{theme:xm((0,So.default)({},a,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(a,s={})=>{(0,ev.internal_processStyles)(a,C=>C.filter($=>!($!=null&&$.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:c,skipSx:d,overridesResolver:f=UW(HW(u))}=s,h=(0,h1.default)(s,LW),p=l&&l.startsWith("Mui")||u?"components":"custom",m=c!==void 0?c:u&&u!=="Root"&&u!=="root"||!1,y=d||!1;let b,x=fg;u==="Root"||u==="root"?x=r:u?x=o:BW(a)&&(x=void 0);const w=(0,ev.default)(a,(0,So.default)({shouldForwardProp:x,label:b},h)),S=C=>typeof C=="function"&&C.__emotion_real!==C||(0,_W.isPlainObject)(C)?$=>{const E=xm({theme:$.theme,defaultTheme:n,themeId:t});return pg(C,(0,So.default)({},$,{theme:E}),E.modularCssLayers?p:void 0)}:C,O=(C,...$)=>{let E=S(C);const M=$?$.map(S):[];l&&f&&M.push(j=>{const R=xm((0,So.default)({},j,{defaultTheme:n,themeId:t}));if(!R.components||!R.components[l]||!R.components[l].styleOverrides)return null;const I=R.components[l].styleOverrides,k={};return Object.entries(I).forEach(([D,F])=>{k[D]=pg(F,(0,So.default)({},j,{theme:R}),R.modularCssLayers?"theme":void 0)}),f(j,k)}),l&&!m&&M.push(j=>{var R;const I=xm((0,So.default)({},j,{defaultTheme:n,themeId:t})),k=I==null||(R=I.components)==null||(R=R[l])==null?void 0:R.variants;return pg({variants:k},(0,So.default)({},j,{theme:I}),I.modularCssLayers?"theme":void 0)}),y||M.push(i);const _=M.length-$.length;if(Array.isArray(C)&&_>0){const j=new Array(_).fill("");E=[...C,...j],E.raw=[...C.raw,...j]}const A=w(E,...M);return a.muiName&&(A.muiName=a.muiName),A};return w.withConfig&&(O.withConfig=w.withConfig),O}}function Cb(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const gr=e=>Cb(e)&&e!=="classes",ne=MW({themeId:Vl,defaultTheme:wb,rootShouldForwardProp:gr}),WW=["theme"];function GW(e){let{theme:t}=e,n=Q(e,WW);const r=t[Vl];let o=r||t;return typeof t!="function"&&(r&&!r.vars?o=P({},r,{vars:null}):t&&!t.vars&&(o=P({},t,{vars:null}))),g.jsx(I9,P({},n,{themeId:r?Vl:void 0,theme:o}))}const tI=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function He(e){return E9(e)}function YL(e){return g.jsx(OL,P({},e,{defaultTheme:wb,themeId:Vl}))}const KW=(e,t)=>P({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),qW=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}}),XW=(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:KW(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:P({margin:0},qW(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 YW(e){const t=He({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return g.jsxs(v.Fragment,{children:[g.jsx(YL,{styles:o=>XW(o,r)}),n]})}var bd=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},QW={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},rs,ES,mR,ZW=(mR=class{constructor(){qe(this,rs,QW);qe(this,ES,!1)}setTimeoutProvider(e){_e(this,rs,e)}setTimeout(e,t){return H(this,rs).setTimeout(e,t)}clearTimeout(e){H(this,rs).clearTimeout(e)}setInterval(e,t){return H(this,rs).setInterval(e,t)}clearInterval(e){H(this,rs).clearInterval(e)}},rs=new WeakMap,ES=new WeakMap,mR),ul=new ZW;function JW(e){setTimeout(e,0)}var Gl=typeof window>"u"||"Deno"in globalThis;function br(){}function eG(e,t){return typeof e=="function"?e(t):e}function m1(e){return typeof e=="number"&&e>=0&&e!==1/0}function QL(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Ts(e,t){return typeof e=="function"?e(t):e}function Eo(e,t){return typeof e=="function"?e(t):e}function nI(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:a,stale:s}=e;if(a){if(r){if(t.queryHash!==JP(a,t.options))return!1}else if(!Cp(t.queryKey,a))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||o&&o!==t.state.fetchStatus||i&&!i(t))}function rI(e,t){const{exact:n,status:r,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(Kl(t.options.mutationKey)!==Kl(i))return!1}else if(!Cp(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function JP(e,t){return((t==null?void 0:t.queryKeyHashFn)||Kl)(e)}function Kl(e){return JSON.stringify(e,(t,n)=>g1(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function Cp(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Cp(e[n],t[n])):!1}var tG=Object.prototype.hasOwnProperty;function ZL(e,t,n=0){if(e===t)return e;if(n>500)return t;const r=oI(e)&&oI(t);if(!r&&!(g1(e)&&g1(t)))return t;const i=(r?e:Object.keys(e)).length,a=r?t:Object.keys(t),s=a.length,l=r?new Array(s):{};let u=0;for(let c=0;c{ul.setTimeout(t,e)})}function v1(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?ZL(e,t):t}function rG(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function oG(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var eO=Symbol();function JL(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===eO?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function tO(e,t){return typeof e=="function"?e(...t):!!e}function iG(e,t,n){let r=!1,o;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(o??(o=t()),r||(r=!0,o.aborted?n():o.addEventListener("abort",n,{once:!0})),o)}),e}var vl,os,dc,gR,aG=(gR=class extends bd{constructor(){super();qe(this,vl);qe(this,os);qe(this,dc);_e(this,dc,t=>{if(!Gl&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){H(this,os)||this.setEventListener(H(this,dc))}onUnsubscribe(){var t;this.hasListeners()||((t=H(this,os))==null||t.call(this),_e(this,os,void 0))}setEventListener(t){var n;_e(this,dc,t),(n=H(this,os))==null||n.call(this),_e(this,os,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){H(this,vl)!==t&&(_e(this,vl,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof H(this,vl)=="boolean"?H(this,vl):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},vl=new WeakMap,os=new WeakMap,dc=new WeakMap,gR),nO=new aG;function y1(){let e,t;const n=new Promise((o,i)=>{e=o,t=i});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}var sG=JW;function lG(){let e=[],t=0,n=s=>{s()},r=s=>{s()},o=sG;const i=s=>{t?e.push(s):o(()=>{n(s)})},a=()=>{const s=e;e=[],s.length&&o(()=>{r(()=>{s.forEach(l=>{n(l)})})})};return{batch:s=>{let l;t++;try{l=s()}finally{t--,t||a()}return l},batchCalls:s=>(...l)=>{i(()=>{s(...l)})},schedule:i,setNotifyFunction:s=>{n=s},setBatchNotifyFunction:s=>{r=s},setScheduler:s=>{o=s}}}var Tn=lG(),fc,is,pc,vR,uG=(vR=class extends bd{constructor(){super();qe(this,fc,!0);qe(this,is);qe(this,pc);_e(this,pc,t=>{if(!Gl&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){H(this,is)||this.setEventListener(H(this,pc))}onUnsubscribe(){var t;this.hasListeners()||((t=H(this,is))==null||t.call(this),_e(this,is,void 0))}setEventListener(t){var n;_e(this,pc,t),(n=H(this,is))==null||n.call(this),_e(this,is,t(this.setOnline.bind(this)))}setOnline(t){H(this,fc)!==t&&(_e(this,fc,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return H(this,fc)}},fc=new WeakMap,is=new WeakMap,pc=new WeakMap,vR),nv=new uG;function cG(e){return Math.min(1e3*2**e,3e4)}function eF(e){return(e??"online")==="online"?nv.isOnline():!0}var b1=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function tF(e){let t=!1,n=0,r;const o=y1(),i=()=>o.status!=="pending",a=m=>{var y;if(!i()){const b=new b1(m);f(b),(y=e.onCancel)==null||y.call(e,b)}},s=()=>{t=!0},l=()=>{t=!1},u=()=>nO.isFocused()&&(e.networkMode==="always"||nv.isOnline())&&e.canRun(),c=()=>eF(e.networkMode)&&e.canRun(),d=m=>{i()||(r==null||r(),o.resolve(m))},f=m=>{i()||(r==null||r(),o.reject(m))},h=()=>new Promise(m=>{var y;r=b=>{(i()||u())&&m(b)},(y=e.onPause)==null||y.call(e)}).then(()=>{var m;r=void 0,i()||(m=e.onContinue)==null||m.call(e)}),p=()=>{if(i())return;let m;const y=n===0?e.initialPromise:void 0;try{m=y??e.fn()}catch(b){m=Promise.reject(b)}Promise.resolve(m).then(d).catch(b=>{var C;if(i())return;const x=e.retry??(Gl?0:3),w=e.retryDelay??cG,S=typeof w=="function"?w(n,b):w,O=x===!0||typeof x=="number"&&nu()?void 0:h()).then(()=>{t?f(b):p()})})};return{promise:o,status:()=>o.status,cancel:a,continue:()=>(r==null||r(),o),cancelRetry:s,continueRetry:l,canStart:c,start:()=>(c()?p():h().then(p),o)}}var yl,yR,nF=(yR=class{constructor(){qe(this,yl)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),m1(this.gcTime)&&_e(this,yl,ul.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Gl?1/0:5*60*1e3))}clearGcTimeout(){H(this,yl)&&(ul.clearTimeout(H(this,yl)),_e(this,yl,void 0))}},yl=new WeakMap,yR),bl,hc,Co,xl,Ln,ph,wl,ni,ra,bR,dG=(bR=class extends nF{constructor(t){super();qe(this,ni);qe(this,bl);qe(this,hc);qe(this,Co);qe(this,xl);qe(this,Ln);qe(this,ph);qe(this,wl);_e(this,wl,!1),_e(this,ph,t.defaultOptions),this.setOptions(t.options),this.observers=[],_e(this,xl,t.client),_e(this,Co,H(this,xl).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,_e(this,bl,sI(this.options)),this.state=t.state??H(this,bl),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=H(this,Ln))==null?void 0:t.promise}setOptions(t){if(this.options={...H(this,ph),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=sI(this.options);n.data!==void 0&&(this.setState(aI(n.data,n.dataUpdatedAt)),_e(this,bl,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&H(this,Co).remove(this)}setData(t,n){const r=v1(this.state.data,t,this.options);return at(this,ni,ra).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){at(this,ni,ra).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,o;const n=(r=H(this,Ln))==null?void 0:r.promise;return(o=H(this,Ln))==null||o.cancel(t),n?n.then(br).catch(br):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(H(this,bl))}isActive(){return this.observers.some(t=>Eo(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===eO||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Ts(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!QL(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=H(this,Ln))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=H(this,Ln))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),H(this,Co).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(H(this,Ln)&&(H(this,wl)?H(this,Ln).cancel({revert:!0}):H(this,Ln).cancelRetry()),this.scheduleGc()),H(this,Co).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||at(this,ni,ra).call(this,{type:"invalidate"})}async fetch(t,n){var l,u,c,d,f,h,p,m,y,b,x,w;if(this.state.fetchStatus!=="idle"&&((l=H(this,Ln))==null?void 0:l.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(H(this,Ln))return H(this,Ln).continueRetry(),H(this,Ln).promise}if(t&&this.setOptions(t),!this.options.queryFn){const S=this.observers.find(O=>O.options.queryFn);S&&this.setOptions(S.options)}const r=new AbortController,o=S=>{Object.defineProperty(S,"signal",{enumerable:!0,get:()=>(_e(this,wl,!0),r.signal)})},i=()=>{const S=JL(this.options,n),C=(()=>{const $={client:H(this,xl),queryKey:this.queryKey,meta:this.meta};return o($),$})();return _e(this,wl,!1),this.options.persister?this.options.persister(S,C,this):S(C)},s=(()=>{const S={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:H(this,xl),state:this.state,fetchFn:i};return o(S),S})();(u=this.options.behavior)==null||u.onFetch(s,this),_e(this,hc,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((c=s.fetchOptions)==null?void 0:c.meta))&&at(this,ni,ra).call(this,{type:"fetch",meta:(d=s.fetchOptions)==null?void 0:d.meta}),_e(this,Ln,tF({initialPromise:n==null?void 0:n.initialPromise,fn:s.fetchFn,onCancel:S=>{S instanceof b1&&S.revert&&this.setState({...H(this,hc),fetchStatus:"idle"}),r.abort()},onFail:(S,O)=>{at(this,ni,ra).call(this,{type:"failed",failureCount:S,error:O})},onPause:()=>{at(this,ni,ra).call(this,{type:"pause"})},onContinue:()=>{at(this,ni,ra).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0}));try{const S=await H(this,Ln).start();if(S===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(S),(h=(f=H(this,Co).config).onSuccess)==null||h.call(f,S,this),(m=(p=H(this,Co).config).onSettled)==null||m.call(p,S,this.state.error,this),S}catch(S){if(S instanceof b1){if(S.silent)return H(this,Ln).promise;if(S.revert){if(this.state.data===void 0)throw S;return this.state.data}}throw at(this,ni,ra).call(this,{type:"error",error:S}),(b=(y=H(this,Co).config).onError)==null||b.call(y,S,this),(w=(x=H(this,Co).config).onSettled)==null||w.call(x,this.state.data,S,this),S}finally{this.scheduleGc()}}},bl=new WeakMap,hc=new WeakMap,Co=new WeakMap,xl=new WeakMap,Ln=new WeakMap,ph=new WeakMap,wl=new WeakMap,ni=new WeakSet,ra=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...rF(r.data,this.options),fetchMeta:t.meta??null};case"success":const o={...r,...aI(t.data,t.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return _e(this,hc,t.manual?o:void 0),o;case"error":const i=t.error;return{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Tn.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),H(this,Co).notify({query:this,type:"updated",action:t})})},bR);function rF(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:eF(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function aI(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function sI(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Tr,mt,hh,vr,Cl,mc,ua,as,mh,gc,vc,Sl,Pl,ss,yc,kt,Sf,x1,w1,C1,S1,P1,O1,$1,oF,xR,fG=(xR=class extends bd{constructor(t,n){super();qe(this,kt);qe(this,Tr);qe(this,mt);qe(this,hh);qe(this,vr);qe(this,Cl);qe(this,mc);qe(this,ua);qe(this,as);qe(this,mh);qe(this,gc);qe(this,vc);qe(this,Sl);qe(this,Pl);qe(this,ss);qe(this,yc,new Set);this.options=n,_e(this,Tr,t),_e(this,as,null),_e(this,ua,y1()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(H(this,mt).addObserver(this),lI(H(this,mt),this.options)?at(this,kt,Sf).call(this):this.updateResult(),at(this,kt,S1).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return E1(H(this,mt),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return E1(H(this,mt),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,at(this,kt,P1).call(this),at(this,kt,O1).call(this),H(this,mt).removeObserver(this)}setOptions(t){const n=this.options,r=H(this,mt);if(this.options=H(this,Tr).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Eo(this.options.enabled,H(this,mt))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");at(this,kt,$1).call(this),H(this,mt).setOptions(this.options),n._defaulted&&!tv(this.options,n)&&H(this,Tr).getQueryCache().notify({type:"observerOptionsUpdated",query:H(this,mt),observer:this});const o=this.hasListeners();o&&uI(H(this,mt),r,this.options,n)&&at(this,kt,Sf).call(this),this.updateResult(),o&&(H(this,mt)!==r||Eo(this.options.enabled,H(this,mt))!==Eo(n.enabled,H(this,mt))||Ts(this.options.staleTime,H(this,mt))!==Ts(n.staleTime,H(this,mt)))&&at(this,kt,x1).call(this);const i=at(this,kt,w1).call(this);o&&(H(this,mt)!==r||Eo(this.options.enabled,H(this,mt))!==Eo(n.enabled,H(this,mt))||i!==H(this,ss))&&at(this,kt,C1).call(this,i)}getOptimisticResult(t){const n=H(this,Tr).getQueryCache().build(H(this,Tr),t),r=this.createResult(n,t);return hG(this,r)&&(_e(this,vr,r),_e(this,mc,this.options),_e(this,Cl,H(this,mt).state)),r}getCurrentResult(){return H(this,vr)}trackResult(t,n){return new Proxy(t,{get:(r,o)=>(this.trackProp(o),n==null||n(o),o==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&H(this,ua).status==="pending"&&H(this,ua).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,o))})}trackProp(t){H(this,yc).add(t)}getCurrentQuery(){return H(this,mt)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=H(this,Tr).defaultQueryOptions(t),r=H(this,Tr).getQueryCache().build(H(this,Tr),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return at(this,kt,Sf).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),H(this,vr)))}createResult(t,n){var M;const r=H(this,mt),o=this.options,i=H(this,vr),a=H(this,Cl),s=H(this,mc),u=t!==r?t.state:H(this,hh),{state:c}=t;let d={...c},f=!1,h;if(n._optimisticResults){const _=this.hasListeners(),A=!_&&lI(t,n),j=_&&uI(t,r,n,o);(A||j)&&(d={...d,...rF(c.data,t.options)}),n._optimisticResults==="isRestoring"&&(d.fetchStatus="idle")}let{error:p,errorUpdatedAt:m,status:y}=d;h=d.data;let b=!1;if(n.placeholderData!==void 0&&h===void 0&&y==="pending"){let _;i!=null&&i.isPlaceholderData&&n.placeholderData===(s==null?void 0:s.placeholderData)?(_=i.data,b=!0):_=typeof n.placeholderData=="function"?n.placeholderData((M=H(this,vc))==null?void 0:M.state.data,H(this,vc)):n.placeholderData,_!==void 0&&(y="success",h=v1(i==null?void 0:i.data,_,n),f=!0)}if(n.select&&h!==void 0&&!b)if(i&&h===(a==null?void 0:a.data)&&n.select===H(this,mh))h=H(this,gc);else try{_e(this,mh,n.select),h=n.select(h),h=v1(i==null?void 0:i.data,h,n),_e(this,gc,h),_e(this,as,null)}catch(_){_e(this,as,_)}H(this,as)&&(p=H(this,as),h=H(this,gc),m=Date.now(),y="error");const x=d.fetchStatus==="fetching",w=y==="pending",S=y==="error",O=w&&x,C=h!==void 0,E={status:y,fetchStatus:d.fetchStatus,isPending:w,isSuccess:y==="success",isError:S,isInitialLoading:O,isLoading:O,data:h,dataUpdatedAt:d.dataUpdatedAt,error:p,errorUpdatedAt:m,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>u.dataUpdateCount||d.errorUpdateCount>u.errorUpdateCount,isFetching:x,isRefetching:x&&!w,isLoadingError:S&&!C,isPaused:d.fetchStatus==="paused",isPlaceholderData:f,isRefetchError:S&&C,isStale:rO(t,n),refetch:this.refetch,promise:H(this,ua),isEnabled:Eo(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const _=E.data!==void 0,A=E.status==="error"&&!_,j=k=>{A?k.reject(E.error):_&&k.resolve(E.data)},R=()=>{const k=_e(this,ua,E.promise=y1());j(k)},I=H(this,ua);switch(I.status){case"pending":t.queryHash===r.queryHash&&j(I);break;case"fulfilled":(A||E.data!==I.value)&&R();break;case"rejected":(!A||E.error!==I.reason)&&R();break}}return E}updateResult(){const t=H(this,vr),n=this.createResult(H(this,mt),this.options);if(_e(this,Cl,H(this,mt).state),_e(this,mc,this.options),H(this,Cl).data!==void 0&&_e(this,vc,H(this,mt)),tv(n,t))return;_e(this,vr,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:o}=this.options,i=typeof o=="function"?o():o;if(i==="all"||!i&&!H(this,yc).size)return!0;const a=new Set(i??H(this,yc));return this.options.throwOnError&&a.add("error"),Object.keys(H(this,vr)).some(s=>{const l=s;return H(this,vr)[l]!==t[l]&&a.has(l)})};at(this,kt,oF).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&at(this,kt,S1).call(this)}},Tr=new WeakMap,mt=new WeakMap,hh=new WeakMap,vr=new WeakMap,Cl=new WeakMap,mc=new WeakMap,ua=new WeakMap,as=new WeakMap,mh=new WeakMap,gc=new WeakMap,vc=new WeakMap,Sl=new WeakMap,Pl=new WeakMap,ss=new WeakMap,yc=new WeakMap,kt=new WeakSet,Sf=function(t){at(this,kt,$1).call(this);let n=H(this,mt).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(br)),n},x1=function(){at(this,kt,P1).call(this);const t=Ts(this.options.staleTime,H(this,mt));if(Gl||H(this,vr).isStale||!m1(t))return;const r=QL(H(this,vr).dataUpdatedAt,t)+1;_e(this,Sl,ul.setTimeout(()=>{H(this,vr).isStale||this.updateResult()},r))},w1=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(H(this,mt)):this.options.refetchInterval)??!1},C1=function(t){at(this,kt,O1).call(this),_e(this,ss,t),!(Gl||Eo(this.options.enabled,H(this,mt))===!1||!m1(H(this,ss))||H(this,ss)===0)&&_e(this,Pl,ul.setInterval(()=>{(this.options.refetchIntervalInBackground||nO.isFocused())&&at(this,kt,Sf).call(this)},H(this,ss)))},S1=function(){at(this,kt,x1).call(this),at(this,kt,C1).call(this,at(this,kt,w1).call(this))},P1=function(){H(this,Sl)&&(ul.clearTimeout(H(this,Sl)),_e(this,Sl,void 0))},O1=function(){H(this,Pl)&&(ul.clearInterval(H(this,Pl)),_e(this,Pl,void 0))},$1=function(){const t=H(this,Tr).getQueryCache().build(H(this,Tr),this.options);if(t===H(this,mt))return;const n=H(this,mt);_e(this,mt,t),_e(this,hh,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},oF=function(t){Tn.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(H(this,vr))}),H(this,Tr).getQueryCache().notify({query:H(this,mt),type:"observerResultsUpdated"})})},xR);function pG(e,t){return Eo(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function lI(e,t){return pG(e,t)||e.state.data!==void 0&&E1(e,t,t.refetchOnMount)}function E1(e,t,n){if(Eo(t.enabled,e)!==!1&&Ts(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&rO(e,t)}return!1}function uI(e,t,n,r){return(e!==t||Eo(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&rO(e,n)}function rO(e,t){return Eo(t.enabled,e)!==!1&&e.isStaleByTime(Ts(t.staleTime,e))}function hG(e,t){return!tv(e.getCurrentResult(),t)}function cI(e){return{onFetch:(t,n)=>{var c,d,f,h,p;const r=t.options,o=(f=(d=(c=t.fetchOptions)==null?void 0:c.meta)==null?void 0:d.fetchMore)==null?void 0:f.direction,i=((h=t.state.data)==null?void 0:h.pages)||[],a=((p=t.state.data)==null?void 0:p.pageParams)||[];let s={pages:[],pageParams:[]},l=0;const u=async()=>{let m=!1;const y=w=>{iG(w,()=>t.signal,()=>m=!0)},b=JL(t.options,t.fetchOptions),x=async(w,S,O)=>{if(m)return Promise.reject();if(S==null&&w.pages.length)return Promise.resolve(w);const $=(()=>{const A={client:t.client,queryKey:t.queryKey,pageParam:S,direction:O?"backward":"forward",meta:t.options.meta};return y(A),A})(),E=await b($),{maxPages:M}=t.options,_=O?oG:rG;return{pages:_(w.pages,E,M),pageParams:_(w.pageParams,S,M)}};if(o&&i.length){const w=o==="backward",S=w?mG:dI,O={pages:i,pageParams:a},C=S(r,O);s=await x(O,C,w)}else{const w=e??i.length;do{const S=l===0?a[0]??r.initialPageParam:dI(r,s);if(l>0&&S==null)break;s=await x(s,S),l++}while(l{var m,y;return(y=(m=t.options).persister)==null?void 0:y.call(m,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function dI(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function mG(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var gh,Mi,sr,Ol,_i,Wa,wR,gG=(wR=class extends nF{constructor(t){super();qe(this,_i);qe(this,gh);qe(this,Mi);qe(this,sr);qe(this,Ol);_e(this,gh,t.client),this.mutationId=t.mutationId,_e(this,sr,t.mutationCache),_e(this,Mi,[]),this.state=t.state||iF(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){H(this,Mi).includes(t)||(H(this,Mi).push(t),this.clearGcTimeout(),H(this,sr).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){_e(this,Mi,H(this,Mi).filter(n=>n!==t)),this.scheduleGc(),H(this,sr).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){H(this,Mi).length||(this.state.status==="pending"?this.scheduleGc():H(this,sr).remove(this))}continue(){var t;return((t=H(this,Ol))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var a,s,l,u,c,d,f,h,p,m,y,b,x,w,S,O,C,$;const n=()=>{at(this,_i,Wa).call(this,{type:"continue"})},r={client:H(this,gh),meta:this.options.meta,mutationKey:this.options.mutationKey};_e(this,Ol,tF({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(E,M)=>{at(this,_i,Wa).call(this,{type:"failed",failureCount:E,error:M})},onPause:()=>{at(this,_i,Wa).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>H(this,sr).canRun(this)}));const o=this.state.status==="pending",i=!H(this,Ol).canStart();try{if(o)n();else{at(this,_i,Wa).call(this,{type:"pending",variables:t,isPaused:i}),H(this,sr).config.onMutate&&await H(this,sr).config.onMutate(t,this,r);const M=await((s=(a=this.options).onMutate)==null?void 0:s.call(a,t,r));M!==this.state.context&&at(this,_i,Wa).call(this,{type:"pending",context:M,variables:t,isPaused:i})}const E=await H(this,Ol).start();return await((u=(l=H(this,sr).config).onSuccess)==null?void 0:u.call(l,E,t,this.state.context,this,r)),await((d=(c=this.options).onSuccess)==null?void 0:d.call(c,E,t,this.state.context,r)),await((h=(f=H(this,sr).config).onSettled)==null?void 0:h.call(f,E,null,this.state.variables,this.state.context,this,r)),await((m=(p=this.options).onSettled)==null?void 0:m.call(p,E,null,t,this.state.context,r)),at(this,_i,Wa).call(this,{type:"success",data:E}),E}catch(E){try{await((b=(y=H(this,sr).config).onError)==null?void 0:b.call(y,E,t,this.state.context,this,r))}catch(M){Promise.reject(M)}try{await((w=(x=this.options).onError)==null?void 0:w.call(x,E,t,this.state.context,r))}catch(M){Promise.reject(M)}try{await((O=(S=H(this,sr).config).onSettled)==null?void 0:O.call(S,void 0,E,this.state.variables,this.state.context,this,r))}catch(M){Promise.reject(M)}try{await(($=(C=this.options).onSettled)==null?void 0:$.call(C,void 0,E,t,this.state.context,r))}catch(M){Promise.reject(M)}throw at(this,_i,Wa).call(this,{type:"error",error:E}),E}finally{H(this,sr).runNext(this)}}},gh=new WeakMap,Mi=new WeakMap,sr=new WeakMap,Ol=new WeakMap,_i=new WeakSet,Wa=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Tn.batch(()=>{H(this,Mi).forEach(r=>{r.onMutationUpdate(t)}),H(this,sr).notify({mutation:this,type:"updated",action:t})})},wR);function iF(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var ca,ri,vh,CR,vG=(CR=class extends bd{constructor(t={}){super();qe(this,ca);qe(this,ri);qe(this,vh);this.config=t,_e(this,ca,new Set),_e(this,ri,new Map),_e(this,vh,0)}build(t,n,r){const o=new gG({client:t,mutationCache:this,mutationId:++Zh(this,vh)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){H(this,ca).add(t);const n=wm(t);if(typeof n=="string"){const r=H(this,ri).get(n);r?r.push(t):H(this,ri).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(H(this,ca).delete(t)){const n=wm(t);if(typeof n=="string"){const r=H(this,ri).get(n);if(r)if(r.length>1){const o=r.indexOf(t);o!==-1&&r.splice(o,1)}else r[0]===t&&H(this,ri).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=wm(t);if(typeof n=="string"){const r=H(this,ri).get(n),o=r==null?void 0:r.find(i=>i.state.status==="pending");return!o||o===t}else return!0}runNext(t){var r;const n=wm(t);if(typeof n=="string"){const o=(r=H(this,ri).get(n))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Tn.batch(()=>{H(this,ca).forEach(t=>{this.notify({type:"removed",mutation:t})}),H(this,ca).clear(),H(this,ri).clear()})}getAll(){return Array.from(H(this,ca))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>rI(n,r))}findAll(t={}){return this.getAll().filter(n=>rI(t,n))}notify(t){Tn.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Tn.batch(()=>Promise.all(t.map(n=>n.continue().catch(br))))}},ca=new WeakMap,ri=new WeakMap,vh=new WeakMap,CR);function wm(e){var t;return(t=e.options.scope)==null?void 0:t.id}var da,ls,Mr,fa,Oa,hg,k1,SR,yG=(SR=class extends bd{constructor(n,r){super();qe(this,Oa);qe(this,da);qe(this,ls);qe(this,Mr);qe(this,fa);_e(this,da,n),this.setOptions(r),this.bindMethods(),at(this,Oa,hg).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var o;const r=this.options;this.options=H(this,da).defaultMutationOptions(n),tv(this.options,r)||H(this,da).getMutationCache().notify({type:"observerOptionsUpdated",mutation:H(this,Mr),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&Kl(r.mutationKey)!==Kl(this.options.mutationKey)?this.reset():((o=H(this,Mr))==null?void 0:o.state.status)==="pending"&&H(this,Mr).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=H(this,Mr))==null||n.removeObserver(this)}onMutationUpdate(n){at(this,Oa,hg).call(this),at(this,Oa,k1).call(this,n)}getCurrentResult(){return H(this,ls)}reset(){var n;(n=H(this,Mr))==null||n.removeObserver(this),_e(this,Mr,void 0),at(this,Oa,hg).call(this),at(this,Oa,k1).call(this)}mutate(n,r){var o;return _e(this,fa,r),(o=H(this,Mr))==null||o.removeObserver(this),_e(this,Mr,H(this,da).getMutationCache().build(H(this,da),this.options)),H(this,Mr).addObserver(this),H(this,Mr).execute(n)}},da=new WeakMap,ls=new WeakMap,Mr=new WeakMap,fa=new WeakMap,Oa=new WeakSet,hg=function(){var r;const n=((r=H(this,Mr))==null?void 0:r.state)??iF();_e(this,ls,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},k1=function(n){Tn.batch(()=>{var r,o,i,a,s,l,u,c;if(H(this,fa)&&this.hasListeners()){const d=H(this,ls).variables,f=H(this,ls).context,h={client:H(this,da),meta:this.options.meta,mutationKey:this.options.mutationKey};if((n==null?void 0:n.type)==="success"){try{(o=(r=H(this,fa)).onSuccess)==null||o.call(r,n.data,d,f,h)}catch(p){Promise.reject(p)}try{(a=(i=H(this,fa)).onSettled)==null||a.call(i,n.data,null,d,f,h)}catch(p){Promise.reject(p)}}else if((n==null?void 0:n.type)==="error"){try{(l=(s=H(this,fa)).onError)==null||l.call(s,n.error,d,f,h)}catch(p){Promise.reject(p)}try{(c=(u=H(this,fa)).onSettled)==null||c.call(u,void 0,n.error,d,f,h)}catch(p){Promise.reject(p)}}}this.listeners.forEach(d=>{d(H(this,ls))})})},SR),Ai,PR,bG=(PR=class extends bd{constructor(t={}){super();qe(this,Ai);this.config=t,_e(this,Ai,new Map)}build(t,n,r){const o=n.queryKey,i=n.queryHash??JP(o,n);let a=this.get(i);return a||(a=new dG({client:t,queryKey:o,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(a)),a}add(t){H(this,Ai).has(t.queryHash)||(H(this,Ai).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=H(this,Ai).get(t.queryHash);n&&(t.destroy(),n===t&&H(this,Ai).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Tn.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return H(this,Ai).get(t)}getAll(){return[...H(this,Ai).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>nI(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>nI(t,r)):n}notify(t){Tn.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Tn.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Tn.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Ai=new WeakMap,PR),cn,us,cs,bc,xc,ds,wc,Cc,OR,xG=(OR=class{constructor(e={}){qe(this,cn);qe(this,us);qe(this,cs);qe(this,bc);qe(this,xc);qe(this,ds);qe(this,wc);qe(this,Cc);_e(this,cn,e.queryCache||new bG),_e(this,us,e.mutationCache||new vG),_e(this,cs,e.defaultOptions||{}),_e(this,bc,new Map),_e(this,xc,new Map),_e(this,ds,0)}mount(){Zh(this,ds)._++,H(this,ds)===1&&(_e(this,wc,nO.subscribe(async e=>{e&&(await this.resumePausedMutations(),H(this,cn).onFocus())})),_e(this,Cc,nv.subscribe(async e=>{e&&(await this.resumePausedMutations(),H(this,cn).onOnline())})))}unmount(){var e,t;Zh(this,ds)._--,H(this,ds)===0&&((e=H(this,wc))==null||e.call(this),_e(this,wc,void 0),(t=H(this,Cc))==null||t.call(this),_e(this,Cc,void 0))}isFetching(e){return H(this,cn).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return H(this,us).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=H(this,cn).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=H(this,cn).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Ts(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return H(this,cn).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=H(this,cn).get(r.queryHash),i=o==null?void 0:o.state.data,a=eG(t,i);if(a!==void 0)return H(this,cn).build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return Tn.batch(()=>H(this,cn).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=H(this,cn).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=H(this,cn);Tn.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=H(this,cn);return Tn.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Tn.batch(()=>H(this,cn).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(br).catch(br)}invalidateQueries(e,t={}){return Tn.batch(()=>(H(this,cn).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=Tn.batch(()=>H(this,cn).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let i=o.fetch(void 0,n);return n.throwOnError||(i=i.catch(br)),o.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(br)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=H(this,cn).build(this,t);return n.isStaleByTime(Ts(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(br).catch(br)}fetchInfiniteQuery(e){return e.behavior=cI(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(br).catch(br)}ensureInfiniteQueryData(e){return e.behavior=cI(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return nv.isOnline()?H(this,us).resumePausedMutations():Promise.resolve()}getQueryCache(){return H(this,cn)}getMutationCache(){return H(this,us)}getDefaultOptions(){return H(this,cs)}setDefaultOptions(e){_e(this,cs,e)}setQueryDefaults(e,t){H(this,bc).set(Kl(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...H(this,bc).values()],n={};return t.forEach(r=>{Cp(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){H(this,xc).set(Kl(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...H(this,xc).values()],n={};return t.forEach(r=>{Cp(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...H(this,cs).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=JP(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===eO&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...H(this,cs).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){H(this,cn).clear(),H(this,us).clear()}},cn=new WeakMap,us=new WeakMap,cs=new WeakMap,bc=new WeakMap,xc=new WeakMap,ds=new WeakMap,wc=new WeakMap,Cc=new WeakMap,OR),aF=v.createContext(void 0),iu=e=>{const t=v.useContext(aF);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},wG=({client:e,children:t})=>(v.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),g.jsx(aF.Provider,{value:e,children:t})),sF=v.createContext(!1),CG=()=>v.useContext(sF);sF.Provider;function SG(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var PG=v.createContext(SG()),OG=()=>v.useContext(PG),$G=(e,t,n)=>{const r=n!=null&&n.state.error&&typeof e.throwOnError=="function"?tO(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},EG=e=>{v.useEffect(()=>{e.clearReset()},[e])},kG=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&e.data===void 0||tO(n,[e.error,r])),IG=e=>{if(e.suspense){const n=o=>o==="static"?o:Math.max(o??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...o)=>n(r(...o)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},TG=(e,t)=>e.isLoading&&e.isFetching&&!t,MG=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,fI=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function _G(e,t,n){var f,h,p,m;const r=CG(),o=OG(),i=iu(),a=i.defaultQueryOptions(e);(h=(f=i.getDefaultOptions().queries)==null?void 0:f._experimental_beforeQuery)==null||h.call(f,a);const s=i.getQueryCache().get(a.queryHash);a._optimisticResults=r?"isRestoring":"optimistic",IG(a),$G(a,o,s),EG(o);const l=!i.getQueryCache().get(a.queryHash),[u]=v.useState(()=>new t(i,a)),c=u.getOptimisticResult(a),d=!r&&e.subscribed!==!1;if(v.useSyncExternalStore(v.useCallback(y=>{const b=d?u.subscribe(Tn.batchCalls(y)):br;return u.updateResult(),b},[u,d]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),v.useEffect(()=>{u.setOptions(a)},[a,u]),MG(a,c))throw fI(a,u,o);if(kG({result:c,errorResetBoundary:o,throwOnError:a.throwOnError,query:s,suspense:a.suspense}))throw c.error;if((m=(p=i.getDefaultOptions().queries)==null?void 0:p._experimental_afterQuery)==null||m.call(p,a,c),a.experimental_prefetchInRender&&!Gl&&TG(c,r)){const y=l?fI(a,u,o):s==null?void 0:s.promise;y==null||y.catch(br).finally(()=>{u.updateResult()})}return a.notifyOnChangeProps?c:u.trackResult(c)}function Wr(e,t){return _G(e,fG)}function ql(e,t){const n=iu(),[r]=v.useState(()=>new yG(n,e));v.useEffect(()=>{r.setOptions(e)},[r,e]);const o=v.useSyncExternalStore(v.useCallback(a=>r.subscribe(Tn.batchCalls(a)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),i=v.useCallback((a,s)=>{r.mutate(a,s).catch(br)},[r]);if(o.error&&tO(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:i,mutateAsync:o.mutate}}function AG(e){return Be("MuiSvgIcon",e)}Le("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const RG=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],jG=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${oe(t)}`,`fontSize${oe(n)}`]};return Ce(o,AG,r)},DG=ne("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${oe(n.color)}`],t[`fontSize${oe(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,i,a,s,l,u,c,d,f,h,p;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((i=e.typography)==null||(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:(d=(f=(e.vars||e).palette)==null||(f=f[t.color])==null?void 0:f.main)!=null?d:{action:(h=(e.vars||e).palette)==null||(h=h.action)==null?void 0:h.active,disabled:(p=(e.vars||e).palette)==null||(p=p.action)==null?void 0:p.disabled,inherit:void 0}[t.color]}}),I1=v.forwardRef(function(t,n){const r=He({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:a="inherit",component:s="svg",fontSize:l="medium",htmlColor:u,inheritViewBox:c=!1,titleAccess:d,viewBox:f="0 0 24 24"}=r,h=Q(r,RG),p=v.isValidElement(o)&&o.type==="svg",m=P({},r,{color:a,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:c,viewBox:f,hasSvgAsChild:p}),y={};c||(y.viewBox=f);const b=jG(m);return g.jsxs(DG,P({as:s,className:Y(b.root,i),focusable:"false",color:u,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:n},y,h,p&&o.props,{ownerState:m,children:[p?o.props.children:o,d?g.jsx("title",{children:d}):null]}))});I1.muiName="SvgIcon";function Te(e,t){function n(r,o){return g.jsx(I1,P({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return n.muiName=I1.muiName,v.memo(v.forwardRef(n))}function T1(e,t){return T1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},T1(e,t)}function lF(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,T1(e,t)}const pI={disabled:!1},rv=q.createContext(null);var LG=function(t){return t.scrollTop},Pf="unmounted",el="exited",tl="entering",$u="entered",M1="exiting",wi=function(e){lF(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=el,i.appearStatus=tl):l=$u:r.unmountOnExit||r.mountOnEnter?l=Pf:l=el,i.state={status:l},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var a=o.in;return a&&i.status===Pf?{status:el}: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!==tl&&a!==$u&&(i=tl):(a===tl||a===$u)&&(i=M1)}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===tl){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:vm.findDOMNode(this);a&&LG(a)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===el&&this.setState({status:Pf})},n.performEnter=function(o){var i=this,a=this.props.enter,s=this.context?this.context.isMounting:o,l=this.props.nodeRef?[s]:[vm.findDOMNode(this),s],u=l[0],c=l[1],d=this.getTimeouts(),f=s?d.appear:d.enter;if(!o&&!a||pI.disabled){this.safeSetState({status:$u},function(){i.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:tl},function(){i.props.onEntering(u,c),i.onTransitionEnd(f,function(){i.safeSetState({status:$u},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:vm.findDOMNode(this);if(!i||pI.disabled){this.safeSetState({status:el},function(){o.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:M1},function(){o.props.onExiting(s),o.onTransitionEnd(a.exit,function(){o.safeSetState({status:el},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:vm.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===Pf)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=Q(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return q.createElement(rv.Provider,{value:null},typeof a=="function"?a(o,s):q.cloneElement(q.Children.only(a),s))},t}(q.Component);wi.contextType=rv;wi.propTypes={};function bu(){}wi.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:bu,onEntering:bu,onEntered:bu,onExit:bu,onExiting:bu,onExited:bu};wi.UNMOUNTED=Pf;wi.EXITED=el;wi.ENTERING=tl;wi.ENTERED=$u;wi.EXITING=M1;function FG(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function oO(e,t){var n=function(i){return t&&v.isValidElement(i)?t(i):i},r=Object.create(null);return e&&v.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function NG(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 Mc(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 VG(e){return Be("MuiPaper",e)}Le("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 WG=["className","component","elevation","square","variant"],GG=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,i={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return Ce(i,VG,o)},KG=ne("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(${nt("#fff",tI(t.elevation))}, ${nt("#fff",tI(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),Ft=v.forwardRef(function(t,n){const r=He({props:t,name:"MuiPaper"}),{className:o,component:i="div",elevation:a=1,square:s=!1,variant:l="elevation"}=r,u=Q(r,WG),c=P({},r,{component:i,elevation:a,square:s,variant:l}),d=GG(c);return g.jsx(KG,P({as:i,ownerState:c,className:Y(d.root,o),ref:n},u))}),qG=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],XG=["component","slots","slotProps"],YG=["component"];function hI(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:i,getSlotOwnerState:a,internalForwardedProps:s}=t,l=Q(t,qG),{component:u,slots:c={[e]:void 0},slotProps:d={[e]:void 0}}=i,f=Q(i,XG),h=c[e]||r,p=jL(d[e],o),m=RL(P({className:n},l,{externalForwardedProps:e==="root"?f:void 0,externalSlotProps:p})),{props:{component:y},internalRef:b}=m,x=Q(m.props,YG),w=yt(b,p==null?void 0:p.ref,t.ref),S=a?a(x):{},O=P({},o,S),C=e==="root"?y||u:y,$=Vu(h,P({},e==="root"&&!u&&!c[e]&&s,e!=="root"&&!c[e]&&s,x,C&&{as:C},{ref:w}),O);return Object.keys(S).forEach(E=>{delete $[E]}),[h,$]}function QG(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:s,onExited:l,timeout:u}=e,[c,d]=v.useState(!1),f=Y(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),h={width:a,height:a,top:-(a/2)+i,left:-(a/2)+o},p=Y(n.child,c&&n.childLeaving,r&&n.childPulsate);return!s&&!c&&d(!0),v.useEffect(()=>{if(!s&&l!=null){const m=setTimeout(l,u);return()=>{clearTimeout(m)}}},[l,s,u]),g.jsx("span",{className:f,style:h,children:g.jsx("span",{className:p})})}const ko=Le("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),ZG=["center","classes","className"];let Sb=e=>e,mI,gI,vI,yI;const _1=550,JG=80,e7=xi(mI||(mI=Sb` 0% { transform: scale(0); opacity: 0.1; } 100% { transform: scale(1); opacity: 0.3; } `)),t7=xi(gI||(gI=Sb` 0% { opacity: 1; } 100% { opacity: 0; } `)),n7=xi(vI||(vI=Sb` 0% { transform: scale(1); } 50% { transform: scale(0.92); } 100% { transform: scale(1); } `)),r7=ne("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),o7=ne(QG,{name:"MuiTouchRipple",slot:"Ripple"})(yI||(yI=Sb` 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; } `),ko.rippleVisible,e7,_1,({theme:e})=>e.transitions.easing.easeInOut,ko.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,ko.child,ko.childLeaving,t7,_1,({theme:e})=>e.transitions.easing.easeInOut,ko.childPulsate,n7,({theme:e})=>e.transitions.easing.easeInOut),i7=v.forwardRef(function(t,n){const r=He({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a}=r,s=Q(r,ZG),[l,u]=v.useState([]),c=v.useRef(0),d=v.useRef(null);v.useEffect(()=>{d.current&&(d.current(),d.current=null)},[l]);const f=v.useRef(!1),h=Uu(),p=v.useRef(null),m=v.useRef(null),y=v.useCallback(S=>{const{pulsate:O,rippleX:C,rippleY:$,rippleSize:E,cb:M}=S;u(_=>[..._,g.jsx(o7,{classes:{ripple:Y(i.ripple,ko.ripple),rippleVisible:Y(i.rippleVisible,ko.rippleVisible),ripplePulsate:Y(i.ripplePulsate,ko.ripplePulsate),child:Y(i.child,ko.child),childLeaving:Y(i.childLeaving,ko.childLeaving),childPulsate:Y(i.childPulsate,ko.childPulsate)},timeout:_1,pulsate:O,rippleX:C,rippleY:$,rippleSize:E},c.current)]),c.current+=1,d.current=M},[i]),b=v.useCallback((S={},O={},C=()=>{})=>{const{pulsate:$=!1,center:E=o||O.pulsate,fakeElement:M=!1}=O;if((S==null?void 0:S.type)==="mousedown"&&f.current){f.current=!1;return}(S==null?void 0:S.type)==="touchstart"&&(f.current=!0);const _=M?null:m.current,A=_?_.getBoundingClientRect():{width:0,height:0,left:0,top:0};let j,R,I;if(E||S===void 0||S.clientX===0&&S.clientY===0||!S.clientX&&!S.touches)j=Math.round(A.width/2),R=Math.round(A.height/2);else{const{clientX:k,clientY:D}=S.touches&&S.touches.length>0?S.touches[0]:S;j=Math.round(k-A.left),R=Math.round(D-A.top)}if(E)I=Math.sqrt((2*A.width**2+A.height**2)/3),I%2===0&&(I+=1);else{const k=Math.max(Math.abs((_?_.clientWidth:0)-j),j)*2+2,D=Math.max(Math.abs((_?_.clientHeight:0)-R),R)*2+2;I=Math.sqrt(k**2+D**2)}S!=null&&S.touches?p.current===null&&(p.current=()=>{y({pulsate:$,rippleX:j,rippleY:R,rippleSize:I,cb:C})},h.start(JG,()=>{p.current&&(p.current(),p.current=null)})):y({pulsate:$,rippleX:j,rippleY:R,rippleSize:I,cb:C})},[o,y,h]),x=v.useCallback(()=>{b({},{pulsate:!0})},[b]),w=v.useCallback((S,O)=>{if(h.clear(),(S==null?void 0:S.type)==="touchend"&&p.current){p.current(),p.current=null,h.start(0,()=>{w(S,O)});return}p.current=null,u(C=>C.length>0?C.slice(1):C),d.current=O},[h]);return v.useImperativeHandle(n,()=>({pulsate:x,start:b,stop:w}),[x,b,w]),g.jsx(r7,P({className:Y(ko.root,i.root,a),ref:m},s,{children:g.jsx(iO,{component:null,exit:!0,children:l})}))});function a7(e){return Be("MuiButtonBase",e)}const s7=Le("MuiButtonBase",["root","disabled","focusVisible"]),l7=["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"],u7=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=Ce({root:["root",t&&"disabled",n&&"focusVisible"]},a7,o);return n&&r&&(a.root+=` ${r}`),a},c7=ne("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"},[`&.${s7.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Ls=v.forwardRef(function(t,n){const r=He({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:a,className:s,component:l="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:d=!1,focusRipple:f=!1,LinkComponent:h="a",onBlur:p,onClick:m,onContextMenu:y,onDragLeave:b,onFocus:x,onFocusVisible:w,onKeyDown:S,onKeyUp:O,onMouseDown:C,onMouseLeave:$,onMouseUp:E,onTouchEnd:M,onTouchMove:_,onTouchStart:A,tabIndex:j=0,TouchRippleProps:R,touchRippleRef:I,type:k}=r,D=Q(r,l7),F=v.useRef(null),T=v.useRef(null),L=yt(T,I),{isFocusVisibleRef:N,onFocus:z,onBlur:B,ref:V}=KP(),[W,ee]=v.useState(!1);u&&W&&ee(!1),v.useImperativeHandle(o,()=>({focusVisible:()=>{ee(!0),F.current.focus()}}),[]);const[pe,be]=v.useState(!1);v.useEffect(()=>{be(!0)},[]);const ye=pe&&!c&&!u;v.useEffect(()=>{W&&f&&!c&&pe&&T.current.pulsate()},[c,f,W,pe]);function J(te,Oe,Xe=d){return Lt(De=>(Oe&&Oe(De),!Xe&&T.current&&T.current[te](De),!0))}const fe=J("start",C),ce=J("stop",y),K=J("stop",b),Z=J("stop",E),ie=J("stop",te=>{W&&te.preventDefault(),$&&$(te)}),re=J("start",A),ae=J("stop",M),we=J("stop",_),ge=J("stop",te=>{B(te),N.current===!1&&ee(!1),p&&p(te)},!1),je=Lt(te=>{F.current||(F.current=te.currentTarget),z(te),N.current===!0&&(ee(!0),w&&w(te)),x&&x(te)}),$e=()=>{const te=F.current;return l&&l!=="button"&&!(te.tagName==="A"&&te.href)},Re=v.useRef(!1),Ee=Lt(te=>{f&&!Re.current&&W&&T.current&&te.key===" "&&(Re.current=!0,T.current.stop(te,()=>{T.current.start(te)})),te.target===te.currentTarget&&$e()&&te.key===" "&&te.preventDefault(),S&&S(te),te.target===te.currentTarget&&$e()&&te.key==="Enter"&&!u&&(te.preventDefault(),m&&m(te))}),me=Lt(te=>{f&&te.key===" "&&T.current&&W&&!te.defaultPrevented&&(Re.current=!1,T.current.stop(te,()=>{T.current.pulsate(te)})),O&&O(te),m&&te.target===te.currentTarget&&$e()&&te.key===" "&&!te.defaultPrevented&&m(te)});let xe=l;xe==="button"&&(D.href||D.to)&&(xe=h);const ke={};xe==="button"?(ke.type=k===void 0?"button":k,ke.disabled=u):(!D.href&&!D.to&&(ke.role="button"),u&&(ke["aria-disabled"]=u));const ze=yt(n,V,F),et=P({},r,{centerRipple:i,component:l,disabled:u,disableRipple:c,disableTouchRipple:d,focusRipple:f,tabIndex:j,focusVisible:W}),ue=u7(et);return g.jsxs(c7,P({as:xe,className:Y(ue.root,s),ownerState:et,onBlur:ge,onClick:m,onContextMenu:ce,onFocus:je,onKeyDown:Ee,onKeyUp:me,onMouseDown:fe,onMouseLeave:ie,onMouseUp:Z,onDragLeave:K,onTouchEnd:ae,onTouchMove:we,onTouchStart:re,ref:ze,tabIndex:u?-1:j,type:k},ke,D,{children:[a,ye?g.jsx(i7,P({ref:L,center:i},R)):null]}))});function d7(e){return Be("MuiAlert",e)}const bI=Le("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function f7(e){return Be("MuiIconButton",e)}const p7=Le("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),h7=["edge","children","className","color","disabled","disableFocusRipple","size"],m7=e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e,a={root:["root",n&&"disabled",r!=="default"&&`color${oe(r)}`,o&&`edge${oe(o)}`,`size${oe(i)}`]};return Ce(a,f7,t)},g7=ne(Ls,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${oe(n.color)}`],n.edge&&t[`edge${oe(n.edge)}`],t[`size${oe(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})`:nt(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})`:nt(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)},{[`&.${p7.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),pr=v.forwardRef(function(t,n){const r=He({props:t,name:"MuiIconButton"}),{edge:o=!1,children:i,className:a,color:s="default",disabled:l=!1,disableFocusRipple:u=!1,size:c="medium"}=r,d=Q(r,h7),f=P({},r,{edge:o,color:s,disabled:l,disableFocusRipple:u,size:c}),h=m7(f);return g.jsx(g7,P({className:Y(h.root,a),centerRipple:!0,focusRipple:!u,disabled:l,ref:n},d,{ownerState:f,children:i}))}),v7=Te(g.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),y7=Te(g.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),b7=Te(g.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),x7=Te(g.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),uF=Te(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"),w7=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],C7=e=>{const{variant:t,color:n,severity:r,classes:o}=e,i={root:["root",`color${oe(n||r)}`,`${t}${oe(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return Ce(i,d7,o)},S7=ne(Ft,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${oe(n.color||n.severity)}`]]}})(({theme:e})=>{const t=e.palette.mode==="light"?js:Ds,n=e.palette.mode==="light"?Ds:js;return P({},e.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(([,r])=>r.main&&r.light).map(([r])=>({props:{colorSeverity:r,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${r}StandardBg`]:n(e.palette[r].light,.9),[`& .${bI.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(([,r])=>r.main&&r.light).map(([r])=>({props:{colorSeverity:r,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),border:`1px solid ${(e.vars||e).palette[r].light}`,[`& .${bI.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(([,r])=>r.main&&r.dark).map(([r])=>({props:{colorSeverity:r,variant:"filled"},style:P({fontWeight:e.typography.fontWeightMedium},e.vars?{color:e.vars.palette.Alert[`${r}FilledColor`],backgroundColor:e.vars.palette.Alert[`${r}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[r].dark:e.palette[r].main,color:e.palette.getContrastText(e.palette[r].main)})}))]})}),P7=ne("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),O7=ne("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),xI=ne("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),wI={success:g.jsx(v7,{fontSize:"inherit"}),warning:g.jsx(y7,{fontSize:"inherit"}),error:g.jsx(b7,{fontSize:"inherit"}),info:g.jsx(x7,{fontSize:"inherit"})},xd=v.forwardRef(function(t,n){const r=He({props:t,name:"MuiAlert"}),{action:o,children:i,className:a,closeText:s="Close",color:l,components:u={},componentsProps:c={},icon:d,iconMapping:f=wI,onClose:h,role:p="alert",severity:m="success",slotProps:y={},slots:b={},variant:x="standard"}=r,w=Q(r,w7),S=P({},r,{color:l,severity:m,variant:x,colorSeverity:l||m}),O=C7(S),C={slots:P({closeButton:u.CloseButton,closeIcon:u.CloseIcon},b),slotProps:P({},c,y)},[$,E]=hI("closeButton",{elementType:pr,externalForwardedProps:C,ownerState:S}),[M,_]=hI("closeIcon",{elementType:uF,externalForwardedProps:C,ownerState:S});return g.jsxs(S7,P({role:p,elevation:0,ownerState:S,className:Y(O.root,a),ref:n},w,{children:[d!==!1?g.jsx(P7,{ownerState:S,className:O.icon,children:d||f[m]||wI[m]}):null,g.jsx(O7,{ownerState:S,className:O.message,children:i}),o!=null?g.jsx(xI,{ownerState:S,className:O.action,children:o}):null,o==null&&h?g.jsx(xI,{ownerState:S,className:O.action,children:g.jsx($,P({size:"small","aria-label":s,title:s,color:"inherit",onClick:h},E,{children:g.jsx(M,P({fontSize:"small"},_))}))}):null]}))});function $7(e){return Be("MuiTypography",e)}Le("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const E7=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],k7=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e,s={root:["root",i,e.align!=="inherit"&&`align${oe(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return Ce(s,$7,a)},I7=ne("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${oe(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})),CI={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},T7={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},M7=e=>T7[e]||e,he=v.forwardRef(function(t,n){const r=He({props:t,name:"MuiTypography"}),o=M7(r.color),i=Ih(P({},r,{color:o})),{align:a="inherit",className:s,component:l,gutterBottom:u=!1,noWrap:c=!1,paragraph:d=!1,variant:f="body1",variantMapping:h=CI}=i,p=Q(i,E7),m=P({},i,{align:a,color:o,className:s,component:l,gutterBottom:u,noWrap:c,paragraph:d,variant:f,variantMapping:h}),y=l||(d?"p":h[f]||CI[f])||"span",b=k7(m);return g.jsx(I7,P({as:y,ref:n,ownerState:m,className:Y(b.root,s)},p))});function _7(e){return Be("MuiAppBar",e)}Le("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const A7=["className","color","enableColorOnDark","position"],R7=e=>{const{color:t,position:n,classes:r}=e,o={root:["root",`color${oe(t)}`,`position${oe(n)}`]};return Ce(o,_7,r)},Cm=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,j7=ne(Ft,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${oe(n.position)}`],t[`color${oe(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:Cm(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:Cm(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:Cm(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:Cm(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},!["inherit","transparent"].includes(t.color)&&{backgroundColor:"var(--AppBar-background)"},{color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),D7=v.forwardRef(function(t,n){const r=He({props:t,name:"MuiAppBar"}),{className:o,color:i="primary",enableColorOnDark:a=!1,position:s="fixed"}=r,l=Q(r,A7),u=P({},r,{color:i,position:s,enableColorOnDark:a}),c=R7(u);return g.jsx(j7,P({square:!0,component:"header",ownerState:u,elevation:4,className:Y(c.root,o,s==="fixed"&&"mui-fixed"),ref:n},l))});function SI(e){return typeof e.normalize<"u"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function cF(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=SI(c));const d=c?s.filter(f=>{let h=(i||u)(f);return n&&(h=h.toLowerCase()),t&&(h=SI(h)),o==="start"?h.indexOf(c)===0:h.indexOf(c)>-1}):s;return typeof r=="number"?d.slice(0,r):d}}function Sm(e,t){for(let n=0;n{var t;return e.current!==null&&((t=e.current.parentElement)==null?void 0:t.contains(document.activeElement))},N7=[];function B7(e){const{unstable_isActiveElementInListbox:t=F7,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?N7:null,disableClearable:d=!1,disableCloseOnSelect:f=!1,disabled:h,disabledItemsFocusable:p=!1,disableListWrap:m=!1,filterOptions:y=L7,filterSelectedOptions:b=!1,freeSolo:x=!1,getOptionDisabled:w,getOptionKey:S,getOptionLabel:O=le=>{var X;return(X=le.label)!=null?X:le},groupBy:C,handleHomeEndKeys:$=!e.freeSolo,id:E,includeInputInList:M=!1,inputValue:_,isOptionEqualToValue:A=(le,X)=>le===X,multiple:j=!1,onChange:R,onClose:I,onHighlightChange:k,onInputChange:D,onOpen:F,open:T,openOnFocus:L=!1,options:N,readOnly:z=!1,selectOnFocus:B=!e.freeSolo,value:V}=e,W=Dt(E);let ee=O;ee=le=>{const X=O(le);return typeof X!="string"?String(X):X};const pe=v.useRef(!1),be=v.useRef(!0),ye=v.useRef(null),J=v.useRef(null),[fe,ce]=v.useState(null),[K,Z]=v.useState(-1),ie=o?0:-1,re=v.useRef(ie),[ae,we]=Is({controlled:V,default:c,name:u}),[ge,je]=Is({controlled:_,default:"",name:u,state:"inputValue"}),[$e,Re]=v.useState(!1),Ee=v.useCallback((le,X)=>{if(!(j?ae.length!(b&&(j?ae:[ae]).some(X=>X!==null&&A(le,X)))),{inputValue:et&&ke?"":ge,getOptionLabel:ee}):[],Oe=qP({filteredOptions:te,value:ae,inputValue:ge});v.useEffect(()=>{const le=ae!==Oe.value;$e&&!le||x&&!le||Ee(null,ae)},[ae,Ee,$e,Oe.value,x]);const Xe=me&&te.length>0&&!z,De=Lt(le=>{le===-1?ye.current.focus():fe.querySelector(`[data-tag-index="${le}"]`).focus()});v.useEffect(()=>{j&&K>ae.length-1&&(Z(-1),De(-1))},[ae,j,K,De]);function ve(le,X){if(!J.current||le<0||le>=te.length)return-1;let Ie=le;for(;;){const We=J.current.querySelector(`[data-option-index="${Ie}"]`),Ze=p?!1:!We||We.disabled||We.getAttribute("aria-disabled")==="true";if(We&&We.hasAttribute("tabindex")&&!Ze)return Ie;if(X==="next"?Ie=(Ie+1)%te.length:Ie=(Ie-1+te.length)%te.length,Ie===le)return-1}}const Ge=Lt(({event:le,index:X,reason:Ie="auto"})=>{if(re.current=X,X===-1?ye.current.removeAttribute("aria-activedescendant"):ye.current.setAttribute("aria-activedescendant",`${W}-option-${X}`),k&&k(le,X===-1?null:te[X],Ie),!J.current)return;const We=J.current.querySelector(`[role="option"].${n}-focused`);We&&(We.classList.remove(`${n}-focused`),We.classList.remove(`${n}-focusVisible`));let Ze=J.current;if(J.current.getAttribute("role")!=="listbox"&&(Ze=J.current.parentElement.querySelector('[role="listbox"]')),!Ze)return;if(X===-1){Ze.scrollTop=0;return}const Ke=J.current.querySelector(`[data-option-index="${X}"]`);if(Ke&&(Ke.classList.add(`${n}-focused`),Ie==="keyboard"&&Ke.classList.add(`${n}-focusVisible`),Ze.scrollHeight>Ze.clientHeight&&Ie!=="mouse"&&Ie!=="touch")){const ht=Ke,Ei=Ze.clientHeight+Ze.scrollTop,nE=ht.offsetTop+ht.offsetHeight;nE>Ei?Ze.scrollTop=nE-Ze.clientHeight:ht.offsetTop-ht.offsetHeight*(C?1.3:0){if(!ue)return;const Ke=ve((()=>{const ht=te.length-1;if(X==="reset")return ie;if(X==="start")return 0;if(X==="end")return ht;const Ei=re.current+X;return Ei<0?Ei===-1&&M?-1:m&&re.current!==-1||Math.abs(X)>1?0:ht:Ei>ht?Ei===ht+1&&M?-1:m||Math.abs(X)>1?ht:0:Ei})(),Ie);if(Ge({index:Ke,reason:We,event:le}),r&&X!=="reset")if(Ke===-1)ye.current.value=ge;else{const ht=ee(te[Ke]);ye.current.value=ht,ht.toLowerCase().indexOf(ge.toLowerCase())===0&&ge.length>0&&ye.current.setSelectionRange(ge.length,ht.length)}}),Qe=()=>{const le=(X,Ie)=>{const We=X?ee(X):"",Ze=Ie?ee(Ie):"";return We===Ze};if(re.current!==-1&&Oe.filteredOptions&&Oe.filteredOptions.length!==te.length&&Oe.inputValue===ge&&(j?ae.length===Oe.value.length&&Oe.value.every((X,Ie)=>ee(ae[Ie])===ee(X)):le(Oe.value,ae))){const X=Oe.filteredOptions[re.current];if(X)return Sm(te,Ie=>ee(Ie)===ee(X))}return-1},Rt=v.useCallback(()=>{if(!ue)return;const le=Qe();if(le!==-1){re.current=le;return}const X=j?ae[0]:ae;if(te.length===0||X==null){Ye({diff:"reset"});return}if(J.current){if(X!=null){const Ie=te[re.current];if(j&&Ie&&Sm(ae,Ze=>A(Ie,Ze))!==-1)return;const We=Sm(te,Ze=>A(Ze,X));We===-1?Ye({diff:"reset"}):Ge({index:We});return}if(re.current>=te.length-1){Ge({index:te.length-1});return}Ge({index:re.current})}},[te.length,j?!1:ae,b,Ye,Ge,ue,ge,j]),jn=Lt(le=>{Zg(J,le),le&&Rt()});v.useEffect(()=>{Rt()},[Rt]);const xn=le=>{me||(xe(!0),ze(!0),F&&F(le))},Wn=(le,X)=>{me&&(xe(!1),I&&I(le,X))},bt=(le,X,Ie,We)=>{if(j){if(ae.length===X.length&&ae.every((Ze,Ke)=>Ze===X[Ke]))return}else if(ae===X)return;R&&R(le,X,Ie,We),we(X)},gt=v.useRef(!1),Gn=(le,X,Ie="selectOption",We="options")=>{let Ze=Ie,Ke=X;if(j){Ke=Array.isArray(ae)?ae.slice():[];const ht=Sm(Ke,Ei=>A(X,Ei));ht===-1?Ke.push(X):We!=="freeSolo"&&(Ke.splice(ht,1),Ze="removeOption")}Ee(le,Ke),bt(le,Ke,Ze,{option:X}),!f&&(!le||!le.ctrlKey&&!le.metaKey)&&Wn(le,Ze),(a===!0||a==="touch"&>.current||a==="mouse"&&!gt.current)&&ye.current.blur()};function go(le,X){if(le===-1)return-1;let Ie=le;for(;;){if(X==="next"&&Ie===ae.length||X==="previous"&&Ie===-1)return-1;const We=fe.querySelector(`[data-tag-index="${Ie}"]`);if(!We||!We.hasAttribute("tabindex")||We.disabled||We.getAttribute("aria-disabled")==="true")Ie+=X==="next"?1:-1;else return Ie}}const qr=(le,X)=>{if(!j)return;ge===""&&Wn(le,"toggleInput");let Ie=K;K===-1?ge===""&&X==="previous"&&(Ie=ae.length-1):(Ie+=X==="next"?1:-1,Ie<0&&(Ie=0),Ie===ae.length&&(Ie=-1)),Ie=go(Ie,X),Z(Ie),De(Ie)},Oi=le=>{pe.current=!0,je(""),D&&D(le,"","clear"),bt(le,j?[]:null,"clear")},Xr=le=>X=>{if(le.onKeyDown&&le.onKeyDown(X),!X.defaultMuiPrevented&&(K!==-1&&["ArrowLeft","ArrowRight"].indexOf(X.key)===-1&&(Z(-1),De(-1)),X.which!==229))switch(X.key){case"Home":ue&&$&&(X.preventDefault(),Ye({diff:"start",direction:"next",reason:"keyboard",event:X}));break;case"End":ue&&$&&(X.preventDefault(),Ye({diff:"end",direction:"previous",reason:"keyboard",event:X}));break;case"PageUp":X.preventDefault(),Ye({diff:-PI,direction:"previous",reason:"keyboard",event:X}),xn(X);break;case"PageDown":X.preventDefault(),Ye({diff:PI,direction:"next",reason:"keyboard",event:X}),xn(X);break;case"ArrowDown":X.preventDefault(),Ye({diff:1,direction:"next",reason:"keyboard",event:X}),xn(X);break;case"ArrowUp":X.preventDefault(),Ye({diff:-1,direction:"previous",reason:"keyboard",event:X}),xn(X);break;case"ArrowLeft":qr(X,"previous");break;case"ArrowRight":qr(X,"next");break;case"Enter":if(re.current!==-1&&ue){const Ie=te[re.current],We=w?w(Ie):!1;if(X.preventDefault(),We)return;Gn(X,Ie,"selectOption"),r&&ye.current.setSelectionRange(ye.current.value.length,ye.current.value.length)}else x&&ge!==""&&et===!1&&(j&&X.preventDefault(),Gn(X,ge,"createOption","freeSolo"));break;case"Escape":ue?(X.preventDefault(),X.stopPropagation(),Wn(X,"escape")):l&&(ge!==""||j&&ae.length>0)&&(X.preventDefault(),X.stopPropagation(),Oi(X));break;case"Backspace":if(j&&!z&&ge===""&&ae.length>0){const Ie=K===-1?ae.length-1:K,We=ae.slice();We.splice(Ie,1),bt(X,We,"removeOption",{option:ae[Ie]})}break;case"Delete":if(j&&!z&&ge===""&&ae.length>0&&K!==-1){const Ie=K,We=ae.slice();We.splice(Ie,1),bt(X,We,"removeOption",{option:ae[Ie]})}break}},Xo=le=>{Re(!0),L&&!pe.current&&xn(le)},Kn=le=>{if(t(J)){ye.current.focus();return}Re(!1),be.current=!0,pe.current=!1,i&&re.current!==-1&&ue?Gn(le,te[re.current],"blur"):i&&x&&ge!==""?Gn(le,ge,"blur","freeSolo"):s&&Ee(le,ae),Wn(le,"blur")},sn=le=>{const X=le.target.value;ge!==X&&(je(X),ze(!1),D&&D(le,X,"input")),X===""?!d&&!j&&bt(le,null,"clear"):xn(le)},It=le=>{const X=Number(le.currentTarget.getAttribute("data-option-index"));re.current!==X&&Ge({event:le,index:X,reason:"mouse"})},wn=le=>{Ge({event:le,index:Number(le.currentTarget.getAttribute("data-option-index")),reason:"touch"}),gt.current=!0},Dn=le=>{const X=Number(le.currentTarget.getAttribute("data-option-index"));Gn(le,te[X],"selectOption"),gt.current=!1},Yr=le=>X=>{const Ie=ae.slice();Ie.splice(le,1),bt(X,Ie,"removeOption",{option:ae[le]})},Yo=le=>{me?Wn(le,"toggleInput"):xn(le)},rr=le=>{le.currentTarget.contains(le.target)&&le.target.getAttribute("id")!==W&&le.preventDefault()},$i=le=>{le.currentTarget.contains(le.target)&&(ye.current.focus(),B&&be.current&&ye.current.selectionEnd-ye.current.selectionStart===0&&ye.current.select(),be.current=!1)},vo=le=>{!h&&(ge===""||!me)&&Yo(le)};let Er=x&&ge.length>0;Er=Er||(j?ae.length>0:ae!==null);let Qo=te;return C&&(Qo=te.reduce((le,X,Ie)=>{const We=C(X);return le.length>0&&le[le.length-1].group===We?le[le.length-1].options.push(X):le.push({key:Ie,index:Ie,group:We,options:[X]}),le},[])),h&&$e&&Kn(),{getRootProps:(le={})=>P({"aria-owns":Xe?`${W}-listbox`:null},le,{onKeyDown:Xr(le),onMouseDown:rr,onClick:$i}),getInputLabelProps:()=>({id:`${W}-label`,htmlFor:W}),getInputProps:()=>({id:W,value:ge,onBlur:Kn,onFocus:Xo,onChange:sn,onMouseDown:vo,"aria-activedescendant":ue?"":null,"aria-autocomplete":r?"both":"list","aria-controls":Xe?`${W}-listbox`:void 0,"aria-expanded":Xe,autoComplete:"off",ref:ye,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:h}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:Oi}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:Yo}),getTagProps:({index:le})=>P({key:le,"data-tag-index":le,tabIndex:-1},!z&&{onDelete:Yr(le)}),getListboxProps:()=>({role:"listbox",id:`${W}-listbox`,"aria-labelledby":`${W}-label`,ref:jn,onMouseDown:le=>{le.preventDefault()}}),getOptionProps:({index:le,option:X})=>{var Ie;const We=(j?ae:[ae]).some(Ke=>Ke!=null&&A(X,Ke)),Ze=w?w(X):!1;return{key:(Ie=S==null?void 0:S(X))!=null?Ie:ee(X),tabIndex:-1,role:"option",id:`${W}-option-${le}`,onMouseMove:It,onClick:Dn,onTouchStart:wn,"data-option-index":le,"aria-disabled":Ze,"aria-selected":We}},id:W,inputValue:ge,value:ae,dirty:Er,expanded:ue&&fe,popupOpen:ue,focused:$e||K!==-1,anchorEl:fe,setAnchorEl:ce,focusedTag:K,groupedOptions:Qo}}var sO={};Object.defineProperty(sO,"__esModule",{value:!0});var dF=sO.default=void 0,z7=U7(v),H7=qL;function fF(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(fF=function(r){return r?n:t})(e)}function U7(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=fF(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function V7(e){return Object.keys(e).length===0}function W7(e=null){const t=z7.useContext(H7.ThemeContext);return!t||V7(t)?e:t}dF=sO.default=W7;var Nr="top",Ho="bottom",Uo="right",Br="left",lO="auto",_h=[Nr,Ho,Uo,Br],_c="start",Sp="end",G7="clippingParents",pF="viewport",Jd="popper",K7="reference",OI=_h.reduce(function(e,t){return e.concat([t+"-"+_c,t+"-"+Sp])},[]),hF=[].concat(_h,[lO]).reduce(function(e,t){return e.concat([t,t+"-"+_c,t+"-"+Sp])},[]),q7="beforeRead",X7="read",Y7="afterRead",Q7="beforeMain",Z7="main",J7="afterMain",eK="beforeWrite",tK="write",nK="afterWrite",rK=[q7,X7,Y7,Q7,Z7,J7,eK,tK,nK];function Qi(e){return e?(e.nodeName||"").toLowerCase():null}function uo(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Xl(e){var t=uo(e).Element;return e instanceof t||e instanceof Element}function Lo(e){var t=uo(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function uO(e){if(typeof ShadowRoot>"u")return!1;var t=uo(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function oK(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];!Lo(i)||!Qi(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 iK(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},{});!Lo(o)||!Qi(o)||(Object.assign(o.style,s),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}const aK={name:"applyStyles",enabled:!0,phase:"write",fn:oK,effect:iK,requires:["computeStyles"]};function Ui(e){return e.split("-")[0]}var Tl=Math.max,ov=Math.min,Ac=Math.round;function A1(){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 mF(){return!/^((?!chrome|android).)*safari/i.test(A1())}function Rc(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&Lo(e)&&(o=e.offsetWidth>0&&Ac(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Ac(r.height)/e.offsetHeight||1);var a=Xl(e)?uo(e):window,s=a.visualViewport,l=!mF()&&n,u=(r.left+(l&&s?s.offsetLeft:0))/o,c=(r.top+(l&&s?s.offsetTop:0))/i,d=r.width/o,f=r.height/i;return{width:d,height:f,top:c,right:u+d,bottom:c+f,left:u,x:u,y:c}}function cO(e){var t=Rc(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 gF(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&uO(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function _a(e){return uo(e).getComputedStyle(e)}function sK(e){return["table","td","th"].indexOf(Qi(e))>=0}function Us(e){return((Xl(e)?e.ownerDocument:e.document)||window.document).documentElement}function Pb(e){return Qi(e)==="html"?e:e.assignedSlot||e.parentNode||(uO(e)?e.host:null)||Us(e)}function $I(e){return!Lo(e)||_a(e).position==="fixed"?null:e.offsetParent}function lK(e){var t=/firefox/i.test(A1()),n=/Trident/i.test(A1());if(n&&Lo(e)){var r=_a(e);if(r.position==="fixed")return null}var o=Pb(e);for(uO(o)&&(o=o.host);Lo(o)&&["html","body"].indexOf(Qi(o))<0;){var i=_a(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 Ah(e){for(var t=uo(e),n=$I(e);n&&sK(n)&&_a(n).position==="static";)n=$I(n);return n&&(Qi(n)==="html"||Qi(n)==="body"&&_a(n).position==="static")?t:n||lK(e)||t}function dO(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Bf(e,t,n){return Tl(e,ov(t,n))}function uK(e,t,n){var r=Bf(e,t,n);return r>n?n:r}function vF(){return{top:0,right:0,bottom:0,left:0}}function yF(e){return Object.assign({},vF(),e)}function bF(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var cK=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,yF(typeof t!="number"?t:bF(t,_h))};function dK(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=Ui(n.placement),l=dO(s),u=[Br,Uo].indexOf(s)>=0,c=u?"height":"width";if(!(!i||!a)){var d=cK(o.padding,n),f=cO(i),h=l==="y"?Nr:Br,p=l==="y"?Ho:Uo,m=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],y=a[l]-n.rects.reference[l],b=Ah(i),x=b?l==="y"?b.clientHeight||0:b.clientWidth||0:0,w=m/2-y/2,S=d[h],O=x-f[c]-d[p],C=x/2-f[c]/2+w,$=Bf(S,C,O),E=l;n.modifiersData[r]=(t={},t[E]=$,t.centerOffset=$-C,t)}}function fK(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)||gF(t.elements.popper,o)&&(t.elements.arrow=o))}const pK={name:"arrow",enabled:!0,phase:"main",fn:dK,effect:fK,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function jc(e){return e.split("-")[1]}var hK={top:"auto",right:"auto",bottom:"auto",left:"auto"};function mK(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Ac(n*o)/o||0,y:Ac(r*o)/o||0}}function EI(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,d=e.isFixed,f=a.x,h=f===void 0?0:f,p=a.y,m=p===void 0?0:p,y=typeof c=="function"?c({x:h,y:m}):{x:h,y:m};h=y.x,m=y.y;var b=a.hasOwnProperty("x"),x=a.hasOwnProperty("y"),w=Br,S=Nr,O=window;if(u){var C=Ah(n),$="clientHeight",E="clientWidth";if(C===uo(n)&&(C=Us(n),_a(C).position!=="static"&&s==="absolute"&&($="scrollHeight",E="scrollWidth")),C=C,o===Nr||(o===Br||o===Uo)&&i===Sp){S=Ho;var M=d&&C===O&&O.visualViewport?O.visualViewport.height:C[$];m-=M-r.height,m*=l?1:-1}if(o===Br||(o===Nr||o===Ho)&&i===Sp){w=Uo;var _=d&&C===O&&O.visualViewport?O.visualViewport.width:C[E];h-=_-r.width,h*=l?1:-1}}var A=Object.assign({position:s},u&&hK),j=c===!0?mK({x:h,y:m},uo(n)):{x:h,y:m};if(h=j.x,m=j.y,l){var R;return Object.assign({},A,(R={},R[S]=x?"0":"",R[w]=b?"0":"",R.transform=(O.devicePixelRatio||1)<=1?"translate("+h+"px, "+m+"px)":"translate3d("+h+"px, "+m+"px, 0)",R))}return Object.assign({},A,(t={},t[S]=x?m+"px":"",t[w]=b?h+"px":"",t.transform="",t))}function gK(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:Ui(t.placement),variation:jc(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,EI(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,EI(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 vK={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:gK,data:{}};var Pm={passive:!0};function yK(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=uo(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(c){c.addEventListener("scroll",n.update,Pm)}),s&&l.addEventListener("resize",n.update,Pm),function(){i&&u.forEach(function(c){c.removeEventListener("scroll",n.update,Pm)}),s&&l.removeEventListener("resize",n.update,Pm)}}const bK={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:yK,data:{}};var xK={left:"right",right:"left",bottom:"top",top:"bottom"};function mg(e){return e.replace(/left|right|bottom|top/g,function(t){return xK[t]})}var wK={start:"end",end:"start"};function kI(e){return e.replace(/start|end/g,function(t){return wK[t]})}function fO(e){var t=uo(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function pO(e){return Rc(Us(e)).left+fO(e).scrollLeft}function CK(e,t){var n=uo(e),r=Us(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;var u=mF();(u||!u&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s+pO(e),y:l}}function SK(e){var t,n=Us(e),r=fO(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=Tl(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=Tl(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+pO(e),l=-r.scrollTop;return _a(o||n).direction==="rtl"&&(s+=Tl(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}function hO(e){var t=_a(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function xF(e){return["html","body","#document"].indexOf(Qi(e))>=0?e.ownerDocument.body:Lo(e)&&hO(e)?e:xF(Pb(e))}function zf(e,t){var n;t===void 0&&(t=[]);var r=xF(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=uo(r),a=o?[i].concat(i.visualViewport||[],hO(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(zf(Pb(a)))}function R1(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function PK(e,t){var n=Rc(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 II(e,t,n){return t===pF?R1(CK(e,n)):Xl(t)?PK(t,n):R1(SK(Us(e)))}function OK(e){var t=zf(Pb(e)),n=["absolute","fixed"].indexOf(_a(e).position)>=0,r=n&&Lo(e)?Ah(e):e;return Xl(r)?t.filter(function(o){return Xl(o)&&gF(o,r)&&Qi(o)!=="body"}):[]}function $K(e,t,n,r){var o=t==="clippingParents"?OK(e):[].concat(t),i=[].concat(o,[n]),a=i[0],s=i.reduce(function(l,u){var c=II(e,u,r);return l.top=Tl(c.top,l.top),l.right=ov(c.right,l.right),l.bottom=ov(c.bottom,l.bottom),l.left=Tl(c.left,l.left),l},II(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 wF(e){var t=e.reference,n=e.element,r=e.placement,o=r?Ui(r):null,i=r?jc(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(o){case Nr:l={x:a,y:t.y-n.height};break;case Ho:l={x:a,y:t.y+t.height};break;case Uo:l={x:t.x+t.width,y:s};break;case Br:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var u=o?dO(o):null;if(u!=null){var c=u==="y"?"height":"width";switch(i){case _c:l[u]=l[u]-(t[c]/2-n[c]/2);break;case Sp:l[u]=l[u]+(t[c]/2-n[c]/2);break}}return l}function Pp(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?G7:s,u=n.rootBoundary,c=u===void 0?pF:u,d=n.elementContext,f=d===void 0?Jd:d,h=n.altBoundary,p=h===void 0?!1:h,m=n.padding,y=m===void 0?0:m,b=yF(typeof y!="number"?y:bF(y,_h)),x=f===Jd?K7:Jd,w=e.rects.popper,S=e.elements[p?x:f],O=$K(Xl(S)?S:S.contextElement||Us(e.elements.popper),l,c,a),C=Rc(e.elements.reference),$=wF({reference:C,element:w,placement:o}),E=R1(Object.assign({},w,$)),M=f===Jd?E:C,_={top:O.top-M.top+b.top,bottom:M.bottom-O.bottom+b.bottom,left:O.left-M.left+b.left,right:M.right-O.right+b.right},A=e.modifiersData.offset;if(f===Jd&&A){var j=A[o];Object.keys(_).forEach(function(R){var I=[Uo,Ho].indexOf(R)>=0?1:-1,k=[Nr,Ho].indexOf(R)>=0?"y":"x";_[R]+=j[k]*I})}return _}function EK(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?hF:l,c=jc(r),d=c?s?OI:OI.filter(function(p){return jc(p)===c}):_h,f=d.filter(function(p){return u.indexOf(p)>=0});f.length===0&&(f=d);var h=f.reduce(function(p,m){return p[m]=Pp(e,{placement:m,boundary:o,rootBoundary:i,padding:a})[Ui(m)],p},{});return Object.keys(h).sort(function(p,m){return h[p]-h[m]})}function kK(e){if(Ui(e)===lO)return[];var t=mg(e);return[kI(e),t,kI(t)]}function IK(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,d=n.rootBoundary,f=n.altBoundary,h=n.flipVariations,p=h===void 0?!0:h,m=n.allowedAutoPlacements,y=t.options.placement,b=Ui(y),x=b===y,w=l||(x||!p?[mg(y)]:kK(y)),S=[y].concat(w).reduce(function(W,ee){return W.concat(Ui(ee)===lO?EK(t,{placement:ee,boundary:c,rootBoundary:d,padding:u,flipVariations:p,allowedAutoPlacements:m}):ee)},[]),O=t.rects.reference,C=t.rects.popper,$=new Map,E=!0,M=S[0],_=0;_=0,k=I?"width":"height",D=Pp(t,{placement:A,boundary:c,rootBoundary:d,altBoundary:f,padding:u}),F=I?R?Uo:Br:R?Ho:Nr;O[k]>C[k]&&(F=mg(F));var T=mg(F),L=[];if(i&&L.push(D[j]<=0),s&&L.push(D[F]<=0,D[T]<=0),L.every(function(W){return W})){M=A,E=!1;break}$.set(A,L)}if(E)for(var N=p?3:1,z=function(ee){var pe=S.find(function(be){var ye=$.get(be);if(ye)return ye.slice(0,ee).every(function(J){return J})});if(pe)return M=pe,"break"},B=N;B>0;B--){var V=z(B);if(V==="break")break}t.placement!==M&&(t.modifiersData[r]._skip=!0,t.placement=M,t.reset=!0)}}const TK={name:"flip",enabled:!0,phase:"main",fn:IK,requiresIfExists:["offset"],data:{_skip:!1}};function TI(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 MI(e){return[Nr,Uo,Ho,Br].some(function(t){return e[t]>=0})}function MK(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=Pp(t,{elementContext:"reference"}),s=Pp(t,{altBoundary:!0}),l=TI(a,r),u=TI(s,o,i),c=MI(l),d=MI(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}const _K={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:MK};function AK(e,t,n){var r=Ui(e),o=[Br,Nr].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,[Br,Uo].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function RK(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,a=hF.reduce(function(c,d){return c[d]=AK(d,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 jK={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:RK};function DK(e){var t=e.state,n=e.name;t.modifiersData[n]=wF({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const LK={name:"popperOffsets",enabled:!0,phase:"read",fn:DK,data:{}};function FK(e){return e==="x"?"y":"x"}function NK(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,d=n.padding,f=n.tether,h=f===void 0?!0:f,p=n.tetherOffset,m=p===void 0?0:p,y=Pp(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),b=Ui(t.placement),x=jc(t.placement),w=!x,S=dO(b),O=FK(S),C=t.modifiersData.popperOffsets,$=t.rects.reference,E=t.rects.popper,M=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,_=typeof M=="number"?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M),A=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,j={x:0,y:0};if(C){if(i){var R,I=S==="y"?Nr:Br,k=S==="y"?Ho:Uo,D=S==="y"?"height":"width",F=C[S],T=F+y[I],L=F-y[k],N=h?-E[D]/2:0,z=x===_c?$[D]:E[D],B=x===_c?-E[D]:-$[D],V=t.elements.arrow,W=h&&V?cO(V):{width:0,height:0},ee=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:vF(),pe=ee[I],be=ee[k],ye=Bf(0,$[D],W[D]),J=w?$[D]/2-N-ye-pe-_.mainAxis:z-ye-pe-_.mainAxis,fe=w?-$[D]/2+N+ye+be+_.mainAxis:B+ye+be+_.mainAxis,ce=t.elements.arrow&&Ah(t.elements.arrow),K=ce?S==="y"?ce.clientTop||0:ce.clientLeft||0:0,Z=(R=A==null?void 0:A[S])!=null?R:0,ie=F+J-Z-K,re=F+fe-Z,ae=Bf(h?ov(T,ie):T,F,h?Tl(L,re):L);C[S]=ae,j[S]=ae-F}if(s){var we,ge=S==="x"?Nr:Br,je=S==="x"?Ho:Uo,$e=C[O],Re=O==="y"?"height":"width",Ee=$e+y[ge],me=$e-y[je],xe=[Nr,Br].indexOf(b)!==-1,ke=(we=A==null?void 0:A[O])!=null?we:0,ze=xe?Ee:$e-$[Re]-E[Re]-ke+_.altAxis,et=xe?$e+$[Re]+E[Re]-ke-_.altAxis:me,ue=h&&xe?uK(ze,$e,et):Bf(h?ze:Ee,$e,h?et:me);C[O]=ue,j[O]=ue-$e}t.modifiersData[r]=j}}const BK={name:"preventOverflow",enabled:!0,phase:"main",fn:NK,requiresIfExists:["offset"]};function zK(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function HK(e){return e===uo(e)||!Lo(e)?fO(e):zK(e)}function UK(e){var t=e.getBoundingClientRect(),n=Ac(t.width)/e.offsetWidth||1,r=Ac(t.height)/e.offsetHeight||1;return n!==1||r!==1}function VK(e,t,n){n===void 0&&(n=!1);var r=Lo(t),o=Lo(t)&&UK(t),i=Us(t),a=Rc(e,o,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Qi(t)!=="body"||hO(i))&&(s=HK(t)),Lo(t)?(l=Rc(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=pO(i))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function WK(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 GK(e){var t=WK(e);return rK.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function KK(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function qK(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 _I={placement:"bottom",modifiers:[],strategy:"absolute"};function AI(){for(var e=arguments.length,t=new Array(e),n=0;n{i||s(ZK(o)||document.body)},[o,i]),Et(()=>{if(a&&!i)return Zg(n,a),()=>{Zg(n,null)}},[n,a,i]),i){if(v.isValidElement(r)){const u={ref:l};return v.cloneElement(r,u)}return g.jsx(v.Fragment,{children:r})}return g.jsx(v.Fragment,{children:a&&Sh.createPortal(r,a)})});function JK(e){return Be("MuiPopper",e)}Le("MuiPopper",["root"]);const eq=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],tq=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function nq(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 j1(e){return typeof e=="function"?e():e}function rq(e){return e.nodeType!==void 0}const oq=e=>{const{classes:t}=e;return Ce({root:["root"]},JK,t)},iq={},aq=v.forwardRef(function(t,n){var r;const{anchorEl:o,children:i,direction:a,disablePortal:s,modifiers:l,open:u,placement:c,popperOptions:d,popperRef:f,slotProps:h={},slots:p={},TransitionProps:m}=t,y=Q(t,eq),b=v.useRef(null),x=yt(b,n),w=v.useRef(null),S=yt(w,f),O=v.useRef(S);Et(()=>{O.current=S},[S]),v.useImperativeHandle(f,()=>w.current,[]);const C=nq(c,a),[$,E]=v.useState(C),[M,_]=v.useState(j1(o));v.useEffect(()=>{w.current&&w.current.forceUpdate()}),v.useEffect(()=>{o&&_(j1(o))},[o]),Et(()=>{if(!M||!u)return;const k=T=>{E(T.placement)};let D=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:T})=>{k(T)}}];l!=null&&(D=D.concat(l)),d&&d.modifiers!=null&&(D=D.concat(d.modifiers));const F=QK(M,b.current,P({placement:C},d,{modifiers:D}));return O.current(F),()=>{F.destroy(),O.current(null)}},[M,s,l,u,d,C]);const A={placement:$};m!==null&&(A.TransitionProps=m);const j=oq(t),R=(r=p.root)!=null?r:"div",I=Yn({elementType:R,externalSlotProps:h.root,externalForwardedProps:y,additionalProps:{role:"tooltip",ref:x},ownerState:t,className:j.root});return g.jsx(R,P({},I,{children:typeof i=="function"?i(A):i}))}),sq=v.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:d="bottom",popperOptions:f=iq,popperRef:h,style:p,transition:m=!1,slotProps:y={},slots:b={}}=t,x=Q(t,tq),[w,S]=v.useState(!0),O=()=>{S(!1)},C=()=>{S(!0)};if(!l&&!c&&(!m||w))return null;let $;if(i)$=i;else if(r){const _=j1(r);$=_&&rq(_)?Wt(_).body:Wt(null).body}const E=!c&&l&&(!m||w)?"none":void 0,M=m?{in:c,onEnter:O,onExited:C}:void 0;return g.jsx(CF,{disablePortal:s,container:$,children:g.jsx(aq,P({anchorEl:r,direction:a,disablePortal:s,modifiers:u,ref:n,open:m?!w:c,placement:d,popperOptions:f,popperRef:h,slotProps:y,slots:b},x,{style:P({position:"fixed",top:0,left:0,display:E},p),TransitionProps:M,children:o}))})}),lq=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],uq=ne(sq,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),au=v.forwardRef(function(t,n){var r;const o=dF(),i=He({props:t,name:"MuiPopper"}),{anchorEl:a,component:s,components:l,componentsProps:u,container:c,disablePortal:d,keepMounted:f,modifiers:h,open:p,placement:m,popperOptions:y,popperRef:b,transition:x,slots:w,slotProps:S}=i,O=Q(i,lq),C=(r=w==null?void 0:w.root)!=null?r:l==null?void 0:l.Root,$=P({anchorEl:a,container:c,disablePortal:d,keepMounted:f,modifiers:h,open:p,placement:m,popperOptions:y,popperRef:b,transition:x},O);return g.jsx(uq,P({as:s,direction:o==null?void 0:o.direction,slots:{root:C},slotProps:S??u},$,{ref:n}))});function cq(e){return Be("MuiListSubheader",e)}Le("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const dq=["className","color","component","disableGutters","disableSticky","inset"],fq=e=>{const{classes:t,color:n,disableGutters:r,inset:o,disableSticky:i}=e,a={root:["root",n!=="default"&&`color${oe(n)}`,!r&&"gutters",o&&"inset",!i&&"sticky"]};return Ce(a,cq,t)},pq=ne("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${oe(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})),SF=v.forwardRef(function(t,n){const r=He({props:t,name:"MuiListSubheader"}),{className:o,color:i="default",component:a="li",disableGutters:s=!1,disableSticky:l=!1,inset:u=!1}=r,c=Q(r,dq),d=P({},r,{color:i,component:a,disableGutters:s,disableSticky:l,inset:u}),f=fq(d);return g.jsx(pq,P({as:a,className:Y(f.root,o),ref:n,ownerState:d},c))});SF.muiSkipListHighlight=!0;const hq=Te(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 mq(e){return Be("MuiChip",e)}const wt=Le("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"]),gq=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],vq=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${oe(r)}`,`color${oe(o)}`,s&&"clickable",s&&`clickableColor${oe(o)}`,a&&"deletable",a&&`deletableColor${oe(o)}`,`${l}${oe(o)}`],label:["label",`label${oe(r)}`],avatar:["avatar",`avatar${oe(r)}`,`avatarColor${oe(o)}`],icon:["icon",`icon${oe(r)}`,`iconColor${oe(i)}`],deleteIcon:["deleteIcon",`deleteIcon${oe(r)}`,`deleteIconColor${oe(o)}`,`deleteIcon${oe(l)}Color${oe(o)}`]};return Ce(u,mq,t)},yq=ne("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[{[`& .${wt.avatar}`]:t.avatar},{[`& .${wt.avatar}`]:t[`avatar${oe(s)}`]},{[`& .${wt.avatar}`]:t[`avatarColor${oe(r)}`]},{[`& .${wt.icon}`]:t.icon},{[`& .${wt.icon}`]:t[`icon${oe(s)}`]},{[`& .${wt.icon}`]:t[`iconColor${oe(o)}`]},{[`& .${wt.deleteIcon}`]:t.deleteIcon},{[`& .${wt.deleteIcon}`]:t[`deleteIcon${oe(s)}`]},{[`& .${wt.deleteIcon}`]:t[`deleteIconColor${oe(r)}`]},{[`& .${wt.deleteIcon}`]:t[`deleteIcon${oe(l)}Color${oe(r)}`]},t.root,t[`size${oe(s)}`],t[`color${oe(r)}`],i&&t.clickable,i&&r!=="default"&&t[`clickableColor${oe(r)})`],a&&t.deletable,a&&r!=="default"&&t[`deletableColor${oe(r)}`],t[l],t[`${l}${oe(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",[`&.${wt.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${wt.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${wt.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${wt.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${wt.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${wt.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"})),[`& .${wt.deleteIcon}`]:P({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:nt(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)`:nt(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)`:nt(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&&{[`&.${wt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:nt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${wt.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}))`:nt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${wt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:nt(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, &.${wt.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]}`,[`&.${wt.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${wt.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${wt.avatar}`]:{marginLeft:4},[`& .${wt.avatarSmall}`]:{marginLeft:2},[`& .${wt.icon}`]:{marginLeft:4},[`& .${wt.iconSmall}`]:{marginLeft:2},[`& .${wt.deleteIcon}`]:{marginRight:5},[`& .${wt.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)`:nt(e.palette[t.color].main,.7)}`,[`&.${wt.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:nt(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${wt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:nt(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${wt.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:nt(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),bq=ne("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${oe(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 RI(e){return e.key==="Backspace"||e.key==="Delete"}const pn=v.forwardRef(function(t,n){const r=He({props:t,name:"MuiChip"}),{avatar:o,className:i,clickable:a,color:s="default",component:l,deleteIcon:u,disabled:c=!1,icon:d,label:f,onClick:h,onDelete:p,onKeyDown:m,onKeyUp:y,size:b="medium",variant:x="filled",tabIndex:w,skipFocusWhenDisabled:S=!1}=r,O=Q(r,gq),C=v.useRef(null),$=yt(C,n),E=L=>{L.stopPropagation(),p&&p(L)},M=L=>{L.currentTarget===L.target&&RI(L)&&L.preventDefault(),m&&m(L)},_=L=>{L.currentTarget===L.target&&(p&&RI(L)?p(L):L.key==="Escape"&&C.current&&C.current.blur()),y&&y(L)},A=a!==!1&&h?!0:a,j=A||p?Ls:l||"div",R=P({},r,{component:j,disabled:c,size:b,color:s,iconColor:v.isValidElement(d)&&d.props.color||s,onDelete:!!p,clickable:A,variant:x}),I=vq(R),k=j===Ls?P({component:l||"div",focusVisibleClassName:I.focusVisible},p&&{disableRipple:!0}):{};let D=null;p&&(D=u&&v.isValidElement(u)?v.cloneElement(u,{className:Y(u.props.className,I.deleteIcon),onClick:E}):g.jsx(hq,{className:Y(I.deleteIcon),onClick:E}));let F=null;o&&v.isValidElement(o)&&(F=v.cloneElement(o,{className:Y(I.avatar,o.props.className)}));let T=null;return d&&v.isValidElement(d)&&(T=v.cloneElement(d,{className:Y(I.icon,d.props.className)})),g.jsxs(yq,P({as:j,className:Y(I.root,i),disabled:A&&c?!0:void 0,onClick:h,onKeyDown:M,onKeyUp:_,ref:$,tabIndex:S&&c?-1:w,ownerState:R},k,O,{children:[F||T,g.jsx(bq,{className:Y(I.label),ownerState:R,children:f}),D]}))}),xq=["onChange","maxRows","minRows","style","value"];function Om(e){return parseInt(e,10)||0}const wq={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function Cq(e){for(const t in e)return!1;return!0}function jI(e){return Cq(e)||e.outerHeightStyle===0&&!e.overflowing}const Sq=v.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:i=1,style:a,value:s}=t,l=Q(t,xq),{current:u}=v.useRef(s!=null),c=v.useRef(null),d=yt(n,c),f=v.useRef(null),h=v.useRef(null),p=v.useCallback(()=>{const w=c.current,S=h.current;if(!w||!S)return;const C=Yi(w).getComputedStyle(w);if(C.width==="0px")return{outerHeightStyle:0,overflowing:!1};S.style.width=C.width,S.value=w.value||t.placeholder||"x",S.value.slice(-1)===` `&&(S.value+=" ");const $=C.boxSizing,E=Om(C.paddingBottom)+Om(C.paddingTop),M=Om(C.borderBottomWidth)+Om(C.borderTopWidth),_=S.scrollHeight;S.value="x";const A=S.scrollHeight;let j=_;i&&(j=Math.max(Number(i)*A,j)),o&&(j=Math.min(Number(o)*A,j)),j=Math.max(j,A);const R=j+($==="border-box"?E+M:0),I=Math.abs(j-_)<=1;return{outerHeightStyle:R,overflowing:I}},[o,i,t.placeholder]),m=Lt(()=>{const w=c.current,S=p();if(!w||!S||jI(S))return!1;const O=S.outerHeightStyle;return f.current!=null&&f.current!==O}),y=v.useCallback(()=>{const w=c.current,S=p();if(!w||!S||jI(S))return;const O=S.outerHeightStyle;f.current!==O&&(f.current=O,w.style.height=`${O}px`),w.style.overflow=S.overflowing?"hidden":""},[p]),b=v.useRef(-1);Et(()=>{const w=Th(y),S=c==null?void 0:c.current;if(!S)return;const O=Yi(S);O.addEventListener("resize",w);let C;return typeof ResizeObserver<"u"&&(C=new ResizeObserver(()=>{m()&&(C.unobserve(S),cancelAnimationFrame(b.current),y(),b.current=requestAnimationFrame(()=>{C.observe(S)}))}),C.observe(S)),()=>{w.clear(),cancelAnimationFrame(b.current),O.removeEventListener("resize",w),C&&C.disconnect()}},[p,y,m]),Et(()=>{y()});const x=w=>{u||y(),r&&r(w)};return g.jsxs(v.Fragment,{children:[g.jsx("textarea",P({value:s,onChange:x,ref:d,rows:i,style:a},l)),g.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:h,tabIndex:-1,style:P({},wq.shadow,a,{paddingTop:0,paddingBottom:0})})]})});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 Ob=v.createContext(void 0);function Fa(){return v.useContext(Ob)}function DI(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function iv(e,t=!1){return e&&(DI(e.value)&&e.value!==""||t&&DI(e.defaultValue)&&e.defaultValue!=="")}function Pq(e){return e.startAdornment}function Oq(e){return Be("MuiInputBase",e)}const to=Le("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),$q=["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"],$b=(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${oe(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Eb=(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]},Eq=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:s,fullWidth:l,hiddenLabel:u,multiline:c,readOnly:d,size:f,startAdornment:h,type:p}=e,m={root:["root",`color${oe(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",f&&f!=="medium"&&`size${oe(f)}`,c&&"multiline",h&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled",p==="search"&&"inputTypeSearch",c&&"inputMultiline",f==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",h&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]};return Ce(m,Oq,t)},kb=ne("div",{name:"MuiInputBase",slot:"Root",overridesResolver:$b})(({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",[`&.${to.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%"})),Ib=ne("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Eb})(({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] + .${to.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},[`&.${to.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"})}),kq=g.jsx(YL,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),wd=v.forwardRef(function(t,n){var r;const o=He({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:a,autoFocus:s,className:l,components:u={},componentsProps:c={},defaultValue:d,disabled:f,disableInjectingGlobalStyles:h,endAdornment:p,fullWidth:m=!1,id:y,inputComponent:b="input",inputProps:x={},inputRef:w,maxRows:S,minRows:O,multiline:C=!1,name:$,onBlur:E,onChange:M,onClick:_,onFocus:A,onKeyDown:j,onKeyUp:R,placeholder:I,readOnly:k,renderSuffix:D,rows:F,slotProps:T={},slots:L={},startAdornment:N,type:z="text",value:B}=o,V=Q(o,$q),W=x.value!=null?x.value:B,{current:ee}=v.useRef(W!=null),pe=v.useRef(),be=v.useCallback(ue=>{},[]),ye=yt(pe,w,x.ref,be),[J,fe]=v.useState(!1),ce=Fa(),K=su({props:o,muiFormControl:ce,states:["color","disabled","error","hiddenLabel","size","required","filled"]});K.focused=ce?ce.focused:J,v.useEffect(()=>{!ce&&f&&J&&(fe(!1),E&&E())},[ce,f,J,E]);const Z=ce&&ce.onFilled,ie=ce&&ce.onEmpty,re=v.useCallback(ue=>{iv(ue)?Z&&Z():ie&&ie()},[Z,ie]);Et(()=>{ee&&re({value:W})},[W,re,ee]);const ae=ue=>{if(K.disabled){ue.stopPropagation();return}A&&A(ue),x.onFocus&&x.onFocus(ue),ce&&ce.onFocus?ce.onFocus(ue):fe(!0)},we=ue=>{E&&E(ue),x.onBlur&&x.onBlur(ue),ce&&ce.onBlur?ce.onBlur(ue):fe(!1)},ge=(ue,...te)=>{if(!ee){const Oe=ue.target||pe.current;if(Oe==null)throw new Error(Ta(1));re({value:Oe.value})}x.onChange&&x.onChange(ue,...te),M&&M(ue,...te)};v.useEffect(()=>{re(pe.current)},[]);const je=ue=>{pe.current&&ue.currentTarget===ue.target&&pe.current.focus(),_&&_(ue)};let $e=b,Re=x;C&&$e==="input"&&(F?Re=P({type:void 0,minRows:F,maxRows:F},Re):Re=P({type:void 0,maxRows:S,minRows:O},Re),$e=Sq);const Ee=ue=>{re(ue.animationName==="mui-auto-fill-cancel"?pe.current:{value:"x"})};v.useEffect(()=>{ce&&ce.setAdornedStart(!!N)},[ce,N]);const me=P({},o,{color:K.color||"primary",disabled:K.disabled,endAdornment:p,error:K.error,focused:K.focused,formControl:ce,fullWidth:m,hiddenLabel:K.hiddenLabel,multiline:C,size:K.size,startAdornment:N,type:z}),xe=Eq(me),ke=L.root||u.Root||kb,ze=T.root||c.root||{},et=L.input||u.Input||Ib;return Re=P({},Re,(r=T.input)!=null?r:c.input),g.jsxs(v.Fragment,{children:[!h&&kq,g.jsxs(ke,P({},ze,!mi(ke)&&{ownerState:P({},me,ze.ownerState)},{ref:n,onClick:je},V,{className:Y(xe.root,ze.className,l,k&&"MuiInputBase-readOnly"),children:[N,g.jsx(Ob.Provider,{value:null,children:g.jsx(et,P({ownerState:me,"aria-invalid":K.error,"aria-describedby":i,autoComplete:a,autoFocus:s,defaultValue:d,disabled:K.disabled,id:y,onAnimationStart:Ee,name:$,placeholder:I,readOnly:k,required:K.required,rows:F,value:W,onKeyDown:j,onKeyUp:R,type:z},Re,!mi(et)&&{as:$e,ownerState:P({},me,Re.ownerState)},{ref:ye,className:Y(xe.input,Re.className,k&&"MuiInputBase-readOnly"),onBlur:we,onChange:ge,onFocus:ae}))}),p,D?D(P({},K,{startAdornment:N})):null]}))]})});function Iq(e){return Be("MuiInput",e)}const ns=P({},to,Le("MuiInput",["root","underline","input"]));function Tq(e){return Be("MuiOutlinedInput",e)}const Ti=P({},to,Le("MuiOutlinedInput",["root","notchedOutline","input"]));function Mq(e){return Be("MuiFilledInput",e)}const no=P({},to,Le("MuiFilledInput",["root","underline","input"])),PF=Te(g.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function _q(e){return Be("MuiAutocomplete",e)}const st=Le("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"]);var LI,FI;const Aq=["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","getOptionKey","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"],Rq=["ref"],jq=["key"],Dq=["key"],Lq=e=>{const{classes:t,disablePortal:n,expanded:r,focused:o,fullWidth:i,hasClearIcon:a,hasPopupIcon:s,inputFocused:l,popupOpen:u,size:c}=e,d={root:["root",r&&"expanded",o&&"focused",i&&"fullWidth",a&&"hasClearIcon",s&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",l&&"inputFocused"],tag:["tag",`tagSize${oe(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 Ce(d,_q,t)},Fq=ne("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:o,hasPopupIcon:i,inputFocused:a,size:s}=n;return[{[`& .${st.tag}`]:t.tag},{[`& .${st.tag}`]:t[`tagSize${oe(s)}`]},{[`& .${st.inputRoot}`]:t.inputRoot},{[`& .${st.input}`]:t.input},{[`& .${st.input}`]:a&&t.inputFocused},t.root,r&&t.fullWidth,i&&t.hasPopupIcon,o&&t.hasClearIcon]}})({[`&.${st.focused} .${st.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${st.clearIndicator}`]:{visibility:"visible"}},[`& .${st.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${st.inputRoot}`]:{[`.${st.hasPopupIcon}&, .${st.hasClearIcon}&`]:{paddingRight:30},[`.${st.hasPopupIcon}.${st.hasClearIcon}&`]:{paddingRight:56},[`& .${st.input}`]:{width:0,minWidth:30}},[`& .${ns.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${ns.root}.${to.sizeSmall}`]:{[`& .${ns.input}`]:{padding:"2px 4px 3px 0"}},[`& .${Ti.root}`]:{padding:9,[`.${st.hasPopupIcon}&, .${st.hasClearIcon}&`]:{paddingRight:39},[`.${st.hasPopupIcon}.${st.hasClearIcon}&`]:{paddingRight:65},[`& .${st.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${st.endAdornment}`]:{right:9}},[`& .${Ti.root}.${to.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${st.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${no.root}`]:{paddingTop:19,paddingLeft:8,[`.${st.hasPopupIcon}&, .${st.hasClearIcon}&`]:{paddingRight:39},[`.${st.hasPopupIcon}.${st.hasClearIcon}&`]:{paddingRight:65},[`& .${no.input}`]:{padding:"7px 4px"},[`& .${st.endAdornment}`]:{right:9}},[`& .${no.root}.${to.sizeSmall}`]:{paddingBottom:1,[`& .${no.input}`]:{padding:"2.5px 4px"}},[`& .${to.hiddenLabel}`]:{paddingTop:8},[`& .${no.root}.${to.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${st.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${no.root}.${to.hiddenLabel}.${to.sizeSmall}`]:{[`& .${st.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${st.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${st.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${st.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${st.inputRoot}`]:{flexWrap:"wrap"}}}]}),Nq=ne("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),Bq=ne(pr,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),zq=ne(pr,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>P({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),Hq=ne(au,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${st.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]})),Uq=ne(Ft,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>P({},e.typography.body1,{overflow:"auto"})),Vq=ne("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),Wq=ne("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),Gq=ne("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",[`& .${st.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"},[`&.${st.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"},[`&.${st.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})`:nt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${st.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:nt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${st.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:nt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),Kq=ne(SF,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),qq=ne("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${st.option}`]:{paddingLeft:24}}),OF=v.forwardRef(function(t,n){var r,o,i,a;const s=He({props:t,name:"MuiAutocomplete"}),{autoComplete:l=!1,autoHighlight:u=!1,autoSelect:c=!1,blurOnSelect:d=!1,ChipProps:f,className:h,clearIcon:p=LI||(LI=g.jsx(uF,{fontSize:"small"})),clearOnBlur:m=!s.freeSolo,clearOnEscape:y=!1,clearText:b="Clear",closeText:x="Close",componentsProps:w={},defaultValue:S=s.multiple?[]:null,disableClearable:O=!1,disableCloseOnSelect:C=!1,disabled:$=!1,disabledItemsFocusable:E=!1,disableListWrap:M=!1,disablePortal:_=!1,filterSelectedOptions:A=!1,forcePopupIcon:j="auto",freeSolo:R=!1,fullWidth:I=!1,getLimitTagsText:k=X=>`+${X}`,getOptionLabel:D,groupBy:F,handleHomeEndKeys:T=!s.freeSolo,includeInputInList:L=!1,limitTags:N=-1,ListboxComponent:z="ul",ListboxProps:B,loading:V=!1,loadingText:W="Loading…",multiple:ee=!1,noOptionsText:pe="No options",openOnFocus:be=!1,openText:ye="Open",PaperComponent:J=Ft,PopperComponent:fe=au,popupIcon:ce=FI||(FI=g.jsx(PF,{})),readOnly:K=!1,renderGroup:Z,renderInput:ie,renderOption:re,renderTags:ae,selectOnFocus:we=!s.freeSolo,size:ge="medium",slotProps:je={}}=s,$e=Q(s,Aq),{getRootProps:Re,getInputProps:Ee,getInputLabelProps:me,getPopupIndicatorProps:xe,getClearProps:ke,getTagProps:ze,getListboxProps:et,getOptionProps:ue,value:te,dirty:Oe,expanded:Xe,id:De,popupOpen:ve,focused:Ge,focusedTag:Ye,anchorEl:Qe,setAnchorEl:Rt,inputValue:jn,groupedOptions:xn}=B7(P({},s,{componentName:"Autocomplete"})),Wn=!O&&!$&&Oe&&!K,bt=(!R||j===!0)&&j!==!1,{onMouseDown:gt}=Ee(),{ref:Gn}=B??{},go=et(),{ref:qr}=go,Oi=Q(go,Rq),Xr=yt(qr,Gn),Kn=D||(X=>{var Ie;return(Ie=X.label)!=null?Ie:X}),sn=P({},s,{disablePortal:_,expanded:Xe,focused:Ge,fullWidth:I,getOptionLabel:Kn,hasClearIcon:Wn,hasPopupIcon:bt,inputFocused:Ye===-1,popupOpen:ve,size:ge}),It=Lq(sn);let wn;if(ee&&te.length>0){const X=Ie=>P({className:It.tag,disabled:$},ze(Ie));ae?wn=ae(te,X,sn):wn=te.map((Ie,We)=>{const Ze=X({index:We}),{key:Ke}=Ze,ht=Q(Ze,jq);return g.jsx(pn,P({label:Kn(Ie),size:ge},ht,f),Ke)})}if(N>-1&&Array.isArray(wn)){const X=wn.length-N;!Ge&&X>0&&(wn=wn.splice(0,N),wn.push(g.jsx("span",{className:It.tag,children:k(X)},wn.length)))}const Yr=Z||(X=>g.jsxs("li",{children:[g.jsx(Kq,{className:It.groupLabel,ownerState:sn,component:"div",children:X.group}),g.jsx(qq,{className:It.groupUl,ownerState:sn,children:X.children})]},X.key)),rr=re||((X,Ie)=>{const{key:We}=X,Ze=Q(X,Dq);return g.jsx("li",P({},Ze,{children:Kn(Ie)}),We)}),$i=(X,Ie)=>{const We=ue({option:X,index:Ie});return rr(P({},We,{className:It.option}),X,{selected:We["aria-selected"],index:Ie,inputValue:jn},sn)},vo=(r=je.clearIndicator)!=null?r:w.clearIndicator,Er=(o=je.paper)!=null?o:w.paper,Qo=(i=je.popper)!=null?i:w.popper,le=(a=je.popupIndicator)!=null?a:w.popupIndicator;return g.jsxs(v.Fragment,{children:[g.jsx(Fq,P({ref:n,className:Y(It.root,h),ownerState:sn},Re($e),{children:ie({id:De,disabled:$,fullWidth:!0,size:ge==="small"?"small":void 0,InputLabelProps:me(),InputProps:P({ref:Rt,className:It.inputRoot,startAdornment:wn,onClick:X=>{X.target===X.currentTarget&>(X)}},(Wn||bt)&&{endAdornment:g.jsxs(Nq,{className:It.endAdornment,ownerState:sn,children:[Wn?g.jsx(Bq,P({},ke(),{"aria-label":b,title:b,ownerState:sn},vo,{className:Y(It.clearIndicator,vo==null?void 0:vo.className),children:p})):null,bt?g.jsx(zq,P({},xe(),{disabled:$,"aria-label":ve?x:ye,title:ve?x:ye,ownerState:sn},le,{className:Y(It.popupIndicator,le==null?void 0:le.className),children:ce})):null]})}),inputProps:P({className:It.input,disabled:$,readOnly:K},Ee())})})),Qe?g.jsx(Hq,P({as:fe,disablePortal:_,style:{width:Qe?Qe.clientWidth:null},ownerState:sn,role:"presentation",anchorEl:Qe,open:ve},Qo,{className:Y(It.popper,Qo==null?void 0:Qo.className),children:g.jsxs(Uq,P({ownerState:sn,as:J},Er,{className:Y(It.paper,Er==null?void 0:Er.className),children:[V&&xn.length===0?g.jsx(Vq,{className:It.loading,ownerState:sn,children:W}):null,xn.length===0&&!R&&!V?g.jsx(Wq,{className:It.noOptions,ownerState:sn,role:"presentation",onMouseDown:X=>{X.preventDefault()},children:pe}):null,xn.length>0?g.jsx(Gq,P({as:z,className:It.listbox,ownerState:sn},Oi,B,{ref:Xr,children:xn.map((X,Ie)=>F?Yr({key:X.key,group:X.group,children:X.options.map((We,Ze)=>$i(We,X.index+Ze))}):$i(X,Ie))})):null]}))})):null]})}),Xq=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Yq={entering:{opacity:1},entered:{opacity:1}},$F=v.forwardRef(function(t,n){const r=mr(),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:d,onEntering:f,onExit:h,onExited:p,onExiting:m,style:y,timeout:b=o,TransitionComponent:x=wi}=t,w=Q(t,Xq),S=v.useRef(null),O=yt(S,Hs(s),n),C=I=>k=>{if(I){const D=S.current;k===void 0?I(D):I(D,k)}},$=C(f),E=C((I,k)=>{aO(I);const D=Mc({style:y,timeout:b,easing:l},{mode:"enter"});I.style.webkitTransition=r.transitions.create("opacity",D),I.style.transition=r.transitions.create("opacity",D),c&&c(I,k)}),M=C(d),_=C(m),A=C(I=>{const k=Mc({style:y,timeout:b,easing:l},{mode:"exit"});I.style.webkitTransition=r.transitions.create("opacity",k),I.style.transition=r.transitions.create("opacity",k),h&&h(I)}),j=C(p),R=I=>{i&&i(S.current,I)};return g.jsx(x,P({appear:a,in:u,nodeRef:S,onEnter:E,onEntered:M,onEntering:$,onExit:A,onExited:j,onExiting:_,addEndListener:R,timeout:b},w,{children:(I,k)=>v.cloneElement(s,P({style:P({opacity:0,visibility:I==="exited"&&!u?"hidden":void 0},Yq[I],y,s.props.style),ref:O},k))}))});function Qq(e){return Be("MuiBackdrop",e)}Le("MuiBackdrop",["root","invisible"]);const Zq=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Jq=e=>{const{classes:t,invisible:n}=e;return Ce({root:["root",n&&"invisible"]},Qq,t)},eX=ne("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"})),EF=v.forwardRef(function(t,n){var r,o,i;const a=He({props:t,name:"MuiBackdrop"}),{children:s,className:l,component:u="div",components:c={},componentsProps:d={},invisible:f=!1,open:h,slotProps:p={},slots:m={},TransitionComponent:y=$F,transitionDuration:b}=a,x=Q(a,Zq),w=P({},a,{component:u,invisible:f}),S=Jq(w),O=(r=p.root)!=null?r:d.root;return g.jsx(y,P({in:h,timeout:b},x,{children:g.jsx(eX,P({"aria-hidden":!0},O,{as:(o=(i=m.root)!=null?i:c.Root)!=null?o:u,className:Y(S.root,l,O==null?void 0:O.className),ownerState:P({},w,O==null?void 0:O.ownerState),classes:S,ref:n,children:s}))}))});function tX(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,i=qP({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 nX(e){return Be("MuiBadge",e)}const Ua=Le("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"]),rX=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],Cx=10,Sx=4,oX=e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:i,classes:a={}}=e,s={root:["root"],badge:["badge",i,r&&"invisible",`anchorOrigin${oe(n.vertical)}${oe(n.horizontal)}`,`anchorOrigin${oe(n.vertical)}${oe(n.horizontal)}${oe(o)}`,`overlap${oe(o)}`,t!=="default"&&`color${oe(t)}`]};return Ce(s,nX,a)},iX=ne("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),aX=ne("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${oe(n.anchorOrigin.vertical)}${oe(n.anchorOrigin.horizontal)}${oe(n.overlap)}`],n.color!=="default"&&t[`color${oe(n.color)}`],n.invisible&&t.invisible]}})(({theme:e})=>{var t;return{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:Cx*2,lineHeight:1,padding:"0 6px",height:Cx*2,borderRadius:Cx,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r,o;return((r=e.vars)!=null?r:e).palette[n].main&&((o=e.vars)!=null?o:e).palette[n].contrastText}).map(n=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText}})),{props:{variant:"dot"},style:{borderRadius:Sx,height:Sx*2,minWidth:Sx*2,padding:0}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="rectangular",style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Ua.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="rectangular",style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Ua.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="rectangular",style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Ua.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="rectangular",style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Ua.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="circular",style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Ua.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="circular",style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Ua.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="circular",style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Ua.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="circular",style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Ua.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]}}),kF=v.forwardRef(function(t,n){var r,o,i,a,s,l;const u=He({props:t,name:"MuiBadge"}),{anchorOrigin:c={vertical:"top",horizontal:"right"},className:d,component:f,components:h={},componentsProps:p={},children:m,overlap:y="rectangular",color:b="default",invisible:x=!1,max:w=99,badgeContent:S,slots:O,slotProps:C,showZero:$=!1,variant:E="standard"}=u,M=Q(u,rX),{badgeContent:_,invisible:A,max:j,displayValue:R}=tX({max:w,invisible:x,badgeContent:S,showZero:$}),I=qP({anchorOrigin:c,color:b,overlap:y,variant:E,badgeContent:S}),k=A||_==null&&E!=="dot",{color:D=b,overlap:F=y,anchorOrigin:T=c,variant:L=E}=k?I:u,N=L!=="dot"?R:void 0,z=P({},u,{badgeContent:_,invisible:k,max:j,displayValue:N,showZero:$,anchorOrigin:T,color:D,overlap:F,variant:L}),B=oX(z),V=(r=(o=O==null?void 0:O.root)!=null?o:h.Root)!=null?r:iX,W=(i=(a=O==null?void 0:O.badge)!=null?a:h.Badge)!=null?i:aX,ee=(s=C==null?void 0:C.root)!=null?s:p.root,pe=(l=C==null?void 0:C.badge)!=null?l:p.badge,be=Yn({elementType:V,externalSlotProps:ee,externalForwardedProps:M,additionalProps:{ref:n,as:f},ownerState:z,className:Y(ee==null?void 0:ee.className,B.root,d)}),ye=Yn({elementType:W,externalSlotProps:pe,ownerState:z,className:Y(B.badge,pe==null?void 0:pe.className)});return g.jsxs(V,P({},be,{children:[m,g.jsx(W,P({},ye,{children:N}))]}))}),sX=Le("MuiBox",["root"]),lX=ZP(),Se=FV({themeId:Vl,defaultTheme:lX,defaultClassName:sX.root,generateClassName:$L.generate});function uX(e){return Be("MuiButton",e)}const $m=Le("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),cX=v.createContext({}),dX=v.createContext(void 0),fX=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],pX=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e,s={root:["root",i,`${i}${oe(t)}`,`size${oe(o)}`,`${i}Size${oe(o)}`,`color${oe(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${oe(o)}`],endIcon:["icon","endIcon",`iconSize${oe(o)}`]},l=Ce(s,uX,a);return P({},a,l)},IF=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}}),hX=ne(Ls,{shouldForwardProp:e=>gr(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${oe(n.color)}`],t[`size${oe(n.size)}`],t[`${n.variant}Size${oe(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})`:nt(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})`:nt(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})`:nt(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]}),[`&.${$m.focusVisible}`]:P({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${$m.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 ${nt(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"},[`&.${$m.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${$m.disabled}`]:{boxShadow:"none"}}),mX=ne("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${oe(n.size)}`]]}})(({ownerState:e})=>P({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},IF(e))),gX=ne("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${oe(n.size)}`]]}})(({ownerState:e})=>P({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},IF(e))),nn=v.forwardRef(function(t,n){const r=v.useContext(cX),o=v.useContext(dX),i=yp(r,t),a=He({props:i,name:"MuiButton"}),{children:s,color:l="primary",component:u="button",className:c,disabled:d=!1,disableElevation:f=!1,disableFocusRipple:h=!1,endIcon:p,focusVisibleClassName:m,fullWidth:y=!1,size:b="medium",startIcon:x,type:w,variant:S="text"}=a,O=Q(a,fX),C=P({},a,{color:l,component:u,disabled:d,disableElevation:f,disableFocusRipple:h,fullWidth:y,size:b,type:w,variant:S}),$=pX(C),E=x&&g.jsx(mX,{className:$.startIcon,ownerState:C,children:x}),M=p&&g.jsx(gX,{className:$.endIcon,ownerState:C,children:p}),_=o||"";return g.jsxs(hX,P({ownerState:C,className:Y(r.className,$.root,c,_),component:u,disabled:d,focusRipple:!h,focusVisibleClassName:Y($.focusVisible,m),ref:n,type:w},O,{classes:$,children:[E,s,M]}))});function vX(e){return Be("MuiCard",e)}Le("MuiCard",["root"]);const yX=["className","raised"],bX=e=>{const{classes:t}=e;return Ce({root:["root"]},vX,t)},xX=ne(Ft,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),ms=v.forwardRef(function(t,n){const r=He({props:t,name:"MuiCard"}),{className:o,raised:i=!1}=r,a=Q(r,yX),s=P({},r,{raised:i}),l=bX(s);return g.jsx(xX,P({className:Y(l.root,o),elevation:i?8:void 0,ref:n,ownerState:s},a))});function wX(e){return Be("MuiCardActions",e)}Le("MuiCardActions",["root","spacing"]);const CX=["disableSpacing","className"],SX=e=>{const{classes:t,disableSpacing:n}=e;return Ce({root:["root",!n&&"spacing"]},wX,t)},PX=ne("div",{name:"MuiCardActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>P({display:"flex",alignItems:"center",padding:8},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),TF=v.forwardRef(function(t,n){const r=He({props:t,name:"MuiCardActions"}),{disableSpacing:o=!1,className:i}=r,a=Q(r,CX),s=P({},r,{disableSpacing:o}),l=SX(s);return g.jsx(PX,P({className:Y(l.root,i),ownerState:s,ref:n},a))});function OX(e){return Be("MuiCardContent",e)}Le("MuiCardContent",["root"]);const $X=["className","component"],EX=e=>{const{classes:t}=e;return Ce({root:["root"]},OX,t)},kX=ne("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),gs=v.forwardRef(function(t,n){const r=He({props:t,name:"MuiCardContent"}),{className:o,component:i="div"}=r,a=Q(r,$X),s=P({},r,{component:i}),l=EX(s);return g.jsx(kX,P({as:i,className:Y(l.root,o),ownerState:s,ref:n},a))});function IX(e){return Be("PrivateSwitchBase",e)}Le("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const TX=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],MX=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,i={root:["root",n&&"checked",r&&"disabled",o&&`edge${oe(o)}`],input:["input"]};return Ce(i,IX,t)},_X=ne(Ls,{name:"MuiSwitchBase"})(({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})),AX=ne("input",{name:"MuiSwitchBase",shouldForwardProp:gr})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),MF=v.forwardRef(function(t,n){const{autoFocus:r,checked:o,checkedIcon:i,className:a,defaultChecked:s,disabled:l,disableFocusRipple:u=!1,edge:c=!1,icon:d,id:f,inputProps:h,inputRef:p,name:m,onBlur:y,onChange:b,onFocus:x,readOnly:w,required:S=!1,tabIndex:O,type:C,value:$}=t,E=Q(t,TX),[M,_]=Is({controlled:o,default:!!s,name:"SwitchBase",state:"checked"}),A=Fa(),j=L=>{x&&x(L),A&&A.onFocus&&A.onFocus(L)},R=L=>{y&&y(L),A&&A.onBlur&&A.onBlur(L)},I=L=>{if(L.nativeEvent.defaultPrevented)return;const N=L.target.checked;_(N),b&&b(L,N)};let k=l;A&&typeof k>"u"&&(k=A.disabled);const D=C==="checkbox"||C==="radio",F=P({},t,{checked:M,disabled:k,disableFocusRipple:u,edge:c}),T=MX(F);return g.jsxs(_X,P({component:"span",className:Y(T.root,a),centerRipple:!0,focusRipple:!u,disabled:k,tabIndex:null,role:void 0,onFocus:j,onBlur:R,ownerState:F,ref:n},E,{children:[g.jsx(AX,P({autoFocus:r,checked:o,defaultChecked:s,className:T.input,disabled:k,id:D?f:void 0,name:m,onChange:I,readOnly:w,ref:p,required:S,ownerState:F,tabIndex:O,type:C},C==="checkbox"&&$===void 0?{}:{value:$},h)),M?i:d]}))}),RX=Te(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"),jX=Te(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"),DX=Te(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 LX(e){return Be("MuiCheckbox",e)}const Px=Le("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),FX=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],NX=e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,i={root:["root",n&&"indeterminate",`color${oe(r)}`,`size${oe(o)}`]},a=Ce(i,LX,t);return P({},t,a)},BX=ne(MF,{shouldForwardProp:e=>gr(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${oe(n.size)}`],n.color!=="default"&&t[`color${oe(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})`:nt(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${Px.checked}, &.${Px.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Px.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),zX=g.jsx(jX,{}),HX=g.jsx(RX,{}),UX=g.jsx(DX,{}),VX=v.forwardRef(function(t,n){var r,o;const i=He({props:t,name:"MuiCheckbox"}),{checkedIcon:a=zX,color:s="primary",icon:l=HX,indeterminate:u=!1,indeterminateIcon:c=UX,inputProps:d,size:f="medium",className:h}=i,p=Q(i,FX),m=u?c:l,y=u?c:a,b=P({},i,{color:s,indeterminate:u,size:f}),x=NX(b);return g.jsx(BX,P({type:"checkbox",inputProps:P({"data-indeterminate":u},d),icon:v.cloneElement(m,{fontSize:(r=m.props.fontSize)!=null?r:f}),checkedIcon:v.cloneElement(y,{fontSize:(o=y.props.fontSize)!=null?o:f}),ownerState:b,ref:n,className:Y(x.root,h)},p,{classes:x}))});function WX(e){return Be("MuiCircularProgress",e)}Le("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const GX=["className","color","disableShrink","size","style","thickness","value","variant"];let Tb=e=>e,NI,BI,zI,HI;const Va=44,KX=xi(NI||(NI=Tb` 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } `)),qX=xi(BI||(BI=Tb` 0% { stroke-dasharray: 1px, 200px; stroke-dashoffset: 0; } 50% { stroke-dasharray: 100px, 200px; stroke-dashoffset: -15px; } 100% { stroke-dasharray: 100px, 200px; stroke-dashoffset: -125px; } `)),XX=e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,i={root:["root",n,`color${oe(r)}`],svg:["svg"],circle:["circle",`circle${oe(n)}`,o&&"circleDisableShrink"]};return Ce(i,WX,t)},YX=ne("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${oe(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"&&Ma(zI||(zI=Tb` animation: ${0} 1.4s linear infinite; `),KX)),QX=ne("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),ZX=ne("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${oe(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&&Ma(HI||(HI=Tb` animation: ${0} 1.4s ease-in-out infinite; `),qX)),co=v.forwardRef(function(t,n){const r=He({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:d="indeterminate"}=r,f=Q(r,GX),h=P({},r,{color:i,disableShrink:a,size:s,thickness:u,value:c,variant:d}),p=XX(h),m={},y={},b={};if(d==="determinate"){const x=2*Math.PI*((Va-u)/2);m.strokeDasharray=x.toFixed(3),b["aria-valuenow"]=Math.round(c),m.strokeDashoffset=`${((100-c)/100*x).toFixed(3)}px`,y.transform="rotate(-90deg)"}return g.jsx(YX,P({className:Y(p.root,o),style:P({width:s,height:s},y,l),ownerState:h,ref:n,role:"progressbar"},b,f,{children:g.jsx(QX,{className:p.svg,ownerState:h,viewBox:`${Va/2} ${Va/2} ${Va} ${Va}`,children:g.jsx(ZX,{className:p.circle,style:m,ownerState:h,cx:Va,cy:Va,r:(Va-u)/2,fill:"none",strokeWidth:u})})}))});function UI(e){return e.substring(2).toLowerCase()}function JX(e,t){return t.documentElement.clientWidth(setTimeout(()=>{l.current=!0},0),()=>{l.current=!1}),[]);const c=yt(Hs(t),s),d=Lt(p=>{const m=u.current;u.current=!1;const y=Wt(s.current);if(!l.current||!s.current||"clientX"in p&&JX(p,y))return;if(a.current){a.current=!1;return}let b;p.composedPath?b=p.composedPath().indexOf(s.current)>-1:b=!y.documentElement.contains(p.target)||s.current.contains(p.target),!b&&(n||!m)&&o(p)}),f=p=>m=>{u.current=!0;const y=t.props[p];y&&y(m)},h={ref:c};return i!==!1&&(h[i]=f(i)),v.useEffect(()=>{if(i!==!1){const p=UI(i),m=Wt(s.current),y=()=>{a.current=!0};return m.addEventListener(p,d),m.addEventListener("touchmove",y),()=>{m.removeEventListener(p,d),m.removeEventListener("touchmove",y)}}},[d,i]),r!==!1&&(h[r]=f(r)),v.useEffect(()=>{if(r!==!1){const p=UI(r),m=Wt(s.current);return m.addEventListener(p,d),()=>{m.removeEventListener(p,d)}}},[d,r]),g.jsx(v.Fragment,{children:v.cloneElement(t,h)})}function eY(e){const t=Wt(e);return t.body===e?Yi(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Hf(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function VI(e){return parseInt(Yi(e).getComputedStyle(e).paddingRight,10)||0}function tY(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 WI(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,a=>{const s=i.indexOf(a)===-1,l=!tY(a);s&&l&&Hf(a,o)})}function Ox(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function nY(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(eY(r)){const a=AL(Wt(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${VI(r)+a}px`;const s=Wt(r).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${VI(l)+a}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=Wt(r).body;else{const a=r.parentElement,s=Yi(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 rY(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class oY{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&&Hf(t.modalRef,!1);const o=rY(n);WI(n,t.mount,t.modalRef,o,!0);const i=Ox(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=Ox(this.containers,i=>i.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=nY(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=Ox(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&&Hf(t.modalRef,n),WI(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&&Hf(a.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const iY=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function aY(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 sY(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 lY(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||sY(e))}function uY(e){const t=[],n=[];return Array.from(e.querySelectorAll(iY)).forEach((r,o)=>{const i=aY(r);i===-1||!lY(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 cY(){return!0}function AF(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=uY,isEnabled:a=cY,open:s}=e,l=v.useRef(!1),u=v.useRef(null),c=v.useRef(null),d=v.useRef(null),f=v.useRef(null),h=v.useRef(!1),p=v.useRef(null),m=yt(Hs(t),p),y=v.useRef(null);v.useEffect(()=>{!s||!p.current||(h.current=!n)},[n,s]),v.useEffect(()=>{if(!s||!p.current)return;const w=Wt(p.current);return p.current.contains(w.activeElement)||(p.current.hasAttribute("tabIndex")||p.current.setAttribute("tabIndex","-1"),h.current&&p.current.focus()),()=>{o||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}},[s]),v.useEffect(()=>{if(!s||!p.current)return;const w=Wt(p.current),S=$=>{y.current=$,!(r||!a()||$.key!=="Tab")&&w.activeElement===p.current&&$.shiftKey&&(l.current=!0,c.current&&c.current.focus())},O=()=>{const $=p.current;if($===null)return;if(!w.hasFocus()||!a()||l.current){l.current=!1;return}if($.contains(w.activeElement)||r&&w.activeElement!==u.current&&w.activeElement!==c.current)return;if(w.activeElement!==f.current)f.current=null;else if(f.current!==null)return;if(!h.current)return;let E=[];if((w.activeElement===u.current||w.activeElement===c.current)&&(E=i(p.current)),E.length>0){var M,_;const A=!!((M=y.current)!=null&&M.shiftKey&&((_=y.current)==null?void 0:_.key)==="Tab"),j=E[0],R=E[E.length-1];typeof j!="string"&&typeof R!="string"&&(A?R.focus():j.focus())}else $.focus()};w.addEventListener("focusin",O),w.addEventListener("keydown",S,!0);const C=setInterval(()=>{w.activeElement&&w.activeElement.tagName==="BODY"&&O()},50);return()=>{clearInterval(C),w.removeEventListener("focusin",O),w.removeEventListener("keydown",S,!0)}},[n,r,o,a,s,i]);const b=w=>{d.current===null&&(d.current=w.relatedTarget),h.current=!0,f.current=w.target;const S=t.props.onFocus;S&&S(w)},x=w=>{d.current===null&&(d.current=w.relatedTarget),h.current=!0};return g.jsxs(v.Fragment,{children:[g.jsx("div",{tabIndex:s?0:-1,onFocus:x,ref:u,"data-testid":"sentinelStart"}),v.cloneElement(t,{ref:m,onFocus:b}),g.jsx("div",{tabIndex:s?0:-1,onFocus:x,ref:c,"data-testid":"sentinelEnd"})]})}function dY(e){return typeof e=="function"?e():e}function fY(e){return e?e.props.hasOwnProperty("in"):!1}const pY=new oY;function hY(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=pY,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:u,open:c,rootRef:d}=e,f=v.useRef({}),h=v.useRef(null),p=v.useRef(null),m=yt(p,d),[y,b]=v.useState(!c),x=fY(l);let w=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(w=!1);const S=()=>Wt(h.current),O=()=>(f.current.modalRef=p.current,f.current.mount=h.current,f.current),C=()=>{o.mount(O(),{disableScrollLock:r}),p.current&&(p.current.scrollTop=0)},$=Lt(()=>{const D=dY(t)||S().body;o.add(O(),D),p.current&&C()}),E=v.useCallback(()=>o.isTopModal(O()),[o]),M=Lt(D=>{h.current=D,D&&(c&&E()?C():p.current&&Hf(p.current,w))}),_=v.useCallback(()=>{o.remove(O(),w)},[w,o]);v.useEffect(()=>()=>{_()},[_]),v.useEffect(()=>{c?$():(!x||!i)&&_()},[c,_,x,i,$]);const A=D=>F=>{var T;(T=D.onKeyDown)==null||T.call(D,F),!(F.key!=="Escape"||F.which===229||!E())&&(n||(F.stopPropagation(),u&&u(F,"escapeKeyDown")))},j=D=>F=>{var T;(T=D.onClick)==null||T.call(D,F),F.target===F.currentTarget&&u&&u(F,"backdropClick")};return{getRootProps:(D={})=>{const F=Nf(e);delete F.onTransitionEnter,delete F.onTransitionExited;const T=P({},F,D);return P({role:"presentation"},T,{onKeyDown:A(T),ref:m})},getBackdropProps:(D={})=>{const F=D;return P({"aria-hidden":!0},F,{onClick:j(F),open:c})},getTransitionProps:()=>{const D=()=>{b(!1),a&&a()},F=()=>{b(!0),s&&s(),i&&_()};return{onEnter:Bk(D,l==null?void 0:l.props.onEnter),onExited:Bk(F,l==null?void 0:l.props.onExited)}},rootRef:m,portalRef:M,isTopModal:E,exited:y,hasTransition:x}}function mY(e){return Be("MuiModal",e)}Le("MuiModal",["root","hidden","backdrop"]);const gY=["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"],vY=e=>{const{open:t,exited:n,classes:r}=e;return Ce({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},mY,r)},yY=ne("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"})),bY=ne(EF,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),mO=v.forwardRef(function(t,n){var r,o,i,a,s,l;const u=He({name:"MuiModal",props:t}),{BackdropComponent:c=bY,BackdropProps:d,className:f,closeAfterTransition:h=!1,children:p,container:m,component:y,components:b={},componentsProps:x={},disableAutoFocus:w=!1,disableEnforceFocus:S=!1,disableEscapeKeyDown:O=!1,disablePortal:C=!1,disableRestoreFocus:$=!1,disableScrollLock:E=!1,hideBackdrop:M=!1,keepMounted:_=!1,onBackdropClick:A,open:j,slotProps:R,slots:I}=u,k=Q(u,gY),D=P({},u,{closeAfterTransition:h,disableAutoFocus:w,disableEnforceFocus:S,disableEscapeKeyDown:O,disablePortal:C,disableRestoreFocus:$,disableScrollLock:E,hideBackdrop:M,keepMounted:_}),{getRootProps:F,getBackdropProps:T,getTransitionProps:L,portalRef:N,isTopModal:z,exited:B,hasTransition:V}=hY(P({},D,{rootRef:n})),W=P({},D,{exited:B}),ee=vY(W),pe={};if(p.props.tabIndex===void 0&&(pe.tabIndex="-1"),V){const{onEnter:Z,onExited:ie}=L();pe.onEnter=Z,pe.onExited=ie}const be=(r=(o=I==null?void 0:I.root)!=null?o:b.Root)!=null?r:yY,ye=(i=(a=I==null?void 0:I.backdrop)!=null?a:b.Backdrop)!=null?i:c,J=(s=R==null?void 0:R.root)!=null?s:x.root,fe=(l=R==null?void 0:R.backdrop)!=null?l:x.backdrop,ce=Yn({elementType:be,externalSlotProps:J,externalForwardedProps:k,getSlotProps:F,additionalProps:{ref:n,as:y},ownerState:W,className:Y(f,J==null?void 0:J.className,ee==null?void 0:ee.root,!W.open&&W.exited&&(ee==null?void 0:ee.hidden))}),K=Yn({elementType:ye,externalSlotProps:fe,additionalProps:d,getSlotProps:Z=>T(P({},Z,{onClick:ie=>{A&&A(ie),Z!=null&&Z.onClick&&Z.onClick(ie)}})),className:Y(fe==null?void 0:fe.className,d==null?void 0:d.className,ee==null?void 0:ee.backdrop),ownerState:W});return!_&&!j&&(!V||B)?null:g.jsx(CF,{ref:N,container:m,disablePortal:C,children:g.jsxs(be,P({},ce,{children:[!M&&c?g.jsx(ye,P({},K)):null,g.jsx(AF,{disableEnforceFocus:S,disableAutoFocus:w,disableRestoreFocus:$,isEnabled:z,open:j,children:v.cloneElement(p,pe)})]}))})});function xY(e){return Be("MuiDialog",e)}const $x=Le("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),RF=v.createContext({}),wY=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],CY=ne(EF,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),SY=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:i}=e,a={root:["root"],container:["container",`scroll${oe(n)}`],paper:["paper",`paperScroll${oe(n)}`,`paperWidth${oe(String(r))}`,o&&"paperFullWidth",i&&"paperFullScreen"]};return Ce(a,xY,t)},PY=ne(mO,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),OY=ne("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${oe(n.scroll)}`]]}})(({ownerState:e})=>P({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),$Y=ne(Ft,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${oe(n.scroll)}`],t[`paperWidth${oe(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>P({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${$x.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${$x.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${$x.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),Mb=v.forwardRef(function(t,n){const r=He({props:t,name:"MuiDialog"}),o=mr(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":s,BackdropComponent:l,BackdropProps:u,children:c,className:d,disableEscapeKeyDown:f=!1,fullScreen:h=!1,fullWidth:p=!1,maxWidth:m="sm",onBackdropClick:y,onClick:b,onClose:x,open:w,PaperComponent:S=Ft,PaperProps:O={},scroll:C="paper",TransitionComponent:$=$F,transitionDuration:E=i,TransitionProps:M}=r,_=Q(r,wY),A=P({},r,{disableEscapeKeyDown:f,fullScreen:h,fullWidth:p,maxWidth:m,scroll:C}),j=SY(A),R=v.useRef(),I=T=>{R.current=T.target===T.currentTarget},k=T=>{b&&b(T),R.current&&(R.current=null,y&&y(T),x&&x(T,"backdropClick"))},D=Dt(s),F=v.useMemo(()=>({titleId:D}),[D]);return g.jsx(PY,P({className:Y(j.root,d),closeAfterTransition:!0,components:{Backdrop:CY},componentsProps:{backdrop:P({transitionDuration:E,as:l},u)},disableEscapeKeyDown:f,onClose:x,open:w,ref:n,onClick:k,ownerState:A},_,{children:g.jsx($,P({appear:!0,in:w,timeout:E,role:"presentation"},M,{children:g.jsx(OY,{className:Y(j.container),onMouseDown:I,ownerState:A,children:g.jsx($Y,P({as:S,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":D},O,{className:Y(j.paper,O.className),ownerState:A,children:g.jsx(RF.Provider,{value:F,children:c})}))})}))}))});function EY(e){return Be("MuiDialogActions",e)}Le("MuiDialogActions",["root","spacing"]);const kY=["className","disableSpacing"],IY=e=>{const{classes:t,disableSpacing:n}=e;return Ce({root:["root",!n&&"spacing"]},EY,t)},TY=ne("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>P({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),_b=v.forwardRef(function(t,n){const r=He({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:i=!1}=r,a=Q(r,kY),s=P({},r,{disableSpacing:i}),l=IY(s);return g.jsx(TY,P({className:Y(l.root,o),ownerState:s,ref:n},a))});function MY(e){return Be("MuiDialogContent",e)}Le("MuiDialogContent",["root","dividers"]);function _Y(e){return Be("MuiDialogTitle",e)}const AY=Le("MuiDialogTitle",["root"]),RY=["className","dividers"],jY=e=>{const{classes:t,dividers:n}=e;return Ce({root:["root",n&&"dividers"]},MY,t)},DY=ne("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>P({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${AY.root} + &`]:{paddingTop:0}})),Ab=v.forwardRef(function(t,n){const r=He({props:t,name:"MuiDialogContent"}),{className:o,dividers:i=!1}=r,a=Q(r,RY),s=P({},r,{dividers:i}),l=jY(s);return g.jsx(DY,P({className:Y(l.root,o),ownerState:s,ref:n},a))}),LY=["className","id"],FY=e=>{const{classes:t}=e;return Ce({root:["root"]},_Y,t)},NY=ne(he,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),Rb=v.forwardRef(function(t,n){const r=He({props:t,name:"MuiDialogTitle"}),{className:o,id:i}=r,a=Q(r,LY),s=r,l=FY(s),{titleId:u=i}=v.useContext(RF);return g.jsx(NY,P({component:"h2",className:Y(l.root,o),ownerState:s,ref:n,variant:"h6",id:i??u},a))});function BY(e){return Be("MuiDivider",e)}const GI=Le("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),zY=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],HY=e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:s,variant:l}=e;return Ce({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"]},BY,r)},UY=ne("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)`:nt(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,borderTopStyle:"solid",borderLeftStyle:"solid","&::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}`,borderTopStyle:"inherit"}}),({theme:e,ownerState:t})=>P({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}),({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%"}})),VY=ne("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)`})),Gr=v.forwardRef(function(t,n){const r=He({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:d=s!=="hr"?"separator":void 0,textAlign:f="center",variant:h="fullWidth"}=r,p=Q(r,zY),m=P({},r,{absolute:o,component:s,flexItem:l,light:u,orientation:c,role:d,textAlign:f,variant:h}),y=HY(m);return g.jsx(UY,P({as:s,className:Y(y.root,a),role:d,ref:n,ownerState:m},p,{children:i?g.jsx(VY,{className:y.wrapper,ownerState:m,children:i}):null}))});Gr.muiSkipListHighlight=!0;const WY=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function GY(e,t,n){const r=t.getBoundingClientRect(),o=n&&n.getBoundingClientRect(),i=Yi(t);let a;if(t.fakeTransform)a=t.fakeTransform;else{const u=i.getComputedStyle(t);a=u.getPropertyValue("-webkit-transform")||u.getPropertyValue("transform")}let s=0,l=0;if(a&&a!=="none"&&typeof a=="string"){const u=a.split("(")[1].split(")")[0].split(",");s=parseInt(u[4],10),l=parseInt(u[5],10)}return e==="left"?o?`translateX(${o.right+s-r.left}px)`:`translateX(${i.innerWidth+s-r.left}px)`:e==="right"?o?`translateX(-${r.right-o.left-s}px)`:`translateX(-${r.left+r.width-s}px)`:e==="up"?o?`translateY(${o.bottom+l-r.top}px)`:`translateY(${i.innerHeight+l-r.top}px)`:o?`translateY(-${r.top-o.top+r.height-l}px)`:`translateY(-${r.top+r.height-l}px)`}function KY(e){return typeof e=="function"?e():e}function Em(e,t,n){const r=KY(n),o=GY(e,t,r);o&&(t.style.webkitTransform=o,t.style.transform=o)}const qY=v.forwardRef(function(t,n){const r=mr(),o={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:s=!0,children:l,container:u,direction:c="down",easing:d=o,in:f,onEnter:h,onEntered:p,onEntering:m,onExit:y,onExited:b,onExiting:x,style:w,timeout:S=i,TransitionComponent:O=wi}=t,C=Q(t,WY),$=v.useRef(null),E=yt(Hs(l),$,n),M=T=>L=>{T&&(L===void 0?T($.current):T($.current,L))},_=M((T,L)=>{Em(c,T,u),aO(T),h&&h(T,L)}),A=M((T,L)=>{const N=Mc({timeout:S,style:w,easing:d},{mode:"enter"});T.style.webkitTransition=r.transitions.create("-webkit-transform",P({},N)),T.style.transition=r.transitions.create("transform",P({},N)),T.style.webkitTransform="none",T.style.transform="none",m&&m(T,L)}),j=M(p),R=M(x),I=M(T=>{const L=Mc({timeout:S,style:w,easing:d},{mode:"exit"});T.style.webkitTransition=r.transitions.create("-webkit-transform",L),T.style.transition=r.transitions.create("transform",L),Em(c,T,u),y&&y(T)}),k=M(T=>{T.style.webkitTransition="",T.style.transition="",b&&b(T)}),D=T=>{a&&a($.current,T)},F=v.useCallback(()=>{$.current&&Em(c,$.current,u)},[c,u]);return v.useEffect(()=>{if(f||c==="down"||c==="right")return;const T=Th(()=>{$.current&&Em(c,$.current,u)}),L=Yi($.current);return L.addEventListener("resize",T),()=>{T.clear(),L.removeEventListener("resize",T)}},[c,f,u]),v.useEffect(()=>{f||F()},[f,F]),g.jsx(O,P({nodeRef:$,onEnter:_,onEntered:j,onEntering:A,onExit:I,onExited:k,onExiting:R,addEndListener:D,appear:s,in:f,timeout:S},C,{children:(T,L)=>v.cloneElement(l,P({ref:E,style:P({visibility:T==="exited"&&!f?"hidden":void 0},w,l.props.style)},L))}))});function XY(e){return Be("MuiDrawer",e)}Le("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const YY=["BackdropProps"],QY=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],jF=(e,t)=>{const{ownerState:n}=e;return[t.root,(n.variant==="permanent"||n.variant==="persistent")&&t.docked,t.modal]},ZY=e=>{const{classes:t,anchor:n,variant:r}=e,o={root:["root"],docked:[(r==="permanent"||r==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${oe(n)}`,r!=="temporary"&&`paperAnchorDocked${oe(n)}`]};return Ce(o,XY,t)},JY=ne(mO,{name:"MuiDrawer",slot:"Root",overridesResolver:jF})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),KI=ne("div",{shouldForwardProp:gr,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:jF})({flex:"0 0 auto"}),eQ=ne(Ft,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${oe(n.anchor)}`],n.variant!=="temporary"&&t[`paperAnchorDocked${oe(n.anchor)}`]]}})(({theme:e,ownerState:t})=>P({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},t.anchor==="left"&&{left:0},t.anchor==="top"&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="right"&&{right:0},t.anchor==="bottom"&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="left"&&t.variant!=="temporary"&&{borderRight:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="top"&&t.variant!=="temporary"&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="right"&&t.variant!=="temporary"&&{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="bottom"&&t.variant!=="temporary"&&{borderTop:`1px solid ${(e.vars||e).palette.divider}`})),DF={left:"right",right:"left",top:"down",bottom:"up"};function tQ(e){return["left","right"].indexOf(e)!==-1}function nQ({direction:e},t){return e==="rtl"&&tQ(t)?DF[t]:t}const qI=v.forwardRef(function(t,n){const r=He({props:t,name:"MuiDrawer"}),o=mr(),i=gd(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{anchor:s="left",BackdropProps:l,children:u,className:c,elevation:d=16,hideBackdrop:f=!1,ModalProps:{BackdropProps:h}={},onClose:p,open:m=!1,PaperProps:y={},SlideProps:b,TransitionComponent:x=qY,transitionDuration:w=a,variant:S="temporary"}=r,O=Q(r.ModalProps,YY),C=Q(r,QY),$=v.useRef(!1);v.useEffect(()=>{$.current=!0},[]);const E=nQ({direction:i?"rtl":"ltr"},s),_=P({},r,{anchor:s,elevation:d,open:m,variant:S},C),A=ZY(_),j=g.jsx(eQ,P({elevation:S==="temporary"?d:0,square:!0},y,{className:Y(A.paper,y.className),ownerState:_,children:u}));if(S==="permanent")return g.jsx(KI,P({className:Y(A.root,A.docked,c),ownerState:_,ref:n},C,{children:j}));const R=g.jsx(x,P({in:m,direction:DF[E],timeout:w,appear:$.current},b,{children:j}));return S==="persistent"?g.jsx(KI,P({className:Y(A.root,A.docked,c),ownerState:_,ref:n},C,{children:R})):g.jsx(JY,P({BackdropProps:P({},l,h,{transitionDuration:w}),className:Y(A.root,A.modal,c),open:m,ownerState:_,onClose:p,hideBackdrop:f,ref:n},C,O,{children:R}))}),rQ=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],oQ=e=>{const{classes:t,disableUnderline:n}=e,o=Ce({root:["root",!n&&"underline"],input:["input"]},Mq,t);return P({},t,o)},iQ=ne(kb,{shouldForwardProp:e=>gr(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...$b(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}},[`&.${no.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${no.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"},[`&.${no.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${no.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(.${no.disabled}, .${no.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${no.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},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9}))}),aQ=ne(Ib,{name:"MuiFilledInput",slot:"Input",overridesResolver:Eb})(({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.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),gO=v.forwardRef(function(t,n){var r,o,i,a;const s=He({props:t,name:"MuiFilledInput"}),{components:l={},componentsProps:u,fullWidth:c=!1,inputComponent:d="input",multiline:f=!1,slotProps:h,slots:p={},type:m="text"}=s,y=Q(s,rQ),b=P({},s,{fullWidth:c,inputComponent:d,multiline:f,type:m}),x=oQ(s),w={root:{ownerState:b},input:{ownerState:b}},S=h??u?Pr(w,h??u):w,O=(r=(o=p.root)!=null?o:l.Root)!=null?r:iQ,C=(i=(a=p.input)!=null?a:l.Input)!=null?i:aQ;return g.jsx(wd,P({slots:{root:O,input:C},componentsProps:S,fullWidth:c,inputComponent:d,multiline:f,ref:n,type:m},y,{classes:x}))});gO.muiName="Input";function sQ(e){return Be("MuiFormControl",e)}Le("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const lQ=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],uQ=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${oe(n)}`,r&&"fullWidth"]};return Ce(o,sQ,t)},cQ=ne("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>P({},t.root,t[`margin${oe(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%"})),ga=v.forwardRef(function(t,n){const r=He({props:t,name:"MuiFormControl"}),{children:o,className:i,color:a="primary",component:s="div",disabled:l=!1,error:u=!1,focused:c,fullWidth:d=!1,hiddenLabel:f=!1,margin:h="none",required:p=!1,size:m="medium",variant:y="outlined"}=r,b=Q(r,lQ),x=P({},r,{color:a,component:s,disabled:l,error:u,fullWidth:d,hiddenLabel:f,margin:h,required:p,size:m,variant:y}),w=uQ(x),[S,O]=v.useState(()=>{let R=!1;return o&&v.Children.forEach(o,I=>{if(!dg(I,["Input","Select"]))return;const k=dg(I,["Select"])?I.props.input:I;k&&Pq(k.props)&&(R=!0)}),R}),[C,$]=v.useState(()=>{let R=!1;return o&&v.Children.forEach(o,I=>{dg(I,["Input","Select"])&&(iv(I.props,!0)||iv(I.props.inputProps,!0))&&(R=!0)}),R}),[E,M]=v.useState(!1);l&&E&&M(!1);const _=c!==void 0&&!l?c:E;let A;const j=v.useMemo(()=>({adornedStart:S,setAdornedStart:O,color:a,disabled:l,error:u,filled:C,focused:_,fullWidth:d,hiddenLabel:f,size:m,onBlur:()=>{M(!1)},onEmpty:()=>{$(!1)},onFilled:()=>{$(!0)},onFocus:()=>{M(!0)},registerEffect:A,required:p,variant:y}),[S,a,l,u,C,_,d,f,A,p,m,y]);return g.jsx(Ob.Provider,{value:j,children:g.jsx(cQ,P({as:s,ownerState:x,className:Y(w.root,i),ref:n},b,{children:o}))})}),dQ=F9({createStyledComponent:ne("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>He({props:e,name:"MuiStack"})});function fQ(e){return Be("MuiFormControlLabel",e)}const Of=Le("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),pQ=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],hQ=e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:i}=e,a={root:["root",n&&"disabled",`labelPlacement${oe(r)}`,o&&"error",i&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return Ce(a,fQ,t)},mQ=ne("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Of.label}`]:t.label},t.root,t[`labelPlacement${oe(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>P({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Of.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},{[`& .${Of.label}`]:{[`&.${Of.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),gQ=ne("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Of.error}`]:{color:(e.vars||e).palette.error.main}})),vQ=v.forwardRef(function(t,n){var r,o;const i=He({props:t,name:"MuiFormControlLabel"}),{className:a,componentsProps:s={},control:l,disabled:u,disableTypography:c,label:d,labelPlacement:f="end",required:h,slotProps:p={}}=i,m=Q(i,pQ),y=Fa(),b=(r=u??l.props.disabled)!=null?r:y==null?void 0:y.disabled,x=h??l.props.required,w={disabled:b,required:x};["checked","name","onChange","value","inputRef"].forEach(M=>{typeof l.props[M]>"u"&&typeof i[M]<"u"&&(w[M]=i[M])});const S=su({props:i,muiFormControl:y,states:["error"]}),O=P({},i,{disabled:b,labelPlacement:f,required:x,error:S.error}),C=hQ(O),$=(o=p.typography)!=null?o:s.typography;let E=d;return E!=null&&E.type!==he&&!c&&(E=g.jsx(he,P({component:"span"},$,{className:Y(C.label,$==null?void 0:$.className),children:E}))),g.jsxs(mQ,P({className:Y(C.root,a),ownerState:O,ref:n},m,{children:[v.cloneElement(l,w),x?g.jsxs(dQ,{display:"block",children:[E,g.jsxs(gQ,{ownerState:O,"aria-hidden":!0,className:C.asterisk,children:[" ","*"]})]}):E]}))});function yQ(e){return Be("MuiFormHelperText",e)}const XI=Le("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var YI;const bQ=["children","className","component","disabled","error","filled","focused","margin","required","variant"],xQ=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${oe(r)}`,n&&"contained",s&&"focused",a&&"filled",l&&"required"]};return Ce(u,yQ,t)},wQ=ne("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${oe(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,[`&.${XI.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${XI.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),CQ=v.forwardRef(function(t,n){const r=He({props:t,name:"MuiFormHelperText"}),{children:o,className:i,component:a="p"}=r,s=Q(r,bQ),l=Fa(),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}),d=xQ(c);return g.jsx(wQ,P({as:a,ownerState:c,className:Y(d.root,i),ref:n},s,{children:o===" "?YI||(YI=g.jsx("span",{className:"notranslate",children:"​"})):o}))});function SQ(e){return Be("MuiFormLabel",e)}const Uf=Le("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),PQ=["children","className","color","component","disabled","error","filled","focused","required"],OQ=e=>{const{classes:t,color:n,focused:r,disabled:o,error:i,filled:a,required:s}=e,l={root:["root",`color${oe(n)}`,o&&"disabled",i&&"error",a&&"filled",r&&"focused",s&&"required"],asterisk:["asterisk",i&&"error"]};return Ce(l,SQ,t)},$Q=ne("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",[`&.${Uf.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Uf.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Uf.error}`]:{color:(e.vars||e).palette.error.main}})),EQ=ne("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Uf.error}`]:{color:(e.vars||e).palette.error.main}})),kQ=v.forwardRef(function(t,n){const r=He({props:t,name:"MuiFormLabel"}),{children:o,className:i,component:a="label"}=r,s=Q(r,PQ),l=Fa(),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}),d=OQ(c);return g.jsxs($Q,P({as:a,ownerState:c,className:Y(d.root,i),ref:n},s,{children:[o,u.required&&g.jsxs(EQ,{ownerState:c,"aria-hidden":!0,className:d.asterisk,children:[" ","*"]})]}))}),QI=v.createContext();function IQ(e){return Be("MuiGrid",e)}const TQ=[0,1,2,3,4,5,6,7,8,9,10],MQ=["column-reverse","column","row-reverse","row"],_Q=["nowrap","wrap-reverse","wrap"],ef=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],Op=Le("MuiGrid",["root","container","item","zeroMinWidth",...TQ.map(e=>`spacing-xs-${e}`),...MQ.map(e=>`direction-xs-${e}`),..._Q.map(e=>`wrap-xs-${e}`),...ef.map(e=>`grid-xs-${e}`),...ef.map(e=>`grid-sm-${e}`),...ef.map(e=>`grid-md-${e}`),...ef.map(e=>`grid-lg-${e}`),...ef.map(e=>`grid-xl-${e}`)]),AQ=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function ic(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function RQ({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=Il({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 d=`calc(${l} + ${ic(c)})`;u={flexBasis:d,maxWidth:d}}}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 jQ({theme:e,ownerState:t}){const n=Il({values:t.direction,breakpoints:e.breakpoints.values});return Vr({theme:e},n,r=>{const o={flexDirection:r};return r.indexOf("column")===0&&(o[`& > .${Op.item}`]={maxWidth:"none"}),o})}function LF({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 DQ({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let o={};if(n&&r!==0){const i=Il({values:r,breakpoints:e.breakpoints.values});let a;typeof i=="object"&&(a=LF({breakpoints:e.breakpoints.values,values:i})),o=Vr({theme:e},i,(s,l)=>{var u;const c=e.spacing(s);return c!=="0px"?{marginTop:`-${ic(c)}`,[`& > .${Op.item}`]:{paddingTop:ic(c)}}:(u=a)!=null&&u.includes(l)?{}:{marginTop:0,[`& > .${Op.item}`]:{paddingTop:0}}})}return o}function LQ({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let o={};if(n&&r!==0){const i=Il({values:r,breakpoints:e.breakpoints.values});let a;typeof i=="object"&&(a=LF({breakpoints:e.breakpoints.values,values:i})),o=Vr({theme:e},i,(s,l)=>{var u;const c=e.spacing(s);return c!=="0px"?{width:`calc(100% + ${ic(c)})`,marginLeft:`-${ic(c)}`,[`& > .${Op.item}`]:{paddingLeft:ic(c)}}:(u=a)!=null&&u.includes(l)?{}:{width:"100%",marginLeft:0,[`& > .${Op.item}`]:{paddingLeft:0}}})}return o}function FQ(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 NQ=ne("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=FQ(a,u,t));const d=[];return u.forEach(f=>{const h=n[f];h&&d.push(t[`grid-${f}-${String(h)}`])}),[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)}`],...d]}})(({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}),jQ,DQ,LQ,RQ);function BQ(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 zQ=e=>{const{classes:t,container:n,direction:r,item:o,spacing:i,wrap:a,zeroMinWidth:s,breakpoints:l}=e;let u=[];n&&(u=BQ(i,l));const c=[];l.forEach(f=>{const h=e[f];h&&c.push(`grid-${f}-${String(h)}`)});const d={root:["root",n&&"container",o&&"item",s&&"zeroMinWidth",...u,r!=="row"&&`direction-xs-${String(r)}`,a!=="wrap"&&`wrap-xs-${String(a)}`,...c]};return Ce(d,IQ,t)},ot=v.forwardRef(function(t,n){const r=He({props:t,name:"MuiGrid"}),{breakpoints:o}=mr(),i=Ih(r),{className:a,columns:s,columnSpacing:l,component:u="div",container:c=!1,direction:d="row",item:f=!1,rowSpacing:h,spacing:p=0,wrap:m="wrap",zeroMinWidth:y=!1}=i,b=Q(i,AQ),x=h||p,w=l||p,S=v.useContext(QI),O=c?s||12:S,C={},$=P({},b);o.keys.forEach(_=>{b[_]!=null&&(C[_]=b[_],delete $[_])});const E=P({},i,{columns:O,container:c,direction:d,item:f,rowSpacing:x,columnSpacing:w,wrap:m,zeroMinWidth:y,spacing:p},C,{breakpoints:o.keys}),M=zQ(E);return g.jsx(QI.Provider,{value:O,children:g.jsx(NQ,P({ownerState:E,className:Y(M.root,a),as:u,ref:n},$))})}),HQ=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function D1(e){return`scale(${e}, ${e**2})`}const UQ={entering:{opacity:1,transform:D1(1)},entered:{opacity:1,transform:"none"}},Ex=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),$p=v.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:i,easing:a,in:s,onEnter:l,onEntered:u,onEntering:c,onExit:d,onExited:f,onExiting:h,style:p,timeout:m="auto",TransitionComponent:y=wi}=t,b=Q(t,HQ),x=Uu(),w=v.useRef(),S=mr(),O=v.useRef(null),C=yt(O,Hs(i),n),$=k=>D=>{if(k){const F=O.current;D===void 0?k(F):k(F,D)}},E=$(c),M=$((k,D)=>{aO(k);const{duration:F,delay:T,easing:L}=Mc({style:p,timeout:m,easing:a},{mode:"enter"});let N;m==="auto"?(N=S.transitions.getAutoHeightDuration(k.clientHeight),w.current=N):N=F,k.style.transition=[S.transitions.create("opacity",{duration:N,delay:T}),S.transitions.create("transform",{duration:Ex?N:N*.666,delay:T,easing:L})].join(","),l&&l(k,D)}),_=$(u),A=$(h),j=$(k=>{const{duration:D,delay:F,easing:T}=Mc({style:p,timeout:m,easing:a},{mode:"exit"});let L;m==="auto"?(L=S.transitions.getAutoHeightDuration(k.clientHeight),w.current=L):L=D,k.style.transition=[S.transitions.create("opacity",{duration:L,delay:F}),S.transitions.create("transform",{duration:Ex?L:L*.666,delay:Ex?F:F||L*.333,easing:T})].join(","),k.style.opacity=0,k.style.transform=D1(.75),d&&d(k)}),R=$(f),I=k=>{m==="auto"&&x.start(w.current||0,k),r&&r(O.current,k)};return g.jsx(y,P({appear:o,in:s,nodeRef:O,onEnter:M,onEntered:_,onEntering:E,onExit:j,onExited:R,onExiting:A,addEndListener:I,timeout:m==="auto"?null:m},b,{children:(k,D)=>v.cloneElement(i,P({style:P({opacity:0,transform:D1(.75),visibility:k==="exited"&&!s?"hidden":void 0},UQ[k],p,i.props.style),ref:C},D))}))});$p.muiSupportAuto=!0;const VQ=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],WQ=e=>{const{classes:t,disableUnderline:n}=e,o=Ce({root:["root",!n&&"underline"],input:["input"]},Iq,t);return P({},t,o)},GQ=ne(kb,{shouldForwardProp:e=>gr(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...$b(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"},[`&.${ns.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ns.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(.${ns.disabled}, .${ns.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${ns.disabled}:before`]:{borderBottomStyle:"dotted"}})}),KQ=ne(Ib,{name:"MuiInput",slot:"Input",overridesResolver:Eb})({}),vO=v.forwardRef(function(t,n){var r,o,i,a;const s=He({props:t,name:"MuiInput"}),{disableUnderline:l,components:u={},componentsProps:c,fullWidth:d=!1,inputComponent:f="input",multiline:h=!1,slotProps:p,slots:m={},type:y="text"}=s,b=Q(s,VQ),x=WQ(s),S={root:{ownerState:{disableUnderline:l}}},O=p??c?Pr(p??c,S):S,C=(r=(o=m.root)!=null?o:u.Root)!=null?r:GQ,$=(i=(a=m.input)!=null?a:u.Input)!=null?i:KQ;return g.jsx(wd,P({slots:{root:C,input:$},slotProps:O,fullWidth:d,inputComponent:f,multiline:h,ref:n,type:y},b,{classes:x}))});vO.muiName="Input";function qQ(e){return Be("MuiInputAdornment",e)}const ZI=Le("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var JI;const XQ=["children","className","component","disablePointerEvents","disableTypography","position","variant"],YQ=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${oe(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},QQ=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:a}=e,s={root:["root",n&&"disablePointerEvents",o&&`position${oe(o)}`,a,r&&"hiddenLabel",i&&`size${oe(i)}`]};return Ce(s,qQ,t)},ZQ=ne("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:YQ})(({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"&&{[`&.${ZI.positionStart}&:not(.${ZI.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),av=v.forwardRef(function(t,n){const r=He({props:t,name:"MuiInputAdornment"}),{children:o,className:i,component:a="div",disablePointerEvents:s=!1,disableTypography:l=!1,position:u,variant:c}=r,d=Q(r,XQ),f=Fa()||{};let h=c;c&&f.variant,f&&!h&&(h=f.variant);const p=P({},r,{hiddenLabel:f.hiddenLabel,size:f.size,disablePointerEvents:s,position:u,variant:h}),m=QQ(p);return g.jsx(Ob.Provider,{value:null,children:g.jsx(ZQ,P({as:a,ownerState:p,className:Y(m.root,i),ref:n},d,{children:typeof o=="string"&&!l?g.jsx(he,{color:"text.secondary",children:o}):g.jsxs(v.Fragment,{children:[u==="start"?JI||(JI=g.jsx("span",{className:"notranslate",children:"​"})):null,o]})}))})});function JQ(e){return Be("MuiInputLabel",e)}Le("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const eZ=["disableAnimation","margin","shrink","variant","className"],tZ=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${oe(r)}`,a],asterisk:[s&&"asterisk"]},u=Ce(l,JQ,t);return P({},t,u)},nZ=ne(kQ,{shouldForwardProp:e=>gr(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Uf.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(({theme:e,ownerState:t})=>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)"}))),va=v.forwardRef(function(t,n){const r=He({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:i,className:a}=r,s=Q(r,eZ),l=Fa();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","focused"]}),d=P({},r,{disableAnimation:o,formControl:l,shrink:u,size:c.size,variant:c.variant,required:c.required,focused:c.focused}),f=tZ(d);return g.jsx(nZ,P({"data-shrink":u,ownerState:d,ref:n,className:Y(f.root,a)},s,{classes:f}))});function rZ(e){return Be("MuiLinearProgress",e)}Le("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const oZ=["className","color","value","valueBuffer","variant"];let Cd=e=>e,e2,t2,n2,r2,o2,i2;const L1=4,iZ=xi(e2||(e2=Cd` 0% { left: -35%; right: 100%; } 60% { left: 100%; right: -90%; } 100% { left: 100%; right: -90%; } `)),aZ=xi(t2||(t2=Cd` 0% { left: -200%; right: 100%; } 60% { left: 107%; right: -8%; } 100% { left: 107%; right: -8%; } `)),sZ=xi(n2||(n2=Cd` 0% { opacity: 1; background-position: 0 -23px; } 60% { opacity: 0; background-position: 0 -23px; } 100% { opacity: 1; background-position: -200px -23px; } `)),lZ=e=>{const{classes:t,variant:n,color:r}=e,o={root:["root",`color${oe(r)}`,n],dashed:["dashed",`dashedColor${oe(r)}`],bar1:["bar",`barColor${oe(r)}`,(n==="indeterminate"||n==="query")&&"bar1Indeterminate",n==="determinate"&&"bar1Determinate",n==="buffer"&&"bar1Buffer"],bar2:["bar",n!=="buffer"&&`barColor${oe(r)}`,n==="buffer"&&`color${oe(r)}`,(n==="indeterminate"||n==="query")&&"bar2Indeterminate",n==="buffer"&&"bar2Buffer"]};return Ce(o,rZ,t)},yO=(e,t)=>t==="inherit"?"currentColor":e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode==="light"?Ds(e.palette[t].main,.62):js(e.palette[t].main,.5),uZ=ne("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${oe(n.color)}`],t[n.variant]]}})(({ownerState:e,theme:t})=>P({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},backgroundColor:yO(t,e.color)},e.color==="inherit"&&e.variant!=="buffer"&&{backgroundColor:"none","&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}},e.variant==="buffer"&&{backgroundColor:"transparent"},e.variant==="query"&&{transform:"rotate(180deg)"})),cZ=ne("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.dashed,t[`dashedColor${oe(n.color)}`]]}})(({ownerState:e,theme:t})=>{const n=yO(t,e.color);return P({position:"absolute",marginTop:0,height:"100%",width:"100%"},e.color==="inherit"&&{opacity:.3},{backgroundImage:`radial-gradient(${n} 0%, ${n} 16%, transparent 42%)`,backgroundSize:"10px 10px",backgroundPosition:"0 -23px"})},Ma(r2||(r2=Cd` animation: ${0} 3s infinite linear; `),sZ)),dZ=ne("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${oe(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar1Indeterminate,n.variant==="determinate"&&t.bar1Determinate,n.variant==="buffer"&&t.bar1Buffer]}})(({ownerState:e,theme:t})=>P({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",backgroundColor:e.color==="inherit"?"currentColor":(t.vars||t).palette[e.color].main},e.variant==="determinate"&&{transition:`transform .${L1}s linear`},e.variant==="buffer"&&{zIndex:1,transition:`transform .${L1}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&Ma(o2||(o2=Cd` width: auto; animation: ${0} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite; `),iZ)),fZ=ne("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${oe(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar2Indeterminate,n.variant==="buffer"&&t.bar2Buffer]}})(({ownerState:e,theme:t})=>P({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},e.variant!=="buffer"&&{backgroundColor:e.color==="inherit"?"currentColor":(t.vars||t).palette[e.color].main},e.color==="inherit"&&{opacity:.3},e.variant==="buffer"&&{backgroundColor:yO(t,e.color),transition:`transform .${L1}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&Ma(i2||(i2=Cd` width: auto; animation: ${0} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite; `),aZ)),gg=v.forwardRef(function(t,n){const r=He({props:t,name:"MuiLinearProgress"}),{className:o,color:i="primary",value:a,valueBuffer:s,variant:l="indeterminate"}=r,u=Q(r,oZ),c=P({},r,{color:i,variant:l}),d=lZ(c),f=gd(),h={},p={bar1:{},bar2:{}};if((l==="determinate"||l==="buffer")&&a!==void 0){h["aria-valuenow"]=Math.round(a),h["aria-valuemin"]=0,h["aria-valuemax"]=100;let m=a-100;f&&(m=-m),p.bar1.transform=`translateX(${m}%)`}if(l==="buffer"&&s!==void 0){let m=(s||0)-100;f&&(m=-m),p.bar2.transform=`translateX(${m}%)`}return g.jsxs(uZ,P({className:Y(d.root,o),ownerState:c,role:"progressbar"},h,{ref:n},u,{children:[l==="buffer"?g.jsx(cZ,{className:d.dashed,ownerState:c}):null,g.jsx(dZ,{className:d.bar1,ownerState:c,style:p.bar1}),l==="determinate"?null:g.jsx(fZ,{className:d.bar2,ownerState:c,style:p.bar2})]}))}),gi=v.createContext({});function pZ(e){return Be("MuiList",e)}Le("MuiList",["root","padding","dense","subheader"]);const hZ=["children","className","component","dense","disablePadding","subheader"],mZ=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Ce({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},pZ,t)},gZ=ne("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>P({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),Sd=v.forwardRef(function(t,n){const r=He({props:t,name:"MuiList"}),{children:o,className:i,component:a="ul",dense:s=!1,disablePadding:l=!1,subheader:u}=r,c=Q(r,hZ),d=v.useMemo(()=>({dense:s}),[s]),f=P({},r,{component:a,dense:s,disablePadding:l}),h=mZ(f);return g.jsx(gi.Provider,{value:d,children:g.jsxs(gZ,P({as:a,className:Y(h.root,i),ref:n,ownerState:f},c,{children:[u,o]}))})});function vZ(e){return Be("MuiListItem",e)}const Eu=Le("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]);function yZ(e){return Be("MuiListItemButton",e)}const ku=Le("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),bZ=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],xZ=(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]},wZ=e=>{const{alignItems:t,classes:n,dense:r,disabled:o,disableGutters:i,divider:a,selected:s}=e,u=Ce({root:["root",r&&"dense",!i&&"gutters",a&&"divider",o&&"disabled",t==="flex-start"&&"alignItemsFlexStart",s&&"selected"]},yZ,n);return P({},n,u)},CZ=ne(Ls,{shouldForwardProp:e=>gr(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:xZ})(({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"}},[`&.${ku.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:nt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${ku.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:nt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${ku.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:nt(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})`:nt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${ku.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${ku.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})),bO=v.forwardRef(function(t,n){const r=He({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:d,selected:f=!1,className:h}=r,p=Q(r,bZ),m=v.useContext(gi),y=v.useMemo(()=>({dense:l||m.dense||!1,alignItems:o,disableGutters:u}),[o,m.dense,l,u]),b=v.useRef(null);Et(()=>{i&&b.current&&b.current.focus()},[i]);const x=P({},r,{alignItems:o,dense:y.dense,disableGutters:u,divider:c,selected:f}),w=wZ(x),S=yt(b,n);return g.jsx(gi.Provider,{value:y,children:g.jsx(CZ,P({ref:S,href:p.href||p.to,component:(p.href||p.to)&&a==="div"?"button":a,focusVisibleClassName:Y(w.focusVisible,d),ownerState:x,className:Y(w.root,h)},p,{classes:w,children:s}))})});function SZ(e){return Be("MuiListItemSecondaryAction",e)}Le("MuiListItemSecondaryAction",["root","disableGutters"]);const PZ=["className"],OZ=e=>{const{disableGutters:t,classes:n}=e;return Ce({root:["root",t&&"disableGutters"]},SZ,n)},$Z=ne("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>P({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),FF=v.forwardRef(function(t,n){const r=He({props:t,name:"MuiListItemSecondaryAction"}),{className:o}=r,i=Q(r,PZ),a=v.useContext(gi),s=P({},r,{disableGutters:a.disableGutters}),l=OZ(s);return g.jsx($Z,P({className:Y(l.root,o),ownerState:s,ref:n},i))});FF.muiName="ListItemSecondaryAction";const EZ=["className"],kZ=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],IZ=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]},TZ=e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:i,disableGutters:a,disablePadding:s,divider:l,hasSecondaryAction:u,selected:c}=e;return Ce({root:["root",o&&"dense",!a&&"gutters",!s&&"padding",l&&"divider",i&&"disabled",n&&"button",t==="flex-start"&&"alignItemsFlexStart",u&&"secondaryAction",c&&"selected"],container:["container"]},vZ,r)},MZ=ne("div",{name:"MuiListItem",slot:"Root",overridesResolver:IZ})(({theme:e,ownerState:t})=>P({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&P({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${ku.root}`]:{paddingRight:48}},{[`&.${Eu.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Eu.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:nt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Eu.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:nt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Eu.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.alignItems==="flex-start"&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Eu.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:nt(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})`:nt(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),_Z=ne("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),Rh=v.forwardRef(function(t,n){const r=He({props:t,name:"MuiListItem"}),{alignItems:o="center",autoFocus:i=!1,button:a=!1,children:s,className:l,component:u,components:c={},componentsProps:d={},ContainerComponent:f="li",ContainerProps:{className:h}={},dense:p=!1,disabled:m=!1,disableGutters:y=!1,disablePadding:b=!1,divider:x=!1,focusVisibleClassName:w,secondaryAction:S,selected:O=!1,slotProps:C={},slots:$={}}=r,E=Q(r.ContainerProps,EZ),M=Q(r,kZ),_=v.useContext(gi),A=v.useMemo(()=>({dense:p||_.dense||!1,alignItems:o,disableGutters:y}),[o,_.dense,p,y]),j=v.useRef(null);Et(()=>{i&&j.current&&j.current.focus()},[i]);const R=v.Children.toArray(s),I=R.length&&dg(R[R.length-1],["ListItemSecondaryAction"]),k=P({},r,{alignItems:o,autoFocus:i,button:a,dense:A.dense,disabled:m,disableGutters:y,disablePadding:b,divider:x,hasSecondaryAction:I,selected:O}),D=TZ(k),F=yt(j,n),T=$.root||c.Root||MZ,L=C.root||d.root||{},N=P({className:Y(D.root,L.className,l),disabled:m},M);let z=u||"li";return a&&(N.component=u||"div",N.focusVisibleClassName=Y(Eu.focusVisible,w),z=Ls),I?(z=!N.component&&!u?"div":z,f==="li"&&(z==="li"?z="div":N.component==="li"&&(N.component="div")),g.jsx(gi.Provider,{value:A,children:g.jsxs(_Z,P({as:f,className:Y(D.container,h),ref:F,ownerState:k},E,{children:[g.jsx(T,P({},L,!mi(T)&&{as:z,ownerState:P({},k,L.ownerState)},N,{children:R})),R.pop()]}))})):g.jsx(gi.Provider,{value:A,children:g.jsxs(T,P({},L,{as:z,ref:F},!mi(T)&&{ownerState:P({},k,L.ownerState)},N,{children:[R,S&&g.jsx(FF,{children:S})]}))})});function AZ(e){return Be("MuiListItemIcon",e)}const a2=Le("MuiListItemIcon",["root","alignItemsFlexStart"]),RZ=["className"],jZ=e=>{const{alignItems:t,classes:n}=e;return Ce({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},AZ,n)},DZ=ne("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})),Vi=v.forwardRef(function(t,n){const r=He({props:t,name:"MuiListItemIcon"}),{className:o}=r,i=Q(r,RZ),a=v.useContext(gi),s=P({},r,{alignItems:a.alignItems}),l=jZ(s);return g.jsx(DZ,P({className:Y(l.root,o),ownerState:s,ref:n},i))});function LZ(e){return Be("MuiListItemText",e)}const sv=Le("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),FZ=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],NZ=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:i}=e;return Ce({root:["root",n&&"inset",i&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},LZ,t)},BZ=ne("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${sv.primary}`]:t.primary},{[`& .${sv.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})),Wi=v.forwardRef(function(t,n){const r=He({props:t,name:"MuiListItemText"}),{children:o,className:i,disableTypography:a=!1,inset:s=!1,primary:l,primaryTypographyProps:u,secondary:c,secondaryTypographyProps:d}=r,f=Q(r,FZ),{dense:h}=v.useContext(gi);let p=l??o,m=c;const y=P({},r,{disableTypography:a,inset:s,primary:!!p,secondary:!!m,dense:h}),b=NZ(y);return p!=null&&p.type!==he&&!a&&(p=g.jsx(he,P({variant:h?"body2":"body1",className:b.primary,component:u!=null&&u.variant?void 0:"span",display:"block"},u,{children:p}))),m!=null&&m.type!==he&&!a&&(m=g.jsx(he,P({variant:"body2",className:b.secondary,color:"text.secondary",display:"block"},d,{children:m}))),g.jsxs(BZ,P({className:Y(b.root,i),ownerState:y,ref:n},f,{children:[p,m]}))}),zZ=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function kx(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function s2(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function NF(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 tf(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")||!NF(s,i)||l)s=o(e,s,n);else return s.focus(),!0}return!1}const xO=v.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:d="selectedMenu"}=t,f=Q(t,zZ),h=v.useRef(null),p=v.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Et(()=>{o&&h.current.focus()},[o]),v.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(w,{direction:S})=>{const O=!h.current.style.width;if(w.clientHeight{const S=h.current,O=w.key,C=Wt(S).activeElement;if(O==="ArrowDown")w.preventDefault(),tf(S,C,u,l,kx);else if(O==="ArrowUp")w.preventDefault(),tf(S,C,u,l,s2);else if(O==="Home")w.preventDefault(),tf(S,null,u,l,kx);else if(O==="End")w.preventDefault(),tf(S,null,u,l,s2);else if(O.length===1){const $=p.current,E=O.toLowerCase(),M=performance.now();$.keys.length>0&&(M-$.lastTime>500?($.keys=[],$.repeating=!0,$.previousKeyMatched=!0):$.repeating&&E!==$.keys[0]&&($.repeating=!1)),$.lastTime=M,$.keys.push(E);const _=C&&!$.repeating&&NF(C,$);$.previousKeyMatched&&(_||tf(S,C,!1,l,kx,$))?w.preventDefault():$.previousKeyMatched=!1}c&&c(w)},y=yt(h,n);let b=-1;v.Children.forEach(a,(w,S)=>{if(!v.isValidElement(w)){b===S&&(b+=1,b>=a.length&&(b=-1));return}w.props.disabled||(d==="selectedMenu"&&w.props.selected||b===-1)&&(b=S),b===S&&(w.props.disabled||w.props.muiSkipListHighlight||w.type.muiSkipListHighlight)&&(b+=1,b>=a.length&&(b=-1))});const x=v.Children.map(a,(w,S)=>{if(S===b){const O={};return i&&(O.autoFocus=!0),w.props.tabIndex===void 0&&d==="selectedMenu"&&(O.tabIndex=0),v.cloneElement(w,O)}return w});return g.jsx(Sd,P({role:"menu",ref:y,className:s,onKeyDown:m,tabIndex:o?0:-1},f,{children:x}))});function HZ(e){return Be("MuiPopover",e)}Le("MuiPopover",["root","paper"]);const UZ=["onEntering"],VZ=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],WZ=["slotProps"];function l2(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function u2(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function c2(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Ix(e){return typeof e=="function"?e():e}const GZ=e=>{const{classes:t}=e;return Ce({root:["root"],paper:["paper"]},HZ,t)},KZ=ne(mO,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),BF=ne(Ft,{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}),qZ=v.forwardRef(function(t,n){var r,o,i;const a=He({props:t,name:"MuiPopover"}),{action:s,anchorEl:l,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:d="anchorEl",children:f,className:h,container:p,elevation:m=8,marginThreshold:y=16,open:b,PaperProps:x={},slots:w,slotProps:S,transformOrigin:O={vertical:"top",horizontal:"left"},TransitionComponent:C=$p,transitionDuration:$="auto",TransitionProps:{onEntering:E}={},disableScrollLock:M=!1}=a,_=Q(a.TransitionProps,UZ),A=Q(a,VZ),j=(r=S==null?void 0:S.paper)!=null?r:x,R=v.useRef(),I=yt(R,j.ref),k=P({},a,{anchorOrigin:u,anchorReference:d,elevation:m,marginThreshold:y,externalPaperSlotProps:j,transformOrigin:O,TransitionComponent:C,transitionDuration:$,TransitionProps:_}),D=GZ(k),F=v.useCallback(()=>{if(d==="anchorPosition")return c;const Z=Ix(l),re=(Z&&Z.nodeType===1?Z:Wt(R.current).body).getBoundingClientRect();return{top:re.top+l2(re,u.vertical),left:re.left+u2(re,u.horizontal)}},[l,u.horizontal,u.vertical,c,d]),T=v.useCallback(Z=>({vertical:l2(Z,O.vertical),horizontal:u2(Z,O.horizontal)}),[O.horizontal,O.vertical]),L=v.useCallback(Z=>{const ie={width:Z.offsetWidth,height:Z.offsetHeight},re=T(ie);if(d==="none")return{top:null,left:null,transformOrigin:c2(re)};const ae=F();let we=ae.top-re.vertical,ge=ae.left-re.horizontal;const je=we+ie.height,$e=ge+ie.width,Re=Yi(Ix(l)),Ee=Re.innerHeight-y,me=Re.innerWidth-y;if(y!==null&&weEe){const xe=je-Ee;we-=xe,re.vertical+=xe}if(y!==null&&geme){const xe=$e-me;ge-=xe,re.horizontal+=xe}return{top:`${Math.round(we)}px`,left:`${Math.round(ge)}px`,transformOrigin:c2(re)}},[l,d,F,T,y]),[N,z]=v.useState(b),B=v.useCallback(()=>{const Z=R.current;if(!Z)return;const ie=L(Z);ie.top!==null&&(Z.style.top=ie.top),ie.left!==null&&(Z.style.left=ie.left),Z.style.transformOrigin=ie.transformOrigin,z(!0)},[L]);v.useEffect(()=>(M&&window.addEventListener("scroll",B),()=>window.removeEventListener("scroll",B)),[l,M,B]);const V=(Z,ie)=>{E&&E(Z,ie),B()},W=()=>{z(!1)};v.useEffect(()=>{b&&B()}),v.useImperativeHandle(s,()=>b?{updatePosition:()=>{B()}}:null,[b,B]),v.useEffect(()=>{if(!b)return;const Z=Th(()=>{B()}),ie=Yi(l);return ie.addEventListener("resize",Z),()=>{Z.clear(),ie.removeEventListener("resize",Z)}},[l,b,B]);let ee=$;$==="auto"&&!C.muiSupportAuto&&(ee=void 0);const pe=p||(l?Wt(Ix(l)).body:void 0),be=(o=w==null?void 0:w.root)!=null?o:KZ,ye=(i=w==null?void 0:w.paper)!=null?i:BF,J=Yn({elementType:ye,externalSlotProps:P({},j,{style:N?j.style:P({},j.style,{opacity:0})}),additionalProps:{elevation:m,ref:I},ownerState:k,className:Y(D.paper,j==null?void 0:j.className)}),fe=Yn({elementType:be,externalSlotProps:(S==null?void 0:S.root)||{},externalForwardedProps:A,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:pe,open:b},ownerState:k,className:Y(D.root,h)}),{slotProps:ce}=fe,K=Q(fe,WZ);return g.jsx(be,P({},K,!mi(be)&&{slotProps:ce,disableScrollLock:M},{children:g.jsx(C,P({appear:!0,in:b,onEntering:V,onExited:W,timeout:ee},_,{children:g.jsx(ye,P({},J,{children:f}))}))}))});function XZ(e){return Be("MuiMenu",e)}Le("MuiMenu",["root","paper","list"]);const YZ=["onEntering"],QZ=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],ZZ={vertical:"top",horizontal:"right"},JZ={vertical:"top",horizontal:"left"},eJ=e=>{const{classes:t}=e;return Ce({root:["root"],paper:["paper"],list:["list"]},XZ,t)},tJ=ne(qZ,{shouldForwardProp:e=>gr(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),nJ=ne(BF,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),rJ=ne(xO,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),oJ=v.forwardRef(function(t,n){var r,o;const i=He({props:t,name:"MuiMenu"}),{autoFocus:a=!0,children:s,className:l,disableAutoFocusItem:u=!1,MenuListProps:c={},onClose:d,open:f,PaperProps:h={},PopoverClasses:p,transitionDuration:m="auto",TransitionProps:{onEntering:y}={},variant:b="selectedMenu",slots:x={},slotProps:w={}}=i,S=Q(i.TransitionProps,YZ),O=Q(i,QZ),C=gd(),$=P({},i,{autoFocus:a,disableAutoFocusItem:u,MenuListProps:c,onEntering:y,PaperProps:h,transitionDuration:m,TransitionProps:S,variant:b}),E=eJ($),M=a&&!u&&f,_=v.useRef(null),A=(T,L)=>{_.current&&_.current.adjustStyleForScrollbar(T,{direction:C?"rtl":"ltr"}),y&&y(T,L)},j=T=>{T.key==="Tab"&&(T.preventDefault(),d&&d(T,"tabKeyDown"))};let R=-1;v.Children.map(s,(T,L)=>{v.isValidElement(T)&&(T.props.disabled||(b==="selectedMenu"&&T.props.selected||R===-1)&&(R=L))});const I=(r=x.paper)!=null?r:nJ,k=(o=w.paper)!=null?o:h,D=Yn({elementType:x.root,externalSlotProps:w.root,ownerState:$,className:[E.root,l]}),F=Yn({elementType:I,externalSlotProps:k,ownerState:$,className:E.paper});return g.jsx(tJ,P({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?ZZ:JZ,slots:{paper:I,root:x.root},slotProps:{root:D,paper:F},open:f,ref:n,transitionDuration:m,TransitionProps:P({onEntering:A},S),ownerState:$},O,{classes:p,children:g.jsx(rJ,P({onKeyDown:j,actions:_,autoFocus:a&&(R===-1||u),autoFocusItem:M,variant:b},c,{className:Y(E.list,c.className),children:s}))}))});function iJ(e){return Be("MuiMenuItem",e)}const nf=Le("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),aJ=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],sJ=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},lJ=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e,l=Ce({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},iJ,a);return P({},a,l)},uJ=ne(Ls,{shouldForwardProp:e=>gr(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:sJ})(({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"}},[`&.${nf.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:nt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${nf.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:nt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${nf.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:nt(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})`:nt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${nf.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${nf.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${GI.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${GI.inset}`]:{marginLeft:52},[`& .${sv.root}`]:{marginTop:0,marginBottom:0},[`& .${sv.inset}`]:{paddingLeft:36},[`& .${a2.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&P({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${a2.root} svg`]:{fontSize:"1.25rem"}}))),vt=v.forwardRef(function(t,n){const r=He({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:d,className:f}=r,h=Q(r,aJ),p=v.useContext(gi),m=v.useMemo(()=>({dense:a||p.dense||!1,disableGutters:l}),[p.dense,a,l]),y=v.useRef(null);Et(()=>{o&&y.current&&y.current.focus()},[o]);const b=P({},r,{dense:m.dense,divider:s,disableGutters:l}),x=lJ(r),w=yt(y,n);let S;return r.disabled||(S=d!==void 0?d:-1),g.jsx(gi.Provider,{value:m,children:g.jsx(uJ,P({ref:w,role:c,tabIndex:S,component:i,focusVisibleClassName:Y(x.focusVisible,u),className:Y(x.root,f)},h,{ownerState:b,classes:x}))})});function cJ(e){return Be("MuiNativeSelect",e)}const wO=Le("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),dJ=["className","disabled","error","IconComponent","inputRef","variant"],fJ=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${oe(n)}`,i&&"iconOpen",r&&"disabled"]};return Ce(s,cJ,t)},zF=({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"},[`&.${wO.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}}),pJ=ne("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:gr,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${wO.multiple}`]:t.multiple}]}})(zF),HF=({ownerState:e,theme:t})=>P({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${wO.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),hJ=ne("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${oe(n.variant)}`],n.open&&t.iconOpen]}})(HF),mJ=v.forwardRef(function(t,n){const{className:r,disabled:o,error:i,IconComponent:a,inputRef:s,variant:l="standard"}=t,u=Q(t,dJ),c=P({},t,{disabled:o,variant:l,error:i}),d=fJ(c);return g.jsxs(v.Fragment,{children:[g.jsx(pJ,P({ownerState:c,className:Y(d.select,r),disabled:o,ref:s||n},u)),t.multiple?null:g.jsx(hJ,{as:a,ownerState:c,className:d.icon})]})});var d2;const gJ=["children","classes","className","label","notched"],vJ=ne("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:gr})({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%"}),yJ=ne("legend",{name:"MuiNotchedOutlined",shouldForwardProp:gr})(({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 bJ(e){const{className:t,label:n,notched:r}=e,o=Q(e,gJ),i=n!=null&&n!=="",a=P({},e,{notched:r,withLabel:i});return g.jsx(vJ,P({"aria-hidden":!0,className:t,ownerState:a},o,{children:g.jsx(yJ,{ownerState:a,children:i?g.jsx("span",{children:n}):d2||(d2=g.jsx("span",{className:"notranslate",children:"​"}))})}))}const xJ=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],wJ=e=>{const{classes:t}=e,r=Ce({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Tq,t);return P({},t,r)},CJ=ne(kb,{shouldForwardProp:e=>gr(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:$b})(({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 .${Ti.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Ti.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${Ti.focused} .${Ti.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Ti.error} .${Ti.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Ti.disabled} .${Ti.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"}))}),SJ=ne(bJ,{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}}),PJ=ne(Ib,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Eb})(({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})),CO=v.forwardRef(function(t,n){var r,o,i,a,s;const l=He({props:t,name:"MuiOutlinedInput"}),{components:u={},fullWidth:c=!1,inputComponent:d="input",label:f,multiline:h=!1,notched:p,slots:m={},type:y="text"}=l,b=Q(l,xJ),x=wJ(l),w=Fa(),S=su({props:l,muiFormControl:w,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),O=P({},l,{color:S.color||"primary",disabled:S.disabled,error:S.error,focused:S.focused,formControl:w,fullWidth:c,hiddenLabel:S.hiddenLabel,multiline:h,size:S.size,type:y}),C=(r=(o=m.root)!=null?o:u.Root)!=null?r:CJ,$=(i=(a=m.input)!=null?a:u.Input)!=null?i:PJ;return g.jsx(wd,P({slots:{root:C,input:$},renderSuffix:E=>g.jsx(SJ,{ownerState:O,className:x.notchedOutline,label:f!=null&&f!==""&&S.required?s||(s=g.jsxs(v.Fragment,{children:[f," ","*"]})):f,notched:typeof p<"u"?p:!!(E.startAdornment||E.filled||E.focused)}),fullWidth:c,inputComponent:d,multiline:h,ref:n,type:y},b,{classes:P({},x,{notchedOutline:null})}))});CO.muiName="Input";const OJ=Te(g.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),$J=Te(g.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage");function EJ(e){return Be("MuiSelect",e)}const rf=Le("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var f2;const kJ=["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"],IJ=ne("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${rf.select}`]:t.select},{[`&.${rf.select}`]:t[n.variant]},{[`&.${rf.error}`]:t.error},{[`&.${rf.multiple}`]:t.multiple}]}})(zF,{[`&.${rf.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),TJ=ne("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${oe(n.variant)}`],n.open&&t.iconOpen]}})(HF),MJ=ne("input",{shouldForwardProp:e=>Cb(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 p2(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function _J(e){return e==null||typeof e=="string"&&!e.trim()}const AJ=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${oe(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return Ce(s,EJ,t)},RJ=v.forwardRef(function(t,n){var r;const{"aria-describedby":o,"aria-label":i,autoFocus:a,autoWidth:s,children:l,className:u,defaultOpen:c,defaultValue:d,disabled:f,displayEmpty:h,error:p=!1,IconComponent:m,inputRef:y,labelId:b,MenuProps:x={},multiple:w,name:S,onBlur:O,onChange:C,onClose:$,onFocus:E,onOpen:M,open:_,readOnly:A,renderValue:j,SelectDisplayProps:R={},tabIndex:I,value:k,variant:D="standard"}=t,F=Q(t,kJ),[T,L]=Is({controlled:k,default:d,name:"Select"}),[N,z]=Is({controlled:_,default:c,name:"Select"}),B=v.useRef(null),V=v.useRef(null),[W,ee]=v.useState(null),{current:pe}=v.useRef(_!=null),[be,ye]=v.useState(),J=yt(n,y),fe=v.useCallback(ve=>{V.current=ve,ve&&ee(ve)},[]),ce=W==null?void 0:W.parentNode;v.useImperativeHandle(J,()=>({focus:()=>{V.current.focus()},node:B.current,value:T}),[T]),v.useEffect(()=>{c&&N&&W&&!pe&&(ye(s?null:ce.clientWidth),V.current.focus())},[W,s]),v.useEffect(()=>{a&&V.current.focus()},[a]),v.useEffect(()=>{if(!b)return;const ve=Wt(V.current).getElementById(b);if(ve){const Ge=()=>{getSelection().isCollapsed&&V.current.focus()};return ve.addEventListener("click",Ge),()=>{ve.removeEventListener("click",Ge)}}},[b]);const K=(ve,Ge)=>{ve?M&&M(Ge):$&&$(Ge),pe||(ye(s?null:ce.clientWidth),z(ve))},Z=ve=>{ve.button===0&&(ve.preventDefault(),V.current.focus(),K(!0,ve))},ie=ve=>{K(!1,ve)},re=v.Children.toArray(l),ae=ve=>{const Ge=re.find(Ye=>Ye.props.value===ve.target.value);Ge!==void 0&&(L(Ge.props.value),C&&C(ve,Ge))},we=ve=>Ge=>{let Ye;if(Ge.currentTarget.hasAttribute("tabindex")){if(w){Ye=Array.isArray(T)?T.slice():[];const Qe=T.indexOf(ve.props.value);Qe===-1?Ye.push(ve.props.value):Ye.splice(Qe,1)}else Ye=ve.props.value;if(ve.props.onClick&&ve.props.onClick(Ge),T!==Ye&&(L(Ye),C)){const Qe=Ge.nativeEvent||Ge,Rt=new Qe.constructor(Qe.type,Qe);Object.defineProperty(Rt,"target",{writable:!0,value:{value:Ye,name:S}}),C(Rt,ve)}w||K(!1,Ge)}},ge=ve=>{A||[" ","ArrowUp","ArrowDown","Enter"].indexOf(ve.key)!==-1&&(ve.preventDefault(),K(!0,ve))},je=W!==null&&N,$e=ve=>{!je&&O&&(Object.defineProperty(ve,"target",{writable:!0,value:{value:T,name:S}}),O(ve))};delete F["aria-invalid"];let Re,Ee;const me=[];let xe=!1;(iv({value:T})||h)&&(j?Re=j(T):xe=!0);const ke=re.map(ve=>{if(!v.isValidElement(ve))return null;let Ge;if(w){if(!Array.isArray(T))throw new Error(Ta(2));Ge=T.some(Ye=>p2(Ye,ve.props.value)),Ge&&xe&&me.push(ve.props.children)}else Ge=p2(T,ve.props.value),Ge&&xe&&(Ee=ve.props.children);return v.cloneElement(ve,{"aria-selected":Ge?"true":"false",onClick:we(ve),onKeyUp:Ye=>{Ye.key===" "&&Ye.preventDefault(),ve.props.onKeyUp&&ve.props.onKeyUp(Ye)},role:"option",selected:Ge,value:void 0,"data-value":ve.props.value})});xe&&(w?me.length===0?Re=null:Re=me.reduce((ve,Ge,Ye)=>(ve.push(Ge),Ye{const{classes:t}=e;return t},SO={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>gr(e)&&e!=="variant",slot:"Root"},FJ=ne(vO,SO)(""),NJ=ne(CO,SO)(""),BJ=ne(gO,SO)(""),ci=v.forwardRef(function(t,n){const r=He({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:i,classes:a={},className:s,defaultOpen:l=!1,displayEmpty:u=!1,IconComponent:c=PF,id:d,input:f,inputProps:h,label:p,labelId:m,MenuProps:y,multiple:b=!1,native:x=!1,onClose:w,onOpen:S,open:O,renderValue:C,SelectDisplayProps:$,variant:E="outlined"}=r,M=Q(r,jJ),_=x?mJ:RJ,A=Fa(),j=su({props:r,muiFormControl:A,states:["variant","error"]}),R=j.variant||E,I=P({},r,{variant:R,classes:a}),k=LJ(I),D=Q(k,DJ),F=f||{standard:g.jsx(FJ,{ownerState:I}),outlined:g.jsx(NJ,{label:p,ownerState:I}),filled:g.jsx(BJ,{ownerState:I})}[R],T=yt(n,Hs(F));return g.jsx(v.Fragment,{children:v.cloneElement(F,P({inputComponent:_,inputProps:P({children:i,error:j.error,IconComponent:c,variant:R,type:void 0,multiple:b},x?{id:d}:{autoWidth:o,defaultOpen:l,displayEmpty:u,labelId:m,MenuProps:y,onClose:w,onOpen:S,open:O,renderValue:C,SelectDisplayProps:P({id:d},$)},h,{classes:h?Pr(D,h.classes):D},f?f.props.inputProps:{})},(b&&x||u)&&R==="outlined"?{notched:!0}:{},{ref:T,className:Y(F.props.className,s,k.root)},!f&&{variant:R},M))})});ci.muiName="Select";function zJ(e){return Be("MuiSkeleton",e)}Le("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const HJ=["animation","className","component","height","style","variant","width"];let lv=e=>e,h2,m2,g2,v2;const UJ=e=>{const{classes:t,variant:n,animation:r,hasChildren:o,width:i,height:a}=e;return Ce({root:["root",n,r,o&&"withChildren",o&&!i&&"fitContent",o&&!a&&"heightAuto"]},zJ,t)},VJ=xi(h2||(h2=lv` 0% { opacity: 1; } 50% { opacity: 0.4; } 100% { opacity: 1; } `)),WJ=xi(m2||(m2=lv` 0% { transform: translateX(-100%); } 50% { /* +0.5s of delay between each loop */ transform: translateX(100%); } 100% { transform: translateX(100%); } `)),GJ=ne("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=CW(e.shape.borderRadius)||"px",r=SW(e.shape.borderRadius);return P({display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:$t(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"&&Ma(g2||(g2=lv` animation: ${0} 2s ease-in-out 0.5s infinite; `),VJ),({ownerState:e,theme:t})=>e.animation==="wave"&&Ma(v2||(v2=lv` 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; } `),WJ,(t.vars||t).palette.action.hover)),KJ=v.forwardRef(function(t,n){const r=He({props:t,name:"MuiSkeleton"}),{animation:o="pulse",className:i,component:a="span",height:s,style:l,variant:u="text",width:c}=r,d=Q(r,HJ),f=P({},r,{animation:o,component:a,variant:u,hasChildren:!!d.children}),h=UJ(f);return g.jsx(GJ,P({as:a,ref:n,className:Y(h.root,i),ownerState:f},d,{style:P({width:c,height:s},l)}))});function qJ(e,t,n=(r,o)=>r===o){return e.length===t.length&&e.every((r,o)=>n(r,t[o]))}const XJ=2;function UF(e,t){return e-t}function y2(e,t){var n;const{index:r}=(n=e.reduce((o,i,a)=>{const s=Math.abs(t-i);return o===null||s({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},eee=e=>e;let Mm;function x2(){return Mm===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?Mm=CSS.supports("touch-action","none"):Mm=!0),Mm}function tee(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:o=!1,isRtl:i=!1,marks:a=!1,max:s=100,min:l=0,name:u,onChange:c,onChangeCommitted:d,orientation:f="horizontal",rootRef:h,scale:p=eee,step:m=1,shiftStep:y=10,tabIndex:b,value:x}=e,w=v.useRef(void 0),[S,O]=v.useState(-1),[C,$]=v.useState(-1),[E,M]=v.useState(!1),_=v.useRef(0),[A,j]=Is({controlled:x,default:n??l,name:"Slider"}),R=c&&((ue,te,Oe)=>{const Xe=ue.nativeEvent||ue,De=new Xe.constructor(Xe.type,Xe);Object.defineProperty(De,"target",{writable:!0,value:{value:te,name:u}}),c(De,te,Oe)}),I=Array.isArray(A);let k=I?A.slice().sort(UF):[A];k=k.map(ue=>ue==null?l:il(ue,l,s));const D=a===!0&&m!==null?[...Array(Math.floor((s-l)/m)+1)].map((ue,te)=>({value:l+m*te})):a||[],F=D.map(ue=>ue.value),{isFocusVisibleRef:T,onBlur:L,onFocus:N,ref:z}=KP(),[B,V]=v.useState(-1),W=v.useRef(null),ee=yt(z,W),pe=yt(h,ee),be=ue=>te=>{var Oe;const Xe=Number(te.currentTarget.getAttribute("data-index"));N(te),T.current===!0&&V(Xe),$(Xe),ue==null||(Oe=ue.onFocus)==null||Oe.call(ue,te)},ye=ue=>te=>{var Oe;L(te),T.current===!1&&V(-1),$(-1),ue==null||(Oe=ue.onBlur)==null||Oe.call(ue,te)},J=(ue,te)=>{const Oe=Number(ue.currentTarget.getAttribute("data-index")),Xe=k[Oe],De=F.indexOf(Xe);let ve=te;if(D&&m==null){const Ge=F[F.length-1];ve>Ge?ve=Ge:vete=>{var Oe;if(m!==null){const Xe=Number(te.currentTarget.getAttribute("data-index")),De=k[Xe];let ve=null;(te.key==="ArrowLeft"||te.key==="ArrowDown")&&te.shiftKey||te.key==="PageDown"?ve=Math.max(De-y,l):((te.key==="ArrowRight"||te.key==="ArrowUp")&&te.shiftKey||te.key==="PageUp")&&(ve=Math.min(De+y,s)),ve!==null&&(J(te,ve),te.preventDefault())}ue==null||(Oe=ue.onKeyDown)==null||Oe.call(ue,te)};Et(()=>{if(r&&W.current.contains(document.activeElement)){var ue;(ue=document.activeElement)==null||ue.blur()}},[r]),r&&S!==-1&&O(-1),r&&B!==-1&&V(-1);const ce=ue=>te=>{var Oe;(Oe=ue.onChange)==null||Oe.call(ue,te),J(te,te.target.valueAsNumber)},K=v.useRef(void 0);let Z=f;i&&f==="horizontal"&&(Z+="-reverse");const ie=({finger:ue,move:te=!1})=>{const{current:Oe}=W,{width:Xe,height:De,bottom:ve,left:Ge}=Oe.getBoundingClientRect();let Ye;Z.indexOf("vertical")===0?Ye=(ve-ue.y)/De:Ye=(ue.x-Ge)/Xe,Z.indexOf("-reverse")!==-1&&(Ye=1-Ye);let Qe;if(Qe=YJ(Ye,l,s),m)Qe=ZJ(Qe,m,l);else{const jn=y2(F,Qe);Qe=F[jn]}Qe=il(Qe,l,s);let Rt=0;if(I){te?Rt=K.current:Rt=y2(k,Qe),o&&(Qe=il(Qe,k[Rt-1]||-1/0,k[Rt+1]||1/0));const jn=Qe;Qe=b2({values:k,newValue:Qe,index:Rt}),o&&te||(Rt=Qe.indexOf(jn),K.current=Rt)}return{newValue:Qe,activeIndex:Rt}},re=Lt(ue=>{const te=km(ue,w);if(!te)return;if(_.current+=1,ue.type==="mousemove"&&ue.buttons===0){ae(ue);return}const{newValue:Oe,activeIndex:Xe}=ie({finger:te,move:!0});Im({sliderRef:W,activeIndex:Xe,setActive:O}),j(Oe),!E&&_.current>XJ&&M(!0),R&&!Tm(Oe,A)&&R(ue,Oe,Xe)}),ae=Lt(ue=>{const te=km(ue,w);if(M(!1),!te)return;const{newValue:Oe}=ie({finger:te,move:!0});O(-1),ue.type==="touchend"&&$(-1),d&&d(ue,Oe),w.current=void 0,ge()}),we=Lt(ue=>{if(r)return;x2()||ue.preventDefault();const te=ue.changedTouches[0];te!=null&&(w.current=te.identifier);const Oe=km(ue,w);if(Oe!==!1){const{newValue:De,activeIndex:ve}=ie({finger:Oe});Im({sliderRef:W,activeIndex:ve,setActive:O}),j(De),R&&!Tm(De,A)&&R(ue,De,ve)}_.current=0;const Xe=Wt(W.current);Xe.addEventListener("touchmove",re,{passive:!0}),Xe.addEventListener("touchend",ae,{passive:!0})}),ge=v.useCallback(()=>{const ue=Wt(W.current);ue.removeEventListener("mousemove",re),ue.removeEventListener("mouseup",ae),ue.removeEventListener("touchmove",re),ue.removeEventListener("touchend",ae)},[ae,re]);v.useEffect(()=>{const{current:ue}=W;return ue.addEventListener("touchstart",we,{passive:x2()}),()=>{ue.removeEventListener("touchstart",we),ge()}},[ge,we]),v.useEffect(()=>{r&&ge()},[r,ge]);const je=ue=>te=>{var Oe;if((Oe=ue.onMouseDown)==null||Oe.call(ue,te),r||te.defaultPrevented||te.button!==0)return;te.preventDefault();const Xe=km(te,w);if(Xe!==!1){const{newValue:ve,activeIndex:Ge}=ie({finger:Xe});Im({sliderRef:W,activeIndex:Ge,setActive:O}),j(ve),R&&!Tm(ve,A)&&R(te,ve,Ge)}_.current=0;const De=Wt(W.current);De.addEventListener("mousemove",re,{passive:!0}),De.addEventListener("mouseup",ae)},$e=uv(I?k[0]:l,l,s),Re=uv(k[k.length-1],l,s)-$e,Ee=(ue={})=>{const te=Nf(ue),Oe={onMouseDown:je(te||{})},Xe=P({},te,Oe);return P({},ue,{ref:pe},Xe)},me=ue=>te=>{var Oe;(Oe=ue.onMouseOver)==null||Oe.call(ue,te);const Xe=Number(te.currentTarget.getAttribute("data-index"));$(Xe)},xe=ue=>te=>{var Oe;(Oe=ue.onMouseLeave)==null||Oe.call(ue,te),$(-1)};return{active:S,axis:Z,axisProps:JJ,dragging:E,focusedThumbIndex:B,getHiddenInputProps:(ue={})=>{var te;const Oe=Nf(ue),Xe={onChange:ce(Oe||{}),onFocus:be(Oe||{}),onBlur:ye(Oe||{}),onKeyDown:fe(Oe||{})},De=P({},Oe,Xe);return P({tabIndex:b,"aria-labelledby":t,"aria-orientation":f,"aria-valuemax":p(s),"aria-valuemin":p(l),name:u,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(te=e.step)!=null?te:void 0,disabled:r},ue,De,{style:P({},v9,{direction:i?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:Ee,getThumbProps:(ue={})=>{const te=Nf(ue),Oe={onMouseOver:me(te||{}),onMouseLeave:xe(te||{})};return P({},ue,te,Oe)},marks:D,open:C,range:I,rootRef:pe,trackLeap:Re,trackOffset:$e,values:k,getThumbStyle:ue=>({pointerEvents:S!==-1&&S!==ue?"none":void 0})}}const nee=e=>!e||!mi(e);function ree(e){return Be("MuiSlider",e)}const Ro=Le("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),oee=e=>{const{open:t}=e;return{offset:Y(t&&Ro.valueLabelOpen),circle:Ro.valueLabelCircle,label:Ro.valueLabelLabel}};function iee(e){const{children:t,className:n,value:r}=e,o=oee(e);return t?v.cloneElement(t,{className:Y(t.props.className)},g.jsxs(v.Fragment,{children:[t.props.children,g.jsx("span",{className:Y(o.offset,n),"aria-hidden":!0,children:g.jsx("span",{className:o.circle,children:g.jsx("span",{className:o.label,children:r})})})]})):null}const aee=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","shiftStep","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function w2(e){return e}const see=ne("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${oe(n.color)}`],n.size!=="medium"&&t[`size${oe(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(({theme:e})=>{var t;return{borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${Ro.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${Ro.dragging}`]:{[`& .${Ro.thumb}, & .${Ro.track}`]:{transition:"none"}},variants:[...Object.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r;return((r=e.vars)!=null?r:e).palette[n].main}).map(n=>({props:{color:n},style:{color:(e.vars||e).palette[n].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}}),lee=ne("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),uee=ne("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>{var t;return{display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r;return((r=e.vars)!=null?r:e).palette[n].main}).map(n=>({props:{color:n,track:"inverted"},style:P({},e.vars?{backgroundColor:e.vars.palette.Slider[`${n}Track`],borderColor:e.vars.palette.Slider[`${n}Track`]}:P({backgroundColor:Ds(e.palette[n].main,.62),borderColor:Ds(e.palette[n].main,.62)},e.applyStyles("dark",{backgroundColor:js(e.palette[n].main,.5)}),e.applyStyles("dark",{borderColor:js(e.palette[n].main,.5)})))}))]}}),cee=ne("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${oe(n.color)}`],n.size!=="medium"&&t[`thumbSize${oe(n.size)}`]]}})(({theme:e})=>{var t;return{position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${Ro.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r;return((r=e.vars)!=null?r:e).palette[n].main}).map(n=>({props:{color:n},style:{[`&:hover, &.${Ro.focusVisible}`]:P({},e.vars?{boxShadow:`0px 0px 0px 8px rgba(${e.vars.palette[n].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${nt(e.palette[n].main,.16)}`},{"@media (hover: none)":{boxShadow:"none"}}),[`&.${Ro.active}`]:P({},e.vars?{boxShadow:`0px 0px 0px 14px rgba(${e.vars.palette[n].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${nt(e.palette[n].main,.16)}`})}}))]}}),dee=ne(iee,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e})=>P({zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${Ro.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${Ro.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]})),fee=ne("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>Cb(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(({theme:e})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8}}]})),pee=ne("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>Cb(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e})=>P({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(e.vars||e).palette.text.primary}}]})),hee=e=>{const{disabled:t,dragging:n,marked:r,orientation:o,track:i,classes:a,color:s,size:l}=e,u={root:["root",t&&"disabled",n&&"dragging",r&&"marked",o==="vertical"&&"vertical",i==="inverted"&&"trackInverted",i===!1&&"trackFalse",s&&`color${oe(s)}`,l&&`size${oe(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${oe(l)}`,s&&`thumbColor${oe(s)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Ce(u,ree,a)},mee=({children:e})=>e,C2=v.forwardRef(function(t,n){var r,o,i,a,s,l,u,c,d,f,h,p,m,y,b,x,w,S,O,C,$,E,M,_;const A=He({props:t,name:"MuiSlider"}),j=gd(),{"aria-label":R,"aria-valuetext":I,"aria-labelledby":k,component:D="span",components:F={},componentsProps:T={},color:L="primary",classes:N,className:z,disableSwap:B=!1,disabled:V=!1,getAriaLabel:W,getAriaValueText:ee,marks:pe=!1,max:be=100,min:ye=0,orientation:J="horizontal",shiftStep:fe=10,size:ce="medium",step:K=1,scale:Z=w2,slotProps:ie,slots:re,track:ae="normal",valueLabelDisplay:we="off",valueLabelFormat:ge=w2}=A,je=Q(A,aee),$e=P({},A,{isRtl:j,max:be,min:ye,classes:N,disabled:V,disableSwap:B,orientation:J,marks:pe,color:L,size:ce,step:K,shiftStep:fe,scale:Z,track:ae,valueLabelDisplay:we,valueLabelFormat:ge}),{axisProps:Re,getRootProps:Ee,getHiddenInputProps:me,getThumbProps:xe,open:ke,active:ze,axis:et,focusedThumbIndex:ue,range:te,dragging:Oe,marks:Xe,values:De,trackOffset:ve,trackLeap:Ge,getThumbStyle:Ye}=tee(P({},$e,{rootRef:n}));$e.marked=Xe.length>0&&Xe.some(le=>le.label),$e.dragging=Oe,$e.focusedThumbIndex=ue;const Qe=hee($e),Rt=(r=(o=re==null?void 0:re.root)!=null?o:F.Root)!=null?r:see,jn=(i=(a=re==null?void 0:re.rail)!=null?a:F.Rail)!=null?i:lee,xn=(s=(l=re==null?void 0:re.track)!=null?l:F.Track)!=null?s:uee,Wn=(u=(c=re==null?void 0:re.thumb)!=null?c:F.Thumb)!=null?u:cee,bt=(d=(f=re==null?void 0:re.valueLabel)!=null?f:F.ValueLabel)!=null?d:dee,gt=(h=(p=re==null?void 0:re.mark)!=null?p:F.Mark)!=null?h:fee,Gn=(m=(y=re==null?void 0:re.markLabel)!=null?y:F.MarkLabel)!=null?m:pee,go=(b=(x=re==null?void 0:re.input)!=null?x:F.Input)!=null?b:"input",qr=(w=ie==null?void 0:ie.root)!=null?w:T.root,Oi=(S=ie==null?void 0:ie.rail)!=null?S:T.rail,Xr=(O=ie==null?void 0:ie.track)!=null?O:T.track,Xo=(C=ie==null?void 0:ie.thumb)!=null?C:T.thumb,Kn=($=ie==null?void 0:ie.valueLabel)!=null?$:T.valueLabel,sn=(E=ie==null?void 0:ie.mark)!=null?E:T.mark,It=(M=ie==null?void 0:ie.markLabel)!=null?M:T.markLabel,wn=(_=ie==null?void 0:ie.input)!=null?_:T.input,Dn=Yn({elementType:Rt,getSlotProps:Ee,externalSlotProps:qr,externalForwardedProps:je,additionalProps:P({},nee(Rt)&&{as:D}),ownerState:P({},$e,qr==null?void 0:qr.ownerState),className:[Qe.root,z]}),Yr=Yn({elementType:jn,externalSlotProps:Oi,ownerState:$e,className:Qe.rail}),Yo=Yn({elementType:xn,externalSlotProps:Xr,additionalProps:{style:P({},Re[et].offset(ve),Re[et].leap(Ge))},ownerState:P({},$e,Xr==null?void 0:Xr.ownerState),className:Qe.track}),rr=Yn({elementType:Wn,getSlotProps:xe,externalSlotProps:Xo,ownerState:P({},$e,Xo==null?void 0:Xo.ownerState),className:Qe.thumb}),$i=Yn({elementType:bt,externalSlotProps:Kn,ownerState:P({},$e,Kn==null?void 0:Kn.ownerState),className:Qe.valueLabel}),vo=Yn({elementType:gt,externalSlotProps:sn,ownerState:$e,className:Qe.mark}),Er=Yn({elementType:Gn,externalSlotProps:It,ownerState:$e,className:Qe.markLabel}),Qo=Yn({elementType:go,getSlotProps:me,externalSlotProps:wn,ownerState:$e});return g.jsxs(Rt,P({},Dn,{children:[g.jsx(jn,P({},Yr)),g.jsx(xn,P({},Yo)),Xe.filter(le=>le.value>=ye&&le.value<=be).map((le,X)=>{const Ie=uv(le.value,ye,be),We=Re[et].offset(Ie);let Ze;return ae===!1?Ze=De.indexOf(le.value)!==-1:Ze=ae==="normal"&&(te?le.value>=De[0]&&le.value<=De[De.length-1]:le.value<=De[0])||ae==="inverted"&&(te?le.value<=De[0]||le.value>=De[De.length-1]:le.value>=De[0]),g.jsxs(v.Fragment,{children:[g.jsx(gt,P({"data-index":X},vo,!mi(gt)&&{markActive:Ze},{style:P({},We,vo.style),className:Y(vo.className,Ze&&Qe.markActive)})),le.label!=null?g.jsx(Gn,P({"aria-hidden":!0,"data-index":X},Er,!mi(Gn)&&{markLabelActive:Ze},{style:P({},We,Er.style),className:Y(Qe.markLabel,Er.className,Ze&&Qe.markLabelActive),children:le.label})):null]},X)}),De.map((le,X)=>{const Ie=uv(le,ye,be),We=Re[et].offset(Ie),Ze=we==="off"?mee:bt;return g.jsx(Ze,P({},!mi(Ze)&&{valueLabelFormat:ge,valueLabelDisplay:we,value:typeof ge=="function"?ge(Z(le),X):ge,index:X,open:ke===X||ze===X||we==="on",disabled:V},$i,{children:g.jsx(Wn,P({"data-index":X},rr,{className:Y(Qe.thumb,rr.className,ze===X&&Qe.active,ue===X&&Qe.focusVisible),style:P({},We,Ye(X),rr.style),children:g.jsx(go,P({"data-index":X,"aria-label":W?W(X):R,"aria-valuenow":Z(le),"aria-labelledby":k,"aria-valuetext":ee?ee(Z(le),X):I,value:De[X]},Qo))}))}),X)})]}))});function gee(e){return Be("MuiTooltip",e)}const vs=Le("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),vee=["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 yee(e){return Math.round(e*1e5)/1e5}const bee=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${oe(i.split("-")[0])}`],arrow:["arrow"]};return Ce(a,gee,t)},xee=ne(au,{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"] .${vs.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${vs.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${vs.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"] .${vs.arrow}`]:P({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),wee=ne("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${oe(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>P({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:nt(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:`${yee(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${vs.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"})),[`.${vs.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"})),[`.${vs.popper}[data-popper-placement*="top"] &`]:P({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${vs.popper}[data-popper-placement*="bottom"] &`]:P({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),Cee=ne("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:nt(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let _m=!1;const S2=new GP;let of={x:0,y:0};function Am(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const jb=v.forwardRef(function(t,n){var r,o,i,a,s,l,u,c,d,f,h,p,m,y,b,x,w,S,O;const C=He({props:t,name:"MuiTooltip"}),{arrow:$=!1,children:E,components:M={},componentsProps:_={},describeChild:A=!1,disableFocusListener:j=!1,disableHoverListener:R=!1,disableInteractive:I=!1,disableTouchListener:k=!1,enterDelay:D=100,enterNextDelay:F=0,enterTouchDelay:T=700,followCursor:L=!1,id:N,leaveDelay:z=0,leaveTouchDelay:B=1500,onClose:V,onOpen:W,open:ee,placement:pe="bottom",PopperComponent:be,PopperProps:ye={},slotProps:J={},slots:fe={},title:ce,TransitionComponent:K=$p,TransitionProps:Z}=C,ie=Q(C,vee),re=v.isValidElement(E)?E:g.jsx("span",{children:E}),ae=mr(),we=gd(),[ge,je]=v.useState(),[$e,Re]=v.useState(null),Ee=v.useRef(!1),me=I||L,xe=Uu(),ke=Uu(),ze=Uu(),et=Uu(),[ue,te]=Is({controlled:ee,default:!1,name:"Tooltip",state:"open"});let Oe=ue;const Xe=Dt(N),De=v.useRef(),ve=Lt(()=>{De.current!==void 0&&(document.body.style.WebkitUserSelect=De.current,De.current=void 0),et.clear()});v.useEffect(()=>ve,[ve]);const Ge=Ke=>{S2.clear(),_m=!0,te(!0),W&&!Oe&&W(Ke)},Ye=Lt(Ke=>{S2.start(800+z,()=>{_m=!1}),te(!1),V&&Oe&&V(Ke),xe.start(ae.transitions.duration.shortest,()=>{Ee.current=!1})}),Qe=Ke=>{Ee.current&&Ke.type!=="touchstart"||(ge&&ge.removeAttribute("title"),ke.clear(),ze.clear(),D||_m&&F?ke.start(_m?F:D,()=>{Ge(Ke)}):Ge(Ke))},Rt=Ke=>{ke.clear(),ze.start(z,()=>{Ye(Ke)})},{isFocusVisibleRef:jn,onBlur:xn,onFocus:Wn,ref:bt}=KP(),[,gt]=v.useState(!1),Gn=Ke=>{xn(Ke),jn.current===!1&&(gt(!1),Rt(Ke))},go=Ke=>{ge||je(Ke.currentTarget),Wn(Ke),jn.current===!0&&(gt(!0),Qe(Ke))},qr=Ke=>{Ee.current=!0;const ht=re.props;ht.onTouchStart&&ht.onTouchStart(Ke)},Oi=Ke=>{qr(Ke),ze.clear(),xe.clear(),ve(),De.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",et.start(T,()=>{document.body.style.WebkitUserSelect=De.current,Qe(Ke)})},Xr=Ke=>{re.props.onTouchEnd&&re.props.onTouchEnd(Ke),ve(),ze.start(B,()=>{Ye(Ke)})};v.useEffect(()=>{if(!Oe)return;function Ke(ht){(ht.key==="Escape"||ht.key==="Esc")&&Ye(ht)}return document.addEventListener("keydown",Ke),()=>{document.removeEventListener("keydown",Ke)}},[Ye,Oe]);const Xo=yt(Hs(re),bt,je,n);!ce&&ce!==0&&(Oe=!1);const Kn=v.useRef(),sn=Ke=>{const ht=re.props;ht.onMouseMove&&ht.onMouseMove(Ke),of={x:Ke.clientX,y:Ke.clientY},Kn.current&&Kn.current.update()},It={},wn=typeof ce=="string";A?(It.title=!Oe&&wn&&!R?ce:null,It["aria-describedby"]=Oe?Xe:null):(It["aria-label"]=wn?ce:null,It["aria-labelledby"]=Oe&&!wn?Xe:null);const Dn=P({},It,ie,re.props,{className:Y(ie.className,re.props.className),onTouchStart:qr,ref:Xo},L?{onMouseMove:sn}:{}),Yr={};k||(Dn.onTouchStart=Oi,Dn.onTouchEnd=Xr),R||(Dn.onMouseOver=Am(Qe,Dn.onMouseOver),Dn.onMouseLeave=Am(Rt,Dn.onMouseLeave),me||(Yr.onMouseOver=Qe,Yr.onMouseLeave=Rt)),j||(Dn.onFocus=Am(go,Dn.onFocus),Dn.onBlur=Am(Gn,Dn.onBlur),me||(Yr.onFocus=go,Yr.onBlur=Gn));const Yo=v.useMemo(()=>{var Ke;let ht=[{name:"arrow",enabled:!!$e,options:{element:$e,padding:4}}];return(Ke=ye.popperOptions)!=null&&Ke.modifiers&&(ht=ht.concat(ye.popperOptions.modifiers)),P({},ye.popperOptions,{modifiers:ht})},[$e,ye]),rr=P({},C,{isRtl:we,arrow:$,disableInteractive:me,placement:pe,PopperComponentProp:be,touch:Ee.current}),$i=bee(rr),vo=(r=(o=fe.popper)!=null?o:M.Popper)!=null?r:xee,Er=(i=(a=(s=fe.transition)!=null?s:M.Transition)!=null?a:K)!=null?i:$p,Qo=(l=(u=fe.tooltip)!=null?u:M.Tooltip)!=null?l:wee,le=(c=(d=fe.arrow)!=null?d:M.Arrow)!=null?c:Cee,X=Vu(vo,P({},ye,(f=J.popper)!=null?f:_.popper,{className:Y($i.popper,ye==null?void 0:ye.className,(h=(p=J.popper)!=null?p:_.popper)==null?void 0:h.className)}),rr),Ie=Vu(Er,P({},Z,(m=J.transition)!=null?m:_.transition),rr),We=Vu(Qo,P({},(y=J.tooltip)!=null?y:_.tooltip,{className:Y($i.tooltip,(b=(x=J.tooltip)!=null?x:_.tooltip)==null?void 0:b.className)}),rr),Ze=Vu(le,P({},(w=J.arrow)!=null?w:_.arrow,{className:Y($i.arrow,(S=(O=J.arrow)!=null?O:_.arrow)==null?void 0:S.className)}),rr);return g.jsxs(v.Fragment,{children:[v.cloneElement(re,Dn),g.jsx(vo,P({as:be??au,placement:pe,anchorEl:L?{getBoundingClientRect:()=>({top:of.y,left:of.x,right:of.x,bottom:of.y,width:0,height:0})}:ge,popperRef:Kn,open:ge?Oe:!1,id:Xe,transition:!0},Yr,X,{popperOptions:Yo,children:({TransitionProps:Ke})=>g.jsx(Er,P({timeout:ae.transitions.duration.shorter},Ke,Ie,{children:g.jsxs(Qo,P({},We,{children:[ce,$?g.jsx(le,P({},Ze,{ref:Re})):null]}))}))}))]})});function See(e){return Be("MuiSwitch",e)}const lr=Le("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),Pee=["className","color","edge","size","sx"],Oee=e=>{const{classes:t,edge:n,size:r,color:o,checked:i,disabled:a}=e,s={root:["root",n&&`edge${oe(n)}`,`size${oe(r)}`],switchBase:["switchBase",`color${oe(o)}`,i&&"checked",a&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=Ce(s,See,t);return P({},t,l)},$ee=ne("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${oe(n.edge)}`],t[`size${oe(n.size)}`]]}})({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"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${lr.thumb}`]:{width:16,height:16},[`& .${lr.switchBase}`]:{padding:4,[`&.${lr.checked}`]:{transform:"translateX(16px)"}}}}]}),Eee=ne(MF,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${lr.input}`]:t.input},n.color!=="default"&&t[`color${oe(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}),[`&.${lr.checked}`]:{transform:"translateX(20px)"},[`&.${lr.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${lr.checked} + .${lr.track}`]:{opacity:.5},[`&.${lr.disabled} + .${lr.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${lr.input}`]:{left:"-100%",width:"300%"}}),({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:nt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(([,t])=>t.main&&t.light).map(([t])=>({props:{color:t},style:{[`&.${lr.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:nt(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${lr.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?Ds(e.palette[t].main,.62):js(e.palette[t].main,.55)}`}},[`&.${lr.checked} + .${lr.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]})),kee=ne("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}`})),Iee=ne("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%"})),Tee=v.forwardRef(function(t,n){const r=He({props:t,name:"MuiSwitch"}),{className:o,color:i="primary",edge:a=!1,size:s="medium",sx:l}=r,u=Q(r,Pee),c=P({},r,{color:i,edge:a,size:s}),d=Oee(c),f=g.jsx(Iee,{className:d.thumb,ownerState:c});return g.jsxs($ee,{className:Y(d.root,o),sx:l,ownerState:c,children:[g.jsx(Eee,P({type:"checkbox",icon:f,checkedIcon:f,ref:n,ownerState:c},u,{classes:P({},d,{root:d.switchBase})})),g.jsx(kee,{className:d.track,ownerState:c})]})}),VF=v.createContext();function Mee(e){return Be("MuiTable",e)}Le("MuiTable",["root","stickyHeader"]);const _ee=["className","component","padding","size","stickyHeader"],Aee=e=>{const{classes:t,stickyHeader:n}=e;return Ce({root:["root",n&&"stickyHeader"]},Mee,t)},Ree=ne("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>P({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":P({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),P2="table",WF=v.forwardRef(function(t,n){const r=He({props:t,name:"MuiTable"}),{className:o,component:i=P2,padding:a="normal",size:s="medium",stickyHeader:l=!1}=r,u=Q(r,_ee),c=P({},r,{component:i,padding:a,size:s,stickyHeader:l}),d=Aee(c),f=v.useMemo(()=>({padding:a,size:s,stickyHeader:l}),[a,s,l]);return g.jsx(VF.Provider,{value:f,children:g.jsx(Ree,P({as:i,role:i===P2?null:"table",ref:n,className:Y(d.root,o),ownerState:c},u))})}),Db=v.createContext();function jee(e){return Be("MuiTableBody",e)}Le("MuiTableBody",["root"]);const Dee=["className","component"],Lee=e=>{const{classes:t}=e;return Ce({root:["root"]},jee,t)},Fee=ne("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),Nee={variant:"body"},O2="tbody",GF=v.forwardRef(function(t,n){const r=He({props:t,name:"MuiTableBody"}),{className:o,component:i=O2}=r,a=Q(r,Dee),s=P({},r,{component:i}),l=Lee(s);return g.jsx(Db.Provider,{value:Nee,children:g.jsx(Fee,P({className:Y(l.root,o),as:i,ref:n,role:i===O2?null:"rowgroup",ownerState:s},a))})});function Bee(e){return Be("MuiTableCell",e)}const zee=Le("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),Hee=["align","className","component","padding","scope","size","sortDirection","variant"],Uee=e=>{const{classes:t,variant:n,align:r,padding:o,size:i,stickyHeader:a}=e,s={root:["root",n,a&&"stickyHeader",r!=="inherit"&&`align${oe(r)}`,o!=="normal"&&`padding${oe(o)}`,`size${oe(i)}`]};return Ce(s,Bee,t)},Vee=ne("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${oe(n.size)}`],n.padding!=="normal"&&t[`padding${oe(n.padding)}`],n.align!=="inherit"&&t[`align${oe(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"?Ds(nt(e.palette.divider,1),.88):js(nt(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",[`&.${zee.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})),In=v.forwardRef(function(t,n){const r=He({props:t,name:"MuiTableCell"}),{align:o="inherit",className:i,component:a,padding:s,scope:l,size:u,sortDirection:c,variant:d}=r,f=Q(r,Hee),h=v.useContext(VF),p=v.useContext(Db),m=p&&p.variant==="head";let y;a?y=a:y=m?"th":"td";let b=l;y==="td"?b=void 0:!b&&m&&(b="col");const x=d||p&&p.variant,w=P({},r,{align:o,component:y,padding:s||(h&&h.padding?h.padding:"normal"),size:u||(h&&h.size?h.size:"medium"),sortDirection:c,stickyHeader:x==="head"&&h&&h.stickyHeader,variant:x}),S=Uee(w);let O=null;return c&&(O=c==="asc"?"ascending":"descending"),g.jsx(Vee,P({as:y,ref:n,className:Y(S.root,i),"aria-sort":O,scope:b,ownerState:w},f))});function Wee(e){return Be("MuiTableContainer",e)}Le("MuiTableContainer",["root"]);const Gee=["className","component"],Kee=e=>{const{classes:t}=e;return Ce({root:["root"]},Wee,t)},qee=ne("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),KF=v.forwardRef(function(t,n){const r=He({props:t,name:"MuiTableContainer"}),{className:o,component:i="div"}=r,a=Q(r,Gee),s=P({},r,{component:i}),l=Kee(s);return g.jsx(qee,P({ref:n,as:i,className:Y(l.root,o),ownerState:s},a))});function Xee(e){return Be("MuiTableHead",e)}Le("MuiTableHead",["root"]);const Yee=["className","component"],Qee=e=>{const{classes:t}=e;return Ce({root:["root"]},Xee,t)},Zee=ne("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),Jee={variant:"head"},$2="thead",qF=v.forwardRef(function(t,n){const r=He({props:t,name:"MuiTableHead"}),{className:o,component:i=$2}=r,a=Q(r,Yee),s=P({},r,{component:i}),l=Qee(s);return g.jsx(Db.Provider,{value:Jee,children:g.jsx(Zee,P({as:i,className:Y(l.root,o),ref:n,role:i===$2?null:"rowgroup",ownerState:s},a))})});function ete(e){return Be("MuiToolbar",e)}Le("MuiToolbar",["root","gutters","regular","dense"]);const tte=["className","component","disableGutters","variant"],nte=e=>{const{classes:t,disableGutters:n,variant:r}=e;return Ce({root:["root",!n&&"gutters",r]},ete,t)},rte=ne("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),vg=v.forwardRef(function(t,n){const r=He({props:t,name:"MuiToolbar"}),{className:o,component:i="div",disableGutters:a=!1,variant:s="regular"}=r,l=Q(r,tte),u=P({},r,{component:i,disableGutters:a,variant:s}),c=nte(u);return g.jsx(rte,P({as:i,className:Y(c.root,o),ref:n,ownerState:u},l))}),ote=Te(g.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),ite=Te(g.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight"),ate=["backIconButtonProps","count","disabled","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton","slots","slotProps"],ste=v.forwardRef(function(t,n){var r,o,i,a,s,l,u,c;const{backIconButtonProps:d,count:f,disabled:h=!1,getItemAriaLabel:p,nextIconButtonProps:m,onPageChange:y,page:b,rowsPerPage:x,showFirstButton:w,showLastButton:S,slots:O={},slotProps:C={}}=t,$=Q(t,ate),E=gd(),M=J=>{y(J,0)},_=J=>{y(J,b-1)},A=J=>{y(J,b+1)},j=J=>{y(J,Math.max(0,Math.ceil(f/x)-1))},R=(r=O.firstButton)!=null?r:pr,I=(o=O.lastButton)!=null?o:pr,k=(i=O.nextButton)!=null?i:pr,D=(a=O.previousButton)!=null?a:pr,F=(s=O.firstButtonIcon)!=null?s:OJ,T=(l=O.lastButtonIcon)!=null?l:$J,L=(u=O.nextButtonIcon)!=null?u:ite,N=(c=O.previousButtonIcon)!=null?c:ote,z=E?I:R,B=E?k:D,V=E?D:k,W=E?R:I,ee=E?C.lastButton:C.firstButton,pe=E?C.nextButton:C.previousButton,be=E?C.previousButton:C.nextButton,ye=E?C.firstButton:C.lastButton;return g.jsxs("div",P({ref:n},$,{children:[w&&g.jsx(z,P({onClick:M,disabled:h||b===0,"aria-label":p("first",b),title:p("first",b)},ee,{children:E?g.jsx(T,P({},C.lastButtonIcon)):g.jsx(F,P({},C.firstButtonIcon))})),g.jsx(B,P({onClick:_,disabled:h||b===0,color:"inherit","aria-label":p("previous",b),title:p("previous",b)},pe??d,{children:E?g.jsx(L,P({},C.nextButtonIcon)):g.jsx(N,P({},C.previousButtonIcon))})),g.jsx(V,P({onClick:A,disabled:h||(f!==-1?b>=Math.ceil(f/x)-1:!1),color:"inherit","aria-label":p("next",b),title:p("next",b)},be??m,{children:E?g.jsx(N,P({},C.previousButtonIcon)):g.jsx(L,P({},C.nextButtonIcon))})),S&&g.jsx(W,P({onClick:j,disabled:h||b>=Math.ceil(f/x)-1,"aria-label":p("last",b),title:p("last",b)},ye,{children:E?g.jsx(F,P({},C.firstButtonIcon)):g.jsx(T,P({},C.lastButtonIcon))}))]}))});function lte(e){return Be("MuiTablePagination",e)}const Ml=Le("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]);var E2;const ute=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","disabled","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton","slotProps","slots"],cte=ne(In,{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}})),dte=ne(vg,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>P({[`& .${Ml.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},[`& .${Ml.actions}`]:{flexShrink:0,marginLeft:20}})),fte=ne("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),pte=ne("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})(({theme:e})=>P({},e.typography.body2,{flexShrink:0})),hte=ne(ci,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>P({[`& .${Ml.selectIcon}`]:t.selectIcon,[`& .${Ml.select}`]:t.select},t.input,t.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${Ml.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),mte=ne(vt,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),gte=ne("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})(({theme:e})=>P({},e.typography.body2,{flexShrink:0}));function vte({from:e,to:t,count:n}){return`${e}–${t} of ${n!==-1?n:`more than ${t}`}`}function yte(e){return`Go to ${e} page`}const bte=e=>{const{classes:t}=e;return Ce({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},lte,t)},xte=v.forwardRef(function(t,n){var r;const o=He({props:t,name:"MuiTablePagination"}),{ActionsComponent:i=ste,backIconButtonProps:a,className:s,colSpan:l,component:u=In,count:c,disabled:d=!1,getItemAriaLabel:f=yte,labelDisplayedRows:h=vte,labelRowsPerPage:p="Rows per page:",nextIconButtonProps:m,onPageChange:y,onRowsPerPageChange:b,page:x,rowsPerPage:w,rowsPerPageOptions:S=[10,25,50,100],SelectProps:O={},showFirstButton:C=!1,showLastButton:$=!1,slotProps:E={},slots:M={}}=o,_=Q(o,ute),A=o,j=bte(A),R=(r=E==null?void 0:E.select)!=null?r:O,I=R.native?"option":mte;let k;(u===In||u==="td")&&(k=l||1e3);const D=Dt(R.id),F=Dt(R.labelId),T=()=>c===-1?(x+1)*w:w===-1?c:Math.min(c,(x+1)*w);return g.jsx(cte,P({colSpan:k,ref:n,as:u,ownerState:A,className:Y(j.root,s)},_,{children:g.jsxs(dte,{className:j.toolbar,children:[g.jsx(fte,{className:j.spacer}),S.length>1&&g.jsx(pte,{className:j.selectLabel,id:F,children:p}),S.length>1&&g.jsx(hte,P({variant:"standard"},!R.variant&&{input:E2||(E2=g.jsx(wd,{}))},{value:w,onChange:b,id:D,labelId:F},R,{classes:P({},R.classes,{root:Y(j.input,j.selectRoot,(R.classes||{}).root),select:Y(j.select,(R.classes||{}).select),icon:Y(j.selectIcon,(R.classes||{}).icon)}),disabled:d,children:S.map(L=>v.createElement(I,P({},!mi(I)&&{ownerState:A},{className:j.menuItem,key:L.label?L.label:L,value:L.value?L.value:L}),L.label?L.label:L))})),g.jsx(gte,{className:j.displayedRows,children:h({from:c===0?0:x*w+1,to:T(),count:c===-1?-1:c,page:x})}),g.jsx(i,{className:j.actions,backIconButtonProps:a,count:c,nextIconButtonProps:m,onPageChange:y,page:x,rowsPerPage:w,showFirstButton:C,showLastButton:$,slotProps:E.actions,slots:M.actions,getItemAriaLabel:f,disabled:d})]})}))});function wte(e){return Be("MuiTableRow",e)}const k2=Le("MuiTableRow",["root","selected","hover","head","footer"]),Cte=["className","component","hover","selected"],Ste=e=>{const{classes:t,selected:n,hover:r,head:o,footer:i}=e;return Ce({root:["root",n&&"selected",r&&"hover",o&&"head",i&&"footer"]},wte,t)},Pte=ne("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${k2.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${k2.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:nt(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:nt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),I2="tr",Wu=v.forwardRef(function(t,n){const r=He({props:t,name:"MuiTableRow"}),{className:o,component:i=I2,hover:a=!1,selected:s=!1}=r,l=Q(r,Cte),u=v.useContext(Db),c=P({},r,{component:i,hover:a,selected:s,head:u&&u.variant==="head",footer:u&&u.variant==="footer"}),d=Ste(c);return g.jsx(Pte,P({as:i,ref:n,className:Y(d.root,o),role:i===I2?null:"row",ownerState:c},l))});function Ote(e){return Be("MuiTextField",e)}Le("MuiTextField",["root"]);const $te=["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"],Ete={standard:vO,filled:gO,outlined:CO},kte=e=>{const{classes:t}=e;return Ce({root:["root"]},Ote,t)},Ite=ne(ga,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),li=v.forwardRef(function(t,n){const r=He({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:i=!1,children:a,className:s,color:l="primary",defaultValue:u,disabled:c=!1,error:d=!1,FormHelperTextProps:f,fullWidth:h=!1,helperText:p,id:m,InputLabelProps:y,inputProps:b,InputProps:x,inputRef:w,label:S,maxRows:O,minRows:C,multiline:$=!1,name:E,onBlur:M,onChange:_,onFocus:A,placeholder:j,required:R=!1,rows:I,select:k=!1,SelectProps:D,type:F,value:T,variant:L="outlined"}=r,N=Q(r,$te),z=P({},r,{autoFocus:i,color:l,disabled:c,error:d,fullWidth:h,multiline:$,required:R,select:k,variant:L}),B=kte(z),V={};L==="outlined"&&(y&&typeof y.shrink<"u"&&(V.notched=y.shrink),V.label=S),k&&((!D||!D.native)&&(V.id=void 0),V["aria-describedby"]=void 0);const W=Dt(m),ee=p&&W?`${W}-helper-text`:void 0,pe=S&&W?`${W}-label`:void 0,be=Ete[L],ye=g.jsx(be,P({"aria-describedby":ee,autoComplete:o,autoFocus:i,defaultValue:u,fullWidth:h,multiline:$,name:E,rows:I,maxRows:O,minRows:C,type:F,value:T,id:W,inputRef:w,onBlur:M,onChange:_,onFocus:A,placeholder:j,inputProps:b},V,x));return g.jsxs(Ite,P({className:Y(B.root,s),disabled:c,error:d,fullWidth:h,ref:n,required:R,color:l,variant:L,ownerState:z},N,{children:[S!=null&&S!==""&&g.jsx(va,P({htmlFor:W,id:pe},y,{children:S})),k?g.jsx(ci,P({"aria-describedby":ee,id:W,labelId:pe,value:T,input:ye},D,{children:a})):ye,p&&g.jsx(CQ,P({id:ee},f,{children:p}))]}))}),Tte=Te([g.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),g.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"AccessTime"),XF=Te(g.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add"),Mte=Te(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 2m5 11h-4v4h-2v-4H7v-2h4V7h2v4h4z"}),"AddCircle"),_te=Te(g.jsx("path",{d:"M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"AddCircleOutline"),Ate=Te(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-2m-5 14H7v-2h7zm3-4H7v-2h10zm0-4H7V7h10z"}),"Article"),Rte=Te(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.4"}),"AttachMoney"),YF=Te(g.jsx("path",{d:"M11 21h-1l1-7H7.5c-.58 0-.57-.32-.38-.66.19-.34.05-.08.07-.12C8.48 10.94 10.42 7.54 13 3h1l-1 7h3.5c.49 0 .56.33.47.51l-.07.15C12.96 17.55 11 21 11 21"}),"Bolt"),jte=Te(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 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}),"CheckCircle"),Dte=Te(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 2"}),"Circle"),Lte=Te(g.jsx("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96"}),"Cloud"),Fte=Te(g.jsx("path",{d:"M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6z"}),"Code"),Nte=Te(g.jsx("path",{d:"M3 13h8V3H3zm0 8h8v-6H3zm10 0h8V11h-8zm0-18v6h8V3z"}),"Dashboard"),QF=Te(g.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete"),Bte=Te(g.jsx("path",{d:"M15 16h4v2h-4zm0-8h7v2h-7zm0 4h6v2h-6zM3 18c0 1.1.9 2 2 2h6c1.1 0 2-.9 2-2V8H3zM14 5h-3l-1-1H6L5 5H2v2h12z"}),"DeleteSweep"),ZF=Te(g.jsx("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm2 16H8v-2h8zm0-4H8v-2h8zm-3-5V3.5L18.5 9z"}),"Description"),JF=Te(g.jsx("path",{d:"M20 13H4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h16c.55 0 1-.45 1-1v-6c0-.55-.45-1-1-1M7 19c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2M20 3H4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h16c.55 0 1-.45 1-1V4c0-.55-.45-1-1-1M7 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"}),"Dns"),zte=Te(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 2m1 15h-2v-2h2zm0-4h-2V7h2z"}),"Error"),Hte=Te(g.jsx("path",{d:"m12 21.35-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54z"}),"Favorite"),Ute=Te(g.jsx("path",{d:"M10 18h4v-2h-4zM3 6v2h18V6zm3 7h12v-2H6z"}),"FilterList"),F1=Te(g.jsx("path",{d:"M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8z"}),"Folder"),N1=Te(g.jsx("path",{d:"M18 4H6v2l6.5 6L6 18v2h12v-3h-7l5-5-5-5h7z"}),"Functions"),Vte=Te(g.jsx("path",{d:"M11 18h2v-2h-2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4"}),"HelpOutline"),Wte=Te(g.jsx("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1z"}),"Lock"),Gte=Te(g.jsx("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu"),Kte=Te(g.jsx("path",{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3m-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3m0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5m8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5"}),"People"),qte=Te(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 4m0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4"}),"Person"),Xte=Te(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 2m-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39"}),"Public"),Yte=Te(g.jsx("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z"}),"Refresh"),Qte=Te(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 2m5 11H7v-2h10z"}),"RemoveCircle"),eN=Te(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 19zm-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 14"}),"Search"),tN=Te(g.jsx("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6"}),"Settings"),Zte=Te(g.jsx("path",{d:"m20.38 8.57-1.23 1.85a8 8 0 0 1-.22 7.58H5.07A8 8 0 0 1 15.58 6.85l1.85-1.23A10 10 0 0 0 3.35 19a2 2 0 0 0 1.72 1h13.85a2 2 0 0 0 1.74-1 10 10 0 0 0-.27-10.44zm-9.79 6.84a2 2 0 0 0 2.83 0l5.66-8.49-8.49 5.66a2 2 0 0 0 0 2.83"}),"Speed"),nN=Te(g.jsx("path",{d:"M2 20h20v-4H2zm2-3h2v2H4zM2 4v4h20V4zm4 3H4V5h2zm-4 7h20v-4H2zm2-3h2v2H4z"}),"Storage"),Jte=Te(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-8m0 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-4z"}),"Sync"),B1=Te(g.jsx("path",{d:"M10 10.02h5V21h-5zM17 21h3c1.1 0 2-.9 2-2v-9h-5zm3-18H5c-1.1 0-2 .9-2 2v3h19V5c0-1.1-.9-2-2-2M3 19c0 1.1.9 2 2 2h3V10H3z"}),"TableChart"),ene=Te(g.jsx("path",{d:"M23 8c0 1.1-.9 2-2 2-.18 0-.35-.02-.51-.07l-3.56 3.55c.05.16.07.34.07.52 0 1.1-.9 2-2 2s-2-.9-2-2c0-.18.02-.36.07-.52l-2.55-2.55c-.16.05-.34.07-.52.07s-.36-.02-.52-.07l-4.55 4.56c.05.16.07.33.07.51 0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2c.18 0 .35.02.51.07l4.56-4.55C8.02 9.36 8 9.18 8 9c0-1.1.9-2 2-2s2 .9 2 2c0 .18-.02.36-.07.52l2.55 2.55c.16-.05.34-.07.52-.07s.36.02.52.07l3.55-3.56C19.02 8.35 19 8.18 19 8c0-1.1.9-2 2-2s2 .9 2 2"}),"Timeline"),tne=Te(g.jsx("path",{d:"m16 18 2.29-2.29-4.88-4.88-4 4L2 7.41 3.41 6l6 6 4-4 6.3 6.29L22 12v6z"}),"TrendingDown"),PO=Te(g.jsx("path",{d:"m16 6 2.29 2.29-4.88 4.88-4-4L2 16.59 3.41 18l6-6 4 4 6.3-6.29L22 12V6z"}),"TrendingUp"),xu=240,T2=[{text:"Dashboard",icon:g.jsx(Nte,{}),path:"/"},{text:"Users",icon:g.jsx(Kte,{}),path:"/auth"},{text:"Storage",icon:g.jsx(F1,{}),path:"/storage"},{text:"Database",icon:g.jsx(B1,{}),path:"/database"},{text:"Functions",icon:g.jsx(N1,{}),path:"/functions"},{text:"Realtime",icon:g.jsx(YF,{}),path:"/realtime"},{text:"Logs",icon:g.jsx(Ate,{}),path:"/logs"},{text:"Servers",icon:g.jsx(JF,{}),path:"/servers"},{text:"Templates",icon:g.jsx(ZF,{}),path:"/templates"},{text:"Providers",icon:g.jsx(Lte,{}),path:"/providers"},{text:"Scaling",icon:g.jsx(PO,{}),path:"/scaling"},{text:"Cluster Health",icon:g.jsx(Hte,{}),path:"/cluster"},{text:"Settings",icon:g.jsx(tN,{}),path:"/settings"}];function nne({children:e}){var s;const[t,n]=v.useState(!1),r=WD(),o=PP(),i=()=>{n(!t)},a=g.jsxs("div",{children:[g.jsxs(vg,{children:[g.jsx(he,{variant:"h6",noWrap:!0,component:"div",sx:{fontWeight:"bold"},children:"MadBase"}),g.jsx(pn,{label:"Control Plane",size:"small",sx:{ml:1}})]}),g.jsx(Gr,{}),g.jsx(Sd,{children:T2.map(l=>g.jsx(Rh,{disablePadding:!0,children:g.jsxs(bO,{selected:o.pathname===l.path,onClick:()=>r(l.path),children:[g.jsx(Vi,{children:l.icon}),g.jsx(Wi,{primary:l.text})]})},l.text))}),g.jsx(Gr,{}),g.jsx(Se,{sx:{p:2},children:g.jsx(he,{variant:"caption",color:"text.secondary",children:"v0.1.0"})})]});return g.jsxs(Se,{sx:{display:"flex"},children:[g.jsx(D7,{position:"fixed",sx:{width:{sm:`calc(100% - ${xu}px)`},ml:{sm:`${xu}px`}},children:g.jsxs(vg,{children:[g.jsx(pr,{color:"inherit","aria-label":"open drawer",edge:"start",onClick:i,sx:{mr:2,display:{sm:"none"}},children:g.jsx(Gte,{})}),g.jsx(he,{variant:"h6",noWrap:!0,component:"div",sx:{flexGrow:1},children:((s=T2.find(l=>l.path===o.pathname))==null?void 0:s.text)||"MadBase Control Plane"}),g.jsx(pn,{label:"API Online",color:"success",size:"small",variant:"outlined"})]})}),g.jsxs(Se,{component:"nav",sx:{width:{sm:xu},flexShrink:{sm:0}},children:[g.jsx(qI,{variant:"temporary",open:t,onClose:i,ModalProps:{keepMounted:!0},sx:{display:{xs:"block",sm:"none"},"& .MuiDrawer-paper":{boxSizing:"border-box",width:xu}},children:a}),g.jsx(qI,{variant:"permanent",sx:{display:{xs:"none",sm:"block"},"& .MuiDrawer-paper":{boxSizing:"border-box",width:xu}},open:!0,children:a})]}),g.jsxs(Se,{component:"main",sx:{flexGrow:1,p:3,width:{sm:`calc(100% - ${xu}px)`}},children:[g.jsx(vg,{}),e]})]})}function rN(e,t){return function(){return e.apply(t,arguments)}}const{toString:rne}=Object.prototype,{getPrototypeOf:OO}=Object,{iterator:Lb,toStringTag:oN}=Symbol,Fb=(e=>t=>{const n=rne.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Ci=e=>(e=e.toLowerCase(),t=>Fb(t)===e),Nb=e=>t=>typeof t===e,{isArray:Pd}=Array,Dc=Nb("undefined");function jh(e){return e!==null&&!Dc(e)&&e.constructor!==null&&!Dc(e.constructor)&&zr(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const iN=Ci("ArrayBuffer");function one(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&iN(e.buffer),t}const ine=Nb("string"),zr=Nb("function"),aN=Nb("number"),Dh=e=>e!==null&&typeof e=="object",ane=e=>e===!0||e===!1,yg=e=>{if(Fb(e)!=="object")return!1;const t=OO(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(oN in e)&&!(Lb in e)},sne=e=>{if(!Dh(e)||jh(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},lne=Ci("Date"),une=Ci("File"),cne=e=>!!(e&&typeof e.uri<"u"),dne=e=>e&&typeof e.getParts<"u",fne=Ci("Blob"),pne=Ci("FileList"),hne=e=>Dh(e)&&zr(e.pipe);function mne(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const M2=mne(),_2=typeof M2.FormData<"u"?M2.FormData:void 0,gne=e=>{let t;return e&&(_2&&e instanceof _2||zr(e.append)&&((t=Fb(e))==="formdata"||t==="object"&&zr(e.toString)&&e.toString()==="[object FormData]"))},vne=Ci("URLSearchParams"),[yne,bne,xne,wne]=["ReadableStream","Request","Response","Headers"].map(Ci),Cne=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Lh(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),Pd(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const dl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,lN=e=>!Dc(e)&&e!==dl;function z1(){const{caseless:e,skipUndefined:t}=lN(this)&&this||{},n={},r=(o,i)=>{if(i==="__proto__"||i==="constructor"||i==="prototype")return;const a=e&&sN(n,i)||i;yg(n[a])&&yg(o)?n[a]=z1(n[a],o):yg(o)?n[a]=z1({},o):Pd(o)?n[a]=o.slice():(!t||!Dc(o))&&(n[a]=o)};for(let o=0,i=arguments.length;o(Lh(t,(o,i)=>{n&&zr(o)?Object.defineProperty(e,i,{value:rN(o,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,i,{value:o,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),Pne=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),One=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},$ne=(e,t,n,r)=>{let o,i,a;const s={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],(!r||r(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=n!==!1&&OO(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Ene=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},kne=e=>{if(!e)return null;if(Pd(e))return e;let t=e.length;if(!aN(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Ine=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&OO(Uint8Array)),Tne=(e,t)=>{const r=(e&&e[Lb]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},Mne=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},_ne=Ci("HTMLFormElement"),Ane=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),A2=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Rne=Ci("RegExp"),uN=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Lh(n,(o,i)=>{let a;(a=t(o,i,e))!==!1&&(r[i]=a||o)}),Object.defineProperties(e,r)},jne=e=>{uN(e,(t,n)=>{if(zr(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(zr(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Dne=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return Pd(e)?r(e):r(String(e).split(t)),n},Lne=()=>{},Fne=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Nne(e){return!!(e&&zr(e.append)&&e[oN]==="FormData"&&e[Lb])}const Bne=e=>{const t=new Array(10),n=(r,o)=>{if(Dh(r)){if(t.indexOf(r)>=0)return;if(jh(r))return r;if(!("toJSON"in r)){t[o]=r;const i=Pd(r)?[]:{};return Lh(r,(a,s)=>{const l=n(a,o+1);!Dc(l)&&(i[s]=l)}),t[o]=void 0,i}}return r};return n(e,0)},zne=Ci("AsyncFunction"),Hne=e=>e&&(Dh(e)||zr(e))&&zr(e.then)&&zr(e.catch),cN=((e,t)=>e?setImmediate:t?((n,r)=>(dl.addEventListener("message",({source:o,data:i})=>{o===dl&&i===n&&r.length&&r.shift()()},!1),o=>{r.push(o),dl.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",zr(dl.postMessage)),Une=typeof queueMicrotask<"u"?queueMicrotask.bind(dl):typeof process<"u"&&process.nextTick||cN,Vne=e=>e!=null&&zr(e[Lb]),se={isArray:Pd,isArrayBuffer:iN,isBuffer:jh,isFormData:gne,isArrayBufferView:one,isString:ine,isNumber:aN,isBoolean:ane,isObject:Dh,isPlainObject:yg,isEmptyObject:sne,isReadableStream:yne,isRequest:bne,isResponse:xne,isHeaders:wne,isUndefined:Dc,isDate:lne,isFile:une,isReactNativeBlob:cne,isReactNative:dne,isBlob:fne,isRegExp:Rne,isFunction:zr,isStream:hne,isURLSearchParams:vne,isTypedArray:Ine,isFileList:pne,forEach:Lh,merge:z1,extend:Sne,trim:Cne,stripBOM:Pne,inherits:One,toFlatObject:$ne,kindOf:Fb,kindOfTest:Ci,endsWith:Ene,toArray:kne,forEachEntry:Tne,matchAll:Mne,isHTMLForm:_ne,hasOwnProperty:A2,hasOwnProp:A2,reduceDescriptors:uN,freezeMethods:jne,toObjectSet:Dne,toCamelCase:Ane,noop:Lne,toFiniteNumber:Fne,findKey:sN,global:dl,isContextDefined:lN,isSpecCompliantForm:Nne,toJSONObject:Bne,isAsyncFn:zne,isThenable:Hne,setImmediate:cN,asap:Une,isIterable:Vne};let tt=class dN extends Error{static from(t,n,r,o,i,a){const s=new dN(t.message,n||t.code,r,o,i);return s.cause=t,s.name=t.name,t.status!=null&&s.status==null&&(s.status=t.status),a&&Object.assign(s,a),s}constructor(t,n,r,o,i){super(t),Object.defineProperty(this,"message",{value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),r&&(this.config=r),o&&(this.request=o),i&&(this.response=i,this.status=i.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:se.toJSONObject(this.config),code:this.code,status:this.status}}};tt.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";tt.ERR_BAD_OPTION="ERR_BAD_OPTION";tt.ECONNABORTED="ECONNABORTED";tt.ETIMEDOUT="ETIMEDOUT";tt.ERR_NETWORK="ERR_NETWORK";tt.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";tt.ERR_DEPRECATED="ERR_DEPRECATED";tt.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";tt.ERR_BAD_REQUEST="ERR_BAD_REQUEST";tt.ERR_CANCELED="ERR_CANCELED";tt.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";tt.ERR_INVALID_URL="ERR_INVALID_URL";const Wne=null;function H1(e){return se.isPlainObject(e)||se.isArray(e)}function fN(e){return se.endsWith(e,"[]")?e.slice(0,-2):e}function Tx(e,t,n){return e?e.concat(t).map(function(o,i){return o=fN(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function Gne(e){return se.isArray(e)&&!e.some(H1)}const Kne=se.toFlatObject(se,{},null,function(t){return/^is[A-Z]/.test(t)});function Bb(e,t,n){if(!se.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=se.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,y){return!se.isUndefined(y[m])});const r=n.metaTokens,o=n.visitor||c,i=n.dots,a=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&se.isSpecCompliantForm(t);if(!se.isFunction(o))throw new TypeError("visitor must be a function");function u(p){if(p===null)return"";if(se.isDate(p))return p.toISOString();if(se.isBoolean(p))return p.toString();if(!l&&se.isBlob(p))throw new tt("Blob is not supported. Use a Buffer instead.");return se.isArrayBuffer(p)||se.isTypedArray(p)?l&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function c(p,m,y){let b=p;if(se.isReactNative(t)&&se.isReactNativeBlob(p))return t.append(Tx(y,m,i),u(p)),!1;if(p&&!y&&typeof p=="object"){if(se.endsWith(m,"{}"))m=r?m:m.slice(0,-2),p=JSON.stringify(p);else if(se.isArray(p)&&Gne(p)||(se.isFileList(p)||se.endsWith(m,"[]"))&&(b=se.toArray(p)))return m=fN(m),b.forEach(function(w,S){!(se.isUndefined(w)||w===null)&&t.append(a===!0?Tx([m],S,i):a===null?m:m+"[]",u(w))}),!1}return H1(p)?!0:(t.append(Tx(y,m,i),u(p)),!1)}const d=[],f=Object.assign(Kne,{defaultVisitor:c,convertValue:u,isVisitable:H1});function h(p,m){if(!se.isUndefined(p)){if(d.indexOf(p)!==-1)throw Error("Circular reference detected in "+m.join("."));d.push(p),se.forEach(p,function(b,x){(!(se.isUndefined(b)||b===null)&&o.call(t,b,se.isString(x)?x.trim():x,m,f))===!0&&h(b,m?m.concat(x):[x])}),d.pop()}}if(!se.isObject(e))throw new TypeError("data must be an object");return h(e),t}function R2(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function $O(e,t){this._pairs=[],e&&Bb(e,this,t)}const pN=$O.prototype;pN.append=function(t,n){this._pairs.push([t,n])};pN.toString=function(t){const n=t?function(r){return t.call(this,r,R2)}:R2;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function qne(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function hN(e,t,n){if(!t)return e;const r=n&&n.encode||qne,o=se.isFunction(n)?{serialize:n}:n,i=o&&o.serialize;let a;if(i?a=i(t,o):a=se.isURLSearchParams(t)?t.toString():new $O(t,o).toString(r),a){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class j2{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){se.forEach(this.handlers,function(r){r!==null&&t(r)})}}const EO={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},Xne=typeof URLSearchParams<"u"?URLSearchParams:$O,Yne=typeof FormData<"u"?FormData:null,Qne=typeof Blob<"u"?Blob:null,Zne={isBrowser:!0,classes:{URLSearchParams:Xne,FormData:Yne,Blob:Qne},protocols:["http","https","file","blob","url","data"]},kO=typeof window<"u"&&typeof document<"u",U1=typeof navigator=="object"&&navigator||void 0,Jne=kO&&(!U1||["ReactNative","NativeScript","NS"].indexOf(U1.product)<0),ere=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",tre=kO&&window.location.href||"http://localhost",nre=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:kO,hasStandardBrowserEnv:Jne,hasStandardBrowserWebWorkerEnv:ere,navigator:U1,origin:tre},Symbol.toStringTag,{value:"Module"})),fr={...nre,...Zne};function rre(e,t){return Bb(e,new fr.classes.URLSearchParams,{visitor:function(n,r,o,i){return fr.isNode&&se.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}function ore(e){return se.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function ire(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r=n.length;return a=!a&&se.isArray(o)?o.length:a,l?(se.hasOwnProp(o,a)?o[a]=[o[a],r]:o[a]=r,!s):((!o[a]||!se.isObject(o[a]))&&(o[a]=[]),t(n,r,o[a],i)&&se.isArray(o[a])&&(o[a]=ire(o[a])),!s)}if(se.isFormData(e)&&se.isFunction(e.entries)){const n={};return se.forEachEntry(e,(r,o)=>{t(ore(r),o,n,0)}),n}return null}function are(e,t,n){if(se.isString(e))try{return(t||JSON.parse)(e),se.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Fh={transitional:EO,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=se.isObject(t);if(i&&se.isHTMLForm(t)&&(t=new FormData(t)),se.isFormData(t))return o?JSON.stringify(mN(t)):t;if(se.isArrayBuffer(t)||se.isBuffer(t)||se.isStream(t)||se.isFile(t)||se.isBlob(t)||se.isReadableStream(t))return t;if(se.isArrayBufferView(t))return t.buffer;if(se.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return rre(t,this.formSerializer).toString();if((s=se.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Bb(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),are(t)):t}],transformResponse:[function(t){const n=this.transitional||Fh.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(se.isResponse(t)||se.isReadableStream(t))return t;if(t&&se.isString(t)&&(r&&!this.responseType||o)){const a=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t,this.parseReviver)}catch(s){if(a)throw s.name==="SyntaxError"?tt.from(s,tt.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:fr.classes.FormData,Blob:fr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};se.forEach(["delete","get","head","post","put","patch"],e=>{Fh.headers[e]={}});const sre=se.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),lre=e=>{const t={};let n,r,o;return e&&e.split(` `).forEach(function(a){o=a.indexOf(":"),n=a.substring(0,o).trim().toLowerCase(),r=a.substring(o+1).trim(),!(!n||t[n]&&sre[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},D2=Symbol("internals");function af(e){return e&&String(e).trim().toLowerCase()}function bg(e){return e===!1||e==null?e:se.isArray(e)?e.map(bg):String(e)}function ure(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const cre=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Mx(e,t,n,r,o){if(se.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!se.isString(t)){if(se.isString(r))return t.indexOf(r)!==-1;if(se.isRegExp(r))return r.test(t)}}function dre(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function fre(e,t){const n=se.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,a){return this[r].call(this,t,o,i,a)},configurable:!0})})}let Hr=class{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(s,l,u){const c=af(l);if(!c)throw new Error("header name must be a non-empty string");const d=se.findKey(o,c);(!d||o[d]===void 0||u===!0||u===void 0&&o[d]!==!1)&&(o[d||l]=bg(s))}const a=(s,l)=>se.forEach(s,(u,c)=>i(u,c,l));if(se.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(se.isString(t)&&(t=t.trim())&&!cre(t))a(lre(t),n);else if(se.isObject(t)&&se.isIterable(t)){let s={},l,u;for(const c of t){if(!se.isArray(c))throw TypeError("Object iterator must return a key-value pair");s[u=c[0]]=(l=s[u])?se.isArray(l)?[...l,c[1]]:[l,c[1]]:c[1]}a(s,n)}else t!=null&&i(n,t,r);return this}get(t,n){if(t=af(t),t){const r=se.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return ure(o);if(se.isFunction(n))return n.call(this,o,r);if(se.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=af(t),t){const r=se.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Mx(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(a){if(a=af(a),a){const s=se.findKey(r,a);s&&(!n||Mx(r,r[s],s,n))&&(delete r[s],o=!0)}}return se.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||Mx(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return se.forEach(this,(o,i)=>{const a=se.findKey(r,i);if(a){n[a]=bg(o),delete n[i];return}const s=t?dre(i):String(i).trim();s!==i&&delete n[i],n[s]=bg(o),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return se.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&se.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[D2]=this[D2]={accessors:{}}).accessors,o=this.prototype;function i(a){const s=af(a);r[s]||(fre(o,a),r[s]=!0)}return se.isArray(t)?t.forEach(i):i(t),this}};Hr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);se.reduceDescriptors(Hr.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});se.freezeMethods(Hr);function _x(e,t){const n=this||Fh,r=t||n,o=Hr.from(r.headers);let i=r.data;return se.forEach(e,function(s){i=s.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function gN(e){return!!(e&&e.__CANCEL__)}let Nh=class extends tt{constructor(t,n,r){super(t??"canceled",tt.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}};function vN(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new tt("Request failed with status code "+n.status,[tt.ERR_BAD_REQUEST,tt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function pre(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function hre(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,a;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),c=r[i];a||(a=u),n[o]=l,r[o]=u;let d=i,f=0;for(;d!==o;)f+=n[d++],d=d%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),u-a{n=c,o=null,i&&(clearTimeout(i),i=null),e(...u)};return[(...u)=>{const c=Date.now(),d=c-n;d>=r?a(u,c):(o=u,i||(i=setTimeout(()=>{i=null,a(o)},r-d)))},()=>o&&a(o)]}const cv=(e,t,n=3)=>{let r=0;const o=hre(50,250);return mre(i=>{const a=i.loaded,s=i.lengthComputable?i.total:void 0,l=a-r,u=o(l),c=a<=s;r=a;const d={loaded:a,total:s,progress:s?a/s:void 0,bytes:l,rate:u||void 0,estimated:u&&s&&c?(s-a)/u:void 0,event:i,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(d)},n)},L2=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},F2=e=>(...t)=>se.asap(()=>e(...t)),gre=fr.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,fr.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(fr.origin),fr.navigator&&/(msie|trident)/i.test(fr.navigator.userAgent)):()=>!0,vre=fr.hasStandardBrowserEnv?{write(e,t,n,r,o,i,a){if(typeof document>"u")return;const s=[`${e}=${encodeURIComponent(t)}`];se.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),se.isString(r)&&s.push(`path=${r}`),se.isString(o)&&s.push(`domain=${o}`),i===!0&&s.push("secure"),se.isString(a)&&s.push(`SameSite=${a}`),document.cookie=s.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function yre(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function bre(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function yN(e,t,n){let r=!yre(t);return e&&(r||n==!1)?bre(e,t):t}const N2=e=>e instanceof Hr?{...e}:e;function Yl(e,t){t=t||{};const n={};function r(u,c,d,f){return se.isPlainObject(u)&&se.isPlainObject(c)?se.merge.call({caseless:f},u,c):se.isPlainObject(c)?se.merge({},c):se.isArray(c)?c.slice():c}function o(u,c,d,f){if(se.isUndefined(c)){if(!se.isUndefined(u))return r(void 0,u,d,f)}else return r(u,c,d,f)}function i(u,c){if(!se.isUndefined(c))return r(void 0,c)}function a(u,c){if(se.isUndefined(c)){if(!se.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function s(u,c,d){if(d in t)return r(u,c);if(d in e)return r(void 0,u)}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(u,c,d)=>o(N2(u),N2(c),d,!0)};return se.forEach(Object.keys({...e,...t}),function(c){if(c==="__proto__"||c==="constructor"||c==="prototype")return;const d=se.hasOwnProp(l,c)?l[c]:o,f=d(e[c],t[c],c);se.isUndefined(f)&&d!==s||(n[c]=f)}),n}const bN=e=>{const t=Yl({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:s}=t;if(t.headers=a=Hr.from(a),t.url=hN(yN(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),se.isFormData(n)){if(fr.hasStandardBrowserEnv||fr.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(se.isFunction(n.getHeaders)){const l=n.getHeaders(),u=["content-type","content-length"];Object.entries(l).forEach(([c,d])=>{u.includes(c.toLowerCase())&&a.set(c,d)})}}if(fr.hasStandardBrowserEnv&&(r&&se.isFunction(r)&&(r=r(t)),r||r!==!1&&gre(t.url))){const l=o&&i&&vre.read(i);l&&a.set(o,l)}return t},xre=typeof XMLHttpRequest<"u",wre=xre&&function(e){return new Promise(function(n,r){const o=bN(e);let i=o.data;const a=Hr.from(o.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:u}=o,c,d,f,h,p;function m(){h&&h(),p&&p(),o.cancelToken&&o.cancelToken.unsubscribe(c),o.signal&&o.signal.removeEventListener("abort",c)}let y=new XMLHttpRequest;y.open(o.method.toUpperCase(),o.url,!0),y.timeout=o.timeout;function b(){if(!y)return;const w=Hr.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders()),O={data:!s||s==="text"||s==="json"?y.responseText:y.response,status:y.status,statusText:y.statusText,headers:w,config:e,request:y};vN(function($){n($),m()},function($){r($),m()},O),y=null}"onloadend"in y?y.onloadend=b:y.onreadystatechange=function(){!y||y.readyState!==4||y.status===0&&!(y.responseURL&&y.responseURL.indexOf("file:")===0)||setTimeout(b)},y.onabort=function(){y&&(r(new tt("Request aborted",tt.ECONNABORTED,e,y)),y=null)},y.onerror=function(S){const O=S&&S.message?S.message:"Network Error",C=new tt(O,tt.ERR_NETWORK,e,y);C.event=S||null,r(C),y=null},y.ontimeout=function(){let S=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const O=o.transitional||EO;o.timeoutErrorMessage&&(S=o.timeoutErrorMessage),r(new tt(S,O.clarifyTimeoutError?tt.ETIMEDOUT:tt.ECONNABORTED,e,y)),y=null},i===void 0&&a.setContentType(null),"setRequestHeader"in y&&se.forEach(a.toJSON(),function(S,O){y.setRequestHeader(O,S)}),se.isUndefined(o.withCredentials)||(y.withCredentials=!!o.withCredentials),s&&s!=="json"&&(y.responseType=o.responseType),u&&([f,p]=cv(u,!0),y.addEventListener("progress",f)),l&&y.upload&&([d,h]=cv(l),y.upload.addEventListener("progress",d),y.upload.addEventListener("loadend",h)),(o.cancelToken||o.signal)&&(c=w=>{y&&(r(!w||w.type?new Nh(null,e,y):w),y.abort(),y=null)},o.cancelToken&&o.cancelToken.subscribe(c),o.signal&&(o.signal.aborted?c():o.signal.addEventListener("abort",c)));const x=pre(o.url);if(x&&fr.protocols.indexOf(x)===-1){r(new tt("Unsupported protocol "+x+":",tt.ERR_BAD_REQUEST,e));return}y.send(i||null)})},Cre=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const i=function(u){if(!o){o=!0,s();const c=u instanceof Error?u:this.reason;r.abort(c instanceof tt?c:new Nh(c instanceof Error?c.message:c))}};let a=t&&setTimeout(()=>{a=null,i(new tt(`timeout of ${t}ms exceeded`,tt.ETIMEDOUT))},t);const s=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(i):u.removeEventListener("abort",i)}),e=null)};e.forEach(u=>u.addEventListener("abort",i));const{signal:l}=r;return l.unsubscribe=()=>se.asap(s),l}},Sre=function*(e,t){let n=e.byteLength;if(n{const o=Pre(e,t);let i=0,a,s=l=>{a||(a=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:u,value:c}=await o.next();if(u){s(),l.close();return}let d=c.byteLength;if(n){let f=i+=d;n(f)}l.enqueue(new Uint8Array(c))}catch(u){throw s(u),u}},cancel(l){return s(l),o.return()}},{highWaterMark:2})},z2=64*1024,{isFunction:Rm}=se,$re=(({Request:e,Response:t})=>({Request:e,Response:t}))(se.global),{ReadableStream:H2,TextEncoder:U2}=se.global,V2=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Ere=e=>{e=se.merge.call({skipUndefined:!0},$re,e);const{fetch:t,Request:n,Response:r}=e,o=t?Rm(t):typeof fetch=="function",i=Rm(n),a=Rm(r);if(!o)return!1;const s=o&&Rm(H2),l=o&&(typeof U2=="function"?(p=>m=>p.encode(m))(new U2):async p=>new Uint8Array(await new n(p).arrayBuffer())),u=i&&s&&V2(()=>{let p=!1;const m=new n(fr.origin,{body:new H2,method:"POST",get duplex(){return p=!0,"half"}}).headers.has("Content-Type");return p&&!m}),c=a&&s&&V2(()=>se.isReadableStream(new r("").body)),d={stream:c&&(p=>p.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(p=>{!d[p]&&(d[p]=(m,y)=>{let b=m&&m[p];if(b)return b.call(m);throw new tt(`Response type '${p}' is not supported`,tt.ERR_NOT_SUPPORT,y)})});const f=async p=>{if(p==null)return 0;if(se.isBlob(p))return p.size;if(se.isSpecCompliantForm(p))return(await new n(fr.origin,{method:"POST",body:p}).arrayBuffer()).byteLength;if(se.isArrayBufferView(p)||se.isArrayBuffer(p))return p.byteLength;if(se.isURLSearchParams(p)&&(p=p+""),se.isString(p))return(await l(p)).byteLength},h=async(p,m)=>{const y=se.toFiniteNumber(p.getContentLength());return y??f(m)};return async p=>{let{url:m,method:y,data:b,signal:x,cancelToken:w,timeout:S,onDownloadProgress:O,onUploadProgress:C,responseType:$,headers:E,withCredentials:M="same-origin",fetchOptions:_}=bN(p),A=t||fetch;$=$?($+"").toLowerCase():"text";let j=Cre([x,w&&w.toAbortSignal()],S),R=null;const I=j&&j.unsubscribe&&(()=>{j.unsubscribe()});let k;try{if(C&&u&&y!=="get"&&y!=="head"&&(k=await h(E,b))!==0){let z=new n(m,{method:"POST",body:b,duplex:"half"}),B;if(se.isFormData(b)&&(B=z.headers.get("content-type"))&&E.setContentType(B),z.body){const[V,W]=L2(k,cv(F2(C)));b=B2(z.body,z2,V,W)}}se.isString(M)||(M=M?"include":"omit");const D=i&&"credentials"in n.prototype,F={..._,signal:j,method:y.toUpperCase(),headers:E.normalize().toJSON(),body:b,duplex:"half",credentials:D?M:void 0};R=i&&new n(m,F);let T=await(i?A(R,_):A(m,F));const L=c&&($==="stream"||$==="response");if(c&&(O||L&&I)){const z={};["status","statusText","headers"].forEach(ee=>{z[ee]=T[ee]});const B=se.toFiniteNumber(T.headers.get("content-length")),[V,W]=O&&L2(B,cv(F2(O),!0))||[];T=new r(B2(T.body,z2,V,()=>{W&&W(),I&&I()}),z)}$=$||"text";let N=await d[se.findKey(d,$)||"text"](T,p);return!L&&I&&I(),await new Promise((z,B)=>{vN(z,B,{data:N,headers:Hr.from(T.headers),status:T.status,statusText:T.statusText,config:p,request:R})})}catch(D){throw I&&I(),D&&D.name==="TypeError"&&/Load failed|fetch/i.test(D.message)?Object.assign(new tt("Network Error",tt.ERR_NETWORK,p,R,D&&D.response),{cause:D.cause||D}):tt.from(D,D&&D.code,p,R,D&&D.response)}}},kre=new Map,xN=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:o}=t,i=[r,o,n];let a=i.length,s=a,l,u,c=kre;for(;s--;)l=i[s],u=c.get(l),u===void 0&&c.set(l,u=s?new Map:Ere(t)),c=u;return u};xN();const IO={http:Wne,xhr:wre,fetch:{get:xN}};se.forEach(IO,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const W2=e=>`- ${e}`,Ire=e=>se.isFunction(e)||e===null||e===!1;function Tre(e,t){e=se.isArray(e)?e:[e];const{length:n}=e;let r,o;const i={};for(let a=0;a`adapter ${l} `+(u===!1?"is not supported by the environment":"is not available in the build"));let s=n?a.length>1?`since : `+a.map(W2).join(` `):" "+W2(a[0]):"as no adapter specified";throw new tt("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return o}const wN={getAdapter:Tre,adapters:IO};function Ax(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Nh(null,e)}function G2(e){return Ax(e),e.headers=Hr.from(e.headers),e.data=_x.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),wN.getAdapter(e.adapter||Fh.adapter,e)(e).then(function(r){return Ax(e),r.data=_x.call(e,e.transformResponse,r),r.headers=Hr.from(r.headers),r},function(r){return gN(r)||(Ax(e),r&&r.response&&(r.response.data=_x.call(e,e.transformResponse,r.response),r.response.headers=Hr.from(r.response.headers))),Promise.reject(r)})}const CN="1.13.6",zb={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{zb[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const K2={};zb.transitional=function(t,n,r){function o(i,a){return"[Axios v"+CN+"] Transitional option '"+i+"'"+a+(r?". "+r:"")}return(i,a,s)=>{if(t===!1)throw new tt(o(a," has been removed"+(n?" in "+n:"")),tt.ERR_DEPRECATED);return n&&!K2[a]&&(K2[a]=!0,console.warn(o(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,a,s):!0}};zb.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function Mre(e,t,n){if(typeof e!="object")throw new tt("options must be an object",tt.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const s=e[i],l=s===void 0||a(s,i,e);if(l!==!0)throw new tt("option "+i+" must be "+l,tt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new tt("Unknown option "+i,tt.ERR_BAD_OPTION)}}const xg={assertOptions:Mre,validators:zb},yo=xg.validators;let _l=class{constructor(t){this.defaults=t||{},this.interceptors={request:new j2,response:new j2}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=` `+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Yl(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&xg.assertOptions(r,{silentJSONParsing:yo.transitional(yo.boolean),forcedJSONParsing:yo.transitional(yo.boolean),clarifyTimeoutError:yo.transitional(yo.boolean),legacyInterceptorReqResOrdering:yo.transitional(yo.boolean)},!1),o!=null&&(se.isFunction(o)?n.paramsSerializer={serialize:o}:xg.assertOptions(o,{encode:yo.function,serialize:yo.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),xg.assertOptions(n,{baseUrl:yo.spelling("baseURL"),withXsrfToken:yo.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=i&&se.merge(i.common,i[n.method]);i&&se.forEach(["delete","get","head","post","put","patch","common"],p=>{delete i[p]}),n.headers=Hr.concat(a,i);const s=[];let l=!0;this.interceptors.request.forEach(function(m){if(typeof m.runWhen=="function"&&m.runWhen(n)===!1)return;l=l&&m.synchronous;const y=n.transitional||EO;y&&y.legacyInterceptorReqResOrdering?s.unshift(m.fulfilled,m.rejected):s.push(m.fulfilled,m.rejected)});const u=[];this.interceptors.response.forEach(function(m){u.push(m.fulfilled,m.rejected)});let c,d=0,f;if(!l){const p=[G2.bind(this),void 0];for(p.unshift(...s),p.push(...u),f=p.length,c=Promise.resolve(n);d{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const a=new Promise(s=>{r.subscribe(s),i=s}).then(o);return a.cancel=function(){r.unsubscribe(i)},a},t(function(i,a,s){r.reason||(r.reason=new Nh(i,a,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new SN(function(o){t=o}),cancel:t}}};function Are(e){return function(n){return e.apply(null,n)}}function Rre(e){return se.isObject(e)&&e.isAxiosError===!0}const V1={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(V1).forEach(([e,t])=>{V1[t]=e});function PN(e){const t=new _l(e),n=rN(_l.prototype.request,t);return se.extend(n,_l.prototype,t,{allOwnKeys:!0}),se.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return PN(Yl(e,o))},n}const vn=PN(Fh);vn.Axios=_l;vn.CanceledError=Nh;vn.CancelToken=_re;vn.isCancel=gN;vn.VERSION=CN;vn.toFormData=Bb;vn.AxiosError=tt;vn.Cancel=vn.CanceledError;vn.all=function(t){return Promise.all(t)};vn.spread=Are;vn.isAxiosError=Rre;vn.mergeConfig=Yl;vn.AxiosHeaders=Hr;vn.formToJSON=e=>mN(se.isHTMLForm(e)?new FormData(e):e);vn.getAdapter=wN.getAdapter;vn.HttpStatusCode=V1;vn.default=vn;const{Axios:$De,AxiosError:EDe,CanceledError:kDe,isCancel:IDe,CancelToken:TDe,VERSION:MDe,all:_De,Cancel:ADe,isAxiosError:RDe,spread:jDe,toFormData:DDe,AxiosHeaders:LDe,HttpStatusCode:FDe,formToJSON:NDe,getAdapter:BDe,mergeConfig:zDe}=vn,Ct=vn.create({baseURL:"/api/v1",headers:{"Content-Type":"application/json"}}),gn={getServers:()=>Ct.get("/servers"),getServer:e=>Ct.get(`/servers/${e}`),addServer:e=>Ct.post("/servers",e),removeServer:e=>Ct.delete(`/servers/${e}`),fortifyServer:(e,t)=>Ct.post(`/servers/${e}/fortify`,t),getTemplates:()=>Ct.get("/templates"),getTemplate:e=>Ct.get(`/templates/${e}`),getProviders:()=>Ct.get("/providers"),getPlans:e=>Ct.get(`/providers/${e}/plans`),getRegions:e=>Ct.get(`/providers/${e}/regions`),createScalingPlan:e=>Ct.post("/cluster/scale-plan",e),executeScalingPlan:e=>Ct.post("/cluster/scale-execute",e),getClusterHealth:()=>Ct.get("/cluster/health"),getUsers:()=>Ct.get("/users"),deleteUser:e=>Ct.delete(`/users/${e}`),getProjects:()=>Ct.get("/projects"),createProject:e=>Ct.post("/projects",e),deleteProject:e=>Ct.delete(`/projects/${e}`),getBuckets:()=>Ct.get("/storage/buckets"),getBucketObjects:e=>Ct.post(`/storage/buckets/${e}/objects`),deleteObject:(e,t)=>Ct.delete(`/storage/${e}/${t}`),getTables:()=>Ct.get("/db/tables"),getTableData:(e,t)=>Ct.get(`/db/tables/${e}/${t}`),getFunctions:()=>Ct.get("/functions"),getFunction:e=>Ct.get(`/functions/${e}`),deployFunction:e=>Ct.post("/functions",e),getPillars:()=>Ct.get("/cluster/pillars"),getLogs:e=>Ct.get("/logs",{params:e}),login:e=>Ct.post("/login",{password:e}),logout:()=>Ct.post("/logout"),getAdminConfig:()=>Ct.get("/admin/config"),getCsrfToken:()=>Ct.get("/csrf-token")};function jre(){const e=Wr({queryKey:["pillars"],queryFn:()=>gn.getPillars().then(t=>t.data),refetchInterval:5e3});return{pillars:e.data||[],isLoading:e.isLoading,error:e.error}}var Dre=Array.isArray,Kr=Dre,Lre=typeof Jh=="object"&&Jh&&Jh.Object===Object&&Jh,ON=Lre,Fre=ON,Nre=typeof self=="object"&&self&&self.Object===Object&&self,Bre=Fre||Nre||Function("return this")(),ea=Bre,zre=ea,Hre=zre.Symbol,Bh=Hre,q2=Bh,$N=Object.prototype,Ure=$N.hasOwnProperty,Vre=$N.toString,sf=q2?q2.toStringTag:void 0;function Wre(e){var t=Ure.call(e,sf),n=e[sf];try{e[sf]=void 0;var r=!0}catch{}var o=Vre.call(e);return r&&(t?e[sf]=n:delete e[sf]),o}var Gre=Wre,Kre=Object.prototype,qre=Kre.toString;function Xre(e){return qre.call(e)}var Yre=Xre,X2=Bh,Qre=Gre,Zre=Yre,Jre="[object Null]",eoe="[object Undefined]",Y2=X2?X2.toStringTag:void 0;function toe(e){return e==null?e===void 0?eoe:Jre:Y2&&Y2 in Object(e)?Qre(e):Zre(e)}var Na=toe;function noe(e){return e!=null&&typeof e=="object"}var Ba=noe,roe=Na,ooe=Ba,ioe="[object Symbol]";function aoe(e){return typeof e=="symbol"||ooe(e)&&roe(e)==ioe}var Od=aoe,soe=Kr,loe=Od,uoe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,coe=/^\w*$/;function doe(e,t){if(soe(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||loe(e)?!0:coe.test(e)||!uoe.test(e)||t!=null&&e in Object(t)}var TO=doe;function foe(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Vs=foe;const $d=Bt(Vs);var poe=Na,hoe=Vs,moe="[object AsyncFunction]",goe="[object Function]",voe="[object GeneratorFunction]",yoe="[object Proxy]";function boe(e){if(!hoe(e))return!1;var t=poe(e);return t==goe||t==voe||t==moe||t==yoe}var MO=boe;const lt=Bt(MO);var xoe=ea,woe=xoe["__core-js_shared__"],Coe=woe,Rx=Coe,Q2=function(){var e=/[^.]+$/.exec(Rx&&Rx.keys&&Rx.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Soe(e){return!!Q2&&Q2 in e}var Poe=Soe,Ooe=Function.prototype,$oe=Ooe.toString;function Eoe(e){if(e!=null){try{return $oe.call(e)}catch{}try{return e+""}catch{}}return""}var EN=Eoe,koe=MO,Ioe=Poe,Toe=Vs,Moe=EN,_oe=/[\\^$.*+?()[\]{}|]/g,Aoe=/^\[object .+?Constructor\]$/,Roe=Function.prototype,joe=Object.prototype,Doe=Roe.toString,Loe=joe.hasOwnProperty,Foe=RegExp("^"+Doe.call(Loe).replace(_oe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Noe(e){if(!Toe(e)||Ioe(e))return!1;var t=koe(e)?Foe:Aoe;return t.test(Moe(e))}var Boe=Noe;function zoe(e,t){return e==null?void 0:e[t]}var Hoe=zoe,Uoe=Boe,Voe=Hoe;function Woe(e,t){var n=Voe(e,t);return Uoe(n)?n:void 0}var lu=Woe,Goe=lu,Koe=Goe(Object,"create"),Hb=Koe,Z2=Hb;function qoe(){this.__data__=Z2?Z2(null):{},this.size=0}var Xoe=qoe;function Yoe(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Qoe=Yoe,Zoe=Hb,Joe="__lodash_hash_undefined__",eie=Object.prototype,tie=eie.hasOwnProperty;function nie(e){var t=this.__data__;if(Zoe){var n=t[e];return n===Joe?void 0:n}return tie.call(t,e)?t[e]:void 0}var rie=nie,oie=Hb,iie=Object.prototype,aie=iie.hasOwnProperty;function sie(e){var t=this.__data__;return oie?t[e]!==void 0:aie.call(t,e)}var lie=sie,uie=Hb,cie="__lodash_hash_undefined__";function die(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=uie&&t===void 0?cie:t,this}var fie=die,pie=Xoe,hie=Qoe,mie=rie,gie=lie,vie=fie;function Ed(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t-1}var Rie=Aie,jie=Ub;function Die(e,t){var n=this.__data__,r=jie(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var Lie=Die,Fie=xie,Nie=kie,Bie=Mie,zie=Rie,Hie=Lie;function kd(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t0?1:-1},fl=function(t){return Ql(t)&&t.indexOf("%")===t.length-1},Me=function(t){return lse(t)&&!Td(t)},fse=function(t){return pt(t)},_n=function(t){return Me(t)||Ql(t)},pse=0,zh=function(t){var n=++pse;return"".concat(t||"").concat(n)},Zl=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!Me(t)&&!Ql(t))return r;var i;if(fl(t)){var a=t.indexOf("%");i=n*parseFloat(t.slice(0,a))/100}else i=+t;return Td(i)&&(i=r),o&&i>n&&(i=n),i},Iu=function(t){if(!t)return null;var n=Object.keys(t);return n&&n.length?t[n[0]]:null},hse=function(t){if(!Array.isArray(t))return!1;for(var n=t.length,r={},o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function wse(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function G1(e){"@babel/helpers - typeof";return G1=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},G1(e)}var iT={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"},Ca=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},aT=null,Dx=null,zO=function e(t){if(t===aT&&Array.isArray(Dx))return Dx;var n=[];return v.Children.forEach(t,function(r){pt(r)||(rse.isFragment(r)?n=n.concat(e(r.props.children)):n.push(r))}),Dx=n,aT=t,n};function vi(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(function(o){return Ca(o)}):r=[Ca(t)],zO(e).forEach(function(o){var i=Fo(o,"type.displayName")||Fo(o,"type.name");r.indexOf(i)!==-1&&n.push(o)}),n}function Jr(e,t){var n=vi(e,t);return n&&n[0]}var sT=function(t){if(!t||!t.props)return!1;var n=t.props,r=n.width,o=n.height;return!(!Me(r)||r<=0||!Me(o)||o<=0)},Cse=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],Sse=function(t){return t&&t.type&&Ql(t.type)&&Cse.indexOf(t.type)>=0},Pse=function(t){return t&&G1(t)==="object"&&"clipDot"in t},Ose=function(t,n,r,o){var i,a=(i=jx==null?void 0:jx[o])!==null&&i!==void 0?i:[];return n.startsWith("data-")||!lt(t)&&(o&&a.includes(n)||vse.includes(n))||r&&BO.includes(n)},ft=function(t,n,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var o=t;if(v.isValidElement(t)&&(o=t.props),!$d(o))return null;var i={};return Object.keys(o).forEach(function(a){var s;Ose((s=o)===null||s===void 0?void 0:s[a],a,n,r)&&(i[a]=o[a])}),i},K1=function e(t,n){if(t===n)return!0;var r=v.Children.count(t);if(r!==v.Children.count(n))return!1;if(r===0)return!0;if(r===1)return lT(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Tse(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function X1(e){var t=e.children,n=e.width,r=e.height,o=e.viewBox,i=e.className,a=e.style,s=e.title,l=e.desc,u=Ise(e,kse),c=o||{width:n,height:r,x:0,y:0},d=Y("recharts-surface",i);return q.createElement("svg",q1({},ft(u,!0,"svg"),{className:d,width:n,height:r,style:a,viewBox:"".concat(c.x," ").concat(c.y," ").concat(c.width," ").concat(c.height)}),q.createElement("title",null,s),q.createElement("desc",null,l),t)}var Mse=["children","className"];function Y1(){return Y1=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ase(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var rn=q.forwardRef(function(e,t){var n=e.children,r=e.className,o=_se(e,Mse),i=Y("recharts-layer",r);return q.createElement("g",Y1({className:i},ft(o,!0),{ref:t}),n)}),Al=function(t,n){for(var r=arguments.length,o=new Array(r>2?r-2:0),i=2;io?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);++r=r?e:Dse(e,t,n)}var Fse=Lse,Nse="\\ud800-\\udfff",Bse="\\u0300-\\u036f",zse="\\ufe20-\\ufe2f",Hse="\\u20d0-\\u20ff",Use=Bse+zse+Hse,Vse="\\ufe0e\\ufe0f",Wse="\\u200d",Gse=RegExp("["+Wse+Nse+Use+Vse+"]");function Kse(e){return Gse.test(e)}var LN=Kse;function qse(e){return e.split("")}var Xse=qse,FN="\\ud800-\\udfff",Yse="\\u0300-\\u036f",Qse="\\ufe20-\\ufe2f",Zse="\\u20d0-\\u20ff",Jse=Yse+Qse+Zse,ele="\\ufe0e\\ufe0f",tle="["+FN+"]",Q1="["+Jse+"]",Z1="\\ud83c[\\udffb-\\udfff]",nle="(?:"+Q1+"|"+Z1+")",NN="[^"+FN+"]",BN="(?:\\ud83c[\\udde6-\\uddff]){2}",zN="[\\ud800-\\udbff][\\udc00-\\udfff]",rle="\\u200d",HN=nle+"?",UN="["+ele+"]?",ole="(?:"+rle+"(?:"+[NN,BN,zN].join("|")+")"+UN+HN+")*",ile=UN+HN+ole,ale="(?:"+[NN+Q1+"?",Q1,BN,zN,tle].join("|")+")",sle=RegExp(Z1+"(?="+Z1+")|"+ale+ile,"g");function lle(e){return e.match(sle)||[]}var ule=lle,cle=Xse,dle=LN,fle=ule;function ple(e){return dle(e)?fle(e):cle(e)}var hle=ple,mle=Fse,gle=LN,vle=hle,yle=MN;function ble(e){return function(t){t=yle(t);var n=gle(t)?vle(t):void 0,r=n?n[0]:t.charAt(0),o=n?mle(n,1).join(""):t.slice(1);return r[e]()+o}}var xle=ble,wle=xle,Cle=wle("toUpperCase"),Sle=Cle;const r0=Bt(Sle);function Ut(e){return function(){return e}}const VN=Math.cos,hv=Math.sin,Si=Math.sqrt,mv=Math.PI,o0=2*mv,J1=Math.PI,eC=2*J1,nl=1e-6,Ple=eC-nl;function WN(e){this._+=e[0];for(let t=1,n=e.length;t=0))throw new Error(`invalid digits: ${e}`);if(t>15)return WN;const n=10**t;return function(r){this._+=r[0];for(let o=1,i=r.length;onl)if(!(Math.abs(d*l-u*c)>nl)||!i)this._append`L${this._x1=t},${this._y1=n}`;else{let h=r-a,p=o-s,m=l*l+u*u,y=h*h+p*p,b=Math.sqrt(m),x=Math.sqrt(f),w=i*Math.tan((J1-Math.acos((m+f-y)/(2*b*x)))/2),S=w/x,O=w/b;Math.abs(S-1)>nl&&this._append`L${t+S*c},${n+S*d}`,this._append`A${i},${i},0,0,${+(d*h>c*p)},${this._x1=t+O*l},${this._y1=n+O*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,d=1^a,f=a?o-i:i-o;this._x1===null?this._append`M${u},${c}`:(Math.abs(this._x1-u)>nl||Math.abs(this._y1-c)>nl)&&this._append`L${u},${c}`,r&&(f<0&&(f=f%eC+eC),f>Ple?this._append`A${r},${r},0,1,${d},${t-s},${n-l}A${r},${r},0,1,${d},${this._x1=u},${this._y1=c}`:f>nl&&this._append`A${r},${r},0,${+(f>=J1)},${d},${this._x1=t+r*Math.cos(i)},${this._y1=n+r*Math.sin(i)}`)}rect(t,n,r,o){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+o}h${-r}Z`}toString(){return this._}}function HO(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 $le(t)}function UO(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function GN(e){this._context=e}GN.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 i0(e){return new GN(e)}function KN(e){return e[0]}function qN(e){return e[1]}function XN(e,t){var n=Ut(!0),r=null,o=i0,i=null,a=HO(s);e=typeof e=="function"?e:e===void 0?KN:Ut(e),t=typeof t=="function"?t:t===void 0?qN:Ut(t);function s(l){var u,c=(l=UO(l)).length,d,f=!1,h;for(r==null&&(i=o(h=a())),u=0;u<=c;++u)!(u=h;--p)s.point(w[p],S[p]);s.lineEnd(),s.areaEnd()}b&&(w[f]=+e(y,f,d),S[f]=+t(y,f,d),s.point(r?+r(y,f,d):w[f],n?+n(y,f,d):S[f]))}if(x)return s=null,x+""||null}function c(){return XN().defined(o).curve(a).context(i)}return u.x=function(d){return arguments.length?(e=typeof d=="function"?d:Ut(+d),r=null,u):e},u.x0=function(d){return arguments.length?(e=typeof d=="function"?d:Ut(+d),u):e},u.x1=function(d){return arguments.length?(r=d==null?null:typeof d=="function"?d:Ut(+d),u):r},u.y=function(d){return arguments.length?(t=typeof d=="function"?d:Ut(+d),n=null,u):t},u.y0=function(d){return arguments.length?(t=typeof d=="function"?d:Ut(+d),u):t},u.y1=function(d){return arguments.length?(n=d==null?null:typeof d=="function"?d:Ut(+d),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(d){return arguments.length?(o=typeof d=="function"?d:Ut(!!d),u):o},u.curve=function(d){return arguments.length?(a=d,i!=null&&(s=a(i)),u):a},u.context=function(d){return arguments.length?(d==null?i=s=null:s=a(i=d),u):i},u}class YN{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}function Ele(e){return new YN(e,!0)}function kle(e){return new YN(e,!1)}const VO={draw(e,t){const n=Si(t/mv);e.moveTo(n,0),e.arc(0,0,n,0,o0)}},Ile={draw(e,t){const n=Si(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},QN=Si(1/3),Tle=QN*2,Mle={draw(e,t){const n=Si(t/Tle),r=n*QN;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},_le={draw(e,t){const n=Si(t),r=-n/2;e.rect(r,r,n,n)}},Ale=.8908130915292852,ZN=hv(mv/10)/hv(7*mv/10),Rle=hv(o0/10)*ZN,jle=-VN(o0/10)*ZN,Dle={draw(e,t){const n=Si(t*Ale),r=Rle*n,o=jle*n;e.moveTo(0,-n),e.lineTo(r,o);for(let i=1;i<5;++i){const a=o0*i/5,s=VN(a),l=hv(a);e.lineTo(l*n,-s*n),e.lineTo(s*r-l*o,l*r+s*o)}e.closePath()}},Lx=Si(3),Lle={draw(e,t){const n=-Si(t/(Lx*3));e.moveTo(0,n*2),e.lineTo(-Lx*n,-n),e.lineTo(Lx*n,-n),e.closePath()}},bo=-.5,xo=Si(3)/2,tC=1/Si(12),Fle=(tC/2+1)*3,Nle={draw(e,t){const n=Si(t/Fle),r=n/2,o=n*tC,i=r,a=n*tC+n,s=-i,l=a;e.moveTo(r,o),e.lineTo(i,a),e.lineTo(s,l),e.lineTo(bo*r-xo*o,xo*r+bo*o),e.lineTo(bo*i-xo*a,xo*i+bo*a),e.lineTo(bo*s-xo*l,xo*s+bo*l),e.lineTo(bo*r+xo*o,bo*o-xo*r),e.lineTo(bo*i+xo*a,bo*a-xo*i),e.lineTo(bo*s+xo*l,bo*l-xo*s),e.closePath()}};function Ble(e,t){let n=null,r=HO(o);e=typeof e=="function"?e:Ut(e||VO),t=typeof t=="function"?t:Ut(t===void 0?64:+t);function o(){let i;if(n||(n=i=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),i)return n=null,i+""||null}return o.type=function(i){return arguments.length?(e=typeof i=="function"?i:Ut(i),o):e},o.size=function(i){return arguments.length?(t=typeof i=="function"?i:Ut(+i),o):t},o.context=function(i){return arguments.length?(n=i??null,o):n},o}function gv(){}function vv(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 JN(e){this._context=e}JN.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:vv(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:vv(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function zle(e){return new JN(e)}function eB(e){this._context=e}eB.prototype={areaStart:gv,areaEnd:gv,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:vv(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Hle(e){return new eB(e)}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=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:vv(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Ule(e){return new tB(e)}function nB(e){this._context=e}nB.prototype={areaStart:gv,areaEnd:gv,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 Vle(e){return new nB(e)}function cT(e){return e<0?-1:1}function dT(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(cT(i)+cT(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(s))||0}function fT(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Fx(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 yv(e){this._context=e}yv.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:Fx(this,this._t0,fT(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,Fx(this,fT(this,n=dT(this,e,t)),n);break;default:Fx(this,this._t0,n=dT(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function rB(e){this._context=new oB(e)}(rB.prototype=Object.create(yv.prototype)).point=function(e,t){yv.prototype.point.call(this,t,e)};function oB(e){this._context=e}oB.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 Wle(e){return new yv(e)}function Gle(e){return new rB(e)}function iB(e){this._context=e}iB.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=pT(e),o=pT(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 qle(e){return new a0(e,.5)}function Xle(e){return new a0(e,0)}function Yle(e){return new a0(e,1)}function Lc(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 Qle(e,t){return e[t]}function Zle(e){const t=[];return t.key=e,t}function Jle(){var e=Ut([]),t=nC,n=Lc,r=Qle;function o(i){var a=Array.from(e.apply(this,arguments),Zle),s,l=a.length,u=-1,c;for(const d of i)for(s=0,++u;s0){for(var n,r,o=0,i=e[0].length,a;o0){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;r=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function lue(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var aB={symbolCircle:VO,symbolCross:Ile,symbolDiamond:Mle,symbolSquare:_le,symbolStar:Dle,symbolTriangle:Lle,symbolWye:Nle},uue=Math.PI/180,cue=function(t){var n="symbol".concat(r0(t));return aB[n]||VO},due=function(t,n,r){if(n==="area")return t;switch(r){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var o=18*uue;return 1.25*t*t*(Math.tan(o)-Math.tan(o*2)*Math.pow(Math.tan(o),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},fue=function(t,n){aB["symbol".concat(r0(t))]=n},WO=function(t){var n=t.type,r=n===void 0?"circle":n,o=t.size,i=o===void 0?64:o,a=t.sizeType,s=a===void 0?"area":a,l=sue(t,rue),u=mT(mT({},l),{},{type:r,size:i,sizeType:s}),c=function(){var y=cue(r),b=Ble().type(y).size(due(i,s,r));return b()},d=u.className,f=u.cx,h=u.cy,p=ft(u,!0);return f===+f&&h===+h&&i===+i?q.createElement("path",rC({},p,{className:Y("recharts-symbols",d),transform:"translate(".concat(f,", ").concat(h,")"),d:c()})):null};WO.registerSymbol=fue;function Fc(e){"@babel/helpers - typeof";return Fc=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},Fc(e)}function oC(){return oC=Object.assign?Object.assign.bind():function(e){for(var t=1;t`);var x=h.inactive?u:h.color;return q.createElement("li",oC({className:y,style:d,key:"legend-item-".concat(p)},pv(r.props,h,p)),q.createElement(X1,{width:a,height:a,viewBox:c,style:f},r.renderIcon(h)),q.createElement("span",{className:"recharts-legend-item-text",style:{color:x}},m?m(b,h,p):b))})}},{key:"render",value:function(){var r=this.props,o=r.payload,i=r.layout,a=r.align;if(!o||!o.length)return null;var s={padding:0,margin:0,textAlign:i==="horizontal"?a:"left"};return q.createElement("ul",{className:"recharts-default-legend",style:s},this.renderItems())}}])}(v.PureComponent);kp(GO,"displayName","Legend");kp(GO,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var Cue=Vb;function Sue(){this.__data__=new Cue,this.size=0}var Pue=Sue;function Oue(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var $ue=Oue;function Eue(e){return this.__data__.get(e)}var kue=Eue;function Iue(e){return this.__data__.has(e)}var Tue=Iue,Mue=Vb,_ue=AO,Aue=RO,Rue=200;function jue(e,t){var n=this.__data__;if(n instanceof Mue){var r=n.__data__;if(!_ue||r.lengths))return!1;var u=i.get(e),c=i.get(t);if(u&&c)return u==t&&c==e;var d=-1,f=!0,h=n&rce?new Jue:void 0;for(i.set(e,t),i.set(t,e);++d-1&&e%1==0&&e-1&&e%1==0&&e<=sde}var YO=lde,ude=Na,cde=YO,dde=Ba,fde="[object Arguments]",pde="[object Array]",hde="[object Boolean]",mde="[object Date]",gde="[object Error]",vde="[object Function]",yde="[object Map]",bde="[object Number]",xde="[object Object]",wde="[object RegExp]",Cde="[object Set]",Sde="[object String]",Pde="[object WeakMap]",Ode="[object ArrayBuffer]",$de="[object DataView]",Ede="[object Float32Array]",kde="[object Float64Array]",Ide="[object Int8Array]",Tde="[object Int16Array]",Mde="[object Int32Array]",_de="[object Uint8Array]",Ade="[object Uint8ClampedArray]",Rde="[object Uint16Array]",jde="[object Uint32Array]",qt={};qt[Ede]=qt[kde]=qt[Ide]=qt[Tde]=qt[Mde]=qt[_de]=qt[Ade]=qt[Rde]=qt[jde]=!0;qt[fde]=qt[pde]=qt[Ode]=qt[hde]=qt[$de]=qt[mde]=qt[gde]=qt[vde]=qt[yde]=qt[bde]=qt[xde]=qt[wde]=qt[Cde]=qt[Sde]=qt[Pde]=!1;function Dde(e){return dde(e)&&cde(e.length)&&!!qt[ude(e)]}var Lde=Dde;function Fde(e){return function(t){return e(t)}}var vB=Fde,Cv={exports:{}};Cv.exports;(function(e,t){var n=ON,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})(Cv,Cv.exports);var Nde=Cv.exports,Bde=Lde,zde=vB,CT=Nde,ST=CT&&CT.isTypedArray,Hde=ST?zde(ST):Bde,yB=Hde,Ude=Gce,Vde=qO,Wde=Kr,Gde=gB,Kde=XO,qde=yB,Xde=Object.prototype,Yde=Xde.hasOwnProperty;function Qde(e,t){var n=Wde(e),r=!n&&Vde(e),o=!n&&!r&&Gde(e),i=!n&&!r&&!o&&qde(e),a=n||r||o||i,s=a?Ude(e.length,String):[],l=s.length;for(var u in e)(t||Yde.call(e,u))&&!(a&&(u=="length"||o&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Kde(u,l)))&&s.push(u);return s}var Zde=Qde,Jde=Object.prototype;function efe(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Jde;return e===n}var tfe=efe;function nfe(e,t){return function(n){return e(t(n))}}var bB=nfe,rfe=bB,ofe=rfe(Object.keys,Object),ife=ofe,afe=tfe,sfe=ife,lfe=Object.prototype,ufe=lfe.hasOwnProperty;function cfe(e){if(!afe(e))return sfe(e);var t=[];for(var n in Object(e))ufe.call(e,n)&&n!="constructor"&&t.push(n);return t}var dfe=cfe,ffe=MO,pfe=YO;function hfe(e){return e!=null&&pfe(e.length)&&!ffe(e)}var s0=hfe,mfe=Zde,gfe=dfe,vfe=s0;function yfe(e){return vfe(e)?mfe(e):gfe(e)}var QO=yfe,bfe=Rce,xfe=Vce,wfe=QO;function Cfe(e){return bfe(e,wfe,xfe)}var Sfe=Cfe,PT=Sfe,Pfe=1,Ofe=Object.prototype,$fe=Ofe.hasOwnProperty;function Efe(e,t,n,r,o,i){var a=n&Pfe,s=PT(e),l=s.length,u=PT(t),c=u.length;if(l!=c&&!a)return!1;for(var d=l;d--;){var f=s[d];if(!(a?f in t:$fe.call(t,f)))return!1}var h=i.get(e),p=i.get(t);if(h&&p)return h==t&&p==e;var m=!0;i.set(e,t),i.set(t,e);for(var y=a;++d-1}var $he=Ohe;function Ehe(e,t,n){for(var r=-1,o=e==null?0:e.length;++r=Hhe){var u=t?null:Bhe(e);if(u)return zhe(u);a=!1,o=Nhe,l=new Dhe}else l=t?[]:s;e:for(;++r=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ome(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function ime(e){return e.value}function ame(e,t){if(q.isValidElement(e))return q.cloneElement(e,t);if(typeof e=="function")return q.createElement(e,t);t.ref;var n=rme(t,Xhe);return q.createElement(GO,n)}var BT=1,sc=function(e){function t(){var n;Yhe(this,t);for(var r=arguments.length,o=new Array(r),i=0;iBT||Math.abs(o.height-this.lastBoundingBox.height)>BT)&&(this.lastBoundingBox.width=o.width,this.lastBoundingBox.height=o.height,r&&r(o)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,r&&r(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?na({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(r){var o=this.props,i=o.layout,a=o.align,s=o.verticalAlign,l=o.margin,u=o.chartWidth,c=o.chartHeight,d,f;if(!r||(r.left===void 0||r.left===null)&&(r.right===void 0||r.right===null))if(a==="center"&&i==="vertical"){var h=this.getBBoxSnapshot();d={left:((u||0)-h.width)/2}}else d=a==="right"?{right:l&&l.right||0}:{left:l&&l.left||0};if(!r||(r.top===void 0||r.top===null)&&(r.bottom===void 0||r.bottom===null))if(s==="middle"){var p=this.getBBoxSnapshot();f={top:((c||0)-p.height)/2}}else f=s==="bottom"?{bottom:l&&l.bottom||0}:{top:l&&l.top||0};return na(na({},d),f)}},{key:"render",value:function(){var r=this,o=this.props,i=o.content,a=o.width,s=o.height,l=o.wrapperStyle,u=o.payloadUniqBy,c=o.payload,d=na(na({position:"absolute",width:a||"auto",height:s||"auto"},this.getDefaultPosition(l)),l);return q.createElement("div",{className:"recharts-legend-wrapper",style:d,ref:function(h){r.wrapperNode=h}},ame(i,na(na({},this.props),{},{payload:OB(c,u,ime)})))}}],[{key:"getWithHeight",value:function(r,o){var i=na(na({},this.defaultProps),r.props),a=i.layout;return a==="vertical"&&Me(r.props.height)?{height:r.props.height}:a==="horizontal"?{width:r.props.width||o}:null}}])}(v.PureComponent);l0(sc,"displayName","Legend");l0(sc,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var zT=Bh,sme=qO,lme=Kr,HT=zT?zT.isConcatSpreadable:void 0;function ume(e){return lme(e)||sme(e)||!!(HT&&e&&e[HT])}var cme=ume,dme=hB,fme=cme;function kB(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=fme),o||(o=[]);++i0&&n(s)?t>1?kB(s,t-1,n,r,o):dme(o,s):r||(o[o.length]=s)}return o}var IB=kB;function pme(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++o];if(n(i[l],l,i)===!1)break}return t}}var hme=pme,mme=hme,gme=mme(),vme=gme,yme=vme,bme=QO;function xme(e,t){return e&&yme(e,t,bme)}var TB=xme,wme=s0;function Cme(e,t){return function(n,r){if(n==null)return n;if(!wme(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=Object(n);(t?i--:++it||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 Dme=jme,Hx=DO,Lme=LO,Fme=Rd,Nme=MB,Bme=Mme,zme=vB,Hme=Dme,Ume=Ad,Vme=Kr;function Wme(e,t,n){t.length?t=Hx(t,function(i){return Vme(i)?function(a){return Lme(a,i.length===1?i[0]:i)}:i}):t=[Ume];var r=-1;t=Hx(t,zme(Fme));var o=Nme(e,function(i,a,s){var l=Hx(t,function(u){return u(i)});return{criteria:l,index:++r,value:i}});return Bme(o,function(i,a){return Hme(i,a,n)})}var Gme=Wme;function Kme(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var qme=Kme,Xme=qme,VT=Math.max;function Yme(e,t,n){return t=VT(t===void 0?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=VT(r.length-t,0),a=Array(i);++o0){if(++t>=age)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var cge=uge,dge=ige,fge=cge,pge=fge(dge),hge=pge,mge=Ad,gge=Qme,vge=hge;function yge(e,t){return vge(gge(e,t,mge),e+"")}var bge=yge,xge=_O,wge=s0,Cge=XO,Sge=Vs;function Pge(e,t,n){if(!Sge(n))return!1;var r=typeof t;return(r=="number"?wge(n)&&Cge(t,n.length):r=="string"&&t in n)?xge(n[t],e):!1}var u0=Pge,Oge=IB,$ge=Gme,Ege=bge,GT=u0,kge=Ege(function(e,t){if(e==null)return[];var n=t.length;return n>1&>(e,t[0],t[1])?t=[]:n>2&>(t[0],t[1],t[2])&&(t=[t[0]]),$ge(e,Oge(t,1),[])}),Ige=kge;const e$=Bt(Ige);function Ip(e){"@babel/helpers - typeof";return Ip=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},Ip(e)}function fC(){return fC=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=t.x),"".concat(lf,"-left"),Me(n)&&t&&Me(t.x)&&n=t.y),"".concat(lf,"-top"),Me(r)&&t&&Me(t.y)&&rm?Math.max(c,l[r]):Math.max(d,l[r])}function Vge(e){var t=e.translateX,n=e.translateY,r=e.useTranslate3d;return{transform:r?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}}function Wge(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTopLeft,o=e.position,i=e.reverseDirection,a=e.tooltipBox,s=e.useTranslate3d,l=e.viewBox,u,c,d;return a.height>0&&a.width>0&&n?(c=XT({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:o,reverseDirection:i,tooltipDimension:a.width,viewBox:l,viewBoxDimension:l.width}),d=XT({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:o,reverseDirection:i,tooltipDimension:a.height,viewBox:l,viewBoxDimension:l.height}),u=Vge({translateX:c,translateY:d,useTranslate3d:s})):u=Hge,{cssProperties:u,cssClasses:Uge({translateX:c,translateY:d,coordinate:n})}}function Bc(e){"@babel/helpers - typeof";return Bc=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},Bc(e)}function YT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function QT(e){for(var t=1;tZT||Math.abs(r.height-this.state.lastBoundingBox.height)>ZT)&&this.setState({lastBoundingBox:{width:r.width,height:r.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var r,o;this.props.active&&this.updateBBox(),this.state.dismissed&&(((r=this.props.coordinate)===null||r===void 0?void 0:r.x)!==this.state.dismissedAtCoordinate.x||((o=this.props.coordinate)===null||o===void 0?void 0:o.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var r=this,o=this.props,i=o.active,a=o.allowEscapeViewBox,s=o.animationDuration,l=o.animationEasing,u=o.children,c=o.coordinate,d=o.hasPayload,f=o.isAnimationActive,h=o.offset,p=o.position,m=o.reverseDirection,y=o.useTranslate3d,b=o.viewBox,x=o.wrapperStyle,w=Wge({allowEscapeViewBox:a,coordinate:c,offsetTopLeft:h,position:p,reverseDirection:m,tooltipBox:this.state.lastBoundingBox,useTranslate3d:y,viewBox:b}),S=w.cssClasses,O=w.cssProperties,C=QT(QT({transition:f&&i?"transform ".concat(s,"ms ").concat(l):void 0},O),{},{pointerEvents:"none",visibility:!this.state.dismissed&&i&&d?"visible":"hidden",position:"absolute",top:0,left:0},x);return q.createElement("div",{tabIndex:-1,className:S,style:C,ref:function(E){r.wrapperNode=E}},u)}}])}(v.PureComponent),tve=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},jd={isSsr:tve()};function zc(e){"@babel/helpers - typeof";return zc=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},zc(e)}function JT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function eM(e){for(var t=1;t0;return q.createElement(eve,{allowEscapeViewBox:a,animationDuration:s,animationEasing:l,isAnimationActive:f,active:i,coordinate:c,hasPayload:C,offset:h,position:y,reverseDirection:b,useTranslate3d:x,viewBox:w,wrapperStyle:S},dve(u,eM(eM({},this.props),{},{payload:O})))}}])}(v.PureComponent);t$(sa,"displayName","Tooltip");t$(sa,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!jd.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var fve=ea,pve=function(){return fve.Date.now()},hve=pve,mve=/\s/;function gve(e){for(var t=e.length;t--&&mve.test(e.charAt(t)););return t}var vve=gve,yve=vve,bve=/^\s+/;function xve(e){return e&&e.slice(0,yve(e)+1).replace(bve,"")}var wve=xve,Cve=wve,tM=Vs,Sve=Od,nM=NaN,Pve=/^[-+]0x[0-9a-f]+$/i,Ove=/^0b[01]+$/i,$ve=/^0o[0-7]+$/i,Eve=parseInt;function kve(e){if(typeof e=="number")return e;if(Sve(e))return nM;if(tM(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=tM(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Cve(e);var n=Ove.test(e);return n||$ve.test(e)?Eve(e.slice(2),n?2:8):Pve.test(e)?nM:+e}var LB=kve,Ive=Vs,Vx=hve,rM=LB,Tve="Expected a function",Mve=Math.max,_ve=Math.min;function Ave(e,t,n){var r,o,i,a,s,l,u=0,c=!1,d=!1,f=!0;if(typeof e!="function")throw new TypeError(Tve);t=rM(t)||0,Ive(n)&&(c=!!n.leading,d="maxWait"in n,i=d?Mve(rM(n.maxWait)||0,t):i,f="trailing"in n?!!n.trailing:f);function h(C){var $=r,E=o;return r=o=void 0,u=C,a=e.apply(E,$),a}function p(C){return u=C,s=setTimeout(b,t),c?h(C):a}function m(C){var $=C-l,E=C-u,M=t-$;return d?_ve(M,i-E):M}function y(C){var $=C-l,E=C-u;return l===void 0||$>=t||$<0||d&&E>=i}function b(){var C=Vx();if(y(C))return x(C);s=setTimeout(b,m(C))}function x(C){return s=void 0,f&&r?h(C):(r=o=void 0,a)}function w(){s!==void 0&&clearTimeout(s),u=0,r=l=o=s=void 0}function S(){return s===void 0?a:x(Vx())}function O(){var C=Vx(),$=y(C);if(r=arguments,o=this,l=C,$){if(s===void 0)return p(l);if(d)return clearTimeout(s),s=setTimeout(b,t),h(l)}return s===void 0&&(s=setTimeout(b,t)),a}return O.cancel=w,O.flush=S,O}var Rve=Ave,jve=Rve,Dve=Vs,Lve="Expected a function";function Fve(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError(Lve);return Dve(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),jve(e,t,{leading:r,maxWait:t,trailing:o})}var Nve=Fve;const FB=Bt(Nve);function Mp(e){"@babel/helpers - typeof";return Mp=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},Mp(e)}function oM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Fm(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&(R=FB(R,m,{trailing:!0,leading:!1}));var I=new ResizeObserver(R),k=O.current.getBoundingClientRect(),D=k.width,F=k.height;return A(D,F),I.observe(O.current),function(){I.disconnect()}},[A,m]);var j=v.useMemo(function(){var R=M.containerWidth,I=M.containerHeight;if(R<0||I<0)return null;Al(fl(a)||fl(l),`The width(%s) and height(%s) are both fixed numbers, maybe you don't need to use a ResponsiveContainer.`,a,l),Al(!n||n>0,"The aspect(%s) must be greater than zero.",n);var k=fl(a)?R:a,D=fl(l)?I:l;n&&n>0&&(k?D=k/n:D&&(k=D*n),f&&D>f&&(D=f)),Al(k>0||D>0,`The width(%s) and height(%s) of chart should be greater than 0, please check the style of container, or the props width(%s) and height(%s), or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the height and width.`,k,D,a,l,c,d,n);var F=!Array.isArray(h)&&Ca(h.type).endsWith("Chart");return q.Children.map(h,function(T){return q.isValidElement(T)?v.cloneElement(T,Fm({width:k,height:D},F?{style:Fm({height:"100%",width:"100%",maxHeight:D,maxWidth:k},T.props.style)}:{})):T})},[n,h,l,f,d,c,M,a]);return q.createElement("div",{id:y?"".concat(y):void 0,className:Y("recharts-responsive-container",b),style:Fm(Fm({},S),{},{width:a,height:l,minWidth:c,minHeight:d,maxHeight:f}),ref:O},j)}),NB=function(t){return null};NB.displayName="Cell";function _p(e){"@babel/helpers - typeof";return _p=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},_p(e)}function aM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function gC(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||jd.isSsr)return{width:0,height:0};var r=eye(n),o=JSON.stringify({text:t,copyStyle:r});if(wu.widthCache[o])return wu.widthCache[o];try{var i=document.getElementById(sM);i||(i=document.createElement("span"),i.setAttribute("id",sM),i.setAttribute("aria-hidden","true"),document.body.appendChild(i));var a=gC(gC({},Jve),r);Object.assign(i.style,a),i.textContent="".concat(t);var s=i.getBoundingClientRect(),l={width:s.width,height:s.height};return wu.widthCache[o]=l,++wu.cacheCount>Zve&&(wu.cacheCount=0,wu.widthCache={}),l}catch{return{width:0,height:0}}},tye=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function Ap(e){"@babel/helpers - typeof";return Ap=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},Ap(e)}function $v(e,t){return iye(e)||oye(e,t)||rye(e,t)||nye()}function nye(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rye(e,t){if(e){if(typeof e=="string")return lM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return lM(e,t)}}function lM(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function bye(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function hM(e,t){return Sye(e)||Cye(e,t)||wye(e,t)||xye()}function xye(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wye(e,t){if(e){if(typeof e=="string")return mM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return mM(e,t)}}function mM(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&arguments[0]!==void 0?arguments[0]:[];return k.reduce(function(D,F){var T=F.word,L=F.width,N=D[D.length-1];if(N&&(o==null||i||N.width+L+rF.width?D:F})};if(!c)return h;for(var m="…",y=function(k){var D=d.slice(0,k),F=UB({breakAll:u,style:l,children:D+m}).wordsWithComputedWidth,T=f(F),L=T.length>a||p(T).width>Number(o);return[L,T]},b=0,x=d.length-1,w=0,S;b<=x&&w<=d.length-1;){var O=Math.floor((b+x)/2),C=O-1,$=y(C),E=hM($,2),M=E[0],_=E[1],A=y(O),j=hM(A,1),R=j[0];if(!M&&!R&&(b=O+1),M&&R&&(x=O-1),!M&&R){S=_;break}w++}return S||h},gM=function(t){var n=pt(t)?[]:t.toString().split(HB);return[{words:n}]},Oye=function(t){var n=t.width,r=t.scaleToFit,o=t.children,i=t.style,a=t.breakAll,s=t.maxLines;if((n||r)&&!jd.isSsr){var l,u,c=UB({breakAll:a,children:o,style:i});if(c){var d=c.wordsWithComputedWidth,f=c.spaceWidth;l=d,u=f}else return gM(o);return Pye({breakAll:a,children:o,maxLines:s,style:i},l,u,n,r)}return gM(o)},vM="#808080",Ev=function(t){var n=t.x,r=n===void 0?0:n,o=t.y,i=o===void 0?0:o,a=t.lineHeight,s=a===void 0?"1em":a,l=t.capHeight,u=l===void 0?"0.71em":l,c=t.scaleToFit,d=c===void 0?!1:c,f=t.textAnchor,h=f===void 0?"start":f,p=t.verticalAnchor,m=p===void 0?"end":p,y=t.fill,b=y===void 0?vM:y,x=pM(t,vye),w=v.useMemo(function(){return Oye({breakAll:x.breakAll,children:x.children,maxLines:x.maxLines,scaleToFit:d,style:x.style,width:x.width})},[x.breakAll,x.children,x.maxLines,d,x.style,x.width]),S=x.dx,O=x.dy,C=x.angle,$=x.className,E=x.breakAll,M=pM(x,yye);if(!_n(r)||!_n(i))return null;var _=r+(Me(S)?S:0),A=i+(Me(O)?O:0),j;switch(m){case"start":j=Wx("calc(".concat(u,")"));break;case"middle":j=Wx("calc(".concat((w.length-1)/2," * -").concat(s," + (").concat(u," / 2))"));break;default:j=Wx("calc(".concat(w.length-1," * -").concat(s,")"));break}var R=[];if(d){var I=w[0].width,k=x.width;R.push("scale(".concat((Me(k)?k/I:1)/I,")"))}return C&&R.push("rotate(".concat(C,", ").concat(_,", ").concat(A,")")),R.length&&(M.transform=R.join(" ")),q.createElement("text",vC({},ft(M,!0),{x:_,y:A,className:Y("recharts-text",$),textAnchor:h,fill:b.includes("url")?vM:b}),w.map(function(D,F){var T=D.words.join(E?"":" ");return q.createElement("tspan",{x:_,dy:F===0?j:s,key:"".concat(T,"-").concat(F)},T)}))};function Ms(e,t){return e==null||t==null?NaN:et?1:e>=t?0:NaN}function $ye(e,t){return e==null||t==null?NaN:te?1:t>=e?0:NaN}function n$(e){let t,n,r;e.length!==2?(t=Ms,n=(s,l)=>Ms(e(s),l),r=(s,l)=>e(s)-l):(t=e===Ms||e===$ye?e:Eye,n=e,r=e);function o(s,l,u=0,c=s.length){if(u>>1;n(s[d],l)<0?u=d+1:c=d}while(u>>1;n(s[d],l)<=0?u=d+1:c=d}while(uu&&r(s[d-1],l)>-r(s[d],l)?d-1:d}return{left:o,center:a,right:i}}function Eye(){return 0}function VB(e){return e===null?NaN:+e}function*kye(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const Iye=n$(Ms),Hh=Iye.right;n$(VB).center;class yM extends Map{constructor(t,n=_ye){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(bM(this,t))}has(t){return super.has(bM(this,t))}set(t,n){return super.set(Tye(this,t),n)}delete(t){return super.delete(Mye(this,t))}}function bM({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function Tye({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function Mye({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function _ye(e){return e!==null&&typeof e=="object"?e.valueOf():e}function Aye(e=Ms){if(e===Ms)return WB;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function WB(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(et?1:0)}const Rye=Math.sqrt(50),jye=Math.sqrt(10),Dye=Math.sqrt(2);function kv(e,t,n){const r=(t-e)/Math.max(0,n),o=Math.floor(Math.log10(r)),i=r/Math.pow(10,o),a=i>=Rye?10:i>=jye?5:i>=Dye?2:1;let s,l,u;return o<0?(u=Math.pow(10,-o)/a,s=Math.round(e*u),l=Math.round(t*u),s/ut&&--l,u=-u):(u=Math.pow(10,o)*a,s=Math.round(e/u),l=Math.round(t/u),s*ut&&--l),l0))return[];if(e===t)return[e];const r=t=o))return[];const s=i-o+1,l=new Array(s);if(r)if(a<0)for(let u=0;u=r)&&(n=r);return n}function wM(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function GB(e,t,n=0,r=1/0,o){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(o=o===void 0?WB:Aye(o);r>n;){if(r-n>600){const l=r-n+1,u=t-n+1,c=Math.log(l),d=.5*Math.exp(2*c/3),f=.5*Math.sqrt(c*d*(l-d)/l)*(u-l/2<0?-1:1),h=Math.max(n,Math.floor(t-u*d/l+f)),p=Math.min(r,Math.floor(t+(l-u)*d/l+f));GB(e,t,h,p,o)}const i=e[t];let a=n,s=r;for(uf(e,n,t),o(e[r],i)>0&&uf(e,n,r);a0;)--s}o(e[n],i)===0?uf(e,n,s):(++s,uf(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function uf(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function Lye(e,t,n){if(e=Float64Array.from(kye(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return wM(e);if(t>=1)return xM(e);var r,o=(r-1)*t,i=Math.floor(o),a=xM(GB(e,i).subarray(0,i+1)),s=wM(e.subarray(i+1));return a+(s-a)*(o-i)}}function Fye(e,t,n=VB){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,o=(r-1)*t,i=Math.floor(o),a=+n(e[i],i,e),s=+n(e[i+1],i+1,e);return a+(s-a)*(o-i)}}function Nye(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n;for(var r=-1,o=Math.max(0,Math.ceil((t-e)/n))|0,i=new Array(o);++r>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Bm(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Bm(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=zye.exec(e))?new jr(t[1],t[2],t[3],1):(t=Hye.exec(e))?new jr(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Uye.exec(e))?Bm(t[1],t[2],t[3],t[4]):(t=Vye.exec(e))?Bm(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Wye.exec(e))?kM(t[1],t[2]/100,t[3]/100,1):(t=Gye.exec(e))?kM(t[1],t[2]/100,t[3]/100,t[4]):CM.hasOwnProperty(e)?OM(CM[e]):e==="transparent"?new jr(NaN,NaN,NaN,0):null}function OM(e){return new jr(e>>16&255,e>>8&255,e&255,1)}function Bm(e,t,n,r){return r<=0&&(e=t=n=NaN),new jr(e,t,n,r)}function Xye(e){return e instanceof Uh||(e=Lp(e)),e?(e=e.rgb(),new jr(e.r,e.g,e.b,e.opacity)):new jr}function CC(e,t,n,r){return arguments.length===1?Xye(e):new jr(e,t,n,r??1)}function jr(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}o$(jr,CC,qB(Uh,{brighter(e){return e=e==null?Iv:Math.pow(Iv,e),new jr(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?jp:Math.pow(jp,e),new jr(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new jr(Rl(this.r),Rl(this.g),Rl(this.b),Tv(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:$M,formatHex:$M,formatHex8:Yye,formatRgb:EM,toString:EM}));function $M(){return`#${pl(this.r)}${pl(this.g)}${pl(this.b)}`}function Yye(){return`#${pl(this.r)}${pl(this.g)}${pl(this.b)}${pl((isNaN(this.opacity)?1:this.opacity)*255)}`}function EM(){const e=Tv(this.opacity);return`${e===1?"rgb(":"rgba("}${Rl(this.r)}, ${Rl(this.g)}, ${Rl(this.b)}${e===1?")":`, ${e})`}`}function Tv(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Rl(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function pl(e){return e=Rl(e),(e<16?"0":"")+e.toString(16)}function kM(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new ui(e,t,n,r)}function XB(e){if(e instanceof ui)return new ui(e.h,e.s,e.l,e.opacity);if(e instanceof Uh||(e=Lp(e)),!e)return new ui;if(e instanceof ui)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 ui(a,s,l,e.opacity)}function Qye(e,t,n,r){return arguments.length===1?XB(e):new ui(e,t,n,r??1)}function ui(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}o$(ui,Qye,qB(Uh,{brighter(e){return e=e==null?Iv:Math.pow(Iv,e),new ui(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?jp:Math.pow(jp,e),new ui(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 jr(Gx(e>=240?e-240:e+120,o,r),Gx(e,o,r),Gx(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new ui(IM(this.h),zm(this.s),zm(this.l),Tv(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=Tv(this.opacity);return`${e===1?"hsl(":"hsla("}${IM(this.h)}, ${zm(this.s)*100}%, ${zm(this.l)*100}%${e===1?")":`, ${e})`}`}}));function IM(e){return e=(e||0)%360,e<0?e+360:e}function zm(e){return Math.max(0,Math.min(1,e||0))}function Gx(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 i$=e=>()=>e;function Zye(e,t){return function(n){return e+n*t}}function Jye(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 ebe(e){return(e=+e)==1?YB:function(t,n){return n-t?Jye(t,n,e):i$(isNaN(t)?n:t)}}function YB(e,t){var n=t-e;return n?Zye(e,n):i$(isNaN(e)?t:e)}const TM=function e(t){var n=ebe(t);function r(o,i){var a=n((o=CC(o)).r,(i=CC(i)).r),s=n(o.g,i.g),l=n(o.b,i.b),u=YB(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 tbe(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),o;return function(i){for(o=0;on&&(i=t.slice(n,i),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:Mv(r,o)})),n=Kx.lastIndex;return nt&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function fbe(e,t,n){var r=e[0],o=e[1],i=t[0],a=t[1];return o2?pbe:fbe,l=u=null,d}function d(f){return f==null||isNaN(f=+f)?i:(l||(l=s(e.map(r),t,n)))(r(a(f)))}return d.invert=function(f){return a(o((u||(u=s(t,e.map(r),Mv)))(f)))},d.domain=function(f){return arguments.length?(e=Array.from(f,_v),c()):e.slice()},d.range=function(f){return arguments.length?(t=Array.from(f),c()):t.slice()},d.rangeRound=function(f){return t=Array.from(f),n=a$,c()},d.clamp=function(f){return arguments.length?(a=f?!0:Cr,c()):a!==Cr},d.interpolate=function(f){return arguments.length?(n=f,c()):n},d.unknown=function(f){return arguments.length?(i=f,d):i},function(f,h){return r=f,o=h,c()}}function s$(){return c0()(Cr,Cr)}function hbe(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Av(e,t){if(!isFinite(e)||e===0)return null;var n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function Hc(e){return e=Av(Math.abs(e)),e?e[1]:NaN}function mbe(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 gbe(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var vbe=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Fp(e){if(!(t=vbe.exec(e)))throw new Error("invalid format: "+e);var t;return new l$({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]})}Fp.prototype=l$.prototype;function l$(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+""}l$.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 ybe(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 Rv;function bbe(e,t){var n=Av(e,t);if(!n)return Rv=void 0,e.toPrecision(t);var r=n[0],o=n[1],i=o-(Rv=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")+Av(e,Math.max(0,t+i-1))[0]}function _M(e,t){var n=Av(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 AM={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:hbe,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>_M(e*100,t),r:_M,s:bbe,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function RM(e){return e}var jM=Array.prototype.map,DM=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function xbe(e){var t=e.grouping===void 0||e.thousands===void 0?RM:mbe(jM.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?RM:gbe(jM.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(d,f){d=Fp(d);var h=d.fill,p=d.align,m=d.sign,y=d.symbol,b=d.zero,x=d.width,w=d.comma,S=d.precision,O=d.trim,C=d.type;C==="n"?(w=!0,C="g"):AM[C]||(S===void 0&&(S=12),O=!0,C="g"),(b||h==="0"&&p==="=")&&(b=!0,h="0",p="=");var $=(f&&f.prefix!==void 0?f.prefix:"")+(y==="$"?n:y==="#"&&/[boxX]/.test(C)?"0"+C.toLowerCase():""),E=(y==="$"?r:/[%p]/.test(C)?a:"")+(f&&f.suffix!==void 0?f.suffix:""),M=AM[C],_=/[defgprs%]/.test(C);S=S===void 0?6:/[gprs]/.test(C)?Math.max(1,Math.min(21,S)):Math.max(0,Math.min(20,S));function A(j){var R=$,I=E,k,D,F;if(C==="c")I=M(j)+I,j="";else{j=+j;var T=j<0||1/j<0;if(j=isNaN(j)?l:M(Math.abs(j),S),O&&(j=ybe(j)),T&&+j==0&&m!=="+"&&(T=!1),R=(T?m==="("?m:s:m==="-"||m==="("?"":m)+R,I=(C==="s"&&!isNaN(j)&&Rv!==void 0?DM[8+Rv/3]:"")+I+(T&&m==="("?")":""),_){for(k=-1,D=j.length;++kF||F>57){I=(F===46?o+j.slice(k+1):j.slice(k))+I,j=j.slice(0,k);break}}}w&&!b&&(j=t(j,1/0));var L=R.length+j.length+I.length,N=L>1)+R+j+I+N.slice(L);break;default:j=N+R+j+I;break}return i(j)}return A.toString=function(){return d+""},A}function c(d,f){var h=Math.max(-8,Math.min(8,Math.floor(Hc(f)/3)))*3,p=Math.pow(10,-h),m=u((d=Fp(d),d.type="f",d),{suffix:DM[8+h/3]});return function(y){return m(p*y)}}return{format:u,formatPrefix:c}}var Hm,u$,QB;wbe({thousands:",",grouping:[3],currency:["$",""]});function wbe(e){return Hm=xbe(e),u$=Hm.format,QB=Hm.formatPrefix,Hm}function Cbe(e){return Math.max(0,-Hc(Math.abs(e)))}function Sbe(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Hc(t)/3)))*3-Hc(Math.abs(e)))}function Pbe(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Hc(t)-Hc(e))+1}function ZB(e,t,n,r){var o=xC(e,t,n),i;switch(r=Fp(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(i=Sbe(o,a))&&(r.precision=i),QB(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(i=Pbe(o,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=i-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(i=Cbe(o))&&(r.precision=i-(r.type==="%")*2);break}}return u$(r)}function Ws(e){var t=e.domain;return e.ticks=function(n){var r=t();return yC(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var o=t();return ZB(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=bC(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 jv(){var e=s$();return e.copy=function(){return Vh(e,jv())},qo.apply(e,arguments),Ws(e)}function JB(e){var t;function n(r){return r==null||isNaN(r=+r)?t:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(e=Array.from(r,_v),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return JB(e).unknown(t)},e=arguments.length?Array.from(e,_v):[0,1],Ws(n)}function e5(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 Ibe(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 NM(e){return(t,n)=>-e(-t,n)}function c$(e){const t=e(LM,FM),n=t.domain;let r=10,o,i;function a(){return o=Ibe(r),i=kbe(r),n()[0]<0?(o=NM(o),i=NM(i),e(Obe,$be)):e(LM,FM),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 d=c0){for(;f<=h;++f)for(p=1;pc)break;b.push(m)}}else for(;f<=h;++f)for(p=r-1;p>=1;--p)if(m=f>0?p/i(-f):p*i(f),!(mc)break;b.push(m)}b.length*2{if(s==null&&(s=10),l==null&&(l=r===10?"s":","),typeof l!="function"&&(!(r%1)&&(l=Fp(l)).precision==null&&(l.trim=!0),l=u$(l)),s===1/0)return l;const u=Math.max(1,r*s/t.ticks().length);return c=>{let d=c/i(Math.round(o(c)));return d*rn(e5(n(),{floor:s=>i(Math.floor(o(s))),ceil:s=>i(Math.ceil(o(s)))})),t}function t5(){const e=c$(c0()).domain([1,10]);return e.copy=()=>Vh(e,t5()).base(e.base()),qo.apply(e,arguments),e}function BM(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function zM(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function d$(e){var t=1,n=e(BM(t),zM(t));return n.constant=function(r){return arguments.length?e(BM(t=+r),zM(t)):t},Ws(n)}function n5(){var e=d$(c0());return e.copy=function(){return Vh(e,n5()).constant(e.constant())},qo.apply(e,arguments)}function HM(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function Tbe(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function Mbe(e){return e<0?-e*e:e*e}function f$(e){var t=e(Cr,Cr),n=1;function r(){return n===1?e(Cr,Cr):n===.5?e(Tbe,Mbe):e(HM(n),HM(1/n))}return t.exponent=function(o){return arguments.length?(n=+o,r()):n},Ws(t)}function p$(){var e=f$(c0());return e.copy=function(){return Vh(e,p$()).exponent(e.exponent())},qo.apply(e,arguments),e}function _be(){return p$.apply(null,arguments).exponent(.5)}function UM(e){return Math.sign(e)*e*e}function Abe(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function r5(){var e=s$(),t=[0,1],n=!1,r;function o(i){var a=Abe(e(i));return isNaN(a)?r:n?Math.round(a):a}return o.invert=function(i){return e.invert(UM(i))},o.domain=function(i){return arguments.length?(e.domain(i),o):e.domain()},o.range=function(i){return arguments.length?(e.range((t=Array.from(i,_v)).map(UM)),o):t.slice()},o.rangeRound=function(i){return o.range(i).round(!0)},o.round=function(i){return arguments.length?(n=!!i,o):n},o.clamp=function(i){return arguments.length?(e.clamp(i),o):e.clamp()},o.unknown=function(i){return arguments.length?(r=i,o):r},o.copy=function(){return r5(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},qo.apply(o,arguments),Ws(o)}function o5(){var e=[],t=[],n=[],r;function o(){var a=0,s=Math.max(1,t.length);for(n=new Array(s-1);++a0?n[s-1]:e[0],s=n?[r[n-1],t]:[r[u-1],r[u]]},a.unknown=function(l){return arguments.length&&(i=l),a},a.thresholds=function(){return r.slice()},a.copy=function(){return i5().domain([e,t]).range(o).unknown(i)},qo.apply(Ws(a),arguments)}function a5(){var e=[.5],t=[0,1],n,r=1;function o(i){return i!=null&&i<=i?t[Hh(e,i,0,r)]:n}return o.domain=function(i){return arguments.length?(e=Array.from(i),r=Math.min(e.length,t.length-1),o):e.slice()},o.range=function(i){return arguments.length?(t=Array.from(i),r=Math.min(e.length,t.length-1),o):t.slice()},o.invertExtent=function(i){var a=t.indexOf(i);return[e[a-1],e[a]]},o.unknown=function(i){return arguments.length?(n=i,o):n},o.copy=function(){return a5().domain(e).range(t).unknown(n)},qo.apply(o,arguments)}const qx=new Date,Xx=new Date;function Rn(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(uRn(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)=>(qx.setTime(+i),Xx.setTime(+a),e(qx),e(Xx),Math.floor(n(qx,Xx))),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 Dv=Rn(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Dv.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Rn(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):Dv);Dv.range;const ya=1e3,jo=ya*60,ba=jo*60,Aa=ba*24,h$=Aa*7,VM=Aa*30,Yx=Aa*365,hl=Rn(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*ya)},(e,t)=>(t-e)/ya,e=>e.getUTCSeconds());hl.range;const m$=Rn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*ya)},(e,t)=>{e.setTime(+e+t*jo)},(e,t)=>(t-e)/jo,e=>e.getMinutes());m$.range;const g$=Rn(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*jo)},(e,t)=>(t-e)/jo,e=>e.getUTCMinutes());g$.range;const v$=Rn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*ya-e.getMinutes()*jo)},(e,t)=>{e.setTime(+e+t*ba)},(e,t)=>(t-e)/ba,e=>e.getHours());v$.range;const y$=Rn(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*ba)},(e,t)=>(t-e)/ba,e=>e.getUTCHours());y$.range;const Wh=Rn(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*jo)/Aa,e=>e.getDate()-1);Wh.range;const d0=Rn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Aa,e=>e.getUTCDate()-1);d0.range;const s5=Rn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Aa,e=>Math.floor(e/Aa));s5.range;function uu(e){return Rn(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())*jo)/h$)}const f0=uu(0),Lv=uu(1),Rbe=uu(2),jbe=uu(3),Uc=uu(4),Dbe=uu(5),Lbe=uu(6);f0.range;Lv.range;Rbe.range;jbe.range;Uc.range;Dbe.range;Lbe.range;function cu(e){return Rn(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)/h$)}const p0=cu(0),Fv=cu(1),Fbe=cu(2),Nbe=cu(3),Vc=cu(4),Bbe=cu(5),zbe=cu(6);p0.range;Fv.range;Fbe.range;Nbe.range;Vc.range;Bbe.range;zbe.range;const b$=Rn(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());b$.range;const x$=Rn(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());x$.range;const Ra=Rn(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());Ra.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Rn(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)});Ra.range;const ja=Rn(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());ja.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Rn(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)});ja.range;function l5(e,t,n,r,o,i){const a=[[hl,1,ya],[hl,5,5*ya],[hl,15,15*ya],[hl,30,30*ya],[i,1,jo],[i,5,5*jo],[i,15,15*jo],[i,30,30*jo],[o,1,ba],[o,3,3*ba],[o,6,6*ba],[o,12,12*ba],[r,1,Aa],[r,2,2*Aa],[n,1,h$],[t,1,VM],[t,3,3*VM],[e,1,Yx]];function s(u,c,d){const f=cy).right(a,f);if(h===a.length)return e.every(xC(u/Yx,c/Yx,d));if(h===0)return Dv.every(Math.max(xC(u,c,d),1));const[p,m]=a[f/a[h-1][2]53)return null;"w"in K||(K.w=1),"Z"in K?(ie=Zx(cf(K.y,0,1)),re=ie.getUTCDay(),ie=re>4||re===0?Fv.ceil(ie):Fv(ie),ie=d0.offset(ie,(K.V-1)*7),K.y=ie.getUTCFullYear(),K.m=ie.getUTCMonth(),K.d=ie.getUTCDate()+(K.w+6)%7):(ie=Qx(cf(K.y,0,1)),re=ie.getDay(),ie=re>4||re===0?Lv.ceil(ie):Lv(ie),ie=Wh.offset(ie,(K.V-1)*7),K.y=ie.getFullYear(),K.m=ie.getMonth(),K.d=ie.getDate()+(K.w+6)%7)}else("W"in K||"U"in K)&&("w"in K||(K.w="u"in K?K.u%7:"W"in K?1:0),re="Z"in K?Zx(cf(K.y,0,1)).getUTCDay():Qx(cf(K.y,0,1)).getDay(),K.m=0,K.d="W"in K?(K.w+6)%7+K.W*7-(re+5)%7:K.w+K.U*7-(re+6)%7);return"Z"in K?(K.H+=K.Z/100|0,K.M+=K.Z%100,Zx(K)):Qx(K)}}function E(J,fe,ce,K){for(var Z=0,ie=fe.length,re=ce.length,ae,we;Z=re)return-1;if(ae=fe.charCodeAt(Z++),ae===37){if(ae=fe.charAt(Z++),we=O[ae in WM?fe.charAt(Z++):ae],!we||(K=we(J,ce,K))<0)return-1}else if(ae!=ce.charCodeAt(K++))return-1}return K}function M(J,fe,ce){var K=u.exec(fe.slice(ce));return K?(J.p=c.get(K[0].toLowerCase()),ce+K[0].length):-1}function _(J,fe,ce){var K=h.exec(fe.slice(ce));return K?(J.w=p.get(K[0].toLowerCase()),ce+K[0].length):-1}function A(J,fe,ce){var K=d.exec(fe.slice(ce));return K?(J.w=f.get(K[0].toLowerCase()),ce+K[0].length):-1}function j(J,fe,ce){var K=b.exec(fe.slice(ce));return K?(J.m=x.get(K[0].toLowerCase()),ce+K[0].length):-1}function R(J,fe,ce){var K=m.exec(fe.slice(ce));return K?(J.m=y.get(K[0].toLowerCase()),ce+K[0].length):-1}function I(J,fe,ce){return E(J,t,fe,ce)}function k(J,fe,ce){return E(J,n,fe,ce)}function D(J,fe,ce){return E(J,r,fe,ce)}function F(J){return a[J.getDay()]}function T(J){return i[J.getDay()]}function L(J){return l[J.getMonth()]}function N(J){return s[J.getMonth()]}function z(J){return o[+(J.getHours()>=12)]}function B(J){return 1+~~(J.getMonth()/3)}function V(J){return a[J.getUTCDay()]}function W(J){return i[J.getUTCDay()]}function ee(J){return l[J.getUTCMonth()]}function pe(J){return s[J.getUTCMonth()]}function be(J){return o[+(J.getUTCHours()>=12)]}function ye(J){return 1+~~(J.getUTCMonth()/3)}return{format:function(J){var fe=C(J+="",w);return fe.toString=function(){return J},fe},parse:function(J){var fe=$(J+="",!1);return fe.toString=function(){return J},fe},utcFormat:function(J){var fe=C(J+="",S);return fe.toString=function(){return J},fe},utcParse:function(J){var fe=$(J+="",!0);return fe.toString=function(){return J},fe}}}var WM={"-":"",_:" ",0:"0"},Vn=/^\s*\d+/,Kbe=/^%/,qbe=/[\\^$*+?|[\]().{}]/g;function St(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",i=o.length;return r+(i[t.toLowerCase(),n]))}function Ybe(e,t,n){var r=Vn.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Qbe(e,t,n){var r=Vn.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Zbe(e,t,n){var r=Vn.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Jbe(e,t,n){var r=Vn.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function e0e(e,t,n){var r=Vn.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function GM(e,t,n){var r=Vn.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function KM(e,t,n){var r=Vn.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function t0e(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 n0e(e,t,n){var r=Vn.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function r0e(e,t,n){var r=Vn.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function qM(e,t,n){var r=Vn.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function o0e(e,t,n){var r=Vn.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function XM(e,t,n){var r=Vn.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function i0e(e,t,n){var r=Vn.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function a0e(e,t,n){var r=Vn.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function s0e(e,t,n){var r=Vn.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function l0e(e,t,n){var r=Vn.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function u0e(e,t,n){var r=Kbe.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function c0e(e,t,n){var r=Vn.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function d0e(e,t,n){var r=Vn.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function YM(e,t){return St(e.getDate(),t,2)}function f0e(e,t){return St(e.getHours(),t,2)}function p0e(e,t){return St(e.getHours()%12||12,t,2)}function h0e(e,t){return St(1+Wh.count(Ra(e),e),t,3)}function u5(e,t){return St(e.getMilliseconds(),t,3)}function m0e(e,t){return u5(e,t)+"000"}function g0e(e,t){return St(e.getMonth()+1,t,2)}function v0e(e,t){return St(e.getMinutes(),t,2)}function y0e(e,t){return St(e.getSeconds(),t,2)}function b0e(e){var t=e.getDay();return t===0?7:t}function x0e(e,t){return St(f0.count(Ra(e)-1,e),t,2)}function c5(e){var t=e.getDay();return t>=4||t===0?Uc(e):Uc.ceil(e)}function w0e(e,t){return e=c5(e),St(Uc.count(Ra(e),e)+(Ra(e).getDay()===4),t,2)}function C0e(e){return e.getDay()}function S0e(e,t){return St(Lv.count(Ra(e)-1,e),t,2)}function P0e(e,t){return St(e.getFullYear()%100,t,2)}function O0e(e,t){return e=c5(e),St(e.getFullYear()%100,t,2)}function $0e(e,t){return St(e.getFullYear()%1e4,t,4)}function E0e(e,t){var n=e.getDay();return e=n>=4||n===0?Uc(e):Uc.ceil(e),St(e.getFullYear()%1e4,t,4)}function k0e(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+St(t/60|0,"0",2)+St(t%60,"0",2)}function QM(e,t){return St(e.getUTCDate(),t,2)}function I0e(e,t){return St(e.getUTCHours(),t,2)}function T0e(e,t){return St(e.getUTCHours()%12||12,t,2)}function M0e(e,t){return St(1+d0.count(ja(e),e),t,3)}function d5(e,t){return St(e.getUTCMilliseconds(),t,3)}function _0e(e,t){return d5(e,t)+"000"}function A0e(e,t){return St(e.getUTCMonth()+1,t,2)}function R0e(e,t){return St(e.getUTCMinutes(),t,2)}function j0e(e,t){return St(e.getUTCSeconds(),t,2)}function D0e(e){var t=e.getUTCDay();return t===0?7:t}function L0e(e,t){return St(p0.count(ja(e)-1,e),t,2)}function f5(e){var t=e.getUTCDay();return t>=4||t===0?Vc(e):Vc.ceil(e)}function F0e(e,t){return e=f5(e),St(Vc.count(ja(e),e)+(ja(e).getUTCDay()===4),t,2)}function N0e(e){return e.getUTCDay()}function B0e(e,t){return St(Fv.count(ja(e)-1,e),t,2)}function z0e(e,t){return St(e.getUTCFullYear()%100,t,2)}function H0e(e,t){return e=f5(e),St(e.getUTCFullYear()%100,t,2)}function U0e(e,t){return St(e.getUTCFullYear()%1e4,t,4)}function V0e(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Vc(e):Vc.ceil(e),St(e.getUTCFullYear()%1e4,t,4)}function W0e(){return"+0000"}function ZM(){return"%"}function JM(e){return+e}function e_(e){return Math.floor(+e/1e3)}var Cu,p5,h5;G0e({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 G0e(e){return Cu=Gbe(e),p5=Cu.format,Cu.parse,h5=Cu.utcFormat,Cu.utcParse,Cu}function K0e(e){return new Date(e)}function q0e(e){return e instanceof Date?+e:+new Date(+e)}function w$(e,t,n,r,o,i,a,s,l,u){var c=s$(),d=c.invert,f=c.domain,h=u(".%L"),p=u(":%S"),m=u("%I:%M"),y=u("%I %p"),b=u("%a %d"),x=u("%b %d"),w=u("%B"),S=u("%Y");function O(C){return(l(C)t(o/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(o,i)=>Lye(e,i/r))},n.copy=function(){return y5(t).domain(e)},za.apply(n,arguments)}function m0(){var e=0,t=.5,n=1,r=1,o,i,a,s,l,u=Cr,c,d=!1,f;function h(m){return isNaN(m=+m)?f:(m=.5+((m=+c(m))-i)*(r*mt}var nxe=txe,rxe=C5,oxe=nxe,ixe=Ad;function axe(e){return e&&e.length?rxe(e,ixe,oxe):void 0}var sxe=axe;const ys=Bt(sxe);function lxe(e,t){return ee.e^i.s<0?1:-1;for(r=i.d.length,o=e.d.length,t=0,n=re.d[t]^i.s<0?1:-1;return r===o?0:r>o^i.s<0?1:-1};Ne.decimalPlaces=Ne.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*Xt;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};Ne.dividedBy=Ne.div=function(e){return Sa(this,new this.constructor(e))};Ne.dividedToIntegerBy=Ne.idiv=function(e){var t=this,n=t.constructor;return Nt(Sa(t,new n(e),0,1),n.precision)};Ne.equals=Ne.eq=function(e){return!this.cmp(e)};Ne.exponent=function(){return On(this)};Ne.greaterThan=Ne.gt=function(e){return this.cmp(e)>0};Ne.greaterThanOrEqualTo=Ne.gte=function(e){return this.cmp(e)>=0};Ne.isInteger=Ne.isint=function(){return this.e>this.d.length-2};Ne.isNegative=Ne.isneg=function(){return this.s<0};Ne.isPositive=Ne.ispos=function(){return this.s>0};Ne.isZero=function(){return this.s===0};Ne.lessThan=Ne.lt=function(e){return this.cmp(e)<0};Ne.lessThanOrEqualTo=Ne.lte=function(e){return this.cmp(e)<1};Ne.logarithm=Ne.log=function(e){var t,n=this,r=n.constructor,o=r.precision,i=o+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(oo))throw Error(Vo+"NaN");if(n.s<1)throw Error(Vo+(n.s?"NaN":"-Infinity"));return n.eq(oo)?new r(0):(en=!1,t=Sa(Bp(n,i),Bp(e,i),i),en=!0,Nt(t,o))};Ne.minus=Ne.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?$5(t,e):P5(t,(e.s=-e.s,e))};Ne.modulo=Ne.mod=function(e){var t,n=this,r=n.constructor,o=r.precision;if(e=new r(e),!e.s)throw Error(Vo+"NaN");return n.s?(en=!1,t=Sa(n,e,0,1).times(e),en=!0,n.minus(t)):Nt(new r(n),o)};Ne.naturalExponential=Ne.exp=function(){return O5(this)};Ne.naturalLogarithm=Ne.ln=function(){return Bp(this)};Ne.negated=Ne.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};Ne.plus=Ne.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?P5(t,e):$5(t,(e.s=-e.s,e))};Ne.precision=Ne.sd=function(e){var t,n,r,o=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(jl+e);if(t=On(o)+1,r=o.d.length-1,n=r*Xt+1,r=o.d[r],r){for(;r%10==0;r/=10)n--;for(r=o.d[0];r>=10;r/=10)n++}return e&&t>n?t:n};Ne.squareRoot=Ne.sqrt=function(){var e,t,n,r,o,i,a,s=this,l=s.constructor;if(s.s<1){if(!s.s)return new l(0);throw Error(Vo+"NaN")}for(e=On(s),en=!1,o=Math.sqrt(+s),o==0||o==1/0?(t=Fi(s.d),(t.length+e)%2==0&&(t+="0"),o=Math.sqrt(t),e=Fd((e+1)/2)-(e<0||e%2),o==1/0?t="5e"+e:(t=o.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),r=new l(t)):r=new l(o.toString()),n=l.precision,o=a=n+3;;)if(i=r,r=i.plus(Sa(s,i,a+2)).times(.5),Fi(i.d).slice(0,a)===(t=Fi(r.d)).slice(0,a)){if(t=t.slice(a-3,a+1),o==a&&t=="4999"){if(Nt(i,n+1,0),i.times(i).eq(s)){r=i;break}}else if(t!="9999")break;a+=4}return en=!0,Nt(r,n)};Ne.times=Ne.mul=function(e){var t,n,r,o,i,a,s,l,u,c=this,d=c.constructor,f=c.d,h=(e=new d(e)).d;if(!c.s||!e.s)return new d(0);for(e.s*=c.s,n=c.e+e.e,l=f.length,u=h.length,l=0;){for(t=0,o=l+r;o>r;)s=i[o]+h[r]*f[o-r-1]+t,i[o--]=s%Nn|0,t=s/Nn|0;i[o]=(i[o]+t)%Nn|0}for(;!i[--a];)i.pop();return t?++n:i.shift(),e.d=i,e.e=n,en?Nt(e,d.precision):e};Ne.toDecimalPlaces=Ne.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(Zi(e,0,Ld),t===void 0?t=r.rounding:Zi(t,0,8),Nt(n,e+On(n)+1,t))};Ne.toExponential=function(e,t){var n,r=this,o=r.constructor;return e===void 0?n=Jl(r,!0):(Zi(e,0,Ld),t===void 0?t=o.rounding:Zi(t,0,8),r=Nt(new o(r),e+1,t),n=Jl(r,!0,e+1)),n};Ne.toFixed=function(e,t){var n,r,o=this,i=o.constructor;return e===void 0?Jl(o):(Zi(e,0,Ld),t===void 0?t=i.rounding:Zi(t,0,8),r=Nt(new i(o),e+On(o)+1,t),n=Jl(r.abs(),!1,e+On(r)+1),o.isneg()&&!o.isZero()?"-"+n:n)};Ne.toInteger=Ne.toint=function(){var e=this,t=e.constructor;return Nt(new t(e),On(e)+1,t.rounding)};Ne.toNumber=function(){return+this};Ne.toPower=Ne.pow=function(e){var t,n,r,o,i,a,s=this,l=s.constructor,u=12,c=+(e=new l(e));if(!e.s)return new l(oo);if(s=new l(s),!s.s){if(e.s<1)throw Error(Vo+"Infinity");return s}if(s.eq(oo))return s;if(r=l.precision,e.eq(oo))return Nt(s,r);if(t=e.e,n=e.d.length-1,a=t>=n,i=s.s,a){if((n=c<0?-c:c)<=S5){for(o=new l(oo),t=Math.ceil(r/Xt+4),en=!1;n%2&&(o=o.times(s),r_(o.d,t)),n=Fd(n/2),n!==0;)s=s.times(s),r_(s.d,t);return en=!0,e.s<0?new l(oo).div(o):Nt(o,r)}}else if(i<0)throw Error(Vo+"NaN");return i=i<0&&e.d[Math.max(t,n)]&1?-1:1,s.s=1,en=!1,o=e.times(Bp(s,r+u)),en=!0,o=O5(o),o.s=i,o};Ne.toPrecision=function(e,t){var n,r,o=this,i=o.constructor;return e===void 0?(n=On(o),r=Jl(o,n<=i.toExpNeg||n>=i.toExpPos)):(Zi(e,1,Ld),t===void 0?t=i.rounding:Zi(t,0,8),o=Nt(new i(o),e,t),n=On(o),r=Jl(o,e<=n||n<=i.toExpNeg,e)),r};Ne.toSignificantDigits=Ne.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(Zi(e,1,Ld),t===void 0?t=r.rounding:Zi(t,0,8)),Nt(new r(n),e,t)};Ne.toString=Ne.valueOf=Ne.val=Ne.toJSON=Ne[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=On(e),n=e.constructor;return Jl(e,t<=n.toExpNeg||t>=n.toExpPos)};function P5(e,t){var n,r,o,i,a,s,l,u,c=e.constructor,d=c.precision;if(!e.s||!t.s)return t.s||(t=new c(e)),en?Nt(t,d):t;if(l=e.d,u=t.d,a=e.e,o=t.e,l=l.slice(),i=a-o,i){for(i<0?(r=l,i=-i,s=u.length):(r=u,o=a,s=l.length),a=Math.ceil(d/Xt),s=a>s?a+1:s+1,i>s&&(i=s,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for(s=l.length,i=u.length,s-i<0&&(i=s,r=u,u=l,l=r),n=0;i;)n=(l[--i]=l[i]+u[i]+n)/Nn|0,l[i]%=Nn;for(n&&(l.unshift(n),++o),s=l.length;l[--s]==0;)l.pop();return t.d=l,t.e=o,en?Nt(t,d):t}function Zi(e,t,n){if(e!==~~e||en)throw Error(jl+e)}function Fi(e){var t,n,r,o=e.length-1,i="",a=e[0];if(o>0){for(i+=a,t=1;ta?1:-1;else for(s=l=0;so[s]?1:-1;break}return l}function n(r,o,i){for(var a=0;i--;)r[i]-=a,a=r[i]1;)r.shift()}return function(r,o,i,a){var s,l,u,c,d,f,h,p,m,y,b,x,w,S,O,C,$,E,M=r.constructor,_=r.s==o.s?1:-1,A=r.d,j=o.d;if(!r.s)return new M(r);if(!o.s)throw Error(Vo+"Division by zero");for(l=r.e-o.e,$=j.length,O=A.length,h=new M(_),p=h.d=[],u=0;j[u]==(A[u]||0);)++u;if(j[u]>(A[u]||0)&&--l,i==null?x=i=M.precision:a?x=i+(On(r)-On(o))+1:x=i,x<0)return new M(0);if(x=x/Xt+2|0,u=0,$==1)for(c=0,j=j[0],x++;(u1&&(j=e(j,c),A=e(A,c),$=j.length,O=A.length),S=$,m=A.slice(0,$),y=m.length;y<$;)m[y++]=0;E=j.slice(),E.unshift(0),C=j[0],j[1]>=Nn/2&&++C;do c=0,s=t(j,m,$,y),s<0?(b=m[0],$!=y&&(b=b*Nn+(m[1]||0)),c=b/C|0,c>1?(c>=Nn&&(c=Nn-1),d=e(j,c),f=d.length,y=m.length,s=t(d,m,f,y),s==1&&(c--,n(d,$16)throw Error(P$+On(e));if(!e.s)return new c(oo);for(en=!1,s=d,a=new c(.03125);e.abs().gte(.1);)e=e.times(a),u+=5;for(r=Math.log(ol(2,u))/Math.LN10*2+5|0,s+=r,n=o=i=new c(oo),c.precision=s;;){if(o=Nt(o.times(e),s),n=n.times(++l),a=i.plus(Sa(o,n,s)),Fi(a.d).slice(0,s)===Fi(i.d).slice(0,s)){for(;u--;)i=Nt(i.times(i),s);return c.precision=d,t==null?(en=!0,Nt(i,d)):i}i=a}}function On(e){for(var t=e.e*Xt,n=e.d[0];n>=10;n/=10)t++;return t}function Jx(e,t,n){if(t>e.LN10.sd())throw en=!0,n&&(e.precision=n),Error(Vo+"LN10 precision limit exceeded");return Nt(new e(e.LN10),t)}function Qa(e){for(var t="";e--;)t+="0";return t}function Bp(e,t){var n,r,o,i,a,s,l,u,c,d=1,f=10,h=e,p=h.d,m=h.constructor,y=m.precision;if(h.s<1)throw Error(Vo+(h.s?"NaN":"-Infinity"));if(h.eq(oo))return new m(0);if(t==null?(en=!1,u=y):u=t,h.eq(10))return t==null&&(en=!0),Jx(m,u);if(u+=f,m.precision=u,n=Fi(p),r=n.charAt(0),i=On(h),Math.abs(i)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)h=h.times(e),n=Fi(h.d),r=n.charAt(0),d++;i=On(h),r>1?(h=new m("0."+n),i++):h=new m(r+"."+n.slice(1))}else return l=Jx(m,u+2,y).times(i+""),h=Bp(new m(r+"."+n.slice(1)),u-f).plus(l),m.precision=y,t==null?(en=!0,Nt(h,y)):h;for(s=a=h=Sa(h.minus(oo),h.plus(oo),u),c=Nt(h.times(h),u),o=3;;){if(a=Nt(a.times(c),u),l=s.plus(Sa(a,new m(o),u)),Fi(l.d).slice(0,u)===Fi(s.d).slice(0,u))return s=s.times(2),i!==0&&(s=s.plus(Jx(m,u+2,y).times(i+""))),s=Sa(s,new m(d),u),m.precision=y,t==null?(en=!0,Nt(s,y)):s;s=l,o+=2}}function n_(e,t){var n,r,o;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charCodeAt(r)===48;)++r;for(o=t.length;t.charCodeAt(o-1)===48;)--o;if(t=t.slice(r,o),t){if(o-=r,n=n-r-1,e.e=Fd(n/Xt),e.d=[],r=(n+1)%Xt,n<0&&(r+=Xt),rNv||e.e<-Nv))throw Error(P$+n)}else e.s=0,e.e=0,e.d=[0];return e}function Nt(e,t,n){var r,o,i,a,s,l,u,c,d=e.d;for(a=1,i=d[0];i>=10;i/=10)a++;if(r=t-a,r<0)r+=Xt,o=t,u=d[c=0];else{if(c=Math.ceil((r+1)/Xt),i=d.length,c>=i)return e;for(u=i=d[c],a=1;i>=10;i/=10)a++;r%=Xt,o=r-Xt+a}if(n!==void 0&&(i=ol(10,a-o-1),s=u/i%10|0,l=t<0||d[c+1]!==void 0||u%i,l=n<4?(s||l)&&(n==0||n==(e.s<0?3:2)):s>5||s==5&&(n==4||l||n==6&&(r>0?o>0?u/ol(10,a-o):0:d[c-1])%10&1||n==(e.s<0?8:7))),t<1||!d[0])return l?(i=On(e),d.length=1,t=t-i-1,d[0]=ol(10,(Xt-t%Xt)%Xt),e.e=Fd(-t/Xt)||0):(d.length=1,d[0]=e.e=e.s=0),e;if(r==0?(d.length=c,i=1,c--):(d.length=c+1,i=ol(10,Xt-r),d[c]=o>0?(u/ol(10,a-o)%ol(10,o)|0)*i:0),l)for(;;)if(c==0){(d[0]+=i)==Nn&&(d[0]=1,++e.e);break}else{if(d[c]+=i,d[c]!=Nn)break;d[c--]=0,i=1}for(r=d.length;d[--r]===0;)d.pop();if(en&&(e.e>Nv||e.e<-Nv))throw Error(P$+On(e));return e}function $5(e,t){var n,r,o,i,a,s,l,u,c,d,f=e.constructor,h=f.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new f(e),en?Nt(t,h):t;if(l=e.d,d=t.d,r=t.e,u=e.e,l=l.slice(),a=u-r,a){for(c=a<0,c?(n=l,a=-a,s=d.length):(n=d,r=u,s=l.length),o=Math.max(Math.ceil(h/Xt),s)+2,a>o&&(a=o,n.length=1),n.reverse(),o=a;o--;)n.push(0);n.reverse()}else{for(o=l.length,s=d.length,c=o0;--o)l[s++]=0;for(o=d.length;o>a;){if(l[--o]0?i=i.charAt(0)+"."+i.slice(1)+Qa(r):a>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(o<0?"e":"e+")+o):o<0?(i="0."+Qa(-o-1)+i,n&&(r=n-a)>0&&(i+=Qa(r))):o>=a?(i+=Qa(o+1-a),n&&(r=n-o-1)>0&&(i=i+"."+Qa(r))):((r=o+1)0&&(o+1===a&&(i+="."),i+=Qa(r))),e.s<0?"-"+i:i}function r_(e,t){if(e.length>t)return e.length=t,!0}function E5(e){var t,n,r;function o(i){var a=this;if(!(a instanceof o))return new o(i);if(a.constructor=o,i instanceof o){a.s=i.s,a.e=i.e,a.d=(i=i.d)?i.slice():i;return}if(typeof i=="number"){if(i*0!==0)throw Error(jl+i);if(i>0)a.s=1;else if(i<0)i=-i,a.s=-1;else{a.s=0,a.e=0,a.d=[0];return}if(i===~~i&&i<1e7){a.e=0,a.d=[i];return}return n_(a,i.toString())}else if(typeof i!="string")throw Error(jl+i);if(i.charCodeAt(0)===45?(i=i.slice(1),a.s=-1):a.s=1,Txe.test(i))n_(a,i);else throw Error(jl+i)}if(o.prototype=Ne,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.clone=E5,o.config=o.set=Mxe,e===void 0&&(e={}),e)for(r=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t=o[t+1]&&r<=o[t+2])this[n]=r;else throw Error(jl+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(jl+n+": "+r);return this}var O$=E5(Ixe);oo=new O$(1);const jt=O$;function _xe(e){return Dxe(e)||jxe(e)||Rxe(e)||Axe()}function Axe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Rxe(e,t){if(e){if(typeof e=="string")return OC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return OC(e,t)}}function jxe(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function Dxe(e){if(Array.isArray(e))return OC(e)}function OC(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=t?n.apply(void 0,o):e(t-a,o_(function(){for(var s=arguments.length,l=new Array(s),u=0;ue.length)&&(t=e.length);for(var n=0,r=new Array(t);n"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,o=!1,i=void 0;try{for(var a=e[Symbol.iterator](),s;!(r=(s=a.next()).done)&&(n.push(s.value),!(t&&n.length===t));r=!0);}catch(l){o=!0,i=l}finally{try{!r&&a.return!=null&&a.return()}finally{if(o)throw i}}return n}}function Qxe(e){if(Array.isArray(e))return e}function _5(e){var t=zp(e,2),n=t[0],r=t[1],o=n,i=r;return n>r&&(o=r,i=n),[o,i]}function A5(e,t,n){if(e.lte(0))return new jt(0);var r=y0.getDigitCount(e.toNumber()),o=new jt(10).pow(r),i=e.div(o),a=r!==1?.05:.1,s=new jt(Math.ceil(i.div(a).toNumber())).add(n).mul(a),l=s.mul(o);return t?l:new jt(Math.ceil(l))}function Zxe(e,t,n){var r=1,o=new jt(e);if(!o.isint()&&n){var i=Math.abs(e);i<1?(r=new jt(10).pow(y0.getDigitCount(e)-1),o=new jt(Math.floor(o.div(r).toNumber())).mul(r)):i>1&&(o=new jt(Math.floor(e)))}else e===0?o=new jt(Math.floor((t-1)/2)):n||(o=new jt(Math.floor(e)));var a=Math.floor((t-1)/2),s=Bxe(Nxe(function(l){return o.add(new jt(l-a).mul(r)).toNumber()}),$C);return s(0,t)}function R5(e,t,n,r){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new jt(0),tickMin:new jt(0),tickMax:new jt(0)};var i=A5(new jt(t).sub(e).div(n-1),r,o),a;e<=0&&t>=0?a=new jt(0):(a=new jt(e).add(t).div(2),a=a.sub(new jt(a).mod(i)));var s=Math.ceil(a.sub(e).div(i).toNumber()),l=Math.ceil(new jt(t).sub(a).div(i).toNumber()),u=s+l+1;return u>n?R5(e,t,n,r,o+1):(u0?l+(n-u):l,s=t>0?s:s+(n-u)),{step:i,tickMin:a.sub(new jt(s).mul(i)),tickMax:a.add(new jt(l).mul(i))})}function Jxe(e){var t=zp(e,2),n=t[0],r=t[1],o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=Math.max(o,2),s=_5([n,r]),l=zp(s,2),u=l[0],c=l[1];if(u===-1/0||c===1/0){var d=c===1/0?[u].concat(kC($C(0,o-1).map(function(){return 1/0}))):[].concat(kC($C(0,o-1).map(function(){return-1/0})),[c]);return n>r?EC(d):d}if(u===c)return Zxe(u,o,i);var f=R5(u,c,a,i),h=f.step,p=f.tickMin,m=f.tickMax,y=y0.rangeStep(p,m.add(new jt(.1).mul(h)),h);return n>r?EC(y):y}function ewe(e,t){var n=zp(e,2),r=n[0],o=n[1],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=_5([r,o]),s=zp(a,2),l=s[0],u=s[1];if(l===-1/0||u===1/0)return[r,o];if(l===u)return[l];var c=Math.max(t,2),d=A5(new jt(u).sub(l).div(c-1),i,0),f=[].concat(kC(y0.rangeStep(new jt(l),new jt(u).sub(new jt(.99).mul(d)),d)),[u]);return r>o?EC(f):f}var twe=T5(Jxe),nwe=T5(ewe),rwe="Invariant failed";function eu(e,t){throw new Error(rwe)}var owe=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Wc(e){"@babel/helpers - typeof";return Wc=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},Wc(e)}function Bv(){return Bv=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=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function dwe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function fwe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pwe(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&arguments[1]!==void 0?arguments[1]:[],o=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,a=-1,s=(n=r==null?void 0:r.length)!==null&&n!==void 0?n:0;if(s<=1)return 0;if(i&&i.axisType==="angleAxis"&&Math.abs(Math.abs(i.range[1]-i.range[0])-360)<=1e-6)for(var l=i.range,u=0;u0?o[u-1].coordinate:o[s-1].coordinate,d=o[u].coordinate,f=u>=s-1?o[0].coordinate:o[u+1].coordinate,h=void 0;if(di(d-c)!==di(f-d)){var p=[];if(di(f-d)===di(l[1]-l[0])){h=f;var m=d+l[1]-l[0];p[0]=Math.min(m,(m+c)/2),p[1]=Math.max(m,(m+c)/2)}else{h=c;var y=f+l[1]-l[0];p[0]=Math.min(d,(y+d)/2),p[1]=Math.max(d,(y+d)/2)}var b=[Math.min(d,(h+d)/2),Math.max(d,(h+d)/2)];if(t>b[0]&&t<=b[1]||t>=p[0]&&t<=p[1]){a=o[u].index;break}}else{var x=Math.min(c,f),w=Math.max(c,f);if(t>(x+d)/2&&t<=(w+d)/2){a=o[u].index;break}}}else for(var S=0;S0&&S(r[S].coordinate+r[S-1].coordinate)/2&&t<=(r[S].coordinate+r[S+1].coordinate)/2||S===s-1&&t>(r[S].coordinate+r[S-1].coordinate)/2){a=r[S].index;break}return a},$$=function(t){var n,r=t,o=r.type.displayName,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?fn(fn({},t.type.defaultProps),t.props):t.props,a=i.stroke,s=i.fill,l;switch(o){case"Line":l=a;break;case"Area":case"Radar":l=a&&a!=="none"?a:s;break;default:l=s;break}return l},Twe=function(t){var n=t.barSize,r=t.totalSize,o=t.stackGroups,i=o===void 0?{}:o;if(!i)return{};for(var a={},s=Object.keys(i),l=0,u=s.length;l=0});if(b&&b.length){var x=b[0].type.defaultProps,w=x!==void 0?fn(fn({},x),b[0].props):b[0].props,S=w.barSize,O=w[y];a[O]||(a[O]=[]);var C=pt(S)?n:S;a[O].push({item:b[0],stackList:b.slice(1),barSize:pt(C)?void 0:Zl(C,r,0)})}}return a},Mwe=function(t){var n=t.barGap,r=t.barCategoryGap,o=t.bandSize,i=t.sizeList,a=i===void 0?[]:i,s=t.maxBarSize,l=a.length;if(l<1)return null;var u=Zl(n,o,0,!0),c,d=[];if(a[0].barSize===+a[0].barSize){var f=!1,h=o/l,p=a.reduce(function(S,O){return S+O.barSize||0},0);p+=(l-1)*u,p>=o&&(p-=(l-1)*u,u=0),p>=o&&h>0&&(f=!0,h*=.9,p=l*h);var m=(o-p)/2>>0,y={offset:m-u,size:0};c=a.reduce(function(S,O){var C={item:O.item,position:{offset:y.offset+y.size+u,size:f?h:O.barSize}},$=[].concat(s_(S),[C]);return y=$[$.length-1].position,O.stackList&&O.stackList.length&&O.stackList.forEach(function(E){$.push({item:E,position:y})}),$},d)}else{var b=Zl(r,o,0,!0);o-2*b-(l-1)*u<=0&&(u=0);var x=(o-2*b-(l-1)*u)/l;x>1&&(x>>=0);var w=s===+s?Math.min(x,s):x;c=a.reduce(function(S,O,C){var $=[].concat(s_(S),[{item:O.item,position:{offset:b+(x+u)*C+(x-w)/2,size:w}}]);return O.stackList&&O.stackList.length&&O.stackList.forEach(function(E){$.push({item:E,position:$[$.length-1].position})}),$},d)}return c},_we=function(t,n,r,o){var i=r.children,a=r.width,s=r.margin,l=a-(s.left||0)-(s.right||0),u=F5({children:i,legendWidth:l});if(u){var c=o||{},d=c.width,f=c.height,h=u.align,p=u.verticalAlign,m=u.layout;if((m==="vertical"||m==="horizontal"&&p==="middle")&&h!=="center"&&Me(t[h]))return fn(fn({},t),{},uc({},h,t[h]+(d||0)));if((m==="horizontal"||m==="vertical"&&h==="center")&&p!=="middle"&&Me(t[p]))return fn(fn({},t),{},uc({},p,t[p]+(f||0)))}return t},Awe=function(t,n,r){return pt(n)?!0:t==="horizontal"?n==="yAxis":t==="vertical"||r==="x"?n==="xAxis":r==="y"?n==="yAxis":!0},N5=function(t,n,r,o,i){var a=n.props.children,s=vi(a,b0).filter(function(u){return Awe(o,i,u.props.direction)});if(s&&s.length){var l=s.map(function(u){return u.props.dataKey});return t.reduce(function(u,c){var d=fo(c,r);if(pt(d))return u;var f=Array.isArray(d)?[g0(d),ys(d)]:[d,d],h=l.reduce(function(p,m){var y=fo(c,m,0),b=f[0]-Math.abs(Array.isArray(y)?y[0]:y),x=f[1]+Math.abs(Array.isArray(y)?y[1]:y);return[Math.min(b,p[0]),Math.max(x,p[1])]},[1/0,-1/0]);return[Math.min(h[0],u[0]),Math.max(h[1],u[1])]},[1/0,-1/0])}return null},Rwe=function(t,n,r,o,i){var a=n.map(function(s){return N5(t,s,r,i,o)}).filter(function(s){return!pt(s)});return a&&a.length?a.reduce(function(s,l){return[Math.min(s[0],l[0]),Math.max(s[1],l[1])]},[1/0,-1/0]):null},B5=function(t,n,r,o,i){var a=n.map(function(l){var u=l.props.dataKey;return r==="number"&&u&&N5(t,l,u,o)||Gf(t,u,r,i)});if(r==="number")return a.reduce(function(l,u){return[Math.min(l[0],u[0]),Math.max(l[1],u[1])]},[1/0,-1/0]);var s={};return a.reduce(function(l,u){for(var c=0,d=u.length;c=2?di(s[0]-s[1])*2*u:u,n&&(t.ticks||t.niceTicks)){var c=(t.ticks||t.niceTicks).map(function(d){var f=i?i.indexOf(d):d;return{coordinate:o(f)+u,value:d,offset:u}});return c.filter(function(d){return!Td(d.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(d,f){return{coordinate:o(d)+u,value:d,index:f,offset:u}}):o.ticks&&!r?o.ticks(t.tickCount).map(function(d){return{coordinate:o(d)+u,value:d,offset:u}}):o.domain().map(function(d,f){return{coordinate:o(d)+u,value:i?i[d]:d,index:f,offset:u}})},ew=new WeakMap,Um=function(t,n){if(typeof n!="function")return t;ew.has(t)||ew.set(t,new WeakMap);var r=ew.get(t);if(r.has(n))return r.get(n);var o=function(){t.apply(void 0,arguments),n.apply(void 0,arguments)};return r.set(n,o),o},jwe=function(t,n,r){var o=t.scale,i=t.type,a=t.layout,s=t.axisType;if(o==="auto")return a==="radial"&&s==="radiusAxis"?{scale:Rp(),realScaleType:"band"}:a==="radial"&&s==="angleAxis"?{scale:jv(),realScaleType:"linear"}:i==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?{scale:Wf(),realScaleType:"point"}:i==="category"?{scale:Rp(),realScaleType:"band"}:{scale:jv(),realScaleType:"linear"};if(Ql(o)){var l="scale".concat(r0(o));return{scale:(t_[l]||Wf)(),realScaleType:t_[l]?l:"point"}}return lt(o)?{scale:o}:{scale:Wf(),realScaleType:"point"}},u_=1e-4,Dwe=function(t){var n=t.domain();if(!(!n||n.length<=2)){var r=n.length,o=t.range(),i=Math.min(o[0],o[1])-u_,a=Math.max(o[0],o[1])+u_,s=t(n[0]),l=t(n[r-1]);(sa||la)&&t.domain([n[0],n[r-1]])}},Lwe=function(t,n){if(!t)return null;for(var r=0,o=t.length;ro)&&(i[1]=o),i[0]>o&&(i[0]=o),i[1]=0?(t[s][r][0]=i,t[s][r][1]=i+l,i=t[s][r][1]):(t[s][r][0]=a,t[s][r][1]=a+l,a=t[s][r][1])}},Bwe=function(t){var n=t.length;if(!(n<=0))for(var r=0,o=t[0].length;r=0?(t[a][r][0]=i,t[a][r][1]=i+s,i=t[a][r][1]):(t[a][r][0]=0,t[a][r][1]=0)}},zwe={sign:Nwe,expand:eue,none:Lc,silhouette:tue,wiggle:nue,positive:Bwe},Hwe=function(t,n,r){var o=n.map(function(s){return s.props.dataKey}),i=zwe[r],a=Jle().keys(o).value(function(s,l){return+fo(s,l,0)}).order(nC).offset(i);return a(t)},Uwe=function(t,n,r,o,i,a){if(!t)return null;var s=a?n.reverse():n,l={},u=s.reduce(function(d,f){var h,p=(h=f.type)!==null&&h!==void 0&&h.defaultProps?fn(fn({},f.type.defaultProps),f.props):f.props,m=p.stackId,y=p.hide;if(y)return d;var b=p[r],x=d[b]||{hasStack:!1,stackGroups:{}};if(_n(m)){var w=x.stackGroups[m]||{numericAxisId:r,cateAxisId:o,items:[]};w.items.push(f),x.hasStack=!0,x.stackGroups[m]=w}else x.stackGroups[zh("_stackId_")]={numericAxisId:r,cateAxisId:o,items:[f]};return fn(fn({},d),{},uc({},b,x))},l),c={};return Object.keys(u).reduce(function(d,f){var h=u[f];if(h.hasStack){var p={};h.stackGroups=Object.keys(h.stackGroups).reduce(function(m,y){var b=h.stackGroups[y];return fn(fn({},m),{},uc({},y,{numericAxisId:r,cateAxisId:o,items:b.items,stackedData:Hwe(t,b.items,i)}))},p)}return fn(fn({},d),{},uc({},f,h))},c)},Vwe=function(t,n){var r=n.realScaleType,o=n.type,i=n.tickCount,a=n.originalDomain,s=n.allowDecimals,l=r||n.scale;if(l!=="auto"&&l!=="linear")return null;if(i&&o==="number"&&a&&(a[0]==="auto"||a[1]==="auto")){var u=t.domain();if(!u.length)return null;var c=twe(u,i,s);return t.domain([g0(c),ys(c)]),{niceTicks:c}}if(i&&o==="number"){var d=t.domain(),f=nwe(d,i,s);return{niceTicks:f}}return null};function c_(e){var t=e.axis,n=e.ticks,r=e.bandSize,o=e.entry,i=e.index,a=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!pt(o[t.dataKey])){var s=dv(n,"value",o[t.dataKey]);if(s)return s.coordinate+r/2}return n[i]?n[i].coordinate+r/2:null}var l=fo(o,pt(a)?t.dataKey:a);return pt(l)?null:t.scale(l)}var d_=function(t){var n=t.axis,r=t.ticks,o=t.offset,i=t.bandSize,a=t.entry,s=t.index;if(n.type==="category")return r[s]?r[s].coordinate+o:null;var l=fo(a,n.dataKey,n.domain[s]);return pt(l)?null:n.scale(l)-i/2+o},Wwe=function(t){var n=t.numericAxis,r=n.scale.domain();if(n.type==="number"){var o=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return o<=0&&i>=0?0:i<0?i:o}return r[0]},Gwe=function(t,n){var r,o=(r=t.type)!==null&&r!==void 0&&r.defaultProps?fn(fn({},t.type.defaultProps),t.props):t.props,i=o.stackId;if(_n(i)){var a=n[i];if(a){var s=a.items.indexOf(t);return s>=0?a.stackedData[s]:null}}return null},Kwe=function(t){return t.reduce(function(n,r){return[g0(r.concat([n[0]]).filter(Me)),ys(r.concat([n[1]]).filter(Me))]},[1/0,-1/0])},H5=function(t,n,r){return Object.keys(t).reduce(function(o,i){var a=t[i],s=a.stackedData,l=s.reduce(function(u,c){var d=Kwe(c.slice(n,r+1));return[Math.min(u[0],d[0]),Math.max(u[1],d[1])]},[1/0,-1/0]);return[Math.min(l[0],o[0]),Math.max(l[1],o[1])]},[1/0,-1/0]).map(function(o){return o===1/0||o===-1/0?0:o})},f_=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,p_=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,_C=function(t,n,r){if(lt(t))return t(n,r);if(!Array.isArray(t))return n;var o=[];if(Me(t[0]))o[0]=r?t[0]:Math.min(t[0],n[0]);else if(f_.test(t[0])){var i=+f_.exec(t[0])[1];o[0]=n[0]-i}else lt(t[0])?o[0]=t[0](n[0]):o[0]=n[0];if(Me(t[1]))o[1]=r?t[1]:Math.max(t[1],n[1]);else if(p_.test(t[1])){var a=+p_.exec(t[1])[1];o[1]=n[1]+a}else lt(t[1])?o[1]=t[1](n[1]):o[1]=n[1];return o},Hv=function(t,n,r){if(t&&t.scale&&t.scale.bandwidth){var o=t.scale.bandwidth();if(!r||o>0)return o}if(t&&n&&n.length>=2){for(var i=e$(n,function(d){return d.coordinate}),a=1/0,s=1,l=i.length;sa&&(u=2*Math.PI-u),{radius:s,angle:Qwe(u),angleInRadian:u}},e1e=function(t){var n=t.startAngle,r=t.endAngle,o=Math.floor(n/360),i=Math.floor(r/360),a=Math.min(o,i);return{startAngle:n-a*360,endAngle:r-a*360}},t1e=function(t,n){var r=n.startAngle,o=n.endAngle,i=Math.floor(r/360),a=Math.floor(o/360),s=Math.min(i,a);return t+s*360},v_=function(t,n){var r=t.x,o=t.y,i=Jwe({x:r,y:o},n),a=i.radius,s=i.angle,l=n.innerRadius,u=n.outerRadius;if(au)return!1;if(a===0)return!0;var c=e1e(n),d=c.startAngle,f=c.endAngle,h=s,p;if(d<=f){for(;h>f;)h-=360;for(;h=d&&h<=f}else{for(;h>d;)h-=360;for(;h=f&&h<=d}return p?g_(g_({},n),{},{radius:a,angle:t1e(h,n)}):null};function Wp(e){"@babel/helpers - typeof";return Wp=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},Wp(e)}var n1e=["offset"];function r1e(e){return s1e(e)||a1e(e)||i1e(e)||o1e()}function o1e(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function i1e(e,t){if(e){if(typeof e=="string")return AC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return AC(e,t)}}function a1e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function s1e(e){if(Array.isArray(e))return AC(e)}function AC(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function u1e(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function y_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function En(e){for(var t=1;t=0?1:-1,w,S;o==="insideStart"?(w=h+x*a,S=m):o==="insideEnd"?(w=p-x*a,S=!m):o==="end"&&(w=p+x*a,S=m),S=b<=0?S:!S;var O=Zn(u,c,y,w),C=Zn(u,c,y,w+(S?1:-1)*359),$="M".concat(O.x,",").concat(O.y,` A`).concat(y,",").concat(y,",0,1,").concat(S?0:1,`, `).concat(C.x,",").concat(C.y),E=pt(t.id)?zh("recharts-radial-line-"):t.id;return q.createElement("text",Gp({},r,{dominantBaseline:"central",className:Y("recharts-radial-bar-label",s)}),q.createElement("defs",null,q.createElement("path",{id:E,d:$})),q.createElement("textPath",{xlinkHref:"#".concat(E)},n))},g1e=function(t){var n=t.viewBox,r=t.offset,o=t.position,i=n,a=i.cx,s=i.cy,l=i.innerRadius,u=i.outerRadius,c=i.startAngle,d=i.endAngle,f=(c+d)/2;if(o==="outside"){var h=Zn(a,s,u+r,f),p=h.x,m=h.y;return{x:p,y:m,textAnchor:p>=a?"start":"end",verticalAnchor:"middle"}}if(o==="center")return{x:a,y:s,textAnchor:"middle",verticalAnchor:"middle"};if(o==="centerTop")return{x:a,y:s,textAnchor:"middle",verticalAnchor:"start"};if(o==="centerBottom")return{x:a,y:s,textAnchor:"middle",verticalAnchor:"end"};var y=(l+u)/2,b=Zn(a,s,y,f),x=b.x,w=b.y;return{x,y:w,textAnchor:"middle",verticalAnchor:"middle"}},v1e=function(t){var n=t.viewBox,r=t.parentViewBox,o=t.offset,i=t.position,a=n,s=a.x,l=a.y,u=a.width,c=a.height,d=c>=0?1:-1,f=d*o,h=d>0?"end":"start",p=d>0?"start":"end",m=u>=0?1:-1,y=m*o,b=m>0?"end":"start",x=m>0?"start":"end";if(i==="top"){var w={x:s+u/2,y:l-d*o,textAnchor:"middle",verticalAnchor:h};return En(En({},w),r?{height:Math.max(l-r.y,0),width:u}:{})}if(i==="bottom"){var S={x:s+u/2,y:l+c+f,textAnchor:"middle",verticalAnchor:p};return En(En({},S),r?{height:Math.max(r.y+r.height-(l+c),0),width:u}:{})}if(i==="left"){var O={x:s-y,y:l+c/2,textAnchor:b,verticalAnchor:"middle"};return En(En({},O),r?{width:Math.max(O.x-r.x,0),height:c}:{})}if(i==="right"){var C={x:s+u+y,y:l+c/2,textAnchor:x,verticalAnchor:"middle"};return En(En({},C),r?{width:Math.max(r.x+r.width-C.x,0),height:c}:{})}var $=r?{width:u,height:c}:{};return i==="insideLeft"?En({x:s+y,y:l+c/2,textAnchor:x,verticalAnchor:"middle"},$):i==="insideRight"?En({x:s+u-y,y:l+c/2,textAnchor:b,verticalAnchor:"middle"},$):i==="insideTop"?En({x:s+u/2,y:l+f,textAnchor:"middle",verticalAnchor:p},$):i==="insideBottom"?En({x:s+u/2,y:l+c-f,textAnchor:"middle",verticalAnchor:h},$):i==="insideTopLeft"?En({x:s+y,y:l+f,textAnchor:x,verticalAnchor:p},$):i==="insideTopRight"?En({x:s+u-y,y:l+f,textAnchor:b,verticalAnchor:p},$):i==="insideBottomLeft"?En({x:s+y,y:l+c-f,textAnchor:x,verticalAnchor:h},$):i==="insideBottomRight"?En({x:s+u-y,y:l+c-f,textAnchor:b,verticalAnchor:h},$):$d(i)&&(Me(i.x)||fl(i.x))&&(Me(i.y)||fl(i.y))?En({x:s+Zl(i.x,u),y:l+Zl(i.y,c),textAnchor:"end",verticalAnchor:"end"},$):En({x:s+u/2,y:l+c/2,textAnchor:"middle",verticalAnchor:"middle"},$)},y1e=function(t){return"cx"in t&&Me(t.cx)};function dr(e){var t=e.offset,n=t===void 0?5:t,r=l1e(e,n1e),o=En({offset:n},r),i=o.viewBox,a=o.position,s=o.value,l=o.children,u=o.content,c=o.className,d=c===void 0?"":c,f=o.textBreakAll;if(!i||pt(s)&&pt(l)&&!v.isValidElement(u)&&!lt(u))return null;if(v.isValidElement(u))return v.cloneElement(u,o);var h;if(lt(u)){if(h=v.createElement(u,o),v.isValidElement(h))return h}else h=p1e(o);var p=y1e(i),m=ft(o,!0);if(p&&(a==="insideStart"||a==="insideEnd"||a==="end"))return m1e(o,h,m);var y=p?g1e(o):v1e(o);return q.createElement(Ev,Gp({className:Y("recharts-label",d)},m,y,{breakAll:f}),h)}dr.displayName="Label";var V5=function(t){var n=t.cx,r=t.cy,o=t.angle,i=t.startAngle,a=t.endAngle,s=t.r,l=t.radius,u=t.innerRadius,c=t.outerRadius,d=t.x,f=t.y,h=t.top,p=t.left,m=t.width,y=t.height,b=t.clockWise,x=t.labelViewBox;if(x)return x;if(Me(m)&&Me(y)){if(Me(d)&&Me(f))return{x:d,y:f,width:m,height:y};if(Me(h)&&Me(p))return{x:h,y:p,width:m,height:y}}return Me(d)&&Me(f)?{x:d,y:f,width:0,height:0}:Me(n)&&Me(r)?{cx:n,cy:r,startAngle:i||o||0,endAngle:a||o||0,innerRadius:u||0,outerRadius:c||l||s||0,clockWise:b}:t.viewBox?t.viewBox:{}},b1e=function(t,n){return t?t===!0?q.createElement(dr,{key:"label-implicit",viewBox:n}):_n(t)?q.createElement(dr,{key:"label-implicit",viewBox:n,value:t}):v.isValidElement(t)?t.type===dr?v.cloneElement(t,{key:"label-implicit",viewBox:n}):q.createElement(dr,{key:"label-implicit",content:t,viewBox:n}):lt(t)?q.createElement(dr,{key:"label-implicit",content:t,viewBox:n}):$d(t)?q.createElement(dr,Gp({viewBox:n},t,{key:"label-implicit"})):null:null},x1e=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&r&&!t.label)return null;var o=t.children,i=V5(t),a=vi(o,dr).map(function(l,u){return v.cloneElement(l,{viewBox:n||i,key:"label-".concat(u)})});if(!r)return a;var s=b1e(t.label,n||i);return[s].concat(r1e(a))};dr.parseViewBox=V5;dr.renderCallByParent=x1e;function w1e(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var C1e=w1e;const S1e=Bt(C1e);function Kp(e){"@babel/helpers - typeof";return Kp=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},Kp(e)}var P1e=["valueAccessor"],O1e=["data","dataKey","clockWise","id","textBreakAll"];function $1e(e){return T1e(e)||I1e(e)||k1e(e)||E1e()}function E1e(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function k1e(e,t){if(e){if(typeof e=="string")return RC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return RC(e,t)}}function I1e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function T1e(e){if(Array.isArray(e))return RC(e)}function RC(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function R1e(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var j1e=function(t){return Array.isArray(t.value)?S1e(t.value):t.value};function _s(e){var t=e.valueAccessor,n=t===void 0?j1e:t,r=w_(e,P1e),o=r.data,i=r.dataKey,a=r.clockWise,s=r.id,l=r.textBreakAll,u=w_(r,O1e);return!o||!o.length?null:q.createElement(rn,{className:"recharts-label-list"},o.map(function(c,d){var f=pt(i)?n(c,d):fo(c&&c.payload,i),h=pt(s)?{}:{id:"".concat(s,"-").concat(d)};return q.createElement(dr,Vv({},ft(c,!0),u,h,{parentViewBox:c.parentViewBox,value:f,textBreakAll:l,viewBox:dr.parseViewBox(pt(a)?c:x_(x_({},c),{},{clockWise:a})),key:"label-".concat(d),index:d}))}))}_s.displayName="LabelList";function D1e(e,t){return e?e===!0?q.createElement(_s,{key:"labelList-implicit",data:t}):q.isValidElement(e)||lt(e)?q.createElement(_s,{key:"labelList-implicit",data:t,content:e}):$d(e)?q.createElement(_s,Vv({data:t},e,{key:"labelList-implicit"})):null:null}function L1e(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&n&&!e.label)return null;var r=e.children,o=vi(r,_s).map(function(a,s){return v.cloneElement(a,{data:t,key:"labelList-".concat(s)})});if(!n)return o;var i=D1e(e.label,t);return[i].concat($1e(o))}_s.renderCallByParent=L1e;function qp(e){"@babel/helpers - typeof";return qp=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},qp(e)}function jC(){return jC=Object.assign?Object.assign.bind():function(e){for(var t=1;t180),",").concat(+(a>u),`, `).concat(d.x,",").concat(d.y,` `);if(o>0){var h=Zn(n,r,o,a),p=Zn(n,r,o,u);f+="L ".concat(p.x,",").concat(p.y,` A `).concat(o,",").concat(o,`,0, `).concat(+(Math.abs(l)>180),",").concat(+(a<=u),`, `).concat(h.x,",").concat(h.y," Z")}else f+="L ".concat(n,",").concat(r," Z");return f},H1e=function(t){var n=t.cx,r=t.cy,o=t.innerRadius,i=t.outerRadius,a=t.cornerRadius,s=t.forceCornerRadius,l=t.cornerIsExternal,u=t.startAngle,c=t.endAngle,d=di(c-u),f=Vm({cx:n,cy:r,radius:i,angle:u,sign:d,cornerRadius:a,cornerIsExternal:l}),h=f.circleTangency,p=f.lineTangency,m=f.theta,y=Vm({cx:n,cy:r,radius:i,angle:c,sign:-d,cornerRadius:a,cornerIsExternal:l}),b=y.circleTangency,x=y.lineTangency,w=y.theta,S=l?Math.abs(u-c):Math.abs(u-c)-m-w;if(S<0)return s?"M ".concat(p.x,",").concat(p.y,` a`).concat(a,",").concat(a,",0,0,1,").concat(a*2,`,0 a`).concat(a,",").concat(a,",0,0,1,").concat(-a*2,`,0 `):W5({cx:n,cy:r,innerRadius:o,outerRadius:i,startAngle:u,endAngle:c});var O="M ".concat(p.x,",").concat(p.y,` A`).concat(a,",").concat(a,",0,0,").concat(+(d<0),",").concat(h.x,",").concat(h.y,` A`).concat(i,",").concat(i,",0,").concat(+(S>180),",").concat(+(d<0),",").concat(b.x,",").concat(b.y,` A`).concat(a,",").concat(a,",0,0,").concat(+(d<0),",").concat(x.x,",").concat(x.y,` `);if(o>0){var C=Vm({cx:n,cy:r,radius:o,angle:u,sign:d,isExternal:!0,cornerRadius:a,cornerIsExternal:l}),$=C.circleTangency,E=C.lineTangency,M=C.theta,_=Vm({cx:n,cy:r,radius:o,angle:c,sign:-d,isExternal:!0,cornerRadius:a,cornerIsExternal:l}),A=_.circleTangency,j=_.lineTangency,R=_.theta,I=l?Math.abs(u-c):Math.abs(u-c)-M-R;if(I<0&&a===0)return"".concat(O,"L").concat(n,",").concat(r,"Z");O+="L".concat(j.x,",").concat(j.y,` A`).concat(a,",").concat(a,",0,0,").concat(+(d<0),",").concat(A.x,",").concat(A.y,` A`).concat(o,",").concat(o,",0,").concat(+(I>180),",").concat(+(d>0),",").concat($.x,",").concat($.y,` A`).concat(a,",").concat(a,",0,0,").concat(+(d<0),",").concat(E.x,",").concat(E.y,"Z")}else O+="L".concat(n,",").concat(r,"Z");return O},U1e={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},G5=function(t){var n=S_(S_({},U1e),t),r=n.cx,o=n.cy,i=n.innerRadius,a=n.outerRadius,s=n.cornerRadius,l=n.forceCornerRadius,u=n.cornerIsExternal,c=n.startAngle,d=n.endAngle,f=n.className;if(a0&&Math.abs(c-d)<360?y=H1e({cx:r,cy:o,innerRadius:i,outerRadius:a,cornerRadius:Math.min(m,p/2),forceCornerRadius:l,cornerIsExternal:u,startAngle:c,endAngle:d}):y=W5({cx:r,cy:o,innerRadius:i,outerRadius:a,startAngle:c,endAngle:d}),q.createElement("path",jC({},ft(n,!0),{className:h,d:y,role:"img"}))};function Xp(e){"@babel/helpers - typeof";return Xp=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},Xp(e)}function DC(){return DC=Object.assign?Object.assign.bind():function(e){for(var t=1;tQ1e.call(e,t));function du(e,t){return e===t||!e&&!t&&e!==e&&t!==t}const eCe="__v",tCe="__o",nCe="_owner",{getOwnPropertyDescriptor:k_,keys:I_}=Object;function rCe(e,t){return e.byteLength===t.byteLength&&Wv(new Uint8Array(e),new Uint8Array(t))}function oCe(e,t,n){let r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function iCe(e,t){return e.byteLength===t.byteLength&&Wv(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function aCe(e,t){return du(e.getTime(),t.getTime())}function sCe(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function lCe(e,t){return e===t}function T_(e,t,n){const r=e.size;if(r!==t.size)return!1;if(!r)return!0;const o=new Array(r),i=e.entries();let a,s,l=0;for(;(a=i.next())&&!a.done;){const u=t.entries();let c=!1,d=0;for(;(s=u.next())&&!s.done;){if(o[d]){d++;continue}const f=a.value,h=s.value;if(n.equals(f[0],h[0],l,d,e,t,n)&&n.equals(f[1],h[1],f[0],h[0],e,t,n)){c=o[d]=!0;break}d++}if(!c)return!1;l++}return!0}const uCe=du;function cCe(e,t,n){const r=I_(e);let o=r.length;if(I_(t).length!==o)return!1;for(;o-- >0;)if(!K5(e,t,n,r[o]))return!1;return!0}function mf(e,t,n){const r=E_(e);let o=r.length;if(E_(t).length!==o)return!1;let i,a,s;for(;o-- >0;)if(i=r[o],!K5(e,t,n,i)||(a=k_(e,i),s=k_(t,i),(a||s)&&(!a||!s||a.configurable!==s.configurable||a.enumerable!==s.enumerable||a.writable!==s.writable)))return!1;return!0}function dCe(e,t){return du(e.valueOf(),t.valueOf())}function fCe(e,t){return e.source===t.source&&e.flags===t.flags}function M_(e,t,n){const r=e.size;if(r!==t.size)return!1;if(!r)return!0;const o=new Array(r),i=e.values();let a,s;for(;(a=i.next())&&!a.done;){const l=t.values();let u=!1,c=0;for(;(s=l.next())&&!s.done;){if(!o[c]&&n.equals(a.value,s.value,a.value,s.value,e,t,n)){u=o[c]=!0;break}c++}if(!u)return!1}return!0}function Wv(e,t){let n=e.byteLength;if(t.byteLength!==n||e.byteOffset!==t.byteOffset)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}function pCe(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function K5(e,t,n,r){return(r===nCe||r===tCe||r===eCe)&&(e.$$typeof||t.$$typeof)?!0:J1e(t,r)&&n.equals(e[r],t[r],r,r,e,t,n)}const hCe="[object ArrayBuffer]",mCe="[object Arguments]",gCe="[object Boolean]",vCe="[object DataView]",yCe="[object Date]",bCe="[object Error]",xCe="[object Map]",wCe="[object Number]",CCe="[object Object]",SCe="[object RegExp]",PCe="[object Set]",OCe="[object String]",$Ce={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},ECe="[object URL]",kCe=Object.prototype.toString;function ICe({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:n,areDatesEqual:r,areErrorsEqual:o,areFunctionsEqual:i,areMapsEqual:a,areNumbersEqual:s,areObjectsEqual:l,arePrimitiveWrappersEqual:u,areRegExpsEqual:c,areSetsEqual:d,areTypedArraysEqual:f,areUrlsEqual:h,unknownTagComparators:p}){return function(y,b,x){if(y===b)return!0;if(y==null||b==null)return!1;const w=typeof y;if(w!==typeof b)return!1;if(w!=="object")return w==="number"?s(y,b,x):w==="function"?i(y,b,x):!1;const S=y.constructor;if(S!==b.constructor)return!1;if(S===Object)return l(y,b,x);if(Array.isArray(y))return t(y,b,x);if(S===Date)return r(y,b,x);if(S===RegExp)return c(y,b,x);if(S===Map)return a(y,b,x);if(S===Set)return d(y,b,x);const O=kCe.call(y);if(O===yCe)return r(y,b,x);if(O===SCe)return c(y,b,x);if(O===xCe)return a(y,b,x);if(O===PCe)return d(y,b,x);if(O===CCe)return typeof y.then!="function"&&typeof b.then!="function"&&l(y,b,x);if(O===ECe)return h(y,b,x);if(O===bCe)return o(y,b,x);if(O===mCe)return l(y,b,x);if($Ce[O])return f(y,b,x);if(O===hCe)return e(y,b,x);if(O===vCe)return n(y,b,x);if(O===gCe||O===wCe||O===OCe)return u(y,b,x);if(p){let C=p[O];if(!C){const $=Z1e(y);$&&(C=p[$])}if(C)return C(y,b,x)}return!1}}function TCe({circular:e,createCustomConfig:t,strict:n}){let r={areArrayBuffersEqual:rCe,areArraysEqual:n?mf:oCe,areDataViewsEqual:iCe,areDatesEqual:aCe,areErrorsEqual:sCe,areFunctionsEqual:lCe,areMapsEqual:n?tw(T_,mf):T_,areNumbersEqual:uCe,areObjectsEqual:n?mf:cCe,arePrimitiveWrappersEqual:dCe,areRegExpsEqual:fCe,areSetsEqual:n?tw(M_,mf):M_,areTypedArraysEqual:n?tw(Wv,mf):Wv,areUrlsEqual:pCe,unknownTagComparators:void 0};if(t&&(r=Object.assign({},r,t(r))),e){const o=Gm(r.areArraysEqual),i=Gm(r.areMapsEqual),a=Gm(r.areObjectsEqual),s=Gm(r.areSetsEqual);r=Object.assign({},r,{areArraysEqual:o,areMapsEqual:i,areObjectsEqual:a,areSetsEqual:s})}return r}function MCe(e){return function(t,n,r,o,i,a,s){return e(t,n,s)}}function _Ce({circular:e,comparator:t,createState:n,equals:r,strict:o}){if(n)return function(s,l){const{cache:u=e?new WeakMap:void 0,meta:c}=n();return t(s,l,{cache:u,equals:r,meta:c,strict:o})};if(e)return function(s,l){return t(s,l,{cache:new WeakMap,equals:r,meta:void 0,strict:o})};const i={cache:void 0,equals:r,meta:void 0,strict:o};return function(s,l){return t(s,l,i)}}const ACe=Ks();Ks({strict:!0});Ks({circular:!0});Ks({circular:!0,strict:!0});Ks({createInternalComparator:()=>du});Ks({strict:!0,createInternalComparator:()=>du});Ks({circular:!0,createInternalComparator:()=>du});Ks({circular:!0,createInternalComparator:()=>du,strict:!0});function Ks(e={}){const{circular:t=!1,createInternalComparator:n,createState:r,strict:o=!1}=e,i=TCe(e),a=ICe(i),s=n?n(a):MCe(a);return _Ce({circular:t,comparator:a,createState:r,equals:s,strict:o})}function RCe(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function __(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=-1,r=function o(i){n<0&&(n=i),i-n>t?(e(i),n=-1):RCe(o)};requestAnimationFrame(r)}function LC(e){"@babel/helpers - typeof";return LC=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},LC(e)}function jCe(e){return NCe(e)||FCe(e)||LCe(e)||DCe()}function DCe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function LCe(e,t){if(e){if(typeof e=="string")return A_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return A_(e,t)}}function A_(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1?1:b<0?0:b},m=function(b){for(var x=b>1?1:b,w=x,S=0;S<8;++S){var O=d(w)-x,C=h(w);if(Math.abs(O-x)0&&arguments[0]!==void 0?arguments[0]:{},n=t.stiff,r=n===void 0?100:n,o=t.damping,i=o===void 0?8:o,a=t.dt,s=a===void 0?17:a,l=function(c,d,f){var h=-(c-d)*r,p=f*i,m=f+(h-p)*s/1e3,y=f*s/1e3+c;return Math.abs(y-d)e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function gSe(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 nw(e){return xSe(e)||bSe(e)||ySe(e)||vSe()}function vSe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ySe(e,t){if(e){if(typeof e=="string")return HC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return HC(e,t)}}function bSe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function xSe(e){if(Array.isArray(e))return HC(e)}function HC(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function qv(e){return qv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},qv(e)}var Da=function(e){OSe(n,e);var t=$Se(n);function n(r,o){var i;wSe(this,n),i=t.call(this,r,o);var a=i.props,s=a.isActive,l=a.attributeName,u=a.from,c=a.to,d=a.steps,f=a.children,h=a.duration;if(i.handleStyleChange=i.handleStyleChange.bind(WC(i)),i.changeStyle=i.changeStyle.bind(WC(i)),!s||h<=0)return i.state={style:{}},typeof f=="function"&&(i.state={style:c}),VC(i);if(d&&d.length)i.state={style:d[0].style};else if(u){if(typeof f=="function")return i.state={style:u},VC(i);i.state={style:l?$f({},l,u):u}}else i.state={style:{}};return i}return SSe(n,[{key:"componentDidMount",value:function(){var o=this.props,i=o.isActive,a=o.canBegin;this.mounted=!0,!(!i||!a)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(o){var i=this.props,a=i.isActive,s=i.canBegin,l=i.attributeName,u=i.shouldReAnimate,c=i.to,d=i.from,f=this.state.style;if(s){if(!a){var h={style:l?$f({},l,c):c};this.state&&f&&(l&&f[l]!==c||!l&&f!==c)&&this.setState(h);return}if(!(ACe(o.to,c)&&o.canBegin&&o.isActive)){var p=!o.canBegin||!o.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var m=p||u?d:o.to;if(this.state&&f){var y={style:l?$f({},l,m):m};(l&&f[l]!==m||!l&&f!==m)&&this.setState(y)}this.runAnimation(Jo(Jo({},this.props),{},{from:m,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var o=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),o&&o()}},{key:"handleStyleChange",value:function(o){this.changeStyle(o)}},{key:"changeStyle",value:function(o){this.mounted&&this.setState({style:o})}},{key:"runJSAnimation",value:function(o){var i=this,a=o.from,s=o.to,l=o.duration,u=o.easing,c=o.begin,d=o.onAnimationEnd,f=o.onAnimationStart,h=pSe(a,s,nSe(u),l,this.changeStyle),p=function(){i.stopJSAnimation=h()};this.manager.start([f,c,p,l,d])}},{key:"runStepAnimation",value:function(o){var i=this,a=o.steps,s=o.begin,l=o.onAnimationStart,u=a[0],c=u.style,d=u.duration,f=d===void 0?0:d,h=function(m,y,b){if(b===0)return m;var x=y.duration,w=y.easing,S=w===void 0?"ease":w,O=y.style,C=y.properties,$=y.onAnimationEnd,E=b>0?a[b-1]:y,M=C||Object.keys(O);if(typeof S=="function"||S==="spring")return[].concat(nw(m),[i.runJSAnimation.bind(i,{from:E.style,to:O,duration:x,easing:S}),x]);var _=D_(M,x,S),A=Jo(Jo(Jo({},E.style),O),{},{transition:_});return[].concat(nw(m),[A,x,$]).filter(VCe)};return this.manager.start([l].concat(nw(a.reduce(h,[c,Math.max(f,s)])),[o.onAnimationEnd]))}},{key:"runAnimation",value:function(o){this.manager||(this.manager=BCe());var i=o.begin,a=o.duration,s=o.attributeName,l=o.to,u=o.easing,c=o.onAnimationStart,d=o.onAnimationEnd,f=o.steps,h=o.children,p=this.manager;if(this.unSubscribe=p.subscribe(this.handleStyleChange),typeof u=="function"||typeof h=="function"||u==="spring"){this.runJSAnimation(o);return}if(f.length>1){this.runStepAnimation(o);return}var m=s?$f({},s,l):l,y=D_(Object.keys(m),a,u);p.start([c,i,Jo(Jo({},m),{},{transition:y}),a,d])}},{key:"render",value:function(){var o=this.props,i=o.children;o.begin;var a=o.duration;o.attributeName,o.easing;var s=o.isActive;o.steps,o.from,o.to,o.canBegin,o.onAnimationEnd,o.shouldReAnimate,o.onAnimationReStart;var l=mSe(o,hSe),u=v.Children.count(i),c=this.state.style;if(typeof i=="function")return i(c);if(!s||u===0||a<=0)return i;var d=function(h){var p=h.props,m=p.style,y=m===void 0?{}:m,b=p.className,x=v.cloneElement(h,Jo(Jo({},l),{},{style:Jo(Jo({},y),c),className:b}));return x};return u===1?d(v.Children.only(i)):q.createElement("div",null,v.Children.map(i,function(f){return d(f)}))}}]),n}(v.PureComponent);Da.displayName="Animate";Da.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};Da.propTypes={from:G.oneOfType([G.object,G.string]),to:G.oneOfType([G.object,G.string]),attributeName:G.string,duration:G.number,begin:G.number,easing:G.oneOfType([G.string,G.func]),steps:G.arrayOf(G.shape({duration:G.number.isRequired,style:G.object.isRequired,easing:G.oneOfType([G.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),G.func]),properties:G.arrayOf("string"),onAnimationEnd:G.func})),children:G.oneOfType([G.node,G.func]),isActive:G.bool,canBegin:G.bool,onAnimationEnd:G.func,shouldReAnimate:G.bool,onAnimationStart:G.func,onAnimationReStart:G.func};function Zp(e){"@babel/helpers - typeof";return Zp=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},Zp(e)}function Xv(){return Xv=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=0?1:-1,l=r>=0?1:-1,u=o>=0&&r>=0||o<0&&r<0?1:0,c;if(a>0&&i instanceof Array){for(var d=[0,0,0,0],f=0,h=4;fa?a:i[f];c="M".concat(t,",").concat(n+s*d[0]),d[0]>0&&(c+="A ".concat(d[0],",").concat(d[0],",0,0,").concat(u,",").concat(t+l*d[0],",").concat(n)),c+="L ".concat(t+r-l*d[1],",").concat(n),d[1]>0&&(c+="A ".concat(d[1],",").concat(d[1],",0,0,").concat(u,`, `).concat(t+r,",").concat(n+s*d[1])),c+="L ".concat(t+r,",").concat(n+o-s*d[2]),d[2]>0&&(c+="A ".concat(d[2],",").concat(d[2],",0,0,").concat(u,`, `).concat(t+r-l*d[2],",").concat(n+o)),c+="L ".concat(t+l*d[3],",").concat(n+o),d[3]>0&&(c+="A ".concat(d[3],",").concat(d[3],",0,0,").concat(u,`, `).concat(t,",").concat(n+o-s*d[3])),c+="Z"}else if(a>0&&i===+i&&i>0){var p=Math.min(a,i);c="M ".concat(t,",").concat(n+s*p,` A `).concat(p,",").concat(p,",0,0,").concat(u,",").concat(t+l*p,",").concat(n,` L `).concat(t+r-l*p,",").concat(n,` A `).concat(p,",").concat(p,",0,0,").concat(u,",").concat(t+r,",").concat(n+s*p,` L `).concat(t+r,",").concat(n+o-s*p,` A `).concat(p,",").concat(p,",0,0,").concat(u,",").concat(t+r-l*p,",").concat(n+o,` L `).concat(t+l*p,",").concat(n+o,` A `).concat(p,",").concat(p,",0,0,").concat(u,",").concat(t,",").concat(n+o-s*p," Z")}else c="M ".concat(t,",").concat(n," h ").concat(r," v ").concat(o," h ").concat(-r," Z");return c},DSe=function(t,n){if(!t||!n)return!1;var r=t.x,o=t.y,i=n.x,a=n.y,s=n.width,l=n.height;if(Math.abs(s)>0&&Math.abs(l)>0){var u=Math.min(i,i+s),c=Math.max(i,i+s),d=Math.min(a,a+l),f=Math.max(a,a+l);return r>=u&&r<=c&&o>=d&&o<=f}return!1},LSe={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},E$=function(t){var n=V_(V_({},LSe),t),r=v.useRef(),o=v.useState(-1),i=kSe(o,2),a=i[0],s=i[1];v.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var S=r.current.getTotalLength();S&&s(S)}catch{}},[]);var l=n.x,u=n.y,c=n.width,d=n.height,f=n.radius,h=n.className,p=n.animationEasing,m=n.animationDuration,y=n.animationBegin,b=n.isAnimationActive,x=n.isUpdateAnimationActive;if(l!==+l||u!==+u||c!==+c||d!==+d||c===0||d===0)return null;var w=Y("recharts-rectangle",h);return x?q.createElement(Da,{canBegin:a>0,from:{width:c,height:d,x:l,y:u},to:{width:c,height:d,x:l,y:u},duration:m,animationEasing:p,isActive:x},function(S){var O=S.width,C=S.height,$=S.x,E=S.y;return q.createElement(Da,{canBegin:a>0,from:"0px ".concat(a===-1?1:a,"px"),to:"".concat(a,"px 0px"),attributeName:"strokeDasharray",begin:y,duration:m,isActive:b,easing:p},q.createElement("path",Xv({},ft(n,!0),{className:w,d:W_($,E,O,C,f),ref:r})))}):q.createElement("path",Xv({},ft(n,!0),{className:w,d:W_(l,u,c,d,f)}))};function GC(){return GC=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function VSe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var WSe=function(t,n,r,o,i,a){return"M".concat(t,",").concat(i,"v").concat(o,"M").concat(a,",").concat(n,"h").concat(r)},GSe=function(t){var n=t.x,r=n===void 0?0:n,o=t.y,i=o===void 0?0:o,a=t.top,s=a===void 0?0:a,l=t.left,u=l===void 0?0:l,c=t.width,d=c===void 0?0:c,f=t.height,h=f===void 0?0:f,p=t.className,m=USe(t,FSe),y=NSe({x:r,y:i,top:s,left:u,width:d,height:h},m);return!Me(r)||!Me(i)||!Me(d)||!Me(h)||!Me(s)||!Me(u)?null:q.createElement("path",KC({},ft(y,!0),{className:Y("recharts-cross",p),d:WSe(r,i,d,h,s,u)}))},KSe=bB,qSe=KSe(Object.getPrototypeOf,Object),XSe=qSe,YSe=Na,QSe=XSe,ZSe=Ba,JSe="[object Object]",ePe=Function.prototype,tPe=Object.prototype,e4=ePe.toString,nPe=tPe.hasOwnProperty,rPe=e4.call(Object);function oPe(e){if(!ZSe(e)||YSe(e)!=JSe)return!1;var t=QSe(e);if(t===null)return!0;var n=nPe.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&e4.call(n)==rPe}var iPe=oPe;const aPe=Bt(iPe);var sPe=Na,lPe=Ba,uPe="[object Boolean]";function cPe(e){return e===!0||e===!1||lPe(e)&&sPe(e)==uPe}var dPe=cPe;const fPe=Bt(dPe);function eh(e){"@babel/helpers - typeof";return eh=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},eh(e)}function Yv(){return Yv=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0,from:{upperWidth:0,lowerWidth:0,height:f,x:l,y:u},to:{upperWidth:c,lowerWidth:d,height:f,x:l,y:u},duration:m,animationEasing:p,isActive:b},function(w){var S=w.upperWidth,O=w.lowerWidth,C=w.height,$=w.x,E=w.y;return q.createElement(Da,{canBegin:a>0,from:"0px ".concat(a===-1?1:a,"px"),to:"".concat(a,"px 0px"),attributeName:"strokeDasharray",begin:y,duration:m,easing:p},q.createElement("path",Yv({},ft(n,!0),{className:x,d:Y_($,E,S,O,C),ref:r})))}):q.createElement("g",null,q.createElement("path",Yv({},ft(n,!0),{className:x,d:Y_(l,u,c,d,f)})))},SPe=["option","shapeType","propTransformer","activeClassName","isActive"];function th(e){"@babel/helpers - typeof";return th=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},th(e)}function PPe(e,t){if(e==null)return{};var n=OPe(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function OPe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Q_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Qv(e){for(var t=1;t0&&r.handleDrag(o.changedTouches[0])}),Qr(r,"handleDragEnd",function(){r.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var o=r.props,i=o.endIndex,a=o.onDragEnd,s=o.startIndex;a==null||a({endIndex:i,startIndex:s})}),r.detachDragEndListener()}),Qr(r,"handleLeaveWrapper",function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))}),Qr(r,"handleEnterSlideOrTraveller",function(){r.setState({isTextActive:!0})}),Qr(r,"handleLeaveSlideOrTraveller",function(){r.setState({isTextActive:!1})}),Qr(r,"handleSlideDragStart",function(o){var i=oA(o)?o.changedTouches[0]:o;r.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:i.pageX}),r.attachDragEndListener()}),r.travellerDragStartHandlers={startX:r.handleTravellerDragStart.bind(r,"startX"),endX:r.handleTravellerDragStart.bind(r,"endX")},r.state={},r}return cOe(t,e),aOe(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(r){var o=r.startX,i=r.endX,a=this.state.scaleValues,s=this.props,l=s.gap,u=s.data,c=u.length-1,d=Math.min(o,i),f=Math.max(o,i),h=t.getIndexInRange(a,d),p=t.getIndexInRange(a,f);return{startIndex:h-h%l,endIndex:p===c?c:p-p%l}}},{key:"getTextOfTick",value:function(r){var o=this.props,i=o.data,a=o.tickFormatter,s=o.dataKey,l=fo(i[r],s,r);return lt(a)?a(l,r):l}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(r){var o=this.state,i=o.slideMoveStartX,a=o.startX,s=o.endX,l=this.props,u=l.x,c=l.width,d=l.travellerWidth,f=l.startIndex,h=l.endIndex,p=l.onChange,m=r.pageX-i;m>0?m=Math.min(m,u+c-d-s,u+c-d-a):m<0&&(m=Math.max(m,u-a,u-s));var y=this.getIndex({startX:a+m,endX:s+m});(y.startIndex!==f||y.endIndex!==h)&&p&&p(y),this.setState({startX:a+m,endX:s+m,slideMoveStartX:r.pageX})}},{key:"handleTravellerDragStart",value:function(r,o){var i=oA(o)?o.changedTouches[0]:o;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:r,brushMoveStartX:i.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(r){var o=this.state,i=o.brushMoveStartX,a=o.movingTravellerId,s=o.endX,l=o.startX,u=this.state[a],c=this.props,d=c.x,f=c.width,h=c.travellerWidth,p=c.onChange,m=c.gap,y=c.data,b={startX:this.state.startX,endX:this.state.endX},x=r.pageX-i;x>0?x=Math.min(x,d+f-h-u):x<0&&(x=Math.max(x,d-u)),b[a]=u+x;var w=this.getIndex(b),S=w.startIndex,O=w.endIndex,C=function(){var E=y.length-1;return a==="startX"&&(s>l?S%m===0:O%m===0)||sl?O%m===0:S%m===0)||s>l&&O===E};this.setState(Qr(Qr({},a,u+x),"brushMoveStartX",r.pageX),function(){p&&C()&&p(w)})}},{key:"handleTravellerMoveKeyboard",value:function(r,o){var i=this,a=this.state,s=a.scaleValues,l=a.startX,u=a.endX,c=this.state[o],d=s.indexOf(c);if(d!==-1){var f=d+r;if(!(f===-1||f>=s.length)){var h=s[f];o==="startX"&&h>=u||o==="endX"&&h<=l||this.setState(Qr({},o,h),function(){i.props.onChange(i.getIndex({startX:i.state.startX,endX:i.state.endX}))})}}}},{key:"renderBackground",value:function(){var r=this.props,o=r.x,i=r.y,a=r.width,s=r.height,l=r.fill,u=r.stroke;return q.createElement("rect",{stroke:u,fill:l,x:o,y:i,width:a,height:s})}},{key:"renderPanorama",value:function(){var r=this.props,o=r.x,i=r.y,a=r.width,s=r.height,l=r.data,u=r.children,c=r.padding,d=v.Children.only(u);return d?q.cloneElement(d,{x:o,y:i,width:a,height:s,margin:c,compact:!0,data:l}):null}},{key:"renderTravellerLayer",value:function(r,o){var i,a,s=this,l=this.props,u=l.y,c=l.travellerWidth,d=l.height,f=l.traveller,h=l.ariaLabel,p=l.data,m=l.startIndex,y=l.endIndex,b=Math.max(r,this.props.x),x=ow(ow({},ft(this.props,!1)),{},{x:b,y:u,width:c,height:d}),w=h||"Min value: ".concat((i=p[m])===null||i===void 0?void 0:i.name,", Max value: ").concat((a=p[y])===null||a===void 0?void 0:a.name);return q.createElement(rn,{tabIndex:0,role:"slider","aria-label":w,"aria-valuenow":r,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[o],onTouchStart:this.travellerDragStartHandlers[o],onKeyDown:function(O){["ArrowLeft","ArrowRight"].includes(O.key)&&(O.preventDefault(),O.stopPropagation(),s.handleTravellerMoveKeyboard(O.key==="ArrowRight"?1:-1,o))},onFocus:function(){s.setState({isTravellerFocused:!0})},onBlur:function(){s.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(f,x))}},{key:"renderSlide",value:function(r,o){var i=this.props,a=i.y,s=i.height,l=i.stroke,u=i.travellerWidth,c=Math.min(r,o)+u,d=Math.max(Math.abs(o-r)-u,0);return q.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:l,fillOpacity:.2,x:c,y:a,width:d,height:s})}},{key:"renderText",value:function(){var r=this.props,o=r.startIndex,i=r.endIndex,a=r.y,s=r.height,l=r.travellerWidth,u=r.stroke,c=this.state,d=c.startX,f=c.endX,h=5,p={pointerEvents:"none",fill:u};return q.createElement(rn,{className:"recharts-brush-texts"},q.createElement(Ev,Jv({textAnchor:"end",verticalAnchor:"middle",x:Math.min(d,f)-h,y:a+s/2},p),this.getTextOfTick(o)),q.createElement(Ev,Jv({textAnchor:"start",verticalAnchor:"middle",x:Math.max(d,f)+l+h,y:a+s/2},p),this.getTextOfTick(i)))}},{key:"render",value:function(){var r=this.props,o=r.data,i=r.className,a=r.children,s=r.x,l=r.y,u=r.width,c=r.height,d=r.alwaysShowText,f=this.state,h=f.startX,p=f.endX,m=f.isTextActive,y=f.isSlideMoving,b=f.isTravellerMoving,x=f.isTravellerFocused;if(!o||!o.length||!Me(s)||!Me(l)||!Me(u)||!Me(c)||u<=0||c<=0)return null;var w=Y("recharts-brush",i),S=q.Children.count(a)===1,O=oOe("userSelect","none");return q.createElement(rn,{className:w,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:O},this.renderBackground(),S&&this.renderPanorama(),this.renderSlide(h,p),this.renderTravellerLayer(h,"startX"),this.renderTravellerLayer(p,"endX"),(m||y||b||x||d)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(r){var o=r.x,i=r.y,a=r.width,s=r.height,l=r.stroke,u=Math.floor(i+s/2)-1;return q.createElement(q.Fragment,null,q.createElement("rect",{x:o,y:i,width:a,height:s,fill:l,stroke:"none"}),q.createElement("line",{x1:o+1,y1:u,x2:o+a-1,y2:u,fill:"none",stroke:"#fff"}),q.createElement("line",{x1:o+1,y1:u+2,x2:o+a-1,y2:u+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(r,o){var i;return q.isValidElement(r)?i=q.cloneElement(r,o):lt(r)?i=r(o):i=t.renderDefaultTraveller(o),i}},{key:"getDerivedStateFromProps",value:function(r,o){var i=r.data,a=r.width,s=r.x,l=r.travellerWidth,u=r.updateId,c=r.startIndex,d=r.endIndex;if(i!==o.prevData||u!==o.prevUpdateId)return ow({prevData:i,prevTravellerWidth:l,prevUpdateId:u,prevX:s,prevWidth:a},i&&i.length?fOe({data:i,width:a,x:s,travellerWidth:l,startIndex:c,endIndex:d}):{scale:null,scaleValues:null});if(o.scale&&(a!==o.prevWidth||s!==o.prevX||l!==o.prevTravellerWidth)){o.scale.range([s,s+a-l]);var f=o.scale.domain().map(function(h){return o.scale(h)});return{prevData:i,prevTravellerWidth:l,prevUpdateId:u,prevX:s,prevWidth:a,startX:o.scale(r.startIndex),endX:o.scale(r.endIndex),scaleValues:f}}return null}},{key:"getIndexInRange",value:function(r,o){for(var i=r.length,a=0,s=i-1;s-a>1;){var l=Math.floor((a+s)/2);r[l]>o?s=l:a=l}return o>=r[s]?s:a}}])}(v.PureComponent);Qr(qc,"displayName","Brush");Qr(qc,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var pOe=JO;function hOe(e,t){var n;return pOe(e,function(r,o,i){return n=t(r,o,i),!n}),!!n}var mOe=hOe,gOe=dB,vOe=Rd,yOe=mOe,bOe=Kr,xOe=u0;function wOe(e,t,n){var r=bOe(e)?gOe:yOe;return n&&xOe(e,t,n)&&(t=void 0),r(e,vOe(t))}var COe=wOe;const SOe=Bt(COe);var Ki=function(t,n){var r=t.alwaysShow,o=t.ifOverflow;return r&&(o="extendDomain"),o===n},iA=_B;function POe(e,t,n){t=="__proto__"&&iA?iA(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var OOe=POe,$Oe=OOe,EOe=TB,kOe=Rd;function IOe(e,t){var n={};return t=kOe(t),EOe(e,function(r,o,i){$Oe(n,o,t(r,o,i))}),n}var TOe=IOe;const MOe=Bt(TOe);function _Oe(e,t){for(var n=-1,r=e==null?0:e.length;++n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function YOe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function QOe(e,t){var n=e.x,r=e.y,o=XOe(e,WOe),i="".concat(n),a=parseInt(i,10),s="".concat(r),l=parseInt(s,10),u="".concat(t.height||o.height),c=parseInt(u,10),d="".concat(t.width||o.width),f=parseInt(d,10);return gf(gf(gf(gf(gf({},t),o),a?{x:a}:{}),l?{y:l}:{}),{},{height:c,width:f,name:t.name,radius:t.radius})}function sA(e){return q.createElement(_Pe,XC({shapeType:"rectangle",propTransformer:QOe,activeClassName:"recharts-active-bar"},e))}var ZOe=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(r,o){if(typeof t=="number")return t;var i=Me(r)||fse(r);return i?t(r,o):(i||eu(),n)}},JOe=["value","background"],o4;function Xc(e){"@babel/helpers - typeof";return Xc=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},Xc(e)}function e$e(e,t){if(e==null)return{};var n=t$e(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function t$e(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function ty(){return ty=Object.assign?Object.assign.bind():function(e){for(var t=1;t0&&Math.abs(k)0&&Math.abs(I)0&&(R=Math.min((W||0)-(I[ee-1]||0),R))}),Number.isFinite(R)){var k=R/j,D=m.layout==="vertical"?r.height:r.width;if(m.padding==="gap"&&($=k*D/2),m.padding==="no-gap"){var F=Zl(t.barCategoryGap,k*D),T=k*D/2;$=T-F-(T-F)/D*F}}}o==="xAxis"?E=[r.left+(w.left||0)+($||0),r.left+r.width-(w.right||0)-($||0)]:o==="yAxis"?E=l==="horizontal"?[r.top+r.height-(w.bottom||0),r.top+(w.top||0)]:[r.top+(w.top||0)+($||0),r.top+r.height-(w.bottom||0)-($||0)]:E=m.range,O&&(E=[E[1],E[0]]);var L=jwe(m,i,f),N=L.scale,z=L.realScaleType;N.domain(b).range(E),Dwe(N);var B=Vwe(N,ii(ii({},m),{},{realScaleType:z}));o==="xAxis"?(A=y==="top"&&!S||y==="bottom"&&S,M=r.left,_=d[C]-A*m.height):o==="yAxis"&&(A=y==="left"&&!S||y==="right"&&S,M=d[C]-A*m.width,_=r.top);var V=ii(ii(ii({},m),B),{},{realScaleType:z,x:M,y:_,scale:N,width:o==="xAxis"?r.width:m.width,height:o==="yAxis"?r.height:m.height});return V.bandSize=Hv(V,B),!m.hide&&o==="xAxis"?d[C]+=(A?-1:1)*V.height:m.hide||(d[C]+=(A?-1:1)*V.width),ii(ii({},h),{},C0({},p,V))},{})},l4=function(t,n){var r=t.x,o=t.y,i=n.x,a=n.y;return{x:Math.min(r,i),y:Math.min(o,a),width:Math.abs(i-r),height:Math.abs(a-o)}},p$e=function(t){var n=t.x1,r=t.y1,o=t.x2,i=t.y2;return l4({x:n,y:r},{x:o,y:i})},u4=function(){function e(t){u$e(this,e),this.scale=t}return c$e(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=r.bandAware,i=r.position;if(n!==void 0){if(i)switch(i){case"start":return this.scale(n);case"middle":{var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+a}case"end":{var s=this.bandwidth?this.bandwidth():0;return this.scale(n)+s}default:return this.scale(n)}if(o){var l=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+l}return this.scale(n)}}},{key:"isInRange",value:function(n){var r=this.range(),o=r[0],i=r[r.length-1];return o<=i?n>=o&&n<=i:n>=i&&n<=o}}],[{key:"create",value:function(n){return new e(n)}}])}();C0(u4,"EPS",1e-4);var I$=function(t){var n=Object.keys(t).reduce(function(r,o){return ii(ii({},r),{},C0({},o,u4.create(t[o])))},{});return ii(ii({},n),{},{apply:function(o){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=i.bandAware,s=i.position;return MOe(o,function(l,u){return n[u].apply(l,{bandAware:a,position:s})})},isInRange:function(o){return VOe(o,function(i,a){return n[a].isInRange(i)})}})};function h$e(e){return(e%180+180)%180}var m$e=function(t){var n=t.width,r=t.height,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=h$e(o),a=i*Math.PI/180,s=Math.atan(r/n),l=a>s&&ae.length)&&(t=e.length);for(var n=0,r=new Array(t);ne*o)return!1;var i=n();return e*(t-e*i/2-r)>=0&&e*(t+e*i/2-o)<=0}function nEe(e,t){return $4(e,t+1)}function rEe(e,t,n,r,o){for(var i=(r||[]).slice(),a=t.start,s=t.end,l=0,u=1,c=a,d=function(){var p=r==null?void 0:r[l];if(p===void 0)return{v:$4(r,u)};var m=l,y,b=function(){return y===void 0&&(y=n(p,m)),y},x=p.coordinate,w=l===0||ay(e,x,b,c,s);w||(l=0,c=a,u+=1),w&&(c=x+e*(b()/2+o),l+=u)},f;u<=i.length;)if(f=d(),f)return f.v;return[]}function ah(e){"@babel/helpers - typeof";return ah=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},ah(e)}function xA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function ur(e){for(var t=1;t0?h.coordinate-y*e:h.coordinate})}else i[f]=h=ur(ur({},h),{},{tickCoord:h.coordinate});var b=ay(e,h.tickCoord,m,s,l);b&&(l=h.tickCoord-e*(m()/2+o),i[f]=ur(ur({},h),{},{isShow:!0}))},c=a-1;c>=0;c--)u(c);return i}function lEe(e,t,n,r,o,i){var a=(r||[]).slice(),s=a.length,l=t.start,u=t.end;if(i){var c=r[s-1],d=n(c,s-1),f=e*(c.coordinate+e*d/2-u);a[s-1]=c=ur(ur({},c),{},{tickCoord:f>0?c.coordinate-f*e:c.coordinate});var h=ay(e,c.tickCoord,function(){return d},l,u);h&&(u=c.tickCoord-e*(d/2+o),a[s-1]=ur(ur({},c),{},{isShow:!0}))}for(var p=i?s-1:s,m=function(x){var w=a[x],S,O=function(){return S===void 0&&(S=n(w,x)),S};if(x===0){var C=e*(w.coordinate-e*O()/2-l);a[x]=w=ur(ur({},w),{},{tickCoord:C<0?w.coordinate-C*e:w.coordinate})}else a[x]=w=ur(ur({},w),{},{tickCoord:w.coordinate});var $=ay(e,w.tickCoord,O,l,u);$&&(l=w.tickCoord+e*(O()/2+o),a[x]=ur(ur({},w),{},{isShow:!0}))},y=0;y=2?di(o[1].coordinate-o[0].coordinate):1,b=tEe(i,y,h);return l==="equidistantPreserveStart"?rEe(y,b,m,o,a):(l==="preserveStart"||l==="preserveStartEnd"?f=lEe(y,b,m,o,a,l==="preserveStartEnd"):f=sEe(y,b,m,o,a),f.filter(function(x){return x.isShow}))}var cEe=["viewBox"],dEe=["viewBox"],fEe=["ticks"];function Jc(e){"@babel/helpers - typeof";return Jc=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},Jc(e)}function Ku(){return Ku=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function pEe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function hEe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function CA(e,t){for(var n=0;n0?l(this.props):l(h)),a<=0||s<=0||!p||!p.length?null:q.createElement(rn,{className:Y("recharts-cartesian-axis",u),ref:function(y){r.layerReference=y}},i&&this.renderAxisLine(),this.renderTicks(p,this.state.fontSize,this.state.letterSpacing),dr.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(r,o,i){var a,s=Y(o.className,"recharts-cartesian-axis-tick-value");return q.isValidElement(r)?a=q.cloneElement(r,$n($n({},o),{},{className:s})):lt(r)?a=r($n($n({},o),{},{className:s})):a=q.createElement(Ev,Ku({},o,{className:"recharts-cartesian-axis-tick-value"}),i),a}}])}(v.Component);_$(E0,"displayName","CartesianAxis");_$(E0,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var wEe=["layout","type","stroke","connectNulls","isRange","ref"],CEe=["key"],I4;function ed(e){"@babel/helpers - typeof";return ed=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},ed(e)}function T4(e,t){if(e==null)return{};var n=SEe(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function SEe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function gl(){return gl=Object.assign?Object.assign.bind():function(e){for(var t=1;t0||!Np(c,a)||!Np(d,s))?this.renderAreaWithAnimation(r,o):this.renderAreaStatically(a,s,r,o)}},{key:"render",value:function(){var r,o=this.props,i=o.hide,a=o.dot,s=o.points,l=o.className,u=o.top,c=o.left,d=o.xAxis,f=o.yAxis,h=o.width,p=o.height,m=o.isAnimationActive,y=o.id;if(i||!s||!s.length)return null;var b=this.state.isAnimationFinished,x=s.length===1,w=Y("recharts-area",l),S=d&&d.allowDataOverflow,O=f&&f.allowDataOverflow,C=S||O,$=pt(y)?this.id:y,E=(r=ft(a,!1))!==null&&r!==void 0?r:{r:3,strokeWidth:2},M=E.r,_=M===void 0?3:M,A=E.strokeWidth,j=A===void 0?2:A,R=Pse(a)?a:{},I=R.clipDot,k=I===void 0?!0:I,D=_*2+j;return q.createElement(rn,{className:w},S||O?q.createElement("defs",null,q.createElement("clipPath",{id:"clipPath-".concat($)},q.createElement("rect",{x:S?c:c-h/2,y:O?u:u-p/2,width:S?h:h*2,height:O?p:p*2})),!k&&q.createElement("clipPath",{id:"clipPath-dots-".concat($)},q.createElement("rect",{x:c-D/2,y:u-D/2,width:h+D,height:p+D}))):null,x?null:this.renderArea(C,$),(a||x)&&this.renderDots(C,k,$),(!m||b)&&_s.renderCallByParent(this.props,s))}}],[{key:"getDerivedStateFromProps",value:function(r,o){return r.animationId!==o.prevAnimationId?{prevAnimationId:r.animationId,curPoints:r.points,curBaseLine:r.baseLine,prevPoints:o.curPoints,prevBaseLine:o.curBaseLine}:r.points!==o.curPoints||r.baseLine!==o.curBaseLine?{curPoints:r.points,curBaseLine:r.baseLine}:null}}])}(v.PureComponent);I4=qs;Ni(qs,"displayName","Area");Ni(qs,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!jd.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});Ni(qs,"getBaseValue",function(e,t,n,r){var o=e.layout,i=e.baseValue,a=t.props.baseValue,s=a??i;if(Me(s)&&typeof s=="number")return s;var l=o==="horizontal"?r:n,u=l.scale.domain();if(l.type==="number"){var c=Math.max(u[0],u[1]),d=Math.min(u[0],u[1]);return s==="dataMin"?d:s==="dataMax"||c<0?c:Math.max(Math.min(u[0],u[1]),0)}return s==="dataMin"?u[0]:s==="dataMax"?u[1]:u[0]});Ni(qs,"getComposedData",function(e){var t=e.props,n=e.item,r=e.xAxis,o=e.yAxis,i=e.xAxisTicks,a=e.yAxisTicks,s=e.bandSize,l=e.dataKey,u=e.stackedData,c=e.dataStartIndex,d=e.displayedData,f=e.offset,h=t.layout,p=u&&u.length,m=I4.getBaseValue(t,n,r,o),y=h==="horizontal",b=!1,x=d.map(function(S,O){var C;p?C=u[c+O]:(C=fo(S,l),Array.isArray(C)?b=!0:C=[m,C]);var $=C[1]==null||p&&fo(S,l)==null;return y?{x:c_({axis:r,ticks:i,bandSize:s,entry:S,index:O}),y:$?null:o.scale(C[1]),value:C,payload:S}:{x:$?null:r.scale(C[1]),y:c_({axis:o,ticks:a,bandSize:s,entry:S,index:O}),value:C,payload:S}}),w;return p||b?w=x.map(function(S){var O=Array.isArray(S.value)?S.value[0]:null;return y?{x:S.x,y:O!=null&&S.y!=null?o.scale(O):null}:{x:O!=null?r.scale(O):null,y:S.y}}):w=y?o.scale(m):r.scale(m),Ga({points:x,baseLine:w,layout:h,isRange:b},f)});Ni(qs,"renderDotItem",function(e,t){var n;if(q.isValidElement(e))n=q.cloneElement(e,t);else if(lt(e))n=e(t);else{var r=Y("recharts-area-dot",typeof e!="boolean"?e.className:""),o=t.key,i=T4(t,CEe);n=q.createElement(k$,gl({},i,{key:o,className:r}))}return n});function td(e){"@babel/helpers - typeof";return td=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},td(e)}function MEe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _Ee(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function yke(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function bke(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xke(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0?a:t&&t.length&&Me(o)&&Me(i)?t.slice(o,i+1):[]};function G4(e){return e==="number"?[0,"auto"]:void 0}var pS=function(t,n,r,o){var i=t.graphicalItems,a=t.tooltipAxis,s=k0(n,t);return r<0||!i||!i.length||r>=s.length?null:i.reduce(function(l,u){var c,d=(c=u.props.data)!==null&&c!==void 0?c:n;d&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=r&&(d=d.slice(t.dataStartIndex,t.dataEndIndex+1));var f;if(a.dataKey&&!a.allowDuplicatedCategory){var h=d===void 0?s:d;f=dv(h,a.dataKey,o)}else f=d&&d[r]||s[r];return f?[].concat(od(l),[U5(u,f)]):l},[])},TA=function(t,n,r,o){var i=o||{x:t.chartX,y:t.chartY},a=_ke(i,r),s=t.orderedTooltipTicks,l=t.tooltipAxis,u=t.tooltipTicks,c=Iwe(a,s,u,l);if(c>=0&&u){var d=u[c]&&u[c].value,f=pS(t,n,c,d),h=Ake(r,s,c,i);return{activeTooltipIndex:c,activeLabel:d,activePayload:f,activeCoordinate:h}}return null},Rke=function(t,n){var r=n.axes,o=n.graphicalItems,i=n.axisType,a=n.axisIdKey,s=n.stackGroups,l=n.dataStartIndex,u=n.dataEndIndex,c=t.layout,d=t.children,f=t.stackOffset,h=z5(c,i);return r.reduce(function(p,m){var y,b=m.type.defaultProps!==void 0?de(de({},m.type.defaultProps),m.props):m.props,x=b.type,w=b.dataKey,S=b.allowDataOverflow,O=b.allowDuplicatedCategory,C=b.scale,$=b.ticks,E=b.includeHidden,M=b[a];if(p[M])return p;var _=k0(t.data,{graphicalItems:o.filter(function(B){var V,W=a in B.props?B.props[a]:(V=B.type.defaultProps)===null||V===void 0?void 0:V[a];return W===M}),dataStartIndex:l,dataEndIndex:u}),A=_.length,j,R,I;ake(b.domain,S,x)&&(j=_C(b.domain,null,S),h&&(x==="number"||C!=="auto")&&(I=Gf(_,w,"category")));var k=G4(x);if(!j||j.length===0){var D,F=(D=b.domain)!==null&&D!==void 0?D:k;if(w){if(j=Gf(_,w,x),x==="category"&&h){var T=hse(j);O&&T?(R=j,j=Zv(0,A)):O||(j=h_(F,j,m).reduce(function(B,V){return B.indexOf(V)>=0?B:[].concat(od(B),[V])},[]))}else if(x==="category")O?j=j.filter(function(B){return B!==""&&!pt(B)}):j=h_(F,j,m).reduce(function(B,V){return B.indexOf(V)>=0||V===""||pt(V)?B:[].concat(od(B),[V])},[]);else if(x==="number"){var L=Rwe(_,o.filter(function(B){var V,W,ee=a in B.props?B.props[a]:(V=B.type.defaultProps)===null||V===void 0?void 0:V[a],pe="hide"in B.props?B.props.hide:(W=B.type.defaultProps)===null||W===void 0?void 0:W.hide;return ee===M&&(E||!pe)}),w,i,c);L&&(j=L)}h&&(x==="number"||C!=="auto")&&(I=Gf(_,w,"category"))}else h?j=Zv(0,A):s&&s[M]&&s[M].hasStack&&x==="number"?j=f==="expand"?[0,1]:H5(s[M].stackGroups,l,u):j=B5(_,o.filter(function(B){var V=a in B.props?B.props[a]:B.type.defaultProps[a],W="hide"in B.props?B.props.hide:B.type.defaultProps.hide;return V===M&&(E||!W)}),x,c,!0);if(x==="number")j=cS(d,j,M,i,$),F&&(j=_C(F,j,S));else if(x==="category"&&F){var N=F,z=j.every(function(B){return N.indexOf(B)>=0});z&&(j=N)}}return de(de({},p),{},Je({},M,de(de({},b),{},{axisType:i,domain:j,categoricalDomain:I,duplicateDomain:R,originalDomain:(y=b.domain)!==null&&y!==void 0?y:k,isCategorical:h,layout:c})))},{})},jke=function(t,n){var r=n.graphicalItems,o=n.Axis,i=n.axisType,a=n.axisIdKey,s=n.stackGroups,l=n.dataStartIndex,u=n.dataEndIndex,c=t.layout,d=t.children,f=k0(t.data,{graphicalItems:r,dataStartIndex:l,dataEndIndex:u}),h=f.length,p=z5(c,i),m=-1;return r.reduce(function(y,b){var x=b.type.defaultProps!==void 0?de(de({},b.type.defaultProps),b.props):b.props,w=x[a],S=G4("number");if(!y[w]){m++;var O;return p?O=Zv(0,h):s&&s[w]&&s[w].hasStack?(O=H5(s[w].stackGroups,l,u),O=cS(d,O,w,i)):(O=_C(S,B5(f,r.filter(function(C){var $,E,M=a in C.props?C.props[a]:($=C.type.defaultProps)===null||$===void 0?void 0:$[a],_="hide"in C.props?C.props.hide:(E=C.type.defaultProps)===null||E===void 0?void 0:E.hide;return M===w&&!_}),"number",c),o.defaultProps.allowDataOverflow),O=cS(d,O,w,i)),de(de({},y),{},Je({},w,de(de({axisType:i},o.defaultProps),{},{hide:!0,orientation:Fo(Tke,"".concat(i,".").concat(m%2),null),domain:O,originalDomain:S,isCategorical:p,layout:c})))}return y},{})},Dke=function(t,n){var r=n.axisType,o=r===void 0?"xAxis":r,i=n.AxisComp,a=n.graphicalItems,s=n.stackGroups,l=n.dataStartIndex,u=n.dataEndIndex,c=t.children,d="".concat(o,"Id"),f=vi(c,i),h={};return f&&f.length?h=Rke(t,{axes:f,graphicalItems:a,axisType:o,axisIdKey:d,stackGroups:s,dataStartIndex:l,dataEndIndex:u}):a&&a.length&&(h=jke(t,{Axis:i,graphicalItems:a,axisType:o,axisIdKey:d,stackGroups:s,dataStartIndex:l,dataEndIndex:u})),h},Lke=function(t){var n=Iu(t),r=ml(n,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:e$(r,function(o){return o.coordinate}),tooltipAxis:n,tooltipAxisBandSize:Hv(n,r)}},MA=function(t){var n=t.children,r=t.defaultShowTooltip,o=Jr(n,qc),i=0,a=0;return t.data&&t.data.length!==0&&(a=t.data.length-1),o&&o.props&&(o.props.startIndex>=0&&(i=o.props.startIndex),o.props.endIndex>=0&&(a=o.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:i,dataEndIndex:a,activeTooltipIndex:-1,isTooltipActive:!!r}},Fke=function(t){return!t||!t.length?!1:t.some(function(n){var r=Ca(n&&n.type);return r&&r.indexOf("Bar")>=0})},_A=function(t){return t==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:t==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:t==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},Nke=function(t,n){var r=t.props,o=t.graphicalItems,i=t.xAxisMap,a=i===void 0?{}:i,s=t.yAxisMap,l=s===void 0?{}:s,u=r.width,c=r.height,d=r.children,f=r.margin||{},h=Jr(d,qc),p=Jr(d,sc),m=Object.keys(l).reduce(function(O,C){var $=l[C],E=$.orientation;return!$.mirror&&!$.hide?de(de({},O),{},Je({},E,O[E]+$.width)):O},{left:f.left||0,right:f.right||0}),y=Object.keys(a).reduce(function(O,C){var $=a[C],E=$.orientation;return!$.mirror&&!$.hide?de(de({},O),{},Je({},E,Fo(O,"".concat(E))+$.height)):O},{top:f.top||0,bottom:f.bottom||0}),b=de(de({},y),m),x=b.bottom;h&&(b.bottom+=h.props.height||qc.defaultProps.height),p&&n&&(b=_we(b,o,r,n));var w=u-b.left-b.right,S=c-b.top-b.bottom;return de(de({brushBottom:x},b),{},{width:Math.max(w,0),height:Math.max(S,0)})},Bke=function(t,n){if(n==="xAxis")return t[n].width;if(n==="yAxis")return t[n].height},zke=function(t){var n=t.chartName,r=t.GraphicalChild,o=t.defaultTooltipEventType,i=o===void 0?"axis":o,a=t.validateTooltipEventTypes,s=a===void 0?["axis"]:a,l=t.axisComponents,u=t.legendContent,c=t.formatAxisMap,d=t.defaultProps,f=function(b,x){var w=x.graphicalItems,S=x.stackGroups,O=x.offset,C=x.updateId,$=x.dataStartIndex,E=x.dataEndIndex,M=b.barSize,_=b.layout,A=b.barGap,j=b.barCategoryGap,R=b.maxBarSize,I=_A(_),k=I.numericAxisName,D=I.cateAxisName,F=Fke(w),T=[];return w.forEach(function(L,N){var z=k0(b.data,{graphicalItems:[L],dataStartIndex:$,dataEndIndex:E}),B=L.type.defaultProps!==void 0?de(de({},L.type.defaultProps),L.props):L.props,V=B.dataKey,W=B.maxBarSize,ee=B["".concat(k,"Id")],pe=B["".concat(D,"Id")],be={},ye=l.reduce(function(Re,Ee){var me=x["".concat(Ee.axisType,"Map")],xe=B["".concat(Ee.axisType,"Id")];me&&me[xe]||Ee.axisType==="zAxis"||eu();var ke=me[xe];return de(de({},Re),{},Je(Je({},Ee.axisType,ke),"".concat(Ee.axisType,"Ticks"),ml(ke)))},be),J=ye[D],fe=ye["".concat(D,"Ticks")],ce=S&&S[ee]&&S[ee].hasStack&&Gwe(L,S[ee].stackGroups),K=Ca(L.type).indexOf("Bar")>=0,Z=Hv(J,fe),ie=[],re=F&&Twe({barSize:M,stackGroups:S,totalSize:Bke(ye,D)});if(K){var ae,we,ge=pt(W)?R:W,je=(ae=(we=Hv(J,fe,!0))!==null&&we!==void 0?we:ge)!==null&&ae!==void 0?ae:0;ie=Mwe({barGap:A,barCategoryGap:j,bandSize:je!==Z?je:Z,sizeList:re[pe],maxBarSize:ge}),je!==Z&&(ie=ie.map(function(Re){return de(de({},Re),{},{position:de(de({},Re.position),{},{offset:Re.position.offset-je/2})})}))}var $e=L&&L.type&&L.type.getComposedData;$e&&T.push({props:de(de({},$e(de(de({},ye),{},{displayedData:z,props:b,dataKey:V,item:L,bandSize:Z,barPosition:ie,offset:O,stackedData:ce,layout:_,dataStartIndex:$,dataEndIndex:E}))),{},Je(Je(Je({key:L.key||"item-".concat(N)},k,ye[k]),D,ye[D]),"animationId",C)),childIndex:Ese(L,b.children),item:L})}),T},h=function(b,x){var w=b.props,S=b.dataStartIndex,O=b.dataEndIndex,C=b.updateId;if(!sT({props:w}))return null;var $=w.children,E=w.layout,M=w.stackOffset,_=w.data,A=w.reverseStackOrder,j=_A(E),R=j.numericAxisName,I=j.cateAxisName,k=vi($,r),D=Uwe(_,k,"".concat(R,"Id"),"".concat(I,"Id"),M,A),F=l.reduce(function(B,V){var W="".concat(V.axisType,"Map");return de(de({},B),{},Je({},W,Dke(w,de(de({},V),{},{graphicalItems:k,stackGroups:V.axisType===R&&D,dataStartIndex:S,dataEndIndex:O}))))},{}),T=Nke(de(de({},F),{},{props:w,graphicalItems:k}),x==null?void 0:x.legendBBox);Object.keys(F).forEach(function(B){F[B]=c(w,F[B],T,B.replace("Map",""),n)});var L=F["".concat(I,"Map")],N=Lke(L),z=f(w,de(de({},F),{},{dataStartIndex:S,dataEndIndex:O,updateId:C,graphicalItems:k,stackGroups:D,offset:T}));return de(de({formattedGraphicalItems:z,graphicalItems:k,offset:T,stackGroups:D},N),F)},p=function(y){function b(x){var w,S,O;return bke(this,b),O=Cke(this,b,[x]),Je(O,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),Je(O,"accessibilityManager",new ike),Je(O,"handleLegendBBoxUpdate",function(C){if(C){var $=O.state,E=$.dataStartIndex,M=$.dataEndIndex,_=$.updateId;O.setState(de({legendBBox:C},h({props:O.props,dataStartIndex:E,dataEndIndex:M,updateId:_},de(de({},O.state),{},{legendBBox:C}))))}}),Je(O,"handleReceiveSyncEvent",function(C,$,E){if(O.props.syncId===C){if(E===O.eventEmitterSymbol&&typeof O.props.syncMethod!="function")return;O.applySyncEvent($)}}),Je(O,"handleBrushChange",function(C){var $=C.startIndex,E=C.endIndex;if($!==O.state.dataStartIndex||E!==O.state.dataEndIndex){var M=O.state.updateId;O.setState(function(){return de({dataStartIndex:$,dataEndIndex:E},h({props:O.props,dataStartIndex:$,dataEndIndex:E,updateId:M},O.state))}),O.triggerSyncEvent({dataStartIndex:$,dataEndIndex:E})}}),Je(O,"handleMouseEnter",function(C){var $=O.getMouseInfo(C);if($){var E=de(de({},$),{},{isTooltipActive:!0});O.setState(E),O.triggerSyncEvent(E);var M=O.props.onMouseEnter;lt(M)&&M(E,C)}}),Je(O,"triggeredAfterMouseMove",function(C){var $=O.getMouseInfo(C),E=$?de(de({},$),{},{isTooltipActive:!0}):{isTooltipActive:!1};O.setState(E),O.triggerSyncEvent(E);var M=O.props.onMouseMove;lt(M)&&M(E,C)}),Je(O,"handleItemMouseEnter",function(C){O.setState(function(){return{isTooltipActive:!0,activeItem:C,activePayload:C.tooltipPayload,activeCoordinate:C.tooltipPosition||{x:C.cx,y:C.cy}}})}),Je(O,"handleItemMouseLeave",function(){O.setState(function(){return{isTooltipActive:!1}})}),Je(O,"handleMouseMove",function(C){C.persist(),O.throttleTriggeredAfterMouseMove(C)}),Je(O,"handleMouseLeave",function(C){O.throttleTriggeredAfterMouseMove.cancel();var $={isTooltipActive:!1};O.setState($),O.triggerSyncEvent($);var E=O.props.onMouseLeave;lt(E)&&E($,C)}),Je(O,"handleOuterEvent",function(C){var $=$se(C),E=Fo(O.props,"".concat($));if($&<(E)){var M,_;/.*touch.*/i.test($)?_=O.getMouseInfo(C.changedTouches[0]):_=O.getMouseInfo(C),E((M=_)!==null&&M!==void 0?M:{},C)}}),Je(O,"handleClick",function(C){var $=O.getMouseInfo(C);if($){var E=de(de({},$),{},{isTooltipActive:!0});O.setState(E),O.triggerSyncEvent(E);var M=O.props.onClick;lt(M)&&M(E,C)}}),Je(O,"handleMouseDown",function(C){var $=O.props.onMouseDown;if(lt($)){var E=O.getMouseInfo(C);$(E,C)}}),Je(O,"handleMouseUp",function(C){var $=O.props.onMouseUp;if(lt($)){var E=O.getMouseInfo(C);$(E,C)}}),Je(O,"handleTouchMove",function(C){C.changedTouches!=null&&C.changedTouches.length>0&&O.throttleTriggeredAfterMouseMove(C.changedTouches[0])}),Je(O,"handleTouchStart",function(C){C.changedTouches!=null&&C.changedTouches.length>0&&O.handleMouseDown(C.changedTouches[0])}),Je(O,"handleTouchEnd",function(C){C.changedTouches!=null&&C.changedTouches.length>0&&O.handleMouseUp(C.changedTouches[0])}),Je(O,"handleDoubleClick",function(C){var $=O.props.onDoubleClick;if(lt($)){var E=O.getMouseInfo(C);$(E,C)}}),Je(O,"handleContextMenu",function(C){var $=O.props.onContextMenu;if(lt($)){var E=O.getMouseInfo(C);$(E,C)}}),Je(O,"triggerSyncEvent",function(C){O.props.syncId!==void 0&&aw.emit(sw,O.props.syncId,C,O.eventEmitterSymbol)}),Je(O,"applySyncEvent",function(C){var $=O.props,E=$.layout,M=$.syncMethod,_=O.state.updateId,A=C.dataStartIndex,j=C.dataEndIndex;if(C.dataStartIndex!==void 0||C.dataEndIndex!==void 0)O.setState(de({dataStartIndex:A,dataEndIndex:j},h({props:O.props,dataStartIndex:A,dataEndIndex:j,updateId:_},O.state)));else if(C.activeTooltipIndex!==void 0){var R=C.chartX,I=C.chartY,k=C.activeTooltipIndex,D=O.state,F=D.offset,T=D.tooltipTicks;if(!F)return;if(typeof M=="function")k=M(T,C);else if(M==="value"){k=-1;for(var L=0;L=0){var ce,K;if(R.dataKey&&!R.allowDuplicatedCategory){var Z=typeof R.dataKey=="function"?fe:"payload.".concat(R.dataKey.toString());ce=dv(L,Z,k),K=N&&z&&dv(z,Z,k)}else ce=L==null?void 0:L[I],K=N&&z&&z[I];if(pe||ee){var ie=C.props.activeIndex!==void 0?C.props.activeIndex:I;return[v.cloneElement(C,de(de(de({},M.props),ye),{},{activeIndex:ie})),null,null]}if(!pt(ce))return[J].concat(od(O.renderActivePoints({item:M,activePoint:ce,basePoint:K,childIndex:I,isRange:N})))}else{var re,ae=(re=O.getItemByXY(O.state.activeCoordinate))!==null&&re!==void 0?re:{graphicalItem:J},we=ae.graphicalItem,ge=we.item,je=ge===void 0?C:ge,$e=we.childIndex,Re=de(de(de({},M.props),ye),{},{activeIndex:$e});return[v.cloneElement(je,Re),null,null]}return N?[J,null,null]:[J,null]}),Je(O,"renderCustomized",function(C,$,E){return v.cloneElement(C,de(de({key:"recharts-customized-".concat(E)},O.props),O.state))}),Je(O,"renderMap",{CartesianGrid:{handler:qm,once:!0},ReferenceArea:{handler:O.renderReferenceElement},ReferenceLine:{handler:qm},ReferenceDot:{handler:O.renderReferenceElement},XAxis:{handler:qm},YAxis:{handler:qm},Brush:{handler:O.renderBrush,once:!0},Bar:{handler:O.renderGraphicChild},Line:{handler:O.renderGraphicChild},Area:{handler:O.renderGraphicChild},Radar:{handler:O.renderGraphicChild},RadialBar:{handler:O.renderGraphicChild},Scatter:{handler:O.renderGraphicChild},Pie:{handler:O.renderGraphicChild},Funnel:{handler:O.renderGraphicChild},Tooltip:{handler:O.renderCursor,once:!0},PolarGrid:{handler:O.renderPolarGrid,once:!0},PolarAngleAxis:{handler:O.renderPolarAxis},PolarRadiusAxis:{handler:O.renderPolarAxis},Customized:{handler:O.renderCustomized}}),O.clipPathId="".concat((w=x.id)!==null&&w!==void 0?w:zh("recharts"),"-clip"),O.throttleTriggeredAfterMouseMove=FB(O.triggeredAfterMouseMove,(S=x.throttleDelay)!==null&&S!==void 0?S:1e3/60),O.state={},O}return Oke(b,y),wke(b,[{key:"componentDidMount",value:function(){var w,S;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(w=this.props.margin.left)!==null&&w!==void 0?w:0,top:(S=this.props.margin.top)!==null&&S!==void 0?S:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var w=this.props,S=w.children,O=w.data,C=w.height,$=w.layout,E=Jr(S,sa);if(E){var M=E.props.defaultIndex;if(!(typeof M!="number"||M<0||M>this.state.tooltipTicks.length-1)){var _=this.state.tooltipTicks[M]&&this.state.tooltipTicks[M].value,A=pS(this.state,O,M,_),j=this.state.tooltipTicks[M].coordinate,R=(this.state.offset.top+C)/2,I=$==="horizontal",k=I?{x:j,y:R}:{y:j,x:R},D=this.state.formattedGraphicalItems.find(function(T){var L=T.item;return L.type.name==="Scatter"});D&&(k=de(de({},k),D.props.points[M].tooltipPosition),A=D.props.points[M].tooltipPayload);var F={activeTooltipIndex:M,isTooltipActive:!0,activeLabel:_,activePayload:A,activeCoordinate:k};this.setState(F),this.renderCursor(E),this.accessibilityManager.setIndex(M)}}}},{key:"getSnapshotBeforeUpdate",value:function(w,S){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==S.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==w.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==w.margin){var O,C;this.accessibilityManager.setDetails({offset:{left:(O=this.props.margin.left)!==null&&O!==void 0?O:0,top:(C=this.props.margin.top)!==null&&C!==void 0?C:0}})}return null}},{key:"componentDidUpdate",value:function(w){K1([Jr(w.children,sa)],[Jr(this.props.children,sa)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var w=Jr(this.props.children,sa);if(w&&typeof w.props.shared=="boolean"){var S=w.props.shared?"axis":"item";return s.indexOf(S)>=0?S:i}return i}},{key:"getMouseInfo",value:function(w){if(!this.container)return null;var S=this.container,O=S.getBoundingClientRect(),C=tye(O),$={chartX:Math.round(w.pageX-C.left),chartY:Math.round(w.pageY-C.top)},E=O.width/S.offsetWidth||1,M=this.inRange($.chartX,$.chartY,E);if(!M)return null;var _=this.state,A=_.xAxisMap,j=_.yAxisMap,R=this.getTooltipEventType(),I=TA(this.state,this.props.data,this.props.layout,M);if(R!=="axis"&&A&&j){var k=Iu(A).scale,D=Iu(j).scale,F=k&&k.invert?k.invert($.chartX):null,T=D&&D.invert?D.invert($.chartY):null;return de(de({},$),{},{xValue:F,yValue:T},I)}return I?de(de({},$),I):null}},{key:"inRange",value:function(w,S){var O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,C=this.props.layout,$=w/O,E=S/O;if(C==="horizontal"||C==="vertical"){var M=this.state.offset,_=$>=M.left&&$<=M.left+M.width&&E>=M.top&&E<=M.top+M.height;return _?{x:$,y:E}:null}var A=this.state,j=A.angleAxisMap,R=A.radiusAxisMap;if(j&&R){var I=Iu(j);return v_({x:$,y:E},I)}return null}},{key:"parseEventsOfWrapper",value:function(){var w=this.props.children,S=this.getTooltipEventType(),O=Jr(w,sa),C={};O&&S==="axis"&&(O.props.trigger==="click"?C={onClick:this.handleClick}:C={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var $=fv(this.props,this.handleOuterEvent);return de(de({},$),C)}},{key:"addListener",value:function(){aw.on(sw,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){aw.removeListener(sw,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(w,S,O){for(var C=this.state.formattedGraphicalItems,$=0,E=C.length;$80?"error":"primary"}),g.jsxs(he,{variant:"caption",sx:{minWidth:25},children:[((s=e.metrics)==null?void 0:s.cpu_usage)||12,"%"]})]})]}),g.jsxs(ot,{item:!0,xs:6,children:[g.jsx(he,{variant:"caption",color:"text.secondary",display:"block",children:"Memory"}),g.jsxs(Se,{sx:{display:"flex",alignItems:"center",gap:1},children:[g.jsx(gg,{variant:"determinate",value:((l=e.metrics)==null?void 0:l.memory_usage)||45,sx:{flexGrow:1,height:6,borderRadius:3},color:"secondary"}),g.jsxs(he,{variant:"caption",sx:{minWidth:25},children:[((u=e.metrics)==null?void 0:u.memory_usage)||45,"%"]})]})]})]}),g.jsx(Gr,{sx:{my:1.5,opacity:.5}}),g.jsxs(Se,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[o?g.jsx(jb,{title:(c=e.suggestion)==null?void 0:c.reason,children:g.jsxs(Se,{sx:{display:"flex",alignItems:"center",gap:.5,color:n.palette.warning.main},children:[g.jsx(zte,{fontSize:"inherit"}),g.jsxs(he,{variant:"caption",sx:{fontWeight:"bold"},children:["Sug: ",((d=e.suggestion)==null?void 0:d.action)==="scale_up"?"+":"-",Math.abs(e.suggestion.target_count-e.node_count)," nodes"]})]})}):g.jsx(he,{variant:"caption",color:"text.secondary",children:"Optimal Performance"}),g.jsxs(Se,{children:[g.jsx(pr,{size:"small",onClick:()=>t==null?void 0:t(e.pillar,"down"),disabled:r||e.node_count<=1,children:g.jsx(tne,{fontSize:"small"})}),g.jsx(pr,{size:"small",color:"primary",onClick:()=>t==null?void 0:t(e.pillar,"up"),disabled:r,children:g.jsx(PO,{fontSize:"small"})})]})]})]})]})}function Wke(){const e=mr(),t=WD(),{pillars:n,isLoading:r,error:o}=jre(),{data:i,isLoading:a}=Wr({queryKey:["clusterHealth"],queryFn:()=>gn.getClusterHealth().then(l=>l.data)}),s=(l,u)=>{t(`/scaling?pillar=${l}&action=${u}`)};return g.jsxs(Se,{sx:{maxWidth:1400,mx:"auto"},children:[g.jsxs(Se,{sx:{mb:4,display:"flex",justifyContent:"space-between",alignItems:"flex-end"},children:[g.jsxs(Se,{children:[g.jsx(he,{variant:"h3",sx:{fontWeight:900,mb:1,letterSpacing:-1},children:"Infrastructure"}),g.jsx(he,{variant:"body1",color:"text.secondary",children:"Real-time status and scaling controls for your MadBase cluster."})]}),g.jsxs(Se,{sx:{display:"flex",gap:2},children:[g.jsx(nn,{variant:"outlined",startIcon:g.jsx(ene,{}),onClick:()=>t("/logs"),children:"System Logs"}),g.jsx(nn,{variant:"contained",startIcon:g.jsx(_te,{}),onClick:()=>t("/servers"),children:"Provision Node"})]})]}),o&&g.jsx(xd,{severity:"error",sx:{mb:3},children:"Connection lost to Control Plane. Retrying..."}),g.jsxs(he,{variant:"h6",sx:{mb:2,fontWeight:"bold",display:"flex",alignItems:"center",gap:1},children:[g.jsx(Zte,{color:"primary"})," System Pillars"]}),r?g.jsx(Se,{sx:{display:"flex",justifyContent:"center",py:10},children:g.jsx(co,{})}):g.jsxs(ot,{container:!0,spacing:3,sx:{mb:6},children:[n.map(l=>g.jsx(ot,{item:!0,xs:12,sm:6,md:3,children:g.jsx(Vke,{stats:l,onScale:s})},l.pillar)),n.length===0&&g.jsx(ot,{item:!0,xs:12,children:g.jsx(Ft,{sx:{p:5,textAlign:"center",border:"2px dashed",borderColor:"divider",bgcolor:$t(e.palette.background.paper,.4)},children:g.jsx(he,{color:"text.secondary",children:"No pillars detected. Check server configuration."})})})]}),g.jsxs(ot,{container:!0,spacing:3,children:[g.jsx(ot,{item:!0,xs:12,md:8,children:g.jsxs(Ft,{sx:{p:3,height:"100%",bgcolor:$t(e.palette.background.paper,.6)},children:[g.jsx(he,{variant:"h6",gutterBottom:!0,sx:{fontWeight:"bold"},children:"Cluster Pulse"}),g.jsx(Gr,{sx:{mb:3}}),g.jsxs(ot,{container:!0,spacing:4,children:[g.jsxs(ot,{item:!0,xs:12,sm:4,children:[g.jsx(he,{variant:"caption",color:"text.secondary",uppercase:!0,children:"Global Availability"}),g.jsx(he,{variant:"h4",sx:{fontWeight:800,color:e.palette.success.main},children:"99.99%"})]}),g.jsxs(ot,{item:!0,xs:12,sm:4,children:[g.jsx(he,{variant:"caption",color:"text.secondary",uppercase:!0,children:"Total Throughput"}),g.jsxs(he,{variant:"h4",sx:{fontWeight:800},children:["8,421 ",g.jsx("small",{style:{fontSize:"0.9rem",color:"text.secondary"},children:"req/s"})]})]}),g.jsxs(ot,{item:!0,xs:12,sm:4,children:[g.jsx(he,{variant:"caption",color:"text.secondary",uppercase:!0,children:"Error Rate"}),g.jsx(he,{variant:"h4",sx:{fontWeight:800,color:e.palette.warning.main},children:"0.02%"})]})]}),g.jsx(Se,{sx:{mt:4,height:200,display:"flex",alignItems:"center",justifyContent:"center",border:"1px solid",borderColor:"divider",borderRadius:2},children:g.jsx(he,{color:"text.disabled",children:"Live Throughput Chart (Coming Soon)"})})]})}),g.jsx(ot,{item:!0,xs:12,md:4,children:g.jsxs(Ft,{sx:{p:3,height:"100%",bgcolor:$t(e.palette.background.paper,.6)},children:[g.jsx(he,{variant:"h6",gutterBottom:!0,sx:{fontWeight:"bold"},children:"Health Summary"}),g.jsx(Gr,{sx:{mb:3}}),g.jsxs(Se,{sx:{display:"flex",flexDirection:"column",gap:2},children:[g.jsxs(Se,{sx:{display:"flex",justifyContent:"space-between"},children:[g.jsx(he,{variant:"body2",children:"PostgreSQL Connectivity"}),g.jsx(pn,{label:"Stable",color:"success",size:"small"})]}),g.jsxs(Se,{sx:{display:"flex",justifyContent:"space-between"},children:[g.jsx(he,{variant:"body2",children:"Redis Cache Cluster"}),g.jsx(pn,{label:"98% Cache Hit",color:"success",size:"small"})]}),g.jsxs(Se,{sx:{display:"flex",justifyContent:"space-between"},children:[g.jsx(he,{variant:"body2",children:"Object Storage (MinIO)"}),g.jsx(pn,{label:"Degraded (Latency)",color:"warning",size:"small"})]}),g.jsxs(Se,{sx:{display:"flex",justifyContent:"space-between"},children:[g.jsx(he,{variant:"body2",children:"Deno Runtime Pool"}),g.jsx(pn,{label:"Executing",color:"info",size:"small"})]})]})]})})]})]})}const K4=v.createContext(void 0);function ct(){const e=v.useContext(K4);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 q4=v.createContext(void 0),Ue=()=>{const e=v.useContext(q4);if(!e)throw new Error("MUI: useGridRootProps should only be used inside the DataGrid, DataGridPro or DataGridPremium component.");return e},X4=v.createContext(void 0);function Xs(){const e=v.useContext(X4);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 AA={};function j$(e,t){const n=v.useRef(AA);return n.current===AA&&(n.current=e(t)),n}const Gke=[];function Y4(e){v.useEffect(e,Gke)}const ta=(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))}},Kke=Object.is;function Q4(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,!Kke(e[o],t[o])||!(o in t))return!1;for(const o in t)r+=1;return n===r}ta(["MUI: `useGridSelector` has been called before the initialization of the state.","This hook can only be used inside the context of the grid."]);function qke(e){return e.acceptsApiRef}function RA(e,t){return qke(t)?t(e):t(e.current.state)}const Xke=Object.is,D$=Q4,Yke=()=>({state:null,equals:null,selector:null}),Ae=(e,t,n=Xke)=>{const r=j$(Yke),o=r.current.selector!==null,[i,a]=v.useState(o?null:RA(e,t));return r.current.state=i,r.current.equals=n,r.current.selector=t,Y4(()=>e.current.store.subscribe(()=>{const s=RA(e,r.current.selector);r.current.equals(r.current.state,s)||(r.current.state=s,a(s))})),i};function dt(e){return Be("MuiDataGrid",e)}const U=Le("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 fy="NOT_FOUND";function Qke(e){var t;return{get:function(r){return t&&e(t.key,r)?t.value:fy},put:function(r,o){t={key:r,value:o}},getEntries:function(){return t?[t]:[]},clear:function(){t=void 0}}}function Zke(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 fy}function o(s,l){r(s)===fy&&(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 Jke=function(t,n){return t===n};function eIe(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)s=(l,u)=>{const c=hS(l),d=u??(c?l.current.instanceId:mS),f=c?l.current.state:l,h=e(f,d),p=t(f,d);return n(h,p)};else if(e&&t)s=(l,u)=>{const c=hS(l),d=u??(c?l.current.instanceId:mS),f=c?l.current.state:l,h=e(f,d);return t(h)};else throw new Error("Missing arguments");return s.acceptsApiRef=!0,s},Qt=(...e)=>{const t=(...n)=>{var r,o;const[i,a]=n,s=hS(i),l=s?i.current.instanceId:a??mS,u=s?i.current.state:i,{cache:c}=oIe;if(c.get(l)&&(r=c.get(l))!=null&&r.get(e)){var d;return(d=c.get(l))==null?void 0:d.get(e)(u,l)}const f=rIe(...e);return c.get(l)||c.set(l,new Map),(o=c.get(l))==null||o.set(e,f),f(u,l)};return t.acceptsApiRef=!0,t},Dl=e=>e.columns,Pa=rt(Dl,e=>e.orderedFields),Nd=rt(Dl,e=>e.lookup),qi=Qt(Pa,Nd,(e,t)=>e.map(n=>t[n])),fi=rt(Dl,e=>e.columnVisibilityModel),Jn=Qt(qi,fi,(e,t)=>e.filter(n=>t[n.field]!==!1)),T0=Qt(Jn,e=>e.map(t=>t.field)),id=Qt(Jn,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}),Z4=Qt(qi,e=>e.filter(t=>t.filterable)),iIe=Qt(qi,e=>e.reduce((t,n)=>(n.filterable&&(t[n.field]=n),t),{})),M0=e=>e.columnGrouping,aIe=Qt(M0,e=>{var t;return(t=e==null?void 0:e.unwrappedGroupingModel)!=null?t:{}}),J4=Qt(M0,e=>{var t;return(t=e==null?void 0:e.lookup)!=null?t:{}}),sIe=Qt(M0,e=>{var t;return(t=e==null?void 0:e.headerStructure)!=null?t:[]}),Kh=rt(M0,e=>{var t;return(t=e==null?void 0:e.maxDepth)!=null?t:0}),Pi=e=>e.rows,_0=rt(Pi,e=>e.totalRowCount),lIe=rt(Pi,e=>e.loading),uIe=rt(Pi,e=>e.totalTopLevelRowCount),xa=rt(Pi,e=>e.dataRowIdToModelLookup),py=rt(Pi,e=>e.dataRowIdToIdLookup),si=rt(Pi,e=>e.tree),cIe=rt(Pi,e=>e.groupingName),jA=rt(Pi,e=>e.treeDepths),A0=Qt(Pi,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}),Ef=rt(Pi,e=>e.dataRowIds),dIe=rt(Pi,e=>e==null?void 0:e.additionalRowGroups),Bd=Qt(dIe,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:{}}})}}),fIe=rt(Bd,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)}),ez=()=>{var e;const t=Xs(),n=Ue(),r=Ae(t,Jn),o=Ae(t,_0),i=Ae(t,Kh),a=Ae(t,fIe);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}},pIe=e=>{const{classes:t}=e;return Ce({root:["main"]},dt,t)},hIe=Un("div",{name:"MuiDataGrid",slot:"Main",overridesResolver:(e,t)=>t.main})(()=>({position:"relative",flexGrow:1,display:"flex",flexDirection:"column",overflow:"hidden"})),mIe=v.forwardRef((e,t)=>{var n;const r=Ue(),o=pIe(r),i=(n=r.experimentalFeatures)!=null&&n.ariaV7?ez:null,a=typeof i=="function"?i():null;return g.jsx(hIe,P({ref:t,className:o.root,ownerState:r},a,{children:e.children}))}),tz=e=>e.sorting,F$=rt(tz,e=>e.sortedRows),N$=Qt(F$,xa,(e,t)=>e.map(n=>{var r;return{id:n,model:(r=t[n])!=null?r:{}}})),Po=rt(tz,e=>e.sortModel),gIe=Qt(Po,e=>e.reduce((n,r,o)=>(n[r.field]={sortDirection:r.sort,sortIndex:e.length>1?o+1:void 0},n),{})),B$=e=>e.filter,Fn=rt(B$,e=>e.filterModel);rt(Fn,e=>e.quickFilterValues);const vIe=e=>e.visibleRowsLookup,nz=rt(B$,e=>e.filteredRowsLookup);rt(B$,e=>e.filteredDescendantCountLookup);const Ys=Qt(vIe,N$,(e,t)=>t.filter(n=>e[n.id]!==!1)),Xf=Qt(Ys,e=>e.map(t=>t.id)),yIe=Qt(nz,N$,(e,t)=>t.filter(n=>e[n.id]!==!1)),bIe=Qt(yIe,e=>e.map(t=>t.id)),rz=Qt(Ys,si,A0,(e,t,n)=>n<2?e:e.filter(r=>{var o;return((o=t[r.id])==null?void 0:o.depth)===0})),oz=rt(Ys,e=>e.length),iz=rt(rz,e=>e.length),xIe=Qt(Fn,Nd,(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})}),wIe=Qt(xIe,e=>e.reduce((n,r)=>(n[r.field]?n[r.field].push(r):n[r.field]=[r],n),{})),R0=e=>e.focus,eo=rt(R0,e=>e.cell),CIe=rt(R0,e=>e.columnHeader);rt(R0,e=>e.columnHeaderFilter);const hy=rt(R0,e=>e.columnGroupHeader),j0=e=>e.tabIndex,my=rt(j0,e=>e.cell),az=rt(j0,e=>e.columnHeader);rt(j0,e=>e.columnHeaderFilter);const SIe=rt(j0,e=>e.columnGroupHeader),z$=e=>e.density,PIe=rt(z$,e=>e.value),zd=rt(z$,e=>e.factor),gS=e=>e.columnMenu;function OIe(e){const{VirtualScrollerComponent:t,ColumnHeadersProps:n,children:r}=e,o=Xs(),i=Ue(),a=v.useRef(null),s=Ae(o,Jn),l=Ae(o,wIe),u=Ae(o,gIe),c=Ae(o,id),d=Ae(o,az),f=Ae(o,my),h=Ae(o,SIe),p=Ae(o,CIe),m=Ae(o,hy),y=Ae(o,zd),b=Ae(o,Kh),x=Ae(o,gS),w=Ae(o,fi),S=Ae(o,sIe),O=!(h===null&&d===null&&f===null);Et(()=>{o.current.computeSizeAndPublishResizeEvent();const _=a.current;if(typeof ResizeObserver>"u")return()=>{};let A;const j=new ResizeObserver(()=>{A=requestAnimationFrame(()=>{o.current.computeSizeAndPublishResizeEvent()})});return _&&j.observe(_),()=>{A&&window.cancelAnimationFrame(A),_&&j.unobserve(_)}},[o]);const C=v.useRef(null),$=v.useRef(null),E=v.useRef(null);o.current.register("private",{columnHeadersContainerElementRef:$,columnHeadersElementRef:C,virtualScrollerRef:E,mainElementRef:a});const M=!!o.current.getRootDimensions();return g.jsxs(mIe,{ref:a,children:[g.jsx(i.slots.columnHeaders,P({ref:$,innerRef:C,visibleColumns:s,filterColumnLookup:l,sortColumnLookup:u,columnPositions:c,columnHeaderTabIndexState:d,columnGroupHeaderTabIndexState:h,columnHeaderFocus:p,columnGroupHeaderFocus:m,densityFactor:y,headerGroupingMaxDepth:b,columnMenuState:x,columnVisibility:w,columnGroupsHeaderStructure:S,hasOtherElementInTabSequence:O},n)),M&&g.jsx(t,{ref:E}),r]})}function $Ie(){var e;const t=Ue();return t.hideFooter?null:g.jsx(t.slots.footer,P({},(e=t.slotProps)==null?void 0:e.footer))}const wr="auto-generated-group-node-root",cc=Symbol("mui.id_autogenerated"),EIe=()=>({type:"group",id:wr,depth:-1,groupingField:null,groupingKey:null,isAutoGenerated:!0,children:[],childrenFromPath:{},childrenExpanded:!0,parent:null});function kIe(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 gy=(e,t,n)=>{const r=t?t(e):e.id;return kIe(r,e,n),r},wg=({rows:e,getRowId:t,loading:n,rowCount:r})=>{const o={type:"full",rows:[]},i={},a={};for(let s=0;s{const n=e[wr];return Math.max(t,n.children.length+(n.footerId==null?0:1))},lz=({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:sz({tree:c.tree,rowCountProp:t}),groupingName:u,loading:n})},uh=e=>e.type==="skeletonRow"||e.type==="footer"||e.type==="group"&&e.isAutoGenerated||e.type==="pinnedRow"&&e.isAutoGenerated,H$=(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(f=>{const h=gy(f,t,"A row was provided without id when calling updateRows():");a.has(h)?a.set(h,P({},a.get(h),f)):a.set(h,f)});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((f,h)=>{const p=s.idToActionLookup[h];if(f._action==="delete"){if(p==="remove"||!l[h])return;p!=null&&(c[p][h]=!0),s.actions.remove.push(h),delete l[h],delete u[h];return}const m=l[h];if(m){p==="remove"?(c.remove[h]=!0,s.actions.modify.push(h)):p==null&&s.actions.modify.push(h),l[h]=P({},m,f);return}p==="remove"?(c.remove[h]=!0,s.actions.insert.push(h)):p==null&&s.actions.insert.push(h),l[h]=f,u[h]=h});const d=Object.keys(c);for(let f=0;f0&&(s.actions[h]=s.actions[h].filter(m=>!p[m]))}return{dataRowIdToModelLookup:l,dataRowIdToIdLookup:u,updates:s,rowsBeforePartialUpdates:e.rowsBeforePartialUpdates,loadingPropBeforePartialUpdates:e.loadingPropBeforePartialUpdates,rowCountPropBeforePartialUpdates:e.rowCountPropBeforePartialUpdates}};function uz(e){var t,n;const r=Bd(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 cz(e,t){const n=zd(e);return`var(--DataGrid-overlayHeight, ${2*Math.floor(t*n)}px)`}const TIe=Un("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})),MIe=Un("div",{name:"MuiDataGrid",slot:"OverlayWrapperInner",shouldForwardProp:e=>e!=="overlayType",overridesResolver:(e,t)=>t.overlayWrapperInner})({}),_Ie=e=>{const{classes:t}=e;return Ce({root:["overlayWrapper"],inner:["overlayWrapperInner"]},dt,t)};function AIe(e){var t,n;const r=ct(),o=Ue(),[i,a]=v.useState(()=>{var c,d;return(c=(d=r.current.getRootDimensions())==null?void 0:d.viewportInnerSize)!=null?c:null}),s=v.useCallback(()=>{var c,d;a((c=(d=r.current.getRootDimensions())==null?void 0:d.viewportInnerSize)!=null?c:null)},[r]);Et(()=>r.current.subscribeEvent("viewportInnerSizeChange",s),[r,s]);let l=(t=i==null?void 0:i.height)!=null?t:0;o.autoHeight&&l===0&&(l=cz(r,o.rowHeight));const u=_Ie(P({},e,{classes:o.classes}));return i?g.jsx(TIe,{className:Y(u.root),overlayType:e.overlayType,children:g.jsx(MIe,P({className:Y(u.inner),style:{height:l,width:(n=i==null?void 0:i.width)!=null?n:0}},e))}):null}function RIe(){const e=ct(),t=Ue(),n=Ae(e,_0),r=Ae(e,oz),o=Ae(e,lIe),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 d;s=g.jsx(t.slots.loadingOverlay,P({},(d=t.slotProps)==null?void 0:d.loadingOverlay)),l="loadingOverlay"}return s===null?null:g.jsx(AIe,{overlayType:l,children:s})}function D0(e){return v.memo(e,Q4)}let uw;function jIe(){return uw===void 0&&document.createElement("div").focus({get preventScroll(){return uw=!0,!1}}),uw}var Ji=function(e){return e.Cell="cell",e.Row="row",e}(Ji||{}),Tt=function(e){return e.Edit="edit",e.View="view",e}(Tt||{}),Ht=function(e){return e.Edit="edit",e.View="view",e}(Ht||{}),Ar=function(e){return e.And="and",e.Or="or",e}(Ar||{}),oa=function(e){return e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown",e.pasteKeyDown="pasteKeyDown",e}(oa||{}),ti=function(e){return e.cellFocusOut="cellFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown",e}(ti||{}),Ka=function(e){return e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown",e}(Ka||{}),ia=function(e){return e.rowFocusOut="rowFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown",e}(ia||{});function dz(e){return e.field!==void 0}function DIe(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function LIe(e,t){return e.closest(`.${t}`)}function U$(e){return e.replace(/["\\]/g,"\\$&")}function FIe(e,t){return e.querySelector(`[role="columnheader"][data-field="${U$(t)}"]`)}function fz(e){return`.${U.row}[data-id="${U$(String(e))}"]`}function NIe(e,t){return e.querySelector(fz(t))}function BIe(e,{id:t,field:n}){const r=fz(t),o=`.${U.cell}[data-field="${U$(n)}"]`,i=`${r} ${o}`;return e.querySelector(i)}function qh(e){return e.target.nodeType===1&&!e.currentTarget.contains(e.target)}function it(e,t,n){const r=v.useRef(!0);v.useEffect(()=>{r.current=!1,e.current.register(n,t)},[e,n,t]),r.current&&e.current.register(n,t)}class Xu extends Error{}function zIe(e,t){const{getRowId:n}=t,r=v.useCallback(p=>({field:p,colDef:e.current.getColumn(p)}),[e]),o=v.useCallback(p=>{const m=e.current.getRow(p);if(!m)throw new Xu(`No row with id #${p} found`);return{id:p,columns:e.current.getAllColumns(),row:m}},[e]),i=v.useCallback((p,m)=>{const y=e.current.getRow(p),b=e.current.getRowNode(p);if(!y||!b)throw new Xu(`No row with id #${p} found`);const x=eo(e),w=my(e);return{id:p,field:m,row:y,rowNode:b,value:y[m],colDef:e.current.getColumn(m),cellMode:e.current.getCellMode(p,m),api:e.current,hasFocus:x!==null&&x.field===m&&x.id===p,tabIndex:w&&w.field===m&&w.id===p?0:-1}},[e]),a=v.useCallback((p,m)=>{const y=e.current.getColumn(m),b=e.current.getCellValue(p,m),x=e.current.getRow(p),w=e.current.getRowNode(p);if(!x||!w)throw new Xu(`No row with id #${p} found`);const S=eo(e),O=my(e),C={id:p,field:m,row:x,rowNode:w,colDef:y,cellMode:e.current.getCellMode(p,m),hasFocus:S!==null&&S.field===m&&S.id===p,tabIndex:O&&O.field===m&&O.id===p?0:-1,value:b,formattedValue:b,isEditable:!1};return y&&y.valueFormatter&&(C.formattedValue=y.valueFormatter({id:p,field:C.field,value:C.value,api:e.current})),C.isEditable=y&&e.current.isCellEditable(C),C},[e]),s=v.useCallback((p,m)=>{const y=e.current.getColumn(m);if(!y||!y.valueGetter){const b=e.current.getRow(p);if(!b)throw new Xu(`No row with id #${p} found`);return b[m]}return y.valueGetter(i(p,m))},[e,i]),l=v.useCallback((p,m)=>{var y;const b=cc in p?p[cc]:(y=n==null?void 0:n(p))!=null?y:p.id,x=m.field;return!m||!m.valueGetter?p[x]:m.valueGetter(i(b,x))},[i,n]),u=v.useCallback((p,m)=>{var y;const b=l(p,m);if(!m||!m.valueFormatter)return b;const x=(y=n?n(p):p.id)!=null?y:p[cc],w=m.field;return m.valueFormatter({id:x,field:w,value:b,api:e.current})},[e,n,l]),c=v.useCallback(p=>e.current.rootElementRef.current?FIe(e.current.rootElementRef.current,p):null,[e]),d=v.useCallback(p=>e.current.rootElementRef.current?NIe(e.current.rootElementRef.current,p):null,[e]),f=v.useCallback((p,m)=>e.current.rootElementRef.current?BIe(e.current.rootElementRef.current,{id:p,field:m}):null,[e]);it(e,{getCellValue:s,getCellParams:a,getCellElement:f,getRowValue:l,getRowFormattedValue:u,getRowParams:o,getRowElement:d,getColumnHeaderParams:r,getColumnHeaderElement:c},"public")}const HIe=["changeReason","unstable_updateValueOnRender"],UIe=["column","rowId","editCellState","align","children","colIndex","height","width","className","showRightBorder","extendRowFullWidth","row","colSpan","disableDragEvents","isNotVisible","onClick","onDoubleClick","onMouseDown","onMouseUp","onMouseOver","onKeyDown","onKeyUp","onDragEnter","onDragOver","style"],VIe=["changeReason","unstable_updateValueOnRender"],vy={id:-1,field:"__unset__",row:{},rowNode:{id:-1,depth:0,type:"leaf",parent:-1,groupingKey:null},colDef:{type:"string",field:"__unset__",computedWidth:0},cellMode:Tt.View,hasFocus:!1,tabIndex:-1,value:null,formattedValue:"__unset__",isEditable:!1,api:{}},WIe=e=>{const{align:t,showRightBorder:n,isEditable:r,isSelected:o,isSelectionMode:i,classes:a}=e,s={root:["cell",`cell--text${oe(t)}`,r&&"cell--editable",o&&"selected",n&&"cell--withRightBorder",i&&!r&&"cell--selectionMode","withBorderColor"],content:["cellContent"]};return Ce(s,dt,a)},GIe=v.forwardRef((e,t)=>{const{column:n,rowId:r,editCellState:o}=e,i=ct(),a=Ue(),s=n.field,l=Ae(i,()=>{try{const M=i.current.getCellParams(r,s);return M.api=i.current,M}catch(E){if(E instanceof Xu)return vy;throw E}},D$),u=Ae(i,()=>i.current.unstable_applyPipeProcessors("isCellSelected",!1,{id:r,field:s}));if(l===vy)return null;const{cellMode:c,hasFocus:d,isEditable:f,value:h,formattedValue:p}=l,m=n.type==="actions",y=(c==="view"||!f)&&!m?l.tabIndex:-1,{classes:b,getCellClassName:x}=a,w=i.current.unstable_applyPipeProcessors("cellClassName",[],{id:r,field:s});n.cellClassName&&w.push(typeof n.cellClassName=="function"?n.cellClassName(l):n.cellClassName),x&&w.push(x(l));let S;if(o==null&&n.renderCell&&(S=n.renderCell(l),w.push(U["cell--withRenderer"]),w.push(b==null?void 0:b["cell--withRenderer"])),o!=null&&n.renderEditCell){const E=i.current.getRowWithUpdatedValues(r,n.field),M=Q(o,HIe),_=P({},l,{row:E},M);S=n.renderEditCell(_),w.push(U["cell--editing"]),w.push(b==null?void 0:b["cell--editing"])}const{slots:O}=a,C=O.cell,$=P({},e,{ref:t,field:s,formattedValue:p,hasFocus:d,isEditable:f,isSelected:u,value:h,cellMode:c,children:S,tabIndex:y,className:Y(w)});return v.createElement(C,$)}),KIe=D0(GIe),qIe=v.forwardRef((e,t)=>{var n,r,o,i;const{column:a,rowId:s,editCellState:l,align:u,colIndex:c,height:d,width:f,className:h,showRightBorder:p,colSpan:m,disableDragEvents:y,isNotVisible:b,onClick:x,onDoubleClick:w,onMouseDown:S,onMouseUp:O,onMouseOver:C,onKeyDown:$,onKeyUp:E,onDragEnter:M,onDragOver:_,style:A}=e,j=Q(e,UIe),R=ct(),I=Ue(),k=a.field,D=Ae(R,()=>{try{const xe=R.current.getCellParams(s,k);return xe.api=R.current,xe}catch(me){if(me instanceof Xu)return vy;throw me}},D$),F=Ae(R,()=>R.current.unstable_applyPipeProcessors("isCellSelected",!1,{id:s,field:k})),{cellMode:T,hasFocus:L,isEditable:N,value:z,formattedValue:B}=D,V=a.type==="actions"&&((n=(r=a).getActions)==null?void 0:n.call(r,R.current.getRowParams(s)).some(me=>!me.props.disabled)),W=(T==="view"||!N)&&!V?D.tabIndex:-1,{classes:ee,getCellClassName:pe}=I,be=R.current.unstable_applyPipeProcessors("cellClassName",[],{id:s,field:k});a.cellClassName&&be.push(typeof a.cellClassName=="function"?a.cellClassName(D):a.cellClassName),pe&&be.push(pe(D));const ye=B??z,J=v.useRef(null),fe=yt(t,J),ce=v.useRef(null),K=(o=I.unstable_cellSelection)!=null?o:!1,Z={align:u,showRightBorder:p,isEditable:N,classes:I.classes,isSelected:F,isSelectionMode:K},ie=WIe(Z),re=v.useCallback(me=>xe=>{const ke=R.current.getCellParams(s,k||"");R.current.publishEvent(me,ke,xe),O&&O(xe)},[R,k,O,s]),ae=v.useCallback(me=>xe=>{const ke=R.current.getCellParams(s,k||"");R.current.publishEvent(me,ke,xe),S&&S(xe)},[R,k,S,s]),we=v.useCallback((me,xe)=>ke=>{if(!R.current.getRow(s))return;const ze=R.current.getCellParams(s,k||"");R.current.publishEvent(me,ze,ke),xe&&xe(ke)},[R,k,s]),ge=v.useMemo(()=>P(b?{padding:0,opacity:0,width:0,border:0}:{minWidth:f,maxWidth:f,minHeight:d,maxHeight:d==="auto"?"none":d},A),[f,d,b,A]);if(v.useEffect(()=>{if(!L||T===Tt.Edit)return;const me=Wt(R.current.rootElementRef.current);if(J.current&&!J.current.contains(me.activeElement)){const xe=J.current.querySelector('[tabindex="0"]'),ke=ce.current||xe||J.current;if(jIe())ke.focus({preventScroll:!0});else{const ze=R.current.getScrollPosition();ke.focus(),R.current.scroll(ze)}}},[L,T,R]),D===vy)return null;let je=j.onFocus,$e;if(l==null&&a.renderCell&&($e=a.renderCell(D),be.push(U["cell--withRenderer"]),be.push(ee==null?void 0:ee["cell--withRenderer"])),l!=null&&a.renderEditCell){const me=R.current.getRowWithUpdatedValues(s,a.field),xe=Q(l,VIe),ke=P({},D,{row:me},xe);$e=a.renderEditCell(ke),be.push(U["cell--editing"]),be.push(ee==null?void 0:ee["cell--editing"])}if($e===void 0){const me=ye==null?void 0:ye.toString();$e=g.jsx("div",{className:ie.content,title:me,role:"presentation",children:me})}v.isValidElement($e)&&V&&($e=v.cloneElement($e,{focusElementRef:ce}));const Re=y?null:{onDragEnter:we("cellDragEnter",M),onDragOver:we("cellDragOver",_)},Ee=(i=I.experimentalFeatures)==null?void 0:i.ariaV7;return g.jsx("div",P({ref:fe,className:Y(h,be,ie.root),role:Ee?"gridcell":"cell","data-field":k,"data-colindex":c,"aria-colindex":c+1,"aria-colspan":m,style:ge,tabIndex:W,onClick:we("cellClick",x),onDoubleClick:we("cellDoubleClick",w),onMouseOver:we("cellMouseOver",C),onMouseDown:ae("cellMouseDown"),onMouseUp:re("cellMouseUp"),onKeyDown:we("cellKeyDown",$),onKeyUp:we("cellKeyUp",E)},Re,j,{onFocus:je,children:$e}))}),vS=D0(qIe),XIe=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","hasFocus","tabIndex"],YIe=e=>{const{classes:t}=e;return Ce({root:["booleanCell"]},dt,t)};function QIe(e){const{value:t}=e,n=Q(e,XIe),r=ct(),o=Ue(),i={classes:o.classes},a=YIe(i),s=v.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 ZIe=v.memo(QIe),JIe=e=>uh(e.rowNode)?"":g.jsx(ZIe,P({},e)),e2e=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange"],t2e=e=>{const{classes:t}=e;return Ce({root:["editBooleanCell"]},dt,t)};function n2e(e){var t;const{id:n,value:r,field:o,className:i,hasFocus:a,onValueChange:s}=e,l=Q(e,e2e),u=ct(),c=v.useRef(null),d=Dt(),[f,h]=v.useState(r),p=Ue(),m={classes:p.classes},y=t2e(m),b=v.useCallback(async x=>{const w=x.target.checked;s&&await s(x,w),h(w),await u.current.setEditCellValue({id:n,field:o,value:w},x)},[u,o,n,s]);return v.useEffect(()=>{h(r)},[r]),Et(()=>{a&&c.current.focus()},[a]),g.jsx("label",P({htmlFor:d,className:Y(y.root,i)},l,{children:g.jsx(p.slots.baseCheckbox,P({id:d,inputRef:c,checked:!!f,onChange:b,size:"small"},(t=p.slotProps)==null?void 0:t.baseCheckbox))}))}const r2e=e=>g.jsx(n2e,P({},e)),o2e=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","inputProps","isValidating","isProcessingProps","onValueChange"],i2e=ne(wd)({fontSize:"inherit"}),a2e=e=>{const{classes:t}=e;return Ce({root:["editInputCell"]},dt,t)};function s2e(e){const{id:t,value:n,field:r,colDef:o,hasFocus:i,inputProps:a,onValueChange:s}=e,l=Q(e,o2e),u=o.type==="dateTime",c=ct(),d=v.useRef(),f=v.useMemo(()=>{let S;n==null?S=null:n instanceof Date?S=n:S=new Date((n??"").toString());let O;return S==null||Number.isNaN(S.getTime())?O="":O=new Date(S.getTime()-S.getTimezoneOffset()*60*1e3).toISOString().substr(0,u?16:10),{parsed:S,formatted:O}},[n,u]),[h,p]=v.useState(f),y={classes:Ue().classes},b=a2e(y),x=v.useCallback(S=>{if(S==="")return null;const[O,C]=S.split("T"),[$,E,M]=O.split("-"),_=new Date;if(_.setFullYear(Number($),Number(E)-1,Number(M)),_.setHours(0,0,0,0),C){const[A,j]=C.split(":");_.setHours(Number(A),Number(j),0,0)}return _},[]),w=v.useCallback(async S=>{const O=S.target.value,C=x(O);s&&await s(S,C),p({parsed:C,formatted:O}),c.current.setEditCellValue({id:t,field:r,value:C},S)},[c,r,t,s,x]);return v.useEffect(()=>{p(S=>{var O,C;return f.parsed!==S.parsed&&((O=f.parsed)==null?void 0:O.getTime())!==((C=S.parsed)==null?void 0:C.getTime())?f:S})},[f]),Et(()=>{i&&d.current.focus()},[i]),g.jsx(i2e,P({inputRef:d,fullWidth:!0,className:b.root,type:u?"datetime-local":"date",inputProps:P({max:u?"9999-12-31T23:59":"9999-12-31"},a),value:h.formatted,onChange:w},l))}const pz=e=>g.jsx(s2e,P({},e)),l2e=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","isValidating","debounceMs","isProcessingProps","onValueChange"],u2e=e=>{const{classes:t}=e;return Ce({root:["editInputCell"]},dt,t)},c2e=ne(wd,{name:"MuiDataGrid",slot:"EditInputCell",overridesResolver:(e,t)=>t.editInputCell})(({theme:e})=>P({},e.typography.body2,{padding:"1px 0","& input":{padding:"0 16px",height:"100%"}})),d2e=v.forwardRef((e,t)=>{const n=Ue(),{id:r,value:o,field:i,colDef:a,hasFocus:s,debounceMs:l=200,isProcessingProps:u,onValueChange:c}=e,d=Q(e,l2e),f=ct(),h=v.useRef(),[p,m]=v.useState(o),y=u2e(n),b=v.useCallback(async w=>{const S=w.target.value;c&&await c(w,S);const O=f.current.getColumn(i);let C=S;O.valueParser&&(C=O.valueParser(S,f.current.getCellParams(r,i))),m(C),f.current.setEditCellValue({id:r,field:i,value:C,debounceMs:l,unstable_skipValueParser:!0},w)},[f,l,i,r,c]),x=f.current.unstable_getEditCellMeta(r,i);return v.useEffect(()=>{(x==null?void 0:x.changeReason)!=="debouncedSetEditCellValue"&&m(o)},[x,o]),Et(()=>{s&&h.current.focus()},[s]),g.jsx(c2e,P({ref:t,inputRef:h,className:y.root,ownerState:n,fullWidth:!0,type:a.type==="number"?a.type:"text",value:p??"",onChange:b,endAdornment:u?g.jsx(n.slots.loadIcon,{fontSize:"small",color:"action"}):void 0},d))}),f2e=e=>g.jsx(d2e,P({},e)),yy=e=>e==="Escape",p2e=e=>e==="Enter",hz=e=>e==="Tab",mz=e=>e===" ",h2e=e=>e.indexOf("Arrow")===0,m2e=e=>e==="Home"||e==="End",g2e=e=>e.indexOf("Page")===0;function gz(e){return e.key.length===1&&!e.ctrlKey&&!e.metaKey}const by=e=>m2e(e)||h2e(e)||g2e(e)||mz(e),v2e=e=>!!e.key,y2e=e=>hz(e)||yy(e);function Ll(e){return(e==null?void 0:e.type)==="singleSelect"}function yS(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 b2e=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange","initialOpen","getOptionLabel","getOptionValue"],x2e=["MenuProps"];function w2e(e){return!!e.key}function C2e(e){var t,n,r;const o=Ue(),{id:i,value:a,field:s,row:l,colDef:u,hasFocus:c,error:d,onValueChange:f,initialOpen:h=o.editMode===Ji.Cell,getOptionLabel:p,getOptionValue:m}=e,y=Q(e,b2e),b=ct(),x=v.useRef(),w=v.useRef(),[S,O]=v.useState(h),$=(n=(((t=o.slotProps)==null?void 0:t.baseSelect)||{}).native)!=null?n:!1,E=((r=o.slotProps)==null?void 0:r.baseSelect)||{},{MenuProps:M}=E,_=Q(E,x2e);if(Et(()=>{if(c){var F;(F=w.current)==null||F.focus()}},[c]),!Ll(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 j=m||u.getOptionValue,R=p||u.getOptionLabel,I=async F=>{if(!Ll(u)||!A)return;O(!1);const T=F.target,L=yS(T.value,A,j);f&&await f(F,L),await b.current.setEditCellValue({id:i,field:s,value:L},F)},k=(F,T)=>{if(o.editMode===Ji.Row){O(!1);return}if(T==="backdropClick"||yy(F.key)){const L=b.current.getCellParams(i,s);b.current.publishEvent("cellEditStop",P({},L,{reason:yy(F.key)?ti.escapeKeyDown:ti.cellFocusOut}))}},D=F=>{w2e(F)&&F.key==="Enter"||O(!0)};return!A||!u?null:g.jsx(o.slots.baseSelect,P({ref:x,inputRef:w,value:a,onChange:I,open:S,onOpen:D,MenuProps:P({onClose:k},M),error:d,native:$,fullWidth:!0},y,_,{children:A.map(F=>{var T;const L=j(F);return v.createElement(o.slots.baseSelectOption,P({},((T=o.slotProps)==null?void 0:T.baseSelectOption)||{},{native:$,key:L,value:L}),R(F))})}))}const S2e=e=>g.jsx(C2e,P({},e)),P2e=["open","target","onClose","children","position","className","onExited"],O2e=e=>{const{classes:t}=e;return Ce({root:["menu"]},dt,t)},$2e=ne(au,{name:"MuiDataGrid",slot:"Menu",overridesResolver:(e,t)=>t.menu})(({theme:e})=>({zIndex:e.zIndex.modal,[`& .${U.menuList}`]:{outline:0}})),E2e={"bottom-start":"top left","bottom-end":"top right"};function vz(e){var t;const{open:n,target:r,onClose:o,children:i,position:a,className:s,onExited:l}=e,u=Q(e,P2e),c=ct(),d=Ue(),f=O2e(d),h=v.useRef(null);Et(()=>{if(n)h.current=document.activeElement instanceof HTMLElement?document.activeElement:null;else{var y,b;(y=h.current)==null||(b=y.focus)==null||b.call(y),h.current=null}},[n]),v.useEffect(()=>{const y=n?"menuOpen":"menuClose";c.current.publishEvent(y,{target:r})},[c,n,r]);const p=y=>b=>{y&&y(),l&&l(b)},m=y=>{y.target&&(r===y.target||r!=null&&r.contains(y.target))||o(y)};return g.jsx($2e,P({as:d.slots.basePopper,className:Y(s,f.root),ownerState:d,open:n,anchorEl:r,transition:!0,placement:a},u,(t=d.slotProps)==null?void 0:t.basePopper,{children:({TransitionProps:y,placement:b})=>g.jsx(_F,{onClickAway:m,mouseEvent:"onMouseDown",children:g.jsx($p,P({},y,{style:{transformOrigin:E2e[b]},onExited:p(y==null?void 0:y.onExited),children:g.jsx(Ft,{children:i})}))})}))}const k2e=["api","colDef","id","hasFocus","isEditable","field","value","formattedValue","row","rowNode","cellMode","tabIndex","position","focusElementRef"],I2e=e=>typeof e.getActions=="function";function T2e(e){var t;const{colDef:n,id:r,hasFocus:o,tabIndex:i,position:a="bottom-end",focusElementRef:s}=e,l=Q(e,k2e),[u,c]=v.useState(-1),[d,f]=v.useState(!1),h=ct(),p=v.useRef(null),m=v.useRef(null),y=v.useRef(!1),b=v.useRef({}),x=mr(),w=Dt(),S=Dt(),O=Ue();if(!I2e(n))throw new Error("MUI: Missing the `getActions` property in the `GridColDef`.");const C=n.getActions(h.current.getRowParams(r)),$=C.filter(D=>!D.props.showInMenu),E=C.filter(D=>D.props.showInMenu),M=$.length+(E.length?1:0);v.useLayoutEffect(()=>{o||Object.entries(b.current).forEach(([D,F])=>{F==null||F.stop({},()=>{delete b.current[D]})})},[o]),v.useEffect(()=>{if(u<0||!p.current||u>=p.current.children.length)return;p.current.children[u].focus({preventScroll:!0})},[u]),v.useEffect(()=>{o||(c(-1),y.current=!1)},[o]),v.useImperativeHandle(s,()=>({focus(){if(!y.current){const D=C.findIndex(F=>!F.props.disabled);c(D)}}}),[C]),v.useEffect(()=>{u>=M&&c(M-1)},[u,M]);const _=()=>{f(!0),c(M-1),y.current=!0},A=()=>{f(!1)},j=D=>F=>{b.current[D]=F},R=(D,F)=>T=>{c(D),y.current=!0,F&&F(T)},I=D=>{if(M<=1)return;const F=(L,N)=>{var z;if(L<0||L>C.length)return L;const B=x.direction==="rtl"?-1:1,V=(N==="left"?-1:1)*B;return(z=C[L+V])!=null&&z.props.disabled?F(L+V,N):L+V};let T=u;D.key==="ArrowRight"?T=F(u,"right"):D.key==="ArrowLeft"&&(T=F(u,"left")),!(T<0||T>=M)&&T!==u&&(D.preventDefault(),D.stopPropagation(),c(T))},k=D=>{D.key==="Tab"&&D.preventDefault(),["Tab","Escape"].includes(D.key)&&A()};return g.jsxs("div",P({role:"menu",ref:p,tabIndex:-1,className:U.actionsCell,onKeyDown:I},l,{children:[$.map((D,F)=>v.cloneElement(D,{key:F,touchRippleRef:j(F),onClick:R(F,D.props.onClick),tabIndex:u===F?i:-1})),E.length>0&&S&&g.jsx(O.slots.baseIconButton,P({ref:m,id:S,"aria-label":h.current.getLocaleText("actionsCellMore"),"aria-haspopup":"menu","aria-expanded":d,"aria-controls":d?w:void 0,role:"menuitem",size:"small",onClick:_,touchRippleRef:j(S),tabIndex:u===$.length?i:-1},(t=O.slotProps)==null?void 0:t.baseIconButton,{children:g.jsx(O.slots.moreActionsIcon,{fontSize:"small"})})),E.length>0&&g.jsx(vz,{open:d,target:m.current,position:a,onClose:A,children:g.jsx(xO,{id:w,className:U.menuList,onKeyDown:k,"aria-labelledby":S,variant:"menu",autoFocusItem:!0,children:E.map((D,F)=>v.cloneElement(D,{key:F,closeMenu:A}))})})]}))}const M2e=e=>g.jsx(T2e,P({},e)),_2e=["field","align","width","contentWidth"],A2e=e=>{const{align:t,classes:n}=e,r={root:["cell","cellSkeleton",`cell--text${oe(t)}`,"withBorderColor"]};return Ce(r,dt,n)};function R2e(e){const{align:t,width:n,contentWidth:r}=e,o=Q(e,_2e),a={classes:Ue().classes,align:t},s=A2e(a);return g.jsx("div",P({className:s.root,style:{width:n}},o,{children:g.jsx(KJ,{width:`${r}%`})}))}function j2e(e){return e.vars?e.vars.palette.TableCell.border:e.palette.mode==="light"?o9($t(e.palette.divider,1),.88):r9($t(e.palette.divider,1),.68)}const DA={[`.${U.columnSeparator}, .${U["columnSeparator--resizing"]}`]:{visibility:"visible",width:"auto"}},LA={[`& .${U.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${U.menuIcon}`]:{width:"auto",visibility:"visible"}},D2e=ne("div",{name:"MuiDataGrid",slot:"Root",overridesResolver:(e,t)=>[{[`&.${U.autoHeight}`]:t.autoHeight},{[`&.${U.aggregationColumnHeader}`]:t.aggregationColumnHeader},{[`&.${U["aggregationColumnHeader--alignLeft"]}`]:t["aggregationColumnHeader--alignLeft"]},{[`&.${U["aggregationColumnHeader--alignCenter"]}`]:t["aggregationColumnHeader--alignCenter"]},{[`&.${U["aggregationColumnHeader--alignRight"]}`]:t["aggregationColumnHeader--alignRight"]},{[`&.${U.aggregationColumnHeaderLabel}`]:t.aggregationColumnHeaderLabel},{[`&.${U["root--disableUserSelection"]} .${U.cell}`]:t["root--disableUserSelection"]},{[`&.${U.autosizing}`]:t.autosizing},{[`& .${U.editBooleanCell}`]:t.editBooleanCell},{[`& .${U["cell--editing"]}`]:t["cell--editing"]},{[`& .${U["cell--textCenter"]}`]:t["cell--textCenter"]},{[`& .${U["cell--textLeft"]}`]:t["cell--textLeft"]},{[`& .${U["cell--textRight"]}`]:t["cell--textRight"]},{[`& .${U["cell--withRenderer"]}`]:t["cell--withRenderer"]},{[`& .${U.cell}`]:t.cell},{[`& .${U["cell--rangeTop"]}`]:t["cell--rangeTop"]},{[`& .${U["cell--rangeBottom"]}`]:t["cell--rangeBottom"]},{[`& .${U["cell--rangeLeft"]}`]:t["cell--rangeLeft"]},{[`& .${U["cell--rangeRight"]}`]:t["cell--rangeRight"]},{[`& .${U["cell--withRightBorder"]}`]:t["cell--withRightBorder"]},{[`& .${U.cellContent}`]:t.cellContent},{[`& .${U.cellCheckbox}`]:t.cellCheckbox},{[`& .${U.cellSkeleton}`]:t.cellSkeleton},{[`& .${U.checkboxInput}`]:t.checkboxInput},{[`& .${U["columnHeader--alignCenter"]}`]:t["columnHeader--alignCenter"]},{[`& .${U["columnHeader--alignLeft"]}`]:t["columnHeader--alignLeft"]},{[`& .${U["columnHeader--alignRight"]}`]:t["columnHeader--alignRight"]},{[`& .${U["columnHeader--dragging"]}`]:t["columnHeader--dragging"]},{[`& .${U["columnHeader--moving"]}`]:t["columnHeader--moving"]},{[`& .${U["columnHeader--numeric"]}`]:t["columnHeader--numeric"]},{[`& .${U["columnHeader--sortable"]}`]:t["columnHeader--sortable"]},{[`& .${U["columnHeader--sorted"]}`]:t["columnHeader--sorted"]},{[`& .${U["columnHeader--withRightBorder"]}`]:t["columnHeader--withRightBorder"]},{[`& .${U.columnHeader}`]:t.columnHeader},{[`& .${U.headerFilterRow}`]:t.headerFilterRow},{[`& .${U.columnHeaderCheckbox}`]:t.columnHeaderCheckbox},{[`& .${U.columnHeaderDraggableContainer}`]:t.columnHeaderDraggableContainer},{[`& .${U.columnHeaderTitleContainer}`]:t.columnHeaderTitleContainer},{[`& .${U["columnSeparator--resizable"]}`]:t["columnSeparator--resizable"]},{[`& .${U["columnSeparator--resizing"]}`]:t["columnSeparator--resizing"]},{[`& .${U.columnSeparator}`]:t.columnSeparator},{[`& .${U.filterIcon}`]:t.filterIcon},{[`& .${U.iconSeparator}`]:t.iconSeparator},{[`& .${U.menuIcon}`]:t.menuIcon},{[`& .${U.menuIconButton}`]:t.menuIconButton},{[`& .${U.menuOpen}`]:t.menuOpen},{[`& .${U.menuList}`]:t.menuList},{[`& .${U["row--editable"]}`]:t["row--editable"]},{[`& .${U["row--editing"]}`]:t["row--editing"]},{[`& .${U["row--dragging"]}`]:t["row--dragging"]},{[`& .${U.row}`]:t.row},{[`& .${U.rowReorderCellPlaceholder}`]:t.rowReorderCellPlaceholder},{[`& .${U.rowReorderCell}`]:t.rowReorderCell},{[`& .${U["rowReorderCell--draggable"]}`]:t["rowReorderCell--draggable"]},{[`& .${U.sortIcon}`]:t.sortIcon},{[`& .${U.withBorderColor}`]:t.withBorderColor},{[`& .${U.treeDataGroupingCell}`]:t.treeDataGroupingCell},{[`& .${U.treeDataGroupingCellToggle}`]:t.treeDataGroupingCellToggle},{[`& .${U.detailPanelToggleCell}`]:t.detailPanelToggleCell},{[`& .${U["detailPanelToggleCell--expanded"]}`]:t["detailPanelToggleCell--expanded"]},t.root]})(({theme:e})=>{const t=j2e(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})`:$t(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",[`&.${U.autoHeight}`]:{height:"auto",[`& .${U["row--lastVisible"]} .${U.cell}`]:{borderBottomColor:"transparent"}},[`&.${U.autosizing}`]:{[`& .${U.columnHeaderTitleContainerContent} > *`]:{overflow:"visible !important"},[`& .${U.cell} > *`]:{overflow:"visible !important",whiteSpace:"nowrap"},[`& .${U.groupingCriteriaCell}`]:{width:"unset"},[`& .${U.treeDataGroupingCell}`]:{width:"unset"}},[`& .${U["virtualScrollerContent--overflowed"]} .${U["row--lastVisible"]} .${U.cell}`]:{borderBottomColor:"transparent"},[`& .${U.columnHeader}, & .${U.cell}`]:{WebkitTapHighlightColor:"transparent",lineHeight:null,padding:"0 10px",boxSizing:"border-box"},[`& .${U.columnHeader}:focus-within, & .${U.cell}:focus-within`]:{outline:`solid ${e.vars?`rgba(${e.vars.palette.primary.mainChannel} / 0.5)`:$t(e.palette.primary.main,.5)} 1px`,outlineWidth:1,outlineOffset:-1},[`& .${U.columnHeader}:focus, & .${U.cell}:focus`]:{outline:`solid ${e.palette.primary.main} 1px`},[`& .${U.columnHeaderCheckbox}, & .${U.cellCheckbox}`]:{padding:0,justifyContent:"center",alignItems:"center"},[`& .${U.columnHeader}`]:{position:"relative",display:"flex",alignItems:"center"},[`& .${U["columnHeader--sorted"]} .${U.iconButtonContainer}, & .${U["columnHeader--filtered"]} .${U.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${U.columnHeader}:not(.${U["columnHeader--sorted"]}) .${U.sortIcon}`]:{opacity:0,transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.shorter})},[`& .${U.columnHeaderTitleContainer}`]:{display:"flex",alignItems:"center",minWidth:0,flex:1,whiteSpace:"nowrap",overflow:"hidden",position:"relative"},[`& .${U.columnHeaderTitleContainerContent}`]:{overflow:"hidden",display:"flex",alignItems:"center"},[`& .${U["columnHeader--filledGroup"]} .${U.columnHeaderTitleContainer}`]:{borderBottomWidth:"1px",borderBottomStyle:"solid",boxSizing:"border-box"},[`& .${U["columnHeader--filledGroup"]}.${U["columnHeader--showColumnBorder"]} .${U.columnHeaderTitleContainer}`]:{borderBottom:"none"},[`& .${U["columnHeader--filledGroup"]}.${U["columnHeader--showColumnBorder"]}`]:{borderBottomWidth:"1px",borderBottomStyle:"solid",boxSizing:"border-box"},[`& .${U.headerFilterRow}`]:{borderTop:`1px solid ${t}`},[`& .${U.sortIcon}, & .${U.filterIcon}`]:{fontSize:"inherit"},[`& .${U["columnHeader--sortable"]}`]:{cursor:"pointer"},[`& .${U["columnHeader--alignCenter"]} .${U.columnHeaderTitleContainer}`]:{justifyContent:"center"},[`& .${U["columnHeader--alignRight"]} .${U.columnHeaderDraggableContainer}, & .${U["columnHeader--alignRight"]} .${U.columnHeaderTitleContainer}`]:{flexDirection:"row-reverse"},[`& .${U["columnHeader--alignCenter"]} .${U.menuIcon}, & .${U["columnHeader--alignRight"]} .${U.menuIcon}`]:{marginRight:"auto",marginLeft:-6},[`& .${U["columnHeader--alignRight"]} .${U.menuIcon}, & .${U["columnHeader--alignRight"]} .${U.menuIcon}`]:{marginRight:"auto",marginLeft:-10},[`& .${U["columnHeader--moving"]}`]:{backgroundColor:(e.vars||e).palette.action.hover},[`& .${U.columnSeparator}`]:{visibility:"hidden",position:"absolute",zIndex:100,display:"flex",flexDirection:"column",justifyContent:"center",color:t},"@media (hover: hover)":{[`& .${U.columnHeaders}:hover`]:DA,[`& .${U.columnHeader}:hover`]:LA,[`& .${U.columnHeader}:not(.${U["columnHeader--sorted"]}):hover .${U.sortIcon}`]:{opacity:.5}},"@media (hover: none)":{[`& .${U.columnHeaders}`]:DA,[`& .${U.columnHeader}`]:LA},[`& .${U["columnSeparator--sideLeft"]}`]:{left:-12},[`& .${U["columnSeparator--sideRight"]}`]:{right:-12},[`& .${U["columnSeparator--resizable"]}`]:{cursor:"col-resize",touchAction:"none","&:hover":{color:(e.vars||e).palette.text.primary,"@media (hover: none)":{color:t}},[`&.${U["columnSeparator--resizing"]}`]:{color:(e.vars||e).palette.text.primary},"& svg":{pointerEvents:"none"}},[`& .${U.iconSeparator}`]:{color:"inherit"},[`& .${U.menuIcon}`]:{width:0,visibility:"hidden",fontSize:20,marginRight:-10,display:"flex",alignItems:"center"},[`.${U.menuOpen}`]:{visibility:"visible",width:"auto"},[`& .${U.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})`:$t(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} ))`:$t(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})`:$t(e.palette.primary.main,e.palette.action.selectedOpacity)}}}},[`& .${U.cell}`]:{display:"flex",alignItems:"center",borderBottom:"1px solid","&.Mui-selected":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:$t(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})`:$t(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})`:$t(e.palette.primary.main,e.palette.action.selectedOpacity)}}}},[`&.${U["root--disableUserSelection"]} .${U.cell}`]:{userSelect:"none"},[`& .${U.row}:not(.${U["row--dynamicHeight"]}) > .${U.cell}`]:{overflow:"hidden",whiteSpace:"nowrap"},[`& .${U.cellContent}`]:{overflow:"hidden",textOverflow:"ellipsis"},[`& .${U.cell}.${U["cell--selectionMode"]}`]:{cursor:"default"},[`& .${U.cell}.${U["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"}},[`& .${U["row--editing"]}`]:{boxShadow:e.shadows[2]},[`& .${U["row--editing"]} .${U.cell}`]:{boxShadow:e.shadows[0],backgroundColor:(e.vars||e).palette.background.paper},[`& .${U.editBooleanCell}`]:{display:"flex",height:"100%",width:"100%",alignItems:"center",justifyContent:"center"},[`& .${U.booleanCell}[data-value="true"]`]:{color:(e.vars||e).palette.text.secondary},[`& .${U.booleanCell}[data-value="false"]`]:{color:(e.vars||e).palette.text.disabled},[`& .${U.actionsCell}`]:{display:"inline-flex",alignItems:"center",gridGap:e.spacing(1)},[`& .${U.rowReorderCell}`]:{display:"inline-flex",flex:1,alignItems:"center",justifyContent:"center",opacity:(e.vars||e).palette.action.disabledOpacity},[`& .${U["rowReorderCell--draggable"]}`]:{cursor:"move",opacity:1},[`& .${U.rowReorderCellContainer}`]:{padding:0,alignItems:"stretch"},[`.${U.withBorderColor}`]:{borderColor:t},[`& .${U["cell--withRightBorder"]}`]:{borderRightWidth:"1px",borderRightStyle:"solid"},[`& .${U["columnHeader--withRightBorder"]}`]:{borderRightWidth:"1px",borderRightStyle:"solid"},[`& .${U["cell--textLeft"]}`]:{justifyContent:"flex-start"},[`& .${U["cell--textRight"]}`]:{justifyContent:"flex-end"},[`& .${U["cell--textCenter"]}`]:{justifyContent:"center"},[`& .${U.columnHeaderDraggableContainer}`]:{display:"flex",width:"100%",height:"100%"},[`& .${U.rowReorderCellPlaceholder}`]:{display:"none"},[`& .${U["columnHeader--dragging"]}, & .${U["row--dragging"]}`]:{background:(e.vars||e).palette.background.paper,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:(e.vars||e).palette.action.disabledOpacity},[`& .${U["row--dragging"]}`]:{background:(e.vars||e).palette.background.paper,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:(e.vars||e).palette.action.disabledOpacity,[`& .${U.rowReorderCellPlaceholder}`]:{display:"flex"}},[`& .${U.treeDataGroupingCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${U.treeDataGroupingCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:e.spacing(2)},[`& .${U.groupingCriteriaCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${U.groupingCriteriaCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:e.spacing(2)}})}),L2e=["children","className"],F2e=e=>{const{autoHeight:t,density:n,classes:r}=e,o={root:["root",t&&"autoHeight",`root--density${oe(n)}`,"withBorderColor"]};return Ce(o,dt,r)},N2e=v.forwardRef(function(t,n){var r;const o=Ue(),{children:i,className:a}=t,s=Q(t,L2e),l=Xs(),u=Ae(l,PIe),c=v.useRef(null),d=yt(c,n),f=(r=o.experimentalFeatures)!=null&&r.ariaV7?null:ez,h=typeof f=="function"?f():null,p=P({},o,{density:u}),m=F2e(p);l.current.register("public",{rootElementRef:c});const[y,b]=v.useState(!1);return Et(()=>{b(!0)},[]),y?g.jsx(D2e,P({ref:d,className:Y(a,m.root),ownerState:p},h,s,{children:i})):null}),B2e=["className"],z2e=e=>{const{classes:t}=e;return Ce({root:["footerContainer","withBorderColor"]},dt,t)},H2e=Un("div",{name:"MuiDataGrid",slot:"FooterContainer",overridesResolver:(e,t)=>t.footerContainer})({display:"flex",justifyContent:"space-between",alignItems:"center",minHeight:52,borderTop:"1px solid"}),U2e=v.forwardRef(function(t,n){const{className:r}=t,o=Q(t,B2e),i=Ue(),a=z2e(i);return g.jsx(H2e,P({ref:n,className:Y(a.root,r),ownerState:i},o))}),V2e=["className"],W2e=e=>{const{classes:t}=e;return Ce({root:["overlay"]},dt,t)},G2e=Un("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)"}),V$=v.forwardRef(function(t,n){const{className:r}=t,o=Q(t,V2e),i=Ue(),a=W2e(i);return g.jsx(G2e,P({ref:n,className:Y(a.root,r),ownerState:i},o))}),K2e=["className"],q2e=e=>{const{classes:t}=e;return Ce({root:["iconButtonContainer"]},dt,t)},X2e=Un("div",{name:"MuiDataGrid",slot:"IconButtonContainer",overridesResolver:(e,t)=>t.iconButtonContainer})(()=>({display:"flex",visibility:"hidden",width:0})),yz=v.forwardRef(function(t,n){const{className:r}=t,o=Q(t,K2e),i=Ue(),a=q2e(i);return g.jsx(X2e,P({ref:n,className:Y(a.root,r),ownerState:i},o))}),Y2e=e=>{const{classes:t}=e;return Ce({icon:["sortIcon"]},dt,t)};function Q2e(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 Z2e(e){var t;const{direction:n,index:r,sortingOrder:o}=e,i=ct(),a=Ue(),s=P({},e,{classes:a.classes}),l=Y2e(s),u=Q2e(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(yz,{children:[r!=null&&g.jsx(kF,{badgeContent:r,color:"default",children:c}),r==null&&c]})}const J2e=v.memo(Z2e),eTe=e=>{const{classes:t,open:n}=e;return Ce({root:["menuIcon",n&&"menuOpen"],button:["menuIconButton"]},dt,t)},tTe=v.memo(e=>{var t,n;const{colDef:r,open:o,columnMenuId:i,columnMenuButtonId:a,iconButtonRef:s}=e,l=ct(),u=Ue(),c=P({},e,{classes:u.classes}),d=eTe(c),f=v.useCallback(h=>{h.preventDefault(),h.stopPropagation(),l.current.toggleColumnMenu(r.field)},[l,r.field]);return g.jsx("div",{className:d.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:d.button,"aria-label":l.current.getLocaleText("columnMenuLabel"),size:"small",onClick:f,"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 nTe({columnMenuId:e,columnMenuButtonId:t,ContentComponent:n,contentComponentProps:r,field:o,open:i,target:a,onExited:s}){const l=ct(),u=l.current.getColumn(o),c=Lt(d=>{d&&(d.stopPropagation(),a!=null&&a.contains(d.target))||l.current.hideColumnMenu()});return!a||!u?null:g.jsx(vz,{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 rTe=["className"],oTe=e=>{const{classes:t}=e;return Ce({root:["columnHeaderTitle"]},dt,t)},iTe=Un("div",{name:"MuiDataGrid",slot:"ColumnHeaderTitle",overridesResolver:(e,t)=>t.columnHeaderTitle})({textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",fontWeight:"var(--unstable_DataGrid-headWeight)"}),aTe=v.forwardRef(function(t,n){const{className:r}=t,o=Q(t,rTe),i=Ue(),a=oTe(i);return g.jsx(iTe,P({ref:n,className:Y(a.root,r),ownerState:i},o))});function sTe(e){var t;const{label:n,description:r}=e,o=Ue(),i=v.useRef(null),[a,s]=v.useState(""),l=v.useCallback(()=>{if(!r&&i!=null&&i.current){const u=DIe(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(aTe,{onMouseOver:l,ref:i,children:n})}))}const lTe=["resizable","resizing","height","side"];var bz=function(e){return e.Left="left",e.Right="right",e}(bz||{});const uTe=e=>{const{resizable:t,resizing:n,classes:r,side:o}=e,i={root:["columnSeparator",t&&"columnSeparator--resizable",n&&"columnSeparator--resizing",o&&`columnSeparator--side${oe(o)}`],icon:["iconSeparator"]};return Ce(i,dt,r)};function cTe(e){const{height:t,side:n=bz.Right}=e,r=Q(e,lTe),o=Ue(),i=P({},e,{side:n,classes:o.classes}),a=uTe(i),s=v.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 dTe=v.memo(cTe),fTe=["classes","columnMenuOpen","colIndex","height","isResizing","sortDirection","hasFocus","tabIndex","separatorSide","isDraggable","headerComponent","description","elementId","width","columnMenuIconButton","columnMenu","columnTitleIconButtons","headerClassName","label","resizable","draggableContainerProps","columnHeaderSeparatorProps"],xz=v.forwardRef(function(t,n){const{classes:r,columnMenuOpen:o,colIndex:i,height:a,isResizing:s,sortDirection:l,hasFocus:u,tabIndex:c,separatorSide:d,isDraggable:f,headerComponent:h,description:p,width:m,columnMenuIconButton:y=null,columnMenu:b=null,columnTitleIconButtons:x=null,headerClassName:w,label:S,resizable:O,draggableContainerProps:C,columnHeaderSeparatorProps:$}=t,E=Q(t,fTe),M=Xs(),_=Ue(),A=v.useRef(null),[j,R]=v.useState(o),I=yt(A,n);let k="none";return l!=null&&(k=l==="asc"?"ascending":"descending"),v.useEffect(()=>{j||R(o)},[j,o]),v.useLayoutEffect(()=>{const D=M.current.state.columnMenu;if(u&&!D.open){const T=A.current.querySelector('[tabindex="0"]')||A.current;T==null||T.focus(),M.current.columnHeadersContainerElementRef.current.scrollLeft=0}},[M,u]),g.jsxs("div",P({ref:I,className:Y(r.root,w),style:{height:a,width:m,minWidth:m,maxWidth:m},role:"columnheader",tabIndex:c,"aria-colindex":i+1,"aria-sort":k,"aria-label":h==null?S:void 0},E,{children:[g.jsxs("div",P({className:r.draggableContainer,draggable:f,role:"presentation"},C,{children:[g.jsxs("div",{className:r.titleContainer,role:"presentation",children:[g.jsx("div",{className:r.titleContainerContent,children:h!==void 0?h:g.jsx(sTe,{label:S,description:p,columnWidth:m})}),x]}),y]})),g.jsx(dTe,P({resizable:!_.disableColumnResize&&!!O,resizing:s,height:a,side:d},$)),b]}))}),pTe=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 Ce(c,dt,n)};function hTe(e){var t,n,r,o;const{colDef:i,columnMenuOpen:a,colIndex:s,headerHeight:l,isResizing:u,sortDirection:c,sortIndex:d,filterItemsCounter:f,hasFocus:h,tabIndex:p,disableReorder:m,separatorSide:y}=e,b=Xs(),x=Ue(),w=v.useRef(null),S=Dt(),O=Dt(),C=v.useRef(null),[$,E]=v.useState(a),M=v.useMemo(()=>!x.disableColumnReorder&&!m&&!i.disableReorder,[x.disableColumnReorder,m,i.disableReorder]);let _;i.renderHeader&&(_=i.renderHeader(b.current.getColumnHeaderParams(i.field)));const A=P({},e,{classes:x.classes,showRightBorder:x.showColumnVerticalBorder}),j=pTe(A),R=v.useCallback(W=>ee=>{qh(ee)||b.current.publishEvent(W,b.current.getColumnHeaderParams(i.field),ee)},[b,i.field]),I=v.useMemo(()=>({onClick:R("columnHeaderClick"),onDoubleClick:R("columnHeaderDoubleClick"),onMouseOver:R("columnHeaderOver"),onMouseOut:R("columnHeaderOut"),onMouseEnter:R("columnHeaderEnter"),onMouseLeave:R("columnHeaderLeave"),onKeyDown:R("columnHeaderKeyDown"),onFocus:R("columnHeaderFocus"),onBlur:R("columnHeaderBlur")}),[R]),k=v.useMemo(()=>M?{onDragStart:R("columnHeaderDragStart"),onDragEnter:R("columnHeaderDragEnter"),onDragOver:R("columnHeaderDragOver"),onDragEnd:R("columnHeaderDragEnd")}:{},[M,R]),D=v.useMemo(()=>({onMouseDown:R("columnSeparatorMouseDown"),onDoubleClick:R("columnSeparatorDoubleClick")}),[R]);v.useEffect(()=>{$||E(a)},[$,a]);const F=v.useCallback(()=>{E(!1)},[]),T=!x.disableColumnMenu&&!i.disableColumnMenu&&g.jsx(tTe,{colDef:i,columnMenuId:S,columnMenuButtonId:O,open:$,iconButtonRef:C}),L=g.jsx(nTe,{columnMenuId:S,columnMenuButtonId:O,field:i.field,open:a,target:C.current,ContentComponent:x.slots.columnMenu,contentComponentProps:(t=x.slotProps)==null?void 0:t.columnMenu,onExited:F}),N=(n=i.sortingOrder)!=null?n:x.sortingOrder,z=g.jsxs(v.Fragment,{children:[!x.disableColumnFilter&&g.jsx(x.slots.columnHeaderFilterIconButton,P({field:i.field,counter:f},(r=x.slotProps)==null?void 0:r.columnHeaderFilterIconButton)),i.sortable&&!i.hideSortIcons&&g.jsx(J2e,{direction:c,index:d,sortingOrder:N})]});v.useLayoutEffect(()=>{const W=b.current.state.columnMenu;if(h&&!W.open){var ee;const be=w.current.querySelector('[tabindex="0"]')||w.current;be==null||be.focus(),(ee=b.current.columnHeadersContainerElementRef)!=null&&ee.current&&(b.current.columnHeadersContainerElementRef.current.scrollLeft=0)}},[b,h]);const B=typeof i.headerClassName=="function"?i.headerClassName({field:i.field,colDef:i}):i.headerClassName,V=(o=i.headerName)!=null?o:i.field;return g.jsx(xz,P({ref:w,classes:j,columnMenuOpen:a,colIndex:s,height:l,isResizing:u,sortDirection:c,hasFocus:h,tabIndex:p,separatorSide:y,isDraggable:M,headerComponent:_,description:i.description,elementId:i.field,width:i.computedWidth,columnMenuIconButton:T,columnTitleIconButtons:z,headerClassName:B,label:V,resizable:!x.disableColumnResize&&!!i.resizable,"data-field":i.field,columnMenu:L,draggableContainerProps:k,columnHeaderSeparatorProps:D},I))}const ch=()=>({items:[],logicOperator:Ar.And,quickFilterValues:[],quickFilterLogicOperator:Ar.And}),FA=1e3;class mTe{constructor(t=FA){this.timeouts=new Map,this.cleanupTimeout=FA,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 gTe{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 Xi=function(e){return e.DataGrid="DataGrid",e.DataGridPro="DataGridPro",e}(Xi||{});class vTe{}function yTe(e){let t=0;return function(r,o,i,a){e.registry===null&&(e.registry=typeof FinalizationRegistry<"u"?new gTe:new mTe);const[s]=v.useState(new vTe),l=v.useRef(null),u=v.useRef();u.current=i;const c=v.useRef(null);if(!l.current&&u.current){const d=(f,h,p)=>{if(!h.defaultMuiPrevented){var m;(m=u.current)==null||m.call(u,f,h,p)}};l.current=r.current.subscribeEvent(o,d,a),t+=1,c.current={cleanupToken:t},e.registry.register(s,()=>{var f;(f=l.current)==null||f.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));v.useEffect(()=>{if(!l.current&&u.current){const d=(f,h,p)=>{if(!h.defaultMuiPrevented){var m;(m=u.current)==null||m.call(u,f,h,p)}};l.current=r.current.subscribeEvent(o,d,a)}return c.current&&e.registry&&(e.registry.unregister(c.current),c.current=null),()=>{var d;(d=l.current)==null||d.call(l),l.current=null}},[r,o,a])}}const bTe={registry:null},Ve=yTe(bTe),xTe={isFirst:!0};function Kt(e,t,n){Ve(e,t,n,xTe)}function nr(e,t){const n=v.useRef(null);if(n.current)return n.current;const r=e.current.getLogger(t);return n.current=r,r}function wTe(e){return typeof e=="number"&&!Number.isNaN(e)}function wz(e){return typeof e=="function"}function W$(e){return typeof e=="object"&&e!==null}function CTe(){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 Cg(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}const ad=(e,t,n)=>Math.max(t,Math.min(n,e));function Fl(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 PTe(e,t,n){const r=STe(e);return()=>t+(n-t)*r()}function Cz(e){return typeof structuredClone=="function"?structuredClone(e):JSON.parse(JSON.stringify(e))}const OTe=(e,t,n,r,o)=>{const i=nr(e,"useNativeEventListener"),[a,s]=v.useState(!1),l=v.useRef(r),u=v.useCallback(c=>l.current&&l.current(c),[]);v.useEffect(()=>{l.current=r},[r]),v.useEffect(()=>{let c;if(wz(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 d=c;s(!0);const f=()=>{i.debug(`Clearing native ${n} event`),d.removeEventListener(n,u,o)};e.current.subscribeEvent("unmount",f)}},[t,u,n,a,i,o,e])},Xh=e=>{const t=v.useRef(!0);t.current&&(t.current=!1,e())},$Te=100,ETe=e=>e?0:100,Sz=(e,t)=>t>0&&e>0?Math.ceil(e/t):0;ta(["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 Pz=e=>({page:0,pageSize:e?0:100}),kTe=(e,t=0)=>t===0?e:Math.max(Math.min(e,t-1),0),Oz=(e,t)=>{if(t===Xi.DataGrid&&e>$Te)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(` `))},G$=e=>e.pagination,Oo=rt(G$,e=>e.paginationModel),Yu=rt(G$,e=>e.rowCount),ITe=rt(Oo,e=>e.page),$z=rt(Oo,e=>e.pageSize),TTe=rt($z,Yu,(e,t)=>Sz(t,e)),K$=Qt(Oo,si,A0,Ys,rz,(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(p=>p.id===l.id);let d=c,f=0;for(;d0)&&(d+=1),m===0&&(f+=1))}return{firstRowIndex:c,lastRowIndex:d-1}}),MTe=Qt(Ys,K$,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),Ez=Qt(Xf,K$,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),dh=e=>e.preferencePanel;var tu=function(e){return e.filters="filters",e.columns="columns",e}(tu||{});const fh=e=>e.rowsMeta,$o=e=>e.rowSelection,_Te=rt($o,e=>e.length),ATe=Qt($o,xa,(e,t)=>new Map(e.map(n=>[n,t[n]]))),xy=Qt($o,e=>e.reduce((t,n)=>(t[n]=n,t),{})),RTe=ta(["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"),kz=(e,t)=>t&&e.length>1?(RTe(),[e[0]]):e,NA=(e,t)=>n=>P({},n,{sorting:P({},n.sorting,{sortModel:kz(e,t)})}),jTe=e=>e==="desc",DTe=(e,t)=>{const n=t.current.getColumn(e.field);if(!n)return null;const r=jTe(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}},LTe=(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),FTe=(e,t)=>{const n=e.map(r=>DTe(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)=>LTe(n,o,i)).map(o=>o.node.id)},BA=(e,t)=>{const n=e.indexOf(t);return!t||n===-1||n+1===e.length?e[0]:e[n+1]},q$=(e,t)=>e==null&&t!=null?-1:t==null&&e!=null?1:e==null&&t==null?0:null,NTe=new Intl.Collator,BTe=(e,t)=>{const n=q$(e,t);return n!==null?n:typeof e=="string"?NTe.compare(e.toString(),t.toString()):e-t},Iz=(e,t)=>{const n=q$(e,t);return n!==null?n:Number(e)-Number(t)},Tz=(e,t)=>{const n=q$(e,t);return n!==null?n:e>t?1:ee.headerFiltering,zTe=rt(Mz,e=>e.editing),HTe=rt(Mz,e=>e.menuOpen),UTe=(e,t)=>{const n={enabled:!t.disableVirtualization,enabledForColumns:!0};return P({},e,{virtualization:n})};function VTe(e,t){const n=i=>{e.current.setState(a=>P({},a,{virtualization:P({},a.virtualization,{enabled:i})}))};it(e,{unstable_setVirtualization:n,unstable_setColumnVirtualization:i=>{e.current.setState(a=>P({},a,{virtualization:P({},a.virtualization,{enabledForColumns:i})}))}},"public"),v.useEffect(()=>{n(!t.disableVirtualization)},[t.disableVirtualization])}const _z=e=>e.virtualization,WTe=rt(_z,e=>e.enabled),Az=rt(_z,e=>e.enabledForColumns),GTe=e=>{const{classes:t}=e;return Ce({icon:["filterIcon"]},dt,t)};function KTe(e){var t,n;const{counter:r,field:o,onClick:i}=e,a=ct(),s=Ue(),l=P({},e,{classes:s.classes}),u=GTe(l),c=Ae(a,dh),d=Dt(),f=Dt(),h=v.useCallback(y=>{y.preventDefault(),y.stopPropagation();const{open:b,openedPanelValue:x}=dh(a.current.state);b&&x===tu.filters?a.current.hideFilterPanel():a.current.showFilterPanel(void 0,f,d),i&&i(a.current.getColumnHeaderParams(o),y)},[a,o,i,f,d]);if(!r)return null;const p=c.open&&c.labelId===d,m=g.jsx(s.slots.baseIconButton,P({id:d,onClick:h,color:"default","aria-label":a.current.getLocaleText("columnHeaderFiltersLabel"),size:"small",tabIndex:-1,"aria-haspopup":"menu","aria-expanded":p,"aria-controls":p?f: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(yz,{children:[r>1&&g.jsx(kF,{badgeContent:r,color:"default",children:m}),r===1&&m]})}))}const qTe=["field","id","value","formattedValue","row","rowNode","colDef","isEditable","cellMode","hasFocus","tabIndex","api"],XTe=e=>{const{classes:t}=e;return Ce({root:["checkboxInput"]},dt,t)},YTe=v.forwardRef(function(t,n){var r;const{field:o,id:i,value:a,rowNode:s,hasFocus:l,tabIndex:u}=t,c=Q(t,qTe),d=ct(),f=Ue(),h={classes:f.classes},p=XTe(h),m=v.useRef(null),y=v.useRef(null),b=yt(m,n),x=d.current.getCellElement(i,o),w=$=>{const E={value:$.target.checked,id:i};d.current.publishEvent("rowSelectionCheckboxChange",E,$)};v.useLayoutEffect(()=>{u===0&&x&&(x.tabIndex=-1)},[x,u]),v.useEffect(()=>{if(l){var $;const E=($=m.current)==null?void 0:$.querySelector("input");E==null||E.focus({preventScroll:!0})}else y.current&&y.current.stop({})},[l]);const S=v.useCallback($=>{mz($.key)&&$.stopPropagation()},[]);if(s.type==="footer"||s.type==="pinnedRow")return null;const O=d.current.isRowSelectable(i),C=d.current.getLocaleText(a?"checkboxSelectionUnselectRow":"checkboxSelectionSelectRow");return g.jsx(f.slots.baseCheckbox,P({ref:b,tabIndex:u,checked:a,onChange:w,className:p.root,inputProps:{"aria-label":C},onKeyDown:S,disabled:!O,touchRippleRef:y},(r=f.slotProps)==null?void 0:r.baseCheckbox,c))}),QTe=YTe,ZTe=["field","colDef"],JTe=e=>{const{classes:t}=e;return Ce({root:["checkboxInput"]},dt,t)},eMe=v.forwardRef(function(t,n){var r;const o=Q(t,ZTe),[,i]=v.useState(!1),a=ct(),s=Ue(),l={classes:s.classes},u=JTe(l),c=Ae(a,az),d=Ae(a,$o),f=Ae(a,Xf),h=Ae(a,Ez),p=v.useMemo(()=>typeof s.isRowSelectable!="function"?d:d.filter(E=>a.current.getRow(E)?s.isRowSelectable(a.current.getRowParams(E)):!1),[a,s.isRowSelectable,d]),m=v.useMemo(()=>(!s.pagination||!s.checkboxSelectionVisibleOnly?f:h).reduce((M,_)=>(M[_]=!0,M),{}),[s.pagination,s.checkboxSelectionVisibleOnly,h,f]),y=v.useMemo(()=>p.filter(E=>m[E]).length,[p,m]),b=y>0&&y0,w=E=>{const M={value:E.target.checked};a.current.publishEvent("headerSelectionCheckboxChange",M)},S=c!==null&&c.field===t.field?0:-1;v.useLayoutEffect(()=>{const E=a.current.getColumnHeaderElement(t.field);S===0&&E&&(E.tabIndex=-1)},[S,a,t.field]);const O=v.useCallback(E=>{E.key===" "&&a.current.publishEvent("headerSelectionCheckboxChange",{value:!x})},[a,x]),C=v.useCallback(()=>{i(E=>!E)},[]);v.useEffect(()=>a.current.subscribeEvent("rowSelectionChange",C),[a,C]);const $=a.current.getLocaleText(x?"checkboxSelectionUnselectAllRows":"checkboxSelectionSelectAllRows");return g.jsx(s.slots.baseCheckbox,P({ref:n,indeterminate:b,checked:x,onChange:w,className:u.root,inputProps:{"aria-label":$},tabIndex:S,onKeyDown:O},(r=s.slotProps)==null?void 0:r.baseCheckbox,o))}),zA=Te(g.jsx("path",{d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}),"ArrowUpward"),HA=Te(g.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward"),UA=Te(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"),VA=Te(g.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),tMe=Te(g.jsx("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"}),"FilterList"),WA=Te(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"),nMe=Te(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");Te(g.jsx("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu");Te(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 rMe=Te(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"),oMe=Te(g.jsx("path",{d:"M11 19V5h2v14z"}),"Separator"),iMe=Te(g.jsx("path",{d:"M4 15h16v-2H4v2zm0 4h16v-2H4v2zm0-8h16V9H4v2zm0-6v2h16V5H4z"}),"ViewHeadline"),aMe=Te(g.jsx("path",{d:"M21,8H3V4h18V8z M21,10H3v4h18V10z M21,16H3v4h18V16z"}),"TableRows"),sMe=Te(g.jsx("path",{d:"M4 18h17v-6H4v6zM4 5v6h17V5H4z"}),"ViewStream"),lMe=Te(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"),cw=Te(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"),GA=Te(g.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add"),uMe=Te(g.jsx("path",{d:"M19 13H5v-2h14v2z"}),"Remove"),cMe=Te(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"),KA=Te(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"),dMe=Te(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"),fMe=Te(g.jsx("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),pMe=Te(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"),hMe=Te(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"),mMe=Te(g.jsx("g",{children:g.jsx("path",{d:"M14.67,5v14H9.33V5H14.67z M15.67,19H21V5h-5.33V19z M8.33,19V5H3v14H8.33z"})}),"ViewColumn"),gMe=Te(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");Te(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 vMe=Te(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"),yMe=["hideMenu","colDef","id","labelledby","className","children","open"],bMe=ne(xO)(()=>({minWidth:248})),xMe=v.forwardRef(function(t,n){const{hideMenu:r,id:o,labelledby:i,className:a,children:s,open:l}=t,u=Q(t,yMe),c=v.useCallback(d=>{hz(d.key)&&d.preventDefault(),y2e(d.key)&&r(d)},[r]);return g.jsx(bMe,P({id:o,ref:n,className:Y(U.menuList,a),"aria-labelledby":i,onKeyDown:c,autoFocus:l},u,{children:s}))}),wMe=["displayOrder"],CMe=e=>{const t=Xs(),{defaultSlots:n,defaultSlotProps:r,slots:o={},slotProps:i={},hideMenu:a,colDef:s,addDividers:l=!0}=e,u=v.useMemo(()=>P({},n,o),[n,o]),c=v.useMemo(()=>{if(!i||Object.keys(i).length===0)return r;const h=P({},i);return Object.entries(r).forEach(([p,m])=>{h[p]=P({},m,i[p]||{})}),h},[r,i]),d=t.current.unstable_applyPipeProcessors("columnMenu",[],e.colDef),f=v.useMemo(()=>{const h=Object.keys(n);return Object.keys(o).filter(p=>!h.includes(p))},[o,n]);return v.useMemo(()=>{const m=Array.from(new Set([...d,...f])).filter(y=>u[y]!=null).sort((y,b)=>{const x=c[y],w=c[b],S=Number.isFinite(x==null?void 0:x.displayOrder)?x.displayOrder:100,O=Number.isFinite(w==null?void 0:w.displayOrder)?w.displayOrder:100;return S-O});return m.reduce((y,b,x)=>{let w={colDef:s,onClick:a};const S=c[b];if(S){const O=Q(S,wMe);w=P({},w,O)}return l&&x!==m.length-1?[...y,[u[b],w],[Gr,{}]]:[...y,[u[b],w]]},[])},[l,s,d,a,u,c,f])};function SMe(e){const{colDef:t,onClick:n}=e,r=ct(),o=Ue(),s=Jn(r).filter(u=>u.disableColumnMenu!==!0).length===1,l=v.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(vt,{onClick:l,disabled:s,children:[g.jsx(Vi,{children:g.jsx(o.slots.columnMenuHideIcon,{fontSize:"small"})}),g.jsx(Wi,{children:r.current.getLocaleText("columnMenuHideColumn")})]})}function PMe(e){const{onClick:t}=e,n=ct(),r=Ue(),o=v.useCallback(i=>{t(i),n.current.showPreferences(tu.columns)},[n,t]);return r.disableColumnSelector?null:g.jsxs(vt,{onClick:o,children:[g.jsx(Vi,{children:g.jsx(r.slots.columnMenuManageColumnsIcon,{fontSize:"small"})}),g.jsx(Wi,{children:n.current.getLocaleText("columnMenuManageColumns")})]})}function OMe(e){return g.jsxs(v.Fragment,{children:[g.jsx(SMe,P({},e)),g.jsx(PMe,P({},e))]})}function $Me(e){const{colDef:t,onClick:n}=e,r=ct(),o=Ue(),i=v.useCallback(a=>{n(a),r.current.showFilterPanel(t.field)},[r,t.field,n]);return o.disableColumnFilter||!t.filterable?null:g.jsxs(vt,{onClick:i,children:[g.jsx(Vi,{children:g.jsx(o.slots.columnMenuFilterIcon,{fontSize:"small"})}),g.jsx(Wi,{children:r.current.getLocaleText("columnMenuFilter")})]})}function EMe(e){var t;const{colDef:n,onClick:r}=e,o=ct(),i=Ae(o,Po),a=Ue(),s=v.useMemo(()=>{if(!n)return null;const d=i.find(f=>f.field===n.field);return d==null?void 0:d.sort},[n,i]),l=(t=n.sortingOrder)!=null?t:a.sortingOrder,u=v.useCallback(d=>{r(d);const f=d.currentTarget.getAttribute("data-value")||null;o.current.sortColumn(n,f===s?null:f)},[o,n,r,s]);if(!n||!n.sortable||!l.some(d=>!!d))return null;const c=d=>{const f=o.current.getLocaleText(d);return typeof f=="function"?f(n):f};return g.jsxs(v.Fragment,{children:[l.includes("asc")&&s!=="asc"?g.jsxs(vt,{onClick:u,"data-value":"asc",children:[g.jsx(Vi,{children:g.jsx(a.slots.columnMenuSortAscendingIcon,{fontSize:"small"})}),g.jsx(Wi,{children:c("columnMenuSortAsc")})]}):null,l.includes("desc")&&s!=="desc"?g.jsxs(vt,{onClick:u,"data-value":"desc",children:[g.jsx(Vi,{children:g.jsx(a.slots.columnMenuSortDescendingIcon,{fontSize:"small"})}),g.jsx(Wi,{children:c("columnMenuSortDesc")})]}):null,l.includes(null)&&s!=null?g.jsxs(vt,{onClick:u,children:[g.jsx(Vi,{}),g.jsx(Wi,{children:o.current.getLocaleText("columnMenuUnsort")})]}):null]})}const kMe=["defaultSlots","defaultSlotProps","slots","slotProps"],IMe={columnMenuSortItem:EMe,columnMenuFilterItem:$Me,columnMenuColumnsItem:OMe},TMe={columnMenuSortItem:{displayOrder:10},columnMenuFilterItem:{displayOrder:20},columnMenuColumnsItem:{displayOrder:30}},MMe=v.forwardRef(function(t,n){const{defaultSlots:r,defaultSlotProps:o,slots:i,slotProps:a}=t,s=Q(t,kMe),l=CMe(P({},s,{defaultSlots:r,defaultSlotProps:o,slots:i,slotProps:a}));return g.jsx(xMe,P({ref:n},s,{children:l.map(([u,c],d)=>g.jsx(u,P({},c),d))}))}),_Me=v.forwardRef(function(t,n){return g.jsx(MMe,P({},t,{ref:n,defaultSlots:IMe,defaultSlotProps:TMe}))}),AMe=["className"],RMe=e=>{const{classes:t}=e;return Ce({root:["panelContent"]},dt,t)},jMe=Un("div",{name:"MuiDataGrid",slot:"PanelContent",overridesResolver:(e,t)=>t.panelContent})({display:"flex",flexDirection:"column",overflow:"auto",flex:"1 1",maxHeight:400});function Rz(e){const{className:t}=e,n=Q(e,AMe),r=Ue(),o=RMe(r);return g.jsx(jMe,P({className:Y(t,o.root),ownerState:r},n))}const DMe=["className"],LMe=e=>{const{classes:t}=e;return Ce({root:["panelFooter"]},dt,t)},FMe=Un("div",{name:"MuiDataGrid",slot:"PanelFooter",overridesResolver:(e,t)=>t.panelFooter})(({theme:e})=>({padding:e.spacing(.5),display:"flex",justifyContent:"space-between"}));function jz(e){const{className:t}=e,n=Q(e,DMe),r=Ue(),o=LMe(r);return g.jsx(FMe,P({className:Y(t,o.root),ownerState:r},n))}const NMe=["className"],BMe=e=>{const{classes:t}=e;return Ce({root:["panelHeader"]},dt,t)},zMe=Un("div",{name:"MuiDataGrid",slot:"PanelHeader",overridesResolver:(e,t)=>t.panelHeader})(({theme:e})=>({padding:e.spacing(1)}));function HMe(e){const{className:t}=e,n=Q(e,NMe),r=Ue(),o=BMe(r);return g.jsx(zMe,P({className:Y(t,o.root),ownerState:r},n))}const UMe=["className","slotProps"],VMe=e=>{const{classes:t}=e;return Ce({root:["panelWrapper"]},dt,t)},WMe=ne("div",{name:"MuiDataGrid",slot:"PanelWrapper",overridesResolver:(e,t)=>t.panelWrapper})({display:"flex",flexDirection:"column",flex:1,"&:focus":{outline:0}}),GMe=()=>!0,Dz=v.forwardRef(function(t,n){const{className:r,slotProps:o={}}=t,i=Q(t,UMe),a=Ue(),s=VMe(a);return g.jsx(AF,P({open:!0,disableEnforceFocus:!0,isEnabled:GMe},o.TrapFocus,{children:g.jsx(WMe,P({ref:n,tabIndex:-1,className:Y(r,s.root),ownerState:a},i))}))}),KMe=!1,qMe=["sort","searchPredicate","autoFocusSearchField","disableHideAllButton","disableShowAllButton","getTogglableColumns"],XMe=e=>{const{classes:t}=e;return Ce({root:["columnsPanel"],columnsPanelRow:["columnsPanelRow"]},dt,t)},YMe=ne("div",{name:"MuiDataGrid",slot:"ColumnsPanel",overridesResolver:(e,t)=>t.columnsPanel})({padding:"8px 0px 8px 8px"}),QMe=ne("div",{name:"MuiDataGrid",slot:"ColumnsPanelRow",overridesResolver:(e,t)=>t.columnsPanelRow})(({theme:e})=>({display:"flex",justifyContent:"space-between",padding:"1px 8px 1px 7px",[`& .${lr.root}`]:{marginRight:e.spacing(.5)}}));ne(pr)({justifyContent:"flex-end"});const qA=new Intl.Collator,ZMe=(e,t)=>(e.headerName||e.field).toLowerCase().indexOf(t)>-1;function JMe(e){var t,n,r;const o=ct(),i=v.useRef(null),a=Ae(o,qi),s=Ae(o,fi),l=Ue(),[u,c]=v.useState(""),d=XMe(l),{sort:f,searchPredicate:h=ZMe,autoFocusSearchField:p=!0,disableHideAllButton:m=!1,disableShowAllButton:y=!1,getTogglableColumns:b}=e,x=Q(e,qMe),w=v.useMemo(()=>{switch(f){case"asc":return[...a].sort((A,j)=>qA.compare(A.headerName||A.field,j.headerName||j.field));case"desc":return[...a].sort((A,j)=>-qA.compare(A.headerName||A.field,j.headerName||j.field));default:return a}},[a,f]),S=A=>{const{name:j}=A.target;o.current.setColumnVisibility(j,s[j]===!1)},O=v.useCallback(A=>{const j=fi(o),R=P({},j),I=b?b(a):null;return a.forEach(k=>{k.hideable&&(I==null||I.includes(k.field))&&(A?delete R[k.field]:R[k.field]=!1)}),o.current.setColumnVisibilityModel(R)},[o,a,b]),C=v.useCallback(A=>{c(A.target.value)},[]),$=v.useMemo(()=>{const A=b?b(w):null,j=A?w.filter(({field:R})=>A.includes(R)):w;return u?j.filter(R=>h(R,u.toLowerCase())):j},[w,u,h,b]),E=v.useRef(null);v.useEffect(()=>{p?i.current.focus():E.current&&typeof E.current.focus=="function"&&E.current.focus()},[p]);let M=!1;const _=A=>M===!1&&A.hideable!==!1?(M=!0,!0):!1;return g.jsxs(Dz,P({},x,{children:[g.jsx(HMe,{children:g.jsx(l.slots.baseTextField,P({label:o.current.getLocaleText("columnsPanelTextFieldLabel"),placeholder:o.current.getLocaleText("columnsPanelTextFieldPlaceholder"),inputRef:i,value:u,onChange:C,variant:"standard",fullWidth:!0},(t=l.slotProps)==null?void 0:t.baseTextField))}),g.jsx(Rz,{children:g.jsx(YMe,{className:d.root,ownerState:l,children:$.map(A=>{var j;return g.jsxs(QMe,{className:d.columnsPanelRow,ownerState:l,children:[g.jsx(vQ,{control:g.jsx(l.slots.baseSwitch,P({disabled:A.hideable===!1,checked:s[A.field]!==!1,onClick:S,name:A.field,size:"small",inputRef:_(A)?E:void 0},(j=l.slotProps)==null?void 0:j.baseSwitch)),label:A.headerName||A.field}),!l.disableColumnReorder&&KMe]},A.field)})})}),y&&m?null:g.jsxs(jz,{children:[m?g.jsx("span",{}):g.jsx(l.slots.baseButton,P({onClick:()=>O(!1)},(n=l.slotProps)==null?void 0:n.baseButton,{disabled:m,children:o.current.getLocaleText("columnsPanelHideAllButton")})),y?null:g.jsx(l.slots.baseButton,P({onClick:()=>O(!0)},(r=l.slotProps)==null?void 0:r.baseButton,{disabled:y,children:o.current.getLocaleText("columnsPanelShowAllButton")}))]})]}))}const e_e=["children","className","classes"],t_e=Le("MuiDataGrid",["panel","paper"]),n_e=ne(au,{name:"MuiDataGrid",slot:"Panel",overridesResolver:(e,t)=>t.panel})(({theme:e})=>({zIndex:e.zIndex.modal})),r_e=ne(Ft,{name:"MuiDataGrid",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,minWidth:300,maxHeight:450,display:"flex"})),o_e=v.forwardRef((e,t)=>{const{children:n,className:r}=e,o=Q(e,e_e),i=ct(),a=Ue(),s=t_e,[l,u]=v.useState(!1),c=v.useCallback(()=>{i.current.hidePreferences()},[i]),d=v.useCallback(m=>{yy(m.key)&&i.current.hidePreferences()},[i]),f=v.useMemo(()=>[{name:"flip",enabled:!0,options:{rootBoundary:"document"}},{name:"isPlaced",enabled:!0,phase:"main",fn:()=>{u(!0)},effect:()=>()=>{u(!1)}}],[]),[h,p]=v.useState(null);return v.useEffect(()=>{var m;const y=(m=i.current.rootElementRef)==null||(m=m.current)==null?void 0:m.querySelector(`.${U.columnHeaders}`);y&&p(y)},[i]),h?g.jsx(n_e,P({ref:t,placement:"bottom-start",className:Y(r,s.panel),ownerState:a,anchorEl:h,modifiers:f},o,{children:g.jsx(_F,{mouseEvent:"onMouseUp",onClickAway:c,children:g.jsx(r_e,{className:s.paper,ownerState:a,elevation:8,onKeyDown:d,children:l&&n})})})):null}),i_e=v.forwardRef(function(t,n){var r,o,i;const a=ct(),s=Ae(a,qi),l=Ue(),u=Ae(a,dh),c=a.current.unstable_applyPipeProcessors("preferencePanel",null,(r=u.openedPanelValue)!=null?r:tu.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}))}),a_e=["item","hasMultipleFilters","deleteFilter","applyFilterChanges","multiFilterOperator","showMultiFilterOperators","disableMultiFilterOperator","applyMultiFilterOperatorChanges","focusElementRef","logicOperators","columnsSort","filterColumns","deleteIconProps","logicOperatorInputProps","operatorInputProps","columnInputProps","valueInputProps","children"],s_e=["InputComponentProps"],l_e=e=>{const{classes:t}=e;return Ce({root:["filterForm"],deleteIcon:["filterFormDeleteIcon"],logicOperatorInput:["filterFormLogicOperatorInput"],columnInput:["filterFormColumnInput"],operatorInput:["filterFormOperatorInput"],valueInput:["filterFormValueInput"]},dt,t)},u_e=ne("div",{name:"MuiDataGrid",slot:"FilterForm",overridesResolver:(e,t)=>t.filterForm})(({theme:e})=>({display:"flex",padding:e.spacing(1)})),c_e=ne("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)})),d_e=ne("div",{name:"MuiDataGrid",slot:"FilterFormLogicOperatorInput",overridesResolver:(e,t)=>t.filterFormLogicOperatorInput})({minWidth:55,marginRight:5,justifyContent:"end"}),f_e=ne("div",{name:"MuiDataGrid",slot:"FilterFormColumnInput",overridesResolver:(e,t)=>t.filterFormColumnInput})({width:150}),p_e=ne("div",{name:"MuiDataGrid",slot:"FilterFormOperatorInput",overridesResolver:(e,t)=>t.filterFormOperatorInput})({width:120}),h_e=ne("div",{name:"MuiDataGrid",slot:"FilterFormValueInput",overridesResolver:(e,t)=>t.filterFormValueInput})({width:190}),m_e=e=>{switch(e){case Ar.And:return"filterPanelOperatorAnd";case Ar.Or:return"filterPanelOperatorOr";default:throw new Error("MUI: Invalid `logicOperator` property in the `GridFilterPanel`.")}},vf=e=>e.headerName||e.field,XA=new Intl.Collator,g_e=v.forwardRef(function(t,n){var r,o,i,a,s,l,u,c,d,f;const{item:h,hasMultipleFilters:p,deleteFilter:m,applyFilterChanges:y,multiFilterOperator:b,showMultiFilterOperators:x,disableMultiFilterOperator:w,applyMultiFilterOperatorChanges:S,focusElementRef:O,logicOperators:C=[Ar.And,Ar.Or],columnsSort:$,filterColumns:E,deleteIconProps:M={},logicOperatorInputProps:_={},operatorInputProps:A={},columnInputProps:j={},valueInputProps:R={}}=t,I=Q(t,a_e),k=ct(),D=Ae(k,Z4),F=Ae(k,Fn),T=Dt(),L=Dt(),N=Dt(),z=Dt(),B=Ue(),V=l_e(B),W=v.useRef(null),ee=v.useRef(null),pe=p&&C.length>0,be=((r=B.slotProps)==null?void 0:r.baseFormControl)||{},J=(i=(((o=B.slotProps)==null?void 0:o.baseSelect)||{}).native)!=null?i:!0,fe=((a=B.slotProps)==null?void 0:a.baseInputLabel)||{},ce=((s=B.slotProps)==null?void 0:s.baseSelectOption)||{},{InputComponentProps:K}=R,Z=Q(R,s_e),ie=v.useMemo(()=>{if(E===void 0||typeof E!="function")return D;const Ee=E({field:h.field,columns:D,currentFilters:(F==null?void 0:F.items)||[]});return D.filter(me=>Ee.includes(me.field))},[E,F==null?void 0:F.items,D,h.field]),re=v.useMemo(()=>{switch($){case"asc":return ie.sort((Ee,me)=>XA.compare(vf(Ee),vf(me)));case"desc":return ie.sort((Ee,me)=>-XA.compare(vf(Ee),vf(me)));default:return ie}},[ie,$]),ae=h.field?k.current.getColumn(h.field):null,we=v.useMemo(()=>{var Ee;return!h.operator||!ae?null:(Ee=ae.filterOperators)==null?void 0:Ee.find(me=>me.value===h.operator)},[h,ae]),ge=v.useCallback(Ee=>{const me=Ee.target.value,xe=k.current.getColumn(me);if(xe.field===ae.field)return;const ke=xe.filterOperators.find(et=>et.value===h.operator)||xe.filterOperators[0],ze=!ke.InputComponent||ke.InputComponent!==(we==null?void 0:we.InputComponent)||xe.type!==ae.type;y(P({},h,{field:me,operator:ke.value,value:ze?void 0:h.value}))},[k,y,h,ae,we]),je=v.useCallback(Ee=>{const me=Ee.target.value,xe=ae==null?void 0:ae.filterOperators.find(ze=>ze.value===me),ke=!(xe!=null&&xe.InputComponent)||(xe==null?void 0:xe.InputComponent)!==(we==null?void 0:we.InputComponent);y(P({},h,{operator:me,value:ke?void 0:h.value}))},[y,h,ae,we]),$e=v.useCallback(Ee=>{const me=Ee.target.value===Ar.And.toString()?Ar.And:Ar.Or;S(me)},[S]),Re=()=>{B.disableMultipleColumnsFiltering?h.value===void 0?m(h):y(P({},h,{value:void 0})):m(h)};return v.useImperativeHandle(O,()=>({focus:()=>{if(we!=null&&we.InputComponent){var Ee;W==null||(Ee=W.current)==null||Ee.focus()}else ee.current.focus()}}),[we]),g.jsxs(u_e,P({ref:n,className:V.root,"data-id":h.id,ownerState:B},I,{children:[g.jsx(c_e,P({variant:"standard",as:B.slots.baseFormControl},be,M,{className:Y(V.deleteIcon,be.className,M.className),ownerState:B,children:g.jsx(B.slots.baseIconButton,P({"aria-label":k.current.getLocaleText("filterPanelDeleteIconLabel"),title:k.current.getLocaleText("filterPanelDeleteIconLabel"),onClick:Re,size:"small"},(l=B.slotProps)==null?void 0:l.baseIconButton,{children:g.jsx(B.slots.filterPanelDeleteIcon,{fontSize:"small"})}))})),g.jsx(d_e,P({variant:"standard",as:B.slots.baseFormControl},be,_,{sx:P({display:pe?"flex":"none",visibility:x?"visible":"hidden"},be.sx||{},_.sx||{}),className:Y(V.logicOperatorInput,be.className,_.className),ownerState:B,children:g.jsx(B.slots.baseSelect,P({inputProps:{"aria-label":k.current.getLocaleText("filterPanelLogicOperator")},value:b,onChange:$e,disabled:!!w||C.length===1,native:J},(u=B.slotProps)==null?void 0:u.baseSelect,{children:C.map(Ee=>v.createElement(B.slots.baseSelectOption,P({},ce,{native:J,key:Ee.toString(),value:Ee.toString()}),k.current.getLocaleText(m_e(Ee))))}))})),g.jsxs(f_e,P({variant:"standard",as:B.slots.baseFormControl},be,j,{className:Y(V.columnInput,be.className,j.className),ownerState:B,children:[g.jsx(B.slots.baseInputLabel,P({},fe,{htmlFor:T,id:L,children:k.current.getLocaleText("filterPanelColumns")})),g.jsx(B.slots.baseSelect,P({labelId:L,id:T,label:k.current.getLocaleText("filterPanelColumns"),value:h.field||"",onChange:ge,native:J},(c=B.slotProps)==null?void 0:c.baseSelect,{children:re.map(Ee=>v.createElement(B.slots.baseSelectOption,P({},ce,{native:J,key:Ee.field,value:Ee.field}),vf(Ee)))}))]})),g.jsxs(p_e,P({variant:"standard",as:B.slots.baseFormControl},be,A,{className:Y(V.operatorInput,be.className,A.className),ownerState:B,children:[g.jsx(B.slots.baseInputLabel,P({},fe,{htmlFor:N,id:z,children:k.current.getLocaleText("filterPanelOperator")})),g.jsx(B.slots.baseSelect,P({labelId:z,label:k.current.getLocaleText("filterPanelOperator"),id:N,value:h.operator,onChange:je,native:J,inputRef:ee},(d=B.slotProps)==null?void 0:d.baseSelect,{children:ae==null||(f=ae.filterOperators)==null?void 0:f.map(Ee=>v.createElement(B.slots.baseSelectOption,P({},ce,{native:J,key:Ee.value,value:Ee.value}),Ee.label||k.current.getLocaleText(`filterOperator${oe(Ee.value)}`)))}))]})),g.jsx(h_e,P({variant:"standard",as:B.slots.baseFormControl},be,Z,{className:Y(V.valueInput,be.className,Z.className),ownerState:B,children:we!=null&&we.InputComponent?g.jsx(we.InputComponent,P({apiRef:k,item:h,applyValue:y,focusElementRef:W},we.InputComponentProps,K)):null}))]}))});class X${constructor(){this.currentId=0,this.clear=()=>{this.currentId!==0&&(clearTimeout(this.currentId),this.currentId=0)},this.disposeEffect=()=>this.clear}static create(){return new X$}start(t,n){this.clear(),this.currentId=setTimeout(n,t)}}function Y$(){const e=j$(X$.create).current;return Y4(e.disposeEffect),e}const v_e=["item","applyValue","type","apiRef","focusElementRef","tabIndex","disabled","isFilterActive","clearButton","InputProps","variant"];function Di(e){var t,n;const{item:r,applyValue:o,type:i,apiRef:a,focusElementRef:s,tabIndex:l,disabled:u,clearButton:c,InputProps:d,variant:f="standard"}=e,h=Q(e,v_e),p=Y$(),[m,y]=v.useState((t=r.value)!=null?t:""),[b,x]=v.useState(!1),w=Dt(),S=Ue(),O=v.useCallback(C=>{const{value:$}=C.target;y(String($)),x(!0),p.start(S.filterDebounceMs,()=>{const E=P({},r,{value:$,fromInput:w});o(E),x(!1)})},[w,o,r,S.filterDebounceMs,p]);return v.useEffect(()=>{if(r.fromInput!==w||r.value===void 0){var $;y(String(($=r.value)!=null?$:""))}},[w,r]),g.jsx(S.slots.baseTextField,P({id:w,label:a.current.getLocaleText("filterPanelInputLabel"),placeholder:a.current.getLocaleText("filterPanelInputPlaceholder"),value:m,onChange:O,variant:f,type:i||"text",InputProps:P({},b||c?{endAdornment:b?g.jsx(S.slots.loadIcon,{fontSize:"small",color:"action"}):c}:{},{disabled:u},d,{inputProps:P({tabIndex:l},d==null?void 0:d.inputProps)}),InputLabelProps:{shrink:!0},inputRef:s},h,(n=S.slotProps)==null?void 0:n.baseTextField))}const y_e=["item","applyValue","type","apiRef","focusElementRef","InputProps","isFilterActive","clearButton","tabIndex","disabled"];function Su(e){var t,n;const{item:r,applyValue:o,type:i,apiRef:a,focusElementRef:s,InputProps:l,clearButton:u,tabIndex:c,disabled:d}=e,f=Q(e,y_e),h=Y$(),[p,m]=v.useState((t=r.value)!=null?t:""),[y,b]=v.useState(!1),x=Dt(),w=Ue(),S=v.useCallback(O=>{const C=O.target.value;m(String(C)),b(!0),h.start(w.filterDebounceMs,()=>{o(P({},r,{value:C})),b(!1)})},[o,r,w.filterDebounceMs,h]);return v.useEffect(()=>{var O;const C=(O=r.value)!=null?O:"";m(String(C))},[r.value]),g.jsx(w.slots.baseTextField,P({fullWidth:!0,id:x,label:a.current.getLocaleText("filterPanelInputLabel"),placeholder:a.current.getLocaleText("filterPanelInputPlaceholder"),value:p,onChange:S,variant:"standard",type:i||"text",InputLabelProps:{shrink:!0},inputRef:s,InputProps:P({},y||u?{endAdornment:y?g.jsx(w.slots.loadIcon,{fontSize:"small",color:"action"}):u}:{},{disabled:d},l,{inputProps:P({max:i==="datetime-local"?"9999-12-31T23:59":"9999-12-31",tabIndex:c},l==null?void 0:l.inputProps)})},f,(n=w.slotProps)==null?void 0:n.baseTextField))}const b_e=["item","applyValue","type","apiRef","focusElementRef","getOptionLabel","getOptionValue","placeholder","tabIndex","label","variant","isFilterActive","clearButton","InputLabelProps"],x_e=({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 v.createElement(n,P({},a,{native:i,key:u,value:u}),c)}),w_e=ne("div")({display:"flex",alignItems:"flex-end",width:"100%","& button":{margin:"auto 0px 5px 5px"}});function YA(e){var t,n,r,o,i,a,s,l;const{item:u,applyValue:c,type:d,apiRef:f,focusElementRef:h,getOptionLabel:p,getOptionValue:m,placeholder:y,tabIndex:b,label:x,variant:w="standard",clearButton:S}=e,O=Q(e,b_e),[C,$]=v.useState((t=u.value)!=null?t:""),E=Dt(),M=Dt(),_=Ue(),A=(n=(r=_.slotProps)==null||(r=r.baseSelect)==null?void 0:r.native)!=null?n:!0;let j=null;if(u.field){const T=f.current.getColumn(u.field);Ll(T)&&(j=T)}const R=m||((o=j)==null?void 0:o.getOptionValue),I=p||((i=j)==null?void 0:i.getOptionLabel),k=v.useMemo(()=>{if(j)return typeof j.valueOptions=="function"?j.valueOptions({field:j.field}):j.valueOptions},[j]),D=v.useCallback(T=>{let L=T.target.value;L=yS(L,k,R),$(String(L)),c(P({},u,{value:L}))},[k,R,c,u]);if(v.useEffect(()=>{var T;let L;if(k!==void 0){if(L=yS(u.value,k,R),L!==u.value){c(P({},u,{value:L}));return}}else L=u.value;L=(T=L)!=null?T:"",$(String(L))},[u,k,c,R]),!Ll(j)||!Ll(j))return null;const F=x??f.current.getLocaleText("filterPanelInputLabel");return g.jsxs(w_e,{children:[g.jsxs(_.slots.baseFormControl,{children:[g.jsx(_.slots.baseInputLabel,P({},(a=_.slotProps)==null?void 0:a.baseInputLabel,{id:M,htmlFor:E,shrink:!0,variant:w,children:F})),g.jsx(_.slots.baseSelect,P({id:E,label:F,labelId:M,value:C,onChange:D,variant:w,type:d||"text",inputProps:{tabIndex:b,ref:h,placeholder:y??f.current.getLocaleText("filterPanelInputPlaceholder")},native:A,notched:w==="outlined"?!0:void 0},O,(s=_.slotProps)==null?void 0:s.baseSelect,{children:x_e({column:j,OptionComponent:_.slots.baseSelectOption,getOptionLabel:I,getOptionValue:R,isSelectNative:A,baseSelectOptionProps:(l=_.slotProps)==null?void 0:l.baseSelectOption})}))]}),S]})}const C_e=["item","applyValue","apiRef","focusElementRef","isFilterActive","clearButton","tabIndex","label","variant","InputLabelProps"],S_e=ne("div")({display:"flex",alignItems:"center",width:"100%","& button":{margin:"auto 0px 5px 5px"}});function P_e(e){var t,n,r,o;const{item:i,applyValue:a,apiRef:s,focusElementRef:l,clearButton:u,tabIndex:c,label:d,variant:f="standard"}=e,h=Q(e,C_e),[p,m]=v.useState(i.value||""),y=Ue(),b=Dt(),x=Dt(),w=((t=y.slotProps)==null?void 0:t.baseSelect)||{},S=(n=w.native)!=null?n:!0,O=((r=y.slotProps)==null?void 0:r.baseSelectOption)||{},C=v.useCallback(E=>{const M=E.target.value;m(M),a(P({},i,{value:M}))},[a,i]);v.useEffect(()=>{m(i.value||"")},[i.value]);const $=d??s.current.getLocaleText("filterPanelInputLabel");return g.jsxs(S_e,{children:[g.jsxs(y.slots.baseFormControl,{fullWidth:!0,children:[g.jsx(y.slots.baseInputLabel,P({},(o=y.slotProps)==null?void 0:o.baseInputLabel,{id:b,shrink:!0,variant:f,children:$})),g.jsxs(y.slots.baseSelect,P({labelId:b,id:x,label:$,value:p,onChange:C,variant:f,notched:f==="outlined"?!0:void 0,native:S,displayEmpty:!0,inputProps:{ref:l,tabIndex:c}},h,w,{children:[g.jsx(y.slots.baseSelectOption,P({},O,{native:S,value:"",children:s.current.getLocaleText("filterValueAny")})),g.jsx(y.slots.baseSelectOption,P({},O,{native:S,value:"true",children:s.current.getLocaleText("filterValueTrue")})),g.jsx(y.slots.baseSelectOption,P({},O,{native:S,value:"false",children:s.current.getLocaleText("filterValueFalse")}))]}))]}),u]})}const O_e=["logicOperators","columnsSort","filterFormProps","getColumnForNewFilter","children","disableAddFilterButton","disableRemoveAllButton"],QA=e=>({field:e.field,operator:e.filterOperators[0].value,id:Math.round(Math.random()*1e5)}),$_e=v.forwardRef(function(t,n){var r,o;const i=ct(),a=Ue(),s=Ae(i,Fn),l=Ae(i,Z4),u=v.useRef(null),c=v.useRef(null),{logicOperators:d=[Ar.And,Ar.Or],columnsSort:f,filterFormProps:h,getColumnForNewFilter:p,disableAddFilterButton:m=!1,disableRemoveAllButton:y=!1}=t,b=Q(t,O_e),x=i.current.upsertFilterItem,w=v.useCallback(A=>{i.current.setFilterLogicOperator(A)},[i]),S=v.useCallback(()=>{let A;if(p&&typeof p=="function"){const j=p({currentFilters:(s==null?void 0:s.items)||[],columns:l});if(j===null)return null;A=l.find(({field:R})=>R===j)}else A=l.find(j=>{var R;return(R=j.filterOperators)==null?void 0:R.length});return A?QA(A):null},[s==null?void 0:s.items,l,p]),O=v.useCallback(()=>{if(p===void 0||typeof p!="function")return S();const A=s.items.length?s.items:[S()].filter(Boolean),j=p({currentFilters:A,columns:l});if(j===null)return null;const R=l.find(({field:I})=>I===j);return R?QA(R):null},[s.items,l,p,S]),C=v.useMemo(()=>s.items.length?s.items:(c.current||(c.current=S()),c.current?[c.current]:[]),[s.items,S]),$=C.length>1,E=()=>{const A=O();A&&i.current.upsertFilterItems([...C,A])},M=v.useCallback(A=>{const j=C.length===1;i.current.deleteFilterItem(A),j&&i.current.hideFilterPanel()},[i,C.length]),_=()=>{C.length===1&&C[0].value===void 0&&(i.current.deleteFilterItem(C[0]),i.current.hideFilterPanel()),i.current.setFilterModel(P({},s,{items:[]}))};return v.useEffect(()=>{d.length>0&&s.logicOperator&&!d.includes(s.logicOperator)&&w(d[0])},[d,w,s.logicOperator]),v.useEffect(()=>{C.length>0&&u.current.focus()},[C.length]),g.jsxs(Dz,P({ref:n},b,{children:[g.jsx(Rz,{children:C.map((A,j)=>g.jsx(g_e,P({item:A,applyFilterChanges:x,deleteFilter:M,hasMultipleFilters:$,showMultiFilterOperators:j>0,multiFilterOperator:s.logicOperator,disableMultiFilterOperator:j!==1,applyMultiFilterOperatorChanges:w,focusElementRef:j===C.length-1?u:null,logicOperators:d,columnsSort:f},h),A.id==null?j:A.id))}),!a.disableMultipleColumnsFiltering&&!(m&&y)?g.jsxs(jz,{children:[m?g.jsx("span",{}):g.jsx(a.slots.baseButton,P({onClick:E,startIcon:g.jsx(a.slots.filterPanelAddIcon,{})},(r=a.slotProps)==null?void 0:r.baseButton,{children:i.current.getLocaleText("filterPanelAddFilter")})),y?null:g.jsx(a.slots.baseButton,P({onClick:_,startIcon:g.jsx(a.slots.filterPanelRemoveAllIcon,{})},(o=a.slotProps)==null?void 0:o.baseButton,{children:i.current.getLocaleText("filterPanelRemoveAll")}))]}):null]}))}),E_e=["item","applyValue","type","apiRef","focusElementRef","color","error","helperText","size","variant"];function Lz(e){const{item:t,applyValue:n,type:r,apiRef:o,focusElementRef:i,color:a,error:s,helperText:l,size:u,variant:c}=e,d=Q(e,E_e),f={color:a,error:s,helperText:l,size:u,variant:c},[h,p]=v.useState(t.value||[]),m=Dt(),y=Ue();v.useEffect(()=>{var x;const w=(x=t.value)!=null?x:[];p(w.map(String))},[t.value]);const b=v.useCallback((x,w)=>{p(w.map(String)),n(P({},t,{value:[...w]}))},[n,t]);return g.jsx(OF,P({multiple:!0,freeSolo:!0,options:[],filterOptions:(x,w)=>{const{inputValue:S}=w;return S==null||S===""?[]:[S]},id:m,value:h,onChange:b,renderTags:(x,w)=>x.map((S,O)=>g.jsx(y.slots.baseChip,P({variant:"outlined",size:"small",label:S},w({index:O})))),renderInput:x=>{var w;return g.jsx(y.slots.baseTextField,P({},x,{label:o.current.getLocaleText("filterPanelInputLabel"),placeholder:o.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:P({},x.InputLabelProps,{shrink:!0}),inputRef:i,type:r||"text"},f,(w=y.slotProps)==null?void 0:w.baseTextField))}},d))}const k_e=["item","applyValue","type","apiRef","focusElementRef","color","error","helperText","size","variant","getOptionLabel","getOptionValue"],I_e=cF();function T_e(e){var t,n;const{item:r,applyValue:o,apiRef:i,focusElementRef:a,color:s,error:l,helperText:u,size:c,variant:d="standard",getOptionLabel:f,getOptionValue:h}=e,p=Q(e,k_e),m={color:s,error:l,helperText:u,size:c,variant:d},y=Dt(),b=Ue();let x=null;if(r.field){const _=i.current.getColumn(r.field);Ll(_)&&(x=_)}const w=h||((t=x)==null?void 0:t.getOptionValue),S=f||((n=x)==null?void 0:n.getOptionLabel),O=v.useCallback((_,A)=>w(_)===w(A),[w]),C=v.useMemo(()=>{var _;return(_=x)!=null&&_.valueOptions?typeof x.valueOptions=="function"?x.valueOptions({field:x.field}):x.valueOptions:[]},[x]),$=v.useMemo(()=>C==null?void 0:C.map(w),[C,w]),E=v.useMemo(()=>Array.isArray(r.value)?C!==void 0?r.value.map(A=>$==null?void 0:$.findIndex(j=>j===A)).filter(A=>A>=0).map(A=>C[A]):r.value:[],[r.value,C,$]);v.useEffect(()=>{(!Array.isArray(r.value)||E.length!==r.value.length)&&o(P({},r,{value:E.map(w)}))},[r,E,o,w]);const M=v.useCallback((_,A)=>{o(P({},r,{value:A.map(w)}))},[o,r,w]);return g.jsx(OF,P({multiple:!0,options:C,isOptionEqualToValue:O,filterOptions:I_e,id:y,value:E,onChange:M,getOptionLabel:S,renderTags:(_,A)=>_.map((j,R)=>g.jsx(b.slots.baseChip,P({variant:"outlined",size:"small",label:S(j)},A({index:R})))),renderInput:_=>{var A;return g.jsx(b.slots.baseTextField,P({},_,{label:i.current.getLocaleText("filterPanelInputLabel"),placeholder:i.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:P({},_.InputLabelProps,{shrink:!0}),inputRef:a,type:"singleSelect"},m,(A=b.slotProps)==null?void 0:A.baseTextField))}},p))}const M_e=["hideMenu","options"],__e=["hideMenu","options"];function A_e(e){const t=ct(),{hideMenu:n,options:r}=e,o=Q(e,M_e);return g.jsx(vt,P({onClick:()=>{t.current.exportDataAsCsv(r),n==null||n()}},o,{children:t.current.getLocaleText("toolbarExportCSV")}))}function R_e(e){const t=ct(),{hideMenu:n,options:r}=e,o=Q(e,__e);return g.jsx(vt,P({onClick:()=>{t.current.exportDataAsPrint(r),n==null||n()}},o,{children:t.current.getLocaleText("toolbarExportPrint")}))}const j_e=["className","selectedRowCount"],D_e=e=>{const{classes:t}=e;return Ce({root:["selectedRowCount"]},dt,t)},L_e=Un("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"}})),F_e=v.forwardRef(function(t,n){const{className:r,selectedRowCount:o}=t,i=Q(t,j_e),a=ct(),s=Ue(),l=D_e(s),u=a.current.getLocaleText("footerRowSelected")(o);return g.jsx(L_e,P({ref:n,className:Y(l.root,r),ownerState:s},i,{children:u}))}),N_e=v.forwardRef(function(t,n){var r,o;const i=ct(),a=Ue(),s=Ae(i,uIe),l=Ae(i,_Te),u=Ae(i,iz),c=!a.hideFooterSelectedRowCount&&l>0?g.jsx(F_e,{selectedRowCount:l}):g.jsx("div",{}),d=!a.hideFooterRowCount&&!a.pagination?g.jsx(a.slots.footerRowCount,P({},(r=a.slotProps)==null?void 0:r.footerRowCount,{rowCount:s,visibleRowCount:u})):null,f=a.pagination&&!a.hideFooterPagination&&a.slots.pagination&&g.jsx(a.slots.pagination,P({},(o=a.slotProps)==null?void 0:o.pagination));return g.jsxs(U2e,P({ref:n},t,{children:[c,d,f]}))});function B_e(){var e,t;const n=Ue();return g.jsxs(v.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 z_e=v.forwardRef(function(t,n){return g.jsx(V$,P({ref:n},t,{children:g.jsx(co,{})}))}),H_e=v.forwardRef(function(t,n){const o=ct().current.getLocaleText("noRowsLabel");return g.jsx(V$,P({ref:n},t,{children:o}))}),U_e=ne(xte)(({theme:e})=>({[`& .${Ml.selectLabel}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"block"}},[`& .${Ml.input}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"inline-flex"}}})),V_e=v.forwardRef(function(t,n){const r=ct(),o=Ue(),i=Ae(r,Oo),a=Ae(r,Yu),s=v.useMemo(()=>Math.floor(a/(i.pageSize||1)),[a,i.pageSize]),l=v.useCallback(f=>{const h=Number(f.target.value);r.current.setPageSize(h)},[r]),u=v.useCallback((f,h)=>{r.current.setPage(h)},[r]),d=(f=>{for(let h=0;h{const{classes:t}=e;return Ce({root:["rowCount"]},dt,t)},K_e=Un("div",{name:"MuiDataGrid",slot:"RowCount",overridesResolver:(e,t)=>t.rowCount})(({theme:e})=>({alignItems:"center",display:"flex",margin:e.spacing(0,2)})),q_e=v.forwardRef(function(t,n){const{className:r,rowCount:o,visibleRowCount:i}=t,a=Q(t,W_e),s=ct(),l=Ue(),u=G_e(l);if(o===0)return null;const c=i{let n,r;return t.pagination&&t.paginationMode==="client"?(r=K$(e),n=MTe(e)):(n=Ys(e),n.length===0?r=null:r={firstRowIndex:0,lastRowIndex:n.length-1}),{rows:n,range:r}},fu=(e,t)=>{const n=wy(e,t);return v.useMemo(()=>({rows:n.rows,range:n.range}),[n.rows,n.range])},bS={current:null};function Yh(e){return e.isInternal=!0,e}function Cy(e){return e!==void 0&&e.isInternal===!0}function X_e(e){return Yh((t,n)=>{const r=e(t,n);return r&&(o=>r(o.value,o.row,n,bS.current))})}function Qh(e){return e.map(t=>P({},t,{getApplyFilterFn:X_e(t.getApplyFilterFnV7),getApplyFilterFnV7:Yh(t.getApplyFilterFnV7)}))}function Fz(e){return Yh((t,n,r)=>{const o=e(t,n,r);return o&&(i=>o(i.value,i.row,n,r))})}function Nz(e){return{current:e.current.getPublicApi()}}let yf;function Y_e(){if(yf!==void 0)return yf;try{yf=new Function("return true")()}catch{yf=!1}return yf}const xS=(e,t)=>{const n=P({},e);if(n.id==null&&(n.id=Math.round(Math.random()*1e5)),n.operator==null){const r=Nd(t)[n.field];n.operator=r&&r.filterOperators[0].value}return n},Q_e=ta(["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"),Z_e=ta("MUI: The `id` field is required on `filterModel.items` when you use multiple filters.","error"),J_e=ta("MUI: The `operator` field is required on `filterModel.items`, one or more of your filtering item has no `operator` provided.","error"),Bz=(e,t,n)=>{const r=e.items.length>1;let o;r&&t?(Q_e(),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&&Z_e(),a&&J_e(),a||i?P({},e,{items:o.map(s=>xS(s,n))}):e.items!==o?P({},e,{items:o}):e},ZA=(e,t,n)=>r=>P({},r,{filterModel:Bz(e,t,n)}),xs=e=>typeof e=="string"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e,zz=(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 h=n.valueParser;r=Array.isArray(e.value)?(o=e.value)==null?void 0:o.map(p=>h(p)):h(e.value)}else r=e.value;const{ignoreDiacritics:i}=t.current.rootProps;i&&(r=xs(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(h=>h.value===a.operator);if(!l)throw new Error(`MUI: No filter operator found for column '${n.field}' and operator value '${a.operator}'.`);const u=!Cy(l.getApplyFilterFn),c=!Cy(l.getApplyFilterFnV7),d=Nz(t);if(l.getApplyFilterFnV7&&!(u&&!c)){const h=l.getApplyFilterFnV7(a,n);return typeof h!="function"?null:{v7:!0,item:a,fn:p=>{let m=t.current.getRowValue(p,n);return i&&(m=xs(m)),h(m,p,n,d)}}}const f=l.getApplyFilterFn(a,n);return typeof f!="function"?null:{v7:!1,item:a,fn:h=>{const p=t.current.getCellParams(h,a.field);bS.current=d,i&&(p.value=xs(p.value));const m=f(p);return bS.current=null,m}}};let JA=1;const eAe=(e,t,n)=>{const{items:r}=e,o=r.map(s=>zz(s,t)).filter(s=>!!s);if(o.length===0)return null;if(n||!Y_e())return(s,l)=>{const u={};for(let c=0;c`const shouldApply${l} = !shouldApplyFilter || shouldApplyFilter(${JSON.stringify(s.item.field)});`).join(` `)} const result$$ = { ${o.map((s,l)=>` ${JSON.stringify(String(s.item.id))}: !shouldApply${l} ? false : ${s.v7?`appliers[${l}].fn(row)`:`appliers[${l}].fn(getRowId(row))`},`).join(` `)} }; return result$$;`.replaceAll("$$",String(JA)));return JA+=1,(s,l)=>i(t.current.getRowId,o,s,l)},tAe=(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)?T0(t):Pa(t),l=[],{ignoreDiacritics:u}=t.current.rootProps,c=Nz(t);return s.forEach(d=>{const f=t.current.getColumn(d),h=f==null?void 0:f.getApplyQuickFilterFn,p=f==null?void 0:f.getApplyQuickFilterFnV7,m=!Cy(h),y=!Cy(p);p&&!(m&&!y)?l.push({column:f,appliers:i.map(b=>{const x=u?xs(b):b;return{v7:!0,fn:p(x,f,c)}})}):h&&l.push({column:f,appliers:i.map(b=>{const x=u?xs(b):b;return{v7:!1,fn:h(x,f,c)}})})}),function(f,h){const p={},m={};e:for(let b=0;b{const r=eAe(e,t,n),o=tAe(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}},eR=e=>e!=null,rAe=(e,t,n)=>(e.cleanedFilterItems||(e.cleanedFilterItems=n.filter(r=>zz(r,t)!==null)),e.cleanedFilterItems),oAe=(e,t,n,r,o)=>{const i=rAe(o,r,n.items),a=e.filter(eR),s=t.filter(eR);if(a.length>0){var l;const c=f=>a.some(h=>h[f.id]);if(((l=n.logicOperator)!=null?l:ch().logicOperator)===Ar.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=f=>s.some(h=>h[f]);if(((u=n.quickFilterLogicOperator)!=null?u:ch().quickFilterLogicOperator)===Ar.And){if(!n.quickFilterValues.every(c))return!1}else if(!n.quickFilterValues.some(c))return!1}return!0},tR=Yh(e=>{if(!e)return null;const t=new RegExp(Cg(e),"i");return(n,r,o,i)=>{let a=i.current.getRowFormattedValue(r,o);return i.current.ignoreDiacritics&&(a=xs(a)),a!=null?t.test(a.toString()):!1}}),iAe=(e=!1)=>Qh([{value:"contains",getApplyFilterFnV7:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(Cg(n),"i");return o=>o!=null?r.test(String(o)):!1},InputComponent:Di},{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:Di},{value:"startsWith",getApplyFilterFnV7:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(`^${Cg(n)}.*$`,"i");return o=>o!=null?r.test(o.toString()):!1},InputComponent:Di},{value:"endsWith",getApplyFilterFnV7:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(`.*${Cg(n)}$`,"i");return o=>o!=null?r.test(o.toString()):!1},InputComponent:Di},{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:Lz}]),yi={width:100,minWidth:50,maxWidth:1/0,hideable:!0,sortable:!0,resizable:!0,filterable:!0,groupable:!0,pinnable:!0,aggregable:!0,editable:!1,sortComparator:BTe,type:"string",align:"left",filterOperators:iAe(),renderEditCell:f2e,getApplyQuickFilterFn:Fz(tR),getApplyQuickFilterFnV7:tR},aAe=()=>Qh([{value:"is",getApplyFilterFnV7:e=>{if(!e.value)return null;const t=e.value==="true";return n=>!!n===t},InputComponent:P_e}]);function sAe({value:e,api:t}){return e?t.getLocaleText("booleanCellTrueLabel"):t.getLocaleText("booleanCellFalseLabel")}const lAe=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}},Hz=P({},yi,{type:"boolean",align:"center",headerAlign:"center",renderCell:JIe,renderEditCell:r2e,sortComparator:Iz,valueFormatter:sAe,filterOperators:aAe(),getApplyQuickFilterFn:void 0,getApplyQuickFilterFnV7:void 0,aggregable:!1,pastedValueParser:e=>lAe(e)}),qa="__check__",Hd=P({},Hz,{field:qa,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=>xy(e.api.state,e.api.instanceId)[e.id]!==void 0,renderHeader:e=>g.jsx(eMe,P({},e)),renderCell:e=>g.jsx(QTe,P({},e))}),L0="actions",uAe=P({},yi,{sortable:!1,filterable:!1,aggregable:!1,width:100,align:"center",headerAlign:"center",headerName:"",disableColumnMenu:!0,disableExport:!0,renderCell:M2e,getApplyQuickFilterFn:void 0,getApplyQuickFilterFnV7:void 0}),Q$="__detail_panel_toggle__",xr=e=>e.editRows,cAe=["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"],dAe=e=>{const{editable:t,editing:n,selected:r,isLastVisible:o,rowHeight:i,classes:a}=e;return Ce({root:["row",r&&"selected",t&&"row--editable",n&&"row--editing",o&&"row--lastVisible",i==="auto"&&"row--dynamicHeight"]},dt,a)};function fAe({width:e}){if(!e)return null;const t={width:e};return g.jsx("div",{className:`${U.cell} ${U.withBorderColor}`,style:t})}const pAe=v.forwardRef(function(t,n){const{selected:r,hovered:o,rowId:i,row:a,index:s,style:l,position:u,rowHeight:c,className:d,visibleColumns:f,renderedColumns:h,containerWidth:p,firstColumnToRender:m,isLastVisible:y=!1,focusedCellColumnIndexNotInRange:b,isNotVisible:x,focusedCell:w,onClick:S,onDoubleClick:O,onMouseEnter:C,onMouseLeave:$,onMouseOut:E,onMouseOver:M}=t,_=Q(t,cAe),A=ct(),j=v.useRef(null),R=Ue(),I=fu(A,R),k=Ae(A,L$),D=Ae(A,Po),F=Ae(A,A0),T=Ae(A,Kh),L=Ae(A,xr),N=yt(j,n),z=s+T+2,B={selected:r,isLastVisible:y,classes:R.classes,editing:A.current.getRowMode(i)===Ht.Edit,editable:R.editMode===Ji.Row,rowHeight:c},V=dAe(B);v.useLayoutEffect(()=>{c==="auto"&&j.current&&typeof ResizeObserver>"u"&&A.current.unstable_storeRowHeightMeasurement(i,j.current.clientHeight,u)},[A,c,i,u]),v.useLayoutEffect(()=>{if(I.range){const ze=A.current.getRowIndexRelativeToVisibleRows(i);ze!=null&&A.current.unstable_setLastMeasuredRowIndex(ze)}const me=j.current;if(!me||c!=="auto"||typeof ResizeObserver>"u")return;const ke=new ResizeObserver(ze=>{const[et]=ze,ue=et.borderBoxSize&&et.borderBoxSize.length>0?et.borderBoxSize[0].blockSize:et.contentRect.height;A.current.unstable_storeRowHeightMeasurement(i,ue,u)});return ke.observe(me),()=>ke.disconnect()},[A,I.range,s,c,i,u]);const W=v.useCallback((me,xe)=>ke=>{qh(ke)||A.current.getRow(i)&&(A.current.publishEvent(me,A.current.getRowParams(i),ke),xe&&xe(ke))},[A,i]),ee=v.useCallback(me=>{const xe=LIe(me.target,U.cell),ke=xe==null?void 0:xe.getAttribute("data-field");if(ke){if(ke===Hd.field||ke===Q$||ke==="__reorder__"||A.current.getCellMode(i,ke)===Tt.Edit)return;const ze=A.current.getColumn(ke);if((ze==null?void 0:ze.type)===L0)return}W("rowClick",S)(me)},[A,S,W,i]),{slots:pe,slotProps:be,disableColumnReorder:ye}=R,J=pe.cell===vS?vS:KIe,fe=R.rowReordering,ce=(me,xe)=>{var ke,ze;const et=ye&&me.disableReorder||!fe&&!!D.length&&F>1&&Object.keys(L).length>0,ue=(ke=(ze=L[i])==null?void 0:ze[me.field])!=null?ke:null;let te=!1;return b!==void 0&&f[b].field===me.field&&(te=!0),g.jsx(J,P({column:me,width:xe.width,rowId:i,height:c,showRightBorder:xe.showRightBorder,align:me.align||"left",colIndex:xe.indexRelativeToAllColumns,colSpan:xe.colSpan,disableDragEvents:et,editCellState:ue,isNotVisible:te},be==null?void 0:be.cell),me.field)},K=Ae(A,()=>P({},A.current.unstable_getRowInternalSizes(i)),D$);let Z=c;if(Z==="auto"&&K){let me=0;const xe=Object.entries(K).reduce((ke,[ze,et])=>/^base[A-Z]/.test(ze)?(me+=1,et>ke?et:ke):ke,0);xe>0&&me>1&&(Z=xe)}const ie=v.useMemo(()=>{if(x)return{opacity:0,width:0,height:0};const me=P({},l,{maxHeight:c==="auto"?"none":c,minHeight:Z});if(K!=null&&K.spacingTop){const xe=R.rowSpacingType==="border"?"borderTopWidth":"marginTop";me[xe]=K.spacingTop}if(K!=null&&K.spacingBottom){const xe=R.rowSpacingType==="border"?"borderBottomWidth":"marginBottom";let ke=me[xe];typeof ke!="number"&&(ke=parseInt(ke||"0",10)),ke+=K.spacingBottom,me[xe]=ke}return me},[x,c,l,Z,K,R.rowSpacingType]),re=A.current.unstable_applyPipeProcessors("rowClassName",[],i);if(typeof R.getRowClassName=="function"){var ae;const me=s-(((ae=I.range)==null?void 0:ae.firstRowIndex)||0),xe=P({},A.current.getRowParams(i),{isFirstVisible:me===0,isLastVisible:me===I.rows.length-1,indexRelativeToCurrentPage:me});re.push(R.getRowClassName(xe))}const we=PTe(1e4,20,80),ge=A.current.getRowNode(i);if(!ge)return null;const je=ge.type,$e=[];for(let me=0;me0&&g.jsx(fAe,{width:Re})]}))}),hAe=D0(pAe);function mAe({privateApiRef:e,props:t,children:n}){const r=v.useRef(e.current.getPublicApi());return g.jsx(q4.Provider,{value:t,children:g.jsx(X4.Provider,{value:e,children:g.jsx(K4.Provider,{value:r,children:n})})})}const gAe=CTe()&&window.localStorage.getItem("DEBUG")!=null,kf=()=>{},vAe={debug:kf,info:kf,warn:kf,error:kf},nR=["debug","info","warn","error"];function rR(e,t,n=console){const r=nR.indexOf(t);if(r===-1)throw new Error(`MUI: Log level ${t} not recognized.`);return nR.reduce((i,a,s)=>(s>=r?i[a]=(...l)=>{const[u,...c]=l;n[a](`MUI: ${e} - ${u}`,...c)}:i[a]=kf,i),{})}const yAe=(e,t)=>{const n=v.useCallback(r=>gAe?rR(r,"debug",t.logger):t.logLevel?rR(r,t.logLevel.toString(),t.logger):vAe,[t.logLevel,t.logger]);it(e,{getLogger:n},"private")};class Z${static create(t){return new Z$(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 bAe{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 oR=0;function wAe(e){var t;const n=(t=e.current)==null?void 0:t[Uz];if(n)return n;const r={},o={state:r,store:Z$.create(r),instanceId:{id:oR}};return oR+=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,d=c[s];(d==null?void 0:d.spying)===!0?d.target=l:c[s]=l}})},o.register("private",{caches:{},eventManager:new bAe}),o}function CAe(e){return{get state(){return e.current.state},get store(){return e.current.store},get instanceId(){return e.current.instanceId},[Uz]:e.current}}function SAe(e,t){const n=v.useRef(),r=v.useRef();r.current||(r.current=wAe(n)),n.current||(n.current=CAe(r));const o=v.useCallback((...a)=>{const[s,l,u={}]=a;if(u.defaultMuiPrevented=!1,xAe(u)&&u.isPropagationStopped())return;const c=t.signature===Xi.DataGridPro?{api:r.current.getPublicApi()}:{};r.current.eventManager.emit(s,l,u,c)},[r,t.signature]),i=v.useCallback((a,s,l)=>{r.current.eventManager.on(a,s,l);const u=r.current;return()=>{u.eventManager.removeListener(a,s)}},[r]);return it(r,{subscribeEvent:i,publishEvent:o},"public"),v.useImperativeHandle(e,()=>n.current,[n]),v.useEffect(()=>{const a=r.current;return()=>{a.publishEvent("unmount")}},[r]),r}const PAe=(e,t)=>{const n=v.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})},OAe=e=>{const t=v.useRef({}),n=v.useRef(!1),r=v.useCallback(c=>{n.current||!c||(n.current=!0,Object.values(c.appliers).forEach(d=>{d()}),n.current=!1)},[]),o=v.useCallback((c,d,f)=>{t.current[c]||(t.current[c]={processors:new Map,appliers:{}});const h=t.current[c];return h.processors.get(d)!==f&&(h.processors.set(d,f),r(h)),()=>{t.current[c].processors.set(d,null)}},[r]),i=v.useCallback((c,d,f)=>(t.current[c]||(t.current[c]={processors:new Map,appliers:{}}),t.current[c].appliers[d]=f,()=>{const h=t.current[c].appliers,p=Q(h,[d].map(xp));t.current[c].appliers=p}),[]),a=v.useCallback(c=>{const d=t.current[c];r(d)},[r]),s=v.useCallback((...c)=>{const[d,f,h]=c;return t.current[d]?Array.from(t.current[d].processors.values()).reduce((m,y)=>y?y(m,h):m,f):f},[]),l={registerPipeProcessor:o,registerPipeApplier:i,requestPipeProcessorsApplication:a},u={unstable_applyPipeProcessors:s};it(e,l,"private"),it(e,u,"public")},mn=(e,t,n)=>{const r=v.useRef(),o=v.useRef(`mui-${Math.round(Math.random()*1e9)}`),i=v.useCallback(()=>{r.current=e.current.registerPipeProcessor(t,o.current,n)},[e,n,t]);Xh(()=>{i()});const a=v.useRef(!0);v.useEffect(()=>(a.current?a.current=!1:i(),()=>{r.current&&(r.current(),r.current=null)}),[i])},J$=(e,t,n)=>{const r=v.useRef(),o=v.useRef(`mui-${Math.round(Math.random()*1e9)}`),i=v.useCallback(()=>{r.current=e.current.registerPipeApplier(t,o.current,n)},[e,n,t]);Xh(()=>{i()});const a=v.useRef(!0);v.useEffect(()=>(a.current?a.current=!1:i(),()=>{r.current&&(r.current(),r.current=null)}),[i])},Sy=(e,t,n,r)=>{const o=v.useCallback(()=>{e.current.registerStrategyProcessor(t,n,r)},[e,r,n,t]);Xh(()=>{o()});const i=v.useRef(!0);v.useEffect(()=>{i.current?i.current=!1:o()},[o])},nu="none",iR={rowTreeCreation:"rowTree",filtering:"rowTree",sorting:"rowTree",visibleRowsLookupCreation:"rowTree"},$Ae=e=>{const t=v.useRef(new Map),n=v.useRef({}),r=v.useCallback((l,u,c)=>{const d=()=>{const p=n.current[u],m=Q(p,[l].map(xp));n.current[u]=m};n.current[u]||(n.current[u]={});const f=n.current[u],h=f[l];return f[l]=c,!h||h===c||l===e.current.getActiveStrategy(iR[u])&&e.current.publishEvent("activeStrategyProcessorChange",u),d},[e]),o=v.useCallback((l,u)=>{const c=e.current.getActiveStrategy(iR[l]);if(c==null)throw new Error("Can't apply a strategy processor before defining an active strategy");const d=n.current[l];if(!d||!d[c])throw new Error(`No processor found for processor "${l}" on strategy "${c}"`);const f=d[c];return f(u)},[e]),i=v.useCallback(l=>{var u;const d=Array.from(t.current.entries()).find(([,f])=>f.group!==l?!1:f.isAvailable());return(u=d==null?void 0:d[0])!=null?u:nu},[]),a=v.useCallback((l,u,c)=>{t.current.set(u,{group:l,isAvailable:c}),e.current.publishEvent("strategyAvailabilityChange")},[e]);it(e,{registerStrategyProcessor:r,applyStrategyProcessor:o,getActiveStrategy:i,setStrategyAvailability:a},"private")},EAe=(e,t)=>{const n=v.useRef({}),[,r]=v.useState(),o=v.useCallback(c=>{n.current[c.stateId]=c},[]),i=v.useCallback((c,d)=>{let f;if(wz(c)?f=c(e.current.state):f=c,e.current.state===f)return!1;let h=!1;const p=[];if(Object.keys(n.current).forEach(m=>{const y=n.current[m],b=y.stateSelector(e.current.state,e.current.instanceId),x=y.stateSelector(f,e.current.instanceId);x!==b&&(p.push({stateId:y.stateId,hasPropChanged:x!==y.propModel}),y.propModel!==void 0&&x!==y.propModel&&(h=!0))}),p.length>1)throw new Error(`You're not allowed to update several sub-state in one transaction. You already updated ${p[0].stateId}, therefore, you're not allowed to update ${p.map(m=>m.stateId).join(", ")} in the same transaction.`);if(h||(e.current.state=f,e.current.publishEvent&&e.current.publishEvent("stateChange",f),e.current.store.update(f)),p.length===1){const{stateId:m,hasPropChanged:y}=p[0],b=n.current[m],x=b.stateSelector(f,e.current.instanceId);if(b.propOnChange&&y){const w=t.signature===Xi.DataGridPro?{api:e.current,reason:d}:{reason:d};b.propOnChange(x,w)}h||e.current.publishEvent(b.changeEvent,x,{reason:d})}return!h},[e,t.signature]),a=v.useCallback((c,d,f)=>e.current.setState(h=>P({},h,{[c]:d(h[c])}),f),[e]),s=v.useCallback(()=>r(()=>e.current.state),[e]),l={setState:i,forceUpdate:s},u={updateControlState:a,registerControlState:o};it(e,l,"public"),it(e,u,"private")},kAe=(e,t)=>{const n=SAe(e,t);return yAe(n,t),EAe(n,t),OAe(n),$Ae(n),PAe(n,t),n.current.register("private",{rootProps:t}),n},kr=(e,t,n)=>{const r=v.useRef(!1);r.current||(t.current.state=e(t.current.state,n,t),r.current=!0)},IAe=/(\d+)-(\d+)-(\d+)/,TAe=/(\d+)-(\d+)-(\d+)T(\d+):(\d+)/;function Pu(e,t,n,r){if(!e.value)return null;const[o,i,a,s,l]=e.value.match(n?TAe:IAe).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 f=new Date(c).setHours(n?c.getHours():0,n?c.getMinutes():0,0,0);return t(f,u)}}const Vz=e=>Qh([{value:"is",getApplyFilterFnV7:t=>Pu(t,(n,r)=>n===r,e),InputComponent:Su,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"not",getApplyFilterFnV7:t=>Pu(t,(n,r)=>n!==r,e),InputComponent:Su,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"after",getApplyFilterFnV7:t=>Pu(t,(n,r)=>n>r,e),InputComponent:Su,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrAfter",getApplyFilterFnV7:t=>Pu(t,(n,r)=>n>=r,e),InputComponent:Su,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"before",getApplyFilterFnV7:t=>Pu(t,(n,r)=>nPu(t,(n,r)=>n<=r,e),InputComponent:Su,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"isEmpty",getApplyFilterFnV7:()=>t=>t==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFnV7:()=>t=>t!=null,requiresFilterValue:!1}]);function Wz({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 MAe({value:e,field:t,id:n}){return e?(Wz({value:e,columnType:"date",rowId:n,field:t}),e.toLocaleDateString()):""}function _Ae({value:e,field:t,id:n}){return e?(Wz({value:e,columnType:"dateTime",rowId:n,field:t}),e.toLocaleString()):""}const AAe=P({},yi,{type:"date",sortComparator:Tz,valueFormatter:MAe,filterOperators:Vz(),renderEditCell:pz,pastedValueParser:e=>new Date(e)}),RAe=P({},yi,{type:"dateTime",sortComparator:Tz,valueFormatter:_Ae,filterOperators:Vz(!0),renderEditCell:pz,pastedValueParser:e=>new Date(e)}),Za=e=>e==null?null:Number(e),aR=Yh(e=>e==null||Number.isNaN(e)||e===""?null:t=>Za(t)===Za(e)),jAe=()=>Qh([{value:"=",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>Za(t)===e.value,InputComponent:Di,InputComponentProps:{type:"number"}},{value:"!=",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>Za(t)!==e.value,InputComponent:Di,InputComponentProps:{type:"number"}},{value:">",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:Za(t)>e.value,InputComponent:Di,InputComponentProps:{type:"number"}},{value:">=",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:Za(t)>=e.value,InputComponent:Di,InputComponentProps:{type:"number"}},{value:"<",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:Za(t)e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:Za(t)<=e.value,InputComponent:Di,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:Lz,InputComponentProps:{type:"number"}}]),DAe=P({},yi,{type:"number",align:"right",headerAlign:"right",sortComparator:Iz,valueParser:e=>e===""?null:Number(e),valueFormatter:({value:e})=>wTe(e)?e.toLocaleString():e||"",filterOperators:jAe(),getApplyQuickFilterFn:Fz(aR),getApplyQuickFilterFnV7:aR}),Ou=e=>e==null||!W$(e)?e:e.value,LAe=()=>Qh([{value:"is",getApplyFilterFnV7:e=>e.value==null||e.value===""?null:t=>Ou(t)===Ou(e.value),InputComponent:YA},{value:"not",getApplyFilterFnV7:e=>e.value==null||e.value===""?null:t=>Ou(t)!==Ou(e.value),InputComponent:YA},{value:"isAnyOf",getApplyFilterFnV7:e=>{if(!Array.isArray(e.value)||e.value.length===0)return null;const t=e.value.map(Ou);return n=>t.includes(Ou(n))},InputComponent:T_e}]),FAe=e=>typeof e[0]=="object",NAe=e=>W$(e)?e.value:e,BAe=e=>W$(e)?e.label:String(e),zAe=P({},yi,{type:"singleSelect",getOptionLabel:BAe,getOptionValue:NAe,valueFormatter(e){const{id:t,field:n,value:r,api:o}=e,i=e.api.getColumn(n);if(!Ll(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(!FAe(a))return i.getOptionLabel(r);const s=a.find(l=>i.getOptionValue(l)===r);return s?i.getOptionLabel(s):""},renderEditCell:S2e,filterOperators:LAe(),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}}),Gz="__default__",HAe=()=>({string:yi,number:DAe,date:AAe,dateTime:RAe,boolean:Hz,singleSelect:zAe,[L0]:uAe,[Gz]:yi});function wS(e,t){if(typeof e=="string"){if(t.shouldAppendQuotes||t.escapeFormulas){const n=e.replace(/"/g,'""');return[t.delimiter,` `,"\r",'"'].some(r=>e.includes(r))?`"${n}"`:t.escapeFormulas&&["=","+","-","@"," ","\r"].includes(n[0])?`'${n}`:n}return e}return e}const Kz=(e,t)=>{const{csvOptions: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 wS(o,n)};ta(["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 CS{constructor(t){this.options=void 0,this.rowString="",this.isEmpty=!0,this.options=t}addValue(t){this.isEmpty||(this.rowString+=this.options.csvOptions.delimiter),t==null?this.rowString+="":typeof this.options.sanitizeCellValue=="function"?this.rowString+=this.options.sanitizeCellValue(t,this.options.csvOptions):this.rowString+=t,this.isEmpty=!1}getRowString(){return this.rowString}}const UAe=({id:e,columns:t,getCellParams:n,csvOptions:r,ignoreValueFormatter:o})=>{const i=new CS({csvOptions:r});return t.forEach(a=>{const s=n(e,a.field);i.addValue(Kz(s,{ignoreValueFormatter:o,csvOptions:r}))}),i.getRowString()};function VAe(e){const{columns:t,rowIds:n,csvOptions:r,ignoreValueFormatter:o,apiRef:i}=e,a=n.reduce((d,f)=>`${d}${UAe({id:f,columns:t,getCellParams:i.current.getCellParams,ignoreValueFormatter:o,csvOptions:r})}\r `,"").trim();if(!r.includeHeaders)return a;const s=t.filter(d=>d.field!==Hd.field),l=[];if(r.includeColumnGroupsHeaders){const d=i.current.unstable_getAllGroupDetails();let f=0;const h=s.reduce((p,m)=>{const y=i.current.unstable_getColumnGroupPath(m.field);return p[m.field]=y,f=Math.max(f,y.length),p},{});for(let p=0;p{const b=(h[y.field]||[])[p],x=d[b];m.addValue(x?x.headerName||x.groupId:"")})}}const u=new CS({csvOptions:r,sanitizeCellValue:wS});return s.forEach(d=>{u.addValue(d.headerName||d.field)}),l.push(u),`${`${l.map(d=>d.getRowString()).join(`\r `)}\r `}${a}`.trim()}function sR(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 WAe(e){navigator.clipboard?navigator.clipboard.writeText(e).catch(()=>{sR(e)}):sR(e)}function GAe(e){var t;return!!((t=window.getSelection())!=null&&t.toString()||e&&(e.selectionEnd||0)-(e.selectionStart||0)>0)}const KAe=(e,t)=>{const n=t.unstable_ignoreValueFormatterDuringExport,r=(typeof n=="object"?n==null?void 0:n.clipboardExport:n)||!1,o=t.clipboardCopyCellDelimiter,i=v.useCallback(a=>{if(!((a.ctrlKey||a.metaKey)&&a.key==="c")||GAe(a.target))return;let s="";if(e.current.getSelectedRows().size>0)s=e.current.getDataAsCsv({includeHeaders:!1,delimiter:o,shouldAppendQuotes:!1,escapeFormulas:!1});else{const u=eo(e);if(u){const c=e.current.getCellParams(u.id,u.field);s=Kz(c,{csvOptions:{delimiter:o,shouldAppendQuotes:!1,escapeFormulas:!1},ignoreValueFormatter:r})}}s=e.current.unstable_applyPipeProcessors("clipboardCopy",s),s&&(WAe(s),e.current.publishEvent("clipboardCopy",s))},[e,r,o]);OTe(e,e.current.rootElementRef,"keydown",i),Kt(e,"clipboardCopy",t.onClipboardCopy)},qAe=e=>P({},e,{columnMenu:{open:!1}}),XAe=e=>{const t=nr(e,"useGridColumnMenu"),n=v.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=v.useCallback(()=>{const a=gS(e.current.state);if(a.field){const l=Nd(e),u=fi(e),c=Pa(e);let d=a.field;if(l[d]||(d=c[0]),u[d]===!1){const f=c.filter(p=>p===d?!0:u[p]!==!1),h=f.indexOf(d);d=f[h+1]||f[h-1]}e.current.setColumnHeaderFocus(d)}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=v.useCallback(a=>{t.debug("Toggle Column Menu");const s=gS(e.current.state);!s.open||s.field!==a?n(a):r()},[e,t,n,r]);it(e,{showColumnMenu:n,hideColumnMenu:r,toggleColumnMenu:o},"public"),Ve(e,"columnResizeStart",r),Ve(e,"virtualScrollerWheel",e.current.hideColumnMenu),Ve(e,"virtualScrollerTouchMove",e.current.hideColumnMenu)},qz=["maxWidth","minWidth","width","flex"];function YAe({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;cd.maxWidth&&(u+=d.maxWidth-h,h=d.maxWidth,a.max[d.field]=!0),o.all[d.field]={frozen:!1,computedWidth:h,flex:d.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 SS=(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=ad(l.width||yi.width,l.minWidth||yi.minWidth,l.maxWidth||yi.maxWidth),o+=u,l.computedWidth=u}n[s]=l});const a=Math.max(t-o,0);if(r>0&&t>0){const s=YAe({initialFreeSpace:a,totalFlexUnits:r,flexColumns:i});Object.keys(s).forEach(l=>{n[l].computedWidth=s[l].computedWidth})}return P({},e,{lookup:n})},QAe=(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{f[h]=p===-1?1/0:p}),l[d]=f}return P({},e,{orderedFields:s,lookup:l})};function lR(e,t){let n=e[Gz];return t&&e[t]&&(n=e[t]),n}const Tu=({apiRef:e,columnsToUpsert:t,initialState:n,columnTypes:r,columnVisibilityModel:o=fi(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 p=Dl(e.current.state);c={orderedFields:i?[]:[...p.orderedFields],lookup:P({},p.lookup),columnVisibilityModel:o}}let d={};i&&!u&&(d=Object.keys(c.lookup).reduce((p,m)=>P({},p,{[m]:!1}),{})),t.forEach(p=>{const{field:m}=p;d[m]=!0;let y=c.lookup[m];y==null?(y=P({},lR(r,p.type),{field:m,hasBeenResized:!1}),c.orderedFields.push(m)):i&&c.orderedFields.push(m),y&&y.type!==p.type&&(y=P({},lR(r,p.type),{field:m}));let b=y.hasBeenResized;qz.forEach(x=>{p[x]!==void 0&&(b=!0,p[x]===-1&&(p[x]=1/0))}),c.lookup[m]=P({},y,p,{hasBeenResized:b})}),i&&!u&&Object.keys(c.lookup).forEach(p=>{d[p]||delete c.lookup[p]});const f=e.current.unstable_applyPipeProcessors("hydrateColumns",c),h=QAe(f,n);return SS(h,(a=(s=(l=e.current).getRootDimensions)==null||(s=s.call(l))==null?void 0:s.viewportInnerSize.width)!=null?a:0)},uR=e=>t=>P({},t,{columns:e});function PS({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=Tu({apiRef:n,columnTypes:Xz,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 eRe(e,t){var n,r;const o=nr(e,"useGridColumns"),i=Xz,a=v.useRef(t.columns),s=v.useRef(i);e.current.registerControlState({stateId:"visibleColumns",propModel:t.columnVisibilityModel,propOnChange:t.onColumnVisibilityModelChange,stateSelector:fi,changeEvent:"columnVisibilityModelChange"});const l=v.useCallback(I=>{o.debug("Updating columns state."),e.current.setState(uR(I)),e.current.forceUpdate(),e.current.publishEvent("columnsChange",I.orderedFields)},[o,e]),u=v.useCallback(I=>Nd(e)[I],[e]),c=v.useCallback(()=>qi(e),[e]),d=v.useCallback(()=>Jn(e),[e]),f=v.useCallback((I,k=!0)=>(k?Jn(e):qi(e)).findIndex(F=>F.field===I),[e]),h=v.useCallback(I=>{const k=f(I);return id(e)[k]},[e,f]),p=v.useCallback(I=>{fi(e)!==I&&(e.current.setState(D=>P({},D,{columns:Tu({apiRef:e,columnTypes:i,columnsToUpsert:[],initialState:void 0,columnVisibilityModel:I,keepOnlyColumnsToUpsert:!1})})),e.current.forceUpdate())},[e,i]),m=v.useCallback(I=>{const k=Tu({apiRef:e,columnTypes:i,columnsToUpsert:I,initialState:void 0,keepOnlyColumnsToUpsert:!1});l(k)},[e,l,i]),y=v.useCallback((I,k)=>{var D;const F=fi(e),T=(D=F[I])!=null?D:!0;if(k!==T){const L=P({},F,{[I]:k});e.current.setColumnVisibilityModel(L)}},[e]),b=v.useCallback(I=>Pa(e).findIndex(D=>D===I),[e]),x=v.useCallback((I,k)=>{const D=Pa(e),F=b(I);if(F===k)return;o.debug(`Moving column ${I} to index ${k}`);const T=[...D],L=T.splice(F,1)[0];T.splice(k,0,L),l(P({},Dl(e.current.state),{orderedFields:T}));const N={column:e.current.getColumn(I),targetIndex:e.current.getColumnIndexRelativeToVisibleColumns(I),oldIndex:F};e.current.publishEvent("columnIndexChange",N)},[e,o,l,b]),w=v.useCallback((I,k)=>{var D,F;o.debug(`Updating column ${I} width to ${k}`);const T=Dl(e.current.state),L=T.lookup[I],N=P({},L,{width:k,hasBeenResized:!0});l(SS(P({},T,{lookup:P({},T.lookup,{[I]:N})}),(D=(F=e.current.getRootDimensions())==null?void 0:F.viewportInnerSize.width)!=null?D:0)),e.current.publishEvent("columnWidthChange",{element:e.current.getColumnHeaderElement(I),colDef:N,width:k})},[e,o,l]),S={getColumn:u,getAllColumns:c,getColumnIndex:f,getColumnPosition:h,getVisibleColumns:d,getColumnIndexRelativeToVisibleColumns:b,updateColumns:m,setColumnVisibilityModel:p,setColumnVisibility:y,setColumnWidth:w},O={setColumnIndex:x};it(e,S,"public"),it(e,O,t.signature===Xi.DataGrid?"private":"public");const C=v.useCallback((I,k)=>{var D,F;const T={},L=fi(e);(!k.exportOnlyDirtyModels||t.columnVisibilityModel!=null||Object.keys((D=(F=t.initialState)==null||(F=F.columns)==null?void 0:F.columnVisibilityModel)!=null?D:{}).length>0||Object.keys(L).length>0)&&(T.columnVisibilityModel=L),T.orderedFields=Pa(e);const z=qi(e),B={};return z.forEach(V=>{if(V.hasBeenResized){const W={};qz.forEach(ee=>{let pe=V[ee];pe===1/0&&(pe=-1),W[ee]=pe}),B[V.field]=W}}),Object.keys(B).length>0&&(T.dimensions=B),P({},I,{columns:T})},[e,t.columnVisibilityModel,(n=t.initialState)==null?void 0:n.columns]),$=v.useCallback((I,k)=>{var D;const F=(D=k.stateToRestore.columns)==null?void 0:D.columnVisibilityModel,T=k.stateToRestore.columns;if(F==null&&T==null)return I;const L=Tu({apiRef:e,columnTypes:i,columnsToUpsert:[],initialState:T,columnVisibilityModel:F,keepOnlyColumnsToUpsert:!1});return e.current.setState(uR(L)),T!=null&&e.current.publishEvent("columnsChange",L.orderedFields),I},[e,i]),E=v.useCallback((I,k)=>{if(k===tu.columns){var D;const F=t.slots.columnsPanel;return g.jsx(F,P({},(D=t.slotProps)==null?void 0:D.columnsPanel))}return I},[t.slots.columnsPanel,(r=t.slotProps)==null?void 0:r.columnsPanel]),M=v.useCallback(I=>t.disableColumnSelector?I:[...I,"columnMenuColumnsItem"],[t.disableColumnSelector]);mn(e,"columnMenu",M),mn(e,"exportState",C),mn(e,"restoreState",$),mn(e,"preferencePanel",E);const _=v.useRef(null);Ve(e,"viewportInnerSizeChange",I=>{_.current!==I.width&&(_.current=I.width,l(SS(Dl(e.current.state),I.width)))});const j=v.useCallback(()=>{o.info("Columns pipe processing have changed, regenerating the columns");const I=Tu({apiRef:e,columnTypes:i,columnsToUpsert:[],initialState:void 0,keepOnlyColumnsToUpsert:!1});l(I)},[e,o,l,i]);J$(e,"hydrateColumns",j);const R=v.useRef(!0);v.useEffect(()=>{if(R.current){R.current=!1;return}if(o.info(`GridColumns have changed, new length ${t.columns.length}`),a.current===t.columns&&s.current===i)return;const I=Tu({apiRef:e,columnTypes:i,initialState:void 0,columnsToUpsert:t.columns,keepOnlyColumnsToUpsert:!0});a.current=t.columns,s.current=i,l(I)},[o,e,l,t.columns,i]),v.useEffect(()=>{t.columnVisibilityModel!==void 0&&e.current.setColumnVisibilityModel(t.columnVisibilityModel)},[e,o,t.columnVisibilityModel])}const tRe=.7,nRe=1.3,Yz={compact:tRe,comfortable:nRe,standard:1},rRe=(e,t)=>P({},e,{density:{value:t.density,factor:Yz[t.density]}}),oRe=(e,t)=>{const n=nr(e,"useDensity"),r=v.useCallback(i=>{n.debug(`Set grid density to ${i}`),e.current.setState(a=>{const s=z$(a),l={value:i,factor:Yz[i]};return Fl(s,l)?a:P({},a,{density:l})}),e.current.forceUpdate()},[n,e]);v.useEffect(()=>{e.current.setDensity(t.density)},[e,t.density]),it(e,{setDensity:r},"public")};function iRe(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 Qz=({apiRef:e,options:t})=>{const n=qi(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:Jn(e)).filter(o=>!o.disableExport)},aRe=({apiRef:e})=>{var t,n;const r=bIe(e),o=si(e),i=e.current.getSelectedRows(),a=r.filter(c=>o[c].type!=="footer"),s=Bd(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},sRe=(e,t)=>{const n=nr(e,"useGridCsvExport"),r=t.unstable_ignoreValueFormatterDuringExport,o=(typeof r=="object"?r==null?void 0:r.csvExport:r)||!1,i=v.useCallback((u={})=>{var c,d,f,h,p;n.debug("Get data as CSV");const m=Qz({apiRef:e,options:u}),b=((c=u.getRowsToExport)!=null?c:aRe)({apiRef:e});return VAe({columns:m,rowIds:b,csvOptions:{delimiter:u.delimiter||",",shouldAppendQuotes:(d=u.shouldAppendQuotes)!=null?d:!0,includeHeaders:(f=u.includeHeaders)!=null?f:!0,includeColumnGroupsHeaders:(h=u.includeColumnGroupsHeaders)!=null?h:!0,escapeFormulas:(p=u.escapeFormulas)!=null?p:!0},ignoreValueFormatter:o,apiRef:e})},[n,e,o]),a=v.useCallback(u=>{n.debug("Export data as CSV");const c=i(u),d=new Blob([u!=null&&u.utf8WithBom?new Uint8Array([239,187,191]):"",c],{type:"text/csv"});iRe(d,"csv",u==null?void 0:u.fileName)},[n,i]);it(e,{getDataAsCsv:i,exportDataAsCsv:a},"public");const l=v.useCallback((u,c)=>{var d;return(d=c.csvOptions)!=null&&d.disableToolbarButton?u:[...u,{component:g.jsx(A_e,{options:c.csvOptions}),componentName:"csvExport"}]},[]);mn(e,"exportMenu",l)},Sg=(e,t,n)=>{var r;let o=e.paginationModel;const i=e.rowCount,a=(r=n==null?void 0:n.pageSize)!=null?r:o.pageSize,s=Sz(i,a);n&&((n==null?void 0:n.page)!==o.page||(n==null?void 0:n.pageSize)!==o.pageSize)&&(o=n);const l=kTe(o.page,s);return l!==o.page&&(o=P({},o,{page:l})),Oz(o.pageSize,t),o},lRe=(e,t)=>{var n;const r=nr(e,"useGridPaginationModel"),o=Ae(e,zd),i=Math.floor(t.rowHeight*o);e.current.registerControlState({stateId:"paginationModel",propModel:t.paginationModel,propOnChange:t.onPaginationModelChange,stateSelector:Oo,changeEvent:"paginationModelChange"});const a=v.useCallback(m=>{const y=Oo(e);m!==y.page&&(r.debug(`Setting page to ${m}`),e.current.setPaginationModel({page:m,pageSize:y.pageSize}))},[e,r]),s=v.useCallback(m=>{const y=Oo(e);m!==y.pageSize&&(r.debug(`Setting page size to ${m}`),e.current.setPaginationModel({pageSize:m,page:y.page}))},[e,r]),l=v.useCallback(m=>{const y=Oo(e);m!==y&&(r.debug("Setting 'paginationModel' to",m),e.current.setState(b=>P({},b,{pagination:P({},b.pagination,{paginationModel:Sg(b.pagination,t.signature,m)})})))},[e,r,t.signature]);it(e,{setPage:a,setPageSize:s,setPaginationModel:l},"public");const c=v.useCallback((m,y)=>{var b;const x=Oo(e);return!y.exportOnlyDirtyModels||t.paginationModel!=null||((b=t.initialState)==null||(b=b.pagination)==null?void 0:b.paginationModel)!=null||x.page!==0&&x.pageSize!==ETe(t.autoPageSize)?P({},m,{pagination:P({},m.pagination,{paginationModel:x})}):m},[e,t.paginationModel,(n=t.initialState)==null||(n=n.pagination)==null?void 0:n.paginationModel,t.autoPageSize]),d=v.useCallback((m,y)=>{var b,x;const w=(b=y.stateToRestore.pagination)!=null&&b.paginationModel?P({},Pz(t.autoPageSize),(x=y.stateToRestore.pagination)==null?void 0:x.paginationModel):Oo(e);return e.current.setState(S=>P({},S,{pagination:P({},S.pagination,{paginationModel:Sg(S.pagination,t.signature,w)})})),m},[e,t.autoPageSize,t.signature]);mn(e,"exportState",c),mn(e,"restoreState",d);const f=()=>{var m;const y=Oo(e);(m=e.current.virtualScrollerRef)!=null&&m.current&&e.current.scrollToIndexes({rowIndex:y.page*y.pageSize})},h=v.useCallback(()=>{if(!t.autoPageSize)return;const m=e.current.getRootDimensions()||{viewportInnerSize:{height:0}},y=uz(e),b=Math.floor((m.viewportInnerSize.height-y.top-y.bottom)/i);e.current.setPageSize(b)},[e,t.autoPageSize,i]),p=v.useCallback(m=>{if(m==null)return;const y=Oo(e),b=TTe(e);y.page>b-1&&e.current.setPage(Math.max(0,b-1))},[e]);Ve(e,"viewportInnerSizeChange",h),Ve(e,"paginationModelChange",f),Ve(e,"rowCountChange",p),v.useEffect(()=>{e.current.setState(m=>P({},m,{pagination:P({},m.pagination,{paginationModel:Sg(m.pagination,t.signature,t.paginationModel)})}))},[e,t.paginationModel,t.paginationMode,t.signature]),v.useEffect(h,[h])};function uRe(){return new Promise(e=>{requestAnimationFrame(()=>{e()})})}function cRe(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 dRe=(e,t)=>{const n=nr(e,"useGridPrintExport"),r=v.useRef(null),o=v.useRef(null),i=v.useRef({}),a=v.useRef([]);v.useEffect(()=>{r.current=Wt(e.current.rootElementRef.current)},[e]);const s=v.useCallback((p,m,y)=>new Promise(b=>{const x=Qz({apiRef:e,options:{fields:p,allColumns:m}}).map(O=>O.field),w=qi(e),S={};w.forEach(O=>{S[O.field]=x.includes(O.field)}),y&&(S[Hd.field]=!0),e.current.setColumnVisibilityModel(S),b()}),[e]),l=v.useCallback(p=>{const y=p({apiRef:e}).map(b=>e.current.getRow(b));e.current.setRows(y)},[e]),u=v.useCallback((p,m)=>{var y,b;const x=P({copyStyles:!0,hideToolbar:!1,hideFooter:!1,includeCheckboxes:!1},m),w=p.contentDocument;if(!w)return;const S=fh(e.current.state),O=e.current.rootElementRef.current,C=O.cloneNode(!0),$=C.querySelector(`.${U.main}`);$.style.overflow="visible",C.style.contain="size";const M=C.querySelector(`.${U.columnHeaders}`).querySelector(`.${U.columnHeadersInner}`);M.style.width="100%";let _=((y=O.querySelector(`.${U.toolbarContainer}`))==null?void 0:y.offsetHeight)||0,A=((b=O.querySelector(`.${U.footerContainer}`))==null?void 0:b.offsetHeight)||0;if(x.hideToolbar){var j;(j=C.querySelector(`.${U.toolbarContainer}`))==null||j.remove(),_=0}if(x.hideFooter){var R;(R=C.querySelector(`.${U.footerContainer}`))==null||R.remove(),A=0}const I=S.currentPageTotalHeight+eE(e,t.columnHeaderHeight)+_+A;if(C.style.height=`${I}px`,C.style.boxSizing="content-box",m!=null&&m.getRowsToExport){const T=C.querySelector(`.${U.footerContainer}`);T.style.position="absolute",T.style.width="100%",T.style.top=`${I-A}px`}const k=document.createElement("div");k.appendChild(C),w.body.innerHTML=k.innerHTML;const D=typeof x.pageStyle=="function"?x.pageStyle():x.pageStyle;if(typeof D=="string"){const T=w.createElement("style");T.appendChild(w.createTextNode(D)),w.head.appendChild(T)}x.bodyClassName&&w.body.classList.add(...x.bodyClassName.split(" "));const F=[];if(x.copyStyles){const T=O.getRootNode(),N=(T.constructor.name==="ShadowRoot"?T:r.current).querySelectorAll("style, link[rel='stylesheet']");for(let z=0;z{V.addEventListener("load",()=>W())})),w.head.appendChild(V)}}}Promise.all(F).then(()=>{p.contentWindow.print()})},[e,r,t.columnHeaderHeight]),c=v.useCallback(p=>{var m;r.current.body.removeChild(p),e.current.restoreState(o.current||{}),(m=o.current)!=null&&(m=m.columns)!=null&&m.columnVisibilityModel||e.current.setColumnVisibilityModel(i.current),e.current.unstable_setVirtualization(!0),e.current.setRows(a.current),o.current=null,i.current={},a.current=[]},[e]),f={exportDataAsPrint:v.useCallback(async p=>{if(n.debug("Export data as Print"),!e.current.rootElementRef.current)throw new Error("MUI: No grid root element available.");o.current=e.current.exportState(),i.current=fi(e);const m=xa(e);if(a.current=Ef(e).map(b=>m[b]),t.pagination){const x={page:0,pageSize:oz(e)};e.current.setState(w=>P({},w,{pagination:P({},w.pagination,{paginationModel:Sg(w.pagination,"DataGridPro",x)})})),e.current.forceUpdate()}await s(p==null?void 0:p.fields,p==null?void 0:p.allColumns,p==null?void 0:p.includeCheckboxes),p!=null&&p.getRowsToExport&&l(p.getRowsToExport),e.current.unstable_setVirtualization(!1),await uRe();const y=cRe(p==null?void 0:p.fileName);y.onload=()=>{u(y,p),y.contentWindow.matchMedia("print").addEventListener("change",x=>{x.matches===!1&&c(y)})},r.current.body.appendChild(y)},[t,n,e,u,c,s,l])};it(e,f,"public");const h=v.useCallback((p,m)=>{var y;return(y=m.printOptions)!=null&&y.disableToolbarButton?p:[...p,{component:g.jsx(R_e,{options:m.printOptions}),componentName:"printExport"}]},[]);mn(e,"exportMenu",h)},fRe=(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:ch();return P({},e,{filter:{filterModel:Bz(a,t.disableMultipleColumnsFiltering,n),filteredRowsLookup:{},filteredDescendantCountLookup:{}},visibleRowsLookup:{}})},pRe=e=>e.filteredRowsLookup;function cR(e,t){return e.current.applyStrategyProcessor("visibleRowsLookupCreation",{tree:t.rows.tree,filteredRowsLookup:t.filter.filteredRowsLookup})}function hRe(){return I0(Object.values)}const mRe=(e,t)=>{var n,r;const o=nr(e,"useGridFilter");e.current.registerControlState({stateId:"filter",propModel:t.filterModel,propOnChange:t.onFilterModelChange,stateSelector:Fn,changeEvent:"filterModelChange"});const i=v.useCallback(()=>{e.current.setState(_=>{const A=Fn(_,e.current.instanceId),j=t.filterMode==="client"?nAe(A,e,t.disableEval):null,R=e.current.applyStrategyProcessor("filtering",{isRowMatchingFilters:j,filterModel:A??ch()}),I=P({},_,{filter:P({},_.filter,R)}),k=cR(e,I);return P({},I,{visibleRowsLookup:k})}),e.current.publishEvent("filteredRowsSet")},[e,t.filterMode,t.disableEval]),a=v.useCallback((_,A)=>A==null||A.filterable===!1||t.disableColumnFilter?_:[..._,"columnMenuFilterItem"],[t.disableColumnFilter]),s=v.useCallback(()=>{i(),e.current.forceUpdate()},[e,i]),l=v.useCallback(_=>{const A=Fn(e),j=[...A.items],R=j.findIndex(I=>I.id===_.id);R===-1?j.push(_):j[R]=_,e.current.setFilterModel(P({},A,{items:j}),"upsertFilterItem")},[e]),u=v.useCallback(_=>{const A=Fn(e),j=[...A.items];_.forEach(R=>{const I=_.findIndex(k=>k.id===R.id);I===-1?j.push(R):j[I]=R}),e.current.setFilterModel(P({},A,{items:_}),"upsertFilterItems")},[e]),c=v.useCallback(_=>{const A=Fn(e),j=A.items.filter(R=>R.id!==_.id);j.length!==A.items.length&&e.current.setFilterModel(P({},A,{items:j}),"deleteFilterItem")},[e]),d=v.useCallback((_,A,j)=>{if(o.debug("Displaying filter panel"),_){const R=Fn(e),I=R.items.filter(T=>{var L;if(T.value!==void 0)return!(Array.isArray(T.value)&&T.value.length===0);const z=(L=e.current.getColumn(T.field).filterOperators)==null?void 0:L.find(V=>V.value===T.operator);return!(typeof(z==null?void 0:z.requiresFilterValue)>"u"?!0:z==null?void 0:z.requiresFilterValue)});let k;const D=I.find(T=>T.field===_),F=e.current.getColumn(_);D?k=I:t.disableMultipleColumnsFiltering?k=[xS({field:_,operator:F.filterOperators[0].value},e)]:k=[...I,xS({field:_,operator:F.filterOperators[0].value},e)],e.current.setFilterModel(P({},R,{items:k}))}e.current.showPreferences(tu.filters,A,j)},[e,o,t.disableMultipleColumnsFiltering]),f=v.useCallback(()=>{o.debug("Hiding filter panel"),e.current.hidePreferences()},[e,o]),h=v.useCallback(_=>{const A=Fn(e);A.logicOperator!==_&&e.current.setFilterModel(P({},A,{logicOperator:_}),"changeLogicOperator")},[e]),p=v.useCallback(_=>{const A=Fn(e);Fl(A.quickFilterValues,_)||e.current.setFilterModel(P({},A,{quickFilterValues:[..._]}))},[e]),m=v.useCallback((_,A)=>{Fn(e)!==_&&(o.debug("Setting filter model"),e.current.updateControlState("filter",ZA(_,t.disableMultipleColumnsFiltering,e),A),e.current.unstable_applyFilters())},[e,o,t.disableMultipleColumnsFiltering]),y={setFilterLogicOperator:h,unstable_applyFilters:s,deleteFilterItem:c,upsertFilterItem:l,upsertFilterItems:u,setFilterModel:m,showFilterPanel:d,hideFilterPanel:f,setQuickFilterValues:p,ignoreDiacritics:t.ignoreDiacritics};it(e,y,"public");const b=v.useCallback((_,A)=>{var j;const R=Fn(e);return!A.exportOnlyDirtyModels||t.filterModel!=null||((j=t.initialState)==null||(j=j.filter)==null?void 0:j.filterModel)!=null||!Fl(R,ch())?P({},_,{filter:{filterModel:R}}):_},[e,t.filterModel,(n=t.initialState)==null||(n=n.filter)==null?void 0:n.filterModel]),x=v.useCallback((_,A)=>{var j;const R=(j=A.stateToRestore.filter)==null?void 0:j.filterModel;return R==null?_:(e.current.updateControlState("filter",ZA(R,t.disableMultipleColumnsFiltering,e),"restoreState"),P({},_,{callbacks:[..._.callbacks,e.current.unstable_applyFilters]}))},[e,t.disableMultipleColumnsFiltering]),w=v.useCallback((_,A)=>{if(A===tu.filters){var j;const R=t.slots.filterPanel;return g.jsx(R,P({},(j=t.slotProps)==null?void 0:j.filterPanel))}return _},[t.slots.filterPanel,(r=t.slotProps)==null?void 0:r.filterPanel]),{getRowId:S}=t,O=j$(hRe),C=v.useCallback(_=>{if(t.filterMode!=="client"||!_.isRowMatchingFilters)return{filteredRowsLookup:{},filteredDescendantCountLookup:{}};const A=xa(e),j={},{isRowMatchingFilters:R}=_,I={},k={passingFilterItems:null,passingQuickFilterValues:null},D=O.current(e.current.state.rows.dataRowIdToModelLookup);for(let L=0;L{o.debug("onColUpdated - GridColumns changed, applying filters");const _=Fn(e),A=iIe(e),j=_.items.filter(R=>R.field&&A[R.field]);j.length<_.items.length&&e.current.setFilterModel(P({},_,{items:j}))},[e,o]),E=v.useCallback(_=>{_==="filtering"&&e.current.unstable_applyFilters()},[e]),M=v.useCallback(()=>{e.current.setState(_=>P({},_,{visibleRowsLookup:cR(e,_)})),e.current.forceUpdate()},[e]);Ve(e,"rowsSet",i),Ve(e,"columnsChange",$),Ve(e,"activeStrategyProcessorChange",E),Ve(e,"rowExpansionChange",M),Ve(e,"columnVisibilityModelChange",()=>{const _=Fn(e);_.quickFilterValues&&_.quickFilterExcludeHiddenColumns&&e.current.unstable_applyFilters()}),Xh(()=>{e.current.unstable_applyFilters()}),Et(()=>{t.filterModel!==void 0&&e.current.setFilterModel(t.filterModel)},[e,o,t.filterModel])},gRe=e=>P({},e,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},tabIndex:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}),vRe=(e,t)=>{const n=nr(e,"useGridFocus"),r=v.useRef(null),o=v.useCallback(($,E)=>{$&&e.current.getRow($.id)&&e.current.publishEvent("cellFocusOut",e.current.getCellParams($.id,$.field),E)},[e]),i=v.useCallback(($,E)=>{const M=eo(e);(M==null?void 0:M.id)===$&&(M==null?void 0:M.field)===E||(e.current.setState(_=>(n.debug(`Focusing on cell with id=${$} and field=${E}`),P({},_,{tabIndex:{cell:{id:$,field:E},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},focus:{cell:{id:$,field:E},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))),e.current.forceUpdate(),e.current.getRow($)&&(M&&o(M,{}),e.current.publishEvent("cellFocusIn",e.current.getCellParams($,E))))},[e,n,o]),a=v.useCallback(($,E={})=>{const M=eo(e);o(M,E),e.current.setState(_=>(n.debug(`Focusing on column header with colIndex=${$}`),P({},_,{tabIndex:{columnHeader:{field:$},columnHeaderFilter:null,cell:null,columnGroupHeader:null},focus:{columnHeader:{field:$},columnHeaderFilter:null,cell:null,columnGroupHeader:null}}))),e.current.forceUpdate()},[e,n,o]),s=v.useCallback(($,E={})=>{const M=eo(e);o(M,E),e.current.setState(_=>(n.debug(`Focusing on column header filter with colIndex=${$}`),P({},_,{tabIndex:{columnHeader:null,columnHeaderFilter:{field:$},cell:null,columnGroupHeader:null},focus:{columnHeader:null,columnHeaderFilter:{field:$},cell:null,columnGroupHeader:null}}))),e.current.forceUpdate()},[e,n,o]),l=v.useCallback(($,E,M={})=>{const _=eo(e);_&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(_.id,_.field),M),e.current.setState(A=>P({},A,{tabIndex:{columnGroupHeader:{field:$,depth:E},columnHeader:null,columnHeaderFilter:null,cell:null},focus:{columnGroupHeader:{field:$,depth:E},columnHeader:null,columnHeaderFilter:null,cell:null}})),e.current.forceUpdate()},[e]),u=v.useCallback(()=>hy(e),[e]),c=v.useCallback(($,E,M)=>{let _=e.current.getColumnIndex(E);const A=Jn(e),j=wy(e,{pagination:t.pagination,paginationMode:t.paginationMode}),R=Bd(e),I=[].concat(R.top||[],j.rows,R.bottom||[]);let k=I.findIndex(L=>L.id===$);M==="right"?_+=1:M==="left"?_-=1:k+=1,_>=A.length?(k+=1,k=0&&(_=A.length-1)),k=ad(k,0,I.length-1);const D=I[k];if(!D)return;const F=e.current.unstable_getCellColSpanInfo(D.id,_);F&&F.spannedByColSpan&&(M==="left"||M==="below"?_=F.leftVisibleCellIndex:M==="right"&&(_=F.rightVisibleCellIndex)),_=ad(_,0,A.length-1);const T=A[_];e.current.setCellFocus(D.id,T.field)},[e,t.pagination,t.paginationMode]),d=v.useCallback(({id:$,field:E})=>{e.current.setCellFocus($,E)},[e]),f=v.useCallback(($,E)=>{E.key==="Enter"||E.key==="Tab"||E.key==="Shift"||by(E.key)||e.current.setCellFocus($.id,$.field)},[e]),h=v.useCallback(({field:$},E)=>{E.target===E.currentTarget&&e.current.setColumnHeaderFocus($,E)},[e]),p=v.useCallback(({fields:$,depth:E},M)=>{if(M.target!==M.currentTarget)return;const _=hy(e);_!==null&&_.depth===E&&$.includes(_.field)||e.current.setColumnGroupHeaderFocus($[0],E,M)},[e]),m=v.useCallback(($,E)=>{var M;(M=E.relatedTarget)!=null&&M.className.includes(U.columnHeader)||(n.debug("Clearing focus"),e.current.setState(_=>P({},_,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})))},[n,e]),y=v.useCallback($=>{r.current=$},[]),b=v.useCallback($=>{const E=r.current;r.current=null;const M=eo(e);if(!e.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:$,cell:E}))return;if(!M){E&&e.current.setCellFocus(E.id,E.field);return}if((E==null?void 0:E.id)===M.id&&(E==null?void 0:E.field)===M.field)return;const A=e.current.getCellElement(M.id,M.field);A!=null&&A.contains($.target)||(E?e.current.setCellFocus(E.id,E.field):(e.current.setState(j=>P({},j,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})),e.current.forceUpdate(),o(M,$)))},[e,o]),x=v.useCallback($=>{if($.cellMode==="view")return;const E=eo(e);((E==null?void 0:E.id)!==$.id||(E==null?void 0:E.field)!==$.field)&&e.current.setCellFocus($.id,$.field)},[e]),w=v.useCallback(()=>{const $=eo(e);$&&!e.current.getRow($.id)&&e.current.setState(E=>P({},E,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))},[e]),S=Lt(()=>{const $=eo(e);if(!$)return;const E=wy(e,{pagination:t.pagination,paginationMode:t.paginationMode});if(E.rows.find(A=>A.id===$.id))return;const _=Jn(e);e.current.setState(A=>P({},A,{tabIndex:{cell:{id:E.rows[0].id,field:_[0].field},columnGroupHeader:null,columnHeader:null,columnHeaderFilter:null}}))}),O={setCellFocus:i,setColumnHeaderFocus:a,setColumnHeaderFilterFocus:s},C={moveFocusToRelativeCell:c,setColumnGroupHeaderFocus:l,getColumnGroupHeaderFocus:u};it(e,O,"public"),it(e,C,"private"),v.useEffect(()=>{const $=Wt(e.current.rootElementRef.current);return $.addEventListener("mouseup",b),()=>{$.removeEventListener("mouseup",b)}},[e,b]),Ve(e,"columnHeaderBlur",m),Ve(e,"cellDoubleClick",d),Ve(e,"cellMouseDown",y),Ve(e,"cellKeyDown",f),Ve(e,"cellModeChange",x),Ve(e,"columnHeaderFocus",h),Ve(e,"columnGroupHeaderFocus",p),Ve(e,"rowsSet",w),Ve(e,"paginationModelChange",S)};function yRe(e,t){const n=Bd(e)||{};return[...n.top||[],...t,...n.bottom||[]]}const dw=({currentColIndex:e,firstColIndex:t,lastColIndex:n,direction:r})=>{if(r==="rtl"){if(et)return e-1;return null},fw=({currentColIndex:e,firstColIndex:t,lastColIndex:n,direction:r})=>{if(r==="rtl"){if(e>t)return e-1}else if(r==="ltr"&&e{const n=nr(e,"useGridKeyboardNavigation"),r=fu(e,t).rows,o=mr(),i=v.useMemo(()=>yRe(e,r),[e,r]),a=t.signature!=="DataGrid"&&t.unstable_headerFilters,s=v.useCallback((b,x,w="left")=>{const S=Ys(e),O=e.current.unstable_getCellColSpanInfo(x,b);O&&O.spannedByColSpan&&(w==="left"?b=O.leftVisibleCellIndex:w==="right"&&(b=O.rightVisibleCellIndex));const C=S.findIndex(E=>E.id===x);n.debug(`Navigating to cell row ${C}, col ${b}`),e.current.scrollToIndexes({colIndex:b,rowIndex:C});const $=e.current.getVisibleColumns()[b].field;e.current.setCellFocus(x,$)},[e,n]),l=v.useCallback((b,x)=>{n.debug(`Navigating to header col ${b}`),e.current.scrollToIndexes({colIndex:b});const w=e.current.getVisibleColumns()[b].field;e.current.setColumnHeaderFocus(w,x)},[e,n]),u=v.useCallback((b,x)=>{n.debug(`Navigating to header filter col ${b}`),e.current.scrollToIndexes({colIndex:b});const w=e.current.getVisibleColumns()[b].field;e.current.setColumnHeaderFilterFocus(w,x)},[e,n]),c=v.useCallback((b,x,w)=>{n.debug(`Navigating to header col ${b}`),e.current.scrollToIndexes({colIndex:b});const{field:S}=e.current.getVisibleColumns()[b];e.current.setColumnGroupHeaderFocus(S,x,w)},[e,n]),d=v.useCallback(b=>{var x;return(x=i[b])==null?void 0:x.id},[i]),f=v.useCallback((b,x)=>{const w=x.currentTarget.querySelector(`.${U.columnHeaderTitleContainerContent}`);if(!!w&&w.contains(x.target)&&b.field!==Hd.field||!e.current.getRootDimensions())return;const C=e.current.getViewportPageSize(),$=b.field?e.current.getColumnIndex(b.field):0,E=i.length>0?0:null,M=i.length-1,_=0,A=Jn(e).length-1,j=Kh(e);let R=!0;switch(x.key){case"ArrowDown":{E!==null&&(a?u($,x):s($,d(E)));break}case"ArrowRight":{const I=fw({currentColIndex:$,firstColIndex:_,lastColIndex:A,direction:o.direction});I!==null&&l(I,x);break}case"ArrowLeft":{const I=dw({currentColIndex:$,firstColIndex:_,lastColIndex:A,direction:o.direction});I!==null&&l(I,x);break}case"ArrowUp":{j>0&&c($,j-1,x);break}case"PageDown":{E!==null&&M!==null&&s($,d(Math.min(E+C,M)));break}case"Home":{l(_,x);break}case"End":{l(A,x);break}case"Enter":{(x.ctrlKey||x.metaKey)&&e.current.toggleColumnMenu(b.field);break}case" ":break;default:R=!1}R&&x.preventDefault()},[e,i.length,a,u,s,d,o.direction,l,c]),h=v.useCallback((b,x)=>{if(!e.current.getRootDimensions())return;const S=zTe(e)===b.field,O=HTe(e)===b.field;if(S||O||!by(x.key))return;const C=e.current.getViewportPageSize(),$=b.field?e.current.getColumnIndex(b.field):0,E=0,M=i.length-1,_=0,A=Jn(e).length-1;let j=!0;switch(x.key){case"ArrowDown":{const R=d(E);R!=null&&s($,R);break}case"ArrowRight":{const R=fw({currentColIndex:$,firstColIndex:_,lastColIndex:A,direction:o.direction});R!==null&&u(R,x);break}case"ArrowLeft":{const R=dw({currentColIndex:$,firstColIndex:_,lastColIndex:A,direction:o.direction});R!==null?u(R,x):e.current.setColumnHeaderFilterFocus(b.field,x);break}case"ArrowUp":{l($,x);break}case"PageDown":{M!==null&&s($,d(Math.min(E+C,M)));break}case"Home":{u(_,x);break}case"End":{u(A,x);break}case" ":break;default:j=!1}j&&x.preventDefault()},[e,i.length,u,o.direction,l,s,d]),p=v.useCallback((b,x)=>{if(!e.current.getRootDimensions())return;const S=hy(e);if(S===null)return;const{field:O,depth:C}=S,{fields:$,depth:E,maxDepth:M}=b,_=e.current.getViewportPageSize(),A=e.current.getColumnIndex(O),j=O?e.current.getColumnIndex(O):0,R=0,I=i.length-1,k=0,D=Jn(e).length-1;let F=!0;switch(x.key){case"ArrowDown":{E===M-1?l(A,x):c(A,C+1,x);break}case"ArrowUp":{E>0&&c(A,C-1,x);break}case"ArrowRight":{const T=$.length-$.indexOf(O)-1;A+T+1<=D&&c(A+T+1,C,x);break}case"ArrowLeft":{const T=$.indexOf(O);A-T-1>=k&&c(A-T-1,C,x);break}case"PageDown":{I!==null&&s(j,d(Math.min(R+_,I)));break}case"Home":{c(k,C,x);break}case"End":{c(D,C,x);break}case" ":break;default:F=!1}F&&x.preventDefault()},[e,i.length,l,c,s,d]),m=v.useCallback((b,x)=>{if(qh(x))return;const w=e.current.getCellParams(b.id,b.field);if(w.cellMode===Tt.Edit||!by(x.key)||!e.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:x,cell:w}))return;const O=e.current.getRootDimensions();if(i.length===0||!O)return;const C=o.direction,$=e.current.getViewportPageSize(),E=b.field?e.current.getColumnIndex(b.field):0,M=i.findIndex(k=>k.id===b.id),_=0,A=i.length-1,j=0,R=Jn(e).length-1;let I=!0;switch(x.key){case"ArrowDown":{M_?s(E,d(M-1)):a?u(E,x):l(E,x);break}case"ArrowRight":{const k=fw({currentColIndex:E,firstColIndex:j,lastColIndex:R,direction:C});k!==null&&s(k,d(M),C==="rtl"?"left":"right");break}case"ArrowLeft":{const k=dw({currentColIndex:E,firstColIndex:j,lastColIndex:R,direction:C});k!==null&&s(k,d(M),C==="rtl"?"right":"left");break}case"Tab":{x.shiftKey&&E>j?s(E-1,d(M),"left"):!x.shiftKey&&E=_?s(E,d(k)):l(E,x);break}case"Home":{x.ctrlKey||x.metaKey||x.shiftKey?s(j,d(_)):s(j,d(M));break}case"End":{x.ctrlKey||x.metaKey||x.shiftKey?s(R,d(A)):s(R,d(M));break}default:I=!1}I&&x.preventDefault()},[e,i,o.direction,s,d,a,u,l]),y=v.useCallback((b,{event:x})=>x.key===" "?!1:b,[]);mn(e,"canStartEditing",y),Ve(e,"columnHeaderKeyDown",f),Ve(e,"headerFilterKeyDown",h),Ve(e,"columnGroupHeaderKeyDown",p),Ve(e,"cellKeyDown",m)},xRe=(e,t)=>{var n;const r=nr(e,"useGridRowCount"),o=Ae(e,iz),i=Ae(e,Yu);e.current.registerControlState({stateId:"paginationRowCount",propModel:t.rowCount,propOnChange:t.onRowCountChange,stateSelector:Yu,changeEvent:"rowCountChange"});const s={setRowCount:v.useCallback(c=>{i!==c&&(r.debug("Setting 'rowCount' to",c),e.current.setState(d=>P({},d,{pagination:P({},d.pagination,{rowCount:c})})))},[e,r,i])};it(e,s,"public");const l=v.useCallback((c,d)=>{var f;const h=Yu(e);return!d.exportOnlyDirtyModels||t.rowCount!=null||((f=t.initialState)==null||(f=f.pagination)==null?void 0:f.rowCount)!=null?P({},c,{pagination:P({},c.pagination,{rowCount:h})}):c},[e,t.rowCount,(n=t.initialState)==null||(n=n.pagination)==null?void 0:n.rowCount]),u=v.useCallback((c,d)=>{var f;const h=(f=d.stateToRestore.pagination)!=null&&f.rowCount?d.stateToRestore.pagination.rowCount:Yu(e);return e.current.setState(p=>P({},p,{pagination:P({},p.pagination,{rowCount:h})})),c},[e]);mn(e,"exportState",l),mn(e,"restoreState",u),v.useEffect(()=>{},[t.rowCount,t.paginationMode]),v.useEffect(()=>{t.paginationMode==="client"?e.current.setRowCount(o):t.rowCount!=null&&e.current.setRowCount(t.rowCount)},[e,o,t.paginationMode,t.rowCount])},wRe=(e,t)=>{var n,r,o,i,a;const s=P({},Pz(t.autoPageSize),(n=t.paginationModel)!=null?n:(r=t.initialState)==null||(r=r.pagination)==null?void 0:r.paginationModel);Oz(s.pageSize,t.signature);const l=(o=(i=t.rowCount)!=null?i:(a=t.initialState)==null||(a=a.pagination)==null?void 0:a.rowCount)!=null?o:0;return P({},e,{pagination:{paginationModel:s,rowCount:l}})},CRe=(e,t)=>{lRe(e,t),xRe(e,t)},SRe=(e,t)=>{var n,r;return P({},e,{preferencePanel:(n=(r=t.initialState)==null?void 0:r.preferencePanel)!=null?n:{open:!1}})},PRe=(e,t)=>{var n;const r=nr(e,"useGridPreferencesPanel"),o=v.useRef(),i=v.useRef(),a=v.useCallback(()=>{r.debug("Hiding Preferences Panel");const f=dh(e.current.state);f.openedPanelValue&&e.current.publishEvent("preferencePanelClose",{openedPanelValue:f.openedPanelValue}),e.current.setState(h=>P({},h,{preferencePanel:{open:!1}})),e.current.forceUpdate()},[e,r]),s=v.useCallback(()=>{i.current=setTimeout(()=>clearTimeout(o.current),0)},[]),l=v.useCallback(()=>{o.current=setTimeout(a,100)},[a]),u=v.useCallback((f,h,p)=>{r.debug("Opening Preferences Panel"),s(),e.current.setState(m=>P({},m,{preferencePanel:P({},m.preferencePanel,{open:!0,openedPanelValue:f,panelId:h,labelId:p})})),e.current.publishEvent("preferencePanelOpen",{openedPanelValue:f}),e.current.forceUpdate()},[r,s,e]);it(e,{showPreferences:u,hidePreferences:l},"public");const c=v.useCallback((f,h)=>{var p;const m=dh(e.current.state);return!h.exportOnlyDirtyModels||((p=t.initialState)==null?void 0:p.preferencePanel)!=null||m.open?P({},f,{preferencePanel:m}):f},[e,(n=t.initialState)==null?void 0:n.preferencePanel]),d=v.useCallback((f,h)=>{const p=h.stateToRestore.preferencePanel;return p!=null&&e.current.setState(m=>P({},m,{preferencePanel:p})),f},[e]);mn(e,"exportState",c),mn(e,"restoreState",d),v.useEffect(()=>()=>{clearTimeout(o.current),clearTimeout(i.current)},[])},ORe=["id","field"],$Re=["id","field"],ERe=ta(["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"),kRe=(e,t)=>{const[n,r]=v.useState({}),o=v.useRef(n),i=v.useRef({}),{processRowUpdate:a,onProcessRowUpdateError:s,cellModesModel:l,onCellModesModelChange:u}=t,c=I=>(...k)=>{t.editMode===Ji.Cell&&I(...k)},d=v.useCallback((I,k)=>{const D=e.current.getCellParams(I,k);if(!e.current.isCellEditable(D))throw new Error(`MUI: The cell with id=${I} and field=${k} is not editable.`)},[e]),f=v.useCallback((I,k,D)=>{if(e.current.getCellMode(I,k)!==D)throw new Error(`MUI: The cell with id=${I} and field=${k} is not in ${D} mode.`)},[e]),h=v.useCallback((I,k)=>{if(!I.isEditable||I.cellMode===Tt.Edit)return;const D=P({},I,{reason:oa.cellDoubleClick});e.current.publishEvent("cellEditStart",D,k)},[e]),p=v.useCallback((I,k)=>{if(I.cellMode===Tt.View||e.current.getCellMode(I.id,I.field)===Tt.View)return;const D=P({},I,{reason:ti.cellFocusOut});e.current.publishEvent("cellEditStop",D,k)},[e]),m=v.useCallback((I,k)=>{if(I.cellMode===Tt.Edit){if(k.which===229)return;let D;if(k.key==="Escape"?D=ti.escapeKeyDown:k.key==="Enter"?D=ti.enterKeyDown:k.key==="Tab"&&(D=k.shiftKey?ti.shiftTabKeyDown:ti.tabKeyDown,k.preventDefault()),D){const F=P({},I,{reason:D});e.current.publishEvent("cellEditStop",F,k)}}else if(I.isEditable){let D;if(!e.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:k,cellParams:I,editMode:"cell"}))return;if(gz(k)?D=oa.printableKeyDown:(k.ctrlKey||k.metaKey)&&k.key==="v"?D=oa.pasteKeyDown:k.key==="Enter"?D=oa.enterKeyDown:(k.key==="Delete"||k.key==="Backspace")&&(D=oa.deleteKeyDown),D){const T=P({},I,{reason:D,key:k.key});e.current.publishEvent("cellEditStart",T,k)}}},[e]),y=v.useCallback(I=>{const{id:k,field:D,reason:F}=I,T={id:k,field:D};(F===oa.printableKeyDown||F===oa.deleteKeyDown||F===oa.pasteKeyDown)&&(T.deleteValue=!0),e.current.startCellEditMode(T)},[e]),b=v.useCallback(I=>{const{id:k,field:D,reason:F}=I;e.current.runPendingEditCellValueMutation(k,D);let T;F===ti.enterKeyDown?T="below":F===ti.tabKeyDown?T="right":F===ti.shiftTabKeyDown&&(T="left");const L=F==="escapeKeyDown";e.current.stopCellEditMode({id:k,field:D,ignoreModifications:L,cellToFocusAfter:T})},[e]);Ve(e,"cellDoubleClick",c(h)),Ve(e,"cellFocusOut",c(p)),Ve(e,"cellKeyDown",c(m)),Ve(e,"cellEditStart",c(y)),Ve(e,"cellEditStop",c(b)),Kt(e,"cellEditStart",t.onCellEditStart),Kt(e,"cellEditStop",t.onCellEditStop);const x=v.useCallback((I,k)=>{const D=xr(e.current.state);return D[I]&&D[I][k]?Tt.Edit:Tt.View},[e]),w=Lt(I=>{const k=I!==t.cellModesModel;u&&k&&u(I,{}),!(t.cellModesModel&&k)&&(r(I),o.current=I,e.current.publishEvent("cellModesModelChange",I))}),S=v.useCallback((I,k,D)=>{const F=P({},o.current);if(D!==null)F[I]=P({},F[I],{[k]:P({},D)});else{const T=F[I],L=Q(T,[k].map(xp));F[I]=L,Object.keys(F[I]).length===0&&delete F[I]}w(F)},[w]),O=v.useCallback((I,k,D)=>{e.current.setState(F=>{const T=P({},F.editRows);return D!==null?T[I]=P({},T[I],{[k]:P({},D)}):(delete T[I][k],Object.keys(T[I]).length===0&&delete T[I]),P({},F,{editRows:T})}),e.current.forceUpdate()},[e]),C=v.useCallback(I=>{const{id:k,field:D}=I,F=Q(I,ORe);d(k,D),f(k,D,Tt.View),S(k,D,P({mode:Tt.Edit},F))},[d,f,S]),$=Lt(I=>{const{id:k,field:D,deleteValue:F,initialValue:T}=I;let L=e.current.getCellValue(k,D);(F||T)&&(L=F?"":T),O(k,D,{value:L,error:!1,isProcessingProps:!1}),e.current.setCellFocus(k,D)}),E=v.useCallback(I=>{const{id:k,field:D}=I,F=Q(I,$Re);f(k,D,Tt.Edit),S(k,D,P({mode:Tt.View},F))},[f,S]),M=Lt(async I=>{const{id:k,field:D,ignoreModifications:F,cellToFocusAfter:T="none"}=I;f(k,D,Tt.Edit),e.current.runPendingEditCellValueMutation(k,D);const L=()=>{O(k,D,null),S(k,D,null),T!=="none"&&e.current.moveFocusToRelativeCell(k,D,T)};if(F){L();return}const N=xr(e.current.state),{error:z,isProcessingProps:B}=N[k][D];if(z||B){i.current[k][D].mode=Tt.Edit,S(k,D,{mode:Tt.Edit});return}const V=e.current.getRowWithUpdatedValuesFromCellEditing(k,D);if(a){const W=ee=>{i.current[k][D].mode=Tt.Edit,S(k,D,{mode:Tt.Edit}),s?s(ee):ERe()};try{const ee=e.current.getRow(k);Promise.resolve(a(V,ee)).then(pe=>{e.current.updateRows([pe]),L()}).catch(W)}catch(ee){W(ee)}}else e.current.updateRows([V]),L()}),_=v.useCallback(async I=>{var k;const{id:D,field:F,value:T,debounceMs:L,unstable_skipValueParser:N}=I;d(D,F),f(D,F,Tt.Edit);const z=e.current.getColumn(F),B=e.current.getRow(D);let V=T;z.valueParser&&!N&&(V=z.valueParser(T,e.current.getCellParams(D,F)));let W=xr(e.current.state),ee=P({},W[D][F],{value:V,changeReason:L?"debouncedSetEditCellValue":"setEditCellValue"});if(z.preProcessEditCellProps){const pe=T!==W[D][F].value;ee=P({},ee,{isProcessingProps:!0}),O(D,F,ee),ee=await Promise.resolve(z.preProcessEditCellProps({id:D,row:B,props:ee,hasChanged:pe}))}return e.current.getCellMode(D,F)===Tt.View?!1:(W=xr(e.current.state),ee=P({},ee,{isProcessingProps:!1}),ee.value=z.preProcessEditCellProps?W[D][F].value:V,O(D,F,ee),W=xr(e.current.state),!((k=W[D])!=null&&(k=k[F])!=null&&k.error))},[e,d,f,O]),A=v.useCallback((I,k)=>{const D=e.current.getColumn(k),F=xr(e.current.state),T=e.current.getRow(I);if(!F[I]||!F[I][k])return e.current.getRow(I);const{value:L}=F[I][k];return D.valueSetter?D.valueSetter({value:L,row:T}):P({},T,{[k]:L})},[e]),j={getCellMode:x,startCellEditMode:C,stopCellEditMode:E},R={setCellEditingEditCellValue:_,getRowWithUpdatedValuesFromCellEditing:A};it(e,j,"public"),it(e,R,"private"),v.useEffect(()=>{l&&w(l)},[l,w]),Et(()=>{const I=py(e),k=i.current;i.current=Cz(n),Object.entries(n).forEach(([D,F])=>{Object.entries(F).forEach(([T,L])=>{var N,z;const B=((N=k[D])==null||(N=N[T])==null?void 0:N.mode)||Tt.View,V=(z=I[D])!=null?z:D;L.mode===Tt.Edit&&B===Tt.View?$(P({id:V,field:T},L)):L.mode===Tt.View&&B===Tt.Edit&&M(P({id:V,field:T},L))})})},[e,n,$,M])},IRe=["id"],TRe=["id"],MRe=ta(["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"),_Re=(e,t)=>{const[n,r]=v.useState({}),o=v.useRef(n),i=v.useRef({}),a=v.useRef(null),s=v.useRef(null),{processRowUpdate:l,onProcessRowUpdateError:u,rowModesModel:c,onRowModesModelChange:d}=t,f=T=>(...L)=>{t.editMode===Ji.Row&&T(...L)},h=v.useCallback((T,L)=>{const N=e.current.getCellParams(T,L);if(!e.current.isCellEditable(N))throw new Error(`MUI: The cell with id=${T} and field=${L} is not editable.`)},[e]),p=v.useCallback((T,L)=>{if(e.current.getRowMode(T)!==L)throw new Error(`MUI: The row with id=${T} is not in ${L} mode.`)},[e]),m=v.useCallback((T,L)=>{if(!T.isEditable||e.current.getRowMode(T.id)===Ht.Edit)return;const N=e.current.getRowParams(T.id),z=P({},N,{field:T.field,reason:Ka.cellDoubleClick});e.current.publishEvent("rowEditStart",z,L)},[e]),y=v.useCallback(T=>{s.current=T},[]),b=v.useCallback((T,L)=>{T.isEditable&&e.current.getRowMode(T.id)!==Ht.View&&(s.current=null,a.current=setTimeout(()=>{var N;if(a.current=null,((N=s.current)==null?void 0:N.id)!==T.id){if(!e.current.getRow(T.id)||e.current.getRowMode(T.id)===Ht.View)return;const z=e.current.getRowParams(T.id),B=P({},z,{field:T.field,reason:ia.rowFocusOut});e.current.publishEvent("rowEditStop",B,L)}}))},[e]);v.useEffect(()=>()=>{clearTimeout(a.current)},[]);const x=v.useCallback((T,L)=>{if(T.cellMode===Ht.Edit){if(L.which===229)return;let N;if(L.key==="Escape")N=ia.escapeKeyDown;else if(L.key==="Enter")N=ia.enterKeyDown;else if(L.key==="Tab"){const z=T0(e).filter(B=>e.current.getColumn(B).type===L0?!0:e.current.isCellEditable(e.current.getCellParams(T.id,B)));if(L.shiftKey?T.field===z[0]&&(N=ia.shiftTabKeyDown):T.field===z[z.length-1]&&(N=ia.tabKeyDown),L.preventDefault(),!N){const B=z.findIndex(W=>W===T.field),V=z[L.shiftKey?B-1:B+1];e.current.setCellFocus(T.id,V)}}if(N){const z=P({},e.current.getRowParams(T.id),{reason:N,field:T.field});e.current.publishEvent("rowEditStop",z,L)}}else if(T.isEditable){let N;if(!e.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:L,cellParams:T,editMode:"row"}))return;if(gz(L)||(L.ctrlKey||L.metaKey)&&L.key==="v"?N=Ka.printableKeyDown:L.key==="Enter"?N=Ka.enterKeyDown:(L.key==="Delete"||L.key==="Backspace")&&(N=Ka.deleteKeyDown),N){const B=e.current.getRowParams(T.id),V=P({},B,{field:T.field,reason:N});e.current.publishEvent("rowEditStart",V,L)}}},[e]),w=v.useCallback(T=>{const{id:L,field:N,reason:z}=T,B={id:L,fieldToFocus:N};(z===Ka.printableKeyDown||z===Ka.deleteKeyDown)&&(B.deleteValue=!!N),e.current.startRowEditMode(B)},[e]),S=v.useCallback(T=>{const{id:L,reason:N,field:z}=T;e.current.runPendingEditCellValueMutation(L);let B;N===ia.enterKeyDown?B="below":N===ia.tabKeyDown?B="right":N===ia.shiftTabKeyDown&&(B="left");const V=N==="escapeKeyDown";e.current.stopRowEditMode({id:L,ignoreModifications:V,field:z,cellToFocusAfter:B})},[e]);Ve(e,"cellDoubleClick",f(m)),Ve(e,"cellFocusIn",f(y)),Ve(e,"cellFocusOut",f(b)),Ve(e,"cellKeyDown",f(x)),Ve(e,"rowEditStart",f(w)),Ve(e,"rowEditStop",f(S)),Kt(e,"rowEditStart",t.onRowEditStart),Kt(e,"rowEditStop",t.onRowEditStop);const O=v.useCallback(T=>{if(t.editMode===Ji.Cell)return Ht.View;const L=xr(e.current.state);return L[T]&&Object.keys(L[T]).length>0?Ht.Edit:Ht.View},[e,t.editMode]),C=Lt(T=>{const L=T!==t.rowModesModel;d&&L&&d(T,{}),!(t.rowModesModel&&L)&&(r(T),o.current=T,e.current.publishEvent("rowModesModelChange",T))}),$=v.useCallback((T,L)=>{const N=P({},o.current);L!==null?N[T]=P({},L):delete N[T],C(N)},[C]),E=v.useCallback((T,L)=>{e.current.setState(N=>{const z=P({},N.editRows);return L!==null?z[T]=L:delete z[T],P({},N,{editRows:z})}),e.current.forceUpdate()},[e]),M=v.useCallback((T,L,N)=>{e.current.setState(z=>{const B=P({},z.editRows);return N!==null?B[T]=P({},B[T],{[L]:P({},N)}):(delete B[T][L],Object.keys(B[T]).length===0&&delete B[T]),P({},z,{editRows:B})}),e.current.forceUpdate()},[e]),_=v.useCallback(T=>{const{id:L}=T,N=Q(T,IRe);p(L,Ht.View),$(L,P({mode:Ht.Edit},N))},[p,$]),A=Lt(T=>{const{id:L,fieldToFocus:N,deleteValue:z,initialValue:B}=T,W=Pa(e).reduce((ee,pe)=>{if(!e.current.getCellParams(L,pe).isEditable)return ee;let ye=e.current.getCellValue(L,pe);return N===pe&&(z||B)&&(ye=z?"":B),ee[pe]={value:ye,error:!1,isProcessingProps:!1},ee},{});E(L,W),N&&e.current.setCellFocus(L,N)}),j=v.useCallback(T=>{const{id:L}=T,N=Q(T,TRe);p(L,Ht.Edit),$(L,P({mode:Ht.View},N))},[p,$]),R=Lt(T=>{const{id:L,ignoreModifications:N,field:z,cellToFocusAfter:B="none"}=T;e.current.runPendingEditCellValueMutation(L);const V=()=>{B!=="none"&&z&&e.current.moveFocusToRelativeCell(L,z,B),E(L,null),$(L,null)};if(N){V();return}const W=xr(e.current.state),ee=e.current.getRow(L);if(Object.values(W[L]).some(J=>J.isProcessingProps)){i.current[L].mode=Ht.Edit;return}if(Object.values(W[L]).some(J=>J.error)){i.current[L].mode=Ht.Edit,$(L,{mode:Ht.Edit});return}const ye=e.current.getRowWithUpdatedValuesFromRowEditing(L);if(l){const J=fe=>{i.current[L].mode=Ht.Edit,$(L,{mode:Ht.Edit}),u?u(fe):MRe()};try{Promise.resolve(l(ye,ee)).then(fe=>{e.current.updateRows([fe]),V()}).catch(J)}catch(fe){J(fe)}}else e.current.updateRows([ye]),V()}),I=v.useCallback(T=>{const{id:L,field:N,value:z,debounceMs:B,unstable_skipValueParser:V}=T;h(L,N);const W=e.current.getColumn(N),ee=e.current.getRow(L);let pe=z;W.valueParser&&!V&&(pe=W.valueParser(z,e.current.getCellParams(L,N)));let be=xr(e.current.state),ye=P({},be[L][N],{value:pe,changeReason:B?"debouncedSetEditCellValue":"setEditCellValue"});return W.preProcessEditCellProps||M(L,N,ye),new Promise(J=>{const fe=[];if(W.preProcessEditCellProps){const ce=ye.value!==be[L][N].value;ye=P({},ye,{isProcessingProps:!0}),M(L,N,ye);const K=be[L],Z=Q(K,[N].map(xp)),ie=Promise.resolve(W.preProcessEditCellProps({id:L,row:ee,props:ye,hasChanged:ce,otherFieldsProps:Z})).then(re=>{if(e.current.getRowMode(L)===Ht.View){J(!1);return}be=xr(e.current.state),re=P({},re,{isProcessingProps:!1}),re.value=W.preProcessEditCellProps?be[L][N].value:pe,M(L,N,re)});fe.push(ie)}Object.entries(be[L]).forEach(([ce,K])=>{if(ce===N)return;const Z=e.current.getColumn(ce);if(!Z.preProcessEditCellProps)return;K=P({},K,{isProcessingProps:!0}),M(L,ce,K),be=xr(e.current.state);const ie=be[L],re=Q(ie,[ce].map(xp)),ae=Promise.resolve(Z.preProcessEditCellProps({id:L,row:ee,props:K,hasChanged:!1,otherFieldsProps:re})).then(we=>{if(e.current.getRowMode(L)===Ht.View){J(!1);return}we=P({},we,{isProcessingProps:!1}),M(L,ce,we)});fe.push(ae)}),Promise.all(fe).then(()=>{e.current.getRowMode(L)===Ht.Edit?(be=xr(e.current.state),J(!be[L][N].error)):J(!1)})})},[e,h,M]),k=v.useCallback(T=>{const L=xr(e.current.state),N=e.current.getRow(T);if(!L[T])return e.current.getRow(T);let z=P({},N);return Object.entries(L[T]).forEach(([B,V])=>{const W=e.current.getColumn(B);W.valueSetter?z=W.valueSetter({value:V.value,row:z}):z[B]=V.value}),z},[e]),D={getRowMode:O,startRowEditMode:_,stopRowEditMode:j},F={setRowEditingEditCellValue:I,getRowWithUpdatedValuesFromRowEditing:k};it(e,D,"public"),it(e,F,"private"),v.useEffect(()=>{c&&C(c)},[c,C]),Et(()=>{const T=py(e),L=i.current;i.current=Cz(n),Object.entries(n).forEach(([N,z])=>{var B,V;const W=((B=L[N])==null?void 0:B.mode)||Ht.View,ee=(V=T[N])!=null?V:N;z.mode===Ht.Edit&&W===Ht.View?A(P({id:ee},z)):z.mode===Ht.View&&W===Ht.Edit&&R(P({id:ee},z))})},[e,n,A,R])},ARe=e=>P({},e,{editRows:{}}),RRe=(e,t)=>{kRe(e,t),_Re(e,t);const n=v.useRef({}),{isCellEditable:r}=t,o=v.useCallback(f=>uh(f.rowNode)||!f.colDef.editable||!f.colDef.renderEditCell?!1:r?r(f):!0,[r]),i=(f,h,p,m)=>{if(!p){m();return}if(n.current[f]||(n.current[f]={}),n.current[f][h]){const[x]=n.current[f][h];clearTimeout(x)}const y=()=>{const[x]=n.current[f][h];clearTimeout(x),m(),delete n.current[f][h]},b=setTimeout(()=>{m(),delete n.current[f][h]},p);n.current[f][h]=[b,y]};v.useEffect(()=>{const f=n.current;return()=>{Object.entries(f).forEach(([h,p])=>{Object.keys(p).forEach(m=>{const[y]=f[h][m];clearTimeout(y),delete f[h][m]})})}},[]);const a=v.useCallback((f,h)=>{if(n.current[f]){if(!h)Object.keys(n.current[f]).forEach(p=>{const[,m]=n.current[f][p];m()});else if(n.current[f][h]){const[,p]=n.current[f][h];p()}}},[]),s=v.useCallback(f=>{const{id:h,field:p,debounceMs:m}=f;return new Promise(y=>{i(h,p,m,async()=>{const b=t.editMode===Ji.Row?e.current.setRowEditingEditCellValue:e.current.setCellEditingEditCellValue;if(e.current.getCellMode(h,p)===Tt.Edit){const x=await b(f);y(x)}})})},[e,t.editMode]),l=v.useCallback((f,h)=>t.editMode===Ji.Cell?e.current.getRowWithUpdatedValuesFromCellEditing(f,h):e.current.getRowWithUpdatedValuesFromRowEditing(f),[e,t.editMode]),u=v.useCallback((f,h)=>{var p,m;return(p=(m=xr(e.current.state)[f])==null?void 0:m[h])!=null?p:null},[e]),c={isCellEditable:o,setEditCellValue:s,getRowWithUpdatedValues:l,unstable_getEditCellMeta:u},d={runPendingEditCellValueMutation:a};it(e,c,"public"),it(e,d,"private")},jRe=(e,t,n)=>(n.current.caches.rows=wg({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),P({},e,{rows:lz({apiRef:n,rowCountProp:t.rowCount,loadingProp:t.loading,previousTree:null,previousTreeDepths:null})})),DRe=(e,t)=>{const n=nr(e,"useGridRows"),r=fu(e,t),o=v.useRef(Date.now()),i=Y$(),a=v.useCallback(R=>{const I=xa(e)[R];if(I)return I;const k=e.current.getRowNode(R);return k&&uh(k)?{[cc]:R}:null},[e]),s=t.getRowId,l=v.useCallback(R=>cc in R?R[cc]:s?s(R):R.id,[s]),u=v.useMemo(()=>r.rows.reduce((R,{id:I},k)=>(R[I]=k,R),{}),[r.rows]),c=v.useCallback(({cache:R,throttle:I})=>{const k=()=>{o.current=Date.now(),e.current.setState(F=>P({},F,{rows:lz({apiRef:e,rowCountProp:t.rowCount,loadingProp:t.loading,previousTree:si(e),previousTreeDepths:jA(e)})})),e.current.publishEvent("rowsSet"),e.current.forceUpdate()};if(i.clear(),e.current.caches.rows=R,!I){k();return}const D=t.throttleRowsMs-(Date.now()-o.current);if(D>0){i.start(D,k);return}k()},[t.throttleRowsMs,t.rowCount,t.loading,e,i]),d=v.useCallback(R=>{n.debug(`Updating all rows, new length ${R.length}`);const I=wg({rows:R,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),k=e.current.caches.rows;I.rowsBeforePartialUpdates=k.rowsBeforePartialUpdates,c({cache:I,throttle:!0})},[n,t.getRowId,t.loading,t.rowCount,c,e]),f=v.useCallback(R=>{if(t.signature===Xi.DataGrid&&R.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 I=[];R.forEach(D=>{const F=gy(D,t.getRowId,"A row was provided without id when calling updateRows():"),T=e.current.getRowNode(F);if((T==null?void 0:T.type)==="pinnedRow"){const L=e.current.caches.pinnedRows,N=L.idLookup[F];N&&(L.idLookup[F]=P({},N,D))}else I.push(D)});const k=IIe({updates:I,getRowId:t.getRowId,previousCache:e.current.caches.rows});c({cache:k,throttle:!0})},[t.signature,t.getRowId,c,e]),h=v.useCallback(()=>{const R=Ef(e),I=xa(e);return new Map(R.map(k=>{var D;return[k,(D=I[k])!=null?D:{}]}))},[e]),p=v.useCallback(()=>_0(e),[e]),m=v.useCallback(()=>Ef(e),[e]),y=v.useCallback(R=>u[R],[u]),b=v.useCallback((R,I)=>{const k=e.current.getRowNode(R);if(!k)throw new Error(`MUI: No row with id #${R} found`);if(k.type!=="group")throw new Error("MUI: Only group nodes can be expanded or collapsed");const D=P({},k,{childrenExpanded:I});e.current.setState(F=>P({},F,{rows:P({},F.rows,{tree:P({},F.rows.tree,{[R]:D})})})),e.current.forceUpdate(),e.current.publishEvent("rowExpansionChange",D)},[e]),x=v.useCallback(R=>{var I;return(I=si(e)[R])!=null?I:null},[e]),w=v.useCallback(({skipAutoGeneratedRows:R=!0,groupId:I,applySorting:k,applyFiltering:D})=>{const F=si(e);let T;if(k){const L=F[I];if(!L)return[];const N=F$(e);T=[];const z=N.findIndex(B=>B===I)+1;for(let B=z;BL.depth;B+=1){const V=N[B];(!R||!uh(F[V]))&&T.push(V)}}else T=H$(F,I,R);if(D){const L=nz(e);T=T.filter(N=>L[N]!==!1)}return T},[e]),S=v.useCallback((R,I)=>{const k=e.current.getRowNode(R);if(!k)throw new Error(`MUI: No row with id #${R} found`);if(k.parent!==wr)throw new Error("MUI: The row reordering do not support reordering of grouped rows yet");if(k.type!=="leaf")throw new Error("MUI: The row reordering do not support reordering of footer or grouping rows");e.current.setState(D=>{const F=si(D,e.current.instanceId)[wr],T=F.children,L=T.findIndex(z=>z===R);if(L===-1||L===I)return D;n.debug(`Moving row ${R} to index ${I}`);const N=[...T];return N.splice(I,0,N.splice(L,1)[0]),P({},D,{rows:P({},D.rows,{tree:P({},D.rows.tree,{[wr]:P({},F,{children:N})})})})}),e.current.publishEvent("rowsSet")},[e,n]),O=v.useCallback((R,I)=>{if(t.signature===Xi.DataGrid&&I.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(I.length===0)return;if(A0(e)>1)throw new Error("`apiRef.current.unstable_replaceRows` is not compatible with tree data and row grouping");const D=P({},si(e)),F=P({},xa(e)),T=P({},py(e)),L=D[wr],N=[...L.children],z=new Set;for(let V=0;VD[V].type==="leaf");e.current.caches.rows.dataRowIdToModelLookup=F,e.current.caches.rows.dataRowIdToIdLookup=T,e.current.setState(V=>P({},V,{rows:P({},V.rows,{dataRowIdToModelLookup:F,dataRowIdToIdLookup:T,dataRowIds:B,tree:D})})),e.current.publishEvent("rowsSet")},[e,t.signature,t.getRowId]),C={getRow:a,getRowId:l,getRowModels:h,getRowsCount:p,getAllRowIds:m,setRows:d,updateRows:f,getRowNode:x,getRowIndexRelativeToVisibleRows:y,unstable_replaceRows:O},$={setRowIndex:S,setRowChildrenExpansion:b,getRowGroupChildren:w},E=v.useCallback(()=>{n.info("Row grouping pre-processing have changed, regenerating the row tree");let R;e.current.caches.rows.rowsBeforePartialUpdates===t.rows?R=P({},e.current.caches.rows,{updates:{type:"full",rows:Ef(e)}}):R=wg({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),c({cache:R,throttle:!1})},[n,e,t.rows,t.getRowId,t.loading,t.rowCount,c]),M=v.useCallback(R=>{R==="rowTreeCreation"&&E()},[E]),_=v.useCallback(()=>{e.current.getActiveStrategy("rowTree")!==cIe(e)&&E()},[e,E]);Ve(e,"activeStrategyProcessorChange",M),Ve(e,"strategyAvailabilityChange",_);const A=v.useCallback(()=>{e.current.setState(R=>{const I=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:si(R,e.current.instanceId),treeDepths:jA(R,e.current.instanceId),dataRowIds:Ef(R,e.current.instanceId),dataRowIdToModelLookup:xa(R,e.current.instanceId),dataRowIdToIdLookup:py(R,e.current.instanceId)});return P({},R,{rows:P({},R.rows,I,{totalTopLevelRowCount:sz({tree:I.tree,rowCountProp:t.rowCount})})})}),e.current.publishEvent("rowsSet"),e.current.forceUpdate()},[e,t.rowCount]);J$(e,"hydrateRows",A),it(e,C,"public"),it(e,$,t.signature===Xi.DataGrid?"private":"public");const j=v.useRef(!0);v.useEffect(()=>{if(j.current){j.current=!1;return}const R=e.current.caches.rows.rowsBeforePartialUpdates===t.rows,I=e.current.caches.rows.loadingPropBeforePartialUpdates===t.loading,k=e.current.caches.rows.rowCountPropBeforePartialUpdates===t.rowCount;if(R){I||(e.current.setState(D=>P({},D,{rows:P({},D.rows,{loading:t.loading})})),e.current.caches.rows.loadingPropBeforePartialUpdates=t.loading,e.current.forceUpdate()),k||(e.current.setState(D=>P({},D,{rows:P({},D.rows,{totalRowCount:Math.max(t.rowCount||0,D.rows.totalRowCount),totalTopLevelRowCount:Math.max(t.rowCount||0,D.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:wg({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])},LRe=e=>{const t={[wr]:P({},EIe(),{children:e})};for(let n=0;n{const n=P({},e),r={};for(let a=0;a!r[a])),n[wr]=P({},o,{children:i}),{groupingName:nu,tree:n,treeDepths:{0:i.length},dataRowIds:i}},NRe=e=>e.updates.type==="full"?LRe(e.updates.rows):FRe({previousTree:e.previousTree,actions:e.updates.actions}),BRe=e=>{Sy(e,nu,"rowTreeCreation",NRe)},Zz=(e,t)=>e==null||Array.isArray(e)?e:t&&t[0]===e?t:[e],zRe=(e,t)=>{var n;return P({},e,{rowSelection:t.rowSelection?(n=Zz(t.rowSelectionModel))!=null?n:[]:[]})},HRe=(e,t)=>{const n=nr(e,"useGridSelection"),r=I=>(...k)=>{t.rowSelection&&I(...k)},o=v.useMemo(()=>Zz(t.rowSelectionModel,$o(e.current.state)),[e,t.rowSelectionModel]),i=v.useRef(null);e.current.registerControlState({stateId:"rowSelection",propModel:o,propOnChange:t.onRowSelectionModelChange,stateSelector:$o,changeEvent:"rowSelectionChange"});const{checkboxSelection:a,disableMultipleRowSelection:s,disableRowSelectionOnClick:l,isRowSelectable:u}=t,c=!s||a,d=fu(e,t),f=v.useCallback(I=>{var k;let D=I;const F=(k=i.current)!=null?k:I,T=e.current.isRowSelected(I);if(T){const L=Xf(e),N=L.findIndex(B=>B===F),z=L.findIndex(B=>B===D);if(N===z)return;N>z?D=L[z+1]:D=L[z-1]}i.current=I,e.current.selectRowRange({startId:F,endId:D},!T)},[e]),h=v.useCallback(I=>{if(t.signature===Xi.DataGrid&&!t.checkboxSelection&&Array.isArray(I)&&I.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(` `));$o(e.current.state)!==I&&(n.debug("Setting selection model"),e.current.setState(D=>P({},D,{rowSelection:t.rowSelection?I:[]})),e.current.forceUpdate())},[e,n,t.rowSelection,t.signature,t.checkboxSelection]),p=v.useCallback(I=>$o(e.current.state).includes(I),[e]),m=v.useCallback(I=>{if(u&&!u(e.current.getRowParams(I)))return!1;const k=e.current.getRowNode(I);return!((k==null?void 0:k.type)==="footer"||(k==null?void 0:k.type)==="pinnedRow")},[e,u]),y=v.useCallback(()=>ATe(e),[e]),b=v.useCallback((I,k=!0,D=!1)=>{if(e.current.isRowSelectable(I))if(i.current=I,D)n.debug(`Setting selection for row ${I}`),e.current.setRowSelectionModel(k?[I]:[]);else{n.debug(`Toggling selection for row ${I}`);const T=$o(e.current.state).filter(N=>N!==I);k&&T.push(I),(T.length<2||c)&&e.current.setRowSelectionModel(T)}},[e,n,c]),x=v.useCallback((I,k=!0,D=!1)=>{n.debug("Setting selection for several rows");const F=I.filter(N=>e.current.isRowSelectable(N));let T;if(D)T=k?F:[];else{const N=P({},xy(e));F.forEach(z=>{k?N[z]=z:delete N[z]}),T=Object.values(N)}(T.length<2||c)&&e.current.setRowSelectionModel(T)},[e,n,c]),w=v.useCallback(({startId:I,endId:k},D=!0,F=!1)=>{if(!e.current.getRow(I)||!e.current.getRow(k))return;n.debug(`Expanding selection from row ${I} to row ${k}`);const T=Xf(e),L=T.indexOf(I),N=T.indexOf(k),[z,B]=L>N?[N,L]:[L,N],V=T.slice(z,B+1);e.current.selectRows(V,D,F)},[e,n]),S={selectRow:b,setRowSelectionModel:h,getSelectedRows:y,isRowSelected:p,isRowSelectable:m},O={selectRows:x,selectRowRange:w};it(e,S,"public"),it(e,O,t.signature===Xi.DataGrid?"private":"public");const C=v.useCallback(()=>{if(t.keepNonExistentRowsSelected)return;const I=$o(e.current.state),k=xa(e),D=P({},xy(e));let F=!1;I.forEach(T=>{k[T]||(delete D[T],F=!0)}),F&&e.current.setRowSelectionModel(Object.values(D))},[e,t.keepNonExistentRowsSelected]),$=v.useCallback((I,k)=>{const D=k.metaKey||k.ctrlKey,F=!a&&!D&&!v2e(k),T=!c||F,L=e.current.isRowSelected(I);T?e.current.selectRow(I,F?!0:!L,!0):e.current.selectRow(I,!L,!1)},[e,c,a]),E=v.useCallback((I,k)=>{var D;if(l)return;const F=(D=k.target.closest(`.${U.cell}`))==null?void 0:D.getAttribute("data-field");if(F===Hd.field||F===Q$)return;if(F){const L=e.current.getColumn(F);if((L==null?void 0:L.type)===L0)return}e.current.getRowNode(I.id).type!=="pinnedRow"&&(k.shiftKey&&(c||a)?f(I.id):$(I.id,k))},[l,c,a,e,f,$]),M=v.useCallback((I,k)=>{if(c&&k.shiftKey){var D;(D=window.getSelection())==null||D.removeAllRanges()}},[c]),_=v.useCallback((I,k)=>{k.nativeEvent.shiftKey?f(I.id):e.current.selectRow(I.id,I.value)},[e,f]),A=v.useCallback(I=>{const D=t.checkboxSelectionVisibleOnly&&t.pagination?Ez(e):Xf(e),F=Fn(e);e.current.selectRows(D,I.value,(F==null?void 0:F.items.length)>0)},[e,t.checkboxSelectionVisibleOnly,t.pagination]),j=v.useCallback((I,k)=>{if(e.current.getCellMode(I.id,I.field)!==Tt.Edit&&!qh(k)){if(by(k.key)&&k.shiftKey){const D=eo(e);if(D&&D.id!==I.id){k.preventDefault();const F=e.current.isRowSelected(D.id);if(!c){e.current.selectRow(D.id,!F,!0);return}const T=e.current.getRowIndexRelativeToVisibleRows(D.id),L=e.current.getRowIndexRelativeToVisibleRows(I.id);let N,z;T>L?F?(N=L,z=T-1):(N=L,z=T):F?(N=T+1,z=L):(N=T,z=L);const B=d.rows.slice(N,z+1).map(V=>V.id);e.current.selectRows(B,!F);return}}if(k.key===" "&&k.shiftKey){k.preventDefault(),$(I.id,k);return}k.key==="a"&&(k.ctrlKey||k.metaKey)&&(k.preventDefault(),x(e.current.getAllRowIds(),!0))}},[e,$,x,d.rows,c]);Ve(e,"sortedRowsSet",r(C)),Ve(e,"rowClick",r(E)),Ve(e,"rowSelectionCheckboxChange",r(_)),Ve(e,"headerSelectionCheckboxChange",A),Ve(e,"cellMouseDown",r(M)),Ve(e,"cellKeyDown",r(j)),v.useEffect(()=>{o!==void 0&&e.current.setRowSelectionModel(o)},[e,o,t.rowSelection]),v.useEffect(()=>{t.rowSelection||e.current.setRowSelectionModel([])},[e,t.rowSelection]);const R=o!=null;v.useEffect(()=>{if(R||!t.rowSelection)return;const I=$o(e.current.state);if(m){const k=I.filter(D=>m(D));k.length{if(!t.rowSelection||R)return;const I=$o(e.current.state);!c&&I.length>1&&e.current.setRowSelectionModel([])},[e,c,a,R,t.rowSelection])},URe={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"},VRe=e=>{const{classes:t}=e;return v.useMemo(()=>Ce({cellCheckbox:["cellCheckbox"],columnHeaderCheckbox:["columnHeaderCheckbox"]},dt,t),[t])},WRe=(e,t)=>{const n={classes:t.classes},r=VRe(n),o=v.useCallback(i=>{const a=P({},Hd,{cellClassName:r.cellCheckbox,headerClassName:r.columnHeaderCheckbox,headerName:e.current.getLocaleText("checkboxSelectionHeaderName")}),s=t.checkboxSelection,l=i.lookup[qa]!=null;return s&&!l?(i.lookup[qa]=a,i.orderedFields=[qa,...i.orderedFields]):!s&&l?(delete i.lookup[qa],i.orderedFields=i.orderedFields.filter(u=>u!==qa)):s&&l&&(i.lookup[qa]=P({},a,i.lookup[qa])),i},[e,r,t.checkboxSelection]);mn(e,"hydrateColumns",o)},GRe=(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:kz(i,t.disableMultipleColumnsSorting),sortedRows:[]}})},KRe=(e,t)=>{var n;const r=nr(e,"useGridSorting");e.current.registerControlState({stateId:"sortModel",propModel:t.sortModel,propOnChange:t.onSortModelChange,stateSelector:Po,changeEvent:"sortModelChange"});const o=v.useCallback((C,$)=>{const E=Po(e),M=E.findIndex(A=>A.field===C);let _=[...E];return M>-1?$?_.splice(M,1,$):_.splice(M,1):_=[...E,$],_},[e]),i=v.useCallback((C,$)=>{var E;const _=Po(e).find(j=>j.field===C.field);if(_){var A;const j=$===void 0?BA((A=C.sortingOrder)!=null?A:t.sortingOrder,_.sort):$;return j==null?void 0:P({},_,{sort:j})}return{field:C.field,sort:$===void 0?BA((E=C.sortingOrder)!=null?E:t.sortingOrder):$}},[e,t.sortingOrder]),a=v.useCallback((C,$)=>$==null||$.sortable===!1?C:($.sortingOrder||t.sortingOrder).some(M=>!!M)?[...C,"columnMenuSortItem"]:C,[t.sortingOrder]),s=v.useCallback(()=>{e.current.setState(C=>{if(t.sortingMode==="server")return r.debug("Skipping sorting rows as sortingMode = server"),P({},C,{sorting:P({},C.sorting,{sortedRows:H$(si(e),wr,!1)})});const $=Po(C,e.current.instanceId),E=FTe($,e),M=e.current.applyStrategyProcessor("sorting",{sortRowList:E});return P({},C,{sorting:P({},C.sorting,{sortedRows:M})})}),e.current.publishEvent("sortedRowsSet"),e.current.forceUpdate()},[e,r,t.sortingMode]),l=v.useCallback(C=>{Po(e)!==C&&(r.debug("Setting sort model"),e.current.setState(NA(C,t.disableMultipleColumnsSorting)),e.current.forceUpdate(),e.current.applySorting())},[e,r,t.disableMultipleColumnsSorting]),u=v.useCallback((C,$,E)=>{if(!C.sortable)return;const M=i(C,$);let _;!E||t.disableMultipleColumnsSorting?_=M?[M]:[]:_=o(C.field,M),e.current.setSortModel(_)},[e,o,i,t.disableMultipleColumnsSorting]),c=v.useCallback(()=>Po(e),[e]),d=v.useCallback(()=>N$(e).map($=>$.model),[e]),f=v.useCallback(()=>F$(e),[e]),h=v.useCallback(C=>e.current.getSortedRowIds()[C],[e]);it(e,{getSortModel:c,getSortedRows:d,getSortedRowIds:f,getRowIdFromRowIndex:h,setSortModel:l,sortColumn:u,applySorting:s},"public");const m=v.useCallback((C,$)=>{var E;const M=Po(e);return!$.exportOnlyDirtyModels||t.sortModel!=null||((E=t.initialState)==null||(E=E.sorting)==null?void 0:E.sortModel)!=null||M.length>0?P({},C,{sorting:{sortModel:M}}):C},[e,t.sortModel,(n=t.initialState)==null||(n=n.sorting)==null?void 0:n.sortModel]),y=v.useCallback((C,$)=>{var E;const M=(E=$.stateToRestore.sorting)==null?void 0:E.sortModel;return M==null?C:(e.current.setState(NA(M,t.disableMultipleColumnsSorting)),P({},C,{callbacks:[...C.callbacks,e.current.applySorting]}))},[e,t.disableMultipleColumnsSorting]),b=v.useCallback(C=>{const $=si(e),E=$[wr],M=C.sortRowList?C.sortRowList(E.children.map(_=>$[_])):[...E.children];return E.footerId!=null&&M.push(E.footerId),M},[e]);mn(e,"exportState",m),mn(e,"restoreState",y),Sy(e,nu,"sorting",b);const x=v.useCallback(({colDef:C},$)=>{const E=$.shiftKey||$.metaKey||$.ctrlKey;u(C,void 0,E)},[u]),w=v.useCallback(({colDef:C},$)=>{p2e($.key)&&!$.ctrlKey&&!$.metaKey&&u(C,void 0,$.shiftKey)},[u]),S=v.useCallback(()=>{const C=Po(e),$=Nd(e);if(C.length>0){const E=C.filter(M=>$[M.field]);E.length{C==="sorting"&&e.current.applySorting()},[e]);mn(e,"columnMenu",a),Ve(e,"columnHeaderClick",x),Ve(e,"columnHeaderKeyDown",w),Ve(e,"rowsSet",e.current.applySorting),Ve(e,"columnsChange",S),Ve(e,"activeStrategyProcessorChange",O),Xh(()=>{e.current.applySorting()}),Et(()=>{t.sortModel!==void 0&&e.current.setSortModel(t.sortModel)},[e,t.sortModel])};function dR(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=mr(),r=nr(e,"useGridScroll"),o=e.current.columnHeadersElementRef,i=e.current.virtualScrollerRef,a=Ae(e,Ys),s=v.useCallback(d=>{const f=_0(e),h=Jn(e);if(!(d.rowIndex==null)&&f===0||h.length===0)return!1;r.debug(`Scrolling to cell at row ${d.rowIndex}, col: ${d.colIndex} `);let m={};if(d.colIndex!=null){const w=id(e);let S;if(typeof d.rowIndex<"u"){var y;const O=(y=a[d.rowIndex])==null?void 0:y.id,C=e.current.unstable_getCellColSpanInfo(O,d.colIndex);C&&!C.spannedByColSpan&&(S=C.cellProps.width)}typeof S>"u"&&(S=h[d.colIndex].computedWidth),m.left=dR({clientHeight:i.current.clientWidth,scrollTop:Math.abs(i.current.scrollLeft),offsetHeight:S,offsetTop:w[d.colIndex]})}if(d.rowIndex!=null){var b,x;const w=fh(e.current.state),S=ITe(e),O=$z(e),C=t.pagination?d.rowIndex-S*O:d.rowIndex,$=w.positions[C+1]?w.positions[C+1]-w.positions[C]:w.currentPageTotalHeight-w.positions[C],E=((b=i.current.querySelector(`.${U["pinnedRows--top"]}`))==null?void 0:b.clientHeight)||0,M=((x=i.current.querySelector(`.${U["pinnedRows--bottom"]}`))==null?void 0:x.clientHeight)||0;m.top=dR({clientHeight:i.current.clientHeight-E-M,scrollTop:i.current.scrollTop,offsetHeight:$,offsetTop:w.positions[C]})}return m=e.current.unstable_applyPipeProcessors("scrollToIndexes",m,d),typeof m.left!==void 0||typeof m.top!==void 0?(e.current.scroll(m),!0):!1},[r,e,i,t.pagination,a]),l=v.useCallback(d=>{if(i.current&&d.left!=null&&o.current){const f=n.direction==="rtl"?-1:1;o.current.scrollLeft=d.left,i.current.scrollLeft=f*d.left,r.debug(`Scrolling left: ${d.left}`)}i.current&&d.top!=null&&(i.current.scrollTop=d.top,r.debug(`Scrolling top: ${d.top}`)),r.debug("Scrolling, updating container, and viewport")},[i,n.direction,o,r]),u=v.useCallback(()=>i!=null&&i.current?{top:i.current.scrollTop,left:i.current.scrollLeft}:{top:0,left:0},[i]);it(e,{scroll:l,scrollToIndexes:s,getScrollPosition:u},"public")};function XRe(e,t){Kt(e,"columnHeaderClick",t.onColumnHeaderClick),Kt(e,"columnHeaderDoubleClick",t.onColumnHeaderDoubleClick),Kt(e,"columnHeaderOver",t.onColumnHeaderOver),Kt(e,"columnHeaderOut",t.onColumnHeaderOut),Kt(e,"columnHeaderEnter",t.onColumnHeaderEnter),Kt(e,"columnHeaderLeave",t.onColumnHeaderLeave),Kt(e,"cellClick",t.onCellClick),Kt(e,"cellDoubleClick",t.onCellDoubleClick),Kt(e,"cellKeyDown",t.onCellKeyDown),Kt(e,"preferencePanelClose",t.onPreferencePanelClose),Kt(e,"preferencePanelOpen",t.onPreferencePanelOpen),Kt(e,"menuOpen",t.onMenuOpen),Kt(e,"menuClose",t.onMenuClose),Kt(e,"rowDoubleClick",t.onRowDoubleClick),Kt(e,"rowClick",t.onRowClick),Kt(e,"stateChange",t.onStateChange)}const YRe=({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 QRe(e,t){const n=nr(e,"useResizeContainer"),r=v.useRef(!1),o=v.useRef(null),i=v.useRef(null),a=Ae(e,fh),s=Ae(e,zd),l=Math.floor(t.rowHeight*s),u=eE(e,t.columnHeaderHeight),c=v.useCallback(()=>{var $;const E=($=e.current.rootElementRef)==null?void 0:$.current,M=L$(e),_=uz(e);if(!o.current)return;let A;if(t.scrollbarSize!=null)A=t.scrollbarSize;else if(!M||!E)A=0;else{const L=Wt(E).createElement("div");L.style.width="99px",L.style.height="99px",L.style.position="absolute",L.style.overflow="scroll",L.className="scrollDiv",E.appendChild(L),A=L.offsetWidth-L.clientWidth,E.removeChild(L)}let j,R,I;if(t.autoHeight)I=!1,R=Math.round(M)>Math.round(o.current.width),j={width:o.current.width,height:a.currentPageTotalHeight+(R?A:0)};else{j={width:o.current.width,height:Math.max(o.current.height-u,0)};const T=YRe({content:{width:Math.round(M),height:a.currentPageTotalHeight},container:{width:Math.round(j.width),height:j.height-_.top-_.bottom},scrollBarSize:A});I=T.hasScrollY,R=T.hasScrollX}const k={width:j.width-(I?A:0),height:j.height-(R?A:0)},D={viewportOuterSize:j,viewportInnerSize:k,hasScrollX:R,hasScrollY:I,scrollBarSize:A},F=i.current;i.current=D,(D.viewportInnerSize.width!==(F==null?void 0:F.viewportInnerSize.width)||D.viewportInnerSize.height!==(F==null?void 0:F.viewportInnerSize.height))&&e.current.publishEvent("viewportInnerSizeChange",D.viewportInnerSize)},[e,t.scrollbarSize,t.autoHeight,a.currentPageTotalHeight,u]),[d,f]=v.useState(),h=v.useMemo(()=>Th(f,60),[]),p=v.useRef();Et(()=>{d&&(c(),e.current.publishEvent("debouncedResize",o.current))},[e,d,c]);const m=v.useCallback(()=>{e.current.computeSizeAndPublishResizeEvent()},[e]),y=v.useCallback(()=>i.current,[]),b=v.useCallback(()=>{const $=e.current.getRootDimensions();if(!$)return 0;const E=wy(e,{pagination:t.pagination,paginationMode:t.paginationMode});if(t.getRowHeight){const _=e.current.getRenderContext(),A=_.lastRowIndex-_.firstRowIndex;return Math.min(A-1,E.rows.length)}const M=Math.floor($.viewportInnerSize.height/l);return Math.min(M,E.rows.length)},[e,t.pagination,t.paginationMode,t.getRowHeight,l]),x=v.useCallback(()=>{var $,E,M;const _=($=e.current.mainElementRef)==null?void 0:$.current;if(!_)return;const j=Yi(_).getComputedStyle(_),R=parseFloat(j.height)||0,I=parseFloat(j.width)||0,k=R!==((E=p.current)==null?void 0:E.height),D=I!==((M=p.current)==null?void 0:M.width);if(!p.current||k||D){const F={width:I,height:R};e.current.publishEvent("resize",F),p.current=F}},[e]),w={resize:m,getRootDimensions:y},S={getViewportPageSize:b,updateGridDimensionsRef:c,computeSizeAndPublishResizeEvent:x};it(e,w,"public"),it(e,S,"private");const O=v.useRef(!0),C=v.useCallback($=>{o.current=$;const E=/jsdom/.test(window.navigator.userAgent);if($.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),$.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),O.current){f($),O.current=!1;return}h($)},[t.autoHeight,h,n]);Et(()=>c(),[c]),Kt(e,"sortedRowsSet",c),Kt(e,"paginationModelChange",c),Kt(e,"columnsChange",c),Ve(e,"resize",C),Kt(e,"debouncedResize",t.onResize)}const ZRe=["style"],JRe=["style"];function sd(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?sd(e,t,n,o):sd(e,t,o+1,r)}function eje(e,t,n){let r=1;for(;n[ad(e-n,r,o),ad(t+n,r,o)],Jz=(e,t)=>e===t?!0:e.firstRowIndex===t.firstRowIndex&&e.lastRowIndex===t.lastRowIndex&&e.firstColumnIndex===t.firstColumnIndex&&e.lastColumnIndex===t.lastColumnIndex,tje={maxSize:3},nje=e=>{const t=Xs(),n=Ue(),r=Ae(t,Jn),o=Ae(t,WTe),i=Ae(t,Az),{ref:a,onRenderZonePositioning:s,renderZoneMinColumnIndex:l=0,renderZoneMaxColumnIndex:u=r.length,getRowProps:c}=e,d=mr(),f=Ae(t,id),h=Ae(t,L$),p=Ae(t,eo),m=Ae(t,my),y=Ae(t,fh),b=Ae(t,xy),x=fu(t,n),w=v.useRef(null),S=v.useRef(null),O=yt(a,S),[C,$]=v.useState(null),E=v.useRef(C),M=v.useRef({top:0,left:0}),[_,A]=v.useState({width:null,height:null}),j=v.useRef(h),[R,I]=v.useState(null),k=v.useRef(Object.create(null)),D=v.useRef(),F=v.useRef(),T=v.useRef(I0((Z,ie,re,ae,we,ge)=>{let je;const $e=Z.slice(ie,re);return ge>-1&&(ie>ge&&ge>=ae||rep!==null?r.findIndex(Z=>Z.field===p.field):-1,[p,r]),N=v.useCallback(()=>{if(!o)return{firstRowIndex:0,lastRowIndex:x.rows.length,firstColumnIndex:0,lastColumnIndex:r.length};const{top:Z,left:ie}=M.current,re=Math.min(fR(t,x,y,Z),y.positions.length-1),ae=n.autoHeight?re+x.rows.length:fR(t,x,y,Z+_.height);let we=0,ge=f.length;if(i){let je=!1;const[$e,Re]=Ja({firstIndex:re,lastIndex:ae,minFirstIndex:0,maxLastIndex:x.rows.length,buffer:n.rowBuffer});for(let Ee=$e;Ee{o?(S.current.scrollLeft=0,S.current.scrollTop=0):w.current.style.transform="translate3d(0px, 0px, 0px)"},[o]),Et(()=>{A({width:S.current.clientWidth,height:S.current.clientHeight})},[y.currentPageTotalHeight]);const z=v.useCallback(()=>{S.current&&A({width:S.current.clientWidth,height:S.current.clientHeight})},[]);Ve(t,"debouncedResize",z);const B=v.useCallback(Z=>{const[ie,re]=Ja({firstIndex:Z.firstRowIndex,lastIndex:Z.lastRowIndex,minFirstIndex:0,maxLastIndex:x.rows.length,buffer:n.rowBuffer}),[ae]=Ja({firstIndex:Z.firstColumnIndex,lastIndex:Z.lastColumnIndex,minFirstIndex:l,maxLastIndex:u,buffer:n.columnBuffer}),we=PS({firstColumnToRender:ae,apiRef:t,firstRowToRender:ie,lastRowToRender:re,visibleRows:x.rows}),ge=d.direction==="ltr"?1:-1,je=fh(t.current.state).positions[ie],$e=ge*id(t)[we];w.current.style.transform=`translate3d(${$e}px, ${je}px, 0px)`,typeof s=="function"&&s({top:je,left:$e})},[t,x.rows,s,l,u,n.columnBuffer,n.rowBuffer,d.direction]),V=v.useCallback(()=>E.current,[]),W=v.useCallback(Z=>{if(E.current&&Jz(Z,E.current)){B(Z);return}$(Z),B(Z);const[ie,re]=Ja({firstIndex:Z.firstRowIndex,lastIndex:Z.lastRowIndex,minFirstIndex:0,maxLastIndex:x.rows.length,buffer:n.rowBuffer});t.current.publishEvent("renderedRowsIntervalChange",{firstRowToRender:ie,lastRowToRender:re}),E.current=Z},[t,$,E,x.rows.length,n.rowBuffer,B]);Et(()=>{if(_.width==null)return;const Z=N();W(Z);const{top:ie,left:re}=M.current,ae={top:ie,left:re,renderContext:Z};t.current.publishEvent("scrollPositionChange",ae)},[t,N,_.width,W]);const ee=Lt(Z=>{const{scrollTop:ie,scrollLeft:re}=Z.currentTarget;if(M.current.top=ie,M.current.left=re,!E.current||ie<0||d.direction==="ltr"&&re<0||d.direction==="rtl"&&re>0)return;const ae=o?N():E.current,we=Math.abs(ae.firstRowIndex-E.current.firstRowIndex),ge=Math.abs(ae.lastRowIndex-E.current.lastRowIndex),je=Math.abs(ae.firstColumnIndex-E.current.firstColumnIndex),$e=Math.abs(ae.lastColumnIndex-E.current.lastColumnIndex),Re=we>=n.rowThreshold||ge>=n.rowThreshold||je>=n.columnThreshold||$e>=n.columnThreshold||j.current!==h;t.current.publishEvent("scrollPositionChange",{top:ie,left:re,renderContext:Re?ae:E.current},Z),Re&&(Sh.flushSync(()=>{W(ae)}),j.current=h)}),pe=Lt(Z=>{t.current.publishEvent("virtualScrollerWheel",{},Z)}),be=Lt(Z=>{t.current.publishEvent("virtualScrollerTouchMove",{},Z)}),ye=v.useMemo(()=>p!==null?x.rows.findIndex(Z=>Z.id===p.id):-1,[p,x.rows]);Ve(t,"rowMouseOver",(Z,ie)=>{var re;ie.currentTarget.contains(ie.relatedTarget)||I((re=Z.id)!=null?re:null)}),Ve(t,"rowMouseOut",(Z,ie)=>{ie.currentTarget.contains(ie.relatedTarget)||I(null)});const J=(Z={renderContext:C})=>{var ie;const{onRowRender:re,renderContext:ae,minFirstColumn:we=l,maxLastColumn:ge=u,availableSpace:je=_.width,rowIndexOffset:$e=0,position:Re="center"}=Z;if(!ae||je==null)return null;const Ee=o?n.rowBuffer:0,me=o?n.columnBuffer:0,[xe,ke]=Ja({firstIndex:ae.firstRowIndex,lastIndex:ae.lastRowIndex,minFirstIndex:0,maxLastIndex:x.rows.length,buffer:Ee}),ze=[];if(Z.rows)Z.rows.forEach(bt=>{ze.push(bt),t.current.calculateColSpan({rowId:bt.id,minFirstColumn:we,maxLastColumn:ge,columns:r})});else{if(!x.range)return null;for(let bt=xe;bt-1){const bt=x.rows[ye];(xe>ye||kexe?ze.push(bt):ze.unshift(bt),t.current.calculateColSpan({rowId:bt.id,minFirstColumn:we,maxLastColumn:ge,columns:r}))}const[ue,te]=Ja({firstIndex:ae.firstColumnIndex,lastIndex:ae.lastColumnIndex,minFirstIndex:we,maxLastIndex:ge,buffer:me}),Oe=PS({firstColumnToRender:ue,apiRef:t,firstRowToRender:xe,lastRowToRender:ke,visibleRows:x.rows});let Xe=!1;(Oe>L||te=_.width,ce=v.useMemo(()=>{const Z=Math.max(y.currentPageTotalHeight,1);let ie=!1;S!=null&&S.current&&Z<=(S==null?void 0:S.current.clientHeight)&&(ie=!0);const re={width:fe?h:"auto",height:Z,minHeight:ie?"100%":"auto"};return n.autoHeight&&x.rows.length===0&&(re.height=cz(t,n.rowHeight)),re},[t,S,h,y.currentPageTotalHeight,fe,n.autoHeight,n.rowHeight,x.rows.length]);v.useEffect(()=>{t.current.publishEvent("virtualScrollerContentSizeChange")},[t,ce]);const K=v.useMemo(()=>{const Z={};return fe||(Z.overflowX="hidden"),n.autoHeight&&(Z.overflowY="hidden"),Z},[fe,n.autoHeight]);return t.current.register("private",{getRenderContext:V}),{renderContext:C,updateRenderZonePosition:B,getRows:J,getRootProps:(Z={})=>P({ref:O,onScroll:ee,onWheel:pe,onTouchMove:be},Z,{style:Z.style?P({},Z.style,K):K,role:"presentation"}),getContentProps:({style:Z}={})=>({style:Z?P({},Z,ce):ce,role:"presentation"}),getRenderZoneProps:()=>({ref:w,role:"rowgroup"})}};function fR(e,t,n,r){var o,i;const a=e.current.getLastMeasuredRowIndex();let s=a===1/0;(o=t.range)!=null&&o.lastRowIndex&&!s&&(s=a>=t.range.lastRowIndex);const l=ad(a-(((i=t.range)==null?void 0:i.firstRowIndex)||0),0,n.positions.length);return s||n.positions[l]>=r?sd(r,n.positions):eje(r,n.positions,l)}const rje=e=>{const{classes:t,headerAlign:n,isDragging:r,showColumnBorder:o,groupId:i}=e;return Ce({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"]},dt,t)};function oje(e){var t;const{groupId:n,width:r,depth:o,maxDepth:i,fields:a,height:s,colIndex:l,hasFocus:u,tabIndex:c,isLastColumn:d}=e,f=Ue(),h=v.useRef(null),p=ct(),m=Ae(p,J4),y=n?m[n]:{},{headerName:b=n??"",description:x="",headerAlign:w=void 0}=y;let S;const O=n&&((t=m[n])==null?void 0:t.renderHeaderGroup),C=v.useMemo(()=>({groupId:n,headerName:b,description:x,depth:o,maxDepth:i,fields:a,colIndex:l,isLastColumn:d}),[n,b,x,o,i,a,l,d]);n&&O&&(S=O(C));const $=f.showColumnVerticalBorder,E=P({},e,{classes:f.classes,showColumnBorder:$,headerAlign:w,depth:o,isDragging:!1}),M=b??n,_=Dt(),A=n===null?`empty-group-cell-${_}`:n,j=rje(E);v.useLayoutEffect(()=>{if(u){const F=h.current.querySelector('[tabindex="0"]')||h.current;F==null||F.focus()}},[p,u]);const R=v.useCallback(D=>F=>{qh(F)||p.current.publishEvent(D,C,F)},[p,C]),I=v.useMemo(()=>({onKeyDown:R("columnGroupHeaderKeyDown"),onFocus:R("columnGroupHeaderFocus"),onBlur:R("columnGroupHeaderBlur")}),[R]),k=typeof y.headerClassName=="function"?y.headerClassName(C):y.headerClassName;return g.jsx(xz,P({ref:h,classes:j,columnMenuOpen:!1,colIndex:l,height:s,isResizing:!1,sortDirection:null,hasFocus:!1,tabIndex:c,isDraggable:!1,headerComponent:S,headerClassName:k,description:x,elementId:A,width:r,columnMenuIconButton:null,columnTitleIconButtons:null,resizable:!1,label:M,"aria-colspan":a.length,"data-fields":`|-${a.join("-|-")}-|`},I))}const pR=ne("div",{name:"MuiDataGrid",slot:"ColumnHeaderRow",overridesResolver:(e,t)=>t.columnHeaderRow})(()=>({display:"flex"}));function ije(e){return!!e.target}const aje=e=>{const{innerRef:t,minColumnIndex:n=0,visibleColumns:r,sortColumnLookup:o,filterColumnLookup:i,columnPositions:a,columnHeaderTabIndexState:s,columnGroupHeaderTabIndexState:l,columnHeaderFocus:u,columnGroupHeaderFocus:c,densityFactor:d,headerGroupingMaxDepth:f,columnMenuState:h,columnVisibility:p,columnGroupsHeaderStructure:m,hasOtherElementInTabSequence:y}=e,b=mr(),[x,w]=v.useState(""),[S,O]=v.useState(""),C=Xs(),$=Ae(C,Az),E=Ue(),M=v.useRef(null),_=yt(t,M),[A,j]=v.useState(null),R=v.useRef(A),I=v.useRef(0),k=fu(C,E),D=eE(C,E.columnHeaderHeight),F=Math.floor(E.columnHeaderHeight*d),T=v.useCallback(fe=>{A&&fe&&Jz(A,fe)||j(fe)},[A]);v.useEffect(()=>{var fe;(fe=C.current.columnHeadersContainerElementRef)!=null&&fe.current&&(C.current.columnHeadersContainerElementRef.current.scrollLeft=0)},[C]);const L=v.useRef(I0(ZAe,{equalityCheck:(fe,ce)=>["firstColumnIndex","minColumnIndex","columnBuffer"].every(K=>fe[K]===ce[K])})),N=v.useCallback(fe=>{const[ce,K]=Ja({firstIndex:fe.firstRowIndex,lastIndex:fe.lastRowIndex,minFirstIndex:0,maxLastIndex:k.rows.length,buffer:E.rowBuffer}),Z=L.current({firstColumnIndex:fe.firstColumnIndex,minColumnIndex:n,columnBuffer:E.columnBuffer,firstRowToRender:ce,lastRowToRender:K,apiRef:C,visibleRows:k.rows}),ie=b.direction==="ltr"?1:-1,re=Z>0?I.current-ie*a[Z]:I.current;M.current.style.transform=`translate3d(${-re}px, 0px, 0px)`},[a,n,E.columnBuffer,C,k.rows,E.rowBuffer,b.direction]);v.useLayoutEffect(()=>{A&&N(A)},[A,N]);const z=v.useCallback(({left:fe,renderContext:ce=null},K)=>{var Z,ie;if(!M.current||I.current===fe&&((Z=R.current)==null?void 0:Z.firstColumnIndex)===(ce==null?void 0:ce.firstColumnIndex)&&((ie=R.current)==null?void 0:ie.lastColumnIndex)===(ce==null?void 0:ce.lastColumnIndex))return;I.current=fe;let re=!1;ce!==R.current||!R.current?(ije(K)?(Sh.flushSync(()=>{T(ce)}),re=!0):T(ce),R.current=ce):re=!0,ce&&re&&N(ce)},[N,T]),B=v.useCallback(fe=>O(fe.field),[]),V=v.useCallback(()=>O(""),[]),W=v.useCallback(fe=>w(fe.field),[]),ee=v.useCallback(()=>w(""),[]);Ve(C,"columnResizeStart",B),Ve(C,"columnResizeStop",V),Ve(C,"columnHeaderDragStart",W),Ve(C,"columnHeaderDragEnd",ee),Ve(C,"scrollPositionChange",z);const pe=fe=>{const{renderContext:ce=A,minFirstColumn:K=n,maxLastColumn:Z=r.length}=fe||{};if(!ce)return null;const[ie,re]=Ja({firstIndex:ce.firstRowIndex,lastIndex:ce.lastRowIndex,minFirstIndex:0,maxLastIndex:k.rows.length,buffer:E.rowBuffer}),ae=$?L.current({firstColumnIndex:ce.firstColumnIndex,minColumnIndex:K,columnBuffer:E.columnBuffer,apiRef:C,firstRowToRender:ie,lastRowToRender:re,visibleRows:k.rows}):0,we=$?Math.min(ce.lastColumnIndex+E.columnBuffer,Z):Z;return{renderedColumns:r.slice(ae,we),firstColumnToRender:ae,lastColumnToRender:we,minFirstColumn:K,maxLastColumn:Z}},be=(fe,ce={})=>{const K=pe(fe);if(K==null)return null;const{renderedColumns:Z,firstColumnToRender:ie}=K,re=[];for(let ae=0;ae{if(f===0)return null;const ce=pe(fe);if(ce==null||ce.renderedColumns.length===0)return null;const{firstColumnToRender:K,lastColumnToRender:Z}=ce,ie=[],re=[];for(let ge=0;geDe===Re&&ve.includes($e)),me=r[Z-1].field,xe=(we=C.current.unstable_getColumnGroupPath(me)[ge])!=null?we:null,ke=je.findIndex(({groupId:De,columnFields:ve})=>De===xe&&ve.includes(me)),ze=je.slice(Ee,ke+1).map(De=>P({},De,{columnFields:De.columnFields.filter(ve=>p[ve]!==!1)})).filter(De=>De.columnFields.length>0),et=ze[0].columnFields.indexOf($e),te=ze[0].columnFields.slice(0,et).reduce((De,ve)=>{var Ge;const Ye=C.current.getColumn(ve);return De+((Ge=Ye.computedWidth)!=null?Ge:0)},0);let Oe=K;const Xe=ze.map(({groupId:De,columnFields:ve})=>{const Ge=c!==null&&c.depth===ge&&ve.includes(c.field),Ye=l!==null&&l.depth===ge&&ve.includes(l.field)?0:-1,Qe={groupId:De,width:ve.reduce((Rt,jn)=>Rt+C.current.getColumn(jn).computedWidth,0),fields:ve,colIndex:Oe,hasFocus:Ge,tabIndex:Ye};return Oe+=ve.length,Qe});re.push({leftOverflow:te,elements:Xe})}return re.forEach((ge,je)=>{ie.push(g.jsx(pR,{style:{height:`${F}px`,transform:`translateX(-${ge.leftOverflow}px)`},role:"row","aria-rowindex":je+1,ownerState:E,children:ge.elements.map(({groupId:$e,width:Re,fields:Ee,colIndex:me,hasFocus:xe,tabIndex:ke},ze)=>g.jsx(oje,{groupId:$e,width:Re,fields:Ee,colIndex:me,depth:je,isLastColumn:me===r.length-Ee.length,maxDepth:re.length,height:F,hasFocus:xe,tabIndex:ke},ze))},je))}),ie},J={minHeight:D,maxHeight:D,lineHeight:`${F}px`};return{renderContext:A,getColumnHeaders:be,getColumnsToRender:pe,getColumnGroupHeaders:ye,isDragging:!!x,getRootProps:(fe={})=>P({style:J},fe),getInnerProps:()=>({ref:_,role:"rowgroup"}),headerHeight:F}},sje=["className"],lje=e=>{const{classes:t}=e;return Ce({root:["columnHeaders","withBorderColor"]},dt,t)},uje=Un("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)"}),cje=v.forwardRef(function(t,n){const{className:r}=t,o=Q(t,sje),i=Ue(),a=lje(i);return g.jsx(uje,P({ref:n,className:Y(r,a.root),ownerState:i},o,{role:"presentation"}))}),dje=["isDragging","className"],fje=e=>{const{isDragging:t,hasScrollX:n,classes:r}=e;return Ce({root:["columnHeadersInner",t&&"columnHeaderDropZone",n&&"columnHeadersInner--scrollable"]},dt,r)},pje=Un("div",{name:"MuiDataGrid",slot:"columnHeadersInner",overridesResolver:(e,t)=>[{[`&.${U.columnHeaderDropZone}`]:t.columnHeaderDropZone},t.columnHeadersInner]})(()=>({display:"flex",alignItems:"flex-start",flexDirection:"column",[`&.${U.columnHeaderDropZone} .${U.columnHeaderDraggableContainer}`]:{cursor:"move"},[`&.${U["columnHeadersInner--scrollable"]} .${U.columnHeader}:last-child`]:{borderRight:"none"}})),hje=v.forwardRef(function(t,n){var r,o;const{isDragging:i,className:a}=t,s=Q(t,dje),l=ct(),u=Ue(),c=P({},u,{isDragging:i,hasScrollX:(r=(o=l.current.getRootDimensions())==null?void 0:o.hasScrollX)!=null?r:!1}),d=fje(c);return g.jsx(pje,P({ref:n,className:Y(a,d.root),ownerState:c},s))}),mje=["innerRef","className","visibleColumns","sortColumnLookup","filterColumnLookup","columnPositions","columnHeaderTabIndexState","columnGroupHeaderTabIndexState","columnHeaderFocus","columnGroupHeaderFocus","densityFactor","headerGroupingMaxDepth","columnMenuState","columnVisibility","columnGroupsHeaderStructure","hasOtherElementInTabSequence"],gje=v.forwardRef(function(t,n){const{innerRef:r,visibleColumns:o,sortColumnLookup:i,filterColumnLookup:a,columnPositions:s,columnHeaderTabIndexState:l,columnGroupHeaderTabIndexState:u,columnHeaderFocus:c,columnGroupHeaderFocus:d,densityFactor:f,headerGroupingMaxDepth:h,columnMenuState:p,columnVisibility:m,columnGroupsHeaderStructure:y,hasOtherElementInTabSequence:b}=t,x=Q(t,mje),{isDragging:w,getRootProps:S,getInnerProps:O,getColumnHeaders:C,getColumnGroupHeaders:$}=aje({innerRef:r,visibleColumns:o,sortColumnLookup:i,filterColumnLookup:a,columnPositions:s,columnHeaderTabIndexState:l,columnGroupHeaderTabIndexState:u,columnHeaderFocus:c,columnGroupHeaderFocus:d,densityFactor:f,headerGroupingMaxDepth:h,columnMenuState:p,columnVisibility:m,columnGroupsHeaderStructure:y,hasOtherElementInTabSequence:b});return g.jsx(cje,P({ref:n},S(x),{children:g.jsxs(hje,P({isDragging:w},O(),{children:[$(),C()]}))}))}),vje=D0(gje),yje=v.forwardRef(function(t,n){const o=ct().current.getLocaleText("noResultsOverlayLabel");return g.jsx(V$,P({ref:n},t,{children:o}))}),bje=["sortingOrder"],xje=v.memo(function(t){const{sortingOrder:n}=t,r=Q(t,bje),o=Ue(),[i]=n,a=i==="asc"?o.slots.columnSortedAscendingIcon:o.slots.columnSortedDescendingIcon;return a?g.jsx(a,P({},r)):null}),wje=["native"];function Cje(e){let{native:t}=e,n=Q(e,wje);return t?g.jsx("option",P({},n)):g.jsx(vt,P({},n))}const Sje={BooleanCellTrueIcon:fMe,BooleanCellFalseIcon:cw,ColumnMenuIcon:lMe,OpenFilterButtonIcon:tMe,FilterPanelDeleteIcon:cw,ColumnFilteredIcon:WA,ColumnSelectorIcon:rMe,ColumnUnsortedIcon:xje,ColumnSortedAscendingIcon:zA,ColumnSortedDescendingIcon:HA,ColumnResizeIcon:oMe,DensityCompactIcon:iMe,DensityStandardIcon:aMe,DensityComfortableIcon:sMe,ExportIcon:dMe,MoreActionsIcon:pMe,TreeDataCollapseIcon:VA,TreeDataExpandIcon:UA,GroupingCriteriaCollapseIcon:VA,GroupingCriteriaExpandIcon:UA,DetailPanelExpandIcon:GA,DetailPanelCollapseIcon:uMe,RowReorderIcon:KA,QuickFilterIcon:nMe,QuickFilterClearIcon:cw,ColumnMenuHideIcon:hMe,ColumnMenuSortAscendingIcon:zA,ColumnMenuSortDescendingIcon:HA,ColumnMenuFilterIcon:WA,ColumnMenuManageColumnsIcon:mMe,ColumnMenuClearIcon:gMe,LoadIcon:cMe,FilterPanelAddIcon:GA,FilterPanelRemoveAllIcon:vMe,ColumnReorderIcon:KA},Pje=P({},Sje,{BaseCheckbox:VX,BaseTextField:li,BaseFormControl:ga,BaseSelect:ci,BaseSwitch:Tee,BaseButton:nn,BaseIconButton:pr,BaseInputAdornment:av,BaseTooltip:jb,BasePopper:au,BaseInputLabel:va,BaseSelectOption:Cje,BaseChip:pn}),Oje=P({},Pje,{Cell:vS,SkeletonCell:R2e,ColumnHeaderFilterIconButton:KTe,ColumnMenu:_Me,ColumnHeaders:vje,Footer:N_e,FooterRowCount:q_e,Toolbar:null,PreferencesPanel:i_e,LoadingOverlay:z_e,NoResultsOverlay:yje,NoRowsOverlay:H_e,Pagination:V_e,FilterPanel:$_e,ColumnsPanel:JMe,Panel:o_e,Row:hAe}),e3=e=>{if(e!==void 0)return Object.keys(e).reduce((t,n)=>P({},t,{[`${n.charAt(0).toLowerCase()}${n.slice(1)}`]:e[n]}),{})};function $je({defaultSlots:e,slots:t,components:n}){const r=t??(n?e3(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 Eje=["components","componentsProps"];function kje(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=Q(e,Eje);return[t,n,kje(r)]},[e])}const Tje={disableMultipleColumnsFiltering:!0,disableMultipleColumnsSorting:!0,disableMultipleRowSelection:!0,throttleRowsMs:void 0,hideFooterRowCount:!1,pagination:!0,checkboxSelectionVisibleOnly:!1,disableColumnReorder:!0,disableColumnResize:!0,keepColumnPositionIfDraggedOutside:!1,signature:"DataGrid"},F0={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:Ji.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},Mje=e3(Oje),_je=e=>{const[t,n,r]=Ije(PW({props:e,name:"MuiDataGrid"})),o=v.useMemo(()=>P({},URe,r.localeText),[r.localeText]),i=v.useMemo(()=>$je({defaultSlots:Mje,slots:r.slots,components:t}),[t,r.slots]);return v.useMemo(()=>{var a;return P({},F0,r,{localeText:o,slots:i,slotProps:(a=r.slotProps)!=null?a:n},Tje)},[r,o,i,n])},Aje=e=>P({},e,{rowsMeta:{currentPageTotalHeight:0,positions:[]}}),hR=(e,t,n)=>typeof e=="number"&&e>0?e:t,Rje=(e,t)=>{const{getRowHeight:n,getRowSpacing:r,getEstimatedRowHeight:o}=t,i=v.useRef(Object.create(null)),a=v.useRef(-1),s=v.useRef(!1),l=Ae(e,zd),u=Ae(e,Fn),c=Ae(e,G$),d=Ae(e,Po),f=fu(e,t),h=Ae(e,Bd),p=hR(t.rowHeight,F0.rowHeight),m=Math.floor(p*l),y=v.useCallback(()=>{var j,R;s.current=!1;const I=F=>{i.current[F.id]||(i.current[F.id]={sizes:{baseCenter:m},isResized:!1,autoHeight:!1,needsFirstMeasurement:!0});const{isResized:T,needsFirstMeasurement:L,sizes:N}=i.current[F.id];let z=typeof m=="number"&&m>0?m:52;const B=N.baseCenter;if(T)z=B;else if(n){const be=n(P({},F,{densityFactor:l}));if(be==="auto"){if(L){const ye=o?o(P({},F,{densityFactor:l})):m;z=ye??m}else z=B;s.current=!0,i.current[F.id].autoHeight=!0}else z=hR(be,m),i.current[F.id].needsFirstMeasurement=!1,i.current[F.id].autoHeight=!1}else i.current[F.id].needsFirstMeasurement=!1;const V={};for(const be in N)/^base[A-Z]/.test(be)&&(V[be]=N[be]);if(V.baseCenter=z,r){var W,ee;const be=e.current.getRowIndexRelativeToVisibleRows(F.id),ye=r(P({},F,{isFirstVisible:be===0,isLastVisible:be===f.rows.length-1,indexRelativeToCurrentPage:be}));V.spacingTop=(W=ye.top)!=null?W:0,V.spacingBottom=(ee=ye.bottom)!=null?ee:0}const pe=e.current.unstable_applyPipeProcessors("rowHeight",V,F);return i.current[F.id].sizes=pe,pe},k=[],D=f.rows.reduce((F,T)=>{k.push(F);let L=0,N=0;const z=I(T);for(const B in z){const V=z[B];/^base[A-Z]/.test(B)?L=V>L?V:L:N+=V}return F+L+N},0);h==null||(j=h.top)==null||j.forEach(F=>{I(F)}),h==null||(R=h.bottom)==null||R.forEach(F=>{I(F)}),e.current.setState(F=>P({},F,{rowsMeta:{currentPageTotalHeight:D,positions:k}})),s.current||(a.current=1/0),e.current.forceUpdate()},[e,f.rows,m,n,r,o,h,l]),b=v.useCallback(j=>{const R=i.current[j];return R?R.sizes.baseCenter:m},[m]),x=j=>{var R;return(R=i.current[j])==null?void 0:R.sizes},w=v.useCallback((j,R)=>{i.current[j].sizes.baseCenter=R,i.current[j].isResized=!0,i.current[j].needsFirstMeasurement=!1,y()},[y]),S=v.useMemo(()=>Th(y,t.rowPositionsDebounceMs),[y,t.rowPositionsDebounceMs]),O=v.useCallback((j,R,I)=>{if(!i.current[j]||!i.current[j].autoHeight)return;const k=i.current[j].sizes[`base${oe(I)}`]!==R;i.current[j].needsFirstMeasurement=!1,i.current[j].sizes[`base${oe(I)}`]=R,k&&S()},[S]),C=v.useCallback(j=>{var R;return((R=i.current[j])==null?void 0:R.autoHeight)||!1},[]),$=v.useCallback(()=>a.current,[]),E=v.useCallback(j=>{s.current&&j>a.current&&(a.current=j)},[]),M=v.useCallback(()=>{i.current={},y()},[y]);v.useEffect(()=>{y()},[m,u,c,d,y]),J$(e,"rowHeight",y);const _={unstable_setLastMeasuredRowIndex:E,unstable_getRowHeight:b,unstable_getRowInternalSizes:x,unstable_setRowHeight:w,unstable_storeRowHeightMeasurement:O,resetRowHeights:M},A={getLastMeasuredRowIndex:$,rowHasAutoHeight:C};it(e,_,"public"),it(e,A,"private")},jje=e=>{const t=v.useCallback((o={})=>e.current.unstable_applyPipeProcessors("exportState",{},o),[e]),n=v.useCallback(o=>{e.current.unstable_applyPipeProcessors("restoreState",{callbacks:[]},{stateToRestore:o}).callbacks.forEach(a=>{a()}),e.current.forceUpdate()},[e]);it(e,{exportState:t,restoreState:n},"public")},Dje=e=>{const t=v.useRef({}),n=v.useCallback((u,c,d)=>{const f=t.current;f[u]||(f[u]={}),f[u][c]=d},[]),r=v.useCallback((u,c)=>{var d;return(d=t.current[u])==null?void 0:d[c]},[]),o=v.useCallback(u=>{const{columnIndex:c,rowId:d,minFirstColumnIndex:f,maxLastColumnIndex:h,columns:p}=u,m=p.length,y=p[c],b=typeof y.colSpan=="function"?y.colSpan(e.current.getCellParams(d,y.field)):y.colSpan;if(!b||b===1)return n(d,c,{spannedByColSpan:!1,cellProps:{colSpan:1,width:y.computedWidth}}),{colSpan:1};let x=y.computedWidth;for(let w=1;w=f&&S{for(let h=c;h1&&(h+=p.colSpan-1)}},[o]),a={unstable_getCellColSpanInfo:r},s={calculateColSpan:i};it(e,a,"public"),it(e,s,"private");const l=v.useCallback(()=>{t.current={}},[]);Ve(e,"columnOrderChange",l)},t3=(e,t,n)=>{if(dz(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=>{t3(i,[...t,r],n)})},OS=e=>{if(!e)return{};const t={};return e.forEach(n=>{t3(n,[],t)}),t},$S=(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)=>Fl(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 f;const h=(f=r(d)[l])!=null?f:null;if(c.length===0)return[{columnFields:[d],groupId:h}];const p=c[c.length-1],m=p.columnFields[p.columnFields.length-1];return p.groupId!==h||!a(m,d,l)||s(m,d)?[...c,{columnFields:[d],groupId:h}]:[...c.slice(0,c.length-1),{columnFields:[...p.columnFields,d],groupId:h}]},[]);o.push(u)}return o},Lje=["groupId","children"],tE=e=>{let t={};return e.forEach(n=>{if(dz(n))return;const{groupId:r,children:o}=n,i=Q(n,Lje);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=tE(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)},Fje=(e,t,n)=>{var r,o,i,a;if(!((r=t.experimentalFeatures)!=null&&r.columnGrouping))return e;const s=Pa(n),l=T0(n),u=tE((o=t.columnGroupingModel)!=null?o:[]),c=OS((i=t.columnGroupingModel)!=null?i:[]),d=$S(s,c,(a=n.current.state.pinnedColumns)!=null?a:{}),f=l.length===0?0:Math.max(...l.map(h=>{var p,m;return(p=(m=c[h])==null?void 0:m.length)!=null?p:0}));return P({},e,{columnGrouping:{lookup:u,unwrappedGroupingModel:c,headerStructure:d,maxDepth:f}})},Nje=(e,t)=>{var n;const r=v.useCallback(l=>{var u;return(u=aIe(e)[l])!=null?u:[]},[e]),o=v.useCallback(()=>J4(e),[e]);it(e,{unstable_getColumnGroupPath:r,unstable_getAllGroupDetails:o},"public");const a=v.useCallback(()=>{var l;const u=OS((l=t.columnGroupingModel)!=null?l:[]);e.current.setState(c=>{var d,f,h;const p=(d=(f=c.columns)==null?void 0:f.orderedFields)!=null?d:[],m=(h=c.pinnedColumns)!=null?h:{},y=$S(p,u,m);return P({},c,{columnGrouping:P({},c.columnGrouping,{headerStructure:y})})})},[e,t.columnGroupingModel]),s=v.useCallback(l=>{var u,c,d,f;if(!((u=t.experimentalFeatures)!=null&&u.columnGrouping))return;const h=(c=(d=(f=e.current).getPinnedColumns)==null?void 0:d.call(f))!=null?c:{},p=Pa(e),m=T0(e),y=tE(l??[]),b=OS(l??[]),x=$S(p,b,h),w=m.length===0?0:Math.max(...m.map(S=>{var O,C;return(O=(C=b[S])==null?void 0:C.length)!=null?O:0}));e.current.setState(S=>P({},S,{columnGrouping:{lookup:y,unwrappedGroupingModel:b,headerStructure:x,maxDepth:w}}))},[e,(n=t.experimentalFeatures)==null?void 0:n.columnGrouping]);Ve(e,"columnIndexChange",a),Ve(e,"columnsChange",()=>{s(t.columnGroupingModel)}),Ve(e,"columnVisibilityModelChange",()=>{s(t.columnGroupingModel)}),v.useEffect(()=>{s(t.columnGroupingModel)},[s,t.columnGroupingModel])},Bje=(e,t)=>{const n=kAe(e,t);return WRe(n,t),BRe(n),kr(zRe,n,t),kr(JAe,n,t),kr(jRe,n,t),kr(ARe,n,t),kr(gRe,n,t),kr(GRe,n,t),kr(SRe,n,t),kr(fRe,n,t),kr(rRe,n,t),kr(wRe,n,t),kr(Aje,n,t),kr(qAe,n,t),kr(Fje,n,t),kr(UTe,n,t),bRe(n,t),HRe(n,t),eRe(n,t),DRe(n,t),zIe(n,t),Dje(n),Nje(n,t),RRe(n,t),vRe(n,t),PRe(n,t),mRe(n,t),KRe(n,t),oRe(n,t),CRe(n,t),Rje(n,t),qRe(n,t),XAe(n),sRe(n,t),dRe(n,t),KAe(n,t),QRe(n,t),XRe(n,t),jje(n),VTe(n,t),n},zje=e=>{const{classes:t}=e;return Ce({root:["virtualScroller"]},dt,t)},Hje=Un("div",{name:"MuiDataGrid",slot:"VirtualScroller",overridesResolver:(e,t)=>t.virtualScroller})({overflow:"auto",height:"100%",position:"relative","@media print":{overflow:"hidden"},zIndex:0}),Uje=v.forwardRef(function(t,n){const r=Ue(),o=zje(r);return g.jsx(Hje,P({ref:n},t,{className:Y(o.root,t.className),ownerState:r}))}),Vje=(e,t)=>{const{classes:n}=e;return Ce({root:["virtualScrollerContent",t&&"virtualScrollerContent--overflowed"]},dt,n)},Wje=Un("div",{name:"MuiDataGrid",slot:"VirtualScrollerContent",overridesResolver:(e,t)=>t.virtualScrollerContent})({}),Gje=v.forwardRef(function(t,n){var r;const o=Ue(),i=!o.autoHeight&&((r=t.style)==null?void 0:r.minHeight)==="auto",a=Vje(o,i);return g.jsx(Wje,P({ref:n},t,{ownerState:o,className:Y(a.root,t.className)}))}),Kje=["className"],qje=e=>{const{classes:t}=e;return Ce({root:["virtualScrollerRenderZone"]},dt,t)},Xje=Un("div",{name:"MuiDataGrid",slot:"VirtualScrollerRenderZone",overridesResolver:(e,t)=>t.virtualScrollerRenderZone})({position:"absolute",display:"flex",flexDirection:"column"}),Yje=v.forwardRef(function(t,n){const{className:r}=t,o=Q(t,Kje),i=Ue(),a=qje(i);return g.jsx(Xje,P({ref:n,className:Y(a.root,r),ownerState:i},o))}),Qje=["className"],Zje=v.forwardRef(function(t,n){const{className:r}=t,o=Q(t,Qje),{getRootProps:i,getContentProps:a,getRenderZoneProps:s,getRows:l}=nje({ref:n});return g.jsxs(Uje,P({className:r},i(o),{children:[g.jsx(RIe,{}),g.jsx(Gje,P({},a(),{children:g.jsx(Yje,P({},s(),{children:l()}))}))]}))}),n3=v.forwardRef(function(t,n){const r=_je(t),o=Bje(r.apiRef,r);return g.jsx(mAe,{privateApiRef:o,props:r,children:g.jsxs(N2e,P({className:r.className,style:r.style,sx:r.sx,ref:n},r.forwardedProps,{children:[g.jsx(B_e,{}),g.jsx(OIe,{VirtualScrollerComponent:Zje}),g.jsx($Ie,{})]}))})}),N0=v.memo(n3);F0.filterDebounceMs;F0.filterDebounceMs;n3.propTypes={apiRef:G.shape({current:G.object.isRequired}),"aria-label":G.string,"aria-labelledby":G.string,autoHeight:G.bool,autoPageSize:G.bool,cellModesModel:G.object,checkboxSelection:G.bool,classes:G.object,clipboardCopyCellDelimiter:G.string,columnBuffer:G.number,columnGroupingModel:G.arrayOf(G.object),columnHeaderHeight:G.number,columns:i9(G.array.isRequired),columnThreshold:G.number,columnVisibilityModel:G.object,components:G.object,componentsProps:G.object,density:G.oneOf(["comfortable","compact","standard"]),disableColumnFilter:G.bool,disableColumnMenu:G.bool,disableColumnSelector:G.bool,disableDensitySelector:G.bool,disableEval:G.bool,disableRowSelectionOnClick:G.bool,disableVirtualization:G.bool,editMode:G.oneOf(["cell","row"]),experimentalFeatures:G.shape({ariaV7:G.bool,columnGrouping:G.bool,warnIfFocusStateIsNotSynced:G.bool}),filterDebounceMs:G.number,filterMode:G.oneOf(["client","server"]),filterModel:G.shape({items:G.arrayOf(G.shape({field:G.string.isRequired,id:G.oneOfType([G.number,G.string]),operator:G.string.isRequired,value:G.any})).isRequired,logicOperator:G.oneOf(["and","or"]),quickFilterExcludeHiddenColumns:G.bool,quickFilterLogicOperator:G.oneOf(["and","or"]),quickFilterValues:G.array}),forwardedProps:G.object,getCellClassName:G.func,getDetailPanelContent:G.func,getEstimatedRowHeight:G.func,getRowClassName:G.func,getRowHeight:G.func,getRowId:G.func,getRowSpacing:G.func,hideFooter:G.bool,hideFooterPagination:G.bool,hideFooterSelectedRowCount:G.bool,ignoreDiacritics:G.bool,initialState:G.object,isCellEditable:G.func,isRowSelectable:G.func,keepNonExistentRowsSelected:G.bool,loading:G.bool,localeText:G.object,logger:G.shape({debug:G.func.isRequired,error:G.func.isRequired,info:G.func.isRequired,warn:G.func.isRequired}),logLevel:G.oneOf(["debug","error","info","warn",!1]),nonce:G.string,onCellClick:G.func,onCellDoubleClick:G.func,onCellEditStart:G.func,onCellEditStop:G.func,onCellKeyDown:G.func,onCellModesModelChange:G.func,onClipboardCopy:G.func,onColumnHeaderClick:G.func,onColumnHeaderDoubleClick:G.func,onColumnHeaderEnter:G.func,onColumnHeaderLeave:G.func,onColumnHeaderOut:G.func,onColumnHeaderOver:G.func,onColumnOrderChange:G.func,onColumnVisibilityModelChange:G.func,onFilterModelChange:G.func,onMenuClose:G.func,onMenuOpen:G.func,onPaginationModelChange:G.func,onPreferencePanelClose:G.func,onPreferencePanelOpen:G.func,onProcessRowUpdateError:G.func,onResize:G.func,onRowClick:G.func,onRowCountChange:G.func,onRowDoubleClick:G.func,onRowEditStart:G.func,onRowEditStop:G.func,onRowModesModelChange:G.func,onRowSelectionModelChange:G.func,onSortModelChange:G.func,onStateChange:G.func,pageSizeOptions:G.arrayOf(G.oneOfType([G.number,G.shape({label:G.string.isRequired,value:G.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:G.oneOf(["client","server"]),paginationModel:G.shape({page:G.number.isRequired,pageSize:G.number.isRequired}),processRowUpdate:G.func,rowBuffer:G.number,rowCount:G.number,rowHeight:G.number,rowModesModel:G.object,rowPositionsDebounceMs:G.number,rows:G.arrayOf(G.object).isRequired,rowSelection:G.bool,rowSelectionModel:G.oneOfType([G.arrayOf(G.oneOfType([G.number,G.string]).isRequired),G.number,G.string]),rowSpacingType:G.oneOf(["border","margin"]),rowThreshold:G.number,scrollbarSize:G.number,showCellVerticalBorder:G.bool,showColumnVerticalBorder:G.bool,slotProps:G.object,slots:G.object,sortingMode:G.oneOf(["client","server"]),sortingOrder:G.arrayOf(G.oneOf(["asc","desc"])),sortModel:G.arrayOf(G.shape({field:G.string.isRequired,sort:G.oneOf(["asc","desc"])})),sx:G.oneOfType([G.arrayOf(G.oneOfType([G.func,G.object,G.bool])),G.func,G.object]),unstable_ignoreValueFormatterDuringExport:G.oneOfType([G.shape({clipboardExport:G.bool,csvExport:G.bool}),G.bool])};function Jje(){const e=iu(),t=Wr({queryKey:["users"],queryFn:()=>gn.getUsers().then(r=>r.data)}),n=ql({mutationFn:r=>gn.deleteUser(r),onSuccess:()=>{e.invalidateQueries({queryKey:["users"]})}});return{users:t.data||[],isLoading:t.isLoading,error:t.error,deleteUser:n.mutate,isDeleting:n.isPending}}function eDe(){const{users:e,isLoading:t,error:n,deleteUser:r,isDeleting:o}=Jje(),[i,a]=v.useState(""),[s,l]=v.useState(!1),[u,c]=v.useState(null),d=e.filter(m=>m.email.toLowerCase().includes(i.toLowerCase())||m.id.toLowerCase().includes(i.toLowerCase())),f=m=>{c(m),l(!0)},h=()=>{u&&(r(u.id),l(!1),c(null))},p=[{field:"email",headerName:"Email",flex:1,renderCell:m=>g.jsxs(Se,{sx:{display:"flex",alignItems:"center",gap:1},children:[g.jsx(qte,{color:"action",fontSize:"small"}),g.jsx(he,{variant:"body2",children:m.value})]})},{field:"id",headerName:"User ID",width:220},{field:"created_at",headerName:"Created At",width:200,valueGetter:m=>new Date(m.row.created_at).toLocaleString()},{field:"actions",headerName:"Actions",width:120,renderCell:m=>g.jsx(pr,{size:"small",color:"error",onClick:()=>f(m.row),children:g.jsx(QF,{fontSize:"small"})})}];return g.jsxs(Se,{children:[g.jsxs(Se,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:3},children:[g.jsxs(Se,{children:[g.jsx(he,{variant:"h4",gutterBottom:!0,children:"User Management"}),g.jsx(he,{variant:"body2",color:"text.secondary",children:"Manage your project's authenticated users"})]}),g.jsx(nn,{variant:"outlined",startIcon:g.jsx(Yte,{}),onClick:()=>window.location.reload(),children:"Refresh"})]}),n&&g.jsx(xd,{severity:"error",sx:{mb:3},children:"Failed to fetch users. Please make sure the backend is running."}),g.jsxs(Ft,{sx:{p:2,mb:3,display:"flex",alignItems:"center",gap:2},children:[g.jsx(li,{size:"small",placeholder:"Search users by email or ID...",fullWidth:!0,value:i,onChange:m=>a(m.target.value),InputProps:{startAdornment:g.jsx(av,{position:"start",children:g.jsx(eN,{fontSize:"small"})})}}),g.jsx(pn,{label:`${d.length} Users`,color:"primary",variant:"outlined"})]}),g.jsx(Ft,{sx:{height:600,width:"100%"},children:t?g.jsx(Se,{sx:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%"},children:g.jsx(co,{})}):g.jsx(N0,{rows:d,columns:p,getRowId:m=>m.id,pageSizeOptions:[10,25,50],initialState:{pagination:{paginationModel:{pageSize:10}}},disableRowSelectionOnClick:!0,sx:{"& .MuiDataGrid-cell:focus":{outline:"none"}}})}),g.jsxs(Mb,{open:s,onClose:()=>l(!1),children:[g.jsx(Rb,{children:"Delete User?"}),g.jsx(Ab,{children:g.jsxs(he,{children:["Are you sure you want to delete user ",g.jsx("strong",{children:u==null?void 0:u.email}),"? This action cannot be undone and will revoke all access for this user."]})}),g.jsxs(_b,{children:[g.jsx(nn,{onClick:()=>l(!1),children:"Cancel"}),g.jsx(nn,{onClick:h,color:"error",variant:"contained",disabled:o,children:o?"Deleting...":"Delete User"})]})]})]})}function tDe(){const e=iu(),t=Wr({queryKey:["buckets"],queryFn:()=>gn.getBuckets().then(o=>o.data)}),n=o=>Wr({queryKey:["objects",o],queryFn:()=>o?gn.getBucketObjects(o).then(i=>i.data):Promise.resolve([]),enabled:!!o}),r=ql({mutationFn:({bucketId:o,name:i})=>gn.deleteObject(o,i),onSuccess:(o,i)=>{e.invalidateQueries({queryKey:["objects",i.bucketId]})}});return{buckets:t.data||[],isLoadingBuckets:t.isLoading,useObjects:n,deleteObject:r.mutate,isDeletingObject:r.isPending}}function nDe(){var c;const{buckets:e,isLoadingBuckets:t,useObjects:n,deleteObject:r,isDeletingObject:o}=tDe(),[i,a]=v.useState(null),{data:s,isLoading:l}=n(i),u=[{field:"name",headerName:"Name",flex:1,renderCell:d=>g.jsxs(Se,{sx:{display:"flex",alignItems:"center",gap:1},children:[g.jsx(ZF,{color:"primary",fontSize:"small"}),g.jsx(he,{variant:"body2",children:d.value})]})},{field:"size",headerName:"Size",width:120,valueGetter:d=>{var y;const f=((y=d.row.metadata)==null?void 0:y.size)||0;if(f===0)return"0 B";const h=1024,p=["B","KB","MB","GB"],m=Math.floor(Math.log(f)/Math.log(h));return parseFloat((f/Math.pow(h,m)).toFixed(2))+" "+p[m]}},{field:"mimetype",headerName:"Type",width:150,valueGetter:d=>{var f;return((f=d.row.metadata)==null?void 0:f.mimetype)||"unknown"}},{field:"actions",headerName:"Actions",width:100,renderCell:d=>g.jsx(pr,{size:"small",color:"error",onClick:()=>i&&r({bucketId:i,name:d.row.name}),disabled:o,children:g.jsx(QF,{fontSize:"small"})})}];return g.jsxs(Se,{children:[g.jsxs(Se,{sx:{mb:3},children:[g.jsx(he,{variant:"h4",gutterBottom:!0,children:"Storage Browser"}),g.jsx(he,{variant:"body2",color:"text.secondary",children:"Manage your S3-compatible object storage buckets and files"})]}),g.jsxs(ot,{container:!0,spacing:3,children:[g.jsx(ot,{item:!0,xs:12,md:3,children:g.jsxs(Ft,{sx:{height:600,overflow:"auto"},children:[g.jsx(Se,{sx:{p:2,bgcolor:"background.paper",position:"sticky",top:0,zIndex:1},children:g.jsx(he,{variant:"h6",children:"Buckets"})}),g.jsx(Gr,{}),t?g.jsx(Se,{sx:{p:3,textAlign:"center"},children:g.jsx(co,{size:24})}):g.jsxs(Sd,{disablePadding:!0,children:[e.map(d=>g.jsx(Rh,{disablePadding:!0,children:g.jsxs(bO,{selected:i===d.id,onClick:()=>a(d.id),children:[g.jsx(Vi,{children:g.jsx(F1,{color:"secondary"})}),g.jsx(Wi,{primary:d.id,secondary:d.public?"Public":"Private"}),d.public?g.jsx(Xte,{fontSize:"inherit",color:"action"}):g.jsx(Wte,{fontSize:"inherit",color:"action"})]})},d.id)),e.length===0&&g.jsx(Se,{sx:{p:3,textAlign:"center"},children:g.jsx(he,{variant:"body2",color:"text.secondary",children:"No buckets found"})})]})]})}),g.jsx(ot,{item:!0,xs:12,md:9,children:g.jsx(Ft,{sx:{height:600,display:"flex",flexDirection:"column"},children:i?g.jsxs(Se,{sx:{height:"100%",display:"flex",flexDirection:"column"},children:[g.jsxs(Se,{sx:{p:2,display:"flex",justifyContent:"space-between",alignItems:"center"},children:[g.jsxs(Se,{sx:{display:"flex",alignItems:"center",gap:1},children:[g.jsx(he,{variant:"h6",children:i}),g.jsx(pn,{label:(c=e.find(d=>d.id===i))!=null&&c.public?"Public":"Private",size:"small",variant:"outlined"})]}),g.jsx(Button,{variant:"contained",size:"small",children:"Upload File"})]}),g.jsx(Gr,{}),g.jsx(Se,{sx:{flexGrow:1},children:l?g.jsx(Se,{sx:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%"},children:g.jsx(co,{})}):g.jsx(N0,{rows:s||[],columns:u,getRowId:d=>d.name,pageSizeOptions:[10,25,50],initialState:{pagination:{paginationModel:{pageSize:10}}},disableRowSelectionOnClick:!0})})]}):g.jsxs(Se,{sx:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",height:"100%",gap:2},children:[g.jsx(F1,{sx:{fontSize:64,color:"text.disabled"}}),g.jsx(he,{color:"text.secondary",children:"Select a bucket to view files"})]})})})]})]})}function rDe(){const e=Wr({queryKey:["tables"],queryFn:()=>gn.getTables().then(n=>n.data)}),t=(n,r)=>Wr({queryKey:["tableData",n,r],queryFn:()=>n&&r?gn.getTableData(n,r).then(o=>o.data):Promise.resolve([]),enabled:!!(n&&r)});return{tables:e.data||[],isLoadingTables:e.isLoading,useTableData:t}}function oDe(){const{tables:e,isLoadingTables:t,useTableData:n}=rDe(),[r,o]=v.useState(null),{data:i,isLoading:a}=n((r==null?void 0:r.schema)||null,(r==null?void 0:r.name)||null),s=i&&i.length>0?Object.keys(i[0]).map(l=>({field:l,headerName:l.charAt(0).toUpperCase()+l.slice(1).replace(/_/g," "),flex:1,minWidth:150})):[];return g.jsxs(Se,{children:[g.jsxs(Se,{sx:{mb:3},children:[g.jsx(he,{variant:"h4",gutterBottom:!0,children:"Database Browser"}),g.jsx(he,{variant:"body2",color:"text.secondary",children:"Explore and manage your project's database tables and data"})]}),g.jsxs(ot,{container:!0,spacing:3,children:[g.jsx(ot,{item:!0,xs:12,md:3,children:g.jsxs(Ft,{sx:{height:600,overflow:"auto"},children:[g.jsx(Se,{sx:{p:2,bgcolor:"background.paper",position:"sticky",top:0,zIndex:1},children:g.jsx(he,{variant:"h6",children:"Tables"})}),g.jsx(Gr,{}),t?g.jsx(Se,{sx:{p:3,textAlign:"center"},children:g.jsx(co,{size:24})}):g.jsx(Sd,{disablePadding:!0,children:e.map(l=>g.jsx(Rh,{disablePadding:!0,children:g.jsxs(bO,{selected:(r==null?void 0:r.name)===l.name&&(r==null?void 0:r.schema)===l.schema,onClick:()=>o(l),children:[g.jsx(Vi,{children:g.jsx(B1,{color:"primary"})}),g.jsx(Wi,{primary:l.name,secondary:l.schema})]})},`${l.schema}.${l.name}`))})]})}),g.jsx(ot,{item:!0,xs:12,md:9,children:g.jsx(Ft,{sx:{height:600,display:"flex",flexDirection:"column"},children:r?g.jsxs(Se,{sx:{height:"100%",display:"flex",flexDirection:"column"},children:[g.jsxs(Se,{sx:{p:2,display:"flex",alignItems:"center",gap:1},children:[g.jsx(nN,{color:"action",fontSize:"small"}),g.jsxs(he,{variant:"h6",children:[r.schema,"."]}),g.jsx(he,{variant:"h6",color:"primary",children:r.name})]}),g.jsx(Gr,{}),g.jsx(Se,{sx:{flexGrow:1},children:a?g.jsx(Se,{sx:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%"},children:g.jsx(co,{})}):g.jsx(N0,{rows:i||[],columns:s,getRowId:l=>l.id||l.uuid||JSON.stringify(l),pageSizeOptions:[10,25,50],initialState:{pagination:{paginationModel:{pageSize:10}}},disableRowSelectionOnClick:!0})})]}):g.jsxs(Se,{sx:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",height:"100%",gap:2},children:[g.jsx(B1,{sx:{fontSize:64,color:"text.disabled"}}),g.jsx(he,{color:"text.secondary",children:"Select a table to view data"})]})})})]})]})}function iDe(){const e=iu(),t=Wr({queryKey:["functions"],queryFn:()=>gn.getFunctions().then(r=>r.data)}),n=ql({mutationFn:r=>gn.deployFunction(r),onSuccess:()=>{e.invalidateQueries({queryKey:["functions"]})}});return{functions:t.data||[],isLoadingFunctions:t.isLoading,deployFunction:n.mutate,isDeploying:n.isPending}}function aDe(){const{functions:e,isLoadingFunctions:t,deployFunction:n,isDeploying:r}=iDe(),[o,i]=v.useState(!1),[a,s]=v.useState({name:"",runtime:"deno",code:`export default async (req) => { return new Response("Hello from MadBase Edge!"); };`}),l=()=>{n({name:a.name,runtime:a.runtime,code_base64:btoa(a.code)}),i(!1)};return g.jsxs(Se,{children:[g.jsxs(Se,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:3},children:[g.jsxs(Se,{children:[g.jsx(he,{variant:"h4",gutterBottom:!0,children:"Edge Functions"}),g.jsx(he,{variant:"body2",color:"text.secondary",children:"Deploy and manage serverless TypeScript functions"})]}),g.jsx(nn,{variant:"contained",startIcon:g.jsx(XF,{}),onClick:()=>i(!0),children:"New Function"})]}),t?g.jsx(Se,{sx:{display:"flex",justifyContent:"center",p:5},children:g.jsx(co,{})}):g.jsxs(ot,{container:!0,spacing:3,children:[e.map(u=>g.jsx(ot,{item:!0,xs:12,sm:6,md:4,children:g.jsxs(ms,{variant:"outlined",children:[g.jsxs(gs,{children:[g.jsxs(Se,{sx:{display:"flex",justifyContent:"space-between",mb:2},children:[g.jsxs(Se,{sx:{display:"flex",alignItems:"center",gap:1},children:[g.jsx(N1,{color:"primary"}),g.jsx(he,{variant:"h6",children:u.name})]}),g.jsx(pn,{label:u.runtime,size:"small",variant:"outlined"})]}),g.jsxs(he,{variant:"body2",color:"text.secondary",sx:{mb:2},children:["Endpoint: /functions/v1/",u.name]}),g.jsxs(Se,{sx:{display:"flex",gap:1},children:[g.jsx(pn,{label:"v1.0.0",size:"small"}),g.jsx(pn,{label:"Active",size:"small",color:"success"})]})]}),g.jsxs(TF,{children:[g.jsx(nn,{size:"small",startIcon:g.jsx(Fte,{}),children:"Edit Code"}),g.jsx(nn,{size:"small",startIcon:g.jsx(tN,{}),children:"Settings"})]})]})},u.name)),e.length===0&&g.jsx(ot,{item:!0,xs:12,children:g.jsxs(Ft,{sx:{p:5,textAlign:"center",border:"2px dashed",borderColor:"divider",bgcolor:"transparent"},children:[g.jsx(N1,{sx:{fontSize:48,color:"text.disabled",mb:2}}),g.jsx(he,{color:"text.secondary",children:"No functions deployed yet"}),g.jsx(nn,{variant:"outlined",sx:{mt:2},onClick:()=>i(!0),children:"Create your first function"})]})})]}),g.jsxs(Mb,{open:o,onClose:()=>i(!1),maxWidth:"md",fullWidth:!0,children:[g.jsx(Rb,{children:"Deploy New Function"}),g.jsx(Ab,{children:g.jsxs(Se,{sx:{display:"flex",flexDirection:"column",gap:2,mt:2},children:[g.jsx(li,{label:"Function Name",fullWidth:!0,value:a.name,onChange:u=>s({...a,name:u.target.value})}),g.jsx(li,{label:"TypeScript Code",multiline:!0,rows:10,fullWidth:!0,value:a.code,onChange:u=>s({...a,code:u.target.value}),sx:{"& textarea":{fontFamily:"monospace"}}})]})}),g.jsxs(_b,{children:[g.jsx(nn,{onClick:()=>i(!1),children:"Cancel"}),g.jsx(nn,{variant:"contained",onClick:l,disabled:r||!a.name,children:r?"Deploying...":"Deploy Function"})]})]})]})}function sDe(){const[e,t]=v.useState([]),[n,r]=v.useState(!1),o=v.useRef(null);return v.useEffect(()=>{const s=window.location.protocol==="https:"?"wss:":"ws:",l=window.location.host,u=`${s}//${l}/realtime/v1`,c=()=>{o.current=new WebSocket(u),o.current.onopen=()=>{r(!0),d({type:"SYS",payload:"Connected to Realtime Gateway"})},o.current.onclose=()=>{r(!1),d({type:"SYS",payload:"Disconnected from Realtime Gateway. Retrying..."}),setTimeout(c,3e3)},o.current.onmessage=f=>{try{const h=JSON.parse(f.data);d({type:"IN",payload:h})}catch{d({type:"IN",payload:f.data})}}},d=f=>{t(h=>[{...f,id:Math.random().toString(36).substr(2,9),timestamp:new Date().toISOString()},...h.slice(0,99)])};return c(),()=>{o.current&&o.current.close()}},[]),{messages:e,isConnected:n,sendMessage:s=>{o.current&&n&&(o.current.send(JSON.stringify(s)),t(l=>[{id:Math.random().toString(36).substr(2,9),timestamp:new Date().toISOString(),type:"OUT",payload:s},...l]))},clearMessages:()=>t([])}}function lDe(){const{messages:e,isConnected:t,clearMessages:n}=sDe();return g.jsxs(Se,{sx:{height:"100%",display:"flex",flexDirection:"column"},children:[g.jsxs(Se,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:3},children:[g.jsxs(Se,{children:[g.jsx(he,{variant:"h4",gutterBottom:!0,children:"Realtime Console"}),g.jsxs(Se,{sx:{display:"flex",alignItems:"center",gap:1},children:[g.jsx(Dte,{sx:{fontSize:12,color:t?"success.main":"error.main"}}),g.jsx(he,{variant:"body2",color:"text.secondary",children:t?"Connected":"Disconnected"})]})]}),g.jsx(jb,{title:"Clear Console",children:g.jsx(pr,{onClick:n,color:"inherit",children:g.jsx(Bte,{})})})]}),g.jsx(Ft,{sx:{flexGrow:1,bgcolor:"#0d1117",color:"#e6edf3",fontFamily:"monospace",overflow:"auto",p:0,border:"1px solid #30363d"},children:g.jsxs(Sd,{disablePadding:!0,children:[e.map(r=>g.jsxs(Rh,{divider:!0,sx:{flexDirection:"column",alignItems:"flex-start",py:1,px:2,borderBottom:"1px solid #21262d","&:hover":{bgcolor:"#161b22"}},children:[g.jsxs(Se,{sx:{display:"flex",alignItems:"center",gap:1,mb:.5,width:"100%"},children:[g.jsxs(he,{variant:"caption",sx:{color:"#8b949e",minWidth:80},children:["[",new Date(r.timestamp).toLocaleTimeString(),"]"]}),g.jsx(pn,{label:r.type,size:"small",sx:{height:18,fontSize:"0.65rem",fontWeight:"bold",bgcolor:r.type==="IN"?"#23863633":r.type==="OUT"?"#1f6feb33":"#8b949e33",color:r.type==="IN"?"#3fb950":r.type==="OUT"?"#58a6ff":"#8b949e",border:"1px solid currentColor"}})]}),g.jsx(Se,{sx:{width:"100%",overflowX:"auto"},children:g.jsx("pre",{style:{margin:0,fontSize:"0.85rem"},children:typeof r.payload=="object"?JSON.stringify(r.payload,null,2):String(r.payload)})})]},r.id)),e.length===0&&g.jsxs(Se,{sx:{p:5,textAlign:"center",color:"#8b949e"},children:[g.jsx(YF,{sx:{fontSize:48,mb:2,opacity:.3}}),g.jsx(he,{variant:"body2",children:"Waiting for events..."})]})]})})]})}function uDe(e="",t=50){const n=Wr({queryKey:["logs",e,t],queryFn:()=>gn.getLogs({query:e,limit:t}).then(r=>r.data),refetchInterval:1e4,enabled:!0});return{logs:n.data||[],isLoading:n.isLoading,isRefetching:n.isRefetching,refetch:n.refetch}}function cDe(){const[e,t]=v.useState(""),{logs:n,isLoading:r,isRefetching:o}=uDe(e);return g.jsxs(Se,{sx:{height:"100%",display:"flex",flexDirection:"column"},children:[g.jsxs(Se,{sx:{mb:3,display:"flex",justifyContent:"space-between",alignItems:"flex-end"},children:[g.jsxs(Se,{children:[g.jsx(he,{variant:"h4",gutterBottom:!0,children:"Logs Viewer"}),g.jsx(he,{variant:"body2",color:"text.secondary",children:"Query and analyze system logs from Loki"})]}),o&&g.jsx(co,{size:20})]}),g.jsx(Ft,{sx:{p:2,mb:3},children:g.jsx(li,{fullWidth:!0,size:"small",placeholder:'Search logs (e.g. {pillar="worker"} |= "error")...',value:e,onChange:i=>t(i.target.value),InputProps:{startAdornment:g.jsx(av,{position:"start",children:g.jsx(eN,{fontSize:"small"})}),endAdornment:g.jsx(av,{position:"end",children:g.jsx(Ute,{fontSize:"small",color:"action",cursor:"pointer"})})}})}),g.jsx(KF,{component:Ft,sx:{flexGrow:1,bgcolor:"#0d1117"},children:g.jsxs(WF,{stickyHeader:!0,size:"small",children:[g.jsx(qF,{children:g.jsxs(Wu,{children:[g.jsx(In,{sx:{bgcolor:"#161b22",color:"#8b949e",borderBottom:"1px solid #30363d",width:200},children:"Timestamp"}),g.jsx(In,{sx:{bgcolor:"#161b22",color:"#8b949e",borderBottom:"1px solid #30363d",width:120},children:"Level"}),g.jsx(In,{sx:{bgcolor:"#161b22",color:"#8b949e",borderBottom:"1px solid #30363d"},children:"Message"})]})}),g.jsxs(GF,{children:[n.map((i,a)=>g.jsxs(Wu,{sx:{"&:hover":{bgcolor:"#161b22"}},children:[g.jsx(In,{sx:{color:"#8b949e",borderBottom:"1px solid #21262d",fontFamily:"monospace"},children:i.timestamp}),g.jsx(In,{sx:{borderBottom:"1px solid #21262d"},children:g.jsx(pn,{label:i.level||"INFO",size:"small",sx:{height:20,fontSize:"0.7rem",bgcolor:i.level==="ERROR"?"#f8514933":i.level==="WARN"?"#d2992233":"#23863633",color:i.level==="ERROR"?"#f85149":i.level==="WARN"?"#d29922":"#3fb950",border:"1px solid currentColor"}})}),g.jsx(In,{sx:{color:"#e6edf3",borderBottom:"1px solid #21262d",fontFamily:"monospace"},children:i.message})]},a)),n.length===0&&!r&&g.jsx(Wu,{children:g.jsx(In,{colSpan:3,sx:{textAlign:"center",py:5,color:"#8b949e",borderBottom:"none"},children:"No logs found for the current query"})}),r&&g.jsx(Wu,{children:g.jsx(In,{colSpan:3,sx:{textAlign:"center",py:5,borderBottom:"none"},children:g.jsx(co,{size:30})})})]})]})})]})}function dDe(){const[e,t]=v.useState(!1),[n,r]=v.useState({name:"",template:"",provider:"hetzner",plan:"cx11",region:"fsn1"}),o=iu(),{data:i,isLoading:a}=Wr({queryKey:["servers"],queryFn:()=>gn.getServers().then(c=>c.data)}),s=ql({mutationFn:c=>gn.addServer(c),onSuccess:()=>{o.invalidateQueries({queryKey:["servers"]}),t(!1)}}),l=ql({mutationFn:c=>gn.deleteServer(c),onSuccess:()=>{o.invalidateQueries({queryKey:["servers"]})}}),u=[{field:"name",headerName:"Name",width:200},{field:"template",headerName:"Template",width:180},{field:"provider",headerName:"Provider",width:130},{field:"ip_address",headerName:"IP Address",width:150},{field:"status",headerName:"Status",width:140,renderCell:c=>{const d=c.value==="active"?"success":c.value==="error"?"error":"default";return g.jsx(pn,{label:c.value,color:d,size:"small"})}},{field:"created_at",headerName:"Created",width:180},{field:"actions",headerName:"Actions",width:120,renderCell:c=>g.jsx(nn,{size:"small",color:"error",onClick:()=>l.mutate(c.row.id),disabled:c.row.status==="draining",children:"Remove"})}];return g.jsxs(Se,{children:[g.jsxs(Se,{sx:{display:"flex",justifyContent:"space-between",mb:3},children:[g.jsxs(Se,{children:[g.jsx(he,{variant:"h4",gutterBottom:!0,children:"Servers"}),g.jsx(he,{variant:"body2",color:"text.secondary",children:"Manage your infrastructure servers"})]}),g.jsx(nn,{variant:"contained",startIcon:g.jsx(XF,{}),onClick:()=>t(!0),children:"Add Server"})]}),g.jsx(Ft,{sx:{height:600,width:"100%"},children:a?g.jsx(Se,{sx:{display:"flex",justifyContent:"center",p:3},children:g.jsx(co,{})}):g.jsx(N0,{rows:(i==null?void 0:i.servers)||[],columns:u,getRowId:c=>c.id,pageSizeOptions:[10,25,50],initialState:{pagination:{paginationModel:{pageSize:10}}}})}),g.jsxs(Mb,{open:e,onClose:()=>t(!1),maxWidth:"sm",fullWidth:!0,children:[g.jsx(Rb,{children:"Add New Server"}),g.jsx(Ab,{children:g.jsxs(Se,{sx:{display:"flex",flexDirection:"column",gap:2,mt:2},children:[g.jsx(li,{label:"Server Name",fullWidth:!0,value:n.name,onChange:c=>r({...n,name:c.target.value})}),g.jsxs(ga,{fullWidth:!0,children:[g.jsx(va,{children:"Template"}),g.jsxs(ci,{value:n.template,label:"Template",onChange:c=>r({...n,template:c.target.value}),children:[g.jsx(vt,{value:"worker-node",children:"Worker Node"}),g.jsx(vt,{value:"db-node",children:"Database Node"}),g.jsx(vt,{value:"control-plane-node",children:"Control Plane Node"}),g.jsx(vt,{value:"monitoring-node",children:"Monitoring Node"}),g.jsx(vt,{value:"worker-db-combo",children:"Worker + Database Combo"})]})]}),g.jsxs(ga,{fullWidth:!0,children:[g.jsx(va,{children:"Provider"}),g.jsxs(ci,{value:n.provider,label:"Provider",onChange:c=>r({...n,provider:c.target.value}),children:[g.jsx(vt,{value:"hetzner",children:"Hetzner"}),g.jsx(vt,{value:"generic",children:"Generic"})]})]}),g.jsxs(ga,{fullWidth:!0,children:[g.jsx(va,{children:"Plan"}),g.jsxs(ci,{value:n.plan,label:"Plan",onChange:c=>r({...n,plan:c.target.value}),children:[g.jsx(vt,{value:"cx11",children:"CX11 (€3.69/mo)"}),g.jsx(vt,{value:"cx21",children:"CX21 (€6.94/mo)"}),g.jsx(vt,{value:"cx31",children:"CX31 (€14.21/mo)"}),g.jsx(vt,{value:"cx41",children:"CX41 (€25.60/mo)"})]})]}),g.jsxs(ga,{fullWidth:!0,children:[g.jsx(va,{children:"Region"}),g.jsxs(ci,{value:n.region,label:"Region",onChange:c=>r({...n,region:c.target.value}),children:[g.jsx(vt,{value:"fsn1",children:"Falkenstein (Germany)"}),g.jsx(vt,{value:"nbg1",children:"Nuremberg (Germany)"}),g.jsx(vt,{value:"hel1",children:"Helsinki (Finland)"}),g.jsx(vt,{value:"ash",children:"Ashburn (USA)"})]})]})]})}),g.jsxs(_b,{children:[g.jsx(nn,{onClick:()=>t(!1),children:"Cancel"}),g.jsx(nn,{variant:"contained",onClick:()=>s.mutate(n),disabled:s.isPending,children:s.isPending?"Creating...":"Create Server"})]})]})]})}function fDe(){var n;const{data:e,isLoading:t}=Wr({queryKey:["templates"],queryFn:()=>gn.getTemplates().then(r=>r.data)});return t?g.jsx(he,{children:"Loading templates..."}):g.jsxs(Se,{children:[g.jsx(he,{variant:"h4",gutterBottom:!0,children:"Templates"}),g.jsx(he,{variant:"body2",color:"text.secondary",gutterBottom:!0,children:"Pre-configured server templates for quick deployment"}),g.jsx(ot,{container:!0,spacing:3,sx:{mt:2},children:(n=e==null?void 0:e.templates)==null?void 0:n.map(r=>{var o;return g.jsx(ot,{item:!0,xs:12,md:6,lg:4,children:g.jsxs(ms,{sx:{height:"100%",display:"flex",flexDirection:"column"},children:[g.jsxs(gs,{sx:{flexGrow:1},children:[g.jsxs(Se,{sx:{display:"flex",justifyContent:"space-between",mb:1},children:[g.jsx(he,{variant:"h6",children:r.name}),g.jsx(pn,{label:r.id,size:"small",variant:"outlined"})]}),g.jsx(he,{variant:"body2",color:"text.secondary",paragraph:!0,children:r.description}),g.jsx(Gr,{sx:{my:1}}),g.jsxs(he,{variant:"body2",color:"text.secondary",children:[g.jsx("strong",{children:"Min Plan:"})," ",r.min_hetzner_plan]}),g.jsxs(he,{variant:"body2",color:"text.secondary",children:[g.jsx("strong",{children:"Cost:"})," €",r.estimated_monthly_cost,"/mo"]}),g.jsxs(he,{variant:"body2",color:"text.secondary",children:[g.jsx("strong",{children:"HA Support:"})," ",r.requirements.supports_ha?"✅ Yes":"❌ No"]}),g.jsxs(he,{variant:"body2",color:"text.secondary",children:[g.jsx("strong",{children:"Services:"})," ",((o=r.services)==null?void 0:o.length)||0]})]}),g.jsxs(TF,{children:[g.jsx(nn,{size:"small",variant:"contained",children:"Deploy"}),g.jsx(nn,{size:"small",children:"View Details"})]})]})},r.id)})})]})}function pDe(){const{data:e,isLoading:t}=Wr({queryKey:["providers"],queryFn:()=>gn.getProviders().then(n=>n.data)});return t?g.jsx(he,{children:"Loading providers..."}):g.jsxs(Se,{children:[g.jsx(he,{variant:"h4",gutterBottom:!0,children:"VPS Providers"}),g.jsx(he,{variant:"body2",color:"text.secondary",gutterBottom:!0,children:"Supported VPS providers with auto-scaling capabilities"}),g.jsx(ot,{container:!0,spacing:3,sx:{mt:2},children:e==null?void 0:e.map(n=>{var r;return g.jsx(ot,{item:!0,xs:12,md:6,children:g.jsx(ms,{children:g.jsxs(gs,{children:[g.jsxs(Se,{sx:{display:"flex",justifyContent:"space-between",mb:2},children:[g.jsx(he,{variant:"h6",children:n.name}),g.jsx(pn,{label:n.supported?"Supported":"Planned",color:n.supported?"success":"default",size:"small"})]}),g.jsxs(he,{variant:"body2",color:"text.secondary",paragraph:!0,children:[n.provider==="hetzner"&&"Full auto-provisioning and scaling support",n.provider==="generic"&&"Manual provisioning with full management"]}),g.jsx(he,{variant:"subtitle2",gutterBottom:!0,children:"Available Plans"}),g.jsx(KF,{size:"small",children:g.jsxs(WF,{children:[g.jsx(qF,{children:g.jsxs(Wu,{children:[g.jsx(In,{children:"Plan"}),g.jsx(In,{children:"CPU"}),g.jsx(In,{children:"RAM"}),g.jsx(In,{children:"Cost/Mo"})]})}),g.jsx(GF,{children:(r=n.plans)==null?void 0:r.slice(0,4).map(o=>g.jsxs(Wu,{children:[g.jsx(In,{children:o.name}),g.jsxs(In,{children:[o.cpu_cores," vCPU"]}),g.jsxs(In,{children:[o.memory_gb,"GB"]}),g.jsxs(In,{children:["€",o.monthly_cost,"/mo"]})]},o.id))})]})}),g.jsxs(he,{variant:"caption",color:"text.secondary",sx:{mt:2,display:"block"},children:[n.regions," regions available"]})]})})},n.provider)})})]})}function hDe({open:e,onClose:t,onConfirm:n,plan:r,loading:o}){const i=mr();return r?g.jsxs(Mb,{open:e,onClose:t,maxWidth:"sm",fullWidth:!0,PaperProps:{sx:{bgcolor:$t(i.palette.background.paper,.95),backdropFilter:"blur(10px)",backgroundImage:"none",border:`1px solid ${$t(i.palette.divider,.1)}`}},children:[g.jsxs(Rb,{sx:{pb:1},children:[g.jsx(he,{variant:"h5",sx:{fontWeight:"bold"},children:"Review Scaling Plan"}),g.jsx(he,{variant:"body2",color:"text.secondary",children:"Confirm the infrastructure changes before execution."})]}),g.jsxs(Ab,{children:[g.jsx(Se,{sx:{mb:3,p:2,bgcolor:$t(i.palette.primary.main,.05),borderRadius:2,border:`1px solid ${$t(i.palette.primary.main,.2)}`},children:g.jsxs(ot,{container:!0,spacing:2,children:[g.jsx(ot,{item:!0,xs:6,children:g.jsxs(Se,{sx:{display:"flex",alignItems:"center",gap:1},children:[g.jsx(Rte,{color:"primary",fontSize:"small"}),g.jsxs(Se,{children:[g.jsx(he,{variant:"caption",color:"text.secondary",uppercase:!0,children:"Monthly Impact"}),g.jsxs(he,{variant:"h6",sx:{color:i.palette.primary.main,fontWeight:"bold",lineHeight:1},children:["+€",r.total_cost_monthly.toFixed(2)]})]})]})}),g.jsx(ot,{item:!0,xs:6,children:g.jsxs(Se,{sx:{display:"flex",alignItems:"center",gap:1},children:[g.jsx(Tte,{color:"secondary",fontSize:"small"}),g.jsxs(Se,{children:[g.jsx(he,{variant:"caption",color:"text.secondary",uppercase:!0,children:"Estimated Time"}),g.jsxs(he,{variant:"h6",sx:{fontWeight:"bold",lineHeight:1},children:["~",r.estimated_time_minutes," min"]})]})]})})]})}),g.jsx(he,{variant:"subtitle2",gutterBottom:!0,sx:{fontWeight:"bold"},children:"Steps to execute:"}),g.jsx(Sd,{dense:!0,disablePadding:!0,children:r.scaling_plan.map((a,s)=>g.jsxs(Rh,{sx:{px:0,py:1},children:[g.jsx(Vi,{sx:{minWidth:40},children:a.action.toLowerCase().includes("add")?g.jsx(Mte,{color:"success"}):g.jsx(Qte,{color:"error"})}),g.jsx(Wi,{primary:`${a.action}: ${a.count}x ${a.template}`,secondary:`${a.provider} ${a.plan} | €${a.total_cost.toFixed(2)}/mo total`,primaryTypographyProps:{variant:"body2",fontWeight:500},secondaryTypographyProps:{variant:"caption"}})]},s))}),g.jsx(xd,{severity:"warning",sx:{mt:3,bgcolor:$t(i.palette.warning.main,.1),border:`1px solid ${$t(i.palette.warning.main,.2)}`},children:"New nodes will be immediately provisioned and linked to the gateway. Resource allocation may take up to 2 minutes per node."})]}),g.jsxs(_b,{sx:{p:2.5,pt:0},children:[g.jsx(nn,{onClick:t,disabled:o,sx:{color:"text.secondary"},children:"Back to Config"}),g.jsx(nn,{variant:"contained",onClick:n,disabled:o,sx:{px:4,py:1,fontWeight:"bold",boxShadow:`0 8px 16px ${$t(i.palette.primary.main,.3)}`},children:o?g.jsx(co,{size:24,color:"inherit"}):"Confirm & Execute"})]})]}):null}function mDe(){var x;const e=mr(),[t,n]=v.useState("hetzner"),[r,o]=v.useState("cx11"),[i,a]=v.useState("fsn1"),[s,l]=v.useState(3),[u,c]=v.useState(3),[d,f]=v.useState(!1),h=iu(),{data:p}=Wr({queryKey:["providers"],queryFn:()=>gn.getProviders().then(w=>w.data)}),m=ql({mutationFn:()=>gn.createScalingPlan({provider:t,plan:r,region:i,target_worker_count:s,target_db_count:u,min_ha_nodes:!0}),onSuccess:()=>f(!0)}),y=ql({mutationFn:w=>gn.executeScalingPlan(w),onSuccess:()=>{h.invalidateQueries({queryKey:["servers","clusterHealth","pillars"]}),f(!1)}}),b=(x=m.data)==null?void 0:x.data;return g.jsxs(Se,{sx:{maxWidth:1200,mx:"auto"},children:[g.jsxs(Se,{sx:{mb:4},children:[g.jsx(he,{variant:"h3",sx:{fontWeight:900,letterSpacing:-1,mb:1},children:"Cluster Scaling"}),g.jsx(he,{variant:"body1",color:"text.secondary",children:"Fine-tune your infrastructure capacity with zero-downtime scaling."})]}),g.jsxs(ot,{container:!0,spacing:4,children:[g.jsx(ot,{item:!0,xs:12,md:7,children:g.jsxs(Ft,{sx:{p:4,borderRadius:3,bgcolor:$t(e.palette.background.paper,.6),backdropFilter:"blur(10px)",border:`1px solid ${$t(e.palette.divider,.1)}`},children:[g.jsxs(Se,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",mb:3},children:[g.jsxs(he,{variant:"h6",sx:{fontWeight:"bold",display:"flex",alignItems:"center",gap:1},children:[g.jsx(PO,{color:"primary"})," Capacity Configuration"]}),g.jsx(jb,{title:"MadBase automatically optimizes node placement for High Availability",children:g.jsx(pr,{size:"small",children:g.jsx(Vte,{fontSize:"inherit"})})})]}),g.jsxs(ot,{container:!0,spacing:3,children:[g.jsx(ot,{item:!0,xs:12,sm:6,children:g.jsxs(ga,{fullWidth:!0,size:"small",children:[g.jsx(va,{children:"Provider"}),g.jsxs(ci,{value:t,label:"Provider",onChange:w=>n(w.target.value),children:[g.jsx(vt,{value:"hetzner",children:"Hetzner Cloud"}),g.jsx(vt,{value:"generic",children:"Bare Metal / Generic"})]})]})}),g.jsx(ot,{item:!0,xs:12,sm:6,children:g.jsxs(ga,{fullWidth:!0,size:"small",children:[g.jsx(va,{children:"Region"}),g.jsxs(ci,{value:i,label:"Region",onChange:w=>a(w.target.value),children:[g.jsx(vt,{value:"fsn1",children:"Falkenstein (DE)"}),g.jsx(vt,{value:"nbg1",children:"Nuremberg (DE)"}),g.jsx(vt,{value:"hel1",children:"Helsinki (FI)"}),g.jsx(vt,{value:"ash",children:"Ashburn (US)"})]})]})}),g.jsx(ot,{item:!0,xs:12,children:g.jsxs(ga,{fullWidth:!0,size:"small",children:[g.jsx(va,{children:"Scaling Base Plan"}),g.jsxs(ci,{value:r,label:"Scaling Base Plan",onChange:w=>o(w.target.value),children:[g.jsx(vt,{value:"cx11",children:"CX11 (2 vCPU, 2GB RAM) - €3.69/mo"}),g.jsx(vt,{value:"cx21",children:"CX21 (3 vCPU, 4GB RAM) - €6.94/mo"}),g.jsx(vt,{value:"cx31",children:"CX31 (4 vCPU, 8GB RAM) - €14.21/mo"})]})]})})]}),g.jsx(Gr,{sx:{my:4}}),g.jsxs(Se,{sx:{mb:4},children:[g.jsxs(Se,{sx:{display:"flex",justifyContent:"space-between",mb:1},children:[g.jsxs(he,{variant:"subtitle1",component:"div",sx:{fontWeight:"bold",display:"flex",alignItems:"center",gap:1},children:[g.jsx(JF,{fontSize:"small",color:"primary"})," HTTP Edge Workers"]}),g.jsx(pn,{label:`${s} Nodes`,color:"primary",size:"small",variant:"outlined"})]}),g.jsx(he,{variant:"body2",color:"text.secondary",sx:{mb:2},children:"Handles HTTP requests and executes Edge Functions."}),g.jsx(C2,{value:s,onChange:(w,S)=>l(S),min:1,max:20,marks:[{value:1,label:"Single"},{value:3,label:"HA"},{value:10,label:"Mid"},{value:20,label:"Peak"}],valueLabelDisplay:"auto"})]}),g.jsxs(Se,{sx:{mb:4},children:[g.jsxs(Se,{sx:{display:"flex",justifyContent:"space-between",mb:1},children:[g.jsxs(he,{variant:"subtitle1",component:"div",sx:{fontWeight:"bold",display:"flex",alignItems:"center",gap:1},children:[g.jsx(nN,{fontSize:"small",color:"secondary"})," Database Pillars"]}),g.jsx(pn,{label:`${u} Nodes`,color:"secondary",size:"small",variant:"outlined"})]}),g.jsx(he,{variant:"body2",color:"text.secondary",sx:{mb:2},children:"PostgreSQL primary and replica nodes with logical replication."}),g.jsx(C2,{value:u,onChange:(w,S)=>c(S),min:1,max:7,step:2,marks:[{value:1,label:"Dev"},{value:3,label:"Stable"},{value:5,label:"Enterprise"}],valueLabelDisplay:"auto",color:"secondary"})]}),g.jsx(nn,{variant:"contained",size:"large",fullWidth:!0,onClick:()=>m.mutate(),disabled:m.isPending,sx:{mt:2,py:1.5,fontWeight:"bold",boxShadow:`0 8px 16px ${$t(e.palette.primary.main,.2)}`},children:m.isPending?g.jsx(co,{size:24,color:"inherit"}):"Analyze & Create Scaling Plan"})]})}),g.jsx(ot,{item:!0,xs:12,md:5,children:g.jsxs(Se,{sx:{position:"sticky",top:100},children:[g.jsxs(xd,{severity:"info",sx:{mb:3,border:"1px solid",borderColor:"info.main"},children:["MadBase uses ",g.jsx("strong",{children:"zero-downtime rolling updates"}),". Your cluster remains available during scaling."]}),g.jsxs(Ft,{sx:{p:3,bgcolor:$t(e.palette.background.paper,.4),border:"1px dashed",borderColor:"divider"},children:[g.jsx(he,{variant:"h6",gutterBottom:!0,color:"text.secondary",children:"Current Cluster State"}),g.jsxs(Se,{sx:{display:"flex",flexDirection:"column",gap:1.5,mt:2},children:[g.jsxs(Se,{sx:{display:"flex",justifyContent:"space-between"},children:[g.jsx(he,{variant:"body2",children:"Active Workers"}),g.jsx(he,{variant:"body2",sx:{fontWeight:"bold"},children:"3"})]}),g.jsxs(Se,{sx:{display:"flex",justifyContent:"space-between"},children:[g.jsx(he,{variant:"body2",children:"Database Replicas"}),g.jsx(he,{variant:"body2",sx:{fontWeight:"bold"},children:"3"})]}),g.jsxs(Se,{sx:{display:"flex",justifyContent:"space-between"},children:[g.jsx(he,{variant:"body2",children:"HA Status"}),g.jsx(pn,{label:"ENABLED",color:"success",size:"small",sx:{height:16,fontSize:"0.6rem"}})]})]})]})]})})]}),g.jsx(hDe,{open:d,onClose:()=>f(!1),onConfirm:()=>b&&y.mutate(b.scaling_plan),plan:b||null,loading:y.isPending})]})}function gDe(){const{data:e,isLoading:t}=Wr({queryKey:["clusterHealth"],queryFn:()=>gn.getClusterHealth().then(n=>n.data),refetchInterval:5e3});return t?g.jsx(gg,{}):g.jsxs(Se,{children:[g.jsx(he,{variant:"h4",gutterBottom:!0,children:"Cluster Health"}),g.jsx(he,{variant:"body2",color:"text.secondary",gutterBottom:!0,children:"Real-time cluster status and metrics"}),g.jsxs(xd,{severity:e!=null&&e.healthy?"success":"error",sx:{mt:2,mb:3},children:["Cluster is ",e!=null&&e.healthy?"healthy":"unhealthy"]}),g.jsxs(ot,{container:!0,spacing:3,children:[g.jsx(ot,{item:!0,xs:12,sm:6,md:3,children:g.jsx(ms,{children:g.jsxs(gs,{children:[g.jsx(he,{color:"textSecondary",gutterBottom:!0,children:"Total Servers"}),g.jsx(he,{variant:"h3",children:(e==null?void 0:e.total_servers)||0})]})})}),g.jsx(ot,{item:!0,xs:12,sm:6,md:3,children:g.jsx(ms,{children:g.jsxs(gs,{children:[g.jsx(he,{color:"textSecondary",gutterBottom:!0,children:"Active Servers"}),g.jsx(he,{variant:"h3",color:"success.main",children:(e==null?void 0:e.active_servers)||0})]})})}),g.jsx(ot,{item:!0,xs:12,sm:6,md:3,children:g.jsx(ms,{children:g.jsxs(gs,{children:[g.jsx(he,{color:"textSecondary",gutterBottom:!0,children:"Error Servers"}),g.jsx(he,{variant:"h3",color:"error.main",children:(e==null?void 0:e.error_servers)||0})]})})}),g.jsx(ot,{item:!0,xs:12,sm:6,md:3,children:g.jsx(ms,{children:g.jsxs(gs,{children:[g.jsx(he,{color:"textSecondary",gutterBottom:!0,children:"Services Running"}),g.jsx(he,{variant:"h3",color:"primary.main",children:(e==null?void 0:e.services_up)||0})]})})})]})]})}function vDe(){return g.jsxs(Se,{children:[g.jsx(he,{variant:"h4",gutterBottom:!0,children:"Settings"}),g.jsx(he,{variant:"body2",color:"text.secondary",gutterBottom:!0,children:"Configure Control Plane settings"}),g.jsxs(Ft,{sx:{p:3,mt:3},children:[g.jsx(he,{variant:"h6",gutterBottom:!0,children:"API Configuration"}),g.jsxs(Se,{sx:{display:"flex",flexDirection:"column",gap:2,mt:2},children:[g.jsx(li,{label:"API Endpoint",defaultValue:"http://localhost:8001",fullWidth:!0}),g.jsx(li,{label:"Hetzner API Key",type:"password",placeholder:"Enter your Hetzner API key",fullWidth:!0}),g.jsx(li,{label:"Database URL",defaultValue:"postgresql://user:pass@localhost/madbase",fullWidth:!0}),g.jsx(nn,{variant:"contained",children:"Save Settings"})]}),g.jsx(Gr,{sx:{my:3}}),g.jsx(he,{variant:"h6",gutterBottom:!0,children:"Backup Settings"}),g.jsx(xd,{severity:"info",sx:{mb:2},children:"Automatic backups are enabled"}),g.jsxs(Se,{sx:{display:"flex",flexDirection:"column",gap:2},children:[g.jsx(li,{label:"S3 Endpoint",placeholder:"https://fsn1.your-objectstorage.com",fullWidth:!0}),g.jsx(li,{label:"S3 Bucket",placeholder:"madbase-backups",fullWidth:!0}),g.jsx(nn,{variant:"outlined",children:"Test Connection"})]})]})]})}const yDe=ZP({palette:{mode:"dark",primary:{main:"#00d4ff",light:"#33dcff",dark:"#0094b2"},secondary:{main:"#7c4dff",light:"#9670ff",dark:"#5635b2"},background:{default:"#010409",paper:"#0d1117"},success:{main:"#238636"},warning:{main:"#d29922"},error:{main:"#f85149"},divider:"rgba(48, 54, 61, 0.5)"},shape:{borderRadius:8},typography:{fontFamily:'"Inter", "Inter var", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif',h3:{fontWeight:800},h4:{fontWeight:800},h6:{fontWeight:700},overline:{fontWeight:700,letterSpacing:"0.1em"}},components:{MuiButton:{styleOverrides:{root:{textTransform:"none",fontWeight:600,borderRadius:"8px"},containedPrimary:{background:"linear-gradient(135deg, #00d4ff 0%, #00a3ff 100%)",boxShadow:"0 4px 14px 0 rgba(0, 212, 255, 0.39)","&:hover":{boxShadow:"0 6px 20px rgba(0, 212, 255, 0.23)"}}}},MuiPaper:{styleOverrides:{root:{backgroundImage:"none",border:"1px solid rgba(48, 54, 61, 0.5)"}}},MuiCard:{styleOverrides:{root:{backgroundImage:"none",border:"1px solid rgba(48, 54, 61, 0.5)",borderRadius:"12px"}}},MuiDrawer:{styleOverrides:{paper:{borderRight:"1px solid rgba(48, 54, 61, 0.5)",background:"#010409"}}},MuiAppBar:{styleOverrides:{root:{background:$t("#010409",.8),backdropFilter:"blur(8px)",borderBottom:"1px solid rgba(48, 54, 61, 0.5)",boxShadow:"none"}}}}}),bDe=new xG({defaultOptions:{queries:{refetchOnWindowFocus:!1,staleTime:3e4}}});function xDe(){return g.jsx(wG,{client:bDe,children:g.jsxs(GW,{theme:yDe,children:[g.jsx(YW,{}),g.jsx(PU,{children:g.jsx(nne,{children:g.jsxs(wU,{children:[g.jsx(Ir,{path:"/",element:g.jsx(Wke,{})}),g.jsx(Ir,{path:"/auth",element:g.jsx(eDe,{})}),g.jsx(Ir,{path:"/storage",element:g.jsx(nDe,{})}),g.jsx(Ir,{path:"/database",element:g.jsx(oDe,{})}),g.jsx(Ir,{path:"/functions",element:g.jsx(aDe,{})}),g.jsx(Ir,{path:"/realtime",element:g.jsx(lDe,{})}),g.jsx(Ir,{path:"/logs",element:g.jsx(cDe,{})}),g.jsx(Ir,{path:"/servers",element:g.jsx(dDe,{})}),g.jsx(Ir,{path:"/templates",element:g.jsx(fDe,{})}),g.jsx(Ir,{path:"/providers",element:g.jsx(pDe,{})}),g.jsx(Ir,{path:"/scaling",element:g.jsx(mDe,{})}),g.jsx(Ir,{path:"/cluster",element:g.jsx(gDe,{})}),g.jsx(Ir,{path:"/settings",element:g.jsx(vDe,{})})]})})})]})})}pw.createRoot(document.getElementById("root")).render(g.jsx(q.StrictMode,{children:g.jsx(xDe,{})})); //# sourceMappingURL=index-BQQesDFl.js.map